var wc=e=>{throw TypeError(e)};var pl=(e,t,n)=>t.has(e)||wc("Cannot "+n);var T=(e,t,n)=>(pl(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?wc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(pl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Pe=(e,t,n)=>(pl(e,t,"access private method"),n);var gi=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return T(e,t,r)}});function Ng(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 Ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cf={exports:{}},Os={},Pf={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 ii=Symbol.for("react.element"),Rg=Symbol.for("react.portal"),jg=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),Og=Symbol.for("react.provider"),_g=Symbol.for("react.context"),Lg=Symbol.for("react.forward_ref"),Ig=Symbol.for("react.suspense"),Dg=Symbol.for("react.memo"),zg=Symbol.for("react.lazy"),xc=Symbol.iterator;function Fg(e){return e===null||typeof e!="object"?null:(e=xc&&e[xc]||e["@@iterator"],typeof e=="function"?e:null)}var Tf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nf=Object.assign,Rf={};function no(e,t,n){this.props=e,this.context=t,this.refs=Rf,this.updater=n||Tf}no.prototype.isReactComponent={};no.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};no.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jf(){}jf.prototype=no.prototype;function tu(e,t,n){this.props=e,this.context=t,this.refs=Rf,this.updater=n||Tf}var nu=tu.prototype=new jf;nu.constructor=tu;Nf(nu,no.prototype);nu.isPureReactComponent=!0;var Sc=Array.isArray,Af=Object.prototype.hasOwnProperty,ru={current:null},Mf={key:!0,ref:!0,__self:!0,__source:!0};function Of(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)Af.call(t,r)&&!Mf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,$=P[H];if(0>>1;Ho(z,L))J<$&&0>o(W,z)?(P[H]=W,P[J]=L,H=J):(P[H]=z,P[F]=L,H=F);else if(J<$&&0>o(W,L))P[H]=W,P[J]=L,H=J;else break e}}return N}function o(P,N){var L=P.sortIndex-N.sortIndex;return L!==0?L:P.id-N.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,h=3,f=!1,S=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,g=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 N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=P)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function k(P){if(m=!1,v(P),!S)if(n(a)!==null)S=!0,U(b);else{var N=n(u);N!==null&&V(k,N.startTime-P)}}function b(P,N){S=!1,m&&(m=!1,g(R),R=-1),f=!0;var L=h;try{for(v(N),d=n(a);d!==null&&(!(d.expirationTime>N)||P&&!B());){var H=d.callback;if(typeof H=="function"){d.callback=null,h=d.priorityLevel;var $=H(d.expirationTime<=N);N=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(a)&&r(a),v(N)}else r(a);d=n(a)}if(d!==null)var X=!0;else{var F=n(u);F!==null&&V(k,F.startTime-N),X=!1}return X}finally{d=null,h=L,f=!1}}var E=!1,C=null,R=-1,j=5,O=-1;function B(){return!(e.unstable_now()-OP||125H?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(m?(g(R),R=-1):m=!0,V(k,L-H))):(P.sortIndex=$,t(a,P),S||f||(S=!0,U(b))),P},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(P){var N=h;return function(){var L=h;h=N;try{return P.apply(this,arguments)}finally{h=L}}}})(Ff);zf.exports=Ff;var Xg=zf.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 qg=w,qe=Xg;function A(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"),Kl=Object.prototype.hasOwnProperty,Zg=/^[: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]*$/,bc={},Ec={};function Jg(e){return Kl.call(Ec,e)?!0:Kl.call(bc,e)?!1:Zg.test(e)?Ec[e]=!0:(bc[e]=!0,!1)}function ev(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 tv(e,t,n,r){if(t===null||typeof t>"u"||ev(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 De(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 Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new De(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){Ce[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var iu=/[\-:]([a-z])/g;function su(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(iu,su);Ce[t]=new De(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(iu,su);Ce[t]=new De(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(iu,su);Ce[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function lu(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[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{gl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ko(e):""}function nv(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function ql(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 wr:return"Fragment";case yr:return"Portal";case Gl:return"Profiler";case au:return"StrictMode";case Yl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uf:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:ql(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return ql(e(t))}catch{}}return null}function rv(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 ql(t);case 8:return t===au?"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 An(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ov(e){var t=Vf(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 wi(e){e._valueTracker||(e._valueTracker=ov(e))}function Hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ts(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 Zl(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=An(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 Qf(e,t){t=t.checked,t!=null&&lu(e,"checked",t,!1)}function Jl(e,t){Qf(e,t);var n=An(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")?ea(e,t.type,n):t.hasOwnProperty("defaultValue")&&ea(e,t.type,An(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(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 ea(e,t,n){(t!=="number"||ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bo=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Do(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Po={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(Po).forEach(function(e){iv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Po[t]=Po[e]})});function Xf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Po.hasOwnProperty(e)&&Po[e]?(""+t).trim():t+"px"}function qf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Xf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var sv=pe({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 ra(e,t){if(t){if(sv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function oa(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 ia=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,Ar=null,Mr=null;function jc(e){if(e=ai(e)){if(typeof sa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=zs(t),sa(e.stateNode,e.type,t))}}function Zf(e){Ar?Mr?Mr.push(e):Mr=[e]:Ar=e}function Jf(){if(Ar){var e=Ar,t=Mr;if(Mr=Ar=null,jc(e),t)for(e=0;e>>=0,e===0?32:31-(vv(e)/yv|0)|0}var Si=64,ki=4194304;function Eo(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 is(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=Eo(l):(i&=s,i!==0&&(r=Eo(i)))}else s=n&~o,s!==0?r=Eo(s):i!==0&&(r=Eo(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 si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function kv(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=No),Fc=" ",$c=!1;function wp(e,t){switch(e){case"keyup":return Xv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function Zv(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:($c=!0,Fc);case"textInput":return e=t.data,e===Fc&&$c?null:e;default:return null}}function Jv(e,t){if(xr)return e==="compositionend"||!wu&&wp(e,t)?(e=vp(),Wi=gu=xn=null,xr=!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=Vc(n)}}function Ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cp(){for(var e=window,t=ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ts(e.document)}return t}function xu(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 ay(e){var t=Cp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ep(n.ownerDocument.documentElement,n)){if(r!==null&&xu(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=Hc(n,i);var s=Hc(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,Sr=null,fa=null,jo=null,pa=!1;function Qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pa||Sr==null||Sr!==ts(r)||(r=Sr,"selectionStart"in r&&xu(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}),jo&&Wo(jo,r)||(jo=r,r=as(fa,"onSelect"),0Er||(e.current=wa[Er],wa[Er]=null,Er--)}function oe(e,t){Er++,wa[Er]=e.current,e.current=t}var Mn={},Ae=Fn(Mn),Be=Fn(!1),or=Mn;function Gr(e,t){var n=e.type.contextTypes;if(!n)return Mn;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 Ue(e){return e=e.childContextTypes,e!=null}function cs(){le(Be),le(Ae)}function Jc(e,t,n){if(Ae.current!==Mn)throw Error(A(168));oe(Ae,t),oe(Be,n)}function _p(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,rv(e)||"Unknown",o));return pe({},n,r)}function ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,or=Ae.current,oe(Ae,e),oe(Be,Be.current),!0}function ed(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=_p(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,le(Be),le(Ae),oe(Ae,e)):le(Be),oe(Be,n)}var Wt=null,Fs=!1,Al=!1;function Lp(e){Wt===null?Wt=[e]:Wt.push(e)}function xy(e){Fs=!0,Lp(e)}function $n(){if(!Al&&Wt!==null){Al=!0;var e=0,t=ne;try{var n=Wt;for(ne=1;e>=s,o-=s,Ht=1<<32-St(t)+o|n<R?(j=C,C=null):j=C.sibling;var O=h(g,C,v[R],k);if(O===null){C===null&&(C=j);break}e&&C&&O.alternate===null&&t(g,C),p=i(O,p,R),E===null?b=O:E.sibling=O,E=O,C=j}if(R===v.length)return n(g,C),ue&&Hn(g,R),b;if(C===null){for(;RR?(j=C,C=null):j=C.sibling;var B=h(g,C,O.value,k);if(B===null){C===null&&(C=j);break}e&&C&&B.alternate===null&&t(g,C),p=i(B,p,R),E===null?b=B:E.sibling=B,E=B,C=j}if(O.done)return n(g,C),ue&&Hn(g,R),b;if(C===null){for(;!O.done;R++,O=v.next())O=d(g,O.value,k),O!==null&&(p=i(O,p,R),E===null?b=O:E.sibling=O,E=O);return ue&&Hn(g,R),b}for(C=r(g,C);!O.done;R++,O=v.next())O=f(C,g,R,O.value,k),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),p=i(O,p,R),E===null?b=O:E.sibling=O,E=O);return e&&C.forEach(function(I){return t(g,I)}),ue&&Hn(g,R),b}function x(g,p,v,k){if(typeof v=="object"&&v!==null&&v.type===wr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case yi:e:{for(var b=v.key,E=p;E!==null;){if(E.key===b){if(b=v.type,b===wr){if(E.tag===7){n(g,E.sibling),p=o(E,v.props.children),p.return=g,g=p;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===dn&&rd(b)===E.type){n(g,E.sibling),p=o(E,v.props),p.ref=vo(g,E,v),p.return=g,g=p;break e}n(g,E);break}else t(g,E);E=E.sibling}v.type===wr?(p=rr(v.props.children,g.mode,k,v.key),p.return=g,g=p):(k=qi(v.type,v.key,v.props,null,g.mode,k),k.ref=vo(g,p,v),k.return=g,g=k)}return s(g);case yr:e:{for(E=v.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(g,p.sibling),p=o(p,v.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Fl(v,g.mode,k),p.return=g,g=p}return s(g);case dn:return E=v._init,x(g,p,E(v._payload),k)}if(bo(v))return S(g,p,v,k);if(fo(v))return m(g,p,v,k);Ri(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,v),p.return=g,g=p):(n(g,p),p=zl(v,g.mode,k),p.return=g,g=p),s(g)):n(g,p)}return x}var Xr=Fp(!0),$p=Fp(!1),hs=Fn(null),ms=null,Tr=null,Eu=null;function Cu(){Eu=Tr=ms=null}function Pu(e){var t=hs.current;le(hs),e._currentValue=t}function ka(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 _r(e,t){ms=e,Eu=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Eu!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if(ms===null)throw Error(A(308));Tr=e,ms.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Gn=null;function Tu(e){Gn===null?Gn=[e]:Gn.push(e)}function Bp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Tu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xt(e,r)}function Xt(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 fn=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Up(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 Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tn(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,Xt(e,n)}return o=r.interleaved,o===null?(t.next=t,Tu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xt(e,n)}function Hi(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,pu(e,n)}}function od(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 gs(e,t,n,r){var o=e.updateQueue;fn=!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 h=l.lane,f=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,m=l;switch(h=t,f=n,m.tag){case 1:if(S=m.payload,typeof S=="function"){d=S.call(f,d,h);break e}d=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=m.payload,h=typeof S=="function"?S.call(f,d,h):S,h==null)break e;d=pe({},d,h);break e;case 2:fn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else f={eventTime:f,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,a=d):c=c.next=f,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,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);lr|=s,e.lanes=s,e.memoizedState=d}}function id(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{ne=n,Ol.transition=r}}function ih(){return at().memoizedState}function Ey(e,t,n){var r=Rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sh(e))lh(t,n);else if(n=Bp(e,t,n,r),n!==null){var o=Le();kt(n,e,r,o),ah(n,t,r)}}function Cy(e,t,n){var r=Rn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sh(e))lh(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,bt(l,s)){var a=t.interleaved;a===null?(o.next=o,Tu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Bp(e,t,o,r),n!==null&&(o=Le(),kt(n,e,r,o),ah(n,t,r))}}function sh(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function lh(e,t){Ao=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ah(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}var ws={readContext:lt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Py={readContext:lt,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ld,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4194308,4,eh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ki(4,2,e,t)},useMemo:function(e,t){var n=Rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rt();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=Ey.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:sd,useDebugValue:Iu,useDeferredValue:function(e){return Rt().memoizedState=e},useTransition:function(){var e=sd(!1),t=e[0];return e=by.bind(null,e[1]),Rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=Rt();if(ue){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ke===null)throw Error(A(349));sr&30||Qp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ld(Gp.bind(null,r,i,e),[e]),r.flags|=2048,qo(9,Kp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rt(),t=ke.identifierPrefix;if(ue){var n=Qt,r=Ht;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yo++,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[Ot]=t,e[Qo]=r,yh(e,t,!1,!1),t.stateNode=e;e:{switch(s=oa(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oJr&&(t.flags|=128,r=!0,yo(i,!1),t.lanes=4194304)}else{if(!r)if(e=vs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ue)return Ne(t),null}else 2*ge()-i.renderingStartTime>Jr&&n!==1073741824&&(t.flags|=128,r=!0,yo(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=ge(),t.sibling=null,n=de.current,oe(de,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return Uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function _y(e,t){switch(ku(t),t.tag){case 1:return Ue(t.type)&&cs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),le(Be),le(Ae),Au(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ju(t),null;case 13:if(le(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(de),null;case 4:return qr(),null;case 10:return Pu(t.type._context),null;case 22:case 23:return Uu(),null;case 24:return null;default:return null}}var Ai=!1,je=!1,Ly=typeof WeakSet=="function"?WeakSet:Set,D=null;function Nr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Aa(e,t,n){try{n()}catch(r){me(e,t,r)}}var yd=!1;function Iy(e,t){if(ha=ss,e=Cp(),xu(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,h=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;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(f=d.nextSibling)!==null)break;d=h,h=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(ma={focusedElem:e,selectionRange:n},ss=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var m=S.memoizedProps,x=S.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:mt(t.type,m),x);g.__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(A(163))}}catch(k){me(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=yd,yd=!1,S}function Mo(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&&Aa(t,n,i)}o=o.next}while(o!==r)}}function Us(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 Ma(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 Sh(e){var t=e.alternate;t!==null&&(e.alternate=null,Sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ot],delete t[Qo],delete t[ya],delete t[yy],delete t[wy])),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 kh(e){return e.tag===5||e.tag===3||e.tag===4}function wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(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 Oa(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=us));else if(r!==4&&(e=e.child,e!==null))for(Oa(e,t,n),e=e.sibling;e!==null;)Oa(e,t,n),e=e.sibling}function _a(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(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}var be=null,wt=!1;function ln(e,t,n){for(n=n.child;n!==null;)bh(e,t,n),n=n.sibling}function bh(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(_s,n)}catch{}switch(n.tag){case 5:je||Nr(n,t);case 6:var r=be,o=wt;be=null,ln(e,t,n),be=r,wt=o,be!==null&&(wt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(wt?(e=be,n=n.stateNode,e.nodeType===8?jl(e.parentNode,n):e.nodeType===1&&jl(e,n),Bo(e)):jl(be,n.stateNode));break;case 4:r=be,o=wt,be=n.stateNode.containerInfo,wt=!0,ln(e,t,n),be=r,wt=o;break;case 0:case 11:case 14:case 15:if(!je&&(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)&&Aa(n,t,s),o=o.next}while(o!==r)}ln(e,t,n);break;case 1:if(!je&&(Nr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){me(n,t,l)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,ln(e,t,n),je=r):ln(e,t,n);break;default:ln(e,t,n)}}function xd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ly),t.forEach(function(r){var o=Hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zy(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,ks=0,ee&6)throw Error(A(331));var o=ee;for(ee|=4,D=e.current;D!==null;){var i=D,s=i.child;if(D.flags&16){var l=i.deletions;if(l!==null){for(var a=0;age()-$u?nr(e,0):Fu|=n),We(e,t)}function Ah(e,t){t===0&&(e.mode&1?(t=ki,ki<<=1,!(ki&130023424)&&(ki=4194304)):t=1);var n=Le();e=Xt(e,t),e!==null&&(si(e,t,n),We(e,n))}function Vy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ah(e,n)}function Hy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Ah(e,n)}var Mh;Mh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,My(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ue&&t.flags&1048576&&Ip(t,ps,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gi(e,t),e=t.pendingProps;var o=Gr(t,Ae.current);_r(t,n),o=Ou(null,t,r,e,o,n);var i=_u();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,Ue(r)?(i=!0,ds(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Nu(t),o.updater=Bs,t.stateNode=o,o._reactInternals=t,Ea(t,r,e,n),t=Ta(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Su(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ky(r),e=mt(r,e),o){case 0:t=Pa(null,t,r,e,n);break e;case 1:t=md(null,t,r,e,n);break e;case 11:t=pd(null,t,r,e,n);break e;case 14:t=hd(null,t,r,mt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Pa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),md(e,t,r,o,n);case 3:e:{if(mh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Up(e,t),gs(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=Zr(Error(A(423)),t),t=gd(e,t,r,n,o);break e}else if(r!==o){o=Zr(Error(A(424)),t),t=gd(e,t,r,n,o);break e}else for(Ge=Pn(t.stateNode.containerInfo.firstChild),Ye=t,ue=!0,xt=null,n=$p(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),r===o){t=qt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return Wp(t),e===null&&Sa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ga(r,o)?s=null:i!==null&&ga(r,i)&&(t.flags|=32),hh(e,t),Oe(e,t,s,n),t.child;case 6:return e===null&&Sa(t),null;case 13:return gh(e,t,n);case 4:return Ru(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),pd(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(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,oe(hs,r._currentValue),r._currentValue=s,i!==null)if(bt(i.value,s)){if(i.children===o.children&&!Be.current){t=qt(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=Kt(-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),ka(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(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ka(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}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_r(t,n),o=lt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),hd(e,t,r,o,n);case 15:return fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Gi(e,t),t.tag=1,Ue(r)?(e=!0,ds(t)):e=!1,_r(t,n),uh(t,r,o),Ea(t,r,o,n),Ta(null,t,r,!0,e,n);case 19:return vh(e,t,n);case 22:return ph(e,t,n)}throw Error(A(156,t.tag))};function Oh(e,t){return sp(e,t)}function Qy(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 it(e,t,n,r){return new Qy(e,t,n,r)}function Vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ky(e){if(typeof e=="function")return Vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uu)return 11;if(e===cu)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=it(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 qi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Vu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wr:return rr(n.children,o,i,t);case au:s=8,o|=8;break;case Gl:return e=it(12,n,t,o|2),e.elementType=Gl,e.lanes=i,e;case Yl:return e=it(13,n,t,o),e.elementType=Yl,e.lanes=i,e;case Xl:return e=it(19,n,t,o),e.elementType=Xl,e.lanes=i,e;case Wf:return Vs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bf:s=10;break e;case Uf:s=9;break e;case uu:s=11;break e;case cu:s=14;break e;case dn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=it(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function rr(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Vs(e,t,n,r){return e=it(22,e,r,t),e.elementType=Wf,e.lanes=n,e.stateNode={isHidden:!1},e}function zl(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Fl(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gy(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=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,o,i,s,l,a){return e=new Gy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=it(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(i),e}function Yy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dh)}catch(e){console.error(e)}}Dh(),Df.exports=Ze;var ci=Df.exports;const zh=Ef(ci);var Fh,Nd=ci;Fh=Nd.createRoot,Nd.hydrateRoot;const e0=1,t0=1e6;let $l=0;function n0(){return $l=($l+1)%Number.MAX_SAFE_INTEGER,$l.toString()}const Bl=new Map,Rd=e=>{if(Bl.has(e))return;const t=setTimeout(()=>{Bl.delete(e),Lo({type:"REMOVE_TOAST",toastId:e})},t0);Bl.set(e,t)},r0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,e0)};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?Rd(n):e.toasts.forEach(r=>{Rd(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)}}},Zi=[];let Ji={toasts:[]};function Lo(e){Ji=r0(Ji,e),Zi.forEach(t=>{t(Ji)})}function o0({...e}){const t=n0(),n=o=>Lo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Lo({type:"DISMISS_TOAST",toastId:t});return Lo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function i0(){const[e,t]=w.useState(Ji);return w.useEffect(()=>(Zi.push(t),()=>{const n=Zi.indexOf(t);n>-1&&Zi.splice(n,1)}),[e]),{...e,toast:o0,dismiss:n=>Lo({type:"DISMISS_TOAST",toastId:n})}}function we(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 jd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $h(...e){return t=>{let n=!1;const r=e.map(o=>{const i=jd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:h,children:f,...S}=d,m=((g=h==null?void 0:h[e])==null?void 0:g[a])||l,x=w.useMemo(()=>S,Object.values(S));return y.jsx(m.Provider,{value:x,children:f})};u.displayName=i+"Provider";function c(d,h){var m;const f=((m=h==null?void 0:h[e])==null?void 0:m[a])||l,S=w.useContext(f);if(S)return S;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=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,s0(o,...t)]}function s0(...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 w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Cs(e){const t=a0(e),n=w.forwardRef((r,o)=>{const{children:i,...s}=r,l=w.Children.toArray(i),a=l.find(c0);if(a){const u=a.props.children,c=l.map(d=>d===a?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return y.jsx(t,{...s,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return y.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var l0=Cs("Slot");function a0(e){const t=w.forwardRef((n,r)=>{const{children:o,...i}=n;if(w.isValidElement(o)){const s=f0(o),l=d0(i,o.props);return o.type!==w.Fragment&&(l.ref=r?$h(r,s):s),w.cloneElement(o,l)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bh=Symbol("radix.slottable");function u0(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Bh,t}function c0(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bh}function d0(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 f0(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 p0(e){const t=e+"CollectionProvider",[n,r]=Ys(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:g}=m,p=M.useRef(null),v=M.useRef(new Map).current;return y.jsx(o,{scope:x,itemMap:v,collectionRef:p,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=Cs(l),u=M.forwardRef((m,x)=>{const{scope:g,children:p}=m,v=i(l,g),k=Et(x,v.collectionRef);return y.jsx(a,{ref:k,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",d="data-radix-collection-item",h=Cs(c),f=M.forwardRef((m,x)=>{const{scope:g,children:p,...v}=m,k=M.useRef(null),b=Et(x,k),E=i(c,g);return M.useEffect(()=>(E.itemMap.set(k,{ref:k,...v}),()=>void E.itemMap.delete(k))),y.jsx(h,{[d]:"",ref:b,children:p})});f.displayName=c;function S(m){const x=i(e+"CollectionConsumer",m);return M.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,C)=>v.indexOf(E.ref.current)-v.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},S,r]}var h0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=h0.reduce((e,t)=>{const n=Cs(`Primitive.${t}`),r=w.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Uh(e,t){e&&ci.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function m0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);w.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 g0="DismissableLayer",Fa="dismissableLayer.update",v0="dismissableLayer.pointerDownOutside",y0="dismissableLayer.focusOutside",Ad,Wh=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=w.useContext(Wh),[c,d]=w.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),S=Et(t,C=>d(C)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(x),p=c?m.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,k=p>=g,b=x0(C=>{const R=C.target,j=[...u.branches].some(O=>O.contains(R));!k||j||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},h),E=S0(C=>{const R=C.target;[...u.branches].some(O=>O.contains(R))||(i==null||i(C),s==null||s(C),C.defaultPrevented||l==null||l())},h);return m0(C=>{p===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},h),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ad=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Md(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ad)}},[c,h,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Md())},[c,u]),w.useEffect(()=>{const C=()=>f({});return document.addEventListener(Fa,C),()=>document.removeEventListener(Fa,C)},[]),y.jsx(He.div,{...a,ref:S,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,E.onFocusCapture),onBlurCapture:we(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,b.onPointerDownCapture)})});Yu.displayName=g0;var w0="DismissableLayerBranch",Vh=w.forwardRef((e,t)=>{const n=w.useContext(Wh),r=w.useRef(null),o=Et(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(He.div,{...e,ref:o})});Vh.displayName=w0;function x0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Hh(v0,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 S0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&Hh(y0,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 Md(){const e=new CustomEvent(Fa);document.dispatchEvent(e)}function Hh(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?Uh(o,i):o.dispatchEvent(i)}var k0=Yu,b0=Vh,_n=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},E0="Portal",Qh=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=w.useState(!1);_n(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?zh.createPortal(y.jsx(He.div,{...r,ref:t}),s):null});Qh.displayName=E0;function C0(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Xu=e=>{const{present:t,children:n}=e,r=P0(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=Et(r.ref,T0(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};Xu.displayName="Presence";function P0(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[l,a]=C0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=_i(r.current);i.current=l==="mounted"?u:"none"},[l]),_n(()=>{const u=r.current,c=o.current;if(c!==e){const h=i.current,f=_i(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),_n(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const m=_i(r.current).includes(f.animationName);if(f.target===t&&m&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=f=>{f.target===t&&(i.current=_i(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _i(e){return(e==null?void 0:e.animationName)||"none"}function T0(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 N0=Lf[" useInsertionEffect ".trim().toString()]||_n;function R0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=j0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=w.useRef(e!==void 0);w.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=w.useCallback(c=>{var d;if(l){const h=A0(c)?c(e):c;h!==e&&((d=s.current)==null||d.call(s,h))}else i(c)},[l,e,i,s]);return[a,u]}function j0({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),i=w.useRef(t);return N0(()=>{i.current=t},[t]),w.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function A0(e){return typeof e=="function"}var M0=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"}),O0="VisuallyHidden",Xs=w.forwardRef((e,t)=>y.jsx(He.span,{...e,ref:t,style:{...M0,...e.style}}));Xs.displayName=O0;var _0=Xs,qu="ToastProvider",[Zu,L0,I0]=p0("Toast"),[Kh,zk]=Ys("Toast",[I0]),[D0,qs]=Kh(qu),Gh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=w.useState(null),[u,c]=w.useState(0),d=w.useRef(!1),h=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qu}\`. Expected non-empty \`string\`.`),y.jsx(Zu.Provider,{scope:t,children:y.jsx(D0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:w.useCallback(()=>c(f=>f+1),[]),onToastRemove:w.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:s})})};Gh.displayName=qu;var Yh="ToastViewport",z0=["F8"],$a="toast.viewportPause",Ba="toast.viewportResume",Xh=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=z0,label:o="Notifications ({hotkey})",...i}=e,s=qs(Yh,n),l=L0(n),a=w.useRef(null),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),h=Et(t,d,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=s.toastCount>0;w.useEffect(()=>{const x=g=>{var v;r.length!==0&&r.every(k=>g[k]||g.code===k)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=a.current,g=d.current;if(S&&x&&g){const p=()=>{if(!s.isClosePausedRef.current){const E=new CustomEvent($a);g.dispatchEvent(E),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const E=new CustomEvent(Ba);g.dispatchEvent(E),s.isClosePausedRef.current=!1}},k=E=>{!x.contains(E.relatedTarget)&&v()},b=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",p),x.addEventListener("focusout",k),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",b),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",k),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",b),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[S,s.isClosePausedRef]);const m=w.useCallback(({tabbingDirection:x})=>{const p=l().map(v=>{const k=v.ref.current,b=[k,...q0(k)];return x==="forwards"?b:b.reverse()});return(x==="forwards"?p.reverse():p).flat()},[l]);return w.useEffect(()=>{const x=d.current;if(x){const g=p=>{var b,E,C;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const R=document.activeElement,j=p.shiftKey;if(p.target===x&&j){(b=u.current)==null||b.focus();return}const I=m({tabbingDirection:j?"backwards":"forwards"}),Q=I.findIndex(_=>_===R);Ul(I.slice(Q+1))?p.preventDefault():j?(E=u.current)==null||E.focus():(C=c.current)==null||C.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[l,m]),y.jsxs(b0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&y.jsx(Ua,{ref:u,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});Ul(x)}}),y.jsx(Zu.Slot,{scope:n,children:y.jsx(He.ol,{tabIndex:-1,...i,ref:h})}),S&&y.jsx(Ua,{ref:c,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});Ul(x)}})]})});Xh.displayName=Yh;var qh="ToastFocusProxy",Ua=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=qs(qh,n);return y.jsx(Xs,{"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()}})});Ua.displayName=qh;var di="Toast",F0="toast.swipeStart",$0="toast.swipeMove",B0="toast.swipeCancel",U0="toast.swipeEnd",Zh=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=R0({prop:r,defaultProp:o??!0,onChange:i,caller:di});return y.jsx(Xu,{present:n||l,children:y.jsx(H0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:we(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:we(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:we(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:we(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)})})})});Zh.displayName=di;var[W0,V0]=Kh(di,{onClose(){}}),H0=w.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:h,onSwipeEnd:f,...S}=e,m=qs(di,n),[x,g]=w.useState(null),p=Et(t,_=>g(_)),v=w.useRef(null),k=w.useRef(null),b=o||m.duration,E=w.useRef(0),C=w.useRef(b),R=w.useRef(0),{onToastAdd:j,onToastRemove:O}=m,B=On(()=>{var q;(x==null?void 0:x.contains(document.activeElement))&&((q=m.viewport)==null||q.focus()),s()}),I=w.useCallback(_=>{!_||_===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(B,_))},[B]);w.useEffect(()=>{const _=m.viewport;if(_){const q=()=>{I(C.current),u==null||u()},U=()=>{const V=new Date().getTime()-E.current;C.current=C.current-V,window.clearTimeout(R.current),a==null||a()};return _.addEventListener($a,U),_.addEventListener(Ba,q),()=>{_.removeEventListener($a,U),_.removeEventListener(Ba,q)}}},[m.viewport,b,a,u,I]),w.useEffect(()=>{i&&!m.isClosePausedRef.current&&I(b)},[i,b,m.isClosePausedRef,I]),w.useEffect(()=>(j(),()=>O()),[j,O]);const Q=w.useMemo(()=>x?im(x):null,[x]);return m.viewport?y.jsxs(y.Fragment,{children:[Q&&y.jsx(Q0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),y.jsx(W0,{scope:n,onClose:B,children:ci.createPortal(y.jsx(Zu.ItemSlot,{scope:n,children:y.jsx(k0,{asChild:!0,onEscapeKeyDown:we(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||B(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...S,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:we(e.onKeyDown,_=>{_.key==="Escape"&&(l==null||l(_.nativeEvent),_.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:we(e.onPointerDown,_=>{_.button===0&&(v.current={x:_.clientX,y:_.clientY})}),onPointerMove:we(e.onPointerMove,_=>{if(!v.current)return;const q=_.clientX-v.current.x,U=_.clientY-v.current.y,V=!!k.current,P=["left","right"].includes(m.swipeDirection),N=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,L=P?N(0,q):0,H=P?0:N(0,U),$=_.pointerType==="touch"?10:2,X={x:L,y:H},F={originalEvent:_,delta:X};V?(k.current=X,Li($0,d,F,{discrete:!1})):Od(X,m.swipeDirection,$)?(k.current=X,Li(F0,c,F,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(q)>$||Math.abs(U)>$)&&(v.current=null)}),onPointerUp:we(e.onPointerUp,_=>{const q=k.current,U=_.target;if(U.hasPointerCapture(_.pointerId)&&U.releasePointerCapture(_.pointerId),k.current=null,v.current=null,q){const V=_.currentTarget,P={originalEvent:_,delta:q};Od(q,m.swipeDirection,m.swipeThreshold)?Li(U0,f,P,{discrete:!0}):Li(B0,h,P,{discrete:!0}),V.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Q0=e=>{const{__scopeToast:t,children:n,...r}=e,o=qs(di,t),[i,s]=w.useState(!1),[l,a]=w.useState(!1);return Y0(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:y.jsx(Qh,{asChild:!0,children:y.jsx(Xs,{...r,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},K0="ToastTitle",Jh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(He.div,{...r,ref:t})});Jh.displayName=K0;var G0="ToastDescription",em=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(He.div,{...r,ref:t})});em.displayName=G0;var tm="ToastAction",nm=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(om,{altText:n,asChild:!0,children:y.jsx(Ju,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${tm}\`. Expected non-empty \`string\`.`),null)});nm.displayName=tm;var rm="ToastClose",Ju=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=V0(rm,n);return y.jsx(om,{asChild:!0,children:y.jsx(He.button,{type:"button",...r,ref:t,onClick:we(e.onClick,o.onClose)})})});Ju.displayName=rm;var om=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function im(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),X0(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(...im(r))}}),t}function Li(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?Uh(o,i):o.dispatchEvent(i)}var Od=(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 Y0(e=()=>{}){const t=On(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function X0(e){return e.nodeType===e.ELEMENT_NODE}function q0(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 Ul(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Z0=Gh,sm=Xh,lm=Zh,am=Jh,um=em,cm=nm,dm=Ju;function fm(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,Ld=pm,hm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ld(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 h=_d(c)||_d(d);return o[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...f}=c;return Object.entries(f).every(S=>{let[m,x]=S;return Array.isArray(x)?x.includes({...i,...l}[m]):{...i,...l}[m]===x})?[...u,d,h]:u},[]);return Ld(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 J0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mm=(...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 ew={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 tw=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>w.createElement("svg",{ref:a,...ew,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mm("lucide",o),...l},[...s.map(([u,c])=>w.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 ut=(e,t)=>{const n=w.forwardRef(({className:r,...o},i)=>w.createElement(tw,{ref:i,iconNode:t,className:mm(`lucide-${J0(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 nw=ut("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** * @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 rw=ut("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.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 ow=ut("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 iw=ut("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 gm=ut("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @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 Id=ut("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @license lucide-react v0.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 sw=ut("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.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 lw=ut("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 aw=ut("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-react v0.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 uw=ut("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** * @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 cw=ut("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 Zs=ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ec="-",dw=e=>{const t=pw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(ec);return l[0]===""&&l.length!==1&&l.shift(),vm(l,t)||fw(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},vm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?vm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(ec);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Dd=/^\[(.+)\]$/,fw=e=>{if(Dd.test(e)){const t=Dd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mw(Object.entries(e.classGroups),n).forEach(([i,s])=>{Wa(s,r,i,t)}),r},Wa=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:zd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(hw(o)){Wa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Wa(s,zd(t,i),n,r)})})},zd=(e,t)=>{let n=e;return t.split(ec).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hw=e=>e.isThemeGetter,mw=(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,gw=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)}}},ym="!",vw=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 x=0;xc?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:S,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:s}):s},yw=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},ww=e=>({cache:gw(e.cacheSize),parseClassName:vw(e),...dw(e)}),xw=/\s+/,Sw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(xw);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let S=!!f,m=r(S?h.substring(0,f):h);if(!m){if(!S){l=u+(l.length>0?" "+l:l);continue}if(m=r(h),!m){l=u+(l.length>0?" "+l:l);continue}S=!1}const x=yw(c).join(":"),g=d?x+ym:x,p=g+m;if(i.includes(p))continue;i.push(p);const v=o(m,S);for(let k=0;k0?" "+l:l)}return l};function kw(){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=ww(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=Sw(a,n);return o(a,c),c}return function(){return i(kw.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ew=/^\d+\/\d+$/,Cw=new Set(["px","full","screen"]),Pw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tw=/\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$/,Nw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$t=e=>Ir(e)||Cw.has(e)||Ew.test(e),an=e=>io(e,"length",zw),Ir=e=>!!e&&!Number.isNaN(Number(e)),Wl=e=>io(e,"number",Ir),xo=e=>!!e&&Number.isInteger(Number(e)),Aw=e=>e.endsWith("%")&&Ir(e.slice(0,-1)),Y=e=>xm.test(e),un=e=>Pw.test(e),Mw=new Set(["length","size","percentage"]),Ow=e=>io(e,Mw,Sm),_w=e=>io(e,"position",Sm),Lw=new Set(["image","url"]),Iw=e=>io(e,Lw,$w),Dw=e=>io(e,"",Fw),So=()=>!0,io=(e,t,n)=>{const r=xm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},zw=e=>Tw.test(e)&&!Nw.test(e),Sm=()=>!1,Fw=e=>Rw.test(e),$w=e=>jw.test(e),Bw=()=>{const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),o=ie("borderColor"),i=ie("borderRadius"),s=ie("borderSpacing"),l=ie("borderWidth"),a=ie("contrast"),u=ie("grayscale"),c=ie("hueRotate"),d=ie("invert"),h=ie("gap"),f=ie("gradientColorStops"),S=ie("gradientColorStopPositions"),m=ie("inset"),x=ie("margin"),g=ie("opacity"),p=ie("padding"),v=ie("saturate"),k=ie("scale"),b=ie("sepia"),E=ie("skew"),C=ie("space"),R=ie("translate"),j=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Y,t],I=()=>[Y,t],Q=()=>["",$t,an],_=()=>["auto",Ir,Y],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],V=()=>["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"],N=()=>["","0",Y],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ir,Y];return{cacheSize:500,separator:":",theme:{colors:[So],spacing:[$t,an],blur:["none","",un,Y],brightness:H(),borderColor:[e],borderRadius:["none","","full",un,Y],borderSpacing:I(),borderWidth:Q(),contrast:H(),grayscale:N(),hueRotate:H(),invert:N(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Aw,an],inset:B(),margin:B(),opacity:H(),padding:I(),saturate:H(),scale:H(),sepia:N(),skew:H(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[un]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),Y]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xo,Y]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",xo,Y]}],"grid-cols":[{"grid-cols":[So]}],"col-start-end":[{col:["auto",{span:["full",xo,Y]},Y]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[So]}],"row-start-end":[{row:["auto",{span:[xo,Y]},Y]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"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:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"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",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[un]},un]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",un,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wl]}],"font-family":[{font:[So]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",Ir,Wl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$t,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$t,an]}],"underline-offset":[{"underline-offset":["auto",$t,Y]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),_w]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ow]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Iw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"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":[g]}],"border-style":[{border:[...U(),"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":[g]}],"divide-style":[{divide:U()}],"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:["",...U()]}],"outline-offset":[{"outline-offset":[$t,Y]}],"outline-w":[{outline:[$t,an]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[$t,an]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",un,Dw]}],"shadow-color":[{shadow:[So]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",un,Y]}],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":[g]}],"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",Y]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[xo,Y]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$t,an,Wl]}],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"]}}},Uw=bw(Bw);function Bn(...e){return Uw(pm(e))}const Ww=Z0,km=w.forwardRef(({className:e,...t},n)=>y.jsx(sm,{ref:n,className:Bn("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}));km.displayName=sm.displayName;const Vw=hm("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"}}),bm=w.forwardRef(({className:e,variant:t,...n},r)=>y.jsx(lm,{ref:r,className:Bn(Vw({variant:t}),e),...n}));bm.displayName=lm.displayName;const Hw=w.forwardRef(({className:e,...t},n)=>y.jsx(cm,{ref:n,className:Bn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Hw.displayName=cm.displayName;const Em=w.forwardRef(({className:e,...t},n)=>y.jsx(dm,{ref:n,className:Bn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:y.jsx(Zs,{className:"h-4 w-4"})}));Em.displayName=dm.displayName;const Cm=w.forwardRef(({className:e,...t},n)=>y.jsx(am,{ref:n,className:Bn("text-sm font-semibold",e),...t}));Cm.displayName=am.displayName;const Pm=w.forwardRef(({className:e,...t},n)=>y.jsx(um,{ref:n,className:Bn("text-sm opacity-90",e),...t}));Pm.displayName=um.displayName;function Qw(){const{toasts:e}=i0();return y.jsxs(Ww,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return y.jsxs(bm,{...i,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(Cm,{children:n}),r&&y.jsx(Pm,{children:r})]}),o,y.jsx(Em,{})]},t)}),y.jsx(km,{})]})}var Fd=["light","dark"],Kw="(prefers-color-scheme: dark)",Gw=w.createContext(void 0),Yw={setTheme:e=>{},themes:[]},Xw=()=>{var e;return(e=w.useContext(Gw))!=null?e:Yw};w.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(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Fd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(S,m=!1,x=!0)=>{let g=s?s[S]:S,p=m?S+"|| ''":`'${g}'`,v="";return o&&x&&!m&&Fd.includes(S)&&(v+=`d.style.colorScheme = '${S}';`),n==="class"?m||g?v+=`c.add(${p})`:v+="null":g&&(v+=`d[s](n,${p})`),v},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Kw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var qw=e=>{switch(e){case"success":return ex;case"info":return nx;case"warning":return tx;case"error":return rx;default:return null}},Zw=Array(12).fill(0),Jw=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},Zw.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ex=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),tx=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.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"})),nx=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),rx=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.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"})),ox=M.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"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ix=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Va=1,sx=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:Va++,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],M.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(ax(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)||Va++;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}},ze=new sx,lx=(e,t)=>{let n=(t==null?void 0:t.id)||Va++;return ze.addToast({title:e,...t,id:n}),n},ax=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ux=lx,cx=()=>ze.toasts,dx=()=>ze.getActiveToasts();Object.assign(ux,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:cx,getToasts:dx});function fx(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))}fx(`: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 Ii(e){return e.label!==void 0}var px=3,hx="32px",mx="16px",$d=4e3,gx=356,vx=14,yx=20,wx=200;function ht(...e){return e.filter(Boolean).join(" ")}function xx(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Sx=e=>{var t,n,r,o,i,s,l,a,u,c,d;let{invert:h,toast:f,unstyled:S,interacting:m,setHeights:x,visibleToasts:g,heights:p,index:v,toasts:k,expanded:b,removeToast:E,defaultRichColors:C,closeButton:R,style:j,cancelButtonStyle:O,actionButtonStyle:B,className:I="",descriptionClassName:Q="",duration:_,position:q,gap:U,loadingIcon:V,expandByDefault:P,classNames:N,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:$}=e,[X,F]=M.useState(null),[z,J]=M.useState(null),[W,et]=M.useState(!1),[Tt,Un]=M.useState(!1),[tn,fr]=M.useState(!1),[nn,pi]=M.useState(!1),[ul,hi]=M.useState(!1),[cl,uo]=M.useState(0),[pr,pc]=M.useState(0),co=M.useRef(f.duration||_||$d),hc=M.useRef(null),Wn=M.useRef(null),wg=v===0,xg=v+1<=g,tt=f.type,hr=f.dismissible!==!1,Sg=f.className||"",kg=f.descriptionClassName||"",mi=M.useMemo(()=>p.findIndex(K=>K.toastId===f.id)||0,[p,f.id]),bg=M.useMemo(()=>{var K;return(K=f.closeButton)!=null?K:R},[f.closeButton,R]),mc=M.useMemo(()=>f.duration||_||$d,[f.duration,_]),dl=M.useRef(0),mr=M.useRef(0),gc=M.useRef(0),gr=M.useRef(null),[Eg,Cg]=q.split("-"),vc=M.useMemo(()=>p.reduce((K,re,ae)=>ae>=mi?K:K+re.height,0),[p,mi]),yc=ix(),Pg=f.invert||h,fl=tt==="loading";mr.current=M.useMemo(()=>mi*U+vc,[mi,vc]),M.useEffect(()=>{co.current=mc},[mc]),M.useEffect(()=>{et(!0)},[]),M.useEffect(()=>{let K=Wn.current;if(K){let re=K.getBoundingClientRect().height;return pc(re),x(ae=>[{toastId:f.id,height:re,position:f.position},...ae]),()=>x(ae=>ae.filter(ct=>ct.toastId!==f.id))}},[x,f.id]),M.useLayoutEffect(()=>{if(!W)return;let K=Wn.current,re=K.style.height;K.style.height="auto";let ae=K.getBoundingClientRect().height;K.style.height=re,pc(ae),x(ct=>ct.find(dt=>dt.toastId===f.id)?ct.map(dt=>dt.toastId===f.id?{...dt,height:ae}:dt):[{toastId:f.id,height:ae,position:f.position},...ct])},[W,f.title,f.description,x,f.id]);let rn=M.useCallback(()=>{Un(!0),uo(mr.current),x(K=>K.filter(re=>re.toastId!==f.id)),setTimeout(()=>{E(f)},wx)},[f,E,x,mr]);M.useEffect(()=>{if(f.promise&&tt==="loading"||f.duration===1/0||f.type==="loading")return;let K;return b||m||$&&yc?(()=>{if(gc.current{var re;(re=f.onAutoClose)==null||re.call(f,f),rn()},co.current)),()=>clearTimeout(K)},[b,m,f,tt,$,yc,rn]),M.useEffect(()=>{f.delete&&rn()},[rn,f.delete]);function Tg(){var K,re,ae;return L!=null&&L.loading?M.createElement("div",{className:ht(N==null?void 0:N.loader,(K=f==null?void 0:f.classNames)==null?void 0:K.loader,"sonner-loader"),"data-visible":tt==="loading"},L.loading):V?M.createElement("div",{className:ht(N==null?void 0:N.loader,(re=f==null?void 0:f.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":tt==="loading"},V):M.createElement(Jw,{className:ht(N==null?void 0:N.loader,(ae=f==null?void 0:f.classNames)==null?void 0:ae.loader),visible:tt==="loading"})}return M.createElement("li",{tabIndex:0,ref:Wn,className:ht(I,Sg,N==null?void 0:N.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[tt],(n=f==null?void 0:f.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||S),"data-mounted":W,"data-promise":!!f.promise,"data-swiped":ul,"data-removed":Tt,"data-visible":xg,"data-y-position":Eg,"data-x-position":Cg,"data-index":v,"data-front":wg,"data-swiping":tn,"data-dismissible":hr,"data-type":tt,"data-invert":Pg,"data-swipe-out":nn,"data-swipe-direction":z,"data-expanded":!!(b||P&&W),style:{"--index":v,"--toasts-before":v,"--z-index":k.length-v,"--offset":`${Tt?cl:mr.current}px`,"--initial-height":P?"auto":`${pr}px`,...j,...f.style},onDragEnd:()=>{fr(!1),F(null),gr.current=null},onPointerDown:K=>{fl||!hr||(hc.current=new Date,uo(mr.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(fr(!0),gr.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,re,ae,ct;if(nn||!hr)return;gr.current=null;let dt=Number(((K=Wn.current)==null?void 0:K.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),on=Number(((re=Wn.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Vn=new Date().getTime()-((ae=hc.current)==null?void 0:ae.getTime()),ft=X==="x"?dt:on,sn=Math.abs(ft)/Vn;if(Math.abs(ft)>=yx||sn>.11){uo(mr.current),(ct=f.onDismiss)==null||ct.call(f,f),J(X==="x"?dt>0?"right":"left":on>0?"down":"up"),rn(),pi(!0),hi(!1);return}fr(!1),F(null)},onPointerMove:K=>{var re,ae,ct,dt;if(!gr.current||!hr||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let on=K.clientY-gr.current.y,Vn=K.clientX-gr.current.x,ft=(ae=e.swipeDirections)!=null?ae:xx(q);!X&&(Math.abs(Vn)>1||Math.abs(on)>1)&&F(Math.abs(Vn)>Math.abs(on)?"x":"y");let sn={x:0,y:0};X==="y"?(ft.includes("top")||ft.includes("bottom"))&&(ft.includes("top")&&on<0||ft.includes("bottom")&&on>0)&&(sn.y=on):X==="x"&&(ft.includes("left")||ft.includes("right"))&&(ft.includes("left")&&Vn<0||ft.includes("right")&&Vn>0)&&(sn.x=Vn),(Math.abs(sn.x)>0||Math.abs(sn.y)>0)&&hi(!0),(ct=Wn.current)==null||ct.style.setProperty("--swipe-amount-x",`${sn.x}px`),(dt=Wn.current)==null||dt.style.setProperty("--swipe-amount-y",`${sn.y}px`)}},bg&&!f.jsx?M.createElement("button",{"aria-label":H,"data-disabled":fl,"data-close-button":!0,onClick:fl||!hr?()=>{}:()=>{var K;rn(),(K=f.onDismiss)==null||K.call(f,f)},className:ht(N==null?void 0:N.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:ox):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:M.createElement(M.Fragment,null,tt||f.icon||f.promise?M.createElement("div",{"data-icon":"",className:ht(N==null?void 0:N.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Tg():null,f.type!=="loading"?f.icon||(L==null?void 0:L[tt])||qw(tt):null):null,M.createElement("div",{"data-content":"",className:ht(N==null?void 0:N.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},M.createElement("div",{"data-title":"",className:ht(N==null?void 0:N.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?M.createElement("div",{"data-description":"",className:ht(Q,kg,N==null?void 0:N.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&Ii(f.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:K=>{var re,ae;Ii(f.cancel)&&hr&&((ae=(re=f.cancel).onClick)==null||ae.call(re,K),rn())},className:ht(N==null?void 0:N.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&Ii(f.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:K=>{var re,ae;Ii(f.action)&&((ae=(re=f.action).onClick)==null||ae.call(re,K),!K.defaultPrevented&&rn())},className:ht(N==null?void 0:N.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Bd(){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 kx(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?mx:hx;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 bx=w.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:h,style:f,visibleToasts:S=px,toastOptions:m,dir:x=Bd(),gap:g=vx,loadingIcon:p,icons:v,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:b}=e,[E,C]=M.useState([]),R=M.useMemo(()=>Array.from(new Set([r].concat(E.filter($=>$.position).map($=>$.position)))),[E,r]),[j,O]=M.useState([]),[B,I]=M.useState(!1),[Q,_]=M.useState(!1),[q,U]=M.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=M.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=M.useRef(null),L=M.useRef(!1),H=M.useCallback($=>{C(X=>{var F;return(F=X.find(z=>z.id===$.id))!=null&&F.delete||ze.dismiss($.id),X.filter(({id:z})=>z!==$.id)})},[]);return M.useEffect(()=>ze.subscribe($=>{if($.dismiss){C(X=>X.map(F=>F.id===$.id?{...F,delete:!0}:F));return}setTimeout(()=>{zh.flushSync(()=>{C(X=>{let F=X.findIndex(z=>z.id===$.id);return F!==-1?[...X.slice(0,F),{...X[F],...$},...X.slice(F+1)]:[$,...X]})})})}),[]),M.useEffect(()=>{if(c!=="system"){U(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:X})=>{U(X?"dark":"light")})}catch{$.addListener(({matches:F})=>{try{U(F?"dark":"light")}catch(z){console.error(z)}})}},[c]),M.useEffect(()=>{E.length<=1&&I(!1)},[E]),M.useEffect(()=>{let $=X=>{var F,z;o.every(J=>X[J]||X.code===J)&&(I(!0),(F=V.current)==null||F.focus()),X.code==="Escape"&&(document.activeElement===V.current||(z=V.current)!=null&&z.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[o]),M.useEffect(()=>{if(V.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,L.current=!1)}},[V.current]),M.createElement("section",{ref:t,"aria-label":`${k} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map(($,X)=>{var F;let[z,J]=$.split("-");return E.length?M.createElement("ol",{key:$,dir:x==="auto"?Bd():x,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":z,"data-lifted":B&&E.length>1&&!i,"data-x-position":J,style:{"--front-toast-height":`${((F=j[0])==null?void 0:F.height)||0}px`,"--width":`${gx}px`,"--gap":`${g}px`,...f,...kx(a,u)},onBlur:W=>{L.current&&!W.currentTarget.contains(W.relatedTarget)&&(L.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||L.current||(L.current=!0,N.current=W.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{Q||I(!1)},onDragEnd:()=>I(!1),onPointerDown:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},E.filter(W=>!W.position&&X===0||W.position===$).map((W,et)=>{var Tt,Un;return M.createElement(Sx,{key:W.id,icons:v,index:et,toast:W,defaultRichColors:d,duration:(Tt=m==null?void 0:m.duration)!=null?Tt:h,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:S,closeButton:(Un=m==null?void 0:m.closeButton)!=null?Un:s,interacting:Q,position:$,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:H,toasts:E.filter(tn=>tn.position==W.position),heights:j.filter(tn=>tn.position==W.position),setHeights:O,expandByDefault:i,gap:g,loadingIcon:p,expanded:B,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const Ex=({...e})=>{const{theme:t="system"}=Xw();return y.jsx(bx,{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})},Cx=["top","right","bottom","left"],Ln=Math.min,Ke=Math.max,Ps=Math.round,Di=Math.floor,Dt=e=>({x:e,y:e}),Px={left:"right",right:"left",bottom:"top",top:"bottom"},Tx={start:"end",end:"start"};function Ha(e,t,n){return Ke(e,Ln(t,n))}function Zt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function tc(e){return e==="x"?"y":"x"}function nc(e){return e==="y"?"height":"width"}const Nx=new Set(["top","bottom"]);function _t(e){return Nx.has(Jt(e))?"y":"x"}function rc(e){return tc(_t(e))}function Rx(e,t,n){n===void 0&&(n=!1);const r=so(e),o=rc(e),i=nc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ts(s)),[s,Ts(s)]}function jx(e){const t=Ts(e);return[Qa(e),t,Qa(t)]}function Qa(e){return e.replace(/start|end/g,t=>Tx[t])}const Ud=["left","right"],Wd=["right","left"],Ax=["top","bottom"],Mx=["bottom","top"];function Ox(e,t,n){switch(e){case"top":case"bottom":return n?t?Wd:Ud:t?Ud:Wd;case"left":case"right":return t?Ax:Mx;default:return[]}}function _x(e,t,n,r){const o=so(e);let i=Ox(Jt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qa)))),i}function Ts(e){return e.replace(/left|right|bottom|top/g,t=>Px[t])}function Lx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tm(e){return typeof e!="number"?Lx(e):{top:e,right:e,bottom:e,left:e}}function Ns(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 Vd(e,t,n){let{reference:r,floating:o}=e;const i=_t(t),s=rc(t),l=nc(s),a=Jt(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=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]-=h*(n&&u?-1:1);break;case"end":f[s]+=h*(n&&u?-1:1);break}return f}const Ix=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}=Vd(u,r,a),h=r,f={},S=0;for(let m=0;m({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}=Zt(e,t)||{};if(u==null)return{};const d=Tm(c),h={x:n,y:r},f=rc(o),S=nc(f),m=await s.getDimensions(u),x=f==="y",g=x?"top":"left",p=x?"bottom":"right",v=x?"clientHeight":"clientWidth",k=i.reference[S]+i.reference[f]-h[f]-i.floating[S],b=h[f]-i.reference[f],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=E?E[v]:0;(!C||!await(s.isElement==null?void 0:s.isElement(E)))&&(C=l.floating[v]||i.floating[S]);const R=k/2-b/2,j=C/2-m[S]/2-1,O=Ln(d[g],j),B=Ln(d[p],j),I=O,Q=C-m[S]-B,_=C/2-m[S]/2+R,q=Ha(I,_,Q),U=!a.arrow&&so(o)!=null&&_!==q&&i.reference[S]/2-(__<=0)){var B,I;const _=(((B=i.flip)==null?void 0:B.index)||0)+1,q=C[_];if(q&&(!(d==="alignment"?p!==_t(q):!1)||O.every(P=>P.overflows[0]>0&&_t(P.placement)===p)))return{data:{index:_,overflows:O},reset:{placement:q}};let U=(I=O.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(f){case"bestFit":{var Q;const V=(Q=O.filter(P=>{if(E){const N=_t(P.placement);return N===p||N==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(N=>N>0).reduce((N,L)=>N+L,0)]).sort((P,N)=>P[1]-N[1])[0])==null?void 0:Q[0];V&&(U=V);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Hd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qd(e){return Cx.some(t=>e[t]>=0)}const Fx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zt(e,t);switch(r){case"referenceHidden":{const i=await Jo(t,{...o,elementContext:"reference"}),s=Hd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Qd(s)}}}case"escaped":{const i=await Jo(t,{...o,altBoundary:!0}),s=Hd(i,n.floating);return{data:{escapedOffsets:s,escaped:Qd(s)}}}default:return{}}}}},Nm=new Set(["left","top"]);async function $x(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Jt(n),l=so(n),a=_t(n)==="y",u=Nm.has(s)?-1:1,c=i&&a?-1:1,d=Zt(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:S}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof S=="number"&&(f=l==="end"?S*-1:S),a?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const Bx=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 $x(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}}}}},Ux=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:x=>{let{x:g,y:p}=x;return{x:g,y:p}}},...a}=Zt(e,t),u={x:n,y:r},c=await Jo(t,a),d=_t(Jt(o)),h=tc(d);let f=u[h],S=u[d];if(i){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",p=f+c[x],v=f-c[g];f=Ha(p,f,v)}if(s){const x=d==="y"?"top":"left",g=d==="y"?"bottom":"right",p=S+c[x],v=S-c[g];S=Ha(p,S,v)}const m=l.fn({...t,[h]:f,[d]:S});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:s}}}}}},Wx=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}=Zt(e,t),c={x:n,y:r},d=_t(o),h=tc(d);let f=c[h],S=c[d];const m=Zt(l,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const v=h==="y"?"height":"width",k=i.reference[h]-i.floating[v]+x.mainAxis,b=i.reference[h]+i.reference[v]-x.mainAxis;fb&&(f=b)}if(u){var g,p;const v=h==="y"?"width":"height",k=Nm.has(Jt(o)),b=i.reference[d]-i.floating[v]+(k&&((g=s.offset)==null?void 0:g[d])||0)+(k?0:x.crossAxis),E=i.reference[d]+i.reference[v]+(k?0:((p=s.offset)==null?void 0:p[d])||0)-(k?x.crossAxis:0);SE&&(S=E)}return{[h]:f,[d]:S}}}},Vx=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}=Zt(e,t),c=await Jo(t,u),d=Jt(o),h=so(o),f=_t(o)==="y",{width:S,height:m}=i.floating;let x,g;d==="top"||d==="bottom"?(x=d,g=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(g=d,x=h==="end"?"top":"bottom");const p=m-c.top-c.bottom,v=S-c.left-c.right,k=Ln(m-c[x],p),b=Ln(S-c[g],v),E=!t.middlewareData.shift;let C=k,R=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=p),E&&!h){const O=Ke(c.left,0),B=Ke(c.right,0),I=Ke(c.top,0),Q=Ke(c.bottom,0);f?R=S-2*(O!==0||B!==0?O+B:Ke(c.left,c.right)):C=m-2*(I!==0||Q!==0?I+Q:Ke(c.top,c.bottom))}await a({...t,availableWidth:R,availableHeight:C});const j=await s.getDimensions(l.floating);return S!==j.width||m!==j.height?{reset:{rects:!0}}:{}}}};function Js(){return typeof window<"u"}function lo(e){return Rm(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ft(e){var t;return(t=(Rm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rm(e){return Js()?e instanceof Node||e instanceof Xe(e).Node:!1}function Ct(e){return Js()?e instanceof Element||e instanceof Xe(e).Element:!1}function zt(e){return Js()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Kd(e){return!Js()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const Hx=new Set(["inline","contents"]);function fi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Hx.has(o)}const Qx=new Set(["table","td","th"]);function Kx(e){return Qx.has(lo(e))}const Gx=[":popover-open",":modal"];function el(e){return Gx.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yx=["transform","translate","scale","rotate","perspective"],Xx=["transform","translate","scale","rotate","perspective","filter"],qx=["paint","layout","strict","content"];function oc(e){const t=ic(),n=Ct(e)?Pt(e):e;return Yx.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)||Xx.some(r=>(n.willChange||"").includes(r))||qx.some(r=>(n.contain||"").includes(r))}function Zx(e){let t=In(e);for(;zt(t)&&!eo(t);){if(oc(t))return t;if(el(t))return null;t=In(t)}return null}function ic(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Jx=new Set(["html","body","#document"]);function eo(e){return Jx.has(lo(e))}function Pt(e){return Xe(e).getComputedStyle(e)}function tl(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kd(e)&&e.host||Ft(e);return Kd(t)?t.host:t}function jm(e){const t=In(e);return eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&fi(t)?t:jm(t)}function ei(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xe(o);if(i){const l=Ka(s);return t.concat(s,s.visualViewport||[],fi(o)?o:[],l&&n?ei(l):[])}return t.concat(o,ei(o,[],n))}function Ka(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Am(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Ps(n)!==i||Ps(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function sc(e){return Ct(e)?e:e.contextElement}function Dr(e){const t=sc(e);if(!zt(t))return Dt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Am(t);let s=(i?Ps(n.width):n.width)/r,l=(i?Ps(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const e1=Dt(0);function Mm(e){const t=Xe(e);return!ic()||!t.visualViewport?e1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function t1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function ur(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=sc(e);let s=Dt(1);t&&(r?Ct(r)&&(s=Dr(r)):s=Dr(e));const l=t1(i,n,r)?Mm(i):Dt(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 h=Xe(i),f=r&&Ct(r)?Xe(r):r;let S=h,m=Ka(S);for(;m&&r&&f!==S;){const x=Dr(m),g=m.getBoundingClientRect(),p=Pt(m),v=g.left+(m.clientLeft+parseFloat(p.paddingLeft))*x.x,k=g.top+(m.clientTop+parseFloat(p.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,d*=x.y,a+=v,u+=k,S=Xe(m),m=Ka(S)}}return Ns({width:c,height:d,x:a,y:u})}function lc(e,t){const n=tl(e).scrollLeft;return t?t.left+n:ur(Ft(e)).left+n}function Om(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 n1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ft(r),l=t?el(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Dt(1);const c=Dt(0),d=zt(r);if((d||!d&&!i)&&((lo(r)!=="body"||fi(s))&&(a=tl(r)),zt(r))){const f=ur(r);u=Dr(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=s&&!d&&!i?Om(s,a,!0):Dt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-a.scrollTop*u.y+c.y+h.y}}function r1(e){return Array.from(e.getClientRects())}function o1(e){const t=Ft(e),n=tl(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+lc(e);const l=-n.scrollTop;return Pt(r).direction==="rtl"&&(s+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function i1(e,t){const n=Xe(e),r=Ft(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=ic();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const s1=new Set(["absolute","fixed"]);function l1(e,t){const n=ur(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=zt(e)?Dr(e):Dt(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 Gd(e,t,n){let r;if(t==="viewport")r=i1(e,n);else if(t==="document")r=o1(Ft(e));else if(Ct(t))r=l1(t,n);else{const o=Mm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ns(r)}function _m(e,t){const n=In(e);return n===t||!Ct(n)||eo(n)?!1:Pt(n).position==="fixed"||_m(n,t)}function a1(e,t){const n=t.get(e);if(n)return n;let r=ei(e,[],!1).filter(l=>Ct(l)&&lo(l)!=="body"),o=null;const i=Pt(e).position==="fixed";let s=i?In(e):e;for(;Ct(s)&&!eo(s);){const l=Pt(s),a=oc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&s1.has(o.position)||fi(s)&&!a&&_m(e,s))?r=r.filter(c=>c!==s):o=l,s=In(s)}return t.set(e,r),r}function u1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?el(t)?[]:a1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=Gd(t,c,o);return u.top=Ke(d.top,u.top),u.right=Ln(d.right,u.right),u.bottom=Ln(d.bottom,u.bottom),u.left=Ke(d.left,u.left),u},Gd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function c1(e){const{width:t,height:n}=Am(e);return{width:t,height:n}}function d1(e,t,n){const r=zt(t),o=Ft(t),i=n==="fixed",s=ur(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Dt(0);function u(){a.x=lc(o)}if(r||!r&&!i)if((lo(t)!=="body"||fi(o))&&(l=tl(t)),r){const f=ur(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?Om(o,l):Dt(0),d=s.left+l.scrollLeft-a.x-c.x,h=s.top+l.scrollTop-a.y-c.y;return{x:d,y:h,width:s.width,height:s.height}}function Vl(e){return Pt(e).position==="static"}function Yd(e,t){if(!zt(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ft(e)===n&&(n=n.ownerDocument.body),n}function Lm(e,t){const n=Xe(e);if(el(e))return n;if(!zt(e)){let o=In(e);for(;o&&!eo(o);){if(Ct(o)&&!Vl(o))return o;o=In(o)}return n}let r=Yd(e,t);for(;r&&Kx(r)&&Vl(r);)r=Yd(r,t);return r&&eo(r)&&Vl(r)&&!oc(r)?n:r||Zx(e)||n}const f1=async function(e){const t=this.getOffsetParent||Lm,n=this.getDimensions,r=await n(e.floating);return{reference:d1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function p1(e){return Pt(e).direction==="rtl"}const h1={convertOffsetParentRelativeRectToViewportRelativeRect:n1,getDocumentElement:Ft,getClippingRect:u1,getOffsetParent:Lm,getElementRects:f1,getClientRects:r1,getDimensions:c1,getScale:Dr,isElement:Ct,isRTL:p1};function Im(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function m1(e,t){let n=null,r;const o=Ft(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:h,height:f}=u;if(l||t(),!h||!f)return;const S=Di(d),m=Di(o.clientWidth-(c+h)),x=Di(o.clientHeight-(d+f)),g=Di(c),v={rootMargin:-S+"px "+-m+"px "+-x+"px "+-g+"px",threshold:Ke(0,Ln(1,a))||1};let k=!0;function b(E){const C=E[0].intersectionRatio;if(C!==a){if(!k)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Im(u,e.getBoundingClientRect())&&s(),k=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return s(!0),i}function g1(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=sc(e),c=o||i?[...u?ei(u):[],...ei(t)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&l?m1(u,n):null;let h=-1,f=null;s&&(f=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let S,m=a?ur(e):null;a&&x();function x(){const g=ur(e);m&&!Im(m,g)&&n(),m=g,S=requestAnimationFrame(x)}return n(),()=>{var g;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),d==null||d(),(g=f)==null||g.disconnect(),f=null,a&&cancelAnimationFrame(S)}}const v1=Bx,y1=Ux,w1=zx,x1=Vx,S1=Fx,Xd=Dx,k1=Wx,b1=(e,t,n)=>{const r=new Map,o={platform:h1,...n},i={...o.platform,_c:r};return Ix(e,t,{...o,platform:i})};var E1=typeof document<"u",C1=function(){},es=E1?w.useLayoutEffect:C1;function Rs(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(!Rs(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)&&!Rs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Dm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qd(e,t){const n=Dm(e);return Math.round(t*n)/n}function Hl(e){const t=w.useRef(e);return es(()=>{t.current=e}),t}function P1(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]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=w.useState(r);Rs(h,r)||f(r);const[S,m]=w.useState(null),[x,g]=w.useState(null),p=w.useCallback(P=>{P!==E.current&&(E.current=P,m(P))},[]),v=w.useCallback(P=>{P!==C.current&&(C.current=P,g(P))},[]),k=i||S,b=s||x,E=w.useRef(null),C=w.useRef(null),R=w.useRef(c),j=a!=null,O=Hl(a),B=Hl(o),I=Hl(u),Q=w.useCallback(()=>{if(!E.current||!C.current)return;const P={placement:t,strategy:n,middleware:h};B.current&&(P.platform=B.current),b1(E.current,C.current,P).then(N=>{const L={...N,isPositioned:I.current!==!1};_.current&&!Rs(R.current,L)&&(R.current=L,ci.flushSync(()=>{d(L)}))})},[h,t,n,B,I]);es(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const _=w.useRef(!1);es(()=>(_.current=!0,()=>{_.current=!1}),[]),es(()=>{if(k&&(E.current=k),b&&(C.current=b),k&&b){if(O.current)return O.current(k,b,Q);Q()}},[k,b,Q,O,j]);const q=w.useMemo(()=>({reference:E,floating:C,setReference:p,setFloating:v}),[p,v]),U=w.useMemo(()=>({reference:k,floating:b}),[k,b]),V=w.useMemo(()=>{const P={position:n,left:0,top:0};if(!U.floating)return P;const N=qd(U.floating,c.x),L=qd(U.floating,c.y);return l?{...P,transform:"translate("+N+"px, "+L+"px)",...Dm(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:L}},[n,l,U.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:Q,refs:q,elements:U,floatingStyles:V}),[c,Q,q,U,V])}const T1=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?Xd({element:r.current,padding:o}).fn(n):{}:r?Xd({element:r,padding:o}).fn(n):{}}}},N1=(e,t)=>({...v1(e),options:[e,t]}),R1=(e,t)=>({...y1(e),options:[e,t]}),j1=(e,t)=>({...k1(e),options:[e,t]}),A1=(e,t)=>({...w1(e),options:[e,t]}),M1=(e,t)=>({...x1(e),options:[e,t]}),O1=(e,t)=>({...S1(e),options:[e,t]}),_1=(e,t)=>({...T1(e),options:[e,t]});var L1="Arrow",zm=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return y.jsx(He.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});zm.displayName=L1;var I1=zm;function D1(e){const[t,n]=w.useState(void 0);return _n(()=>{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 Fm="Popper",[$m,Bm]=Ys(Fm),[Fk,Um]=$m(Fm),Wm="PopperAnchor",Vm=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Um(Wm,n),s=w.useRef(null),l=Et(t,s);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:y.jsx(He.div,{...o,ref:l})});Vm.displayName=Wm;var ac="PopperContent",[z1,F1]=$m(ac),Hm=w.forwardRef((e,t)=>{var W,et,Tt,Un,tn,fr;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:h=!1,updatePositionStrategy:f="optimized",onPlaced:S,...m}=e,x=Um(ac,n),[g,p]=w.useState(null),v=Et(t,nn=>p(nn)),[k,b]=w.useState(null),E=D1(k),C=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,j=r+(i!=="center"?"-"+i:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},B=Array.isArray(u)?u:[u],I=B.length>0,Q={padding:O,boundary:B.filter(B1),altBoundary:I},{refs:_,floatingStyles:q,placement:U,isPositioned:V,middlewareData:P}=P1({strategy:"fixed",placement:j,whileElementsMounted:(...nn)=>g1(...nn,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[N1({mainAxis:o+R,alignmentAxis:s}),a&&R1({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?j1():void 0,...Q}),a&&A1({...Q}),M1({...Q,apply:({elements:nn,rects:pi,availableWidth:ul,availableHeight:hi})=>{const{width:cl,height:uo}=pi.reference,pr=nn.floating.style;pr.setProperty("--radix-popper-available-width",`${ul}px`),pr.setProperty("--radix-popper-available-height",`${hi}px`),pr.setProperty("--radix-popper-anchor-width",`${cl}px`),pr.setProperty("--radix-popper-anchor-height",`${uo}px`)}}),k&&_1({element:k,padding:l}),U1({arrowWidth:C,arrowHeight:R}),h&&O1({strategy:"referenceHidden",...Q})]}),[N,L]=Gm(U),H=On(S);_n(()=>{V&&(H==null||H())},[V,H]);const $=(W=P.arrow)==null?void 0:W.x,X=(et=P.arrow)==null?void 0:et.y,F=((Tt=P.arrow)==null?void 0:Tt.centerOffset)!==0,[z,J]=w.useState();return _n(()=>{g&&J(window.getComputedStyle(g).zIndex)},[g]),y.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:V?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(Un=P.transformOrigin)==null?void 0:Un.x,(tn=P.transformOrigin)==null?void 0:tn.y].join(" "),...((fr=P.hide)==null?void 0:fr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(z1,{scope:n,placedSide:N,onArrowChange:b,arrowX:$,arrowY:X,shouldHideArrow:F,children:y.jsx(He.div,{"data-side":N,"data-align":L,...m,ref:v,style:{...m.style,animation:V?void 0:"none"}})})})});Hm.displayName=ac;var Qm="PopperArrow",$1={top:"bottom",right:"left",bottom:"top",left:"right"},Km=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=F1(Qm,r),s=$1[i.placedSide];return y.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:y.jsx(I1,{...o,ref:n,style:{...o.style,display:"block"}})})});Km.displayName=Qm;function B1(e){return e!==null}var U1=e=>({name:"transformOrigin",options:e,fn(t){var x,g,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Gm(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,f=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",m="";return u==="bottom"?(S=s?d:`${h}px`,m=`${-a}px`):u==="top"?(S=s?d:`${h}px`,m=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,m=s?d:`${f}px`):u==="left"&&(S=`${r.floating.width+a}px`,m=s?d:`${f}px`),{data:{x:S,y:m}}}});function Gm(e){const[t,n="center"]=e.split("-");return[t,n]}var W1=Vm,V1=Hm,H1=Km,[nl,$k]=Ys("Tooltip",[Bm]),uc=Bm(),Ym="TooltipProvider",Q1=700,Zd="tooltip.open",[K1,Xm]=nl(Ym),qm=e=>{const{__scopeTooltip:t,delayDuration:n=Q1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=w.useRef(!0),l=w.useRef(!1),a=w.useRef(0);return w.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),y.jsx(K1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};qm.displayName=Ym;var Zm="Tooltip",[Bk,rl]=nl(Zm),Ga="TooltipTrigger",G1=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=rl(Ga,n),i=Xm(Ga,n),s=uc(n),l=w.useRef(null),a=Et(t,l,o.onTriggerChange),u=w.useRef(!1),c=w.useRef(!1),d=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(W1,{asChild:!0,...s,children:y.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:we(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:we(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:we(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:we(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:we(e.onBlur,o.onClose),onClick:we(e.onClick,o.onClose)})})});G1.displayName=Ga;var Y1="TooltipPortal",[Uk,X1]=nl(Y1,{forceMount:void 0}),to="TooltipContent",Jm=w.forwardRef((e,t)=>{const n=X1(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=rl(to,e.__scopeTooltip);return y.jsx(Xu,{present:r||s.open,children:s.disableHoverableContent?y.jsx(eg,{side:o,...i,ref:t}):y.jsx(q1,{side:o,...i,ref:t})})}),q1=w.forwardRef((e,t)=>{const n=rl(to,e.__scopeTooltip),r=Xm(to,e.__scopeTooltip),o=w.useRef(null),i=Et(t,o),[s,l]=w.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,h=w.useCallback(()=>{l(null),d(!1)},[d]),f=w.useCallback((S,m)=>{const x=S.currentTarget,g={x:S.clientX,y:S.clientY},p=nS(g,x.getBoundingClientRect()),v=rS(g,p),k=oS(m.getBoundingClientRect()),b=sS([...v,...k]);l(b),d(!0)},[d]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(a&&c){const S=x=>f(x,c),m=x=>f(x,a);return a.addEventListener("pointerleave",S),c.addEventListener("pointerleave",m),()=>{a.removeEventListener("pointerleave",S),c.removeEventListener("pointerleave",m)}}},[a,c,f,h]),w.useEffect(()=>{if(s){const S=m=>{const x=m.target,g={x:m.clientX,y:m.clientY},p=(a==null?void 0:a.contains(x))||(c==null?void 0:c.contains(x)),v=!iS(g,s);p?h():v&&(h(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,c,s,u,h]),y.jsx(eg,{...e,ref:i})}),[Z1,J1]=nl(Zm,{isInside:!1}),eS=u0("TooltipContent"),eg=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=rl(to,n),u=uc(n),{onClose:c}=a;return w.useEffect(()=>(document.addEventListener(Zd,c),()=>document.removeEventListener(Zd,c)),[c]),w.useEffect(()=>{if(a.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(a.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,c]),y.jsx(Yu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:y.jsxs(V1,{"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:[y.jsx(eS,{children:r}),y.jsx(Z1,{scope:n,isInside:!0,children:y.jsx(_0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Jm.displayName=to;var tg="TooltipArrow",tS=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=uc(n);return J1(tg,n).isInside?null:y.jsx(H1,{...o,...r,ref:t})});tS.displayName=tg;function nS(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 rS(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 oS(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 iS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function sS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),lS(t)}function lS(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 aS=qm,ng=Jm;const uS=aS,cS=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(ng,{ref:r,sideOffset:t,className:Bn("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}));cS.displayName=ng.displayName;var ol=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(){}},il=typeof window>"u"||"Deno"in globalThis;function gt(){}function dS(e,t){return typeof e=="function"?e(t):e}function fS(e){return typeof e=="number"&&e>=0&&e!==1/0}function pS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ya(e,t){return typeof e=="function"?e(t):e}function hS(e,t){return typeof e=="function"?e(t):e}function Jd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==cc(s,t.options))return!1}else if(!ni(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 ef(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ti(t.options.mutationKey)!==ti(i))return!1}else if(!ni(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function cc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ti)(e)}function ti(e){return JSON.stringify(e,(t,n)=>Xa(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ni(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ni(e[n],t[n])):!1}function rg(e,t){if(e===t)return e;const n=tf(e)&&tf(t);if(n||Xa(e)&&Xa(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 gS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?rg(e,t):t}function vS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var dc=Symbol();function og(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 Xn,mn,Fr,gf,wS=(gf=class extends ol{constructor(){super();te(this,Xn);te(this,mn);te(this,Fr);G(this,Fr,t=>{if(!il&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,mn)||this.setEventListener(T(this,Fr))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,mn))==null||t.call(this),G(this,mn,void 0))}setEventListener(t){var n;G(this,Fr,t),(n=T(this,mn))==null||n.call(this),G(this,mn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Xn)!==t&&(G(this,Xn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Xn)=="boolean"?T(this,Xn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xn=new WeakMap,mn=new WeakMap,Fr=new WeakMap,gf),ig=new wS,$r,gn,Br,vf,xS=(vf=class extends ol{constructor(){super();te(this,$r,!0);te(this,gn);te(this,Br);G(this,Br,t=>{if(!il&&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(){T(this,gn)||this.setEventListener(T(this,Br))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,gn))==null||t.call(this),G(this,gn,void 0))}setEventListener(t){var n;G(this,Br,t),(n=T(this,gn))==null||n.call(this),G(this,gn,t(this.setOnline.bind(this)))}setOnline(t){T(this,$r)!==t&&(G(this,$r,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,$r)}},$r=new WeakMap,gn=new WeakMap,Br=new WeakMap,vf),js=new xS;function SS(){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 kS(e){return Math.min(1e3*2**e,3e4)}function sg(e){return(e??"online")==="online"?js.isOnline():!0}var lg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ql(e){return e instanceof lg}function ag(e){let t=!1,n=0,r=!1,o;const i=SS(),s=m=>{var x;r||(h(new lg(m)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>ig.isFocused()&&(e.networkMode==="always"||js.isOnline())&&e.canRun(),c=()=>sg(e.networkMode)&&e.canRun(),d=m=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,m),o==null||o(),i.resolve(m))},h=m=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,m),o==null||o(),i.reject(m))},f=()=>new Promise(m=>{var x;o=g=>{(r||u())&&m(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),S=()=>{if(r)return;let m;const x=n===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(d).catch(g=>{var E;if(r)return;const p=e.retry??(il?0:3),v=e.retryDelay??kS,k=typeof v=="function"?v(n,g):v,b=p===!0||typeof p=="number"&&nu()?void 0:f()).then(()=>{t?h(g):S()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?S():f().then(S),i)}}var bS=e=>setTimeout(e,0);function ES(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=bS;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 _e=ES(),qn,yf,ug=(yf=class{constructor(){te(this,qn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fS(this.gcTime)&&G(this,qn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(il?1/0:5*60*1e3))}clearGcTimeout(){T(this,qn)&&(clearTimeout(T(this,qn)),G(this,qn,void 0))}},qn=new WeakMap,yf),Ur,Zn,nt,Jn,Re,ri,er,vt,Bt,wf,CS=(wf=class extends ug{constructor(t){super();te(this,vt);te(this,Ur);te(this,Zn);te(this,nt);te(this,Jn);te(this,Re);te(this,ri);te(this,er);G(this,er,!1),G(this,ri,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,Jn,t.client),G(this,nt,T(this,Jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Ur,TS(this.options)),this.state=t.state??T(this,Ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Re))==null?void 0:t.promise}setOptions(t){this.options={...T(this,ri),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,nt).remove(this)}setData(t,n){const r=gS(this.state.data,t,this.options);return Pe(this,vt,Bt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Pe(this,vt,Bt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,Re))==null?void 0:r.promise;return(o=T(this,Re))==null||o.cancel(t),n?n.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Ur))}isActive(){return this.observers.some(t=>hS(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=>Ya(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:!pS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Re)&&(T(this,er)?T(this,Re).cancel({revert:!0}):T(this,Re).cancelRetry()),this.scheduleGc()),T(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,vt,Bt).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(T(this,Re))return T(this,Re).continueRetry(),T(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,er,!0),r.signal)})},i=()=>{const h=og(this.options,n),S=(()=>{const m={client:T(this,Jn),queryKey:this.queryKey,meta:this.meta};return o(m),m})();return G(this,er,!1),this.options.persister?this.options.persister(h,S,this):h(S)},l=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Jn),state:this.state,fetchFn:i};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),G(this,Zn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Pe(this,vt,Bt).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta});const a=h=>{var f,S,m,x;Ql(h)&&h.silent||Pe(this,vt,Bt).call(this,{type:"error",error:h}),Ql(h)||((S=(f=T(this,nt).config).onError)==null||S.call(f,h,this),(x=(m=T(this,nt).config).onSettled)==null||x.call(m,this.state.data,h,this)),this.scheduleGc()};return G(this,Re,ag({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,S,m,x;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){a(g);return}(S=(f=T(this,nt).config).onSuccess)==null||S.call(f,h,this),(x=(m=T(this,nt).config).onSettled)==null||x.call(m,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,f)=>{Pe(this,vt,Bt).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Pe(this,vt,Bt).call(this,{type:"pause"})},onContinue:()=>{Pe(this,vt,Bt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),T(this,Re).start()}},Ur=new WeakMap,Zn=new WeakMap,nt=new WeakMap,Jn=new WeakMap,Re=new WeakMap,ri=new WeakMap,er=new WeakMap,vt=new WeakSet,Bt=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,...PS(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,Zn,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 Ql(o)&&o.revert&&T(this,Zn)?{...T(this,Zn),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),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,nt).notify({query:this,type:"updated",action:t})})},wf);function PS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function TS(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 jt,xf,NS=(xf=class extends ol{constructor(t={}){super();te(this,jt);this.config=t,G(this,jt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??cc(o,n);let s=this.get(i);return s||(s=new CS({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){T(this,jt).has(t.queryHash)||(T(this,jt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,jt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,jt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,jt).get(t)}getAll(){return[...T(this,jt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Jd(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jt=new WeakMap,xf),At,Me,tr,Mt,cn,Sf,RS=(Sf=class extends ug{constructor(t){super();te(this,Mt);te(this,At);te(this,Me);te(this,tr);this.mutationId=t.mutationId,G(this,Me,t.mutationCache),G(this,At,[]),this.state=t.state||jS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,At).includes(t)||(T(this,At).push(t),this.clearGcTimeout(),T(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,At,T(this,At).filter(n=>n!==t)),this.scheduleGc(),T(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,At).length||(this.state.status==="pending"?this.scheduleGc():T(this,Me).remove(this))}continue(){var t;return((t=T(this,tr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,d,h,f,S,m,x,g,p,v,k,b,E,C,R;const n=()=>{Pe(this,Mt,cn).call(this,{type:"continue"})};G(this,tr,ag({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,O)=>{Pe(this,Mt,cn).call(this,{type:"failed",failureCount:j,error:O})},onPause:()=>{Pe(this,Mt,cn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Me).canRun(this)}));const r=this.state.status==="pending",o=!T(this,tr).canStart();try{if(r)n();else{Pe(this,Mt,cn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=T(this,Me).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&&Pe(this,Mt,cn).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const j=await T(this,tr).start();return await((c=(u=T(this,Me).config).onSuccess)==null?void 0:c.call(u,j,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,j,t,this.state.context)),await((S=(f=T(this,Me).config).onSettled)==null?void 0:S.call(f,j,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,j,null,t,this.state.context)),Pe(this,Mt,cn).call(this,{type:"success",data:j}),j}catch(j){try{throw await((p=(g=T(this,Me).config).onError)==null?void 0:p.call(g,j,t,this.state.context,this)),await((k=(v=this.options).onError)==null?void 0:k.call(v,j,t,this.state.context)),await((E=(b=T(this,Me).config).onSettled)==null?void 0:E.call(b,void 0,j,this.state.variables,this.state.context,this)),await((R=(C=this.options).onSettled)==null?void 0:R.call(C,void 0,j,t,this.state.context)),j}finally{Pe(this,Mt,cn).call(this,{type:"error",error:j})}}finally{T(this,Me).runNext(this)}}},At=new WeakMap,Me=new WeakMap,tr=new WeakMap,Mt=new WeakSet,cn=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),_e.batch(()=>{T(this,At).forEach(r=>{r.onMutationUpdate(t)}),T(this,Me).notify({mutation:this,type:"updated",action:t})})},Sf);function jS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vt,yt,oi,kf,AS=(kf=class extends ol{constructor(t={}){super();te(this,Vt);te(this,yt);te(this,oi);this.config=t,G(this,Vt,new Set),G(this,yt,new Map),G(this,oi,0)}build(t,n,r){const o=new RS({mutationCache:this,mutationId:++gi(this,oi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,Vt).add(t);const n=zi(t);if(typeof n=="string"){const r=T(this,yt).get(n);r?r.push(t):T(this,yt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Vt).delete(t)){const n=zi(t);if(typeof n=="string"){const r=T(this,yt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,yt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=zi(t);if(typeof n=="string"){const r=T(this,yt).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=zi(t);if(typeof n=="string"){const o=(r=T(this,yt).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(){_e.batch(()=>{T(this,Vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Vt).clear(),T(this,yt).clear()})}getAll(){return Array.from(T(this,Vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ef(n,r))}findAll(t={}){return this.getAll().filter(n=>ef(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(gt))))}},Vt=new WeakMap,yt=new WeakMap,oi=new WeakMap,kf);function zi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function rf(e){return{onFetch:(t,n)=>{var c,d,h,f,S;const r=t.options,o=(h=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let m=!1;const x=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=og(t.options,t.fetchOptions),p=async(v,k,b)=>{if(m)return Promise.reject();if(k==null&&v.pages.length)return Promise.resolve(v);const C=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:k,direction:b?"backward":"forward",meta:t.options.meta};return x(B),B})(),R=await g(C),{maxPages:j}=t.options,O=b?yS:vS;return{pages:O(v.pages,R,j),pageParams:O(v.pageParams,k,j)}};if(o&&i.length){const v=o==="backward",k=v?MS:of,b={pages:i,pageParams:s},E=k(r,b);l=await p(b,E,v)}else{const v=e??i.length;do{const k=a===0?s[0]??r.initialPageParam:of(r,l);if(a>0&&k==null)break;l=await p(l,k),a++}while(a{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,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 MS(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 he,vn,yn,Wr,Vr,wn,Hr,Qr,bf,OS=(bf=class{constructor(e={}){te(this,he);te(this,vn);te(this,yn);te(this,Wr);te(this,Vr);te(this,wn);te(this,Hr);te(this,Qr);G(this,he,e.queryCache||new NS),G(this,vn,e.mutationCache||new AS),G(this,yn,e.defaultOptions||{}),G(this,Wr,new Map),G(this,Vr,new Map),G(this,wn,0)}mount(){gi(this,wn)._++,T(this,wn)===1&&(G(this,Hr,ig.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,he).onFocus())})),G(this,Qr,js.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,he).onOnline())})))}unmount(){var e,t;gi(this,wn)._--,T(this,wn)===0&&((e=T(this,Hr))==null||e.call(this),G(this,Hr,void 0),(t=T(this,Qr))==null||t.call(this),G(this,Qr,void 0))}isFetching(e){return T(this,he).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,vn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,he).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,he).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ya(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,he).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=T(this,he).get(r.queryHash),i=o==null?void 0:o.state.data,s=dS(t,i);if(s!==void 0)return T(this,he).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>T(this,he).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,he).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,he);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,he);return _e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_e.batch(()=>T(this,he).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return _e.batch(()=>(T(this,he).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=_e.batch(()=>T(this,he).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(gt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,he).build(this,t);return n.isStaleByTime(Ya(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=rf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=rf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return js.isOnline()?T(this,vn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,he)}getMutationCache(){return T(this,vn)}getDefaultOptions(){return T(this,yn)}setDefaultOptions(e){G(this,yn,e)}setQueryDefaults(e,t){T(this,Wr).set(ti(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Wr).values()],n={};return t.forEach(r=>{ni(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Vr).set(ti(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Vr).values()],n={};return t.forEach(r=>{ni(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,yn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cc(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:{...T(this,yn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,he).clear(),T(this,vn).clear()}},he=new WeakMap,vn=new WeakMap,yn=new WeakMap,Wr=new WeakMap,Vr=new WeakMap,wn=new WeakMap,Hr=new WeakMap,Qr=new WeakMap,bf),_S=w.createContext(void 0),LS=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(_S.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 As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DS(){return Math.random().toString(36).substr(2,8)}function lf(e,t){return{usr:e.state,key:e.key,idx:t}}function qa(e,t,n,r){return n===void 0&&(n=null),As({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sl(t):t,{state:n,key:t&&t.key||r||DS()})}function dg(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 sl(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 zS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=kn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(As({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){l=kn.Pop;let x=c(),g=x==null?null:x-u;u=x,a&&a({action:l,location:m.location,delta:g})}function h(x,g){l=kn.Push;let p=qa(m.location,x,g);u=c()+1;let v=lf(p,u),k=m.createHref(p);try{s.pushState(v,"",k)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(k)}i&&a&&a({action:l,location:m.location,delta:1})}function f(x,g){l=kn.Replace;let p=qa(m.location,x,g);u=c();let v=lf(p,u),k=m.createHref(p);s.replaceState(v,"",k),i&&a&&a({action:l,location:m.location,delta:0})}function S(x){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof x=="string"?x:dg(x);return p=p.replace(/ $/,"%20"),Ve(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let m={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(sf,d),a=x,()=>{o.removeEventListener(sf,d),a=null}},createHref(x){return t(o,x)},createURL:S,encodeLocation(x){let g=S(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(x){return s.go(x)}};return m}var af;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(af||(af={}));function FS(e,t,n){return n===void 0&&(n="/"),$S(e,t,n,!1)}function $S(e,t,n,r){let o=typeof t=="string"?sl(t):t,i=hg(o.pathname||"/",n);if(i==null)return null;let s=fg(e);BS(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("/")&&(Ve(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&&(Ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),fg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:GS(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 pg(i.path))o(i,s,a)}),t}function pg(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=pg(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 BS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:YS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const US=/^:[\w-]+$/,WS=3,VS=2,HS=1,QS=10,KS=-2,uf=e=>e==="*";function GS(e,t){let n=e.split("/"),r=n.length;return n.some(uf)&&(r+=KS),t&&(r+=VS),n.filter(o=>!uf(o)).reduce((o,i)=>o+(US.test(i)?WS:i===""?HS:QS),r)}function YS(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 XS(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:h,isOptional:f}=c;if(h==="*"){let m=l[d]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const S=l[d];return f&&!S?u[h]=void 0:u[h]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function qS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cg(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 ZS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cg(!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 hg(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,"/"),JS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function ek(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mg=["post","put","patch","delete"];new Set(mg);const tk=["get",...mg];new Set(tk);/** * 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 Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},l,x.params),pathname:zr([a,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:zr([a,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&m?w.createElement(ll.Provider,{value:{location:Ms({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:kn.Pop}},m):m}function sk(){let e=hk(),t=ek(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 w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,null)}const lk=w.createElement(sk,null);class ak extends w.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?w.createElement(al.Provider,{value:this.props.routeContext},w.createElement(vg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uk(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(nk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(al.Provider,{value:t},r)}function ck(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||Ve(!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,h)=>{let f,S=!1,m=null,x=null;n&&(f=l&&d.route.id?l[d.route.id]:void 0,m=d.route.errorElement||lk,a&&(u<0&&h===0?(S=!0,x=null):u===h&&(S=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,h+1)),p=()=>{let v;return f?v=m:S?v=x:d.route.Component?v=w.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,w.createElement(uk,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?w.createElement(ak,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var Za=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}(Za||{});function dk(e){let t=w.useContext(rk);return t||Ve(!1),t}function fk(e){let t=w.useContext(al);return t||Ve(!1),t}function pk(e){let t=fk(),n=t.matches[t.matches.length-1];return n.route.id||Ve(!1),n.route.id}function hk(){var e;let t=w.useContext(vg),n=dk(Za.UseRouteError),r=pk(Za.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mk(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ja(e){Ve(!1)}function gk(e){let{basename:t="/",children:n=null,location:r,navigationType:o=kn.Pop,navigator:i,static:s=!1,future:l}=e;fc()&&Ve(!1);let a=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:a,navigator:i,static:s,future:Ms({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=sl(r));let{pathname:c="/",search:d="",hash:h="",state:f=null,key:S="default"}=r,m=w.useMemo(()=>{let x=hg(c,a);return x==null?null:{location:{pathname:x,search:d,hash:h,state:f,key:S},navigationType:o}},[a,c,d,h,f,S,o]);return m==null?null:w.createElement(gg.Provider,{value:u},w.createElement(ll.Provider,{children:n,value:m}))}function vk(e){let{children:t,location:n}=e;return ok(eu(t),n)}new Promise(()=>{});function eu(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let i=[...t,o];if(r.type===w.Fragment){n.push.apply(n,eu(r.props.children,i));return}r.type!==Ja&&Ve(!1),!r.props.index||!r.props.children||Ve(!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=eu(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 yk="6";try{window.__reactRouterVersion=yk}catch{}const wk="startTransition",df=Lf[wk];function xk(e){let{basename:t,children:n,future:r,window:o}=e,i=w.useRef();i.current==null&&(i.current=IS({window:o,v5Compat:!0}));let s=i.current,[l,a]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=w.useCallback(d=>{u&&df?df(()=>a(d)):a(d)},[a,u]);return w.useLayoutEffect(()=>s.listen(c),[s,c]),w.useEffect(()=>mk(r),[r]),w.createElement(gk,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var ff;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ff||(ff={}));var pf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pf||(pf={}));const Sk=hm("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Dn=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?l0:"button";return y.jsx(s,{className:Bn(Sk({variant:t,size:n,className:e})),ref:i,...o})});Dn.displayName="Button";const hf=({duration:e,isActive:t,onComplete:n,position:r="left",isGlobal:o=!1})=>{const[i,s]=w.useState(e),l=r==="right"?"right-6":"left-6",a=i<=300;w.useEffect(()=>{s(e)},[e,t]),w.useEffect(()=>{if(!t||i<=0){i===0&&n&&n();return}const c=setInterval(()=>{s(d=>d<=1?(clearInterval(c),0):d-1)},1e3);return()=>clearInterval(c)},[t,i,n]);const u=c=>{if(c>=60){const d=Math.floor(c/60),h=c%60;return`${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`}return c.toString().padStart(3,"0")};if(o){if(!t&&i===e)return y.jsx("div",{className:`absolute top-6 ${l} z-50`,children:y.jsx("div",{className:"bg-black/60 border border-blue-800/40 rounded-lg px-3 py-1.5 shadow-sm",children:y.jsx("div",{className:"font-mono text-lg font-medium text-blue-800/70 tracking-wider",children:"READY"})})});const c=a?"border-red-900/40":"border-blue-800/40",d=a?"text-red-900":"text-blue-700",h=a?"rgba(127, 29, 29, 0.3)":"rgba(30, 64, 175, 0.3)";return y.jsx("div",{className:`absolute top-6 ${l} z-50`,children:y.jsx("div",{className:`bg-black/60 border ${c} rounded-lg px-3 py-1.5 shadow-sm`,children:y.jsx("div",{className:`font-mono text-lg font-medium ${d} tracking-wider`,style:{textShadow:`0 0 8px ${h}`},children:u(i)})})})}return!t&&i===e&&e>60?y.jsx("div",{className:`absolute top-6 ${l} z-50`,children:y.jsx("div",{className:"bg-black border-2 border-yellow-500/50 rounded-lg px-4 py-2 shadow-lg animate-pulse",children:y.jsx("div",{className:"font-mono text-2xl font-bold text-yellow-400 tracking-wider",style:{textShadow:"0 0 10px rgba(234, 179, 8, 0.5)"},children:"READY"})})}):y.jsx("div",{className:`absolute top-6 ${l} z-50`,children:y.jsx("div",{className:"bg-black border-2 border-green-500/50 rounded-lg px-4 py-2 shadow-lg",children:y.jsx("div",{className:"font-mono text-3xl font-bold text-green-400 tracking-wider",style:{textShadow:"0 0 10px rgba(34, 197, 94, 0.5)"},children:u(i)})})})},kk=({currentSlide:e,totalSlides:t,slideTitles:n,onSlideSelect:r})=>{const[o,i]=w.useState(!1),s=l=>{r(l),i(!1)};return y.jsxs(y.Fragment,{children:[y.jsxs("button",{onClick:()=>i(!o),className:"text-sm text-white font-medium bg-black/30 px-4 py-2 rounded-full backdrop-blur-sm hover:bg-black/50 transition-colors cursor-pointer",children:[e+1," / ",t]}),o&&y.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-4",children:y.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-[90vw] max-w-[600px] h-[40px] overflow-hidden border border-gray-700 flex items-center gap-2 px-3",children:[y.jsx("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide flex-1",children:n.map((l,a)=>y.jsx("button",{onClick:()=>s(a),className:`shrink-0 h-[28px] px-3 rounded text-xs font-medium transition-all ${a===e?"bg-cyan-600 text-white":"bg-gray-800 text-gray-300 hover:bg-gray-700"}`,children:a+1},a))}),y.jsx(Dn,{variant:"ghost",size:"icon",onClick:()=>i(!1),className:"text-white hover:bg-gray-800 h-7 w-7 shrink-0",children:y.jsx(Zs,{className:"h-4 w-4"})})]})})]})},bk=({isOpen:e,onClose:t,isMobile:n=!1})=>{if(w.useEffect(()=>{if(!e)return;const i=s=>{s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),t())};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,t]),!e)return null;const r=[{key:"β†’ or Space",action:"Next slide"},{key:"←",action:"Previous slide"},{key:"F",action:"Toggle fullscreen"},{key:"Escape",action:"Exit fullscreen"},{key:"S",action:"Start global timer"},{key:"R",action:"Reset global timer"},{key:"?",action:"Show/hide shortcuts"}],o=[{key:"Tap Right Half",action:"Next slide/step"},{key:"Tap Left Half",action:"Previous slide/step"},{key:"Swipe Left",action:"Next slide"},{key:"Swipe Right",action:"Previous slide"}];return y.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-8",children:y.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-full max-w-md overflow-hidden border border-gray-700",children:[y.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-700",children:[y.jsx("h2",{className:"text-2xl font-bold text-white",children:n?"Touch Controls":"Keyboard Shortcuts"}),y.jsx(Dn,{variant:"ghost",size:"icon",onClick:t,className:"text-white hover:bg-gray-800",children:y.jsx(Zs,{className:"h-5 w-5"})})]}),y.jsxs("div",{className:"p-6 space-y-3",children:[n&&y.jsx(y.Fragment,{children:o.map((i,s)=>y.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-gray-800 rounded-lg",children:[y.jsx("span",{className:"text-gray-300 text-sm",children:i.action}),y.jsx("kbd",{className:"px-3 py-1.5 text-xs font-semibold text-white bg-gray-700 border border-gray-600 rounded",children:i.key})]},`touch-${s}`))}),!n&&y.jsx(y.Fragment,{children:r.map((i,s)=>y.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-gray-800 rounded-lg",children:[y.jsx("span",{className:"text-gray-300 text-sm",children:i.action}),y.jsx("kbd",{className:"px-3 py-1.5 text-xs font-semibold text-white bg-gray-700 border border-gray-600 rounded",children:i.key})]},`keyboard-${s}`))})]})]})})},Ek=({isOpen:e,onClose:t})=>(w.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),t())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e,t]),e?y.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-8",children:y.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-full max-w-lg overflow-hidden border border-gray-700",children:[y.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-700",children:[y.jsx("h2",{className:"text-2xl font-bold text-white",children:"Credits"}),y.jsx(Dn,{variant:"ghost",size:"icon",onClick:t,className:"text-white hover:bg-gray-800",children:y.jsx(Zs,{className:"h-5 w-5"})})]}),y.jsxs("div",{className:"p-8 space-y-6",children:[y.jsxs("p",{className:"text-white text-lg leading-relaxed",children:["This presentation was prepared by ",y.jsx("span",{className:"font-semibold",children:"Kristijan Lukačin, M.Sc."}),","]}),y.jsx("p",{className:"text-white text-lg",children:"with assistance from:"}),y.jsxs("div",{className:"space-y-3 pl-4",children:[y.jsx("p",{className:"text-cyan-400 text-lg font-semibold",children:"πŸ€– Martin (bot)"}),y.jsx("p",{className:"text-gray-300 text-lg",children:"Claude AI"}),y.jsx("p",{className:"text-gray-300 text-lg",children:"ChatGPT AI"}),y.jsx("p",{className:"text-gray-300 text-lg",children:"Gemini AI"})]})]})]})}):null);function Ck(){const[e,t]=w.useState("desktop");return w.useEffect(()=>{var s;let n;const r=()=>{var S,m;const l="ontouchstart"in window||navigator.maxTouchPoints>0,a=/iPhone|iPad|iPod|Android|webOS|BlackBerry|Windows Phone|Mobile/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,u=(m=(S=window.screen)==null?void 0:S.orientation)==null?void 0:m.type,c=u?u.includes("portrait"):null,d=window.matchMedia("(orientation: portrait)").matches,h=window.innerHeight>window.innerWidth;t(l&&a?(c!==null?c:d!==void 0?d:h)?"portrait-mobile":"landscape-mobile":"desktop")},o=()=>{clearTimeout(n),n=setTimeout(r,100)};r();const i=(s=window.screen)==null?void 0:s.orientation;return i?window.screen.orientation.addEventListener("change",o):window.addEventListener("orientationchange",o),window.addEventListener("resize",o),()=>{clearTimeout(n),i?window.screen.orientation.removeEventListener("change",o):window.removeEventListener("orientationchange",o),window.removeEventListener("resize",o)}},[]),e}const Pk=()=>{const e=Ck(),[t,n]=w.useState(()=>localStorage.getItem("forcedDeviceMode"));return w.useEffect(()=>{const i=s=>{s.key==="forcedDeviceMode"&&n(s.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),{deviceMode:t?t==="mobile"?"portrait-mobile":"desktop":e,forcedMode:t,setForcedMode:i=>{i===null?localStorage.removeItem("forcedDeviceMode"):localStorage.setItem("forcedDeviceMode",i),n(i)},isForced:t!==null}},Tk=({children:e,slideDurations:t,slideImages:n,slideTitles:r=[]})=>{const[o,i]=w.useState(0),[s,l]=w.useState(0),[a,u]=w.useState(!1),[c,d]=w.useState(0),[h,f]=w.useState(!1),[S,m]=w.useState(!1),[x,g]=w.useState(!1),p=Array.isArray(e)?e.length:1,v=15,{deviceMode:k,forcedMode:b,setForcedMode:E,isForced:C}=Pk(),R=k==="portrait-mobile"||k==="landscape-mobile",j=k==="portrait-mobile",[O,B]=w.useState(null),I=w.useRef(0),Q=w.useRef(0),_=w.useRef(null),q=F=>{if(!R)return;const z=F.target;if(z.tagName==="A"||z.closest("a")||z.closest("button")||z.closest('[role="dialog"]')||z.closest("aside")||z.closest("canvas")||z.closest("[data-animated-slide]"))return;const J=F.clientX,W=window.innerWidth;J(t==null?void 0:t[o])??v;w.useEffect(()=>{if(!n)return;(()=>{for(let z=1;z<=2;z++){const J=o+z;if(J{const Tt=new Image;Tt.src=et})}}})()},[o,n]),w.useEffect(()=>{const F=()=>{var et;const W=(et=_.current)==null?void 0:et.querySelector("[data-speaker-notes]");B(W?W.textContent:null)};F();const z=new MutationObserver(F),J=_.current;return J&&z.observe(J,{childList:!0,subtree:!0,characterData:!0}),()=>z.disconnect()},[o,e]);const V=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()};w.useEffect(()=>{const F=z=>{z.key==="ArrowRight"||z.key===" "?(z.preventDefault(),P()):z.key==="ArrowLeft"?(z.preventDefault(),N()):z.key==="f"||z.key==="F"?(z.preventDefault(),V()):z.key==="Escape"&&document.fullscreenElement?(z.preventDefault(),document.exitFullscreen()):z.key==="s"||z.key==="S"?(z.preventDefault(),u(!0)):z.key==="r"||z.key==="R"?(z.preventDefault(),d(J=>J+1),u(!1)):z.key==="?"&&(z.preventDefault(),m(J=>!J))};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[o]);const P=()=>{f(!0),i(F=>{const z=Math.min(F+1,p-1);return z!==F&&l(J=>J+1),z})},N=()=>{i(F=>{const z=Math.max(F-1,0);return z!==F&&l(J=>J+1),z})},L=F=>{F>=0&&Fz+1))},H=F=>{R&&(I.current=F.touches[0].clientX)},$=F=>{R&&(Q.current=F.touches[0].clientX)},X=F=>{if(!R)return;const z=50,J=I.current-Q.current;if(Math.abs(J)>z){const W=F.target;if(W.closest("a")||W.closest("button")||W.closest("canvas")||W.closest("[data-animated-slide]")||W.closest("[data-scrollable]")){I.current=0,Q.current=0;return}J>0?P():N()}I.current=0,Q.current=0};return y.jsxs("div",{ref:_,className:"fixed inset-0 bg-black flex items-center justify-center overflow-hidden",onTouchStart:H,onTouchMove:$,onTouchEnd:X,children:[!j&&y.jsx("div",{className:"absolute top-6 right-6 z-50",children:y.jsx(hf,{duration:1800,isActive:a,position:"right",isGlobal:!0},c)}),y.jsx("div",{className:`w-full h-full flex justify-center ${j?"items-start pt-[10px]":"items-center"}`,children:y.jsxs("div",{className:`w-full relative ${j?"h-[60vh]":k==="landscape-mobile"?"h-full":"h-full max-w-[177.78vh] max-h-[56.25vw]"}`,children:[!j&&y.jsx(hf,{duration:U(),isActive:o>0||h},s),y.jsx("div",{className:"w-full h-full relative [&_[data-speaker-notes]]:hidden",onClick:q,children:Array.isArray(e)?e[o]:e})]})}),O&&y.jsx("div",{className:`absolute left-0 right-0 z-40 ${j?"bottom-16 px-4":"bottom-20 px-8"}`,children:y.jsx("aside",{className:`text-center text-white opacity-90 bg-black/30 backdrop-blur-sm rounded-lg py-2 px-3 ${j?"text-xs":"text-sm"}`,children:O})}),y.jsxs("div",{className:`absolute z-50 flex items-center ${j?"bottom-4 left-0 right-0 justify-between px-4":"bottom-8 left-0 right-0 justify-between px-8"}`,children:[y.jsx("button",{onClick:()=>g(!0),className:`text-white/70 hover:text-white underline underline-offset-2 transition-colors ${j?"text-xs":"text-sm"}`,children:"Made by"}),y.jsxs("div",{className:`flex items-center ${j?"gap-4":"gap-8"}`,children:[y.jsx(Dn,{variant:"ghost",size:"icon",onClick:N,disabled:o===0,className:`smooth-transition bg-transparent border-0 hover:bg-transparent text-white ${j?"h-8 w-8":""}`,children:y.jsx(ow,{className:j?"h-3 w-3":"h-4 w-4"})}),y.jsx(kk,{currentSlide:o,totalSlides:p,slideTitles:r,onSlideSelect:L}),y.jsx(Dn,{variant:"ghost",size:"icon",onClick:P,disabled:o===p-1,className:`smooth-transition bg-transparent border-0 hover:bg-transparent text-white ${j?"h-8 w-8":""}`,children:y.jsx(iw,{className:j?"h-3 w-3":"h-4 w-4"})})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("button",{onClick:()=>{E(b===null?R?"desktop":"mobile":b==="mobile"?"desktop":"mobile")},className:`text-white bg-black/30 hover:bg-black/50 backdrop-blur-sm rounded-full px-3 py-1.5 transition-colors ${j?"text-[10px]":"text-xs"}`,"aria-label":"Toggle device mode",children:[R?"DESKTOP":"MOBILE",C&&" βœ“"]}),y.jsx("button",{onClick:()=>m(!0),className:`text-white bg-black/30 hover:bg-black/50 backdrop-blur-sm rounded-full flex items-center justify-center transition-colors ${j?"w-8 h-8":"w-10 h-10"}`,"aria-label":"Show keyboard shortcuts",children:y.jsx(gm,{className:j?"h-4 w-4":"h-5 w-5"})})]})]}),y.jsx(bk,{isOpen:S,onClose:()=>m(!1),isMobile:R}),y.jsx(Ek,{isOpen:x,onClose:()=>g(!1)})]})},Nk=({variant:e="light",className:t=""})=>{const n=e==="dark"?"/ws-agency-logo-dark.png":"/ws-agency-logo-dark-bg.png";return y.jsx("a",{href:"https://ws.agency",target:"_blank",rel:"noopener noreferrer",className:`absolute bottom-12 right-12 ${t}`,children:y.jsx("img",{src:n,alt:"WS.Agency Logo",className:"h-auto hover:opacity-80 transition-opacity cursor-pointer",style:{width:"105px"}})})},ao=({children:e,className:t="",showLogo:n=!0,logoVariant:r="light",backgroundImage:o})=>y.jsxs("div",{className:`w-full h-full p-4 md:p-12 flex flex-col font-body relative ${t}`,children:[o&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),y.jsx("div",{className:"absolute inset-0 -z-10 bg-black/80"})]}),!o&&y.jsx("div",{className:"absolute inset-0 -z-10 bg-slide-bg"}),n&&y.jsx(Nk,{variant:r,className:"z-30 hidden md:block"}),e]}),Rk=({title:e,subtitle:t,author:n,speakerNotes:r})=>{const o=w.useRef(null),i=w.useRef(),s=w.useRef([]);return w.useEffect(()=>{const l=o.current;if(!l)return;const a=l.getContext("2d");if(!a)return;const u=()=>{l.width=window.innerWidth,l.height=window.innerHeight};u(),window.addEventListener("resize",u);const c=50,d=[];for(let m=0;m{if(!(!a||!l)){if(a.fillStyle="rgba(15, 23, 42, 0.1)",a.fillRect(0,0,l.width,l.height),f+=.02,d.forEach((m,x)=>{m.x+=m.vx,m.y+=m.vy,(m.x<0||m.x>l.width)&&(m.vx*=-1),(m.y<0||m.y>l.height)&&(m.vy*=-1),m.x=Math.max(0,Math.min(l.width,m.x)),m.y=Math.max(0,Math.min(l.height,m.y)),d.forEach((k,b)=>{if(x>=b)return;const E=m.x-k.x,C=m.y-k.y,R=Math.sqrt(E*E+C*C);if(R{window.removeEventListener("resize",u),i.current&&cancelAnimationFrame(i.current)}},[]),y.jsxs(ao,{className:"justify-center items-center text-center relative overflow-hidden",children:[y.jsx("canvas",{ref:o,className:"absolute inset-0 z-0",style:{background:"#0f172a"}}),y.jsxs("div",{className:"relative z-10 space-y-4 md:space-y-6 px-4 md:px-12 max-w-6xl mx-auto",children:[y.jsx("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-heading font-bold text-white leading-tight drop-shadow-lg",children:e}),y.jsx("div",{className:"w-24 md:w-32 h-1 bg-gradient-to-r from-cyan-400 via-cyan-300 to-cyan-400 mx-auto animate-pulse"}),t&&y.jsx("p",{className:"text-xl md:text-3xl text-cyan-100/90 max-w-4xl mx-auto font-body drop-shadow-md",children:t}),n&&y.jsx("p",{className:"text-base md:text-xl text-white/70 mt-8 md:mt-12 font-body",children:n})]}),r&&y.jsx("aside",{className:"absolute bottom-0 left-0 right-0 px-4 md:px-12 pb-2 text-center text-white text-xs md:text-sm opacity-90","data-speaker-notes":!0,children:r})]})},jk=({title:e,items:t,speakerNotes:n,note:r,backgroundImage:o})=>y.jsxs(ao,{className:"justify-between items-start",backgroundImage:o,children:[y.jsxs("div",{className:"max-w-4xl mx-auto w-full space-y-4 md:space-y-12",children:[y.jsx("h2",{className:"text-2xl md:text-5xl font-heading font-bold text-slide-foreground mb-6 md:mb-16",children:e}),y.jsx("div",{className:"space-y-4 md:space-y-8",children:t.map((i,s)=>{const l=i.icon;return y.jsxs("div",{className:"flex items-center gap-3 md:gap-6 group hover:translate-x-2 transition-transform duration-300",children:[y.jsx("div",{className:"flex-shrink-0 w-10 h-10 md:w-16 md:h-16 rounded-xl bg-slide-accent/10 flex items-center justify-center border-2 border-slide-accent/20 group-hover:border-slide-accent/40 transition-colors",children:y.jsx(l,{className:"w-5 h-5 md:w-8 md:h-8 text-slide-accent",strokeWidth:2})}),i.link?y.jsx("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"text-base md:text-3xl text-slide-foreground font-body leading-relaxed hover:text-slide-accent transition-colors underline",children:i.text}):y.jsx("p",{className:"text-base md:text-3xl text-slide-foreground font-body leading-relaxed",children:i.text})]},s)})})]}),n&&y.jsx("aside",{className:"absolute bottom-0 left-0 right-0 px-4 md:px-12 pb-2 text-center text-white text-xs md:text-sm opacity-90","data-speaker-notes":!0,children:n})]}),Ak=()=>{const e=[{version:"10.0",date:"Dec 2022",highlight:"Modern foundation"},{version:"10.1",date:"Jun 2023",highlight:"Recipes introduced"},{version:"10.2",date:"Dec 2023",highlight:"Performance boost"},{version:"10.3",date:"Jun 2024",highlight:"Enhanced UX"},{version:"11.0",date:"Aug 2024",highlight:"Starshot & Canvas"},{version:"11.1",date:"Dec 2024",highlight:"Enhanced Recipes"},{version:"11.2",date:"Jun 2025",highlight:"AI Integration",isCurrent:!0},{version:"11.3",date:"Dec 2025",highlight:"Advanced Canvas",isFuture:!0},{version:"12.0",date:"Jun 2026",highlight:"Next Generation",isFuture:!0}];return y.jsx("div",{className:"w-full mt-6 md:mt-10 px-2 md:px-4 overflow-x-auto","data-scrollable":!0,children:y.jsxs("div",{className:"relative min-w-max md:min-w-0 mx-auto max-w-6xl",children:[y.jsx("div",{className:"hidden md:block absolute top-6 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-900 via-cyan-500 to-cyan-400/50 animate-fade-in"}),y.jsx("div",{className:"flex md:grid md:grid-cols-9 gap-3 md:gap-2 items-start",children:e.map((t,n)=>y.jsxs("div",{className:`relative flex flex-col items-center z-10 ${t.isFuture?"opacity-60":"opacity-100"}`,style:{animation:`fade-in 0.6s ease-out ${n*.15}s both`},children:[y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:`w-3 h-3 md:w-4 md:h-4 rounded-full border-2 md:border-3 border-slate-900 shadow-lg ${t.isFuture?"bg-cyan-600/50 border-dashed shadow-cyan-600/30":"bg-cyan-400 shadow-cyan-400/50"}`}),t.isCurrent&&y.jsx("div",{className:"absolute inset-0 rounded-full bg-cyan-400 animate-ping opacity-75"})]}),y.jsxs("div",{className:"mt-2 md:mt-3 text-center min-w-[60px] md:min-w-[80px]",children:[y.jsx("p",{className:`text-xs md:text-sm font-bold ${t.isFuture?"text-cyan-600":"text-cyan-400"}`,children:t.version}),y.jsx("p",{className:"text-[10px] md:text-xs text-slate-400 mt-0.5 md:mt-1",children:t.date}),y.jsx("p",{className:"text-[10px] md:text-xs text-slate-300 mt-0.5 md:mt-1 leading-tight",children:t.highlight})]})]},t.version))}),y.jsx("div",{className:"mt-4 md:mt-6 text-center",children:y.jsxs("p",{className:"text-xs md:text-sm text-slate-400 italic",children:[y.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-400 mr-1 align-middle"}),"Released",y.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-600/50 border border-dashed border-slate-600 ml-3 mr-1 align-middle"}),"Planned Roadmap"]})})]})})},Fi=({title:e,bullets:t,speakerNotes:n,backgroundImage:r,images:o,imagePosition:i="bottom",note:s,noteLink:l,linkButton:a,linkButtons:u,showDrupalTimeline:c})=>y.jsxs(ao,{className:"justify-between items-start",backgroundImage:r,children:[y.jsxs("div",{className:"max-w-5xl mx-auto w-full space-y-4 md:space-y-12",children:[y.jsx("h2",{className:"text-2xl md:text-5xl font-heading font-bold text-slide-foreground",children:e}),y.jsx("div",{className:"space-y-4 md:space-y-8",children:t.map((d,h)=>y.jsxs("div",{className:"flex items-start gap-3 md:gap-5 group hover:translate-x-2 transition-transform duration-300",children:[y.jsx("div",{className:"flex-shrink-0 w-3 h-3 md:w-4 md:h-4 rounded-full bg-cyan-400 mt-2 md:mt-3"}),y.jsx("p",{className:"text-xl md:text-4xl text-slide-foreground font-body leading-relaxed",children:d})]},h))}),c&&y.jsx(Ak,{}),a&&y.jsx("div",{className:"flex justify-center mt-4 md:mt-8",children:y.jsxs(Dn,{onClick:()=>window.open(a.url,"_blank"),className:"text-sm md:text-lg px-4 py-4 md:px-6 md:py-6 gap-2",size:"lg",children:[y.jsx(Id,{className:"w-4 h-4 md:w-5 md:h-5"}),a.text]})}),u&&u.length>0&&y.jsx("div",{className:"flex justify-center gap-4 mt-4 md:mt-8 flex-wrap",children:u.map((d,h)=>y.jsxs(Dn,{onClick:()=>window.open(d.url,"_blank"),className:"text-sm md:text-lg px-4 py-4 md:px-6 md:py-6 gap-2",size:"lg",children:[y.jsx(Id,{className:"w-4 h-4 md:w-5 md:h-5"}),d.text]},h))}),o&&o.length>0&&y.jsx("div",{className:"mt-4 md:mt-8 flex gap-2 md:gap-4 justify-center flex-wrap",children:o.map((d,h)=>y.jsx("img",{src:d,alt:"",className:"max-h-[256px] md:max-h-[512px] rounded-lg object-contain"},h))})]}),n&&y.jsx("aside",{className:"absolute bottom-0 left-0 right-0 px-4 md:px-12 pb-2 text-center text-white text-xs md:text-sm opacity-90","data-speaker-notes":!0,children:n})]}),ce=({statement:e,subtitle:t,icon:n,speakerNotes:r,backgroundImage:o})=>y.jsxs(ao,{className:"justify-center items-center",backgroundImage:o,children:[y.jsxs("div",{className:"max-w-5xl mx-auto text-center space-y-4 md:space-y-8",children:[n&&y.jsx("div",{className:"flex justify-center mb-4 md:mb-8",children:y.jsx("img",{src:n,alt:"",className:"w-16 h-16 md:w-32 md:h-32 object-contain"})}),y.jsx("h2",{className:"text-3xl md:text-6xl font-heading font-bold text-slide-foreground leading-tight px-4 md:px-12",children:e}),t&&y.jsx("p",{className:"text-lg md:text-2xl text-slide-muted font-body mt-4 md:mt-6",children:t}),y.jsx("div",{className:"w-16 md:w-32 h-1 bg-cyan-400 mx-auto mt-4 md:mt-8"})]}),r&&y.jsx("aside",{className:"absolute bottom-0 left-0 right-0 px-4 md:px-12 pb-2 text-center text-white text-xs md:text-sm opacity-90","data-speaker-notes":!0,children:r})]}),Mk=({title:e,subtitle:t,speakerNotes:n,backgroundImage:r})=>y.jsxs(ao,{className:"justify-center items-center",backgroundImage:r,children:[y.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-4 md:space-y-8",children:[y.jsx("h2",{className:"text-4xl md:text-7xl font-heading font-bold text-slide-foreground",children:e}),y.jsx("div",{className:"w-16 md:w-32 h-1 bg-cyan-400 mx-auto"}),y.jsx("p",{className:"text-xl md:text-3xl text-slide-muted font-body leading-relaxed",children:t})]}),n&&y.jsx("aside",{className:"absolute bottom-0 left-0 right-0 px-4 md:px-12 pb-2 text-center text-white text-xs md:text-sm opacity-90","data-speaker-notes":!0,children:n})]}),mf=({title:e,items:t=[],images:n=[],image:r,imageAlt:o,backgroundImage:i,speakerNotes:s,itemNotes:l=[]})=>{const[a,u]=w.useState(0),[c,d]=w.useState(!1),[h,f]=w.useState("none"),[S,m]=w.useState(!1),x=n.length>0?n.length:t.length+(r?1:0);w.useEffect(()=>{const E=()=>{const C=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||window.innerWidth<=768;m(C)};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]),w.useEffect(()=>{const E=C=>{c||(C.key==="ArrowRight"||C.key===" "?a0&&(C.preventDefault(),C.stopPropagation(),p()))};return window.addEventListener("keydown",E,!0),()=>window.removeEventListener("keydown",E,!0)},[a,c,x]);const g=()=>{a===0?(u(1),f("slideIn"),d(!0),setTimeout(()=>{f("none"),d(!1)},500)):a{u(a+1),f("slideIn"),setTimeout(()=>{f("none"),d(!1)},500)},500))},p=()=>{a>0&&(f("slideOut"),d(!0),setTimeout(()=>{u(a-1),f("slideIn"),setTimeout(()=>{f("none"),d(!1)},500)},500))},v=()=>a===0?null:n.length>0&&a<=n.length?y.jsx("img",{src:n[a-1],alt:`Slide ${a}`,className:"max-w-[90vw] md:max-w-[61.6rem] max-h-[50vh] md:max-h-[70vh] w-auto object-contain mx-auto"}):a<=t.length?y.jsx("div",{className:"text-3xl md:text-6xl lg:text-7xl font-bold text-white text-center px-4",children:t[a-1]}):r&&a===t.length+1?y.jsx("img",{src:r,alt:o,className:"max-w-[90vw] md:max-w-[61.6rem] max-h-[50vh] md:max-h-[70vh] w-auto object-contain mx-auto"}):null,k=()=>h==="slideIn"?"animate-slide-in-from-right":h==="slideOut"?"animate-slide-out-to-left":"",b=E=>{if(!S||c)return;const C=E.clientX,R=window.innerWidth,j=C0&&p():a0&&y.jsx("div",{className:k(),children:v()},a),S&&h==="none"&&y.jsxs("div",{className:"fixed bottom-20 left-0 right-0 flex justify-between px-8 text-center pointer-events-none z-50",children:[a>0&&y.jsx("p",{className:"text-xs md:text-sm text-cyan-400/70 animate-pulse",children:"← Tap"}),a0&&l[a-1]?l[a-1]:s||""})]})},Ok=()=>{const e=["Title","Agenda","AI Context","AI Impact","WS Vision 2026","Goals 2026","How We Work","AI-Assisted Dev","Vibe Coding","Documentation","Quality","R&D","Communication","Chat First","JIRA","Weekly Syncs","Document","Open Door","Teams","Small Teams","AI for Everyone","Reviews","Deliver Complete","Just Do It","AI Agents","Brain + AI","Active Clients","Clients Detail","Pipeline","Internal Products","Vybrid","Q&A"];return y.jsxs(Tk,{slideTitles:e,children:[y.jsx(Rk,{title:"WS in 2026",subtitle:"Embracing the AI Era",author:"Kristijan Lukačin Β· Web Solutions",speakerNotes:"Welcome everyone. Today we'll talk about where WS is heading in 2026 and how AI is reshaping our industry."}),y.jsx(jk,{title:"Agenda",items:[{icon:nw,text:"The AI Context"},{icon:cw,text:"WS Vision & Goals 2026"},{icon:aw,text:"How We Work & Communicate"},{icon:rw,text:"Active Clients"},{icon:uw,text:"Pipeline Projects"},{icon:lw,text:"Internal Products"},{icon:sw,text:"Vybrid & US Expansion"},{icon:gm,text:"Q&A"}],speakerNotes:"Here's what we'll cover today. About 45-60 minutes total."}),y.jsx(ce,{statement:"AI is not coming. It's already here.",subtitle:"2026 is the year of transformation",speakerNotes:"This isn't about the future anymore. AI is already changing how we work, how our clients work, and what they expect from us."}),y.jsx(mf,{title:"What This Means for Us",items:["⚑ Faster development cycles β€” AI accelerates everything","πŸ“ˆ Higher client expectations β€” they see what's possible","πŸƒ New competition β€” AI-native agencies are emerging","πŸ’‘ New opportunities β€” clients need AI integration expertise","🧠 Skills evolution β€” we must adapt or become obsolete"],itemNotes:["AI accelerates everything β€” what used to take weeks now takes days.","They see what's possible and they ask for the possible AND the impossible.","AI-native agencies are popping up everywhere β€” lean, fast, hungry.","Clients need help integrating AI β€” this is our chance to lead.","The skills that got us here won't get us there. Adapt or become obsolete."],speakerNotes:"These are real changes happening now. Use arrows to reveal each point. Be honest about challenges and opportunities."}),y.jsx(ce,{statement:"We become an AI-augmented agency",subtitle:"Not replaced by AI β€” enhanced by it",speakerNotes:"Our vision is clear: we use AI as a tool to deliver better, faster results. Our expertise + AI capabilities = unbeatable combination."}),y.jsx(mf,{title:"Our Goals for 2026",items:["πŸ”§ Integrate AI into every workflow AND every process","πŸš€ Launch multiple apps β€” small window of opportunity to capture niche markets","πŸ’‘ Proactive client ideas β€” AI-powered research & suggestions","πŸ“š Upskill entire team on AI tools and practices","πŸ‡ΊπŸ‡Έ Expand to US market through Vybrid"],speakerNotes:"1) AI integration must be done smartly and wisely β€” not just adding AI for the sake of it. 2) Window of opportunity is NOW β€” maybe 1-2 years max. 3) AI can research client industries and suggest improvements proactively. 4) Everyone needs to level up. 5) Vybrid is our US bridge."}),y.jsx(ce,{statement:"How We Work in 2026",subtitle:"5 key principles",speakerNotes:"Let me walk you through the 5 principles that define how we work now."}),y.jsx(ce,{statement:"πŸ€– AI-Assisted Development",subtitle:"Cursor, Claude, Copilot β€” these are now standard tools, not optional extras",speakerNotes:"If you're not using AI assistance, you're working at half speed. These tools are expected, not nice-to-have."}),y.jsx(ce,{statement:"⚑ Vibe Coding",subtitle:"Describe what you want β†’ AI builds it β†’ You refine",speakerNotes:"Vibe Coding is rapid prototyping with AI. You guide, AI executes, you iterate. Especially powerful for MVPs and internal tools."}),y.jsx(ce,{statement:"πŸ“ Documentation First",subtitle:"AI needs context to help effectively β€” good docs = better AI assistance",speakerNotes:"The better your documentation, the better AI can help you. This is now a practical requirement, not just best practice."}),y.jsx(ce,{statement:"βœ… Quality Over Speed",subtitle:"AI helps us go fast β€” we ensure it's done right",speakerNotes:"AI makes us faster, but speed without quality is worthless. We're the quality gatekeepers."}),y.jsx(ce,{statement:"πŸ”¬ R&D",subtitle:"Continuous learning & block time for research",speakerNotes:"We're discontinuing educational projects. Instead, everyone will use R&D projects for free/research time. Important: for hourly contractors, R&D time must be approved first!"}),y.jsx(ce,{statement:"Communication in 2026",subtitle:"5 rules for staying connected",speakerNotes:"As we work faster with AI, communication becomes even more critical. Here are our 5 rules."}),y.jsx(ce,{statement:"πŸ’¬ Chat First",subtitle:"We're replacing Slack with Mattermost β€” self-hosted, top privacy, same workflow",speakerNotes:"We're moving from Slack to Mattermost. Self-hosted, full control over data, top privacy. Same channels, same workflow β€” better ownership."}),y.jsx(ce,{statement:"πŸ“‹ JIRA for Everything",subtitle:"All project tracking β€” no exceptions (replacement candidate: Redmine)",speakerNotes:"If it's not in JIRA, it doesn't exist. This is how we track work, progress, and accountability. Evaluating Redmine as alternative."}),y.jsx(ce,{statement:"πŸ—“οΈ Weekly Team Syncs",subtitle:"Stay aligned on priorities and blockers",speakerNotes:"Regular syncs prevent drift. Short, focused, actionable. Everyone knows what's happening."}),y.jsx(ce,{statement:"πŸ“„ Document Decisions",subtitle:"Not just in chat β€” use wiki.wsagency.io",speakerNotes:"Chat is ephemeral. Important decisions need to be documented on our wiki so they're findable later. wiki.wsagency.io is our knowledge base."}),y.jsx(ce,{statement:"πŸšͺ Open Door Policy",subtitle:"Questions are welcome β€” always",speakerNotes:"No question is stupid. Ask early, ask often. We're a team."}),y.jsx(ce,{statement:"Autonomous Teams",subtitle:"Small, empowered, AI-augmented",speakerNotes:"This is how we're restructuring to move faster and deliver better."}),y.jsx(ce,{statement:"πŸ‘₯ 2-3 Person Teams",subtitle:"Full-stack mindset β€” everyone owns the whole feature",speakerNotes:"Small autonomous teams. Everyone should be able to handle frontend, backend, deployment. Your expertise is your strength, but don't be limited by it."}),y.jsx(ce,{statement:"πŸ€– AI for Everyone",subtitle:"Developers, POs, QA β€” everyone utilizes AI in their work",speakerNotes:"This isn't just for devs. Product owners use AI for research and specs. QA uses AI for test cases. Everyone levels up."}),y.jsx(ce,{statement:"🎀 Review Sessions",subtitle:"Teams present what they built β€” spread knowledge fast",speakerNotes:"More frequent demos and reviews. Show what you built, how you solved problems. Ideas and knowledge spread faster this way."}),y.jsx(ce,{statement:"πŸ“¦ Deliver Complete",subtitle:"Build β†’ Test β†’ Document β†’ Verify β†’ Hand to PO",speakerNotes:"Teams deliver complete features. Tested, documented, verified working. Then PO reviews and presents to client. No half-done handoffs."}),y.jsx(ce,{statement:"⚑ Just Do It",subtitle:"See an improvement? Make it. Separate PR. Show PO later.",speakerNotes:"If you see something that can be improved, don't wait for approval. Make it in a separate PR. Show PO when done β€” they decide if client sees it. NO BLAME. Faster to do than to ask and wait."}),y.jsx(ce,{statement:"πŸš€ Use AI Agents",subtitle:"If AI can do it β€” just run it. Be proactive!",speakerNotes:"If something takes human time, check first. But if you can spin up AI agents to build something β€” just do it proactively. Don't wait for permission."}),y.jsx(ce,{statement:"🧠 Brain ON + AI",subtitle:"Higher responsibility. Top quality. Ask AI, but think.",speakerNotes:"Greater autonomy means greater responsibility. Quality must be top. Use AI to help, but keep your brain engaged. If unsure β€” ask AI first, then ask humans."}),y.jsx(ce,{statement:"10 Active Clients",subtitle:"Strong foundation to build upon",speakerNotes:"Let's look at our current client portfolio. These relationships are our foundation."}),y.jsx(Fi,{title:"Our Clients",bullets:["Agilent β€” Marketing automation","Novartis β€” Content editing (HR/SI/SRB)","HNS β€” Hrvatski nogometni savez (Web/Mobile/Ticketing)","TSN β€” The Sporting News","Innovation Roundtable","RBAC","HZZ β€” Hrvatska za Ε½ivot","Best in Parking (BMOVE)","HCPI β€” Potresno inΕΎenjerstvo","Maslinaresort"],speakerNotes:"Each of these clients trusts us with their digital presence. We need to continue delivering excellence."}),y.jsx(Fi,{title:"Pipeline Projects",bullets:["Chairlink β€” furniture industry platform","StartLegal β€” legal tech startup (with Vybrid)"],note:"Active proposals in progress",speakerNotes:"These are the projects we're working to close. Both represent exciting new opportunities."}),y.jsx(Fi,{title:"Internal Products",bullets:["TalkyTo β€” conversational AI platform","Nebion β€” [description needed]","Engage.HR (CHRIS) β€” HR leave management system","Workspace-sync β€” [description needed]"],speakerNotes:"These are our own products. They represent our future as a product company, not just a service agency."}),y.jsx(Fi,{title:"Vybrid β€” US Expansion",bullets:["US-based company β€” same ownership as WS","Focus: Vibe Coding methodology","Partner: Richard Rodgers (StartLegal founder)","Goal: Access US market, bring expertise back to WS","Synergy: WS execution + Vybrid innovation"],speakerNotes:"Vybrid is our bridge to the US market. It's an exciting venture that will benefit everyone at WS."}),y.jsx(Mk,{title:"Questions?",subtitle:"Let's discuss",speakerNotes:"Open the floor for questions. Be honest about challenges, optimistic about opportunities."})]})},_k=()=>{const e=yg();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:y.jsxs("div",{className:"text-center",children:[y.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),y.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),y.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},Lk=new OS,Ik=()=>y.jsx(LS,{client:Lk,children:y.jsxs(uS,{children:[y.jsx(Qw,{}),y.jsx(Ex,{}),y.jsx(xk,{children:y.jsxs(vk,{children:[y.jsx(Ja,{path:"/",element:y.jsx(Ok,{})}),y.jsx(Ja,{path:"*",element:y.jsx(_k,{})})]})})]})});Fh(document.getElementById("root")).render(y.jsx(Ik,{}));