Files
LP-Civil/assets/index-OOmEI3Ll.js
2026-02-12 21:56:16 -03:00

248 lines
377 KiB
JavaScript

var Rd=e=>{throw TypeError(e)};var qa=(e,t,n)=>t.has(e)||Rd("Cannot "+n);var P=(e,t,n)=>(qa(e,t,"read from private field"),n?n.call(e):t.get(e)),re=(e,t,n)=>t.has(e)?Rd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(qa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(qa(e,t,"access private method"),n);var $i=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return P(e,t,r)}});function O0(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 i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{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 i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Wp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qp={exports:{}},ca={},Kp={exports:{}},Z={};/**
* @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 Ai=Symbol.for("react.element"),I0=Symbol.for("react.portal"),M0=Symbol.for("react.fragment"),L0=Symbol.for("react.strict_mode"),D0=Symbol.for("react.profiler"),F0=Symbol.for("react.provider"),z0=Symbol.for("react.context"),$0=Symbol.for("react.forward_ref"),B0=Symbol.for("react.suspense"),U0=Symbol.for("react.memo"),V0=Symbol.for("react.lazy"),jd=Symbol.iterator;function H0(e){return e===null||typeof e!="object"?null:(e=jd&&e[jd]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yp=Object.assign,qp={};function No(e,t,n){this.props=e,this.context=t,this.refs=qp,this.updater=n||Gp}No.prototype.isReactComponent={};No.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")};No.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xp(){}Xp.prototype=No.prototype;function Ju(e,t,n){this.props=e,this.context=t,this.refs=qp,this.updater=n||Gp}var ec=Ju.prototype=new Xp;ec.constructor=Ju;Yp(ec,No.prototype);ec.isPureReactComponent=!0;var Ad=Array.isArray,Zp=Object.prototype.hasOwnProperty,tc={current:null},Jp={key:!0,ref:!0,__self:!0,__source:!0};function em(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Zp.call(t,r)&&!Jp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Ai,type:e,key:i,ref:s,props:o,_owner:tc.current}}function W0(e,t){return{$$typeof:Ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ai}function Q0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _d=/\/+/g;function Xa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Q0(""+e.key):t.toString(36)}function ps(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ai:case I0:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Xa(s,0):r,Ad(o)?(n="",e!=null&&(n=e.replace(_d,"$&/")+"/"),ps(o,t,n,"",function(u){return u})):o!=null&&(nc(o)&&(o=W0(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(_d,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Ad(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Xa(i,a);s+=ps(i,t,n,l,o)}else if(l=H0(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Xa(i,a++),s+=ps(i,t,n,l,o);else if(i==="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 s}function Bi(e,t,n){if(e==null)return e;var r=[],o=0;return ps(e,r,"","",function(i){return t.call(n,i,o++)}),r}function K0(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 Qe={current:null},ms={transition:null},G0={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:ms,ReactCurrentOwner:tc};function tm(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Bi,forEach:function(e,t,n){Bi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Bi(e,function(){t++}),t},toArray:function(e){return Bi(e,function(t){return t})||[]},only:function(e){if(!nc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=No;Z.Fragment=M0;Z.Profiler=D0;Z.PureComponent=Ju;Z.StrictMode=L0;Z.Suspense=B0;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G0;Z.act=tm;Z.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=Yp({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=tc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Zp.call(t,l)&&!Jp.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ai,type:e.type,key:o,ref:i,props:r,_owner:s}};Z.createContext=function(e){return e={$$typeof:z0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:F0,_context:e},e.Consumer=e};Z.createElement=em;Z.createFactory=function(e){var t=em.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:$0,render:e}};Z.isValidElement=nc;Z.lazy=function(e){return{$$typeof:V0,_payload:{_status:-1,_result:e},_init:K0}};Z.memo=function(e,t){return{$$typeof:U0,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=ms.transition;ms.transition={};try{e()}finally{ms.transition=t}};Z.unstable_act=tm;Z.useCallback=function(e,t){return Qe.current.useCallback(e,t)};Z.useContext=function(e){return Qe.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Qe.current.useEffect(e,t)};Z.useId=function(){return Qe.current.useId()};Z.useImperativeHandle=function(e,t,n){return Qe.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Qe.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Qe.current.useReducer(e,t,n)};Z.useRef=function(e){return Qe.current.useRef(e)};Z.useState=function(e){return Qe.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Qe.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Qe.current.useTransition()};Z.version="18.3.1";Kp.exports=Z;var v=Kp.exports;const j=Wp(v),rc=O0({__proto__:null,default:j},[v]);/**
* @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 Y0=v,q0=Symbol.for("react.element"),X0=Symbol.for("react.fragment"),Z0=Object.prototype.hasOwnProperty,J0=Y0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ex={key:!0,ref:!0,__self:!0,__source:!0};function nm(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Z0.call(t,r)&&!ex.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:q0,type:e,key:i,ref:s,props:o,_owner:J0.current}}ca.Fragment=X0;ca.jsx=nm;ca.jsxs=nm;Qp.exports=ca;var c=Qp.exports,rm={exports:{}},at={},om={exports:{}},im={};/**
* @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(k,R){var L=k.length;k.push(R);e:for(;0<L;){var H=L-1>>>1,B=k[H];if(0<o(B,R))k[H]=R,k[L]=B,L=H;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var R=k[0],L=k.pop();if(L!==R){k[0]=L;e:for(var H=0,B=k.length,Y=B>>>1;H<Y;){var Q=2*(H+1)-1,ce=k[Q],we=Q+1,D=k[we];if(0>o(ce,L))we<B&&0>o(D,ce)?(k[H]=D,k[we]=L,H=we):(k[H]=ce,k[Q]=L,H=Q);else if(we<B&&0>o(D,L))k[H]=D,k[we]=L,H=we;else break e}}return R}function o(k,R){var L=k.sortIndex-R.sortIndex;return L!==0?L:k.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,p=null,y=3,m=!1,S=!1,h=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=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(k){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=k)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function C(k){if(h=!1,x(k),!S)if(n(l)!==null)S=!0,z(E);else{var R=n(u);R!==null&&U(C,R.startTime-k)}}function E(k,R){S=!1,h&&(h=!1,g(T),T=-1),m=!0;var L=y;try{for(x(R),p=n(l);p!==null&&(!(p.expirationTime>R)||k&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,y=p.priorityLevel;var B=H(p.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?p.callback=B:p===n(l)&&r(l),x(R)}else r(l);p=n(l)}if(p!==null)var Y=!0;else{var Q=n(u);Q!==null&&U(C,Q.startTime-R),Y=!1}return Y}finally{p=null,y=L,m=!1}}var N=!1,b=null,T=-1,_=5,O=-1;function $(){return!(e.unstable_now()-O<_)}function M(){if(b!==null){var k=e.unstable_now();O=k;var R=!0;try{R=b(!0,k)}finally{R?V():(N=!1,b=null)}}else N=!1}var V;if(typeof f=="function")V=function(){f(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,W=I.port2;I.port1.onmessage=M,V=function(){W.postMessage(null)}}else V=function(){w(M,0)};function z(k){b=k,N||(N=!0,V())}function U(k,R){T=w(function(){k(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){S||m||(S=!0,z(E))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(y){case 1:case 2:case 3:var R=3;break;default:R=y}var L=y;y=R;try{return k()}finally{y=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,R){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=y;y=k;try{return R()}finally{y=L}},e.unstable_scheduleCallback=function(k,R,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,k){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=L+B,k={id:d++,callback:R,priorityLevel:k,startTime:L,expirationTime:B,sortIndex:-1},L>H?(k.sortIndex=L,t(u,k),n(l)===null&&k===n(u)&&(h?(g(T),T=-1):h=!0,U(C,L-H))):(k.sortIndex=B,t(l,k),S||m||(S=!0,z(E))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var R=y;return function(){var L=y;y=R;try{return k.apply(this,arguments)}finally{y=L}}}})(im);om.exports=im;var tx=om.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 nx=v,st=tx;function A(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 sm=new Set,ai={};function Nr(e,t){mo(e,t),mo(e+"Capture",t)}function mo(e,t){for(ai[e]=t,e=0;e<t.length;e++)sm.add(t[e])}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fl=Object.prototype.hasOwnProperty,rx=/^[: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]*$/,Od={},Id={};function ox(e){return Fl.call(Id,e)?!0:Fl.call(Od,e)?!1:rx.test(e)?Id[e]=!0:(Od[e]=!0,!1)}function ix(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 sx(e,t,n,r){if(t===null||typeof t>"u"||ix(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 Ke(e,t,n,r,o,i,s){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=i,this.removeEmptyString=s}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ke(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){Ie[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var oc=/[\-:]([a-z])/g;function ic(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(oc,ic);Ie[t]=new Ke(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(oc,ic);Ie[t]=new Ke(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(oc,ic);Ie[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function sc(e,t,n,r){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sx(t,n,o,r)&&(n=null),r||o===null?ox(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 fn=nx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),Dr=Symbol.for("react.portal"),Fr=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),zl=Symbol.for("react.profiler"),am=Symbol.for("react.provider"),lm=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),$l=Symbol.for("react.suspense"),Bl=Symbol.for("react.suspense_list"),uc=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),um=Symbol.for("react.offscreen"),Md=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Za;function Qo(e){if(Za===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||""}return`
`+Za+e}var Ja=!1;function el(e,t){if(!e||Ja)return"";Ja=!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(`
`),i=r.stack.split(`
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ja=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qo(e):""}function ax(e){switch(e.tag){case 5:return Qo(e.type);case 16:return Qo("Lazy");case 13:return Qo("Suspense");case 19:return Qo("SuspenseList");case 0:case 2:case 15:return e=el(e.type,!1),e;case 11:return e=el(e.type.render,!1),e;case 1:return e=el(e.type,!0),e;default:return""}}function Ul(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 Fr:return"Fragment";case Dr:return"Portal";case zl:return"Profiler";case ac:return"StrictMode";case $l:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lm:return(e.displayName||"Context")+".Consumer";case am:return(e._context.displayName||"Context")+".Provider";case lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uc:return t=e.displayName||null,t!==null?t:Ul(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return Ul(e(t))}catch{}}return null}function lx(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 Ul(t);case 8:return t===ac?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ux(e){var t=cm(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=ux(e))}function dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function As(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 Vl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 fm(e,t){t=t.checked,t!=null&&sc(e,"checked",t,!1)}function Hl(e,t){fm(e,t);var n=Vn(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")?Wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wl(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dd(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 Wl(e,t,n){(t!=="number"||As(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ko=Array.isArray;function Yr(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=""+Vn(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 Ql(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Ko(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vn(n)}}function pm(e,t){var n=Vn(t.value),r=Vn(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 zd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mm(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 Kl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,hm=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(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.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 Xo={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},cx=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(e){cx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xo[t]=Xo[e]})});function vm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xo.hasOwnProperty(e)&&Xo[e]?(""+t).trim():t+"px"}function gm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dx=xe({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 Gl(e,t){if(t){if(dx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Yl(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 ql=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,qr=null,Xr=null;function $d(e){if(e=Ii(e)){if(typeof Xl!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ha(t),Xl(e.stateNode,e.type,t))}}function ym(e){qr?Xr?Xr.push(e):Xr=[e]:qr=e}function xm(){if(qr){var e=qr,t=Xr;if(Xr=qr=null,$d(e),t)for(e=0;e<t.length;e++)$d(t[e])}}function wm(e,t){return e(t)}function Sm(){}var tl=!1;function Cm(e,t,n){if(tl)return e(t,n);tl=!0;try{return wm(e,t,n)}finally{tl=!1,(qr!==null||Xr!==null)&&(Sm(),xm())}}function ui(e,t){var n=e.stateNode;if(n===null)return null;var r=ha(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(A(231,t,typeof n));return n}var Zl=!1;if(sn)try{var Do={};Object.defineProperty(Do,"passive",{get:function(){Zl=!0}}),window.addEventListener("test",Do,Do),window.removeEventListener("test",Do,Do)}catch{Zl=!1}function fx(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Zo=!1,_s=null,Os=!1,Jl=null,px={onError:function(e){Zo=!0,_s=e}};function mx(e,t,n,r,o,i,s,a,l){Zo=!1,_s=null,fx.apply(px,arguments)}function hx(e,t,n,r,o,i,s,a,l){if(mx.apply(this,arguments),Zo){if(Zo){var u=_s;Zo=!1,_s=null}else throw Error(A(198));Os||(Os=!0,Jl=u)}}function kr(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 Em(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 Bd(e){if(kr(e)!==e)throw Error(A(188))}function vx(e){var t=e.alternate;if(!t){if(t=kr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Bd(o),e;if(i===r)return Bd(o),t;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function bm(e){return e=vx(e),e!==null?Nm(e):null}function Nm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nm(e);if(t!==null)return t;e=e.sibling}return null}var km=st.unstable_scheduleCallback,Ud=st.unstable_cancelCallback,gx=st.unstable_shouldYield,yx=st.unstable_requestPaint,be=st.unstable_now,xx=st.unstable_getCurrentPriorityLevel,dc=st.unstable_ImmediatePriority,Pm=st.unstable_UserBlockingPriority,Is=st.unstable_NormalPriority,wx=st.unstable_LowPriority,Tm=st.unstable_IdlePriority,da=null,Qt=null;function Sx(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(da,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:bx,Cx=Math.log,Ex=Math.LN2;function bx(e){return e>>>=0,e===0?32:31-(Cx(e)/Ex|0)|0}var Wi=64,Qi=4194304;function Go(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 Ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Go(a):(i&=s,i!==0&&(r=Go(i)))}else s=n&~o,s!==0?r=Go(s):i!==0&&(r=Go(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-_t(t),o=1<<n,r|=e[n],t&=~o;return r}function Nx(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 kx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-_t(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=Nx(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function eu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rm(){var e=Wi;return Wi<<=1,!(Wi&4194240)&&(Wi=64),e}function nl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function Px(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-_t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function fc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function jm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Am,pc,_m,Om,Im,tu=!1,Ki=[],Mn=null,Ln=null,Dn=null,ci=new Map,di=new Map,bn=[],Tx="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 Vd(e,t){switch(e){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":Ln=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(t.pointerId)}}function Fo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Ii(t),t!==null&&pc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Rx(e,t,n,r,o){switch(t){case"focusin":return Mn=Fo(Mn,e,t,n,r,o),!0;case"dragenter":return Ln=Fo(Ln,e,t,n,r,o),!0;case"mouseover":return Dn=Fo(Dn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ci.set(i,Fo(ci.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,di.set(i,Fo(di.get(i)||null,e,t,n,r,o)),!0}return!1}function Mm(e){var t=ir(e.target);if(t!==null){var n=kr(t);if(n!==null){if(t=n.tag,t===13){if(t=Em(n),t!==null){e.blockedOn=t,Im(e.priority,function(){_m(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 hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ql=r,n.target.dispatchEvent(r),ql=null}else return t=Ii(n),t!==null&&pc(t),e.blockedOn=n,!1;t.shift()}return!0}function Hd(e,t,n){hs(e)&&n.delete(t)}function jx(){tu=!1,Mn!==null&&hs(Mn)&&(Mn=null),Ln!==null&&hs(Ln)&&(Ln=null),Dn!==null&&hs(Dn)&&(Dn=null),ci.forEach(Hd),di.forEach(Hd)}function zo(e,t){e.blockedOn===t&&(e.blockedOn=null,tu||(tu=!0,st.unstable_scheduleCallback(st.unstable_NormalPriority,jx)))}function fi(e){function t(o){return zo(o,e)}if(0<Ki.length){zo(Ki[0],e);for(var n=1;n<Ki.length;n++){var r=Ki[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mn!==null&&zo(Mn,e),Ln!==null&&zo(Ln,e),Dn!==null&&zo(Dn,e),ci.forEach(t),di.forEach(t),n=0;n<bn.length;n++)r=bn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bn.length&&(n=bn[0],n.blockedOn===null);)Mm(n),n.blockedOn===null&&bn.shift()}var Zr=fn.ReactCurrentBatchConfig,Ls=!0;function Ax(e,t,n,r){var o=ae,i=Zr.transition;Zr.transition=null;try{ae=1,mc(e,t,n,r)}finally{ae=o,Zr.transition=i}}function _x(e,t,n,r){var o=ae,i=Zr.transition;Zr.transition=null;try{ae=4,mc(e,t,n,r)}finally{ae=o,Zr.transition=i}}function mc(e,t,n,r){if(Ls){var o=nu(e,t,n,r);if(o===null)fl(e,t,r,Ds,n),Vd(e,r);else if(Rx(o,e,t,n,r))r.stopPropagation();else if(Vd(e,r),t&4&&-1<Tx.indexOf(e)){for(;o!==null;){var i=Ii(o);if(i!==null&&Am(i),i=nu(e,t,n,r),i===null&&fl(e,t,r,Ds,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else fl(e,t,r,null,n)}}var Ds=null;function nu(e,t,n,r){if(Ds=null,e=cc(r),e=ir(e),e!==null)if(t=kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Em(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 Ds=e,null}function Lm(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(xx()){case dc:return 1;case Pm:return 4;case Is:case wx:return 16;case Tm:return 536870912;default:return 16}default:return 16}}var An=null,hc=null,vs=null;function Dm(){if(vs)return vs;var e,t=hc,n=t.length,r,o="value"in An?An.value:An.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return vs=o.slice(e,1<r?1-r:void 0)}function gs(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 Gi(){return!0}function Wd(){return!1}function lt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gi:Wd,this.isPropagationStopped=Wd,this}return xe(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=Gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vc=lt(ko),Oi=xe({},ko,{view:0,detail:0}),Ox=lt(Oi),rl,ol,$o,fa=xe({},Oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,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!==$o&&($o&&e.type==="mousemove"?(rl=e.screenX-$o.screenX,ol=e.screenY-$o.screenY):ol=rl=0,$o=e),rl)},movementY:function(e){return"movementY"in e?e.movementY:ol}}),Qd=lt(fa),Ix=xe({},fa,{dataTransfer:0}),Mx=lt(Ix),Lx=xe({},Oi,{relatedTarget:0}),il=lt(Lx),Dx=xe({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),Fx=lt(Dx),zx=xe({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$x=lt(zx),Bx=xe({},ko,{data:0}),Kd=lt(Bx),Ux={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vx={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"},Hx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hx[e])?!!t[e]:!1}function gc(){return Wx}var Qx=xe({},Oi,{key:function(e){if(e.key){var t=Ux[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kx=lt(Qx),Gx=xe({},fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gd=lt(Gx),Yx=xe({},Oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),qx=lt(Yx),Xx=xe({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zx=lt(Xx),Jx=xe({},fa,{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}),ew=lt(Jx),tw=[9,13,27,32],yc=sn&&"CompositionEvent"in window,Jo=null;sn&&"documentMode"in document&&(Jo=document.documentMode);var nw=sn&&"TextEvent"in window&&!Jo,Fm=sn&&(!yc||Jo&&8<Jo&&11>=Jo),Yd=" ",qd=!1;function zm(e,t){switch(e){case"keyup":return tw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zr=!1;function rw(e,t){switch(e){case"compositionend":return $m(t);case"keypress":return t.which!==32?null:(qd=!0,Yd);case"textInput":return e=t.data,e===Yd&&qd?null:e;default:return null}}function ow(e,t){if(zr)return e==="compositionend"||!yc&&zm(e,t)?(e=Dm(),vs=hc=An=null,zr=!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 Fm&&t.locale!=="ko"?null:t.data;default:return null}}var iw={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 Xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iw[e.type]:t==="textarea"}function Bm(e,t,n,r){ym(r),t=Fs(t,"onChange"),0<t.length&&(n=new vc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ei=null,pi=null;function sw(e){Zm(e,0)}function pa(e){var t=Ur(e);if(dm(t))return e}function aw(e,t){if(e==="change")return t}var Um=!1;if(sn){var sl;if(sn){var al="oninput"in document;if(!al){var Zd=document.createElement("div");Zd.setAttribute("oninput","return;"),al=typeof Zd.oninput=="function"}sl=al}else sl=!1;Um=sl&&(!document.documentMode||9<document.documentMode)}function Jd(){ei&&(ei.detachEvent("onpropertychange",Vm),pi=ei=null)}function Vm(e){if(e.propertyName==="value"&&pa(pi)){var t=[];Bm(t,pi,e,cc(e)),Cm(sw,t)}}function lw(e,t,n){e==="focusin"?(Jd(),ei=t,pi=n,ei.attachEvent("onpropertychange",Vm)):e==="focusout"&&Jd()}function uw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pa(pi)}function cw(e,t){if(e==="click")return pa(t)}function dw(e,t){if(e==="input"||e==="change")return pa(t)}function fw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var It=typeof Object.is=="function"?Object.is:fw;function mi(e,t){if(It(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(!Fl.call(t,o)||!It(e[o],t[o]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var n=ef(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=ef(n)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(){for(var e=window,t=As();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=As(e.document)}return t}function xc(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 pw(e){var t=Wm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hm(n.ownerDocument.documentElement,n)){if(r!==null&&xc(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,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=tf(n,i);var s=tf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 mw=sn&&"documentMode"in document&&11>=document.documentMode,$r=null,ru=null,ti=null,ou=!1;function nf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ou||$r==null||$r!==As(r)||(r=$r,"selectionStart"in r&&xc(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}),ti&&mi(ti,r)||(ti=r,r=Fs(ru,"onSelect"),0<r.length&&(t=new vc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$r)))}function Yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Br={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionend:Yi("Transition","TransitionEnd")},ll={},Qm={};sn&&(Qm=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);function ma(e){if(ll[e])return ll[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qm)return ll[e]=t[n];return e}var Km=ma("animationend"),Gm=ma("animationiteration"),Ym=ma("animationstart"),qm=ma("transitionend"),Xm=new Map,rf="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 Kn(e,t){Xm.set(e,t),Nr(t,[e])}for(var ul=0;ul<rf.length;ul++){var cl=rf[ul],hw=cl.toLowerCase(),vw=cl[0].toUpperCase()+cl.slice(1);Kn(hw,"on"+vw)}Kn(Km,"onAnimationEnd");Kn(Gm,"onAnimationIteration");Kn(Ym,"onAnimationStart");Kn("dblclick","onDoubleClick");Kn("focusin","onFocus");Kn("focusout","onBlur");Kn(qm,"onTransitionEnd");mo("onMouseEnter",["mouseout","mouseover"]);mo("onMouseLeave",["mouseout","mouseover"]);mo("onPointerEnter",["pointerout","pointerover"]);mo("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yo="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(" "),gw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yo));function of(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hx(r,t,void 0,e),e.currentTarget=null}function Zm(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 i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;of(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;of(o,a,u),i=l}}}if(Os)throw e=Jl,Os=!1,Jl=null,e}function fe(e,t){var n=t[uu];n===void 0&&(n=t[uu]=new Set);var r=e+"__bubble";n.has(r)||(Jm(t,e,2,!1),n.add(r))}function dl(e,t,n){var r=0;t&&(r|=4),Jm(n,e,r,t)}var qi="_reactListening"+Math.random().toString(36).slice(2);function hi(e){if(!e[qi]){e[qi]=!0,sm.forEach(function(n){n!=="selectionchange"&&(gw.has(n)||dl(n,!1,e),dl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qi]||(t[qi]=!0,dl("selectionchange",!1,t))}}function Jm(e,t,n,r){switch(Lm(t)){case 1:var o=Ax;break;case 4:o=_x;break;default:o=mc}n=o.bind(null,t,n,e),o=void 0,!Zl||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 fl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ir(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Cm(function(){var u=i,d=cc(n),p=[];e:{var y=Xm.get(e);if(y!==void 0){var m=vc,S=e;switch(e){case"keypress":if(gs(n)===0)break e;case"keydown":case"keyup":m=Kx;break;case"focusin":S="focus",m=il;break;case"focusout":S="blur",m=il;break;case"beforeblur":case"afterblur":m=il;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":m=Qd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Mx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=qx;break;case Km:case Gm:case Ym:m=Fx;break;case qm:m=Zx;break;case"scroll":m=Ox;break;case"wheel":m=ew;break;case"copy":case"cut":case"paste":m=$x;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Gd}var h=(t&4)!==0,w=!h&&e==="scroll",g=h?y!==null?y+"Capture":null:y;h=[];for(var f=u,x;f!==null;){x=f;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,g!==null&&(C=ui(f,g),C!=null&&h.push(vi(f,C,x)))),w)break;f=f.return}0<h.length&&(y=new m(y,S,null,n,d),p.push({event:y,listeners:h}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",y&&n!==ql&&(S=n.relatedTarget||n.fromElement)&&(ir(S)||S[an]))break e;if((m||y)&&(y=d.window===d?d:(y=d.ownerDocument)?y.defaultView||y.parentWindow:window,m?(S=n.relatedTarget||n.toElement,m=u,S=S?ir(S):null,S!==null&&(w=kr(S),S!==w||S.tag!==5&&S.tag!==6)&&(S=null)):(m=null,S=u),m!==S)){if(h=Qd,C="onMouseLeave",g="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(h=Gd,C="onPointerLeave",g="onPointerEnter",f="pointer"),w=m==null?y:Ur(m),x=S==null?y:Ur(S),y=new h(C,f+"leave",m,n,d),y.target=w,y.relatedTarget=x,C=null,ir(d)===u&&(h=new h(g,f+"enter",S,n,d),h.target=x,h.relatedTarget=w,C=h),w=C,m&&S)t:{for(h=m,g=S,f=0,x=h;x;x=_r(x))f++;for(x=0,C=g;C;C=_r(C))x++;for(;0<f-x;)h=_r(h),f--;for(;0<x-f;)g=_r(g),x--;for(;f--;){if(h===g||g!==null&&h===g.alternate)break t;h=_r(h),g=_r(g)}h=null}else h=null;m!==null&&sf(p,y,m,h,!1),S!==null&&w!==null&&sf(p,w,S,h,!0)}}e:{if(y=u?Ur(u):window,m=y.nodeName&&y.nodeName.toLowerCase(),m==="select"||m==="input"&&y.type==="file")var E=aw;else if(Xd(y))if(Um)E=dw;else{E=uw;var N=lw}else(m=y.nodeName)&&m.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(E=cw);if(E&&(E=E(e,u))){Bm(p,E,n,d);break e}N&&N(e,y,u),e==="focusout"&&(N=y._wrapperState)&&N.controlled&&y.type==="number"&&Wl(y,"number",y.value)}switch(N=u?Ur(u):window,e){case"focusin":(Xd(N)||N.contentEditable==="true")&&($r=N,ru=u,ti=null);break;case"focusout":ti=ru=$r=null;break;case"mousedown":ou=!0;break;case"contextmenu":case"mouseup":case"dragend":ou=!1,nf(p,n,d);break;case"selectionchange":if(mw)break;case"keydown":case"keyup":nf(p,n,d)}var b;if(yc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else zr?zm(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Fm&&n.locale!=="ko"&&(zr||T!=="onCompositionStart"?T==="onCompositionEnd"&&zr&&(b=Dm()):(An=d,hc="value"in An?An.value:An.textContent,zr=!0)),N=Fs(u,T),0<N.length&&(T=new Kd(T,e,null,n,d),p.push({event:T,listeners:N}),b?T.data=b:(b=$m(n),b!==null&&(T.data=b)))),(b=nw?rw(e,n):ow(e,n))&&(u=Fs(u,"onBeforeInput"),0<u.length&&(d=new Kd("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=b))}Zm(p,t)})}function vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fs(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ui(e,n),i!=null&&r.unshift(vi(e,i,o)),i=ui(e,t),i!=null&&r.push(vi(e,i,o))),e=e.return}return r}function _r(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sf(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=ui(n,i),l!=null&&s.unshift(vi(n,l,a))):o||(l=ui(n,i),l!=null&&s.push(vi(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var yw=/\r\n?/g,xw=/\u0000|\uFFFD/g;function af(e){return(typeof e=="string"?e:""+e).replace(yw,`
`).replace(xw,"")}function Xi(e,t,n){if(t=af(t),af(e)!==t&&n)throw Error(A(425))}function zs(){}var iu=null,su=null;function au(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 lu=typeof setTimeout=="function"?setTimeout:void 0,ww=typeof clearTimeout=="function"?clearTimeout:void 0,lf=typeof Promise=="function"?Promise:void 0,Sw=typeof queueMicrotask=="function"?queueMicrotask:typeof lf<"u"?function(e){return lf.resolve(null).then(e).catch(Cw)}:lu;function Cw(e){setTimeout(function(){throw e})}function pl(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 Fn(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 uf(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 Po=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Po,gi="__reactProps$"+Po,an="__reactContainer$"+Po,uu="__reactEvents$"+Po,Ew="__reactListeners$"+Po,bw="__reactHandles$"+Po;function ir(e){var t=e[Vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[Vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uf(e);e!==null;){if(n=e[Vt])return n;e=uf(e)}return t}e=n,n=e.parentNode}return null}function Ii(e){return e=e[Vt]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ur(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function ha(e){return e[gi]||null}var cu=[],Vr=-1;function Gn(e){return{current:e}}function pe(e){0>Vr||(e.current=cu[Vr],cu[Vr]=null,Vr--)}function ue(e,t){Vr++,cu[Vr]=e.current,e.current=t}var Hn={},Be=Gn(Hn),Xe=Gn(!1),vr=Hn;function ho(e,t){var n=e.type.contextTypes;if(!n)return Hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ze(e){return e=e.childContextTypes,e!=null}function $s(){pe(Xe),pe(Be)}function cf(e,t,n){if(Be.current!==Hn)throw Error(A(168));ue(Be,t),ue(Xe,n)}function eh(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(A(108,lx(e)||"Unknown",o));return xe({},n,r)}function Bs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,vr=Be.current,ue(Be,e),ue(Xe,Xe.current),!0}function df(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=eh(e,t,vr),r.__reactInternalMemoizedMergedChildContext=e,pe(Xe),pe(Be),ue(Be,e)):pe(Xe),ue(Xe,n)}var en=null,va=!1,ml=!1;function th(e){en===null?en=[e]:en.push(e)}function Nw(e){va=!0,th(e)}function Yn(){if(!ml&&en!==null){ml=!0;var e=0,t=ae;try{var n=en;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}en=null,va=!1}catch(o){throw en!==null&&(en=en.slice(e+1)),km(dc,Yn),o}finally{ae=t,ml=!1}}return null}var Hr=[],Wr=0,Us=null,Vs=0,ft=[],pt=0,gr=null,nn=1,rn="";function rr(e,t){Hr[Wr++]=Vs,Hr[Wr++]=Us,Us=e,Vs=t}function nh(e,t,n){ft[pt++]=nn,ft[pt++]=rn,ft[pt++]=gr,gr=e;var r=nn;e=rn;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var i=32-_t(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,nn=1<<32-_t(t)+o|n<<o|r,rn=i+e}else nn=1<<i|n<<o|r,rn=e}function wc(e){e.return!==null&&(rr(e,1),nh(e,1,0))}function Sc(e){for(;e===Us;)Us=Hr[--Wr],Hr[Wr]=null,Vs=Hr[--Wr],Hr[Wr]=null;for(;e===gr;)gr=ft[--pt],ft[pt]=null,rn=ft[--pt],ft[pt]=null,nn=ft[--pt],ft[pt]=null}var ot=null,rt=null,he=!1,At=null;function rh(e,t){var n=mt(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 ff(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,ot=e,rt=Fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gr!==null?{id:nn,overflow:rn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,rt=null,!0):!1;default:return!1}}function du(e){return(e.mode&1)!==0&&(e.flags&128)===0}function fu(e){if(he){var t=rt;if(t){var n=t;if(!ff(e,t)){if(du(e))throw Error(A(418));t=Fn(n.nextSibling);var r=ot;t&&ff(e,t)?rh(r,n):(e.flags=e.flags&-4097|2,he=!1,ot=e)}}else{if(du(e))throw Error(A(418));e.flags=e.flags&-4097|2,he=!1,ot=e}}}function pf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Zi(e){if(e!==ot)return!1;if(!he)return pf(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!au(e.type,e.memoizedProps)),t&&(t=rt)){if(du(e))throw oh(),Error(A(418));for(;t;)rh(e,t),t=Fn(t.nextSibling)}if(pf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rt=Fn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rt=null}}else rt=ot?Fn(e.stateNode.nextSibling):null;return!0}function oh(){for(var e=rt;e;)e=Fn(e.nextSibling)}function vo(){rt=ot=null,he=!1}function Cc(e){At===null?At=[e]:At.push(e)}var kw=fn.ReactCurrentBatchConfig;function Bo(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(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mf(e){var t=e._init;return t(e._payload)}function ih(e){function t(g,f){if(e){var x=g.deletions;x===null?(g.deletions=[f],g.flags|=16):x.push(f)}}function n(g,f){if(!e)return null;for(;f!==null;)t(g,f),f=f.sibling;return null}function r(g,f){for(g=new Map;f!==null;)f.key!==null?g.set(f.key,f):g.set(f.index,f),f=f.sibling;return g}function o(g,f){return g=Un(g,f),g.index=0,g.sibling=null,g}function i(g,f,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<f?(g.flags|=2,f):x):(g.flags|=2,f)):(g.flags|=1048576,f)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,f,x,C){return f===null||f.tag!==6?(f=Sl(x,g.mode,C),f.return=g,f):(f=o(f,x),f.return=g,f)}function l(g,f,x,C){var E=x.type;return E===Fr?d(g,f,x.props.children,C,x.key):f!==null&&(f.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Cn&&mf(E)===f.type)?(C=o(f,x.props),C.ref=Bo(g,f,x),C.return=g,C):(C=bs(x.type,x.key,x.props,null,g.mode,C),C.ref=Bo(g,f,x),C.return=g,C)}function u(g,f,x,C){return f===null||f.tag!==4||f.stateNode.containerInfo!==x.containerInfo||f.stateNode.implementation!==x.implementation?(f=Cl(x,g.mode,C),f.return=g,f):(f=o(f,x.children||[]),f.return=g,f)}function d(g,f,x,C,E){return f===null||f.tag!==7?(f=hr(x,g.mode,C,E),f.return=g,f):(f=o(f,x),f.return=g,f)}function p(g,f,x){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Sl(""+f,g.mode,x),f.return=g,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ui:return x=bs(f.type,f.key,f.props,null,g.mode,x),x.ref=Bo(g,null,f),x.return=g,x;case Dr:return f=Cl(f,g.mode,x),f.return=g,f;case Cn:var C=f._init;return p(g,C(f._payload),x)}if(Ko(f)||Lo(f))return f=hr(f,g.mode,x,null),f.return=g,f;Ji(g,f)}return null}function y(g,f,x,C){var E=f!==null?f.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return E!==null?null:a(g,f,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ui:return x.key===E?l(g,f,x,C):null;case Dr:return x.key===E?u(g,f,x,C):null;case Cn:return E=x._init,y(g,f,E(x._payload),C)}if(Ko(x)||Lo(x))return E!==null?null:d(g,f,x,C,null);Ji(g,x)}return null}function m(g,f,x,C,E){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(x)||null,a(f,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ui:return g=g.get(C.key===null?x:C.key)||null,l(f,g,C,E);case Dr:return g=g.get(C.key===null?x:C.key)||null,u(f,g,C,E);case Cn:var N=C._init;return m(g,f,x,N(C._payload),E)}if(Ko(C)||Lo(C))return g=g.get(x)||null,d(f,g,C,E,null);Ji(f,C)}return null}function S(g,f,x,C){for(var E=null,N=null,b=f,T=f=0,_=null;b!==null&&T<x.length;T++){b.index>T?(_=b,b=null):_=b.sibling;var O=y(g,b,x[T],C);if(O===null){b===null&&(b=_);break}e&&b&&O.alternate===null&&t(g,b),f=i(O,f,T),N===null?E=O:N.sibling=O,N=O,b=_}if(T===x.length)return n(g,b),he&&rr(g,T),E;if(b===null){for(;T<x.length;T++)b=p(g,x[T],C),b!==null&&(f=i(b,f,T),N===null?E=b:N.sibling=b,N=b);return he&&rr(g,T),E}for(b=r(g,b);T<x.length;T++)_=m(b,g,T,x[T],C),_!==null&&(e&&_.alternate!==null&&b.delete(_.key===null?T:_.key),f=i(_,f,T),N===null?E=_:N.sibling=_,N=_);return e&&b.forEach(function($){return t(g,$)}),he&&rr(g,T),E}function h(g,f,x,C){var E=Lo(x);if(typeof E!="function")throw Error(A(150));if(x=E.call(x),x==null)throw Error(A(151));for(var N=E=null,b=f,T=f=0,_=null,O=x.next();b!==null&&!O.done;T++,O=x.next()){b.index>T?(_=b,b=null):_=b.sibling;var $=y(g,b,O.value,C);if($===null){b===null&&(b=_);break}e&&b&&$.alternate===null&&t(g,b),f=i($,f,T),N===null?E=$:N.sibling=$,N=$,b=_}if(O.done)return n(g,b),he&&rr(g,T),E;if(b===null){for(;!O.done;T++,O=x.next())O=p(g,O.value,C),O!==null&&(f=i(O,f,T),N===null?E=O:N.sibling=O,N=O);return he&&rr(g,T),E}for(b=r(g,b);!O.done;T++,O=x.next())O=m(b,g,T,O.value,C),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?T:O.key),f=i(O,f,T),N===null?E=O:N.sibling=O,N=O);return e&&b.forEach(function(M){return t(g,M)}),he&&rr(g,T),E}function w(g,f,x,C){if(typeof x=="object"&&x!==null&&x.type===Fr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ui:e:{for(var E=x.key,N=f;N!==null;){if(N.key===E){if(E=x.type,E===Fr){if(N.tag===7){n(g,N.sibling),f=o(N,x.props.children),f.return=g,g=f;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Cn&&mf(E)===N.type){n(g,N.sibling),f=o(N,x.props),f.ref=Bo(g,N,x),f.return=g,g=f;break e}n(g,N);break}else t(g,N);N=N.sibling}x.type===Fr?(f=hr(x.props.children,g.mode,C,x.key),f.return=g,g=f):(C=bs(x.type,x.key,x.props,null,g.mode,C),C.ref=Bo(g,f,x),C.return=g,g=C)}return s(g);case Dr:e:{for(N=x.key;f!==null;){if(f.key===N)if(f.tag===4&&f.stateNode.containerInfo===x.containerInfo&&f.stateNode.implementation===x.implementation){n(g,f.sibling),f=o(f,x.children||[]),f.return=g,g=f;break e}else{n(g,f);break}else t(g,f);f=f.sibling}f=Cl(x,g.mode,C),f.return=g,g=f}return s(g);case Cn:return N=x._init,w(g,f,N(x._payload),C)}if(Ko(x))return S(g,f,x,C);if(Lo(x))return h(g,f,x,C);Ji(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,f!==null&&f.tag===6?(n(g,f.sibling),f=o(f,x),f.return=g,g=f):(n(g,f),f=Sl(x,g.mode,C),f.return=g,g=f),s(g)):n(g,f)}return w}var go=ih(!0),sh=ih(!1),Hs=Gn(null),Ws=null,Qr=null,Ec=null;function bc(){Ec=Qr=Ws=null}function Nc(e){var t=Hs.current;pe(Hs),e._currentValue=t}function pu(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 Jr(e,t){Ws=e,Ec=Qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Ec!==e)if(e={context:e,memoizedValue:t,next:null},Qr===null){if(Ws===null)throw Error(A(308));Qr=e,Ws.dependencies={lanes:0,firstContext:e}}else Qr=Qr.next=e;return t}var sr=null;function kc(e){sr===null?sr=[e]:sr.push(e)}function ah(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,kc(t)):(n.next=o.next,o.next=n),t.interleaved=n,ln(e,r)}function ln(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 En=!1;function Pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ln(e,n)}return o=r.interleaved,o===null?(t.next=t,kc(r)):(t.next=o.next,o.next=t),r.interleaved=t,ln(e,n)}function ys(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,fc(e,n)}}function hf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Qs(e,t,n,r){var o=e.updateQueue;En=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var p=o.baseState;s=0,d=u=l=null,a=i;do{var y=a.lane,m=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var S=e,h=a;switch(y=t,m=n,h.tag){case 1:if(S=h.payload,typeof S=="function"){p=S.call(m,p,y);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=h.payload,y=typeof S=="function"?S.call(m,p,y):S,y==null)break e;p=xe({},p,y);break e;case 2:En=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else m={eventTime:m,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=p):d=d.next=m,s|=y;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;y=a,a=y.next,y.next=null,o.lastBaseUpdate=y,o.shared.pending=null}}while(!0);if(d===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);xr|=s,e.lanes=s,e.memoizedState=p}}function vf(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(A(191,o));o.call(r)}}}var Mi={},Kt=Gn(Mi),yi=Gn(Mi),xi=Gn(Mi);function ar(e){if(e===Mi)throw Error(A(174));return e}function Tc(e,t){switch(ue(xi,t),ue(yi,e),ue(Kt,Mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kl(t,e)}pe(Kt),ue(Kt,t)}function yo(){pe(Kt),pe(yi),pe(xi)}function uh(e){ar(xi.current);var t=ar(Kt.current),n=Kl(t,e.type);t!==n&&(ue(yi,e),ue(Kt,n))}function Rc(e){yi.current===e&&(pe(Kt),pe(yi))}var ge=Gn(0);function Ks(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 hl=[];function jc(){for(var e=0;e<hl.length;e++)hl[e]._workInProgressVersionPrimary=null;hl.length=0}var xs=fn.ReactCurrentDispatcher,vl=fn.ReactCurrentBatchConfig,yr=0,ye=null,Te=null,je=null,Gs=!1,ni=!1,wi=0,Pw=0;function De(){throw Error(A(321))}function Ac(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!It(e[n],t[n]))return!1;return!0}function _c(e,t,n,r,o,i){if(yr=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xs.current=e===null||e.memoizedState===null?Aw:_w,e=n(r,o),ni){i=0;do{if(ni=!1,wi=0,25<=i)throw Error(A(301));i+=1,je=Te=null,t.updateQueue=null,xs.current=Ow,e=n(r,o)}while(ni)}if(xs.current=Ys,t=Te!==null&&Te.next!==null,yr=0,je=Te=ye=null,Gs=!1,t)throw Error(A(300));return e}function Oc(){var e=wi!==0;return wi=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ye.memoizedState=je=e:je=je.next=e,je}function gt(){if(Te===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=je===null?ye.memoizedState:je.next;if(t!==null)je=t,Te=e;else{if(e===null)throw Error(A(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},je===null?ye.memoizedState=je=e:je=je.next=e}return je}function Si(e,t){return typeof t=="function"?t(e):t}function gl(e){var t=gt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Te,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var d=u.lane;if((yr&d)===d)l!==null&&(l=l.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 p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=r):l=l.next=p,ye.lanes|=d,xr|=d}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,It(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ye.lanes|=i,xr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yl(e){var t=gt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);It(i,t.memoizedState)||(qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ch(){}function dh(e,t){var n=ye,r=gt(),o=t(),i=!It(r.memoizedState,o);if(i&&(r.memoizedState=o,qe=!0),r=r.queue,Ic(mh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,Ci(9,ph.bind(null,n,r,o,t),void 0,null),Ae===null)throw Error(A(349));yr&30||fh(n,t,o)}return o}function fh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ph(e,t,n,r){t.value=n,t.getSnapshot=r,hh(t)&&vh(e)}function mh(e,t,n){return n(function(){hh(t)&&vh(e)})}function hh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!It(e,n)}catch{return!0}}function vh(e){var t=ln(e,1);t!==null&&Ot(t,e,1,-1)}function gf(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:e},t.queue=e,e=e.dispatch=jw.bind(null,ye,e),[t.memoizedState,e]}function Ci(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.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 gh(){return gt().memoizedState}function ws(e,t,n,r){var o=zt();ye.flags|=e,o.memoizedState=Ci(1|t,n,void 0,r===void 0?null:r)}function ga(e,t,n,r){var o=gt();r=r===void 0?null:r;var i=void 0;if(Te!==null){var s=Te.memoizedState;if(i=s.destroy,r!==null&&Ac(r,s.deps)){o.memoizedState=Ci(t,n,i,r);return}}ye.flags|=e,o.memoizedState=Ci(1|t,n,i,r)}function yf(e,t){return ws(8390656,8,e,t)}function Ic(e,t){return ga(2048,8,e,t)}function yh(e,t){return ga(4,2,e,t)}function xh(e,t){return ga(4,4,e,t)}function wh(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 Sh(e,t,n){return n=n!=null?n.concat([e]):null,ga(4,4,wh.bind(null,t,e),n)}function Mc(){}function Ch(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ac(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Eh(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ac(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bh(e,t,n){return yr&21?(It(n,t)||(n=Rm(),ye.lanes|=n,xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Tw(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=vl.transition;vl.transition={};try{e(!1),t()}finally{ae=n,vl.transition=r}}function Nh(){return gt().memoizedState}function Rw(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kh(e))Ph(t,n);else if(n=ah(e,t,n,r),n!==null){var o=We();Ot(n,e,r,o),Th(n,t,r)}}function jw(e,t,n){var r=Bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kh(e))Ph(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,It(a,s)){var l=t.interleaved;l===null?(o.next=o,kc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=ah(e,t,o,r),n!==null&&(o=We(),Ot(n,e,r,o),Th(n,t,r))}}function kh(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Ph(e,t){ni=Gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Th(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fc(e,n)}}var Ys={readContext:vt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Aw={readContext:vt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:yf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ws(4194308,4,wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return ws(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();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=Rw.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:gf,useDebugValue:Mc,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=gf(!1),t=e[0];return e=Tw.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=zt();if(he){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ae===null)throw Error(A(349));yr&30||fh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,yf(mh.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,ph.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=Ae.identifierPrefix;if(he){var n=rn,r=nn;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Pw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_w={readContext:vt,useCallback:Ch,useContext:vt,useEffect:Ic,useImperativeHandle:Sh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Eh,useReducer:gl,useRef:gh,useState:function(){return gl(Si)},useDebugValue:Mc,useDeferredValue:function(e){var t=gt();return bh(t,Te.memoizedState,e)},useTransition:function(){var e=gl(Si)[0],t=gt().memoizedState;return[e,t]},useMutableSource:ch,useSyncExternalStore:dh,useId:Nh,unstable_isNewReconciler:!1},Ow={readContext:vt,useCallback:Ch,useContext:vt,useEffect:Ic,useImperativeHandle:Sh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Eh,useReducer:yl,useRef:gh,useState:function(){return yl(Si)},useDebugValue:Mc,useDeferredValue:function(e){var t=gt();return Te===null?t.memoizedState=e:bh(t,Te.memoizedState,e)},useTransition:function(){var e=yl(Si)[0],t=gt().memoizedState;return[e,t]},useMutableSource:ch,useSyncExternalStore:dh,useId:Nh,unstable_isNewReconciler:!1};function kt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ya={isMounted:function(e){return(e=e._reactInternals)?kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),o=Bn(e),i=on(r,o);i.payload=t,n!=null&&(i.callback=n),t=zn(e,i,o),t!==null&&(Ot(t,e,o,r),ys(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),o=Bn(e),i=on(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=zn(e,i,o),t!==null&&(Ot(t,e,o,r),ys(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Bn(e),o=on(n,r);o.tag=2,t!=null&&(o.callback=t),t=zn(e,o,r),t!==null&&(Ot(t,e,r,n),ys(t,e,r))}};function xf(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!mi(n,r)||!mi(o,i):!0}function Rh(e,t,n){var r=!1,o=Hn,i=t.contextType;return typeof i=="object"&&i!==null?i=vt(i):(o=Ze(t)?vr:Be.current,r=t.contextTypes,i=(r=r!=null)?ho(e,o):Hn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ya,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wf(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&&ya.enqueueReplaceState(t,t.state,null)}function hu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Pc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=vt(i):(i=Ze(t)?vr:Be.current,o.context=ho(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(mu(e,t,i,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&&ya.enqueueReplaceState(o,o.state,null),Qs(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xo(e,t){try{var n="",r=t;do n+=ax(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function xl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Iw=typeof WeakMap=="function"?WeakMap:Map;function jh(e,t,n){n=on(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,ku=r),vu(e,t)},n}function Ah(e,t,n){n=on(-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(){vu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){vu(e,t),typeof r!="function"&&($n===null?$n=new Set([this]):$n.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Sf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Iw;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=Gw.bind(null,e,t,n),t.then(e,e))}function Cf(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 Ef(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=on(-1,1),t.tag=2,zn(n,t,1))),n.lanes|=1),e)}var Mw=fn.ReactCurrentOwner,qe=!1;function Ve(e,t,n,r){t.child=e===null?sh(t,null,n,r):go(t,e.child,n,r)}function bf(e,t,n,r,o){n=n.render;var i=t.ref;return Jr(t,o),r=_c(e,t,n,r,i,o),n=Oc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(he&&n&&wc(t),t.flags|=1,Ve(e,t,r,o),t.child)}function Nf(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Vc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_h(e,t,i,r,o)):(e=bs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:mi,n(s,r)&&e.ref===t.ref)return un(e,t,o)}return t.flags|=1,e=Un(i,r),e.ref=t.ref,e.return=t,t.child=e}function _h(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(mi(i,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,un(e,t,o)}return gu(e,t,n,r,o)}function Oh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Gr,tt),tt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Gr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ue(Gr,tt),tt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ue(Gr,tt),tt|=r;return Ve(e,t,o,n),t.child}function Ih(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gu(e,t,n,r,o){var i=Ze(n)?vr:Be.current;return i=ho(t,i),Jr(t,o),n=_c(e,t,n,r,i,o),r=Oc(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(he&&r&&wc(t),t.flags|=1,Ve(e,t,n,o),t.child)}function kf(e,t,n,r,o){if(Ze(n)){var i=!0;Bs(t)}else i=!1;if(Jr(t,o),t.stateNode===null)Ss(e,t),Rh(t,n,r),hu(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=vt(u):(u=Ze(n)?vr:Be.current,u=ho(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&wf(t,s,r,u),En=!1;var y=t.memoizedState;s.state=y,Qs(t,r,s,o),l=t.memoizedState,a!==r||y!==l||Xe.current||En?(typeof d=="function"&&(mu(t,n,d,r),l=t.memoizedState),(a=En||xf(t,n,a,r,y,l,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,lh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:kt(t.type,a),s.props=u,p=t.pendingProps,y=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=vt(l):(l=Ze(n)?vr:Be.current,l=ho(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||y!==l)&&wf(t,s,r,l),En=!1,y=t.memoizedState,s.state=y,Qs(t,r,s,o);var S=t.memoizedState;a!==p||y!==S||Xe.current||En?(typeof m=="function"&&(mu(t,n,m,r),S=t.memoizedState),(u=En||xf(t,n,u,r,y,S,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,S,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,S,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return yu(e,t,n,r,i,o)}function yu(e,t,n,r,o,i){Ih(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&df(t,n,!1),un(e,t,i);r=t.stateNode,Mw.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=go(t,e.child,null,i),t.child=go(t,null,a,i)):Ve(e,t,a,i),t.memoizedState=r.state,o&&df(t,n,!0),t.child}function Mh(e){var t=e.stateNode;t.pendingContext?cf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cf(e,t.context,!1),Tc(e,t.containerInfo)}function Pf(e,t,n,r,o){return vo(),Cc(o),t.flags|=256,Ve(e,t,n,r),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0};function wu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lh(e,t,n){var r=t.pendingProps,o=ge.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(ge,o&1),e===null)return fu(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Sa(s,r,0,null),e=hr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=wu(n),t.memoizedState=xu,e):Lc(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Lw(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Un(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Un(a,i):(i=hr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?wu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=xu,r}return i=e.child,e=i.sibling,r=Un(i,{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 Lc(e,t){return t=Sa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function es(e,t,n,r){return r!==null&&Cc(r),go(t,e.child,null,n),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lw(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=xl(Error(A(422))),es(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Sa({mode:"visible",children:r.children},o,0,null),i=hr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&go(t,e.child,null,s),t.child.memoizedState=wu(s),t.memoizedState=xu,i);if(!(t.mode&1))return es(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(A(419)),r=xl(i,r,void 0),es(e,t,s,r)}if(a=(s&e.childLanes)!==0,qe||a){if(r=Ae,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ln(e,o),Ot(r,e,o,-1))}return Uc(),r=xl(Error(A(421))),es(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Yw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,rt=Fn(o.nextSibling),ot=t,he=!0,At=null,e!==null&&(ft[pt++]=nn,ft[pt++]=rn,ft[pt++]=gr,nn=e.id,rn=e.overflow,gr=t),t=Lc(t,r.children),t.flags|=4096,t)}function Tf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pu(e.return,t,n)}function wl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Dh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=ge.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&&Tf(e,n,t);else if(e.tag===19)Tf(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(ue(ge,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&&Ks(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ks(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wl(t,!0,n,null,i);break;case"together":wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ss(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dw(e,t,n){switch(t.tag){case 3:Mh(t),vo();break;case 5:uh(t);break;case 1:Ze(t.type)&&Bs(t);break;case 4:Tc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(Hs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?Lh(e,t,n):(ue(ge,ge.current&1),e=un(e,t,n),e!==null?e.sibling:null);ue(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Dh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,Oh(e,t,n)}return un(e,t,n)}var Fh,Su,zh,$h;Fh=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}};Su=function(){};zh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ar(Kt.current);var i=null;switch(n){case"input":o=Vl(e,o),r=Vl(e,r),i=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),i=[];break;case"textarea":o=Ql(e,o),r=Ql(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zs)}Gl(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ai.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ai.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&fe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};$h=function(e,t,n,r){n!==r&&(t.flags|=4)};function Uo(e,t){if(!he)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 Fe(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 Fw(e,t,n){var r=t.pendingProps;switch(Sc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Ze(t.type)&&$s(),Fe(t),null;case 3:return r=t.stateNode,yo(),pe(Xe),pe(Be),jc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,At!==null&&(Ru(At),At=null))),Su(e,t),Fe(t),null;case 5:Rc(t);var o=ar(xi.current);if(n=t.type,e!==null&&t.stateNode!=null)zh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Fe(t),null}if(e=ar(Kt.current),Zi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Vt]=t,r[gi]=i,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(o=0;o<Yo.length;o++)fe(Yo[o],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Ld(r,i),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},fe("invalid",r);break;case"textarea":Fd(r,i),fe("invalid",r)}Gl(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Xi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Xi(r.textContent,a,e),o=["children",""+a]):ai.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&fe("scroll",r)}switch(n){case"input":Vi(r),Dd(r,i,!0);break;case"textarea":Vi(r),zd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=zs)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vt]=t,e[gi]=r,Fh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yl(n,r),n){case"dialog":fe("cancel",e),fe("close",e),o=r;break;case"iframe":case"object":case"embed":fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Yo.length;o++)fe(Yo[o],e);o=r;break;case"source":fe("error",e),o=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),o=r;break;case"details":fe("toggle",e),o=r;break;case"input":Ld(e,r),o=Vl(e,r),fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Fd(e,r),o=Ql(e,r),fe("invalid",e);break;default:o=r}Gl(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?gm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&hm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&li(e,l):typeof l=="number"&&li(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ai.hasOwnProperty(i)?l!=null&&i==="onScroll"&&fe("scroll",e):l!=null&&sc(e,i,l,s))}switch(n){case"input":Vi(e),Dd(e,r,!1);break;case"textarea":Vi(e),zd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Yr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Yr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=zs)}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 Fe(t),null;case 6:if(e&&t.stateNode!=null)$h(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=ar(xi.current),ar(Kt.current),Zi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vt]=t,(i=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:Xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vt]=t,t.stateNode=r}return Fe(t),null;case 13:if(pe(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&rt!==null&&t.mode&1&&!(t.flags&128))oh(),vo(),t.flags|=98560,i=!1;else if(i=Zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(A(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(A(317));i[Vt]=t}else vo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else At!==null&&(Ru(At),At=null),i=!0;if(!i)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||ge.current&1?Re===0&&(Re=3):Uc())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return yo(),Su(e,t),e===null&&hi(t.stateNode.containerInfo),Fe(t),null;case 10:return Nc(t.type._context),Fe(t),null;case 17:return Ze(t.type)&&$s(),Fe(t),null;case 19:if(pe(ge),i=t.memoizedState,i===null)return Fe(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Uo(i,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ks(e),s!==null){for(t.flags|=128,Uo(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(ge,ge.current&1|2),t.child}e=e.sibling}i.tail!==null&&be()>wo&&(t.flags|=128,r=!0,Uo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ks(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Fe(t),null}else 2*be()-i.renderingStartTime>wo&&n!==1073741824&&(t.flags|=128,r=!0,Uo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=ge.current,ue(ge,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Bc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function zw(e,t){switch(Sc(t),t.tag){case 1:return Ze(t.type)&&$s(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),pe(Xe),pe(Be),jc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Rc(t),null;case 13:if(pe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ge),null;case 4:return yo(),null;case 10:return Nc(t.type._context),null;case 22:case 23:return Bc(),null;case 24:return null;default:return null}}var ts=!1,$e=!1,$w=typeof WeakSet=="function"?WeakSet:Set,F=null;function Kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Cu(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Rf=!1;function Bw(e,t){if(iu=Ls,e=Wm(),xc(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,p=e,y=null;t:for(;;){for(var m;p!==n||o!==0&&p.nodeType!==3||(a=s+o),p!==i||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(m=p.firstChild)!==null;)y=p,p=m;for(;;){if(p===e)break t;if(y===n&&++u===o&&(a=s),y===i&&++d===r&&(l=s),(m=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(su={focusedElem:e,selectionRange:n},Ls=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var h=S.memoizedProps,w=S.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?h:kt(t.type,h),w);g.__reactInternalSnapshotBeforeUpdate=f}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(A(163))}}catch(C){Ee(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return S=Rf,Rf=!1,S}function ri(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 i=o.destroy;o.destroy=void 0,i!==void 0&&Cu(t,n,i)}o=o.next}while(o!==r)}}function xa(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 Eu(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 Bh(e){var t=e.alternate;t!==null&&(e.alternate=null,Bh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[gi],delete t[uu],delete t[Ew],delete t[bw])),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 Uh(e){return e.tag===5||e.tag===3||e.tag===4}function jf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(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 bu(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=zs));else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}function Nu(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(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}var _e=null,jt=!1;function gn(e,t,n){for(n=n.child;n!==null;)Vh(e,t,n),n=n.sibling}function Vh(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(da,n)}catch{}switch(n.tag){case 5:$e||Kr(n,t);case 6:var r=_e,o=jt;_e=null,gn(e,t,n),_e=r,jt=o,_e!==null&&(jt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(jt?(e=_e,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),fi(e)):pl(_e,n.stateNode));break;case 4:r=_e,o=jt,_e=n.stateNode.containerInfo,jt=!0,gn(e,t,n),_e=r,jt=o;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Cu(n,t,s),o=o.next}while(o!==r)}gn(e,t,n);break;case 1:if(!$e&&(Kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,gn(e,t,n),$e=r):gn(e,t,n);break;default:gn(e,t,n)}}function Af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $w),t.forEach(function(r){var o=qw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:_e=a.stateNode,jt=!1;break e;case 3:_e=a.stateNode.containerInfo,jt=!0;break e;case 4:_e=a.stateNode.containerInfo,jt=!0;break e}a=a.return}if(_e===null)throw Error(A(160));Vh(i,s,o),_e=null,jt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ee(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hh(t,e),t=t.sibling}function Hh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Ft(e),r&4){try{ri(3,e,e.return),xa(3,e)}catch(h){Ee(e,e.return,h)}try{ri(5,e,e.return)}catch(h){Ee(e,e.return,h)}}break;case 1:Ct(t,e),Ft(e),r&512&&n!==null&&Kr(n,n.return);break;case 5:if(Ct(t,e),Ft(e),r&512&&n!==null&&Kr(n,n.return),e.flags&32){var o=e.stateNode;try{li(o,"")}catch(h){Ee(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&fm(o,i),Yl(a,s);var u=Yl(a,i);for(s=0;s<l.length;s+=2){var d=l[s],p=l[s+1];d==="style"?gm(o,p):d==="dangerouslySetInnerHTML"?hm(o,p):d==="children"?li(o,p):sc(o,d,p,u)}switch(a){case"input":Hl(o,i);break;case"textarea":pm(o,i);break;case"select":var y=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Yr(o,!!i.multiple,m,!1):y!==!!i.multiple&&(i.defaultValue!=null?Yr(o,!!i.multiple,i.defaultValue,!0):Yr(o,!!i.multiple,i.multiple?[]:"",!1))}o[gi]=i}catch(h){Ee(e,e.return,h)}}break;case 6:if(Ct(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){Ee(e,e.return,h)}}break;case 3:if(Ct(t,e),Ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(t.containerInfo)}catch(h){Ee(e,e.return,h)}break;case 4:Ct(t,e),Ft(e);break;case 13:Ct(t,e),Ft(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(zc=be())),r&4&&Af(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?($e=(u=$e)||d,Ct(t,e),$e=u):Ct(t,e),Ft(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(p=F=d;F!==null;){switch(y=F,m=y.child,y.tag){case 0:case 11:case 14:case 15:ri(4,y,y.return);break;case 1:Kr(y,y.return);var S=y.stateNode;if(typeof S.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(h){Ee(r,n,h)}}break;case 5:Kr(y,y.return);break;case 22:if(y.memoizedState!==null){Of(p);continue}}m!==null?(m.return=y,F=m):Of(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{o=p.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=vm("display",s))}catch(h){Ee(e,e.return,h)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){Ee(e,e.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ct(t,e),Ft(e),r&4&&Af(e);break;case 21:break;default:Ct(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Uh(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(li(o,""),r.flags&=-33);var i=jf(e);Nu(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=jf(e);bu(e,a,s);break;default:throw Error(A(161))}}catch(l){Ee(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uw(e,t,n){F=e,Wh(e)}function Wh(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||ts;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||$e;a=ts;var u=$e;if(ts=s,($e=l)&&!u)for(F=o;F!==null;)s=F,l=s.child,s.tag===22&&s.memoizedState!==null?If(o):l!==null?(l.return=s,F=l):If(o);for(;i!==null;)F=i,Wh(i),i=i.sibling;F=o,ts=a,$e=u}_f(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,F=i):_f(e)}}function _f(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$e||xa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!$e)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&vf(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}vf(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.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 p=d.dehydrated;p!==null&&fi(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}$e||t.flags&512&&Eu(t)}catch(y){Ee(t,t.return,y)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Of(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function If(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xa(4,t)}catch(l){Ee(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ee(t,o,l)}}var i=t.return;try{Eu(t)}catch(l){Ee(t,i,l)}break;case 5:var s=t.return;try{Eu(t)}catch(l){Ee(t,s,l)}}}catch(l){Ee(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var Vw=Math.ceil,qs=fn.ReactCurrentDispatcher,Dc=fn.ReactCurrentOwner,ht=fn.ReactCurrentBatchConfig,te=0,Ae=null,Pe=null,Oe=0,tt=0,Gr=Gn(0),Re=0,Ei=null,xr=0,wa=0,Fc=0,oi=null,Ye=null,zc=0,wo=1/0,Jt=null,Xs=!1,ku=null,$n=null,ns=!1,_n=null,Zs=0,ii=0,Pu=null,Cs=-1,Es=0;function We(){return te&6?be():Cs!==-1?Cs:Cs=be()}function Bn(e){return e.mode&1?te&2&&Oe!==0?Oe&-Oe:kw.transition!==null?(Es===0&&(Es=Rm()),Es):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Lm(e.type)),e):1}function Ot(e,t,n,r){if(50<ii)throw ii=0,Pu=null,Error(A(185));_i(e,n,r),(!(te&2)||e!==Ae)&&(e===Ae&&(!(te&2)&&(wa|=n),Re===4&&Nn(e,Oe)),Je(e,r),n===1&&te===0&&!(t.mode&1)&&(wo=be()+500,va&&Yn()))}function Je(e,t){var n=e.callbackNode;kx(e,t);var r=Ms(e,e===Ae?Oe:0);if(r===0)n!==null&&Ud(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ud(n),t===1)e.tag===0?Nw(Mf.bind(null,e)):th(Mf.bind(null,e)),Sw(function(){!(te&6)&&Yn()}),n=null;else{switch(jm(r)){case 1:n=dc;break;case 4:n=Pm;break;case 16:n=Is;break;case 536870912:n=Tm;break;default:n=Is}n=Jh(n,Qh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Qh(e,t){if(Cs=-1,Es=0,te&6)throw Error(A(327));var n=e.callbackNode;if(eo()&&e.callbackNode!==n)return null;var r=Ms(e,e===Ae?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Js(e,r);else{t=r;var o=te;te|=2;var i=Gh();(Ae!==e||Oe!==t)&&(Jt=null,wo=be()+500,mr(e,t));do try{Qw();break}catch(a){Kh(e,a)}while(!0);bc(),qs.current=i,te=o,Pe!==null?t=0:(Ae=null,Oe=0,t=Re)}if(t!==0){if(t===2&&(o=eu(e),o!==0&&(r=o,t=Tu(e,o))),t===1)throw n=Ei,mr(e,0),Nn(e,r),Je(e,be()),n;if(t===6)Nn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Hw(o)&&(t=Js(e,r),t===2&&(i=eu(e),i!==0&&(r=i,t=Tu(e,i))),t===1))throw n=Ei,mr(e,0),Nn(e,r),Je(e,be()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:or(e,Ye,Jt);break;case 3:if(Nn(e,r),(r&130023424)===r&&(t=zc+500-be(),10<t)){if(Ms(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=lu(or.bind(null,e,Ye,Jt),t);break}or(e,Ye,Jt);break;case 4:if(Nn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_t(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vw(r/1960))-r,10<r){e.timeoutHandle=lu(or.bind(null,e,Ye,Jt),r);break}or(e,Ye,Jt);break;case 5:or(e,Ye,Jt);break;default:throw Error(A(329))}}}return Je(e,be()),e.callbackNode===n?Qh.bind(null,e):null}function Tu(e,t){var n=oi;return e.current.memoizedState.isDehydrated&&(mr(e,t).flags|=256),e=Js(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&Ru(t)),e}function Ru(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function Hw(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],i=o.getSnapshot;o=o.value;try{if(!It(i(),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 Nn(e,t){for(t&=~Fc,t&=~wa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Mf(e){if(te&6)throw Error(A(327));eo();var t=Ms(e,0);if(!(t&1))return Je(e,be()),null;var n=Js(e,t);if(e.tag!==0&&n===2){var r=eu(e);r!==0&&(t=r,n=Tu(e,r))}if(n===1)throw n=Ei,mr(e,0),Nn(e,t),Je(e,be()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,or(e,Ye,Jt),Je(e,be()),null}function $c(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(wo=be()+500,va&&Yn())}}function wr(e){_n!==null&&_n.tag===0&&!(te&6)&&eo();var t=te;te|=1;var n=ht.transition,r=ae;try{if(ht.transition=null,ae=1,e)return e()}finally{ae=r,ht.transition=n,te=t,!(te&6)&&Yn()}}function Bc(){tt=Gr.current,pe(Gr)}function mr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ww(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Sc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$s();break;case 3:yo(),pe(Xe),pe(Be),jc();break;case 5:Rc(r);break;case 4:yo();break;case 13:pe(ge);break;case 19:pe(ge);break;case 10:Nc(r.type._context);break;case 22:case 23:Bc()}n=n.return}if(Ae=e,Pe=e=Un(e.current,null),Oe=tt=t,Re=0,Ei=null,Fc=wa=xr=0,Ye=oi=null,sr!==null){for(t=0;t<sr.length;t++)if(n=sr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}sr=null}return e}function Kh(e,t){do{var n=Pe;try{if(bc(),xs.current=Ys,Gs){for(var r=ye.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Gs=!1}if(yr=0,je=Te=ye=null,ni=!1,wi=0,Dc.current=null,n===null||n.return===null){Re=1,Ei=t,Pe=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Oe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var y=d.alternate;y?(d.updateQueue=y.updateQueue,d.memoizedState=y.memoizedState,d.lanes=y.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Cf(s);if(m!==null){m.flags&=-257,Ef(m,s,a,i,t),m.mode&1&&Sf(i,u,t),t=m,l=u;var S=t.updateQueue;if(S===null){var h=new Set;h.add(l),t.updateQueue=h}else S.add(l);break e}else{if(!(t&1)){Sf(i,u,t),Uc();break e}l=Error(A(426))}}else if(he&&a.mode&1){var w=Cf(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Ef(w,s,a,i,t),Cc(xo(l,a));break e}}i=l=xo(l,a),Re!==4&&(Re=2),oi===null?oi=[i]:oi.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=jh(i,l,t);hf(i,g);break e;case 1:a=l;var f=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&($n===null||!$n.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=Ah(i,a,t);hf(i,C);break e}}i=i.return}while(i!==null)}qh(n)}catch(E){t=E,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Gh(){var e=qs.current;return qs.current=Ys,e===null?Ys:e}function Uc(){(Re===0||Re===3||Re===2)&&(Re=4),Ae===null||!(xr&268435455)&&!(wa&268435455)||Nn(Ae,Oe)}function Js(e,t){var n=te;te|=2;var r=Gh();(Ae!==e||Oe!==t)&&(Jt=null,mr(e,t));do try{Ww();break}catch(o){Kh(e,o)}while(!0);if(bc(),te=n,qs.current=r,Pe!==null)throw Error(A(261));return Ae=null,Oe=0,Re}function Ww(){for(;Pe!==null;)Yh(Pe)}function Qw(){for(;Pe!==null&&!gx();)Yh(Pe)}function Yh(e){var t=Zh(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?qh(e):Pe=t,Dc.current=null}function qh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zw(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Pe=null;return}}else if(n=Fw(n,t,tt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Re===0&&(Re=5)}function or(e,t,n){var r=ae,o=ht.transition;try{ht.transition=null,ae=1,Kw(e,t,n,r)}finally{ht.transition=o,ae=r}return null}function Kw(e,t,n,r){do eo();while(_n!==null);if(te&6)throw Error(A(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(A(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Px(e,i),e===Ae&&(Pe=Ae=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ns||(ns=!0,Jh(Is,function(){return eo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ht.transition,ht.transition=null;var s=ae;ae=1;var a=te;te|=4,Dc.current=null,Bw(e,n),Hh(n,e),pw(su),Ls=!!iu,su=iu=null,e.current=n,Uw(n),yx(),te=a,ae=s,ht.transition=i}else e.current=n;if(ns&&(ns=!1,_n=e,Zs=o),i=e.pendingLanes,i===0&&($n=null),Sx(n.stateNode),Je(e,be()),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(Xs)throw Xs=!1,e=ku,ku=null,e;return Zs&1&&e.tag!==0&&eo(),i=e.pendingLanes,i&1?e===Pu?ii++:(ii=0,Pu=e):ii=0,Yn(),null}function eo(){if(_n!==null){var e=jm(Zs),t=ht.transition,n=ae;try{if(ht.transition=null,ae=16>e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,Zs=0,te&6)throw Error(A(331));var o=te;for(te|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:ri(8,d,i)}var p=d.child;if(p!==null)p.return=d,F=p;else for(;F!==null;){d=F;var y=d.sibling,m=d.return;if(Bh(d),d===u){F=null;break}if(y!==null){y.return=m,F=y;break}F=m}}}var S=i.alternate;if(S!==null){var h=S.child;if(h!==null){S.child=null;do{var w=h.sibling;h.sibling=null,h=w}while(h!==null)}}F=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,F=s;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ri(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,F=g;break e}F=i.return}}var f=e.current;for(F=f;F!==null;){s=F;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,F=x;else e:for(s=f;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xa(9,a)}}catch(E){Ee(a,a.return,E)}if(a===s){F=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,F=C;break e}F=a.return}}if(te=o,Yn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(da,e)}catch{}r=!0}return r}finally{ae=n,ht.transition=t}}return!1}function Lf(e,t,n){t=xo(n,t),t=jh(e,t,1),e=zn(e,t,1),t=We(),e!==null&&(_i(e,1,t),Je(e,t))}function Ee(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))){e=xo(n,e),e=Ah(t,e,1),t=zn(t,e,1),e=We(),t!==null&&(_i(t,1,e),Je(t,e));break}}t=t.return}}function Gw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Oe&n)===n&&(Re===4||Re===3&&(Oe&130023424)===Oe&&500>be()-zc?mr(e,0):Fc|=n),Je(e,t)}function Xh(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=We();e=ln(e,t),e!==null&&(_i(e,t,n),Je(e,n))}function Yw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xh(e,n)}function qw(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(A(314))}r!==null&&r.delete(t),Xh(e,n)}var Zh;Zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Dw(e,t,n);qe=!!(e.flags&131072)}else qe=!1,he&&t.flags&1048576&&nh(t,Vs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ss(e,t),e=t.pendingProps;var o=ho(t,Be.current);Jr(t,n),o=_c(null,t,r,e,o,n);var i=Oc();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,Ze(r)?(i=!0,Bs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pc(t),o.updater=ya,t.stateNode=o,o._reactInternals=t,hu(t,r,e,n),t=yu(null,t,r,!0,i,n)):(t.tag=0,he&&i&&wc(t),Ve(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ss(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zw(r),e=kt(r,e),o){case 0:t=gu(null,t,r,e,n);break e;case 1:t=kf(null,t,r,e,n);break e;case 11:t=bf(null,t,r,e,n);break e;case 14:t=Nf(null,t,r,kt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),gu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),kf(e,t,r,o,n);case 3:e:{if(Mh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,lh(e,t),Qs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=xo(Error(A(423)),t),t=Pf(e,t,r,n,o);break e}else if(r!==o){o=xo(Error(A(424)),t),t=Pf(e,t,r,n,o);break e}else for(rt=Fn(t.stateNode.containerInfo.firstChild),ot=t,he=!0,At=null,n=sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vo(),r===o){t=un(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return uh(t),e===null&&fu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,au(r,o)?s=null:i!==null&&au(r,i)&&(t.flags|=32),Ih(e,t),Ve(e,t,s,n),t.child;case 6:return e===null&&fu(t),null;case 13:return Lh(e,t,n);case 4:return Tc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),bf(e,t,r,o,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ue(Hs,r._currentValue),r._currentValue=s,i!==null)if(It(i.value,s)){if(i.children===o.children&&!Xe.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=on(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),pu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pu(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ve(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Jr(t,n),o=vt(o),r=r(o),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,o=kt(r,t.pendingProps),o=kt(r.type,o),Nf(e,t,r,o,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Ss(e,t),t.tag=1,Ze(r)?(e=!0,Bs(t)):e=!1,Jr(t,n),Rh(t,r,o),hu(t,r,o,n),yu(null,t,r,!0,e,n);case 19:return Dh(e,t,n);case 22:return Oh(e,t,n)}throw Error(A(156,t.tag))};function Jh(e,t){return km(e,t)}function Xw(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 mt(e,t,n,r){return new Xw(e,t,n,r)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zw(e){if(typeof e=="function")return Vc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lc)return 11;if(e===uc)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=mt(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 bs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Vc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fr:return hr(n.children,o,i,t);case ac:s=8,o|=8;break;case zl:return e=mt(12,n,t,o|2),e.elementType=zl,e.lanes=i,e;case $l:return e=mt(13,n,t,o),e.elementType=$l,e.lanes=i,e;case Bl:return e=mt(19,n,t,o),e.elementType=Bl,e.lanes=i,e;case um:return Sa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case am:s=10;break e;case lm:s=9;break e;case lc:s=11;break e;case uc:s=14;break e;case Cn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=mt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function hr(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Sa(e,t,n,r){return e=mt(22,e,r,t),e.elementType=um,e.lanes=n,e.stateNode={isHidden:!1},e}function Sl(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Cl(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jw(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=nl(0),this.expirationTimes=nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,o,i,s,a,l){return e=new Jw(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(i),e}function e1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ev(e){if(!e)return Hn;e=e._reactInternals;e:{if(kr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(Ze(n))return eh(e,n,t)}return t}function tv(e,t,n,r,o,i,s,a,l){return e=Hc(n,r,!0,e,o,i,s,a,l),e.context=ev(null),n=e.current,r=We(),o=Bn(n),i=on(r,o),i.callback=t??null,zn(n,i,o),e.current.lanes=o,_i(e,o,r),Je(e,r),e}function Ca(e,t,n,r){var o=t.current,i=We(),s=Bn(o);return n=ev(n),t.context===null?t.context=n:t.pendingContext=n,t=on(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zn(o,t,s),e!==null&&(Ot(e,o,s,i),ys(e,o,s)),s}function ea(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 Df(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wc(e,t){Df(e,t),(e=e.alternate)&&Df(e,t)}function t1(){return null}var nv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}Ea.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));Ca(e,t,null,null)};Ea.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wr(function(){Ca(null,e,null,null)}),t[an]=null}};function Ea(e){this._internalRoot=e}Ea.prototype.unstable_scheduleHydration=function(e){if(e){var t=Om();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bn.length&&t!==0&&t<bn[n].priority;n++);bn.splice(n,0,e),n===0&&Mm(e)}};function Kc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ba(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ff(){}function n1(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ea(s);i.call(u)}}var s=tv(t,r,e,0,null,!1,!1,"",Ff);return e._reactRootContainer=s,e[an]=s.current,hi(e.nodeType===8?e.parentNode:e),wr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=ea(l);a.call(u)}}var l=Hc(e,0,!1,null,null,!1,!1,"",Ff);return e._reactRootContainer=l,e[an]=l.current,hi(e.nodeType===8?e.parentNode:e),wr(function(){Ca(t,l,n,r)}),l}function Na(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=ea(s);a.call(l)}}Ca(t,s,e,o)}else s=n1(n,t,e,o,r);return ea(s)}Am=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Go(t.pendingLanes);n!==0&&(fc(t,n|1),Je(t,be()),!(te&6)&&(wo=be()+500,Yn()))}break;case 13:wr(function(){var r=ln(e,1);if(r!==null){var o=We();Ot(r,e,1,o)}}),Wc(e,1)}};pc=function(e){if(e.tag===13){var t=ln(e,134217728);if(t!==null){var n=We();Ot(t,e,134217728,n)}Wc(e,134217728)}};_m=function(e){if(e.tag===13){var t=Bn(e),n=ln(e,t);if(n!==null){var r=We();Ot(n,e,t,r)}Wc(e,t)}};Om=function(){return ae};Im=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Xl=function(e,t,n){switch(t){case"input":if(Hl(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=ha(r);if(!o)throw Error(A(90));dm(r),Hl(r,o)}}}break;case"textarea":pm(e,n);break;case"select":t=n.value,t!=null&&Yr(e,!!n.multiple,t,!1)}};wm=$c;Sm=wr;var r1={usingClientEntryPoint:!1,Events:[Ii,Ur,ha,ym,xm,$c]},Vo={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},o1={bundleType:Vo.bundleType,version:Vo.version,rendererPackageName:Vo.rendererPackageName,rendererConfig:Vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bm(e),e===null?null:e.stateNode},findFiberByHostInstance:Vo.findFiberByHostInstance||t1,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 rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rs.isDisabled&&rs.supportsFiber)try{da=rs.inject(o1),Qt=rs}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r1;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kc(t))throw Error(A(200));return e1(e,t,null,n)};at.createRoot=function(e,t){if(!Kc(e))throw Error(A(299));var n=!1,r="",o=nv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hc(e,1,!1,null,null,n,!1,r,o),e[an]=t.current,hi(e.nodeType===8?e.parentNode:e),new Qc(t)};at.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(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=bm(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return wr(e)};at.hydrate=function(e,t,n){if(!ba(t))throw Error(A(200));return Na(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=nv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=tv(t,null,e,1,n??null,o,!1,i,s),e[an]=t.current,hi(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 Ea(t)};at.render=function(e,t,n){if(!ba(t))throw Error(A(200));return Na(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!ba(e))throw Error(A(40));return e._reactRootContainer?(wr(function(){Na(null,null,e,!1,function(){e._reactRootContainer=null,e[an]=null})}),!0):!1};at.unstable_batchedUpdates=$c;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ba(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return Na(e,t,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function rv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rv)}catch(e){console.error(e)}}rv(),rm.exports=at;var Pr=rm.exports;const ov=Wp(Pr);var iv,zf=Pr;iv=zf.createRoot,zf.hydrateRoot;const i1=1,s1=1e6;let El=0;function a1(){return El=(El+1)%Number.MAX_SAFE_INTEGER,El.toString()}const bl=new Map,$f=e=>{if(bl.has(e))return;const t=setTimeout(()=>{bl.delete(e),si({type:"REMOVE_TOAST",toastId:e})},s1);bl.set(e,t)},l1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,i1)};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?$f(n):e.toasts.forEach(r=>{$f(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)}}},Ns=[];let ks={toasts:[]};function si(e){ks=l1(ks,e),Ns.forEach(t=>{t(ks)})}function u1({...e}){const t=a1(),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 sv(){const[e,t]=v.useState(ks);return v.useEffect(()=>(Ns.push(t),()=>{const n=Ns.indexOf(t);n>-1&&Ns.splice(n,1)}),[e]),{...e,toast:u1,dismiss:n=>si({type:"DISMISS_TOAST",toastId:n})}}function X(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 Bf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function av(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Bf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Bf(e[o],null)}}}}function ve(...e){return v.useCallback(av(...e),e)}function qn(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const u=p=>{var g;const{scope:y,children:m,...S}=p,h=((g=y==null?void 0:y[e])==null?void 0:g[l])||a,w=v.useMemo(()=>S,Object.values(S));return c.jsx(h.Provider,{value:w,children:m})};u.displayName=i+"Provider";function d(p,y){var h;const m=((h=y==null?void 0:y[e])==null?void 0:h[l])||a,S=v.useContext(m);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,c1(o,...t)]}function c1(...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(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function bi(e){const t=f1(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,a=v.Children.toArray(i),l=a.find(m1);if(l){const u=l.props.children,d=a.map(p=>p===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var d1=bi("Slot");function f1(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=v1(o),a=h1(i,o.props);return o.type!==v.Fragment&&(a.ref=r?av(r,s):s),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lv=Symbol("radix.slottable");function p1(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=lv,t}function m1(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lv}function h1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function v1(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 Gc(e){const t=e+"CollectionProvider",[n,r]=qn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:w,children:g}=h,f=j.useRef(null),x=j.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:x,collectionRef:f,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=bi(a),u=j.forwardRef((h,w)=>{const{scope:g,children:f}=h,x=i(a,g),C=ve(w,x.collectionRef);return c.jsx(l,{ref:C,children:f})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",y=bi(d),m=j.forwardRef((h,w)=>{const{scope:g,children:f,...x}=h,C=j.useRef(null),E=ve(w,C),N=i(d,g);return j.useEffect(()=>(N.itemMap.set(C,{ref:C,...x}),()=>void N.itemMap.delete(C))),c.jsx(y,{[p]:"",ref:E,children:f})});m.displayName=d;function S(h){const w=i(e+"CollectionConsumer",h);return j.useCallback(()=>{const f=w.collectionRef.current;if(!f)return[];const x=Array.from(f.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((N,b)=>x.indexOf(N.ref.current)-x.indexOf(b.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},S,r]}var g1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=g1.reduce((e,t)=>{const n=bi(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function uv(e,t){e&&Pr.flushSync(()=>e.dispatchEvent(t))}function yt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function y1(e,t=globalThis==null?void 0:globalThis.document){const n=yt(e);v.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 x1="DismissableLayer",ju="dismissableLayer.update",w1="dismissableLayer.pointerDownOutside",S1="dismissableLayer.focusOutside",Uf,cv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ka=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(cv),[d,p]=v.useState(null),y=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=v.useState({}),S=ve(t,b=>p(b)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(w),f=d?h.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=f>=g,E=E1(b=>{const T=b.target,_=[...u.branches].some(O=>O.contains(T));!C||_||(o==null||o(b),s==null||s(b),b.defaultPrevented||a==null||a())},y),N=b1(b=>{const T=b.target;[...u.branches].some(O=>O.contains(T))||(i==null||i(b),s==null||s(b),b.defaultPrevented||a==null||a())},y);return y1(b=>{f===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},y),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Uf=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Uf)}},[d,y,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vf())},[d,u]),v.useEffect(()=>{const b=()=>m({});return document.addEventListener(ju,b),()=>document.removeEventListener(ju,b)},[]),c.jsx(J.div,{...l,ref:S,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,N.onFocusCapture),onBlurCapture:X(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,E.onPointerDownCapture)})});ka.displayName=x1;var C1="DismissableLayerBranch",dv=v.forwardRef((e,t)=>{const n=v.useContext(cv),r=v.useRef(null),o=ve(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(J.div,{...e,ref:o})});dv.displayName=C1;function E1(e,t=globalThis==null?void 0:globalThis.document){const n=yt(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){fv(w1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b1(e,t=globalThis==null?void 0:globalThis.document){const n=yt(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&fv(S1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vf(){const e=new CustomEvent(ju);document.dispatchEvent(e)}function fv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uv(o,i):o.dispatchEvent(i)}var N1=ka,k1=dv,Ne=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},P1="Portal",Yc=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);Ne(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?ov.createPortal(c.jsx(J.div,{...r,ref:t}),s):null});Yc.displayName=P1;function T1(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Pa=e=>{const{present:t,children:n}=e,r=R1(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=ve(r.ref,j1(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Pa.displayName="Presence";function R1(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=T1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=os(r.current);i.current=a==="mounted"?u:"none"},[a]),Ne(()=>{const u=r.current,d=o.current;if(d!==e){const y=i.current,m=os(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&y!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ne(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=m=>{const h=os(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},y=m=>{m.target===t&&(i.current=os(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function os(e){return(e==null?void 0:e.animationName)||"none"}function j1(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 A1=rc[" useInsertionEffect ".trim().toString()]||Ne;function So({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=_1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=v.useRef(e!==void 0);v.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"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=v.useCallback(d=>{var p;if(a){const y=O1(d)?d(e):d;y!==e&&((p=s.current)==null||p.call(s,y))}else i(d)},[a,e,i,s]);return[l,u]}function _1({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return A1(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function O1(e){return typeof e=="function"}var pv=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"}),I1="VisuallyHidden",Ta=v.forwardRef((e,t)=>c.jsx(J.span,{...e,ref:t,style:{...pv,...e.style}}));Ta.displayName=I1;var M1=Ta,qc="ToastProvider",[Xc,L1,D1]=Gc("Toast"),[mv,uP]=qn("Toast",[D1]),[F1,Ra]=mv(qc),hv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[u,d]=v.useState(0),p=v.useRef(!1),y=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qc}\`. Expected non-empty \`string\`.`),c.jsx(Xc.Provider,{scope:t,children:c.jsx(F1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>d(m=>m+1),[]),onToastRemove:v.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:y,children:s})})};hv.displayName=qc;var vv="ToastViewport",z1=["F8"],Au="toast.viewportPause",_u="toast.viewportResume",gv=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=z1,label:o="Notifications ({hotkey})",...i}=e,s=Ra(vv,n),a=L1(n),l=v.useRef(null),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),y=ve(t,p,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=s.toastCount>0;v.useEffect(()=>{const w=g=>{var x;r.length!==0&&r.every(C=>g[C]||g.code===C)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=l.current,g=p.current;if(S&&w&&g){const f=()=>{if(!s.isClosePausedRef.current){const N=new CustomEvent(Au);g.dispatchEvent(N),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const N=new CustomEvent(_u);g.dispatchEvent(N),s.isClosePausedRef.current=!1}},C=N=>{!w.contains(N.relatedTarget)&&x()},E=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",f),w.addEventListener("focusout",C),w.addEventListener("pointermove",f),w.addEventListener("pointerleave",E),window.addEventListener("blur",f),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",f),w.removeEventListener("focusout",C),w.removeEventListener("pointermove",f),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",f),window.removeEventListener("focus",x)}}},[S,s.isClosePausedRef]);const h=v.useCallback(({tabbingDirection:w})=>{const f=a().map(x=>{const C=x.ref.current,E=[C,...Z1(C)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?f.reverse():f).flat()},[a]);return v.useEffect(()=>{const w=p.current;if(w){const g=f=>{var E,N,b;const x=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!x){const T=document.activeElement,_=f.shiftKey;if(f.target===w&&_){(E=u.current)==null||E.focus();return}const M=h({tabbingDirection:_?"backwards":"forwards"}),V=M.findIndex(I=>I===T);Nl(M.slice(V+1))?f.preventDefault():_?(N=u.current)==null||N.focus():(b=d.current)==null||b.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[a,h]),c.jsxs(k1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&c.jsx(Ou,{ref:u,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"forwards"});Nl(w)}}),c.jsx(Xc.Slot,{scope:n,children:c.jsx(J.ol,{tabIndex:-1,...i,ref:y})}),S&&c.jsx(Ou,{ref:d,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"backwards"});Nl(w)}})]})});gv.displayName=vv;var yv="ToastFocusProxy",Ou=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Ra(yv,n);return c.jsx(Ta,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Ou.displayName=yv;var Li="Toast",$1="toast.swipeStart",B1="toast.swipeMove",U1="toast.swipeCancel",V1="toast.swipeEnd",xv=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=So({prop:r,defaultProp:o??!0,onChange:i,caller:Li});return c.jsx(Pa,{present:n||a,children:c.jsx(Q1,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:yt(e.onPause),onResume:yt(e.onResume),onSwipeStart:X(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,u=>{const{x:d,y:p}=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",`${p}px`)}),onSwipeCancel:X(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:X(e.onSwipeEnd,u=>{const{x:d,y:p}=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",`${p}px`),l(!1)})})})});xv.displayName=Li;var[H1,W1]=mv(Li,{onClose(){}}),Q1=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:y,onSwipeEnd:m,...S}=e,h=Ra(Li,n),[w,g]=v.useState(null),f=ve(t,I=>g(I)),x=v.useRef(null),C=v.useRef(null),E=o||h.duration,N=v.useRef(0),b=v.useRef(E),T=v.useRef(0),{onToastAdd:_,onToastRemove:O}=h,$=yt(()=>{var W;(w==null?void 0:w.contains(document.activeElement))&&((W=h.viewport)==null||W.focus()),s()}),M=v.useCallback(I=>{!I||I===1/0||(window.clearTimeout(T.current),N.current=new Date().getTime(),T.current=window.setTimeout($,I))},[$]);v.useEffect(()=>{const I=h.viewport;if(I){const W=()=>{M(b.current),u==null||u()},z=()=>{const U=new Date().getTime()-N.current;b.current=b.current-U,window.clearTimeout(T.current),l==null||l()};return I.addEventListener(Au,z),I.addEventListener(_u,W),()=>{I.removeEventListener(Au,z),I.removeEventListener(_u,W)}}},[h.viewport,E,l,u,M]),v.useEffect(()=>{i&&!h.isClosePausedRef.current&&M(E)},[i,E,h.isClosePausedRef,M]),v.useEffect(()=>(_(),()=>O()),[_,O]);const V=v.useMemo(()=>w?kv(w):null,[w]);return h.viewport?c.jsxs(c.Fragment,{children:[V&&c.jsx(K1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),c.jsx(H1,{scope:n,onClose:$,children:Pr.createPortal(c.jsx(Xc.ItemSlot,{scope:n,children:c.jsx(N1,{asChild:!0,onEscapeKeyDown:X(a,()=>{h.isFocusedToastEscapeKeyDownRef.current||$(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(J.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":h.swipeDirection,...S,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:X(e.onPointerDown,I=>{I.button===0&&(x.current={x:I.clientX,y:I.clientY})}),onPointerMove:X(e.onPointerMove,I=>{if(!x.current)return;const W=I.clientX-x.current.x,z=I.clientY-x.current.y,U=!!C.current,k=["left","right"].includes(h.swipeDirection),R=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,L=k?R(0,W):0,H=k?0:R(0,z),B=I.pointerType==="touch"?10:2,Y={x:L,y:H},Q={originalEvent:I,delta:Y};U?(C.current=Y,is(B1,p,Q,{discrete:!1})):Hf(Y,h.swipeDirection,B)?(C.current=Y,is($1,d,Q,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(W)>B||Math.abs(z)>B)&&(x.current=null)}),onPointerUp:X(e.onPointerUp,I=>{const W=C.current,z=I.target;if(z.hasPointerCapture(I.pointerId)&&z.releasePointerCapture(I.pointerId),C.current=null,x.current=null,W){const U=I.currentTarget,k={originalEvent:I,delta:W};Hf(W,h.swipeDirection,h.swipeThreshold)?is(V1,m,k,{discrete:!0}):is(U1,y,k,{discrete:!0}),U.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),K1=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ra(Li,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return q1(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Yc,{asChild:!0,children:c.jsx(Ta,{...r,children:i&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},G1="ToastTitle",wv=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(J.div,{...r,ref:t})});wv.displayName=G1;var Y1="ToastDescription",Sv=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(J.div,{...r,ref:t})});Sv.displayName=Y1;var Cv="ToastAction",Ev=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(Nv,{altText:n,asChild:!0,children:c.jsx(Zc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Cv}\`. Expected non-empty \`string\`.`),null)});Ev.displayName=Cv;var bv="ToastClose",Zc=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=W1(bv,n);return c.jsx(Nv,{asChild:!0,children:c.jsx(J.button,{type:"button",...r,ref:t,onClick:X(e.onClick,o.onClose)})})});Zc.displayName=bv;var Nv=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(J.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function kv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),X1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...kv(r))}}),t}function is(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uv(o,i):o.dispatchEvent(i)}var Hf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function q1(e=()=>{}){const t=yt(e);Ne(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function X1(e){return e.nodeType===e.ELEMENT_NODE}function Z1(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 Nl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var J1=hv,Pv=gv,Tv=xv,Rv=wv,jv=Sv,Av=Ev,_v=Zc;function Ov(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=Ov(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Iv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ov(e))&&(r&&(r+=" "),r+=t);return r}const Wf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qf=Iv,Jc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const y=Wf(d)||Wf(p);return o[u][y]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,y]=d;return y===void 0||(u[p]=y),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:y,...m}=d;return Object.entries(m).every(S=>{let[h,w]=S;return Array.isArray(w)?w.includes({...i,...a}[h]):{...i,...a}[h]===w})?[...u,p,y]:u},[]);return Qf(e,s,l,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 eS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mv=(...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 tS={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 nS=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...tS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mv("lucide",o),...a},[...s.map(([u,d])=>v.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
* @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 ke=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(nS,{ref:i,iconNode:t,className:Mv(`lucide-${eS(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 rS=ke("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 oS=ke("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]);/**
* @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 iS=ke("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 ed=ke("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 sS=ke("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 aS=ke("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 lS=ke("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
* @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 uS=ke("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
* @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 cS=ke("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 dS=ke("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
* @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 Kf=ke("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 Lv=ke("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @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 fS=ke("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 To=ke("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
* @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 Dv=ke("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 pS=ke("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
* @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 mS=ke("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.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 Fv=ke("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 zv=ke("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 hS=ke("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 vS=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),td="-",gS=e=>{const t=xS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(td);return a[0]===""&&a.length!==1&&a.shift(),$v(a,t)||yS(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},$v=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?$v(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(td);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Gf=/^\[(.+)\]$/,yS=e=>{if(Gf.test(e)){const t=Gf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return SS(Object.entries(e.classGroups),n).forEach(([i,s])=>{Iu(s,r,i,t)}),r},Iu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Yf(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(wS(o)){Iu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Iu(s,Yf(t,i),n,r)})})},Yf=(e,t)=>{let n=e;return t.split(td).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},wS=e=>e.isThemeGetter,SS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,CS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Bv="!",ES=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,d=0,p;for(let w=0;w<a.length;w++){let g=a[w];if(u===0){if(g===o&&(r||a.slice(w,w+i)===t)){l.push(a.slice(d,w)),d=w+i;continue}if(g==="/"){p=w;continue}}g==="["?u++:g==="]"&&u--}const y=l.length===0?a:a.substring(d),m=y.startsWith(Bv),S=m?y.substring(1):y,h=p&&p>d?p-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:S,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},bS=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},NS=e=>({cache:CS(e.cacheSize),parseClassName:ES(e),...gS(e)}),kS=/\s+/,PS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(kS);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:d,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);let S=!!m,h=r(S?y.substring(0,m):y);if(!h){if(!S){a=u+(a.length>0?" "+a:a);continue}if(h=r(y),!h){a=u+(a.length>0?" "+a:a);continue}S=!1}const w=bS(d).join(":"),g=p?w+Bv:w,f=g+h;if(i.includes(f))continue;i.push(f);const x=o(h,S);for(let C=0;C<x.length;++C){const E=x[C];i.push(g+E)}a=u+(a.length>0?" "+a:a)}return a};function TS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Uv(t))&&(r&&(r+=" "),r+=n);return r}const Uv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Uv(e[r]))&&(n&&(n+=" "),n+=t);return n};function RS(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((d,p)=>p(d),e());return n=NS(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=PS(l,n);return o(l,d),d}return function(){return i(TS.apply(null,arguments))}}const de=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vv=/^\[(?:([a-z-]+):)?(.+)\]$/i,jS=/^\d+\/\d+$/,AS=new Set(["px","full","screen"]),_S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OS=/\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$/,IS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,MS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>to(e)||AS.has(e)||jS.test(e),yn=e=>Ro(e,"length",HS),to=e=>!!e&&!Number.isNaN(Number(e)),kl=e=>Ro(e,"number",to),Ho=e=>!!e&&Number.isInteger(Number(e)),DS=e=>e.endsWith("%")&&to(e.slice(0,-1)),q=e=>Vv.test(e),xn=e=>_S.test(e),FS=new Set(["length","size","percentage"]),zS=e=>Ro(e,FS,Hv),$S=e=>Ro(e,"position",Hv),BS=new Set(["image","url"]),US=e=>Ro(e,BS,QS),VS=e=>Ro(e,"",WS),Wo=()=>!0,Ro=(e,t,n)=>{const r=Vv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},HS=e=>OS.test(e)&&!IS.test(e),Hv=()=>!1,WS=e=>MS.test(e),QS=e=>LS.test(e),KS=()=>{const e=de("colors"),t=de("spacing"),n=de("blur"),r=de("brightness"),o=de("borderColor"),i=de("borderRadius"),s=de("borderSpacing"),a=de("borderWidth"),l=de("contrast"),u=de("grayscale"),d=de("hueRotate"),p=de("invert"),y=de("gap"),m=de("gradientColorStops"),S=de("gradientColorStopPositions"),h=de("inset"),w=de("margin"),g=de("opacity"),f=de("padding"),x=de("saturate"),C=de("scale"),E=de("sepia"),N=de("skew"),b=de("space"),T=de("translate"),_=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",q,t],M=()=>[q,t],V=()=>["",Xt,yn],I=()=>["auto",to,q],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",q],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[to,q];return{cacheSize:500,separator:":",theme:{colors:[Wo],spacing:[Xt,yn],blur:["none","",xn,q],brightness:H(),borderColor:[e],borderRadius:["none","","full",xn,q],borderSpacing:M(),borderWidth:V(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[DS,yn],inset:$(),margin:$(),opacity:H(),padding:M(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[xn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:[...W(),q]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ho,q]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ho,q]}],"grid-cols":[{"grid-cols":[Wo]}],"col-start-end":[{col:["auto",{span:["full",Ho,q]},q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Wo]}],"row-start-end":[{row:["auto",{span:[Ho,q]},q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],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":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[xn]},xn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xn,yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",kl]}],"font-family":[{font:[Wo]}],"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",q]}],"line-clamp":[{"line-clamp":["none",to,kl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"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:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,yn]}],"underline-offset":[{"underline-offset":["auto",Xt,q]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],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",q]}],"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:[...W(),$S]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},US]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"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:[...z(),"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:z()}],"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:["",...z()]}],"outline-offset":[{"outline-offset":[Xt,q]}],"outline-w":[{outline:[Xt,yn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Xt,yn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xn,VS]}],"shadow-color":[{shadow:[Wo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xn,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ho,q]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"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",q]}],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",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,yn,kl]}],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"]}}},GS=RS(KS);function ie(...e){return GS(Iv(e))}const YS=J1,Wv=v.forwardRef(({className:e,...t},n)=>c.jsx(Pv,{ref:n,className:ie("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}));Wv.displayName=Pv.displayName;const qS=Jc("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"}}),Qv=v.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Tv,{ref:r,className:ie(qS({variant:t}),e),...n}));Qv.displayName=Tv.displayName;const XS=v.forwardRef(({className:e,...t},n)=>c.jsx(Av,{ref:n,className:ie("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}));XS.displayName=Av.displayName;const Kv=v.forwardRef(({className:e,...t},n)=>c.jsx(_v,{ref:n,className:ie("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:c.jsx(vS,{className:"h-4 w-4"})}));Kv.displayName=_v.displayName;const Gv=v.forwardRef(({className:e,...t},n)=>c.jsx(Rv,{ref:n,className:ie("text-sm font-semibold",e),...t}));Gv.displayName=Rv.displayName;const Yv=v.forwardRef(({className:e,...t},n)=>c.jsx(jv,{ref:n,className:ie("text-sm opacity-90",e),...t}));Yv.displayName=jv.displayName;function ZS(){const{toasts:e}=sv();return c.jsxs(YS,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return c.jsxs(Qv,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Gv,{children:n}),r&&c.jsx(Yv,{children:r})]}),o,c.jsx(Kv,{})]},t)}),c.jsx(Wv,{})]})}var qf=["light","dark"],JS="(prefers-color-scheme: dark)",eC=v.createContext(void 0),tC={setTheme:e=>{},themes:[]},nC=()=>{var e;return(e=v.useContext(eC))!=null?e:tC};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?qf.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=(S,h=!1,w=!0)=>{let g=s?s[S]:S,f=h?S+"|| ''":`'${g}'`,x="";return o&&w&&!h&&qf.includes(S)&&(x+=`d.style.colorScheme = '${S}';`),n==="class"?h||g?x+=`c.add(${f})`:x+="null":g&&(x+=`d[s](n,${f})`),x},m=e?`!function(){${d}${y(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${JS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${y("dark")}}else{${y("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${y(s?"x[e]":"e",!0)}}${u?"":"else{"+y(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${y(s?"x[e]":"e",!0)}}else{${y(i,!1,!1)};}${p}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var rC=e=>{switch(e){case"success":return sC;case"info":return lC;case"warning":return aC;case"error":return uC;default:return null}},oC=Array(12).fill(0),iC=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},oC.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),sC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),aC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.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"})),lC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),uC=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),cC=j.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"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),dC=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Mu=1,fC=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:Mu++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,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,i,s=r.then(async l=>{if(i=["resolve",l],j.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(mC(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.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(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>s.then(()=>i[0]==="reject"?u(i[1]):l(i[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)||Mu++;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}},Ge=new fC,pC=(e,t)=>{let n=(t==null?void 0:t.id)||Mu++;return Ge.addToast({title:e,...t,id:n}),n},mC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hC=pC,vC=()=>Ge.toasts,gC=()=>Ge.getActiveToasts();Object.assign(hC,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:vC,getToasts:gC});function yC(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))}yC(`: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 ss(e){return e.label!==void 0}var xC=3,wC="32px",SC="16px",Xf=4e3,CC=356,EC=14,bC=20,NC=200;function Et(...e){return e.filter(Boolean).join(" ")}function kC(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var PC=e=>{var t,n,r,o,i,s,a,l,u,d,p;let{invert:y,toast:m,unstyled:S,interacting:h,setHeights:w,visibleToasts:g,heights:f,index:x,toasts:C,expanded:E,removeToast:N,defaultRichColors:b,closeButton:T,style:_,cancelButtonStyle:O,actionButtonStyle:$,className:M="",descriptionClassName:V="",duration:I,position:W,gap:z,loadingIcon:U,expandByDefault:k,classNames:R,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:B}=e,[Y,Q]=j.useState(null),[ce,we]=j.useState(null),[D,se]=j.useState(!1),[Se,oe]=j.useState(!1),[ee,ne]=j.useState(!1),[Me,ut]=j.useState(!1),[Jn,pn]=j.useState(!1),[er,Io]=j.useState(0),[Tr,Ed]=j.useState(0),Mo=j.useRef(m.duration||I||Xf),bd=j.useRef(null),tr=j.useRef(null),b0=x===0,N0=x+1<=g,ct=m.type,Rr=m.dismissible!==!1,k0=m.className||"",P0=m.descriptionClassName||"",zi=j.useMemo(()=>f.findIndex(K=>K.toastId===m.id)||0,[f,m.id]),T0=j.useMemo(()=>{var K;return(K=m.closeButton)!=null?K:T},[m.closeButton,T]),Nd=j.useMemo(()=>m.duration||I||Xf,[m.duration,I]),Ga=j.useRef(0),jr=j.useRef(0),kd=j.useRef(0),Ar=j.useRef(null),[R0,j0]=W.split("-"),Pd=j.useMemo(()=>f.reduce((K,le,me)=>me>=zi?K:K+le.height,0),[f,zi]),Td=dC(),A0=m.invert||y,Ya=ct==="loading";jr.current=j.useMemo(()=>zi*z+Pd,[zi,Pd]),j.useEffect(()=>{Mo.current=Nd},[Nd]),j.useEffect(()=>{se(!0)},[]),j.useEffect(()=>{let K=tr.current;if(K){let le=K.getBoundingClientRect().height;return Ed(le),w(me=>[{toastId:m.id,height:le,position:m.position},...me]),()=>w(me=>me.filter(xt=>xt.toastId!==m.id))}},[w,m.id]),j.useLayoutEffect(()=>{if(!D)return;let K=tr.current,le=K.style.height;K.style.height="auto";let me=K.getBoundingClientRect().height;K.style.height=le,Ed(me),w(xt=>xt.find(wt=>wt.toastId===m.id)?xt.map(wt=>wt.toastId===m.id?{...wt,height:me}:wt):[{toastId:m.id,height:me,position:m.position},...xt])},[D,m.title,m.description,w,m.id]);let mn=j.useCallback(()=>{oe(!0),Io(jr.current),w(K=>K.filter(le=>le.toastId!==m.id)),setTimeout(()=>{N(m)},NC)},[m,N,w,jr]);j.useEffect(()=>{if(m.promise&&ct==="loading"||m.duration===1/0||m.type==="loading")return;let K;return E||h||B&&Td?(()=>{if(kd.current<Ga.current){let le=new Date().getTime()-Ga.current;Mo.current=Mo.current-le}kd.current=new Date().getTime()})():Mo.current!==1/0&&(Ga.current=new Date().getTime(),K=setTimeout(()=>{var le;(le=m.onAutoClose)==null||le.call(m,m),mn()},Mo.current)),()=>clearTimeout(K)},[E,h,m,ct,B,Td,mn]),j.useEffect(()=>{m.delete&&mn()},[mn,m.delete]);function _0(){var K,le,me;return L!=null&&L.loading?j.createElement("div",{className:Et(R==null?void 0:R.loader,(K=m==null?void 0:m.classNames)==null?void 0:K.loader,"sonner-loader"),"data-visible":ct==="loading"},L.loading):U?j.createElement("div",{className:Et(R==null?void 0:R.loader,(le=m==null?void 0:m.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":ct==="loading"},U):j.createElement(iC,{className:Et(R==null?void 0:R.loader,(me=m==null?void 0:m.classNames)==null?void 0:me.loader),visible:ct==="loading"})}return j.createElement("li",{tabIndex:0,ref:tr,className:Et(M,k0,R==null?void 0:R.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[ct],(n=m==null?void 0:m.classNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:b,"data-styled":!(m.jsx||m.unstyled||S),"data-mounted":D,"data-promise":!!m.promise,"data-swiped":Jn,"data-removed":Se,"data-visible":N0,"data-y-position":R0,"data-x-position":j0,"data-index":x,"data-front":b0,"data-swiping":ee,"data-dismissible":Rr,"data-type":ct,"data-invert":A0,"data-swipe-out":Me,"data-swipe-direction":ce,"data-expanded":!!(E||k&&D),style:{"--index":x,"--toasts-before":x,"--z-index":C.length-x,"--offset":`${Se?er:jr.current}px`,"--initial-height":k?"auto":`${Tr}px`,..._,...m.style},onDragEnd:()=>{ne(!1),Q(null),Ar.current=null},onPointerDown:K=>{Ya||!Rr||(bd.current=new Date,Io(jr.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(ne(!0),Ar.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,le,me,xt;if(Me||!Rr)return;Ar.current=null;let wt=Number(((K=tr.current)==null?void 0:K.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),hn=Number(((le=tr.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nr=new Date().getTime()-((me=bd.current)==null?void 0:me.getTime()),St=Y==="x"?wt:hn,vn=Math.abs(St)/nr;if(Math.abs(St)>=bC||vn>.11){Io(jr.current),(xt=m.onDismiss)==null||xt.call(m,m),we(Y==="x"?wt>0?"right":"left":hn>0?"down":"up"),mn(),ut(!0),pn(!1);return}ne(!1),Q(null)},onPointerMove:K=>{var le,me,xt,wt;if(!Ar.current||!Rr||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;let hn=K.clientY-Ar.current.y,nr=K.clientX-Ar.current.x,St=(me=e.swipeDirections)!=null?me:kC(W);!Y&&(Math.abs(nr)>1||Math.abs(hn)>1)&&Q(Math.abs(nr)>Math.abs(hn)?"x":"y");let vn={x:0,y:0};Y==="y"?(St.includes("top")||St.includes("bottom"))&&(St.includes("top")&&hn<0||St.includes("bottom")&&hn>0)&&(vn.y=hn):Y==="x"&&(St.includes("left")||St.includes("right"))&&(St.includes("left")&&nr<0||St.includes("right")&&nr>0)&&(vn.x=nr),(Math.abs(vn.x)>0||Math.abs(vn.y)>0)&&pn(!0),(xt=tr.current)==null||xt.style.setProperty("--swipe-amount-x",`${vn.x}px`),(wt=tr.current)==null||wt.style.setProperty("--swipe-amount-y",`${vn.y}px`)}},T0&&!m.jsx?j.createElement("button",{"aria-label":H,"data-disabled":Ya,"data-close-button":!0,onClick:Ya||!Rr?()=>{}:()=>{var K;mn(),(K=m.onDismiss)==null||K.call(m,m)},className:Et(R==null?void 0:R.closeButton,(o=m==null?void 0:m.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:cC):null,m.jsx||v.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:j.createElement(j.Fragment,null,ct||m.icon||m.promise?j.createElement("div",{"data-icon":"",className:Et(R==null?void 0:R.icon,(s=m==null?void 0:m.classNames)==null?void 0:s.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||_0():null,m.type!=="loading"?m.icon||(L==null?void 0:L[ct])||rC(ct):null):null,j.createElement("div",{"data-content":"",className:Et(R==null?void 0:R.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:Et(R==null?void 0:R.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?j.createElement("div",{"data-description":"",className:Et(V,P0,R==null?void 0:R.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),v.isValidElement(m.cancel)?m.cancel:m.cancel&&ss(m.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:K=>{var le,me;ss(m.cancel)&&Rr&&((me=(le=m.cancel).onClick)==null||me.call(le,K),mn())},className:Et(R==null?void 0:R.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,v.isValidElement(m.action)?m.action:m.action&&ss(m.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||$,onClick:K=>{var le,me;ss(m.action)&&((me=(le=m.action).onClick)==null||me.call(le,K),!K.defaultPrevented&&mn())},className:Et(R==null?void 0:R.actionButton,(p=m==null?void 0:m.classNames)==null?void 0:p.actionButton)},m.action.label):null))};function Zf(){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 TC(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",a=i?SC:wC;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var RC=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:y,style:m,visibleToasts:S=xC,toastOptions:h,dir:w=Zf(),gap:g=EC,loadingIcon:f,icons:x,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:E}=e,[N,b]=j.useState([]),T=j.useMemo(()=>Array.from(new Set([r].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,r]),[_,O]=j.useState([]),[$,M]=j.useState(!1),[V,I]=j.useState(!1),[W,z]=j.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=j.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=j.useRef(null),L=j.useRef(!1),H=j.useCallback(B=>{b(Y=>{var Q;return(Q=Y.find(ce=>ce.id===B.id))!=null&&Q.delete||Ge.dismiss(B.id),Y.filter(({id:ce})=>ce!==B.id)})},[]);return j.useEffect(()=>Ge.subscribe(B=>{if(B.dismiss){b(Y=>Y.map(Q=>Q.id===B.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{ov.flushSync(()=>{b(Y=>{let Q=Y.findIndex(ce=>ce.id===B.id);return Q!==-1?[...Y.slice(0,Q),{...Y[Q],...B},...Y.slice(Q+1)]:[B,...Y]})})})}),[]),j.useEffect(()=>{if(d!=="system"){z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Y})=>{z(Y?"dark":"light")})}catch{B.addListener(({matches:Q})=>{try{z(Q?"dark":"light")}catch(ce){console.error(ce)}})}},[d]),j.useEffect(()=>{N.length<=1&&M(!1)},[N]),j.useEffect(()=>{let B=Y=>{var Q,ce;o.every(we=>Y[we]||Y.code===we)&&(M(!0),(Q=U.current)==null||Q.focus()),Y.code==="Escape"&&(document.activeElement===U.current||(ce=U.current)!=null&&ce.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[o]),j.useEffect(()=>{if(U.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[U.current]),j.createElement("section",{ref:t,"aria-label":`${C} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((B,Y)=>{var Q;let[ce,we]=B.split("-");return N.length?j.createElement("ol",{key:B,dir:w==="auto"?Zf():w,tabIndex:-1,ref:U,className:a,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":ce,"data-lifted":$&&N.length>1&&!i,"data-x-position":we,style:{"--front-toast-height":`${((Q=_[0])==null?void 0:Q.height)||0}px`,"--width":`${CC}px`,"--gap":`${g}px`,...m,...TC(l,u)},onBlur:D=>{L.current&&!D.currentTarget.contains(D.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=D.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{V||M(!1)},onDragEnd:()=>M(!1),onPointerDown:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},N.filter(D=>!D.position&&Y===0||D.position===B).map((D,se)=>{var Se,oe;return j.createElement(PC,{key:D.id,icons:x,index:se,toast:D,defaultRichColors:p,duration:(Se=h==null?void 0:h.duration)!=null?Se:y,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:n,visibleToasts:S,closeButton:(oe=h==null?void 0:h.closeButton)!=null?oe:s,interacting:V,position:B,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:H,toasts:N.filter(ee=>ee.position==D.position),heights:_.filter(ee=>ee.position==D.position),setHeights:O,expandByDefault:i,gap:g,loadingIcon:f,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const jC=({...e})=>{const{theme:t="system"}=nC();return c.jsx(RC,{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 AC=rc[" useId ".trim().toString()]||(()=>{}),_C=0;function Di(e){const[t,n]=v.useState(AC());return Ne(()=>{n(r=>r??String(_C++))},[e]),t?`radix-${t}`:""}const OC=["top","right","bottom","left"],Wn=Math.min,nt=Math.max,ta=Math.round,as=Math.floor,Gt=e=>({x:e,y:e}),IC={left:"right",right:"left",bottom:"top",top:"bottom"},MC={start:"end",end:"start"};function Lu(e,t,n){return nt(e,Wn(t,n))}function cn(e,t){return typeof e=="function"?e(t):e}function dn(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}const LC=new Set(["top","bottom"]);function Wt(e){return LC.has(dn(e))?"y":"x"}function od(e){return nd(Wt(e))}function DC(e,t,n){n===void 0&&(n=!1);const r=jo(e),o=od(e),i=rd(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=na(s)),[s,na(s)]}function FC(e){const t=na(e);return[Du(e),t,Du(t)]}function Du(e){return e.replace(/start|end/g,t=>MC[t])}const Jf=["left","right"],ep=["right","left"],zC=["top","bottom"],$C=["bottom","top"];function BC(e,t,n){switch(e){case"top":case"bottom":return n?t?ep:Jf:t?Jf:ep;case"left":case"right":return t?zC:$C;default:return[]}}function UC(e,t,n,r){const o=jo(e);let i=BC(dn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Du)))),i}function na(e){return e.replace(/left|right|bottom|top/g,t=>IC[t])}function VC(e){return{top:0,right:0,bottom:0,left:0,...e}}function qv(e){return typeof e!="number"?VC(e):{top:e,right:e,bottom:e,left:e}}function ra(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 tp(e,t,n){let{reference:r,floating:o}=e;const i=Wt(t),s=od(t),a=rd(s),l=dn(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,y=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(jo(t)){case"start":m[s]-=y*(n&&u?-1:1);break;case"end":m[s]+=y*(n&&u?-1:1);break}return m}const HC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=tp(u,r,l),y=r,m={},S=0;for(let h=0;h<a.length;h++){const{name:w,fn:g}=a[h],{x:f,y:x,data:C,reset:E}=await g({x:d,y:p,initialPlacement:r,placement:y,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=f??d,p=x??p,m={...m,[w]:{...m[w],...C}},E&&S<=50&&(S++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:p}=tp(u,y,l)),h=-1)}return{x:d,y:p,placement:y,strategy:o,middlewareData:m}};async function Ni(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:y=!1,padding:m=0}=cn(t,e),S=qv(m),w=a[y?p==="floating"?"reference":"floating":p],g=ra(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),f=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=ra(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:f,offsetParent:x,strategy:l}):f);return{top:(g.top-E.top+S.top)/C.y,bottom:(E.bottom-g.bottom+S.bottom)/C.y,left:(g.left-E.left+S.left)/C.x,right:(E.right-g.right+S.right)/C.x}}const WC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=cn(e,t)||{};if(u==null)return{};const p=qv(d),y={x:n,y:r},m=od(o),S=rd(m),h=await s.getDimensions(u),w=m==="y",g=w?"top":"left",f=w?"bottom":"right",x=w?"clientHeight":"clientWidth",C=i.reference[S]+i.reference[m]-y[m]-i.floating[S],E=y[m]-i.reference[m],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let b=N?N[x]:0;(!b||!await(s.isElement==null?void 0:s.isElement(N)))&&(b=a.floating[x]||i.floating[S]);const T=C/2-E/2,_=b/2-h[S]/2-1,O=Wn(p[g],_),$=Wn(p[f],_),M=O,V=b-h[S]-$,I=b/2-h[S]/2+T,W=Lu(M,I,V),z=!l.arrow&&jo(o)!=null&&I!==W&&i.reference[S]/2-(I<M?O:$)-h[S]/2<0,U=z?I<M?I-M:I-V:0;return{[m]:y[m]+U,data:{[m]:W,centerOffset:I-W-U,...z&&{alignmentOffset:U}},reset:z}}}),QC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:h=!0,...w}=cn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=dn(o),f=Wt(a),x=dn(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=y||(x||!h?[na(a)]:FC(a)),N=S!=="none";!y&&N&&E.push(...UC(a,h,S,C));const b=[a,...E],T=await Ni(t,w),_=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&_.push(T[g]),p){const I=DC(o,s,C);_.push(T[I[0]],T[I[1]])}if(O=[...O,{placement:o,overflows:_}],!_.every(I=>I<=0)){var $,M;const I=((($=i.flip)==null?void 0:$.index)||0)+1,W=b[I];if(W&&(!(p==="alignment"?f!==Wt(W):!1)||O.every(k=>k.overflows[0]>0&&Wt(k.placement)===f)))return{data:{index:I,overflows:O},reset:{placement:W}};let z=(M=O.filter(U=>U.overflows[0]<=0).sort((U,k)=>U.overflows[1]-k.overflows[1])[0])==null?void 0:M.placement;if(!z)switch(m){case"bestFit":{var V;const U=(V=O.filter(k=>{if(N){const R=Wt(k.placement);return R===f||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:V[0];U&&(z=U);break}case"initialPlacement":z=a;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rp(e){return OC.some(t=>e[t]>=0)}const KC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=cn(e,t);switch(r){case"referenceHidden":{const i=await Ni(t,{...o,elementContext:"reference"}),s=np(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:rp(s)}}}case"escaped":{const i=await Ni(t,{...o,altBoundary:!0}),s=np(i,n.floating);return{data:{escapedOffsets:s,escaped:rp(s)}}}default:return{}}}}},Xv=new Set(["left","top"]);async function GC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=dn(n),a=jo(n),l=Wt(n)==="y",u=Xv.has(s)?-1:1,d=i&&l?-1:1,p=cn(t,e);let{mainAxis:y,crossAxis:m,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof S=="number"&&(m=a==="end"?S*-1:S),l?{x:m*d,y:y*u}:{x:y*u,y:m*d}}const YC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await GC(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},qC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:g,y:f}=w;return{x:g,y:f}}},...l}=cn(e,t),u={x:n,y:r},d=await Ni(t,l),p=Wt(dn(o)),y=nd(p);let m=u[y],S=u[p];if(i){const w=y==="y"?"top":"left",g=y==="y"?"bottom":"right",f=m+d[w],x=m-d[g];m=Lu(f,m,x)}if(s){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",f=S+d[w],x=S-d[g];S=Lu(f,S,x)}const h=a.fn({...t,[y]:m,[p]:S});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[y]:i,[p]:s}}}}}},XC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=cn(e,t),d={x:n,y:r},p=Wt(o),y=nd(p);let m=d[y],S=d[p];const h=cn(a,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=y==="y"?"height":"width",C=i.reference[y]-i.floating[x]+w.mainAxis,E=i.reference[y]+i.reference[x]-w.mainAxis;m<C?m=C:m>E&&(m=E)}if(u){var g,f;const x=y==="y"?"width":"height",C=Xv.has(dn(o)),E=i.reference[p]-i.floating[x]+(C&&((g=s.offset)==null?void 0:g[p])||0)+(C?0:w.crossAxis),N=i.reference[p]+i.reference[x]+(C?0:((f=s.offset)==null?void 0:f[p])||0)-(C?w.crossAxis:0);S<E?S=E:S>N&&(S=N)}return{[y]:m,[p]:S}}}},ZC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=cn(e,t),d=await Ni(t,u),p=dn(o),y=jo(o),m=Wt(o)==="y",{width:S,height:h}=i.floating;let w,g;p==="top"||p==="bottom"?(w=p,g=y===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(g=p,w=y==="end"?"top":"bottom");const f=h-d.top-d.bottom,x=S-d.left-d.right,C=Wn(h-d[w],f),E=Wn(S-d[g],x),N=!t.middlewareData.shift;let b=C,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=f),N&&!y){const O=nt(d.left,0),$=nt(d.right,0),M=nt(d.top,0),V=nt(d.bottom,0);m?T=S-2*(O!==0||$!==0?O+$:nt(d.left,d.right)):b=h-2*(M!==0||V!==0?M+V:nt(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:b});const _=await s.getDimensions(a.floating);return S!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function ja(){return typeof window<"u"}function Ao(e){return Zv(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qt(e){var t;return(t=(Zv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zv(e){return ja()?e instanceof Node||e instanceof it(e).Node:!1}function Mt(e){return ja()?e instanceof Element||e instanceof it(e).Element:!1}function Yt(e){return ja()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function op(e){return!ja()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}const JC=new Set(["inline","contents"]);function Fi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!JC.has(o)}const eE=new Set(["table","td","th"]);function tE(e){return eE.has(Ao(e))}const nE=[":popover-open",":modal"];function Aa(e){return nE.some(t=>{try{return e.matches(t)}catch{return!1}})}const rE=["transform","translate","scale","rotate","perspective"],oE=["transform","translate","scale","rotate","perspective","filter"],iE=["paint","layout","strict","content"];function id(e){const t=sd(),n=Mt(e)?Lt(e):e;return rE.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)||oE.some(r=>(n.willChange||"").includes(r))||iE.some(r=>(n.contain||"").includes(r))}function sE(e){let t=Qn(e);for(;Yt(t)&&!Co(t);){if(id(t))return t;if(Aa(t))return null;t=Qn(t)}return null}function sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aE=new Set(["html","body","#document"]);function Co(e){return aE.has(Ao(e))}function Lt(e){return it(e).getComputedStyle(e)}function _a(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||op(e)&&e.host||qt(e);return op(t)?t.host:t}function Jv(e){const t=Qn(e);return Co(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Fi(t)?t:Jv(t)}function ki(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=it(o);if(i){const a=Fu(s);return t.concat(s,s.visualViewport||[],Fi(o)?o:[],a&&n?ki(a):[])}return t.concat(o,ki(o,[],n))}function Fu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eg(e){const t=Lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ta(n)!==i||ta(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ad(e){return Mt(e)?e:e.contextElement}function no(e){const t=ad(e);if(!Yt(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eg(t);let s=(i?ta(n.width):n.width)/r,a=(i?ta(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const lE=Gt(0);function tg(e){const t=it(e);return!sd()||!t.visualViewport?lE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function Sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ad(e);let s=Gt(1);t&&(r?Mt(r)&&(s=no(r)):s=no(e));const a=uE(i,n,r)?tg(i):Gt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const y=it(i),m=r&&Mt(r)?it(r):r;let S=y,h=Fu(S);for(;h&&r&&m!==S;){const w=no(h),g=h.getBoundingClientRect(),f=Lt(h),x=g.left+(h.clientLeft+parseFloat(f.paddingLeft))*w.x,C=g.top+(h.clientTop+parseFloat(f.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,p*=w.y,l+=x,u+=C,S=it(h),h=Fu(S)}}return ra({width:d,height:p,x:l,y:u})}function ld(e,t){const n=_a(e).scrollLeft;return t?t.left+n:Sr(qt(e)).left+n}function ng(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ld(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function cE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=qt(r),a=t?Aa(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Gt(1);const d=Gt(0),p=Yt(r);if((p||!p&&!i)&&((Ao(r)!=="body"||Fi(s))&&(l=_a(r)),Yt(r))){const m=Sr(r);u=no(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const y=s&&!p&&!i?ng(s,l,!0):Gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+y.x,y:n.y*u.y-l.scrollTop*u.y+d.y+y.y}}function dE(e){return Array.from(e.getClientRects())}function fE(e){const t=qt(e),n=_a(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ld(e);const a=-n.scrollTop;return Lt(r).direction==="rtl"&&(s+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function pE(e,t){const n=it(e),r=qt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=sd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const mE=new Set(["absolute","fixed"]);function hE(e,t){const n=Sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yt(e)?no(e):Gt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function ip(e,t,n){let r;if(t==="viewport")r=pE(e,n);else if(t==="document")r=fE(qt(e));else if(Mt(t))r=hE(t,n);else{const o=tg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ra(r)}function rg(e,t){const n=Qn(e);return n===t||!Mt(n)||Co(n)?!1:Lt(n).position==="fixed"||rg(n,t)}function vE(e,t){const n=t.get(e);if(n)return n;let r=ki(e,[],!1).filter(a=>Mt(a)&&Ao(a)!=="body"),o=null;const i=Lt(e).position==="fixed";let s=i?Qn(e):e;for(;Mt(s)&&!Co(s);){const a=Lt(s),l=id(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&mE.has(o.position)||Fi(s)&&!l&&rg(e,s))?r=r.filter(d=>d!==s):o=a,s=Qn(s)}return t.set(e,r),r}function gE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Aa(t)?[]:vE(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const p=ip(t,d,o);return u.top=nt(p.top,u.top),u.right=Wn(p.right,u.right),u.bottom=Wn(p.bottom,u.bottom),u.left=nt(p.left,u.left),u},ip(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yE(e){const{width:t,height:n}=eg(e);return{width:t,height:n}}function xE(e,t,n){const r=Yt(t),o=qt(t),i=n==="fixed",s=Sr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Gt(0);function u(){l.x=ld(o)}if(r||!r&&!i)if((Ao(t)!=="body"||Fi(o))&&(a=_a(t)),r){const m=Sr(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?ng(o,a):Gt(0),p=s.left+a.scrollLeft-l.x-d.x,y=s.top+a.scrollTop-l.y-d.y;return{x:p,y,width:s.width,height:s.height}}function Pl(e){return Lt(e).position==="static"}function sp(e,t){if(!Yt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qt(e)===n&&(n=n.ownerDocument.body),n}function og(e,t){const n=it(e);if(Aa(e))return n;if(!Yt(e)){let o=Qn(e);for(;o&&!Co(o);){if(Mt(o)&&!Pl(o))return o;o=Qn(o)}return n}let r=sp(e,t);for(;r&&tE(r)&&Pl(r);)r=sp(r,t);return r&&Co(r)&&Pl(r)&&!id(r)?n:r||sE(e)||n}const wE=async function(e){const t=this.getOffsetParent||og,n=this.getDimensions,r=await n(e.floating);return{reference:xE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function SE(e){return Lt(e).direction==="rtl"}const CE={convertOffsetParentRelativeRectToViewportRelativeRect:cE,getDocumentElement:qt,getClippingRect:gE,getOffsetParent:og,getElementRects:wE,getClientRects:dE,getDimensions:yE,getScale:no,isElement:Mt,isRTL:SE};function ig(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function EE(e,t){let n=null,r;const o=qt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:y,height:m}=u;if(a||t(),!y||!m)return;const S=as(p),h=as(o.clientWidth-(d+y)),w=as(o.clientHeight-(p+m)),g=as(d),x={rootMargin:-S+"px "+-h+"px "+-w+"px "+-g+"px",threshold:nt(0,Wn(1,l))||1};let C=!0;function E(N){const b=N[0].intersectionRatio;if(b!==l){if(!C)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!ig(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function bE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ad(e),d=o||i?[...u?ki(u):[],...ki(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const p=u&&a?EE(u,n):null;let y=-1,m=null;s&&(m=new ResizeObserver(g=>{let[f]=g;f&&f.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let S,h=l?Sr(e):null;l&&w();function w(){const g=Sr(e);h&&!ig(h,g)&&n(),h=g,S=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(f=>{o&&f.removeEventListener("scroll",n),i&&f.removeEventListener("resize",n)}),p==null||p(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(S)}}const NE=YC,kE=qC,PE=QC,TE=ZC,RE=KC,ap=WC,jE=XC,AE=(e,t,n)=>{const r=new Map,o={platform:CE,...n},i={...o.platform,_c:r};return HC(e,t,{...o,platform:i})};var _E=typeof document<"u",OE=function(){},Ps=_E?v.useLayoutEffect:OE;function oa(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(!oa(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!oa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function sg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lp(e,t){const n=sg(e);return Math.round(t*n)/n}function Tl(e){const t=v.useRef(e);return Ps(()=>{t.current=e}),t}function IE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,m]=v.useState(r);oa(y,r)||m(r);const[S,h]=v.useState(null),[w,g]=v.useState(null),f=v.useCallback(k=>{k!==N.current&&(N.current=k,h(k))},[]),x=v.useCallback(k=>{k!==b.current&&(b.current=k,g(k))},[]),C=i||S,E=s||w,N=v.useRef(null),b=v.useRef(null),T=v.useRef(d),_=l!=null,O=Tl(l),$=Tl(o),M=Tl(u),V=v.useCallback(()=>{if(!N.current||!b.current)return;const k={placement:t,strategy:n,middleware:y};$.current&&(k.platform=$.current),AE(N.current,b.current,k).then(R=>{const L={...R,isPositioned:M.current!==!1};I.current&&!oa(T.current,L)&&(T.current=L,Pr.flushSync(()=>{p(L)}))})},[y,t,n,$,M]);Ps(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const I=v.useRef(!1);Ps(()=>(I.current=!0,()=>{I.current=!1}),[]),Ps(()=>{if(C&&(N.current=C),E&&(b.current=E),C&&E){if(O.current)return O.current(C,E,V);V()}},[C,E,V,O,_]);const W=v.useMemo(()=>({reference:N,floating:b,setReference:f,setFloating:x}),[f,x]),z=v.useMemo(()=>({reference:C,floating:E}),[C,E]),U=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!z.floating)return k;const R=lp(z.floating,d.x),L=lp(z.floating,d.y);return a?{...k,transform:"translate("+R+"px, "+L+"px)",...sg(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,a,z.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:V,refs:W,elements:z,floatingStyles:U}),[d,V,W,z,U])}const ME=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?ap({element:r.current,padding:o}).fn(n):{}:r?ap({element:r,padding:o}).fn(n):{}}}},LE=(e,t)=>({...NE(e),options:[e,t]}),DE=(e,t)=>({...kE(e),options:[e,t]}),FE=(e,t)=>({...jE(e),options:[e,t]}),zE=(e,t)=>({...PE(e),options:[e,t]}),$E=(e,t)=>({...TE(e),options:[e,t]}),BE=(e,t)=>({...RE(e),options:[e,t]}),UE=(e,t)=>({...ME(e),options:[e,t]});var VE="Arrow",ag=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(J.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});ag.displayName=VE;var HE=ag;function WE(e){const[t,n]=v.useState(void 0);return Ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ud="Popper",[lg,Oa]=qn(ud),[QE,ug]=lg(ud),cg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return c.jsx(QE,{scope:t,anchor:r,onAnchorChange:o,children:n})};cg.displayName=ud;var dg="PopperAnchor",fg=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ug(dg,n),s=v.useRef(null),a=ve(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(J.div,{...o,ref:a})});fg.displayName=dg;var cd="PopperContent",[KE,GE]=lg(cd),pg=v.forwardRef((e,t)=>{var D,se,Se,oe,ee,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:m="optimized",onPlaced:S,...h}=e,w=ug(cd,n),[g,f]=v.useState(null),x=ve(t,Me=>f(Me)),[C,E]=v.useState(null),N=WE(C),b=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,_=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],M=$.length>0,V={padding:O,boundary:$.filter(qE),altBoundary:M},{refs:I,floatingStyles:W,placement:z,isPositioned:U,middlewareData:k}=IE({strategy:"fixed",placement:_,whileElementsMounted:(...Me)=>bE(...Me,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[LE({mainAxis:o+T,alignmentAxis:s}),l&&DE({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?FE():void 0,...V}),l&&zE({...V}),$E({...V,apply:({elements:Me,rects:ut,availableWidth:Jn,availableHeight:pn})=>{const{width:er,height:Io}=ut.reference,Tr=Me.floating.style;Tr.setProperty("--radix-popper-available-width",`${Jn}px`),Tr.setProperty("--radix-popper-available-height",`${pn}px`),Tr.setProperty("--radix-popper-anchor-width",`${er}px`),Tr.setProperty("--radix-popper-anchor-height",`${Io}px`)}}),C&&UE({element:C,padding:a}),XE({arrowWidth:b,arrowHeight:T}),y&&BE({strategy:"referenceHidden",...V})]}),[R,L]=vg(z),H=yt(S);Ne(()=>{U&&(H==null||H())},[U,H]);const B=(D=k.arrow)==null?void 0:D.x,Y=(se=k.arrow)==null?void 0:se.y,Q=((Se=k.arrow)==null?void 0:Se.centerOffset)!==0,[ce,we]=v.useState();return Ne(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),c.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(oe=k.transformOrigin)==null?void 0:oe.x,(ee=k.transformOrigin)==null?void 0:ee.y].join(" "),...((ne=k.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(KE,{scope:n,placedSide:R,onArrowChange:E,arrowX:B,arrowY:Y,shouldHideArrow:Q,children:c.jsx(J.div,{"data-side":R,"data-align":L,...h,ref:x,style:{...h.style,animation:U?void 0:"none"}})})})});pg.displayName=cd;var mg="PopperArrow",YE={top:"bottom",right:"left",bottom:"top",left:"right"},hg=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=GE(mg,r),s=YE[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(HE,{...o,ref:n,style:{...o.style,display:"block"}})})});hg.displayName=mg;function qE(e){return e!==null}var XE=e=>({name:"transformOrigin",options:e,fn(t){var w,g,f;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=vg(n),p={start:"0%",center:"50%",end:"100%"}[d],y=(((g=o.arrow)==null?void 0:g.x)??0)+a/2,m=(((f=o.arrow)==null?void 0:f.y)??0)+l/2;let S="",h="";return u==="bottom"?(S=s?p:`${y}px`,h=`${-l}px`):u==="top"?(S=s?p:`${y}px`,h=`${r.floating.height+l}px`):u==="right"?(S=`${-l}px`,h=s?p:`${m}px`):u==="left"&&(S=`${r.floating.width+l}px`,h=s?p:`${m}px`),{data:{x:S,y:h}}}});function vg(e){const[t,n="center"]=e.split("-");return[t,n]}var ZE=cg,gg=fg,yg=pg,xg=hg,[Ia,cP]=qn("Tooltip",[Oa]),dd=Oa(),wg="TooltipProvider",JE=700,up="tooltip.open",[eb,Sg]=Ia(wg),Cg=e=>{const{__scopeTooltip:t,delayDuration:n=JE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(eb,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};Cg.displayName=wg;var Eg="Tooltip",[dP,Ma]=Ia(Eg),zu="TooltipTrigger",tb=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ma(zu,n),i=Sg(zu,n),s=dd(n),a=v.useRef(null),l=ve(t,a,o.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),p=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(gg,{asChild:!0,...s,children:c.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:X(e.onPointerMove,y=>{y.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});tb.displayName=zu;var nb="TooltipPortal",[fP,rb]=Ia(nb,{forceMount:void 0}),Eo="TooltipContent",bg=v.forwardRef((e,t)=>{const n=rb(Eo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Ma(Eo,e.__scopeTooltip);return c.jsx(Pa,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ng,{side:o,...i,ref:t}):c.jsx(ob,{side:o,...i,ref:t})})}),ob=v.forwardRef((e,t)=>{const n=Ma(Eo,e.__scopeTooltip),r=Sg(Eo,e.__scopeTooltip),o=v.useRef(null),i=ve(t,o),[s,a]=v.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,y=v.useCallback(()=>{a(null),p(!1)},[p]),m=v.useCallback((S,h)=>{const w=S.currentTarget,g={x:S.clientX,y:S.clientY},f=ub(g,w.getBoundingClientRect()),x=cb(g,f),C=db(h.getBoundingClientRect()),E=pb([...x,...C]);a(E),p(!0)},[p]);return v.useEffect(()=>()=>y(),[y]),v.useEffect(()=>{if(l&&d){const S=w=>m(w,d),h=w=>m(w,l);return l.addEventListener("pointerleave",S),d.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",h)}}},[l,d,m,y]),v.useEffect(()=>{if(s){const S=h=>{const w=h.target,g={x:h.clientX,y:h.clientY},f=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),x=!fb(g,s);f?y():x&&(y(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[l,d,s,u,y]),c.jsx(Ng,{...e,ref:i})}),[ib,sb]=Ia(Eg,{isInside:!1}),ab=p1("TooltipContent"),Ng=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Ma(Eo,n),u=dd(n),{onClose:d}=l;return v.useEffect(()=>(document.addEventListener(up,d),()=>document.removeEventListener(up,d)),[d]),v.useEffect(()=>{if(l.trigger){const p=y=>{const m=y.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),c.jsx(ka,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(yg,{"data-state":l.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:[c.jsx(ab,{children:r}),c.jsx(ib,{scope:n,isInside:!0,children:c.jsx(M1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});bg.displayName=Eo;var kg="TooltipArrow",lb=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=dd(n);return sb(kg,n).isInside?null:c.jsx(xg,{...o,...r,ref:t})});lb.displayName=kg;function ub(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cb(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 db(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 fb(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],u=a.x,d=a.y,p=l.x,y=l.y;d>r!=y>r&&n<(p-u)*(r-d)/(y-d)+u&&(o=!o)}return o}function pb(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),mb(t)}function mb(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 i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 hb=Cg,Pg=bg;const vb=hb,gb=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Pg,{ref:r,sideOffset:t,className:ie("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}));gb.displayName=Pg.displayName;var La=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(){}},Da=typeof window>"u"||"Deno"in globalThis;function Pt(){}function yb(e,t){return typeof e=="function"?e(t):e}function xb(e){return typeof e=="number"&&e>=0&&e!==1/0}function wb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $u(e,t){return typeof e=="function"?e(t):e}function Sb(e,t){return typeof e=="function"?e(t):e}function cp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==fd(s,t.options))return!1}else if(!Ti(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function dp(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pi(t.options.mutationKey)!==Pi(i))return!1}else if(!Ti(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pi)(e)}function Pi(e){return JSON.stringify(e,(t,n)=>Bu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ti(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ti(e[n],t[n])):!1}function Tg(e,t){if(e===t)return e;const n=fp(e)&&fp(t);if(n||Bu(e)&&Bu(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<s;d++){const p=n?d:i[d];(!n&&l.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(a[p]=void 0,u++):(a[p]=Tg(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&u++)}return o===s&&u===o?e:a}return t}function fp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bu(e){if(!pp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Cb(e){return new Promise(t=>{setTimeout(t,e)})}function Eb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tg(e,t):t}function bb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var pd=Symbol();function Rg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===pd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var lr,kn,io,Dp,kb=(Dp=class extends La{constructor(){super();re(this,lr);re(this,kn);re(this,io);G(this,io,t=>{if(!Da&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,kn)||this.setEventListener(P(this,io))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,kn))==null||t.call(this),G(this,kn,void 0))}setEventListener(t){var n;G(this,io,t),(n=P(this,kn))==null||n.call(this),G(this,kn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,lr)!==t&&(G(this,lr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,lr)=="boolean"?P(this,lr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},lr=new WeakMap,kn=new WeakMap,io=new WeakMap,Dp),jg=new kb,so,Pn,ao,Fp,Pb=(Fp=class extends La{constructor(){super();re(this,so,!0);re(this,Pn);re(this,ao);G(this,ao,t=>{if(!Da&&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,Pn)||this.setEventListener(P(this,ao))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Pn))==null||t.call(this),G(this,Pn,void 0))}setEventListener(t){var n;G(this,ao,t),(n=P(this,Pn))==null||n.call(this),G(this,Pn,t(this.setOnline.bind(this)))}setOnline(t){P(this,so)!==t&&(G(this,so,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,so)}},so=new WeakMap,Pn=new WeakMap,ao=new WeakMap,Fp),ia=new Pb;function Tb(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});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 Rb(e){return Math.min(1e3*2**e,3e4)}function Ag(e){return(e??"online")==="online"?ia.isOnline():!0}var _g=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Rl(e){return e instanceof _g}function Og(e){let t=!1,n=0,r=!1,o;const i=Tb(),s=h=>{var w;r||(y(new _g(h)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>jg.isFocused()&&(e.networkMode==="always"||ia.isOnline())&&e.canRun(),d=()=>Ag(e.networkMode)&&e.canRun(),p=h=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,h),o==null||o(),i.resolve(h))},y=h=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,h),o==null||o(),i.reject(h))},m=()=>new Promise(h=>{var w;o=g=>{(r||u())&&h(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var h;o=void 0,r||(h=e.onContinue)==null||h.call(e)}),S=()=>{if(r)return;let h;const w=n===0?e.initialPromise:void 0;try{h=w??e.fn()}catch(g){h=Promise.reject(g)}Promise.resolve(h).then(p).catch(g=>{var N;if(r)return;const f=e.retry??(Da?0:3),x=e.retryDelay??Rb,C=typeof x=="function"?x(n,g):x,E=f===!0||typeof f=="number"&&n<f||typeof f=="function"&&f(n,g);if(t||!E){y(g);return}n++,(N=e.onFail)==null||N.call(e,n,g),Cb(C).then(()=>u()?void 0:m()).then(()=>{t?y(g):S()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?S():m().then(S),i)}}var jb=e=>setTimeout(e,0);function Ab(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=jb;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var He=Ab(),ur,zp,Ig=(zp=class{constructor(){re(this,ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xb(this.gcTime)&&G(this,ur,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Da?1/0:5*60*1e3))}clearGcTimeout(){P(this,ur)&&(clearTimeout(P(this,ur)),G(this,ur,void 0))}},ur=new WeakMap,zp),lo,cr,dt,dr,ze,Ri,fr,Tt,Zt,$p,_b=($p=class extends Ig{constructor(t){super();re(this,Tt);re(this,lo);re(this,cr);re(this,dt);re(this,dr);re(this,ze);re(this,Ri);re(this,fr);G(this,fr,!1),G(this,Ri,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,dr,t.client),G(this,dt,P(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,lo,Ib(this.options)),this.state=t.state??P(this,lo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Ri),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,dt).remove(this)}setData(t,n){const r=Eb(this.state.data,t,this.options);return Le(this,Tt,Zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,Tt,Zt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,ze))==null?void 0:r.promise;return(o=P(this,ze))==null||o.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,lo))}isActive(){return this.observers.some(t=>Sb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>$u(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:!wb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,dt).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,ze)&&(P(this,fr)?P(this,ze).cancel({revert:!0}):P(this,ze).cancelRetry()),this.scheduleGc()),P(this,dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Tt,Zt).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,ze))return P(this,ze).continueRetry(),P(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(G(this,fr,!0),r.signal)})},i=()=>{const y=Rg(this.options,n),S=(()=>{const h={client:P(this,dr),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return G(this,fr,!1),this.options.persister?this.options.persister(y,S,this):y(S)},a=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,dr),state:this.state,fetchFn:i};return o(y),y})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Le(this,Tt,Zt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=y=>{var m,S,h,w;Rl(y)&&y.silent||Le(this,Tt,Zt).call(this,{type:"error",error:y}),Rl(y)||((S=(m=P(this,dt).config).onError)==null||S.call(m,y,this),(w=(h=P(this,dt).config).onSettled)==null||w.call(h,this.state.data,y,this)),this.scheduleGc()};return G(this,ze,Og({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:y=>{var m,S,h,w;if(y===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(g){l(g);return}(S=(m=P(this,dt).config).onSuccess)==null||S.call(m,y,this),(w=(h=P(this,dt).config).onSettled)==null||w.call(h,y,this.state.error,this),this.scheduleGc()},onError:l,onFail:(y,m)=>{Le(this,Tt,Zt).call(this,{type:"failed",failureCount:y,error:m})},onPause:()=>{Le(this,Tt,Zt).call(this,{type:"pause"})},onContinue:()=>{Le(this,Tt,Zt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,ze).start()}},lo=new WeakMap,cr=new WeakMap,dt=new WeakMap,dr=new WeakMap,ze=new WeakMap,Ri=new WeakMap,fr=new WeakMap,Tt=new WeakSet,Zt=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,...Ob(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,cr,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 Rl(o)&&o.revert&&P(this,cr)?{...P(this,cr),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),He.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,dt).notify({query:this,type:"updated",action:t})})},$p);function Ob(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ag(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ib(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 $t,Bp,Mb=(Bp=class extends La{constructor(t={}){super();re(this,$t);this.config=t,G(this,$t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??fd(o,n);let s=this.get(i);return s||(s=new _b({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,$t).has(t.queryHash)||(P(this,$t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,$t).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,$t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,$t).get(t)}getAll(){return[...P(this,$t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>cp(t,r)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$t=new WeakMap,Bp),Bt,Ue,pr,Ut,wn,Up,Lb=(Up=class extends Ig{constructor(t){super();re(this,Ut);re(this,Bt);re(this,Ue);re(this,pr);this.mutationId=t.mutationId,G(this,Ue,t.mutationCache),G(this,Bt,[]),this.state=t.state||Db(),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,Bt).includes(t)||(P(this,Bt).push(t),this.clearGcTimeout(),P(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Bt,P(this,Bt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Bt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ue).remove(this))}continue(){var t;return((t=P(this,pr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,d,p,y,m,S,h,w,g,f,x,C,E,N,b,T;const n=()=>{Le(this,Ut,wn).call(this,{type:"continue"})};G(this,pr,Og({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,O)=>{Le(this,Ut,wn).call(this,{type:"failed",failureCount:_,error:O})},onPause:()=>{Le(this,Ut,wn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ue).canRun(this)}));const r=this.state.status==="pending",o=!P(this,pr).canStart();try{if(r)n();else{Le(this,Ut,wn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=P(this,Ue).config).onMutate)==null?void 0:s.call(i,t,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));O!==this.state.context&&Le(this,Ut,wn).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const _=await P(this,pr).start();return await((d=(u=P(this,Ue).config).onSuccess)==null?void 0:d.call(u,_,t,this.state.context,this)),await((y=(p=this.options).onSuccess)==null?void 0:y.call(p,_,t,this.state.context)),await((S=(m=P(this,Ue).config).onSettled)==null?void 0:S.call(m,_,null,this.state.variables,this.state.context,this)),await((w=(h=this.options).onSettled)==null?void 0:w.call(h,_,null,t,this.state.context)),Le(this,Ut,wn).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(g=P(this,Ue).config).onError)==null?void 0:f.call(g,_,t,this.state.context,this)),await((C=(x=this.options).onError)==null?void 0:C.call(x,_,t,this.state.context)),await((N=(E=P(this,Ue).config).onSettled)==null?void 0:N.call(E,void 0,_,this.state.variables,this.state.context,this)),await((T=(b=this.options).onSettled)==null?void 0:T.call(b,void 0,_,t,this.state.context)),_}finally{Le(this,Ut,wn).call(this,{type:"error",error:_})}}finally{P(this,Ue).runNext(this)}}},Bt=new WeakMap,Ue=new WeakMap,pr=new WeakMap,Ut=new WeakSet,wn=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),He.batch(()=>{P(this,Bt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ue).notify({mutation:this,type:"updated",action:t})})},Up);function Db(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tn,Rt,ji,Vp,Fb=(Vp=class extends La{constructor(t={}){super();re(this,tn);re(this,Rt);re(this,ji);this.config=t,G(this,tn,new Set),G(this,Rt,new Map),G(this,ji,0)}build(t,n,r){const o=new Lb({mutationCache:this,mutationId:++$i(this,ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,tn).add(t);const n=ls(t);if(typeof n=="string"){const r=P(this,Rt).get(n);r?r.push(t):P(this,Rt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,tn).delete(t)){const n=ls(t);if(typeof n=="string"){const r=P(this,Rt).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,Rt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ls(t);if(typeof n=="string"){const r=P(this,Rt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ls(t);if(typeof n=="string"){const o=(r=P(this,Rt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{P(this,tn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,tn).clear(),P(this,Rt).clear()})}getAll(){return Array.from(P(this,tn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dp(n,r))}findAll(t={}){return this.getAll().filter(n=>dp(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pt))))}},tn=new WeakMap,Rt=new WeakMap,ji=new WeakMap,Vp);function ls(e){var t;return(t=e.options.scope)==null?void 0:t.id}function mp(e){return{onFetch:(t,n)=>{var d,p,y,m,S;const r=t.options,o=(y=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let h=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},g=Rg(t.options,t.fetchOptions),f=async(x,C,E)=>{if(h)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const b=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};return w($),$})(),T=await g(b),{maxPages:_}=t.options,O=E?Nb:bb;return{pages:O(x.pages,T,_),pageParams:O(x.pageParams,C,_)}};if(o&&i.length){const x=o==="backward",C=x?zb:hp,E={pages:i,pageParams:s},N=C(r,E);a=await f(E,N,x)}else{const x=e??i.length;do{const C=l===0?s[0]??r.initialPageParam:hp(r,a);if(l>0&&C==null)break;a=await f(a,C),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var h,w;return(w=(h=t.options).persister)==null?void 0:w.call(h,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function hp(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 zb(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 Ce,Tn,Rn,uo,co,jn,fo,po,Hp,$b=(Hp=class{constructor(e={}){re(this,Ce);re(this,Tn);re(this,Rn);re(this,uo);re(this,co);re(this,jn);re(this,fo);re(this,po);G(this,Ce,e.queryCache||new Mb),G(this,Tn,e.mutationCache||new Fb),G(this,Rn,e.defaultOptions||{}),G(this,uo,new Map),G(this,co,new Map),G(this,jn,0)}mount(){$i(this,jn)._++,P(this,jn)===1&&(G(this,fo,jg.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ce).onFocus())})),G(this,po,ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,Ce).onOnline())})))}unmount(){var e,t;$i(this,jn)._--,P(this,jn)===0&&((e=P(this,fo))==null||e.call(this),G(this,fo,void 0),(t=P(this,po))==null||t.call(this),G(this,po,void 0))}isFetching(e){return P(this,Ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Tn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,Ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,Ce).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime($u(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,Ce).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,Ce).get(r.queryHash),i=o==null?void 0:o.state.data,s=yb(t,i);if(s!==void 0)return P(this,Ce).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>P(this,Ce).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,Ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,Ce);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Ce);return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=He.batch(()=>P(this,Ce).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Pt).catch(Pt)}invalidateQueries(e,t={}){return He.batch(()=>(P(this,Ce).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=He.batch(()=>P(this,Ce).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,Ce).build(this,t);return n.isStaleByTime($u(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=mp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=mp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ia.isOnline()?P(this,Tn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,Ce)}getMutationCache(){return P(this,Tn)}getDefaultOptions(){return P(this,Rn)}setDefaultOptions(e){G(this,Rn,e)}setQueryDefaults(e,t){P(this,uo).set(Pi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,uo).values()],n={};return t.forEach(r=>{Ti(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,co).set(Pi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,co).values()],n={};return t.forEach(r=>{Ti(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,Rn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fd(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===pd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Rn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ce).clear(),P(this,Tn).clear()}},Ce=new WeakMap,Tn=new WeakMap,Rn=new WeakMap,uo=new WeakMap,co=new WeakMap,jn=new WeakMap,fo=new WeakMap,po=new WeakMap,Hp),Bb=v.createContext(void 0),Ub=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Bb.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 sa(){return sa=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},sa.apply(this,arguments)}var On;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(On||(On={}));const vp="popstate";function Vb(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return Uu("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Lg(o)}return Wb(t,n,null,e)}function et(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hb(){return Math.random().toString(36).substr(2,8)}function gp(e,t){return{usr:e.state,key:e.key,idx:t}}function Uu(e,t,n,r){return n===void 0&&(n=null),sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fa(t):t,{state:n,key:t&&t.key||r||Hb()})}function Lg(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 Fa(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 Wb(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=On.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(sa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=On.Pop;let w=d(),g=w==null?null:w-u;u=w,l&&l({action:a,location:h.location,delta:g})}function y(w,g){a=On.Push;let f=Uu(h.location,w,g);u=d()+1;let x=gp(f,u),C=h.createHref(f);try{s.pushState(x,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&l&&l({action:a,location:h.location,delta:1})}function m(w,g){a=On.Replace;let f=Uu(h.location,w,g);u=d();let x=gp(f,u),C=h.createHref(f);s.replaceState(x,"",C),i&&l&&l({action:a,location:h.location,delta:0})}function S(w){let g=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof w=="string"?w:Lg(w);return f=f.replace(/ $/,"%20"),et(g,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,g)}let h={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(vp,p),l=w,()=>{o.removeEventListener(vp,p),l=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let g=S(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:y,replace:m,go(w){return s.go(w)}};return h}var yp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yp||(yp={}));function Qb(e,t,n){return n===void 0&&(n="/"),Kb(e,t,n,!1)}function Kb(e,t,n,r){let o=typeof t=="string"?Fa(t):t,i=zg(o.pathname||"/",n);if(i==null)return null;let s=Dg(e);Gb(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=i2(i);a=r2(s[l],u,r)}return a}function Dg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(et(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ro([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(et(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Dg(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:t2(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Fg(i.path))o(i,s,l)}),t}function Fg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Fg(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yb=/^:[\w-]+$/,qb=3,Xb=2,Zb=1,Jb=10,e2=-2,xp=e=>e==="*";function t2(e,t){let n=e.split("/"),r=n.length;return n.some(xp)&&(r+=e2),t&&(r+=Xb),n.filter(o=>!xp(o)).reduce((o,i)=>o+(Yb.test(i)?qb:i===""?Zb:Jb),r)}function n2(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 r2(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",p=wp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),y=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=wp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;Object.assign(o,p.params),s.push({params:o,pathname:ro([i,p.pathname]),pathnameBase:s2(ro([i,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(i=ro([i,p.pathnameBase]))}return s}function wp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=o2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,d,p)=>{let{paramName:y,isOptional:m}=d;if(y==="*"){let h=a[p]||"";s=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const S=a[p];return m&&!S?u[y]=void 0:u[y]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function o2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mg(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,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function i2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mg(!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 zg(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)||"/"}const ro=e=>e.join("/").replace(/\/\/+/g,"/"),s2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function a2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $g=["post","put","patch","delete"];new Set($g);const l2=["get",...$g];new Set(l2);/**
* 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 aa(){return aa=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},aa.apply(this,arguments)}const u2=v.createContext(null),c2=v.createContext(null),Bg=v.createContext(null),za=v.createContext(null),$a=v.createContext({outlet:null,matches:[],isDataRoute:!1}),Ug=v.createContext(null);function md(){return v.useContext(za)!=null}function Vg(){return md()||et(!1),v.useContext(za).location}function d2(e,t){return f2(e,t)}function f2(e,t,n,r){md()||et(!1);let{navigator:o}=v.useContext(Bg),{matches:i}=v.useContext($a),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Vg(),d;if(t){var p;let w=typeof t=="string"?Fa(t):t;l==="/"||(p=w.pathname)!=null&&p.startsWith(l)||et(!1),d=w}else d=u;let y=d.pathname||"/",m=y;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=Qb(e,{pathname:m}),h=g2(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:ro([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ro([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&h?v.createElement(za.Provider,{value:{location:aa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},h):h}function p2(){let e=S2(),t=a2(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 v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const m2=v.createElement(p2,null);class h2 extends v.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?v.createElement($a.Provider,{value:this.props.routeContext},v.createElement(Ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v2(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(u2);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement($a.Provider,{value:t},r)}function g2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||et(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:y,errors:m}=n,S=p.route.loader&&y[p.route.id]===void 0&&(!m||m[p.route.id]===void 0);if(p.route.lazy||S){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,y)=>{let m,S=!1,h=null,w=null;n&&(m=a&&p.route.id?a[p.route.id]:void 0,h=p.route.errorElement||m2,l&&(u<0&&y===0?(S=!0,w=null):u===y&&(S=!0,w=p.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,y+1)),f=()=>{let x;return m?x=h:S?x=w:p.route.Component?x=v.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=d,v.createElement(v2,{match:p,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?v.createElement(h2,{location:n.location,revalidation:n.revalidation,component:h,error:m,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()},null)}var Vu=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}(Vu||{});function y2(e){let t=v.useContext(c2);return t||et(!1),t}function x2(e){let t=v.useContext($a);return t||et(!1),t}function w2(e){let t=x2(),n=t.matches[t.matches.length-1];return n.route.id||et(!1),n.route.id}function S2(){var e;let t=v.useContext(Ug),n=y2(Vu.UseRouteError),r=w2(Vu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function C2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Hu(e){et(!1)}function E2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=On.Pop,navigator:i,static:s=!1,future:a}=e;md()&&et(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:s,future:aa({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Fa(r));let{pathname:d="/",search:p="",hash:y="",state:m=null,key:S="default"}=r,h=v.useMemo(()=>{let w=zg(d,l);return w==null?null:{location:{pathname:w,search:p,hash:y,state:m,key:S},navigationType:o}},[l,d,p,y,m,S,o]);return h==null?null:v.createElement(Bg.Provider,{value:u},v.createElement(za.Provider,{children:n,value:h}))}function b2(e){let{children:t,location:n}=e;return d2(Wu(t),n)}new Promise(()=>{});function Wu(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,Wu(r.props.children,i));return}r.type!==Hu&&et(!1),!r.props.index||!r.props.children||et(!1);let s={id:r.props.id||i.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&&(s.children=Wu(r.props.children,i)),n.push(s)}),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
*/const N2="6";try{window.__reactRouterVersion=N2}catch{}const k2="startTransition",Sp=rc[k2];function P2(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=Vb({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=v.useCallback(p=>{u&&Sp?Sp(()=>l(p)):l(p)},[l,u]);return v.useLayoutEffect(()=>s.listen(d),[s,d]),v.useEffect(()=>C2(r),[r]),v.createElement(E2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var Cp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cp||(Cp={}));var Ep;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ep||(Ep={}));const T2=Jc("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",whatsapp:"bg-[#25D366] text-white hover:bg-[#20BA5A] shadow-lg hover:shadow-xl transition-all duration-300",gold:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-md hover:shadow-lg transition-all duration-300"},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"}}),Cr=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?d1:"button";return c.jsx(s,{className:ie(T2({variant:t,size:n,className:e})),ref:i,...o})});Cr.displayName="Button";const R2=()=>{const e="551151991450",t="(11) 5199-1450",n=()=>{window.open(`https://wa.me/${e}`,"_blank")};return c.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border shadow-sm",children:c.jsx("div",{className:"container mx-auto px-4 py-2 md:py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("div",{className:"flex items-center justify-center w-8 h-8 md:w-10 md:h-10 rounded-full bg-primary",children:c.jsx("span",{className:"text-lg md:text-xl font-bold text-primary-foreground",children:"⚖️"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-base md:text-lg font-bold text-foreground",children:"Direito Civil"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Advocacia Especializada"})]})]}),c.jsxs("div",{className:"flex items-center gap-2 md:gap-4",children:[c.jsxs("a",{href:`tel:${e}`,className:"hidden md:flex items-center gap-2 text-sm text-foreground hover:text-primary transition-colors",children:[c.jsx(Dv,{className:"h-4 w-4"}),c.jsx("span",{className:"font-medium",children:t})]}),c.jsxs(Cr,{variant:"whatsapp",size:"lg",onClick:n,className:"font-semibold text-sm md:text-base h-11",children:[c.jsx(To,{className:"h-5 w-5"}),"Fale Agora!!!"]})]})]})})})},j2="/assets/hero-law-6TlvKX4C.jpg",_o=(e={})=>{const{threshold:t=.1,rootMargin:n="0px",triggerOnce:r=!0}=e,[o,i]=v.useState(!1),s=v.useRef(null);return v.useEffect(()=>{const a=new IntersectionObserver(([l])=>{l.isIntersecting?(i(!0),r&&s.current&&a.unobserve(s.current)):r||i(!1)},{threshold:t,rootMargin:n});return s.current&&a.observe(s.current),()=>{s.current&&a.unobserve(s.current)}},[t,n,r]),{ref:s,isVisible:o}},A2=()=>{const{ref:e,isVisible:t}=_o({threshold:.2}),n=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsx("section",{ref:e,className:`relative flex items-center pt-14 md:pt-16 bg-gradient-to-b from-secondary/30 to-background transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsx("div",{className:"container mx-auto px-4 py-8 md:py-12 lg:py-16",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 md:gap-12 items-center",children:[c.jsxs("div",{className:"space-y-4 md:space-y-6",children:[c.jsxs("div",{className:"space-y-3 md:space-y-4",children:[c.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-foreground leading-tight",children:["Precisa de um advogado especializado em"," ",c.jsx("span",{className:"text-primary",children:"Direito Civil"}),"?"]}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Atendimento humanizado e soluções jurídicas rápidas para divórcio, guarda, pensão, inventário e mais."})]}),c.jsx("div",{className:"flex flex-wrap gap-3 md:gap-4",children:[{icon:aS,text:"Atendimento rápido"},{icon:Fv,text:"100% ONLINE"},{icon:Lv,text:"Totalmente sigiloso"}].map((r,o)=>c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(r.icon,{className:"h-5 w-5 text-primary"}),c.jsx("span",{children:r.text})]},o))}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4",children:[c.jsxs(Cr,{variant:"whatsapp",size:"lg",onClick:n,className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:[c.jsx(To,{className:"h-5 w-5 md:h-6 md:w-6"}),"Fale Agora!!!"]}),c.jsx(Cr,{variant:"outline",size:"lg",onClick:()=>{var r;return(r=document.getElementById("services"))==null?void 0:r.scrollIntoView({behavior:"smooth"})},className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:"Ver Serviços"})]})]}),c.jsx("div",{className:"relative hidden lg:block",children:c.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl",children:[c.jsx("img",{src:j2,alt:"Advogado especializado em Direito Civil",className:"w-full h-auto object-cover"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/20 to-transparent"})]})})]})})})},In=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));In.displayName="Card";const _2=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("flex flex-col space-y-1.5 p-6",e),...t}));_2.displayName="CardHeader";const O2=v.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:ie("text-2xl font-semibold leading-none tracking-tight",e),...t}));O2.displayName="CardTitle";const I2=v.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));I2.displayName="CardDescription";const M2=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("p-6 pt-0",e),...t}));M2.displayName="CardContent";const L2=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:ie("flex items-center p-6 pt-0",e),...t}));L2.displayName="CardFooter";const D2=[{icon:Kf,title:"Divórcio",description:"Encerramos o casamento de forma rápida e segura, consensual ou litigiosa, protegendo seus direitos e evitando desgaste desnecessário."},{icon:Kf,title:"União estável",description:"Reconhecemos ou dissolvemos a união estável, regulando direitos, bens e responsabilidades com segurança."},{icon:lS,title:"Pensão alimentícia",description:"Definimos, revisamos ou encerramos a pensão, buscando equilíbrio entre quem paga e quem recebe."},{icon:oS,title:"Guarda de filhos",description:"Ajustamos guarda unilateral ou compartilhada e visitas, sempre priorizando o bem-estar da criança."},{icon:cS,title:"Inventário",description:"Organizamos a herança por via judicial ou extrajudicial, com partilha justa e solução ágil."},{icon:dS,title:"Doações em vida",description:"Estruturamos doações com segurança jurídica, evitando problemas futuros entre herdeiros."}],F2=()=>{const{ref:e,isVisible:t}=_o({threshold:.1}),n=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsx("section",{id:"services",ref:e,className:`py-4 md:py-6 lg:py-8 bg-background transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-10 lg:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Como podemos te ajudar?"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Oferecemos soluções jurídicas completas em Direito Civil e de Família"})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",children:D2.map((r,o)=>c.jsx(In,{className:"p-4 md:p-6 hover:shadow-lg transition-all duration-300 hover:-translate-y-1 border-border bg-card",children:c.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[c.jsx("div",{className:"flex-shrink-0 w-10 h-10 md:w-12 md:h-12 rounded-lg bg-primary/10 flex items-center justify-center",children:c.jsx(r.icon,{className:"h-5 w-5 md:h-6 md:w-6 text-primary"})}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("h3",{className:"text-lg md:text-xl font-semibold text-foreground",children:r.title}),c.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:r.description})]})]})},o))}),c.jsxs("div",{className:"text-center mt-6 md:mt-8 lg:mt-10",children:[c.jsx("p",{className:"text-muted-foreground mb-4 text-base md:text-lg",children:"Precisa de ajuda com algum desses serviços?"}),c.jsxs(Cr,{variant:"whatsapp",size:"lg",onClick:n,className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:[c.jsx(To,{className:"h-5 w-5 md:h-6 md:w-6"}),"Falar com um Especialista"]})]})]})})};var Hg={exports:{}},Wg={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bo=v;function z2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $2=typeof Object.is=="function"?Object.is:z2,B2=bo.useState,U2=bo.useEffect,V2=bo.useLayoutEffect,H2=bo.useDebugValue;function W2(e,t){var n=t(),r=B2({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return V2(function(){o.value=n,o.getSnapshot=t,jl(o)&&i({inst:o})},[e,n,t]),U2(function(){return jl(o)&&i({inst:o}),e(function(){jl(o)&&i({inst:o})})},[e]),H2(n),n}function jl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$2(e,n)}catch{return!0}}function Q2(e,t){return t()}var K2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Q2:W2;Wg.useSyncExternalStore=bo.useSyncExternalStore!==void 0?bo.useSyncExternalStore:K2;Hg.exports=Wg;var G2=Hg.exports;function Y2(){return G2.useSyncExternalStore(q2,()=>!0,()=>!1)}function q2(){return()=>{}}var hd="Avatar",[X2,pP]=qn(hd),[Z2,Qg]=X2(hd),Kg=v.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=v.useState("idle");return c.jsx(Z2,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:c.jsx(J.span,{...r,ref:t})})});Kg.displayName=hd;var Gg="AvatarImage",Yg=v.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,s=Qg(Gg,n),a=J2(r,i),l=yt(u=>{o(u),s.onImageLoadingStatusChange(u)});return Ne(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?c.jsx(J.img,{...i,ref:t,src:r}):null});Yg.displayName=Gg;var qg="AvatarFallback",Xg=v.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=Qg(qg,n),[s,a]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&i.imageLoadingStatus!=="loaded"?c.jsx(J.span,{...o,ref:t}):null});Xg.displayName=qg;function bp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function J2(e,{referrerPolicy:t,crossOrigin:n}){const r=Y2(),o=v.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[s,a]=v.useState(()=>bp(i,e));return Ne(()=>{a(bp(i,e))},[i,e]),Ne(()=>{const l=p=>()=>{a(p)};if(!i)return;const u=l("loaded"),d=l("error");return i.addEventListener("load",u),i.addEventListener("error",d),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",u),i.removeEventListener("error",d)}},[i,n,t]),s}var Zg=Kg,Jg=Yg,ey=Xg;const ty=v.forwardRef(({className:e,...t},n)=>c.jsx(Zg,{ref:n,className:ie("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ty.displayName=Zg.displayName;const eN=v.forwardRef(({className:e,...t},n)=>c.jsx(Jg,{ref:n,className:ie("aspect-square h-full w-full",e),...t}));eN.displayName=Jg.displayName;const ny=v.forwardRef(({className:e,...t},n)=>c.jsx(ey,{ref:n,className:ie("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ny.displayName=ey.displayName;const tN=[{icon:rS,value:"+10 anos",label:"De experiência"},{icon:hS,value:"100%",label:"Sigiloso"},{icon:Fv,value:"ONLINE",label:"100% Online"},{icon:zv,value:"5.0",label:"Avaliação média"}],nN=[{name:"Mariana Leite",avatar:"ML",text:"Excelente atendimento! Resolveram meu processo de divórcio de forma rápida e sem complicações. Recomendo!",rating:5},{name:"Pedro Vasconcelos",avatar:"PV",text:"Profissionais competentes e atenciosos. Me ajudaram com a guarda do meu filho e pensão alimentícia. Muito satisfeito!",rating:5},{name:"Eduardo Medeiros",avatar:"EM",text:"Realizaram meu inventário de forma ágil e eficiente. Equipe muito profissional e transparente em todo o processo.",rating:5}],rN=()=>{const{ref:e,isVisible:t}=_o({threshold:.1});return c.jsx("section",{ref:e,className:`py-4 md:py-6 lg:py-8 bg-secondary/30 transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-6 md:mb-8 lg:mb-10",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Por que nos escolher?"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Confiança e resultados comprovados"})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6 mb-8 md:mb-10",children:tN.map((n,r)=>c.jsxs(In,{className:"p-4 md:p-6 text-center hover:shadow-lg transition-all duration-300 bg-card border-border",children:[c.jsx("div",{className:"flex justify-center mb-4",children:c.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(n.icon,{className:"h-8 w-8 text-primary"})})}),c.jsx("div",{className:"text-2xl md:text-3xl font-bold text-foreground mb-2",children:n.value}),c.jsx("div",{className:"text-sm text-muted-foreground",children:n.label})]},r))}),c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("h3",{className:"text-xl md:text-2xl font-bold text-foreground mb-4 md:mb-6 text-center",children:"O que nossos clientes dizem"}),c.jsx("div",{className:"grid md:grid-cols-3 gap-4 md:gap-6",children:nN.map((n,r)=>c.jsxs(In,{className:"p-4 md:p-6 bg-card border-border hover:shadow-lg transition-all duration-300",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(ty,{className:"h-12 w-12",children:c.jsx(ny,{className:"bg-gradient-to-br from-primary to-primary/60 text-primary-foreground text-lg font-semibold",children:n.avatar})}),c.jsx("p",{className:"text-sm font-semibold text-foreground",children:n.name})]}),c.jsx("div",{className:"flex mb-3",children:[...Array(n.rating)].map((o,i)=>c.jsx(zv,{className:"h-4 w-4 fill-accent text-accent"},i))}),c.jsxs("p",{className:"text-sm text-muted-foreground italic",children:['"',n.text,'"']})]},r))})]})]})})},Np=[{icon:To,number:"01",title:"Entre em contato",description:"Envie sua mensagem pelo WhatsApp ou preencha o formulário de contato"},{icon:uS,number:"02",title:"Avaliação gratuita",description:"Avaliação gratuita e rápida do seu caso por nossos especialistas"},{icon:pS,number:"03",title:"Orientação jurídica",description:"Receba orientação jurídica imediata e comece a resolver seu caso"}],oN=()=>{const{ref:e,isVisible:t}=_o({threshold:.1}),n=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsx("section",{ref:e,className:`py-6 md:py-8 lg:py-12 bg-background transition-all duration-1000 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-10 lg:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Como funciona o atendimento"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Simples, rápido e eficiente"})]}),c.jsx("div",{className:"max-w-5xl mx-auto grid md:grid-cols-3 gap-6 md:gap-8 mb-6 md:mb-8",children:Np.map((r,o)=>c.jsxs("div",{className:"relative text-center",children:[c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsxs("div",{className:"relative mb-6",children:[c.jsx("div",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-primary flex items-center justify-center shadow-lg",children:c.jsx(r.icon,{className:"h-8 w-8 md:h-10 md:w-10 text-primary-foreground"})}),c.jsx("div",{className:"absolute -top-2 -right-2 w-7 h-7 md:w-8 md:h-8 rounded-full bg-accent flex items-center justify-center text-xs md:text-sm font-bold text-accent-foreground",children:r.number})]}),c.jsx("h3",{className:"text-lg md:text-xl font-bold text-foreground mb-3",children:r.title}),c.jsx("p",{className:"text-sm md:text-base text-muted-foreground",children:r.description})]}),o<Np.length-1&&c.jsx("div",{className:"hidden md:block absolute top-10 left-[60%] w-full h-0.5 bg-border -z-10"})]},o))}),c.jsx("div",{className:"text-center",children:c.jsxs(Cr,{variant:"gold",size:"lg",onClick:n,className:"text-base md:text-lg py-4 px-6 md:py-6 md:px-8 min-h-[44px]",children:[c.jsx(To,{className:"h-5 w-5 md:h-6 md:w-6"}),"Avaliar meu caso agora"]})})]})})};var Ba="Collapsible",[iN,ry]=qn(Ba),[sN,vd]=iN(Ba),oy=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[l,u]=So({prop:r,defaultProp:o??!1,onChange:s,caller:Ba});return c.jsx(sN,{scope:n,disabled:i,contentId:Di(),open:l,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),children:c.jsx(J.div,{"data-state":yd(l),"data-disabled":i?"":void 0,...a,ref:t})})});oy.displayName=Ba;var iy="CollapsibleTrigger",sy=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=vd(iy,n);return c.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":yd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:X(e.onClick,o.onOpenToggle)})});sy.displayName=iy;var gd="CollapsibleContent",ay=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=vd(gd,e.__scopeCollapsible);return c.jsx(Pa,{present:n||o.open,children:({present:i})=>c.jsx(aN,{...r,ref:t,present:i})})});ay.displayName=gd;var aN=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=vd(gd,n),[a,l]=v.useState(r),u=v.useRef(null),d=ve(t,u),p=v.useRef(0),y=p.current,m=v.useRef(0),S=m.current,h=s.open||a,w=v.useRef(h),g=v.useRef(void 0);return v.useEffect(()=>{const f=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(f)},[]),Ne(()=>{const f=u.current;if(f){g.current=g.current||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";const x=f.getBoundingClientRect();p.current=x.height,m.current=x.width,w.current||(f.style.transitionDuration=g.current.transitionDuration,f.style.animationName=g.current.animationName),l(r)}},[s.open,r]),c.jsx(J.div,{"data-state":yd(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...i,ref:d,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:h&&o})});function yd(e){return e?"open":"closed"}var lN=oy,uN=sy,cN=ay,dN=v.createContext(void 0);function ly(e){const t=v.useContext(dN);return e||t||"ltr"}var Dt="Accordion",fN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[xd,pN,mN]=Gc(Dt),[Ua,mP]=qn(Dt,[mN,ry]),wd=ry(),uy=j.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return c.jsx(xd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(yN,{...i,ref:t}):c.jsx(gN,{...o,ref:t})})});uy.displayName=Dt;var[cy,hN]=Ua(Dt),[dy,vN]=Ua(Dt,{collapsible:!1}),gN=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,l]=So({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return c.jsx(cy,{scope:e.__scopeAccordion,value:j.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:j.useCallback(()=>i&&l(""),[i,l]),children:c.jsx(dy,{scope:e.__scopeAccordion,collapsible:i,children:c.jsx(fy,{...s,ref:t})})})}),yN=j.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s,a]=So({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),l=j.useCallback(d=>a((p=[])=>[...p,d]),[a]),u=j.useCallback(d=>a((p=[])=>p.filter(y=>y!==d)),[a]);return c.jsx(cy,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:c.jsx(dy,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(fy,{...i,ref:t})})})}),[xN,Va]=Ua(Dt),fy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,a=j.useRef(null),l=ve(a,t),u=pN(n),p=ly(o)==="ltr",y=X(e.onKeyDown,m=>{var T;if(!fN.includes(m.key))return;const S=m.target,h=u().filter(_=>{var O;return!((O=_.ref.current)!=null&&O.disabled)}),w=h.findIndex(_=>_.ref.current===S),g=h.length;if(w===-1)return;m.preventDefault();let f=w;const x=0,C=g-1,E=()=>{f=w+1,f>C&&(f=x)},N=()=>{f=w-1,f<x&&(f=C)};switch(m.key){case"Home":f=x;break;case"End":f=C;break;case"ArrowRight":i==="horizontal"&&(p?E():N());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(p?N():E());break;case"ArrowUp":i==="vertical"&&N();break}const b=f%g;(T=h[b].ref.current)==null||T.focus()});return c.jsx(xN,{scope:n,disabled:r,direction:o,orientation:i,children:c.jsx(xd.Slot,{scope:n,children:c.jsx(J.div,{...s,"data-orientation":i,ref:l,onKeyDown:r?void 0:y})})})}),la="AccordionItem",[wN,Sd]=Ua(la),py=j.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=Va(la,n),s=hN(la,n),a=wd(n),l=Di(),u=r&&s.value.includes(r)||!1,d=i.disabled||e.disabled;return c.jsx(wN,{scope:n,open:u,disabled:d,triggerId:l,children:c.jsx(lN,{"data-orientation":i.orientation,"data-state":xy(u),...a,...o,ref:t,disabled:d,open:u,onOpenChange:p=>{p?s.onItemOpen(r):s.onItemClose(r)}})})});py.displayName=la;var my="AccordionHeader",hy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Va(Dt,n),i=Sd(my,n);return c.jsx(J.h3,{"data-orientation":o.orientation,"data-state":xy(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});hy.displayName=my;var Qu="AccordionTrigger",vy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Va(Dt,n),i=Sd(Qu,n),s=vN(Qu,n),a=wd(n);return c.jsx(xd.ItemSlot,{scope:n,children:c.jsx(uN,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});vy.displayName=Qu;var gy="AccordionContent",yy=j.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Va(Dt,n),i=Sd(gy,n),s=wd(n);return c.jsx(cN,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});yy.displayName=gy;function xy(e){return e?"open":"closed"}var SN=uy,CN=py,EN=hy,wy=vy,Sy=yy;const bN=SN,Cy=v.forwardRef(({className:e,...t},n)=>c.jsx(CN,{ref:n,className:ie("border-b",e),...t}));Cy.displayName="AccordionItem";const Ey=v.forwardRef(({className:e,children:t,...n},r)=>c.jsx(EN,{className:"flex",children:c.jsxs(wy,{ref:r,className:ie("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,c.jsx(ed,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Ey.displayName=wy.displayName;const by=v.forwardRef(({className:e,children:t,...n},r)=>c.jsx(Sy,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:c.jsx("div",{className:ie("pb-4 pt-0",e),children:t})}));by.displayName=Sy.displayName;const NN=()=>{const{ref:e,isVisible:t}=_o({threshold:.1}),n=[{question:"Quanto custa a primeira consulta?",answer:"A primeira avaliação do seu caso é 100% gratuita. Você recebe orientação jurídica sem compromisso."},{question:"Quais áreas do direito vocês atendem?",answer:"Atuamos nas principais áreas: Direito Civil, Família, Trabalhista, Digital, Consulte."},{question:"Quanto tempo leva para resolver um caso?",answer:"O prazo varia conforme a complexidade. Na avaliação inicial, apresentamos um cronograma estimado para seu caso específico."},{question:"Como funciona o atendimento online?",answer:"Todo o processo pode ser feito remotamente via WhatsApp, videochamada ou e-mail. Você economiza tempo e recebe o mesmo atendimento de qualidade."},{question:"Preciso ir ao escritório pessoalmente?",answer:"Não necessariamente. A maioria dos atendimentos pode ser feita online. Apenas em casos específicos solicitamos presença física."},{question:"Qual o horário de atendimento?",answer:"Atendemos de segunda a sexta, das 9h às 18h. Pelo WhatsApp, respondemos o mais rápido possível."},{question:"Como são os honorários advocatícios?",answer:"Trabalhamos com transparência total. Os valores são apresentados claramente na avaliação inicial, sem surpresas."},{question:"Posso parcelar os honorários?",answer:"Sim, oferecemos condições especiais de parcelamento para facilitar o acesso à justiça."},{question:"Como sei se meu caso tem chances de sucesso?",answer:"Na avaliação gratuita, nossos advogados analisam seu caso e apresentam as possibilidades e estratégias jurídicas aplicáveis."}];return c.jsx("section",{ref:e,className:`py-6 md:py-8 lg:py-12 px-4 md:px-6 bg-muted/30 transition-all duration-700 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsxs("div",{className:"container mx-auto max-w-3xl",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-4",children:"Perguntas Frequentes"}),c.jsx("p",{className:"text-muted-foreground text-lg",children:"Tire suas dúvidas sobre nossos serviços jurídicos"})]}),c.jsx(bN,{type:"single",collapsible:!0,className:"w-full",children:n.map((r,o)=>c.jsxs(Cy,{value:`item-${o}`,className:"border-b border-border hover:bg-accent/5 transition-colors",children:[c.jsx(Ey,{className:"text-left py-5 px-4 md:px-6 hover:no-underline",children:c.jsx("span",{className:"font-semibold text-foreground",children:r.question})}),c.jsx(by,{className:"px-4 md:px-6 pb-5 text-muted-foreground leading-relaxed",children:r.answer})]},o))})]})})},Ts=v.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:ie("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}));Ts.displayName="Input";const Ny=v.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:ie("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}));Ny.displayName="Textarea";var kN="Label",ky=v.forwardRef((e,t)=>c.jsx(J.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ky.displayName=kN;var Py=ky;const PN=Jc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Lr=v.forwardRef(({className:e,...t},n)=>c.jsx(Py,{ref:n,className:ie(PN(),e),...t}));Lr.displayName=Py.displayName;function kp(e,[t,n]){return Math.min(n,Math.max(t,e))}var Al=0;function TN(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pp()),document.body.insertAdjacentElement("beforeend",e[1]??Pp()),Al++,()=>{Al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Al--}},[])}function Pp(){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 _l="focusScope.autoFocusOnMount",Ol="focusScope.autoFocusOnUnmount",Tp={bubbles:!1,cancelable:!0},RN="FocusScope",Ty=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=v.useState(null),u=yt(o),d=yt(i),p=v.useRef(null),y=ve(t,h=>l(h)),m=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let h=function(x){if(m.paused||!a)return;const C=x.target;a.contains(C)?p.current=C:Sn(p.current,{select:!0})},w=function(x){if(m.paused||!a)return;const C=x.relatedTarget;C!==null&&(a.contains(C)||Sn(p.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Sn(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const f=new MutationObserver(g);return a&&f.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),f.disconnect()}}},[r,a,m.paused]),v.useEffect(()=>{if(a){jp.add(m);const h=document.activeElement;if(!a.contains(h)){const g=new CustomEvent(_l,Tp);a.addEventListener(_l,u),a.dispatchEvent(g),g.defaultPrevented||(jN(MN(Ry(a)),{select:!0}),document.activeElement===h&&Sn(a))}return()=>{a.removeEventListener(_l,u),setTimeout(()=>{const g=new CustomEvent(Ol,Tp);a.addEventListener(Ol,d),a.dispatchEvent(g),g.defaultPrevented||Sn(h??document.body,{select:!0}),a.removeEventListener(Ol,d),jp.remove(m)},0)}}},[a,u,d,m]);const S=v.useCallback(h=>{if(!n&&!r||m.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(w&&g){const f=h.currentTarget,[x,C]=AN(f);x&&C?!h.shiftKey&&g===C?(h.preventDefault(),n&&Sn(x,{select:!0})):h.shiftKey&&g===x&&(h.preventDefault(),n&&Sn(C,{select:!0})):g===f&&h.preventDefault()}},[n,r,m.paused]);return c.jsx(J.div,{tabIndex:-1,...s,ref:y,onKeyDown:S})});Ty.displayName=RN;function jN(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Sn(r,{select:t}),document.activeElement!==n)return}function AN(e){const t=Ry(e),n=Rp(t,e),r=Rp(t.reverse(),e);return[n,r]}function Ry(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 Rp(e,t){for(const n of e)if(!_N(n,{upTo:t}))return n}function _N(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 ON(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ON(e)&&t&&e.select()}}var jp=IN();function IN(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ap(e,t),e.unshift(t)},remove(t){var n;e=Ap(e,t),(n=e[0])==null||n.resume()}}}function Ap(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function MN(e){return e.filter(t=>t.tagName!=="A")}function LN(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var DN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Or=new WeakMap,us=new WeakMap,cs={},Il=0,jy=function(e){return e&&(e.host||jy(e.parentNode))},FN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jy(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})},zN=function(e,t,n,r){var o=FN(t,Array.isArray(e)?e:[e]);cs[n]||(cs[n]=new WeakMap);var i=cs[n],s=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(y){if(a.has(y))d(y);else try{var m=y.getAttribute(r),S=m!==null&&m!=="false",h=(Or.get(y)||0)+1,w=(i.get(y)||0)+1;Or.set(y,h),i.set(y,w),s.push(y),h===1&&S&&us.set(y,!0),w===1&&y.setAttribute(n,"true"),S||y.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",y,g)}})};return d(t),a.clear(),Il++,function(){s.forEach(function(p){var y=Or.get(p)-1,m=i.get(p)-1;Or.set(p,y),i.set(p,m),y||(us.has(p)||p.removeAttribute(r),us.delete(p)),m||p.removeAttribute(n)}),Il--,Il||(Or=new WeakMap,Or=new WeakMap,us=new WeakMap,cs={})}},$N=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=DN(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zN(r,o,n,"aria-hidden")):function(){return null}},Ht=function(){return Ht=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ht.apply(this,arguments)};function Ay(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 BN(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Rs="right-scroll-bar-position",js="width-before-scroll-bar",UN="with-scroll-bars-hidden",VN="--removed-body-scroll-bar-size";function Ml(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function HN(e,t){var n=v.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 WN=typeof window<"u"?v.useLayoutEffect:v.useEffect,_p=new WeakMap;function QN(e,t){var n=HN(null,function(r){return e.forEach(function(o){return Ml(o,r)})});return WN(function(){var r=_p.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ml(a,null)}),i.forEach(function(a){o.has(a)||Ml(a,s)})}_p.set(n,e)},[e]),n}function KN(e){return e}function GN(e,t){t===void 0&&(t=KN);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function YN(e){e===void 0&&(e={});var t=GN(null);return t.options=Ht({async:!0,ssr:!1},e),t}var _y=function(e){var t=e.sideCar,n=Ay(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 v.createElement(r,Ht({},n))};_y.isSideCarExport=!0;function qN(e,t){return e.useMedium(t),_y}var Oy=YN(),Ll=function(){},Ha=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Ll,onWheelCapture:Ll,onTouchMoveCapture:Ll}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,y=e.sideCar,m=e.noRelative,S=e.noIsolation,h=e.inert,w=e.allowPinchZoom,g=e.as,f=g===void 0?"div":g,x=e.gapMode,C=Ay(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=y,N=QN([n,t]),b=Ht(Ht({},C),o);return v.createElement(v.Fragment,null,d&&v.createElement(E,{sideCar:Oy,removeScrollBar:u,shards:p,noRelative:m,noIsolation:S,inert:h,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:x}),s?v.cloneElement(v.Children.only(a),Ht(Ht({},b),{ref:N})):v.createElement(f,Ht({},b,{className:l,ref:N}),a))});Ha.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ha.classNames={fullWidth:js,zeroRight:Rs};var XN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ZN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=XN();return t&&e.setAttribute("nonce",t),e}function JN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ek(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ZN())&&(JN(t,n),ek(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nk=function(){var e=tk();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Iy=function(){var e=nk(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},rk={left:0,top:0,right:0,gap:0},Dl=function(e){return parseInt(e||"",10)||0},ok=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[Dl(n),Dl(r),Dl(o)]},ik=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rk;var t=ok(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])}},sk=Iy(),oo="data-scroll-locked",ak=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(UN,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(oo,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(s,`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(Rs,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(js,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Rs," .").concat(Rs,` {
right: 0 `).concat(r,`;
}
.`).concat(js," .").concat(js,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(oo,`] {
`).concat(VN,": ").concat(a,`px;
}
`)},Op=function(){var e=parseInt(document.body.getAttribute(oo)||"0",10);return isFinite(e)?e:0},lk=function(){v.useEffect(function(){return document.body.setAttribute(oo,(Op()+1).toString()),function(){var e=Op()-1;e<=0?document.body.removeAttribute(oo):document.body.setAttribute(oo,e.toString())}},[])},uk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lk();var i=v.useMemo(function(){return ik(o)},[o]);return v.createElement(sk,{styles:ak(i,!t,o,n?"":"!important")})},Ku=!1;if(typeof window<"u")try{var ds=Object.defineProperty({},"passive",{get:function(){return Ku=!0,!0}});window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{Ku=!1}var Ir=Ku?{passive:!1}:!1,ck=function(e){return e.tagName==="TEXTAREA"},My=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ck(e)&&n[t]==="visible")},dk=function(e){return My(e,"overflowY")},fk=function(e){return My(e,"overflowX")},Ip=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ly(e,r);if(o){var i=Dy(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pk=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mk=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ly=function(e,t){return e==="v"?dk(t):fk(t)},Dy=function(e,t){return e==="v"?pk(t):mk(t)},hk=function(e,t){return e==="h"&&t==="rtl"?-1:1},vk=function(e,t,n,r,o){var i=hk(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,d=s>0,p=0,y=0;do{if(!a)break;var m=Dy(e,a),S=m[0],h=m[1],w=m[2],g=h-w-i*S;(S||g)&&Ly(e,a)&&(p+=g,y+=S);var f=a.parentNode;a=f&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE?f.host:f}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(y)<1||!o))&&(u=!0),u},fs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mp=function(e){return[e.deltaX,e.deltaY]},Lp=function(e){return e&&"current"in e?e.current:e},gk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yk=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},xk=0,Mr=[];function wk(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(xk++)[0],i=v.useState(Iy)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=BN([e.lockRef.current],(e.shards||[]).map(Lp),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var g=fs(h),f=n.current,x="deltaX"in h?h.deltaX:f[0]-g[0],C="deltaY"in h?h.deltaY:f[1]-g[1],E,N=h.target,b=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in h&&b==="h"&&N.type==="range")return!1;var T=Ip(b,N);if(!T)return!0;if(T?E=b:(E=b==="v"?"h":"v",T=Ip(b,N)),!T)return!1;if(!r.current&&"changedTouches"in h&&(x||C)&&(r.current=E),!E)return!0;var _=r.current||E;return vk(_,w,h,_==="h"?x:C,!0)},[]),l=v.useCallback(function(h){var w=h;if(!(!Mr.length||Mr[Mr.length-1]!==i)){var g="deltaY"in w?Mp(w):fs(w),f=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&gk(E.delta,g)})[0];if(f&&f.should){w.cancelable&&w.preventDefault();return}if(!f){var x=(s.current.shards||[]).map(Lp).filter(Boolean).filter(function(E){return E.contains(w.target)}),C=x.length>0?a(w,x[0]):!s.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),u=v.useCallback(function(h,w,g,f){var x={name:h,delta:w,target:g,should:f,shadowParent:Sk(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),d=v.useCallback(function(h){n.current=fs(h),r.current=void 0},[]),p=v.useCallback(function(h){u(h.type,Mp(h),h.target,a(h,e.lockRef.current))},[]),y=v.useCallback(function(h){u(h.type,fs(h),h.target,a(h,e.lockRef.current))},[]);v.useEffect(function(){return Mr.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",l,Ir),document.addEventListener("touchmove",l,Ir),document.addEventListener("touchstart",d,Ir),function(){Mr=Mr.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Ir),document.removeEventListener("touchmove",l,Ir),document.removeEventListener("touchstart",d,Ir)}},[]);var m=e.removeScrollBar,S=e.inert;return v.createElement(v.Fragment,null,S?v.createElement(i,{styles:yk(o)}):null,m?v.createElement(uk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Sk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ck=qN(Oy,wk);var Fy=v.forwardRef(function(e,t){return v.createElement(Ha,Ht({},e,{ref:t,sideCar:Ck}))});Fy.classNames=Ha.classNames;var Ek=[" ","Enter","ArrowUp","ArrowDown"],bk=[" ","Enter"],Er="Select",[Wa,Qa,Nk]=Gc(Er),[Oo,hP]=qn(Er,[Nk,Oa]),Ka=Oa(),[kk,Xn]=Oo(Er),[Pk,Tk]=Oo(Er),zy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:y,required:m,form:S}=e,h=Ka(t),[w,g]=v.useState(null),[f,x]=v.useState(null),[C,E]=v.useState(!1),N=ly(u),[b,T]=So({prop:r,defaultProp:o??!1,onChange:i,caller:Er}),[_,O]=So({prop:s,defaultProp:a,onChange:l,caller:Er}),$=v.useRef(null),M=w?S||!!w.closest("form"):!0,[V,I]=v.useState(new Set),W=Array.from(V).map(z=>z.props.value).join(";");return c.jsx(ZE,{...h,children:c.jsxs(kk,{required:m,scope:t,trigger:w,onTriggerChange:g,valueNode:f,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:Di(),value:_,onValueChange:O,open:b,onOpenChange:T,dir:N,triggerPointerDownPosRef:$,disabled:y,children:[c.jsx(Wa.Provider,{scope:t,children:c.jsx(Pk,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(z=>{I(U=>new Set(U).add(z))},[]),onNativeOptionRemove:v.useCallback(z=>{I(U=>{const k=new Set(U);return k.delete(z),k})},[]),children:n})}),M?c.jsxs(u0,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:p,value:_,onChange:z=>O(z.target.value),disabled:y,form:S,children:[_===void 0?c.jsx("option",{value:""}):null,Array.from(V)]},W):null]})})};zy.displayName=Er;var $y="SelectTrigger",By=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Ka(n),s=Xn($y,n),a=s.disabled||r,l=ve(t,s.onTriggerChange),u=Qa(n),d=v.useRef("touch"),[p,y,m]=d0(h=>{const w=u().filter(x=>!x.disabled),g=w.find(x=>x.value===s.value),f=f0(w,h,g);f!==void 0&&s.onValueChange(f.value)}),S=h=>{a||(s.onOpenChange(!0),m()),h&&(s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return c.jsx(gg,{asChild:!0,...i,children:c.jsx(J.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":c0(s.value)?"":void 0,...o,ref:l,onClick:X(o.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&S(h)}),onPointerDown:X(o.onPointerDown,h=>{d.current=h.pointerType;const w=h.target;w.hasPointerCapture(h.pointerId)&&w.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(S(h),h.preventDefault())}),onKeyDown:X(o.onKeyDown,h=>{const w=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&y(h.key),!(w&&h.key===" ")&&Ek.includes(h.key)&&(S(),h.preventDefault())})})})});By.displayName=$y;var Uy="SelectValue",Vy=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,l=Xn(Uy,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,p=ve(t,l.onValueNodeChange);return Ne(()=>{u(d)},[u,d]),c.jsx(J.span,{...a,ref:p,style:{pointerEvents:"none"},children:c0(l.value)?c.jsx(c.Fragment,{children:s}):i})});Vy.displayName=Uy;var Rk="SelectIcon",Hy=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(J.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Hy.displayName=Rk;var jk="SelectPortal",Wy=e=>c.jsx(Yc,{asChild:!0,...e});Wy.displayName=jk;var br="SelectContent",Qy=v.forwardRef((e,t)=>{const n=Xn(br,e.__scopeSelect),[r,o]=v.useState();if(Ne(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Pr.createPortal(c.jsx(Ky,{scope:e.__scopeSelect,children:c.jsx(Wa.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),i):null}return c.jsx(Gy,{...e,ref:t})});Qy.displayName=br;var Nt=10,[Ky,Zn]=Oo(br),Ak="SelectContentImpl",_k=bi("SelectContent.RemoveScroll"),Gy=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:S,hideWhenDetached:h,avoidCollisions:w,...g}=e,f=Xn(br,n),[x,C]=v.useState(null),[E,N]=v.useState(null),b=ve(t,D=>C(D)),[T,_]=v.useState(null),[O,$]=v.useState(null),M=Qa(n),[V,I]=v.useState(!1),W=v.useRef(!1);v.useEffect(()=>{if(x)return $N(x)},[x]),TN();const z=v.useCallback(D=>{const[se,...Se]=M().map(ne=>ne.ref.current),[oe]=Se.slice(-1),ee=document.activeElement;for(const ne of D)if(ne===ee||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===se&&E&&(E.scrollTop=0),ne===oe&&E&&(E.scrollTop=E.scrollHeight),ne==null||ne.focus(),document.activeElement!==ee))return},[M,E]),U=v.useCallback(()=>z([T,x]),[z,T,x]);v.useEffect(()=>{V&&U()},[V,U]);const{onOpenChange:k,triggerPointerDownPosRef:R}=f;v.useEffect(()=>{if(x){let D={x:0,y:0};const se=oe=>{var ee,ne;D={x:Math.abs(Math.round(oe.pageX)-(((ee=R.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((ne=R.current)==null?void 0:ne.y)??0))}},Se=oe=>{D.x<=10&&D.y<=10?oe.preventDefault():x.contains(oe.target)||k(!1),document.removeEventListener("pointermove",se),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",Se,{capture:!0})}}},[x,k,R]),v.useEffect(()=>{const D=()=>k(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[k]);const[L,H]=d0(D=>{const se=M().filter(ee=>!ee.disabled),Se=se.find(ee=>ee.ref.current===document.activeElement),oe=f0(se,D,Se);oe&&setTimeout(()=>oe.ref.current.focus())}),B=v.useCallback((D,se,Se)=>{const oe=!W.current&&!Se;(f.value!==void 0&&f.value===se||oe)&&(_(D),oe&&(W.current=!0))},[f.value]),Y=v.useCallback(()=>x==null?void 0:x.focus(),[x]),Q=v.useCallback((D,se,Se)=>{const oe=!W.current&&!Se;(f.value!==void 0&&f.value===se||oe)&&$(D)},[f.value]),ce=r==="popper"?Gu:Yy,we=ce===Gu?{side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:S,hideWhenDetached:h,avoidCollisions:w}:{};return c.jsx(Ky,{scope:n,content:x,viewport:E,onViewportChange:N,itemRefCallback:B,selectedItem:T,onItemLeave:Y,itemTextRefCallback:Q,focusSelectedItem:U,selectedItemText:O,position:r,isPositioned:V,searchRef:L,children:c.jsx(Fy,{as:_k,allowPinchZoom:!0,children:c.jsx(Ty,{asChild:!0,trapped:f.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:X(o,D=>{var se;(se=f.trigger)==null||se.focus({preventScroll:!0}),D.preventDefault()}),children:c.jsx(ka,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:c.jsx(ce,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:D=>D.preventDefault(),...g,...we,onPlaced:()=>I(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:X(g.onKeyDown,D=>{const se=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!se&&D.key.length===1&&H(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let oe=M().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(D.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const ee=D.target,ne=oe.indexOf(ee);oe=oe.slice(ne+1)}setTimeout(()=>z(oe)),D.preventDefault()}})})})})})})});Gy.displayName=Ak;var Ok="SelectItemAlignedPosition",Yy=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Xn(br,n),s=Zn(br,n),[a,l]=v.useState(null),[u,d]=v.useState(null),p=ve(t,b=>d(b)),y=Qa(n),m=v.useRef(!1),S=v.useRef(!0),{viewport:h,selectedItem:w,selectedItemText:g,focusSelectedItem:f}=s,x=v.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&h&&w&&g){const b=i.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),_=i.valueNode.getBoundingClientRect(),O=g.getBoundingClientRect();if(i.dir!=="rtl"){const ee=O.left-T.left,ne=_.left-ee,Me=b.left-ne,ut=b.width+Me,Jn=Math.max(ut,T.width),pn=window.innerWidth-Nt,er=kp(ne,[Nt,Math.max(Nt,pn-Jn)]);a.style.minWidth=ut+"px",a.style.left=er+"px"}else{const ee=T.right-O.right,ne=window.innerWidth-_.right-ee,Me=window.innerWidth-b.right-ne,ut=b.width+Me,Jn=Math.max(ut,T.width),pn=window.innerWidth-Nt,er=kp(ne,[Nt,Math.max(Nt,pn-Jn)]);a.style.minWidth=ut+"px",a.style.right=er+"px"}const $=y(),M=window.innerHeight-Nt*2,V=h.scrollHeight,I=window.getComputedStyle(u),W=parseInt(I.borderTopWidth,10),z=parseInt(I.paddingTop,10),U=parseInt(I.borderBottomWidth,10),k=parseInt(I.paddingBottom,10),R=W+z+V+k+U,L=Math.min(w.offsetHeight*5,R),H=window.getComputedStyle(h),B=parseInt(H.paddingTop,10),Y=parseInt(H.paddingBottom,10),Q=b.top+b.height/2-Nt,ce=M-Q,we=w.offsetHeight/2,D=w.offsetTop+we,se=W+z+D,Se=R-se;if(se<=Q){const ee=$.length>0&&w===$[$.length-1].ref.current;a.style.bottom="0px";const ne=u.clientHeight-h.offsetTop-h.offsetHeight,Me=Math.max(ce,we+(ee?Y:0)+ne+U),ut=se+Me;a.style.height=ut+"px"}else{const ee=$.length>0&&w===$[0].ref.current;a.style.top="0px";const Me=Math.max(Q,W+h.offsetTop+(ee?B:0)+we)+Se;a.style.height=Me+"px",h.scrollTop=se-Q+h.offsetTop}a.style.margin=`${Nt}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[y,i.trigger,i.valueNode,a,u,h,w,g,i.dir,r]);Ne(()=>x(),[x]);const[C,E]=v.useState();Ne(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const N=v.useCallback(b=>{b&&S.current===!0&&(x(),f==null||f(),S.current=!1)},[x,f]);return c.jsx(Mk,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:N,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:c.jsx(J.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Yy.displayName=Ok;var Ik="SelectPopperPosition",Gu=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Nt,...i}=e,s=Ka(n);return c.jsx(yg,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gu.displayName=Ik;var[Mk,Cd]=Oo(br,{}),Yu="SelectViewport",qy=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Zn(Yu,n),s=Cd(Yu,n),a=ve(t,i.onViewportChange),l=v.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Wa.Slot,{scope:n,children:c.jsx(J.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=s;if(y!=null&&y.current&&p){const m=Math.abs(l.current-d.scrollTop);if(m>0){const S=window.innerHeight-Nt*2,h=parseFloat(p.style.minHeight),w=parseFloat(p.style.height),g=Math.max(h,w);if(g<S){const f=g+m,x=Math.min(S,f),C=f-x;p.style.height=x+"px",p.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});qy.displayName=Yu;var Xy="SelectGroup",[Lk,Dk]=Oo(Xy),Fk=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Di();return c.jsx(Lk,{scope:n,id:o,children:c.jsx(J.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Fk.displayName=Xy;var Zy="SelectLabel",Jy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Dk(Zy,n);return c.jsx(J.div,{id:o.id,...r,ref:t})});Jy.displayName=Zy;var ua="SelectItem",[zk,e0]=Oo(ua),t0=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Xn(ua,n),l=Zn(ua,n),u=a.value===r,[d,p]=v.useState(i??""),[y,m]=v.useState(!1),S=ve(t,f=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,f,r,o)}),h=Di(),w=v.useRef("touch"),g=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(zk,{scope:n,value:r,disabled:o,textId:h,isSelected:u,onItemTextChange:v.useCallback(f=>{p(x=>x||((f==null?void 0:f.textContent)??"").trim())},[]),children:c.jsx(Wa.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:c.jsx(J.div,{role:"option","aria-labelledby":h,"data-highlighted":y?"":void 0,"aria-selected":u&&y,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:S,onFocus:X(s.onFocus,()=>m(!0)),onBlur:X(s.onBlur,()=>m(!1)),onClick:X(s.onClick,()=>{w.current!=="mouse"&&g()}),onPointerUp:X(s.onPointerUp,()=>{w.current==="mouse"&&g()}),onPointerDown:X(s.onPointerDown,f=>{w.current=f.pointerType}),onPointerMove:X(s.onPointerMove,f=>{var x;w.current=f.pointerType,o?(x=l.onItemLeave)==null||x.call(l):w.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(s.onPointerLeave,f=>{var x;f.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:X(s.onKeyDown,f=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&f.key===" "||(bk.includes(f.key)&&g(),f.key===" "&&f.preventDefault())})})})})});t0.displayName=ua;var qo="SelectItemText",n0=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Xn(qo,n),a=Zn(qo,n),l=e0(qo,n),u=Tk(qo,n),[d,p]=v.useState(null),y=ve(t,g=>p(g),l.onItemTextChange,g=>{var f;return(f=a.itemTextRefCallback)==null?void 0:f.call(a,g,l.value,l.disabled)}),m=d==null?void 0:d.textContent,S=v.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:h,onNativeOptionRemove:w}=u;return Ne(()=>(h(S),()=>w(S)),[h,w,S]),c.jsxs(c.Fragment,{children:[c.jsx(J.span,{id:l.textId,...i,ref:y}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Pr.createPortal(i.children,s.valueNode):null]})});n0.displayName=qo;var r0="SelectItemIndicator",o0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return e0(r0,n).isSelected?c.jsx(J.span,{"aria-hidden":!0,...r,ref:t}):null});o0.displayName=r0;var qu="SelectScrollUpButton",i0=v.forwardRef((e,t)=>{const n=Zn(qu,e.__scopeSelect),r=Cd(qu,e.__scopeSelect),[o,i]=v.useState(!1),s=ve(t,r.onScrollButtonChange);return Ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(a0,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});i0.displayName=qu;var Xu="SelectScrollDownButton",s0=v.forwardRef((e,t)=>{const n=Zn(Xu,e.__scopeSelect),r=Cd(Xu,e.__scopeSelect),[o,i]=v.useState(!1),s=ve(t,r.onScrollButtonChange);return Ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(a0,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});s0.displayName=Xu;var a0=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Zn("SelectScrollButton",n),s=v.useRef(null),a=Qa(n),l=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),Ne(()=>{var d;const u=a().find(p=>p.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),c.jsx(J.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{l()})})}),$k="SelectSeparator",l0=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(J.div,{"aria-hidden":!0,...r,ref:t})});l0.displayName=$k;var Zu="SelectArrow",Bk=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ka(n),i=Xn(Zu,n),s=Zn(Zu,n);return i.open&&s.position==="popper"?c.jsx(xg,{...o,...r,ref:t}):null});Bk.displayName=Zu;var Uk="SelectBubbleInput",u0=v.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=v.useRef(null),i=ve(r,o),s=LN(t);return v.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&d){const p=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(p)}},[s,t]),c.jsx(J.select,{...n,style:{...pv,...n.style},ref:i,defaultValue:t})});u0.displayName=Uk;function c0(e){return e===""||e===void 0}function d0(e){const t=yt(e),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(s=>{const a=n.current+s;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function f0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Vk(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Vk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Hk=zy,p0=By,Wk=Vy,Qk=Hy,Kk=Wy,m0=Qy,Gk=qy,h0=Jy,v0=t0,Yk=n0,qk=o0,g0=i0,y0=s0,x0=l0;const Xk=Hk,Zk=Wk,w0=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(p0,{ref:r,className:ie("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(Qk,{asChild:!0,children:c.jsx(ed,{className:"h-4 w-4 opacity-50"})})]}));w0.displayName=p0.displayName;const S0=v.forwardRef(({className:e,...t},n)=>c.jsx(g0,{ref:n,className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(sS,{className:"h-4 w-4"})}));S0.displayName=g0.displayName;const C0=v.forwardRef(({className:e,...t},n)=>c.jsx(y0,{ref:n,className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(ed,{className:"h-4 w-4"})}));C0.displayName=y0.displayName;const E0=v.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>c.jsx(Kk,{children:c.jsxs(m0,{ref:o,className:ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(S0,{}),c.jsx(Gk,{className:ie("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(C0,{})]})}));E0.displayName=m0.displayName;const Jk=v.forwardRef(({className:e,...t},n)=>c.jsx(h0,{ref:n,className:ie("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Jk.displayName=h0.displayName;const bt=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(v0,{ref:r,className:ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(qk,{children:c.jsx(iS,{className:"h-4 w-4"})})}),c.jsx(Yk,{children:t})]}));bt.displayName=v0.displayName;const eP=v.forwardRef(({className:e,...t},n)=>c.jsx(x0,{ref:n,className:ie("-mx-1 my-1 h-px bg-muted",e),...t}));eP.displayName=x0.displayName;const tP=()=>{const{toast:e}=sv(),{ref:t,isVisible:n}=_o({threshold:.1}),[r,o]=v.useState({name:"",whatsapp:"",email:"",caseType:"",message:""}),i=s=>{if(s.preventDefault(),!r.name||!r.whatsapp||!r.caseType){e({title:"Campos obrigatórios",description:"Por favor, preencha todos os campos obrigatórios.",variant:"destructive"});return}const a=`Olá! Meu nome é ${r.name}.
Tipo de caso: ${r.caseType}
${r.message}
E-mail: ${r.email}`,l=`https://wa.me/551151991450?text=${encodeURIComponent(a)}`;window.open(l,"_blank"),e({title:"Redirecionando...",description:"Você será direcionado para o WhatsApp."}),o({name:"",whatsapp:"",email:"",caseType:"",message:""})};return c.jsx("section",{id:"contact",ref:t,className:`py-6 md:py-8 lg:py-12 bg-secondary/30 transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-10"}`,children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-8 md:mb-10 lg:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Entre em contato"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Estamos prontos para ajudá-lo"})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 md:gap-8",children:[c.jsx(In,{className:"p-4 md:p-6 lg:p-8 bg-card border-border",children:c.jsxs("form",{onSubmit:i,className:"space-y-4 md:space-y-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"name",children:"Nome completo *"}),c.jsx(Ts,{id:"name",value:r.name,onChange:s=>o({...r,name:s.target.value}),placeholder:"Seu nome completo",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"whatsapp",children:"WhatsApp *"}),c.jsx(Ts,{id:"whatsapp",type:"tel",value:r.whatsapp,onChange:s=>o({...r,whatsapp:s.target.value}),placeholder:"(11) 5199-1450",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"email",children:"E-mail"}),c.jsx(Ts,{id:"email",type:"email",value:r.email,onChange:s=>o({...r,email:s.target.value}),placeholder:"seu@email.com"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"caseType",children:"Tipo de caso *"}),c.jsxs(Xk,{value:r.caseType,onValueChange:s=>o({...r,caseType:s}),children:[c.jsx(w0,{children:c.jsx(Zk,{placeholder:"Selecione o tipo de caso"})}),c.jsxs(E0,{className:"bg-popover",children:[c.jsx(bt,{value:"divorcio",children:"Divórcio"}),c.jsx(bt,{value:"separacao",children:"Separação de corpos"}),c.jsx(bt,{value:"uniao-estavel",children:"União estável"}),c.jsx(bt,{value:"pensao",children:"Pensão alimentícia"}),c.jsx(bt,{value:"guarda",children:"Guarda de filhos"}),c.jsx(bt,{value:"inventario",children:"Inventário"}),c.jsx(bt,{value:"paternidade",children:"Investigação de paternidade"}),c.jsx(bt,{value:"acordos",children:"Acordos de convivência"}),c.jsx(bt,{value:"doacoes",children:"Doações em vida"}),c.jsx(bt,{value:"outro",children:"Outro"})]})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Lr,{htmlFor:"message",children:"Mensagem"}),c.jsx(Ny,{id:"message",value:r.message,onChange:s=>o({...r,message:s.target.value}),placeholder:"Descreva brevemente seu caso...",rows:4})]}),c.jsxs(Cr,{type:"submit",variant:"whatsapp",size:"lg",className:"w-full",children:[c.jsx(mS,{className:"h-5 w-5"}),"Enviar mensagem"]})]})}),c.jsxs("div",{className:"space-y-4 md:space-y-6",children:[c.jsx(In,{className:"p-4 md:p-6 bg-card border-border",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Lv,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Sigilo garantido"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Garantimos sigilo total e resposta rápida. Todas as informações são tratadas com confidencialidade absoluta."})]})]})}),c.jsx(In,{className:"p-4 md:p-6 bg-card border-border",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Dv,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Atendimento rápido"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Nossa equipe responde rapidamente para avaliar seu caso e oferecer as melhores soluções."}),c.jsx("a",{href:"tel:551151991450",className:"text-sm font-medium text-primary hover:underline",children:"(11) 5199-1450"})]})]})}),c.jsx(In,{className:"p-4 md:p-6 bg-card border-border",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(fS,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"E-mail profissional"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Prefere enviar um e-mail? Entre em contato conosco:"}),c.jsx("a",{className:"text-sm font-medium text-primary hover:underline",href:"mailto:contato@seuadvogado.com.br",children:"contato@seuadvogadoja.com.br"})]})]})})]})]})]})})})},nP=()=>c.jsx("footer",{className:"bg-primary text-primary-foreground py-6 md:py-8 lg:py-10",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"grid md:grid-cols-3 gap-6 md:gap-8 mb-6 md:mb-8",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[c.jsx("div",{className:"flex items-center justify-center w-10 h-10 rounded-full bg-primary-foreground/10",children:c.jsx("span",{className:"text-xl font-bold",children:"⚖️"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-bold",children:"Direito Civil"}),c.jsx("p",{className:"text-sm opacity-80",children:"Advocacia Especializada"})]})]}),c.jsx("p",{className:"opacity-80 text-lg",children:"Soluções jurídicas com excelência e humanização para você e sua família."})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4",children:"Serviços"}),c.jsxs("ul",{className:"space-y-2 text-sm opacity-80",children:[c.jsx("li",{children:"Divórcio e Separação"}),c.jsx("li",{children:"Guarda de Filhos"}),c.jsx("li",{children:"Pensão Alimentícia"}),c.jsx("li",{children:"Inventário"}),c.jsx("li",{children:"União Estável"})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4",children:"Contato"}),c.jsxs("ul",{className:"space-y-2 text-sm opacity-80",children:[c.jsx("li",{children:"WhatsApp: (11) 5199-1450"}),c.jsx("li",{children:"Email: contato@direitocivil.com.br"}),c.jsx("li",{children:"Atendimento 100% Online"})]})]})]}),c.jsxs("div",{className:"border-t border-primary-foreground/20 pt-8",children:[c.jsxs("p",{className:"text-sm text-center opacity-80",children:["© ",new Date().getFullYear()," Direito Civil - Advocacia Especializada. Todos os direitos reservados."]}),c.jsx("p",{className:"text-xs text-center opacity-60 mt-2",children:"Este site tem caráter meramente informativo, conforme o Código de Ética da OAB."})]})]})}),rP=()=>{const e=()=>{window.open("https://wa.me/551151991450","_blank")};return c.jsxs("button",{onClick:e,className:"fixed bottom-4 right-4 md:bottom-6 md:right-6 z-50 w-14 h-14 md:w-16 md:h-16 bg-[#25D366] hover:bg-[#20BA5A] text-white rounded-full shadow-lg hover:shadow-2xl transition-all duration-300 hover:scale-110 flex items-center justify-center animate-fade-in group","aria-label":"Contato via WhatsApp",children:[c.jsx(To,{className:"h-7 w-7 md:h-8 md:w-8 group-hover:rotate-3 transition-transform"}),c.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-red-500 rounded-full animate-pulse"})]})},oP=()=>c.jsxs("div",{className:"min-h-screen",children:[c.jsx(R2,{}),c.jsxs("main",{children:[c.jsx(A2,{}),c.jsx(F2,{}),c.jsx(rN,{}),c.jsx(oN,{}),c.jsx(NN,{}),c.jsx(tP,{})]}),c.jsx(nP,{}),c.jsx(rP,{})]}),iP=()=>{const e=Vg();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},sP=new $b,aP=()=>c.jsx(Ub,{client:sP,children:c.jsxs(vb,{children:[c.jsx(ZS,{}),c.jsx(jC,{}),c.jsx(P2,{children:c.jsxs(b2,{children:[c.jsx(Hu,{path:"/",element:c.jsx(oP,{})}),c.jsx(Hu,{path:"*",element:c.jsx(iP,{})})]})})]})});iv(document.getElementById("root")).render(c.jsx(aP,{}));