var Uc=e=>{throw TypeError(e)};var La=(e,t,n)=>t.has(e)||Uc("Cannot "+n);var N=(e,t,n)=>(La(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Uc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,r)=>(La(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Re=(e,t,n)=>(La(e,t,"access private method"),n);var Ms=(e,t,n,r)=>({set _(o){K(e,t,o,n)},get _(){return N(e,t,r)}});function h0(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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qf={exports:{}},qi={},Zf={exports:{}},J={};/** * @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 ws=Symbol.for("react.element"),m0=Symbol.for("react.portal"),g0=Symbol.for("react.fragment"),v0=Symbol.for("react.strict_mode"),y0=Symbol.for("react.profiler"),x0=Symbol.for("react.provider"),w0=Symbol.for("react.context"),b0=Symbol.for("react.forward_ref"),S0=Symbol.for("react.suspense"),k0=Symbol.for("react.memo"),E0=Symbol.for("react.lazy"),Vc=Symbol.iterator;function C0(e){return e===null||typeof e!="object"?null:(e=Vc&&e[Vc]||e["@@iterator"],typeof e=="function"?e:null)}var Jf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ep=Object.assign,tp={};function yo(e,t,n){this.props=e,this.context=t,this.refs=tp,this.updater=n||Jf}yo.prototype.isReactComponent={};yo.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")};yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function np(){}np.prototype=yo.prototype;function Su(e,t,n){this.props=e,this.context=t,this.refs=tp,this.updater=n||Jf}var ku=Su.prototype=new np;ku.constructor=Su;ep(ku,yo.prototype);ku.isPureReactComponent=!0;var Wc=Array.isArray,rp=Object.prototype.hasOwnProperty,Eu={current:null},op={key:!0,ref:!0,__self:!0,__source:!0};function sp(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)rp.call(t,r)&&!op.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=T[H];if(0>>1;Ho(F,I))teo(Y,F)?(T[H]=Y,T[te]=I,H=te):(T[H]=F,T[$]=I,H=$);else if(teo(Y,I))T[H]=Y,T[te]=I,H=te;else break e}}return j}function o(T,j){var I=T.sortIndex-j.sortIndex;return I!==0?I:T.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,p=null,h=3,f=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(T){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=T)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function S(T){if(v=!1,y(T),!b)if(n(l)!==null)b=!0,V(k);else{var j=n(u);j!==null&&W(S,j.startTime-T)}}function k(T,j){b=!1,v&&(v=!1,g(R),R=-1),f=!0;var I=h;try{for(y(j),p=n(l);p!==null&&(!(p.expirationTime>j)||T&&!D());){var H=p.callback;if(typeof H=="function"){p.callback=null,h=p.priorityLevel;var U=H(p.expirationTime<=j);j=e.unstable_now(),typeof U=="function"?p.callback=U:p===n(l)&&r(l),y(j)}else r(l);p=n(l)}if(p!==null)var q=!0;else{var $=n(u);$!==null&&W(S,$.startTime-j),q=!1}return q}finally{p=null,h=I,f=!1}}var E=!1,C=null,R=-1,A=5,P=-1;function D(){return!(e.unstable_now()-PT||125H?(T.sortIndex=I,t(u,T),n(l)===null&&T===n(u)&&(v?(g(R),R=-1):v=!0,W(S,I-H))):(T.sortIndex=U,t(l,T),b||f||(b=!0,V(k))),T},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(T){var j=h;return function(){var I=h;h=j;try{return T.apply(this,arguments)}finally{h=I}}}})(dp);cp.exports=dp;var D0=cp.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 I0=w,nt=D0;function M(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"),hl=Object.prototype.hasOwnProperty,z0=/^[: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]*$/,Qc={},Kc={};function F0(e){return hl.call(Kc,e)?!0:hl.call(Qc,e)?!1:z0.test(e)?Kc[e]=!0:(Qc[e]=!0,!1)}function $0(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 B0(e,t,n,r){if(t===null||typeof t>"u"||$0(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 $e(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new $e(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new $e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new $e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new $e(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){Ne[e]=new $e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new $e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new $e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new $e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new $e(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pu=/[\-:]([a-z])/g;function Tu(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(Pu,Tu);Ne[t]=new $e(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(Pu,Tu);Ne[t]=new $e(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(Pu,Tu);Ne[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nu(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Da=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Io(e):""}function U0(e){switch(e.tag){case 5:return Io(e.type);case 16:return Io("Lazy");case 13:return Io("Suspense");case 19:return Io("SuspenseList");case 0:case 2:case 15:return e=Ia(e.type,!1),e;case 11:return e=Ia(e.type.render,!1),e;case 1:return e=Ia(e.type,!0),e;default:return""}}function yl(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 _r:return"Fragment";case Lr:return"Portal";case ml:return"Profiler";case Ru:return"StrictMode";case gl:return"Suspense";case vl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hp:return(e.displayName||"Context")+".Consumer";case pp:return(e._context.displayName||"Context")+".Provider";case ju:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:yl(e.type)||"Memo";case En:t=e._payload,e=e._init;try{return yl(e(t))}catch{}}return null}function V0(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 yl(t);case 8:return t===Ru?"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 Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W0(e){var t=gp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Os(e){e._valueTracker||(e._valueTracker=W0(e))}function vp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xi(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 xl(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wn(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 yp(e,t){t=t.checked,t!=null&&Nu(e,"checked",t,!1)}function wl(e,t){yp(e,t);var n=Wn(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")?bl(e,t.type,n):t.hasOwnProperty("defaultValue")&&bl(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xc(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 bl(e,t,n){(t!=="number"||xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Hr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},H0=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){H0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});function Sp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function kp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Sp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Q0=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 El(e,t){if(t){if(Q0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Cl(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 Pl=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,Qr=null,Kr=null;function Jc(e){if(e=ks(e)){if(typeof Tl!="function")throw Error(M(280));var t=e.stateNode;t&&(t=na(t),Tl(e.stateNode,e.type,t))}}function Ep(e){Qr?Kr?Kr.push(e):Kr=[e]:Qr=e}function Cp(){if(Qr){var e=Qr,t=Kr;if(Kr=Qr=null,Jc(e),t)for(e=0;e>>=0,e===0?32:31-(rv(e)/ov|0)|0}var Is=64,zs=4194304;function Fo(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 ki(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Fo(a):(s&=i,s!==0&&(r=Fo(s)))}else i=n&~o,i!==0?r=Fo(i):s!==0&&(r=Fo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=n}function lv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vo),ld=" ",ud=!1;function Hp(e,t){switch(e){case"keyup":return Dv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Or=!1;function zv(e,t){switch(e){case"compositionend":return Qp(t);case"keypress":return t.which!==32?null:(ud=!0,ld);case"textInput":return e=t.data,e===ld&&ud?null:e;default:return null}}function Fv(e,t){if(Or)return e==="compositionend"||!$u&&Hp(e,t)?(e=Vp(),ii=Iu=Ln=null,Or=!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=pd(n)}}function Xp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qp(){for(var e=window,t=xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xi(e.document)}return t}function Bu(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 Gv(e){var t=qp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xp(n.ownerDocument.documentElement,n)){if(r!==null&&Bu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=hd(n,s);var i=hd(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Dr=null,Ll=null,Ho=null,_l=!1;function md(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_l||Dr==null||Dr!==xi(r)||(r=Dr,"selectionStart"in r&&Bu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ho&&os(Ho,r)||(Ho=r,r=Pi(Ll,"onSelect"),0Fr||(e.current=$l[Fr],$l[Fr]=null,Fr--)}function se(e,t){Fr++,$l[Fr]=e.current,e.current=t}var Hn={},_e=Zn(Hn),He=Zn(!1),xr=Hn;function uo(e,t){var n=e.type.contextTypes;if(!n)return Hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function Ni(){le(He),le(_e)}function Sd(e,t,n){if(_e.current!==Hn)throw Error(M(168));se(_e,t),se(He,n)}function ih(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(M(108,V0(e)||"Unknown",o));return pe({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,xr=_e.current,se(_e,e),se(He,He.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=ih(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,le(He),le(_e),se(_e,e)):le(He),se(He,n)}var tn=null,ra=!1,qa=!1;function ah(e){tn===null?tn=[e]:tn.push(e)}function iy(e){ra=!0,ah(e)}function Jn(){if(!qa&&tn!==null){qa=!0;var e=0,t=re;try{var n=tn;for(re=1;e>=i,o-=i,rn=1<<32-Rt(t)+o|n<R?(A=C,C=null):A=C.sibling;var P=h(g,C,y[R],S);if(P===null){C===null&&(C=A);break}e&&C&&P.alternate===null&&t(g,C),m=s(P,m,R),E===null?k=P:E.sibling=P,E=P,C=A}if(R===y.length)return n(g,C),ce&&ir(g,R),k;if(C===null){for(;RR?(A=C,C=null):A=C.sibling;var D=h(g,C,P.value,S);if(D===null){C===null&&(C=A);break}e&&C&&D.alternate===null&&t(g,C),m=s(D,m,R),E===null?k=D:E.sibling=D,E=D,C=A}if(P.done)return n(g,C),ce&&ir(g,R),k;if(C===null){for(;!P.done;R++,P=y.next())P=p(g,P.value,S),P!==null&&(m=s(P,m,R),E===null?k=P:E.sibling=P,E=P);return ce&&ir(g,R),k}for(C=r(g,C);!P.done;R++,P=y.next())P=f(C,g,R,P.value,S),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?R:P.key),m=s(P,m,R),E===null?k=P:E.sibling=P,E=P);return e&&C.forEach(function(O){return t(g,O)}),ce&&ir(g,R),k}function x(g,m,y,S){if(typeof y=="object"&&y!==null&&y.type===_r&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case _s:e:{for(var k=y.key,E=m;E!==null;){if(E.key===k){if(k=y.type,k===_r){if(E.tag===7){n(g,E.sibling),m=o(E,y.props.children),m.return=g,g=m;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===En&&Pd(k)===E.type){n(g,E.sibling),m=o(E,y.props),m.ref=Ao(g,E,y),m.return=g,g=m;break e}n(g,E);break}else t(g,E);E=E.sibling}y.type===_r?(m=yr(y.props.children,g.mode,S,y.key),m.return=g,g=m):(S=hi(y.type,y.key,y.props,null,g.mode,S),S.ref=Ao(g,m,y),S.return=g,g=S)}return i(g);case Lr:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=o(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=sl(y,g.mode,S),m.return=g,g=m}return i(g);case En:return E=y._init,x(g,m,E(y._payload),S)}if(zo(y))return b(g,m,y,S);if(Po(y))return v(g,m,y,S);Hs(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,y),m.return=g,g=m):(n(g,m),m=ol(y,g.mode,S),m.return=g,g=m),i(g)):n(g,m)}return x}var fo=dh(!0),fh=dh(!1),Mi=Zn(null),Li=null,Ur=null,Hu=null;function Qu(){Hu=Ur=Li=null}function Ku(e){var t=Mi.current;le(Mi),e._currentValue=t}function Vl(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 Yr(e,t){Li=e,Hu=Ur=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(Hu!==e)if(e={context:e,memoizedValue:t,next:null},Ur===null){if(Li===null)throw Error(M(308));Ur=e,Li.dependencies={lanes:0,firstContext:e}}else Ur=Ur.next=e;return t}var ur=null;function Gu(e){ur===null?ur=[e]:ur.push(e)}function ph(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Gu(t)):(n.next=o.next,o.next=n),t.interleaved=n,un(e,r)}function un(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 Cn=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hh(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 sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $n(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,un(e,n)}return o=r.interleaved,o===null?(t.next=t,Gu(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,n)}function li(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,_u(e,n)}}function Td(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _i(e,t,n,r){var o=e.updateQueue;Cn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var p=o.baseState;i=0,c=u=l=null,a=s;do{var h=a.lane,f=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,v=a;switch(h=t,f=n,v.tag){case 1:if(b=v.payload,typeof b=="function"){p=b.call(f,p,h);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(f,p,h):b,h==null)break e;p=pe({},p,h);break e;case 2:Cn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=p):c=c.next=f,i|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Sr|=i,e.lanes=i,e.memoizedState=p}}function Nd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ja.transition;Ja.transition={};try{e(!1),t()}finally{re=n,Ja.transition=r}}function Ah(){return mt().memoizedState}function cy(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mh(e))Lh(t,n);else if(n=ph(e,t,n,r),n!==null){var o=ze();jt(n,e,r,o),_h(n,t,r)}}function dy(e,t,n){var r=Un(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mh(e))Lh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,At(a,i)){var l=t.interleaved;l===null?(o.next=o,Gu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=ph(e,t,o,r),n!==null&&(o=ze(),jt(n,e,r,o),_h(n,t,r))}}function Mh(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Lh(e,t){Qo=Di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _h(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_u(e,n)}}var Ii={readContext:ht,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},fy={readContext:ht,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:jd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ci(4194308,4,Ph.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ci(4194308,4,e,t)},useInsertionEffect:function(e,t){return ci(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();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=cy.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:Rd,useDebugValue:rc,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=Rd(!1),t=e[0];return e=uy.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=It();if(ce){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Se===null)throw Error(M(349));br&30||yh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,jd(wh.bind(null,r,s,e),[e]),r.flags|=2048,fs(9,xh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=It(),t=Se.identifierPrefix;if(ce){var n=on,r=rn;n=(r&~(1<<32-Rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=cs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Bt]=t,e[as]=r,Wh(e,t,!1,!1),t.stateNode=e;e:{switch(i=Cl(n,r),n){case"dialog":ae("cancel",e),ae("close",e),o=r;break;case"iframe":case"object":case"embed":ae("load",e),o=r;break;case"video":case"audio":for(o=0;o<$o.length;o++)ae($o[o],e);o=r;break;case"source":ae("error",e),o=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),o=r;break;case"details":ae("toggle",e),o=r;break;case"input":Yc(e,r),o=xl(e,r),ae("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=pe({},r,{value:void 0}),ae("invalid",e);break;case"textarea":qc(e,r),o=Sl(e,r),ae("invalid",e);break;default:o=r}El(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?kp(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&bp(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zo(e,l):typeof l=="number"&&Zo(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(qo.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ae("scroll",e):l!=null&&Nu(e,s,l,i))}switch(n){case"input":Os(e),Xc(e,r,!1);break;case"textarea":Os(e),Zc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Hr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Hr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ti)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ae(t),null;case 6:if(e&&t.stateNode!=null)Qh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=cr(us.current),cr(Qt.current),Ws(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(s=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:Vs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return Ae(t),null;case 13:if(le(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&Je!==null&&t.mode&1&&!(t.flags&128))ch(),co(),t.flags|=98560,s=!1;else if(s=Ws(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(M(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(M(317));s[Bt]=t}else co(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ae(t),s=!1}else Tt!==null&&(su(Tt),Tt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?we===0&&(we=3):cc())),t.updateQueue!==null&&(t.flags|=4),Ae(t),null);case 4:return po(),ql(e,t),e===null&&ss(t.stateNode.containerInfo),Ae(t),null;case 10:return Ku(t.type._context),Ae(t),null;case 17:return Qe(t.type)&&Ni(),Ae(t),null;case 19:if(le(de),s=t.memoizedState,s===null)return Ae(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Mo(s,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Oi(e),i!==null){for(t.flags|=128,Mo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return se(de,de.current&1|2),t.child}e=e.sibling}s.tail!==null&&ge()>mo&&(t.flags|=128,r=!0,Mo(s,!1),t.lanes=4194304)}else{if(!r)if(e=Oi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ce)return Ae(t),null}else 2*ge()-s.renderingStartTime>mo&&n!==1073741824&&(t.flags|=128,r=!0,Mo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ge(),t.sibling=null,n=de.current,se(de,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return uc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function wy(e,t){switch(Vu(t),t.tag){case 1:return Qe(t.type)&&Ni(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return po(),le(He),le(_e),Zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qu(t),null;case 13:if(le(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(de),null;case 4:return po(),null;case 10:return Ku(t.type._context),null;case 22:case 23:return uc(),null;case 24:return null;default:return null}}var Ks=!1,Le=!1,by=typeof WeakSet=="function"?WeakSet:Set,z=null;function Vr(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 Zl(e,t,n){try{n()}catch(r){me(e,t,r)}}var Bd=!1;function Sy(e,t){if(Ol=Ei,e=qp(),Bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,p=e,h=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(a=i+o),p!==s||r!==0&&p.nodeType!==3||(l=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(f=p.firstChild)!==null;)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===o&&(a=i),h===s&&++c===r&&(l=i),(f=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:e,selectionRange:n},Ei=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:St(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(S){me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return b=Bd,Bd=!1,b}function Ko(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Zl(t,n,s)}o=o.next}while(o!==r)}}function ia(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 Jl(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 Kh(e){var t=e.alternate;t!==null&&(e.alternate=null,Kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[as],delete t[Fl],delete t[oy],delete t[sy])),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 Gh(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gh(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 eu(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=Ti));else if(r!==4&&(e=e.child,e!==null))for(eu(e,t,n),e=e.sibling;e!==null;)eu(e,t,n),e=e.sibling}function tu(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(tu(e,t,n),e=e.sibling;e!==null;)tu(e,t,n),e=e.sibling}var Ce=null,Pt=!1;function xn(e,t,n){for(n=n.child;n!==null;)Yh(e,t,n),n=n.sibling}function Yh(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Zi,n)}catch{}switch(n.tag){case 5:Le||Vr(n,t);case 6:var r=Ce,o=Pt;Ce=null,xn(e,t,n),Ce=r,Pt=o,Ce!==null&&(Pt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Pt?(e=Ce,n=n.stateNode,e.nodeType===8?Xa(e.parentNode,n):e.nodeType===1&&Xa(e,n),ns(e)):Xa(Ce,n.stateNode));break;case 4:r=Ce,o=Pt,Ce=n.stateNode.containerInfo,Pt=!0,xn(e,t,n),Ce=r,Pt=o;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Zl(n,t,i),o=o.next}while(o!==r)}xn(e,t,n);break;case 1:if(!Le&&(Vr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,xn(e,t,n),Le=r):xn(e,t,n);break;default:xn(e,t,n)}}function Vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new by),t.forEach(function(r){var o=Ay.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}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*Ey(r/1960))-r,10e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,$i=0,ee&6)throw Error(M(331));var o=ee;for(ee|=4,z=e.current;z!==null;){var s=z,i=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lge()-ac?vr(e,0):ic|=n),Ke(e,t)}function rm(e,t){t===0&&(e.mode&1?(t=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):t=1);var n=ze();e=un(e,t),e!==null&&(bs(e,t,n),Ke(e,n))}function jy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rm(e,n)}function Ay(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(M(314))}r!==null&&r.delete(t),rm(e,n)}var om;om=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||He.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,yy(e,t,n);We=!!(e.flags&131072)}else We=!1,ce&&t.flags&1048576&&lh(t,Ai,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;di(e,t),e=t.pendingProps;var o=uo(t,_e.current);Yr(t,n),o=ec(null,t,r,e,o,n);var s=tc();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,Qe(r)?(s=!0,Ri(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Yu(t),o.updater=sa,t.stateNode=o,o._reactInternals=t,Hl(t,r,e,n),t=Gl(null,t,r,!0,s,n)):(t.tag=0,ce&&s&&Uu(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(di(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ly(r),e=St(r,e),o){case 0:t=Kl(null,t,r,e,n);break e;case 1:t=zd(null,t,r,e,n);break e;case 11:t=Dd(null,t,r,e,n);break e;case 14:t=Id(null,t,r,St(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),Kl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),zd(e,t,r,o,n);case 3:e:{if(Bh(t),e===null)throw Error(M(387));r=t.pendingProps,s=t.memoizedState,o=s.element,hh(e,t),_i(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ho(Error(M(423)),t),t=Fd(e,t,r,n,o);break e}else if(r!==o){o=ho(Error(M(424)),t),t=Fd(e,t,r,n,o);break e}else for(Je=Fn(t.stateNode.containerInfo.firstChild),et=t,ce=!0,Tt=null,n=fh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(co(),r===o){t=cn(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return mh(t),e===null&&Ul(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Il(r,o)?i=null:s!==null&&Il(r,s)&&(t.flags|=32),$h(e,t),De(e,t,i,n),t.child;case 6:return e===null&&Ul(t),null;case 13:return Uh(e,t,n);case 4:return Xu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fo(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),Dd(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,se(Mi,r._currentValue),r._currentValue=i,s!==null)if(At(s.value,i)){if(s.children===o.children&&!He.current){t=cn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=sn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Vl(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(M(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Vl(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yr(t,n),o=ht(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=St(r,t.pendingProps),o=St(r.type,o),Id(e,t,r,o,n);case 15:return zh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),di(e,t),t.tag=1,Qe(r)?(e=!0,Ri(t)):e=!1,Yr(t,n),Oh(t,r,o),Hl(t,r,o,n),Gl(null,t,r,!0,e,n);case 19:return Vh(e,t,n);case 22:return Fh(e,t,n)}throw Error(M(156,t.tag))};function sm(e,t){return Mp(e,t)}function My(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 ft(e,t,n,r){return new My(e,t,n,r)}function dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ly(e){if(typeof e=="function")return dc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ju)return 11;if(e===Au)return 14}return 2}function Vn(e,t){var n=e.alternate;return n===null?(n=ft(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 hi(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")dc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case _r:return yr(n.children,o,s,t);case Ru:i=8,o|=8;break;case ml:return e=ft(12,n,t,o|2),e.elementType=ml,e.lanes=s,e;case gl:return e=ft(13,n,t,o),e.elementType=gl,e.lanes=s,e;case vl:return e=ft(19,n,t,o),e.elementType=vl,e.lanes=s,e;case mp:return la(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pp:i=10;break e;case hp:i=9;break e;case ju:i=11;break e;case Au:i=14;break e;case En:i=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=ft(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function yr(e,t,n,r){return e=ft(7,e,r,t),e.lanes=n,e}function la(e,t,n,r){return e=ft(22,e,r,t),e.elementType=mp,e.lanes=n,e.stateNode={isHidden:!1},e}function ol(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function sl(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _y(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=Fa(0),this.expirationTimes=Fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function fc(e,t,n,r,o,s,i,a,l){return e=new _y(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ft(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yu(s),e}function Oy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(um)}catch(e){console.error(e)}}um(),up.exports=rt;var Cs=up.exports;const cm=Xf(Cs);var dm,qd=Cs;dm=qd.createRoot,qd.hydrateRoot;const $y=1,By=1e6;let il=0;function Uy(){return il=(il+1)%Number.MAX_SAFE_INTEGER,il.toString()}const al=new Map,Zd=e=>{if(al.has(e))return;const t=setTimeout(()=>{al.delete(e),Xo({type:"REMOVE_TOAST",toastId:e})},By);al.set(e,t)},Vy=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,$y)};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?Zd(n):e.toasts.forEach(r=>{Zd(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)}}},mi=[];let gi={toasts:[]};function Xo(e){gi=Vy(gi,e),mi.forEach(t=>{t(gi)})}function Wy({...e}){const t=Uy(),n=o=>Xo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Xo({type:"DISMISS_TOAST",toastId:t});return Xo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Hy(){const[e,t]=w.useState(gi);return w.useEffect(()=>(mi.push(t),()=>{const n=mi.indexOf(t);n>-1&&mi.splice(n,1)}),[e]),{...e,toast:Wy,dismiss:n=>Xo({type:"DISMISS_TOAST",toastId:n})}}function xe(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 fm(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Jd(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var g;const{scope:h,children:f,...b}=p,v=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,x=w.useMemo(()=>b,Object.values(b));return d.jsx(v.Provider,{value:x,children:f})};u.displayName=s+"Provider";function c(p,h){var v;const f=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,b=w.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,c]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Qy(o,...t)]}function Qy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Vi(e){const t=Gy(e),n=w.forwardRef((r,o)=>{const{children:s,...i}=r,a=w.Children.toArray(s),l=a.find(Xy);if(l){const u=l.props.children,c=a.map(p=>p===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return d.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Ky=Vi("Slot");function Gy(e){const t=w.forwardRef((n,r)=>{const{children:o,...s}=n;if(w.isValidElement(o)){const i=Zy(o),a=qy(s,o.props);return o.type!==w.Fragment&&(a.ref=r?fm(r,i):i),w.cloneElement(o,a)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pm=Symbol("radix.slottable");function Yy(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=pm,t}function Xy(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pm}function qy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Zy(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 Jy(e){const t=e+"CollectionProvider",[n,r]=pa(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:g}=v,m=_.useRef(null),y=_.useRef(new Map).current;return d.jsx(o,{scope:x,itemMap:y,collectionRef:m,children:g})};i.displayName=t;const a=e+"CollectionSlot",l=Vi(a),u=_.forwardRef((v,x)=>{const{scope:g,children:m}=v,y=s(a,g),S=Mt(x,y.collectionRef);return d.jsx(l,{ref:S,children:m})});u.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",h=Vi(c),f=_.forwardRef((v,x)=>{const{scope:g,children:m,...y}=v,S=_.useRef(null),k=Mt(x,S),E=s(c,g);return _.useEffect(()=>(E.itemMap.set(S,{ref:S,...y}),()=>void E.itemMap.delete(S))),d.jsx(h,{[p]:"",ref:k,children:m})});f.displayName=c;function b(v){const x=s(e+"CollectionConsumer",v);return _.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((E,C)=>y.indexOf(E.ref.current)-y.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},b,r]}var e1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=e1.reduce((e,t)=>{const n=Vi(`Primitive.${t}`),r=w.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hm(e,t){e&&Cs.flushSync(()=>e.dispatchEvent(t))}function Qn(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 t1(e,t=globalThis==null?void 0:globalThis.document){const n=Qn(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 n1="DismissableLayer",iu="dismissableLayer.update",r1="dismissableLayer.pointerDownOutside",o1="dismissableLayer.focusOutside",ef,mm=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gc=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=w.useContext(mm),[c,p]=w.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),b=Mt(t,C=>p(C)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(x),m=c?v.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=g,k=i1(C=>{const R=C.target,A=[...u.branches].some(P=>P.contains(R));!S||A||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},h),E=a1(C=>{const R=C.target;[...u.branches].some(P=>P.contains(R))||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},h);return t1(C=>{m===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},h),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ef=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),tf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ef)}},[c,h,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),tf())},[c,u]),w.useEffect(()=>{const C=()=>f({});return document.addEventListener(iu,C),()=>document.removeEventListener(iu,C)},[]),d.jsx(Ye.div,{...l,ref:b,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,k.onPointerDownCapture)})});gc.displayName=n1;var s1="DismissableLayerBranch",gm=w.forwardRef((e,t)=>{const n=w.useContext(mm),r=w.useRef(null),o=Mt(t,r);return w.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsx(Ye.div,{...e,ref:o})});gm.displayName=s1;function i1(e,t=globalThis==null?void 0:globalThis.document){const n=Qn(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){vm(r1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function a1(e,t=globalThis==null?void 0:globalThis.document){const n=Qn(e),r=w.useRef(!1);return w.useEffect(()=>{const o=s=>{s.target&&!r.current&&vm(o1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tf(){const e=new CustomEvent(iu);document.dispatchEvent(e)}function vm(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hm(o,s):o.dispatchEvent(s)}var l1=gc,u1=gm,Kn=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},c1="Portal",ym=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=w.useState(!1);Kn(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?cm.createPortal(d.jsx(Ye.div,{...r,ref:t}),i):null});ym.displayName=c1;function d1(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var vc=e=>{const{present:t,children:n}=e,r=f1(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),s=Mt(r.ref,p1(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:s}):null};vc.displayName="Presence";function f1(e){const[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),s=w.useRef("none"),i=e?"mounted":"unmounted",[a,l]=d1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Xs(r.current);s.current=a==="mounted"?u:"none"},[a]),Kn(()=>{const u=r.current,c=o.current;if(c!==e){const h=s.current,f=Xs(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Kn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,p=f=>{const v=Xs(r.current).includes(f.animationName);if(f.target===t&&v&&(l("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&&(s.current=Xs(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Xs(e){return(e==null?void 0:e.animationName)||"none"}function p1(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 h1=ap[" useInsertionEffect ".trim().toString()]||Kn;function m1({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=g1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=w.useRef(e!==void 0);w.useEffect(()=>{const p=c.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=w.useCallback(c=>{var p;if(a){const h=v1(c)?c(e):c;h!==e&&((p=i.current)==null||p.call(i,h))}else s(c)},[a,e,s,i]);return[l,u]}function g1({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),s=w.useRef(t);return h1(()=>{s.current=t},[t]),w.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function v1(e){return typeof e=="function"}var y1=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"}),x1="VisuallyHidden",ha=w.forwardRef((e,t)=>d.jsx(Ye.span,{...e,ref:t,style:{...y1,...e.style}}));ha.displayName=x1;var w1=ha,yc="ToastProvider",[xc,b1,S1]=Jy("Toast"),[xm,rE]=pa("Toast",[S1]),[k1,ma]=xm(yc),wm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),p=w.useRef(!1),h=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yc}\`. Expected non-empty \`string\`.`),d.jsx(xc.Provider,{scope:t,children:d.jsx(k1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(f=>f+1),[]),onToastRemove:w.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h,children:i})})};wm.displayName=yc;var bm="ToastViewport",E1=["F8"],au="toast.viewportPause",lu="toast.viewportResume",Sm=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=E1,label:o="Notifications ({hotkey})",...s}=e,i=ma(bm,n),a=b1(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),p=w.useRef(null),h=Mt(t,p,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;w.useEffect(()=>{const x=g=>{var y;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((y=p.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=l.current,g=p.current;if(b&&x&&g){const m=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(au);g.dispatchEvent(E),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(lu);g.dispatchEvent(E),i.isClosePausedRef.current=!1}},S=E=>{!x.contains(E.relatedTarget)&&y()},k=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",m),x.addEventListener("focusout",S),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",k),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[b,i.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:x})=>{const m=a().map(y=>{const S=y.ref.current,k=[S,...I1(S)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return w.useEffect(()=>{const x=p.current;if(x){const g=m=>{var k,E,C;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const R=document.activeElement,A=m.shiftKey;if(m.target===x&&A){(k=u.current)==null||k.focus();return}const O=v({tabbingDirection:A?"backwards":"forwards"}),B=O.findIndex(L=>L===R);ll(O.slice(B+1))?m.preventDefault():A?(E=u.current)==null||E.focus():(C=c.current)==null||C.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[a,v]),d.jsxs(u1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&d.jsx(uu,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});ll(x)}}),d.jsx(xc.Slot,{scope:n,children:d.jsx(Ye.ol,{tabIndex:-1,...s,ref:h})}),b&&d.jsx(uu,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});ll(x)}})]})});Sm.displayName=bm;var km="ToastFocusProxy",uu=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=ma(km,n);return d.jsx(ha,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});uu.displayName=km;var Ps="Toast",C1="toast.swipeStart",P1="toast.swipeMove",T1="toast.swipeCancel",N1="toast.swipeEnd",Em=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=m1({prop:r,defaultProp:o??!0,onChange:s,caller:Ps});return d.jsx(vc,{present:n||a,children:d.jsx(A1,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Qn(e.onPause),onResume:Qn(e.onResume),onSwipeStart:xe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:xe(e.onSwipeMove,u=>{const{x:c,y:p}=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",`${p}px`)}),onSwipeCancel:xe(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:xe(e.onSwipeEnd,u=>{const{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});Em.displayName=Ps;var[R1,j1]=xm(Ps,{onClose(){}}),A1=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:p,onSwipeCancel:h,onSwipeEnd:f,...b}=e,v=ma(Ps,n),[x,g]=w.useState(null),m=Mt(t,L=>g(L)),y=w.useRef(null),S=w.useRef(null),k=o||v.duration,E=w.useRef(0),C=w.useRef(k),R=w.useRef(0),{onToastAdd:A,onToastRemove:P}=v,D=Qn(()=>{var Z;(x==null?void 0:x.contains(document.activeElement))&&((Z=v.viewport)==null||Z.focus()),i()}),O=w.useCallback(L=>{!L||L===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(D,L))},[D]);w.useEffect(()=>{const L=v.viewport;if(L){const Z=()=>{O(C.current),u==null||u()},V=()=>{const W=new Date().getTime()-E.current;C.current=C.current-W,window.clearTimeout(R.current),l==null||l()};return L.addEventListener(au,V),L.addEventListener(lu,Z),()=>{L.removeEventListener(au,V),L.removeEventListener(lu,Z)}}},[v.viewport,k,l,u,O]),w.useEffect(()=>{s&&!v.isClosePausedRef.current&&O(k)},[s,k,v.isClosePausedRef,O]),w.useEffect(()=>(A(),()=>P()),[A,P]);const B=w.useMemo(()=>x?Am(x):null,[x]);return v.viewport?d.jsxs(d.Fragment,{children:[B&&d.jsx(M1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),d.jsx(R1,{scope:n,onClose:D,children:Cs.createPortal(d.jsx(xc.ItemSlot,{scope:n,children:d.jsx(l1,{asChild:!0,onEscapeKeyDown:xe(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||D(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(Ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:xe(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:xe(e.onPointerDown,L=>{L.button===0&&(y.current={x:L.clientX,y:L.clientY})}),onPointerMove:xe(e.onPointerMove,L=>{if(!y.current)return;const Z=L.clientX-y.current.x,V=L.clientY-y.current.y,W=!!S.current,T=["left","right"].includes(v.swipeDirection),j=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,I=T?j(0,Z):0,H=T?0:j(0,V),U=L.pointerType==="touch"?10:2,q={x:I,y:H},$={originalEvent:L,delta:q};W?(S.current=q,qs(P1,p,$,{discrete:!1})):nf(q,v.swipeDirection,U)?(S.current=q,qs(C1,c,$,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(Z)>U||Math.abs(V)>U)&&(y.current=null)}),onPointerUp:xe(e.onPointerUp,L=>{const Z=S.current,V=L.target;if(V.hasPointerCapture(L.pointerId)&&V.releasePointerCapture(L.pointerId),S.current=null,y.current=null,Z){const W=L.currentTarget,T={originalEvent:L,delta:Z};nf(Z,v.swipeDirection,v.swipeThreshold)?qs(N1,f,T,{discrete:!0}):qs(T1,h,T,{discrete:!0}),W.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),M1=e=>{const{__scopeToast:t,children:n,...r}=e,o=ma(Ps,t),[s,i]=w.useState(!1),[a,l]=w.useState(!1);return O1(()=>i(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:d.jsx(ym,{asChild:!0,children:d.jsx(ha,{...r,children:s&&d.jsxs(d.Fragment,{children:[o.label," ",n]})})})},L1="ToastTitle",Cm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(Ye.div,{...r,ref:t})});Cm.displayName=L1;var _1="ToastDescription",Pm=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(Ye.div,{...r,ref:t})});Pm.displayName=_1;var Tm="ToastAction",Nm=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(jm,{altText:n,asChild:!0,children:d.jsx(wc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tm}\`. Expected non-empty \`string\`.`),null)});Nm.displayName=Tm;var Rm="ToastClose",wc=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=j1(Rm,n);return d.jsx(jm,{asChild:!0,children:d.jsx(Ye.button,{type:"button",...r,ref:t,onClick:xe(e.onClick,o.onClose)})})});wc.displayName=Rm;var jm=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return d.jsx(Ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Am(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),D1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Am(r))}}),t}function qs(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hm(o,s):o.dispatchEvent(s)}var nf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function O1(e=()=>{}){const t=Qn(e);Kn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function D1(e){return e.nodeType===e.ELEMENT_NODE}function I1(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 ll(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var z1=wm,Mm=Sm,Lm=Em,_m=Cm,Om=Pm,Dm=Nm,Im=wc;function zm(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,of=Fm,$m=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return of(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],p=s==null?void 0:s[u];if(c===null)return null;const h=rf(c)||rf(p);return o[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[p,h]=c;return h===void 0||(u[p]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:p,className:h,...f}=c;return Object.entries(f).every(b=>{let[v,x]=b;return Array.isArray(x)?x.includes({...s,...a}[v]):{...s,...a}[v]===x})?[...u,p,h]:u},[]);return of(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bm=(...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 $1={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 B1=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>w.createElement("svg",{ref:l,...$1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bm("lucide",o),...a},[...i.map(([u,c])=>w.createElement(u,c)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ke=(e,t)=>{const n=w.forwardRef(({className:r,...o},s)=>w.createElement(B1,{ref:s,iconNode:t,className:Bm(`lucide-${F1(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 U1=ke("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 V1=ke("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 W1=ke("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 H1=ke("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 Q1=ke("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K1=ke("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/** * @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 sf=ke("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** * @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 af=ke("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 G1=ke("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y1=ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const X1=ke("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q1=ke("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 Z1=ke("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J1=ke("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ex=ke("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=ke("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 ga=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @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 nx=ke("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),bc="-",rx=e=>{const t=sx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(bc);return a[0]===""&&a.length!==1&&a.shift(),Um(a,t)||ox(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Um=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Um(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(bc);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},lf=/^\[(.+)\]$/,ox=e=>{if(lf.test(e)){const t=lf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},sx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ax(Object.entries(e.classGroups),n).forEach(([s,i])=>{cu(i,r,s,t)}),r},cu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:uf(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(ix(o)){cu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{cu(i,uf(t,s),n,r)})})},uf=(e,t)=>{let n=e;return t.split(bc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ix=e=>e.isThemeGetter,ax=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,lx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Vm="!",ux=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,c=0,p;for(let x=0;xc?p-c:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},cx=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},dx=e=>({cache:lx(e.cacheSize),parseClassName:ux(e),...rx(e)}),fx=/\s+/,px=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(fx);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:f}=n(u);let b=!!f,v=r(b?h.substring(0,f):h);if(!v){if(!b){a=u+(a.length>0?" "+a:a);continue}if(v=r(h),!v){a=u+(a.length>0?" "+a:a);continue}b=!1}const x=cx(c).join(":"),g=p?x+Vm:x,m=g+v;if(s.includes(m))continue;s.push(m);const y=o(v,b);for(let S=0;S0?" "+a:a)}return a};function hx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(c),e());return n=dx(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=px(l,n);return o(l,c),c}return function(){return s(hx.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Hm=/^\[(?:([a-z-]+):)?(.+)\]$/i,gx=/^\d+\/\d+$/,vx=new Set(["px","full","screen"]),yx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xx=/\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$/,wx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qt=e=>qr(e)||vx.has(e)||gx.test(e),wn=e=>bo(e,"length",jx),qr=e=>!!e&&!Number.isNaN(Number(e)),ul=e=>bo(e,"number",qr),_o=e=>!!e&&Number.isInteger(Number(e)),kx=e=>e.endsWith("%")&&qr(e.slice(0,-1)),X=e=>Hm.test(e),bn=e=>yx.test(e),Ex=new Set(["length","size","percentage"]),Cx=e=>bo(e,Ex,Qm),Px=e=>bo(e,"position",Qm),Tx=new Set(["image","url"]),Nx=e=>bo(e,Tx,Mx),Rx=e=>bo(e,"",Ax),Oo=()=>!0,bo=(e,t,n)=>{const r=Hm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},jx=e=>xx.test(e)&&!wx.test(e),Qm=()=>!1,Ax=e=>bx.test(e),Mx=e=>Sx.test(e),Lx=()=>{const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),o=ie("borderColor"),s=ie("borderRadius"),i=ie("borderSpacing"),a=ie("borderWidth"),l=ie("contrast"),u=ie("grayscale"),c=ie("hueRotate"),p=ie("invert"),h=ie("gap"),f=ie("gradientColorStops"),b=ie("gradientColorStopPositions"),v=ie("inset"),x=ie("margin"),g=ie("opacity"),m=ie("padding"),y=ie("saturate"),S=ie("scale"),k=ie("sepia"),E=ie("skew"),C=ie("space"),R=ie("translate"),A=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",X,t],O=()=>[X,t],B=()=>["",qt,wn],L=()=>["auto",qr,X],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",X],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[qr,X];return{cacheSize:500,separator:":",theme:{colors:[Oo],spacing:[qt,wn],blur:["none","",bn,X],brightness:H(),borderColor:[e],borderRadius:["none","","full",bn,X],borderSpacing:O(),borderWidth:B(),contrast:H(),grayscale:j(),hueRotate:H(),invert:j(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[kx,wn],inset:D(),margin:D(),opacity:H(),padding:O(),saturate:H(),scale:H(),sepia:j(),skew:H(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[bn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),X]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_o,X]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",_o,X]}],"grid-cols":[{"grid-cols":[Oo]}],"col-start-end":[{col:["auto",{span:["full",_o,X]},X]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Oo]}],"row-start-end":[{row:["auto",{span:[_o,X]},X]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],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",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[bn]},bn]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bn,wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ul]}],"font-family":[{font:[Oo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",qr,ul]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qt,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qt,wn]}],"underline-offset":[{"underline-offset":["auto",qt,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Px]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Nx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[qt,X]}],"outline-w":[{outline:[qt,wn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[qt,wn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bn,Rx]}],"shadow-color":[{shadow:[Oo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",bn,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[_o,X]}],"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",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qt,wn,ul]}],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"]}}},_x=mx(Lx);function er(...e){return _x(Fm(e))}const Ox=z1,Km=w.forwardRef(({className:e,...t},n)=>d.jsx(Mm,{ref:n,className:er("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=Mm.displayName;const Dx=$m("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"}}),Gm=w.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(Lm,{ref:r,className:er(Dx({variant:t}),e),...n}));Gm.displayName=Lm.displayName;const Ix=w.forwardRef(({className:e,...t},n)=>d.jsx(Dm,{ref:n,className:er("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}));Ix.displayName=Dm.displayName;const Ym=w.forwardRef(({className:e,...t},n)=>d.jsx(Im,{ref:n,className:er("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:d.jsx(ga,{className:"h-4 w-4"})}));Ym.displayName=Im.displayName;const Xm=w.forwardRef(({className:e,...t},n)=>d.jsx(_m,{ref:n,className:er("text-sm font-semibold",e),...t}));Xm.displayName=_m.displayName;const qm=w.forwardRef(({className:e,...t},n)=>d.jsx(Om,{ref:n,className:er("text-sm opacity-90",e),...t}));qm.displayName=Om.displayName;function zx(){const{toasts:e}=Hy();return d.jsxs(Ox,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return d.jsxs(Gm,{...s,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(Xm,{children:n}),r&&d.jsx(qm,{children:r})]}),o,d.jsx(Ym,{})]},t)}),d.jsx(Km,{})]})}var cf=["light","dark"],Fx="(prefers-color-scheme: dark)",$x=w.createContext(void 0),Bx={setTheme:e=>{},themes:[]},Ux=()=>{var e;return(e=w.useContext($x))!=null?e:Bx};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?cf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,v=!1,x=!0)=>{let g=i?i[b]:b,m=v?b+"|| ''":`'${g}'`,y="";return o&&x&&!v&&cf.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),n==="class"?v||g?y+=`c.add(${m})`:y+="null":g&&(y+=`d[s](n,${m})`),y},f=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Fx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${p}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var Vx=e=>{switch(e){case"success":return Qx;case"info":return Gx;case"warning":return Kx;case"error":return Yx;default:return null}},Wx=Array(12).fill(0),Hx=({visible:e,className:t})=>_.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},_.createElement("div",{className:"sonner-spinner"},Wx.map((n,r)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Qx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Kx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.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"})),Gx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Yx=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),Xx=_.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"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),qx=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},du=1,Zx=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:du++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],_.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(ew(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.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(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||du++;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}},Ue=new Zx,Jx=(e,t)=>{let n=(t==null?void 0:t.id)||du++;return Ue.addToast({title:e,...t,id:n}),n},ew=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tw=Jx,nw=()=>Ue.toasts,rw=()=>Ue.getActiveToasts();Object.assign(tw,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:nw,getToasts:rw});function ow(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))}ow(`: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 Zs(e){return e.label!==void 0}var sw=3,iw="32px",aw="16px",df=4e3,lw=356,uw=14,cw=20,dw=200;function wt(...e){return e.filter(Boolean).join(" ")}function fw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var pw=e=>{var t,n,r,o,s,i,a,l,u,c,p;let{invert:h,toast:f,unstyled:b,interacting:v,setHeights:x,visibleToasts:g,heights:m,index:y,toasts:S,expanded:k,removeToast:E,defaultRichColors:C,closeButton:R,style:A,cancelButtonStyle:P,actionButtonStyle:D,className:O="",descriptionClassName:B="",duration:L,position:Z,gap:V,loadingIcon:W,expandByDefault:T,classNames:j,icons:I,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:U}=e,[q,$]=_.useState(null),[F,te]=_.useState(null),[Y,Xt]=_.useState(!1),[Ot,nr]=_.useState(!1),[hn,Tr]=_.useState(!1),[mn,Rs]=_.useState(!1),[Ra,js]=_.useState(!1),[ja,Eo]=_.useState(0),[Nr,Dc]=_.useState(0),Co=_.useRef(f.duration||L||df),Ic=_.useRef(null),rr=_.useRef(null),s0=y===0,i0=y+1<=g,it=f.type,Rr=f.dismissible!==!1,a0=f.className||"",l0=f.descriptionClassName||"",As=_.useMemo(()=>m.findIndex(Q=>Q.toastId===f.id)||0,[m,f.id]),u0=_.useMemo(()=>{var Q;return(Q=f.closeButton)!=null?Q:R},[f.closeButton,R]),zc=_.useMemo(()=>f.duration||L||df,[f.duration,L]),Aa=_.useRef(0),jr=_.useRef(0),Fc=_.useRef(0),Ar=_.useRef(null),[c0,d0]=Z.split("-"),$c=_.useMemo(()=>m.reduce((Q,oe,ue)=>ue>=As?Q:Q+oe.height,0),[m,As]),Bc=qx(),f0=f.invert||h,Ma=it==="loading";jr.current=_.useMemo(()=>As*V+$c,[As,$c]),_.useEffect(()=>{Co.current=zc},[zc]),_.useEffect(()=>{Xt(!0)},[]),_.useEffect(()=>{let Q=rr.current;if(Q){let oe=Q.getBoundingClientRect().height;return Dc(oe),x(ue=>[{toastId:f.id,height:oe,position:f.position},...ue]),()=>x(ue=>ue.filter(gt=>gt.toastId!==f.id))}},[x,f.id]),_.useLayoutEffect(()=>{if(!Y)return;let Q=rr.current,oe=Q.style.height;Q.style.height="auto";let ue=Q.getBoundingClientRect().height;Q.style.height=oe,Dc(ue),x(gt=>gt.find(vt=>vt.toastId===f.id)?gt.map(vt=>vt.toastId===f.id?{...vt,height:ue}:vt):[{toastId:f.id,height:ue,position:f.position},...gt])},[Y,f.title,f.description,x,f.id]);let gn=_.useCallback(()=>{nr(!0),Eo(jr.current),x(Q=>Q.filter(oe=>oe.toastId!==f.id)),setTimeout(()=>{E(f)},dw)},[f,E,x,jr]);_.useEffect(()=>{if(f.promise&&it==="loading"||f.duration===1/0||f.type==="loading")return;let Q;return k||v||U&&Bc?(()=>{if(Fc.current{var oe;(oe=f.onAutoClose)==null||oe.call(f,f),gn()},Co.current)),()=>clearTimeout(Q)},[k,v,f,it,U,Bc,gn]),_.useEffect(()=>{f.delete&&gn()},[gn,f.delete]);function p0(){var Q,oe,ue;return I!=null&&I.loading?_.createElement("div",{className:wt(j==null?void 0:j.loader,(Q=f==null?void 0:f.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":it==="loading"},I.loading):W?_.createElement("div",{className:wt(j==null?void 0:j.loader,(oe=f==null?void 0:f.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":it==="loading"},W):_.createElement(Hx,{className:wt(j==null?void 0:j.loader,(ue=f==null?void 0:f.classNames)==null?void 0:ue.loader),visible:it==="loading"})}return _.createElement("li",{tabIndex:0,ref:rr,className:wt(O,a0,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[it],(n=f==null?void 0:f.classNames)==null?void 0:n[it]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":Y,"data-promise":!!f.promise,"data-swiped":Ra,"data-removed":Ot,"data-visible":i0,"data-y-position":c0,"data-x-position":d0,"data-index":y,"data-front":s0,"data-swiping":hn,"data-dismissible":Rr,"data-type":it,"data-invert":f0,"data-swipe-out":mn,"data-swipe-direction":F,"data-expanded":!!(k||T&&Y),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${Ot?ja:jr.current}px`,"--initial-height":T?"auto":`${Nr}px`,...A,...f.style},onDragEnd:()=>{Tr(!1),$(null),Ar.current=null},onPointerDown:Q=>{Ma||!Rr||(Ic.current=new Date,Eo(jr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(Tr(!0),Ar.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,oe,ue,gt;if(mn||!Rr)return;Ar.current=null;let vt=Number(((Q=rr.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vn=Number(((oe=rr.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),or=new Date().getTime()-((ue=Ic.current)==null?void 0:ue.getTime()),yt=q==="x"?vt:vn,yn=Math.abs(yt)/or;if(Math.abs(yt)>=cw||yn>.11){Eo(jr.current),(gt=f.onDismiss)==null||gt.call(f,f),te(q==="x"?vt>0?"right":"left":vn>0?"down":"up"),gn(),Rs(!0),js(!1);return}Tr(!1),$(null)},onPointerMove:Q=>{var oe,ue,gt,vt;if(!Ar.current||!Rr||((oe=window.getSelection())==null?void 0:oe.toString().length)>0)return;let vn=Q.clientY-Ar.current.y,or=Q.clientX-Ar.current.x,yt=(ue=e.swipeDirections)!=null?ue:fw(Z);!q&&(Math.abs(or)>1||Math.abs(vn)>1)&&$(Math.abs(or)>Math.abs(vn)?"x":"y");let yn={x:0,y:0};q==="y"?(yt.includes("top")||yt.includes("bottom"))&&(yt.includes("top")&&vn<0||yt.includes("bottom")&&vn>0)&&(yn.y=vn):q==="x"&&(yt.includes("left")||yt.includes("right"))&&(yt.includes("left")&&or<0||yt.includes("right")&&or>0)&&(yn.x=or),(Math.abs(yn.x)>0||Math.abs(yn.y)>0)&&js(!0),(gt=rr.current)==null||gt.style.setProperty("--swipe-amount-x",`${yn.x}px`),(vt=rr.current)==null||vt.style.setProperty("--swipe-amount-y",`${yn.y}px`)}},u0&&!f.jsx?_.createElement("button",{"aria-label":H,"data-disabled":Ma,"data-close-button":!0,onClick:Ma||!Rr?()=>{}:()=>{var Q;gn(),(Q=f.onDismiss)==null||Q.call(f,f)},className:wt(j==null?void 0:j.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=I==null?void 0:I.close)!=null?s:Xx):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:_.createElement(_.Fragment,null,it||f.icon||f.promise?_.createElement("div",{"data-icon":"",className:wt(j==null?void 0:j.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||p0():null,f.type!=="loading"?f.icon||(I==null?void 0:I[it])||Vx(it):null):null,_.createElement("div",{"data-content":"",className:wt(j==null?void 0:j.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},_.createElement("div",{"data-title":"",className:wt(j==null?void 0:j.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?_.createElement("div",{"data-description":"",className:wt(B,l0,j==null?void 0:j.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&&Zs(f.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:Q=>{var oe,ue;Zs(f.cancel)&&Rr&&((ue=(oe=f.cancel).onClick)==null||ue.call(oe,Q),gn())},className:wt(j==null?void 0:j.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&&Zs(f.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||D,onClick:Q=>{var oe,ue;Zs(f.action)&&((ue=(oe=f.action).onClick)==null||ue.call(oe,Q),!Q.defaultPrevented&&gn())},className:wt(j==null?void 0:j.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function ff(){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 hw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?aw:iw;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var mw=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:p,duration:h,style:f,visibleToasts:b=sw,toastOptions:v,dir:x=ff(),gap:g=uw,loadingIcon:m,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[E,C]=_.useState([]),R=_.useMemo(()=>Array.from(new Set([r].concat(E.filter(U=>U.position).map(U=>U.position)))),[E,r]),[A,P]=_.useState([]),[D,O]=_.useState(!1),[B,L]=_.useState(!1),[Z,V]=_.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=_.useRef(null),T=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=_.useRef(null),I=_.useRef(!1),H=_.useCallback(U=>{C(q=>{var $;return($=q.find(F=>F.id===U.id))!=null&&$.delete||Ue.dismiss(U.id),q.filter(({id:F})=>F!==U.id)})},[]);return _.useEffect(()=>Ue.subscribe(U=>{if(U.dismiss){C(q=>q.map($=>$.id===U.id?{...$,delete:!0}:$));return}setTimeout(()=>{cm.flushSync(()=>{C(q=>{let $=q.findIndex(F=>F.id===U.id);return $!==-1?[...q.slice(0,$),{...q[$],...U},...q.slice($+1)]:[U,...q]})})})}),[]),_.useEffect(()=>{if(c!=="system"){V(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:q})=>{V(q?"dark":"light")})}catch{U.addListener(({matches:$})=>{try{V($?"dark":"light")}catch(F){console.error(F)}})}},[c]),_.useEffect(()=>{E.length<=1&&O(!1)},[E]),_.useEffect(()=>{let U=q=>{var $,F;o.every(te=>q[te]||q.code===te)&&(O(!0),($=W.current)==null||$.focus()),q.code==="Escape"&&(document.activeElement===W.current||(F=W.current)!=null&&F.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[o]),_.useEffect(()=>{if(W.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,I.current=!1)}},[W.current]),_.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((U,q)=>{var $;let[F,te]=U.split("-");return E.length?_.createElement("ol",{key:U,dir:x==="auto"?ff():x,tabIndex:-1,ref:W,className:a,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":F,"data-lifted":D&&E.length>1&&!s,"data-x-position":te,style:{"--front-toast-height":`${(($=A[0])==null?void 0:$.height)||0}px`,"--width":`${lw}px`,"--gap":`${g}px`,...f,...hw(l,u)},onBlur:Y=>{I.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(I.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||I.current||(I.current=!0,j.current=Y.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{B||O(!1)},onDragEnd:()=>O(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},E.filter(Y=>!Y.position&&q===0||Y.position===U).map((Y,Xt)=>{var Ot,nr;return _.createElement(pw,{key:Y.id,icons:y,index:Xt,toast:Y,defaultRichColors:p,duration:(Ot=v==null?void 0:v.duration)!=null?Ot:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:b,closeButton:(nr=v==null?void 0:v.closeButton)!=null?nr:i,interacting:B,position:U,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:H,toasts:E.filter(hn=>hn.position==Y.position),heights:A.filter(hn=>hn.position==Y.position),setHeights:P,expandByDefault:s,gap:g,loadingIcon:m,expanded:D,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const gw=({...e})=>{const{theme:t="system"}=Ux();return d.jsx(mw,{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})},vw=["top","right","bottom","left"],Gn=Math.min,Ze=Math.max,Wi=Math.round,Js=Math.floor,Kt=e=>({x:e,y:e}),yw={left:"right",right:"left",bottom:"top",top:"bottom"},xw={start:"end",end:"start"};function fu(e,t,n){return Ze(e,Gn(t,n))}function dn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function So(e){return e.split("-")[1]}function Sc(e){return e==="x"?"y":"x"}function kc(e){return e==="y"?"height":"width"}const ww=new Set(["top","bottom"]);function Vt(e){return ww.has(fn(e))?"y":"x"}function Ec(e){return Sc(Vt(e))}function bw(e,t,n){n===void 0&&(n=!1);const r=So(e),o=Ec(e),s=kc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Hi(i)),[i,Hi(i)]}function Sw(e){const t=Hi(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>xw[t])}const pf=["left","right"],hf=["right","left"],kw=["top","bottom"],Ew=["bottom","top"];function Cw(e,t,n){switch(e){case"top":case"bottom":return n?t?hf:pf:t?pf:hf;case"left":case"right":return t?kw:Ew;default:return[]}}function Pw(e,t,n,r){const o=So(e);let s=Cw(fn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(pu)))),s}function Hi(e){return e.replace(/left|right|bottom|top/g,t=>yw[t])}function Tw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zm(e){return typeof e!="number"?Tw(e):{top:e,right:e,bottom:e,left:e}}function Qi(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 mf(e,t,n){let{reference:r,floating:o}=e;const s=Vt(t),i=Ec(t),a=kc(i),l=fn(t),u=s==="y",c=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let f;switch(l){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:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(So(t)){case"start":f[i]-=h*(n&&u?-1:1);break;case"end":f[i]+=h*(n&&u?-1:1);break}return f}const Nw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:p}=mf(u,r,l),h=r,f={},b=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=dn(e,t)||{};if(u==null)return{};const p=Zm(c),h={x:n,y:r},f=Ec(o),b=kc(f),v=await i.getDimensions(u),x=f==="y",g=x?"top":"left",m=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[f]-h[f]-s.floating[b],k=h[f]-s.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=E?E[y]:0;(!C||!await(i.isElement==null?void 0:i.isElement(E)))&&(C=a.floating[y]||s.floating[b]);const R=S/2-k/2,A=C/2-v[b]/2-1,P=Gn(p[g],A),D=Gn(p[m],A),O=P,B=C-v[b]-D,L=C/2-v[b]/2+R,Z=fu(O,L,B),V=!l.arrow&&So(o)!=null&&L!==Z&&s.reference[b]/2-(LL<=0)){var D,O;const L=(((D=s.flip)==null?void 0:D.index)||0)+1,Z=C[L];if(Z&&(!(p==="alignment"?m!==Vt(Z):!1)||P.every(T=>T.overflows[0]>0&&Vt(T.placement)===m)))return{data:{index:L,overflows:P},reset:{placement:Z}};let V=(O=P.filter(W=>W.overflows[0]<=0).sort((W,T)=>W.overflows[1]-T.overflows[1])[0])==null?void 0:O.placement;if(!V)switch(f){case"bestFit":{var B;const W=(B=P.filter(T=>{if(E){const j=Vt(T.placement);return j===m||j==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(j=>j>0).reduce((j,I)=>j+I,0)]).sort((T,j)=>T[1]-j[1])[0])==null?void 0:B[0];W&&(V=W);break}case"initialPlacement":V=a;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function gf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vf(e){return vw.some(t=>e[t]>=0)}const Aw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=dn(e,t);switch(r){case"referenceHidden":{const s=await hs(t,{...o,elementContext:"reference"}),i=gf(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:vf(i)}}}case"escaped":{const s=await hs(t,{...o,altBoundary:!0}),i=gf(s,n.floating);return{data:{escapedOffsets:i,escaped:vf(i)}}}default:return{}}}}},Jm=new Set(["left","top"]);async function Mw(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=fn(n),a=So(n),l=Vt(n)==="y",u=Jm.has(i)?-1:1,c=s&&l?-1:1,p=dn(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const Lw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Mw(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},_w=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:g,y:m}=x;return{x:g,y:m}}},...l}=dn(e,t),u={x:n,y:r},c=await hs(t,l),p=Vt(fn(o)),h=Sc(p);let f=u[h],b=u[p];if(s){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=f+c[x],y=f-c[g];f=fu(m,f,y)}if(i){const x=p==="y"?"top":"left",g=p==="y"?"bottom":"right",m=b+c[x],y=b-c[g];b=fu(m,b,y)}const v=a.fn({...t,[h]:f,[p]:b});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:s,[p]:i}}}}}},Ow=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=dn(e,t),c={x:n,y:r},p=Vt(o),h=Sc(p);let f=c[h],b=c[p];const v=dn(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=h==="y"?"height":"width",S=s.reference[h]-s.floating[y]+x.mainAxis,k=s.reference[h]+s.reference[y]-x.mainAxis;fk&&(f=k)}if(u){var g,m;const y=h==="y"?"width":"height",S=Jm.has(fn(o)),k=s.reference[p]-s.floating[y]+(S&&((g=i.offset)==null?void 0:g[p])||0)+(S?0:x.crossAxis),E=s.reference[p]+s.reference[y]+(S?0:((m=i.offset)==null?void 0:m[p])||0)-(S?x.crossAxis:0);bE&&(b=E)}return{[h]:f,[p]:b}}}},Dw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=dn(e,t),c=await hs(t,u),p=fn(o),h=So(o),f=Vt(o)==="y",{width:b,height:v}=s.floating;let x,g;p==="top"||p==="bottom"?(x=p,g=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=p,x=h==="end"?"top":"bottom");const m=v-c.top-c.bottom,y=b-c.left-c.right,S=Gn(v-c[x],m),k=Gn(b-c[g],y),E=!t.middlewareData.shift;let C=S,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=m),E&&!h){const P=Ze(c.left,0),D=Ze(c.right,0),O=Ze(c.top,0),B=Ze(c.bottom,0);f?R=b-2*(P!==0||D!==0?P+D:Ze(c.left,c.right)):C=v-2*(O!==0||B!==0?O+B:Ze(c.top,c.bottom))}await l({...t,availableWidth:R,availableHeight:C});const A=await i.getDimensions(a.floating);return b!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function va(){return typeof window<"u"}function ko(e){return eg(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yt(e){var t;return(t=(eg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eg(e){return va()?e instanceof Node||e instanceof tt(e).Node:!1}function Lt(e){return va()?e instanceof Element||e instanceof tt(e).Element:!1}function Gt(e){return va()?e instanceof HTMLElement||e instanceof tt(e).HTMLElement:!1}function yf(e){return!va()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}const Iw=new Set(["inline","contents"]);function Ts(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Iw.has(o)}const zw=new Set(["table","td","th"]);function Fw(e){return zw.has(ko(e))}const $w=[":popover-open",":modal"];function ya(e){return $w.some(t=>{try{return e.matches(t)}catch{return!1}})}const Bw=["transform","translate","scale","rotate","perspective"],Uw=["transform","translate","scale","rotate","perspective","filter"],Vw=["paint","layout","strict","content"];function Cc(e){const t=Pc(),n=Lt(e)?_t(e):e;return Bw.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)||Uw.some(r=>(n.willChange||"").includes(r))||Vw.some(r=>(n.contain||"").includes(r))}function Ww(e){let t=Yn(e);for(;Gt(t)&&!go(t);){if(Cc(t))return t;if(ya(t))return null;t=Yn(t)}return null}function Pc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Hw=new Set(["html","body","#document"]);function go(e){return Hw.has(ko(e))}function _t(e){return tt(e).getComputedStyle(e)}function xa(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yn(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yf(e)&&e.host||Yt(e);return yf(t)?t.host:t}function tg(e){const t=Yn(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&Ts(t)?t:tg(t)}function ms(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=tg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=tt(o);if(s){const a=hu(i);return t.concat(i,i.visualViewport||[],Ts(o)?o:[],a&&n?ms(a):[])}return t.concat(o,ms(o,[],n))}function hu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ng(e){const t=_t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Wi(n)!==s||Wi(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Tc(e){return Lt(e)?e:e.contextElement}function Zr(e){const t=Tc(e);if(!Gt(t))return Kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ng(t);let i=(s?Wi(n.width):n.width)/r,a=(s?Wi(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Qw=Kt(0);function rg(e){const t=tt(e);return!Pc()||!t.visualViewport?Qw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Tc(e);let i=Kt(1);t&&(r?Lt(r)&&(i=Zr(r)):i=Zr(e));const a=Kw(s,n,r)?rg(s):Kt(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,c=o.width/i.x,p=o.height/i.y;if(s){const h=tt(s),f=r&&Lt(r)?tt(r):r;let b=h,v=hu(b);for(;v&&r&&f!==b;){const x=Zr(v),g=v.getBoundingClientRect(),m=_t(v),y=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*x.x,S=g.top+(v.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,p*=x.y,l+=y,u+=S,b=tt(v),v=hu(b)}}return Qi({width:c,height:p,x:l,y:u})}function Nc(e,t){const n=xa(e).scrollLeft;return t?t.left+n:Er(Yt(e)).left+n}function og(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Nc(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Gw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Yt(r),a=t?ya(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Kt(1);const c=Kt(0),p=Gt(r);if((p||!p&&!s)&&((ko(r)!=="body"||Ts(i))&&(l=xa(r)),Gt(r))){const f=Er(r);u=Zr(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const h=i&&!p&&!s?og(i,l,!0):Kt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function Yw(e){return Array.from(e.getClientRects())}function Xw(e){const t=Yt(e),n=xa(e),r=e.ownerDocument.body,o=Ze(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ze(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Nc(e);const a=-n.scrollTop;return _t(r).direction==="rtl"&&(i+=Ze(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function qw(e,t){const n=tt(e),r=Yt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=Pc();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const Zw=new Set(["absolute","fixed"]);function Jw(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Gt(e)?Zr(e):Kt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function xf(e,t,n){let r;if(t==="viewport")r=qw(e,n);else if(t==="document")r=Xw(Yt(e));else if(Lt(t))r=Jw(t,n);else{const o=rg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qi(r)}function sg(e,t){const n=Yn(e);return n===t||!Lt(n)||go(n)?!1:_t(n).position==="fixed"||sg(n,t)}function e2(e,t){const n=t.get(e);if(n)return n;let r=ms(e,[],!1).filter(a=>Lt(a)&&ko(a)!=="body"),o=null;const s=_t(e).position==="fixed";let i=s?Yn(e):e;for(;Lt(i)&&!go(i);){const a=_t(i),l=Cc(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&Zw.has(o.position)||Ts(i)&&!l&&sg(e,i))?r=r.filter(c=>c!==i):o=a,i=Yn(i)}return t.set(e,r),r}function t2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ya(t)?[]:e2(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const p=xf(t,c,o);return u.top=Ze(p.top,u.top),u.right=Gn(p.right,u.right),u.bottom=Gn(p.bottom,u.bottom),u.left=Ze(p.left,u.left),u},xf(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function n2(e){const{width:t,height:n}=ng(e);return{width:t,height:n}}function r2(e,t,n){const r=Gt(t),o=Yt(t),s=n==="fixed",i=Er(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Kt(0);function u(){l.x=Nc(o)}if(r||!r&&!s)if((ko(t)!=="body"||Ts(o))&&(a=xa(t)),r){const f=Er(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const c=o&&!r&&!s?og(o,a):Kt(0),p=i.left+a.scrollLeft-l.x-c.x,h=i.top+a.scrollTop-l.y-c.y;return{x:p,y:h,width:i.width,height:i.height}}function cl(e){return _t(e).position==="static"}function wf(e,t){if(!Gt(e)||_t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Yt(e)===n&&(n=n.ownerDocument.body),n}function ig(e,t){const n=tt(e);if(ya(e))return n;if(!Gt(e)){let o=Yn(e);for(;o&&!go(o);){if(Lt(o)&&!cl(o))return o;o=Yn(o)}return n}let r=wf(e,t);for(;r&&Fw(r)&&cl(r);)r=wf(r,t);return r&&go(r)&&cl(r)&&!Cc(r)?n:r||Ww(e)||n}const o2=async function(e){const t=this.getOffsetParent||ig,n=this.getDimensions,r=await n(e.floating);return{reference:r2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function s2(e){return _t(e).direction==="rtl"}const i2={convertOffsetParentRelativeRectToViewportRelativeRect:Gw,getDocumentElement:Yt,getClippingRect:t2,getOffsetParent:ig,getElementRects:o2,getClientRects:Yw,getDimensions:n2,getScale:Zr,isElement:Lt,isRTL:s2};function ag(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function a2(e,t){let n=null,r;const o=Yt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:p,width:h,height:f}=u;if(a||t(),!h||!f)return;const b=Js(p),v=Js(o.clientWidth-(c+h)),x=Js(o.clientHeight-(p+f)),g=Js(c),y={rootMargin:-b+"px "+-v+"px "+-x+"px "+-g+"px",threshold:Ze(0,Gn(1,l))||1};let S=!0;function k(E){const C=E[0].intersectionRatio;if(C!==l){if(!S)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!ag(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return i(!0),s}function l2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Tc(e),c=o||s?[...u?ms(u):[],...ms(t)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const p=u&&a?a2(u,n):null;let h=-1,f=null;i&&(f=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let b,v=l?Er(e):null;l&&x();function x(){const g=Er(e);v&&!ag(v,g)&&n(),v=g,b=requestAnimationFrame(x)}return n(),()=>{var g;c.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),p==null||p(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const u2=Lw,c2=_w,d2=jw,f2=Dw,p2=Aw,bf=Rw,h2=Ow,m2=(e,t,n)=>{const r=new Map,o={platform:i2,...n},s={...o.platform,_c:r};return Nw(e,t,{...o,platform:s})};var g2=typeof document<"u",v2=function(){},vi=g2?w.useLayoutEffect:v2;function Ki(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(!Ki(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ki(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function lg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sf(e,t){const n=lg(e);return Math.round(t*n)/n}function dl(e){const t=w.useRef(e);return vi(()=>{t.current=e}),t}function y2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,p]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=w.useState(r);Ki(h,r)||f(r);const[b,v]=w.useState(null),[x,g]=w.useState(null),m=w.useCallback(T=>{T!==E.current&&(E.current=T,v(T))},[]),y=w.useCallback(T=>{T!==C.current&&(C.current=T,g(T))},[]),S=s||b,k=i||x,E=w.useRef(null),C=w.useRef(null),R=w.useRef(c),A=l!=null,P=dl(l),D=dl(o),O=dl(u),B=w.useCallback(()=>{if(!E.current||!C.current)return;const T={placement:t,strategy:n,middleware:h};D.current&&(T.platform=D.current),m2(E.current,C.current,T).then(j=>{const I={...j,isPositioned:O.current!==!1};L.current&&!Ki(R.current,I)&&(R.current=I,Cs.flushSync(()=>{p(I)}))})},[h,t,n,D,O]);vi(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const L=w.useRef(!1);vi(()=>(L.current=!0,()=>{L.current=!1}),[]),vi(()=>{if(S&&(E.current=S),k&&(C.current=k),S&&k){if(P.current)return P.current(S,k,B);B()}},[S,k,B,P,A]);const Z=w.useMemo(()=>({reference:E,floating:C,setReference:m,setFloating:y}),[m,y]),V=w.useMemo(()=>({reference:S,floating:k}),[S,k]),W=w.useMemo(()=>{const T={position:n,left:0,top:0};if(!V.floating)return T;const j=Sf(V.floating,c.x),I=Sf(V.floating,c.y);return a?{...T,transform:"translate("+j+"px, "+I+"px)",...lg(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:I}},[n,a,V.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:B,refs:Z,elements:V,floatingStyles:W}),[c,B,Z,V,W])}const x2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?bf({element:r.current,padding:o}).fn(n):{}:r?bf({element:r,padding:o}).fn(n):{}}}},w2=(e,t)=>({...u2(e),options:[e,t]}),b2=(e,t)=>({...c2(e),options:[e,t]}),S2=(e,t)=>({...h2(e),options:[e,t]}),k2=(e,t)=>({...d2(e),options:[e,t]}),E2=(e,t)=>({...f2(e),options:[e,t]}),C2=(e,t)=>({...p2(e),options:[e,t]}),P2=(e,t)=>({...x2(e),options:[e,t]});var T2="Arrow",ug=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return d.jsx(Ye.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});ug.displayName=T2;var N2=ug;function R2(e){const[t,n]=w.useState(void 0);return Kn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var cg="Popper",[dg,fg]=pa(cg),[oE,pg]=dg(cg),hg="PopperAnchor",mg=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=pg(hg,n),i=w.useRef(null),a=Mt(t,i);return w.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:d.jsx(Ye.div,{...o,ref:a})});mg.displayName=hg;var Rc="PopperContent",[j2,A2]=dg(Rc),gg=w.forwardRef((e,t)=>{var Y,Xt,Ot,nr,hn,Tr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:b,...v}=e,x=pg(Rc,n),[g,m]=w.useState(null),y=Mt(t,mn=>m(mn)),[S,k]=w.useState(null),E=R2(S),C=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,A=r+(s!=="center"?"-"+s:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(u)?u:[u],O=D.length>0,B={padding:P,boundary:D.filter(L2),altBoundary:O},{refs:L,floatingStyles:Z,placement:V,isPositioned:W,middlewareData:T}=y2({strategy:"fixed",placement:A,whileElementsMounted:(...mn)=>l2(...mn,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[w2({mainAxis:o+R,alignmentAxis:i}),l&&b2({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?S2():void 0,...B}),l&&k2({...B}),E2({...B,apply:({elements:mn,rects:Rs,availableWidth:Ra,availableHeight:js})=>{const{width:ja,height:Eo}=Rs.reference,Nr=mn.floating.style;Nr.setProperty("--radix-popper-available-width",`${Ra}px`),Nr.setProperty("--radix-popper-available-height",`${js}px`),Nr.setProperty("--radix-popper-anchor-width",`${ja}px`),Nr.setProperty("--radix-popper-anchor-height",`${Eo}px`)}}),S&&P2({element:S,padding:a}),_2({arrowWidth:C,arrowHeight:R}),h&&C2({strategy:"referenceHidden",...B})]}),[j,I]=xg(V),H=Qn(b);Kn(()=>{W&&(H==null||H())},[W,H]);const U=(Y=T.arrow)==null?void 0:Y.x,q=(Xt=T.arrow)==null?void 0:Xt.y,$=((Ot=T.arrow)==null?void 0:Ot.centerOffset)!==0,[F,te]=w.useState();return Kn(()=>{g&&te(window.getComputedStyle(g).zIndex)},[g]),d.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:W?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(nr=T.transformOrigin)==null?void 0:nr.x,(hn=T.transformOrigin)==null?void 0:hn.y].join(" "),...((Tr=T.hide)==null?void 0:Tr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(j2,{scope:n,placedSide:j,onArrowChange:k,arrowX:U,arrowY:q,shouldHideArrow:$,children:d.jsx(Ye.div,{"data-side":j,"data-align":I,...v,ref:y,style:{...v.style,animation:W?void 0:"none"}})})})});gg.displayName=Rc;var vg="PopperArrow",M2={top:"bottom",right:"left",bottom:"top",left:"right"},yg=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=A2(vg,r),i=M2[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(N2,{...o,ref:n,style:{...o.style,display:"block"}})})});yg.displayName=vg;function L2(e){return e!==null}var _2=e=>({name:"transformOrigin",options:e,fn(t){var x,g,m;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=xg(n),p={start:"0%",center:"50%",end:"100%"}[c],h=(((g=o.arrow)==null?void 0:g.x)??0)+a/2,f=(((m=o.arrow)==null?void 0:m.y)??0)+l/2;let b="",v="";return u==="bottom"?(b=i?p:`${h}px`,v=`${-l}px`):u==="top"?(b=i?p:`${h}px`,v=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,v=i?p:`${f}px`):u==="left"&&(b=`${r.floating.width+l}px`,v=i?p:`${f}px`),{data:{x:b,y:v}}}});function xg(e){const[t,n="center"]=e.split("-");return[t,n]}var O2=mg,D2=gg,I2=yg,[wa,sE]=pa("Tooltip",[fg]),jc=fg(),wg="TooltipProvider",z2=700,kf="tooltip.open",[F2,bg]=wa(wg),Sg=e=>{const{__scopeTooltip:t,delayDuration:n=z2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(F2,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Sg.displayName=wg;var kg="Tooltip",[iE,ba]=wa(kg),mu="TooltipTrigger",$2=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ba(mu,n),s=bg(mu,n),i=jc(n),a=w.useRef(null),l=Mt(t,a,o.onTriggerChange),u=w.useRef(!1),c=w.useRef(!1),p=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(O2,{asChild:!0,...i,children:d.jsx(Ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:xe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:xe(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:xe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:xe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:xe(e.onBlur,o.onClose),onClick:xe(e.onClick,o.onClose)})})});$2.displayName=mu;var B2="TooltipPortal",[aE,U2]=wa(B2,{forceMount:void 0}),vo="TooltipContent",Eg=w.forwardRef((e,t)=>{const n=U2(vo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=ba(vo,e.__scopeTooltip);return d.jsx(vc,{present:r||i.open,children:i.disableHoverableContent?d.jsx(Cg,{side:o,...s,ref:t}):d.jsx(V2,{side:o,...s,ref:t})})}),V2=w.forwardRef((e,t)=>{const n=ba(vo,e.__scopeTooltip),r=bg(vo,e.__scopeTooltip),o=w.useRef(null),s=Mt(t,o),[i,a]=w.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:p}=r,h=w.useCallback(()=>{a(null),p(!1)},[p]),f=w.useCallback((b,v)=>{const x=b.currentTarget,g={x:b.clientX,y:b.clientY},m=G2(g,x.getBoundingClientRect()),y=Y2(g,m),S=X2(v.getBoundingClientRect()),k=Z2([...y,...S]);a(k),p(!0)},[p]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(l&&c){const b=x=>f(x,c),v=x=>f(x,l);return l.addEventListener("pointerleave",b),c.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",v)}}},[l,c,f,h]),w.useEffect(()=>{if(i){const b=v=>{const x=v.target,g={x:v.clientX,y:v.clientY},m=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),y=!q2(g,i);m?h():y&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,c,i,u,h]),d.jsx(Cg,{...e,ref:s})}),[W2,H2]=wa(kg,{isInside:!1}),Q2=Yy("TooltipContent"),Cg=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=ba(vo,n),u=jc(n),{onClose:c}=l;return w.useEffect(()=>(document.addEventListener(kf,c),()=>document.removeEventListener(kf,c)),[c]),w.useEffect(()=>{if(l.trigger){const p=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&c()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,c]),d.jsx(gc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:c,children:d.jsxs(D2,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(Q2,{children:r}),d.jsx(W2,{scope:n,isInside:!0,children:d.jsx(w1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Eg.displayName=vo;var Pg="TooltipArrow",K2=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jc(n);return H2(Pg,n).isInside?null:d.jsx(I2,{...o,...r,ref:t})});K2.displayName=Pg;function G2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Y2(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 X2(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 q2(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=h>r&&n<(p-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function Z2(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),J2(t)}function J2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var eb=Sg,Tg=Eg;const tb=eb,nb=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(Tg,{ref:r,sideOffset:t,className:er("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}));nb.displayName=Tg.displayName;var Sa=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(){}},ka=typeof window>"u"||"Deno"in globalThis;function kt(){}function rb(e,t){return typeof e=="function"?e(t):e}function ob(e){return typeof e=="number"&&e>=0&&e!==1/0}function sb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gu(e,t){return typeof e=="function"?e(t):e}function ib(e,t){return typeof e=="function"?e(t):e}function Ef(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ac(i,t.options))return!1}else if(!vs(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Cf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(gs(t.options.mutationKey)!==gs(s))return!1}else if(!vs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ac(e,t){return((t==null?void 0:t.queryKeyHashFn)||gs)(e)}function gs(e){return JSON.stringify(e,(t,n)=>vu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vs(e[n],t[n])):!1}function Ng(e,t){if(e===t)return e;const n=Pf(e)&&Pf(t);if(n||vu(e)&&vu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function lb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ng(e,t):t}function ub(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function cb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Mc=Symbol();function Rg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Mc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dr,Nn,eo,Uf,db=(Uf=class extends Sa{constructor(){super();ne(this,dr);ne(this,Nn);ne(this,eo);K(this,eo,t=>{if(!ka&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,Nn)||this.setEventListener(N(this,eo))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Nn))==null||t.call(this),K(this,Nn,void 0))}setEventListener(t){var n;K(this,eo,t),(n=N(this,Nn))==null||n.call(this),K(this,Nn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,dr)!==t&&(K(this,dr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,dr)=="boolean"?N(this,dr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},dr=new WeakMap,Nn=new WeakMap,eo=new WeakMap,Uf),jg=new db,to,Rn,no,Vf,fb=(Vf=class extends Sa{constructor(){super();ne(this,to,!0);ne(this,Rn);ne(this,no);K(this,no,t=>{if(!ka&&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(){N(this,Rn)||this.setEventListener(N(this,no))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Rn))==null||t.call(this),K(this,Rn,void 0))}setEventListener(t){var n;K(this,no,t),(n=N(this,Rn))==null||n.call(this),K(this,Rn,t(this.setOnline.bind(this)))}setOnline(t){N(this,to)!==t&&(K(this,to,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,to)}},to=new WeakMap,Rn=new WeakMap,no=new WeakMap,Vf),Gi=new fb;function pb(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function hb(e){return Math.min(1e3*2**e,3e4)}function Ag(e){return(e??"online")==="online"?Gi.isOnline():!0}var Mg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fl(e){return e instanceof Mg}function Lg(e){let t=!1,n=0,r=!1,o;const s=pb(),i=v=>{var x;r||(h(new Mg(v)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>jg.isFocused()&&(e.networkMode==="always"||Gi.isOnline())&&e.canRun(),c=()=>Ag(e.networkMode)&&e.canRun(),p=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),o==null||o(),s.resolve(v))},h=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),o==null||o(),s.reject(v))},f=()=>new Promise(v=>{var x;o=g=>{(r||u())&&v(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(p).catch(g=>{var E;if(r)return;const m=e.retry??(ka?0:3),y=e.retryDelay??hb,S=typeof y=="function"?y(n,g):y,k=m===!0||typeof m=="number"&&nu()?void 0:f()).then(()=>{t?h(g):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():f().then(b),s)}}var mb=e=>setTimeout(e,0);function gb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=mb;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ie=gb(),fr,Wf,_g=(Wf=class{constructor(){ne(this,fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ob(this.gcTime)&&K(this,fr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ka?1/0:5*60*1e3))}clearGcTimeout(){N(this,fr)&&(clearTimeout(N(this,fr)),K(this,fr,void 0))}},fr=new WeakMap,Wf),ro,pr,ut,hr,Me,ys,mr,Et,Jt,Hf,vb=(Hf=class extends _g{constructor(t){super();ne(this,Et);ne(this,ro);ne(this,pr);ne(this,ut);ne(this,hr);ne(this,Me);ne(this,ys);ne(this,mr);K(this,mr,!1),K(this,ys,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,hr,t.client),K(this,ut,N(this,hr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,ro,xb(this.options)),this.state=t.state??N(this,ro),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,Me))==null?void 0:t.promise}setOptions(t){this.options={...N(this,ys),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,ut).remove(this)}setData(t,n){const r=lb(this.state.data,t,this.options);return Re(this,Et,Jt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Re(this,Et,Jt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,Me))==null?void 0:r.promise;return(o=N(this,Me))==null||o.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,ro))}isActive(){return this.observers.some(t=>ib(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gu(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:!sb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Me))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Me))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,ut).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,Me)&&(N(this,mr)?N(this,Me).cancel({revert:!0}):N(this,Me).cancelRetry()),this.scheduleGc()),N(this,ut).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,Et,Jt).call(this,{type:"invalidate"})}fetch(t,n){var u,c,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Me))return N(this,Me).continueRetry(),N(this,Me).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:()=>(K(this,mr,!0),r.signal)})},s=()=>{const h=Rg(this.options,n),b=(()=>{const v={client:N(this,hr),queryKey:this.queryKey,meta:this.meta};return o(v),v})();return K(this,mr,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,hr),state:this.state,fetchFn:s};return o(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),K(this,pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Re(this,Et,Jt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=h=>{var f,b,v,x;fl(h)&&h.silent||Re(this,Et,Jt).call(this,{type:"error",error:h}),fl(h)||((b=(f=N(this,ut).config).onError)==null||b.call(f,h,this),(x=(v=N(this,ut).config).onSettled)==null||x.call(v,this.state.data,h,this)),this.scheduleGc()};return K(this,Me,Lg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,b,v,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(g){l(g);return}(b=(f=N(this,ut).config).onSuccess)==null||b.call(f,h,this),(x=(v=N(this,ut).config).onSettled)==null||x.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{Re(this,Et,Jt).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Re(this,Et,Jt).call(this,{type:"pause"})},onContinue:()=>{Re(this,Et,Jt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,Me).start()}},ro=new WeakMap,pr=new WeakMap,ut=new WeakMap,hr=new WeakMap,Me=new WeakMap,ys=new WeakMap,mr=new WeakMap,Et=new WeakSet,Jt=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,...yb(r.data,this.options),fetchMeta:t.meta??null};case"success":return K(this,pr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return fl(o)&&o.revert&&N(this,pr)?{...N(this,pr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,ut).notify({query:this,type:"updated",action:t})})},Hf);function yb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ag(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xb(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 zt,Qf,wb=(Qf=class extends Sa{constructor(t={}){super();ne(this,zt);this.config=t,K(this,zt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ac(o,n);let i=this.get(s);return i||(i=new vb({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,zt).has(t.queryHash)||(N(this,zt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,zt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,zt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ie.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,zt).get(t)}getAll(){return[...N(this,zt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ef(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ef(t,r)):n}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},zt=new WeakMap,Qf),Ft,Oe,gr,$t,kn,Kf,bb=(Kf=class extends _g{constructor(t){super();ne(this,$t);ne(this,Ft);ne(this,Oe);ne(this,gr);this.mutationId=t.mutationId,K(this,Oe,t.mutationCache),K(this,Ft,[]),this.state=t.state||Sb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Ft).includes(t)||(N(this,Ft).push(t),this.clearGcTimeout(),N(this,Oe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Ft,N(this,Ft).filter(n=>n!==t)),this.scheduleGc(),N(this,Oe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Ft).length||(this.state.status==="pending"?this.scheduleGc():N(this,Oe).remove(this))}continue(){var t;return((t=N(this,gr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,c,p,h,f,b,v,x,g,m,y,S,k,E,C,R;const n=()=>{Re(this,$t,kn).call(this,{type:"continue"})};K(this,gr,Lg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,P)=>{Re(this,$t,kn).call(this,{type:"failed",failureCount:A,error:P})},onPause:()=>{Re(this,$t,kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Oe).canRun(this)}));const r=this.state.status==="pending",o=!N(this,gr).canStart();try{if(r)n();else{Re(this,$t,kn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=N(this,Oe).config).onMutate)==null?void 0:i.call(s,t,this));const P=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));P!==this.state.context&&Re(this,$t,kn).call(this,{type:"pending",context:P,variables:t,isPaused:o})}const A=await N(this,gr).start();return await((c=(u=N(this,Oe).config).onSuccess)==null?void 0:c.call(u,A,t,this.state.context,this)),await((h=(p=this.options).onSuccess)==null?void 0:h.call(p,A,t,this.state.context)),await((b=(f=N(this,Oe).config).onSettled)==null?void 0:b.call(f,A,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,A,null,t,this.state.context)),Re(this,$t,kn).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(g=N(this,Oe).config).onError)==null?void 0:m.call(g,A,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,A,t,this.state.context)),await((E=(k=N(this,Oe).config).onSettled)==null?void 0:E.call(k,void 0,A,this.state.variables,this.state.context,this)),await((R=(C=this.options).onSettled)==null?void 0:R.call(C,void 0,A,t,this.state.context)),A}finally{Re(this,$t,kn).call(this,{type:"error",error:A})}}finally{N(this,Oe).runNext(this)}}},Ft=new WeakMap,Oe=new WeakMap,gr=new WeakMap,$t=new WeakSet,kn=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),Ie.batch(()=>{N(this,Ft).forEach(r=>{r.onMutationUpdate(t)}),N(this,Oe).notify({mutation:this,type:"updated",action:t})})},Kf);function Sb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nn,Ct,xs,Gf,kb=(Gf=class extends Sa{constructor(t={}){super();ne(this,nn);ne(this,Ct);ne(this,xs);this.config=t,K(this,nn,new Set),K(this,Ct,new Map),K(this,xs,0)}build(t,n,r){const o=new bb({mutationCache:this,mutationId:++Ms(this,xs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,nn).add(t);const n=ei(t);if(typeof n=="string"){const r=N(this,Ct).get(n);r?r.push(t):N(this,Ct).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,nn).delete(t)){const n=ei(t);if(typeof n=="string"){const r=N(this,Ct).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,Ct).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ei(t);if(typeof n=="string"){const r=N(this,Ct).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ei(t);if(typeof n=="string"){const o=(r=N(this,Ct).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ie.batch(()=>{N(this,nn).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,nn).clear(),N(this,Ct).clear()})}getAll(){return Array.from(N(this,nn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Cf(n,r))}findAll(t={}){return this.getAll().filter(n=>Cf(t,n))}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ie.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},nn=new WeakMap,Ct=new WeakMap,xs=new WeakMap,Gf);function ei(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Nf(e){return{onFetch:(t,n)=>{var c,p,h,f,b;const r=t.options,o=(h=(p=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:p.fetchMore)==null?void 0:h.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},g=Rg(t.options,t.fetchOptions),m=async(y,S,k)=>{if(v)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const C=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return x(D),D})(),R=await g(C),{maxPages:A}=t.options,P=k?cb:ub;return{pages:P(y.pages,R,A),pageParams:P(y.pageParams,S,A)}};if(o&&s.length){const y=o==="backward",S=y?Eb:Rf,k={pages:s,pageParams:i},E=S(r,k);a=await m(k,E,y)}else{const y=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:Rf(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Rf(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 Eb(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,jn,An,oo,so,Mn,io,ao,Yf,Cb=(Yf=class{constructor(e={}){ne(this,he);ne(this,jn);ne(this,An);ne(this,oo);ne(this,so);ne(this,Mn);ne(this,io);ne(this,ao);K(this,he,e.queryCache||new wb),K(this,jn,e.mutationCache||new kb),K(this,An,e.defaultOptions||{}),K(this,oo,new Map),K(this,so,new Map),K(this,Mn,0)}mount(){Ms(this,Mn)._++,N(this,Mn)===1&&(K(this,io,jg.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,he).onFocus())})),K(this,ao,Gi.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,he).onOnline())})))}unmount(){var e,t;Ms(this,Mn)._--,N(this,Mn)===0&&((e=N(this,io))==null||e.call(this),K(this,io,void 0),(t=N(this,ao))==null||t.call(this),K(this,ao,void 0))}isFetching(e){return N(this,he).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,jn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,he).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,he).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(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=N(this,he).get(r.queryHash),s=o==null?void 0:o.state.data,i=rb(t,s);if(i!==void 0)return N(this,he).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>N(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=N(this,he).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,he);Ie.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,he);return Ie.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ie.batch(()=>N(this,he).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Ie.batch(()=>(N(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=Ie.batch(()=>N(this,he).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(kt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,he).build(this,t);return n.isStaleByTime(gu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=Nf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Nf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gi.isOnline()?N(this,jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,he)}getMutationCache(){return N(this,jn)}getDefaultOptions(){return N(this,An)}setDefaultOptions(e){K(this,An,e)}setQueryDefaults(e,t){N(this,oo).set(gs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,oo).values()],n={};return t.forEach(r=>{vs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,so).set(gs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,so).values()],n={};return t.forEach(r=>{vs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,An).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ac(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===Mc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,An).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,he).clear(),N(this,jn).clear()}},he=new WeakMap,jn=new WeakMap,An=new WeakMap,oo=new WeakMap,so=new WeakMap,Mn=new WeakMap,io=new WeakMap,ao=new WeakMap,Yf),Pb=w.createContext(void 0),Tb=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Pb.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 Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Og(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rb(){return Math.random().toString(36).substr(2,8)}function Af(e,t){return{usr:e.state,key:e.key,idx:t}}function yu(e,t,n,r){return n===void 0&&(n=null),Yi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ea(t):t,{state:n,key:t&&t.key||r||Rb()})}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 Ea(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 jb(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=On.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Yi({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function p(){a=On.Pop;let x=c(),g=x==null?null:x-u;u=x,l&&l({action:a,location:v.location,delta:g})}function h(x,g){a=On.Push;let m=yu(v.location,x,g);u=c()+1;let y=Af(m,u),S=v.createHref(m);try{i.pushState(y,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}s&&l&&l({action:a,location:v.location,delta:1})}function f(x,g){a=On.Replace;let m=yu(v.location,x,g);u=c();let y=Af(m,u),S=v.createHref(m);i.replaceState(y,"",S),s&&l&&l({action:a,location:v.location,delta:0})}function b(x){let g=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof x=="string"?x:Dg(x);return m=m.replace(/ $/,"%20"),Ge(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(jf,p),l=x,()=>{o.removeEventListener(jf,p),l=null}},createHref(x){return t(o,x)},createURL:b,encodeLocation(x){let g=b(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(x){return i.go(x)}};return v}var Mf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mf||(Mf={}));function Ab(e,t,n){return n===void 0&&(n="/"),Mb(e,t,n,!1)}function Mb(e,t,n,r){let o=typeof t=="string"?Ea(t):t,s=Fg(o.pathname||"/",n);if(s==null)return null;let i=Ig(e);Lb(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Ge(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Jr([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Ge(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ig(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:$b(u,s.index),routesMeta:c})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of zg(s.path))o(s,i,l)}),t}function zg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=zg(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Lb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _b=/^:[\w-]+$/,Ob=3,Db=2,Ib=1,zb=10,Fb=-2,Lf=e=>e==="*";function $b(e,t){let n=e.split("/"),r=n.length;return n.some(Lf)&&(r+=Fb),t&&(r+=Db),n.filter(o=>!Lf(o)).reduce((o,s)=>o+(_b.test(s)?Ob:s===""?Ib:zb),r)}function Bb(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 Ub(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:h,isOptional:f}=c;if(h==="*"){let v=a[p]||"";i=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const b=a[p];return f&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function Vb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Og(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Wb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Og(!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 Fg(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 Jr=e=>e.join("/").replace(/\/\/+/g,"/"),Hb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function Qb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $g=["post","put","patch","delete"];new Set($g);const Kb=["get",...$g];new Set(Kb);/** * 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 Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},a,x.params),pathname:Jr([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Jr([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&v?w.createElement(Ca.Provider,{value:{location:Xi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:On.Pop}},v):v}function Zb(){let e=iS(),t=Qb(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 Jb=w.createElement(Zb,null);class eS 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(Pa.Provider,{value:this.props.routeContext},w.createElement(Ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tS(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(Gb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Pa.Provider,{value:t},r)}function nS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);c>=0||Ge(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,p,h)=>{let f,b=!1,v=null,x=null;n&&(f=a&&p.route.id?a[p.route.id]:void 0,v=p.route.errorElement||Jb,l&&(u<0&&h===0?(b=!0,x=null):u===h&&(b=!0,x=p.route.hydrateFallbackElement||null)));let g=t.concat(i.slice(0,h+1)),m=()=>{let y;return f?y=v:b?y=x:p.route.Component?y=w.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=c,w.createElement(tS,{match:p,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?w.createElement(eS,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var xu=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}(xu||{});function rS(e){let t=w.useContext(Yb);return t||Ge(!1),t}function oS(e){let t=w.useContext(Pa);return t||Ge(!1),t}function sS(e){let t=oS(),n=t.matches[t.matches.length-1];return n.route.id||Ge(!1),n.route.id}function iS(){var e;let t=w.useContext(Ug),n=rS(xu.UseRouteError),r=sS(xu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function aS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wu(e){Ge(!1)}function lS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=On.Pop,navigator:s,static:i=!1,future:a}=e;Lc()&&Ge(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:s,static:i,future:Xi({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=Ea(r));let{pathname:c="/",search:p="",hash:h="",state:f=null,key:b="default"}=r,v=w.useMemo(()=>{let x=Fg(c,l);return x==null?null:{location:{pathname:x,search:p,hash:h,state:f,key:b},navigationType:o}},[l,c,p,h,f,b,o]);return v==null?null:w.createElement(Bg.Provider,{value:u},w.createElement(Ca.Provider,{children:n,value:v}))}function uS(e){let{children:t,location:n}=e;return Xb(bu(t),n)}new Promise(()=>{});function bu(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let s=[...t,o];if(r.type===w.Fragment){n.push.apply(n,bu(r.props.children,s));return}r.type!==wu&&Ge(!1),!r.props.index||!r.props.children||Ge(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=bu(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const cS="6";try{window.__reactRouterVersion=cS}catch{}const dS="startTransition",Of=ap[dS];function fS(e){let{basename:t,children:n,future:r,window:o}=e,s=w.useRef();s.current==null&&(s.current=Nb({window:o,v5Compat:!0}));let i=s.current,[a,l]=w.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=w.useCallback(p=>{u&&Of?Of(()=>l(p)):l(p)},[l,u]);return w.useLayoutEffect(()=>i.listen(c),[i,c]),w.useEffect(()=>aS(r),[r]),w.createElement(lS,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var Df;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Df||(Df={}));var If;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(If||(If={}));const pS=$m("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"}}),Xn=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Ky:"button";return d.jsx(i,{className:er(pS({variant:t,size:n,className:e})),ref:s,...o})});Xn.displayName="Button";const zf=({duration:e,isActive:t,onComplete:n,position:r="left",isGlobal:o=!1})=>{const[s,i]=w.useState(e),a=r==="right"?"right-6":"left-6",l=s<=300;w.useEffect(()=>{i(e)},[e,t]),w.useEffect(()=>{if(!t||s<=0){s===0&&n&&n();return}const c=setInterval(()=>{i(p=>p<=1?(clearInterval(c),0):p-1)},1e3);return()=>clearInterval(c)},[t,s,n]);const u=c=>{if(c>=60){const p=Math.floor(c/60),h=c%60;return`${p.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`}return c.toString().padStart(3,"0")};if(o){if(!t&&s===e)return d.jsx("div",{className:`absolute top-6 ${a} z-50`,children:d.jsx("div",{className:"bg-black/60 border border-blue-800/40 rounded-lg px-3 py-1.5 shadow-sm",children:d.jsx("div",{className:"font-mono text-lg font-medium text-blue-800/70 tracking-wider",children:"READY"})})});const c=l?"border-red-900/40":"border-blue-800/40",p=l?"text-red-900":"text-blue-700",h=l?"rgba(127, 29, 29, 0.3)":"rgba(30, 64, 175, 0.3)";return d.jsx("div",{className:`absolute top-6 ${a} z-50`,children:d.jsx("div",{className:`bg-black/60 border ${c} rounded-lg px-3 py-1.5 shadow-sm`,children:d.jsx("div",{className:`font-mono text-lg font-medium ${p} tracking-wider`,style:{textShadow:`0 0 8px ${h}`},children:u(s)})})})}return!t&&s===e&&e>60?d.jsx("div",{className:`absolute top-6 ${a} z-50`,children:d.jsx("div",{className:"bg-black border-2 border-yellow-500/50 rounded-lg px-4 py-2 shadow-lg animate-pulse",children:d.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"})})}):d.jsx("div",{className:`absolute top-6 ${a} z-50`,children:d.jsx("div",{className:"bg-black border-2 border-green-500/50 rounded-lg px-4 py-2 shadow-lg",children:d.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(s)})})})},hS=({currentSlide:e,totalSlides:t,slideTitles:n,onSlideSelect:r})=>{const[o,s]=w.useState(!1),i=a=>{r(a),s(!1)};return d.jsxs(d.Fragment,{children:[d.jsxs("button",{onClick:()=>s(!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&&d.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-4",children:d.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:[d.jsx("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide flex-1",children:n.map((a,l)=>d.jsx("button",{onClick:()=>i(l),className:`shrink-0 h-[28px] px-3 rounded text-xs font-medium transition-all ${l===e?"bg-cyan-600 text-white":"bg-gray-800 text-gray-300 hover:bg-gray-700"}`,children:l+1},l))}),d.jsx(Xn,{variant:"ghost",size:"icon",onClick:()=>s(!1),className:"text-white hover:bg-gray-800 h-7 w-7 shrink-0",children:d.jsx(ga,{className:"h-4 w-4"})})]})})]})},mS=({isOpen:e,onClose:t,isMobile:n=!1})=>{if(w.useEffect(()=>{if(!e)return;const s=i=>{i.key==="Escape"&&(i.preventDefault(),i.stopPropagation(),t())};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[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 d.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-8",children:d.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-full max-w-md overflow-hidden border border-gray-700",children:[d.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-700",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:n?"Touch Controls":"Keyboard Shortcuts"}),d.jsx(Xn,{variant:"ghost",size:"icon",onClick:t,className:"text-white hover:bg-gray-800",children:d.jsx(ga,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"p-6 space-y-3",children:[n&&d.jsx(d.Fragment,{children:o.map((s,i)=>d.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-gray-800 rounded-lg",children:[d.jsx("span",{className:"text-gray-300 text-sm",children:s.action}),d.jsx("kbd",{className:"px-3 py-1.5 text-xs font-semibold text-white bg-gray-700 border border-gray-600 rounded",children:s.key})]},`touch-${i}`))}),!n&&d.jsx(d.Fragment,{children:r.map((s,i)=>d.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-gray-800 rounded-lg",children:[d.jsx("span",{className:"text-gray-300 text-sm",children:s.action}),d.jsx("kbd",{className:"px-3 py-1.5 text-xs font-semibold text-white bg-gray-700 border border-gray-600 rounded",children:s.key})]},`keyboard-${i}`))})]})]})})},gS=({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?d.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[100] flex items-center justify-center p-8",children:d.jsxs("div",{className:"bg-gray-900 rounded-lg shadow-2xl w-full max-w-lg overflow-hidden border border-gray-700",children:[d.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-700",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Credits"}),d.jsx(Xn,{variant:"ghost",size:"icon",onClick:t,className:"text-white hover:bg-gray-800",children:d.jsx(ga,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"p-8 space-y-6",children:[d.jsxs("p",{className:"text-white text-lg leading-relaxed",children:["This presentation was prepared by ",d.jsx("span",{className:"font-semibold",children:"Kristijan Lukačin, M.Sc."}),","]}),d.jsx("p",{className:"text-white text-lg",children:"with assistance from:"}),d.jsxs("div",{className:"space-y-3 pl-4",children:[d.jsx("p",{className:"text-gray-300 text-lg",children:"Grok AI, Ph.D."}),d.jsx("p",{className:"text-gray-300 text-lg",children:"ChatGPT AI, Ph.D."}),d.jsx("p",{className:"text-gray-300 text-lg",children:"Gemini AI, Ph.D."}),d.jsx("p",{className:"text-gray-400 text-lg italic",children:"Claude AI, Ph.D. wanted to participate, but was too expensive."})]})]})]})}):null);function vS(){const[e,t]=w.useState("desktop");return w.useEffect(()=>{var i;let n;const r=()=>{var b,v;const a="ontouchstart"in window||navigator.maxTouchPoints>0,l=/iPhone|iPad|iPod|Android|webOS|BlackBerry|Windows Phone|Mobile/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,u=(v=(b=window.screen)==null?void 0:b.orientation)==null?void 0:v.type,c=u?u.includes("portrait"):null,p=window.matchMedia("(orientation: portrait)").matches,h=window.innerHeight>window.innerWidth;t(a&&l?(c!==null?c:p!==void 0?p:h)?"portrait-mobile":"landscape-mobile":"desktop")},o=()=>{clearTimeout(n),n=setTimeout(r,100)};r();const s=(i=window.screen)==null?void 0:i.orientation;return s?window.screen.orientation.addEventListener("change",o):window.addEventListener("orientationchange",o),window.addEventListener("resize",o),()=>{clearTimeout(n),s?window.screen.orientation.removeEventListener("change",o):window.removeEventListener("orientationchange",o),window.removeEventListener("resize",o)}},[]),e}const yS=()=>{const e=vS(),[t,n]=w.useState(()=>localStorage.getItem("forcedDeviceMode"));return w.useEffect(()=>{const s=i=>{i.key==="forcedDeviceMode"&&n(i.newValue)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[]),{deviceMode:t?t==="mobile"?"portrait-mobile":"desktop":e,forcedMode:t,setForcedMode:s=>{s===null?localStorage.removeItem("forcedDeviceMode"):localStorage.setItem("forcedDeviceMode",s),n(s)},isForced:t!==null}},xS=({children:e,slideDurations:t,slideImages:n,slideTitles:r=[]})=>{const[o,s]=w.useState(0),[i,a]=w.useState(0),[l,u]=w.useState(!1),[c,p]=w.useState(0),[h,f]=w.useState(!1),[b,v]=w.useState(!1),[x,g]=w.useState(!1),m=Array.isArray(e)?e.length:1,y=15,{deviceMode:S,forcedMode:k,setForcedMode:E,isForced:C}=yS(),R=S==="portrait-mobile"||S==="landscape-mobile",A=S==="portrait-mobile",[P,D]=w.useState(null),O=w.useRef(0),B=w.useRef(0),L=w.useRef(null),Z=$=>{if(!R)return;const F=$.target;if(F.tagName==="A"||F.closest("a")||F.closest("button")||F.closest('[role="dialog"]')||F.closest("aside")||F.closest("canvas")||F.closest("[data-animated-slide]"))return;const te=$.clientX,Y=window.innerWidth;te(t==null?void 0:t[o])??y;w.useEffect(()=>{if(!n)return;(()=>{for(let F=1;F<=2;F++){const te=o+F;if(te{const Ot=new Image;Ot.src=Xt})}}})()},[o,n]),w.useEffect(()=>{var F;const $=(F=L.current)==null?void 0:F.querySelector("[data-speaker-notes]");D($?$.textContent:null)},[o,e]);const W=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()};w.useEffect(()=>{const $=F=>{F.key==="ArrowRight"||F.key===" "?(F.preventDefault(),T()):F.key==="ArrowLeft"?(F.preventDefault(),j()):F.key==="f"||F.key==="F"?(F.preventDefault(),W()):F.key==="Escape"&&document.fullscreenElement?(F.preventDefault(),document.exitFullscreen()):F.key==="s"||F.key==="S"?(F.preventDefault(),u(!0)):F.key==="r"||F.key==="R"?(F.preventDefault(),p(te=>te+1),u(!1)):F.key==="?"&&(F.preventDefault(),v(te=>!te))};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[o]);const T=()=>{f(!0),s($=>{const F=Math.min($+1,m-1);return F!==$&&a(te=>te+1),F})},j=()=>{s($=>{const F=Math.max($-1,0);return F!==$&&a(te=>te+1),F})},I=$=>{$>=0&&$F+1))},H=$=>{R&&(O.current=$.touches[0].clientX)},U=$=>{R&&(B.current=$.touches[0].clientX)},q=$=>{if(!R)return;const F=50,te=O.current-B.current;if(Math.abs(te)>F){const Y=$.target;if(Y.closest("a")||Y.closest("button")||Y.closest("canvas")||Y.closest("[data-animated-slide]")||Y.closest("[data-scrollable]")){O.current=0,B.current=0;return}te>0?T():j()}O.current=0,B.current=0};return d.jsxs("div",{ref:L,className:"fixed inset-0 bg-black flex items-center justify-center overflow-hidden",onTouchStart:H,onTouchMove:U,onTouchEnd:q,children:[!A&&d.jsx("div",{className:"absolute top-6 right-6 z-50",children:d.jsx(zf,{duration:1800,isActive:l,position:"right",isGlobal:!0},c)}),d.jsx("div",{className:`w-full h-full flex justify-center ${A?"items-start pt-[10px]":"items-center"}`,children:d.jsxs("div",{className:`w-full relative ${A?"h-[60vh]":S==="landscape-mobile"?"h-full":"h-full max-w-[177.78vh] max-h-[56.25vw]"}`,children:[!A&&d.jsx(zf,{duration:V(),isActive:o>0||h},i),d.jsx("div",{className:"w-full h-full relative [&_[data-speaker-notes]]:hidden",onClick:Z,children:Array.isArray(e)?e[o]:e})]})}),P&&d.jsx("div",{className:`absolute left-0 right-0 z-40 ${A?"bottom-16 px-4":"bottom-20 px-8"}`,children:d.jsx("aside",{className:`text-center text-white opacity-90 bg-black/30 backdrop-blur-sm rounded-lg py-2 px-3 ${A?"text-xs":"text-sm"}`,children:P})}),d.jsxs("div",{className:`absolute z-50 flex items-center ${A?"bottom-4 left-0 right-0 justify-between px-4":"bottom-8 left-0 right-0 justify-between px-8"}`,children:[d.jsx("button",{onClick:()=>g(!0),className:`text-white/70 hover:text-white underline underline-offset-2 transition-colors ${A?"text-xs":"text-sm"}`,children:"Made by"}),d.jsxs("div",{className:`flex items-center ${A?"gap-4":"gap-8"}`,children:[d.jsx(Xn,{variant:"ghost",size:"icon",onClick:j,disabled:o===0,className:`smooth-transition bg-transparent border-0 hover:bg-transparent text-white ${A?"h-8 w-8":""}`,children:d.jsx(V1,{className:A?"h-3 w-3":"h-4 w-4"})}),d.jsx(hS,{currentSlide:o,totalSlides:m,slideTitles:r,onSlideSelect:I}),d.jsx(Xn,{variant:"ghost",size:"icon",onClick:T,disabled:o===m-1,className:`smooth-transition bg-transparent border-0 hover:bg-transparent text-white ${A?"h-8 w-8":""}`,children:d.jsx(W1,{className:A?"h-3 w-3":"h-4 w-4"})})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("button",{onClick:()=>{E(k===null?R?"desktop":"mobile":k==="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 ${A?"text-[10px]":"text-xs"}`,"aria-label":"Toggle device mode",children:[R?"DESKTOP":"MOBILE",C&&" ✓"]}),d.jsx("button",{onClick:()=>v(!0),className:`text-white bg-black/30 hover:bg-black/50 backdrop-blur-sm rounded-full flex items-center justify-center transition-colors ${A?"w-8 h-8":"w-10 h-10"}`,"aria-label":"Show keyboard shortcuts",children:d.jsx(H1,{className:A?"h-4 w-4":"h-5 w-5"})})]})]}),d.jsx(mS,{isOpen:b,onClose:()=>v(!1),isMobile:R}),d.jsx(gS,{isOpen:x,onClose:()=>g(!1)})]})},wS=({variant:e="light",className:t=""})=>{const n=e==="dark"?"/ws-agency-logo-dark.png":"/ws-agency-logo-dark-bg.png";return d.jsx("a",{href:"https://ws.agency",target:"_blank",rel:"noopener noreferrer",className:`absolute bottom-12 right-12 ${t}`,children:d.jsx("img",{src:n,alt:"WS.Agency Logo",className:"h-auto hover:opacity-80 transition-opacity cursor-pointer",style:{width:"105px"}})})},Be=({children:e,className:t="",showLogo:n=!0,logoVariant:r="light",backgroundImage:o})=>d.jsxs("div",{className:`w-full h-full p-4 md:p-12 flex flex-col font-body relative ${t}`,children:[o&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),d.jsx("div",{className:"absolute inset-0 -z-10 bg-black/80"})]}),!o&&d.jsx("div",{className:"absolute inset-0 -z-10 bg-slide-bg"}),n&&d.jsx(wS,{variant:r,className:"z-30 hidden md:block"}),e]}),Ff=({title:e,items:t,speakerNotes:n,note:r,backgroundImage:o})=>d.jsxs(Be,{className:"justify-between items-start",backgroundImage:o,children:[d.jsxs("div",{className:"max-w-4xl mx-auto w-full space-y-4 md:space-y-12",children:[d.jsx("h2",{className:"text-2xl md:text-5xl font-heading font-bold text-slide-foreground mb-6 md:mb-16",children:e}),d.jsx("div",{className:"space-y-4 md:space-y-8",children:t.map((s,i)=>{const a=s.icon;return d.jsxs("div",{className:"flex items-center gap-3 md:gap-6 group hover:translate-x-2 transition-transform duration-300",children:[d.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:d.jsx(a,{className:"w-5 h-5 md:w-8 md:h-8 text-slide-accent",strokeWidth:2})}),s.link?d.jsx("a",{href:s.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:s.text}):d.jsx("p",{className:"text-base md:text-3xl text-slide-foreground font-body leading-relaxed",children:s.text})]},i)})})]}),n&&d.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})]}),bS=()=>{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 d.jsx("div",{className:"w-full mt-6 md:mt-10 px-2 md:px-4 overflow-x-auto","data-scrollable":!0,children:d.jsxs("div",{className:"relative min-w-max md:min-w-0 mx-auto max-w-6xl",children:[d.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"}),d.jsx("div",{className:"flex md:grid md:grid-cols-9 gap-3 md:gap-2 items-start",children:e.map((t,n)=>d.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:[d.jsxs("div",{className:"relative",children:[d.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&&d.jsx("div",{className:"absolute inset-0 rounded-full bg-cyan-400 animate-ping opacity-75"})]}),d.jsxs("div",{className:"mt-2 md:mt-3 text-center min-w-[60px] md:min-w-[80px]",children:[d.jsx("p",{className:`text-xs md:text-sm font-bold ${t.isFuture?"text-cyan-600":"text-cyan-400"}`,children:t.version}),d.jsx("p",{className:"text-[10px] md:text-xs text-slate-400 mt-0.5 md:mt-1",children:t.date}),d.jsx("p",{className:"text-[10px] md:text-xs text-slate-300 mt-0.5 md:mt-1 leading-tight",children:t.highlight})]})]},t.version))}),d.jsx("div",{className:"mt-4 md:mt-6 text-center",children:d.jsxs("p",{className:"text-xs md:text-sm text-slate-400 italic",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-400 mr-1 align-middle"}),"Released",d.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"]})})]})})},Xe=({title:e,bullets:t,speakerNotes:n,backgroundImage:r,images:o,imagePosition:s="bottom",note:i,noteLink:a,linkButton:l,linkButtons:u,showDrupalTimeline:c})=>d.jsxs(Be,{className:"justify-between items-start",backgroundImage:r,children:[d.jsxs("div",{className:"max-w-5xl mx-auto w-full space-y-4 md:space-y-12",children:[d.jsx("h2",{className:"text-2xl md:text-5xl font-heading font-bold text-slide-foreground",children:e}),d.jsx("div",{className:"space-y-4 md:space-y-8",children:t.map((p,h)=>d.jsxs("div",{className:"flex items-start gap-3 md:gap-5 group hover:translate-x-2 transition-transform duration-300",children:[d.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"}),d.jsx("p",{className:"text-xl md:text-4xl text-slide-foreground font-body leading-relaxed",children:p})]},h))}),c&&d.jsx(bS,{}),l&&d.jsx("div",{className:"flex justify-center mt-4 md:mt-8",children:d.jsxs(Xn,{onClick:()=>window.open(l.url,"_blank"),className:"text-sm md:text-lg px-4 py-4 md:px-6 md:py-6 gap-2",size:"lg",children:[d.jsx(af,{className:"w-4 h-4 md:w-5 md:h-5"}),l.text]})}),u&&u.length>0&&d.jsx("div",{className:"flex justify-center gap-4 mt-4 md:mt-8 flex-wrap",children:u.map((p,h)=>d.jsxs(Xn,{onClick:()=>window.open(p.url,"_blank"),className:"text-sm md:text-lg px-4 py-4 md:px-6 md:py-6 gap-2",size:"lg",children:[d.jsx(af,{className:"w-4 h-4 md:w-5 md:h-5"}),p.text]},h))}),o&&o.length>0&&d.jsx("div",{className:"mt-4 md:mt-8 flex gap-2 md:gap-4 justify-center flex-wrap",children:o.map((p,h)=>d.jsx("img",{src:p,alt:"",className:"max-h-[256px] md:max-h-[512px] rounded-lg object-contain"},h))})]}),n&&d.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})]}),$f=({title:e,bullets:t,images:n,imageLinks:r,speakerNotes:o,backgroundImage:s})=>d.jsxs(Be,{className:"justify-center items-start",backgroundImage:s,children:[d.jsxs("div",{className:"max-w-6xl mx-auto w-full space-y-4 md:space-y-10",children:[d.jsx("h2",{className:"text-xl md:text-4xl font-heading font-bold text-slide-foreground",children:e}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-10",children:[d.jsx("div",{className:"space-y-4 md:space-y-7",children:t.map((i,a)=>d.jsxs("div",{className:"flex items-start gap-3 md:gap-5 group hover:translate-x-2 transition-transform duration-300",children:[d.jsx("div",{className:"flex-shrink-0 w-3 h-3 md:w-4 md:h-4 rounded-full bg-cyan-400 mt-1 md:mt-2"}),d.jsx("p",{className:"text-lg md:text-3xl text-slide-foreground font-body leading-relaxed",children:i})]},a))}),d.jsx("div",{className:"space-y-2 md:space-y-4",children:n.map((i,a)=>{const l=r==null?void 0:r[a],u=d.jsx("img",{src:i,alt:"",className:"rounded-lg w-full object-cover shadow-lg"},a);return l?d.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"block hover:opacity-80 transition-opacity",children:u},a):u})})]})]}),o&&d.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:o})]}),pl=({statement:e,subtitle:t,icon:n,speakerNotes:r,backgroundImage:o})=>d.jsxs(Be,{className:"justify-center items-center",backgroundImage:o,children:[d.jsxs("div",{className:"max-w-5xl mx-auto text-center space-y-4 md:space-y-8",children:[n&&d.jsx("div",{className:"flex justify-center mb-4 md:mb-8",children:d.jsx("img",{src:n,alt:"",className:"w-16 h-16 md:w-32 md:h-32 object-contain"})}),d.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&&d.jsx("p",{className:"text-lg md:text-2xl text-slide-muted font-body mt-4 md:mt-6",children:t}),d.jsx("div",{className:"w-16 md:w-32 h-1 bg-cyan-400 mx-auto mt-4 md:mt-8"})]}),r&&d.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})]}),SS=({title:e,subtitle:t,roles:n,bullets:r,speakerNotes:o,backgroundImage:s})=>d.jsxs(Be,{className:"justify-center items-start",backgroundImage:s,children:[d.jsxs("div",{className:"max-w-6xl mx-auto w-full space-y-10",children:[d.jsxs("div",{className:"space-y-3",children:[d.jsx("h2",{className:"text-5xl font-heading font-bold text-slide-foreground",children:e}),d.jsx("p",{className:"text-2xl text-slide-muted font-body",children:t})]}),d.jsx("div",{className:"grid grid-cols-5 gap-6 my-8",children:n.map((i,a)=>{const l=i.icon;return d.jsxs("div",{className:"flex flex-col items-center gap-3 p-4 rounded-xl bg-slide-accent/5 border border-slide-accent/20 hover:border-slide-accent/40 transition-colors",children:[d.jsx("div",{className:"w-16 h-16 rounded-full bg-cyan-400/10 flex items-center justify-center",children:d.jsx(l,{className:"w-8 h-8 text-cyan-400",strokeWidth:2})}),d.jsx("p",{className:"text-sm text-slide-foreground text-center font-body leading-tight",children:i.title})]},a)})}),d.jsx("div",{className:"space-y-5 md:space-y-8",children:r.map((i,a)=>d.jsxs("div",{className:"flex items-start gap-3 md:gap-5 group hover:translate-x-2 transition-transform duration-300",children:[d.jsx("div",{className:"flex-shrink-0 w-3 h-3 md:w-4 md:h-4 rounded-full bg-cyan-400 mt-2"}),d.jsx("p",{className:"text-2xl md:text-4xl text-slide-foreground font-body leading-relaxed",children:i})]},a))})]}),o&&d.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:o})]}),kS=({title:e,options:t,deliverables:n,speakerNotes:r,backgroundImage:o})=>d.jsxs(Be,{className:"justify-center items-start",backgroundImage:o,children:[d.jsxs("div",{className:"max-w-6xl mx-auto w-full space-y-10",children:[d.jsx("h2",{className:"text-5xl font-heading font-bold text-slide-foreground text-center",children:e}),d.jsx("div",{className:"grid grid-cols-2 gap-8",children:t.map((s,i)=>d.jsxs("div",{className:"p-8 rounded-xl bg-gradient-to-br from-cyan-400/10 to-cyan-600/5 border-2 border-cyan-400/30 hover:border-cyan-400/60 transition-all duration-300 hover:scale-105",children:[d.jsx("h3",{className:"text-3xl font-heading font-bold text-slide-foreground mb-4",children:s.title}),d.jsx("p",{className:"text-xl text-slide-foreground font-body leading-relaxed",children:s.description})]},i))}),d.jsxs("div",{className:"mt-8 p-6 bg-slate-800/30 rounded-lg border border-cyan-400/20",children:[d.jsx("h4",{className:"text-2xl font-heading font-bold text-slide-foreground mb-4",children:"Deliverables:"}),d.jsx("div",{className:"space-y-3",children:n.map((s,i)=>d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-cyan-400"}),d.jsx("p",{className:"text-lg text-slide-foreground font-body",children:s})]},i))})]})]}),r&&d.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})]}),ES=({title:e,subtitle:t,speakerNotes:n,backgroundImage:r})=>d.jsxs(Be,{className:"justify-center items-center",backgroundImage:r,children:[d.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-4 md:space-y-8",children:[d.jsx("h2",{className:"text-4xl md:text-7xl font-heading font-bold text-slide-foreground",children:e}),d.jsx("div",{className:"w-16 md:w-32 h-1 bg-cyan-400 mx-auto"}),d.jsx("p",{className:"text-xl md:text-3xl text-slide-muted font-body leading-relaxed",children:t})]}),n&&d.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})]}),CS=({name:e,title:t,description:n,logos:r=[],speakerNotes:o,backgroundImage:s})=>d.jsxs(Be,{backgroundImage:s,children:[d.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 md:px-24 text-center pt-8 md:pt-0",children:[d.jsx("h1",{className:"font-heading text-2xl md:text-6xl font-bold text-white mb-2 md:mb-6",children:e}),d.jsx("p",{className:"font-heading text-base md:text-2xl text-white mb-2 md:mb-4",children:t}),d.jsx("p",{className:"text-sm md:text-xl text-white max-w-4xl leading-relaxed mb-4 md:mb-10",children:n}),r.length>0&&d.jsx("div",{className:"flex flex-col md:flex-row items-center justify-center gap-4 md:gap-12 mt-2 md:mt-6",children:r.map((i,a)=>d.jsx("img",{src:i.src,alt:i.alt,className:i.className||"h-8 md:h-16 w-auto max-w-[120px] md:max-w-[200px] object-contain"},a))})]}),o&&d.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:o})]}),PS=({title:e,text:t,image:n,imageAlt:r,speakerNotes:o,backgroundImage:s})=>d.jsxs(Be,{backgroundImage:s,children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-16 h-full items-center px-4 md:px-24",children:[d.jsxs("div",{className:"flex flex-col items-start justify-center gap-4 md:gap-8",children:[e&&d.jsx("h2",{className:"text-2xl md:text-5xl font-bold text-white",children:e}),d.jsx("p",{className:"text-lg md:text-3xl text-white leading-relaxed",children:t})]}),d.jsx("div",{className:"flex items-center justify-center",children:d.jsx("img",{src:n,alt:r,className:"rounded-2xl shadow-2xl max-h-[300px] md:max-h-[600px] w-auto object-cover"})})]}),o&&d.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:o})]}),TS=({image:e,video:t,imageAlt:n,text:r,speakerNotes:o,backgroundImage:s,videoDelay:i=0})=>{const a=w.useRef(null);return w.useEffect(()=>{if(t&&a.current&&i>0){const l=setTimeout(()=>{var u;(u=a.current)==null||u.play()},i*1e3);return()=>clearTimeout(l)}},[t,i]),d.jsxs(Be,{backgroundImage:s,children:[d.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 md:gap-8",children:[r&&d.jsx("h2",{className:"text-2xl md:text-5xl font-heading text-white text-center px-4 md:px-24 font-bold",children:r}),t?d.jsx("video",{ref:a,src:t,className:"max-h-[300px] md:max-h-[600px] w-auto object-contain rounded-2xl shadow-2xl",loop:!0,muted:!0,playsInline:!0}):d.jsx("img",{src:e,alt:n,className:"max-h-[300px] md:max-h-[600px] w-auto object-contain rounded-2xl shadow-2xl"})]}),o&&d.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:o})]})},bt=({image:e,imageAlt:t,title:n,backgroundImage:r,speakerNotes:o,maxHeight:s})=>d.jsxs(Be,{backgroundImage:r,showLogo:!1,children:[d.jsxs("div",{className:"flex flex-col h-full w-full items-center justify-center",children:[n&&d.jsx("h2",{className:"text-2xl md:text-4xl font-bold mb-4 md:mb-6 text-center",children:n}),d.jsx("div",{className:"flex-1 w-full flex items-center justify-center",children:d.jsx("img",{src:e,alt:t,className:"w-full h-full object-contain",style:s?{maxHeight:s}:void 0})})]}),o&&d.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:o})]}),Do=({title:e,items:t=[],images:n=[],image:r,imageAlt:o,backgroundImage:s,speakerNotes:i})=>{const[a,l]=w.useState(0),[u,c]=w.useState(!1),[p,h]=w.useState("none"),[f,b]=w.useState(!1),v=n.length>0?n.length:t.length+(r?1:0);w.useEffect(()=>{const k=()=>{const E=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||window.innerWidth<=768;b(E)};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]),w.useEffect(()=>{const k=E=>{u||(E.key==="ArrowRight"||E.key===" "?a0&&(E.preventDefault(),E.stopPropagation(),g()))};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[a,u,v]);const x=()=>{a===0?(l(1),h("slideIn"),c(!0),setTimeout(()=>{h("none"),c(!1)},500)):a{l(a+1),h("slideIn"),setTimeout(()=>{h("none"),c(!1)},500)},500))},g=()=>{a>0&&(h("slideOut"),c(!0),setTimeout(()=>{l(a-1),h("slideIn"),setTimeout(()=>{h("none"),c(!1)},500)},500))},m=()=>a===0?null:n.length>0&&a<=n.length?d.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?d.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?d.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,y=()=>p==="slideIn"?"animate-slide-in-from-right":p==="slideOut"?"animate-slide-out-to-left":"",S=k=>{if(!f||u)return;const E=k.clientX,C=window.innerWidth,R=E0&&g():a0&&d.jsx("div",{className:y(),children:m()},a),f&&p==="none"&&d.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&&d.jsx("p",{className:"text-xs md:text-sm text-cyan-400/70 animate-pulse",children:"← Tap"}),a{const[n,r]=w.useState(0),[o,s]=w.useState("idle"),[i,a]=w.useState(!1),l=w.useRef(!1),u=["GROK: Output may not always be accurate.","ChatGPT can make mistakes.","Gemini can make mistakes, including about people, so double-check it.","Kristijan is a human, humans make mistakes","Do two mistakes cancel each other out?"];w.useEffect(()=>{const h=()=>{const f=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||window.innerWidth<=768;a(f),console.log("AnimatedDisclaimerSlide - isMobile:",f)};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]),w.useEffect(()=>{const h=f=>{l.current||(f.key==="ArrowRight"||f.key===" "?r(b=>b>=u.length?b:(f.preventDefault(),f.stopImmediatePropagation(),l.current=!0,b>0?(s("exiting"),setTimeout(()=>{r(b+1),s("entering"),setTimeout(()=>{s("idle"),l.current=!1},500)},500),b):(s("entering"),setTimeout(()=>{s("idle"),l.current=!1},600),1))):f.key==="ArrowLeft"&&r(b=>(b<=0||(f.preventDefault(),f.stopImmediatePropagation(),l.current=!0,s("exiting"),setTimeout(()=>{r(b-1),b-1>0?(s("entering"),setTimeout(()=>{s("idle"),l.current=!1},500)):(s("idle"),l.current=!1)},500)),b)))};return window.addEventListener("keydown",h,!0),()=>window.removeEventListener("keydown",h,!0)},[u.length]);const c=()=>{if(n===0)return"";if(n===1){if(o==="entering")return"animate-slide-in-from-right";if(o==="exiting")return"animate-slide-out-to-left"}else{if(o==="entering")return"animate-dissolve-in";if(o==="exiting")return"animate-dissolve-out"}return""},p=h=>{if(console.log("AnimatedDisclaimerSlide clicked:",{isMobile:i,isAnimating:l.current}),!i||l.current)return;const f=h.clientX,b=window.innerWidth,v=f0&&(l.current=!0,s("exiting"),setTimeout(()=>{r(n-1),n-1>0?(s("entering"),setTimeout(()=>{s("idle"),l.current=!1},500)):(s("idle"),l.current=!1)},500)):n0?(s("exiting"),setTimeout(()=>{r(n+1),s("entering"),setTimeout(()=>{s("idle"),l.current=!1},500)},500)):(s("entering"),setTimeout(()=>{s("idle"),l.current=!1},600),r(1)))};return d.jsxs(Be,{className:"justify-center items-center",backgroundImage:e,showLogo:!1,children:[d.jsx("div",{className:"w-full h-full absolute inset-0 flex items-center justify-center",onPointerDown:p,"data-animated-slide":!0,style:{touchAction:"none"},children:d.jsxs("div",{className:"max-w-6xl mx-auto relative px-4",children:[n>0&&d.jsx("div",{className:`text-2xl md:text-4xl lg:text-5xl font-heading font-bold text-white leading-tight px-4 md:px-12 text-center ${c()}`,children:u[n-1]},n),i&&o==="idle"&&d.jsxs("div",{className:"fixed bottom-20 left-0 right-0 flex justify-between px-8 text-center pointer-events-none z-50",children:[n>0&&d.jsx("p",{className:"text-xs md:text-sm text-cyan-400/70 animate-pulse",children:"← Tap"}),n{const e=w.useRef(null),[t,n]=w.useState(0),[r,o]=w.useState(!1),[s,i]=w.useState(!1),a=w.useRef({ball:{x:400,y:400,dx:3,dy:-3,radius:6},paddle:{x:350,y:550,width:100,height:12},bricks:[],score:0,animationId:0}),l=w.useRef(null),u=w.useRef(!1),c=w.useRef(0),p=["#d00000","#ff6d00","#ffba08","#3a86ff","#8338ec","#06ffa5"];w.useEffect(()=>{const v=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||window.matchMedia("(max-width: 768px)").matches;i(v)},[]),w.useEffect(()=>{const v=e.current;if(!v)return;const x=v.getContext("2d");if(!x)return;const g=[],m=80,y=24,S=6,k=10;for(let P=0;P{if(E.add(P.key.toLowerCase()),(P.key===" "||P.key==="Spacebar")&&(P.preventDefault(),o(!0)),P.key==="Escape"){P.preventDefault();const D=a.current.ball;D.x=400,D.y=400,D.dx=3,D.dy=-3,o(!1),a.current.score=0,n(0),a.current.bricks.forEach(O=>O.alive=!0)}},R=P=>{E.delete(P.key.toLowerCase())};window.addEventListener("keydown",C),window.addEventListener("keyup",R);const A=()=>{if(!x||!v)return;const{ball:P,paddle:D,bricks:O}=a.current;if(x.fillStyle="#1a1a1a",x.fillRect(0,0,v.width,v.height),O.forEach(B=>{B.alive&&(x.fillStyle=B.color,x.fillRect(B.x,B.y,B.width,B.height),x.strokeStyle="#000",x.lineWidth=2,x.strokeRect(B.x,B.y,B.width,B.height))}),x.fillStyle="#00ffff",x.fillRect(D.x,D.y,D.width,D.height),x.beginPath(),x.arc(P.x,P.y,P.radius,0,Math.PI*2),x.fillStyle="#ffffff",x.fill(),x.closePath(),r){if(E.has("n")&&(D.x=Math.max(0,D.x-8)),E.has("m")&&(D.x=Math.min(v.width-D.width,D.x+8)),P.x+=P.dx,P.y+=P.dy,(P.x+P.radius>v.width||P.x-P.radius<0)&&(P.dx=-P.dx),P.y-P.radius<0&&(P.dy=-P.dy),P.y+P.radius>D.y&&P.x>D.x&&P.x{L.alive&&P.x+P.radius>L.x&&P.x-P.radiusL.y&&P.y-P.radiusv.height&&(P.x=400,P.y=400,P.dx=3,P.dy=-3,o(!1),a.current.score=0,n(0),O.forEach(L=>L.alive=!0))}a.current.animationId=requestAnimationFrame(A)};return A(),()=>{window.removeEventListener("keydown",C),window.removeEventListener("keyup",R),cancelAnimationFrame(a.current.animationId)}},[r]);const h=v=>{if(!s)return;const x=e.current;if(!x)return;v.preventDefault(),v.stopPropagation();const g=x.getBoundingClientRect(),m=v.touches[0],y=(m.clientX-g.left)/g.width*800,S=(m.clientY-g.top)/g.height*600,k=a.current.paddle;if(S>300&&(u.current=!0,l.current={id:m.identifier,x:y},k.x=Math.max(0,Math.min(800-k.width,y-k.width/2))),!r)o(!0);else{const E=Date.now();if(E-c.current<300){const C=a.current.ball;C.x=400,C.y=400,C.dx=3,C.dy=-3,o(!1),a.current.score=0,n(0),a.current.bricks.forEach(R=>R.alive=!0)}c.current=E}},f=v=>{if(!s||!u.current)return;v.preventDefault(),v.stopPropagation();const x=e.current;if(!x)return;const g=x.getBoundingClientRect(),m=Array.from(v.touches).find(y=>{var S;return y.identifier===((S=l.current)==null?void 0:S.id)});if(m){const y=(m.clientX-g.left)/g.width*800,S=a.current.paddle;S.x=Math.max(0,Math.min(800-S.width,y-S.width/2))}},b=v=>{s&&(v.preventDefault(),v.stopPropagation(),u.current=!1,l.current=null)};return d.jsx(Be,{children:d.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 md:gap-6 bg-gradient-to-b from-gray-900 to-black px-2",children:[d.jsx("h2",{className:"text-2xl md:text-4xl font-bold text-white mb-1 md:mb-2",children:"Thro' the Wall"}),d.jsx("p",{className:"text-base md:text-xl text-cyan-400 mb-1 md:mb-2",children:"ZX Spectrum (1982)"}),d.jsx("a",{href:"https://ai2future-2025.talks.ws.agency/",target:"_blank",rel:"noopener noreferrer",className:"text-sm md:text-lg text-cyan-300 hover:text-cyan-100 underline hover:no-underline transition-colors mb-1 md:mb-2 text-center",children:"Play online: ai2future-2025.talks.ws.agency"}),d.jsxs("div",{className:"text-lg md:text-2xl font-mono text-yellow-400 mb-1 md:mb-2",children:["Score: ",t]}),d.jsxs("div",{className:"relative w-full max-w-[800px]",children:[d.jsx("canvas",{ref:e,width:800,height:600,className:"border-2 md:border-4 border-cyan-600 rounded-lg shadow-2xl w-full h-auto touch-none",style:{imageRendering:"pixelated"},onTouchStart:h,onTouchMove:f,onTouchEnd:b}),!r&&d.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:d.jsxs("div",{className:"bg-black/80 px-4 py-3 md:px-8 md:py-6 rounded-lg border-2 border-cyan-400",children:[d.jsx("p",{className:"text-lg md:text-2xl text-cyan-400 font-bold animate-pulse",children:s?"Tap to Start":"Press SPACE to Start"}),d.jsx("p",{className:"text-xs md:text-sm text-white mt-2",children:s?"Drag Paddle • Double-Tap to Reset":"N = Left • M = Right • ESC = Reset"})]})})]})]})})};var Ta={},Wg={exports:{}},jS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",AS=jS,MS=AS;function Hg(){}function Qg(){}Qg.resetWarningCache=Hg;var LS=function(){function e(r,o,s,i,a,l){if(l!==MS){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qg,resetWarningCache:Hg};return n.PropTypes=n,n};Wg.exports=LS();var Kg=Wg.exports,Gg={L:1,M:0,Q:3,H:2},Yg={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},_S=Yg;function Xg(e){this.mode=_S.MODE_8BIT_BYTE,this.data=e}Xg.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var IS=qg,Nt={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Nt.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Nt.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Pe=0;Pe<8;Pe++)Nt.EXP_TABLE[Pe]=1<=0;)t^=Ee.G15<=0;)t^=Ee.G18<>>=1;return t},getPatternPosition:function(e){return Ee.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case Sn.PATTERN000:return(t+n)%2==0;case Sn.PATTERN001:return t%2==0;case Sn.PATTERN010:return n%3==0;case Sn.PATTERN011:return(t+n)%3==0;case Sn.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case Sn.PATTERN101:return t*n%2+t*n%3==0;case Sn.PATTERN110:return(t*n%2+t*n%3)%2==0;case Sn.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Bf([1],0),n=0;n5&&(n+=3+s-5)}for(var r=0;r=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Wt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)};st.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)};st.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=tr.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t};st.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),o=1;this.make();for(var s=0;s>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}};st.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=tr.getBCHTypeInfo(n),o=0;o<15;o++){var s=!e&&(r>>o&1)==1;o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!e&&(r>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!e};st.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,s=0,i=this.moduleCount-1;i>0;i-=2)for(i==6&&i--;;){for(var a=0;a<2;a++)if(this.modules[r][i-a]==null){var l=!1;s>>o&1)==1);var u=tr.getMask(t,r,i-a);u&&(l=!l),this.modules[r][i-a]=l,o--,o==-1&&(s++,o=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}};Wt.PAD0=236;Wt.PAD1=17;Wt.createData=function(e,t,n){for(var r=e0.getRSBlocks(e,t),o=new t0,s=0;sa*8)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+a*8+")");for(o.getLengthInBits()+4<=a*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=a*8||(o.put(Wt.PAD0,8),o.getLengthInBits()>=a*8));)o.put(Wt.PAD1,8);return Wt.createBytes(o,r)};Wt.createBytes=function(e,t){for(var n=0,r=0,o=0,s=new Array(t.length),i=new Array(t.length),a=0;a=0?f.get(b):0}}for(var v=0,c=0;c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var QS={bgColor:lt.default.oneOfType([lt.default.object,lt.default.string]).isRequired,bgD:lt.default.string.isRequired,fgColor:lt.default.oneOfType([lt.default.object,lt.default.string]).isRequired,fgD:lt.default.string.isRequired,size:lt.default.number.isRequired,title:lt.default.string,viewBoxSize:lt.default.number.isRequired,xmlns:lt.default.string},Oc=(0,n0.forwardRef)(function(e,t){var n=e.bgColor,r=e.bgD,o=e.fgD,s=e.fgColor,i=e.size,a=e.title,l=e.viewBoxSize,u=e.xmlns,c=u===void 0?"http://www.w3.org/2000/svg":u,p=HS(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return ni.default.createElement("svg",VS({},p,{height:i,ref:t,viewBox:"0 0 "+l+" "+l,width:i,xmlns:c}),a?ni.default.createElement("title",null,a):null,ni.default.createElement("path",{d:r,fill:n}),ni.default.createElement("path",{d:o,fill:s}))});Oc.displayName="QRCodeSvg";Oc.propTypes=QS;_c.default=Oc;Object.defineProperty(Ta,"__esModule",{value:!0});Ta.QRCode=void 0;var KS=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var rk={bgColor:Zt.default.oneOfType([Zt.default.object,Zt.default.string]),fgColor:Zt.default.oneOfType([Zt.default.object,Zt.default.string]),level:Zt.default.string,size:Zt.default.number,value:Zt.default.string.isRequired},Na=(0,o0.forwardRef)(function(e,t){var n=e.bgColor,r=n===void 0?"#FFFFFF":n,o=e.fgColor,s=o===void 0?"#000000":o,i=e.level,a=i===void 0?"L":i,l=e.size,u=l===void 0?256:l,c=e.value,p=nk(e,["bgColor","fgColor","level","size","value"]),h=new ZS.default(-1,XS.default[a]);h.addData(c),h.make();var f=h.modules;return JS.default.createElement(tk.default,KS({},p,{bgColor:r,bgD:f.map(function(b,v){return b.map(function(x,g){return x?"":"M "+g+" "+v+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:s,fgD:f.map(function(b,v){return b.map(function(x,g){return x?"M "+g+" "+v+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:u,viewBoxSize:f.length}))});Ta.QRCode=Na;Na.displayName="QRCode";Na.propTypes=rk;var ok=Ta.default=Na;const sk=({title:e,subtitle:t,url:n,backgroundImage:r})=>d.jsx(Be,{backgroundImage:r,children:d.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 md:gap-8 px-4 md:px-16",children:[d.jsx("h1",{className:"text-3xl md:text-6xl font-bold text-white text-center mb-2 md:mb-4",children:e}),d.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"bg-white p-4 md:p-8 rounded-2xl shadow-2xl hover:scale-105 transition-transform cursor-pointer",children:d.jsx(ok,{value:n,size:window.innerWidth<768?200:400,level:"H",fgColor:"#000000",bgColor:"#ffffff"})}),d.jsx("p",{className:"text-xl md:text-3xl text-cyan-400 font-semibold text-center mt-2 md:mt-4",children:t}),d.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-sm md:text-xl text-gray-300 hover:text-cyan-400 text-center font-mono underline hover:no-underline transition-colors",children:n})]})}),G="/assets/slide1-circuit-bg-D-OaL8c9.jpg",ik="/assets/recipe-browse-OtFpKvdp.png",ak="/assets/recipe-ai-seo-C98cQUip.png",lk="/assets/recipe-seo-form-BhzSoyyU.png",uk="/assets/recipe-seo-analysis-DGb0Whm1.png",ck="/assets/speedometer-badge-q-JcPbyK.png",dk="/assets/ai-providers-m6GFm_TR.png",fk="/assets/bpmn-drupal-eca-DvbWw4Ku.png",pk="/assets/kristijan-family-ACJxUiuT.jpg",hk="/assets/kristijan-video-BH6rX0hc.mp4",mk="/assets/vybrid-logo-DzmMLtwF.svg",gk="/ws-agency-logo-dark-bg.png",vk="/assets/drupal-canvas-builder-gpKxAgPS.png",yk="/assets/start-legal-screenshot-elJJhEg_.png",xk="/assets/chairlink-screenshot-CVxSImWt.png",wk="/assets/disclaimer-bg-lkVoO0_s.png",bk="/assets/vibe-coding-tweet-k4u2quer.png",Sk="/assets/startlegal-01-BRfvx8nk.png",kk="/assets/startlegal-02-BgJhyKCL.png",Ek="/assets/startlegal-03-Br2x3-8d.png",Ck="/assets/startlegal-04-_L1dGy1o.png",Pk="/assets/startlegal-05-DZi8iXx4.png",Tk="/assets/startlegal-06-C72YcZj7.png",Nk="/assets/startlegal-07-B8oe_EsB.png",Rk="/assets/startlegal-08-JNnbwJbv.png",jk="/assets/startlegal-09-CrVR9j8_.png",Ak="/assets/startlegal-10-B2cDYlkU.png",Mk="/assets/startlegal-11-BEPnMzpv.png",Lk="/assets/startlegal-12-DTdqW7cf.png",_k="/assets/startlegal-13-sHg0G9Ml.png",Ok="/assets/startlegal-14-D4Uxbe-n.png",Dk="/assets/startlegal-15-rg631p84.png",Ik="/assets/startlegal-16-Bois0jka.png",zk="/assets/startlegal-17-BOWXAh6U.png",Fk="/assets/startlegal-18-8HILpKKZ.png",$k="/assets/startlegal-19-aQJwt82N.png",Bk="/assets/startlegal-20-M759xVey.png",Uk="/assets/chairlink-01-BXlRyC-Z.png",Vk="/assets/chairlink-02-CYQ2YvdO.png",Wk="/assets/chairlink-03-DVSlvBZM.png",Hk="/assets/chairlink-04-BGvWPV2Y.png",Qk="/assets/chairlink-05-Bui3LOux.png",Kk="/assets/chairlink-06-BMFyX-uJ.png",Gk="/assets/chairlink-07-Daqrqh6B.png",Yk="/assets/qroll-screenshot-7bYW6Oc1.png",Xk="/assets/qroll-gallery-screenshot-BEjBzt7m.png",qk="/assets/qroll-qr-code-BwX9j6LQ.png",Zk=()=>{const e=[23,20,15,15,15,15,30,15,30,15,15,7,7,7,7,15,15,15,10,15,15,30,10,15,50,15,15,15,15,30,15,25,15,15,15,15,15,15,15,60,120,15,15,20],t=["Animated Disclaimer","Personal Introduction","About me","Portrait","Demo: Grok - Limitless","Thesis","Lovable: From Prompt to App","Lovable: Key takeaways","Drupal Learning Curve","What's new in Drupal 11","Recipes: faster starts","Recipe Example: Browse","Recipe Example: AI SEO Details","Recipe Example: SEO Form","Recipe Example: Analysis Results","Admin UX, Performance & Canvas","Canvas Builder","Why Canvas?","Why Drupal AI Module?","AI Providers Integration","Drupal: Key takeaways","One key sentence","High-Traffic Drupal Sites","Vibe Coding Tweet","Why Vibe coding?","StartLegal Platform Showcase","Vibe coding: Acceleration","Vibe coding: Faster iteration","Vibe coding: Reduced mis-investment","Project: StartLegal.com","StartLegal Platform Showcase","Project: Chairlink.ai","Chairlink Platform Showcase","Quantified impact","What enterprise teams gain","Augmented Startup Enabler","4-Week Pilot","Security & compliance","Success metrics","Thank you","QR Code - Play at Home","Game: Thro' the Wall","Project: QRoll.quest","QRoll.quest in Action","Try QRoll.quest"];return d.jsxs(xS,{slideDurations:e,slideTitles:t,children:[d.jsx(NS,{backgroundImage:wk,speakerNotes:"Interactive disclaimer slide. Use Space/Arrow keys to progress through AI disclaimers."}),d.jsx(CS,{name:"Kristijan Lukačin",title:"Director & Co-founder, Web Solutions | Co-founder, Vybrid.ai",description:"I'm the director and co-founder of Web Solutions, a Drupal and AI-driven development agency, and also co-founder of Vybrid.ai, where we're exploring what we call vibe coding — using AI to speed up how we build and launch digital products.",logos:[{src:gk,alt:"Web Solutions Logo",className:"h-32 w-auto max-w-[360px] object-contain"},{src:mk,alt:"Vybrid.ai Logo",className:"h-32 w-auto max-w-[360px] object-contain"}],backgroundImage:G,speakerNotes:"Speaker notes: Introduce yourself and set the stage. Mention both companies and the connection to AI-driven development."}),d.jsx(PS,{title:"About me",text:"I am a Croatian, a Purger, a Catholic husband, and a father of nine; I love photography and technology. I have loved computers since the early 1980s. I started my career as a developer, and over the past twenty-five years, I have led teams, projects, and companies that connect technology, creativity, and business.",image:pk,imageAlt:"Kristijan with his family",backgroundImage:G,speakerNotes:"Speaker notes: Share personal background to build connection with audience. Emphasize long experience and personal values."}),d.jsx(TS,{video:hk,imageAlt:"Kristijan Lukačin portrait",text:"I'll take a quick photo now, say cheese",videoDelay:5,backgroundImage:G,speakerNotes:"Speaker notes: Visual moment to let the audience see you. Keep brief."}),d.jsx(pl,{statement:"Today I'll share how we use AI in practice to build faster, more efficient products — and how this new way of coding is changing the way we think about software development.",backgroundImage:G,speakerNotes:"Speaker notes: Set expectations for the presentation. Transition to main content."}),d.jsx(Ff,{title:"Faster Outcomes Drupal 11 + Canvas + AI Vibe + Coding to Production",items:[{icon:ex,text:"Part I: Drupal for Enterprise + AI"},{icon:K1,text:"Part II: Vibe+Coding in practice"},{icon:Q1,text:"What we've built so far?"}],backgroundImage:G,speakerNotes:"Speaker notes: Welcome, who we are, what you'll get in 35 minutes: practical reasons to choose Drupal now, how Drupal AI & Canvas empower teams, and how our Vibe+Coding process compresses time-to-value without sacrificing governance."}),d.jsx(Do,{title:"Drupal is a fully composable CMS that allows you to design a digital experience to your vision.",items:["It's Enterprise","It has everything",`It's "expensive" but worth it?`,"It's cheap for enterprises and long life projects!"],backgroundImage:G,speakerNotes:"Speaker notes: Position Drupal 11 as a modern, secure, enterprise-ready platform that now ships faster and collaborates better with AI."}),d.jsx(Xe,{title:"6 Enterprise Reasons",bullets:["Security & stability: security team + predictable 11.x coverage","Multilingual & complex workflows out-of-the-box","Performance & scalability; API-first/headless-ready","Accessibility & modern editorial UX (media, preview, revisions)","No vendor lock-in; rich open-source module ecosystem","Proven talent pool & references across industries"],showDrupalTimeline:!0,backgroundImage:G,speakerNotes:"Speaker notes: First three de-risk long-run ownership and unlock scale. Emphasize controllability (no lock-in) and hiring/flexibility at enterprise scale. Timeline shows Drupal's stable release cadence through H1 2026."}),d.jsx(Do,{title:"The Drupal Learning Curve: A Scientific Analysis 📊",items:["Drupal's learning curve is more like a learning cliff... but the view from the top is worth it! 🏔️","Learning Drupal: Day 1 - 'This is impossible!' Day 30 - 'This is still impossible!' Day 90 - 'I AM DRUPAL!' 💪","Yes, Drupal has a steep learning curve. But so does brain surgery, and we're not operating on brains here! 🧠","Warning: May cause sudden bursts of 'Aha!' moments ✨"],backgroundImage:G,speakerNotes:"Speaker notes: Advance through each joke for comedic timing. Acknowledge Drupal's reputation humorously while building rapport. Point: modern tools (Recipes, Canvas, AI) flatten that curve dramatically. Perfect segue into what's NEW in Drupal 11."}),d.jsx(Xe,{title:"What's new in Drupal 11",bullets:["Recipes: curated bundles for faster starts","Modernized Admin UX & performance improvements","Single-Directory Components (SDC)","Drupal AI: what's inside"],backgroundImage:G,speakerNotes:"Speaker notes: 'Recipes' matters because it standardizes setup, cuts lead-time. Highlight how these features reduce development time and improve maintainability."}),d.jsx(Xe,{title:"Recipes: faster starts",bullets:["Install functional sets (auth, media, editorial…) in minutes","Reduce setup errors & align teams","Ideal for replatforming and greenfield"],backgroundImage:G,speakerNotes:"Speaker notes: This is time saved in week 1/2 — provably reduces variability.",linkButton:{text:"Drupal Recipes",url:"https://new.drupal.org/browse/recipes"}}),d.jsx(bt,{image:ik,imageAlt:"Drupal Recipes catalog showing AI-related recipes",title:"Recipe Example: Browse Recipes",backgroundImage:G,speakerNotes:"Step 1: Browse the Drupal Recipes catalog to find pre-built functionality. Here we see AI-powered recipes available."}),d.jsx(bt,{image:ak,imageAlt:"AI SEO Optimizer recipe details page",title:"Recipe Example: AI SEO Optimizer",backgroundImage:G,speakerNotes:"Step 2: View what the recipe provides - in this case, AI-powered SEO optimization capabilities."}),d.jsx(bt,{image:lk,imageAlt:"SEO form with AI generation buttons",title:"Recipe Example: SEO Form Interface",backgroundImage:G,speakerNotes:"Step 3: Once installed, the recipe provides an intuitive interface with AI-powered generate buttons for SEO titles and descriptions."}),d.jsx(bt,{image:uk,imageAlt:"Content analysis with SEO recommendations",title:"Recipe Example: SEO Analysis Results",backgroundImage:G,speakerNotes:"Step 4: The AI analyzes your content and provides actionable SEO recommendations. This entire workflow was installed in minutes through a recipe."}),d.jsx(Xe,{title:"Admin UX, Performance & Canvas",bullets:["Cleaner admin screens ⇒ less friction for editors","Core perf improvements ⇒ faster pages, lower infra costs","Patch cadence keeps stability high","Canvas (ex-Experience Builder): Visual page building & styling by non-technical teams","Reduce dependency on developers for landing pages","Part of Drupal CMS (Starshot) initiative"],linkButtons:[{text:"Canvas Project",url:"https://www.drupal.org/project/canvas"},{text:"Canvas Demo Video",url:"https://www.youtube.com/watch?v=WNEyg3UKTVQ"}],backgroundImage:G,speakerNotes:"Speaker notes: This is about day-2 productivity: editors move faster, infra bills lower. Canvas enables quick demo moment later: landing in 3 steps."}),d.jsx(bt,{image:vk,imageAlt:"Drupal Canvas Builder Interface",backgroundImage:G,speakerNotes:`Mini-demo: Canvas in 90 seconds 1 Create a landing layout in Canvas 2 Insert an SDC component 3 Publish a variant (no code)`}),d.jsx(Xe,{title:"Single-Directory Components (SDC)",bullets:["Reusable, standardized components across projects","Consistent design, fewer bugs, faster onboarding","Foundation for Canvas & design systems"],backgroundImage:G,speakerNotes:"Speaker notes: SDC is the 'Lego brick' that ensures uniformity across big teams."}),d.jsx(Xe,{title:"Drupal AI: what's inside",bullets:["One AI framework across providers (hosted & local)","Operation types: Chat, Embeddings, Translate, Moderation, T2I, TTS/STT, Image Classification","Governance: logging, moderation, provider choice"],backgroundImage:G,speakerNotes:"Speaker notes: Vendor-agnostic + operations coverage ⇒ optionality + compliance.",linkButton:{text:"Learn More About Drupal AI",url:"https://new.drupal.org/ai/about-drupal-ai"}}),d.jsx(bt,{image:dk,imageAlt:"AI Providers supported by Drupal AI module",title:"AI Providers Integration",backgroundImage:G,speakerNotes:"Speaker notes: Drupal AI supports multiple AI providers including OpenAI, Anthropic, Google, Azure, AWS, Mistral, Cohere, and local models via Ollama - giving you true vendor independence and flexibility."}),d.jsx(Ff,{title:"AI submodules (quick tour)",items:[{icon:q1,text:"AI Assistant API & Chatbot (site-aware assistants)"},{icon:Y1,text:"AI CKEditor & Content Suggestions (drafts, alt-text, meta)"},{icon:X1,text:"AI Translate & Validations (multilingual + policy checks)"},{icon:G1,text:"External Moderation & Logging (governance)"},{icon:nx,text:"AI ECA (Event-Condition-Action) for editorial automation"},{icon:sf,text:"You can even use BPMN.io",link:"https://www.drupal.org/project/bpmn_io"}],backgroundImage:G,speakerNotes:"Speaker notes: Focus on editorial outcomes: faster, safer content ops."}),d.jsx(bt,{title:"bpmn.io tooling integrated into Drupal's admin UI.",image:fk,imageAlt:"BPMN.io workflow editor integrated into Drupal admin interface showing ECA model configuration",backgroundImage:G,speakerNotes:"Speaker notes: Visual workflow builder integrated directly into Drupal admin."}),d.jsx(pl,{statement:"Drupal 11 + Canvas + AI = faster launches, lower risk, and more editorial autonomy.",backgroundImage:G,speakerNotes:"Speaker notes: Pause and let it land."}),d.jsx(Do,{title:"Top High-Traffic Sites Using Drupal",items:["weather.com (Media, ~900M) - The Weather Channel's main site, fully on Drupal—serves global weather content at scale","sportingnews.com (Sports, ~250M) - The Sporting News backend is on Drupal, maintained by us (ws.agency)","box.com (Tech, ~27M) - Cloud storage leader uses Drupal for its main marketing and docs site","independent.co.uk (News, ~25M) - Major UK newspaper—full site built on Drupal for rapid publishing","tesla.com (Auto/Tech, ~22M) - Tesla's global web presence and product showcase runs on Drupal 9+","europa.eu (Government, ~15M) - European Union's multilingual portal, built on Drupal for security and scale","lefigaro.fr (News, ~10M+) - Top French news publisher—Drupal powers user interaction & community tools","abs-cbn.com (Media, ~6M) - Leading Philippine news site—Drupal supports multimedia content delivery","aawsat.com (News, ~2–3M) - Major pan-Arab news site with full multilingual Drupal implementation","pfizer.com (Pharma, ~2M+) - Pfizer's global site for health content and investor relations on Drupal"],backgroundImage:G,speakerNotes:"Speaker notes: These are real-world examples of major sites handling millions of visitors on Drupal, proving enterprise-scale reliability."}),d.jsx(bt,{image:bk,imageAlt:"Andrej Karpathy's tweet about vibe coding - a new approach where developers embrace exponentials and let LLMs handle most of the coding",title:"What is Vibe Coding?",backgroundImage:G,speakerNotes:"Speaker notes: Andrej Karpathy coined the term 'vibe coding' - it's about embracing AI tools and focusing on intent rather than implementation details."}),d.jsx(Xe,{title:"What is Vibe+Coding?",bullets:["From natural-language intent to code & UI (beyond scaffolding)","Not only the first MVP: we prototype every new epic/feature this way","Requires guardrails for production (QA/SEC)"],backgroundImage:G,speakerNotes:"Speaker notes: Don't name tools. Focus on process & control."}),d.jsx(Xe,{title:"Where it replaces scaffolding",bullets:["Rapid UI flows & data models from plain-English specs","Faster variant exploration (UX/copy) before code hardening","Reusable patterns aligned with SDC/design system"],backgroundImage:G,speakerNotes:"Speaker notes: Less boilerplate; more validated UX earlier."}),d.jsx(Xe,{title:"Developer workflow",bullets:["Proto-per-feature: create, evaluate, iterate fast","Vectorize the entire codebase: assistants understand project context","AI-first code review: every commit gets auto checks → human gate approves"],backgroundImage:G,speakerNotes:"Speaker notes: Strong governance: AI accelerates, humans own accountability."}),d.jsx(Xe,{title:"From prototype to production",bullets:["Prototype → validate with users → harden → scale","Tests, security, performance in the hardening phase","CI/CD, observability & incident response ready"],backgroundImage:G,speakerNotes:"Speaker notes: Show maturity, not 'magic.'"}),d.jsx($f,{title:"Project: startlegal.com",bullets:["Functional MVP in a fraction of typical time via Vibe+Coding","Flow: prompt-prototype → validation → hardening → production","Lower TCO; earlier stakeholder feedback"],images:[yk],imageLinks:["https://startlegal.com"],backgroundImage:G,speakerNotes:"Speaker notes: Keep claims qualitative unless you have numbers to show."}),d.jsx(Do,{title:"StartLegal.com Platform",images:[Sk,kk,Ek,Ck,Pk,Tk,Nk,Rk,jk,Ak,Mk,Lk,_k,Ok,Dk,Ik,zk,Fk,$k,Bk],backgroundImage:G,speakerNotes:"Interactive showcase of the StartLegal platform screens showing the AI-powered legal document generation flow."}),d.jsx($f,{title:"Project: chairlink.ai",bullets:["Fast MVP setup & iterative UX variants","Short learning cycles; clear kill/scale criteria","Production plan for hardening & scale"],images:[xk],backgroundImage:G,speakerNotes:"Speaker notes: If site is not public, show wireframes or internal mockups."}),d.jsx(Do,{title:"Chairlink.ai Platform",images:[Uk,Vk,Wk,Hk,Qk,Kk,Gk],backgroundImage:G,speakerNotes:"Interactive showcase of the Chairlink platform: AI-powered dental mentorship matching system with admin, mentor, and mentee portals."}),d.jsx(pl,{statement:"2–4× faster prototyping & validation",subtitle:"Fewer cycles to product-fit signals. Earlier stakeholder reviews → lower mis-investment risk.",icon:ck,backgroundImage:G,speakerNotes:"Speaker notes: Frame as indicative; actuals vary by complexity & integrations."}),d.jsx(Xe,{title:"What enterprise teams gain",bullets:["Rapid pilot with clear success metrics","Reduced risk & cost of wrong turns","Knowledge transfer: your teams build alongside ours"],backgroundImage:G,speakerNotes:"Speaker notes: Emphasize partnership, not black-box outsourcing."}),d.jsx(SS,{title:"Augmented Startup Enabler",subtitle:"Internal enabler team: Sprint-incubator (30–90 days to MVP + hardening)",roles:[{icon:tx,title:"Product Lead"},{icon:U1,title:"Prompt/AI Engineer"},{icon:sf,title:"Senior Dev"},{icon:J1,title:"QA/SEC"},{icon:Z1,title:"DevOps"}],bullets:["Roles: You (domain, access, decisions) • Us (architecture, acceleration, security, CI/CD, push-to-prod)","This model lets enterprises innovate without spinning a full startup from scratch"],backgroundImage:G,speakerNotes:"Speaker notes: This model lets enterprises innovate without spinning a full startup from scratch."}),d.jsx(kS,{title:"4-Week Pilot",options:[{title:"Option A: Drupal AI pilot",description:"1 landing + 3 AI use cases (drafting, alt-text, classification) + Canvas PoC"},{title:"Option B: Vibe pilot",description:"Your high-value use case → prototype → validation → scale plan"}],deliverables:["Demo","Prioritized backlog","ROI estimate","Production plan"],backgroundImage:G,speakerNotes:"Speaker notes: Invite 60–90 min discovery to choose the pilot."}),d.jsx(Xe,{title:"Security & compliance (Appendix)",bullets:["Secrets management (vault), audit logs, least-privilege access","Model choice & data boundaries (private vs hosted)","PII handling; GDPR alignment; SOC2-style controls"],backgroundImage:G,speakerNotes:"Speaker notes: Address concerns proactively."}),d.jsx(Xe,{title:"Success metrics (Appendix)",bullets:["Time to MVP; cycles to product-fit signal","Bug-rate & SLO post-production; performance targets","ROI via acceleration & risk reduction"],backgroundImage:G,speakerNotes:"Speaker notes: Suggest setting baselines at pilot start."}),d.jsx(ES,{title:"Thank you",subtitle:"Contact: WS.Agency • hello@ws.agency • ws.agency",backgroundImage:G,speakerNotes:"Speaker notes: Invite questions & pilot discussion."}),d.jsx(sk,{title:"Bonus Content",subtitle:"Play it at home",url:"https://ai2future-2025.talks.ws.agency/",backgroundImage:G}),d.jsx(RS,{}),d.jsx(bt,{image:Yk,imageAlt:"QRoll.quest landing page showing event photo and video collection platform",title:"Project: QRoll.quest",backgroundImage:G,speakerNotes:"QRoll.quest - A platform for effortless event photo/video collection. Currently in private beta. Features easy uploads, event management, and gallery sharing."}),d.jsx(bt,{image:Xk,imageAlt:"QRoll.quest Ai2Future Conference Gallery showing 10 photos and videos with upload interface",title:"QRoll.quest in Action",backgroundImage:G,speakerNotes:"Real example: Ai2Future Conference Gallery powered by QRoll.quest. Shows the gallery interface with uploaded photos from conference attendees, including venue shots, branding, audience photos, and presentation moments."}),d.jsx(bt,{image:qk,imageAlt:"QR code to access QRoll.quest platform",title:"Try QRoll.quest",backgroundImage:G,maxHeight:"700px",speakerNotes:"Scan the QR code to visit QRoll.quest and try the platform yourself. Perfect for collecting photos and videos from your next event."})]})},Jk=()=>{const e=Vg();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),d.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},eE=new Cb,tE=()=>d.jsx(Tb,{client:eE,children:d.jsxs(tb,{children:[d.jsx(zx,{}),d.jsx(gw,{}),d.jsx(fS,{children:d.jsxs(uS,{children:[d.jsx(wu,{path:"/",element:d.jsx(Zk,{})}),d.jsx(wu,{path:"*",element:d.jsx(Jk,{})})]})})]})});dm(document.getElementById("root")).render(d.jsx(tE,{}));