var Bh=e=>{throw TypeError(e)};var Lc=(e,t,n)=>t.has(e)||Bh("Cannot "+n);var P=(e,t,n)=>(Lc(e,t,"read from private field"),n?n.call(e):t.get(e)),pe=(e,t,n)=>t.has(e)?Bh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),oe=(e,t,n,r)=>(Lc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Je=(e,t,n)=>(Lc(e,t,"access private method"),n);var ia=(e,t,n,r)=>({set _(o){oe(e,t,o,n)},get _(){return P(e,t,r)}});function pb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[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"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function wg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zO(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var bg={exports:{}},Bl={},kg={exports:{}},ae={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $i=Symbol.for("react.element"),gb=Symbol.for("react.portal"),vb=Symbol.for("react.fragment"),yb=Symbol.for("react.strict_mode"),xb=Symbol.for("react.profiler"),wb=Symbol.for("react.provider"),bb=Symbol.for("react.context"),kb=Symbol.for("react.forward_ref"),Sb=Symbol.for("react.suspense"),Cb=Symbol.for("react.memo"),Nb=Symbol.for("react.lazy"),Uh=Symbol.iterator;function jb(e){return e===null||typeof e!="object"?null:(e=Uh&&e[Uh]||e["@@iterator"],typeof e=="function"?e:null)}var Sg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cg=Object.assign,Ng={};function bs(e,t,n){this.props=e,this.context=t,this.refs=Ng,this.updater=n||Sg}bs.prototype.isReactComponent={};bs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jg(){}jg.prototype=bs.prototype;function Qd(e,t,n){this.props=e,this.context=t,this.refs=Ng,this.updater=n||Sg}var Yd=Qd.prototype=new jg;Yd.constructor=Qd;Cg(Yd,bs.prototype);Yd.isPureReactComponent=!0;var Vh=Array.isArray,Eg=Object.prototype.hasOwnProperty,Zd={current:null},_g={key:!0,ref:!0,__self:!0,__source:!0};function Tg(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Eg.call(t,r)&&!_g.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:$i,type:e,key:s,ref:i,props:o,_owner:Zd.current}}function Eb(e,t){return{$$typeof:$i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xd(e){return typeof e=="object"&&e!==null&&e.$$typeof===$i}function _b(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wh=/\/+/g;function Fc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_b(""+e.key):t.toString(36)}function Ma(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case $i:case gb:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Fc(i,0):r,Vh(o)?(n="",e!=null&&(n=e.replace(Wh,"$&/")+"/"),Ma(o,t,n,"",function(u){return u})):o!=null&&(Xd(o)&&(o=Eb(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Wh,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Vh(e))for(var a=0;a<e.length;a++){s=e[a];var c=r+Fc(s,a);i+=Ma(s,t,n,c,o)}else if(c=jb(e),typeof c=="function")for(e=c.call(e),a=0;!(s=e.next()).done;)s=s.value,c=r+Fc(s,a++),i+=Ma(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function aa(e,t,n){if(e==null)return e;var r=[],o=0;return Ma(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Tb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dt={current:null},Ia={transition:null},Pb={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:Ia,ReactCurrentOwner:Zd};function Pg(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:aa,forEach:function(e,t,n){aa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return aa(e,function(){t++}),t},toArray:function(e){return aa(e,function(t){return t})||[]},only:function(e){if(!Xd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=bs;ae.Fragment=vb;ae.Profiler=xb;ae.PureComponent=Qd;ae.StrictMode=yb;ae.Suspense=Sb;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pb;ae.act=Pg;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Cg({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Zd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Eg.call(t,c)&&!_g.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:$i,type:e.type,key:o,ref:s,props:r,_owner:i}};ae.createContext=function(e){return e={$$typeof:bb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wb,_context:e},e.Consumer=e};ae.createElement=Tg;ae.createFactory=function(e){var t=Tg.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:kb,render:e}};ae.isValidElement=Xd;ae.lazy=function(e){return{$$typeof:Nb,_payload:{_status:-1,_result:e},_init:Tb}};ae.memo=function(e,t){return{$$typeof:Cb,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ia.transition;Ia.transition={};try{e()}finally{Ia.transition=t}};ae.unstable_act=Pg;ae.useCallback=function(e,t){return dt.current.useCallback(e,t)};ae.useContext=function(e){return dt.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};ae.useEffect=function(e,t){return dt.current.useEffect(e,t)};ae.useId=function(){return dt.current.useId()};ae.useImperativeHandle=function(e,t,n){return dt.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return dt.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return dt.current.useReducer(e,t,n)};ae.useRef=function(e){return dt.current.useRef(e)};ae.useState=function(e){return dt.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return dt.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return dt.current.useTransition()};ae.version="18.3.1";kg.exports=ae;var p=kg.exports;const A=wg(p),Jd=pb({__proto__:null,default:A},[p]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Rb=p,Ab=Symbol.for("react.element"),Ob=Symbol.for("react.fragment"),Mb=Object.prototype.hasOwnProperty,Ib=Rb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Db={key:!0,ref:!0,__self:!0,__source:!0};function Rg(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Mb.call(t,r)&&!Db.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ab,type:e,key:s,ref:i,props:o,_owner:Ib.current}}Bl.Fragment=Ob;Bl.jsx=Rg;Bl.jsxs=Rg;bg.exports=Bl;var l=bg.exports,Ag={exports:{}},Ot={},Og={exports:{}},Mg={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(_,j){var D=_.length;_.push(j);e:for(;0<D;){var U=D-1>>>1,$=_[U];if(0<o($,j))_[U]=j,_[D]=$,D=U;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var j=_[0],D=_.pop();if(D!==j){_[0]=D;e:for(var U=0,$=_.length,ee=$>>>1;U<ee;){var J=2*(U+1)-1,xe=_[J],be=J+1,X=_[be];if(0>o(xe,D))be<$&&0>o(X,xe)?(_[U]=X,_[be]=D,U=be):(_[U]=xe,_[J]=D,U=J);else if(be<$&&0>o(X,D))_[U]=X,_[be]=D,U=be;else break e}}return j}function o(_,j){var D=_.sortIndex-j.sortIndex;return D!==0?D:_.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var c=[],u=[],d=1,f=null,m=3,h=!1,b=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(_){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=_)r(u),j.sortIndex=j.expirationTime,t(c,j);else break;j=n(u)}}function k(_){if(v=!1,x(_),!b)if(n(c)!==null)b=!0,V(S);else{var j=n(u);j!==null&&Q(k,j.startTime-_)}}function S(_,j){b=!1,v&&(v=!1,g(E),E=-1),h=!0;var D=m;try{for(x(j),f=n(c);f!==null&&(!(f.expirationTime>j)||_&&!F());){var U=f.callback;if(typeof U=="function"){f.callback=null,m=f.priorityLevel;var $=U(f.expirationTime<=j);j=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(c)&&r(c),x(j)}else r(c);f=n(c)}if(f!==null)var ee=!0;else{var J=n(u);J!==null&&Q(k,J.startTime-j),ee=!1}return ee}finally{f=null,m=D,h=!1}}var N=!1,C=null,E=-1,T=5,R=-1;function F(){return!(e.unstable_now()-R<T)}function L(){if(C!==null){var _=e.unstable_now();R=_;var j=!0;try{j=C(!0,_)}finally{j?K():(N=!1,C=null)}}else N=!1}var K;if(typeof y=="function")K=function(){y(L)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Z=M.port2;M.port1.onmessage=L,K=function(){Z.postMessage(null)}}else K=function(){w(L,0)};function V(_){C=_,N||(N=!0,K())}function Q(_,j){E=w(function(){_(e.unstable_now())},j)}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(_){_.callback=null},e.unstable_continueExecution=function(){b||h||(b=!0,V(S))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var j=3;break;default:j=m}var D=m;m=j;try{return _()}finally{m=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var D=m;m=_;try{return j()}finally{m=D}},e.unstable_scheduleCallback=function(_,j,D){var U=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?U+D:U):D=U,_){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=D+$,_={id:d++,callback:j,priorityLevel:_,startTime:D,expirationTime:$,sortIndex:-1},D>U?(_.sortIndex=D,t(u,_),n(c)===null&&_===n(u)&&(v?(g(E),E=-1):v=!0,Q(k,D-U))):(_.sortIndex=$,t(c,_),b||h||(b=!0,V(S))),_},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(_){var j=m;return function(){var D=m;m=j;try{return _.apply(this,arguments)}finally{m=D}}}})(Mg);Og.exports=Mg;var Lb=Og.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fb=p,Tt=Lb;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ig=new Set,ai={};function ho(e,t){is(e,t),is(e+"Capture",t)}function is(e,t){for(ai[e]=t,e=0;e<t.length;e++)Ig.add(t[e])}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_u=Object.prototype.hasOwnProperty,zb=/^[: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]*$/,Hh={},qh={};function $b(e){return _u.call(qh,e)?!0:_u.call(Hh,e)?!1:zb.test(e)?qh[e]=!0:(Hh[e]=!0,!1)}function Bb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ub(e,t,n,r){if(t===null||typeof t>"u"||Bb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var ef=/[\-:]([a-z])/g;function tf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ef,tf);Xe[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ef,tf);Xe[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ef,tf);Xe[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function nf(e,t,n,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ub(t,n,o,r)&&(n=null),r||o===null?$b(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Yn=Fb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,la=Symbol.for("react.element"),Po=Symbol.for("react.portal"),Ro=Symbol.for("react.fragment"),rf=Symbol.for("react.strict_mode"),Tu=Symbol.for("react.profiler"),Dg=Symbol.for("react.provider"),Lg=Symbol.for("react.context"),of=Symbol.for("react.forward_ref"),Pu=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),sf=Symbol.for("react.memo"),ar=Symbol.for("react.lazy"),Fg=Symbol.for("react.offscreen"),Gh=Symbol.iterator;function As(e){return e===null||typeof e!="object"?null:(e=Gh&&e[Gh]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,zc;function Us(e){if(zc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zc=t&&t[1]||""}return`
`+zc+e}var $c=!1;function Bc(e,t){if(!e||$c)return"";$c=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),s=r.stack.split(`
`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var c=`
`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=a);break}}}finally{$c=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Us(e):""}function Vb(e){switch(e.tag){case 5:return Us(e.type);case 16:return Us("Lazy");case 13:return Us("Suspense");case 19:return Us("SuspenseList");case 0:case 2:case 15:return e=Bc(e.type,!1),e;case 11:return e=Bc(e.type.render,!1),e;case 1:return e=Bc(e.type,!0),e;default:return""}}function Au(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ro:return"Fragment";case Po:return"Portal";case Tu:return"Profiler";case rf:return"StrictMode";case Pu:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lg:return(e.displayName||"Context")+".Consumer";case Dg:return(e._context.displayName||"Context")+".Provider";case of:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sf:return t=e.displayName||null,t!==null?t:Au(e.type)||"Memo";case ar:t=e._payload,e=e._init;try{return Au(e(t))}catch{}}return null}function Wb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Au(t);case 8:return t===rf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hb(e){var t=zg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ca(e){e._valueTracker||(e._valueTracker=Hb(e))}function $g(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ou(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ar(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bg(e,t){t=t.checked,t!=null&&nf(e,"checked",t,!1)}function Mu(e,t){Bg(e,t);var n=Ar(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Iu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Iu(e,t.type,Ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Iu(e,t,n){(t!=="number"||Xa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vs=Array.isArray;function Vo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ar(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Du(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Vs(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ar(n)}}function Ug(e,t){var n=Ar(t.value),r=Ar(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Zh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Lu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ua,Wg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ua=ua||document.createElement("div"),ua.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ua.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ys={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(Ys).forEach(function(e){qb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ys[t]=Ys[e]})});function Hg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ys.hasOwnProperty(e)&&Ys[e]?(""+t).trim():t+"px"}function qg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Hg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Gb=Ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fu(e,t){if(t){if(Gb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function zu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 $u=null;function af(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bu=null,Wo=null,Ho=null;function Xh(e){if(e=Vi(e)){if(typeof Bu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=ql(t),Bu(e.stateNode,e.type,t))}}function Gg(e){Wo?Ho?Ho.push(e):Ho=[e]:Wo=e}function Kg(){if(Wo){var e=Wo,t=Ho;if(Ho=Wo=null,Xh(e),t)for(e=0;e<t.length;e++)Xh(t[e])}}function Qg(e,t){return e(t)}function Yg(){}var Uc=!1;function Zg(e,t,n){if(Uc)return e(t,n);Uc=!0;try{return Qg(e,t,n)}finally{Uc=!1,(Wo!==null||Ho!==null)&&(Yg(),Kg())}}function ci(e,t){var n=e.stateNode;if(n===null)return null;var r=ql(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Uu=!1;if(Wn)try{var Os={};Object.defineProperty(Os,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Uu=!1}function Kb(e,t,n,r,o,s,i,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Zs=!1,Ja=null,el=!1,Vu=null,Qb={onError:function(e){Zs=!0,Ja=e}};function Yb(e,t,n,r,o,s,i,a,c){Zs=!1,Ja=null,Kb.apply(Qb,arguments)}function Zb(e,t,n,r,o,s,i,a,c){if(Yb.apply(this,arguments),Zs){if(Zs){var u=Ja;Zs=!1,Ja=null}else throw Error(O(198));el||(el=!0,Vu=u)}}function mo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Xg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jh(e){if(mo(e)!==e)throw Error(O(188))}function Xb(e){var t=e.alternate;if(!t){if(t=mo(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Jh(o),e;if(s===r)return Jh(o),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function Jg(e){return e=Xb(e),e!==null?ev(e):null}function ev(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ev(e);if(t!==null)return t;e=e.sibling}return null}var tv=Tt.unstable_scheduleCallback,em=Tt.unstable_cancelCallback,Jb=Tt.unstable_shouldYield,ek=Tt.unstable_requestPaint,$e=Tt.unstable_now,tk=Tt.unstable_getCurrentPriorityLevel,lf=Tt.unstable_ImmediatePriority,nv=Tt.unstable_UserBlockingPriority,tl=Tt.unstable_NormalPriority,nk=Tt.unstable_LowPriority,rv=Tt.unstable_IdlePriority,Ul=null,Nn=null;function rk(e){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Ul,e,void 0,(e.current.flags&128)===128)}catch{}}var an=Math.clz32?Math.clz32:ik,ok=Math.log,sk=Math.LN2;function ik(e){return e>>>=0,e===0?32:31-(ok(e)/sk|0)|0}var da=64,fa=4194304;function Ws(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Ws(a):(s&=i,s!==0&&(r=Ws(s)))}else i=n&~o,i!==0?r=Ws(i):s!==0&&(r=Ws(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-an(t),o=1<<n,r|=e[n],t&=~o;return r}function ak(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-an(s),a=1<<i,c=o[i];c===-1?(!(a&n)||a&r)&&(o[i]=ak(a,t)):c<=t&&(e.expiredLanes|=a),s&=~a}}function Wu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ov(){var e=da;return da<<=1,!(da&4194240)&&(da=64),e}function Vc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-an(t),e[t]=n}function ck(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-an(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function cf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-an(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var we=0;function sv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iv,uf,av,lv,cv,Hu=!1,ha=[],br=null,kr=null,Sr=null,ui=new Map,di=new Map,ur=[],uk="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 submit".split(" ");function tm(e,t){switch(e){case"focusin":case"focusout":br=null;break;case"dragenter":case"dragleave":kr=null;break;case"mouseover":case"mouseout":Sr=null;break;case"pointerover":case"pointerout":ui.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(t.pointerId)}}function Ms(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Vi(t),t!==null&&uf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function dk(e,t,n,r,o){switch(t){case"focusin":return br=Ms(br,e,t,n,r,o),!0;case"dragenter":return kr=Ms(kr,e,t,n,r,o),!0;case"mouseover":return Sr=Ms(Sr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ui.set(s,Ms(ui.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,di.set(s,Ms(di.get(s)||null,e,t,n,r,o)),!0}return!1}function uv(e){var t=qr(e.target);if(t!==null){var n=mo(t);if(n!==null){if(t=n.tag,t===13){if(t=Xg(n),t!==null){e.blockedOn=t,cv(e.priority,function(){av(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Da(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$u=r,n.target.dispatchEvent(r),$u=null}else return t=Vi(n),t!==null&&uf(t),e.blockedOn=n,!1;t.shift()}return!0}function nm(e,t,n){Da(e)&&n.delete(t)}function fk(){Hu=!1,br!==null&&Da(br)&&(br=null),kr!==null&&Da(kr)&&(kr=null),Sr!==null&&Da(Sr)&&(Sr=null),ui.forEach(nm),di.forEach(nm)}function Is(e,t){e.blockedOn===t&&(e.blockedOn=null,Hu||(Hu=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,fk)))}function fi(e){function t(o){return Is(o,e)}if(0<ha.length){Is(ha[0],e);for(var n=1;n<ha.length;n++){var r=ha[n];r.blockedOn===e&&(r.blockedOn=null)}}for(br!==null&&Is(br,e),kr!==null&&Is(kr,e),Sr!==null&&Is(Sr,e),ui.forEach(t),di.forEach(t),n=0;n<ur.length;n++)r=ur[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ur.length&&(n=ur[0],n.blockedOn===null);)uv(n),n.blockedOn===null&&ur.shift()}var qo=Yn.ReactCurrentBatchConfig,rl=!0;function hk(e,t,n,r){var o=we,s=qo.transition;qo.transition=null;try{we=1,df(e,t,n,r)}finally{we=o,qo.transition=s}}function mk(e,t,n,r){var o=we,s=qo.transition;qo.transition=null;try{we=4,df(e,t,n,r)}finally{we=o,qo.transition=s}}function df(e,t,n,r){if(rl){var o=qu(e,t,n,r);if(o===null)Jc(e,t,r,ol,n),tm(e,r);else if(dk(o,e,t,n,r))r.stopPropagation();else if(tm(e,r),t&4&&-1<uk.indexOf(e)){for(;o!==null;){var s=Vi(o);if(s!==null&&iv(s),s=qu(e,t,n,r),s===null&&Jc(e,t,r,ol,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Jc(e,t,r,null,n)}}var ol=null;function qu(e,t,n,r){if(ol=null,e=af(r),e=qr(e),e!==null)if(t=mo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ol=e,null}function dv(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(tk()){case lf:return 1;case nv:return 4;case tl:case nk:return 16;case rv:return 536870912;default:return 16}default:return 16}}var vr=null,ff=null,La=null;function fv(){if(La)return La;var e,t=ff,n=t.length,r,o="value"in vr?vr.value:vr.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return La=o.slice(e,1<r?1-r:void 0)}function Fa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ma(){return!0}function rm(){return!1}function Mt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ma:rm,this.isPropagationStopped=rm,this}return Ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ma)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ma)},persist:function(){},isPersistent:ma}),t}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hf=Mt(ks),Ui=Ie({},ks,{view:0,detail:0}),pk=Mt(Ui),Wc,Hc,Ds,Vl=Ie({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ds&&(Ds&&e.type==="mousemove"?(Wc=e.screenX-Ds.screenX,Hc=e.screenY-Ds.screenY):Hc=Wc=0,Ds=e),Wc)},movementY:function(e){return"movementY"in e?e.movementY:Hc}}),om=Mt(Vl),gk=Ie({},Vl,{dataTransfer:0}),vk=Mt(gk),yk=Ie({},Ui,{relatedTarget:0}),qc=Mt(yk),xk=Ie({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),wk=Mt(xk),bk=Ie({},ks,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kk=Mt(bk),Sk=Ie({},ks,{data:0}),sm=Mt(Sk),Ck={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nk={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"},jk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ek(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jk[e])?!!t[e]:!1}function mf(){return Ek}var _k=Ie({},Ui,{key:function(e){if(e.key){var t=Ck[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mf,charCode:function(e){return e.type==="keypress"?Fa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tk=Mt(_k),Pk=Ie({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),im=Mt(Pk),Rk=Ie({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mf}),Ak=Mt(Rk),Ok=Ie({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mk=Mt(Ok),Ik=Ie({},Vl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dk=Mt(Ik),Lk=[9,13,27,32],pf=Wn&&"CompositionEvent"in window,Xs=null;Wn&&"documentMode"in document&&(Xs=document.documentMode);var Fk=Wn&&"TextEvent"in window&&!Xs,hv=Wn&&(!pf||Xs&&8<Xs&&11>=Xs),am=" ",lm=!1;function mv(e,t){switch(e){case"keyup":return Lk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ao=!1;function zk(e,t){switch(e){case"compositionend":return pv(t);case"keypress":return t.which!==32?null:(lm=!0,am);case"textInput":return e=t.data,e===am&&lm?null:e;default:return null}}function $k(e,t){if(Ao)return e==="compositionend"||!pf&&mv(e,t)?(e=fv(),La=ff=vr=null,Ao=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return hv&&t.locale!=="ko"?null:t.data;default:return null}}var Bk={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 cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bk[e.type]:t==="textarea"}function gv(e,t,n,r){Gg(r),t=sl(t,"onChange"),0<t.length&&(n=new hf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Js=null,hi=null;function Uk(e){Ev(e,0)}function Wl(e){var t=Io(e);if($g(t))return e}function Vk(e,t){if(e==="change")return t}var vv=!1;if(Wn){var Gc;if(Wn){var Kc="oninput"in document;if(!Kc){var um=document.createElement("div");um.setAttribute("oninput","return;"),Kc=typeof um.oninput=="function"}Gc=Kc}else Gc=!1;vv=Gc&&(!document.documentMode||9<document.documentMode)}function dm(){Js&&(Js.detachEvent("onpropertychange",yv),hi=Js=null)}function yv(e){if(e.propertyName==="value"&&Wl(hi)){var t=[];gv(t,hi,e,af(e)),Zg(Uk,t)}}function Wk(e,t,n){e==="focusin"?(dm(),Js=t,hi=n,Js.attachEvent("onpropertychange",yv)):e==="focusout"&&dm()}function Hk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wl(hi)}function qk(e,t){if(e==="click")return Wl(t)}function Gk(e,t){if(e==="input"||e==="change")return Wl(t)}function Kk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var un=typeof Object.is=="function"?Object.is:Kk;function mi(e,t){if(un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!_u.call(t,o)||!un(e[o],t[o]))return!1}return!0}function fm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hm(e,t){var n=fm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fm(n)}}function xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xa(e.document)}return t}function gf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qk(e){var t=wv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xv(n.ownerDocument.documentElement,n)){if(r!==null&&gf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=hm(n,s);var i=hm(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Yk=Wn&&"documentMode"in document&&11>=document.documentMode,Oo=null,Gu=null,ei=null,Ku=!1;function mm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ku||Oo==null||Oo!==Xa(r)||(r=Oo,"selectionStart"in r&&gf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ei&&mi(ei,r)||(ei=r,r=sl(Gu,"onSelect"),0<r.length&&(t=new hf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Oo)))}function pa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionend:pa("Transition","TransitionEnd")},Qc={},bv={};Wn&&(bv=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function Hl(e){if(Qc[e])return Qc[e];if(!Mo[e])return e;var t=Mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bv)return Qc[e]=t[n];return e}var kv=Hl("animationend"),Sv=Hl("animationiteration"),Cv=Hl("animationstart"),Nv=Hl("transitionend"),jv=new Map,pm="abort auxClick 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(" ");function Fr(e,t){jv.set(e,t),ho(t,[e])}for(var Yc=0;Yc<pm.length;Yc++){var Zc=pm[Yc],Zk=Zc.toLowerCase(),Xk=Zc[0].toUpperCase()+Zc.slice(1);Fr(Zk,"on"+Xk)}Fr(kv,"onAnimationEnd");Fr(Sv,"onAnimationIteration");Fr(Cv,"onAnimationStart");Fr("dblclick","onDoubleClick");Fr("focusin","onFocus");Fr("focusout","onBlur");Fr(Nv,"onTransitionEnd");is("onMouseEnter",["mouseout","mouseover"]);is("onMouseLeave",["mouseout","mouseover"]);is("onPointerEnter",["pointerout","pointerover"]);is("onPointerLeave",["pointerout","pointerover"]);ho("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ho("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ho("onBeforeInput",["compositionend","keypress","textInput","paste"]);ho("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hs="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(" "),Jk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hs));function gm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zb(r,t,void 0,e),e.currentTarget=null}function Ev(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==s&&o.isPropagationStopped())break e;gm(o,a,u),s=c}else for(i=0;i<r.length;i++){if(a=r[i],c=a.instance,u=a.currentTarget,a=a.listener,c!==s&&o.isPropagationStopped())break e;gm(o,a,u),s=c}}}if(el)throw e=Vu,el=!1,Vu=null,e}function _e(e,t){var n=t[Ju];n===void 0&&(n=t[Ju]=new Set);var r=e+"__bubble";n.has(r)||(_v(t,e,2,!1),n.add(r))}function Xc(e,t,n){var r=0;t&&(r|=4),_v(n,e,r,t)}var ga="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[ga]){e[ga]=!0,Ig.forEach(function(n){n!=="selectionchange"&&(Jk.has(n)||Xc(n,!1,e),Xc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ga]||(t[ga]=!0,Xc("selectionchange",!1,t))}}function _v(e,t,n,r){switch(dv(t)){case 1:var o=hk;break;case 4:o=mk;break;default:o=df}n=o.bind(null,t,n,e),o=void 0,!Uu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Jc(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;a!==null;){if(i=qr(a),i===null)return;if(c=i.tag,c===5||c===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Zg(function(){var u=s,d=af(n),f=[];e:{var m=jv.get(e);if(m!==void 0){var h=hf,b=e;switch(e){case"keypress":if(Fa(n)===0)break e;case"keydown":case"keyup":h=Tk;break;case"focusin":b="focus",h=qc;break;case"focusout":b="blur",h=qc;break;case"beforeblur":case"afterblur":h=qc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=vk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Ak;break;case kv:case Sv:case Cv:h=wk;break;case Nv:h=Mk;break;case"scroll":h=pk;break;case"wheel":h=Dk;break;case"copy":case"cut":case"paste":h=kk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=im}var v=(t&4)!==0,w=!v&&e==="scroll",g=v?m!==null?m+"Capture":null:m;v=[];for(var y=u,x;y!==null;){x=y;var k=x.stateNode;if(x.tag===5&&k!==null&&(x=k,g!==null&&(k=ci(y,g),k!=null&&v.push(gi(y,k,x)))),w)break;y=y.return}0<v.length&&(m=new h(m,b,null,n,d),f.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==$u&&(b=n.relatedTarget||n.fromElement)&&(qr(b)||b[Hn]))break e;if((h||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,h?(b=n.relatedTarget||n.toElement,h=u,b=b?qr(b):null,b!==null&&(w=mo(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(h=null,b=u),h!==b)){if(v=om,k="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=im,k="onPointerLeave",g="onPointerEnter",y="pointer"),w=h==null?m:Io(h),x=b==null?m:Io(b),m=new v(k,y+"leave",h,n,d),m.target=w,m.relatedTarget=x,k=null,qr(d)===u&&(v=new v(g,y+"enter",b,n,d),v.target=x,v.relatedTarget=w,k=v),w=k,h&&b)t:{for(v=h,g=b,y=0,x=v;x;x=No(x))y++;for(x=0,k=g;k;k=No(k))x++;for(;0<y-x;)v=No(v),y--;for(;0<x-y;)g=No(g),x--;for(;y--;){if(v===g||g!==null&&v===g.alternate)break t;v=No(v),g=No(g)}v=null}else v=null;h!==null&&vm(f,m,h,v,!1),b!==null&&w!==null&&vm(f,w,b,v,!0)}}e:{if(m=u?Io(u):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var S=Vk;else if(cm(m))if(vv)S=Gk;else{S=Hk;var N=Wk}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(S=qk);if(S&&(S=S(e,u))){gv(f,S,n,d);break e}N&&N(e,m,u),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Iu(m,"number",m.value)}switch(N=u?Io(u):window,e){case"focusin":(cm(N)||N.contentEditable==="true")&&(Oo=N,Gu=u,ei=null);break;case"focusout":ei=Gu=Oo=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,mm(f,n,d);break;case"selectionchange":if(Yk)break;case"keydown":case"keyup":mm(f,n,d)}var C;if(pf)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Ao?mv(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(hv&&n.locale!=="ko"&&(Ao||E!=="onCompositionStart"?E==="onCompositionEnd"&&Ao&&(C=fv()):(vr=d,ff="value"in vr?vr.value:vr.textContent,Ao=!0)),N=sl(u,E),0<N.length&&(E=new sm(E,e,null,n,d),f.push({event:E,listeners:N}),C?E.data=C:(C=pv(n),C!==null&&(E.data=C)))),(C=Fk?zk(e,n):$k(e,n))&&(u=sl(u,"onBeforeInput"),0<u.length&&(d=new sm("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=C))}Ev(f,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=ci(e,n),s!=null&&r.unshift(gi(e,s,o)),s=ci(e,t),s!=null&&r.push(gi(e,s,o))),e=e.return}return r}function No(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vm(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,o?(c=ci(n,s),c!=null&&i.unshift(gi(n,c,a))):o||(c=ci(n,s),c!=null&&i.push(gi(n,c,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var eS=/\r\n?/g,tS=/\u0000|\uFFFD/g;function ym(e){return(typeof e=="string"?e:""+e).replace(eS,`
`).replace(tS,"")}function va(e,t,n){if(t=ym(t),ym(e)!==t&&n)throw Error(O(425))}function il(){}var Qu=null,Yu=null;function Zu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xu=typeof setTimeout=="function"?setTimeout:void 0,nS=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,rS=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(e){return xm.resolve(null).then(e).catch(oS)}:Xu;function oS(e){setTimeout(function(){throw e})}function eu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),fi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);fi(t)}function Cr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ss=Math.random().toString(36).slice(2),Sn="__reactFiber$"+Ss,vi="__reactProps$"+Ss,Hn="__reactContainer$"+Ss,Ju="__reactEvents$"+Ss,sS="__reactListeners$"+Ss,iS="__reactHandles$"+Ss;function qr(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hn]||n[Sn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wm(e);e!==null;){if(n=e[Sn])return n;e=wm(e)}return t}e=n,n=e.parentNode}return null}function Vi(e){return e=e[Sn]||e[Hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Io(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function ql(e){return e[vi]||null}var ed=[],Do=-1;function zr(e){return{current:e}}function Te(e){0>Do||(e.current=ed[Do],ed[Do]=null,Do--)}function Ce(e,t){Do++,ed[Do]=e.current,e.current=t}var Or={},ot=zr(Or),yt=zr(!1),ro=Or;function as(e,t){var n=e.type.contextTypes;if(!n)return Or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xt(e){return e=e.childContextTypes,e!=null}function al(){Te(yt),Te(ot)}function bm(e,t,n){if(ot.current!==Or)throw Error(O(168));Ce(ot,t),Ce(yt,n)}function Tv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,Wb(e)||"Unknown",o));return Ie({},n,r)}function ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Or,ro=ot.current,Ce(ot,e),Ce(yt,yt.current),!0}function km(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Tv(e,t,ro),r.__reactInternalMemoizedMergedChildContext=e,Te(yt),Te(ot),Ce(ot,e)):Te(yt),Ce(yt,n)}var zn=null,Gl=!1,tu=!1;function Pv(e){zn===null?zn=[e]:zn.push(e)}function aS(e){Gl=!0,Pv(e)}function $r(){if(!tu&&zn!==null){tu=!0;var e=0,t=we;try{var n=zn;for(we=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}zn=null,Gl=!1}catch(o){throw zn!==null&&(zn=zn.slice(e+1)),tv(lf,$r),o}finally{we=t,tu=!1}}return null}var Lo=[],Fo=0,cl=null,ul=0,Dt=[],Lt=0,oo=null,Bn=1,Un="";function Vr(e,t){Lo[Fo++]=ul,Lo[Fo++]=cl,cl=e,ul=t}function Rv(e,t,n){Dt[Lt++]=Bn,Dt[Lt++]=Un,Dt[Lt++]=oo,oo=e;var r=Bn;e=Un;var o=32-an(r)-1;r&=~(1<<o),n+=1;var s=32-an(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Bn=1<<32-an(t)+o|n<<o|r,Un=s+e}else Bn=1<<s|n<<o|r,Un=e}function vf(e){e.return!==null&&(Vr(e,1),Rv(e,1,0))}function yf(e){for(;e===cl;)cl=Lo[--Fo],Lo[Fo]=null,ul=Lo[--Fo],Lo[Fo]=null;for(;e===oo;)oo=Dt[--Lt],Dt[Lt]=null,Un=Dt[--Lt],Dt[Lt]=null,Bn=Dt[--Lt],Dt[Lt]=null}var Et=null,jt=null,Pe=!1,sn=null;function Av(e,t){var n=zt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Et=e,jt=Cr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Et=e,jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=oo!==null?{id:Bn,overflow:Un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Et=e,jt=null,!0):!1;default:return!1}}function td(e){return(e.mode&1)!==0&&(e.flags&128)===0}function nd(e){if(Pe){var t=jt;if(t){var n=t;if(!Sm(e,t)){if(td(e))throw Error(O(418));t=Cr(n.nextSibling);var r=Et;t&&Sm(e,t)?Av(r,n):(e.flags=e.flags&-4097|2,Pe=!1,Et=e)}}else{if(td(e))throw Error(O(418));e.flags=e.flags&-4097|2,Pe=!1,Et=e}}}function Cm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function ya(e){if(e!==Et)return!1;if(!Pe)return Cm(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zu(e.type,e.memoizedProps)),t&&(t=jt)){if(td(e))throw Ov(),Error(O(418));for(;t;)Av(e,t),t=Cr(t.nextSibling)}if(Cm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){jt=Cr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}jt=null}}else jt=Et?Cr(e.stateNode.nextSibling):null;return!0}function Ov(){for(var e=jt;e;)e=Cr(e.nextSibling)}function ls(){jt=Et=null,Pe=!1}function xf(e){sn===null?sn=[e]:sn.push(e)}var lS=Yn.ReactCurrentBatchConfig;function Ls(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function xa(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nm(e){var t=e._init;return t(e._payload)}function Mv(e){function t(g,y){if(e){var x=g.deletions;x===null?(g.deletions=[y],g.flags|=16):x.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function o(g,y){return g=_r(g,y),g.index=0,g.sibling=null,g}function s(g,y,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<y?(g.flags|=2,y):x):(g.flags|=2,y)):(g.flags|=1048576,y)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,y,x,k){return y===null||y.tag!==6?(y=lu(x,g.mode,k),y.return=g,y):(y=o(y,x),y.return=g,y)}function c(g,y,x,k){var S=x.type;return S===Ro?d(g,y,x.props.children,k,x.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ar&&Nm(S)===y.type)?(k=o(y,x.props),k.ref=Ls(g,y,x),k.return=g,k):(k=Ha(x.type,x.key,x.props,null,g.mode,k),k.ref=Ls(g,y,x),k.return=g,k)}function u(g,y,x,k){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=cu(x,g.mode,k),y.return=g,y):(y=o(y,x.children||[]),y.return=g,y)}function d(g,y,x,k,S){return y===null||y.tag!==7?(y=no(x,g.mode,k,S),y.return=g,y):(y=o(y,x),y.return=g,y)}function f(g,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=lu(""+y,g.mode,x),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case la:return x=Ha(y.type,y.key,y.props,null,g.mode,x),x.ref=Ls(g,null,y),x.return=g,x;case Po:return y=cu(y,g.mode,x),y.return=g,y;case ar:var k=y._init;return f(g,k(y._payload),x)}if(Vs(y)||As(y))return y=no(y,g.mode,x,null),y.return=g,y;xa(g,y)}return null}function m(g,y,x,k){var S=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:a(g,y,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case la:return x.key===S?c(g,y,x,k):null;case Po:return x.key===S?u(g,y,x,k):null;case ar:return S=x._init,m(g,y,S(x._payload),k)}if(Vs(x)||As(x))return S!==null?null:d(g,y,x,k,null);xa(g,x)}return null}function h(g,y,x,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return g=g.get(x)||null,a(y,g,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case la:return g=g.get(k.key===null?x:k.key)||null,c(y,g,k,S);case Po:return g=g.get(k.key===null?x:k.key)||null,u(y,g,k,S);case ar:var N=k._init;return h(g,y,x,N(k._payload),S)}if(Vs(k)||As(k))return g=g.get(x)||null,d(y,g,k,S,null);xa(y,k)}return null}function b(g,y,x,k){for(var S=null,N=null,C=y,E=y=0,T=null;C!==null&&E<x.length;E++){C.index>E?(T=C,C=null):T=C.sibling;var R=m(g,C,x[E],k);if(R===null){C===null&&(C=T);break}e&&C&&R.alternate===null&&t(g,C),y=s(R,y,E),N===null?S=R:N.sibling=R,N=R,C=T}if(E===x.length)return n(g,C),Pe&&Vr(g,E),S;if(C===null){for(;E<x.length;E++)C=f(g,x[E],k),C!==null&&(y=s(C,y,E),N===null?S=C:N.sibling=C,N=C);return Pe&&Vr(g,E),S}for(C=r(g,C);E<x.length;E++)T=h(C,g,E,x[E],k),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?E:T.key),y=s(T,y,E),N===null?S=T:N.sibling=T,N=T);return e&&C.forEach(function(F){return t(g,F)}),Pe&&Vr(g,E),S}function v(g,y,x,k){var S=As(x);if(typeof S!="function")throw Error(O(150));if(x=S.call(x),x==null)throw Error(O(151));for(var N=S=null,C=y,E=y=0,T=null,R=x.next();C!==null&&!R.done;E++,R=x.next()){C.index>E?(T=C,C=null):T=C.sibling;var F=m(g,C,R.value,k);if(F===null){C===null&&(C=T);break}e&&C&&F.alternate===null&&t(g,C),y=s(F,y,E),N===null?S=F:N.sibling=F,N=F,C=T}if(R.done)return n(g,C),Pe&&Vr(g,E),S;if(C===null){for(;!R.done;E++,R=x.next())R=f(g,R.value,k),R!==null&&(y=s(R,y,E),N===null?S=R:N.sibling=R,N=R);return Pe&&Vr(g,E),S}for(C=r(g,C);!R.done;E++,R=x.next())R=h(C,g,E,R.value,k),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?E:R.key),y=s(R,y,E),N===null?S=R:N.sibling=R,N=R);return e&&C.forEach(function(L){return t(g,L)}),Pe&&Vr(g,E),S}function w(g,y,x,k){if(typeof x=="object"&&x!==null&&x.type===Ro&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case la:e:{for(var S=x.key,N=y;N!==null;){if(N.key===S){if(S=x.type,S===Ro){if(N.tag===7){n(g,N.sibling),y=o(N,x.props.children),y.return=g,g=y;break e}}else if(N.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ar&&Nm(S)===N.type){n(g,N.sibling),y=o(N,x.props),y.ref=Ls(g,N,x),y.return=g,g=y;break e}n(g,N);break}else t(g,N);N=N.sibling}x.type===Ro?(y=no(x.props.children,g.mode,k,x.key),y.return=g,g=y):(k=Ha(x.type,x.key,x.props,null,g.mode,k),k.ref=Ls(g,y,x),k.return=g,g=k)}return i(g);case Po:e:{for(N=x.key;y!==null;){if(y.key===N)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=o(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=cu(x,g.mode,k),y.return=g,g=y}return i(g);case ar:return N=x._init,w(g,y,N(x._payload),k)}if(Vs(x))return b(g,y,x,k);if(As(x))return v(g,y,x,k);xa(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,x),y.return=g,g=y):(n(g,y),y=lu(x,g.mode,k),y.return=g,g=y),i(g)):n(g,y)}return w}var cs=Mv(!0),Iv=Mv(!1),dl=zr(null),fl=null,zo=null,wf=null;function bf(){wf=zo=fl=null}function kf(e){var t=dl.current;Te(dl),e._currentValue=t}function rd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Go(e,t){fl=e,wf=zo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Ut(e){var t=e._currentValue;if(wf!==e)if(e={context:e,memoizedValue:t,next:null},zo===null){if(fl===null)throw Error(O(308));zo=e,fl.dependencies={lanes:0,firstContext:e}}else zo=zo.next=e;return t}var Gr=null;function Sf(e){Gr===null?Gr=[e]:Gr.push(e)}function Dv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Sf(t)):(n.next=o.next,o.next=n),t.interleaved=n,qn(e,r)}function qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var lr=!1;function Cf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qn(e,n)}return o=r.interleaved,o===null?(t.next=t,Sf(r)):(t.next=o.next,o.next=t),r.interleaved=t,qn(e,n)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cf(e,n)}}function jm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hl(e,t,n,r){var o=e.updateQueue;lr=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(s!==null){var f=o.baseState;i=0,d=u=c=null,a=s;do{var m=a.lane,h=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,v=a;switch(m=t,h=n,v.tag){case 1:if(b=v.payload,typeof b=="function"){f=b.call(h,f,m);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,m=typeof b=="function"?b.call(h,f,m):b,m==null)break e;f=Ie({},f,m);break e;case 2:lr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else h={eventTime:h,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,i|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);io|=i,e.lanes=i,e.memoizedState=f}}function Em(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(O(191,o));o.call(r)}}}var Wi={},jn=zr(Wi),yi=zr(Wi),xi=zr(Wi);function Kr(e){if(e===Wi)throw Error(O(174));return e}function Nf(e,t){switch(Ce(xi,t),Ce(yi,e),Ce(jn,Wi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lu(t,e)}Te(jn),Ce(jn,t)}function us(){Te(jn),Te(yi),Te(xi)}function Fv(e){Kr(xi.current);var t=Kr(jn.current),n=Lu(t,e.type);t!==n&&(Ce(yi,e),Ce(jn,n))}function jf(e){yi.current===e&&(Te(jn),Te(yi))}var Ae=zr(0);function ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nu=[];function Ef(){for(var e=0;e<nu.length;e++)nu[e]._workInProgressVersionPrimary=null;nu.length=0}var $a=Yn.ReactCurrentDispatcher,ru=Yn.ReactCurrentBatchConfig,so=0,Me=null,qe=null,Ke=null,pl=!1,ti=!1,wi=0,cS=0;function et(){throw Error(O(321))}function _f(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!un(e[n],t[n]))return!1;return!0}function Tf(e,t,n,r,o,s){if(so=s,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$a.current=e===null||e.memoizedState===null?hS:mS,e=n(r,o),ti){s=0;do{if(ti=!1,wi=0,25<=s)throw Error(O(301));s+=1,Ke=qe=null,t.updateQueue=null,$a.current=pS,e=n(r,o)}while(ti)}if($a.current=gl,t=qe!==null&&qe.next!==null,so=0,Ke=qe=Me=null,pl=!1,t)throw Error(O(300));return e}function Pf(){var e=wi!==0;return wi=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Me.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Vt(){if(qe===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Ke===null?Me.memoizedState:Ke.next;if(t!==null)Ke=t,qe=e;else{if(e===null)throw Error(O(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Ke===null?Me.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function bi(e,t){return typeof t=="function"?t(e):t}function ou(e){var t=Vt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=qe,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,c=null,u=s;do{var d=u.lane;if((so&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=f,i=r):c=c.next=f,Me.lanes|=d,io|=d}u=u.next}while(u!==null&&u!==s);c===null?i=r:c.next=a,un(r,t.memoizedState)||(vt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Me.lanes|=s,io|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function su(e){var t=Vt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);un(s,t.memoizedState)||(vt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function zv(){}function $v(e,t){var n=Me,r=Vt(),o=t(),s=!un(r.memoizedState,o);if(s&&(r.memoizedState=o,vt=!0),r=r.queue,Rf(Vv.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,ki(9,Uv.bind(null,n,r,o,t),void 0,null),Qe===null)throw Error(O(349));so&30||Bv(n,t,o)}return o}function Bv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uv(e,t,n,r){t.value=n,t.getSnapshot=r,Wv(t)&&Hv(e)}function Vv(e,t,n){return n(function(){Wv(t)&&Hv(e)})}function Wv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!un(e,n)}catch{return!0}}function Hv(e){var t=qn(e,1);t!==null&&ln(t,e,1,-1)}function _m(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},t.queue=e,e=e.dispatch=fS.bind(null,Me,e),[t.memoizedState,e]}function ki(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qv(){return Vt().memoizedState}function Ba(e,t,n,r){var o=xn();Me.flags|=e,o.memoizedState=ki(1|t,n,void 0,r===void 0?null:r)}function Kl(e,t,n,r){var o=Vt();r=r===void 0?null:r;var s=void 0;if(qe!==null){var i=qe.memoizedState;if(s=i.destroy,r!==null&&_f(r,i.deps)){o.memoizedState=ki(t,n,s,r);return}}Me.flags|=e,o.memoizedState=ki(1|t,n,s,r)}function Tm(e,t){return Ba(8390656,8,e,t)}function Rf(e,t){return Kl(2048,8,e,t)}function Gv(e,t){return Kl(4,2,e,t)}function Kv(e,t){return Kl(4,4,e,t)}function Qv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yv(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4,4,Qv.bind(null,t,e),n)}function Af(){}function Zv(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_f(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xv(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_f(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jv(e,t,n){return so&21?(un(n,t)||(n=ov(),Me.lanes|=n,io|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=n)}function uS(e,t){var n=we;we=n!==0&&4>n?n:4,e(!0);var r=ru.transition;ru.transition={};try{e(!1),t()}finally{we=n,ru.transition=r}}function ey(){return Vt().memoizedState}function dS(e,t,n){var r=Er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ty(e))ny(t,n);else if(n=Dv(e,t,n,r),n!==null){var o=ut();ln(n,e,r,o),ry(n,t,r)}}function fS(e,t,n){var r=Er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ty(e))ny(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,un(a,i)){var c=t.interleaved;c===null?(o.next=o,Sf(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Dv(e,t,o,r),n!==null&&(o=ut(),ln(n,e,r,o),ry(n,t,r))}}function ty(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function ny(e,t){ti=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ry(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cf(e,n)}}var gl={readContext:Ut,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},hS={readContext:Ut,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:Tm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,Qv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dS.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:_m,useDebugValue:Af,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=_m(!1),t=e[0];return e=uS.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=xn();if(Pe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Qe===null)throw Error(O(349));so&30||Bv(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Tm(Vv.bind(null,r,s,e),[e]),r.flags|=2048,ki(9,Uv.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=xn(),t=Qe.identifierPrefix;if(Pe){var n=Un,r=Bn;n=(r&~(1<<32-an(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=cS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mS={readContext:Ut,useCallback:Zv,useContext:Ut,useEffect:Rf,useImperativeHandle:Yv,useInsertionEffect:Gv,useLayoutEffect:Kv,useMemo:Xv,useReducer:ou,useRef:qv,useState:function(){return ou(bi)},useDebugValue:Af,useDeferredValue:function(e){var t=Vt();return Jv(t,qe.memoizedState,e)},useTransition:function(){var e=ou(bi)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:zv,useSyncExternalStore:$v,useId:ey,unstable_isNewReconciler:!1},pS={readContext:Ut,useCallback:Zv,useContext:Ut,useEffect:Rf,useImperativeHandle:Yv,useInsertionEffect:Gv,useLayoutEffect:Kv,useMemo:Xv,useReducer:su,useRef:qv,useState:function(){return su(bi)},useDebugValue:Af,useDeferredValue:function(e){var t=Vt();return qe===null?t.memoizedState=e:Jv(t,qe.memoizedState,e)},useTransition:function(){var e=su(bi)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:zv,useSyncExternalStore:$v,useId:ey,unstable_isNewReconciler:!1};function en(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function od(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ql={isMounted:function(e){return(e=e._reactInternals)?mo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Er(e),s=Vn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Nr(e,s,o),t!==null&&(ln(t,e,o,r),za(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Er(e),s=Vn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Nr(e,s,o),t!==null&&(ln(t,e,o,r),za(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=Er(e),o=Vn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Nr(e,o,r),t!==null&&(ln(t,e,r,n),za(t,e,r))}};function Pm(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!mi(n,r)||!mi(o,s):!0}function oy(e,t,n){var r=!1,o=Or,s=t.contextType;return typeof s=="object"&&s!==null?s=Ut(s):(o=xt(t)?ro:ot.current,r=t.contextTypes,s=(r=r!=null)?as(e,o):Or),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ql,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Rm(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ql.enqueueReplaceState(t,t.state,null)}function sd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Cf(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Ut(s):(s=xt(t)?ro:ot.current,o.context=as(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(od(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ql.enqueueReplaceState(o,o.state,null),hl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ds(e,t){try{var n="",r=t;do n+=Vb(r),r=r.return;while(r);var o=n}catch(s){o=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function iu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function id(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var gS=typeof WeakMap=="function"?WeakMap:Map;function sy(e,t,n){n=Vn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yl||(yl=!0,gd=r),id(e,t)},n}function iy(e,t,n){n=Vn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){id(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){id(e,t),typeof r!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Am(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new gS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=PS.bind(null,e,t,n),t.then(e,e))}function Om(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Mm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vn(-1,1),t.tag=2,Nr(n,t,1))),n.lanes|=1),e)}var vS=Yn.ReactCurrentOwner,vt=!1;function lt(e,t,n,r){t.child=e===null?Iv(t,null,n,r):cs(t,e.child,n,r)}function Im(e,t,n,r,o){n=n.render;var s=t.ref;return Go(t,o),r=Tf(e,t,n,r,s,o),n=Pf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gn(e,t,o)):(Pe&&n&&vf(t),t.flags|=1,lt(e,t,r,o),t.child)}function Dm(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!$f(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,ay(e,t,s,r,o)):(e=Ha(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:mi,n(i,r)&&e.ref===t.ref)return Gn(e,t,o)}return t.flags|=1,e=_r(s,r),e.ref=t.ref,e.return=t,t.child=e}function ay(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(mi(s,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,Gn(e,t,o)}return ad(e,t,n,r,o)}function ly(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Bo,Ct),Ct|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(Bo,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Ce(Bo,Ct),Ct|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Ce(Bo,Ct),Ct|=r;return lt(e,t,o,n),t.child}function cy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ad(e,t,n,r,o){var s=xt(n)?ro:ot.current;return s=as(t,s),Go(t,o),n=Tf(e,t,n,r,s,o),r=Pf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gn(e,t,o)):(Pe&&r&&vf(t),t.flags|=1,lt(e,t,n,o),t.child)}function Lm(e,t,n,r,o){if(xt(n)){var s=!0;ll(t)}else s=!1;if(Go(t,o),t.stateNode===null)Ua(e,t),oy(t,n,r),sd(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ut(u):(u=xt(n)?ro:ot.current,u=as(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||c!==u)&&Rm(t,i,r,u),lr=!1;var m=t.memoizedState;i.state=m,hl(t,r,i,o),c=t.memoizedState,a!==r||m!==c||yt.current||lr?(typeof d=="function"&&(od(t,n,d,r),c=t.memoizedState),(a=lr||Pm(t,n,a,r,m,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Lv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:en(t.type,a),i.props=u,f=t.pendingProps,m=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ut(c):(c=xt(n)?ro:ot.current,c=as(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||m!==c)&&Rm(t,i,r,c),lr=!1,m=t.memoizedState,i.state=m,hl(t,r,i,o);var b=t.memoizedState;a!==f||m!==b||yt.current||lr?(typeof h=="function"&&(od(t,n,h,r),b=t.memoizedState),(u=lr||Pm(t,n,u,r,m,b,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return ld(e,t,n,r,s,o)}function ld(e,t,n,r,o,s){cy(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&km(t,n,!1),Gn(e,t,s);r=t.stateNode,vS.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=cs(t,e.child,null,s),t.child=cs(t,null,a,s)):lt(e,t,a,s),t.memoizedState=r.state,o&&km(t,n,!0),t.child}function uy(e){var t=e.stateNode;t.pendingContext?bm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bm(e,t.context,!1),Nf(e,t.containerInfo)}function Fm(e,t,n,r,o){return ls(),xf(o),t.flags|=256,lt(e,t,n,r),t.child}var cd={dehydrated:null,treeContext:null,retryLane:0};function ud(e){return{baseLanes:e,cachePool:null,transitions:null}}function dy(e,t,n){var r=t.pendingProps,o=Ae.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ce(Ae,o&1),e===null)return nd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Xl(i,r,0,null),e=no(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ud(n),t.memoizedState=cd,e):Of(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return yS(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=_r(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=_r(a,s):(s=no(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?ud(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=cd,r}return s=e.child,e=s.sibling,r=_r(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Of(e,t){return t=Xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wa(e,t,n,r){return r!==null&&xf(r),cs(t,e.child,null,n),e=Of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yS(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=iu(Error(O(422))),wa(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Xl({mode:"visible",children:r.children},o,0,null),s=no(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&cs(t,e.child,null,i),t.child.memoizedState=ud(i),t.memoizedState=cd,s);if(!(t.mode&1))return wa(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=iu(s,r,void 0),wa(e,t,i,r)}if(a=(i&e.childLanes)!==0,vt||a){if(r=Qe,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,qn(e,o),ln(r,e,o,-1))}return zf(),r=iu(Error(O(421))),wa(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=RS.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,jt=Cr(o.nextSibling),Et=t,Pe=!0,sn=null,e!==null&&(Dt[Lt++]=Bn,Dt[Lt++]=Un,Dt[Lt++]=oo,Bn=e.id,Un=e.overflow,oo=t),t=Of(t,r.children),t.flags|=4096,t)}function zm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rd(e.return,t,n)}function au(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function fy(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(lt(e,t,r.children,n),r=Ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,n,t);else if(e.tag===19)zm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ce(Ae,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ml(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),au(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ml(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}au(t,!0,n,null,s);break;case"together":au(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ua(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),io|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=_r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xS(e,t,n){switch(t.tag){case 3:uy(t),ls();break;case 5:Fv(t);break;case 1:xt(t.type)&&ll(t);break;case 4:Nf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ce(dl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?dy(e,t,n):(Ce(Ae,Ae.current&1),e=Gn(e,t,n),e!==null?e.sibling:null);Ce(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fy(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ce(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,ly(e,t,n)}return Gn(e,t,n)}var hy,dd,my,py;hy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};dd=function(){};my=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Kr(jn.current);var s=null;switch(n){case"input":o=Ou(e,o),r=Ou(e,r),s=[];break;case"select":o=Ie({},o,{value:void 0}),r=Ie({},r,{value:void 0}),s=[];break;case"textarea":o=Du(e,o),r=Du(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=il)}Fu(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ai.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&a[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ai.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&_e("scroll",e),s||a===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};py=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fs(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function wS(e,t,n){var r=t.pendingProps;switch(yf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return xt(t.type)&&al(),tt(t),null;case 3:return r=t.stateNode,us(),Te(yt),Te(ot),Ef(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ya(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sn!==null&&(xd(sn),sn=null))),dd(e,t),tt(t),null;case 5:jf(t);var o=Kr(xi.current);if(n=t.type,e!==null&&t.stateNode!=null)my(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return tt(t),null}if(e=Kr(jn.current),ya(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[vi]=s,e=(t.mode&1)!==0,n){case"dialog":_e("cancel",r),_e("close",r);break;case"iframe":case"object":case"embed":_e("load",r);break;case"video":case"audio":for(o=0;o<Hs.length;o++)_e(Hs[o],r);break;case"source":_e("error",r);break;case"img":case"image":case"link":_e("error",r),_e("load",r);break;case"details":_e("toggle",r);break;case"input":Kh(r,s),_e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},_e("invalid",r);break;case"textarea":Yh(r,s),_e("invalid",r)}Fu(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&va(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&va(r.textContent,a,e),o=["children",""+a]):ai.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&_e("scroll",r)}switch(n){case"input":ca(r),Qh(r,s,!0);break;case"textarea":ca(r),Zh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=il)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Vg(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Sn]=t,e[vi]=r,hy(e,t,!1,!1),t.stateNode=e;e:{switch(i=zu(n,r),n){case"dialog":_e("cancel",e),_e("close",e),o=r;break;case"iframe":case"object":case"embed":_e("load",e),o=r;break;case"video":case"audio":for(o=0;o<Hs.length;o++)_e(Hs[o],e);o=r;break;case"source":_e("error",e),o=r;break;case"img":case"image":case"link":_e("error",e),_e("load",e),o=r;break;case"details":_e("toggle",e),o=r;break;case"input":Kh(e,r),o=Ou(e,r),_e("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ie({},r,{value:void 0}),_e("invalid",e);break;case"textarea":Yh(e,r),o=Du(e,r),_e("invalid",e);break;default:o=r}Fu(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];s==="style"?qg(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Wg(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&li(e,c):typeof c=="number"&&li(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ai.hasOwnProperty(s)?c!=null&&s==="onScroll"&&_e("scroll",e):c!=null&&nf(e,s,c,i))}switch(n){case"input":ca(e),Qh(e,r,!1);break;case"textarea":ca(e),Zh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ar(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Vo(e,!!r.multiple,s,!1):r.defaultValue!=null&&Vo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=il)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tt(t),null;case 6:if(e&&t.stateNode!=null)py(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Kr(xi.current),Kr(jn.current),ya(t)){if(r=t.stateNode,n=t.memoizedProps,r[Sn]=t,(s=r.nodeValue!==n)&&(e=Et,e!==null))switch(e.tag){case 3:va(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&va(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Sn]=t,t.stateNode=r}return tt(t),null;case 13:if(Te(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&jt!==null&&t.mode&1&&!(t.flags&128))Ov(),ls(),t.flags|=98560,s=!1;else if(s=ya(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[Sn]=t}else ls(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),s=!1}else sn!==null&&(xd(sn),sn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ae.current&1?Ge===0&&(Ge=3):zf())),t.updateQueue!==null&&(t.flags|=4),tt(t),null);case 4:return us(),dd(e,t),e===null&&pi(t.stateNode.containerInfo),tt(t),null;case 10:return kf(t.type._context),tt(t),null;case 17:return xt(t.type)&&al(),tt(t),null;case 19:if(Te(Ae),s=t.memoizedState,s===null)return tt(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Fs(s,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=ml(e),i!==null){for(t.flags|=128,Fs(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Ae,Ae.current&1|2),t.child}e=e.sibling}s.tail!==null&&$e()>fs&&(t.flags|=128,r=!0,Fs(s,!1),t.lanes=4194304)}else{if(!r)if(e=ml(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Pe)return tt(t),null}else 2*$e()-s.renderingStartTime>fs&&n!==1073741824&&(t.flags|=128,r=!0,Fs(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=$e(),t.sibling=null,n=Ae.current,Ce(Ae,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Ff(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function bS(e,t){switch(yf(t),t.tag){case 1:return xt(t.type)&&al(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return us(),Te(yt),Te(ot),Ef(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jf(t),null;case 13:if(Te(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Ae),null;case 4:return us(),null;case 10:return kf(t.type._context),null;case 22:case 23:return Ff(),null;case 24:return null;default:return null}}var ba=!1,rt=!1,kS=typeof WeakSet=="function"?WeakSet:Set,B=null;function $o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){ze(e,t,r)}}var $m=!1;function SS(e,t){if(Qu=rl,e=wv(),gf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++u===o&&(a=i),m===s&&++d===r&&(c=i),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yu={focusedElem:e,selectionRange:n},rl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,w=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:en(t.type,v),w);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(k){ze(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return b=$m,$m=!1,b}function ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&fd(t,n,s)}o=o.next}while(o!==r)}}function Yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gy(e){var t=e.alternate;t!==null&&(e.alternate=null,gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[vi],delete t[Ju],delete t[sS],delete t[iS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vy(e){return e.tag===5||e.tag===3||e.tag===4}function Bm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function md(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=il));else if(r!==4&&(e=e.child,e!==null))for(md(e,t,n),e=e.sibling;e!==null;)md(e,t,n),e=e.sibling}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}var Ye=null,on=!1;function nr(e,t,n){for(n=n.child;n!==null;)yy(e,t,n),n=n.sibling}function yy(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:rt||$o(n,t);case 6:var r=Ye,o=on;Ye=null,nr(e,t,n),Ye=r,on=o,Ye!==null&&(on?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(on?(e=Ye,n=n.stateNode,e.nodeType===8?eu(e.parentNode,n):e.nodeType===1&&eu(e,n),fi(e)):eu(Ye,n.stateNode));break;case 4:r=Ye,o=on,Ye=n.stateNode.containerInfo,on=!0,nr(e,t,n),Ye=r,on=o;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&fd(n,t,i),o=o.next}while(o!==r)}nr(e,t,n);break;case 1:if(!rt&&($o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ze(n,t,a)}nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,nr(e,t,n),rt=r):nr(e,t,n);break;default:nr(e,t,n)}}function Um(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kS),t.forEach(function(r){var o=AS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Ye=a.stateNode,on=!1;break e;case 3:Ye=a.stateNode.containerInfo,on=!0;break e;case 4:Ye=a.stateNode.containerInfo,on=!0;break e}a=a.return}if(Ye===null)throw Error(O(160));yy(s,i,o),Ye=null,on=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){ze(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xy(t,e),t=t.sibling}function xy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xt(t,e),yn(e),r&4){try{ni(3,e,e.return),Yl(3,e)}catch(v){ze(e,e.return,v)}try{ni(5,e,e.return)}catch(v){ze(e,e.return,v)}}break;case 1:Xt(t,e),yn(e),r&512&&n!==null&&$o(n,n.return);break;case 5:if(Xt(t,e),yn(e),r&512&&n!==null&&$o(n,n.return),e.flags&32){var o=e.stateNode;try{li(o,"")}catch(v){ze(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Bg(o,s),zu(a,i);var u=zu(a,s);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?qg(o,f):d==="dangerouslySetInnerHTML"?Wg(o,f):d==="children"?li(o,f):nf(o,d,f,u)}switch(a){case"input":Mu(o,s);break;case"textarea":Ug(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Vo(o,!!s.multiple,h,!1):m!==!!s.multiple&&(s.defaultValue!=null?Vo(o,!!s.multiple,s.defaultValue,!0):Vo(o,!!s.multiple,s.multiple?[]:"",!1))}o[vi]=s}catch(v){ze(e,e.return,v)}}break;case 6:if(Xt(t,e),yn(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(v){ze(e,e.return,v)}}break;case 3:if(Xt(t,e),yn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(t.containerInfo)}catch(v){ze(e,e.return,v)}break;case 4:Xt(t,e),yn(e);break;case 13:Xt(t,e),yn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Df=$e())),r&4&&Um(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(rt=(u=rt)||d,Xt(t,e),rt=u):Xt(t,e),yn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(B=e,d=e.child;d!==null;){for(f=B=d;B!==null;){switch(m=B,h=m.child,m.tag){case 0:case 11:case 14:case 15:ni(4,m,m.return);break;case 1:$o(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(v){ze(r,n,v)}}break;case 5:$o(m,m.return);break;case 22:if(m.memoizedState!==null){Wm(f);continue}}h!==null?(h.return=m,B=h):Wm(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=Hg("display",i))}catch(v){ze(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){ze(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Xt(t,e),yn(e),r&4&&Um(e);break;case 21:break;default:Xt(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vy(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(li(o,""),r.flags&=-33);var s=Bm(e);pd(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Bm(e);md(e,a,i);break;default:throw Error(O(161))}}catch(c){ze(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function CS(e,t,n){B=e,wy(e)}function wy(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||ba;if(!i){var a=o.alternate,c=a!==null&&a.memoizedState!==null||rt;a=ba;var u=rt;if(ba=i,(rt=c)&&!u)for(B=o;B!==null;)i=B,c=i.child,i.tag===22&&i.memoizedState!==null?Hm(o):c!==null?(c.return=i,B=c):Hm(o);for(;s!==null;)B=s,wy(s),s=s.sibling;B=o,ba=a,rt=u}Vm(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,B=s):Vm(e)}}function Vm(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rt||Yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Em(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Em(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fi(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}rt||t.flags&512&&hd(t)}catch(m){ze(t,t.return,m)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Wm(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Hm(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yl(4,t)}catch(c){ze(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){ze(t,o,c)}}var s=t.return;try{hd(t)}catch(c){ze(t,s,c)}break;case 5:var i=t.return;try{hd(t)}catch(c){ze(t,i,c)}}}catch(c){ze(t,t.return,c)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var NS=Math.ceil,vl=Yn.ReactCurrentDispatcher,Mf=Yn.ReactCurrentOwner,$t=Yn.ReactCurrentBatchConfig,ue=0,Qe=null,Be=null,Ze=0,Ct=0,Bo=zr(0),Ge=0,Si=null,io=0,Zl=0,If=0,ri=null,gt=null,Df=0,fs=1/0,Fn=null,yl=!1,gd=null,jr=null,ka=!1,yr=null,xl=0,oi=0,vd=null,Va=-1,Wa=0;function ut(){return ue&6?$e():Va!==-1?Va:Va=$e()}function Er(e){return e.mode&1?ue&2&&Ze!==0?Ze&-Ze:lS.transition!==null?(Wa===0&&(Wa=ov()),Wa):(e=we,e!==0||(e=window.event,e=e===void 0?16:dv(e.type)),e):1}function ln(e,t,n,r){if(50<oi)throw oi=0,vd=null,Error(O(185));Bi(e,n,r),(!(ue&2)||e!==Qe)&&(e===Qe&&(!(ue&2)&&(Zl|=n),Ge===4&&dr(e,Ze)),wt(e,r),n===1&&ue===0&&!(t.mode&1)&&(fs=$e()+500,Gl&&$r()))}function wt(e,t){var n=e.callbackNode;lk(e,t);var r=nl(e,e===Qe?Ze:0);if(r===0)n!==null&&em(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&em(n),t===1)e.tag===0?aS(qm.bind(null,e)):Pv(qm.bind(null,e)),rS(function(){!(ue&6)&&$r()}),n=null;else{switch(sv(r)){case 1:n=lf;break;case 4:n=nv;break;case 16:n=tl;break;case 536870912:n=rv;break;default:n=tl}n=_y(n,by.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function by(e,t){if(Va=-1,Wa=0,ue&6)throw Error(O(327));var n=e.callbackNode;if(Ko()&&e.callbackNode!==n)return null;var r=nl(e,e===Qe?Ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=wl(e,r);else{t=r;var o=ue;ue|=2;var s=Sy();(Qe!==e||Ze!==t)&&(Fn=null,fs=$e()+500,to(e,t));do try{_S();break}catch(a){ky(e,a)}while(!0);bf(),vl.current=s,ue=o,Be!==null?t=0:(Qe=null,Ze=0,t=Ge)}if(t!==0){if(t===2&&(o=Wu(e),o!==0&&(r=o,t=yd(e,o))),t===1)throw n=Si,to(e,0),dr(e,r),wt(e,$e()),n;if(t===6)dr(e,r);else{if(o=e.current.alternate,!(r&30)&&!jS(o)&&(t=wl(e,r),t===2&&(s=Wu(e),s!==0&&(r=s,t=yd(e,s))),t===1))throw n=Si,to(e,0),dr(e,r),wt(e,$e()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Wr(e,gt,Fn);break;case 3:if(dr(e,r),(r&130023424)===r&&(t=Df+500-$e(),10<t)){if(nl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Xu(Wr.bind(null,e,gt,Fn),t);break}Wr(e,gt,Fn);break;case 4:if(dr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-an(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NS(r/1960))-r,10<r){e.timeoutHandle=Xu(Wr.bind(null,e,gt,Fn),r);break}Wr(e,gt,Fn);break;case 5:Wr(e,gt,Fn);break;default:throw Error(O(329))}}}return wt(e,$e()),e.callbackNode===n?by.bind(null,e):null}function yd(e,t){var n=ri;return e.current.memoizedState.isDehydrated&&(to(e,t).flags|=256),e=wl(e,t),e!==2&&(t=gt,gt=n,t!==null&&xd(t)),e}function xd(e){gt===null?gt=e:gt.push.apply(gt,e)}function jS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!un(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dr(e,t){for(t&=~If,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-an(t),r=1<<n;e[n]=-1,t&=~r}}function qm(e){if(ue&6)throw Error(O(327));Ko();var t=nl(e,0);if(!(t&1))return wt(e,$e()),null;var n=wl(e,t);if(e.tag!==0&&n===2){var r=Wu(e);r!==0&&(t=r,n=yd(e,r))}if(n===1)throw n=Si,to(e,0),dr(e,t),wt(e,$e()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wr(e,gt,Fn),wt(e,$e()),null}function Lf(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(fs=$e()+500,Gl&&$r())}}function ao(e){yr!==null&&yr.tag===0&&!(ue&6)&&Ko();var t=ue;ue|=1;var n=$t.transition,r=we;try{if($t.transition=null,we=1,e)return e()}finally{we=r,$t.transition=n,ue=t,!(ue&6)&&$r()}}function Ff(){Ct=Bo.current,Te(Bo)}function to(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,nS(n)),Be!==null)for(n=Be.return;n!==null;){var r=n;switch(yf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&al();break;case 3:us(),Te(yt),Te(ot),Ef();break;case 5:jf(r);break;case 4:us();break;case 13:Te(Ae);break;case 19:Te(Ae);break;case 10:kf(r.type._context);break;case 22:case 23:Ff()}n=n.return}if(Qe=e,Be=e=_r(e.current,null),Ze=Ct=t,Ge=0,Si=null,If=Zl=io=0,gt=ri=null,Gr!==null){for(t=0;t<Gr.length;t++)if(n=Gr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}Gr=null}return e}function ky(e,t){do{var n=Be;try{if(bf(),$a.current=gl,pl){for(var r=Me.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}pl=!1}if(so=0,Ke=qe=Me=null,ti=!1,wi=0,Mf.current=null,n===null||n.return===null){Ge=1,Si=t,Be=null;break}e:{var s=e,i=n.return,a=n,c=t;if(t=Ze,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Om(i);if(h!==null){h.flags&=-257,Mm(h,i,a,s,t),h.mode&1&&Am(s,u,t),t=h,c=u;var b=t.updateQueue;if(b===null){var v=new Set;v.add(c),t.updateQueue=v}else b.add(c);break e}else{if(!(t&1)){Am(s,u,t),zf();break e}c=Error(O(426))}}else if(Pe&&a.mode&1){var w=Om(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Mm(w,i,a,s,t),xf(ds(c,a));break e}}s=c=ds(c,a),Ge!==4&&(Ge=2),ri===null?ri=[s]:ri.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=sy(s,c,t);jm(s,g);break e;case 1:a=c;var y=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(jr===null||!jr.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=iy(s,a,t);jm(s,k);break e}}s=s.return}while(s!==null)}Ny(n)}catch(S){t=S,Be===n&&n!==null&&(Be=n=n.return);continue}break}while(!0)}function Sy(){var e=vl.current;return vl.current=gl,e===null?gl:e}function zf(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Qe===null||!(io&268435455)&&!(Zl&268435455)||dr(Qe,Ze)}function wl(e,t){var n=ue;ue|=2;var r=Sy();(Qe!==e||Ze!==t)&&(Fn=null,to(e,t));do try{ES();break}catch(o){ky(e,o)}while(!0);if(bf(),ue=n,vl.current=r,Be!==null)throw Error(O(261));return Qe=null,Ze=0,Ge}function ES(){for(;Be!==null;)Cy(Be)}function _S(){for(;Be!==null&&!Jb();)Cy(Be)}function Cy(e){var t=Ey(e.alternate,e,Ct);e.memoizedProps=e.pendingProps,t===null?Ny(e):Be=t,Mf.current=null}function Ny(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bS(n,t),n!==null){n.flags&=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Be=null;return}}else if(n=wS(n,t,Ct),n!==null){Be=n;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Ge===0&&(Ge=5)}function Wr(e,t,n){var r=we,o=$t.transition;try{$t.transition=null,we=1,TS(e,t,n,r)}finally{$t.transition=o,we=r}return null}function TS(e,t,n,r){do Ko();while(yr!==null);if(ue&6)throw Error(O(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(ck(e,s),e===Qe&&(Be=Qe=null,Ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ka||(ka=!0,_y(tl,function(){return Ko(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=$t.transition,$t.transition=null;var i=we;we=1;var a=ue;ue|=4,Mf.current=null,SS(e,n),xy(n,e),Qk(Yu),rl=!!Qu,Yu=Qu=null,e.current=n,CS(n),ek(),ue=a,we=i,$t.transition=s}else e.current=n;if(ka&&(ka=!1,yr=e,xl=o),s=e.pendingLanes,s===0&&(jr=null),rk(n.stateNode),wt(e,$e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(yl)throw yl=!1,e=gd,gd=null,e;return xl&1&&e.tag!==0&&Ko(),s=e.pendingLanes,s&1?e===vd?oi++:(oi=0,vd=e):oi=0,$r(),null}function Ko(){if(yr!==null){var e=sv(xl),t=$t.transition,n=we;try{if($t.transition=null,we=16>e?16:e,yr===null)var r=!1;else{if(e=yr,yr=null,xl=0,ue&6)throw Error(O(331));var o=ue;for(ue|=4,B=e.current;B!==null;){var s=B,i=s.child;if(B.flags&16){var a=s.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(B=u;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:ni(8,d,s)}var f=d.child;if(f!==null)f.return=d,B=f;else for(;B!==null;){d=B;var m=d.sibling,h=d.return;if(gy(d),d===u){B=null;break}if(m!==null){m.return=h,B=m;break}B=h}}}var b=s.alternate;if(b!==null){var v=b.child;if(v!==null){b.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}B=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,B=i;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ni(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,B=g;break e}B=s.return}}var y=e.current;for(B=y;B!==null;){i=B;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,B=x;else e:for(i=y;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Yl(9,a)}}catch(S){ze(a,a.return,S)}if(a===i){B=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,B=k;break e}B=a.return}}if(ue=o,$r(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Ul,e)}catch{}r=!0}return r}finally{we=n,$t.transition=t}}return!1}function Gm(e,t,n){t=ds(n,t),t=sy(e,t,1),e=Nr(e,t,1),t=ut(),e!==null&&(Bi(e,1,t),wt(e,t))}function ze(e,t,n){if(e.tag===3)Gm(e,e,n);else for(;t!==null;){if(t.tag===3){Gm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jr===null||!jr.has(r))){e=ds(n,e),e=iy(t,e,1),t=Nr(t,e,1),e=ut(),t!==null&&(Bi(t,1,e),wt(t,e));break}}t=t.return}}function PS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,Qe===e&&(Ze&n)===n&&(Ge===4||Ge===3&&(Ze&130023424)===Ze&&500>$e()-Df?to(e,0):If|=n),wt(e,t)}function jy(e,t){t===0&&(e.mode&1?(t=fa,fa<<=1,!(fa&130023424)&&(fa=4194304)):t=1);var n=ut();e=qn(e,t),e!==null&&(Bi(e,t,n),wt(e,n))}function RS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jy(e,n)}function AS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),jy(e,n)}var Ey;Ey=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,xS(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Pe&&t.flags&1048576&&Rv(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ua(e,t),e=t.pendingProps;var o=as(t,ot.current);Go(t,n),o=Tf(null,t,r,e,o,n);var s=Pf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(r)?(s=!0,ll(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Cf(t),o.updater=Ql,t.stateNode=o,o._reactInternals=t,sd(t,r,e,n),t=ld(null,t,r,!0,s,n)):(t.tag=0,Pe&&s&&vf(t),lt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ua(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MS(r),e=en(r,e),o){case 0:t=ad(null,t,r,e,n);break e;case 1:t=Lm(null,t,r,e,n);break e;case 11:t=Im(null,t,r,e,n);break e;case 14:t=Dm(null,t,r,en(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),ad(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Lm(e,t,r,o,n);case 3:e:{if(uy(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Lv(e,t),hl(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ds(Error(O(423)),t),t=Fm(e,t,r,n,o);break e}else if(r!==o){o=ds(Error(O(424)),t),t=Fm(e,t,r,n,o);break e}else for(jt=Cr(t.stateNode.containerInfo.firstChild),Et=t,Pe=!0,sn=null,n=Iv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ls(),r===o){t=Gn(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return Fv(t),e===null&&nd(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Zu(r,o)?i=null:s!==null&&Zu(r,s)&&(t.flags|=32),cy(e,t),lt(e,t,i,n),t.child;case 6:return e===null&&nd(t),null;case 13:return dy(e,t,n);case 4:return Nf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cs(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Im(e,t,r,o,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Ce(dl,r._currentValue),r._currentValue=i,s!==null)if(un(s.value,i)){if(s.children===o.children&&!yt.current){t=Gn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Vn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),rd(s.return,n,t),a.lanes|=n;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(O(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),rd(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}lt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Go(t,n),o=Ut(o),r=r(o),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,o=en(r,t.pendingProps),o=en(r.type,o),Dm(e,t,r,o,n);case 15:return ay(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Ua(e,t),t.tag=1,xt(r)?(e=!0,ll(t)):e=!1,Go(t,n),oy(t,r,o),sd(t,r,o,n),ld(null,t,r,!0,e,n);case 19:return fy(e,t,n);case 22:return ly(e,t,n)}throw Error(O(156,t.tag))};function _y(e,t){return tv(e,t)}function OS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new OS(e,t,n,r)}function $f(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MS(e){if(typeof e=="function")return $f(e)?1:0;if(e!=null){if(e=e.$$typeof,e===of)return 11;if(e===sf)return 14}return 2}function _r(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ha(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")$f(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ro:return no(n.children,o,s,t);case rf:i=8,o|=8;break;case Tu:return e=zt(12,n,t,o|2),e.elementType=Tu,e.lanes=s,e;case Pu:return e=zt(13,n,t,o),e.elementType=Pu,e.lanes=s,e;case Ru:return e=zt(19,n,t,o),e.elementType=Ru,e.lanes=s,e;case Fg:return Xl(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dg:i=10;break e;case Lg:i=9;break e;case of:i=11;break e;case sf:i=14;break e;case ar:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=zt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function no(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=zt(22,e,r,t),e.elementType=Fg,e.lanes=n,e.stateNode={isHidden:!1},e}function lu(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function cu(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vc(0),this.expirationTimes=Vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,o,s,i,a,c){return e=new IS(e,t,n,a,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=zt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cf(s),e}function DS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Po,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ty(e){if(!e)return Or;e=e._reactInternals;e:{if(mo(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(xt(n))return Tv(e,n,t)}return t}function Py(e,t,n,r,o,s,i,a,c){return e=Bf(n,r,!0,e,o,s,i,a,c),e.context=Ty(null),n=e.current,r=ut(),o=Er(n),s=Vn(r,o),s.callback=t??null,Nr(n,s,o),e.current.lanes=o,Bi(e,o,r),wt(e,r),e}function Jl(e,t,n,r){var o=t.current,s=ut(),i=Er(o);return n=Ty(n),t.context===null?t.context=n:t.pendingContext=n,t=Vn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nr(o,t,i),e!==null&&(ln(e,o,i,s),za(e,o,i)),i}function bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Km(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uf(e,t){Km(e,t),(e=e.alternate)&&Km(e,t)}function LS(){return null}var Ry=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vf(e){this._internalRoot=e}ec.prototype.render=Vf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Jl(e,t,null,null)};ec.prototype.unmount=Vf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ao(function(){Jl(null,e,null,null)}),t[Hn]=null}};function ec(e){this._internalRoot=e}ec.prototype.unstable_scheduleHydration=function(e){if(e){var t=lv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ur.length&&t!==0&&t<ur[n].priority;n++);ur.splice(n,0,e),n===0&&uv(e)}};function Wf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qm(){}function FS(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=bl(i);s.call(u)}}var i=Py(t,r,e,0,null,!1,!1,"",Qm);return e._reactRootContainer=i,e[Hn]=i.current,pi(e.nodeType===8?e.parentNode:e),ao(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=bl(c);a.call(u)}}var c=Bf(e,0,!1,null,null,!1,!1,"",Qm);return e._reactRootContainer=c,e[Hn]=c.current,pi(e.nodeType===8?e.parentNode:e),ao(function(){Jl(t,c,n,r)}),c}function nc(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var c=bl(i);a.call(c)}}Jl(t,i,e,o)}else i=FS(n,t,e,o,r);return bl(i)}iv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ws(t.pendingLanes);n!==0&&(cf(t,n|1),wt(t,$e()),!(ue&6)&&(fs=$e()+500,$r()))}break;case 13:ao(function(){var r=qn(e,1);if(r!==null){var o=ut();ln(r,e,1,o)}}),Uf(e,1)}};uf=function(e){if(e.tag===13){var t=qn(e,134217728);if(t!==null){var n=ut();ln(t,e,134217728,n)}Uf(e,134217728)}};av=function(e){if(e.tag===13){var t=Er(e),n=qn(e,t);if(n!==null){var r=ut();ln(n,e,t,r)}Uf(e,t)}};lv=function(){return we};cv=function(e,t){var n=we;try{return we=e,t()}finally{we=n}};Bu=function(e,t,n){switch(t){case"input":if(Mu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ql(r);if(!o)throw Error(O(90));$g(r),Mu(r,o)}}}break;case"textarea":Ug(e,n);break;case"select":t=n.value,t!=null&&Vo(e,!!n.multiple,t,!1)}};Qg=Lf;Yg=ao;var zS={usingClientEntryPoint:!1,Events:[Vi,Io,ql,Gg,Kg,Lf]},zs={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$S={bundleType:zs.bundleType,version:zs.version,rendererPackageName:zs.rendererPackageName,rendererConfig:zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jg(e),e===null?null:e.stateNode},findFiberByHostInstance:zs.findFiberByHostInstance||LS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sa.isDisabled&&Sa.supportsFiber)try{Ul=Sa.inject($S),Nn=Sa}catch{}}Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zS;Ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wf(t))throw Error(O(200));return DS(e,t,null,n)};Ot.createRoot=function(e,t){if(!Wf(e))throw Error(O(299));var n=!1,r="",o=Ry;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Bf(e,1,!1,null,null,n,!1,r,o),e[Hn]=t.current,pi(e.nodeType===8?e.parentNode:e),new Vf(t)};Ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=Jg(t),e=e===null?null:e.stateNode,e};Ot.flushSync=function(e){return ao(e)};Ot.hydrate=function(e,t,n){if(!tc(t))throw Error(O(200));return nc(null,e,t,!0,n)};Ot.hydrateRoot=function(e,t,n){if(!Wf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Ry;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Py(t,null,e,1,n??null,o,!1,s,i),e[Hn]=t.current,pi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ec(t)};Ot.render=function(e,t,n){if(!tc(t))throw Error(O(200));return nc(null,e,t,!1,n)};Ot.unmountComponentAtNode=function(e){if(!tc(e))throw Error(O(40));return e._reactRootContainer?(ao(function(){nc(null,null,e,!1,function(){e._reactRootContainer=null,e[Hn]=null})}),!0):!1};Ot.unstable_batchedUpdates=Lf;Ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tc(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return nc(e,t,n,!1,r)};Ot.version="18.3.1-next-f1338f8080-20240426";function Ay(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ay)}catch(e){console.error(e)}}Ay(),Ag.exports=Ot;var Hi=Ag.exports;const Oy=wg(Hi);var My,Ym=Hi;My=Ym.createRoot,Ym.hydrateRoot;const BS=1,US=1e6;let uu=0;function VS(){return uu=(uu+1)%Number.MAX_SAFE_INTEGER,uu.toString()}const du=new Map,Zm=e=>{if(du.has(e))return;const t=setTimeout(()=>{du.delete(e),si({type:"REMOVE_TOAST",toastId:e})},US);du.set(e,t)},WS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,BS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Zm(n):e.toasts.forEach(r=>{Zm(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},qa=[];let Ga={toasts:[]};function si(e){Ga=WS(Ga,e),qa.forEach(t=>{t(Ga)})}function HS({...e}){const t=VS(),n=o=>si({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>si({type:"DISMISS_TOAST",toastId:t});return si({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Iy(){const[e,t]=p.useState(Ga);return p.useEffect(()=>(qa.push(t),()=>{const n=qa.indexOf(t);n>-1&&qa.splice(n,1)}),[e]),{...e,toast:HS,dismiss:n=>si({type:"DISMISS_TOAST",toastId:n})}}function G(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rc(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Xm(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Xm(e[o],null)}}}}function De(...e){return p.useCallback(rc(...e),e)}function qS(e,t){const n=p.createContext(t),r=s=>{const{children:i,...a}=s,c=p.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function An(e,t=[]){let n=[];function r(s,i){const a=p.createContext(i),c=n.length;n=[...n,i];const u=f=>{var g;const{scope:m,children:h,...b}=f,v=((g=m==null?void 0:m[e])==null?void 0:g[c])||a,w=p.useMemo(()=>b,Object.values(b));return l.jsx(v.Provider,{value:w,children:h})};u.displayName=s+"Provider";function d(f,m){var v;const h=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,b=p.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>p.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,GS(o,...t)]}function GS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function hs(e){const t=QS(e),n=p.forwardRef((r,o)=>{const{children:s,...i}=r,a=p.Children.toArray(s),c=a.find(ZS);if(c){const u=c.props.children,d=a.map(f=>f===c?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,d):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var KS=hs("Slot");function QS(e){const t=p.forwardRef((n,r)=>{const{children:o,...s}=n;if(p.isValidElement(o)){const i=JS(o),a=XS(s,o.props);return o.type!==p.Fragment&&(a.ref=r?rc(r,i):i),p.cloneElement(o,a)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dy=Symbol("radix.slottable");function YS(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Dy,t}function ZS(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dy}function XS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function JS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function oc(e){const t=e+"CollectionProvider",[n,r]=An(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:w,children:g}=v,y=A.useRef(null),x=A.useRef(new Map).current;return l.jsx(o,{scope:w,itemMap:x,collectionRef:y,children:g})};i.displayName=t;const a=e+"CollectionSlot",c=hs(a),u=A.forwardRef((v,w)=>{const{scope:g,children:y}=v,x=s(a,g),k=De(w,x.collectionRef);return l.jsx(c,{ref:k,children:y})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=hs(d),h=A.forwardRef((v,w)=>{const{scope:g,children:y,...x}=v,k=A.useRef(null),S=De(w,k),N=s(d,g);return A.useEffect(()=>(N.itemMap.set(k,{ref:k,...x}),()=>void N.itemMap.delete(k))),l.jsx(m,{[f]:"",ref:S,children:y})});h.displayName=d;function b(v){const w=s(e+"CollectionConsumer",v);return A.useCallback(()=>{const y=w.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((N,C)=>x.indexOf(N.ref.current)-x.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},b,r]}var eC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=eC.reduce((e,t)=>{const n=hs(`Primitive.${t}`),r=p.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Hf(e,t){e&&Hi.flushSync(()=>e.dispatchEvent(t))}function Pt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function tC(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nC="DismissableLayer",wd="dismissableLayer.update",rC="dismissableLayer.pointerDownOutside",oC="dismissableLayer.focusOutside",Jm,Ly=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qi=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=p.useContext(Ly),[d,f]=p.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=p.useState({}),b=De(t,C=>f(C)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(w),y=d?v.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=y>=g,S=iC(C=>{const E=C.target,T=[...u.branches].some(R=>R.contains(E));!k||T||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},m),N=aC(C=>{const E=C.target;[...u.branches].some(R=>R.contains(E))||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},m);return tC(C=>{y===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},m),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Jm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ep(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Jm)}},[d,m,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ep())},[d,u]),p.useEffect(()=>{const C=()=>h({});return document.addEventListener(wd,C),()=>document.removeEventListener(wd,C)},[]),l.jsx(de.div,{...c,ref:b,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:G(e.onFocusCapture,N.onFocusCapture),onBlurCapture:G(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,S.onPointerDownCapture)})});qi.displayName=nC;var sC="DismissableLayerBranch",Fy=p.forwardRef((e,t)=>{const n=p.useContext(Ly),r=p.useRef(null),o=De(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(de.div,{...e,ref:o})});Fy.displayName=sC;function iC(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){zy(rC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function aC(e,t=globalThis==null?void 0:globalThis.document){const n=Pt(e),r=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!r.current&&zy(oC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ep(){const e=new CustomEvent(wd);document.dispatchEvent(e)}function zy(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hf(o,s):o.dispatchEvent(s)}var lC=qi,cC=Fy,Tn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},uC="Portal",sc=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=p.useState(!1);Tn(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Oy.createPortal(l.jsx(de.div,{...r,ref:t}),i):null});sc.displayName=uC;function dC(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var hn=e=>{const{present:t,children:n}=e,r=fC(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=De(r.ref,hC(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:s}):null};hn.displayName="Presence";function fC(e){const[t,n]=p.useState(),r=p.useRef(null),o=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[a,c]=dC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Ca(r.current);s.current=a==="mounted"?u:"none"},[a]),Tn(()=>{const u=r.current,d=o.current;if(d!==e){const m=s.current,h=Ca(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Tn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const v=Ca(r.current).includes(h.animationName);if(h.target===t&&v&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=h=>{h.target===t&&(s.current=Ca(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ca(e){return(e==null?void 0:e.animationName)||"none"}function hC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mC=Jd[" useInsertionEffect ".trim().toString()]||Tn;function po({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=pC({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=p.useCallback(d=>{var f;if(a){const m=gC(d)?d(e):d;m!==e&&((f=i.current)==null||f.call(i,m))}else s(d)},[a,e,s,i]);return[c,u]}function pC({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),o=p.useRef(n),s=p.useRef(t);return mC(()=>{s.current=t},[t]),p.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function gC(e){return typeof e=="function"}var vC=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"}),yC="VisuallyHidden",ic=p.forwardRef((e,t)=>l.jsx(de.span,{...e,ref:t,style:{...vC,...e.style}}));ic.displayName=yC;var xC=ic,qf="ToastProvider",[Gf,wC,bC]=oc("Toast"),[$y,$O]=An("Toast",[bC]),[kC,ac]=$y(qf),By=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,c]=p.useState(null),[u,d]=p.useState(0),f=p.useRef(!1),m=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qf}\`. Expected non-empty \`string\`.`),l.jsx(Gf.Provider,{scope:t,children:l.jsx(kC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:c,onToastAdd:p.useCallback(()=>d(h=>h+1),[]),onToastRemove:p.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:i})})};By.displayName=qf;var Uy="ToastViewport",SC=["F8"],bd="toast.viewportPause",kd="toast.viewportResume",Vy=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=SC,label:o="Notifications ({hotkey})",...s}=e,i=ac(Uy,n),a=wC(n),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),m=De(t,f,i.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;p.useEffect(()=>{const w=g=>{var x;r.length!==0&&r.every(k=>g[k]||g.code===k)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),p.useEffect(()=>{const w=c.current,g=f.current;if(b&&w&&g){const y=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(bd);g.dispatchEvent(N),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(kd);g.dispatchEvent(N),i.isClosePausedRef.current=!1}},k=N=>{!w.contains(N.relatedTarget)&&x()},S=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",y),w.addEventListener("focusout",k),w.addEventListener("pointermove",y),w.addEventListener("pointerleave",S),window.addEventListener("blur",y),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",y),w.removeEventListener("focusout",k),w.removeEventListener("pointermove",y),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",y),window.removeEventListener("focus",x)}}},[b,i.isClosePausedRef]);const v=p.useCallback(({tabbingDirection:w})=>{const y=a().map(x=>{const k=x.ref.current,S=[k,...DC(k)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?y.reverse():y).flat()},[a]);return p.useEffect(()=>{const w=f.current;if(w){const g=y=>{var S,N,C;const x=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!x){const E=document.activeElement,T=y.shiftKey;if(y.target===w&&T){(S=u.current)==null||S.focus();return}const L=v({tabbingDirection:T?"backwards":"forwards"}),K=L.findIndex(M=>M===E);fu(L.slice(K+1))?y.preventDefault():T?(N=u.current)==null||N.focus():(C=d.current)==null||C.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,v]),l.jsxs(cC,{ref:c,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&l.jsx(Sd,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});fu(w)}}),l.jsx(Gf.Slot,{scope:n,children:l.jsx(de.ol,{tabIndex:-1,...s,ref:m})}),b&&l.jsx(Sd,{ref:d,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});fu(w)}})]})});Vy.displayName=Uy;var Wy="ToastFocusProxy",Sd=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=ac(Wy,n);return l.jsx(ic,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Sd.displayName=Wy;var Gi="Toast",CC="toast.swipeStart",NC="toast.swipeMove",jC="toast.swipeCancel",EC="toast.swipeEnd",Hy=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,c]=po({prop:r,defaultProp:o??!0,onChange:s,caller:Gi});return l.jsx(hn,{present:n||a,children:l.jsx(PC,{open:a,...i,ref:t,onClose:()=>c(!1),onPause:Pt(e.onPause),onResume:Pt(e.onResume),onSwipeStart:G(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:G(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:G(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:G(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});Hy.displayName=Gi;var[_C,TC]=$y(Gi,{onClose(){}}),PC=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:h,...b}=e,v=ac(Gi,n),[w,g]=p.useState(null),y=De(t,M=>g(M)),x=p.useRef(null),k=p.useRef(null),S=o||v.duration,N=p.useRef(0),C=p.useRef(S),E=p.useRef(0),{onToastAdd:T,onToastRemove:R}=v,F=Pt(()=>{var Z;(w==null?void 0:w.contains(document.activeElement))&&((Z=v.viewport)==null||Z.focus()),i()}),L=p.useCallback(M=>{!M||M===1/0||(window.clearTimeout(E.current),N.current=new Date().getTime(),E.current=window.setTimeout(F,M))},[F]);p.useEffect(()=>{const M=v.viewport;if(M){const Z=()=>{L(C.current),u==null||u()},V=()=>{const Q=new Date().getTime()-N.current;C.current=C.current-Q,window.clearTimeout(E.current),c==null||c()};return M.addEventListener(bd,V),M.addEventListener(kd,Z),()=>{M.removeEventListener(bd,V),M.removeEventListener(kd,Z)}}},[v.viewport,S,c,u,L]),p.useEffect(()=>{s&&!v.isClosePausedRef.current&&L(S)},[s,S,v.isClosePausedRef,L]),p.useEffect(()=>(T(),()=>R()),[T,R]);const K=p.useMemo(()=>w?Xy(w):null,[w]);return v.viewport?l.jsxs(l.Fragment,{children:[K&&l.jsx(RC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),l.jsx(_C,{scope:n,onClose:F,children:Hi.createPortal(l.jsx(Gf.ItemSlot,{scope:n,children:l.jsx(lC,{asChild:!0,onEscapeKeyDown:G(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||F(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(de.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:G(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:G(e.onPointerDown,M=>{M.button===0&&(x.current={x:M.clientX,y:M.clientY})}),onPointerMove:G(e.onPointerMove,M=>{if(!x.current)return;const Z=M.clientX-x.current.x,V=M.clientY-x.current.y,Q=!!k.current,_=["left","right"].includes(v.swipeDirection),j=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=_?j(0,Z):0,U=_?0:j(0,V),$=M.pointerType==="touch"?10:2,ee={x:D,y:U},J={originalEvent:M,delta:ee};Q?(k.current=ee,Na(NC,f,J,{discrete:!1})):tp(ee,v.swipeDirection,$)?(k.current=ee,Na(CC,d,J,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Z)>$||Math.abs(V)>$)&&(x.current=null)}),onPointerUp:G(e.onPointerUp,M=>{const Z=k.current,V=M.target;if(V.hasPointerCapture(M.pointerId)&&V.releasePointerCapture(M.pointerId),k.current=null,x.current=null,Z){const Q=M.currentTarget,_={originalEvent:M,delta:Z};tp(Z,v.swipeDirection,v.swipeThreshold)?Na(EC,h,_,{discrete:!0}):Na(jC,m,_,{discrete:!0}),Q.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),RC=e=>{const{__scopeToast:t,children:n,...r}=e,o=ac(Gi,t),[s,i]=p.useState(!1),[a,c]=p.useState(!1);return MC(()=>i(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(sc,{asChild:!0,children:l.jsx(ic,{...r,children:s&&l.jsxs(l.Fragment,{children:[o.label," ",n]})})})},AC="ToastTitle",qy=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(de.div,{...r,ref:t})});qy.displayName=AC;var OC="ToastDescription",Gy=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(de.div,{...r,ref:t})});Gy.displayName=OC;var Ky="ToastAction",Qy=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(Zy,{altText:n,asChild:!0,children:l.jsx(Kf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ky}\`. Expected non-empty \`string\`.`),null)});Qy.displayName=Ky;var Yy="ToastClose",Kf=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=TC(Yy,n);return l.jsx(Zy,{asChild:!0,children:l.jsx(de.button,{type:"button",...r,ref:t,onClick:G(e.onClick,o.onClose)})})});Kf.displayName=Yy;var Zy=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsx(de.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Xy(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),IC(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Xy(r))}}),t}function Na(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hf(o,s):o.dispatchEvent(s)}var tp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function MC(e=()=>{}){const t=Pt(e);Tn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function IC(e){return e.nodeType===e.ELEMENT_NODE}function DC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var LC=By,Jy=Vy,ex=Hy,tx=qy,nx=Gy,rx=Qy,ox=Kf;function sx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=sx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ix(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=sx(e))&&(r&&(r+=" "),r+=t);return r}const np=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rp=ix,Qf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const m=np(d)||np(f);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(b=>{let[v,w]=b;return Array.isArray(w)?w.includes({...s,...a}[v]):{...s,...a}[v]===w})?[...u,f,m]:u},[]);return rp(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ax=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var zC={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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $C=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>p.createElement("svg",{ref:c,...zC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ax("lucide",o),...a},[...i.map(([u,d])=>p.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.462.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=(e,t)=>{const n=p.forwardRef(({className:r,...o},s)=>p.createElement($C,{ref:s,iconNode:t,className:ax(`lucide-${FC(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lx=fe("Accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qs=fe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lc=fe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cx=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ux=fe("Bath",[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BC=fe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UC=fe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kl=fe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VC=fe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dx=fe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const go=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WC=fe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cc=fe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HC=fe("DoorOpen",[["path",{d:"M13 4h3a2 2 0 0 1 2 2v14",key:"hrm0s9"}],["path",{d:"M2 20h3",key:"1gaodv"}],["path",{d:"M13 20h9",key:"s90cdi"}],["path",{d:"M10 12v.01",key:"vx6srw"}],["path",{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z",key:"199qr4"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qC=fe("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GC=fe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KC=fe("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fx=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vo=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hx=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uo=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QC=fe("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YC=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rt=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uc=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mx=fe("ShowerHead",[["path",{d:"m4 4 2.5 2.5",key:"uv2vmf"}],["path",{d:"M13.5 6.5a4.95 4.95 0 0 0-7 7",key:"frdkwv"}],["path",{d:"M15 5 5 15",key:"1ag8rq"}],["path",{d:"M14 17v.01",key:"eokfpp"}],["path",{d:"M10 16v.01",key:"14uyyl"}],["path",{d:"M13 13v.01",key:"1v1k97"}],["path",{d:"M16 10v.01",key:"5169yg"}],["path",{d:"M11 20v.01",key:"cj92p8"}],["path",{d:"M17 14v.01",key:"11cswd"}],["path",{d:"M20 11v.01",key:"19e0od"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Br=fe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cd=fe("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dc=fe("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZC=fe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const px=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yf=fe("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.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zf=fe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xf="-",XC=e=>{const t=eN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Xf);return a[0]===""&&a.length!==1&&a.shift(),gx(a,t)||JC(i)},getConflictingClassGroupIds:(i,a)=>{const c=n[i]||[];return a&&r[i]?[...c,...r[i]]:c}}},gx=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?gx(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Xf);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},op=/^\[(.+)\]$/,JC=e=>{if(op.test(e)){const t=op.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eN=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nN(Object.entries(e.classGroups),n).forEach(([s,i])=>{Nd(i,r,s,t)}),r},Nd=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:sp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(tN(o)){Nd(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Nd(i,sp(t,s),n,r)})})},sp=(e,t)=>{let n=e;return t.split(Xf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tN=e=>e.isThemeGetter,nN=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,rN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},vx="!",oN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const c=[];let u=0,d=0,f;for(let w=0;w<a.length;w++){let g=a[w];if(u===0){if(g===o&&(r||a.slice(w,w+s)===t)){c.push(a.slice(d,w)),d=w+s;continue}if(g==="/"){f=w;continue}}g==="["?u++:g==="]"&&u--}const m=c.length===0?a:a.substring(d),h=m.startsWith(vx),b=h?m.substring(1):m,v=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},sN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},iN=e=>({cache:rN(e.cacheSize),parseClassName:oN(e),...XC(e)}),aN=/\s+/,lN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(aN);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:h}=n(u);let b=!!h,v=r(b?m.substring(0,h):m);if(!v){if(!b){a=u+(a.length>0?" "+a:a);continue}if(v=r(m),!v){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=sN(d).join(":"),g=f?w+vx:w,y=g+v;if(s.includes(y))continue;s.push(y);const x=o(v,b);for(let k=0;k<x.length;++k){const S=x[k];s.push(g+S)}a=u+(a.length>0?" "+a:a)}return a};function cN(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=yx(t))&&(r&&(r+=" "),r+=n);return r}const yx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=yx(e[r]))&&(n&&(n+=" "),n+=t);return n};function uN(e,...t){let n,r,o,s=i;function i(c){const u=t.reduce((d,f)=>f(d),e());return n=iN(u),r=n.cache.get,o=n.cache.set,s=a,a(c)}function a(c){const u=r(c);if(u)return u;const d=lN(c,n);return o(c,d),d}return function(){return s(cN.apply(null,arguments))}}const Ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xx=/^\[(?:([a-z-]+):)?(.+)\]$/i,dN=/^\d+\/\d+$/,fN=new Set(["px","full","screen"]),hN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mN=/\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$/,pN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dn=e=>Qo(e)||fN.has(e)||dN.test(e),rr=e=>Cs(e,"length",NN),Qo=e=>!!e&&!Number.isNaN(Number(e)),hu=e=>Cs(e,"number",Qo),$s=e=>!!e&&Number.isInteger(Number(e)),yN=e=>e.endsWith("%")&&Qo(e.slice(0,-1)),se=e=>xx.test(e),or=e=>hN.test(e),xN=new Set(["length","size","percentage"]),wN=e=>Cs(e,xN,wx),bN=e=>Cs(e,"position",wx),kN=new Set(["image","url"]),SN=e=>Cs(e,kN,EN),CN=e=>Cs(e,"",jN),Bs=()=>!0,Cs=(e,t,n)=>{const r=xx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},NN=e=>mN.test(e)&&!pN.test(e),wx=()=>!1,jN=e=>gN.test(e),EN=e=>vN.test(e),_N=()=>{const e=Ee("colors"),t=Ee("spacing"),n=Ee("blur"),r=Ee("brightness"),o=Ee("borderColor"),s=Ee("borderRadius"),i=Ee("borderSpacing"),a=Ee("borderWidth"),c=Ee("contrast"),u=Ee("grayscale"),d=Ee("hueRotate"),f=Ee("invert"),m=Ee("gap"),h=Ee("gradientColorStops"),b=Ee("gradientColorStopPositions"),v=Ee("inset"),w=Ee("margin"),g=Ee("opacity"),y=Ee("padding"),x=Ee("saturate"),k=Ee("scale"),S=Ee("sepia"),N=Ee("skew"),C=Ee("space"),E=Ee("translate"),T=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",se,t],L=()=>[se,t],K=()=>["",Dn,rr],M=()=>["auto",Qo,se],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",se],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Qo,se];return{cacheSize:500,separator:":",theme:{colors:[Bs],spacing:[Dn,rr],blur:["none","",or,se],brightness:U(),borderColor:[e],borderRadius:["none","","full",or,se],borderSpacing:L(),borderWidth:K(),contrast:U(),grayscale:j(),hueRotate:U(),invert:j(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[yN,rr],inset:F(),margin:F(),opacity:U(),padding:L(),saturate:U(),scale:U(),sepia:j(),skew:U(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",se]}],container:["container"],columns:[{columns:[or]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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"],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:[...Z(),se]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$s,se]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",se]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",$s,se]}],"grid-cols":[{"grid-cols":[Bs]}],"col-start-end":[{col:["auto",{span:["full",$s,se]},se]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Bs]}],"row-start-end":[{row:["auto",{span:[$s,se]},se]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",se]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",se,t]}],"min-w":[{"min-w":[se,t,"min","max","fit"]}],"max-w":[{"max-w":[se,t,"none","full","min","max","fit","prose",{screen:[or]},or]}],h:[{h:[se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",or,rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",hu]}],"font-family":[{font:[Bs]}],"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:["tighter","tight","normal","wide","wider","widest",se]}],"line-clamp":[{"line-clamp":["none",Qo,hu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Dn,se]}],"list-image":[{"list-image":["none",se]}],"list-style-type":[{list:["none","disc","decimal",se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Dn,rr]}],"underline-offset":[{"underline-offset":["auto",Dn,se]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),bN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Dn,se]}],"outline-w":[{outline:[Dn,rr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Dn,rr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",or,CN]}],"shadow-color":[{shadow:[Bs]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",or,se]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",se]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",se]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[$s,se]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",se]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Dn,rr,hu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},TN=uN(_N);function le(...e){return TN(ix(e))}const PN=LC,bx=p.forwardRef(({className:e,...t},n)=>l.jsx(Jy,{ref:n,className:le("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));bx.displayName=Jy.displayName;const RN=Qf("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),kx=p.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(ex,{ref:r,className:le(RN({variant:t}),e),...n}));kx.displayName=ex.displayName;const AN=p.forwardRef(({className:e,...t},n)=>l.jsx(rx,{ref:n,className:le("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));AN.displayName=rx.displayName;const Sx=p.forwardRef(({className:e,...t},n)=>l.jsx(ox,{ref:n,className:le("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(Zf,{className:"h-4 w-4"})}));Sx.displayName=ox.displayName;const Cx=p.forwardRef(({className:e,...t},n)=>l.jsx(tx,{ref:n,className:le("text-sm font-semibold",e),...t}));Cx.displayName=tx.displayName;const Nx=p.forwardRef(({className:e,...t},n)=>l.jsx(nx,{ref:n,className:le("text-sm opacity-90",e),...t}));Nx.displayName=nx.displayName;function ON(){const{toasts:e}=Iy();return l.jsxs(PN,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return l.jsxs(kx,{...s,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(Cx,{children:n}),r&&l.jsx(Nx,{children:r})]}),o,l.jsx(Sx,{})]},t)}),l.jsx(bx,{})]})}var ip=["light","dark"],MN="(prefers-color-scheme: dark)",IN=p.createContext(void 0),DN={setTheme:e=>{},themes:[]},LN=()=>{var e;return(e=p.useContext(IN))!=null?e:DN};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:c})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?ip.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(b,v=!1,w=!0)=>{let g=i?i[b]:b,y=v?b+"|| ''":`'${g}'`,x="";return o&&w&&!v&&ip.includes(b)&&(x+=`d.style.colorScheme = '${b}';`),n==="class"?v||g?x+=`c.add(${y})`:x+="null":g&&(x+=`d[s](n,${y})`),x},h=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${MN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${u?"":"else{"+m(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(s,!1,!1)};}${f}}catch(t){}}();`;return p.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:h}})});var FN=e=>{switch(e){case"success":return BN;case"info":return VN;case"warning":return UN;case"error":return WN;default:return null}},zN=Array(12).fill(0),$N=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},zN.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),BN=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),UN=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.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"})),VN=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),WN=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.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"})),HN=A.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"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),qN=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},jd=1,GN=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:jd++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async c=>{if(s=["resolve",c],A.isValidElement(c))o=!1,this.create({id:n,type:"default",message:c});else if(QN(c)&&!c.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(s=["reject",c],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;o&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),a=()=>new Promise((c,u)=>i.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||jd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},pt=new GN,KN=(e,t)=>{let n=(t==null?void 0:t.id)||jd++;return pt.addToast({title:e,...t,id:n}),n},QN=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",YN=KN,ZN=()=>pt.toasts,XN=()=>pt.getActiveToasts();Object.assign(YN,{success:pt.success,info:pt.info,warning:pt.warning,error:pt.error,custom:pt.custom,message:pt.message,promise:pt.promise,dismiss:pt.dismiss,loading:pt.loading},{getHistory:ZN,getToasts:XN});function JN(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}JN(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 ja(e){return e.label!==void 0}var ej=3,tj="32px",nj="16px",ap=4e3,rj=356,oj=14,sj=20,ij=200;function Jt(...e){return e.filter(Boolean).join(" ")}function aj(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var lj=e=>{var t,n,r,o,s,i,a,c,u,d,f;let{invert:m,toast:h,unstyled:b,interacting:v,setHeights:w,visibleToasts:g,heights:y,index:x,toasts:k,expanded:S,removeToast:N,defaultRichColors:C,closeButton:E,style:T,cancelButtonStyle:R,actionButtonStyle:F,className:L="",descriptionClassName:K="",duration:M,position:Z,gap:V,loadingIcon:Q,expandByDefault:_,classNames:j,icons:D,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:$}=e,[ee,J]=A.useState(null),[xe,be]=A.useState(null),[X,Ne]=A.useState(!1),[ke,Re]=A.useState(!1),[me,W]=A.useState(!1),[ce,je]=A.useState(!1),[He,st]=A.useState(!1),[bt,kt]=A.useState(0),[it,vn]=A.useState(0),Ht=A.useRef(h.duration||M||ap),ko=A.useRef(null),qt=A.useRef(null),ta=x===0,na=x+1<=g,mt=h.type,In=h.dismissible!==!1,Oc=h.className||"",Ts=h.descriptionClassName||"",Gt=A.useMemo(()=>y.findIndex(te=>te.toastId===h.id)||0,[y,h.id]),Ps=A.useMemo(()=>{var te;return(te=h.closeButton)!=null?te:E},[h.closeButton,E]),So=A.useMemo(()=>h.duration||M||ap,[h.duration,M]),Zn=A.useRef(0),Xn=A.useRef(0),ra=A.useRef(0),Jn=A.useRef(null),[Mc,Ic]=Z.split("-"),Rs=A.useMemo(()=>y.reduce((te,ve,Se)=>Se>=Gt?te:te+ve.height,0),[y,Gt]),oa=qN(),sa=h.invert||m,Co=mt==="loading";Xn.current=A.useMemo(()=>Gt*V+Rs,[Gt,Rs]),A.useEffect(()=>{Ht.current=So},[So]),A.useEffect(()=>{Ne(!0)},[]),A.useEffect(()=>{let te=qt.current;if(te){let ve=te.getBoundingClientRect().height;return vn(ve),w(Se=>[{toastId:h.id,height:ve,position:h.position},...Se]),()=>w(Se=>Se.filter(Qt=>Qt.toastId!==h.id))}},[w,h.id]),A.useLayoutEffect(()=>{if(!X)return;let te=qt.current,ve=te.style.height;te.style.height="auto";let Se=te.getBoundingClientRect().height;te.style.height=ve,vn(Se),w(Qt=>Qt.find(Yt=>Yt.toastId===h.id)?Qt.map(Yt=>Yt.toastId===h.id?{...Yt,height:Se}:Yt):[{toastId:h.id,height:Se,position:h.position},...Qt])},[X,h.title,h.description,w,h.id]);let Kt=A.useCallback(()=>{Re(!0),kt(Xn.current),w(te=>te.filter(ve=>ve.toastId!==h.id)),setTimeout(()=>{N(h)},ij)},[h,N,w,Xn]);A.useEffect(()=>{if(h.promise&&mt==="loading"||h.duration===1/0||h.type==="loading")return;let te;return S||v||$&&oa?(()=>{if(ra.current<Zn.current){let ve=new Date().getTime()-Zn.current;Ht.current=Ht.current-ve}ra.current=new Date().getTime()})():Ht.current!==1/0&&(Zn.current=new Date().getTime(),te=setTimeout(()=>{var ve;(ve=h.onAutoClose)==null||ve.call(h,h),Kt()},Ht.current)),()=>clearTimeout(te)},[S,v,h,mt,$,oa,Kt]),A.useEffect(()=>{h.delete&&Kt()},[Kt,h.delete]);function Dc(){var te,ve,Se;return D!=null&&D.loading?A.createElement("div",{className:Jt(j==null?void 0:j.loader,(te=h==null?void 0:h.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":mt==="loading"},D.loading):Q?A.createElement("div",{className:Jt(j==null?void 0:j.loader,(ve=h==null?void 0:h.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":mt==="loading"},Q):A.createElement($N,{className:Jt(j==null?void 0:j.loader,(Se=h==null?void 0:h.classNames)==null?void 0:Se.loader),visible:mt==="loading"})}return A.createElement("li",{tabIndex:0,ref:qt,className:Jt(L,Oc,j==null?void 0:j.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[mt],(n=h==null?void 0:h.classNames)==null?void 0:n[mt]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:C,"data-styled":!(h.jsx||h.unstyled||b),"data-mounted":X,"data-promise":!!h.promise,"data-swiped":He,"data-removed":ke,"data-visible":na,"data-y-position":Mc,"data-x-position":Ic,"data-index":x,"data-front":ta,"data-swiping":me,"data-dismissible":In,"data-type":mt,"data-invert":sa,"data-swipe-out":ce,"data-swipe-direction":xe,"data-expanded":!!(S||_&&X),style:{"--index":x,"--toasts-before":x,"--z-index":k.length-x,"--offset":`${ke?bt:Xn.current}px`,"--initial-height":_?"auto":`${it}px`,...T,...h.style},onDragEnd:()=>{W(!1),J(null),Jn.current=null},onPointerDown:te=>{Co||!In||(ko.current=new Date,kt(Xn.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(W(!0),Jn.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,ve,Se,Qt;if(ce||!In)return;Jn.current=null;let Yt=Number(((te=qt.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),er=Number(((ve=qt.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ur=new Date().getTime()-((Se=ko.current)==null?void 0:Se.getTime()),Zt=ee==="x"?Yt:er,tr=Math.abs(Zt)/Ur;if(Math.abs(Zt)>=sj||tr>.11){kt(Xn.current),(Qt=h.onDismiss)==null||Qt.call(h,h),be(ee==="x"?Yt>0?"right":"left":er>0?"down":"up"),Kt(),je(!0),st(!1);return}W(!1),J(null)},onPointerMove:te=>{var ve,Se,Qt,Yt;if(!Jn.current||!In||((ve=window.getSelection())==null?void 0:ve.toString().length)>0)return;let er=te.clientY-Jn.current.y,Ur=te.clientX-Jn.current.x,Zt=(Se=e.swipeDirections)!=null?Se:aj(Z);!ee&&(Math.abs(Ur)>1||Math.abs(er)>1)&&J(Math.abs(Ur)>Math.abs(er)?"x":"y");let tr={x:0,y:0};ee==="y"?(Zt.includes("top")||Zt.includes("bottom"))&&(Zt.includes("top")&&er<0||Zt.includes("bottom")&&er>0)&&(tr.y=er):ee==="x"&&(Zt.includes("left")||Zt.includes("right"))&&(Zt.includes("left")&&Ur<0||Zt.includes("right")&&Ur>0)&&(tr.x=Ur),(Math.abs(tr.x)>0||Math.abs(tr.y)>0)&&st(!0),(Qt=qt.current)==null||Qt.style.setProperty("--swipe-amount-x",`${tr.x}px`),(Yt=qt.current)==null||Yt.style.setProperty("--swipe-amount-y",`${tr.y}px`)}},Ps&&!h.jsx?A.createElement("button",{"aria-label":U,"data-disabled":Co,"data-close-button":!0,onClick:Co||!In?()=>{}:()=>{var te;Kt(),(te=h.onDismiss)==null||te.call(h,h)},className:Jt(j==null?void 0:j.closeButton,(o=h==null?void 0:h.classNames)==null?void 0:o.closeButton)},(s=D==null?void 0:D.close)!=null?s:HN):null,h.jsx||p.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:A.createElement(A.Fragment,null,mt||h.icon||h.promise?A.createElement("div",{"data-icon":"",className:Jt(j==null?void 0:j.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Dc():null,h.type!=="loading"?h.icon||(D==null?void 0:D[mt])||FN(mt):null):null,A.createElement("div",{"data-content":"",className:Jt(j==null?void 0:j.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:Jt(j==null?void 0:j.title,(c=h==null?void 0:h.classNames)==null?void 0:c.title)},typeof h.title=="function"?h.title():h.title),h.description?A.createElement("div",{"data-description":"",className:Jt(K,Ts,j==null?void 0:j.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),p.isValidElement(h.cancel)?h.cancel:h.cancel&&ja(h.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||R,onClick:te=>{var ve,Se;ja(h.cancel)&&In&&((Se=(ve=h.cancel).onClick)==null||Se.call(ve,te),Kt())},className:Jt(j==null?void 0:j.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,p.isValidElement(h.action)?h.action:h.action&&ja(h.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||F,onClick:te=>{var ve,Se;ja(h.action)&&((Se=(ve=h.action).onClick)==null||Se.call(ve,te),!te.defaultPrevented&&Kt())},className:Jt(j==null?void 0:j.actionButton,(f=h==null?void 0:h.classNames)==null?void 0:f.actionButton)},h.action.label):null))};function lp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function cj(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?nj:tj;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(a)}),n}var uj=p.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:c,mobileOffset:u,theme:d="light",richColors:f,duration:m,style:h,visibleToasts:b=ej,toastOptions:v,dir:w=lp(),gap:g=oj,loadingIcon:y,icons:x,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[N,C]=A.useState([]),E=A.useMemo(()=>Array.from(new Set([r].concat(N.filter($=>$.position).map($=>$.position)))),[N,r]),[T,R]=A.useState([]),[F,L]=A.useState(!1),[K,M]=A.useState(!1),[Z,V]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=A.useRef(null),_=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=A.useRef(null),D=A.useRef(!1),U=A.useCallback($=>{C(ee=>{var J;return(J=ee.find(xe=>xe.id===$.id))!=null&&J.delete||pt.dismiss($.id),ee.filter(({id:xe})=>xe!==$.id)})},[]);return A.useEffect(()=>pt.subscribe($=>{if($.dismiss){C(ee=>ee.map(J=>J.id===$.id?{...J,delete:!0}:J));return}setTimeout(()=>{Oy.flushSync(()=>{C(ee=>{let J=ee.findIndex(xe=>xe.id===$.id);return J!==-1?[...ee.slice(0,J),{...ee[J],...$},...ee.slice(J+1)]:[$,...ee]})})})}),[]),A.useEffect(()=>{if(d!=="system"){V(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:ee})=>{V(ee?"dark":"light")})}catch{$.addListener(({matches:J})=>{try{V(J?"dark":"light")}catch(xe){console.error(xe)}})}},[d]),A.useEffect(()=>{N.length<=1&&L(!1)},[N]),A.useEffect(()=>{let $=ee=>{var J,xe;o.every(be=>ee[be]||ee.code===be)&&(L(!0),(J=Q.current)==null||J.focus()),ee.code==="Escape"&&(document.activeElement===Q.current||(xe=Q.current)!=null&&xe.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[o]),A.useEffect(()=>{if(Q.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,D.current=!1)}},[Q.current]),A.createElement("section",{ref:t,"aria-label":`${k} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map(($,ee)=>{var J;let[xe,be]=$.split("-");return N.length?A.createElement("ol",{key:$,dir:w==="auto"?lp():w,tabIndex:-1,ref:Q,className:a,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":xe,"data-lifted":F&&N.length>1&&!s,"data-x-position":be,style:{"--front-toast-height":`${((J=T[0])==null?void 0:J.height)||0}px`,"--width":`${rj}px`,"--gap":`${g}px`,...h,...cj(c,u)},onBlur:X=>{D.current&&!X.currentTarget.contains(X.relatedTarget)&&(D.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||D.current||(D.current=!0,j.current=X.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{K||L(!1)},onDragEnd:()=>L(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},N.filter(X=>!X.position&&ee===0||X.position===$).map((X,Ne)=>{var ke,Re;return A.createElement(lj,{key:X.id,icons:x,index:Ne,toast:X,defaultRichColors:f,duration:(ke=v==null?void 0:v.duration)!=null?ke:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:b,closeButton:(Re=v==null?void 0:v.closeButton)!=null?Re:i,interacting:K,position:$,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:U,toasts:N.filter(me=>me.position==X.position),heights:T.filter(me=>me.position==X.position),setHeights:R,expandByDefault:s,gap:g,loadingIcon:y,expanded:F,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const dj=({...e})=>{const{theme:t="system"}=LN();return l.jsx(uj,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var fj=Jd[" useId ".trim().toString()]||(()=>{}),hj=0;function Tr(e){const[t,n]=p.useState(fj());return Tn(()=>{n(r=>r??String(hj++))},[e]),t?`radix-${t}`:""}const mj=["top","right","bottom","left"],Mr=Math.min,Nt=Math.max,Sl=Math.round,Ea=Math.floor,En=e=>({x:e,y:e}),pj={left:"right",right:"left",bottom:"top",top:"bottom"},gj={start:"end",end:"start"};function Ed(e,t,n){return Nt(e,Mr(t,n))}function Kn(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function Ns(e){return e.split("-")[1]}function Jf(e){return e==="x"?"y":"x"}function eh(e){return e==="y"?"height":"width"}const vj=new Set(["top","bottom"]);function Cn(e){return vj.has(Qn(e))?"y":"x"}function th(e){return Jf(Cn(e))}function yj(e,t,n){n===void 0&&(n=!1);const r=Ns(e),o=th(e),s=eh(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Cl(i)),[i,Cl(i)]}function xj(e){const t=Cl(e);return[_d(e),t,_d(t)]}function _d(e){return e.replace(/start|end/g,t=>gj[t])}const cp=["left","right"],up=["right","left"],wj=["top","bottom"],bj=["bottom","top"];function kj(e,t,n){switch(e){case"top":case"bottom":return n?t?up:cp:t?cp:up;case"left":case"right":return t?wj:bj;default:return[]}}function Sj(e,t,n,r){const o=Ns(e);let s=kj(Qn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(_d)))),s}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>pj[t])}function Cj(e){return{top:0,right:0,bottom:0,left:0,...e}}function jx(e){return typeof e!="number"?Cj(e):{top:e,right:e,bottom:e,left:e}}function Nl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dp(e,t,n){let{reference:r,floating:o}=e;const s=Cn(t),i=th(t),a=eh(i),c=Qn(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Ns(t)){case"start":h[i]-=m*(n&&u?-1:1);break;case"end":h[i]+=m*(n&&u?-1:1);break}return h}const Nj=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=dp(u,r,c),m=r,h={},b=0;for(let v=0;v<a.length;v++){const{name:w,fn:g}=a[v],{x:y,y:x,data:k,reset:S}=await g({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,f=x??f,h={...h,[w]:{...h[w],...k}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:f}=dp(u,m,c)),v=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function Ci(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=Kn(t,e),b=jx(h),w=a[m?f==="floating"?"reference":"floating":f],g=Nl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Nl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:c}):y);return{top:(g.top-S.top+b.top)/k.y,bottom:(S.bottom-g.bottom+b.bottom)/k.y,left:(g.left-S.left+b.left)/k.x,right:(S.right-g.right+b.right)/k.x}}const jj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Kn(e,t)||{};if(u==null)return{};const f=jx(d),m={x:n,y:r},h=th(o),b=eh(h),v=await i.getDimensions(u),w=h==="y",g=w?"top":"left",y=w?"bottom":"right",x=w?"clientHeight":"clientWidth",k=s.reference[b]+s.reference[h]-m[h]-s.floating[b],S=m[h]-s.reference[h],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=N?N[x]:0;(!C||!await(i.isElement==null?void 0:i.isElement(N)))&&(C=a.floating[x]||s.floating[b]);const E=k/2-S/2,T=C/2-v[b]/2-1,R=Mr(f[g],T),F=Mr(f[y],T),L=R,K=C-v[b]-F,M=C/2-v[b]/2+E,Z=Ed(L,M,K),V=!c.arrow&&Ns(o)!=null&&M!==Z&&s.reference[b]/2-(M<L?R:F)-v[b]/2<0,Q=V?M<L?M-L:M-K:0;return{[h]:m[h]+Q,data:{[h]:Z,centerOffset:M-Z-Q,...V&&{alignmentOffset:Q}},reset:V}}}),Ej=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...w}=Kn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=Qn(o),y=Cn(a),x=Qn(a)===a,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=m||(x||!v?[Cl(a)]:xj(a)),N=b!=="none";!m&&N&&S.push(...Sj(a,v,b,k));const C=[a,...S],E=await Ci(t,w),T=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(E[g]),f){const M=yj(o,i,k);T.push(E[M[0]],E[M[1]])}if(R=[...R,{placement:o,overflows:T}],!T.every(M=>M<=0)){var F,L;const M=(((F=s.flip)==null?void 0:F.index)||0)+1,Z=C[M];if(Z&&(!(f==="alignment"?y!==Cn(Z):!1)||R.every(_=>_.overflows[0]>0&&Cn(_.placement)===y)))return{data:{index:M,overflows:R},reset:{placement:Z}};let V=(L=R.filter(Q=>Q.overflows[0]<=0).sort((Q,_)=>Q.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!V)switch(h){case"bestFit":{var K;const Q=(K=R.filter(_=>{if(N){const j=Cn(_.placement);return j===y||j==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(j=>j>0).reduce((j,D)=>j+D,0)]).sort((_,j)=>_[1]-j[1])[0])==null?void 0:K[0];Q&&(V=Q);break}case"initialPlacement":V=a;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function fp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hp(e){return mj.some(t=>e[t]>=0)}const _j=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Kn(e,t);switch(r){case"referenceHidden":{const s=await Ci(t,{...o,elementContext:"reference"}),i=fp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:hp(i)}}}case"escaped":{const s=await Ci(t,{...o,altBoundary:!0}),i=fp(s,n.floating);return{data:{escapedOffsets:i,escaped:hp(i)}}}default:return{}}}}},Ex=new Set(["left","top"]);async function Tj(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Qn(n),a=Ns(n),c=Cn(n)==="y",u=Ex.has(i)?-1:1,d=s&&c?-1:1,f=Kn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),c?{x:h*d,y:m*u}:{x:m*u,y:h*d}}const Pj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Tj(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Rj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...c}=Kn(e,t),u={x:n,y:r},d=await Ci(t,c),f=Cn(Qn(o)),m=Jf(f);let h=u[m],b=u[f];if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",y=h+d[w],x=h-d[g];h=Ed(y,h,x)}if(i){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",y=b+d[w],x=b-d[g];b=Ed(y,b,x)}const v=a.fn({...t,[m]:h,[f]:b});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[f]:i}}}}}},Aj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Kn(e,t),d={x:n,y:r},f=Cn(o),m=Jf(f);let h=d[m],b=d[f];const v=Kn(a,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const x=m==="y"?"height":"width",k=s.reference[m]-s.floating[x]+w.mainAxis,S=s.reference[m]+s.reference[x]-w.mainAxis;h<k?h=k:h>S&&(h=S)}if(u){var g,y;const x=m==="y"?"width":"height",k=Ex.has(Qn(o)),S=s.reference[f]-s.floating[x]+(k&&((g=i.offset)==null?void 0:g[f])||0)+(k?0:w.crossAxis),N=s.reference[f]+s.reference[x]+(k?0:((y=i.offset)==null?void 0:y[f])||0)-(k?w.crossAxis:0);b<S?b=S:b>N&&(b=N)}return{[m]:h,[f]:b}}}},Oj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=Kn(e,t),d=await Ci(t,u),f=Qn(o),m=Ns(o),h=Cn(o)==="y",{width:b,height:v}=s.floating;let w,g;f==="top"||f==="bottom"?(w=f,g=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=f,w=m==="end"?"top":"bottom");const y=v-d.top-d.bottom,x=b-d.left-d.right,k=Mr(v-d[w],y),S=Mr(b-d[g],x),N=!t.middlewareData.shift;let C=k,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),N&&!m){const R=Nt(d.left,0),F=Nt(d.right,0),L=Nt(d.top,0),K=Nt(d.bottom,0);h?E=b-2*(R!==0||F!==0?R+F:Nt(d.left,d.right)):C=v-2*(L!==0||K!==0?L+K:Nt(d.top,d.bottom))}await c({...t,availableWidth:E,availableHeight:C});const T=await i.getDimensions(a.floating);return b!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function fc(){return typeof window<"u"}function js(e){return _x(e)?(e.nodeName||"").toLowerCase():"#document"}function _t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function On(e){var t;return(t=(_x(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _x(e){return fc()?e instanceof Node||e instanceof _t(e).Node:!1}function dn(e){return fc()?e instanceof Element||e instanceof _t(e).Element:!1}function Pn(e){return fc()?e instanceof HTMLElement||e instanceof _t(e).HTMLElement:!1}function mp(e){return!fc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _t(e).ShadowRoot}const Mj=new Set(["inline","contents"]);function Ki(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Mj.has(o)}const Ij=new Set(["table","td","th"]);function Dj(e){return Ij.has(js(e))}const Lj=[":popover-open",":modal"];function hc(e){return Lj.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fj=["transform","translate","scale","rotate","perspective"],zj=["transform","translate","scale","rotate","perspective","filter"],$j=["paint","layout","strict","content"];function nh(e){const t=rh(),n=dn(e)?fn(e):e;return Fj.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zj.some(r=>(n.willChange||"").includes(r))||$j.some(r=>(n.contain||"").includes(r))}function Bj(e){let t=Ir(e);for(;Pn(t)&&!ms(t);){if(nh(t))return t;if(hc(t))return null;t=Ir(t)}return null}function rh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Uj=new Set(["html","body","#document"]);function ms(e){return Uj.has(js(e))}function fn(e){return _t(e).getComputedStyle(e)}function mc(e){return dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(js(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mp(e)&&e.host||On(e);return mp(t)?t.host:t}function Tx(e){const t=Ir(e);return ms(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&Ki(t)?t:Tx(t)}function Ni(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Tx(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=_t(o);if(s){const a=Td(i);return t.concat(i,i.visualViewport||[],Ki(o)?o:[],a&&n?Ni(a):[])}return t.concat(o,Ni(o,[],n))}function Td(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Px(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Pn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Sl(n)!==s||Sl(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function oh(e){return dn(e)?e:e.contextElement}function Yo(e){const t=oh(e);if(!Pn(t))return En(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Px(t);let i=(s?Sl(n.width):n.width)/r,a=(s?Sl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Vj=En(0);function Rx(e){const t=_t(e);return!rh()||!t.visualViewport?Vj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_t(e)?!1:t}function lo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=oh(e);let i=En(1);t&&(r?dn(r)&&(i=Yo(r)):i=Yo(e));const a=Wj(s,n,r)?Rx(s):En(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const m=_t(s),h=r&&dn(r)?_t(r):r;let b=m,v=Td(b);for(;v&&r&&h!==b;){const w=Yo(v),g=v.getBoundingClientRect(),y=fn(v),x=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,k=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,f*=w.y,c+=x,u+=k,b=_t(v),v=Td(b)}}return Nl({width:d,height:f,x:c,y:u})}function sh(e,t){const n=mc(e).scrollLeft;return t?t.left+n:lo(On(e)).left+n}function Ax(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:sh(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Hj(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=On(r),a=t?hc(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=En(1);const d=En(0),f=Pn(r);if((f||!f&&!s)&&((js(r)!=="body"||Ki(i))&&(c=mc(r)),Pn(r))){const h=lo(r);u=Yo(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=i&&!f&&!s?Ax(i,c,!0):En(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-c.scrollTop*u.y+d.y+m.y}}function qj(e){return Array.from(e.getClientRects())}function Gj(e){const t=On(e),n=mc(e),r=e.ownerDocument.body,o=Nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+sh(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(i+=Nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Kj(e,t){const n=_t(e),r=On(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const u=rh();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}const Qj=new Set(["absolute","fixed"]);function Yj(e,t){const n=lo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Pn(e)?Yo(e):En(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function pp(e,t,n){let r;if(t==="viewport")r=Kj(e,n);else if(t==="document")r=Gj(On(e));else if(dn(t))r=Yj(t,n);else{const o=Rx(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nl(r)}function Ox(e,t){const n=Ir(e);return n===t||!dn(n)||ms(n)?!1:fn(n).position==="fixed"||Ox(n,t)}function Zj(e,t){const n=t.get(e);if(n)return n;let r=Ni(e,[],!1).filter(a=>dn(a)&&js(a)!=="body"),o=null;const s=fn(e).position==="fixed";let i=s?Ir(e):e;for(;dn(i)&&!ms(i);){const a=fn(i),c=nh(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Qj.has(o.position)||Ki(i)&&!c&&Ox(e,i))?r=r.filter(d=>d!==i):o=a,i=Ir(i)}return t.set(e,r),r}function Xj(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?hc(t)?[]:Zj(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const f=pp(t,d,o);return u.top=Nt(f.top,u.top),u.right=Mr(f.right,u.right),u.bottom=Mr(f.bottom,u.bottom),u.left=Nt(f.left,u.left),u},pp(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Jj(e){const{width:t,height:n}=Px(e);return{width:t,height:n}}function eE(e,t,n){const r=Pn(t),o=On(t),s=n==="fixed",i=lo(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=En(0);function u(){c.x=sh(o)}if(r||!r&&!s)if((js(t)!=="body"||Ki(o))&&(a=mc(t)),r){const h=lo(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Ax(o,a):En(0),f=i.left+a.scrollLeft-c.x-d.x,m=i.top+a.scrollTop-c.y-d.y;return{x:f,y:m,width:i.width,height:i.height}}function mu(e){return fn(e).position==="static"}function gp(e,t){if(!Pn(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return On(e)===n&&(n=n.ownerDocument.body),n}function Mx(e,t){const n=_t(e);if(hc(e))return n;if(!Pn(e)){let o=Ir(e);for(;o&&!ms(o);){if(dn(o)&&!mu(o))return o;o=Ir(o)}return n}let r=gp(e,t);for(;r&&Dj(r)&&mu(r);)r=gp(r,t);return r&&ms(r)&&mu(r)&&!nh(r)?n:r||Bj(e)||n}const tE=async function(e){const t=this.getOffsetParent||Mx,n=this.getDimensions,r=await n(e.floating);return{reference:eE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nE(e){return fn(e).direction==="rtl"}const rE={convertOffsetParentRelativeRectToViewportRelativeRect:Hj,getDocumentElement:On,getClippingRect:Xj,getOffsetParent:Mx,getElementRects:tE,getClientRects:qj,getDimensions:Jj,getScale:Yo,isElement:dn,isRTL:nE};function Ix(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oE(e,t){let n=null,r;const o=On(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=u;if(a||t(),!m||!h)return;const b=Ea(f),v=Ea(o.clientWidth-(d+m)),w=Ea(o.clientHeight-(f+h)),g=Ea(d),x={rootMargin:-b+"px "+-v+"px "+-w+"px "+-g+"px",threshold:Nt(0,Mr(1,c))||1};let k=!0;function S(N){const C=N[0].intersectionRatio;if(C!==c){if(!k)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!Ix(u,e.getBoundingClientRect())&&i(),k=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),s}function sE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=oh(e),d=o||s?[...u?Ni(u):[],...Ni(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const f=u&&a?oE(u,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let b,v=c?lo(e):null;c&&w();function w(){const g=lo(e);v&&!Ix(v,g)&&n(),v=g,b=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,c&&cancelAnimationFrame(b)}}const iE=Pj,aE=Rj,lE=Ej,cE=Oj,uE=_j,vp=jj,dE=Aj,fE=(e,t,n)=>{const r=new Map,o={platform:rE,...n},s={...o.platform,_c:r};return Nj(e,t,{...o,platform:s})};var hE=typeof document<"u",mE=function(){},Ka=hE?p.useLayoutEffect:mE;function jl(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 n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!jl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Dx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yp(e,t){const n=Dx(e);return Math.round(t*n)/n}function pu(e){const t=p.useRef(e);return Ka(()=>{t.current=e}),t}function pE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=p.useState(r);jl(m,r)||h(r);const[b,v]=p.useState(null),[w,g]=p.useState(null),y=p.useCallback(_=>{_!==N.current&&(N.current=_,v(_))},[]),x=p.useCallback(_=>{_!==C.current&&(C.current=_,g(_))},[]),k=s||b,S=i||w,N=p.useRef(null),C=p.useRef(null),E=p.useRef(d),T=c!=null,R=pu(c),F=pu(o),L=pu(u),K=p.useCallback(()=>{if(!N.current||!C.current)return;const _={placement:t,strategy:n,middleware:m};F.current&&(_.platform=F.current),fE(N.current,C.current,_).then(j=>{const D={...j,isPositioned:L.current!==!1};M.current&&!jl(E.current,D)&&(E.current=D,Hi.flushSync(()=>{f(D)}))})},[m,t,n,F,L]);Ka(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const M=p.useRef(!1);Ka(()=>(M.current=!0,()=>{M.current=!1}),[]),Ka(()=>{if(k&&(N.current=k),S&&(C.current=S),k&&S){if(R.current)return R.current(k,S,K);K()}},[k,S,K,R,T]);const Z=p.useMemo(()=>({reference:N,floating:C,setReference:y,setFloating:x}),[y,x]),V=p.useMemo(()=>({reference:k,floating:S}),[k,S]),Q=p.useMemo(()=>{const _={position:n,left:0,top:0};if(!V.floating)return _;const j=yp(V.floating,d.x),D=yp(V.floating,d.y);return a?{..._,transform:"translate("+j+"px, "+D+"px)",...Dx(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:D}},[n,a,V.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:K,refs:Z,elements:V,floatingStyles:Q}),[d,K,Z,V,Q])}const gE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vp({element:r.current,padding:o}).fn(n):{}:r?vp({element:r,padding:o}).fn(n):{}}}},vE=(e,t)=>({...iE(e),options:[e,t]}),yE=(e,t)=>({...aE(e),options:[e,t]}),xE=(e,t)=>({...dE(e),options:[e,t]}),wE=(e,t)=>({...lE(e),options:[e,t]}),bE=(e,t)=>({...cE(e),options:[e,t]}),kE=(e,t)=>({...uE(e),options:[e,t]}),SE=(e,t)=>({...gE(e),options:[e,t]});var CE="Arrow",Lx=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(de.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lx.displayName=CE;var NE=Lx;function jE(e){const[t,n]=p.useState(void 0);return Tn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ih="Popper",[Fx,pc]=An(ih),[EE,zx]=Fx(ih),$x=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return l.jsx(EE,{scope:t,anchor:r,onAnchorChange:o,children:n})};$x.displayName=ih;var Bx="PopperAnchor",Ux=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=zx(Bx,n),i=p.useRef(null),a=De(t,i);return p.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(de.div,{...o,ref:a})});Ux.displayName=Bx;var ah="PopperContent",[_E,TE]=Fx(ah),Vx=p.forwardRef((e,t)=>{var X,Ne,ke,Re,me,W;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...v}=e,w=zx(ah,n),[g,y]=p.useState(null),x=De(t,ce=>y(ce)),[k,S]=p.useState(null),N=jE(k),C=(N==null?void 0:N.width)??0,E=(N==null?void 0:N.height)??0,T=r+(s!=="center"?"-"+s:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],L=F.length>0,K={padding:R,boundary:F.filter(RE),altBoundary:L},{refs:M,floatingStyles:Z,placement:V,isPositioned:Q,middlewareData:_}=pE({strategy:"fixed",placement:T,whileElementsMounted:(...ce)=>sE(...ce,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[vE({mainAxis:o+E,alignmentAxis:i}),c&&yE({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?xE():void 0,...K}),c&&wE({...K}),bE({...K,apply:({elements:ce,rects:je,availableWidth:He,availableHeight:st})=>{const{width:bt,height:kt}=je.reference,it=ce.floating.style;it.setProperty("--radix-popper-available-width",`${He}px`),it.setProperty("--radix-popper-available-height",`${st}px`),it.setProperty("--radix-popper-anchor-width",`${bt}px`),it.setProperty("--radix-popper-anchor-height",`${kt}px`)}}),k&&SE({element:k,padding:a}),AE({arrowWidth:C,arrowHeight:E}),m&&kE({strategy:"referenceHidden",...K})]}),[j,D]=qx(V),U=Pt(b);Tn(()=>{Q&&(U==null||U())},[Q,U]);const $=(X=_.arrow)==null?void 0:X.x,ee=(Ne=_.arrow)==null?void 0:Ne.y,J=((ke=_.arrow)==null?void 0:ke.centerOffset)!==0,[xe,be]=p.useState();return Tn(()=>{g&&be(window.getComputedStyle(g).zIndex)},[g]),l.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:Q?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(Re=_.transformOrigin)==null?void 0:Re.x,(me=_.transformOrigin)==null?void 0:me.y].join(" "),...((W=_.hide)==null?void 0:W.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(_E,{scope:n,placedSide:j,onArrowChange:S,arrowX:$,arrowY:ee,shouldHideArrow:J,children:l.jsx(de.div,{"data-side":j,"data-align":D,...v,ref:x,style:{...v.style,animation:Q?void 0:"none"}})})})});Vx.displayName=ah;var Wx="PopperArrow",PE={top:"bottom",right:"left",bottom:"top",left:"right"},Hx=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=TE(Wx,r),i=PE[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(NE,{...o,ref:n,style:{...o.style,display:"block"}})})});Hx.displayName=Wx;function RE(e){return e!==null}var AE=e=>({name:"transformOrigin",options:e,fn(t){var w,g,y;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=qx(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((g=o.arrow)==null?void 0:g.x)??0)+a/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=i?f:`${m}px`,v=`${-c}px`):u==="top"?(b=i?f:`${m}px`,v=`${r.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=i?f:`${h}px`):u==="left"&&(b=`${r.floating.width+c}px`,v=i?f:`${h}px`),{data:{x:b,y:v}}}});function qx(e){const[t,n="center"]=e.split("-");return[t,n]}var OE=$x,Gx=Ux,Kx=Vx,Qx=Hx,[gc,BO]=An("Tooltip",[pc]),lh=pc(),Yx="TooltipProvider",ME=700,xp="tooltip.open",[IE,Zx]=gc(Yx),Xx=e=>{const{__scopeTooltip:t,delayDuration:n=ME,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=p.useRef(!0),a=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(IE,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:p.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Xx.displayName=Yx;var Jx="Tooltip",[UO,vc]=gc(Jx),Pd="TooltipTrigger",DE=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=vc(Pd,n),s=Zx(Pd,n),i=lh(n),a=p.useRef(null),c=De(t,a,o.onTriggerChange),u=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(Gx,{asChild:!0,...i,children:l.jsx(de.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:G(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:G(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:G(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:G(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:G(e.onBlur,o.onClose),onClick:G(e.onClick,o.onClose)})})});DE.displayName=Pd;var LE="TooltipPortal",[VO,FE]=gc(LE,{forceMount:void 0}),ps="TooltipContent",e0=p.forwardRef((e,t)=>{const n=FE(ps,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=vc(ps,e.__scopeTooltip);return l.jsx(hn,{present:r||i.open,children:i.disableHoverableContent?l.jsx(t0,{side:o,...s,ref:t}):l.jsx(zE,{side:o,...s,ref:t})})}),zE=p.forwardRef((e,t)=>{const n=vc(ps,e.__scopeTooltip),r=Zx(ps,e.__scopeTooltip),o=p.useRef(null),s=De(t,o),[i,a]=p.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,m=p.useCallback(()=>{a(null),f(!1)},[f]),h=p.useCallback((b,v)=>{const w=b.currentTarget,g={x:b.clientX,y:b.clientY},y=WE(g,w.getBoundingClientRect()),x=HE(g,y),k=qE(v.getBoundingClientRect()),S=KE([...x,...k]);a(S),f(!0)},[f]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(c&&d){const b=w=>h(w,d),v=w=>h(w,c);return c.addEventListener("pointerleave",b),d.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",v)}}},[c,d,h,m]),p.useEffect(()=>{if(i){const b=v=>{const w=v.target,g={x:v.clientX,y:v.clientY},y=(c==null?void 0:c.contains(w))||(d==null?void 0:d.contains(w)),x=!GE(g,i);y?m():x&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,d,i,u,m]),l.jsx(t0,{...e,ref:s})}),[$E,BE]=gc(Jx,{isInside:!1}),UE=YS("TooltipContent"),t0=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=vc(ps,n),u=lh(n),{onClose:d}=c;return p.useEffect(()=>(document.addEventListener(xp,d),()=>document.removeEventListener(xp,d)),[d]),p.useEffect(()=>{if(c.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),l.jsx(qi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:l.jsxs(Kx,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.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:[l.jsx(UE,{children:r}),l.jsx($E,{scope:n,isInside:!0,children:l.jsx(xC,{id:c.contentId,role:"tooltip",children:o||r})})]})})});e0.displayName=ps;var n0="TooltipArrow",VE=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=lh(n);return BE(n0,n).isInside?null:l.jsx(Qx,{...o,...r,ref:t})});VE.displayName=n0;function WE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function HE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function qE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function GE(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],u=a.x,d=a.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function KE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),QE(t)}function QE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var YE=Xx,r0=e0;const ZE=YE,XE=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(r0,{ref:r,sideOffset:t,className:le("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));XE.displayName=r0.displayName;var yc=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(){}},xc=typeof window>"u"||"Deno"in globalThis;function tn(){}function JE(e,t){return typeof e=="function"?e(t):e}function e_(e){return typeof e=="number"&&e>=0&&e!==1/0}function t_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Rd(e,t){return typeof e=="function"?e(t):e}function n_(e,t){return typeof e=="function"?e(t):e}function wp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==ch(i,t.options))return!1}else if(!Ei(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function bp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ji(t.options.mutationKey)!==ji(s))return!1}else if(!Ei(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ch(e,t){return((t==null?void 0:t.queryKeyHashFn)||ji)(e)}function ji(e){return JSON.stringify(e,(t,n)=>Ad(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ei(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ei(e[n],t[n])):!1}function o0(e,t){if(e===t)return e;const n=kp(e)&&kp(t);if(n||Ad(e)&&Ad(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<i;d++){const f=n?d:s[d];(!n&&c.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=o0(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function kp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ad(e){if(!Sp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Sp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sp(e){return Object.prototype.toString.call(e)==="[object Object]"}function r_(e){return new Promise(t=>{setTimeout(t,e)})}function o_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?o0(e,t):t}function s_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function i_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var uh=Symbol();function s0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===uh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Qr,fr,Xo,fg,a_=(fg=class extends yc{constructor(){super();pe(this,Qr);pe(this,fr);pe(this,Xo);oe(this,Xo,t=>{if(!xc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,fr)||this.setEventListener(P(this,Xo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,fr))==null||t.call(this),oe(this,fr,void 0))}setEventListener(t){var n;oe(this,Xo,t),(n=P(this,fr))==null||n.call(this),oe(this,fr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Qr)!==t&&(oe(this,Qr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Qr)=="boolean"?P(this,Qr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Qr=new WeakMap,fr=new WeakMap,Xo=new WeakMap,fg),i0=new a_,Jo,hr,es,hg,l_=(hg=class extends yc{constructor(){super();pe(this,Jo,!0);pe(this,hr);pe(this,es);oe(this,es,t=>{if(!xc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,hr)||this.setEventListener(P(this,es))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,hr))==null||t.call(this),oe(this,hr,void 0))}setEventListener(t){var n;oe(this,es,t),(n=P(this,hr))==null||n.call(this),oe(this,hr,t(this.setOnline.bind(this)))}setOnline(t){P(this,Jo)!==t&&(oe(this,Jo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Jo)}},Jo=new WeakMap,hr=new WeakMap,es=new WeakMap,hg),El=new l_;function c_(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function u_(e){return Math.min(1e3*2**e,3e4)}function a0(e){return(e??"online")==="online"?El.isOnline():!0}var l0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gu(e){return e instanceof l0}function c0(e){let t=!1,n=0,r=!1,o;const s=c_(),i=v=>{var w;r||(m(new l0(v)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>i0.isFocused()&&(e.networkMode==="always"||El.isOnline())&&e.canRun(),d=()=>a0(e.networkMode)&&e.canRun(),f=v=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,v),o==null||o(),s.resolve(v))},m=v=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,v),o==null||o(),s.reject(v))},h=()=>new Promise(v=>{var w;o=g=>{(r||u())&&v(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(r)return;let v;const w=n===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(f).catch(g=>{var N;if(r)return;const y=e.retry??(xc?0:3),x=e.retryDelay??u_,k=typeof x=="function"?x(n,g):x,S=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,g);if(t||!S){m(g);return}n++,(N=e.onFail)==null||N.call(e,n,g),r_(k).then(()=>u()?void 0:h()).then(()=>{t?m(g):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?b():h().then(b),s)}}var d_=e=>setTimeout(e,0);function f_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=d_;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ct=f_(),Yr,mg,u0=(mg=class{constructor(){pe(this,Yr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),e_(this.gcTime)&&oe(this,Yr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xc?1/0:5*60*1e3))}clearGcTimeout(){P(this,Yr)&&(clearTimeout(P(this,Yr)),oe(this,Yr,void 0))}},Yr=new WeakMap,mg),ts,Zr,It,Xr,nt,Fi,Jr,nn,Ln,pg,h_=(pg=class extends u0{constructor(t){super();pe(this,nn);pe(this,ts);pe(this,Zr);pe(this,It);pe(this,Xr);pe(this,nt);pe(this,Fi);pe(this,Jr);oe(this,Jr,!1),oe(this,Fi,t.defaultOptions),this.setOptions(t.options),this.observers=[],oe(this,Xr,t.client),oe(this,It,P(this,Xr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,oe(this,ts,p_(this.options)),this.state=t.state??P(this,ts),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,nt))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Fi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,It).remove(this)}setData(t,n){const r=o_(this.state.data,t,this.options);return Je(this,nn,Ln).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Je(this,nn,Ln).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,nt))==null?void 0:r.promise;return(o=P(this,nt))==null||o.cancel(t),n?n.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,ts))}isActive(){return this.observers.some(t=>n_(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Rd(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!t_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,nt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,nt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,It).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,nt)&&(P(this,Jr)?P(this,nt).cancel({revert:!0}):P(this,nt).cancelRetry()),this.scheduleGc()),P(this,It).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Je(this,nn,Ln).call(this,{type:"invalidate"})}fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,nt))return P(this,nt).continueRetry(),P(this,nt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(h=>h.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(oe(this,Jr,!0),r.signal)})},s=()=>{const m=s0(this.options,n),b=(()=>{const v={client:P(this,Xr),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return oe(this,Jr,!1),this.options.persister?this.options.persister(m,b,this):m(b)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Xr),state:this.state,fetchFn:s};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),oe(this,Zr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Je(this,nn,Ln).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const c=m=>{var h,b,v,w;gu(m)&&m.silent||Je(this,nn,Ln).call(this,{type:"error",error:m}),gu(m)||((b=(h=P(this,It).config).onError)==null||b.call(h,m,this),(w=(v=P(this,It).config).onSettled)==null||w.call(v,this.state.data,m,this)),this.scheduleGc()};return oe(this,nt,c0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var h,b,v,w;if(m===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(g){c(g);return}(b=(h=P(this,It).config).onSuccess)==null||b.call(h,m,this),(w=(v=P(this,It).config).onSettled)==null||w.call(v,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,h)=>{Je(this,nn,Ln).call(this,{type:"failed",failureCount:m,error:h})},onPause:()=>{Je(this,nn,Ln).call(this,{type:"pause"})},onContinue:()=>{Je(this,nn,Ln).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,nt).start()}},ts=new WeakMap,Zr=new WeakMap,It=new WeakMap,Xr=new WeakMap,nt=new WeakMap,Fi=new WeakMap,Jr=new WeakMap,nn=new WeakSet,Ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...m_(r.data,this.options),fetchMeta:t.meta??null};case"success":return oe(this,Zr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return gu(o)&&o.revert&&P(this,Zr)?{...P(this,Zr),fetchStatus:"idle"}:{...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,...t.state}}};this.state=n(this.state),ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,It).notify({query:this,type:"updated",action:t})})},pg);function m_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:a0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wn,gg,g_=(gg=class extends yc{constructor(t={}){super();pe(this,wn);this.config=t,oe(this,wn,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??ch(o,n);let i=this.get(s);return i||(i=new h_({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){P(this,wn).has(t.queryHash)||(P(this,wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,wn).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ct.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,wn).get(t)}getAll(){return[...P(this,wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wp(t,r)):n}notify(t){ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ct.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ct.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wn=new WeakMap,gg),bn,at,eo,kn,sr,vg,v_=(vg=class extends u0{constructor(t){super();pe(this,kn);pe(this,bn);pe(this,at);pe(this,eo);this.mutationId=t.mutationId,oe(this,at,t.mutationCache),oe(this,bn,[]),this.state=t.state||y_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,bn).includes(t)||(P(this,bn).push(t),this.clearGcTimeout(),P(this,at).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){oe(this,bn,P(this,bn).filter(n=>n!==t)),this.scheduleGc(),P(this,at).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,bn).length||(this.state.status==="pending"?this.scheduleGc():P(this,at).remove(this))}continue(){var t;return((t=P(this,eo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,u,d,f,m,h,b,v,w,g,y,x,k,S,N,C,E;const n=()=>{Je(this,kn,sr).call(this,{type:"continue"})};oe(this,eo,c0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,R)=>{Je(this,kn,sr).call(this,{type:"failed",failureCount:T,error:R})},onPause:()=>{Je(this,kn,sr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,at).canRun(this)}));const r=this.state.status==="pending",o=!P(this,eo).canStart();try{if(r)n();else{Je(this,kn,sr).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=P(this,at).config).onMutate)==null?void 0:i.call(s,t,this));const R=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));R!==this.state.context&&Je(this,kn,sr).call(this,{type:"pending",context:R,variables:t,isPaused:o})}const T=await P(this,eo).start();return await((d=(u=P(this,at).config).onSuccess)==null?void 0:d.call(u,T,t,this.state.context,this)),await((m=(f=this.options).onSuccess)==null?void 0:m.call(f,T,t,this.state.context)),await((b=(h=P(this,at).config).onSettled)==null?void 0:b.call(h,T,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,T,null,t,this.state.context)),Je(this,kn,sr).call(this,{type:"success",data:T}),T}catch(T){try{throw await((y=(g=P(this,at).config).onError)==null?void 0:y.call(g,T,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,T,t,this.state.context)),await((N=(S=P(this,at).config).onSettled)==null?void 0:N.call(S,void 0,T,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,T,t,this.state.context)),T}finally{Je(this,kn,sr).call(this,{type:"error",error:T})}}finally{P(this,at).runNext(this)}}},bn=new WeakMap,at=new WeakMap,eo=new WeakMap,kn=new WeakSet,sr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ct.batch(()=>{P(this,bn).forEach(r=>{r.onMutationUpdate(t)}),P(this,at).notify({mutation:this,type:"updated",action:t})})},vg);function y_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $n,rn,zi,yg,x_=(yg=class extends yc{constructor(t={}){super();pe(this,$n);pe(this,rn);pe(this,zi);this.config=t,oe(this,$n,new Set),oe(this,rn,new Map),oe(this,zi,0)}build(t,n,r){const o=new v_({mutationCache:this,mutationId:++ia(this,zi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,$n).add(t);const n=_a(t);if(typeof n=="string"){const r=P(this,rn).get(n);r?r.push(t):P(this,rn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,$n).delete(t)){const n=_a(t);if(typeof n=="string"){const r=P(this,rn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,rn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=_a(t);if(typeof n=="string"){const r=P(this,rn).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=_a(t);if(typeof n=="string"){const o=(r=P(this,rn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ct.batch(()=>{P(this,$n).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,$n).clear(),P(this,rn).clear()})}getAll(){return Array.from(P(this,$n))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>bp(n,r))}findAll(t={}){return this.getAll().filter(n=>bp(t,n))}notify(t){ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ct.batch(()=>Promise.all(t.map(n=>n.continue().catch(tn))))}},$n=new WeakMap,rn=new WeakMap,zi=new WeakMap,yg);function _a(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Cp(e){return{onFetch:(t,n)=>{var d,f,m,h,b;const r=t.options,o=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},g=s0(t.options,t.fetchOptions),y=async(x,k,S)=>{if(v)return Promise.reject();if(k==null&&x.pages.length)return Promise.resolve(x);const C=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return w(F),F})(),E=await g(C),{maxPages:T}=t.options,R=S?i_:s_;return{pages:R(x.pages,E,T),pageParams:R(x.pageParams,k,T)}};if(o&&s.length){const x=o==="backward",k=x?w_:Np,S={pages:s,pageParams:i},N=k(r,S);a=await y(S,N,x)}else{const x=e??s.length;do{const k=c===0?i[0]??r.initialPageParam:Np(r,a);if(c>0&&k==null)break;a=await y(a,k),c++}while(c<x)}return a};t.options.persister?t.fetchFn=()=>{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Np(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function w_(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Le,mr,pr,ns,rs,gr,os,ss,xg,b_=(xg=class{constructor(e={}){pe(this,Le);pe(this,mr);pe(this,pr);pe(this,ns);pe(this,rs);pe(this,gr);pe(this,os);pe(this,ss);oe(this,Le,e.queryCache||new g_),oe(this,mr,e.mutationCache||new x_),oe(this,pr,e.defaultOptions||{}),oe(this,ns,new Map),oe(this,rs,new Map),oe(this,gr,0)}mount(){ia(this,gr)._++,P(this,gr)===1&&(oe(this,os,i0.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Le).onFocus())})),oe(this,ss,El.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Le).onOnline())})))}unmount(){var e,t;ia(this,gr)._--,P(this,gr)===0&&((e=P(this,os))==null||e.call(this),oe(this,os,void 0),(t=P(this,ss))==null||t.call(this),oe(this,ss,void 0))}isFetching(e){return P(this,Le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,mr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Le).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Le).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Rd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Le).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,Le).get(r.queryHash),s=o==null?void 0:o.state.data,i=JE(t,s);if(i!==void 0)return P(this,Le).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return ct.batch(()=>P(this,Le).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Le).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Le);ct.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Le);return ct.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ct.batch(()=>P(this,Le).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(tn).catch(tn)}invalidateQueries(e,t={}){return ct.batch(()=>(P(this,Le).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ct.batch(()=>P(this,Le).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(tn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(tn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,Le).build(this,t);return n.isStaleByTime(Rd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tn).catch(tn)}fetchInfiniteQuery(e){return e.behavior=Cp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tn).catch(tn)}ensureInfiniteQueryData(e){return e.behavior=Cp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return El.isOnline()?P(this,mr).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Le)}getMutationCache(){return P(this,mr)}getDefaultOptions(){return P(this,pr)}setDefaultOptions(e){oe(this,pr,e)}setQueryDefaults(e,t){P(this,ns).set(ji(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,ns).values()],n={};return t.forEach(r=>{Ei(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,rs).set(ji(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,rs).values()],n={};return t.forEach(r=>{Ei(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,pr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ch(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===uh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,pr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Le).clear(),P(this,mr).clear()}},Le=new WeakMap,mr=new WeakMap,pr=new WeakMap,ns=new WeakMap,rs=new WeakMap,gr=new WeakMap,os=new WeakMap,ss=new WeakMap,xg),k_=p.createContext(void 0),S_=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(k_.Provider,{value:e,children:t}));/**
* @remix-run/router v1.23.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(this,arguments)}var xr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xr||(xr={}));const jp="popstate";function C_(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Od("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:_l(o)}return j_(t,n,null,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function d0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function N_(){return Math.random().toString(36).substr(2,8)}function Ep(e,t){return{usr:e.state,key:e.key,idx:t}}function Od(e,t,n,r){return n===void 0&&(n=null),_i({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Es(t):t,{state:n,key:t&&t.key||r||N_()})}function _l(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Es(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function j_(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=xr.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(_i({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=xr.Pop;let w=d(),g=w==null?null:w-u;u=w,c&&c({action:a,location:v.location,delta:g})}function m(w,g){a=xr.Push;let y=Od(v.location,w,g);u=d()+1;let x=Ep(y,u),k=v.createHref(y);try{i.pushState(x,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(k)}s&&c&&c({action:a,location:v.location,delta:1})}function h(w,g){a=xr.Replace;let y=Od(v.location,w,g);u=d();let x=Ep(y,u),k=v.createHref(y);i.replaceState(x,"",k),s&&c&&c({action:a,location:v.location,delta:0})}function b(w){let g=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:_l(w);return y=y.replace(/ $/,"%20"),We(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let v={get action(){return a},get location(){return e(o,i)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(jp,f),c=w,()=>{o.removeEventListener(jp,f),c=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let g=b(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:h,go(w){return i.go(w)}};return v}var _p;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_p||(_p={}));function E_(e,t,n){return n===void 0&&(n="/"),__(e,t,n,!1)}function __(e,t,n,r){let o=typeof t=="string"?Es(t):t,s=dh(o.pathname||"/",n);if(s==null)return null;let i=f0(e);T_(i);let a=null;for(let c=0;a==null&&c<i.length;++c){let u=$_(s);a=F_(i[c],u,r)}return a}function f0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let c={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};c.relativePath.startsWith("/")&&(We(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Pr([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&(We(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),f0(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:D_(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let c of h0(s.path))o(s,i,c)}),t}function h0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=h0(r.join("/")),a=[];return a.push(...i.map(c=>c===""?s:[s,c].join("/"))),o&&a.push(...i),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function T_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:L_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const P_=/^:[\w-]+$/,R_=3,A_=2,O_=1,M_=10,I_=-2,Tp=e=>e==="*";function D_(e,t){let n=e.split("/"),r=n.length;return n.some(Tp)&&(r+=I_),t&&(r+=A_),n.filter(o=>!Tp(o)).reduce((o,s)=>o+(P_.test(s)?R_:s===""?O_:M_),r)}function L_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function F_(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let c=r[a],u=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=Pp({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Pp({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Pr([s,f.pathname]),pathnameBase:W_(Pr([s,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(s=Pr([s,f.pathnameBase]))}return i}function Pp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=z_(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:h}=d;if(m==="*"){let v=a[f]||"";i=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const b=a[f];return h&&!b?u[m]=void 0:u[m]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function z_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),d0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function $_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return d0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function dh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function B_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Es(e):e;return{pathname:n?n.startsWith("/")?n:U_(n,t):t,search:H_(r),hash:q_(o)}}function U_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function vu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function V_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m0(e,t){let n=V_(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function p0(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Es(e):(o=_i({},e),We(!o.pathname||!o.pathname.includes("?"),vu("?","pathname","search",o)),We(!o.pathname||!o.pathname.includes("#"),vu("#","pathname","hash",o)),We(!o.search||!o.search.includes("#"),vu("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}a=f>=0?t[f]:"/"}let c=B_(o,a),u=i&&i!=="/"&&i.endsWith("/"),d=(s||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Pr=e=>e.join("/").replace(/\/\/+/g,"/"),W_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,q_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const g0=["post","put","patch","delete"];new Set(g0);const K_=["get",...g0];new Set(K_);/**
* React Router v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ti.apply(this,arguments)}const fh=p.createContext(null),Q_=p.createContext(null),yo=p.createContext(null),wc=p.createContext(null),xo=p.createContext({outlet:null,matches:[],isDataRoute:!1}),v0=p.createContext(null);function Y_(e,t){let{relative:n}=t===void 0?{}:t;Qi()||We(!1);let{basename:r,navigator:o}=p.useContext(yo),{hash:s,pathname:i,search:a}=x0(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Pr([r,i])),o.createHref({pathname:c,search:a,hash:s})}function Qi(){return p.useContext(wc)!=null}function _s(){return Qi()||We(!1),p.useContext(wc).location}function y0(e){p.useContext(yo).static||p.useLayoutEffect(e)}function Z_(){let{isDataRoute:e}=p.useContext(xo);return e?u2():X_()}function X_(){Qi()||We(!1);let e=p.useContext(fh),{basename:t,future:n,navigator:r}=p.useContext(yo),{matches:o}=p.useContext(xo),{pathname:s}=_s(),i=JSON.stringify(m0(o,n.v7_relativeSplatPath)),a=p.useRef(!1);return y0(()=>{a.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=p0(u,JSON.parse(i),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Pr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,s,e])}function x0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(yo),{matches:o}=p.useContext(xo),{pathname:s}=_s(),i=JSON.stringify(m0(o,r.v7_relativeSplatPath));return p.useMemo(()=>p0(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function J_(e,t){return e2(e,t)}function e2(e,t,n,r){Qi()||We(!1);let{navigator:o}=p.useContext(yo),{matches:s}=p.useContext(xo),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=_s(),d;if(t){var f;let w=typeof t=="string"?Es(t):t;c==="/"||(f=w.pathname)!=null&&f.startsWith(c)||We(!1),d=w}else d=u;let m=d.pathname||"/",h=m;if(c!=="/"){let w=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=E_(e,{pathname:h}),v=s2(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Pr([c,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Pr([c,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&v?p.createElement(wc.Provider,{value:{location:Ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:xr.Pop}},v):v}function t2(){let e=c2(),t=G_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const n2=p.createElement(t2,null);class r2 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(xo.Provider,{value:this.props.routeContext},p.createElement(v0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function o2(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(fh);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(xo.Provider,{value:t},r)}function s2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||We(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:h}=n,b=f.route.loader&&m[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||b){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let h,b=!1,v=null,w=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||n2,c&&(u<0&&m===0?(b=!0,w=null):u===m&&(b=!0,w=f.route.hydrateFallbackElement||null)));let g=t.concat(i.slice(0,m+1)),y=()=>{let x;return h?x=v:b?x=w:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,p.createElement(o2,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?p.createElement(r2,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var w0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(w0||{}),Tl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Tl||{});function i2(e){let t=p.useContext(fh);return t||We(!1),t}function a2(e){let t=p.useContext(Q_);return t||We(!1),t}function l2(e){let t=p.useContext(xo);return t||We(!1),t}function b0(e){let t=l2(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function c2(){var e;let t=p.useContext(v0),n=a2(Tl.UseRouteError),r=b0(Tl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function u2(){let{router:e}=i2(w0.UseNavigateStable),t=b0(Tl.UseNavigateStable),n=p.useRef(!1);return y0(()=>{n.current=!0}),p.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ti({fromRouteId:t},s)))},[e,t])}function d2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function St(e){We(!1)}function f2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xr.Pop,navigator:s,static:i=!1,future:a}=e;Qi()&&We(!1);let c=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:c,navigator:s,static:i,future:Ti({v7_relativeSplatPath:!1},a)}),[c,a,s,i]);typeof r=="string"&&(r=Es(r));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:b="default"}=r,v=p.useMemo(()=>{let w=dh(d,c);return w==null?null:{location:{pathname:w,search:f,hash:m,state:h,key:b},navigationType:o}},[c,d,f,m,h,b,o]);return v==null?null:p.createElement(yo.Provider,{value:u},p.createElement(wc.Provider,{children:n,value:v}))}function h2(e){let{children:t,location:n}=e;return J_(Md(t),n)}new Promise(()=>{});function Md(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let s=[...t,o];if(r.type===p.Fragment){n.push.apply(n,Md(r.props.children,s));return}r.type!==St&&We(!1),!r.props.index||!r.props.children||We(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Md(r.props.children,s)),n.push(i)}),n}/**
* React Router DOM v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function m2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function p2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function g2(e,t){return e.button===0&&(!t||t==="_self")&&!p2(e)}const v2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],y2="6";try{window.__reactRouterVersion=y2}catch{}const x2="startTransition",Rp=Jd[x2];function w2(e){let{basename:t,children:n,future:r,window:o}=e,s=p.useRef();s.current==null&&(s.current=C_({window:o,v5Compat:!0}));let i=s.current,[a,c]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=p.useCallback(f=>{u&&Rp?Rp(()=>c(f)):c(f)},[c,u]);return p.useLayoutEffect(()=>i.listen(d),[i,d]),p.useEffect(()=>d2(r),[r]),p.createElement(f2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const b2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,m=m2(t,v2),{basename:h}=p.useContext(yo),b,v=!1;if(typeof u=="string"&&k2.test(u)&&(b=u,b2))try{let x=new URL(window.location.href),k=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=dh(k.pathname,h);k.origin===x.origin&&S!=null?u=S+k.search+k.hash:v=!0}catch{}let w=Y_(u,{relative:o}),g=S2(u,{replace:i,state:a,target:c,preventScrollReset:d,relative:o,viewTransition:f});function y(x){r&&r(x),x.defaultPrevented||g(x)}return p.createElement("a",Id({},m,{href:b||w,onClick:v||s?r:y,ref:n,target:c}))});var Ap;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ap||(Ap={}));var Op;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Op||(Op={}));function S2(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,c=Z_(),u=_s(),d=x0(e,{relative:i});return p.useCallback(f=>{if(g2(f,n)){f.preventDefault();let m=r!==void 0?r:_l(u)===_l(d);c(e,{replace:m,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[u,c,d,r,o,n,e,s,i,a])}const C2=Qf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ye=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?KS:"button";return l.jsx(i,{className:le(C2({variant:t,size:n,className:e})),ref:s,...o})});ye.displayName="Button";var N2=p.createContext(void 0);function hh(e){const t=p.useContext(N2);return e||t||"ltr"}var yu=0;function k0(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mp()),document.body.insertAdjacentElement("beforeend",e[1]??Mp()),yu++,()=>{yu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yu--}},[])}function Mp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xu="focusScope.autoFocusOnMount",wu="focusScope.autoFocusOnUnmount",Ip={bubbles:!1,cancelable:!0},j2="FocusScope",mh=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=p.useState(null),u=Pt(o),d=Pt(s),f=p.useRef(null),m=De(t,v=>c(v)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let v=function(x){if(h.paused||!a)return;const k=x.target;a.contains(k)?f.current=k:ir(f.current,{select:!0})},w=function(x){if(h.paused||!a)return;const k=x.relatedTarget;k!==null&&(a.contains(k)||ir(f.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&ir(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const y=new MutationObserver(g);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),y.disconnect()}}},[r,a,h.paused]),p.useEffect(()=>{if(a){Lp.add(h);const v=document.activeElement;if(!a.contains(v)){const g=new CustomEvent(xu,Ip);a.addEventListener(xu,u),a.dispatchEvent(g),g.defaultPrevented||(E2(A2(S0(a)),{select:!0}),document.activeElement===v&&ir(a))}return()=>{a.removeEventListener(xu,u),setTimeout(()=>{const g=new CustomEvent(wu,Ip);a.addEventListener(wu,d),a.dispatchEvent(g),g.defaultPrevented||ir(v??document.body,{select:!0}),a.removeEventListener(wu,d),Lp.remove(h)},0)}}},[a,u,d,h]);const b=p.useCallback(v=>{if(!n&&!r||h.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(w&&g){const y=v.currentTarget,[x,k]=_2(y);x&&k?!v.shiftKey&&g===k?(v.preventDefault(),n&&ir(x,{select:!0})):v.shiftKey&&g===x&&(v.preventDefault(),n&&ir(k,{select:!0})):g===y&&v.preventDefault()}},[n,r,h.paused]);return l.jsx(de.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});mh.displayName=j2;function E2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ir(r,{select:t}),document.activeElement!==n)return}function _2(e){const t=S0(e),n=Dp(t,e),r=Dp(t.reverse(),e);return[n,r]}function S0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Dp(e,t){for(const n of e)if(!T2(n,{upTo:t}))return n}function T2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function P2(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&P2(e)&&t&&e.select()}}var Lp=R2();function R2(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Fp(e,t),e.unshift(t)},remove(t){var n;e=Fp(e,t),(n=e[0])==null||n.resume()}}}function Fp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function A2(e){return e.filter(t=>t.tagName!=="A")}var bu="rovingFocusGroup.onEntryFocus",O2={bubbles:!1,cancelable:!0},Yi="RovingFocusGroup",[Dd,C0,M2]=oc(Yi),[I2,N0]=An(Yi,[M2]),[D2,L2]=I2(Yi),j0=p.forwardRef((e,t)=>l.jsx(Dd.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Dd.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(F2,{...e,ref:t})})}));j0.displayName=Yi;var F2=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=p.useRef(null),h=De(t,m),b=hh(s),[v,w]=po({prop:i,defaultProp:a??null,onChange:c,caller:Yi}),[g,y]=p.useState(!1),x=Pt(u),k=C0(n),S=p.useRef(!1),[N,C]=p.useState(0);return p.useEffect(()=>{const E=m.current;if(E)return E.addEventListener(bu,x),()=>E.removeEventListener(bu,x)},[x]),l.jsx(D2,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:v,onItemFocus:p.useCallback(E=>w(E),[w]),onItemShiftTab:p.useCallback(()=>y(!0),[]),onFocusableItemAdd:p.useCallback(()=>C(E=>E+1),[]),onFocusableItemRemove:p.useCallback(()=>C(E=>E-1),[]),children:l.jsx(de.div,{tabIndex:g||N===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:G(e.onMouseDown,()=>{S.current=!0}),onFocus:G(e.onFocus,E=>{const T=!S.current;if(E.target===E.currentTarget&&T&&!g){const R=new CustomEvent(bu,O2);if(E.currentTarget.dispatchEvent(R),!R.defaultPrevented){const F=k().filter(V=>V.focusable),L=F.find(V=>V.active),K=F.find(V=>V.id===v),Z=[L,K,...F].filter(Boolean).map(V=>V.ref.current);T0(Z,d)}}S.current=!1}),onBlur:G(e.onBlur,()=>y(!1))})})}),E0="RovingFocusGroupItem",_0=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,c=Tr(),u=s||c,d=L2(E0,n),f=d.currentTabStopId===u,m=C0(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),l.jsx(Dd.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:l.jsx(de.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:G(e.onMouseDown,w=>{r?d.onItemFocus(u):w.preventDefault()}),onFocus:G(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:G(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const g=B2(w,d.orientation,d.dir);if(g!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=m().filter(k=>k.focusable).map(k=>k.ref.current);if(g==="last")x.reverse();else if(g==="prev"||g==="next"){g==="prev"&&x.reverse();const k=x.indexOf(w.currentTarget);x=d.loop?U2(x,k+1):x.slice(k+1)}setTimeout(()=>T0(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:v!=null}):i})})});_0.displayName=E0;var z2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function B2(e,t,n){const r=$2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return z2[r]}function T0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function U2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var V2=j0,W2=_0,H2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jo=new WeakMap,Ta=new WeakMap,Pa={},ku=0,P0=function(e){return e&&(e.host||P0(e.parentNode))},q2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=P0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},G2=function(e,t,n,r){var o=q2(t,Array.isArray(e)?e:[e]);Pa[n]||(Pa[n]=new WeakMap);var s=Pa[n],i=[],a=new Set,c=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(a.has(m))d(m);else try{var h=m.getAttribute(r),b=h!==null&&h!=="false",v=(jo.get(m)||0)+1,w=(s.get(m)||0)+1;jo.set(m,v),s.set(m,w),i.push(m),v===1&&b&&Ta.set(m,!0),w===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return d(t),a.clear(),ku++,function(){i.forEach(function(f){var m=jo.get(f)-1,h=s.get(f)-1;jo.set(f,m),s.set(f,h),m||(Ta.has(f)||f.removeAttribute(r),Ta.delete(f)),h||f.removeAttribute(n)}),ku--,ku||(jo=new WeakMap,jo=new WeakMap,Ta=new WeakMap,Pa={})}},R0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=H2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),G2(r,o,n,"aria-hidden")):function(){return null}},Ld=function(e,t){return Ld=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ld(e,t)};function A0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ld(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ft=function(){return Ft=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ft.apply(this,arguments)};function bc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function O0(e,t,n,r){var o=arguments.length,s=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function M0(e,t){return function(n,r){t(n,r,e)}}function I0(e,t,n,r,o,s){function i(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var a=r.kind,c=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,m=!1,h=n.length-1;h>=0;h--){var b={};for(var v in r)b[v]=v==="access"?{}:r[v];for(var v in r.access)b.access[v]=r.access[v];b.addInitializer=function(g){if(m)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(g||null))};var w=(0,n[h])(a==="accessor"?{get:d.get,set:d.set}:d[c],b);if(a==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(f=i(w.get))&&(d.get=f),(f=i(w.set))&&(d.set=f),(f=i(w.init))&&o.unshift(f)}else(f=i(w))&&(a==="field"?o.unshift(f):d[c]=f)}u&&Object.defineProperty(u,r.name,d),m=!0}function D0(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function L0(e){return typeof e=="symbol"?e:"".concat(e)}function F0(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function z0(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function $0(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?s(d.value):o(d.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function B0(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(s=u[0]&2?o.return:u[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,u[1])).done)return s;switch(o=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],o=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var kc=Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function U0(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&kc(t,e,n)}function Pl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ph(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function V0(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ph(arguments[t]));return e}function W0(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,o++)r[o]=s[i];return r}function gh(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function gs(e){return this instanceof gs?(this.v=e,this):new gs(e)}function H0(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(h){return function(b){return Promise.resolve(b).then(h,f)}}function a(h,b){r[h]&&(o[h]=function(v){return new Promise(function(w,g){s.push([h,v,w,g])>1||c(h,v)})},b&&(o[h]=b(o[h])))}function c(h,b){try{u(r[h](b))}catch(v){m(s[0][3],v)}}function u(h){h.value instanceof gs?Promise.resolve(h.value.v).then(d,f):m(s[0][2],h)}function d(h){c("next",h)}function f(h){c("throw",h)}function m(h,b){h(b),s.shift(),s.length&&c(s[0][0],s[0][1])}}function q0(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(i){return(n=!n)?{value:gs(e[o](i)),done:!1}:s?s(i):i}:s}}function G0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Pl=="function"?Pl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,c){i=e[s](i),o(a,c,i.done,i.value)})}}function o(s,i,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},i)}}function K0(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var K2=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Fd=function(e){return Fd=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},Fd(e)};function Q0(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Fd(e),r=0;r<n.length;r++)n[r]!=="default"&&kc(t,e,n[r]);return K2(t,e),t}function Y0(e){return e&&e.__esModule?e:{default:e}}function Z0(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function X0(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function J0(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function ew(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var Q2=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function tw(e){function t(s){e.error=e.hasError?new Q2(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(o,function(i){return t(i),o()})}else r|=1}catch(i){t(i)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function nw(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,o,s,i){return r?t?".jsx":".js":o&&(!s||!i)?n:o+s+"."+i.toLowerCase()+"js"}):e}const Y2={__extends:A0,__assign:Ft,__rest:bc,__decorate:O0,__param:M0,__esDecorate:I0,__runInitializers:D0,__propKey:L0,__setFunctionName:F0,__metadata:z0,__awaiter:$0,__generator:B0,__createBinding:kc,__exportStar:U0,__values:Pl,__read:ph,__spread:V0,__spreadArrays:W0,__spreadArray:gh,__await:gs,__asyncGenerator:H0,__asyncDelegator:q0,__asyncValues:G0,__makeTemplateObject:K0,__importStar:Q0,__importDefault:Y0,__classPrivateFieldGet:Z0,__classPrivateFieldSet:X0,__classPrivateFieldIn:J0,__addDisposableResource:ew,__disposeResources:tw,__rewriteRelativeImportExtension:nw},WO=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:ew,get __assign(){return Ft},__asyncDelegator:q0,__asyncGenerator:H0,__asyncValues:G0,__await:gs,__awaiter:$0,__classPrivateFieldGet:Z0,__classPrivateFieldIn:J0,__classPrivateFieldSet:X0,__createBinding:kc,__decorate:O0,__disposeResources:tw,__esDecorate:I0,__exportStar:U0,__extends:A0,__generator:B0,__importDefault:Y0,__importStar:Q0,__makeTemplateObject:K0,__metadata:z0,__param:M0,__propKey:L0,__read:ph,__rest:bc,__rewriteRelativeImportExtension:nw,__runInitializers:D0,__setFunctionName:F0,__spread:V0,__spreadArray:gh,__spreadArrays:W0,__values:Pl,default:Y2},Symbol.toStringTag,{value:"Module"}));var Qa="right-scroll-bar-position",Ya="width-before-scroll-bar",Z2="with-scroll-bars-hidden",X2="--removed-body-scroll-bar-size";function Su(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function J2(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var eT=typeof window<"u"?p.useLayoutEffect:p.useEffect,zp=new WeakMap;function tT(e,t){var n=J2(null,function(r){return e.forEach(function(o){return Su(o,r)})});return eT(function(){var r=zp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Su(a,null)}),s.forEach(function(a){o.has(a)||Su(a,i)})}zp.set(n,e)},[e]),n}function nT(e){return e}function rT(e,t){t===void 0&&(t=nT);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function oT(e){e===void 0&&(e={});var t=rT(null);return t.options=Ft({async:!0,ssr:!1},e),t}var rw=function(e){var t=e.sideCar,n=bc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Ft({},n))};rw.isSideCarExport=!0;function sT(e,t){return e.useMedium(t),rw}var ow=oT(),Cu=function(){},Sc=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Cu,onWheelCapture:Cu,onTouchMoveCapture:Cu}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,h=e.noRelative,b=e.noIsolation,v=e.inert,w=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,x=e.gapMode,k=bc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,N=tT([n,t]),C=Ft(Ft({},k),o);return p.createElement(p.Fragment,null,d&&p.createElement(S,{sideCar:ow,removeScrollBar:u,shards:f,noRelative:h,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:x}),i?p.cloneElement(p.Children.only(a),Ft(Ft({},C),{ref:N})):p.createElement(y,Ft({},C,{className:c,ref:N}),a))});Sc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sc.classNames={fullWidth:Ya,zeroRight:Qa};var iT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iT();return t&&e.setAttribute("nonce",t),e}function lT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=aT())&&(lT(t,n),cT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dT=function(){var e=uT();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sw=function(){var e=dT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},fT={left:0,top:0,right:0,gap:0},Nu=function(e){return parseInt(e||"",10)||0},hT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nu(n),Nu(r),Nu(o)]},mT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fT;var t=hT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pT=sw(),Zo="data-scroll-locked",gT=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Z2,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(Zo,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(s,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Qa,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Ya,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Qa," .").concat(Qa,` {
right: 0 `).concat(r,`;
}
.`).concat(Ya," .").concat(Ya,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Zo,`] {
`).concat(X2,": ").concat(a,`px;
}
`)},$p=function(){var e=parseInt(document.body.getAttribute(Zo)||"0",10);return isFinite(e)?e:0},vT=function(){p.useEffect(function(){return document.body.setAttribute(Zo,($p()+1).toString()),function(){var e=$p()-1;e<=0?document.body.removeAttribute(Zo):document.body.setAttribute(Zo,e.toString())}},[])},yT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;vT();var s=p.useMemo(function(){return mT(o)},[o]);return p.createElement(pT,{styles:gT(s,!t,o,n?"":"!important")})},zd=!1;if(typeof window<"u")try{var Ra=Object.defineProperty({},"passive",{get:function(){return zd=!0,!0}});window.addEventListener("test",Ra,Ra),window.removeEventListener("test",Ra,Ra)}catch{zd=!1}var Eo=zd?{passive:!1}:!1,xT=function(e){return e.tagName==="TEXTAREA"},iw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xT(e)&&n[t]==="visible")},wT=function(e){return iw(e,"overflowY")},bT=function(e){return iw(e,"overflowX")},Bp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=aw(e,r);if(o){var s=lw(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},kT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ST=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aw=function(e,t){return e==="v"?wT(t):bT(t)},lw=function(e,t){return e==="v"?kT(t):ST(t)},CT=function(e,t){return e==="h"&&t==="rtl"?-1:1},NT=function(e,t,n,r,o){var s=CT(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),u=!1,d=i>0,f=0,m=0;do{if(!a)break;var h=lw(e,a),b=h[0],v=h[1],w=h[2],g=v-w-s*b;(b||g)&&aw(e,a)&&(f+=g,m+=b);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(m)<1||!o))&&(u=!0),u},Aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Up=function(e){return[e.deltaX,e.deltaY]},Vp=function(e){return e&&"current"in e?e.current:e},jT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ET=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},_T=0,_o=[];function TT(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(_T++)[0],s=p.useState(sw)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=gh([e.lockRef.current],(e.shards||[]).map(Vp),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(v,w){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var g=Aa(v),y=n.current,x="deltaX"in v?v.deltaX:y[0]-g[0],k="deltaY"in v?v.deltaY:y[1]-g[1],S,N=v.target,C=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&C==="h"&&N.type==="range")return!1;var E=Bp(C,N);if(!E)return!0;if(E?S=C:(S=C==="v"?"h":"v",E=Bp(C,N)),!E)return!1;if(!r.current&&"changedTouches"in v&&(x||k)&&(r.current=S),!S)return!0;var T=r.current||S;return NT(T,w,v,T==="h"?x:k,!0)},[]),c=p.useCallback(function(v){var w=v;if(!(!_o.length||_o[_o.length-1]!==s)){var g="deltaY"in w?Up(w):Aa(w),y=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&jT(S.delta,g)})[0];if(y&&y.should){w.cancelable&&w.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Vp).filter(Boolean).filter(function(S){return S.contains(w.target)}),k=x.length>0?a(w,x[0]):!i.current.noIsolation;k&&w.cancelable&&w.preventDefault()}}},[]),u=p.useCallback(function(v,w,g,y){var x={name:v,delta:w,target:g,should:y,shadowParent:PT(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),d=p.useCallback(function(v){n.current=Aa(v),r.current=void 0},[]),f=p.useCallback(function(v){u(v.type,Up(v),v.target,a(v,e.lockRef.current))},[]),m=p.useCallback(function(v){u(v.type,Aa(v),v.target,a(v,e.lockRef.current))},[]);p.useEffect(function(){return _o.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Eo),document.addEventListener("touchmove",c,Eo),document.addEventListener("touchstart",d,Eo),function(){_o=_o.filter(function(v){return v!==s}),document.removeEventListener("wheel",c,Eo),document.removeEventListener("touchmove",c,Eo),document.removeEventListener("touchstart",d,Eo)}},[]);var h=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(s,{styles:ET(o)}):null,h?p.createElement(yT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RT=sT(ow,TT);var vh=p.forwardRef(function(e,t){return p.createElement(Sc,Ft({},e,{ref:t,sideCar:RT}))});vh.classNames=Sc.classNames;var $d=["Enter"," "],AT=["ArrowDown","PageUp","Home"],cw=["ArrowUp","PageDown","End"],OT=[...AT,...cw],MT={ltr:[...$d,"ArrowRight"],rtl:[...$d,"ArrowLeft"]},IT={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Zi="Menu",[Pi,DT,LT]=oc(Zi),[wo,uw]=An(Zi,[LT,pc,N0]),Cc=pc(),dw=N0(),[FT,bo]=wo(Zi),[zT,Xi]=wo(Zi),fw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Cc(t),[c,u]=p.useState(null),d=p.useRef(!1),f=Pt(s),m=hh(o);return p.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),l.jsx(OE,{...a,children:l.jsx(FT,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:l.jsx(zT,{scope:t,onClose:p.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:i,children:r})})})};fw.displayName=Zi;var $T="MenuAnchor",yh=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cc(n);return l.jsx(Gx,{...o,...r,ref:t})});yh.displayName=$T;var xh="MenuPortal",[BT,hw]=wo(xh,{forceMount:void 0}),mw=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=bo(xh,t);return l.jsx(BT,{scope:t,forceMount:n,children:l.jsx(hn,{present:n||s.open,children:l.jsx(sc,{asChild:!0,container:o,children:r})})})};mw.displayName=xh;var Bt="MenuContent",[UT,wh]=wo(Bt),pw=p.forwardRef((e,t)=>{const n=hw(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=bo(Bt,e.__scopeMenu),i=Xi(Bt,e.__scopeMenu);return l.jsx(Pi.Provider,{scope:e.__scopeMenu,children:l.jsx(hn,{present:r||s.open,children:l.jsx(Pi.Slot,{scope:e.__scopeMenu,children:i.modal?l.jsx(VT,{...o,ref:t}):l.jsx(WT,{...o,ref:t})})})})}),VT=p.forwardRef((e,t)=>{const n=bo(Bt,e.__scopeMenu),r=p.useRef(null),o=De(t,r);return p.useEffect(()=>{const s=r.current;if(s)return R0(s)},[]),l.jsx(bh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),WT=p.forwardRef((e,t)=>{const n=bo(Bt,e.__scopeMenu);return l.jsx(bh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),HT=hs("MenuContent.ScrollLock"),bh=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:b,...v}=e,w=bo(Bt,n),g=Xi(Bt,n),y=Cc(n),x=dw(n),k=DT(n),[S,N]=p.useState(null),C=p.useRef(null),E=De(t,C,w.onContentChange),T=p.useRef(0),R=p.useRef(""),F=p.useRef(0),L=p.useRef(null),K=p.useRef("right"),M=p.useRef(0),Z=b?vh:p.Fragment,V=b?{as:HT,allowPinchZoom:!0}:void 0,Q=j=>{var X,Ne;const D=R.current+j,U=k().filter(ke=>!ke.disabled),$=document.activeElement,ee=(X=U.find(ke=>ke.ref.current===$))==null?void 0:X.textValue,J=U.map(ke=>ke.textValue),xe=rP(J,D,ee),be=(Ne=U.find(ke=>ke.textValue===xe))==null?void 0:Ne.ref.current;(function ke(Re){R.current=Re,window.clearTimeout(T.current),Re!==""&&(T.current=window.setTimeout(()=>ke(""),1e3))})(D),be&&setTimeout(()=>be.focus())};p.useEffect(()=>()=>window.clearTimeout(T.current),[]),k0();const _=p.useCallback(j=>{var U,$;return K.current===((U=L.current)==null?void 0:U.side)&&sP(j,($=L.current)==null?void 0:$.area)},[]);return l.jsx(UT,{scope:n,searchRef:R,onItemEnter:p.useCallback(j=>{_(j)&&j.preventDefault()},[_]),onItemLeave:p.useCallback(j=>{var D;_(j)||((D=C.current)==null||D.focus(),N(null))},[_]),onTriggerLeave:p.useCallback(j=>{_(j)&&j.preventDefault()},[_]),pointerGraceTimerRef:F,onPointerGraceIntentChange:p.useCallback(j=>{L.current=j},[]),children:l.jsx(Z,{...V,children:l.jsx(mh,{asChild:!0,trapped:o,onMountAutoFocus:G(s,j=>{var D;j.preventDefault(),(D=C.current)==null||D.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:l.jsx(qi,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:l.jsx(V2,{asChild:!0,...x,dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:N,onEntryFocus:G(c,j=>{g.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(Kx,{role:"menu","aria-orientation":"vertical","data-state":Rw(w.open),"data-radix-menu-content":"",dir:g.dir,...y,...v,ref:E,style:{outline:"none",...v.style},onKeyDown:G(v.onKeyDown,j=>{const U=j.target.closest("[data-radix-menu-content]")===j.currentTarget,$=j.ctrlKey||j.altKey||j.metaKey,ee=j.key.length===1;U&&(j.key==="Tab"&&j.preventDefault(),!$&&ee&&Q(j.key));const J=C.current;if(j.target!==J||!OT.includes(j.key))return;j.preventDefault();const be=k().filter(X=>!X.disabled).map(X=>X.ref.current);cw.includes(j.key)&&be.reverse(),tP(be)}),onBlur:G(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(T.current),R.current="")}),onPointerMove:G(e.onPointerMove,Ri(j=>{const D=j.target,U=M.current!==j.clientX;if(j.currentTarget.contains(D)&&U){const $=j.clientX>M.current?"right":"left";K.current=$,M.current=j.clientX}}))})})})})})})});pw.displayName=Bt;var qT="MenuGroup",kh=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(de.div,{role:"group",...r,ref:t})});kh.displayName=qT;var GT="MenuLabel",gw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(de.div,{...r,ref:t})});gw.displayName=GT;var Rl="MenuItem",Wp="menu.itemSelect",Nc=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=p.useRef(null),i=Xi(Rl,e.__scopeMenu),a=wh(Rl,e.__scopeMenu),c=De(t,s),u=p.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(Wp,{bubbles:!0,cancelable:!0});f.addEventListener(Wp,h=>r==null?void 0:r(h),{once:!0}),Hf(f,m),m.defaultPrevented?u.current=!1:i.onClose()}};return l.jsx(vw,{...o,ref:c,disabled:n,onClick:G(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),u.current=!0},onPointerUp:G(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:G(e.onKeyDown,f=>{const m=a.searchRef.current!=="";n||m&&f.key===" "||$d.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Nc.displayName=Rl;var vw=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=wh(Rl,n),a=dw(n),c=p.useRef(null),u=De(t,c),[d,f]=p.useState(!1),[m,h]=p.useState("");return p.useEffect(()=>{const b=c.current;b&&h((b.textContent??"").trim())},[s.children]),l.jsx(Pi.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:l.jsx(W2,{asChild:!0,...a,focusable:!r,children:l.jsx(de.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:G(e.onPointerMove,Ri(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,Ri(b=>i.onItemLeave(b))),onFocus:G(e.onFocus,()=>f(!0)),onBlur:G(e.onBlur,()=>f(!1))})})})}),KT="MenuCheckboxItem",yw=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(Sw,{scope:e.__scopeMenu,checked:n,children:l.jsx(Nc,{role:"menuitemcheckbox","aria-checked":Al(n)?"mixed":n,...o,ref:t,"data-state":Ch(n),onSelect:G(o.onSelect,()=>r==null?void 0:r(Al(n)?!0:!n),{checkForDefaultPrevented:!1})})})});yw.displayName=KT;var xw="MenuRadioGroup",[QT,YT]=wo(xw,{value:void 0,onValueChange:()=>{}}),ww=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Pt(r);return l.jsx(QT,{scope:e.__scopeMenu,value:n,onValueChange:s,children:l.jsx(kh,{...o,ref:t})})});ww.displayName=xw;var bw="MenuRadioItem",kw=p.forwardRef((e,t)=>{const{value:n,...r}=e,o=YT(bw,e.__scopeMenu),s=n===o.value;return l.jsx(Sw,{scope:e.__scopeMenu,checked:s,children:l.jsx(Nc,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Ch(s),onSelect:G(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});kw.displayName=bw;var Sh="MenuItemIndicator",[Sw,ZT]=wo(Sh,{checked:!1}),Cw=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=ZT(Sh,n);return l.jsx(hn,{present:r||Al(s.checked)||s.checked===!0,children:l.jsx(de.span,{...o,ref:t,"data-state":Ch(s.checked)})})});Cw.displayName=Sh;var XT="MenuSeparator",Nw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(de.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Nw.displayName=XT;var JT="MenuArrow",jw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cc(n);return l.jsx(Qx,{...o,...r,ref:t})});jw.displayName=JT;var eP="MenuSub",[HO,Ew]=wo(eP),Gs="MenuSubTrigger",_w=p.forwardRef((e,t)=>{const n=bo(Gs,e.__scopeMenu),r=Xi(Gs,e.__scopeMenu),o=Ew(Gs,e.__scopeMenu),s=wh(Gs,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,u={__scopeMenu:e.__scopeMenu},d=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),l.jsx(yh,{asChild:!0,...u,children:l.jsx(vw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Rw(n.open),...e,ref:rc(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:G(e.onPointerMove,Ri(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:G(e.onPointerLeave,Ri(f=>{var h,b;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const v=(b=n.content)==null?void 0:b.dataset.side,w=v==="right",g=w?-5:5,y=m[w?"left":"right"],x=m[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+g,y:f.clientY},{x:y,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:y,y:m.bottom}],side:v}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:G(e.onKeyDown,f=>{var h;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||MT[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});_w.displayName=Gs;var Tw="MenuSubContent",Pw=p.forwardRef((e,t)=>{const n=hw(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=bo(Bt,e.__scopeMenu),i=Xi(Bt,e.__scopeMenu),a=Ew(Tw,e.__scopeMenu),c=p.useRef(null),u=De(t,c);return l.jsx(Pi.Provider,{scope:e.__scopeMenu,children:l.jsx(hn,{present:r||s.open,children:l.jsx(Pi.Slot,{scope:e.__scopeMenu,children:l.jsx(bh,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:G(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:G(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:G(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=IT[i.dir].includes(d.key);f&&m&&(s.onOpenChange(!1),(h=a.trigger)==null||h.focus(),d.preventDefault())})})})})})});Pw.displayName=Tw;function Rw(e){return e?"open":"closed"}function Al(e){return e==="indeterminate"}function Ch(e){return Al(e)?"indeterminate":e?"checked":"unchecked"}function tP(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rP(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=nP(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function oP(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],u=a.x,d=a.y,f=c.x,m=c.y;d>r!=m>r&&n<(f-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function sP(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return oP(n,t)}function Ri(e){return t=>t.pointerType==="mouse"?e(t):void 0}var iP=fw,aP=yh,lP=mw,cP=pw,uP=kh,dP=gw,fP=Nc,hP=yw,mP=ww,pP=kw,gP=Cw,vP=Nw,yP=jw,xP=_w,wP=Pw,jc="DropdownMenu",[bP,qO]=An(jc,[uw]),ht=uw(),[kP,Aw]=bP(jc),Ow=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,c=ht(t),u=p.useRef(null),[d,f]=po({prop:o,defaultProp:s??!1,onChange:i,caller:jc});return l.jsx(kP,{scope:t,triggerId:Tr(),triggerRef:u,contentId:Tr(),open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(m=>!m),[f]),modal:a,children:l.jsx(iP,{...c,open:d,onOpenChange:f,dir:r,modal:a,children:n})})};Ow.displayName=jc;var Mw="DropdownMenuTrigger",Iw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Aw(Mw,n),i=ht(n);return l.jsx(aP,{asChild:!0,...i,children:l.jsx(de.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:rc(t,s.triggerRef),onPointerDown:G(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:G(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Iw.displayName=Mw;var SP="DropdownMenuPortal",Dw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ht(t);return l.jsx(lP,{...r,...n})};Dw.displayName=SP;var Lw="DropdownMenuContent",Fw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Aw(Lw,n),s=ht(n),i=p.useRef(!1);return l.jsx(cP,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,a=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:G(e.onInteractOutside,a=>{const c=a.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Fw.displayName=Lw;var CP="DropdownMenuGroup",NP=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(uP,{...o,...r,ref:t})});NP.displayName=CP;var jP="DropdownMenuLabel",zw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(dP,{...o,...r,ref:t})});zw.displayName=jP;var EP="DropdownMenuItem",$w=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(fP,{...o,...r,ref:t})});$w.displayName=EP;var _P="DropdownMenuCheckboxItem",Bw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(hP,{...o,...r,ref:t})});Bw.displayName=_P;var TP="DropdownMenuRadioGroup",PP=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(mP,{...o,...r,ref:t})});PP.displayName=TP;var RP="DropdownMenuRadioItem",Uw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(pP,{...o,...r,ref:t})});Uw.displayName=RP;var AP="DropdownMenuItemIndicator",Vw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(gP,{...o,...r,ref:t})});Vw.displayName=AP;var OP="DropdownMenuSeparator",Ww=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(vP,{...o,...r,ref:t})});Ww.displayName=OP;var MP="DropdownMenuArrow",IP=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(yP,{...o,...r,ref:t})});IP.displayName=MP;var DP="DropdownMenuSubTrigger",Hw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(xP,{...o,...r,ref:t})});Hw.displayName=DP;var LP="DropdownMenuSubContent",qw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return l.jsx(wP,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qw.displayName=LP;var FP=Ow,zP=Iw,$P=Dw,Gw=Fw,Kw=zw,Qw=$w,Yw=Bw,Zw=Uw,Xw=Vw,Jw=Ww,e1=Hw,t1=qw;const BP=FP,UP=zP,VP=p.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(e1,{ref:o,className:le("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,l.jsx(VC,{className:"ml-auto h-4 w-4"})]}));VP.displayName=e1.displayName;const WP=p.forwardRef(({className:e,...t},n)=>l.jsx(t1,{ref:n,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));WP.displayName=t1.displayName;const n1=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx($P,{children:l.jsx(Gw,{ref:r,sideOffset:t,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));n1.displayName=Gw.displayName;const Hr=p.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Qw,{ref:r,className:le("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));Hr.displayName=Qw.displayName;const HP=p.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(Yw,{ref:o,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Xw,{children:l.jsx(UC,{className:"h-4 w-4"})})}),t]}));HP.displayName=Yw.displayName;const qP=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Zw,{ref:r,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Xw,{children:l.jsx(WC,{className:"h-2 w-2 fill-current"})})}),t]}));qP.displayName=Zw.displayName;const GP=p.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Kw,{ref:r,className:le("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));GP.displayName=Kw.displayName;const KP=p.forwardRef(({className:e,...t},n)=>l.jsx(Jw,{ref:n,className:le("-mx-1 my-1 h-px bg-muted",e),...t}));KP.displayName=Jw.displayName;const QP="/assets/logo-dark-B4C8xbdM.png",r1=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(!1),[o,s]=p.useState(!1),i=_s();i.pathname,p.useEffect(()=>{const c=()=>{t(window.scrollY>50)};return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),p.useEffect(()=>{r(!1),s(!1)},[i.pathname]);const a="text-foreground";return l.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-background shadow-sm border-b border-border",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"flex items-center justify-between h-20",children:[l.jsx(Y,{to:"/",className:"flex items-center",children:l.jsx("img",{src:QP,alt:"Torquay Bathrooms",className:"h-10 md:h-12 w-auto"})}),l.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[l.jsx(Y,{to:"/",className:`transition-colors hover:text-primary ${a}`,children:"Home"}),l.jsx(Y,{to:"/about",className:`transition-colors hover:text-primary ${a}`,children:"About"}),l.jsxs(BP,{children:[l.jsxs(UP,{className:`flex items-center gap-1 transition-colors hover:text-primary ${a}`,children:["Services ",l.jsx(kl,{className:"w-4 h-4"})]}),l.jsxs(n1,{className:"bg-background border-border z-50",children:[l.jsx(Hr,{asChild:!0,children:l.jsx(Y,{to:"/services",className:"cursor-pointer",children:"All Services"})}),l.jsx(Hr,{asChild:!0,children:l.jsx(Y,{to:"/services/bath-to-shower",className:"cursor-pointer",children:l.jsxs("span",{className:"flex items-center gap-2",children:["Bath to Shower",l.jsx("span",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:"Quick"})]})})}),l.jsx(Hr,{asChild:!0,children:l.jsx(Y,{to:"/services/bathroom-refurbishment",className:"cursor-pointer",children:"Bathroom Refurbishment"})}),l.jsx(Hr,{asChild:!0,children:l.jsx(Y,{to:"/services/walk-in-showers",className:"cursor-pointer",children:"Walk-In Showers"})}),l.jsx(Hr,{asChild:!0,children:l.jsx(Y,{to:"/services/cloakrooms",className:"cursor-pointer",children:"Cloakrooms"})}),l.jsx(Hr,{asChild:!0,children:l.jsx(Y,{to:"/services/en-suites",className:"cursor-pointer",children:"En-Suites"})})]})]}),l.jsx(Y,{to:"/our-process",className:`transition-colors hover:text-primary ${a}`,children:"Our Process"}),l.jsx(Y,{to:"/gallery",className:`transition-colors hover:text-primary ${a}`,children:"Gallery"}),l.jsx(Y,{to:"/contact",className:`transition-colors hover:text-primary ${a}`,children:"Contact"}),l.jsxs("a",{href:"tel:01803411726",className:"flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-colors bg-secondary/60 text-foreground hover:bg-secondary border border-border",children:[l.jsx(Rt,{className:"w-4 h-4 text-primary"}),"01803 411726"]})]}),l.jsx("button",{className:`md:hidden ${a}`,onClick:()=>r(!n),children:n?l.jsx(Zf,{size:24}):l.jsx(YC,{size:24})})]}),n&&l.jsxs("div",{className:"md:hidden bg-background border-t border-border py-4 space-y-2",children:[l.jsx(Y,{to:"/",onClick:()=>r(!1),className:"block w-full text-left px-4 py-2 text-foreground hover:text-primary transition-colors",children:"Home"}),l.jsx(Y,{to:"/about",onClick:()=>r(!1),className:"block w-full text-left px-4 py-2 text-foreground hover:text-primary transition-colors",children:"About"}),l.jsxs("div",{className:"px-4 py-2",children:[l.jsxs("button",{onClick:()=>s(!o),className:"flex items-center justify-between w-full text-foreground hover:text-primary transition-colors",children:[l.jsx("span",{className:"font-medium",children:"Services"}),o?l.jsx(dx,{className:"w-4 h-4"}):l.jsx(kl,{className:"w-4 h-4"})]}),o&&l.jsxs("div",{className:"space-y-2 pl-4 mt-2 border-l-2 border-primary/20",children:[l.jsx(Y,{to:"/services",onClick:()=>r(!1),className:"block text-foreground hover:text-primary transition-colors py-1",children:"All Services"}),l.jsx(Y,{to:"/services/bath-to-shower",onClick:()=>r(!1),className:"block text-foreground hover:text-primary transition-colors py-1",children:l.jsxs("span",{className:"flex items-center gap-2",children:["Bath to Shower",l.jsx("span",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:"Quick"})]})}),l.jsx(Y,{to:"/services/bathroom-refurbishment",onClick:()=>r(!1),className:"block text-foreground hover:text-primary transition-colors py-1",children:"Bathroom Refurbishment"}),l.jsx(Y,{to:"/services/walk-in-showers",onClick:()=>r(!1),className:"block text-foreground hover:text-primary transition-colors py-1",children:"Walk-In Showers"}),l.jsx(Y,{to:"/services/cloakrooms",onClick:()=>r(!1),className:"block text-foreground hover:text-primary transition-colors py-1",children:"Cloakrooms"}),l.jsx(Y,{to:"/services/en-suites",onClick:()=>r(!1),className:"block text-foreground hover:text-primary transition-colors py-1",children:"En-Suites"})]})]}),l.jsx(Y,{to:"/our-process",onClick:()=>r(!1),className:"block w-full text-left px-4 py-2 text-foreground hover:text-primary transition-colors",children:"Our Process"}),l.jsx(Y,{to:"/gallery",onClick:()=>r(!1),className:"block w-full text-left px-4 py-2 text-foreground hover:text-primary transition-colors",children:"Gallery"}),l.jsx(Y,{to:"/contact",onClick:()=>r(!1),className:"block w-full text-left px-4 py-2 text-foreground hover:text-primary transition-colors",children:"Contact"}),l.jsx("div",{className:"px-4 pt-2",children:l.jsx("a",{href:"tel:01803411726",children:l.jsxs(ye,{className:"w-full",children:[l.jsx(Rt,{className:"w-4 h-4 mr-2"}),"Call: 01803 411726"]})})})]})]})})},Nh="/assets/bathroom-6-D3A6FGK_.jpeg",YP=()=>{const e=()=>{const n=document.getElementById("contact");n&&n.scrollIntoView({behavior:"smooth"})},t=()=>{const n=document.getElementById("about");n&&n.scrollIntoView({behavior:"smooth"})};return l.jsxs("section",{id:"home",className:"relative min-h-[90vh] flex flex-col items-center justify-center",children:[l.jsx("div",{className:"absolute inset-0 z-0",style:{backgroundImage:`linear-gradient(to bottom, rgba(30, 45, 50, 0.65), rgba(25, 40, 45, 0.75)), url(${Nh})`,backgroundSize:"cover",backgroundPosition:"center"}}),l.jsx("div",{className:"container mx-auto px-4 relative z-10 text-center pt-24 pb-16",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-white",children:[l.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-bold mb-6 leading-tight tracking-tight",children:["Beautiful Bathrooms,"," ",l.jsx("span",{className:"text-primary",children:"Made Simple"})]}),l.jsx("p",{className:"text-lg sm:text-xl mb-8 text-white/85 leading-relaxed max-w-2xl mx-auto font-light",children:"We're your local bathroom specialists in Torquay. From quick shower conversions to complete transformations, we make the whole process easy and stress-free."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-10",children:[l.jsxs(ye,{onClick:e,size:"lg",className:"text-lg px-8 py-6 rounded-full shadow-lg hover:shadow-xl transition-all group",children:["Get a Free Quote",l.jsx(lc,{className:"ml-2 w-5 h-5 group-hover:translate-x-1 transition-transform"})]}),l.jsx(ye,{asChild:!0,size:"lg",variant:"secondary",className:"text-lg px-8 py-6 rounded-full bg-white text-foreground hover:bg-white/90 shadow-lg",children:l.jsxs("a",{href:"tel:01803411726",children:[l.jsx(Rt,{className:"mr-2 w-5 h-5"}),"01803 411726"]})})]}),l.jsx("p",{className:"text-white/60 text-sm",children:"Fully insured • Free quotes • 1-year guarantee"})]})}),l.jsx("button",{onClick:t,className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 z-10 text-white/50 hover:text-white/80 transition-colors","aria-label":"Scroll to content",children:l.jsx(kl,{className:"w-8 h-8 animate-bounce"})})]})};function ZP(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hp(e){return ZP(e)||Array.isArray(e)}function XP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function jh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(i=>{const a=e[i],c=t[i];return typeof a=="function"?`${a}`==`${c}`:!Hp(a)||!Hp(c)?a===c:jh(a,c)})}function qp(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function JP(e,t){if(e.length!==t.length)return!1;const n=qp(e),r=qp(t);return n.every((o,s)=>{const i=r[s];return jh(o,i)})}function Eh(e){return typeof e=="number"}function Bd(e){return typeof e=="string"}function Ec(e){return typeof e=="boolean"}function Gp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oe(e){return Math.abs(e)}function _h(e){return Math.sign(e)}function ii(e,t){return Oe(e-t)}function eR(e,t){if(e===0||t===0||Oe(e)<=Oe(t))return 0;const n=ii(Oe(e),Oe(t));return Oe(n/e)}function tR(e){return Math.round(e*100)/100}function Ai(e){return Oi(e).map(Number)}function cn(e){return e[Ji(e)]}function Ji(e){return Math.max(0,e.length-1)}function Th(e,t){return t===Ji(e)}function Kp(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Oi(e){return Object.keys(e)}function o1(e,t){return[e,t].reduce((n,r)=>(Oi(r).forEach(o=>{const s=n[o],i=r[o],a=Gp(s)&&Gp(i);n[o]=a?o1(s,i):i}),n),{})}function Ud(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function nR(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(c){return s(c)/2}function s(c){return t-c}function i(c,u){return Bd(e)?n[e](c):e(t,c,u)}return{measure:i}}function Mi(){let e=[];function t(o,s,i,a={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(s,i,a),c=()=>o.removeEventListener(s,i,a);else{const u=o;u.addListener(i),c=()=>u.removeListener(i)}return e.push(c),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function rR(e,t,n,r){const o=Mi(),s=1e3/60;let i=null,a=0,c=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&b()})}function d(){h(),o.clear()}function f(w){if(!c)return;i||(i=w,n(),n());const g=w-i;for(i=w,a+=g;a>=s;)n(),a-=s;const y=a/s;r(y),c&&(c=t.requestAnimationFrame(f))}function m(){c||(c=t.requestAnimationFrame(f))}function h(){t.cancelAnimationFrame(c),i=null,a=0,c=0}function b(){i=null,a=0}return{init:u,destroy:d,start:m,stop:h,update:n,render:r}}function oR(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",i=!r&&n?-1:1,a=d(),c=f();function u(b){const{height:v,width:w}=b;return r?v:w}function d(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function m(b){return b*i}return{scroll:o,cross:s,startEdge:a,endEdge:c,measureSize:u,direction:m}}function co(e=0,t=0){const n=Oe(e-t);function r(u){return u<e}function o(u){return u>t}function s(u){return r(u)||o(u)}function i(u){return s(u)?r(u)?e:t:u}function a(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:a}}function s1(e,t,n){const{constrain:r}=co(0,e),o=e+1;let s=i(t);function i(m){return n?Oe((o+m)%o):r(m)}function a(){return s}function c(m){return s=i(m),f}function u(m){return d().set(a()+m)}function d(){return s1(e,a(),n)}const f={get:a,set:c,add:u,clone:d};return f}function sR(e,t,n,r,o,s,i,a,c,u,d,f,m,h,b,v,w,g,y){const{cross:x,direction:k}=e,S=["INPUT","SELECT","TEXTAREA"],N={passive:!1},C=Mi(),E=Mi(),T=co(50,225).constrain(h.measure(20)),R={mouse:300,touch:400},F={mouse:500,touch:600},L=b?43:25;let K=!1,M=0,Z=0,V=!1,Q=!1,_=!1,j=!1;function D(W){if(!y)return;function ce(He){(Ec(y)||y(W,He))&&be(He)}const je=t;C.add(je,"dragstart",He=>He.preventDefault(),N).add(je,"touchmove",()=>{},N).add(je,"touchend",()=>{}).add(je,"touchstart",ce).add(je,"mousedown",ce).add(je,"touchcancel",Ne).add(je,"contextmenu",Ne).add(je,"click",ke,!0)}function U(){C.clear(),E.clear()}function $(){const W=j?n:t;E.add(W,"touchmove",X,N).add(W,"touchend",Ne).add(W,"mousemove",X,N).add(W,"mouseup",Ne)}function ee(W){const ce=W.nodeName||"";return S.includes(ce)}function J(){return(b?F:R)[j?"mouse":"touch"]}function xe(W,ce){const je=f.add(_h(W)*-1),He=d.byDistance(W,!b).distance;return b||Oe(W)<T?He:w&&ce?He*.5:d.byIndex(je.get(),0).distance}function be(W){const ce=Ud(W,r);j=ce,_=b&&ce&&!W.buttons&&K,K=ii(o.get(),i.get())>=2,!(ce&&W.button!==0)&&(ee(W.target)||(V=!0,s.pointerDown(W),u.useFriction(0).useDuration(0),o.set(i),$(),M=s.readPoint(W),Z=s.readPoint(W,x),m.emit("pointerDown")))}function X(W){if(!Ud(W,r)&&W.touches.length>=2)return Ne(W);const je=s.readPoint(W),He=s.readPoint(W,x),st=ii(je,M),bt=ii(He,Z);if(!Q&&!j&&(!W.cancelable||(Q=st>bt,!Q)))return Ne(W);const kt=s.pointerMove(W);st>v&&(_=!0),u.useFriction(.3).useDuration(.75),a.start(),o.add(k(kt)),W.preventDefault()}function Ne(W){const je=d.byDistance(0,!1).index!==f.get(),He=s.pointerUp(W)*J(),st=xe(k(He),je),bt=eR(He,st),kt=L-10*bt,it=g+bt/50;Q=!1,V=!1,E.clear(),u.useDuration(kt).useFriction(it),c.distance(st,!b),j=!1,m.emit("pointerUp")}function ke(W){_&&(W.stopPropagation(),W.preventDefault(),_=!1)}function Re(){return V}return{init:D,destroy:U,pointerDown:Re}}function iR(e,t){let r,o;function s(f){return f.timeStamp}function i(f,m){const b=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Ud(f,t)?f:f.touches[0])[b]}function a(f){return r=f,o=f,i(f)}function c(f){const m=i(f)-i(o),h=s(f)-s(r)>170;return o=f,h&&(r=f),m}function u(f){if(!r||!o)return 0;const m=i(o)-i(r),h=s(f)-s(r),b=s(f)-s(o)>170,v=m/h;return h&&!b&&Oe(v)>.1?v:0}return{pointerDown:a,pointerMove:c,pointerUp:u,readPoint:i}}function aR(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:s,offsetHeight:i}=n;return{top:r,right:o+s,bottom:r+i,left:o,width:s,height:i}}return{measure:e}}function lR(e){function t(r){return e*(r/100)}return{measure:t}}function cR(e,t,n,r,o,s,i){const a=[e].concat(r);let c,u,d=[],f=!1;function m(w){return o.measureSize(i.measure(w))}function h(w){if(!s)return;u=m(e),d=r.map(m);function g(y){for(const x of y){if(f)return;const k=x.target===e,S=r.indexOf(x.target),N=k?u:d[S],C=m(k?e:r[S]);if(Oe(C-N)>=.5){w.reInit(),t.emit("resize");break}}}c=new ResizeObserver(y=>{(Ec(s)||s(w,y))&&g(y)}),n.requestAnimationFrame(()=>{a.forEach(y=>c.observe(y))})}function b(){f=!0,c&&c.disconnect()}return{init:h,destroy:b}}function uR(e,t,n,r,o,s){let i=0,a=0,c=o,u=s,d=e.get(),f=0;function m(){const N=r.get()-e.get(),C=!c;let E=0;return C?(i=0,n.set(r),e.set(r),E=N):(n.set(e),i+=N/c,i*=u,d+=i,e.add(i),E=d-f),a=_h(E),f=d,S}function h(){const N=r.get()-t.get();return Oe(N)<.001}function b(){return c}function v(){return a}function w(){return i}function g(){return x(o)}function y(){return k(s)}function x(N){return c=N,S}function k(N){return u=N,S}const S={direction:v,duration:b,velocity:w,seek:m,settled:h,useBaseFriction:y,useBaseDuration:g,useFriction:k,useDuration:x};return S}function dR(e,t,n,r,o){const s=o.measure(10),i=o.measure(50),a=co(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(h){if(!u())return;const b=e.reachedMin(t.get())?"min":"max",v=Oe(e[b]-t.get()),w=n.get()-t.get(),g=a.constrain(v/i);n.subtract(w*g),!h&&Oe(w)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(h){c=!h}return{shouldConstrain:u,constrain:d,toggleActive:f}}function fR(e,t,n,r,o){const s=co(-t+e,0),i=f(),a=d(),c=m();function u(b,v){return ii(b,v)<=1}function d(){const b=i[0],v=cn(i),w=i.lastIndexOf(b),g=i.indexOf(v)+1;return co(w,g)}function f(){return n.map((b,v)=>{const{min:w,max:g}=s,y=s.constrain(b),x=!v,k=Th(n,v);return x?g:k||u(w,y)?w:u(g,y)?g:y}).map(b=>parseFloat(b.toFixed(3)))}function m(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return i;const{min:b,max:v}=a;return i.slice(b,v)}return{snapsContained:c,scrollContainLimit:a}}function hR(e,t,n){const r=t[0],o=n?r-e:cn(t);return{limit:co(o,r)}}function mR(e,t,n,r){const s=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:c}=co(s,i);function u(m){return m===1?c(n.get()):m===-1?a(n.get()):!1}function d(m){if(!u(m))return;const h=e*(m*-1);r.forEach(b=>b.add(h))}return{loop:d}}function pR(e){const{max:t,length:n}=e;function r(s){const i=s-t;return n?i/-n:0}return{get:r}}function gR(e,t,n,r,o){const{startEdge:s,endEdge:i}=e,{groupSlides:a}=o,c=f().map(t.measure),u=m(),d=h();function f(){return a(r).map(v=>cn(v)[i]-v[0][s]).map(Oe)}function m(){return r.map(v=>n[s]-v[s]).map(v=>-Oe(v))}function h(){return a(u).map(v=>v[0]).map((v,w)=>v+c[w])}return{snaps:u,snapsAligned:d}}function vR(e,t,n,r,o,s){const{groupSlides:i}=o,{min:a,max:c}=r,u=d();function d(){const m=i(s),h=!e||t==="keepSnaps";return n.length===1?[s]:h?m:m.slice(a,c).map((b,v,w)=>{const g=!v,y=Th(w,v);if(g){const x=cn(w[0])+1;return Kp(x)}if(y){const x=Ji(s)-cn(w)[0]+1;return Kp(x,cn(w)[0])}return b})}return{slideRegistry:u}}function yR(e,t,n,r,o){const{reachedAny:s,removeOffset:i,constrain:a}=r;function c(b){return b.concat().sort((v,w)=>Oe(v)-Oe(w))[0]}function u(b){const v=e?i(b):a(b),w=t.map((y,x)=>({diff:d(y-v,0),index:x})).sort((y,x)=>Oe(y.diff)-Oe(x.diff)),{index:g}=w[0];return{index:g,distance:v}}function d(b,v){const w=[b,b+n,b-n];if(!e)return b;if(!v)return c(w);const g=w.filter(y=>_h(y)===v);return g.length?c(g):cn(w)-n}function f(b,v){const w=t[b]-o.get(),g=d(w,v);return{index:b,distance:g}}function m(b,v){const w=o.get()+b,{index:g,distance:y}=u(w),x=!e&&s(w);if(!v||x)return{index:g,distance:b};const k=t[g]-y,S=b+d(k,0);return{index:g,distance:S}}return{byDistance:m,byIndex:f,shortcut:d}}function xR(e,t,n,r,o,s,i){function a(f){const m=f.distance,h=f.index!==t.get();s.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(n.set(t.get()),t.set(f.index),i.emit("select"))}function c(f,m){const h=o.byDistance(f,m);a(h)}function u(f,m){const h=t.clone().set(f),b=o.byIndex(h.get(),m);a(b)}return{distance:c,index:u}}function wR(e,t,n,r,o,s,i,a){const c={passive:!0,capture:!0};let u=0;function d(h){if(!a)return;function b(v){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const y=n.findIndex(x=>x.includes(v));Eh(y)&&(o.useDuration(0),r.index(y,0),i.emit("slideFocus"))}s.add(document,"keydown",f,!1),t.forEach((v,w)=>{s.add(v,"focus",g=>{(Ec(a)||a(h,g))&&b(w)},c)})}function f(h){h.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function Ks(e){let t=e;function n(){return t}function r(c){t=i(c)}function o(c){t+=i(c)}function s(c){t-=i(c)}function i(c){return Eh(c)?c:c.get()}return{get:n,set:r,add:o,subtract:s}}function i1(e,t){const n=e.scroll==="x"?i:a,r=t.style;let o=null,s=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function a(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(s)return;const h=tR(e.direction(m));h!==o&&(r.transform=n(h),o=h)}function u(m){s=!m}function d(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:c,toggleActive:u}}function bR(e,t,n,r,o,s,i,a,c){const d=Ai(o),f=Ai(o).reverse(),m=g().concat(y());function h(C,E){return C.reduce((T,R)=>T-o[R],E)}function b(C,E){return C.reduce((T,R)=>h(T,E)>0?T.concat([R]):T,[])}function v(C){return s.map((E,T)=>({start:E-r[T]+.5+C,end:E+t-.5+C}))}function w(C,E,T){const R=v(E);return C.map(F=>{const L=T?0:-n,K=T?n:0,M=T?"end":"start",Z=R[F][M];return{index:F,loopPoint:Z,slideLocation:Ks(-1),translate:i1(e,c[F]),target:()=>a.get()>Z?L:K}})}function g(){const C=i[0],E=b(f,C);return w(E,n,!1)}function y(){const C=t-i[0]-1,E=b(d,C);return w(E,-n,!0)}function x(){return m.every(({index:C})=>{const E=d.filter(T=>T!==C);return h(E,t)<=.1})}function k(){m.forEach(C=>{const{target:E,translate:T,slideLocation:R}=C,F=E();F!==R.get()&&(T.to(F),R.set(F))})}function S(){m.forEach(C=>C.translate.clear())}return{canLoop:x,clear:S,loop:k,loopPoints:m}}function kR(e,t,n){let r,o=!1;function s(c){if(!n)return;function u(d){for(const f of d)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(Ec(n)||n(c,d))&&u(d)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:s,destroy:i}}function SR(e,t,n,r){const o={};let s=null,i=null,a,c=!1;function u(){a=new IntersectionObserver(b=>{c||(b.forEach(v=>{const w=t.indexOf(v.target);o[w]=v}),s=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(b=>a.observe(b))}function d(){a&&a.disconnect(),c=!0}function f(b){return Oi(o).reduce((v,w)=>{const g=parseInt(w),{isIntersecting:y}=o[g];return(b&&y||!b&&!y)&&v.push(g),v},[])}function m(b=!0){if(b&&s)return s;if(!b&&i)return i;const v=f(b);return b&&(s=v),b||(i=v),v}return{init:u,destroy:d,get:m}}function CR(e,t,n,r,o,s){const{measureSize:i,startEdge:a,endEdge:c}=e,u=n[0]&&o,d=b(),f=v(),m=n.map(i),h=w();function b(){if(!u)return 0;const y=n[0];return Oe(t[a]-y[a])}function v(){if(!u)return 0;const y=s.getComputedStyle(cn(r));return parseFloat(y.getPropertyValue(`margin-${c}`))}function w(){return n.map((y,x,k)=>{const S=!x,N=Th(k,x);return S?m[x]+d:N?m[x]+f:k[x+1][a]-y[a]}).map(Oe)}return{slideSizes:m,slideSizesWithGaps:h,startGap:d,endGap:f}}function NR(e,t,n,r,o,s,i,a,c){const{startEdge:u,endEdge:d,direction:f}=e,m=Eh(n);function h(g,y){return Ai(g).filter(x=>x%y===0).map(x=>g.slice(x,x+y))}function b(g){return g.length?Ai(g).reduce((y,x,k)=>{const S=cn(y)||0,N=S===0,C=x===Ji(g),E=o[u]-s[S][u],T=o[u]-s[x][d],R=!r&&N?f(i):0,F=!r&&C?f(a):0,L=Oe(T-F-(E+R));return k&&L>t+c&&y.push(x),C&&y.push(g.length),y},[]).map((y,x,k)=>{const S=Math.max(k[x-1]||0);return g.slice(S,y)}):[]}function v(g){return m?h(g,n):b(g)}return{groupSlides:v}}function jR(e,t,n,r,o,s,i){const{align:a,axis:c,direction:u,startIndex:d,loop:f,duration:m,dragFree:h,dragThreshold:b,inViewThreshold:v,slidesToScroll:w,skipSnaps:g,containScroll:y,watchResize:x,watchSlides:k,watchDrag:S,watchFocus:N}=s,C=2,E=aR(),T=E.measure(t),R=n.map(E.measure),F=oR(c,u),L=F.measureSize(T),K=lR(L),M=nR(a,L),Z=!f&&!!y,V=f||!!y,{slideSizes:Q,slideSizesWithGaps:_,startGap:j,endGap:D}=CR(F,T,R,n,V,o),U=NR(F,L,w,f,T,R,j,D,C),{snaps:$,snapsAligned:ee}=gR(F,M,T,R,U),J=-cn($)+cn(_),{snapsContained:xe,scrollContainLimit:be}=fR(L,J,ee,y,C),X=Z?xe:ee,{limit:Ne}=hR(J,X,f),ke=s1(Ji(X),d,f),Re=ke.clone(),me=Ai(n),W=({dragHandler:Gt,scrollBody:Ps,scrollBounds:So,options:{loop:Zn}})=>{Zn||So.constrain(Gt.pointerDown()),Ps.seek()},ce=({scrollBody:Gt,translate:Ps,location:So,offsetLocation:Zn,previousLocation:Xn,scrollLooper:ra,slideLooper:Jn,dragHandler:Mc,animation:Ic,eventHandler:Rs,scrollBounds:oa,options:{loop:sa}},Co)=>{const Kt=Gt.settled(),Dc=!oa.shouldConstrain(),te=sa?Kt:Kt&&Dc,ve=te&&!Mc.pointerDown();ve&&Ic.stop();const Se=So.get()*Co+Xn.get()*(1-Co);Zn.set(Se),sa&&(ra.loop(Gt.direction()),Jn.loop()),Ps.to(Zn.get()),ve&&Rs.emit("settle"),te||Rs.emit("scroll")},je=rR(r,o,()=>W(Ts),Gt=>ce(Ts,Gt)),He=.68,st=X[ke.get()],bt=Ks(st),kt=Ks(st),it=Ks(st),vn=Ks(st),Ht=uR(bt,it,kt,vn,m,He),ko=yR(f,X,J,Ne,vn),qt=xR(je,ke,Re,Ht,ko,vn,i),ta=pR(Ne),na=Mi(),mt=SR(t,n,i,v),{slideRegistry:In}=vR(Z,y,X,be,U,me),Oc=wR(e,n,In,qt,Ht,na,i,N),Ts={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:T,slideRects:R,animation:je,axis:F,dragHandler:sR(F,e,r,o,vn,iR(F,o),bt,je,qt,Ht,ko,ke,i,K,h,b,g,He,S),eventStore:na,percentOfView:K,index:ke,indexPrevious:Re,limit:Ne,location:bt,offsetLocation:it,previousLocation:kt,options:s,resizeHandler:cR(t,i,o,n,F,x,E),scrollBody:Ht,scrollBounds:dR(Ne,it,vn,Ht,K),scrollLooper:mR(J,Ne,it,[bt,it,kt,vn]),scrollProgress:ta,scrollSnapList:X.map(ta.get),scrollSnaps:X,scrollTarget:ko,scrollTo:qt,slideLooper:bR(F,L,J,Q,_,$,X,it,n),slideFocus:Oc,slidesHandler:kR(t,i,k),slidesInView:mt,slideIndexes:me,slideRegistry:In,slidesToScroll:U,target:vn,translate:i1(F,t)};return Ts}function ER(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(d=>d(t,u)),c}function s(u,d){return e[u]=r(u).concat([d]),c}function i(u,d){return e[u]=r(u).filter(f=>f!==d),c}function a(){e={}}const c={init:n,emit:o,off:i,on:s,clear:a};return c}const _R={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function TR(e){function t(s,i){return o1(s,i||{})}function n(s){const i=s.breakpoints||{},a=Oi(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,u)=>t(c,u),{});return t(s,a)}function r(s){return s.map(i=>Oi(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function PR(e){let t=[];function n(s,i){return t=i.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(s,e)),i.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function Ol(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=TR(o),i=PR(s),a=Mi(),c=ER(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=s,{on:m,off:h,emit:b}=c,v=F;let w=!1,g,y=u(_R,Ol.globalOptions),x=u(y),k=[],S,N,C;function E(){const{container:me,slides:W}=x;N=(Bd(me)?e.querySelector(me):me)||e.children[0];const je=Bd(W)?N.querySelectorAll(W):W;C=[].slice.call(je||N.children)}function T(me){const W=jR(e,N,C,r,o,me,c);if(me.loop&&!W.slideLooper.canLoop()){const ce=Object.assign({},me,{loop:!1});return T(ce)}return W}function R(me,W){w||(y=u(y,me),x=d(y),k=W||k,E(),g=T(x),f([y,...k.map(({options:ce})=>ce)]).forEach(ce=>a.add(ce,"change",F)),x.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(Re),g.eventHandler.init(Re),g.resizeHandler.init(Re),g.slidesHandler.init(Re),g.options.loop&&g.slideLooper.loop(),N.offsetParent&&C.length&&g.dragHandler.init(Re),S=i.init(Re,k)))}function F(me,W){const ce=U();L(),R(u({startIndex:ce},me),W),c.emit("reInit")}function L(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),i.destroy(),a.clear()}function K(){w||(w=!0,a.clear(),L(),c.emit("destroy"),c.clear())}function M(me,W,ce){!x.active||w||(g.scrollBody.useBaseFriction().useDuration(W===!0?0:x.duration),g.scrollTo.index(me,ce||0))}function Z(me){const W=g.index.add(1).get();M(W,me,-1)}function V(me){const W=g.index.add(-1).get();M(W,me,1)}function Q(){return g.index.add(1).get()!==U()}function _(){return g.index.add(-1).get()!==U()}function j(){return g.scrollSnapList}function D(){return g.scrollProgress.get(g.offsetLocation.get())}function U(){return g.index.get()}function $(){return g.indexPrevious.get()}function ee(){return g.slidesInView.get()}function J(){return g.slidesInView.get(!1)}function xe(){return S}function be(){return g}function X(){return e}function Ne(){return N}function ke(){return C}const Re={canScrollNext:Q,canScrollPrev:_,containerNode:Ne,internalEngine:be,destroy:K,off:h,on:m,emit:b,plugins:xe,previousScrollSnap:$,reInit:v,rootNode:X,scrollNext:Z,scrollPrev:V,scrollProgress:D,scrollSnapList:j,scrollTo:M,selectedScrollSnap:U,slideNodes:ke,slidesInView:ee,slidesNotInView:J};return R(t,n),setTimeout(()=>c.emit("init"),0),Re}Ol.globalOptions=void 0;function Ph(e={},t=[]){const n=p.useRef(e),r=p.useRef(t),[o,s]=p.useState(),[i,a]=p.useState(),c=p.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return p.useEffect(()=>{jh(n.current,e)||(n.current=e,c())},[e,c]),p.useEffect(()=>{JP(r.current,t)||(r.current=t,c())},[t,c]),p.useEffect(()=>{if(XP()&&i){Ol.globalOptions=Ph.globalOptions;const u=Ol(i,n.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[i,s]),[a,o]}Ph.globalOptions=void 0;const a1=p.createContext(null);function _c(){const e=p.useContext(a1);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const l1=p.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:s,...i},a)=>{const[c,u]=Ph({...t,axis:e==="horizontal"?"x":"y"},r),[d,f]=p.useState(!1),[m,h]=p.useState(!1),b=p.useCallback(y=>{y&&(f(y.canScrollPrev()),h(y.canScrollNext()))},[]),v=p.useCallback(()=>{u==null||u.scrollPrev()},[u]),w=p.useCallback(()=>{u==null||u.scrollNext()},[u]),g=p.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),v()):y.key==="ArrowRight"&&(y.preventDefault(),w())},[v,w]);return p.useEffect(()=>{!u||!n||n(u)},[u,n]),p.useEffect(()=>{if(u)return b(u),u.on("reInit",b),u.on("select",b),()=>{u==null||u.off("select",b)}},[u,b]),l.jsx(a1.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:w,canScrollPrev:d,canScrollNext:m},children:l.jsx("div",{ref:a,onKeyDownCapture:g,className:le("relative",o),role:"region","aria-roledescription":"carousel",...i,children:s})})});l1.displayName="Carousel";const c1=p.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=_c();return l.jsx("div",{ref:r,className:"overflow-hidden",children:l.jsx("div",{ref:n,className:le("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});c1.displayName="CarouselContent";const u1=p.forwardRef(({className:e,...t},n)=>{const{orientation:r}=_c();return l.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:le("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});u1.displayName="CarouselItem";const d1=p.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:s,scrollPrev:i,canScrollPrev:a}=_c();return l.jsxs(ye,{ref:o,variant:t,size:n,className:le("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[l.jsx(qs,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Previous slide"})]})});d1.displayName="CarouselPrevious";const f1=p.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:s,scrollNext:i,canScrollNext:a}=_c();return l.jsxs(ye,{ref:o,variant:t,size:n,className:le("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[l.jsx(lc,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Next slide"})]})});f1.displayName="CarouselNext";const h1="/assets/bathroom-1-CLIC1kA9.jpeg",m1="/assets/bathroom-2-bOHIGrDp.jpeg",p1="/assets/bathroom-3-q5YGkPC0.jpeg",g1="/assets/bathroom-4-DvPVDkAz.jpeg",v1="/assets/bathroom-5-CZT-HoaX.jpeg",RR=[{src:h1,alt:"Modern bathroom with marble tiles and gold fixtures"},{src:m1,alt:"Contemporary walk-in shower with brass fittings"},{src:p1,alt:"Luxury bathroom renovation with marble effect tiles"},{src:g1,alt:"Stylish walk-in shower with rainfall showerhead"},{src:v1,alt:"Elegant bathroom with vessel sink"},{src:Nh,alt:"Complete bathroom transformation"}],AR=()=>{const e=()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})};return l.jsx("section",{className:"py-20 bg-secondary/30",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Our Recent Work"}),l.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Transformations That Speak for Themselves"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-6 leading-relaxed",children:"Every bathroom we create is a reflection of our client's vision and our commitment to excellence. From modern minimalist designs to classic luxury finishes."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-8",children:[l.jsxs(ye,{onClick:e,size:"lg",className:"text-lg",children:[l.jsx(Rt,{className:"w-5 h-5 mr-2"}),"Get Your Free Quote"]}),l.jsx(Y,{to:"/gallery",children:l.jsx(ye,{variant:"outline",size:"lg",className:"text-lg w-full sm:w-auto",children:"View Full Gallery"})})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[l.jsxs("div",{className:"p-4 bg-background rounded-lg shadow-sm",children:[l.jsx("p",{className:"text-3xl font-bold text-primary",children:"200+"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Projects Completed"})]}),l.jsxs("div",{className:"p-4 bg-background rounded-lg shadow-sm",children:[l.jsx("p",{className:"text-3xl font-bold text-primary",children:"10+"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Years Experience"})]}),l.jsxs("div",{className:"p-4 bg-background rounded-lg shadow-sm",children:[l.jsx("p",{className:"text-3xl font-bold text-primary",children:"5.0"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Google Rating"})]})]})]}),l.jsx("div",{className:"relative px-12",children:l.jsxs(l1,{opts:{align:"start",loop:!0},className:"w-full",children:[l.jsx(c1,{children:RR.map((t,n)=>l.jsx(u1,{children:l.jsx("div",{className:"aspect-[4/3] rounded-xl overflow-hidden shadow-2xl",children:l.jsx("img",{src:t.src,alt:t.alt,className:"w-full h-full object-cover",loading:"lazy"})})},n))}),l.jsx(d1,{}),l.jsx(f1,{})]})})]})})})},Ue=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Ue.displayName="Card";const OR=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:le("flex flex-col space-y-1.5 p-6",e),...t}));OR.displayName="CardHeader";const MR=p.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:le("text-2xl font-semibold leading-none tracking-tight",e),...t}));MR.displayName="CardTitle";const IR=p.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));IR.displayName="CardDescription";const Ve=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:le("p-6 pt-0",e),...t}));Ve.displayName="CardContent";const DR=p.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:le("flex items-center p-6 pt-0",e),...t}));DR.displayName="CardFooter";const LR=[{icon:dc,title:"Bath to Shower",description:"Quick conversions in as little as 2 days. Perfect for modern living.",link:"/services/bath-to-shower",highlight:!0},{icon:ux,title:"Full Refurbishment",description:"Complete bathroom transformations, handled from start to finish.",link:"/services/bathroom-refurbishment"},{icon:mx,title:"Walk-In Showers",description:"Stylish, accessible, and easy to maintain. A popular choice.",link:"/services/walk-in-showers"},{icon:HC,title:"Cloakrooms",description:"Compact and elegant. Ideal for under-stairs or tight spaces.",link:"/services/cloakrooms"},{icon:Br,title:"En-Suites",description:"Private, beautifully designed spaces for your bedroom.",link:"/services/en-suites"}],FR=()=>{const e=()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})};return l.jsx("section",{id:"services",className:"py-20 bg-secondary/30",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-14",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What We Can Do For You"}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-xl mx-auto",children:"Whether it's a quick update or a complete redesign, we've got you covered."})]}),l.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6 mb-12 max-w-5xl mx-auto",children:LR.map((t,n)=>l.jsx(Y,{to:t.link,className:"group",children:l.jsx(Ue,{className:`h-full transition-all duration-300 hover:shadow-lg border-2 ${t.highlight?"border-primary/30 bg-primary/5":"border-transparent hover:border-primary/20"}`,children:l.jsxs(Ve,{className:"p-6",children:[l.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center mb-4 transition-colors ${t.highlight?"bg-primary text-primary-foreground":"bg-primary/10 group-hover:bg-primary/20"}`,children:l.jsx(t.icon,{className:`w-6 h-6 ${t.highlight?"":"text-primary"}`})}),l.jsx("h3",{className:"text-xl font-semibold mb-2",children:t.title}),l.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-3",children:t.description}),l.jsxs("span",{className:"text-primary text-sm font-medium inline-flex items-center gap-1 group-hover:gap-2 transition-all",children:["Learn more ",l.jsx(lc,{className:"w-4 h-4"})]})]})})},n))}),l.jsx("div",{className:"text-center",children:l.jsx(ye,{onClick:e,size:"lg",className:"rounded-full px-8",children:"Get Your Free Quote"})})]})})},zR=[{icon:uc,title:"1-Year Guarantee",description:"Peace of mind with every installation."},{icon:vo,title:"Free Home Visits",description:"We come to you for a personal consultation."},{icon:cx,title:"Quality Materials",description:"Only the best products and finishes."},{icon:Br,title:"Expert Craftsmen",description:"Skilled specialists who care about details."},{icon:Yf,title:"All-In-One Service",description:"Design, plumbing, tiling—we handle it all."},{icon:fx,title:"Respectful Team",description:"We treat your home like our own."}],$R=()=>{const e=()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})};return l.jsx("section",{id:"why-us",className:"py-20",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-14",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Why People Choose Us"}),l.jsx("p",{className:"text-lg text-muted-foreground max-w-xl mx-auto",children:"Local, trusted, and committed to making your bathroom dreams a reality."})]}),l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-6 md:gap-8 max-w-4xl mx-auto mb-12",children:zR.map((t,n)=>l.jsxs("div",{className:"text-center p-4",children:[l.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:l.jsx(t.icon,{className:"w-6 h-6 text-primary"})}),l.jsx("h3",{className:"font-semibold mb-1",children:t.title}),l.jsx("p",{className:"text-muted-foreground text-sm",children:t.description})]},n))}),l.jsx("div",{className:"text-center",children:l.jsxs(ye,{onClick:e,size:"lg",className:"rounded-full px-8",children:[l.jsx(Rt,{className:"w-5 h-5 mr-2"}),"Book a Free Consultation"]})})]})})},BR=[{name:"Mark Sarginson",text:"I used Torquay Bathrooms last month to fit a new shower for me. The whole process was just great and Reece was excellent throughout. I am very pleased with my new shower and would fully recommend Torquay Bathrooms.",rating:5},{name:"Colin Stevenson",text:"Reece removed the old shower unit from the ensuite and replaced it with a vastly improved unit. He was methodical, skillful and very professional in his approach. He was timely, left the area in a clean and tidy manner.",rating:5},{name:"Jemma Stockwood",text:"We really recommend Reece from Torquay Bathrooms. From the moment he came to give a quote to the minute he finished the job he was polite, helpful and went out of his way to get the job finished to a very high standard.",rating:5},{name:"Lavinia Thorn",text:"Professional workmanship. Excellent service despite dealing with a nightmare of a job. Whole bathroom floor needed replacing due to leaks plus a new bathroom looks fantastic am so pleased.",rating:5}],UR=()=>{const e=()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})};return l.jsx("section",{id:"testimonials",className:"py-20 bg-gradient-to-b from-secondary to-background",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Testimonials"}),l.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:"What Our Clients Say"}),l.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[[...Array(5)].map((t,n)=>l.jsx(Cd,{className:"w-6 h-6 fill-primary text-primary"},n)),l.jsx("span",{className:"text-2xl font-bold ml-2",children:"5.0"})]}),l.jsx("p",{className:"text-muted-foreground",children:"Based on Google Reviews"})]}),l.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl mx-auto mb-12",children:BR.map((t,n)=>l.jsx(Ue,{className:"border-2 hover:border-primary/50 transition-all hover:shadow-lg",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(t.rating)].map((r,o)=>l.jsx(Cd,{className:"w-5 h-5 fill-primary text-primary"},o))}),l.jsxs("p",{className:"text-foreground leading-relaxed mb-4 italic",children:['"',t.text,'"']}),l.jsxs("p",{className:"font-semibold text-primary",children:["— ",t.name]})]})},n))}),l.jsx("div",{className:"text-center",children:l.jsx(ye,{onClick:e,size:"lg",className:"text-lg px-8",children:"Join Our Happy Customers"})})]})})},VR="modulepreload",WR=function(e){return"/"+e},Qp={},HR=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=WR(c),c in Qp)return;Qp[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":VR,u||(f.as="script"),f.crossOrigin="",f.href=c,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},Za=p.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Za.displayName="Input";const y1=p.forwardRef(({className:e,...t},n)=>l.jsx("textarea",{className:le("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));y1.displayName="Textarea";var ge;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(ge||(ge={}));var Yp;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Yp||(Yp={}));const H=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),cr=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return Number.isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},I=ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Rn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,c=0;for(;c<i.path.length;){const u=i.path[c];c===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return o(this),r}static assert(t){if(!(t instanceof Rn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];n[s]=n[s]||[],n[s].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Rn.create=e=>new Rn(e);const Vd=(e,t)=>{let n;switch(e.code){case I.invalid_type:e.received===H.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case I.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ge.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:n=`Unrecognized key(s) in object: ${ge.joinValues(e.keys,", ")}`;break;case I.invalid_union:n="Invalid input";break;case I.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ge.joinValues(e.options)}`;break;case I.invalid_enum_value:n=`Invalid enum value. Expected ${ge.joinValues(e.options)}, received '${e.received}'`;break;case I.invalid_arguments:n="Invalid function arguments";break;case I.invalid_return_type:n="Invalid function return type";break;case I.invalid_date:n="Invalid date";break;case I.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ge.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case I.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case I.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case I.custom:n="Invalid input";break;case I.invalid_intersection_types:n="Intersection results could not be merged";break;case I.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case I.not_finite:n="Number must be finite";break;default:n=t.defaultError,ge.assertNever(e)}return{message:n}};let qR=Vd;function GR(){return qR}const KR=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)a=u(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}};function z(e,t){const n=GR(),r=KR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Vd?void 0:Vd].filter(o=>!!o)});e.common.issues.push(r)}class At{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ne;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return At.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ne;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ne=Object.freeze({status:"aborted"}),Qs=e=>({status:"dirty",value:e}),Wt=e=>({status:"valid",value:e}),Zp=e=>e.status==="aborted",Xp=e=>e.status==="dirty",vs=e=>e.status==="valid",Ml=e=>typeof Promise<"u"&&e instanceof Promise;var q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(q||(q={}));class Dr{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Jp=(e,t)=>{if(vs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Rn(e.common.issues);return this._error=n,this._error}}};function ie(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:o}}class he{get description(){return this._def.description}_getType(t){return cr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:cr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new At,ctx:{common:t.parent.common,data:t.data,parsedType:cr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ml(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:cr(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Jp(r,o)}"~validate"(t){var r,o;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:cr(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:n});return vs(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(o=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>vs(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:cr(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Ml(o)?o:Promise.resolve(o));return Jp(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:I.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new xs({schema:this,typeName:re.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Rr.create(this,this._def)}nullable(){return ws.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _n.create(this)}promise(){return Fl.create(this,this._def)}or(t){return Dl.create([this,t],this._def)}and(t){return Ll.create(this,t,this._def)}transform(t){return new xs({...ie(this._def),schema:this,typeName:re.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Hd({...ie(this._def),innerType:this,defaultValue:n,typeName:re.ZodDefault})}brand(){return new vA({typeName:re.ZodBranded,type:this,...ie(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new qd({...ie(this._def),innerType:this,catchValue:n,typeName:re.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Rh.create(this,t)}readonly(){return Gd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const QR=/^c[^\s-]{8,}$/i,YR=/^[0-9a-z]+$/,ZR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,XR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,JR=/^[a-z0-9_-]{21}$/i,eA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,tA=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ju;const oA=/^(?:(?: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])$/,sA=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,iA=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,aA=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,cA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,x1="((\\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])))",uA=new RegExp(`^${x1}$`);function w1(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function dA(e){return new RegExp(`^${w1(e)}$`)}function fA(e){let t=`${x1}T${w1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function hA(e,t){return!!((t==="v4"||!t)&&oA.test(e)||(t==="v6"||!t)&&iA.test(e))}function mA(e,t){if(!eA.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function pA(e,t){return!!((t==="v4"||!t)&&sA.test(e)||(t==="v6"||!t)&&aA.test(e))}class wr extends he{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){const s=this._getOrReturnCtx(t);return z(s,{code:I.invalid_type,expected:H.string,received:s.parsedType}),ne}const r=new At;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:I.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:I.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?z(o,{code:I.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&z(o,{code:I.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")nA.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"email",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")ju||(ju=new RegExp(rA,"u")),ju.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"emoji",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")XR.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"uuid",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")JR.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"nanoid",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")QR.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"cuid",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")YR.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"cuid2",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")ZR.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"ulid",code:I.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),z(o,{validation:"url",code:I.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"regex",code:I.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),z(o,{code:I.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),z(o,{code:I.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),z(o,{code:I.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?fA(s).test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{code:I.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?uA.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{code:I.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?dA(s).test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{code:I.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?tA.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"duration",code:I.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?hA(t.data,s.version)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"ip",code:I.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?mA(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"jwt",code:I.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?pA(t.data,s.version)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"cidr",code:I.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?lA.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"base64",code:I.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?cA.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"base64url",code:I.invalid_string,message:s.message}),r.dirty()):ge.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:I.invalid_string,...q.errToObj(r)})}_addCheck(t){return new wr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...q.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...q.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...q.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...q.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...q.errToObj(n)})}nonempty(t){return this.min(1,q.errToObj(t))}trim(){return new wr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}wr.create=e=>new wr({checks:[],typeName:re.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ie(e)});function gA(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),i=Number.parseInt(t.toFixed(o).replace(".",""));return s%i/10**o}class Ii extends he{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==H.number){const s=this._getOrReturnCtx(t);return z(s,{code:I.invalid_type,expected:H.number,received:s.parsedType}),ne}let r;const o=new At;for(const s of this._def.checks)s.kind==="int"?ge.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:I.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:I.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:I.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?gA(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),z(r,{code:I.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:I.not_finite,message:s.message}),o.dirty()):ge.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,q.toString(n))}setLimit(t,n,r,o){return new Ii({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:q.toString(o)}]})}_addCheck(t){return new Ii({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:q.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ii.create=e=>new Ii({checks:[],typeName:re.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ie(e)});class Di extends he{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==H.bigint)return this._getInvalidInput(t);let r;const o=new At;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:I.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:I.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),z(r,{code:I.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):ge.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return z(n,{code:I.invalid_type,expected:H.bigint,received:n.parsedType}),ne}gte(t,n){return this.setLimit("min",t,!0,q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,q.toString(n))}setLimit(t,n,r,o){return new Di({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:q.toString(o)}]})}_addCheck(t){return new Di({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:q.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Di.create=e=>new Di({checks:[],typeName:re.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ie(e)});class eg extends he{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const r=this._getOrReturnCtx(t);return z(r,{code:I.invalid_type,expected:H.boolean,received:r.parsedType}),ne}return Wt(t.data)}}eg.create=e=>new eg({typeName:re.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ie(e)});class Il extends he{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){const s=this._getOrReturnCtx(t);return z(s,{code:I.invalid_type,expected:H.date,received:s.parsedType}),ne}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return z(s,{code:I.invalid_date}),ne}const r=new At;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:I.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:I.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):ge.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Il({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:q.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Il.create=e=>new Il({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:re.ZodDate,...ie(e)});class tg extends he{_parse(t){if(this._getType(t)!==H.symbol){const r=this._getOrReturnCtx(t);return z(r,{code:I.invalid_type,expected:H.symbol,received:r.parsedType}),ne}return Wt(t.data)}}tg.create=e=>new tg({typeName:re.ZodSymbol,...ie(e)});class ng extends he{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return z(r,{code:I.invalid_type,expected:H.undefined,received:r.parsedType}),ne}return Wt(t.data)}}ng.create=e=>new ng({typeName:re.ZodUndefined,...ie(e)});class rg extends he{_parse(t){if(this._getType(t)!==H.null){const r=this._getOrReturnCtx(t);return z(r,{code:I.invalid_type,expected:H.null,received:r.parsedType}),ne}return Wt(t.data)}}rg.create=e=>new rg({typeName:re.ZodNull,...ie(e)});class og extends he{constructor(){super(...arguments),this._any=!0}_parse(t){return Wt(t.data)}}og.create=e=>new og({typeName:re.ZodAny,...ie(e)});class sg extends he{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Wt(t.data)}}sg.create=e=>new sg({typeName:re.ZodUnknown,...ie(e)});class Lr extends he{_parse(t){const n=this._getOrReturnCtx(t);return z(n,{code:I.invalid_type,expected:H.never,received:n.parsedType}),ne}}Lr.create=e=>new Lr({typeName:re.ZodNever,...ie(e)});class ig extends he{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return z(r,{code:I.invalid_type,expected:H.void,received:r.parsedType}),ne}return Wt(t.data)}}ig.create=e=>new ig({typeName:re.ZodVoid,...ie(e)});class _n extends he{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==H.array)return z(n,{code:I.invalid_type,expected:H.array,received:n.parsedType}),ne;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(z(n,{code:i?I.too_big:I.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(z(n,{code:I.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(z(n,{code:I.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Dr(n,i,n.path,a)))).then(i=>At.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Dr(n,i,n.path,a)));return At.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new _n({...this._def,minLength:{value:t,message:q.toString(n)}})}max(t,n){return new _n({...this._def,maxLength:{value:t,message:q.toString(n)}})}length(t,n){return new _n({...this._def,exactLength:{value:t,message:q.toString(n)}})}nonempty(t){return this.min(1,t)}}_n.create=(e,t)=>new _n({type:e,minLength:null,maxLength:null,exactLength:null,typeName:re.ZodArray,...ie(t)});function To(e){if(e instanceof Fe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Rr.create(To(r))}return new Fe({...e._def,shape:()=>t})}else return e instanceof _n?new _n({...e._def,type:To(e.element)}):e instanceof Rr?Rr.create(To(e.unwrap())):e instanceof ws?ws.create(To(e.unwrap())):e instanceof uo?uo.create(e.items.map(t=>To(t))):e}class Fe extends he{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ge.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==H.object){const u=this._getOrReturnCtx(t);return z(u,{code:I.invalid_type,expected:H.object,received:u.parsedType}),ne}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Lr&&this._def.unknownKeys==="strip"))for(const u in o.data)i.includes(u)||a.push(u);const c=[];for(const u of i){const d=s[u],f=o.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Dr(o,f,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Lr){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(u==="strict")a.length>0&&(z(o,{code:I.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of a){const f=o.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Dr(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const f=await d.key,m=await d.value;u.push({key:f,value:m,alwaysSet:d.alwaysSet})}return u}).then(u=>At.mergeObjectSync(r,u)):At.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return q.errToObj,new Fe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i;const o=((i=(s=this._def).errorMap)==null?void 0:i.call(s,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:q.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new Fe({...this._def,unknownKeys:"strip"})}passthrough(){return new Fe({...this._def,unknownKeys:"passthrough"})}extend(t){return new Fe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Fe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:re.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Fe({...this._def,catchall:t})}pick(t){const n={};for(const r of ge.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Fe({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ge.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Fe({...this._def,shape:()=>n})}deepPartial(){return To(this)}partial(t){const n={};for(const r of ge.objectKeys(this.shape)){const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new Fe({...this._def,shape:()=>n})}required(t){const n={};for(const r of ge.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Rr;)s=s._def.innerType;n[r]=s}return new Fe({...this._def,shape:()=>n})}keyof(){return b1(ge.objectKeys(this.shape))}}Fe.create=(e,t)=>new Fe({shape:()=>e,unknownKeys:"strip",catchall:Lr.create(),typeName:re.ZodObject,...ie(t)});Fe.strictCreate=(e,t)=>new Fe({shape:()=>e,unknownKeys:"strict",catchall:Lr.create(),typeName:re.ZodObject,...ie(t)});Fe.lazycreate=(e,t)=>new Fe({shape:e,unknownKeys:"strip",catchall:Lr.create(),typeName:re.ZodObject,...ie(t)});class Dl extends he{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Rn(a.ctx.common.issues));return z(n,{code:I.invalid_union,unionErrors:i}),ne}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(c=>new Rn(c));return z(n,{code:I.invalid_union,unionErrors:a}),ne}}get options(){return this._def.options}}Dl.create=(e,t)=>new Dl({options:e,typeName:re.ZodUnion,...ie(t)});function Wd(e,t){const n=cr(e),r=cr(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&r===H.object){const o=ge.objectKeys(t),s=ge.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const c=Wd(e[a],t[a]);if(!c.valid)return{valid:!1};i[a]=c.data}return{valid:!0,data:i}}else if(n===H.array&&r===H.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],c=Wd(i,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return n===H.date&&r===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ll extends he{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(Zp(s)||Zp(i))return ne;const a=Wd(s.value,i.value);return a.valid?((Xp(s)||Xp(i))&&n.dirty(),{status:n.value,value:a.data}):(z(r,{code:I.invalid_intersection_types}),ne)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ll.create=(e,t,n)=>new Ll({left:e,right:t,typeName:re.ZodIntersection,...ie(n)});class uo extends he{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.array)return z(r,{code:I.invalid_type,expected:H.array,received:r.parsedType}),ne;if(r.data.length<this._def.items.length)return z(r,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ne;!this._def.rest&&r.data.length>this._def.items.length&&(z(r,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new Dr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>At.mergeArray(n,i)):At.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new uo({...this._def,rest:t})}}uo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new uo({items:e,typeName:re.ZodTuple,rest:null,...ie(t)})};class ag extends he{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.map)return z(r,{code:I.invalid_type,expected:H.map,received:r.parsedType}),ne;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,c],u)=>({key:o._parse(new Dr(r,a,r.path,[u,"key"])),value:s._parse(new Dr(r,c,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of i){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ne;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of i){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ne;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}}ag.create=(e,t,n)=>new ag({valueType:t,keyType:e,typeName:re.ZodMap,...ie(n)});class Li extends he{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.set)return z(r,{code:I.invalid_type,expected:H.set,received:r.parsedType}),ne;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(z(r,{code:I.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(z(r,{code:I.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const u=new Set;for(const d of c){if(d.status==="aborted")return ne;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((c,u)=>s._parse(new Dr(r,c,r.path,u)));return r.common.async?Promise.all(a).then(c=>i(c)):i(a)}min(t,n){return new Li({...this._def,minSize:{value:t,message:q.toString(n)}})}max(t,n){return new Li({...this._def,maxSize:{value:t,message:q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Li.create=(e,t)=>new Li({valueType:e,minSize:null,maxSize:null,typeName:re.ZodSet,...ie(t)});class lg extends he{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}lg.create=(e,t)=>new lg({getter:e,typeName:re.ZodLazy,...ie(t)});class cg extends he{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return z(n,{received:n.data,code:I.invalid_literal,expected:this._def.value}),ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}cg.create=(e,t)=>new cg({value:e,typeName:re.ZodLiteral,...ie(t)});function b1(e,t){return new ys({values:e,typeName:re.ZodEnum,...ie(t)})}class ys extends he{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return z(n,{expected:ge.joinValues(r),received:n.parsedType,code:I.invalid_type}),ne}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return z(n,{received:n.data,code:I.invalid_enum_value,options:r}),ne}return Wt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return ys.create(t,{...this._def,...n})}exclude(t,n=this._def){return ys.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ys.create=b1;class ug extends he{_parse(t){const n=ge.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==H.string&&r.parsedType!==H.number){const o=ge.objectValues(n);return z(r,{expected:ge.joinValues(o),received:r.parsedType,code:I.invalid_type}),ne}if(this._cache||(this._cache=new Set(ge.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=ge.objectValues(n);return z(r,{received:r.data,code:I.invalid_enum_value,options:o}),ne}return Wt(t.data)}get enum(){return this._def.values}}ug.create=(e,t)=>new ug({values:e,typeName:re.ZodNativeEnum,...ie(t)});class Fl extends he{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.promise&&n.common.async===!1)return z(n,{code:I.invalid_type,expected:H.promise,received:n.parsedType}),ne;const r=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return Wt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Fl.create=(e,t)=>new Fl({type:e,typeName:re.ZodPromise,...ie(t)});class xs extends he{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{z(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ne;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?ne:c.status==="dirty"||n.value==="dirty"?Qs(c.value):c});{if(n.value==="aborted")return ne;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ne:a.status==="dirty"||n.value==="dirty"?Qs(a.value):a}}if(o.type==="refinement"){const i=a=>{const c=o.refinement(a,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vs(i))return ne;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>vs(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):ne);ge.assertNever(o)}}xs.create=(e,t,n)=>new xs({schema:e,typeName:re.ZodEffects,effect:t,...ie(n)});xs.createWithPreprocess=(e,t,n)=>new xs({schema:t,effect:{type:"preprocess",transform:e},typeName:re.ZodEffects,...ie(n)});class Rr extends he{_parse(t){return this._getType(t)===H.undefined?Wt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Rr.create=(e,t)=>new Rr({innerType:e,typeName:re.ZodOptional,...ie(t)});class ws extends he{_parse(t){return this._getType(t)===H.null?Wt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ws.create=(e,t)=>new ws({innerType:e,typeName:re.ZodNullable,...ie(t)});class Hd extends he{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===H.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Hd.create=(e,t)=>new Hd({innerType:e,typeName:re.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ie(t)});class qd extends he{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ml(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Rn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Rn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}qd.create=(e,t)=>new qd({innerType:e,typeName:re.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ie(t)});class dg extends he{_parse(t){if(this._getType(t)!==H.nan){const r=this._getOrReturnCtx(t);return z(r,{code:I.invalid_type,expected:H.nan,received:r.parsedType}),ne}return{status:"valid",value:t.data}}}dg.create=e=>new dg({typeName:re.ZodNaN,...ie(e)});class vA extends he{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Rh extends he{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ne:s.status==="dirty"?(n.dirty(),Qs(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ne:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Rh({in:t,out:n,typeName:re.ZodPipeline})}}class Gd extends he{_parse(t){const n=this._def.innerType._parse(t),r=o=>(vs(o)&&(o.value=Object.freeze(o.value)),o);return Ml(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Gd.create=(e,t)=>new Gd({innerType:e,typeName:re.ZodReadonly,...ie(t)});Fe.lazycreate;var re;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(re||(re={}));const Oa=wr.create;Lr.create;_n.create;const yA=Fe.create;Fe.strictCreate;Dl.create;Ll.create;uo.create;ys.create;Fl.create;Rr.create;ws.create;const xA=yA({name:Oa().trim().min(1,"Name is required").max(100,"Name must be less than 100 characters"),email:Oa().trim().email("Invalid email address").max(255,"Email must be less than 255 characters"),phone:Oa().trim().min(1,"Phone is required").max(20,"Phone must be less than 20 characters"),message:Oa().trim().min(1,"Message is required").max(1e3,"Message must be less than 1000 characters")}),k1=()=>{const[e,t]=p.useState({name:"",email:"",phone:"",message:""}),[n,r]=p.useState(!1),{toast:o}=Iy(),s=async a=>{if(a.preventDefault(),!n)try{r(!0),xA.parse(e);const{supabase:c}=await HR(async()=>{const{supabase:d}=await import("./client-DltHNmvI.js");return{supabase:d}},[]),{error:u}=await c.functions.invoke("send-contact-email",{body:e});if(u)throw u;o({title:"Thank you for your inquiry!",description:"We'll get back to you as soon as possible."}),t({name:"",email:"",phone:"",message:""})}catch(c){console.error("Error submitting form:",c),c instanceof Rn?o({title:"Validation Error",description:c.errors[0].message,variant:"destructive"}):o({title:"Error",description:"Failed to send your message. Please try again.",variant:"destructive"})}finally{r(!1)}},i=a=>{t({...e,[a.target.name]:a.target.value})};return l.jsx("section",{id:"contact",className:"py-20 bg-gradient-to-b from-background to-secondary",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Get in Touch to Transform Your Bathroom Today"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Our expert bathroom remodelling services will help you create a space that's both functional and beautiful, reflecting your unique style."})]}),l.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 max-w-6xl mx-auto",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Contact Information"}),l.jsxs("div",{className:"space-y-6 mb-8",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Rt,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"Phone"}),l.jsx("a",{href:"tel:01803411726",className:"text-muted-foreground hover:text-primary transition-colors",children:"01803 411726"})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(hx,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"Email"}),l.jsx("a",{href:"mailto:info@torquaybathrooms.co.uk",className:"text-muted-foreground hover:text-primary transition-colors",children:"info@torquaybathrooms.co.uk"})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Uo,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"Service Areas"}),l.jsx("p",{className:"text-muted-foreground",children:"Torquay, Paignton, Brixham, Marldon, Kingskerswell, Totnes, Dartmouth, Newton Abbot"})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(cc,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-1",children:"Opening Hours"}),l.jsx("p",{className:"text-muted-foreground",children:"Monday – Friday: 8:00am – 5:00pm"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"Saturday & Sunday: Closed"})]})]})]}),l.jsx(Ue,{className:"bg-primary text-white border-primary",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx("h4",{className:"text-xl font-bold mb-2",children:"1 Year Guarantee"}),l.jsx("p",{className:"text-white/90",children:"All our installations are backed by a 1 year craftsmanship guarantee for your complete peace of mind."})]})})]}),l.jsx(Ue,{children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Book Your Consultation"}),l.jsxs("form",{onSubmit:s,className:"space-y-4",children:[l.jsx("div",{children:l.jsx(Za,{name:"name",placeholder:"Your Name",value:e.name,onChange:i,maxLength:100,required:!0})}),l.jsx("div",{children:l.jsx(Za,{name:"email",type:"email",placeholder:"Your Email",value:e.email,onChange:i,maxLength:255,required:!0})}),l.jsx("div",{children:l.jsx(Za,{name:"phone",type:"tel",placeholder:"Your Phone",value:e.phone,onChange:i,maxLength:20,required:!0})}),l.jsx("div",{children:l.jsx(y1,{name:"message",placeholder:"Tell us about your bathroom project...",className:"min-h-[120px]",value:e.message,onChange:i,maxLength:1e3,required:!0})}),l.jsx(ye,{type:"submit",size:"lg",className:"w-full",disabled:n,children:n?"Sending...":"Send Message"})]})]})})]})]})})},wA="/assets/logo-light-ByxgicB1.png",Eu=["Torquay","Paignton","Brixham","Newton Abbot","Teignmouth"],S1=()=>l.jsx("footer",{className:"bg-foreground text-background py-12",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"grid md:grid-cols-4 gap-8 mb-8",children:[l.jsxs("div",{children:[l.jsx("img",{src:wA,alt:"Torquay Bathrooms",className:"h-16 w-auto mb-4"}),l.jsx("p",{className:"text-background/80 leading-relaxed mb-4",children:"Luxury bathroom specialists serving South Devon. Creating beautiful, functional spaces with expert craftsmanship."}),l.jsxs("p",{className:"text-background/60 text-sm",children:["Proudly serving ",Eu.join(", ")," and surrounding areas."]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-4 text-lg",children:"Quick Links"}),l.jsxs("div",{className:"space-y-2 text-background/80",children:[l.jsx(Y,{to:"/",className:"block hover:text-primary transition-colors",children:"Home"}),l.jsx(Y,{to:"/about",className:"block hover:text-primary transition-colors",children:"About"}),l.jsx(Y,{to:"/our-process",className:"block hover:text-primary transition-colors",children:"Our Process"}),l.jsx(Y,{to:"/gallery",className:"block hover:text-primary transition-colors",children:"Gallery"}),l.jsx(Y,{to:"/contact",className:"block hover:text-primary transition-colors",children:"Contact"})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-4 text-lg",children:"Services"}),l.jsxs("div",{className:"space-y-2 text-background/80",children:[l.jsx(Y,{to:"/services/bath-to-shower",className:"block hover:text-primary transition-colors",children:"Bath to Shower Conversion"}),l.jsx(Y,{to:"/services/bathroom-refurbishment",className:"block hover:text-primary transition-colors",children:"Bathroom Refurbishment"}),l.jsx(Y,{to:"/services/walk-in-showers",className:"block hover:text-primary transition-colors",children:"Walk-In Showers"}),l.jsx(Y,{to:"/services/cloakrooms",className:"block hover:text-primary transition-colors",children:"Cloakrooms"}),l.jsx(Y,{to:"/services/en-suites",className:"block hover:text-primary transition-colors",children:"En-Suites"})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-semibold mb-4 text-lg",children:"Contact"}),l.jsxs("div",{className:"space-y-2 text-background/80",children:[l.jsx("p",{children:"01803 411726"}),l.jsx("p",{children:"info@torquaybathrooms.co.uk"}),l.jsx("p",{children:"Torbay, South Devon"})]}),l.jsxs("div",{className:"mt-4",children:[l.jsx("h5",{className:"font-medium text-sm mb-2 text-background/90",children:"Areas We Cover"}),l.jsx("div",{className:"flex flex-wrap gap-2",children:Eu.map(e=>l.jsx("span",{className:"text-xs bg-background/10 px-2 py-1 rounded",children:e},e))})]})]})]}),l.jsxs("div",{className:"border-t border-background/20 pt-8 text-center text-background/60",children:[l.jsxs("p",{className:"mb-2",children:["© ",new Date().getFullYear()," Torquay Bathrooms. All rights reserved."]}),l.jsxs("p",{className:"text-sm",children:["Bathroom Fitters & Installers in ",Eu.slice(0,3).join(", ")," | South Devon"]})]})]})}),bA=()=>{const[e,t]=p.useState(!1);return p.useEffect(()=>{const n=()=>{t(window.scrollY>500)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[]),e?l.jsxs("a",{href:"tel:01803411726",className:"fixed bottom-6 right-6 z-50 flex items-center gap-3 bg-primary hover:bg-primary/90 text-primary-foreground px-6 py-4 rounded-full shadow-2xl transition-all duration-300 hover:scale-105 animate-in fade-in slide-in-from-bottom-4",children:[l.jsx(Rt,{className:"w-5 h-5"}),l.jsx("span",{className:"font-semibold hidden sm:inline",children:"Call Now: 01803 411726"}),l.jsx("span",{className:"font-semibold sm:hidden",children:"Call Now"})]}):null},C1=()=>{const[e,t]=p.useState(!1);p.useEffect(()=>{const r=()=>{window.scrollY>400?t(!0):t(!1)};return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e?l.jsx(ye,{onClick:n,size:"icon",className:"fixed bottom-24 right-4 z-40 rounded-full shadow-lg bg-secondary hover:bg-secondary/80 text-foreground border border-border","aria-label":"Scroll to top",children:l.jsx(dx,{className:"w-5 h-5"})}):null},ea=({title:e,description:t,canonical:n,ogImage:r="https://torquaybathrooms.co.uk/og-image.jpg"})=>(p.useEffect(()=>{document.title=e;let o=document.querySelector('meta[name="description"]');o?o.setAttribute("content",t):(o=document.createElement("meta"),o.setAttribute("name","description"),o.setAttribute("content",t),document.head.appendChild(o));let s=document.querySelector('link[rel="canonical"]');n&&(s?s.setAttribute("href",n):(s=document.createElement("link"),s.setAttribute("rel","canonical"),s.setAttribute("href",n),document.head.appendChild(s)));const i=(c,u)=>{let d=document.querySelector(`meta[property="${c}"]`);d?d.setAttribute("content",u):(d=document.createElement("meta"),d.setAttribute("property",c),d.setAttribute("content",u),document.head.appendChild(d))};i("og:title",e),i("og:description",t),i("og:image",r),n&&i("og:url",n);const a=(c,u)=>{let d=document.querySelector(`meta[name="${c}"]`);d?d.setAttribute("content",u):(d=document.createElement("meta"),d.setAttribute("name",c),d.setAttribute("content",u),document.head.appendChild(d))};a("twitter:title",e),a("twitter:description",t),a("twitter:image",r)},[e,t,n,r]),null),kA=()=>{const e=()=>{const t=document.getElementById("contact");t&&t.scrollIntoView({behavior:"smooth"})};return l.jsxs("div",{className:"min-h-screen",children:[l.jsx(ea,{title:"Bathroom Fitters Torquay | Luxury Installations South Devon",description:"Expert bathroom fitters in Torquay. Bespoke installations, walk-in showers & wet rooms across South Devon. Lifetime guarantee. Free consultation.",canonical:"https://torquaybathrooms.co.uk/"}),l.jsx(r1,{}),l.jsx(YP,{}),l.jsx("section",{id:"about",className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Your Local Bathroom Experts"}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-8",children:"We're a small, dedicated team based right here in Torquay. We handle everything from design to installation, so you don't have to worry about a thing. Our goal is simple: create a beautiful bathroom you'll love, without any of the stress."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsxs(ye,{onClick:e,size:"lg",className:"rounded-full px-8",children:[l.jsx(Rt,{className:"w-5 h-5 mr-2"}),"Get Your Free Quote"]}),l.jsx(Y,{to:"/about",children:l.jsx(ye,{size:"lg",variant:"outline",className:"rounded-full px-8 w-full sm:w-auto",children:"Learn More About Us"})})]})]})})}),l.jsx(AR,{}),l.jsx(FR,{}),l.jsx($R,{}),l.jsx(UR,{}),l.jsx(k1,{}),l.jsx(S1,{}),l.jsx(bA,{}),l.jsx(C1,{})]})},mn=({children:e})=>{const{pathname:t}=_s();return p.useEffect(()=>{window.scrollTo(0,0)},[t]),l.jsxs("div",{className:"min-h-screen",children:[l.jsx(r1,{}),e,l.jsx(S1,{}),l.jsx(C1,{})]})},Mn=({title:e,subtitle:t,backgroundImage:n})=>l.jsxs("section",{className:"relative py-32 md:py-40 flex items-center justify-center",style:n?{backgroundImage:`linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,children:[!n&&l.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary via-primary/90 to-primary/80"}),l.jsx("div",{className:"container mx-auto px-4 relative z-10",children:l.jsxs("div",{className:"max-w-4xl mx-auto text-center text-white",children:[l.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:e}),t&&l.jsx("p",{className:"text-xl md:text-2xl text-white/90 leading-relaxed",children:t})]})})]}),N1="/assets/hero-bathroom-T7PwImC4.jpg",SA=()=>l.jsxs(mn,{children:[l.jsx(ea,{title:"About Torquay Bathrooms | Expert Bathroom Fitters South Devon",description:"Over 10 years experience creating luxury bathrooms in Torquay & South Devon. Expert craftsmanship, bespoke design, and lifetime guarantee.",canonical:"https://torquaybathrooms.co.uk/about"}),l.jsx(Mn,{title:"About Torquay Bathrooms",subtitle:"Over a decade of experience creating luxury bathrooms across South Devon",backgroundImage:N1}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Our Story"}),l.jsxs("div",{className:"space-y-4 text-lg text-muted-foreground leading-relaxed",children:[l.jsx("p",{children:"At Torquay Bathrooms, we craft exceptional luxury bathrooms, specialising in bespoke wet rooms, elegant walk-in showers, and full bathroom renovations across South Devon. Our mission is to redefine everyday living through refined design, meticulous workmanship, and a flawless, white-glove service."}),l.jsx("p",{children:"We understand that a luxury bathroom is more than just a functional space — it's a personal retreat, a statement of style, and a reflection of refined taste. With over a decade of experience, we bring together expert craftsmanship and thoughtful design to create bathrooms that not only look stunning but enhance your daily routine."}),l.jsx("p",{children:"Serving Torquay, Paignton, Brixham, Newton Abbot, and surrounding areas, we pride ourselves on delivering a seamless, stress-free experience from the first consultation to the final reveal. Every project is handled with care, precision, and a commitment to excellence that our clients have come to trust."})]})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-16",children:[l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(cx,{className:"w-12 h-12 text-primary mb-4"}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:"Expert Craftsmanship"}),l.jsx("p",{className:"text-muted-foreground",children:"Over 10 years of experience delivering luxury bathroom installations with meticulous attention to every detail."})]})}),l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(fx,{className:"w-12 h-12 text-primary mb-4"}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:"Bespoke Design"}),l.jsx("p",{className:"text-muted-foreground",children:"Every bathroom is uniquely designed to reflect your personal style and meet your specific needs."})]})}),l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(px,{className:"w-12 h-12 text-primary mb-4"}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:"White-Glove Service"}),l.jsx("p",{className:"text-muted-foreground",children:"From initial consultation to final touches, we provide exceptional customer service at every step."})]})}),l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(Yf,{className:"w-12 h-12 text-primary mb-4"}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:"Lifetime Guarantee"}),l.jsx("p",{className:"text-muted-foreground",children:"We stand behind our work with a comprehensive lifetime guarantee on all installations."})]})})]}),l.jsxs("div",{className:"bg-secondary/50 rounded-lg p-8 md:p-12 text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Ready to Transform Your Bathroom?"}),l.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Let's discuss your vision and create the bathroom of your dreams together."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",className:"text-lg px-8",children:"Get Your Free Consultation"})})]})]})})})]}),CA=({icon:e,number:t,title:n,description:r,isLast:o})=>l.jsxs("div",{className:"relative",children:[l.jsxs("div",{className:"flex flex-col items-center text-center",children:[l.jsxs("div",{className:"w-20 h-20 rounded-full bg-primary/10 flex items-center justify-center mb-6 relative",children:[l.jsx(e,{className:"w-10 h-10 text-primary"}),l.jsx("div",{className:"absolute -top-2 -right-2 w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center text-sm font-bold",children:t})]}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:n}),l.jsx("p",{className:"text-muted-foreground leading-relaxed",children:r})]}),!o&&l.jsx("div",{className:"hidden lg:block absolute top-10 left-1/2 w-full h-0.5 bg-primary/20",style:{transform:"translateX(50%)"}})]}),NA=()=>{const e=[{icon:Rt,title:"Book in a Discovery Call",description:"The first step is a friendly, no-pressure conversation where we learn more about your project. We'll discuss your vision, what you're hoping to achieve, and any practical considerations like budget and timelines. This is your opportunity to ask questions, share ideas, and get a feel for how we work. There's no obligation—just honest advice and helpful guidance."},{icon:vo,title:"In-Home Design Consultation",description:"Once you're ready to move forward, we'll arrange an in-home consultation at a time that suits you. During this visit, we'll take precise measurements, assess the existing layout, and discuss design options in detail. We'll talk about styles, finishes, fixtures, and features—helping you visualise what's possible and making recommendations based on our years of experience."},{icon:GC,title:"Detailed Quote & Planning",description:"After the consultation, we'll prepare a comprehensive, itemised quote with no hidden costs. You'll know exactly what's included and what to expect. We'll also provide a realistic timeline for the project to help you plan ahead. You'll have all the information you need to make a confident decision."},{icon:KC,title:"Professional Installation",description:"When you're happy to proceed, we'll schedule your installation at a time that works for you. Our skilled team will carry out the work with care, precision, and respect for your home. We keep disruption to a minimum, maintain a clean workspace, and provide regular progress updates so you're always informed. Every detail is handled with the professionalism and expertise we're known for."},{icon:go,title:"Quality Checks & Final Touches",description:"Before we consider the job complete, we conduct thorough quality checks to ensure everything meets our exacting standards. We'll walk you through your new bathroom, checking you're delighted with every detail. Any final adjustments or finishing touches are completed promptly, leaving you with a flawless finish you can enjoy for years to come."},{icon:uc,title:"Aftercare Support",description:"Our relationship doesn't end when the job is finished. We're here to provide ongoing support and advice whenever you need it. All our work is backed by a comprehensive guarantee, giving you complete peace of mind. If you ever have questions or concerns, we're just a phone call away."}];return l.jsxs(mn,{children:[l.jsx(Mn,{title:"Our Proven Process",subtitle:"A seamless six-step journey from vision to reality"}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsx("div",{className:"text-center mb-16",children:l.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"At Torquay Bathrooms, we believe the journey should be just as seamless and enjoyable as the finished result. That's why we've designed a step-by-step process that ensures complete clarity, peace of mind, and exceptional quality from start to finish. Here's how we turn your bathroom vision into a stunning reality:"})}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-12 mb-20",children:e.map((t,n)=>l.jsx(CA,{icon:t.icon,number:n+1,title:t.title,description:t.description,isLast:n===e.length-1},n))}),l.jsx("div",{className:"bg-primary text-white rounded-lg p-8 md:p-12",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Start Your Bathroom Transformation Today"}),l.jsx("p",{className:"text-lg text-white/90 mb-8 leading-relaxed",children:"Book your free discovery call and take the first step towards your dream bathroom. No obligation, just expert advice and genuine guidance."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",variant:"secondary",className:"text-lg px-8",children:"Book Your Free Consultation"})})]})})]})})})]})},jA=Qf("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function EA({className:e,variant:t,...n}){return l.jsx("div",{className:le(jA({variant:t}),e),...n})}const _A=()=>{const e=[{icon:dc,title:"Bath to Shower Conversion",description:"Quick, professional conversions in as little as 2 days. Swap your bath for a modern walk-in shower—ideal for accessibility and busy households.",link:"/services/bath-to-shower",badge:"Quick Turnaround"},{icon:ux,title:"Complete Bathroom Refurbishment",description:"Transform your entire bathroom with our comprehensive refurbishment service. From design to installation, we handle every detail to create your perfect space.",link:"/services/bathroom-refurbishment"},{icon:mx,title:"Walk-In Showers",description:"Create a luxurious, accessible bathing experience with our bespoke walk-in shower installations. Perfect for modern living and ease of use.",link:"/services/walk-in-showers"},{icon:vo,title:"Cloakrooms",description:"Make the most of compact spaces with our stylish cloakroom installations. Smart design solutions that maximize functionality and style.",link:"/services/cloakrooms"},{icon:Br,title:"En-Suites",description:"Add value and luxury to your home with a beautiful en-suite bathroom. Perfectly integrated with your bedroom space.",link:"/services/en-suites"}];return l.jsxs(mn,{children:[l.jsx(ea,{title:"Bathroom Services Torquay | Refurbishments & Walk-In Showers",description:"Complete bathroom services in Torquay: refurbishments, walk-in showers, bath conversions, en-suites & cloakrooms. Free quotes across South Devon.",canonical:"https://torquaybathrooms.co.uk/services"}),l.jsx(Mn,{title:"Our Services",subtitle:"Expert bathroom solutions tailored to your needs and lifestyle"}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsx("div",{className:"text-center mb-16",children:l.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:"Whether you're looking for a complete bathroom transformation or a specific installation, our expert team delivers exceptional results every time. Explore our services below."})}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:e.map((t,n)=>l.jsx(Ue,{className:"group hover:shadow-xl transition-all duration-300 hover:border-primary/50",children:l.jsxs(Ve,{className:"pt-6 flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-start justify-between mb-6",children:[l.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:l.jsx(t.icon,{className:"w-8 h-8 text-primary"})}),"badge"in t&&t.badge&&l.jsx(EA,{variant:"secondary",className:"bg-primary/10 text-primary border-primary/20",children:t.badge})]}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:t.title}),l.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6 flex-grow",children:t.description}),l.jsx(Y,{to:t.link,children:l.jsx(ye,{variant:"outline",className:"w-full group-hover:bg-primary group-hover:text-white transition-colors",children:"Learn More"})})]})},n))}),l.jsxs("div",{className:"bg-secondary/50 rounded-lg p-8 md:p-12 text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Not Sure Which Service You Need?"}),l.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Book a free consultation and we'll help you choose the perfect solution for your space and budget."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",className:"text-lg px-8",children:"Get Free Expert Advice"})})]})]})})})]})},TA=()=>{const e=["Full design consultation and planning","Removal of existing bathroom suite and fittings","Any necessary building work, including walls, ceilings, and floors","Updated plumbing and electrical systems","Professional tiling and flooring installation","Installation of high-quality bathroom suite and fixtures","Finishing touches and thorough quality checks"],t=[{icon:Br,title:"Bespoke Design",description:"Every bathroom is uniquely designed to match your style and requirements perfectly."},{icon:cc,title:"On-Time Delivery",description:"We respect your time with realistic schedules and reliable project completion."},{icon:uc,title:"Quality Guaranteed",description:"Premium materials and expert installation backed by our lifetime guarantee."}];return l.jsxs(mn,{children:[l.jsx(Mn,{title:"Complete Bathroom Refurbishment",subtitle:"Transform your bathroom into a luxurious sanctuary with our comprehensive refurbishment service",backgroundImage:N1}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Transform Your Bathroom into a Space You'll Love"}),l.jsxs("div",{className:"space-y-4 text-lg text-muted-foreground leading-relaxed",children:[l.jsx("p",{children:"Looking for a complete bathroom refurbishment in Torquay, Paignton, or Brixham? At Torquay Bathrooms, we specialise in high-quality, full-service bathroom renovations across South Devon—transforming tired spaces into beautifully designed bathrooms that blend functionality, style, and long-lasting craftsmanship."}),l.jsx("p",{children:"Whether you're updating an outdated layout or creating a luxurious new space from scratch, we manage the entire process with precision and care. Our trusted network of qualified tradespeople ensures every detail is handled professionally, from the first tile to the final fixture."}),l.jsx("p",{children:"A complete bathroom refurbishment with us means more than just a cosmetic update—it's a full transformation. We handle everything: from removing the old bathroom and addressing any structural or plumbing changes, right through to designing and installing a stunning new space that's tailored to your taste and lifestyle."})]})]}),l.jsxs("div",{className:"mb-16",children:[l.jsx("h3",{className:"text-2xl font-bold mb-8",children:"What's Included in a Complete Refurbishment"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map((n,r)=>l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(go,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),l.jsx("span",{className:"text-lg",children:n})]},r))})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-16",children:t.map((n,r)=>l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6 text-center",children:[l.jsx(n.icon,{className:"w-12 h-12 text-primary mx-auto mb-4"}),l.jsx("h4",{className:"text-xl font-bold mb-3",children:n.title}),l.jsx("p",{className:"text-muted-foreground",children:n.description})]})},r))}),l.jsxs("div",{className:"bg-muted/50 rounded-lg p-8 md:p-12 mb-8",children:[l.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Why Choose Torquay Bathrooms for Your Refurbishment?"}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"With years of experience and a reputation for excellence, we take pride in delivering bathroom refurbishments that exceed expectations. We work closely with you throughout the project, ensuring you're informed, confident, and delighted with the results. From traditional bathrooms to contemporary wet rooms, we bring expertise, quality materials, and meticulous craftsmanship to every project."})]}),l.jsxs("div",{className:"bg-primary text-white rounded-lg p-8 md:p-12 text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Ready to Start Your Bathroom Transformation?"}),l.jsx("p",{className:"text-lg text-white/90 mb-8 max-w-2xl mx-auto",children:"Book your free consultation today and let's discuss how we can create the perfect bathroom for you."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",variant:"secondary",className:"text-lg px-8",children:"Get Your Free Quote"})})]})]})})})]})};var Tc="Collapsible",[PA,j1]=An(Tc),[RA,Ah]=PA(Tc),E1=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...a}=e,[c,u]=po({prop:r,defaultProp:o??!1,onChange:i,caller:Tc});return l.jsx(RA,{scope:n,disabled:s,contentId:Tr(),open:c,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),children:l.jsx(de.div,{"data-state":Mh(c),"data-disabled":s?"":void 0,...a,ref:t})})});E1.displayName=Tc;var _1="CollapsibleTrigger",T1=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ah(_1,n);return l.jsx(de.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Mh(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:G(e.onClick,o.onOpenToggle)})});T1.displayName=_1;var Oh="CollapsibleContent",P1=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ah(Oh,e.__scopeCollapsible);return l.jsx(hn,{present:n||o.open,children:({present:s})=>l.jsx(AA,{...r,ref:t,present:s})})});P1.displayName=Oh;var AA=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=Ah(Oh,n),[a,c]=p.useState(r),u=p.useRef(null),d=De(t,u),f=p.useRef(0),m=f.current,h=p.useRef(0),b=h.current,v=i.open||a,w=p.useRef(v),g=p.useRef(void 0);return p.useEffect(()=>{const y=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(y)},[]),Tn(()=>{const y=u.current;if(y){g.current=g.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const x=y.getBoundingClientRect();f.current=x.height,h.current=x.width,w.current||(y.style.transitionDuration=g.current.transitionDuration,y.style.animationName=g.current.animationName),c(r)}},[i.open,r]),l.jsx(de.div,{"data-state":Mh(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&o})});function Mh(e){return e?"open":"closed"}var OA=E1,MA=T1,IA=P1,pn="Accordion",DA=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ih,LA,FA]=oc(pn),[Pc,GO]=An(pn,[FA,j1]),Dh=j1(),R1=A.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return l.jsx(Ih.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?l.jsx(UA,{...s,ref:t}):l.jsx(BA,{...o,ref:t})})});R1.displayName=pn;var[A1,zA]=Pc(pn),[O1,$A]=Pc(pn,{collapsible:!1}),BA=A.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...i}=e,[a,c]=po({prop:n,defaultProp:r??"",onChange:o,caller:pn});return l.jsx(A1,{scope:e.__scopeAccordion,value:A.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:A.useCallback(()=>s&&c(""),[s,c]),children:l.jsx(O1,{scope:e.__scopeAccordion,collapsible:s,children:l.jsx(M1,{...i,ref:t})})})}),UA=A.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[i,a]=po({prop:n,defaultProp:r??[],onChange:o,caller:pn}),c=A.useCallback(d=>a((f=[])=>[...f,d]),[a]),u=A.useCallback(d=>a((f=[])=>f.filter(m=>m!==d)),[a]);return l.jsx(A1,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:u,children:l.jsx(O1,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(M1,{...s,ref:t})})})}),[VA,Rc]=Pc(pn),M1=A.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...i}=e,a=A.useRef(null),c=De(a,t),u=LA(n),f=hh(o)==="ltr",m=G(e.onKeyDown,h=>{var E;if(!DA.includes(h.key))return;const b=h.target,v=u().filter(T=>{var R;return!((R=T.ref.current)!=null&&R.disabled)}),w=v.findIndex(T=>T.ref.current===b),g=v.length;if(w===-1)return;h.preventDefault();let y=w;const x=0,k=g-1,S=()=>{y=w+1,y>k&&(y=x)},N=()=>{y=w-1,y<x&&(y=k)};switch(h.key){case"Home":y=x;break;case"End":y=k;break;case"ArrowRight":s==="horizontal"&&(f?S():N());break;case"ArrowDown":s==="vertical"&&S();break;case"ArrowLeft":s==="horizontal"&&(f?N():S());break;case"ArrowUp":s==="vertical"&&N();break}const C=y%g;(E=v[C].ref.current)==null||E.focus()});return l.jsx(VA,{scope:n,disabled:r,direction:o,orientation:s,children:l.jsx(Ih.Slot,{scope:n,children:l.jsx(de.div,{...i,"data-orientation":s,ref:c,onKeyDown:r?void 0:m})})})}),zl="AccordionItem",[WA,Lh]=Pc(zl),I1=A.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=Rc(zl,n),i=zA(zl,n),a=Dh(n),c=Tr(),u=r&&i.value.includes(r)||!1,d=s.disabled||e.disabled;return l.jsx(WA,{scope:n,open:u,disabled:d,triggerId:c,children:l.jsx(OA,{"data-orientation":s.orientation,"data-state":B1(u),...a,...o,ref:t,disabled:d,open:u,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});I1.displayName=zl;var D1="AccordionHeader",L1=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Rc(pn,n),s=Lh(D1,n);return l.jsx(de.h3,{"data-orientation":o.orientation,"data-state":B1(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});L1.displayName=D1;var Kd="AccordionTrigger",F1=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Rc(pn,n),s=Lh(Kd,n),i=$A(Kd,n),a=Dh(n);return l.jsx(Ih.ItemSlot,{scope:n,children:l.jsx(MA,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...a,...r,ref:t})})});F1.displayName=Kd;var z1="AccordionContent",$1=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Rc(pn,n),s=Lh(z1,n),i=Dh(n);return l.jsx(IA,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});$1.displayName=z1;function B1(e){return e?"open":"closed"}var HA=R1,qA=I1,GA=L1,U1=F1,V1=$1;const KA=HA,W1=p.forwardRef(({className:e,...t},n)=>l.jsx(qA,{ref:n,className:le("border-b",e),...t}));W1.displayName="AccordionItem";const H1=p.forwardRef(({className:e,children:t,...n},r)=>l.jsx(GA,{className:"flex",children:l.jsxs(U1,{ref:r,className:le("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,l.jsx(kl,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));H1.displayName=U1.displayName;const q1=p.forwardRef(({className:e,children:t,...n},r)=>l.jsx(V1,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:l.jsx("div",{className:le("pb-4 pt-0",e),children:t})}));q1.displayName=V1.displayName;const QA="/assets/bath-to-shower-before-DThJKI4e.jpg",YA="/assets/bath-to-shower-after-HzxJVNc7.jpg",ZA=["Torquay","Paignton","Brixham","Newton Abbot","Teignmouth"],XA=[{icon:dc,title:"Fast Installation",description:"Most conversions completed in just 2-7 days, minimising disruption to your home."},{icon:uc,title:"Same Quality Guarantee",description:"Every installation backed by our comprehensive 1-year guarantee."},{icon:lx,title:"Improved Accessibility",description:"Step-free access with anti-slip surfaces and optional grab rails for safety."},{icon:Br,title:"Modern Finish",description:"Stylish, contemporary design using premium materials and fixtures."}],JA=[{icon:px,title:"Elderly & Mobility Needs",description:"Safe, step-free showering for those who find climbing into a bath difficult. We've helped many homeowners across Torquay and Paignton improve bathroom accessibility."},{icon:vo,title:"Landlords & Property Investors",description:"Quick turnaround to get rental properties in Torbay back on the market faster. Popular with buy-to-let landlords in Brixham and Newton Abbot."},{icon:cc,title:"Busy Households",description:"Showers are quicker and more practical for modern family life. Perfect for growing families throughout South Devon."}],eO=[{step:1,title:"Free Home Survey",description:"We visit your home in Torquay, Paignton, Brixham or surrounding areas to assess your bathroom and discuss your requirements.",icon:BC},{step:2,title:"Fixed Price Quote",description:"Receive a detailed, transparent quote with no hidden costs. We'll explain exactly what's included.",icon:go},{step:3,title:"Professional Installation",description:"Our skilled fitters complete the conversion in 2-7 days, keeping disruption to an absolute minimum.",icon:Yf},{step:4,title:"Final Inspection",description:"We walk you through your new shower, demonstrate all features, and leave your bathroom spotless.",icon:Cd}],tO=[{question:"How long does a bath to shower conversion take?",answer:"Most bath to shower conversions in Torquay and surrounding areas take between 2-7 days, depending on the complexity. Simple like-for-like conversions can be completed in as little as 2 days, while more extensive work including new tiling may take up to a week."},{question:"Do you cover Paignton, Brixham and Newton Abbot?",answer:"Yes! We're based in Torbay and regularly carry out bath to shower conversions across Torquay, Paignton, Brixham, Newton Abbot, Teignmouth and the wider South Devon area. We offer free home surveys throughout these locations."},{question:"Is a walk-in shower safer than a bath?",answer:"Absolutely. Walk-in showers eliminate the need to climb over a bath edge, significantly reducing the risk of slips and falls. We can also install anti-slip trays, grab rails and shower seats for added safety — popular options for our customers in Torquay and Paignton."},{question:"Will I need to change my plumbing?",answer:"In most cases, we can connect your new shower to existing plumbing. Our experienced fitters assess this during the free home survey and will advise if any modifications are needed. The cost of any plumbing work is included in your fixed-price quote."},{question:"What warranty do you offer?",answer:"All our bath to shower conversions come with a comprehensive 1-year guarantee covering workmanship. Many of the products we install also come with manufacturer warranties of 5-10 years."},{question:"Can you install grab rails and a shower seat?",answer:"Yes, we offer a full range of accessibility features including grab rails, fold-down shower seats, and low-profile shower trays. These are particularly popular with our elderly customers across Torbay who want to shower safely and independently."},{question:"Do you remove and dispose of the old bath?",answer:"Yes, our service includes complete removal and responsible disposal of your old bath, panels and any associated waste. We leave your bathroom clean and ready to use."},{question:"How much does a bath to shower conversion cost?",answer:"Prices vary depending on your requirements, but our bath to shower conversions typically start from around £2,500-£3,500 for a straightforward conversion. We provide free, no-obligation quotes so you know exactly what to expect."}],nO=()=>l.jsxs(mn,{children:[l.jsx(Mn,{title:"Bath to Shower Conversion in Torquay & South Devon",subtitle:"Professional conversions from just 2 days — serving Torquay, Paignton, Brixham & beyond"}),l.jsx("section",{className:"py-16 bg-gradient-to-b from-secondary/50 to-background",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[l.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary rounded-full px-4 py-2 mb-6",children:[l.jsx(dc,{className:"w-5 h-5"}),l.jsx("span",{className:"font-semibold",children:"Quick Turnaround Available"})]}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Swap Your Bath for a Walk-In Shower — Fast"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-4 leading-relaxed",children:"Looking for a bath to shower conversion in Torquay, Paignton or Brixham? We're local bathroom specialists who've helped hundreds of South Devon homeowners make the switch to modern, accessible walk-in showers."}),l.jsx("p",{className:"text-lg text-muted-foreground mb-8 leading-relaxed",children:"No need for a full bathroom renovation. Our professional bath to shower conversions give you a stylish, step-free shower in as little as 2 days — with minimal disruption to your daily routine."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[l.jsx(Y,{to:"/contact",children:l.jsxs(ye,{size:"lg",className:"text-lg px-8",children:[l.jsx(Rt,{className:"w-5 h-5 mr-2"}),"Get a Free Quote"]})}),l.jsx(ye,{size:"lg",variant:"outline",className:"text-lg px-8",asChild:!0,children:l.jsx("a",{href:"tel:01803411726",children:"Call: 01803 411726"})})]}),l.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[l.jsx(Uo,{className:"w-5 h-5 text-primary"}),l.jsx("span",{className:"text-muted-foreground",children:"Serving:"}),ZA.map((e,t)=>l.jsx("span",{className:"bg-secondary px-3 py-1 rounded-full text-sm font-medium",children:e},e))]})]})})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Real Results in Torbay"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"See the Transformation"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"From tired bath to stunning walk-in shower — a recent conversion completed for a customer in South Devon."})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[l.jsxs("div",{className:"relative group",children:[l.jsx("div",{className:"absolute top-4 left-4 bg-background/90 backdrop-blur-sm text-foreground font-bold px-4 py-2 rounded-full z-10",children:"Before"}),l.jsx("img",{src:QA,alt:"Bathroom before bath to shower conversion in Torquay - old bath with dated tiles",className:"w-full h-[28rem] md:h-[32rem] object-cover rounded-xl shadow-lg"})]}),l.jsxs("div",{className:"relative group",children:[l.jsx("div",{className:"absolute top-4 left-4 bg-primary text-primary-foreground font-bold px-4 py-2 rounded-full z-10",children:"After"}),l.jsx("img",{src:YA,alt:"Bathroom after conversion - modern walk-in shower installed in Torquay",className:"w-full h-[28rem] md:h-[32rem] object-cover rounded-xl shadow-lg"})]})]})]})})}),l.jsx("section",{className:"py-20 bg-secondary/30",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"How It Works"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Your Bath to Shower Conversion in 4 Simple Steps"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"From initial consultation to completion, we make the process straightforward and stress-free."})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:eO.map(e=>l.jsx("div",{className:"relative",children:l.jsxs("div",{className:"bg-background rounded-xl p-6 h-full border border-border hover:border-primary/50 transition-all",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold",children:e.step}),l.jsx(e.icon,{className:"w-6 h-6 text-primary"})]}),l.jsx("h3",{className:"text-lg font-bold mb-2",children:e.title}),l.jsx("p",{className:"text-muted-foreground text-sm",children:e.description})]})},e.step))})]})})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Why Choose This Service"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Benefits of a Bath to Shower Conversion"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Join hundreds of homeowners across Torquay, Paignton and Brixham who've upgraded to a modern walk-in shower."})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:XA.map((e,t)=>l.jsx(Ue,{className:"border-primary/20 hover:border-primary/50 transition-all hover:shadow-lg",children:l.jsxs(Ve,{className:"pt-6 text-center",children:[l.jsx("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:l.jsx(e.icon,{className:"w-7 h-7 text-primary"})}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.description})]})},t))})]})})}),l.jsx("section",{className:"py-20 bg-secondary/30",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What's Included in Your Conversion"}),l.jsx("p",{className:"text-xl text-muted-foreground",children:"A complete, hassle-free service from our Torbay-based team."})]}),l.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:["Removal and disposal of existing bath","Installation of level or low-profile shower tray","New shower valve and riser kit or fixed head","Tiling or waterproof wall panels","Anti-slip flooring options available","Optional grab rails and shower seats","All plumbing and electrical work","Full clean-up on completion"].map((e,t)=>l.jsxs("div",{className:"flex items-start gap-3 bg-background rounded-lg p-4",children:[l.jsx(go,{className:"w-6 h-6 text-primary flex-shrink-0 mt-0.5"}),l.jsx("span",{className:"text-foreground",children:e})]},t))})]})})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-6xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Perfect For"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Who Benefits from This Service?"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"We've completed bath to shower conversions for all types of customers across South Devon."})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:JA.map((e,t)=>l.jsx(Ue,{className:"hover:shadow-lg transition-all",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:l.jsx(e.icon,{className:"w-6 h-6 text-primary"})}),l.jsx("h3",{className:"text-xl font-bold mb-3",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.description})]})},t))})]})})}),l.jsx("section",{className:"py-20 bg-secondary/30",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-3xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Common Questions"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Bath to Shower Conversion FAQs"}),l.jsx("p",{className:"text-xl text-muted-foreground",children:"Everything you need to know about our conversion service in Torquay, Paignton and Brixham."})]}),l.jsx(KA,{type:"single",collapsible:!0,className:"space-y-4",children:tO.map((e,t)=>l.jsxs(W1,{value:`faq-${t}`,className:"bg-background rounded-lg px-6 border border-border",children:[l.jsx(H1,{className:"text-left font-semibold hover:no-underline",children:e.question}),l.jsx(q1,{className:"text-muted-foreground leading-relaxed",children:e.answer})]},t))})]})})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Local Service"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Bath to Shower Conversions Across South Devon"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Based in Torbay, we provide professional bath to shower conversions throughout:"})]}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[l.jsx(Ue,{className:"text-center hover:shadow-lg transition-all",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(Uo,{className:"w-8 h-8 text-primary mx-auto mb-3"}),l.jsx("h3",{className:"font-bold text-lg mb-2",children:"Torquay"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Including Wellswood, St Marychurch, Chelston & Cockington"})]})}),l.jsx(Ue,{className:"text-center hover:shadow-lg transition-all",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(Uo,{className:"w-8 h-8 text-primary mx-auto mb-3"}),l.jsx("h3",{className:"font-bold text-lg mb-2",children:"Paignton"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Including Preston, Goodrington, Churston & Marldon"})]})}),l.jsx(Ue,{className:"text-center hover:shadow-lg transition-all",children:l.jsxs(Ve,{className:"pt-6",children:[l.jsx(Uo,{className:"w-8 h-8 text-primary mx-auto mb-3"}),l.jsx("h3",{className:"font-bold text-lg mb-2",children:"Brixham"}),l.jsx("p",{className:"text-sm text-muted-foreground",children:"Including Furzeham, Higher Brixham & Kingswear"})]})})]}),l.jsxs("p",{className:"text-center text-muted-foreground",children:["We also cover Newton Abbot, Teignmouth, Dawlish, Totnes and the wider South Devon area.",l.jsx(Y,{to:"/contact",className:"text-primary hover:underline ml-1",children:"Contact us"})," to check if we cover your location."]})]})})}),l.jsx("section",{className:"py-20 bg-primary/5",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready for Your Bath to Shower Conversion?"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Get a free, no-obligation quote from our friendly team. We'll visit your home in Torquay, Paignton, Brixham or anywhere in South Devon to discuss your requirements and provide a fixed price."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx(Y,{to:"/contact",children:l.jsxs(ye,{size:"lg",className:"text-lg px-8 group",children:["Book Your Free Quote",l.jsx(lc,{className:"ml-2 w-5 h-5 group-hover:translate-x-1 transition-transform"})]})}),l.jsx(ye,{size:"lg",variant:"outline",className:"text-lg px-8",asChild:!0,children:l.jsxs("a",{href:"tel:01803411726",children:[l.jsx(Rt,{className:"w-5 h-5 mr-2"}),"01803 411726"]})})]})]})})})]}),rO=()=>{const e=["Easy Access – Low or no threshold makes stepping in and out effortless","Spacious & Open – Creates a sense of light and space, even in smaller bathrooms","Modern Design – Clean lines and frameless glass screens add a contemporary feel","Versatile – Works beautifully in family bathrooms, en suites, and wet rooms","Practical – Easy to clean and maintain with durable, high-quality materials"],t=[{icon:lx,title:"Accessible Design",description:"Perfect for families, elderly, and those with mobility considerations."},{icon:qC,title:"Superior Drainage",description:"Advanced drainage systems ensure efficient water management."},{icon:Br,title:"Luxury Finishes",description:"Premium materials and fixtures for a high-end finish."}];return l.jsxs(mn,{children:[l.jsx(Mn,{title:"Walk-In Showers",subtitle:"Accessible luxury and modern elegance for your bathroom"}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Style, Simplicity, and Modern Living"}),l.jsxs("div",{className:"space-y-4 text-lg text-muted-foreground leading-relaxed",children:[l.jsx("p",{children:"A walk-in shower is the perfect blend of style, simplicity, and modern living. At Torquay Bathrooms, we design and install beautifully finished walk-in showers across Torquay, Paignton, Brixham, and the wider South Devon area—creating accessible, luxurious spaces that suit any home."}),l.jsx("p",{children:"Walk-in showers are ideal for creating a clean, spacious feel in your bathroom. Typically featuring a low-profile shower tray and minimalist glass screens, they offer a refined, contemporary look that suits both modern homes and period properties. Whether you're looking for ease of access, a sleek aesthetic, or simply a more practical showering solution, a walk-in shower delivers on all fronts."})]})]}),l.jsxs("div",{className:"mb-16",children:[l.jsx("h3",{className:"text-2xl font-bold mb-8",children:"Benefits of Walk-In Showers"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map((n,r)=>l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(go,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),l.jsx("span",{className:"text-lg",children:n})]},r))})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-16",children:t.map((n,r)=>l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6 text-center",children:[l.jsx(n.icon,{className:"w-12 h-12 text-primary mx-auto mb-4"}),l.jsx("h4",{className:"text-xl font-bold mb-3",children:n.title}),l.jsx("p",{className:"text-muted-foreground",children:n.description})]})},r))}),l.jsxs("div",{className:"bg-secondary/50 rounded-lg p-8 md:p-12 mb-8",children:[l.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Perfect for Every Home"}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Walk-in showers aren't just for new builds—they can be fitted into almost any bathroom, whether you're renovating a family bathroom, updating an en suite, or creating an accessible space for elderly family members. We tailor each installation to your space, ensuring the design is both practical and stylish."})]}),l.jsxs("div",{className:"bg-primary text-white rounded-lg p-8 md:p-12 text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Ready for Your Walk-In Shower?"}),l.jsx("p",{className:"text-lg text-white/90 mb-8 max-w-2xl mx-auto",children:"Contact us today for a free consultation and quote. Let's create the perfect walk-in shower for your home."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",variant:"secondary",className:"text-lg px-8",children:"Get Your Free Quote"})})]})]})})})]})},oO=()=>{const e=["Convenience – A downstairs toilet is incredibly practical for families and guests","Adds Value – Increases your property's appeal and market value","Space-Efficient – Makes use of otherwise wasted areas like under-stair spaces","Style & Function – Even small spaces can be beautifully designed with the right fixtures","Privacy – Keeps your main bathroom private and less busy"],t=[{icon:QC,title:"Space Optimization",description:"Clever design solutions that maximize every inch of your cloakroom."},{icon:Br,title:"Stylish Solutions",description:"Beautiful fixtures and finishes that make a big impact in small spaces."},{icon:vo,title:"Perfect Integration",description:"Seamlessly integrated design that complements your home's style."}];return l.jsxs(mn,{children:[l.jsx(Mn,{title:"Cloakrooms",subtitle:"Stylish, space-saving solutions for compact bathrooms"}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Practicality and Value in Small Spaces"}),l.jsxs("div",{className:"space-y-4 text-lg text-muted-foreground leading-relaxed",children:[l.jsx("p",{children:"A well-designed cloakroom is the perfect way to add practicality and value to your home—especially when space is limited. At Torquay Bathrooms, we create compact, stylish cloakroom toilets across Torquay, Paignton, Brixham, and the surrounding South Devon area, using clever layouts and high-quality finishes that make a big impression in small spaces."}),l.jsx("p",{children:"Cloakrooms are ideal for ground floor convenience and are often built under stairs, in hallways, or within unused corners of the home. Despite their compact size, a thoughtfully designed cloakroom can be both functional and elegant, offering guests a comfortable, well-finished space."})]})]}),l.jsxs("div",{className:"mb-16",children:[l.jsx("h3",{className:"text-2xl font-bold mb-8",children:"Cloakroom Solutions"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map((n,r)=>l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(go,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),l.jsx("span",{className:"text-lg",children:n})]},r))})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-16",children:t.map((n,r)=>l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6 text-center",children:[l.jsx(n.icon,{className:"w-12 h-12 text-primary mx-auto mb-4"}),l.jsx("h4",{className:"text-xl font-bold mb-3",children:n.title}),l.jsx("p",{className:"text-muted-foreground",children:n.description})]})},r))}),l.jsxs("div",{className:"bg-secondary/50 rounded-lg p-8 md:p-12 mb-8",children:[l.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Smart Design for Small Spaces"}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Designing a cloakroom requires careful planning to make the most of limited space. We use space-saving fixtures like wall-hung toilets and compact basins, clever storage solutions, and light, neutral tones to create a sense of space. Every cloakroom we design is tailored to your home's layout and style—whether you prefer a modern, minimalist look or something more traditional."})]}),l.jsxs("div",{className:"bg-primary text-white rounded-lg p-8 md:p-12 text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Transform Your Cloakroom"}),l.jsx("p",{className:"text-lg text-white/90 mb-8 max-w-2xl mx-auto",children:"Let's discuss how we can create a stylish, practical cloakroom that makes the most of your space."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",variant:"secondary",className:"text-lg px-8",children:"Get Your Free Quote"})})]})]})})})]})},sO=()=>{const e=["Privacy & Convenience – Enjoy a private bathroom attached to your bedroom","Adds Value – One of the most desirable features for homebuyers","Tailored Design – Designed to match your bedroom's style and your personal preferences","Space Efficiency – We maximise every inch, even in compact spaces","Luxury Living – Transform your bedroom into a hotel-style retreat"],t=[{icon:vo,title:"Seamless Integration",description:"Perfectly integrated with your bedroom space and home's architecture."},{icon:Br,title:"Luxury Features",description:"Premium fixtures and finishes for a hotel-style en-suite experience."},{icon:ZC,title:"Property Value",description:"A well-designed en-suite significantly increases your home's value."}];return l.jsxs(mn,{children:[l.jsx(Mn,{title:"En-Suite Bathrooms",subtitle:"Add luxury and value with a beautiful en-suite bathroom"}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs("div",{className:"mb-16",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Comfort, Privacy, and Luxury"}),l.jsxs("div",{className:"space-y-4 text-lg text-muted-foreground leading-relaxed",children:[l.jsx("p",{children:"Add comfort, privacy, and a touch of luxury to your home with a beautifully designed en suite bathroom. At Torquay Bathrooms, we design and install bespoke en suites across Torquay, Paignton, Brixham, and surrounding areas—bringing high-end finishes and thoughtful design to private spaces within the home."}),l.jsx("p",{children:"Whether you're converting part of a bedroom, adding a new en suite in an extension or loft, or updating an existing one, we take care of the entire process. From layout planning and drainage design through to tiling, fixture installation, and finishing touches, we ensure your en suite is functional, stylish, and perfectly integrated with your bedroom."})]})]}),l.jsxs("div",{className:"mb-16",children:[l.jsx("h3",{className:"text-2xl font-bold mb-8",children:"En-Suite Benefits"}),l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map((n,r)=>l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(go,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),l.jsx("span",{className:"text-lg",children:n})]},r))})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-16",children:t.map((n,r)=>l.jsx(Ue,{className:"border-primary/20",children:l.jsxs(Ve,{className:"pt-6 text-center",children:[l.jsx(n.icon,{className:"w-12 h-12 text-primary mx-auto mb-4"}),l.jsx("h4",{className:"text-xl font-bold mb-3",children:n.title}),l.jsx("p",{className:"text-muted-foreground",children:n.description})]})},r))}),l.jsxs("div",{className:"bg-secondary/50 rounded-lg p-8 md:p-12 mb-8",children:[l.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Our En Suite Installation Service"}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed mb-4",children:"Creating an en suite involves more than just plumbing in a sink and toilet. It requires careful design, proper drainage planning, ventilation, and often structural work like moving walls or adding doorways. At Torquay Bathrooms, we manage all aspects of your en suite installation—liaising with other trades where needed and ensuring everything is completed to the highest standard."}),l.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"From contemporary walk-in showers to traditional bathroom suites, we create en suites that perfectly complement your bedroom and lifestyle. Every installation is finished to perfection and backed by our commitment to quality and customer satisfaction."})]}),l.jsxs("div",{className:"bg-primary text-white rounded-lg p-8 md:p-12 text-center",children:[l.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Ready to Create Your En-Suite?"}),l.jsx("p",{className:"text-lg text-white/90 mb-8 max-w-2xl mx-auto",children:"Contact us for a free consultation. We'll assess your space and create the perfect en-suite design for your home."}),l.jsx(Y,{to:"/contact",children:l.jsx(ye,{size:"lg",variant:"secondary",className:"text-lg px-8",children:"Get Your Free Consultation"})})]})]})})})]})},iO=[{name:"Torquay",areas:"Wellswood, St Marychurch, Chelston, Cockington"},{name:"Paignton",areas:"Preston, Goodrington, Churston, Marldon"},{name:"Brixham",areas:"Furzeham, Higher Brixham, Kingswear"},{name:"Newton Abbot",areas:"Kingsteignton, Abbotskerswell, Ipplepen"},{name:"Teignmouth",areas:"Shaldon, Dawlish, Starcross"}],aO=()=>l.jsxs(mn,{children:[l.jsx(ea,{title:"Contact Torquay Bathrooms | Free Consultation & Quote",description:"Contact Torquay Bathrooms for a free consultation. Call 01803 411726 or request a quote online. Serving Torquay, Paignton, Brixham & South Devon.",canonical:"https://torquaybathrooms.co.uk/contact"}),l.jsx(Mn,{title:"Contact Us",subtitle:"Get in touch for your free consultation and quote"}),l.jsx("section",{className:"py-8 bg-primary/5",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsx("div",{className:"max-w-5xl mx-auto",children:l.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[l.jsxs("div",{className:"flex items-center gap-4 justify-center md:justify-start",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Rt,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Call us"}),l.jsx("a",{href:"tel:01803411726",className:"font-bold text-lg hover:text-primary transition-colors",children:"01803 411726"})]})]}),l.jsxs("div",{className:"flex items-center gap-4 justify-center",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(hx,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Email us"}),l.jsx("a",{href:"mailto:info@torquaybathrooms.co.uk",className:"font-bold text-lg hover:text-primary transition-colors",children:"info@torquaybathrooms.co.uk"})]})]}),l.jsxs("div",{className:"flex items-center gap-4 justify-center md:justify-end",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(cc,{className:"w-5 h-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Opening Hours"}),l.jsx("p",{className:"font-bold text-lg",children:"Mon–Fri: 8am–5pm"})]})]})]})})})}),l.jsx(k1,{}),l.jsx("section",{className:"py-20 bg-secondary/30",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs("div",{className:"text-center mb-12",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Areas We Cover"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Bathroom Specialists Across South Devon"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Based in Torbay, we provide bathroom installation and refurbishment services throughout South Devon."})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:iO.map(e=>l.jsx(Ue,{className:"hover:shadow-lg transition-all",children:l.jsx(Ve,{className:"pt-6",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(Uo,{className:"w-5 h-5 text-primary flex-shrink-0 mt-1"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-bold text-lg mb-1",children:e.name}),l.jsx("p",{className:"text-sm text-muted-foreground",children:e.areas})]})]})})},e.name))}),l.jsxs("p",{className:"text-center text-muted-foreground",children:["Don't see your area listed? Give us a call on"," ",l.jsx("a",{href:"tel:01803411726",className:"text-primary hover:underline font-medium",children:"01803 411726"})," ","— we may still be able to help."]})]})})})]});var Ac="Dialog",[G1,KO]=An(Ac),[lO,gn]=G1(Ac),K1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=p.useRef(null),c=p.useRef(null),[u,d]=po({prop:r,defaultProp:o??!1,onChange:s,caller:Ac});return l.jsx(lO,{scope:t,triggerRef:a,contentRef:c,contentId:Tr(),titleId:Tr(),descriptionId:Tr(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};K1.displayName=Ac;var Q1="DialogTrigger",Y1=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gn(Q1,n),s=De(t,o.triggerRef);return l.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$h(o.open),...r,ref:s,onClick:G(e.onClick,o.onOpenToggle)})});Y1.displayName=Q1;var Fh="DialogPortal",[cO,Z1]=G1(Fh,{forceMount:void 0}),X1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=gn(Fh,t);return l.jsx(cO,{scope:t,forceMount:n,children:p.Children.map(r,i=>l.jsx(hn,{present:n||s.open,children:l.jsx(sc,{asChild:!0,container:o,children:i})}))})};X1.displayName=Fh;var $l="DialogOverlay",J1=p.forwardRef((e,t)=>{const n=Z1($l,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=gn($l,e.__scopeDialog);return s.modal?l.jsx(hn,{present:r||s.open,children:l.jsx(dO,{...o,ref:t})}):null});J1.displayName=$l;var uO=hs("DialogOverlay.RemoveScroll"),dO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gn($l,n);return l.jsx(vh,{as:uO,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(de.div,{"data-state":$h(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),fo="DialogContent",eb=p.forwardRef((e,t)=>{const n=Z1(fo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=gn(fo,e.__scopeDialog);return l.jsx(hn,{present:r||s.open,children:s.modal?l.jsx(fO,{...o,ref:t}):l.jsx(hO,{...o,ref:t})})});eb.displayName=fo;var fO=p.forwardRef((e,t)=>{const n=gn(fo,e.__scopeDialog),r=p.useRef(null),o=De(t,n.contentRef,r);return p.useEffect(()=>{const s=r.current;if(s)return R0(s)},[]),l.jsx(tb,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:G(e.onFocusOutside,s=>s.preventDefault())})}),hO=p.forwardRef((e,t)=>{const n=gn(fo,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return l.jsx(tb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),tb=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=gn(fo,n),c=p.useRef(null),u=De(t,c);return k0(),l.jsxs(l.Fragment,{children:[l.jsx(mh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(qi,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":$h(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(mO,{titleId:a.titleId}),l.jsx(gO,{contentRef:c,descriptionId:a.descriptionId})]})]})}),zh="DialogTitle",nb=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gn(zh,n);return l.jsx(de.h2,{id:o.titleId,...r,ref:t})});nb.displayName=zh;var rb="DialogDescription",ob=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gn(rb,n);return l.jsx(de.p,{id:o.descriptionId,...r,ref:t})});ob.displayName=rb;var sb="DialogClose",ib=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gn(sb,n);return l.jsx(de.button,{type:"button",...r,ref:t,onClick:G(e.onClick,()=>o.onOpenChange(!1))})});ib.displayName=sb;function $h(e){return e?"open":"closed"}var ab="DialogTitleWarning",[QO,lb]=qS(ab,{contentName:fo,titleName:zh,docsSlug:"dialog"}),mO=({titleId:e})=>{const t=lb(ab),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},pO="DialogDescriptionWarning",gO=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lb(pO).contentName}}.`;return p.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vO=K1,yO=Y1,xO=X1,cb=J1,ub=eb,db=nb,fb=ob,wO=ib;const bO=vO,kO=yO,SO=xO,hb=p.forwardRef(({className:e,...t},n)=>l.jsx(cb,{ref:n,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));hb.displayName=cb.displayName;const mb=p.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(SO,{children:[l.jsx(hb,{}),l.jsxs(ub,{ref:r,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,l.jsxs(wO,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[l.jsx(Zf,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));mb.displayName=ub.displayName;const CO=p.forwardRef(({className:e,...t},n)=>l.jsx(db,{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));CO.displayName=db.displayName;const NO=p.forwardRef(({className:e,...t},n)=>l.jsx(fb,{ref:n,className:le("text-sm text-muted-foreground",e),...t}));NO.displayName=fb.displayName;const jO="/assets/bathroom-7-DKl6rmXC.jpeg",EO="/assets/bathroom-8-Csujv2lj.jpeg",_O="/assets/bathroom-9-eRsEt83i.jpeg",TO="/assets/bathroom-10-gr3efP35.jpeg",PO="/assets/bathroom-11-CFZq-yZ4.jpeg",RO="/assets/bathroom-12--6J8A9nO.jpeg",AO=[{src:h1,alt:"Modern bathroom with marble tiles and gold fixtures in Torquay"},{src:m1,alt:"Contemporary walk-in shower with brass fittings and wood vanity"},{src:p1,alt:"Luxury bathroom renovation with marble effect tiles"},{src:g1,alt:"Stylish walk-in shower installation with rainfall showerhead"},{src:v1,alt:"Elegant bathroom with vessel sink and black countertop"},{src:Nh,alt:"Complete bathroom transformation with modern fixtures"},{src:jO,alt:"Professional bathroom installation in South Devon"},{src:EO,alt:"Quality bathroom refurbishment with attention to detail"},{src:_O,alt:"Bespoke bathroom design with premium materials"},{src:TO,alt:"Expert bathroom fitting showcasing modern style"},{src:PO,alt:"Beautiful bathroom renovation completed in Torbay area"},{src:RO,alt:"High-end bathroom installation by Torquay Bathrooms"}],OO=()=>{const[e,t]=p.useState(null),n=()=>{const r=document.getElementById("contact");r&&r.scrollIntoView({behavior:"smooth"})};return l.jsx("section",{id:"gallery",className:"py-20",children:l.jsxs("div",{className:"container mx-auto px-4",children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("p",{className:"text-primary font-semibold mb-2 uppercase tracking-wide",children:"Our Gallery"}),l.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:"See How We've Transformed Bathrooms"}),l.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Explore our portfolio of beautiful bathroom installations across South Devon"})]}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:AO.map((r,o)=>l.jsxs(bO,{children:[l.jsx(kO,{asChild:!0,children:l.jsx("div",{className:"aspect-square bg-secondary rounded-lg overflow-hidden group cursor-pointer hover:shadow-xl transition-all",onClick:()=>t(o),children:l.jsx("img",{src:r.src,alt:r.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy"})})}),l.jsx(mb,{className:"max-w-4xl w-full p-0",children:l.jsx("img",{src:r.src,alt:r.alt,className:"w-full h-auto rounded-lg"})})]},o))}),l.jsx("div",{className:"text-center",children:l.jsx(ye,{onClick:n,size:"lg",className:"text-lg px-8",children:"Get Your Free Quote"})})]})})},MO=()=>l.jsxs(mn,{children:[l.jsx(ea,{title:"Bathroom Gallery | Torquay Bathrooms Portfolio",description:"Browse our portfolio of luxury bathroom transformations in Torquay & South Devon. Walk-in showers, wet rooms, refurbishments & more.",canonical:"https://torquaybathrooms.co.uk/gallery"}),l.jsx(Mn,{title:"Our Gallery",subtitle:"Explore our portfolio of beautiful bathroom transformations"}),l.jsx(OO,{})]}),IO=()=>l.jsx(mn,{children:l.jsx("section",{className:"py-20 min-h-[60vh] flex items-center",children:l.jsx("div",{className:"container mx-auto px-4",children:l.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[l.jsx("h1",{className:"text-6xl md:text-8xl font-bold text-primary mb-4",children:"404"}),l.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Page Not Found"}),l.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Sorry, the page you're looking for doesn't exist or has been moved. Let us help you find what you need."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-12",children:[l.jsx(Y,{to:"/",children:l.jsxs(ye,{size:"lg",className:"w-full sm:w-auto",children:[l.jsx(vo,{className:"w-5 h-5 mr-2"}),"Back to Home"]})}),l.jsx(Y,{to:"/contact",children:l.jsxs(ye,{size:"lg",variant:"outline",className:"w-full sm:w-auto",children:[l.jsx(Rt,{className:"w-5 h-5 mr-2"}),"Contact Us"]})})]}),l.jsxs("div",{className:"bg-secondary/50 rounded-lg p-6",children:[l.jsx("h3",{className:"font-semibold mb-4",children:"Looking for one of these?"}),l.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 text-left",children:[l.jsxs(Y,{to:"/services",className:"flex items-center gap-2 text-primary hover:underline",children:[l.jsx(qs,{className:"w-4 h-4"}),"Our Services"]}),l.jsxs(Y,{to:"/gallery",className:"flex items-center gap-2 text-primary hover:underline",children:[l.jsx(qs,{className:"w-4 h-4"}),"Project Gallery"]}),l.jsxs(Y,{to:"/about",className:"flex items-center gap-2 text-primary hover:underline",children:[l.jsx(qs,{className:"w-4 h-4"}),"About Us"]}),l.jsxs(Y,{to:"/our-process",className:"flex items-center gap-2 text-primary hover:underline",children:[l.jsx(qs,{className:"w-4 h-4"}),"Our Process"]})]})]})]})})})}),DO=new b_,LO=()=>l.jsx(S_,{client:DO,children:l.jsxs(ZE,{children:[l.jsx(ON,{}),l.jsx(dj,{}),l.jsx(w2,{children:l.jsxs(h2,{children:[l.jsx(St,{path:"/",element:l.jsx(kA,{})}),l.jsx(St,{path:"/about",element:l.jsx(SA,{})}),l.jsx(St,{path:"/our-process",element:l.jsx(NA,{})}),l.jsx(St,{path:"/services",element:l.jsx(_A,{})}),l.jsx(St,{path:"/services/bathroom-refurbishment",element:l.jsx(TA,{})}),l.jsx(St,{path:"/services/bath-to-shower",element:l.jsx(nO,{})}),l.jsx(St,{path:"/services/walk-in-showers",element:l.jsx(rO,{})}),l.jsx(St,{path:"/services/cloakrooms",element:l.jsx(oO,{})}),l.jsx(St,{path:"/services/en-suites",element:l.jsx(sO,{})}),l.jsx(St,{path:"/gallery",element:l.jsx(MO,{})}),l.jsx(St,{path:"/contact",element:l.jsx(aO,{})}),l.jsx(St,{path:"*",element:l.jsx(IO,{})})]})})]})});My(document.getElementById("root")).render(l.jsx(LO,{}));export{HR as _,$0 as a,bc as b,zO as g,WO as t};