var Hc=e=>{throw TypeError(e)};var _l=(e,t,n)=>t.has(e)||Hc("Cannot "+n);var j=(e,t,n)=>(_l(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Hc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(_l(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Me=(e,t,n)=>(_l(e,t,"access private method"),n);var zi=(e,t,n,r)=>({set _(o){q(e,t,o,n)},get _(){return j(e,t,r)}});function rv(e,t){for(var n=0;nr[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 ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tp={exports:{}},tl={},np={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 Ci=Symbol.for("react.element"),ov=Symbol.for("react.portal"),iv=Symbol.for("react.fragment"),sv=Symbol.for("react.strict_mode"),lv=Symbol.for("react.profiler"),av=Symbol.for("react.provider"),uv=Symbol.for("react.context"),cv=Symbol.for("react.forward_ref"),dv=Symbol.for("react.suspense"),fv=Symbol.for("react.memo"),pv=Symbol.for("react.lazy"),Qc=Symbol.iterator;function hv(e){return e===null||typeof e!="object"?null:(e=Qc&&e[Qc]||e["@@iterator"],typeof e=="function"?e:null)}var rp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},op=Object.assign,ip={};function vo(e,t,n){this.props=e,this.context=t,this.refs=ip,this.updater=n||rp}vo.prototype.isReactComponent={};vo.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")};vo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sp(){}sp.prototype=vo.prototype;function Nu(e,t,n){this.props=e,this.context=t,this.refs=ip,this.updater=n||rp}var Pu=Nu.prototype=new sp;Pu.constructor=Nu;op(Pu,vo.prototype);Pu.isPureReactComponent=!0;var Kc=Array.isArray,lp=Object.prototype.hasOwnProperty,Tu={current:null},ap={key:!0,ref:!0,__self:!0,__source:!0};function up(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)lp.call(t,r)&&!ap.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,$=P[V];if(0>>1;Vo(ie,_))ve<$&&0>o(Y,ie)?(P[V]=Y,P[ve]=_,V=ve):(P[V]=ie,P[K]=_,V=K);else if(ve<$&&0>o(Y,_))P[V]=Y,P[ve]=_,V=ve;else break e}}return T}function o(P,T){var _=P.sortIndex-T.sortIndex;return _!==0?_:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,m=3,f=!1,w=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=P)r(u),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(u)}}function E(P){if(g=!1,v(P),!w)if(n(a)!==null)w=!0,B(b);else{var T=n(u);T!==null&&U(E,T.startTime-P)}}function b(P,T){w=!1,g&&(g=!1,h(N),N=-1),f=!0;var _=m;try{for(v(T),d=n(a);d!==null&&(!(d.expirationTime>T)||P&&!D());){var V=d.callback;if(typeof V=="function"){d.callback=null,m=d.priorityLevel;var $=V(d.expirationTime<=T);T=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(a)&&r(a),v(T)}else r(a);d=n(a)}if(d!==null)var Q=!0;else{var K=n(u);K!==null&&U(E,K.startTime-T),Q=!1}return Q}finally{d=null,m=_,f=!1}}var k=!1,C=null,N=-1,R=5,O=-1;function D(){return!(e.unstable_now()-OP||125V?(P.sortIndex=_,t(u,P),n(a)===null&&P===n(u)&&(g?(h(N),N=-1):g=!0,U(E,_-V))):(P.sortIndex=$,t(a,P),w||f||(w=!0,B(b))),P},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(P){var T=m;return function(){var _=m;m=T;try{return P.apply(this,arguments)}finally{m=_}}}})(mp);hp.exports=mp;var kv=hp.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 Nv=S,ft=kv;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ga=Object.prototype.hasOwnProperty,Pv=/^[: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]*$/,Yc={},qc={};function Tv(e){return ga.call(qc,e)?!0:ga.call(Yc,e)?!1:Pv.test(e)?qc[e]=!0:(Yc[e]=!0,!1)}function jv(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 Rv(e,t,n,r){if(t===null||typeof t>"u"||jv(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 Ge(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 Ge(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 Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ge(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 Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ru=/[\-:]([a-z])/g;function Ou(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(Ru,Ou);Ie[t]=new Ge(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(Ru,Ou);Ie[t]=new Ge(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(Ru,Ou);Ie[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Au(e,t,n,r){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Fl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_o(e):""}function Ov(e){switch(e.tag){case 5:return _o(e.type);case 16:return _o("Lazy");case 13:return _o("Suspense");case 19:return _o("SuspenseList");case 0:case 2:case 15:return e=$l(e.type,!1),e;case 11:return e=$l(e.type.render,!1),e;case 1:return e=$l(e.type,!0),e;default:return""}}function wa(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 Lr:return"Fragment";case Ar:return"Portal";case va:return"Profiler";case Lu:return"StrictMode";case ya:return"Suspense";case xa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yp:return(e.displayName||"Context")+".Consumer";case vp:return(e._context.displayName||"Context")+".Provider";case Iu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mu:return t=e.displayName||null,t!==null?t:wa(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return wa(e(t))}catch{}}return null}function Av(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 wa(t);case 8:return t===Lu?"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 Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lv(e){var t=wp(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 Bi(e){e._valueTracker||(e._valueTracker=Lv(e))}function Sp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Es(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 Sa(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yn(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 Ep(e,t){t=t.checked,t!=null&&Au(e,"checked",t,!1)}function Ea(e,t){Ep(e,t);var n=Yn(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")?ba(e,t.type,n):t.hasOwnProperty("defaultValue")&&ba(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jc(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 ba(e,t,n){(t!=="number"||Es(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Do=Array.isArray;function Wr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bo={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},Iv=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){Iv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});function Np(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function Pp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Np(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Mv=ge({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 Na(e,t){if(t){if(Mv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Pa(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 Ta=null;function _u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,Hr=null,Qr=null;function nd(e){if(e=Pi(e)){if(typeof ja!="function")throw Error(L(280));var t=e.stateNode;t&&(t=sl(t),ja(e.stateNode,e.type,t))}}function Tp(e){Hr?Qr?Qr.push(e):Qr=[e]:Hr=e}function jp(){if(Hr){var e=Hr,t=Qr;if(Qr=Hr=null,nd(e),t)for(e=0;e>>=0,e===0?32:31-(Qv(e)/Kv|0)|0}var Vi=64,Wi=4194304;function zo(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 Ns(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 l=s&~o;l!==0?r=zo(l):(i&=s,i!==0&&(r=zo(i)))}else s=n&~o,s!==0?r=zo(s):i!==0&&(r=zo(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;0n;n++)t.push(e);return t}function ki(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function Xv(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=Vo),dd=" ",fd=!1;function Yp(e,t){switch(e){case"keyup":return ky.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function Py(e,t){switch(e){case"compositionend":return qp(t);case"keypress":return t.which!==32?null:(fd=!0,dd);case"textInput":return e=t.data,e===dd&&fd?null:e;default:return null}}function Ty(e,t){if(Ir)return e==="compositionend"||!Wu&&Yp(e,t)?(e=Kp(),cs=Bu=zn=null,Ir=!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)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=gd(n)}}function eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function th(){for(var e=window,t=Es();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Es(e.document)}return t}function Hu(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 Dy(e){var t=th(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eh(n.ownerDocument.documentElement,n)){if(r!==null&&Hu(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=vd(n,i);var s=vd(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=document.documentMode,Mr=null,Ma=null,Ho=null,_a=!1;function yd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_a||Mr==null||Mr!==Es(r)||(r=Mr,"selectionStart"in r&&Hu(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}),Ho&&ii(Ho,r)||(Ho=r,r=js(Ma,"onSelect"),0zr||(e.current=Ua[zr],Ua[zr]=null,zr--)}function le(e,t){zr++,Ua[zr]=e.current,e.current=t}var qn={},$e=rr(qn),Je=rr(!1),xr=qn;function ao(e,t){var n=e.type.contextTypes;if(!n)return qn;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 et(e){return e=e.childContextTypes,e!=null}function Os(){de(Je),de($e)}function kd(e,t,n){if($e.current!==qn)throw Error(L(168));le($e,t),le(Je,n)}function ch(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(L(108,Av(e)||"Unknown",o));return ge({},n,r)}function As(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,xr=$e.current,le($e,e),le(Je,Je.current),!0}function Nd(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=ch(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,de(Je),de($e),le($e,e)):de(Je),le(Je,n)}var an=null,ll=!1,ea=!1;function dh(e){an===null?an=[e]:an.push(e)}function Yy(e){ll=!0,dh(e)}function or(){if(!ea&&an!==null){ea=!0;var e=0,t=oe;try{var n=an;for(oe=1;e>=s,o-=s,cn=1<<32-Dt(t)+o|n<N?(R=C,C=null):R=C.sibling;var O=m(h,C,v[N],E);if(O===null){C===null&&(C=R);break}e&&C&&O.alternate===null&&t(h,C),p=i(O,p,N),k===null?b=O:k.sibling=O,k=O,C=R}if(N===v.length)return n(h,C),fe&&sr(h,N),b;if(C===null){for(;NN?(R=C,C=null):R=C.sibling;var D=m(h,C,O.value,E);if(D===null){C===null&&(C=R);break}e&&C&&D.alternate===null&&t(h,C),p=i(D,p,N),k===null?b=D:k.sibling=D,k=D,C=R}if(O.done)return n(h,C),fe&&sr(h,N),b;if(C===null){for(;!O.done;N++,O=v.next())O=d(h,O.value,E),O!==null&&(p=i(O,p,N),k===null?b=O:k.sibling=O,k=O);return fe&&sr(h,N),b}for(C=r(h,C);!O.done;N++,O=v.next())O=f(C,h,N,O.value,E),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?N:O.key),p=i(O,p,N),k===null?b=O:k.sibling=O,k=O);return e&&C.forEach(function(M){return t(h,M)}),fe&&sr(h,N),b}function y(h,p,v,E){if(typeof v=="object"&&v!==null&&v.type===Lr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case $i:e:{for(var b=v.key,k=p;k!==null;){if(k.key===b){if(b=v.type,b===Lr){if(k.tag===7){n(h,k.sibling),p=o(k,v.props.children),p.return=h,h=p;break e}}else if(k.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===jn&&jd(b)===k.type){n(h,k.sibling),p=o(k,v.props),p.ref=Oo(h,k,v),p.return=h,h=p;break e}n(h,k);break}else t(h,k);k=k.sibling}v.type===Lr?(p=yr(v.props.children,h.mode,E,v.key),p.return=h,h=p):(E=ys(v.type,v.key,v.props,null,h.mode,E),E.ref=Oo(h,p,v),E.return=h,h=E)}return s(h);case Ar:e:{for(k=v.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=aa(v,h.mode,E),p.return=h,h=p}return s(h);case jn:return k=v._init,y(h,p,k(v._payload),E)}if(Do(v))return w(h,p,v,E);if(No(v))return g(h,p,v,E);Xi(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=la(v,h.mode,E),p.return=h,h=p),s(h)):n(h,p)}return y}var co=mh(!0),gh=mh(!1),Ms=rr(null),_s=null,Br=null,Yu=null;function qu(){Yu=Br=_s=null}function Xu(e){var t=Ms.current;de(Ms),e._currentValue=t}function Ha(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 Gr(e,t){_s=e,Yu=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Yu!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(_s===null)throw Error(L(308));Br=e,_s.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ur=null;function Zu(e){ur===null?ur=[e]:ur.push(e)}function vh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zu(t)):(n.next=o.next,o.next=n),t.interleaved=n,mn(e,r)}function mn(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 Rn=!1;function Ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yh(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 fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,mn(e,n)}return o=r.interleaved,o===null?(t.next=t,Zu(r)):(t.next=o.next,o.next=t),r.interleaved=t,mn(e,n)}function fs(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,zu(e,n)}}function Rd(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 Ds(e,t,n,r){var o=e.updateQueue;Rn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=null,l=i;do{var m=l.lane,f=l.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,g=l;switch(m=t,f=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){d=w.call(f,d,m);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,m=typeof w=="function"?w.call(f,d,m):w,m==null)break e;d=ge({},d,m);break e;case 2:Rn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else f={eventTime:f,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,a=d):c=c.next=f,s|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(c===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,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);Er|=s,e.lanes=s,e.memoizedState=d}}function Od(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=na.transition;na.transition={};try{e(!1),t()}finally{oe=n,na.transition=r}}function Mh(){return St().memoizedState}function Jy(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_h(e))Dh(t,n);else if(n=vh(e,t,n,r),n!==null){var o=Qe();zt(n,e,r,o),zh(n,t,r)}}function e0(e,t,n){var r=Kn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))Dh(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,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,$t(l,s)){var a=t.interleaved;a===null?(o.next=o,Zu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=vh(e,t,o,r),n!==null&&(o=Qe(),zt(n,e,r,o),zh(n,t,r))}}function _h(e){var t=e.alternate;return e===me||t!==null&&t===me}function Dh(e,t){Qo=Fs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zu(e,n)}}var $s={readContext:wt,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},t0={readContext:wt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Ld,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hs(4194308,4,Rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hs(4194308,4,e,t)},useInsertionEffect:function(e,t){return hs(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();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=Jy.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Ad,useDebugValue:lc,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Ad(!1),t=e[0];return e=Zy.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,o=Qt();if(fe){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Oe===null)throw Error(L(349));Sr&30||Eh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ld(Ch.bind(null,r,i,e),[e]),r.flags|=2048,pi(9,bh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Oe.identifierPrefix;if(fe){var n=dn,r=cn;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<\/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[qt]=t,e[ai]=r,Gh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Pa(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;oho&&(t.flags|=128,r=!0,Ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=zs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return De(t),null}else 2*Se()-i.renderingStartTime>ho&&n!==1073741824&&(t.flags|=128,r=!0,Ao(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=Se(),t.sibling=null,n=pe.current,le(pe,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function u0(e,t){switch(Ku(t),t.tag){case 1:return et(t.type)&&Os(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fo(),de(Je),de($e),nc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tc(t),null;case 13:if(de(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));uo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(pe),null;case 4:return fo(),null;case 10:return Xu(t.type._context),null;case 22:case 23:return pc(),null;case 24:return null;default:return null}}var Ji=!1,Fe=!1,c0=typeof WeakSet=="function"?WeakSet:Set,z=null;function Ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Wd=!1;function d0(e,t){if(Da=Ps,e=th(),Hu(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,l=-1,a=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var f;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(f=d.firstChild)!==null;)m=d,d=f;for(;;){if(d===e)break t;if(m===n&&++u===o&&(l=s),m===i&&++c===r&&(a=s),(f=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(za={focusedElem:e,selectionRange:n},Ps=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,y=w.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ot(t.type,g),y);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(E){we(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return w=Wd,Wd=!1,w}function Ko(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&&eu(t,n,i)}o=o.next}while(o!==r)}}function cl(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 tu(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 Xh(e){var t=e.alternate;t!==null&&(e.alternate=null,Xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[ai],delete t[Ba],delete t[Ky],delete t[Gy])),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 Zh(e){return e.tag===5||e.tag===3||e.tag===4}function Hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zh(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 nu(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=Rs));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}function ru(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(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}var Ae=null,Mt=!1;function kn(e,t,n){for(n=n.child;n!==null;)Jh(e,t,n),n=n.sibling}function Jh(e,t,n){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 5:Fe||Ur(n,t);case 6:var r=Ae,o=Mt;Ae=null,kn(e,t,n),Ae=r,Mt=o,Ae!==null&&(Mt?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(Mt?(e=Ae,n=n.stateNode,e.nodeType===8?Jl(e.parentNode,n):e.nodeType===1&&Jl(e,n),ri(e)):Jl(Ae,n.stateNode));break;case 4:r=Ae,o=Mt,Ae=n.stateNode.containerInfo,Mt=!0,kn(e,t,n),Ae=r,Mt=o;break;case 0:case 11:case 14:case 15:if(!Fe&&(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)&&eu(n,t,s),o=o.next}while(o!==r)}kn(e,t,n);break;case 1:if(!Fe&&(Ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){we(n,t,l)}kn(e,t,n);break;case 21:kn(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,kn(e,t,n),Fe=r):kn(e,t,n);break;default:kn(e,t,n)}}function Qd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new c0),t.forEach(function(r){var o=w0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p0(r/1960))-r,10e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,Vs=0,ee&6)throw Error(L(331));var o=ee;for(ee|=4,z=e.current;z!==null;){var i=z,s=i.child;if(z.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aSe()-dc?vr(e,0):cc|=n),tt(e,t)}function lm(e,t){t===0&&(e.mode&1?(t=Wi,Wi<<=1,!(Wi&130023424)&&(Wi=4194304)):t=1);var n=Qe();e=mn(e,t),e!==null&&(ki(e,t,n),tt(e,n))}function x0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lm(e,n)}function w0(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(L(314))}r!==null&&r.delete(t),lm(e,n)}var am;am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ze=!1,l0(e,t,n);Ze=!!(e.flags&131072)}else Ze=!1,fe&&t.flags&1048576&&fh(t,Is,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ms(e,t),e=t.pendingProps;var o=ao(t,$e.current);Gr(t,n),o=oc(null,t,r,e,o,n);var i=ic();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,et(r)?(i=!0,As(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ju(t),o.updater=ul,t.stateNode=o,o._reactInternals=t,Ka(t,r,e,n),t=qa(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Qu(t),We(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ms(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=E0(r),e=Ot(r,e),o){case 0:t=Ya(null,t,r,e,n);break e;case 1:t=Bd(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=$d(null,t,r,Ot(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Ya(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Bd(e,t,r,o,n);case 3:e:{if(Hh(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yh(e,t),Ds(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=po(Error(L(423)),t),t=Ud(e,t,r,n,o);break e}else if(r!==o){o=po(Error(L(424)),t),t=Ud(e,t,r,n,o);break e}else for(ut=Wn(t.stateNode.containerInfo.firstChild),ct=t,fe=!0,_t=null,n=gh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uo(),r===o){t=gn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return xh(t),e===null&&Wa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Fa(r,o)?s=null:i!==null&&Fa(r,i)&&(t.flags|=32),Wh(e,t),We(e,t,s,n),t.child;case 6:return e===null&&Wa(t),null;case 13:return Qh(e,t,n);case 4:return ec(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Fd(e,t,r,o,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(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,le(Ms,r._currentValue),r._currentValue=s,i!==null)if($t(i.value,s)){if(i.children===o.children&&!Je.current){t=gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=fn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ha(i.return,n,t),l.lanes|=n;break}a=a.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(L(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ha(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}We(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gr(t,n),o=wt(o),r=r(o),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,o=Ot(r,t.pendingProps),o=Ot(r.type,o),$d(e,t,r,o,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),ms(e,t),t.tag=1,et(r)?(e=!0,As(t)):e=!1,Gr(t,n),Fh(t,r,o),Ka(t,r,o,n),qa(null,t,r,!0,e,n);case 19:return Kh(e,t,n);case 22:return Vh(e,t,n)}throw Error(L(156,t.tag))};function um(e,t){return _p(e,t)}function S0(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 yt(e,t,n,r){return new S0(e,t,n,r)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E0(e){if(typeof e=="function")return mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Iu)return 11;if(e===Mu)return 14}return 2}function Gn(e,t){var n=e.alternate;return n===null?(n=yt(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 ys(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")mc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Lr:return yr(n.children,o,i,t);case Lu:s=8,o|=8;break;case va:return e=yt(12,n,t,o|2),e.elementType=va,e.lanes=i,e;case ya:return e=yt(13,n,t,o),e.elementType=ya,e.lanes=i,e;case xa:return e=yt(19,n,t,o),e.elementType=xa,e.lanes=i,e;case xp:return fl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vp:s=10;break e;case yp:s=9;break e;case Iu:s=11;break e;case Mu:s=14;break e;case jn:s=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=yt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function yr(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function fl(e,t,n,r){return e=yt(22,e,r,t),e.elementType=xp,e.lanes=n,e.stateNode={isHidden:!1},e}function la(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function aa(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function b0(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=Ul(0),this.expirationTimes=Ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ul(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gc(e,t,n,r,o,i,s,l,a){return e=new b0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ju(i),e}function C0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pm)}catch(e){console.error(e)}}pm(),pp.exports=pt;var ji=pp.exports;const hm=ep(ji);var mm,ef=ji;mm=ef.createRoot,ef.hydrateRoot;const j0=1,R0=1e6;let ua=0;function O0(){return ua=(ua+1)%Number.MAX_SAFE_INTEGER,ua.toString()}const ca=new Map,tf=e=>{if(ca.has(e))return;const t=setTimeout(()=>{ca.delete(e),qo({type:"REMOVE_TOAST",toastId:e})},R0);ca.set(e,t)},A0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,j0)};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?tf(n):e.toasts.forEach(r=>{tf(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)}}},xs=[];let ws={toasts:[]};function qo(e){ws=A0(ws,e),xs.forEach(t=>{t(ws)})}function L0({...e}){const t=O0(),n=o=>qo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>qo({type:"DISMISS_TOAST",toastId:t});return qo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function I0(){const[e,t]=S.useState(ws);return S.useEffect(()=>(xs.push(t),()=>{const n=xs.indexOf(t);n>-1&&xs.splice(n,1)}),[e]),{...e,toast:L0,dismiss:n=>qo({type:"DISMISS_TOAST",toastId:n})}}function Ne(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 nf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=nf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var h;const{scope:m,children:f,...w}=d,g=((h=m==null?void 0:m[e])==null?void 0:h[a])||l,y=S.useMemo(()=>w,Object.values(w));return x.jsx(g.Provider,{value:y,children:f})};u.displayName=i+"Provider";function c(d,m){var g;const f=((g=m==null?void 0:m[e])==null?void 0:g[a])||l,w=S.useContext(f);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>S.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,M0(o,...t)]}function M0(...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((l,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...l,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Qs(e){const t=D0(e),n=S.forwardRef((r,o)=>{const{children:i,...s}=r,l=S.Children.toArray(i),a=l.find(F0);if(a){const u=a.props.children,c=l.map(d=>d===a?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:d);return x.jsx(t,{...s,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,c):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var _0=Qs("Slot");function D0(e){const t=S.forwardRef((n,r)=>{const{children:o,...i}=n;if(S.isValidElement(o)){const s=B0(o),l=$0(i,o.props);return o.type!==S.Fragment&&(l.ref=r?gm(r,s):s),S.cloneElement(o,l)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vm=Symbol("radix.slottable");function z0(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=vm,t}function F0(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vm}function $0(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]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function B0(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 U0(e){const t=e+"CollectionProvider",[n,r]=vl(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:y,children:h}=g,p=I.useRef(null),v=I.useRef(new Map).current;return x.jsx(o,{scope:y,itemMap:v,collectionRef:p,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=Qs(l),u=I.forwardRef((g,y)=>{const{scope:h,children:p}=g,v=i(l,h),E=Bt(y,v.collectionRef);return x.jsx(a,{ref:E,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",d="data-radix-collection-item",m=Qs(c),f=I.forwardRef((g,y)=>{const{scope:h,children:p,...v}=g,E=I.useRef(null),b=Bt(y,E),k=i(c,h);return I.useEffect(()=>(k.itemMap.set(E,{ref:E,...v}),()=>void k.itemMap.delete(E))),x.jsx(m,{[d]:"",ref:b,children:p})});f.displayName=c;function w(g){const y=i(e+"CollectionConsumer",g);return I.useCallback(()=>{const p=y.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((k,C)=>v.indexOf(k.ref.current)-v.indexOf(C.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},w,r]}var V0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rt=V0.reduce((e,t)=>{const n=Qs(`Primitive.${t}`),r=S.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ym(e,t){e&&ji.flushSync(()=>e.dispatchEvent(t))}function Xn(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function W0(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e);S.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 H0="DismissableLayer",au="dismissableLayer.update",Q0="dismissableLayer.pointerDownOutside",K0="dismissableLayer.focusOutside",rf,xm=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wc=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=S.useContext(xm),[c,d]=S.useState(null),m=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=S.useState({}),w=Bt(t,C=>d(C)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=g.indexOf(y),p=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=h,b=Y0(C=>{const N=C.target,R=[...u.branches].some(O=>O.contains(N));!E||R||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},m),k=q0(C=>{const N=C.target;[...u.branches].some(O=>O.contains(N))||(i==null||i(C),s==null||s(C),C.defaultPrevented||l==null||l())},m);return W0(C=>{p===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},m),S.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(rf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),of(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=rf)}},[c,m,n,u]),S.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),of())},[c,u]),S.useEffect(()=>{const C=()=>f({});return document.addEventListener(au,C),()=>document.removeEventListener(au,C)},[]),x.jsx(rt.div,{...a,ref:w,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,b.onPointerDownCapture)})});wc.displayName=H0;var G0="DismissableLayerBranch",wm=S.forwardRef((e,t)=>{const n=S.useContext(xm),r=S.useRef(null),o=Bt(t,r);return S.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(rt.div,{...e,ref:o})});wm.displayName=G0;function Y0(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Sm(Q0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}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 q0(e,t=globalThis==null?void 0:globalThis.document){const n=Xn(e),r=S.useRef(!1);return S.useEffect(()=>{const o=i=>{i.target&&!r.current&&Sm(K0,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 of(){const e=new CustomEvent(au);document.dispatchEvent(e)}function Sm(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?ym(o,i):o.dispatchEvent(i)}var X0=wc,Z0=wm,Zn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},J0="Portal",Em=S.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=S.useState(!1);Zn(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?hm.createPortal(x.jsx(rt.div,{...r,ref:t}),s):null});Em.displayName=J0;function e1(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var Sc=e=>{const{present:t,children:n}=e,r=t1(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=Bt(r.ref,n1(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:i}):null};Sc.displayName="Presence";function t1(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),i=S.useRef("none"),s=e?"mounted":"unmounted",[l,a]=e1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=ns(r.current);i.current=l==="mounted"?u:"none"},[l]),Zn(()=>{const u=r.current,c=o.current;if(c!==e){const m=i.current,f=ns(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&m!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Zn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const g=ns(r.current).includes(f.animationName);if(f.target===t&&g&&(a("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=f=>{f.target===t&&(i.current=ns(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ns(e){return(e==null?void 0:e.animationName)||"none"}function n1(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 r1=dp[" useInsertionEffect ".trim().toString()]||Zn;function o1({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=i1({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=S.useRef(e!==void 0);S.useEffect(()=>{const d=c.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"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.`),c.current=l},[l,r])}const u=S.useCallback(c=>{var d;if(l){const m=s1(c)?c(e):c;m!==e&&((d=s.current)==null||d.call(s,m))}else i(c)},[l,e,i,s]);return[a,u]}function i1({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),i=S.useRef(t);return r1(()=>{i.current=t},[t]),S.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function s1(e){return typeof e=="function"}var l1=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"}),a1="VisuallyHidden",yl=S.forwardRef((e,t)=>x.jsx(rt.span,{...e,ref:t,style:{...l1,...e.style}}));yl.displayName=a1;var u1=yl,Ec="ToastProvider",[bc,c1,d1]=U0("Toast"),[bm,h2]=vl("Toast",[d1]),[f1,xl]=bm(Ec),Cm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=S.useState(null),[u,c]=S.useState(0),d=S.useRef(!1),m=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ec}\`. Expected non-empty \`string\`.`),x.jsx(bc.Provider,{scope:t,children:x.jsx(f1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:S.useCallback(()=>c(f=>f+1),[]),onToastRemove:S.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:m,children:s})})};Cm.displayName=Ec;var km="ToastViewport",p1=["F8"],uu="toast.viewportPause",cu="toast.viewportResume",Nm=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=p1,label:o="Notifications ({hotkey})",...i}=e,s=xl(km,n),l=c1(n),a=S.useRef(null),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),m=Bt(t,d,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;S.useEffect(()=>{const y=h=>{var v;r.length!==0&&r.every(E=>h[E]||h.code===E)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),S.useEffect(()=>{const y=a.current,h=d.current;if(w&&y&&h){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(uu);h.dispatchEvent(k),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(cu);h.dispatchEvent(k),s.isClosePausedRef.current=!1}},E=k=>{!y.contains(k.relatedTarget)&&v()},b=()=>{y.contains(document.activeElement)||v()};return y.addEventListener("focusin",p),y.addEventListener("focusout",E),y.addEventListener("pointermove",p),y.addEventListener("pointerleave",b),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{y.removeEventListener("focusin",p),y.removeEventListener("focusout",E),y.removeEventListener("pointermove",p),y.removeEventListener("pointerleave",b),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[w,s.isClosePausedRef]);const g=S.useCallback(({tabbingDirection:y})=>{const p=l().map(v=>{const E=v.ref.current,b=[E,...N1(E)];return y==="forwards"?b:b.reverse()});return(y==="forwards"?p.reverse():p).flat()},[l]);return S.useEffect(()=>{const y=d.current;if(y){const h=p=>{var b,k,C;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const N=document.activeElement,R=p.shiftKey;if(p.target===y&&R){(b=u.current)==null||b.focus();return}const M=g({tabbingDirection:R?"backwards":"forwards"}),H=M.findIndex(A=>A===N);da(M.slice(H+1))?p.preventDefault():R?(k=u.current)==null||k.focus():(C=c.current)==null||C.focus()}};return y.addEventListener("keydown",h),()=>y.removeEventListener("keydown",h)}},[l,g]),x.jsxs(Z0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&x.jsx(du,{ref:u,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"forwards"});da(y)}}),x.jsx(bc.Slot,{scope:n,children:x.jsx(rt.ol,{tabIndex:-1,...i,ref:m})}),w&&x.jsx(du,{ref:c,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"backwards"});da(y)}})]})});Nm.displayName=km;var Pm="ToastFocusProxy",du=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=xl(Pm,n);return x.jsx(yl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});du.displayName=Pm;var Ri="Toast",h1="toast.swipeStart",m1="toast.swipeMove",g1="toast.swipeCancel",v1="toast.swipeEnd",Tm=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=o1({prop:r,defaultProp:o??!0,onChange:i,caller:Ri});return x.jsx(Sc,{present:n||l,children:x.jsx(w1,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:Xn(e.onPause),onResume:Xn(e.onResume),onSwipeStart:Ne(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ne(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ne(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:Ne(e.onSwipeEnd,u=>{const{x:c,y:d}=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",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),a(!1)})})})});Tm.displayName=Ri;var[y1,x1]=bm(Ri,{onClose(){}}),w1=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:m,onSwipeEnd:f,...w}=e,g=xl(Ri,n),[y,h]=S.useState(null),p=Bt(t,A=>h(A)),v=S.useRef(null),E=S.useRef(null),b=o||g.duration,k=S.useRef(0),C=S.useRef(b),N=S.useRef(0),{onToastAdd:R,onToastRemove:O}=g,D=Xn(()=>{var W;(y==null?void 0:y.contains(document.activeElement))&&((W=g.viewport)==null||W.focus()),s()}),M=S.useCallback(A=>{!A||A===1/0||(window.clearTimeout(N.current),k.current=new Date().getTime(),N.current=window.setTimeout(D,A))},[D]);S.useEffect(()=>{const A=g.viewport;if(A){const W=()=>{M(C.current),u==null||u()},B=()=>{const U=new Date().getTime()-k.current;C.current=C.current-U,window.clearTimeout(N.current),a==null||a()};return A.addEventListener(uu,B),A.addEventListener(cu,W),()=>{A.removeEventListener(uu,B),A.removeEventListener(cu,W)}}},[g.viewport,b,a,u,M]),S.useEffect(()=>{i&&!g.isClosePausedRef.current&&M(b)},[i,b,g.isClosePausedRef,M]),S.useEffect(()=>(R(),()=>O()),[R,O]);const H=S.useMemo(()=>y?Mm(y):null,[y]);return g.viewport?x.jsxs(x.Fragment,{children:[H&&x.jsx(S1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),x.jsx(y1,{scope:n,onClose:D,children:ji.createPortal(x.jsx(bc.ItemSlot,{scope:n,children:x.jsx(X0,{asChild:!0,onEscapeKeyDown:Ne(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||D(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:x.jsx(rt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ne(e.onKeyDown,A=>{A.key==="Escape"&&(l==null||l(A.nativeEvent),A.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:Ne(e.onPointerDown,A=>{A.button===0&&(v.current={x:A.clientX,y:A.clientY})}),onPointerMove:Ne(e.onPointerMove,A=>{if(!v.current)return;const W=A.clientX-v.current.x,B=A.clientY-v.current.y,U=!!E.current,P=["left","right"].includes(g.swipeDirection),T=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,_=P?T(0,W):0,V=P?0:T(0,B),$=A.pointerType==="touch"?10:2,Q={x:_,y:V},K={originalEvent:A,delta:Q};U?(E.current=Q,rs(m1,d,K,{discrete:!1})):sf(Q,g.swipeDirection,$)?(E.current=Q,rs(h1,c,K,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(W)>$||Math.abs(B)>$)&&(v.current=null)}),onPointerUp:Ne(e.onPointerUp,A=>{const W=E.current,B=A.target;if(B.hasPointerCapture(A.pointerId)&&B.releasePointerCapture(A.pointerId),E.current=null,v.current=null,W){const U=A.currentTarget,P={originalEvent:A,delta:W};sf(W,g.swipeDirection,g.swipeThreshold)?rs(v1,f,P,{discrete:!0}):rs(g1,m,P,{discrete:!0}),U.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),S1=e=>{const{__scopeToast:t,children:n,...r}=e,o=xl(Ri,t),[i,s]=S.useState(!1),[l,a]=S.useState(!1);return C1(()=>s(!0)),S.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:x.jsx(Em,{asChild:!0,children:x.jsx(yl,{...r,children:i&&x.jsxs(x.Fragment,{children:[o.label," ",n]})})})},E1="ToastTitle",jm=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return x.jsx(rt.div,{...r,ref:t})});jm.displayName=E1;var b1="ToastDescription",Rm=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return x.jsx(rt.div,{...r,ref:t})});Rm.displayName=b1;var Om="ToastAction",Am=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?x.jsx(Im,{altText:n,asChild:!0,children:x.jsx(Cc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Om}\`. Expected non-empty \`string\`.`),null)});Am.displayName=Om;var Lm="ToastClose",Cc=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=x1(Lm,n);return x.jsx(Im,{asChild:!0,children:x.jsx(rt.button,{type:"button",...r,ref:t,onClick:Ne(e.onClick,o.onClose)})})});Cc.displayName=Lm;var Im=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return x.jsx(rt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Mm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),k1(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(...Mm(r))}}),t}function rs(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?ym(o,i):o.dispatchEvent(i)}var sf=(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 C1(e=()=>{}){const t=Xn(e);Zn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function k1(e){return e.nodeType===e.ELEMENT_NODE}function N1(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 da(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var P1=Cm,_m=Nm,Dm=Tm,zm=jm,Fm=Rm,$m=Am,Bm=Cc;function Um(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;ttypeof e=="boolean"?`${e}`:e===0?"0":e,af=Vm,kc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return af(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 c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const m=lf(c)||lf(d);return o[u][m]}),l=n&&Object.entries(n).reduce((u,c)=>{let[d,m]=c;return m===void 0||(u[d]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:m,...f}=c;return Object.entries(f).every(w=>{let[g,y]=w;return Array.isArray(y)?y.includes({...i,...l}[g]):{...i,...l}[g]===y})?[...u,d,m]:u},[]);return af(e,s,a,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 T1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wm=(...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 j1={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 R1=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>S.createElement("svg",{ref:a,...j1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wm("lucide",o),...l},[...s.map(([u,c])=>S.createElement(u,c)),...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 Te=(e,t)=>{const n=S.forwardRef(({className:r,...o},i)=>S.createElement(R1,{ref:i,iconNode:t,className:Wm(`lucide-${T1(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 O1=Te("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A1=Te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L1=Te("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** * @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 I1=Te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @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 M1=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _1=Te("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D1=Te("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @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 uf=Te("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/** * @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 z1=Te("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-react v0.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 F1=Te("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @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 $1=Te("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 B1=Te("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** * @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 U1=Te("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** * @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 Hm=Te("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 V1=Te("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W1=Te("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 H1=Te("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @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 Q1=Te("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @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 K1=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Nc="-",G1=e=>{const t=q1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Nc);return l[0]===""&&l.length!==1&&l.shift(),Qm(l,t)||Y1(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Qm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Nc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},cf=/^\[(.+)\]$/,Y1=e=>{if(cf.test(e)){const t=cf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},q1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Z1(Object.entries(e.classGroups),n).forEach(([i,s])=>{fu(s,r,i,t)}),r},fu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:df(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(X1(o)){fu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{fu(s,df(t,i),n,r)})})},df=(e,t)=>{let n=e;return t.split(Nc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},X1=e=>e.isThemeGetter,Z1=(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,l])=>[t+s,l])):i);return[n,o]}):e,J1=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)}}},Km="!",ex=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,d;for(let y=0;yc?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:s}):s},tx=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},nx=e=>({cache:J1(e.cacheSize),parseClassName:ex(e),...G1(e)}),rx=/\s+/,ox=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(rx);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:f}=n(u);let w=!!f,g=r(w?m.substring(0,f):m);if(!g){if(!w){l=u+(l.length>0?" "+l:l);continue}if(g=r(m),!g){l=u+(l.length>0?" "+l:l);continue}w=!1}const y=tx(c).join(":"),h=d?y+Km:y,p=h+g;if(i.includes(p))continue;i.push(p);const v=o(g,w);for(let E=0;E0?" "+l:l)}return l};function ix(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(c),e());return n=nx(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=ox(a,n);return o(a,c),c}return function(){return i(ix.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ym=/^\[(?:([a-z-]+):)?(.+)\]$/i,lx=/^\d+\/\d+$/,ax=new Set(["px","full","screen"]),ux=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cx=/\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$/,dx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,px=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=e=>qr(e)||ax.has(e)||lx.test(e),Nn=e=>wo(e,"length",Sx),qr=e=>!!e&&!Number.isNaN(Number(e)),fa=e=>wo(e,"number",qr),Io=e=>!!e&&Number.isInteger(Number(e)),hx=e=>e.endsWith("%")&&qr(e.slice(0,-1)),X=e=>Ym.test(e),Pn=e=>ux.test(e),mx=new Set(["length","size","percentage"]),gx=e=>wo(e,mx,qm),vx=e=>wo(e,"position",qm),yx=new Set(["image","url"]),xx=e=>wo(e,yx,bx),wx=e=>wo(e,"",Ex),Mo=()=>!0,wo=(e,t,n)=>{const r=Ym.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Sx=e=>cx.test(e)&&!dx.test(e),qm=()=>!1,Ex=e=>fx.test(e),bx=e=>px.test(e),Cx=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),o=ue("borderColor"),i=ue("borderRadius"),s=ue("borderSpacing"),l=ue("borderWidth"),a=ue("contrast"),u=ue("grayscale"),c=ue("hueRotate"),d=ue("invert"),m=ue("gap"),f=ue("gradientColorStops"),w=ue("gradientColorStopPositions"),g=ue("inset"),y=ue("margin"),h=ue("opacity"),p=ue("padding"),v=ue("saturate"),E=ue("scale"),b=ue("sepia"),k=ue("skew"),C=ue("space"),N=ue("translate"),R=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",X,t],M=()=>[X,t],H=()=>["",on,Nn],A=()=>["auto",qr,X],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["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"],P=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",X],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[qr,X];return{cacheSize:500,separator:":",theme:{colors:[Mo],spacing:[on,Nn],blur:["none","",Pn,X],brightness:V(),borderColor:[e],borderRadius:["none","","full",Pn,X],borderSpacing:M(),borderWidth:H(),contrast:V(),grayscale:T(),hueRotate:V(),invert:T(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[hx,Nn],inset:D(),margin:D(),opacity:V(),padding:M(),saturate:V(),scale:V(),sepia:T(),skew:V(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[Pn]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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(),X]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Io,X]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",Io,X]}],"grid-cols":[{"grid-cols":[Mo]}],"col-start-end":[{col:["auto",{span:["full",Io,X]},X]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Mo]}],"row-start-end":[{row:["auto",{span:[Io,X]},X]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[Pn]},Pn]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Pn,Nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fa]}],"font-family":[{font:[Mo]}],"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",X]}],"line-clamp":[{"line-clamp":["none",qr,fa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",on,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",on,Nn]}],"underline-offset":[{"underline-offset":["auto",on,X]}],"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",X]}],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",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),vx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[on,X]}],"outline-w":[{outline:[on,Nn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[on,Nn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Pn,wx]}],"shadow-color":[{shadow:[Mo]}],opacity:[{opacity:[h]}],"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:[a]}],"drop-shadow":[{"drop-shadow":["","none",Pn,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"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",X]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Io,X]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],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",X]}],"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",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[on,Nn,fa]}],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"]}}},kx=sx(Cx);function ot(...e){return kx(Vm(e))}const Nx=P1,Xm=S.forwardRef(({className:e,...t},n)=>x.jsx(_m,{ref:n,className:ot("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}));Xm.displayName=_m.displayName;const Px=kc("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"}}),Zm=S.forwardRef(({className:e,variant:t,...n},r)=>x.jsx(Dm,{ref:r,className:ot(Px({variant:t}),e),...n}));Zm.displayName=Dm.displayName;const Tx=S.forwardRef(({className:e,...t},n)=>x.jsx($m,{ref:n,className:ot("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 hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Tx.displayName=$m.displayName;const Jm=S.forwardRef(({className:e,...t},n)=>x.jsx(Bm,{ref:n,className:ot("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:x.jsx(K1,{className:"h-4 w-4"})}));Jm.displayName=Bm.displayName;const eg=S.forwardRef(({className:e,...t},n)=>x.jsx(zm,{ref:n,className:ot("text-sm font-semibold",e),...t}));eg.displayName=zm.displayName;const tg=S.forwardRef(({className:e,...t},n)=>x.jsx(Fm,{ref:n,className:ot("text-sm opacity-90",e),...t}));tg.displayName=Fm.displayName;function jx(){const{toasts:e}=I0();return x.jsxs(Nx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return x.jsxs(Zm,{...i,children:[x.jsxs("div",{className:"grid gap-1",children:[n&&x.jsx(eg,{children:n}),r&&x.jsx(tg,{children:r})]}),o,x.jsx(Jm,{})]},t)}),x.jsx(Xm,{})]})}var ff=["light","dark"],Rx="(prefers-color-scheme: dark)",Ox=S.createContext(void 0),Ax={setTheme:e=>{},themes:[]},Lx=()=>{var e;return(e=S.useContext(Ox))!=null?e:Ax};S.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?ff.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(w,g=!1,y=!0)=>{let h=s?s[w]:w,p=g?w+"|| ''":`'${h}'`,v="";return o&&y&&!g&&ff.includes(w)&&(v+=`d.style.colorScheme = '${w}';`),n==="class"?g||h?v+=`c.add(${p})`:v+="null":h&&(v+=`d[s](n,${p})`),v},f=e?`!function(){${c}${m(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Rx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${u?"":"else{"+m(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(i,!1,!1)};}${d}}catch(t){}}();`;return S.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var Ix=e=>{switch(e){case"success":return Dx;case"info":return Fx;case"warning":return zx;case"error":return $x;default:return null}},Mx=Array(12).fill(0),_x=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},Mx.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Dx=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),zx=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.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"})),Fx=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),$x=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),Bx=I.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"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ux=()=>{let[e,t]=I.useState(document.hidden);return I.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},pu=1,Vx=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:pu++,i=this.toasts.find(l=>l.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(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):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 a=>{if(i=["resolve",a],I.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(Hx(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||pu++;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}},qe=new Vx,Wx=(e,t)=>{let n=(t==null?void 0:t.id)||pu++;return qe.addToast({title:e,...t,id:n}),n},Hx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Qx=Wx,Kx=()=>qe.toasts,Gx=()=>qe.getActiveToasts();Object.assign(Qx,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:Kx,getToasts:Gx});function Yx(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))}Yx(`: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 os(e){return e.label!==void 0}var qx=3,Xx="32px",Zx="16px",pf=4e3,Jx=356,ew=14,tw=20,nw=200;function Rt(...e){return e.filter(Boolean).join(" ")}function rw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var ow=e=>{var t,n,r,o,i,s,l,a,u,c,d;let{invert:m,toast:f,unstyled:w,interacting:g,setHeights:y,visibleToasts:h,heights:p,index:v,toasts:E,expanded:b,removeToast:k,defaultRichColors:C,closeButton:N,style:R,cancelButtonStyle:O,actionButtonStyle:D,className:M="",descriptionClassName:H="",duration:A,position:W,gap:B,loadingIcon:U,expandByDefault:P,classNames:T,icons:_,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:$}=e,[Q,K]=I.useState(null),[ie,ve]=I.useState(null),[Y,ye]=I.useState(!1),[je,Ee]=I.useState(!1),[te,F]=I.useState(!1),[J,ae]=I.useState(!1),[Ce,Be]=I.useState(!1),[it,st]=I.useState(0),[Ue,Wt]=I.useState(0),Et=I.useRef(f.duration||A||pf),Tr=I.useRef(null),bt=I.useRef(null),Li=v===0,Ii=v+1<=h,Ye=f.type,rn=f.dismissible!==!1,Al=f.className||"",bo=f.descriptionClassName||"",Ct=I.useMemo(()=>p.findIndex(G=>G.toastId===f.id)||0,[p,f.id]),Co=I.useMemo(()=>{var G;return(G=f.closeButton)!=null?G:N},[f.closeButton,N]),jr=I.useMemo(()=>f.duration||A||pf,[f.duration,A]),wn=I.useRef(0),Sn=I.useRef(0),Mi=I.useRef(0),En=I.useRef(null),[Ll,Il]=W.split("-"),ko=I.useMemo(()=>p.reduce((G,re,se)=>se>=Ct?G:G+re.height,0),[p,Ct]),_i=Ux(),Di=f.invert||m,Rr=Ye==="loading";Sn.current=I.useMemo(()=>Ct*B+ko,[Ct,ko]),I.useEffect(()=>{Et.current=jr},[jr]),I.useEffect(()=>{ye(!0)},[]),I.useEffect(()=>{let G=bt.current;if(G){let re=G.getBoundingClientRect().height;return Wt(re),y(se=>[{toastId:f.id,height:re,position:f.position},...se]),()=>y(se=>se.filter(Nt=>Nt.toastId!==f.id))}},[y,f.id]),I.useLayoutEffect(()=>{if(!Y)return;let G=bt.current,re=G.style.height;G.style.height="auto";let se=G.getBoundingClientRect().height;G.style.height=re,Wt(se),y(Nt=>Nt.find(Pt=>Pt.toastId===f.id)?Nt.map(Pt=>Pt.toastId===f.id?{...Pt,height:se}:Pt):[{toastId:f.id,height:se,position:f.position},...Nt])},[Y,f.title,f.description,y,f.id]);let kt=I.useCallback(()=>{Ee(!0),st(Sn.current),y(G=>G.filter(re=>re.toastId!==f.id)),setTimeout(()=>{k(f)},nw)},[f,k,y,Sn]);I.useEffect(()=>{if(f.promise&&Ye==="loading"||f.duration===1/0||f.type==="loading")return;let G;return b||g||$&&_i?(()=>{if(Mi.current{var re;(re=f.onAutoClose)==null||re.call(f,f),kt()},Et.current)),()=>clearTimeout(G)},[b,g,f,Ye,$,_i,kt]),I.useEffect(()=>{f.delete&&kt()},[kt,f.delete]);function Ml(){var G,re,se;return _!=null&&_.loading?I.createElement("div",{className:Rt(T==null?void 0:T.loader,(G=f==null?void 0:f.classNames)==null?void 0:G.loader,"sonner-loader"),"data-visible":Ye==="loading"},_.loading):U?I.createElement("div",{className:Rt(T==null?void 0:T.loader,(re=f==null?void 0:f.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":Ye==="loading"},U):I.createElement(_x,{className:Rt(T==null?void 0:T.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:Ye==="loading"})}return I.createElement("li",{tabIndex:0,ref:bt,className:Rt(M,Al,T==null?void 0:T.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Ye],(n=f==null?void 0:f.classNames)==null?void 0:n[Ye]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":Y,"data-promise":!!f.promise,"data-swiped":Ce,"data-removed":je,"data-visible":Ii,"data-y-position":Ll,"data-x-position":Il,"data-index":v,"data-front":Li,"data-swiping":te,"data-dismissible":rn,"data-type":Ye,"data-invert":Di,"data-swipe-out":J,"data-swipe-direction":ie,"data-expanded":!!(b||P&&Y),style:{"--index":v,"--toasts-before":v,"--z-index":E.length-v,"--offset":`${je?it:Sn.current}px`,"--initial-height":P?"auto":`${Ue}px`,...R,...f.style},onDragEnd:()=>{F(!1),K(null),En.current=null},onPointerDown:G=>{Rr||!rn||(Tr.current=new Date,st(Sn.current),G.target.setPointerCapture(G.pointerId),G.target.tagName!=="BUTTON"&&(F(!0),En.current={x:G.clientX,y:G.clientY}))},onPointerUp:()=>{var G,re,se,Nt;if(J||!rn)return;En.current=null;let Pt=Number(((G=bt.current)==null?void 0:G.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bn=Number(((re=bt.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ir=new Date().getTime()-((se=Tr.current)==null?void 0:se.getTime()),Tt=Q==="x"?Pt:bn,Cn=Math.abs(Tt)/ir;if(Math.abs(Tt)>=tw||Cn>.11){st(Sn.current),(Nt=f.onDismiss)==null||Nt.call(f,f),ve(Q==="x"?Pt>0?"right":"left":bn>0?"down":"up"),kt(),ae(!0),Be(!1);return}F(!1),K(null)},onPointerMove:G=>{var re,se,Nt,Pt;if(!En.current||!rn||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let bn=G.clientY-En.current.y,ir=G.clientX-En.current.x,Tt=(se=e.swipeDirections)!=null?se:rw(W);!Q&&(Math.abs(ir)>1||Math.abs(bn)>1)&&K(Math.abs(ir)>Math.abs(bn)?"x":"y");let Cn={x:0,y:0};Q==="y"?(Tt.includes("top")||Tt.includes("bottom"))&&(Tt.includes("top")&&bn<0||Tt.includes("bottom")&&bn>0)&&(Cn.y=bn):Q==="x"&&(Tt.includes("left")||Tt.includes("right"))&&(Tt.includes("left")&&ir<0||Tt.includes("right")&&ir>0)&&(Cn.x=ir),(Math.abs(Cn.x)>0||Math.abs(Cn.y)>0)&&Be(!0),(Nt=bt.current)==null||Nt.style.setProperty("--swipe-amount-x",`${Cn.x}px`),(Pt=bt.current)==null||Pt.style.setProperty("--swipe-amount-y",`${Cn.y}px`)}},Co&&!f.jsx?I.createElement("button",{"aria-label":V,"data-disabled":Rr,"data-close-button":!0,onClick:Rr||!rn?()=>{}:()=>{var G;kt(),(G=f.onDismiss)==null||G.call(f,f)},className:Rt(T==null?void 0:T.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=_==null?void 0:_.close)!=null?i:Bx):null,f.jsx||S.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:I.createElement(I.Fragment,null,Ye||f.icon||f.promise?I.createElement("div",{"data-icon":"",className:Rt(T==null?void 0:T.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ml():null,f.type!=="loading"?f.icon||(_==null?void 0:_[Ye])||Ix(Ye):null):null,I.createElement("div",{"data-content":"",className:Rt(T==null?void 0:T.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},I.createElement("div",{"data-title":"",className:Rt(T==null?void 0:T.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?I.createElement("div",{"data-description":"",className:Rt(H,bo,T==null?void 0:T.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),S.isValidElement(f.cancel)?f.cancel:f.cancel&&os(f.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:G=>{var re,se;os(f.cancel)&&rn&&((se=(re=f.cancel).onClick)==null||se.call(re,G),kt())},className:Rt(T==null?void 0:T.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,S.isValidElement(f.action)?f.action:f.action&&os(f.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||D,onClick:G=>{var re,se;os(f.action)&&((se=(re=f.action).onClick)==null||se.call(re,G),!G.defaultPrevented&&kt())},className:Rt(T==null?void 0:T.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function hf(){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 iw(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?Zx:Xx;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var sw=S.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:d,duration:m,style:f,visibleToasts:w=qx,toastOptions:g,dir:y=hf(),gap:h=ew,loadingIcon:p,icons:v,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:b}=e,[k,C]=I.useState([]),N=I.useMemo(()=>Array.from(new Set([r].concat(k.filter($=>$.position).map($=>$.position)))),[k,r]),[R,O]=I.useState([]),[D,M]=I.useState(!1),[H,A]=I.useState(!1),[W,B]=I.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=I.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=I.useRef(null),_=I.useRef(!1),V=I.useCallback($=>{C(Q=>{var K;return(K=Q.find(ie=>ie.id===$.id))!=null&&K.delete||qe.dismiss($.id),Q.filter(({id:ie})=>ie!==$.id)})},[]);return I.useEffect(()=>qe.subscribe($=>{if($.dismiss){C(Q=>Q.map(K=>K.id===$.id?{...K,delete:!0}:K));return}setTimeout(()=>{hm.flushSync(()=>{C(Q=>{let K=Q.findIndex(ie=>ie.id===$.id);return K!==-1?[...Q.slice(0,K),{...Q[K],...$},...Q.slice(K+1)]:[$,...Q]})})})}),[]),I.useEffect(()=>{if(c!=="system"){B(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:Q})=>{B(Q?"dark":"light")})}catch{$.addListener(({matches:K})=>{try{B(K?"dark":"light")}catch(ie){console.error(ie)}})}},[c]),I.useEffect(()=>{k.length<=1&&M(!1)},[k]),I.useEffect(()=>{let $=Q=>{var K,ie;o.every(ve=>Q[ve]||Q.code===ve)&&(M(!0),(K=U.current)==null||K.focus()),Q.code==="Escape"&&(document.activeElement===U.current||(ie=U.current)!=null&&ie.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[o]),I.useEffect(()=>{if(U.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,_.current=!1)}},[U.current]),I.createElement("section",{ref:t,"aria-label":`${E} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map(($,Q)=>{var K;let[ie,ve]=$.split("-");return k.length?I.createElement("ol",{key:$,dir:y==="auto"?hf():y,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":ie,"data-lifted":D&&k.length>1&&!i,"data-x-position":ve,style:{"--front-toast-height":`${((K=R[0])==null?void 0:K.height)||0}px`,"--width":`${Jx}px`,"--gap":`${h}px`,...f,...iw(a,u)},onBlur:Y=>{_.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(_.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||_.current||(_.current=!0,T.current=Y.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{H||M(!1)},onDragEnd:()=>M(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},k.filter(Y=>!Y.position&&Q===0||Y.position===$).map((Y,ye)=>{var je,Ee;return I.createElement(ow,{key:Y.id,icons:v,index:ye,toast:Y,defaultRichColors:d,duration:(je=g==null?void 0:g.duration)!=null?je:m,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Ee=g==null?void 0:g.closeButton)!=null?Ee:s,interacting:H,position:$,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:V,toasts:k.filter(te=>te.position==Y.position),heights:R.filter(te=>te.position==Y.position),setHeights:O,expandByDefault:i,gap:h,loadingIcon:p,expanded:D,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const lw=({...e})=>{const{theme:t="system"}=Lx();return x.jsx(sw,{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})},aw=["top","right","bottom","left"],Jn=Math.min,at=Math.max,Ks=Math.round,is=Math.floor,en=e=>({x:e,y:e}),uw={left:"right",right:"left",bottom:"top",top:"bottom"},cw={start:"end",end:"start"};function hu(e,t,n){return at(e,Jn(t,n))}function vn(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function So(e){return e.split("-")[1]}function Pc(e){return e==="x"?"y":"x"}function Tc(e){return e==="y"?"height":"width"}const dw=new Set(["top","bottom"]);function Xt(e){return dw.has(yn(e))?"y":"x"}function jc(e){return Pc(Xt(e))}function fw(e,t,n){n===void 0&&(n=!1);const r=So(e),o=jc(e),i=Tc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Gs(s)),[s,Gs(s)]}function pw(e){const t=Gs(e);return[mu(e),t,mu(t)]}function mu(e){return e.replace(/start|end/g,t=>cw[t])}const mf=["left","right"],gf=["right","left"],hw=["top","bottom"],mw=["bottom","top"];function gw(e,t,n){switch(e){case"top":case"bottom":return n?t?gf:mf:t?mf:gf;case"left":case"right":return t?hw:mw;default:return[]}}function vw(e,t,n,r){const o=So(e);let i=gw(yn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(mu)))),i}function Gs(e){return e.replace(/left|right|bottom|top/g,t=>uw[t])}function yw(e){return{top:0,right:0,bottom:0,left:0,...e}}function ng(e){return typeof e!="number"?yw(e):{top:e,right:e,bottom:e,left:e}}function Ys(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 vf(e,t,n){let{reference:r,floating:o}=e;const i=Xt(t),s=jc(t),l=Tc(s),a=yn(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(So(t)){case"start":f[s]-=m*(n&&u?-1:1);break;case"end":f[s]+=m*(n&&u?-1:1);break}return f}const xw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=vf(u,r,a),m=r,f={},w=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=vn(e,t)||{};if(u==null)return{};const d=ng(c),m={x:n,y:r},f=jc(o),w=Tc(f),g=await s.getDimensions(u),y=f==="y",h=y?"top":"left",p=y?"bottom":"right",v=y?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[f]-m[f]-i.floating[w],b=m[f]-i.reference[f],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=k?k[v]:0;(!C||!await(s.isElement==null?void 0:s.isElement(k)))&&(C=l.floating[v]||i.floating[w]);const N=E/2-b/2,R=C/2-g[w]/2-1,O=Jn(d[h],R),D=Jn(d[p],R),M=O,H=C-g[w]-D,A=C/2-g[w]/2+N,W=hu(M,A,H),B=!a.arrow&&So(o)!=null&&A!==W&&i.reference[w]/2-(AA<=0)){var D,M;const A=(((D=i.flip)==null?void 0:D.index)||0)+1,W=C[A];if(W&&(!(d==="alignment"?p!==Xt(W):!1)||O.every(P=>P.overflows[0]>0&&Xt(P.placement)===p)))return{data:{index:A,overflows:O},reset:{placement:W}};let B=(M=O.filter(U=>U.overflows[0]<=0).sort((U,P)=>U.overflows[1]-P.overflows[1])[0])==null?void 0:M.placement;if(!B)switch(f){case"bestFit":{var H;const U=(H=O.filter(P=>{if(k){const T=Xt(P.placement);return T===p||T==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(T=>T>0).reduce((T,_)=>T+_,0)]).sort((P,T)=>P[1]-T[1])[0])==null?void 0:H[0];U&&(B=U);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function yf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xf(e){return aw.some(t=>e[t]>=0)}const Ew=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vn(e,t);switch(r){case"referenceHidden":{const i=await mi(t,{...o,elementContext:"reference"}),s=yf(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xf(s)}}}case"escaped":{const i=await mi(t,{...o,altBoundary:!0}),s=yf(i,n.floating);return{data:{escapedOffsets:s,escaped:xf(s)}}}default:return{}}}}},rg=new Set(["left","top"]);async function bw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=yn(n),l=So(n),a=Xt(n)==="y",u=rg.has(s)?-1:1,c=i&&a?-1:1,d=vn(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof w=="number"&&(f=l==="end"?w*-1:w),a?{x:f*c,y:m*u}:{x:m*u,y:f*c}}const Cw=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:l}=t,a=await bw(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},kw=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:l={fn:y=>{let{x:h,y:p}=y;return{x:h,y:p}}},...a}=vn(e,t),u={x:n,y:r},c=await mi(t,a),d=Xt(yn(o)),m=Pc(d);let f=u[m],w=u[d];if(i){const y=m==="y"?"top":"left",h=m==="y"?"bottom":"right",p=f+c[y],v=f-c[h];f=hu(p,f,v)}if(s){const y=d==="y"?"top":"left",h=d==="y"?"bottom":"right",p=w+c[y],v=w-c[h];w=hu(p,w,v)}const g=l.fn({...t,[m]:f,[d]:w});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[d]:s}}}}}},Nw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=vn(e,t),c={x:n,y:r},d=Xt(o),m=Pc(d);let f=c[m],w=c[d];const g=vn(l,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const v=m==="y"?"height":"width",E=i.reference[m]-i.floating[v]+y.mainAxis,b=i.reference[m]+i.reference[v]-y.mainAxis;fb&&(f=b)}if(u){var h,p;const v=m==="y"?"width":"height",E=rg.has(yn(o)),b=i.reference[d]-i.floating[v]+(E&&((h=s.offset)==null?void 0:h[d])||0)+(E?0:y.crossAxis),k=i.reference[d]+i.reference[v]+(E?0:((p=s.offset)==null?void 0:p[d])||0)-(E?y.crossAxis:0);wk&&(w=k)}return{[m]:f,[d]:w}}}},Pw=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:l}=t,{apply:a=()=>{},...u}=vn(e,t),c=await mi(t,u),d=yn(o),m=So(o),f=Xt(o)==="y",{width:w,height:g}=i.floating;let y,h;d==="top"||d==="bottom"?(y=d,h=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=d,y=m==="end"?"top":"bottom");const p=g-c.top-c.bottom,v=w-c.left-c.right,E=Jn(g-c[y],p),b=Jn(w-c[h],v),k=!t.middlewareData.shift;let C=E,N=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=p),k&&!m){const O=at(c.left,0),D=at(c.right,0),M=at(c.top,0),H=at(c.bottom,0);f?N=w-2*(O!==0||D!==0?O+D:at(c.left,c.right)):C=g-2*(M!==0||H!==0?M+H:at(c.top,c.bottom))}await a({...t,availableWidth:N,availableHeight:C});const R=await s.getDimensions(l.floating);return w!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function wl(){return typeof window<"u"}function Eo(e){return og(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nn(e){var t;return(t=(og(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function og(e){return wl()?e instanceof Node||e instanceof dt(e).Node:!1}function Ut(e){return wl()?e instanceof Element||e instanceof dt(e).Element:!1}function tn(e){return wl()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function wf(e){return!wl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const Tw=new Set(["inline","contents"]);function Oi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Tw.has(o)}const jw=new Set(["table","td","th"]);function Rw(e){return jw.has(Eo(e))}const Ow=[":popover-open",":modal"];function Sl(e){return Ow.some(t=>{try{return e.matches(t)}catch{return!1}})}const Aw=["transform","translate","scale","rotate","perspective"],Lw=["transform","translate","scale","rotate","perspective","filter"],Iw=["paint","layout","strict","content"];function Rc(e){const t=Oc(),n=Ut(e)?Vt(e):e;return Aw.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)||Lw.some(r=>(n.willChange||"").includes(r))||Iw.some(r=>(n.contain||"").includes(r))}function Mw(e){let t=er(e);for(;tn(t)&&!mo(t);){if(Rc(t))return t;if(Sl(t))return null;t=er(t)}return null}function Oc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _w=new Set(["html","body","#document"]);function mo(e){return _w.has(Eo(e))}function Vt(e){return dt(e).getComputedStyle(e)}function El(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(Eo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wf(e)&&e.host||nn(e);return wf(t)?t.host:t}function ig(e){const t=er(e);return mo(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&Oi(t)?t:ig(t)}function gi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ig(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=dt(o);if(i){const l=gu(s);return t.concat(s,s.visualViewport||[],Oi(o)?o:[],l&&n?gi(l):[])}return t.concat(o,gi(o,[],n))}function gu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sg(e){const t=Vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Ks(n)!==i||Ks(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Ac(e){return Ut(e)?e:e.contextElement}function Xr(e){const t=Ac(e);if(!tn(t))return en(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sg(t);let s=(i?Ks(n.width):n.width)/r,l=(i?Ks(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Dw=en(0);function lg(e){const t=dt(e);return!Oc()||!t.visualViewport?Dw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dt(e)?!1:t}function Cr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ac(e);let s=en(1);t&&(r?Ut(r)&&(s=Xr(r)):s=Xr(e));const l=zw(i,n,r)?lg(i):en(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const m=dt(i),f=r&&Ut(r)?dt(r):r;let w=m,g=gu(w);for(;g&&r&&f!==w;){const y=Xr(g),h=g.getBoundingClientRect(),p=Vt(g),v=h.left+(g.clientLeft+parseFloat(p.paddingLeft))*y.x,E=h.top+(g.clientTop+parseFloat(p.paddingTop))*y.y;a*=y.x,u*=y.y,c*=y.x,d*=y.y,a+=v,u+=E,w=dt(g),g=gu(w)}}return Ys({width:c,height:d,x:a,y:u})}function Lc(e,t){const n=El(e).scrollLeft;return t?t.left+n:Cr(nn(e)).left+n}function ag(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Lc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Fw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=nn(r),l=t?Sl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=en(1);const c=en(0),d=tn(r);if((d||!d&&!i)&&((Eo(r)!=="body"||Oi(s))&&(a=El(r)),tn(r))){const f=Cr(r);u=Xr(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const m=s&&!d&&!i?ag(s,a,!0):en(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+m.x,y:n.y*u.y-a.scrollTop*u.y+c.y+m.y}}function $w(e){return Array.from(e.getClientRects())}function Bw(e){const t=nn(e),n=El(e),r=e.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Lc(e);const l=-n.scrollTop;return Vt(r).direction==="rtl"&&(s+=at(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Uw(e,t){const n=dt(e),r=nn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=Oc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const Vw=new Set(["absolute","fixed"]);function Ww(e,t){const n=Cr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=tn(e)?Xr(e):en(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Sf(e,t,n){let r;if(t==="viewport")r=Uw(e,n);else if(t==="document")r=Bw(nn(e));else if(Ut(t))r=Ww(t,n);else{const o=lg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ys(r)}function ug(e,t){const n=er(e);return n===t||!Ut(n)||mo(n)?!1:Vt(n).position==="fixed"||ug(n,t)}function Hw(e,t){const n=t.get(e);if(n)return n;let r=gi(e,[],!1).filter(l=>Ut(l)&&Eo(l)!=="body"),o=null;const i=Vt(e).position==="fixed";let s=i?er(e):e;for(;Ut(s)&&!mo(s);){const l=Vt(s),a=Rc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&Vw.has(o.position)||Oi(s)&&!a&&ug(e,s))?r=r.filter(c=>c!==s):o=l,s=er(s)}return t.set(e,r),r}function Qw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Sl(t)?[]:Hw(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=Sf(t,c,o);return u.top=at(d.top,u.top),u.right=Jn(d.right,u.right),u.bottom=Jn(d.bottom,u.bottom),u.left=at(d.left,u.left),u},Sf(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Kw(e){const{width:t,height:n}=sg(e);return{width:t,height:n}}function Gw(e,t,n){const r=tn(t),o=nn(t),i=n==="fixed",s=Cr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=en(0);function u(){a.x=Lc(o)}if(r||!r&&!i)if((Eo(t)!=="body"||Oi(o))&&(l=El(t)),r){const f=Cr(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?ag(o,l):en(0),d=s.left+l.scrollLeft-a.x-c.x,m=s.top+l.scrollTop-a.y-c.y;return{x:d,y:m,width:s.width,height:s.height}}function pa(e){return Vt(e).position==="static"}function Ef(e,t){if(!tn(e)||Vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nn(e)===n&&(n=n.ownerDocument.body),n}function cg(e,t){const n=dt(e);if(Sl(e))return n;if(!tn(e)){let o=er(e);for(;o&&!mo(o);){if(Ut(o)&&!pa(o))return o;o=er(o)}return n}let r=Ef(e,t);for(;r&&Rw(r)&&pa(r);)r=Ef(r,t);return r&&mo(r)&&pa(r)&&!Rc(r)?n:r||Mw(e)||n}const Yw=async function(e){const t=this.getOffsetParent||cg,n=this.getDimensions,r=await n(e.floating);return{reference:Gw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qw(e){return Vt(e).direction==="rtl"}const Xw={convertOffsetParentRelativeRectToViewportRelativeRect:Fw,getDocumentElement:nn,getClippingRect:Qw,getOffsetParent:cg,getElementRects:Yw,getClientRects:$w,getDimensions:Kw,getScale:Xr,isElement:Ut,isRTL:qw};function dg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zw(e,t){let n=null,r;const o=nn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:m,height:f}=u;if(l||t(),!m||!f)return;const w=is(d),g=is(o.clientWidth-(c+m)),y=is(o.clientHeight-(d+f)),h=is(c),v={rootMargin:-w+"px "+-g+"px "+-y+"px "+-h+"px",threshold:at(0,Jn(1,a))||1};let E=!0;function b(k){const C=k[0].intersectionRatio;if(C!==a){if(!E)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!dg(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return s(!0),i}function Jw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Ac(e),c=o||i?[...u?gi(u):[],...gi(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const d=u&&l?Zw(u,n):null;let m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let w,g=a?Cr(e):null;a&&y();function y(){const h=Cr(e);g&&!dg(g,h)&&n(),g=h,w=requestAnimationFrame(y)}return n(),()=>{var h;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),d==null||d(),(h=f)==null||h.disconnect(),f=null,a&&cancelAnimationFrame(w)}}const eS=Cw,tS=kw,nS=Sw,rS=Pw,oS=Ew,bf=ww,iS=Nw,sS=(e,t,n)=>{const r=new Map,o={platform:Xw,...n},i={...o.platform,_c:r};return xw(e,t,{...o,platform:i})};var lS=typeof document<"u",aS=function(){},Ss=lS?S.useLayoutEffect:aS;function qs(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(!qs(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)&&!qs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function fg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cf(e,t){const n=fg(e);return Math.round(t*n)/n}function ha(e){const t=S.useRef(e);return Ss(()=>{t.current=e}),t}function uS(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=S.useState(r);qs(m,r)||f(r);const[w,g]=S.useState(null),[y,h]=S.useState(null),p=S.useCallback(P=>{P!==k.current&&(k.current=P,g(P))},[]),v=S.useCallback(P=>{P!==C.current&&(C.current=P,h(P))},[]),E=i||w,b=s||y,k=S.useRef(null),C=S.useRef(null),N=S.useRef(c),R=a!=null,O=ha(a),D=ha(o),M=ha(u),H=S.useCallback(()=>{if(!k.current||!C.current)return;const P={placement:t,strategy:n,middleware:m};D.current&&(P.platform=D.current),sS(k.current,C.current,P).then(T=>{const _={...T,isPositioned:M.current!==!1};A.current&&!qs(N.current,_)&&(N.current=_,ji.flushSync(()=>{d(_)}))})},[m,t,n,D,M]);Ss(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const A=S.useRef(!1);Ss(()=>(A.current=!0,()=>{A.current=!1}),[]),Ss(()=>{if(E&&(k.current=E),b&&(C.current=b),E&&b){if(O.current)return O.current(E,b,H);H()}},[E,b,H,O,R]);const W=S.useMemo(()=>({reference:k,floating:C,setReference:p,setFloating:v}),[p,v]),B=S.useMemo(()=>({reference:E,floating:b}),[E,b]),U=S.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const T=Cf(B.floating,c.x),_=Cf(B.floating,c.y);return l?{...P,transform:"translate("+T+"px, "+_+"px)",...fg(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:_}},[n,l,B.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:H,refs:W,elements:B,floatingStyles:U}),[c,H,W,B,U])}const cS=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?bf({element:r.current,padding:o}).fn(n):{}:r?bf({element:r,padding:o}).fn(n):{}}}},dS=(e,t)=>({...eS(e),options:[e,t]}),fS=(e,t)=>({...tS(e),options:[e,t]}),pS=(e,t)=>({...iS(e),options:[e,t]}),hS=(e,t)=>({...nS(e),options:[e,t]}),mS=(e,t)=>({...rS(e),options:[e,t]}),gS=(e,t)=>({...oS(e),options:[e,t]}),vS=(e,t)=>({...cS(e),options:[e,t]});var yS="Arrow",pg=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(rt.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});pg.displayName=yS;var xS=pg;function wS(e){const[t,n]=S.useState(void 0);return Zn(()=>{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,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var hg="Popper",[mg,gg]=vl(hg),[m2,vg]=mg(hg),yg="PopperAnchor",xg=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=vg(yg,n),s=S.useRef(null),l=Bt(t,s);return S.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:x.jsx(rt.div,{...o,ref:l})});xg.displayName=yg;var Ic="PopperContent",[SS,ES]=mg(Ic),wg=S.forwardRef((e,t)=>{var Y,ye,je,Ee,te,F;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:w,...g}=e,y=vg(Ic,n),[h,p]=S.useState(null),v=Bt(t,J=>p(J)),[E,b]=S.useState(null),k=wS(E),C=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,R=r+(i!=="center"?"-"+i:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(u)?u:[u],M=D.length>0,H={padding:O,boundary:D.filter(CS),altBoundary:M},{refs:A,floatingStyles:W,placement:B,isPositioned:U,middlewareData:P}=uS({strategy:"fixed",placement:R,whileElementsMounted:(...J)=>Jw(...J,{animationFrame:f==="always"}),elements:{reference:y.anchor},middleware:[dS({mainAxis:o+N,alignmentAxis:s}),a&&fS({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pS():void 0,...H}),a&&hS({...H}),mS({...H,apply:({elements:J,rects:ae,availableWidth:Ce,availableHeight:Be})=>{const{width:it,height:st}=ae.reference,Ue=J.floating.style;Ue.setProperty("--radix-popper-available-width",`${Ce}px`),Ue.setProperty("--radix-popper-available-height",`${Be}px`),Ue.setProperty("--radix-popper-anchor-width",`${it}px`),Ue.setProperty("--radix-popper-anchor-height",`${st}px`)}}),E&&vS({element:E,padding:l}),kS({arrowWidth:C,arrowHeight:N}),m&&gS({strategy:"referenceHidden",...H})]}),[T,_]=bg(B),V=Xn(w);Zn(()=>{U&&(V==null||V())},[U,V]);const $=(Y=P.arrow)==null?void 0:Y.x,Q=(ye=P.arrow)==null?void 0:ye.y,K=((je=P.arrow)==null?void 0:je.centerOffset)!==0,[ie,ve]=S.useState();return Zn(()=>{h&&ve(window.getComputedStyle(h).zIndex)},[h]),x.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(Ee=P.transformOrigin)==null?void 0:Ee.x,(te=P.transformOrigin)==null?void 0:te.y].join(" "),...((F=P.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(SS,{scope:n,placedSide:T,onArrowChange:b,arrowX:$,arrowY:Q,shouldHideArrow:K,children:x.jsx(rt.div,{"data-side":T,"data-align":_,...g,ref:v,style:{...g.style,animation:U?void 0:"none"}})})})});wg.displayName=Ic;var Sg="PopperArrow",bS={top:"bottom",right:"left",bottom:"top",left:"right"},Eg=S.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=ES(Sg,r),s=bS[i.placedSide];return x.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:x.jsx(xS,{...o,ref:n,style:{...o.style,display:"block"}})})});Eg.displayName=Sg;function CS(e){return e!==null}var kS=e=>({name:"transformOrigin",options:e,fn(t){var y,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=bg(n),d={start:"0%",center:"50%",end:"100%"}[c],m=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,f=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let w="",g="";return u==="bottom"?(w=s?d:`${m}px`,g=`${-a}px`):u==="top"?(w=s?d:`${m}px`,g=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,g=s?d:`${f}px`):u==="left"&&(w=`${r.floating.width+a}px`,g=s?d:`${f}px`),{data:{x:w,y:g}}}});function bg(e){const[t,n="center"]=e.split("-");return[t,n]}var NS=xg,PS=wg,TS=Eg,[bl,g2]=vl("Tooltip",[gg]),Mc=gg(),Cg="TooltipProvider",jS=700,kf="tooltip.open",[RS,kg]=bl(Cg),Ng=e=>{const{__scopeTooltip:t,delayDuration:n=jS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=S.useRef(!0),l=S.useRef(!1),a=S.useRef(0);return S.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),x.jsx(RS,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:S.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Ng.displayName=Cg;var Pg="Tooltip",[v2,Cl]=bl(Pg),vu="TooltipTrigger",OS=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cl(vu,n),i=kg(vu,n),s=Mc(n),l=S.useRef(null),a=Bt(t,l,o.onTriggerChange),u=S.useRef(!1),c=S.useRef(!1),d=S.useCallback(()=>u.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),x.jsx(NS,{asChild:!0,...s,children:x.jsx(rt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Ne(e.onPointerMove,m=>{m.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ne(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Ne(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ne(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ne(e.onBlur,o.onClose),onClick:Ne(e.onClick,o.onClose)})})});OS.displayName=vu;var AS="TooltipPortal",[y2,LS]=bl(AS,{forceMount:void 0}),go="TooltipContent",Tg=S.forwardRef((e,t)=>{const n=LS(go,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Cl(go,e.__scopeTooltip);return x.jsx(Sc,{present:r||s.open,children:s.disableHoverableContent?x.jsx(jg,{side:o,...i,ref:t}):x.jsx(IS,{side:o,...i,ref:t})})}),IS=S.forwardRef((e,t)=>{const n=Cl(go,e.__scopeTooltip),r=kg(go,e.__scopeTooltip),o=S.useRef(null),i=Bt(t,o),[s,l]=S.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,m=S.useCallback(()=>{l(null),d(!1)},[d]),f=S.useCallback((w,g)=>{const y=w.currentTarget,h={x:w.clientX,y:w.clientY},p=FS(h,y.getBoundingClientRect()),v=$S(h,p),E=BS(g.getBoundingClientRect()),b=VS([...v,...E]);l(b),d(!0)},[d]);return S.useEffect(()=>()=>m(),[m]),S.useEffect(()=>{if(a&&c){const w=y=>f(y,c),g=y=>f(y,a);return a.addEventListener("pointerleave",w),c.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",w),c.removeEventListener("pointerleave",g)}}},[a,c,f,m]),S.useEffect(()=>{if(s){const w=g=>{const y=g.target,h={x:g.clientX,y:g.clientY},p=(a==null?void 0:a.contains(y))||(c==null?void 0:c.contains(y)),v=!US(h,s);p?m():v&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,c,s,u,m]),x.jsx(jg,{...e,ref:i})}),[MS,_S]=bl(Pg,{isInside:!1}),DS=z0("TooltipContent"),jg=S.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Cl(go,n),u=Mc(n),{onClose:c}=a;return S.useEffect(()=>(document.addEventListener(kf,c),()=>document.removeEventListener(kf,c)),[c]),S.useEffect(()=>{if(a.trigger){const d=m=>{const f=m.target;f!=null&&f.contains(a.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,c]),x.jsx(wc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:x.jsxs(PS,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.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:[x.jsx(DS,{children:r}),x.jsx(MS,{scope:n,isInside:!0,children:x.jsx(u1,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Tg.displayName=go;var Rg="TooltipArrow",zS=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mc(n);return _S(Rg,n).isInside?null:x.jsx(TS,{...o,...r,ref:t})});zS.displayName=Rg;function FS(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 $S(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 BS(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 US(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=m>r&&n<(d-u)*(r-c)/(m-c)+u&&(o=!o)}return o}function VS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),WS(t)}function WS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=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 HS=Ng,Og=Tg;const QS=HS,KS=S.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(Og,{ref:r,sideOffset:t,className:ot("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}));KS.displayName=Og.displayName;var kl=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(){}},Nl=typeof window>"u"||"Deno"in globalThis;function At(){}function GS(e,t){return typeof e=="function"?e(t):e}function YS(e){return typeof e=="number"&&e>=0&&e!==1/0}function qS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yu(e,t){return typeof e=="function"?e(t):e}function XS(e,t){return typeof e=="function"?e(t):e}function Nf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==_c(s,t.options))return!1}else if(!yi(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function Pf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(vi(t.options.mutationKey)!==vi(i))return!1}else if(!yi(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function _c(e,t){return((t==null?void 0:t.queryKeyHashFn)||vi)(e)}function vi(e){return JSON.stringify(e,(t,n)=>xu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function yi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>yi(e[n],t[n])):!1}function Ag(e,t){if(e===t)return e;const n=Tf(e)&&Tf(t);if(n||xu(e)&&xu(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function JS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ag(e,t):t}function eE(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tE(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Dc=Symbol();function Lg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Dc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dr,Ln,Jr,Qf,nE=(Qf=class extends kl{constructor(){super();ne(this,dr);ne(this,Ln);ne(this,Jr);q(this,Jr,t=>{if(!Nl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Ln)||this.setEventListener(j(this,Jr))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Ln))==null||t.call(this),q(this,Ln,void 0))}setEventListener(t){var n;q(this,Jr,t),(n=j(this,Ln))==null||n.call(this),q(this,Ln,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,dr)!==t&&(q(this,dr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,dr)=="boolean"?j(this,dr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},dr=new WeakMap,Ln=new WeakMap,Jr=new WeakMap,Qf),Ig=new nE,eo,In,to,Kf,rE=(Kf=class extends kl{constructor(){super();ne(this,eo,!0);ne(this,In);ne(this,to);q(this,to,t=>{if(!Nl&&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(){j(this,In)||this.setEventListener(j(this,to))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,In))==null||t.call(this),q(this,In,void 0))}setEventListener(t){var n;q(this,to,t),(n=j(this,In))==null||n.call(this),q(this,In,t(this.setOnline.bind(this)))}setOnline(t){j(this,eo)!==t&&(q(this,eo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,eo)}},eo=new WeakMap,In=new WeakMap,to=new WeakMap,Kf),Xs=new rE;function oE(){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 iE(e){return Math.min(1e3*2**e,3e4)}function Mg(e){return(e??"online")==="online"?Xs.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 ma(e){return e instanceof _g}function Dg(e){let t=!1,n=0,r=!1,o;const i=oE(),s=g=>{var y;r||(m(new _g(g)),(y=e.abort)==null||y.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Ig.isFocused()&&(e.networkMode==="always"||Xs.isOnline())&&e.canRun(),c=()=>Mg(e.networkMode)&&e.canRun(),d=g=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,g),o==null||o(),i.resolve(g))},m=g=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,g),o==null||o(),i.reject(g))},f=()=>new Promise(g=>{var y;o=h=>{(r||u())&&g(h)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),w=()=>{if(r)return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(h){g=Promise.reject(h)}Promise.resolve(g).then(d).catch(h=>{var k;if(r)return;const p=e.retry??(Nl?0:3),v=e.retryDelay??iE,E=typeof v=="function"?v(n,h):v,b=p===!0||typeof p=="number"&&nu()?void 0:f()).then(()=>{t?m(h):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?w():f().then(w),i)}}var sE=e=>setTimeout(e,0);function lE(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=sE;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var He=lE(),fr,Gf,zg=(Gf=class{constructor(){ne(this,fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),YS(this.gcTime)&&q(this,fr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nl?1/0:5*60*1e3))}clearGcTimeout(){j(this,fr)&&(clearTimeout(j(this,fr)),q(this,fr,void 0))}},fr=new WeakMap,Gf),no,pr,mt,hr,ze,Ei,mr,Lt,sn,Yf,aE=(Yf=class extends zg{constructor(t){super();ne(this,Lt);ne(this,no);ne(this,pr);ne(this,mt);ne(this,hr);ne(this,ze);ne(this,Ei);ne(this,mr);q(this,mr,!1),q(this,Ei,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,hr,t.client),q(this,mt,j(this,hr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,no,cE(this.options)),this.state=t.state??j(this,no),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...j(this,Ei),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,mt).remove(this)}setData(t,n){const r=JS(this.state.data,t,this.options);return Me(this,Lt,sn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Me(this,Lt,sn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=j(this,ze))==null?void 0:r.promise;return(o=j(this,ze))==null||o.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,no))}isActive(){return this.observers.some(t=>XS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Dc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>yu(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:!qS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,ze)&&(j(this,mr)?j(this,ze).cancel({revert:!0}):j(this,ze).cancelRetry()),this.scheduleGc()),j(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,Lt,sn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,ze))return j(this,ze).continueRetry(),j(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(q(this,mr,!0),r.signal)})},i=()=>{const m=Lg(this.options,n),w=(()=>{const g={client:j(this,hr),queryKey:this.queryKey,meta:this.meta};return o(g),g})();return q(this,mr,!1),this.options.persister?this.options.persister(m,w,this):m(w)},l=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,hr),state:this.state,fetchFn:i};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(l,this),q(this,pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Me(this,Lt,sn).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta});const a=m=>{var f,w,g,y;ma(m)&&m.silent||Me(this,Lt,sn).call(this,{type:"error",error:m}),ma(m)||((w=(f=j(this,mt).config).onError)==null||w.call(f,m,this),(y=(g=j(this,mt).config).onSettled)==null||y.call(g,this.state.data,m,this)),this.scheduleGc()};return q(this,ze,Dg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var f,w,g,y;if(m===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(h){a(h);return}(w=(f=j(this,mt).config).onSuccess)==null||w.call(f,m,this),(y=(g=j(this,mt).config).onSettled)==null||y.call(g,m,this.state.error,this),this.scheduleGc()},onError:a,onFail:(m,f)=>{Me(this,Lt,sn).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{Me(this,Lt,sn).call(this,{type:"pause"})},onContinue:()=>{Me(this,Lt,sn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),j(this,ze).start()}},no=new WeakMap,pr=new WeakMap,mt=new WeakMap,hr=new WeakMap,ze=new WeakMap,Ei=new WeakMap,mr=new WeakMap,Lt=new WeakSet,sn=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,...uE(r.data,this.options),fetchMeta:t.meta??null};case"success":return q(this,pr,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 ma(o)&&o.revert&&j(this,pr)?{...j(this,pr),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()}),j(this,mt).notify({query:this,type:"updated",action:t})})},Yf);function uE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cE(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 Kt,qf,dE=(qf=class extends kl{constructor(t={}){super();ne(this,Kt);this.config=t,q(this,Kt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??_c(o,n);let s=this.get(i);return s||(s=new aE({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){j(this,Kt).has(t.queryHash)||(j(this,Kt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,Kt).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,Kt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,Kt).get(t)}getAll(){return[...j(this,Kt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Nf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Nf(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()})})}},Kt=new WeakMap,qf),Gt,Ve,gr,Yt,Tn,Xf,fE=(Xf=class extends zg{constructor(t){super();ne(this,Yt);ne(this,Gt);ne(this,Ve);ne(this,gr);this.mutationId=t.mutationId,q(this,Ve,t.mutationCache),q(this,Gt,[]),this.state=t.state||pE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Gt).includes(t)||(j(this,Gt).push(t),this.clearGcTimeout(),j(this,Ve).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,Gt,j(this,Gt).filter(n=>n!==t)),this.scheduleGc(),j(this,Ve).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():j(this,Ve).remove(this))}continue(){var t;return((t=j(this,gr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,d,m,f,w,g,y,h,p,v,E,b,k,C,N;const n=()=>{Me(this,Yt,Tn).call(this,{type:"continue"})};q(this,gr,Dg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,O)=>{Me(this,Yt,Tn).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{Me(this,Yt,Tn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Ve).canRun(this)}));const r=this.state.status==="pending",o=!j(this,gr).canStart();try{if(r)n();else{Me(this,Yt,Tn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=j(this,Ve).config).onMutate)==null?void 0:s.call(i,t,this));const O=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));O!==this.state.context&&Me(this,Yt,Tn).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const R=await j(this,gr).start();return await((c=(u=j(this,Ve).config).onSuccess)==null?void 0:c.call(u,R,t,this.state.context,this)),await((m=(d=this.options).onSuccess)==null?void 0:m.call(d,R,t,this.state.context)),await((w=(f=j(this,Ve).config).onSettled)==null?void 0:w.call(f,R,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,R,null,t,this.state.context)),Me(this,Yt,Tn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((p=(h=j(this,Ve).config).onError)==null?void 0:p.call(h,R,t,this.state.context,this)),await((E=(v=this.options).onError)==null?void 0:E.call(v,R,t,this.state.context)),await((k=(b=j(this,Ve).config).onSettled)==null?void 0:k.call(b,void 0,R,this.state.variables,this.state.context,this)),await((N=(C=this.options).onSettled)==null?void 0:N.call(C,void 0,R,t,this.state.context)),R}finally{Me(this,Yt,Tn).call(this,{type:"error",error:R})}}finally{j(this,Ve).runNext(this)}}},Gt=new WeakMap,Ve=new WeakMap,gr=new WeakMap,Yt=new WeakSet,Tn=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(()=>{j(this,Gt).forEach(r=>{r.onMutationUpdate(t)}),j(this,Ve).notify({mutation:this,type:"updated",action:t})})},Xf);function pE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var un,It,bi,Zf,hE=(Zf=class extends kl{constructor(t={}){super();ne(this,un);ne(this,It);ne(this,bi);this.config=t,q(this,un,new Set),q(this,It,new Map),q(this,bi,0)}build(t,n,r){const o=new fE({mutationCache:this,mutationId:++zi(this,bi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){j(this,un).add(t);const n=ss(t);if(typeof n=="string"){const r=j(this,It).get(n);r?r.push(t):j(this,It).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,un).delete(t)){const n=ss(t);if(typeof n=="string"){const r=j(this,It).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&j(this,It).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ss(t);if(typeof n=="string"){const r=j(this,It).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=ss(t);if(typeof n=="string"){const o=(r=j(this,It).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(()=>{j(this,un).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,un).clear(),j(this,It).clear()})}getAll(){return Array.from(j(this,un))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Pf(n,r))}findAll(t={}){return this.getAll().filter(n=>Pf(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(At))))}},un=new WeakMap,It=new WeakMap,bi=new WeakMap,Zf);function ss(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Rf(e){return{onFetch:(t,n)=>{var c,d,m,f,w;const r=t.options,o=(m=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let g=!1;const y=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},h=Lg(t.options,t.fetchOptions),p=async(v,E,b)=>{if(g)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);const C=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:E,direction:b?"backward":"forward",meta:t.options.meta};return y(D),D})(),N=await h(C),{maxPages:R}=t.options,O=b?tE:eE;return{pages:O(v.pages,N,R),pageParams:O(v.pageParams,E,R)}};if(o&&i.length){const v=o==="backward",E=v?mE:Of,b={pages:i,pageParams:s},k=E(r,b);l=await p(b,k,v)}else{const v=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:Of(r,l);if(a>0&&E==null)break;l=await p(l,E),a++}while(a{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Of(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 mE(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 xe,Mn,_n,ro,oo,Dn,io,so,Jf,gE=(Jf=class{constructor(e={}){ne(this,xe);ne(this,Mn);ne(this,_n);ne(this,ro);ne(this,oo);ne(this,Dn);ne(this,io);ne(this,so);q(this,xe,e.queryCache||new dE),q(this,Mn,e.mutationCache||new hE),q(this,_n,e.defaultOptions||{}),q(this,ro,new Map),q(this,oo,new Map),q(this,Dn,0)}mount(){zi(this,Dn)._++,j(this,Dn)===1&&(q(this,io,Ig.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,xe).onFocus())})),q(this,so,Xs.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,xe).onOnline())})))}unmount(){var e,t;zi(this,Dn)._--,j(this,Dn)===0&&((e=j(this,io))==null||e.call(this),q(this,io,void 0),(t=j(this,so))==null||t.call(this),q(this,so,void 0))}isFetching(e){return j(this,xe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,Mn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,xe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,xe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(yu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return j(this,xe).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=j(this,xe).get(r.queryHash),i=o==null?void 0:o.state.data,s=GS(t,i);if(s!==void 0)return j(this,xe).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>j(this,xe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,xe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,xe);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,xe);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(()=>j(this,xe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(At).catch(At)}invalidateQueries(e,t={}){return He.batch(()=>(j(this,xe).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(()=>j(this,xe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,xe).build(this,t);return n.isStaleByTime(yu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Rf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Rf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Xs.isOnline()?j(this,Mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,xe)}getMutationCache(){return j(this,Mn)}getDefaultOptions(){return j(this,_n)}setDefaultOptions(e){q(this,_n,e)}setQueryDefaults(e,t){j(this,ro).set(vi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,ro).values()],n={};return t.forEach(r=>{yi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,oo).set(vi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,oo).values()],n={};return t.forEach(r=>{yi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,_n).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_c(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===Dc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,_n).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,xe).clear(),j(this,Mn).clear()}},xe=new WeakMap,Mn=new WeakMap,_n=new WeakMap,ro=new WeakMap,oo=new WeakMap,Dn=new WeakMap,io=new WeakMap,so=new WeakMap,Jf),vE=S.createContext(void 0),yE=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(vE.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 Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wE(){return Math.random().toString(36).substr(2,8)}function Lf(e,t){return{usr:e.state,key:e.key,idx:t}}function wu(e,t,n,r){return n===void 0&&(n=null),Zs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pl(t):t,{state:n,key:t&&t.key||r||wE()})}function $g(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 Pl(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 SE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=$n.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(Zs({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){l=$n.Pop;let y=c(),h=y==null?null:y-u;u=y,a&&a({action:l,location:g.location,delta:h})}function m(y,h){l=$n.Push;let p=wu(g.location,y,h);u=c()+1;let v=Lf(p,u),E=g.createHref(p);try{s.pushState(v,"",E)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(E)}i&&a&&a({action:l,location:g.location,delta:1})}function f(y,h){l=$n.Replace;let p=wu(g.location,y,h);u=c();let v=Lf(p,u),E=g.createHref(p);s.replaceState(v,"",E),i&&a&&a({action:l,location:g.location,delta:0})}function w(y){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof y=="string"?y:$g(y);return p=p.replace(/ $/,"%20"),nt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return l},get location(){return e(o,s)},listen(y){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Af,d),a=y,()=>{o.removeEventListener(Af,d),a=null}},createHref(y){return t(o,y)},createURL:w,encodeLocation(y){let h=w(y);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:f,go(y){return s.go(y)}};return g}var If;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(If||(If={}));function EE(e,t,n){return n===void 0&&(n="/"),bE(e,t,n,!1)}function bE(e,t,n,r){let o=typeof t=="string"?Pl(t):t,i=Vg(o.pathname||"/",n);if(i==null)return null;let s=Bg(e);CE(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(nt(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Zr([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(nt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Bg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:OE(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of Ug(i.path))o(i,s,a)}),t}function Ug(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=Ug(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function CE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kE=/^:[\w-]+$/,NE=3,PE=2,TE=1,jE=10,RE=-2,Mf=e=>e==="*";function OE(e,t){let n=e.split("/"),r=n.length;return n.some(Mf)&&(r+=RE),t&&(r+=PE),n.filter(o=>!Mf(o)).reduce((o,i)=>o+(kE.test(i)?NE:i===""?TE:jE),r)}function AE(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 LE(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:m,isOptional:f}=c;if(m==="*"){let g=l[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=l[d];return f&&!w?u[m]=void 0:u[m]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function IE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fg(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,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ME(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fg(!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 Vg(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 Zr=e=>e.join("/").replace(/\/\/+/g,"/"),_E=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function DE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Wg=["post","put","patch","delete"];new Set(Wg);const zE=["get",...Wg];new Set(zE);/** * 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 Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},l,y.params),pathname:Zr([a,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:Zr([a,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&g?S.createElement(Tl.Provider,{value:{location:Js({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:$n.Pop}},g):g}function VE(){let e=XE(),t=DE(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 S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const WE=S.createElement(VE,null);class HE extends S.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?S.createElement(jl.Provider,{value:this.props.routeContext},S.createElement(Qg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QE(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(FE);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(jl.Provider,{value:t},r)}function KE(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,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);c>=0||nt(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,m)=>{let f,w=!1,g=null,y=null;n&&(f=l&&d.route.id?l[d.route.id]:void 0,g=d.route.errorElement||WE,a&&(u<0&&m===0?(w=!0,y=null):u===m&&(w=!0,y=d.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,m+1)),p=()=>{let v;return f?v=g:w?v=y:d.route.Component?v=S.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,S.createElement(QE,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?S.createElement(HE,{location:n.location,revalidation:n.revalidation,component:g,error:f,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Su=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}(Su||{});function GE(e){let t=S.useContext($E);return t||nt(!1),t}function YE(e){let t=S.useContext(jl);return t||nt(!1),t}function qE(e){let t=YE(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}function XE(){var e;let t=S.useContext(Qg),n=GE(Su.UseRouteError),r=qE(Su.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Eu(e){nt(!1)}function JE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=$n.Pop,navigator:i,static:s=!1,future:l}=e;zc()&&nt(!1);let a=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:a,navigator:i,static:s,future:Js({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=Pl(r));let{pathname:c="/",search:d="",hash:m="",state:f=null,key:w="default"}=r,g=S.useMemo(()=>{let y=Vg(c,a);return y==null?null:{location:{pathname:y,search:d,hash:m,state:f,key:w},navigationType:o}},[a,c,d,m,f,w,o]);return g==null?null:S.createElement(Hg.Provider,{value:u},S.createElement(Tl.Provider,{children:n,value:g}))}function eb(e){let{children:t,location:n}=e;return BE(bu(t),n)}new Promise(()=>{});function bu(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let i=[...t,o];if(r.type===S.Fragment){n.push.apply(n,bu(r.props.children,i));return}r.type!==Eu&&nt(!1),!r.props.index||!r.props.children||nt(!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=bu(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 tb="6";try{window.__reactRouterVersion=tb}catch{}const nb="startTransition",Df=dp[nb];function rb(e){let{basename:t,children:n,future:r,window:o}=e,i=S.useRef();i.current==null&&(i.current=xE({window:o,v5Compat:!0}));let s=i.current,[l,a]=S.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=S.useCallback(d=>{u&&Df?Df(()=>a(d)):a(d)},[a,u]);return S.useLayoutEffect(()=>s.listen(c),[s,c]),S.useEffect(()=>ZE(r),[r]),S.createElement(JE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var zf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zf||(zf={}));var Ff;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ff||(Ff={}));const ob=kc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-300 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 shadow-soft hover:shadow-strong",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",hero:"gradient-ai-purple text-white hover:scale-105 shadow-glow font-semibold border-0",webinar:"bg-white text-primary border-2 border-primary hover:bg-primary hover:text-white shadow-soft hover:shadow-strong",tryNow:"bg-white/10 text-white border border-white/20 hover:bg-white/20 backdrop-blur-sm"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-14 rounded-xl px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),tr=S.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?_0:"button";return x.jsx(s,{className:ot(ob({variant:t,size:n,className:e})),ref:i,...o})});tr.displayName="Button";const ib="/assets/wooclap-logo-blue-BwEx-R6L.svg",sb=()=>x.jsxs("section",{className:"relative min-h-0 flex items-center justify-center py-20",style:{background:"linear-gradient(to bottom, hsl(var(--purple-light)), hsl(var(--purple-subtle)))"},children:[x.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[x.jsx("div",{className:"absolute top-20 left-10 w-32 h-32 bg-primary/10 rounded-full animate-float"}),x.jsx("div",{className:"absolute bottom-20 right-10 w-24 h-24 bg-accent/10 rounded-full animate-float",style:{animationDelay:"2s"}}),x.jsx("div",{className:"absolute top-1/2 left-1/4 w-16 h-16 bg-primary/5 rounded-full animate-float",style:{animationDelay:"4s"}})]}),x.jsx("div",{className:"absolute top-8 left-16 z-20",children:x.jsx("img",{src:ib,alt:"Wooclap",className:"h-8 w-auto"})}),x.jsx("div",{className:"absolute top-8 right-8 z-20",children:x.jsx(tr,{variant:"outline",size:"lg",className:"text-primary border-primary/30 hover:bg-primary/5 rounded-full px-6",onClick:()=>window.open("https://www.wooclap.com/","_blank"),children:"Explore Wooclap"})}),x.jsx("div",{className:"container mx-auto px-6 text-center relative z-10",children:x.jsxs("div",{className:"max-w-4xl mx-auto",children:[x.jsx("div",{className:"mb-12 mt-16"}),x.jsx("h1",{className:"text-5xl md:text-7xl font-extrabold mb-6 text-foreground",children:"5 AI agents that actually help you teach and train"}),x.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-12 leading-relaxed",children:"Meet our five new AI agents that transform how you create, organize, and deliver educational and training content. The future of learning is here."}),x.jsx("div",{className:"flex justify-center mb-8",children:x.jsxs("div",{className:"inline-flex items-center gap-2 bg-green-50 border border-green-200 px-4 py-2 rounded-lg",children:[x.jsx(Hm,{className:"w-4 h-4 text-green-600"}),x.jsx("span",{className:"text-sm font-medium text-green-700",children:"Privacy-compliant"})]})}),x.jsx("div",{className:"flex flex-col items-center gap-2",children:x.jsxs(tr,{variant:"hero",size:"xl",className:"group px-8 py-4 text-lg rounded-full",onClick:()=>{var e;return(e=document.getElementById("webinar-section"))==null?void 0:e.scrollIntoView({behavior:"smooth"})},children:["Watch the replay",x.jsx(V1,{className:"w-5 h-5 group-hover:rotate-12 transition-transform duration-300"})]})})]})})]});function lb(e){return Object.prototype.toString.call(e)==="[object Object]"}function $f(e){return lb(e)||Array.isArray(e)}function ab(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==i?!1:n.every(s=>{const l=e[s],a=t[s];return typeof l=="function"?`${l}`==`${a}`:!$f(l)||!$f(a)?l===a:Fc(l,a)})}function Bf(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function ub(e,t){if(e.length!==t.length)return!1;const n=Bf(e),r=Bf(t);return n.every((o,i)=>{const s=r[i];return Fc(o,s)})}function $c(e){return typeof e=="number"}function Cu(e){return typeof e=="string"}function Rl(e){return typeof e=="boolean"}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function he(e){return Math.abs(e)}function Bc(e){return Math.sign(e)}function Xo(e,t){return he(e-t)}function cb(e,t){if(e===0||t===0||he(e)<=he(t))return 0;const n=Xo(he(e),he(t));return he(n/e)}function db(e){return Math.round(e*100)/100}function xi(e){return wi(e).map(Number)}function Ft(e){return e[Ai(e)]}function Ai(e){return Math.max(0,e.length-1)}function Uc(e,t){return t===Ai(e)}function Vf(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function wi(e){return Object.keys(e)}function Gg(e,t){return[e,t].reduce((n,r)=>(wi(r).forEach(o=>{const i=n[o],s=r[o],l=Uf(i)&&Uf(s);n[o]=l?Gg(i,s):s}),n),{})}function ku(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function fb(e,t){const n={start:r,center:o,end:i};function r(){return 0}function o(a){return i(a)/2}function i(a){return t-a}function s(a,u){return Cu(e)?n[e](a):e(t,a,u)}return{measure:s}}function Si(){let e=[];function t(o,i,s,l={passive:!0}){let a;if("addEventListener"in o)o.addEventListener(i,s,l),a=()=>o.removeEventListener(i,s,l);else{const u=o;u.addListener(s),a=()=>u.removeListener(s)}return e.push(a),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function pb(e,t,n,r){const o=Si(),i=1e3/60;let s=null,l=0,a=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&w()})}function c(){f(),o.clear()}function d(y){if(!a)return;s||(s=y,n(),n());const h=y-s;for(s=y,l+=h;l>=i;)n(),l-=i;const p=l/i;r(p),a&&(a=t.requestAnimationFrame(d))}function m(){a||(a=t.requestAnimationFrame(d))}function f(){t.cancelAnimationFrame(a),s=null,l=0,a=0}function w(){s=null,l=0}return{init:u,destroy:c,start:m,stop:f,update:n,render:r}}function hb(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",i=r?"x":"y",s=!r&&n?-1:1,l=c(),a=d();function u(w){const{height:g,width:y}=w;return r?g:y}function c(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function m(w){return w*s}return{scroll:o,cross:i,startEdge:l,endEdge:a,measureSize:u,direction:m}}function kr(e=0,t=0){const n=he(e-t);function r(u){return ut}function i(u){return r(u)||o(u)}function s(u){return i(u)?r(u)?e:t:u}function l(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:s,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:l}}function Yg(e,t,n){const{constrain:r}=kr(0,e),o=e+1;let i=s(t);function s(m){return n?he((o+m)%o):r(m)}function l(){return i}function a(m){return i=s(m),d}function u(m){return c().set(l()+m)}function c(){return Yg(e,l(),n)}const d={get:l,set:a,add:u,clone:c};return d}function mb(e,t,n,r,o,i,s,l,a,u,c,d,m,f,w,g,y,h,p){const{cross:v,direction:E}=e,b=["INPUT","SELECT","TEXTAREA"],k={passive:!1},C=Si(),N=Si(),R=kr(50,225).constrain(f.measure(20)),O={mouse:300,touch:400},D={mouse:500,touch:600},M=w?43:25;let H=!1,A=0,W=0,B=!1,U=!1,P=!1,T=!1;function _(F){if(!p)return;function J(Ce){(Rl(p)||p(F,Ce))&&ve(Ce)}const ae=t;C.add(ae,"dragstart",Ce=>Ce.preventDefault(),k).add(ae,"touchmove",()=>{},k).add(ae,"touchend",()=>{}).add(ae,"touchstart",J).add(ae,"mousedown",J).add(ae,"touchcancel",ye).add(ae,"contextmenu",ye).add(ae,"click",je,!0)}function V(){C.clear(),N.clear()}function $(){const F=T?n:t;N.add(F,"touchmove",Y,k).add(F,"touchend",ye).add(F,"mousemove",Y,k).add(F,"mouseup",ye)}function Q(F){const J=F.nodeName||"";return b.includes(J)}function K(){return(w?D:O)[T?"mouse":"touch"]}function ie(F,J){const ae=d.add(Bc(F)*-1),Ce=c.byDistance(F,!w).distance;return w||he(F)=2,!(J&&F.button!==0)&&(Q(F.target)||(B=!0,i.pointerDown(F),u.useFriction(0).useDuration(0),o.set(s),$(),A=i.readPoint(F),W=i.readPoint(F,v),m.emit("pointerDown")))}function Y(F){if(!ku(F,r)&&F.touches.length>=2)return ye(F);const ae=i.readPoint(F),Ce=i.readPoint(F,v),Be=Xo(ae,A),it=Xo(Ce,W);if(!U&&!T&&(!F.cancelable||(U=Be>it,!U)))return ye(F);const st=i.pointerMove(F);Be>g&&(P=!0),u.useFriction(.3).useDuration(.75),l.start(),o.add(E(st)),F.preventDefault()}function ye(F){const ae=c.byDistance(0,!1).index!==d.get(),Ce=i.pointerUp(F)*K(),Be=ie(E(Ce),ae),it=cb(Ce,Be),st=M-10*it,Ue=h+it/50;U=!1,B=!1,N.clear(),u.useDuration(st).useFriction(Ue),a.distance(Be,!w),T=!1,m.emit("pointerUp")}function je(F){P&&(F.stopPropagation(),F.preventDefault(),P=!1)}function Ee(){return B}return{init:_,destroy:V,pointerDown:Ee}}function gb(e,t){let r,o;function i(d){return d.timeStamp}function s(d,m){const w=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(ku(d,t)?d:d.touches[0])[w]}function l(d){return r=d,o=d,s(d)}function a(d){const m=s(d)-s(o),f=i(d)-i(r)>170;return o=d,f&&(r=d),m}function u(d){if(!r||!o)return 0;const m=s(o)-s(r),f=i(d)-i(r),w=i(d)-i(o)>170,g=m/f;return f&&!w&&he(g)>.1?g:0}return{pointerDown:l,pointerMove:a,pointerUp:u,readPoint:s}}function vb(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:i,offsetHeight:s}=n;return{top:r,right:o+i,bottom:r+s,left:o,width:i,height:s}}return{measure:e}}function yb(e){function t(r){return e*(r/100)}return{measure:t}}function xb(e,t,n,r,o,i,s){const l=[e].concat(r);let a,u,c=[],d=!1;function m(y){return o.measureSize(s.measure(y))}function f(y){if(!i)return;u=m(e),c=r.map(m);function h(p){for(const v of p){if(d)return;const E=v.target===e,b=r.indexOf(v.target),k=E?u:c[b],C=m(E?e:r[b]);if(he(C-k)>=.5){y.reInit(),t.emit("resize");break}}}a=new ResizeObserver(p=>{(Rl(i)||i(y,p))&&h(p)}),n.requestAnimationFrame(()=>{l.forEach(p=>a.observe(p))})}function w(){d=!0,a&&a.disconnect()}return{init:f,destroy:w}}function wb(e,t,n,r,o,i){let s=0,l=0,a=o,u=i,c=e.get(),d=0;function m(){const k=r.get()-e.get(),C=!a;let N=0;return C?(s=0,n.set(r),e.set(r),N=k):(n.set(e),s+=k/a,s*=u,c+=s,e.add(s),N=c-d),l=Bc(N),d=c,b}function f(){const k=r.get()-t.get();return he(k)<.001}function w(){return a}function g(){return l}function y(){return s}function h(){return v(o)}function p(){return E(i)}function v(k){return a=k,b}function E(k){return u=k,b}const b={direction:g,duration:w,velocity:y,seek:m,settled:f,useBaseFriction:p,useBaseDuration:h,useFriction:E,useDuration:v};return b}function Sb(e,t,n,r,o){const i=o.measure(10),s=o.measure(50),l=kr(.1,.99);let a=!1;function u(){return!(a||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function c(f){if(!u())return;const w=e.reachedMin(t.get())?"min":"max",g=he(e[w]-t.get()),y=n.get()-t.get(),h=l.constrain(g/s);n.subtract(y*h),!f&&he(y){const{min:y,max:h}=i,p=i.constrain(w),v=!g,E=Uc(n,g);return v?h:E||u(y,p)?y:u(h,p)?h:p}).map(w=>parseFloat(w.toFixed(3)))}function m(){if(t<=e+o)return[i.max];if(r==="keepSnaps")return s;const{min:w,max:g}=l;return s.slice(w,g)}return{snapsContained:a,scrollContainLimit:l}}function bb(e,t,n){const r=t[0],o=n?r-e:Ft(t);return{limit:kr(o,r)}}function Cb(e,t,n,r){const i=t.min+.1,s=t.max+.1,{reachedMin:l,reachedMax:a}=kr(i,s);function u(m){return m===1?a(n.get()):m===-1?l(n.get()):!1}function c(m){if(!u(m))return;const f=e*(m*-1);r.forEach(w=>w.add(f))}return{loop:c}}function kb(e){const{max:t,length:n}=e;function r(i){const s=i-t;return n?s/-n:0}return{get:r}}function Nb(e,t,n,r,o){const{startEdge:i,endEdge:s}=e,{groupSlides:l}=o,a=d().map(t.measure),u=m(),c=f();function d(){return l(r).map(g=>Ft(g)[s]-g[0][i]).map(he)}function m(){return r.map(g=>n[i]-g[i]).map(g=>-he(g))}function f(){return l(u).map(g=>g[0]).map((g,y)=>g+a[y])}return{snaps:u,snapsAligned:c}}function Pb(e,t,n,r,o,i){const{groupSlides:s}=o,{min:l,max:a}=r,u=c();function c(){const m=s(i),f=!e||t==="keepSnaps";return n.length===1?[i]:f?m:m.slice(l,a).map((w,g,y)=>{const h=!g,p=Uc(y,g);if(h){const v=Ft(y[0])+1;return Vf(v)}if(p){const v=Ai(i)-Ft(y)[0]+1;return Vf(v,Ft(y)[0])}return w})}return{slideRegistry:u}}function Tb(e,t,n,r,o){const{reachedAny:i,removeOffset:s,constrain:l}=r;function a(w){return w.concat().sort((g,y)=>he(g)-he(y))[0]}function u(w){const g=e?s(w):l(w),y=t.map((p,v)=>({diff:c(p-g,0),index:v})).sort((p,v)=>he(p.diff)-he(v.diff)),{index:h}=y[0];return{index:h,distance:g}}function c(w,g){const y=[w,w+n,w-n];if(!e)return w;if(!g)return a(y);const h=y.filter(p=>Bc(p)===g);return h.length?a(h):Ft(y)-n}function d(w,g){const y=t[w]-o.get(),h=c(y,g);return{index:w,distance:h}}function m(w,g){const y=o.get()+w,{index:h,distance:p}=u(y),v=!e&&i(y);if(!g||v)return{index:h,distance:w};const E=t[h]-p,b=w+c(E,0);return{index:h,distance:b}}return{byDistance:m,byIndex:d,shortcut:c}}function jb(e,t,n,r,o,i,s){function l(d){const m=d.distance,f=d.index!==t.get();i.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),f&&(n.set(t.get()),t.set(d.index),s.emit("select"))}function a(d,m){const f=o.byDistance(d,m);l(f)}function u(d,m){const f=t.clone().set(d),w=o.byIndex(f.get(),m);l(w)}return{distance:a,index:u}}function Rb(e,t,n,r,o,i,s,l){const a={passive:!0,capture:!0};let u=0;function c(f){if(!l)return;function w(g){if(new Date().getTime()-u>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const p=n.findIndex(v=>v.includes(g));$c(p)&&(o.useDuration(0),r.index(p,0),s.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((g,y)=>{i.add(g,"focus",h=>{(Rl(l)||l(f,h))&&w(y)},a)})}function d(f){f.code==="Tab"&&(u=new Date().getTime())}return{init:c}}function $o(e){let t=e;function n(){return t}function r(a){t=s(a)}function o(a){t+=s(a)}function i(a){t-=s(a)}function s(a){return $c(a)?a:a.get()}return{get:n,set:r,add:o,subtract:i}}function qg(e,t){const n=e.scroll==="x"?s:l,r=t.style;let o=null,i=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function l(m){return`translate3d(0px,${m}px,0px)`}function a(m){if(i)return;const f=db(e.direction(m));f!==o&&(r.transform=n(f),o=f)}function u(m){i=!m}function c(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:a,toggleActive:u}}function Ob(e,t,n,r,o,i,s,l,a){const c=xi(o),d=xi(o).reverse(),m=h().concat(p());function f(C,N){return C.reduce((R,O)=>R-o[O],N)}function w(C,N){return C.reduce((R,O)=>f(R,N)>0?R.concat([O]):R,[])}function g(C){return i.map((N,R)=>({start:N-r[R]+.5+C,end:N+t-.5+C}))}function y(C,N,R){const O=g(N);return C.map(D=>{const M=R?0:-n,H=R?n:0,A=R?"end":"start",W=O[D][A];return{index:D,loopPoint:W,slideLocation:$o(-1),translate:qg(e,a[D]),target:()=>l.get()>W?M:H}})}function h(){const C=s[0],N=w(d,C);return y(N,n,!1)}function p(){const C=t-s[0]-1,N=w(c,C);return y(N,-n,!0)}function v(){return m.every(({index:C})=>{const N=c.filter(R=>R!==C);return f(N,t)<=.1})}function E(){m.forEach(C=>{const{target:N,translate:R,slideLocation:O}=C,D=N();D!==O.get()&&(R.to(D),O.set(D))})}function b(){m.forEach(C=>C.translate.clear())}return{canLoop:v,clear:b,loop:E,loopPoints:m}}function Ab(e,t,n){let r,o=!1;function i(a){if(!n)return;function u(c){for(const d of c)if(d.type==="childList"){a.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(c=>{o||(Rl(n)||n(a,c))&&u(c)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),o=!0}return{init:i,destroy:s}}function Lb(e,t,n,r){const o={};let i=null,s=null,l,a=!1;function u(){l=new IntersectionObserver(w=>{a||(w.forEach(g=>{const y=t.indexOf(g.target);o[y]=g}),i=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(w=>l.observe(w))}function c(){l&&l.disconnect(),a=!0}function d(w){return wi(o).reduce((g,y)=>{const h=parseInt(y),{isIntersecting:p}=o[h];return(w&&p||!w&&!p)&&g.push(h),g},[])}function m(w=!0){if(w&&i)return i;if(!w&&s)return s;const g=d(w);return w&&(i=g),w||(s=g),g}return{init:u,destroy:c,get:m}}function Ib(e,t,n,r,o,i){const{measureSize:s,startEdge:l,endEdge:a}=e,u=n[0]&&o,c=w(),d=g(),m=n.map(s),f=y();function w(){if(!u)return 0;const p=n[0];return he(t[l]-p[l])}function g(){if(!u)return 0;const p=i.getComputedStyle(Ft(r));return parseFloat(p.getPropertyValue(`margin-${a}`))}function y(){return n.map((p,v,E)=>{const b=!v,k=Uc(E,v);return b?m[v]+c:k?m[v]+d:E[v+1][l]-p[l]}).map(he)}return{slideSizes:m,slideSizesWithGaps:f,startGap:c,endGap:d}}function Mb(e,t,n,r,o,i,s,l,a){const{startEdge:u,endEdge:c,direction:d}=e,m=$c(n);function f(h,p){return xi(h).filter(v=>v%p===0).map(v=>h.slice(v,v+p))}function w(h){return h.length?xi(h).reduce((p,v,E)=>{const b=Ft(p)||0,k=b===0,C=v===Ai(h),N=o[u]-i[b][u],R=o[u]-i[v][c],O=!r&&k?d(s):0,D=!r&&C?d(l):0,M=he(R-D-(N+O));return E&&M>t+a&&p.push(v),C&&p.push(h.length),p},[]).map((p,v,E)=>{const b=Math.max(E[v-1]||0);return h.slice(b,p)}):[]}function g(h){return m?f(h,n):w(h)}return{groupSlides:g}}function _b(e,t,n,r,o,i,s){const{align:l,axis:a,direction:u,startIndex:c,loop:d,duration:m,dragFree:f,dragThreshold:w,inViewThreshold:g,slidesToScroll:y,skipSnaps:h,containScroll:p,watchResize:v,watchSlides:E,watchDrag:b,watchFocus:k}=i,C=2,N=vb(),R=N.measure(t),O=n.map(N.measure),D=hb(a,u),M=D.measureSize(R),H=yb(M),A=fb(l,M),W=!d&&!!p,B=d||!!p,{slideSizes:U,slideSizesWithGaps:P,startGap:T,endGap:_}=Ib(D,R,O,n,B,o),V=Mb(D,M,y,d,R,O,T,_,C),{snaps:$,snapsAligned:Q}=Nb(D,A,R,O,V),K=-Ft($)+Ft(P),{snapsContained:ie,scrollContainLimit:ve}=Eb(M,K,Q,p,C),Y=W?ie:Q,{limit:ye}=bb(K,Y,d),je=Yg(Ai(Y),c,d),Ee=je.clone(),te=xi(n),F=({dragHandler:Ct,scrollBody:Co,scrollBounds:jr,options:{loop:wn}})=>{wn||jr.constrain(Ct.pointerDown()),Co.seek()},J=({scrollBody:Ct,translate:Co,location:jr,offsetLocation:wn,previousLocation:Sn,scrollLooper:Mi,slideLooper:En,dragHandler:Ll,animation:Il,eventHandler:ko,scrollBounds:_i,options:{loop:Di}},Rr)=>{const kt=Ct.settled(),Ml=!_i.shouldConstrain(),G=Di?kt:kt&&Ml,re=G&&!Ll.pointerDown();re&&Il.stop();const se=jr.get()*Rr+Sn.get()*(1-Rr);wn.set(se),Di&&(Mi.loop(Ct.direction()),En.loop()),Co.to(wn.get()),re&&ko.emit("settle"),G||ko.emit("scroll")},ae=pb(r,o,()=>F(bo),Ct=>J(bo,Ct)),Ce=.68,Be=Y[je.get()],it=$o(Be),st=$o(Be),Ue=$o(Be),Wt=$o(Be),Et=wb(it,Ue,st,Wt,m,Ce),Tr=Tb(d,Y,K,ye,Wt),bt=jb(ae,je,Ee,Et,Tr,Wt,s),Li=kb(ye),Ii=Si(),Ye=Lb(t,n,s,g),{slideRegistry:rn}=Pb(W,p,Y,ve,V,te),Al=Rb(e,n,rn,bt,Et,Ii,s,k),bo={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:R,slideRects:O,animation:ae,axis:D,dragHandler:mb(D,e,r,o,Wt,gb(D,o),it,ae,bt,Et,Tr,je,s,H,f,w,h,Ce,b),eventStore:Ii,percentOfView:H,index:je,indexPrevious:Ee,limit:ye,location:it,offsetLocation:Ue,previousLocation:st,options:i,resizeHandler:xb(t,s,o,n,D,v,N),scrollBody:Et,scrollBounds:Sb(ye,Ue,Wt,Et,H),scrollLooper:Cb(K,ye,Ue,[it,Ue,st,Wt]),scrollProgress:Li,scrollSnapList:Y.map(Li.get),scrollSnaps:Y,scrollTarget:Tr,scrollTo:bt,slideLooper:Ob(D,M,K,U,P,$,Y,Ue,n),slideFocus:Al,slidesHandler:Ab(t,s,E),slidesInView:Ye,slideIndexes:te,slideRegistry:rn,slidesToScroll:V,target:Wt,translate:qg(D,t)};return bo}function Db(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(c=>c(t,u)),a}function i(u,c){return e[u]=r(u).concat([c]),a}function s(u,c){return e[u]=r(u).filter(d=>d!==c),a}function l(){e={}}const a={init:n,emit:o,off:s,on:i,clear:l};return a}const zb={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Fb(e){function t(i,s){return Gg(i,s||{})}function n(i){const s=i.breakpoints||{},l=wi(s).filter(a=>e.matchMedia(a).matches).map(a=>s[a]).reduce((a,u)=>t(a,u),{});return t(i,l)}function r(i){return i.map(s=>wi(s.breakpoints||{})).reduce((s,l)=>s.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function $b(e){let t=[];function n(i,s){return t=s.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),s.reduce((l,a)=>Object.assign(l,{[a.name]:a}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function el(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=Fb(o),s=$b(i),l=Si(),a=Db(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:d}=i,{on:m,off:f,emit:w}=a,g=D;let y=!1,h,p=u(zb,el.globalOptions),v=u(p),E=[],b,k,C;function N(){const{container:te,slides:F}=v;k=(Cu(te)?e.querySelector(te):te)||e.children[0];const ae=Cu(F)?k.querySelectorAll(F):F;C=[].slice.call(ae||k.children)}function R(te){const F=_b(e,k,C,r,o,te,a);if(te.loop&&!F.slideLooper.canLoop()){const J=Object.assign({},te,{loop:!1});return R(J)}return F}function O(te,F){y||(p=u(p,te),v=c(p),E=F||E,N(),h=R(v),d([p,...E.map(({options:J})=>J)]).forEach(J=>l.add(J,"change",D)),v.active&&(h.translate.to(h.location.get()),h.animation.init(),h.slidesInView.init(),h.slideFocus.init(Ee),h.eventHandler.init(Ee),h.resizeHandler.init(Ee),h.slidesHandler.init(Ee),h.options.loop&&h.slideLooper.loop(),k.offsetParent&&C.length&&h.dragHandler.init(Ee),b=s.init(Ee,E)))}function D(te,F){const J=V();M(),O(u({startIndex:J},te),F),a.emit("reInit")}function M(){h.dragHandler.destroy(),h.eventStore.clear(),h.translate.clear(),h.slideLooper.clear(),h.resizeHandler.destroy(),h.slidesHandler.destroy(),h.slidesInView.destroy(),h.animation.destroy(),s.destroy(),l.clear()}function H(){y||(y=!0,l.clear(),M(),a.emit("destroy"),a.clear())}function A(te,F,J){!v.active||y||(h.scrollBody.useBaseFriction().useDuration(F===!0?0:v.duration),h.scrollTo.index(te,J||0))}function W(te){const F=h.index.add(1).get();A(F,te,-1)}function B(te){const F=h.index.add(-1).get();A(F,te,1)}function U(){return h.index.add(1).get()!==V()}function P(){return h.index.add(-1).get()!==V()}function T(){return h.scrollSnapList}function _(){return h.scrollProgress.get(h.offsetLocation.get())}function V(){return h.index.get()}function $(){return h.indexPrevious.get()}function Q(){return h.slidesInView.get()}function K(){return h.slidesInView.get(!1)}function ie(){return b}function ve(){return h}function Y(){return e}function ye(){return k}function je(){return C}const Ee={canScrollNext:U,canScrollPrev:P,containerNode:ye,internalEngine:ve,destroy:H,off:f,on:m,emit:w,plugins:ie,previousScrollSnap:$,reInit:g,rootNode:Y,scrollNext:W,scrollPrev:B,scrollProgress:_,scrollSnapList:T,scrollTo:A,selectedScrollSnap:V,slideNodes:je,slidesInView:Q,slidesNotInView:K};return O(t,n),setTimeout(()=>a.emit("init"),0),Ee}el.globalOptions=void 0;function Vc(e={},t=[]){const n=S.useRef(e),r=S.useRef(t),[o,i]=S.useState(),[s,l]=S.useState(),a=S.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return S.useEffect(()=>{Fc(n.current,e)||(n.current=e,a())},[e,a]),S.useEffect(()=>{ub(r.current,t)||(r.current=t,a())},[t,a]),S.useEffect(()=>{if(ab()&&s){el.globalOptions=Vc.globalOptions;const u=el(s,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[s,i]),[l,o]}Vc.globalOptions=void 0;const Xg=S.createContext(null);function Ol(){const e=S.useContext(Xg);if(!e)throw new Error("useCarousel must be used within a ");return e}const Zg=S.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:i,...s},l)=>{const[a,u]=Vc({...t,axis:e==="horizontal"?"x":"y"},r),[c,d]=S.useState(!1),[m,f]=S.useState(!1),w=S.useCallback(p=>{p&&(d(p.canScrollPrev()),f(p.canScrollNext()))},[]),g=S.useCallback(()=>{u==null||u.scrollPrev()},[u]),y=S.useCallback(()=>{u==null||u.scrollNext()},[u]),h=S.useCallback(p=>{p.key==="ArrowLeft"?(p.preventDefault(),g()):p.key==="ArrowRight"&&(p.preventDefault(),y())},[g,y]);return S.useEffect(()=>{!u||!n||n(u)},[u,n]),S.useEffect(()=>{if(u)return w(u),u.on("reInit",w),u.on("select",w),()=>{u==null||u.off("select",w)}},[u,w]),x.jsx(Xg.Provider,{value:{carouselRef:a,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:y,canScrollPrev:c,canScrollNext:m},children:x.jsx("div",{ref:l,onKeyDownCapture:h,className:ot("relative",o),role:"region","aria-roledescription":"carousel",...s,children:i})})});Zg.displayName="Carousel";const Jg=S.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Ol();return x.jsx("div",{ref:r,className:"overflow-hidden",children:x.jsx("div",{ref:n,className:ot("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Jg.displayName="CarouselContent";const ev=S.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Ol();return x.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:ot("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});ev.displayName="CarouselItem";const tv=S.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:i,scrollPrev:s,canScrollPrev:l}=Ol();return x.jsxs(tr,{ref:o,variant:t,size:n,className:ot("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...r,children:[x.jsx(O1,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Previous slide"})]})});tv.displayName="CarouselPrevious";const nv=S.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:i,scrollNext:s,canScrollNext:l}=Ol();return x.jsxs(tr,{ref:o,variant:t,size:n,className:ot("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...r,children:[x.jsx(A1,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Next slide"})]})});nv.displayName="CarouselNext";const Bb={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Ub(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function Vb(e,t){const n=e.rootNode();return t&&t(n)||n}function Wc(e={}){let t,n,r,o,i=null,s=0,l=!1,a=!1,u=!1,c=!1;function d(A,W){n=A;const{mergeOptions:B,optionsAtMedia:U}=W,P=B(Bb,Wc.globalOptions),T=B(P,e);if(t=U(T),n.scrollSnapList().length<=1)return;c=t.jump,r=!1,o=Ub(n,t.delay);const{eventStore:_,ownerDocument:V}=n.internalEngine(),$=!!n.internalEngine().options.watchDrag,Q=Vb(n,t.rootNode);_.add(V,"visibilitychange",h),$&&n.on("pointerDown",v),$&&!t.stopOnInteraction&&n.on("pointerUp",E),t.stopOnMouseEnter&&_.add(Q,"mouseenter",b),t.stopOnMouseEnter&&!t.stopOnInteraction&&_.add(Q,"mouseleave",k),t.stopOnFocusIn&&n.on("slideFocusStart",y),t.stopOnFocusIn&&!t.stopOnInteraction&&_.add(n.containerNode(),"focusout",g),t.playOnInit&&g()}function m(){n.off("pointerDown",v).off("pointerUp",E).off("slideFocusStart",y),y(),r=!0,l=!1}function f(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(s),s=A.setTimeout(D,o[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function w(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(s),s=0,i=null,n.emit("autoplay:timerstopped")}function g(){if(!r){if(p()){u=!0;return}l||n.emit("autoplay:play"),f(),l=!0}}function y(){r||(l&&n.emit("autoplay:stop"),w(),l=!1)}function h(){if(p())return u=l,y();u&&g()}function p(){const{ownerDocument:A}=n.internalEngine();return A.visibilityState==="hidden"}function v(){a||y()}function E(){a||g()}function b(){a=!0,y()}function k(){a=!1,g()}function C(A){typeof A<"u"&&(c=A),g()}function N(){l&&y()}function R(){l&&g()}function O(){return l}function D(){const{index:A}=n.internalEngine(),W=A.clone().add(1).get(),B=n.scrollSnapList().length-1,U=t.stopOnLastSnap&&W===B;if(n.canScrollNext()?n.scrollNext(c):n.scrollTo(0,c),n.emit("autoplay:select"),U)return y();g()}function M(){if(!i)return null;const A=o[n.selectedScrollSnap()],W=new Date().getTime()-i;return A-W}return{name:"autoplay",options:e,init:d,destroy:m,play:C,stop:N,reset:R,isPlaying:O,timeUntilNext:M}}Wc.globalOptions=void 0;const Wb=[{name:"NC State University",logo:"/lovable-uploads/6fe61da7-9997-4f94-92b9-4246f234ae34.png"},{name:"uOttawa",logo:"/lovable-uploads/fd28241c-533a-4551-89b9-7a72adf7eb0a.png"},{name:"Universidad Complutense Madrid",logo:"/lovable-uploads/3cf90b1e-328f-4243-ad04-495e74de82a4.png"},{name:"Sorbonne Université",logo:"/lovable-uploads/1b7646cc-7460-400f-9a74-d67261b230ea.png"},{name:"l'anap",logo:"/lovable-uploads/d91547e3-a7a7-4892-85c9-f84452093c39.png"},{name:"SciencesPo",logo:"/lovable-uploads/30406057-ff79-49db-a428-9fc1409e62d5.png"},{name:"Nanyang Technological University",logo:"/lovable-uploads/5bbadc78-a731-4f54-8ba4-70ad34cd0fd8.png"},{name:"Cegos",logo:"/lovable-uploads/74018b64-3edd-4634-be4f-196707f49a25.png"},{name:"Heriot Watt University",logo:"/lovable-uploads/eefb3282-dcf6-451d-8591-956812b14602.png"}],Hb=()=>x.jsx("section",{className:"py-20 px-6",style:{background:"linear-gradient(to bottom, hsl(var(--purple-soft)), hsl(var(--background)))"},children:x.jsx("div",{className:"container mx-auto max-w-7xl",children:x.jsxs("div",{className:"text-center",children:[x.jsx("h2",{className:"text-4xl md:text-5xl font-extrabold mb-12",children:"Designed in collaboration with leading institutions"}),x.jsx("div",{className:"relative max-w-5xl mx-auto",children:x.jsxs(Zg,{plugins:[Wc({delay:3e3,stopOnInteraction:!0})],opts:{align:"start",loop:!0},className:"w-full",children:[x.jsx(Jg,{className:"-ml-4",children:Wb.map((e,t)=>x.jsx(ev,{className:"pl-4 basis-1/2 md:basis-1/3 lg:basis-1/4",children:x.jsx("div",{className:"group flex items-center justify-center h-32 p-6 rounded-xl bg-white shadow-md hover:shadow-xl hover:scale-105 transition-all duration-300",children:x.jsx("img",{src:e.logo,alt:e.name,className:"max-h-20 max-w-full object-contain transition-all duration-300",title:e.name})})},t))}),x.jsx(tv,{className:"hidden md:flex"}),x.jsx(nv,{className:"hidden md:flex"})]})}),x.jsx("div",{className:"mt-8 text-sm text-muted-foreground",children:"Trusted by leading educational institutions and organizations worldwide"})]})})}),Qb="/assets/agent-image-labeler-new-CSmzUnbI.png",Kb="/assets/agent-answer-organizer-new-DD9ifoQv.png",Gb="/assets/agent-idea-generator-C4F9lNXu.png",Yb="/assets/agent-summarizer-Bq3drFKm.png",qb="/assets/agent-learning-consolidator-aKMZexMq.png",Xb=kc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Zb({className:e,variant:t,...n}){return x.jsx("div",{className:ot(Xb({variant:t}),e),...n})}const Jb=[{name:"The image labeler",description:'Upload an image with labels and instantly create a "Label an image" question. The AI automatically places markers and hides labels for active learning.',image:Qb,gradient:"gradient-ai-blue",personality:"Time-saving and precise",icon:H1,status:"Live"},{name:"The answer organizer",description:"Automatically groups learner answers by theme, giving you a clear overview of learner thinking and spotting dominant ideas.",image:Kb,gradient:"gradient-ai-purple",personality:"Studious and methodical",icon:uf,status:"Live"},{name:"The idea generator",description:"Suggests new ideas during brainstorming sessions to spark discussion and encourage creativity.",image:Gb,gradient:"gradient-ai-purple",personality:"Creative and innovative",icon:z1,status:"Live"},{name:"The summarizer",description:"Synthesizes learner answers instantly and highlights the most important themes for better analysis and discussion.",image:Yb,gradient:"gradient-ai-blue",personality:"Wise and focused",icon:L1,status:"Live"},{name:"The learning consolidator",description:"Generates personalized follow-up questions based on the original one to reinforce retention and deepen understanding.",image:qb,gradient:"gradient-primary",personality:"Dynamic and adaptive",icon:uf,status:"Live"}],e2=()=>x.jsxs("section",{className:"-mt-16 pb-12 relative overflow-hidden",style:{background:"linear-gradient(to bottom, hsl(var(--purple-subtle)), hsl(var(--purple-soft)))"},children:[x.jsxs("div",{className:"absolute inset-0",children:[x.jsx("div",{className:"absolute top-20 left-10 w-32 h-32 bg-primary/5 rounded-full animate-float"}),x.jsx("div",{className:"absolute bottom-20 right-10 w-24 h-24 bg-accent/5 rounded-full animate-float",style:{animationDelay:"3s"}}),x.jsx("div",{className:"absolute top-1/2 right-1/4 w-16 h-16 bg-primary/3 rounded-full animate-float",style:{animationDelay:"5s"}})]}),x.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[x.jsx("div",{className:"text-center mb-20"}),x.jsx("div",{className:"max-w-7xl mx-auto",children:x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6",children:Jb.map((e,t)=>{const n=e.icon;return x.jsxs("div",{className:`glass-card rounded-2xl p-6 hover:scale-105 hover:shadow-strong transition-all duration-300 group relative ${t===0||t===1||t===2||t===3||t===4?"cursor-pointer":""}`,onClick:t===0?()=>{var r;return(r=document.getElementById("image-labeler-video"))==null?void 0:r.scrollIntoView({behavior:"smooth"})}:t===1?()=>{var r;return(r=document.getElementById("answer-organizer-video"))==null?void 0:r.scrollIntoView({behavior:"smooth"})}:t===2?()=>{var r;return(r=document.getElementById("idea-generator-video"))==null?void 0:r.scrollIntoView({behavior:"smooth"})}:t===3?()=>{var r;return(r=document.getElementById("summarizer-video"))==null?void 0:r.scrollIntoView({behavior:"smooth"})}:t===4?()=>{var r;return(r=document.getElementById("learning-consolidator-video"))==null?void 0:r.scrollIntoView({behavior:"smooth"})}:void 0,children:[x.jsx("div",{className:"relative mb-6 flex justify-center",children:x.jsx("div",{className:"w-32 h-32 rounded-full relative overflow-hidden group-hover:scale-105 transition-all duration-300",children:e.image?x.jsx("div",{className:"w-full h-full bg-cover bg-center rounded-full",style:{backgroundImage:`url(${e.image})`}}):x.jsx("div",{className:`w-full h-full ${e.gradient} rounded-full flex items-center justify-center`,children:x.jsx(n,{className:"w-12 h-12 text-white"})})})}),x.jsx("div",{className:"flex justify-end mb-4",children:x.jsxs(Zb,{variant:"secondary",className:"bg-green-100 text-green-700 text-xs",children:[x.jsx("div",{className:"w-1.5 h-1.5 bg-green-500 rounded-full mr-1 animate-pulse"}),"Live"]})}),x.jsxs("div",{className:"text-center",children:[x.jsx("h3",{className:"text-xl font-bold mb-2",children:e.name}),x.jsxs("p",{className:"text-sm text-primary font-medium mb-3 italic",children:['"',e.personality,'"']}),x.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]}),x.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-1 ${e.gradient} rounded-b-2xl opacity-50 group-hover:opacity-100 transition-opacity duration-300`})]},e.name)})})}),x.jsx("div",{className:"text-center mt-20"})]})]}),t2=()=>x.jsx("section",{className:"py-16",children:x.jsx("div",{className:"container mx-auto px-6",children:x.jsxs("div",{className:"relative max-w-7xl mx-auto",children:[x.jsx("h3",{className:"text-4xl md:text-5xl font-extrabold text-center mb-12",children:"Watch our AI agents at work"}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:[x.jsxs("div",{id:"image-labeler-video",className:"glass-card rounded-xl p-6 md:p-8 hover:scale-105 transition-all duration-300 flex flex-col items-center",children:[x.jsx("div",{className:"aspect-video rounded-lg overflow-hidden mb-4 h-48 md:h-52 w-full max-w-sm",children:x.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/yxwEiuxVSvA?si=zvj2QuFrdPgNgYXd&controls=0",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"rounded-lg"})}),x.jsx("h4",{className:"font-semibold text-base text-center",children:"The image labeler"}),x.jsx("div",{className:"flex justify-center mt-2",children:x.jsxs("span",{className:"inline-flex items-center gap-1 bg-green-100 text-green-700 text-sm font-medium px-2 py-1 rounded-full",children:[x.jsx("div",{className:"w-1.5 h-1.5 bg-green-500 rounded-full animate-pulse"}),"Live"]})})]}),[{name:"The answer organizer"},{name:"The idea generator"},{name:"The summarizer"},{name:"The learning consolidator"}].map((e,t)=>x.jsxs("div",{id:t===0?"answer-organizer-video":t===1?"idea-generator-video":t===2?"summarizer-video":"learning-consolidator-video",className:"glass-card rounded-xl p-6 md:p-8 hover:scale-105 transition-all duration-300 relative flex flex-col items-center",children:[t===0?x.jsx("div",{className:"aspect-video rounded-lg overflow-hidden mb-4 h-48 md:h-52 w-full max-w-sm",children:x.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/k5AF4z8VIq0?si=q4GDCNxQQQtXQPR-&controls=0",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"rounded-lg"})}):t===1?x.jsx("div",{className:"aspect-video rounded-lg overflow-hidden mb-4 h-48 md:h-52 w-full max-w-sm",children:x.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/0Q1DE2quN-Y?si=zyBu1rTkrFLEIGlt&controls=0",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"rounded-lg"})}):t===2?x.jsx("div",{className:"aspect-video rounded-lg overflow-hidden mb-4 h-48 md:h-52 w-full max-w-sm",children:x.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/yo0VXtCKnLE?si=eipN-UU872N4l3xT&controls=0",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"rounded-lg"})}):x.jsx("div",{className:"aspect-video rounded-lg overflow-hidden mb-4 h-48 md:h-52 w-full max-w-sm",children:x.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/oP5RLOHZwUE?si=UsCrSkOzDDCPhC65&controls=0",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"rounded-lg"})}),x.jsx("h4",{className:"font-semibold text-base text-center",children:e.name}),x.jsx("div",{className:"flex justify-center mt-2",children:x.jsxs("span",{className:"inline-flex items-center gap-1 bg-green-100 text-green-700 text-sm font-medium px-2 py-1 rounded-full",children:[x.jsx("div",{className:"w-1.5 h-1.5 bg-green-500 rounded-full animate-pulse"}),"Live"]})})]},t))]}),x.jsx("div",{className:"text-center mt-12",children:x.jsx("div",{className:"inline-flex items-center gap-2 bg-muted/30 border border-muted px-6 py-3 rounded-lg"})})]})})}),n2=()=>x.jsx("section",{className:"pt-20 pb-12 px-6 bg-muted/30",children:x.jsxs("div",{className:"container mx-auto max-w-7xl",children:[x.jsxs("div",{className:"text-center mb-16",children:[x.jsxs("h2",{className:"text-4xl md:text-5xl font-extrabold mb-6",children:[x.jsx("span",{className:"text-blue-600",children:"Wooclap"})," trusted by educators & trainers"]}),x.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Join thousands of organizations who are already transforming their teaching - training."})]}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-16",children:[x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"text-4xl font-extrabold text-primary mb-2",children:"50M"}),x.jsx("div",{className:"text-muted-foreground",children:"Users"})]}),x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"text-4xl font-extrabold text-primary mb-2",children:"150+"}),x.jsx("div",{className:"text-muted-foreground",children:"Countries"})]}),x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"text-4xl font-extrabold text-primary mb-2",children:"2000+"}),x.jsx("div",{className:"text-muted-foreground",children:"Organisations and institutions"})]})]})]})}),Wf=[{quote:"It opens debates and encourages discussions that you didn't have the opportunity for before. With this agent, students have the chance to discuss these questions more deeply.",author:"Carlos Goller",role:"Biology researcher & educational innovator",university:"North Carolina State University",rating:5,category:"Education",tag:"The learning consolidator"},{quote:"The Brainstorming agent is such a great way to start the semester. It breaks the ice and helps students who might not know what to write start engaging right away.",author:"Lorie Laroche",role:"Instructional design & e-learning specialist",university:"University of Ottawa",rating:5,category:"Education",tag:"The idea generator"},{quote:"The learners often work in breakout rooms, and the AI can prompt them with example answers that expand, challenge, or explore ideas further. It keeps the brainstorming flowing.",author:"Julie Jones",role:"Training Specialist",university:"NowSkills UK",rating:5,category:"Business",tag:"The idea generator"},{quote:"I see real potential for the auto-label agent when working with technical diagrams. Having the AI set up the activity in seconds instead of minutes would be a big help.",author:"Christian Grevisse",role:"Lecturer",university:"Université du Luxembourg",rating:5,category:"Education",tag:"The image labeler"},{quote:"I teach 130 students. I love Open Questions, but the volume of answers makes it hard to manage manually. This agent changes everything.",author:"Memon Boukiour",role:"Senior Lecturer",university:"The Hague University of Applied Sciences",rating:5,category:"Education",tag:"The answer organizer"}],r2=()=>{const[e,t]=S.useState(0),n=3,r=Math.ceil(Wf.length/n),o=()=>{t(l=>(l+1)%r)},i=()=>{t(l=>(l-1+r)%r)},s=()=>{const l=e*n;return Wf.slice(l,l+n)};return x.jsx("section",{className:"py-20 px-6 bg-background",children:x.jsx("div",{className:"container mx-auto max-w-7xl",children:x.jsxs("div",{className:"relative",children:[x.jsx("div",{className:"text-center mb-8",children:x.jsx("h2",{className:"text-4xl md:text-5xl font-extrabold",children:"What our users say about our AI agents"})}),x.jsxs("div",{className:"flex justify-end gap-2 mb-8",children:[x.jsx(tr,{variant:"outline",size:"sm",onClick:i,className:"w-10 h-10 p-0 rounded-full",children:x.jsx(I1,{className:"w-4 h-4"})}),x.jsx(tr,{variant:"outline",size:"sm",onClick:o,className:"w-10 h-10 p-0 rounded-full",children:x.jsx(M1,{className:"w-4 h-4"})})]}),x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:s().map((l,a)=>x.jsxs("div",{className:"glass-card p-6 rounded-xl hover:scale-105 transition-all duration-300",children:[x.jsxs("div",{className:"mb-4",children:[x.jsxs("div",{className:"flex items-center justify-between mb-4",children:[x.jsx(B1,{className:"w-8 h-8 text-primary/30"}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx("div",{className:`px-3 py-1 rounded-full text-xs font-medium ${l.category==="Education"?"bg-blue-100 text-blue-700":"bg-purple-100 text-purple-700"}`,children:l.category}),l.tag&&x.jsx("div",{className:"px-3 py-1 rounded-full text-xs font-medium bg-green-100 text-green-700",children:l.tag})]})]}),x.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(l.rating)].map((u,c)=>x.jsx(W1,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},c))}),x.jsxs("p",{className:"text-muted-foreground italic mb-4",children:['"',l.quote,'"']})]}),x.jsxs("div",{children:[x.jsx("div",{className:"font-semibold",children:l.author}),x.jsx("div",{className:"text-sm text-muted-foreground",children:l.role}),x.jsx("div",{className:"text-sm font-medium text-primary",children:l.university})]})]},a))}),x.jsx("div",{className:"flex justify-center gap-2 mt-8",children:[...Array(r)].map((l,a)=>x.jsx("button",{onClick:()=>t(a),className:`w-2 h-2 rounded-full transition-colors ${a===e?"bg-primary":"bg-muted-foreground/30"}`},a))})]})})})},o2=[{icon:Hm,title:"Native security and privacy",description:"Wooclap aims to ensure the long-term security of your data, and continuously improved and followed by our ISO 27001 certification. We provide the appropriate level of protection to maintain the confidentiality of user data in compliance with the GDPR."},{icon:$1,title:"AI uses under control",description:"To address the sensitive nature of AI, we've conducted a thorough privacy and security analysis on our AI sub-processors, confirming a high level of data protection."},{icon:D1,title:"User consent will always be required",description:"Users can disable AI features in their account settings. Users are informed about AI via application settings and wherever AI is used within the product."},{icon:U1,title:"No AI model training",description:"Wooclap does not use customer data to train its AI models. We have disabled any possibility of using your data for this purpose. While Wooclap doesn't develop its own AI models, we use carefully selected sub-processors to ensure your data remains protected."}],i2=()=>x.jsx("section",{className:"py-20 px-6 gradient-hero",children:x.jsxs("div",{className:"container mx-auto max-w-7xl",children:[x.jsxs("div",{className:"text-center mb-16",children:[x.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Native security and privacy for AI agents!"}),x.jsxs("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:["From the very start of our AI development, we've been committed to expanding these features to meet user needs, all while upholding the highest standards of privacy and security, a core part of our mission. Access our"," ",x.jsx("a",{href:"https://www.wooclap.com/en/trust-center/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/80 underline transition-colors",children:"trust-center"})," ","to know more."]})]}),x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto mb-16",children:o2.map((e,t)=>x.jsx("div",{className:"glass-card rounded-2xl p-8 hover:scale-105 transition-all duration-300 group",children:x.jsxs("div",{className:"flex items-start gap-4",children:[x.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-xl flex items-center justify-center group-hover:bg-primary group-hover:text-white transition-all duration-300",children:x.jsx(e.icon,{className:"w-6 h-6"})}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-xl font-bold mb-3 group-hover:text-primary transition-colors duration-300",children:e.title}),x.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.description})]})]})},t))})]})}),s2="/assets/lorenzo-risi-hGtNPtWu.png",Hf=()=>x.jsx("section",{id:"webinar-section",className:"py-12 pt-8 px-6 bg-background",children:x.jsxs("div",{className:"container mx-auto max-w-4xl",children:[x.jsxs("div",{className:"glass-card rounded-3xl p-8 md:p-12 text-center relative overflow-hidden",children:[x.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-primary/5 rounded-full -translate-y-16 translate-x-16"}),x.jsx("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-accent/5 rounded-full translate-y-12 -translate-x-12"}),x.jsx("h2",{className:"text-3xl md:text-4xl font-extrabold mb-4",children:"Watch the replay of our AI agents demo webinar"}),x.jsxs("div",{className:"mb-8",children:[x.jsx("h3",{className:"text-lg font-semibold mb-6 text-center",children:"Meet your speakers"}),x.jsxs("div",{className:"flex justify-center items-start gap-8 max-w-5xl mx-auto flex-wrap md:flex-nowrap",children:[x.jsxs("div",{className:"text-center flex-1 max-w-xs min-w-0",children:[x.jsx("img",{src:"/lovable-uploads/55556e29-1c1e-45d6-afdc-a7f7cb33354d.png",alt:"Christopher Pingeon",className:"w-20 h-20 rounded-full object-cover mx-auto mb-3"}),x.jsx("div",{className:"text-base font-medium mb-1",children:"Christopher Pingeon"}),x.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Learning Success manager"}),x.jsx("div",{className:"text-sm text-primary font-medium",children:"Wooclap"})]}),x.jsxs("div",{className:"text-center flex-1 max-w-xs min-w-0",children:[x.jsx("img",{src:"/lovable-uploads/8259a987-5e0c-48b0-816a-8432af3916bc.png",alt:"Arlène Botokro",className:"w-20 h-20 rounded-full object-cover mx-auto mb-3"}),x.jsx("div",{className:"text-base font-medium mb-1",children:"Arlène Botokro"}),x.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Head of Learning Innovation"}),x.jsx("div",{className:"text-sm text-primary font-medium",children:"Wooclap"})]}),x.jsxs("div",{className:"text-center flex-1 max-w-xs min-w-0",children:[x.jsx("img",{src:"/lovable-uploads/2376703a-05ea-4c2e-9127-efdfe0fd2437.png",alt:"Anne-Laure Sirven",className:"w-20 h-20 rounded-full object-cover mx-auto mb-3"}),x.jsx("div",{className:"text-base font-medium mb-1",children:"Anne-Laure Sirven"}),x.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"Product Manager, AI & Innovation"}),x.jsx("div",{className:"text-sm text-primary font-medium",children:"Wooclap"})]}),x.jsxs("div",{className:"text-center flex-1 max-w-xs min-w-0",children:[x.jsx("img",{src:s2,alt:"Lorenzo Risi",className:"w-20 h-20 rounded-full object-cover mx-auto mb-3"}),x.jsx("div",{className:"text-base font-medium mb-1",children:"Lorenzo Risi"}),x.jsx("div",{className:"text-sm text-muted-foreground mb-1",children:"IT Security Officer"}),x.jsx("div",{className:"text-sm text-primary font-medium",children:"Wooclap"})]})]})]}),x.jsx("div",{className:"w-full mb-8",children:x.jsx("iframe",{width:"100%",height:"600",frameBorder:"0",src:"https://app.livestorm.co/p/3747279a-4c08-40d5-930b-a5b2ca37c942/form",className:"rounded-lg overflow-hidden",style:{overflow:"hidden"}})}),x.jsxs("div",{className:"bg-primary/5 rounded-2xl p-6 mb-8",children:[x.jsx("h3",{className:"font-extrabold text-lg mb-4",children:"What you'll experience:"}),x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:["Live demos of all 5 AI agents","Interactive Q&A with our AI team","Exclusive preview of upcoming features","Best practices from leading educators","1-month free premium access","AI implementation guide"].map((e,t)=>x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(_1,{className:"w-4 h-4 text-primary flex-shrink-0"}),x.jsx("span",{children:e})]},t))})]})]}),x.jsx("div",{className:"text-center mt-8"})]})}),l2=()=>x.jsx("section",{className:"py-16 px-6 bg-muted/30",children:x.jsx("div",{className:"container mx-auto max-w-4xl text-center",children:x.jsx(tr,{variant:"webinar",size:"xl",className:"rounded-full",onClick:()=>window.open("https://www.wooclap.com/","_blank"),children:"Explore Wooclap"})})}),a2=()=>x.jsx("footer",{className:"bg-white",children:x.jsx("div",{className:"bg-gray-50 py-12",children:x.jsx("div",{className:"container mx-auto px-6",children:x.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-8",children:[x.jsxs("div",{className:"flex flex-col items-center md:items-start",children:[x.jsx("div",{className:"flex items-center gap-2 mb-4",children:x.jsx("div",{className:"text-4xl font-bold text-primary",children:"wooclap"})}),x.jsx("p",{className:"text-gray-600 text-sm",children:"Wooclap SA, Rue des Pères Blancs 4 1040 Etterbeek"})]}),x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx("a",{href:"#",className:"w-12 h-12 bg-primary-dark text-white rounded-full flex items-center justify-center hover:bg-primary transition-colors","aria-label":"LinkedIn",children:x.jsx(F1,{className:"w-5 h-5"})}),x.jsx("a",{href:"#",className:"w-12 h-12 bg-primary-dark text-white rounded-full flex items-center justify-center hover:bg-primary transition-colors","aria-label":"Twitter",children:x.jsx(Q1,{className:"w-5 h-5"})})]}),x.jsx("div",{className:"text-gray-600 text-sm",children:"Copyright © 2025, Wooclap"})]})})})}),u2=()=>x.jsxs("div",{className:"min-h-screen",children:[x.jsx(sb,{}),x.jsx(e2,{}),x.jsx(Hb,{}),x.jsx(Hf,{}),x.jsx(r2,{}),x.jsx(t2,{}),x.jsx(i2,{}),x.jsx(Hf,{}),x.jsx(n2,{}),x.jsx(l2,{}),x.jsx(a2,{})]}),c2=()=>{const e=Kg();return S.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),x.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),x.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),x.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},d2=new gE,f2=()=>x.jsx(yE,{client:d2,children:x.jsxs(QS,{children:[x.jsx(jx,{}),x.jsx(lw,{}),x.jsx(rb,{children:x.jsxs(eb,{children:[x.jsx(Eu,{path:"/",element:x.jsx(u2,{})}),x.jsx(Eu,{path:"*",element:x.jsx(c2,{})})]})})]})});mm(document.getElementById("root")).render(x.jsx(f2,{}));