var Qu=e=>{throw TypeError(e)};var La=(e,t,n)=>t.has(e)||Qu("Cannot "+n);var P=(e,t,n)=>(La(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Qu("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),$e=(e,t,n)=>(La(e,t,"access private method"),n);var $s=(e,t,n,r)=>({set _(o){K(e,t,o,n)},get _(){return P(e,t,r)}});function ly(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 Kf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf={exports:{}},ta={},Xf={exports:{}},Y={};/** * @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 Ts=Symbol.for("react.element"),cy=Symbol.for("react.portal"),uy=Symbol.for("react.fragment"),dy=Symbol.for("react.strict_mode"),fy=Symbol.for("react.profiler"),py=Symbol.for("react.provider"),my=Symbol.for("react.context"),hy=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),yy=Symbol.for("react.memo"),vy=Symbol.for("react.lazy"),qu=Symbol.iterator;function xy(e){return e===null||typeof e!="object"?null:(e=qu&&e[qu]||e["@@iterator"],typeof e=="function"?e:null)}var Zf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jf=Object.assign,ep={};function fo(e,t,n){this.props=e,this.context=t,this.refs=ep,this.updater=n||Zf}fo.prototype.isReactComponent={};fo.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")};fo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tp(){}tp.prototype=fo.prototype;function Ec(e,t,n){this.props=e,this.context=t,this.refs=ep,this.updater=n||Zf}var jc=Ec.prototype=new tp;jc.constructor=Ec;Jf(jc,fo.prototype);jc.isPureReactComponent=!0;var Gu=Array.isArray,np=Object.prototype.hasOwnProperty,Pc={current:null},rp={key:!0,ref:!0,__self:!0,__source:!0};function op(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)np.call(t,r)&&!rp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=E[D];if(0>>1;Do(je,z))Xo(ce,je)?(E[D]=ce,E[X]=z,D=X):(E[D]=je,E[J]=z,D=J);else if(Xo(ce,z))E[D]=ce,E[X]=z,D=X;else break e}}return R}function o(E,R){var z=E.sortIndex-R.sortIndex;return z!==0?z:E.id-R.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=[],p=1,f=null,d=3,x=!1,y=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=E)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function S(E){if(g=!1,v(E),!y)if(n(l)!==null)y=!0,B(N);else{var R=n(u);R!==null&&W(S,R.startTime-E)}}function N(E,R){y=!1,g&&(g=!1,m(j),j=-1),x=!0;var z=d;try{for(v(R),f=n(l);f!==null&&(!(f.expirationTime>R)||E&&!L());){var D=f.callback;if(typeof D=="function"){f.callback=null,d=f.priorityLevel;var U=D(f.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(l)&&r(l),v(R)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var J=n(u);J!==null&&W(S,J.startTime-R),Q=!1}return Q}finally{f=null,d=z,x=!1}}var k=!1,C=null,j=-1,T=5,I=-1;function L(){return!(e.unstable_now()-IE||125D?(E.sortIndex=z,t(u,E),n(l)===null&&E===n(u)&&(g?(m(j),j=-1):g=!0,W(S,z-D))):(E.sortIndex=U,t(l,E),y||x||(y=!0,B(N))),E},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(E){var R=d;return function(){var z=d;d=R;try{return E.apply(this,arguments)}finally{d=z}}}})(cp);lp.exports=cp;var Iy=lp.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 Ry=b,ht=Iy;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"),gl=Object.prototype.hasOwnProperty,My=/^[: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]*$/,Yu={},Xu={};function Oy(e){return gl.call(Xu,e)?!0:gl.call(Yu,e)?!1:My.test(e)?Xu[e]=!0:(Yu[e]=!0,!1)}function Ly(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 Dy(e,t,n,r){if(t===null||typeof t>"u"||Ly(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 Xe(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 Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Xe(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){Fe[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ac=/[\-:]([a-z])/g;function Ic(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ac,Ic);Fe[t]=new Xe(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(Ac,Ic);Fe[t]=new Xe(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(Ac,Ic);Fe[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rc(e,t,n,r){var o=Fe.hasOwnProperty(t)?Fe[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{za=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_o(e):""}function _y(e){switch(e.tag){case 5:return _o(e.type);case 16:return _o("Lazy");case 13:return _o("Suspense");case 19:return _o("SuspenseList");case 0:case 2:case 15:return e=Fa(e.type,!1),e;case 11:return e=Fa(e.type.render,!1),e;case 1:return e=Fa(e.type,!0),e;default:return""}}function wl(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 Pr:return"Fragment";case jr:return"Portal";case yl:return"Profiler";case Mc:return"StrictMode";case vl:return"Suspense";case xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fp:return(e.displayName||"Context")+".Consumer";case dp:return(e._context.displayName||"Context")+".Provider";case Oc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lc:return t=e.displayName||null,t!==null?t:wl(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return wl(e(t))}catch{}}return null}function zy(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 wl(t);case 8:return t===Mc?"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 Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fy(e){var t=mp(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 Vs(e){e._valueTracker||(e._valueTracker=Fy(e))}function hp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ci(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 bl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ju(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(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 gp(e,t){t=t.checked,t!=null&&Rc(e,"checked",t,!1)}function Sl(e,t){gp(e,t);var n=Un(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")?Nl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nl(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ed(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 Nl(e,t,n){(t!=="number"||Ci(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Fr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Hs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vo={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},$y=["Webkit","ms","Moz","O"];Object.keys(Vo).forEach(function(e){$y.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vo[t]=Vo[e]})});function wp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vo.hasOwnProperty(e)&&Vo[e]?(""+t).trim():t+"px"}function bp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var By=xe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function El(e,t){if(t){if(By[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 jl(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 Dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,$r=null,Br=null;function rd(e){if(e=Rs(e)){if(typeof Tl!="function")throw Error(M(280));var t=e.stateNode;t&&(t=ia(t),Tl(e.stateNode,e.type,t))}}function Sp(e){$r?Br?Br.push(e):Br=[e]:$r=e}function Np(){if($r){var e=$r,t=Br;if(Br=$r=null,rd(e),t)for(e=0;e>>=0,e===0?32:31-(Zy(e)/Jy|0)|0}var Ws=64,Qs=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 Pi(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 As(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function rv(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=Wo),fd=" ",pd=!1;function Vp(e,t){switch(e){case"keyup":return Iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function Mv(e,t){switch(e){case"compositionend":return Hp(t);case"keypress":return t.which!==32?null:(pd=!0,fd);case"textInput":return e=t.data,e===fd&&pd?null:e;default:return null}}function Ov(e,t){if(Tr)return e==="compositionend"||!Hc&&Vp(e,t)?(e=Bp(),fi=Bc=Tn=null,Tr=!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=yd(n)}}function Gp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kp(){for(var e=window,t=Ci();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ci(e.document)}return t}function Wc(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 Vv(e){var t=Kp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gp(n.ownerDocument.documentElement,n)){if(r!==null&&Wc(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=vd(n,s);var i=vd(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,Ar=null,Ll=null,qo=null,Dl=!1;function xd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dl||Ar==null||Ar!==Ci(r)||(r=Ar,"selectionStart"in r&&Wc(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}),qo&&as(qo,r)||(qo=r,r=Ii(Ll,"onSelect"),0Mr||(e.current=Ul[Mr],Ul[Mr]=null,Mr--)}function le(e,t){Mr++,Ul[Mr]=e.current,e.current=t}var Vn={},We=Kn(Vn),tt=Kn(!1),fr=Vn;function ro(e,t){var n=e.type.contextTypes;if(!n)return Vn;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 nt(e){return e=e.childContextTypes,e!=null}function Mi(){fe(tt),fe(We)}function Ed(e,t,n){if(We.current!==Vn)throw Error(M(168));le(We,t),le(tt,n)}function om(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,zy(e)||"Unknown",o));return xe({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,fr=We.current,le(We,e),le(tt,tt.current),!0}function jd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=om(e,t,fr),r.__reactInternalMemoizedMergedChildContext=e,fe(tt),fe(We),le(We,e)):fe(tt),le(tt,n)}var rn=null,aa=!1,Ja=!1;function sm(e){rn===null?rn=[e]:rn.push(e)}function t0(e){aa=!0,sm(e)}function Yn(){if(!Ja&&rn!==null){Ja=!0;var e=0,t=re;try{var n=rn;for(re=1;e>=i,o-=i,on=1<<32-Mt(t)+o|n<j?(T=C,C=null):T=C.sibling;var I=d(m,C,v[j],S);if(I===null){C===null&&(C=T);break}e&&C&&I.alternate===null&&t(m,C),h=s(I,h,j),k===null?N=I:k.sibling=I,k=I,C=T}if(j===v.length)return n(m,C),me&&Jn(m,j),N;if(C===null){for(;jj?(T=C,C=null):T=C.sibling;var L=d(m,C,I.value,S);if(L===null){C===null&&(C=T);break}e&&C&&L.alternate===null&&t(m,C),h=s(L,h,j),k===null?N=L:k.sibling=L,k=L,C=T}if(I.done)return n(m,C),me&&Jn(m,j),N;if(C===null){for(;!I.done;j++,I=v.next())I=f(m,I.value,S),I!==null&&(h=s(I,h,j),k===null?N=I:k.sibling=I,k=I);return me&&Jn(m,j),N}for(C=r(m,C);!I.done;j++,I=v.next())I=x(C,m,j,I.value,S),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?j:I.key),h=s(I,h,j),k===null?N=I:k.sibling=I,k=I);return e&&C.forEach(function(_){return t(m,_)}),me&&Jn(m,j),N}function w(m,h,v,S){if(typeof v=="object"&&v!==null&&v.type===Pr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Us:e:{for(var N=v.key,k=h;k!==null;){if(k.key===N){if(N=v.type,N===Pr){if(k.tag===7){n(m,k.sibling),h=o(k,v.props.children),h.return=m,m=h;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===wn&&Ad(N)===k.type){n(m,k.sibling),h=o(k,v.props),h.ref=Ro(m,k,v),h.return=m,m=h;break e}n(m,k);break}else t(m,k);k=k.sibling}v.type===Pr?(h=ur(v.props.children,m.mode,S,v.key),h.return=m,m=h):(S=wi(v.type,v.key,v.props,null,m.mode,S),S.ref=Ro(m,h,v),S.return=m,m=S)}return i(m);case jr:e:{for(k=v.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=al(v,m.mode,S),h.return=m,m=h}return i(m);case wn:return k=v._init,w(m,h,k(v._payload),S)}if(zo(v))return y(m,h,v,S);if(jo(v))return g(m,h,v,S);Js(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=il(v,m.mode,S),h.return=m,m=h),i(m)):n(m,h)}return w}var so=cm(!0),um=cm(!1),_i=Kn(null),zi=null,Dr=null,Kc=null;function Yc(){Kc=Dr=zi=null}function Xc(e){var t=_i.current;fe(_i),e._currentValue=t}function Wl(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 Vr(e,t){zi=e,Kc=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Kc!==e)if(e={context:e,memoizedValue:t,next:null},Dr===null){if(zi===null)throw Error(M(308));Dr=e,zi.dependencies={lanes:0,firstContext:e}}else Dr=Dr.next=e;return t}var rr=null;function Zc(e){rr===null?rr=[e]:rr.push(e)}function dm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zc(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 bn=!1;function Jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fm(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 an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(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,Zc(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,n)}function mi(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,zc(e,n)}}function Id(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 Fi(e,t,n,r){var o=e.updateQueue;bn=!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 p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==i&&(a===null?p.firstBaseUpdate=u:a.next=u,p.lastBaseUpdate=l))}if(s!==null){var f=o.baseState;i=0,p=u=l=null,a=s;do{var d=a.lane,x=a.eventTime;if((r&d)===d){p!==null&&(p=p.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,g=a;switch(d=t,x=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){f=y.call(x,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,d=typeof y=="function"?y.call(x,f,d):y,d==null)break e;f=xe({},f,d);break e;case 2:bn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else x={eventTime:x,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(u=p=x,l=f):p=p.next=x,i|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(p===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=p,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);hr|=i,e.lanes=i,e.memoizedState=f}}function Rd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=tl.transition;tl.transition={};try{e(!1),t()}finally{re=n,tl.transition=r}}function Tm(){return kt().memoizedState}function s0(e,t,n){var r=zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Am(e))Im(t,n);else if(n=dm(e,t,n,r),n!==null){var o=Ke();Ot(n,e,r,o),Rm(n,t,r)}}function i0(e,t,n){var r=zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Am(e))Im(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,Dt(a,i)){var l=t.interleaved;l===null?(o.next=o,Zc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=dm(e,t,o,r),n!==null&&(o=Ke(),Ot(n,e,r,o),Rm(n,t,r))}}function Am(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Im(e,t){Go=Bi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zc(e,n)}}var Ui={readContext:Ct,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},a0={readContext:Ct,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Od,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,Cm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();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=s0.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Md,useDebugValue:au,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Md(!1),t=e[0];return e=o0.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,o=Vt();if(me){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),De===null)throw Error(M(349));mr&30||gm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Od(vm.bind(null,r,s,e),[e]),r.flags|=2048,hs(9,ym.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Vt(),t=De.identifierPrefix;if(me){var n=sn,r=on;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ps++,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[qt]=t,e[us]=r,Um(e,t,!1,!1),t.stateNode=e;e:{switch(i=jl(n,r),n){case"dialog":de("cancel",e),de("close",e),o=r;break;case"iframe":case"object":case"embed":de("load",e),o=r;break;case"video":case"audio":for(o=0;o<$o.length;o++)de($o[o],e);o=r;break;case"source":de("error",e),o=r;break;case"img":case"image":case"link":de("error",e),de("load",e),o=r;break;case"details":de("toggle",e),o=r;break;case"input":Ju(e,r),o=bl(e,r),de("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),de("invalid",e);break;case"textarea":td(e,r),o=Cl(e,r),de("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"?bp(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&xp(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ts(e,l):typeof l=="number"&&ts(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(es.hasOwnProperty(s)?l!=null&&s==="onScroll"&&de("scroll",e):l!=null&&Rc(e,s,l,i))}switch(n){case"input":Vs(e),ed(e,r,!1);break;case"textarea":Vs(e),nd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Un(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Fr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Fr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ri)}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 Ue(t),null;case 6:if(e&&t.stateNode!=null)Hm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=or(fs.current),or(Kt.current),Zs(t)){if(r=t.stateNode,n=t.memoizedProps,r[qt]=t,(s=r.nodeValue!==n)&&(e=pt,e!==null))switch(e.tag){case 3:Xs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qt]=t,t.stateNode=r}return Ue(t),null;case 13:if(fe(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&ft!==null&&t.mode&1&&!(t.flags&128))lm(),oo(),t.flags|=98560,s=!1;else if(s=Zs(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[qt]=t}else oo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else Rt!==null&&(ac(Rt),Rt=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||ge.current&1?Ie===0&&(Ie=3):mu())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return io(),Jl(e,t),e===null&&ls(t.stateNode.containerInfo),Ue(t),null;case 10:return Xc(t.type._context),Ue(t),null;case 17:return nt(t.type)&&Mi(),Ue(t),null;case 19:if(fe(ge),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Mo(s,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=$i(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 le(ge,ge.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ne()>lo&&(t.flags|=128,r=!0,Mo(s,!1),t.lanes=4194304)}else{if(!r)if(e=$i(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&&!me)return Ue(t),null}else 2*Ne()-s.renderingStartTime>lo&&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=Ne(),t.sibling=null,n=ge.current,le(ge,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function h0(e,t){switch(qc(t),t.tag){case 1:return nt(t.type)&&Mi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return io(),fe(tt),fe(We),nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tu(t),null;case 13:if(fe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ge),null;case 4:return io(),null;case 10:return Xc(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var ti=!1,He=!1,g0=typeof WeakSet=="function"?WeakSet:Set,F=null;function _r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function ec(e,t,n){try{n()}catch(r){be(e,t,r)}}var Wd=!1;function y0(e,t){if(_l=Ti,e=Kp(),Wc(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,p=0,f=e,d=null;t:for(;;){for(var x;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(x=f.firstChild)!==null;)d=f,f=x;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=i),d===s&&++p===r&&(l=i),(x=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(zl={focusedElem:e,selectionRange:n},Ti=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,w=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Pt(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(S){be(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return y=Wd,Wd=!1,y}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&&ec(t,n,s)}o=o.next}while(o!==r)}}function ua(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 tc(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 Wm(e){var t=e.alternate;t!==null&&(e.alternate=null,Wm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[us],delete t[Bl],delete t[Jv],delete t[e0])),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 Qm(e){return e.tag===5||e.tag===3||e.tag===4}function Qd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qm(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 nc(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=Ri));else if(r!==4&&(e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(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(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}var _e=null,It=!1;function gn(e,t,n){for(n=n.child;n!==null;)qm(e,t,n),n=n.sibling}function qm(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(na,n)}catch{}switch(n.tag){case 5:He||_r(n,t);case 6:var r=_e,o=It;_e=null,gn(e,t,n),_e=r,It=o,_e!==null&&(It?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(It?(e=_e,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),ss(e)):Za(_e,n.stateNode));break;case 4:r=_e,o=It,_e=n.stateNode.containerInfo,It=!0,gn(e,t,n),_e=r,It=o;break;case 0:case 11:case 14:case 15:if(!He&&(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)&&ec(n,t,i),o=o.next}while(o!==r)}gn(e,t,n);break;case 1:if(!He&&(_r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,gn(e,t,n),He=r):gn(e,t,n);break;default:gn(e,t,n)}}function qd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new g0),t.forEach(function(r){var o=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x0(r/1960))-r,10e?16:e,An===null)var r=!1;else{if(e=An,An=null,Wi=0,ee&6)throw Error(M(331));var o=ee;for(ee|=4,F=e.current;F!==null;){var s=F,i=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lNe()-du?cr(e,0):uu|=n),rt(e,t)}function th(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Ke();e=un(e,t),e!==null&&(As(e,t,n),rt(e,n))}function k0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),th(e,n)}function E0(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),th(e,n)}var nh;nh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,p0(e,t,n);et=!!(e.flags&131072)}else et=!1,me&&t.flags&1048576&&im(t,Di,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yi(e,t),e=t.pendingProps;var o=ro(t,We.current);Vr(t,n),o=ou(null,t,r,e,o,n);var s=su();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,nt(r)?(s=!0,Oi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Jc(t),o.updater=ca,t.stateNode=o,o._reactInternals=t,ql(t,r,e,n),t=Yl(null,t,r,!0,s,n)):(t.tag=0,me&&s&&Qc(t),qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=P0(r),e=Pt(r,e),o){case 0:t=Kl(null,t,r,e,n);break e;case 1:t=Ud(null,t,r,e,n);break e;case 11:t=$d(null,t,r,e,n);break e;case 14:t=Bd(null,t,r,Pt(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:Pt(r,o),Kl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),Ud(e,t,r,o,n);case 3:e:{if(Fm(t),e===null)throw Error(M(387));r=t.pendingProps,s=t.memoizedState,o=s.element,fm(e,t),Fi(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=ao(Error(M(423)),t),t=Vd(e,t,r,n,o);break e}else if(r!==o){o=ao(Error(M(424)),t),t=Vd(e,t,r,n,o);break e}else for(ft=Ln(t.stateNode.containerInfo.firstChild),pt=t,me=!0,Rt=null,n=um(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oo(),r===o){t=dn(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return pm(t),e===null&&Hl(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Fl(r,o)?i=null:s!==null&&Fl(r,s)&&(t.flags|=32),zm(e,t),qe(e,t,i,n),t.child;case 6:return e===null&&Hl(t),null;case 13:return $m(e,t,n);case 4:return eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=so(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),$d(e,t,r,o,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(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,le(_i,r._currentValue),r._currentValue=i,s!==null)if(Dt(s.value,i)){if(s.children===o.children&&!tt.current){t=dn(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=an(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?l.next=l:(l.next=p.next,p.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Wl(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),Wl(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}qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vr(t,n),o=Ct(o),r=r(o),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,o=Pt(r,t.pendingProps),o=Pt(r.type,o),Bd(e,t,r,o,n);case 15:return Dm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),yi(e,t),t.tag=1,nt(r)?(e=!0,Oi(t)):e=!1,Vr(t,n),Mm(t,r,o),ql(t,r,o,n),Yl(null,t,r,!0,e,n);case 19:return Bm(e,t,n);case 22:return _m(e,t,n)}throw Error(M(156,t.tag))};function rh(e,t){return Ap(e,t)}function j0(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 St(e,t,n,r){return new j0(e,t,n,r)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P0(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Oc)return 11;if(e===Lc)return 14}return 2}function Fn(e,t){var n=e.alternate;return n===null?(n=St(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 wi(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")hu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Pr:return ur(n.children,o,s,t);case Mc:i=8,o|=8;break;case yl:return e=St(12,n,t,o|2),e.elementType=yl,e.lanes=s,e;case vl:return e=St(13,n,t,o),e.elementType=vl,e.lanes=s,e;case xl:return e=St(19,n,t,o),e.elementType=xl,e.lanes=s,e;case pp:return fa(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dp:i=10;break e;case fp:i=9;break e;case Oc:i=11;break e;case Lc:i=14;break e;case wn:i=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=St(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function ur(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function fa(e,t,n,r){return e=St(22,e,r,t),e.elementType=pp,e.lanes=n,e.stateNode={isHidden:!1},e}function il(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function al(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T0(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=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,o,s,i,a,l){return e=new T0(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=St(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jc(s),e}function A0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),ap.exports=gt;var Os=ap.exports;const lh=Kf(Os);var ch,tf=Os;ch=tf.createRoot,tf.hydrateRoot;const L0=1,D0=1e6;let ll=0;function _0(){return ll=(ll+1)%Number.MAX_SAFE_INTEGER,ll.toString()}const cl=new Map,nf=e=>{if(cl.has(e))return;const t=setTimeout(()=>{cl.delete(e),Zo({type:"REMOVE_TOAST",toastId:e})},D0);cl.set(e,t)},z0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,L0)};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?nf(n):e.toasts.forEach(r=>{nf(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)}}},bi=[];let Si={toasts:[]};function Zo(e){Si=z0(Si,e),bi.forEach(t=>{t(Si)})}function F0({...e}){const t=_0(),n=o=>Zo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Zo({type:"DISMISS_TOAST",toastId:t});return Zo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function $0(){const[e,t]=b.useState(Si);return b.useEffect(()=>(bi.push(t),()=>{const n=bi.indexOf(t);n>-1&&bi.splice(n,1)}),[e]),{...e,toast:F0,dismiss:n=>Zo({type:"DISMISS_TOAST",toastId:n})}}function Ae(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 B0(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function uh(...e){return t=>e.forEach(n=>B0(n,t))}function _t(...e){return b.useCallback(uh(...e),e)}function U0(e,t=[]){let n=[];function r(s,i){const a=b.createContext(i),l=n.length;n=[...n,i];function u(f){const{scope:d,children:x,...y}=f,g=(d==null?void 0:d[e][l])||a,w=b.useMemo(()=>y,Object.values(y));return c.jsx(g.Provider,{value:w,children:x})}function p(f,d){const x=(d==null?void 0:d[e][l])||a,y=b.useContext(x);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,p]}const o=()=>{const s=n.map(i=>b.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,V0(o,...t)]}function V0(...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 f=l(s)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ys=b.forwardRef((e,t)=>{const{children:n,...r}=e,o=b.Children.toArray(n),s=o.find(H0);if(s){const i=s.props.children,a=o.map(l=>l===s?b.Children.count(i)>1?b.Children.only(null):b.isValidElement(i)?i.props.children:null:l);return c.jsx(lc,{...r,ref:t,children:b.isValidElement(i)?b.cloneElement(i,void 0,a):null})}return c.jsx(lc,{...r,ref:t,children:n})});ys.displayName="Slot";var lc=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const o=Q0(n);return b.cloneElement(n,{...W0(r,n.props),ref:t?uh(t,o):o})}return b.Children.count(n)>1?b.Children.only(null):null});lc.displayName="SlotClone";var dh=({children:e})=>c.jsx(c.Fragment,{children:e});function H0(e){return b.isValidElement(e)&&e.type===dh}function W0(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)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Q0(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 q0(e){const t=e+"CollectionProvider",[n,r]=U0(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:y,children:g}=x,w=O.useRef(null),m=O.useRef(new Map).current;return c.jsx(o,{scope:y,itemMap:m,collectionRef:w,children:g})};i.displayName=t;const a=e+"CollectionSlot",l=O.forwardRef((x,y)=>{const{scope:g,children:w}=x,m=s(a,g),h=_t(y,m.collectionRef);return c.jsx(ys,{ref:h,children:w})});l.displayName=a;const u=e+"CollectionItemSlot",p="data-radix-collection-item",f=O.forwardRef((x,y)=>{const{scope:g,children:w,...m}=x,h=O.useRef(null),v=_t(y,h),S=s(u,g);return O.useEffect(()=>(S.itemMap.set(h,{ref:h,...m}),()=>void S.itemMap.delete(h))),c.jsx(ys,{[p]:"",ref:v,children:w})});f.displayName=u;function d(x){const y=s(e+"CollectionConsumer",x);return O.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const m=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(y.itemMap.values()).sort((S,N)=>m.indexOf(S.ref.current)-m.indexOf(N.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},d,r]}function fh(e,t=[]){let n=[];function r(s,i){const a=b.createContext(i),l=n.length;n=[...n,i];const u=f=>{var m;const{scope:d,children:x,...y}=f,g=((m=d==null?void 0:d[e])==null?void 0:m[l])||a,w=b.useMemo(()=>y,Object.values(y));return c.jsx(g.Provider,{value:w,children:x})};u.displayName=s+"Provider";function p(f,d){var g;const x=((g=d==null?void 0:d[e])==null?void 0:g[l])||a,y=b.useContext(x);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,p]}const o=()=>{const s=n.map(i=>b.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,G0(o,...t)]}function G0(...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 f=l(s)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var K0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ot=K0.reduce((e,t)=>{const n=b.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?ys:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ph(e,t){e&&Os.flushSync(()=>e.dispatchEvent(t))}function Yt(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Y0(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e);b.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 X0="DismissableLayer",cc="dismissableLayer.update",Z0="dismissableLayer.pointerDownOutside",J0="dismissableLayer.focusOutside",rf,mh=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wu=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=b.useContext(mh),[p,f]=b.useState(null),d=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=b.useState({}),y=_t(t,C=>f(C)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(w),h=p?g.indexOf(p):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=m,N=tx(C=>{const j=C.target,T=[...u.branches].some(I=>I.contains(j));!S||T||(o==null||o(C),i==null||i(C),C.defaultPrevented||a==null||a())},d),k=nx(C=>{const j=C.target;[...u.branches].some(I=>I.contains(j))||(s==null||s(C),i==null||i(C),C.defaultPrevented||a==null||a())},d);return Y0(C=>{h===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},d),b.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(rf=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),of(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=rf)}},[p,d,n,u]),b.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),of())},[p,u]),b.useEffect(()=>{const C=()=>x({});return document.addEventListener(cc,C),()=>document.removeEventListener(cc,C)},[]),c.jsx(ot.div,{...l,ref:y,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,N.onPointerDownCapture)})});wu.displayName=X0;var ex="DismissableLayerBranch",hh=b.forwardRef((e,t)=>{const n=b.useContext(mh),r=b.useRef(null),o=_t(t,r);return b.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(ot.div,{...e,ref:o})});hh.displayName=ex;function tx(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){gh(Z0,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 nx(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=b.useRef(!1);return b.useEffect(()=>{const o=s=>{s.target&&!r.current&&gh(J0,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 of(){const e=new CustomEvent(cc);document.dispatchEvent(e)}function gh(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?ph(o,s):o.dispatchEvent(s)}var rx=wu,ox=hh,yr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},sx="Portal",yh=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=b.useState(!1);yr(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?lh.createPortal(c.jsx(ot.div,{...r,ref:t}),i):null});yh.displayName=sx;function ix(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var bu=e=>{const{present:t,children:n}=e,r=ax(t),o=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),s=_t(r.ref,lx(o));return typeof n=="function"||r.isPresent?b.cloneElement(o,{ref:s}):null};bu.displayName="Presence";function ax(e){const[t,n]=b.useState(),r=b.useRef({}),o=b.useRef(e),s=b.useRef("none"),i=e?"mounted":"unmounted",[a,l]=ix(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=oi(r.current);s.current=a==="mounted"?u:"none"},[a]),yr(()=>{const u=r.current,p=o.current;if(p!==e){const d=s.current,x=oi(u);e?l("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(p&&d!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),yr(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,f=x=>{const g=oi(r.current).includes(x.animationName);if(x.target===t&&g&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},d=x=>{x.target===t&&(s.current=oi(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function oi(e){return(e==null?void 0:e.animationName)||"none"}function lx(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 cx({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ux({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=Yt(n),l=b.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else o(u)},[s,e,o,a]);return[i,l]}function ux({defaultProp:e,onChange:t}){const n=b.useState(e),[r]=n,o=b.useRef(r),s=Yt(t);return b.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var dx="VisuallyHidden",ya=b.forwardRef((e,t)=>c.jsx(ot.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ya.displayName=dx;var fx=ya,Su="ToastProvider",[Nu,px,mx]=q0("Toast"),[vh,GS]=fh("Toast",[mx]),[hx,va]=vh(Su),xh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=b.useState(null),[u,p]=b.useState(0),f=b.useRef(!1),d=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Su}\`. Expected non-empty \`string\`.`),c.jsx(Nu.Provider,{scope:t,children:c.jsx(hx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>p(x=>x+1),[]),onToastRemove:b.useCallback(()=>p(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:i})})};xh.displayName=Su;var wh="ToastViewport",gx=["F8"],uc="toast.viewportPause",dc="toast.viewportResume",bh=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=gx,label:o="Notifications ({hotkey})",...s}=e,i=va(wh,n),a=px(n),l=b.useRef(null),u=b.useRef(null),p=b.useRef(null),f=b.useRef(null),d=_t(t,f,i.onViewportChange),x=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;b.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),b.useEffect(()=>{const w=l.current,m=f.current;if(y&&w&&m){const h=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(uc);m.dispatchEvent(k),i.isClosePausedRef.current=!0}},v=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(dc);m.dispatchEvent(k),i.isClosePausedRef.current=!1}},S=k=>{!w.contains(k.relatedTarget)&&v()},N=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",h),w.addEventListener("focusout",S),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",N),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",N),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[y,i.isClosePausedRef]);const g=b.useCallback(({tabbingDirection:w})=>{const h=a().map(v=>{const S=v.ref.current,N=[S,...Tx(S)];return w==="forwards"?N:N.reverse()});return(w==="forwards"?h.reverse():h).flat()},[a]);return b.useEffect(()=>{const w=f.current;if(w){const m=h=>{var N,k,C;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const j=document.activeElement,T=h.shiftKey;if(h.target===w&&T){(N=u.current)==null||N.focus();return}const _=g({tabbingDirection:T?"backwards":"forwards"}),H=_.findIndex(A=>A===j);ul(_.slice(H+1))?h.preventDefault():T?(k=u.current)==null||k.focus():(C=p.current)==null||C.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,g]),c.jsxs(ox,{ref:l,role:"region","aria-label":o.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&c.jsx(fc,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});ul(w)}}),c.jsx(Nu.Slot,{scope:n,children:c.jsx(ot.ol,{tabIndex:-1,...s,ref:d})}),y&&c.jsx(fc,{ref:p,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});ul(w)}})]})});bh.displayName=wh;var Sh="ToastFocusProxy",fc=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=va(Sh,n);return c.jsx(ya,{"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()}})});fc.displayName=Sh;var xa="Toast",yx="toast.swipeStart",vx="toast.swipeMove",xx="toast.swipeCancel",wx="toast.swipeEnd",Nh=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a=!0,l]=cx({prop:r,defaultProp:o,onChange:s});return c.jsx(bu,{present:n||a,children:c.jsx(Nx,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Yt(e.onPause),onResume:Yt(e.onResume),onSwipeStart:Ae(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ae(e.onSwipeMove,u=>{const{x:p,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ae(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:Ae(e.onSwipeEnd,u=>{const{x:p,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Nh.displayName=xa;var[bx,Sx]=vh(xa,{onClose(){}}),Nx=b.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:p,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:x,...y}=e,g=va(xa,n),[w,m]=b.useState(null),h=_t(t,A=>m(A)),v=b.useRef(null),S=b.useRef(null),N=o||g.duration,k=b.useRef(0),C=b.useRef(N),j=b.useRef(0),{onToastAdd:T,onToastRemove:I}=g,L=Yt(()=>{var V;(w==null?void 0:w.contains(document.activeElement))&&((V=g.viewport)==null||V.focus()),i()}),_=b.useCallback(A=>{!A||A===1/0||(window.clearTimeout(j.current),k.current=new Date().getTime(),j.current=window.setTimeout(L,A))},[L]);b.useEffect(()=>{const A=g.viewport;if(A){const V=()=>{_(C.current),u==null||u()},B=()=>{const W=new Date().getTime()-k.current;C.current=C.current-W,window.clearTimeout(j.current),l==null||l()};return A.addEventListener(uc,B),A.addEventListener(dc,V),()=>{A.removeEventListener(uc,B),A.removeEventListener(dc,V)}}},[g.viewport,N,l,u,_]),b.useEffect(()=>{s&&!g.isClosePausedRef.current&&_(N)},[s,N,g.isClosePausedRef,_]),b.useEffect(()=>(T(),()=>I()),[T,I]);const H=b.useMemo(()=>w?Ah(w):null,[w]);return g.viewport?c.jsxs(c.Fragment,{children:[H&&c.jsx(Cx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),c.jsx(bx,{scope:n,onClose:L,children:Os.createPortal(c.jsx(Nu.ItemSlot,{scope:n,children:c.jsx(rx,{asChild:!0,onEscapeKeyDown:Ae(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||L(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(ot.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ae(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Ae(e.onPointerDown,A=>{A.button===0&&(v.current={x:A.clientX,y:A.clientY})}),onPointerMove:Ae(e.onPointerMove,A=>{if(!v.current)return;const V=A.clientX-v.current.x,B=A.clientY-v.current.y,W=!!S.current,E=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,z=E?R(0,V):0,D=E?0:R(0,B),U=A.pointerType==="touch"?10:2,Q={x:z,y:D},J={originalEvent:A,delta:Q};W?(S.current=Q,si(vx,f,J,{discrete:!1})):sf(Q,g.swipeDirection,U)?(S.current=Q,si(yx,p,J,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(V)>U||Math.abs(B)>U)&&(v.current=null)}),onPointerUp:Ae(e.onPointerUp,A=>{const V=S.current,B=A.target;if(B.hasPointerCapture(A.pointerId)&&B.releasePointerCapture(A.pointerId),S.current=null,v.current=null,V){const W=A.currentTarget,E={originalEvent:A,delta:V};sf(V,g.swipeDirection,g.swipeThreshold)?si(wx,x,E,{discrete:!0}):si(xx,d,E,{discrete:!0}),W.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Cx=e=>{const{__scopeToast:t,children:n,...r}=e,o=va(xa,t),[s,i]=b.useState(!1),[a,l]=b.useState(!1);return jx(()=>i(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(yh,{asChild:!0,children:c.jsx(ya,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},kx="ToastTitle",Ch=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ot.div,{...r,ref:t})});Ch.displayName=kx;var Ex="ToastDescription",kh=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ot.div,{...r,ref:t})});kh.displayName=Ex;var Eh="ToastAction",jh=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(Th,{altText:n,asChild:!0,children:c.jsx(Cu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Eh}\`. Expected non-empty \`string\`.`),null)});jh.displayName=Eh;var Ph="ToastClose",Cu=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Sx(Ph,n);return c.jsx(Th,{asChild:!0,children:c.jsx(ot.button,{type:"button",...r,ref:t,onClick:Ae(e.onClick,o.onClose)})})});Cu.displayName=Ph;var Th=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(ot.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Ah(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Px(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(...Ah(r))}}),t}function si(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?ph(o,s):o.dispatchEvent(s)}var sf=(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 jx(e=()=>{}){const t=Yt(e);yr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Px(e){return e.nodeType===e.ELEMENT_NODE}function Tx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ul(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Ax=xh,Ih=bh,Rh=Nh,Mh=Ch,Oh=kh,Lh=jh,Dh=Cu;function _h(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,lf=zh,Fh=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lf(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 p=n==null?void 0:n[u],f=s==null?void 0:s[u];if(p===null)return null;const d=af(p)||af(f);return o[u][d]}),a=n&&Object.entries(n).reduce((u,p)=>{let[f,d]=p;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:f,className:d,...x}=p;return Object.entries(x).every(y=>{let[g,w]=y;return Array.isArray(w)?w.includes({...s,...a}[g]):{...s,...a}[g]===w})?[...u,f,d]:u},[]);return lf(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 Ix=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$h=(...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 Rx={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 Mx=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>b.createElement("svg",{ref:l,...Rx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$h("lucide",o),...a},[...i.map(([u,p])=>b.createElement(u,p)),...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 he=(e,t)=>{const n=b.forwardRef(({className:r,...o},s)=>b.createElement(Mx,{ref:s,iconNode:t,className:$h(`lucide-${Ix(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 Bh=he("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sr=he("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ox=he("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lx=he("BookmarkPlus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);/** * @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 Uh=he("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ku=he("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _x=he("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** * @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 zx=he("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fx=he("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** * @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 $x=he("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vh=he("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hh=he("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bx=he("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wh=he("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 Qh=he("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ux=he("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** * @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 Vx=he("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 Hx=he("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qh=he("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @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 pc=he("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wx=he("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/** * @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 Gh=he("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 Qx=he("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Eu="-",qx=e=>{const t=Kx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Eu);return a[0]===""&&a.length!==1&&a.shift(),Kh(a,t)||Gx(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Kh=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Kh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Eu);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},cf=/^\[(.+)\]$/,Gx=e=>{if(cf.test(e)){const t=cf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Kx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xx(Object.entries(e.classGroups),n).forEach(([s,i])=>{mc(i,r,s,t)}),r},mc=(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(Yx(o)){mc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{mc(i,uf(t,s),n,r)})})},uf=(e,t)=>{let n=e;return t.split(Eu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Yx=e=>e.isThemeGetter,Xx=(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,Zx=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)}}},Yh="!",Jx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,p=0,f;for(let w=0;wp?f-p:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},ew=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},tw=e=>({cache:Zx(e.cacheSize),parseClassName:Jx(e),...qx(e)}),nw=/\s+/,rw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(nw);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:p,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:x}=n(u);let y=!!x,g=r(y?d.substring(0,x):d);if(!g){if(!y){a=u+(a.length>0?" "+a:a);continue}if(g=r(d),!g){a=u+(a.length>0?" "+a:a);continue}y=!1}const w=ew(p).join(":"),m=f?w+Yh:w,h=m+g;if(s.includes(h))continue;s.push(h);const v=o(g,y);for(let S=0;S0?" "+a:a)}return a};function ow(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(p),e());return n=tw(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 p=rw(l,n);return o(l,p),p}return function(){return s(ow.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Zh=/^\[(?:([a-z-]+):)?(.+)\]$/i,iw=/^\d+\/\d+$/,aw=new Set(["px","full","screen"]),lw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cw=/\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$/,uw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>Wr(e)||aw.has(e)||iw.test(e),yn=e=>ho(e,"length",ww),Wr=e=>!!e&&!Number.isNaN(Number(e)),dl=e=>ho(e,"number",Wr),Lo=e=>!!e&&Number.isInteger(Number(e)),pw=e=>e.endsWith("%")&&Wr(e.slice(0,-1)),G=e=>Zh.test(e),vn=e=>lw.test(e),mw=new Set(["length","size","percentage"]),hw=e=>ho(e,mw,Jh),gw=e=>ho(e,"position",Jh),yw=new Set(["image","url"]),vw=e=>ho(e,yw,Sw),xw=e=>ho(e,"",bw),Do=()=>!0,ho=(e,t,n)=>{const r=Zh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ww=e=>cw.test(e)&&!uw.test(e),Jh=()=>!1,bw=e=>dw.test(e),Sw=e=>fw.test(e),Nw=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),o=ue("borderColor"),s=ue("borderRadius"),i=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),u=ue("grayscale"),p=ue("hueRotate"),f=ue("invert"),d=ue("gap"),x=ue("gradientColorStops"),y=ue("gradientColorStopPositions"),g=ue("inset"),w=ue("margin"),m=ue("opacity"),h=ue("padding"),v=ue("saturate"),S=ue("scale"),N=ue("sepia"),k=ue("skew"),C=ue("space"),j=ue("translate"),T=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",G,t],_=()=>[G,t],H=()=>["",en,yn],A=()=>["auto",Wr,G],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["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"],E=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",G],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[Wr,G];return{cacheSize:500,separator:":",theme:{colors:[Do],spacing:[en,yn],blur:["none","",vn,G],brightness:D(),borderColor:[e],borderRadius:["none","","full",vn,G],borderSpacing:_(),borderWidth:H(),contrast:D(),grayscale:R(),hueRotate:D(),invert:R(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[pw,yn],inset:L(),margin:L(),opacity:D(),padding:_(),saturate:D(),scale:D(),sepia:R(),skew:D(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[vn]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:[...V(),G]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lo,G]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Lo,G]}],"grid-cols":[{"grid-cols":[Do]}],"col-start-end":[{col:["auto",{span:["full",Lo,G]},G]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Do]}],"row-start-end":[{row:["auto",{span:[Lo,G]},G]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[vn]},vn]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vn,yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dl]}],"font-family":[{font:[Do]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",Wr,dl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",en,yn]}],"underline-offset":[{"underline-offset":["auto",en,G]}],"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:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],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",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),gw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],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":[m]}],"border-style":[{border:[...B(),"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":[m]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[en,G]}],"outline-w":[{outline:[en,yn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[en,yn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vn,xw]}],"shadow-color":[{shadow:[Do]}],opacity:[{opacity:[m]}],"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",vn,G]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[N]}],"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":[p]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"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",G]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Lo,G]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],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",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,yn,dl]}],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"]}}},Cw=sw(Nw);function Ce(...e){return Cw(zh(e))}const kw=Ax,eg=b.forwardRef(({className:e,...t},n)=>c.jsx(Ih,{ref:n,className:Ce("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}));eg.displayName=Ih.displayName;const Ew=Fh("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"}}),tg=b.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Rh,{ref:r,className:Ce(Ew({variant:t}),e),...n}));tg.displayName=Rh.displayName;const jw=b.forwardRef(({className:e,...t},n)=>c.jsx(Lh,{ref:n,className:Ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));jw.displayName=Lh.displayName;const ng=b.forwardRef(({className:e,...t},n)=>c.jsx(Dh,{ref:n,className:Ce("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Gh,{className:"h-4 w-4"})}));ng.displayName=Dh.displayName;const rg=b.forwardRef(({className:e,...t},n)=>c.jsx(Mh,{ref:n,className:Ce("text-sm font-semibold",e),...t}));rg.displayName=Mh.displayName;const og=b.forwardRef(({className:e,...t},n)=>c.jsx(Oh,{ref:n,className:Ce("text-sm opacity-90",e),...t}));og.displayName=Oh.displayName;function Pw(){const{toasts:e}=$0();return c.jsxs(kw,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(tg,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(rg,{children:n}),r&&c.jsx(og,{children:r})]}),o,c.jsx(ng,{})]},t)}),c.jsx(eg,{})]})}var df=["light","dark"],Tw="(prefers-color-scheme: dark)",Aw=b.createContext(void 0),Iw={setTheme:e=>{},themes:[]},Rw=()=>{var e;return(e=b.useContext(Aw))!=null?e:Iw};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",p=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?df.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(y,g=!1,w=!0)=>{let m=i?i[y]:y,h=g?y+"|| ''":`'${m}'`,v="";return o&&w&&!g&&df.includes(y)&&(v+=`d.style.colorScheme = '${y}';`),n==="class"?g||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},x=e?`!function(){${p}${d(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Tw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}${u?"":"else{"+d(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}else{${d(s,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:x}})});var Mw=e=>{switch(e){case"success":return Dw;case"info":return zw;case"warning":return _w;case"error":return Fw;default:return null}},Ow=Array(12).fill(0),Lw=({visible:e})=>O.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},O.createElement("div",{className:"sonner-spinner"},Ow.map((t,n)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Dw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),_w=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),zw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),Fw=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),$w=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},hc=1,Bw=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:hc++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return 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=>(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;return r.then(async s=>{if(Vw(s)&&!s.ok){o=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:n,type:"error",message:i,description:a})}else if(t.success!==void 0){o=!1;let i=typeof t.success=="function"?await t.success(s):t.success,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:i,description:a})}}).catch(async s=>{if(t.error!==void 0){o=!1;let i=typeof t.error=="function"?await t.error(s):t.error,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:i,description:a})}}).finally(()=>{var s;o&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||hc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},ct=new Bw,Uw=(e,t)=>{let n=(t==null?void 0:t.id)||hc++;return ct.addToast({title:e,...t,id:n}),n},Vw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Hw=Uw,Ww=()=>ct.toasts;Object.assign(Hw,{success:ct.success,info:ct.info,warning:ct.warning,error:ct.error,custom:ct.custom,message:ct.message,promise:ct.promise,dismiss:ct.dismiss,loading:ct.loading},{getHistory:Ww});function Qw(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))}Qw(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;background:var(--gray1);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}: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:0;right:0;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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function ii(e){return e.label!==void 0}var qw=3,Gw="32px",Kw=4e3,Yw=356,Xw=14,Zw=20,Jw=200;function e1(...e){return e.filter(Boolean).join(" ")}var t1=e=>{var t,n,r,o,s,i,a,l,u,p;let{invert:f,toast:d,unstyled:x,interacting:y,setHeights:g,visibleToasts:w,heights:m,index:h,toasts:v,expanded:S,removeToast:N,defaultRichColors:k,closeButton:C,style:j,cancelButtonStyle:T,actionButtonStyle:I,className:L="",descriptionClassName:_="",duration:H,position:A,gap:V,loadingIcon:B,expandByDefault:W,classNames:E,icons:R,closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:D,cn:U}=e,[Q,J]=O.useState(!1),[je,X]=O.useState(!1),[ce,pe]=O.useState(!1),[Oe,Se]=O.useState(!1),[oe,$]=O.useState(0),[Z,ie]=O.useState(0),ke=O.useRef(null),Pe=O.useRef(null),st=h===0,vt=h+1<=w,ae=d.type,Ze=d.dismissible!==!1,Xn=d.className||"",bo=d.descriptionClassName||"",hn=O.useMemo(()=>m.findIndex(q=>q.toastId===d.id)||0,[m,d.id]),_s=O.useMemo(()=>{var q;return(q=d.closeButton)!=null?q:C},[d.closeButton,C]),So=O.useMemo(()=>d.duration||H||Kw,[d.duration,H]),No=O.useRef(0),Jt=O.useRef(0),zs=O.useRef(0),$t=O.useRef(null),[Et,Co]=A.split("-"),Cr=O.useMemo(()=>m.reduce((q,se,ne)=>ne>=hn?q:q+se.height,0),[m,hn]),Zn=$w(),ko=d.invert||f,Eo=ae==="loading";Jt.current=O.useMemo(()=>hn*V+Cr,[hn,Cr]),O.useEffect(()=>{J(!0)},[]),O.useLayoutEffect(()=>{if(!Q)return;let q=Pe.current,se=q.style.height;q.style.height="auto";let ne=q.getBoundingClientRect().height;q.style.height=se,ie(ne),g(it=>it.find(at=>at.toastId===d.id)?it.map(at=>at.toastId===d.id?{...at,height:ne}:at):[{toastId:d.id,height:ne,position:d.position},...it])},[Q,d.title,d.description,g,d.id]);let Bt=O.useCallback(()=>{X(!0),$(Jt.current),g(q=>q.filter(se=>se.toastId!==d.id)),setTimeout(()=>{N(d)},Jw)},[d,N,g,Jt]);O.useEffect(()=>{if(d.promise&&ae==="loading"||d.duration===1/0||d.type==="loading")return;let q,se=So;return S||y||D&&Zn?(()=>{if(zs.current{var ne;(ne=d.onAutoClose)==null||ne.call(d,d),Bt()},se)),()=>clearTimeout(q)},[S,y,W,d,So,Bt,d.promise,ae,D,Zn]),O.useEffect(()=>{let q=Pe.current;if(q){let se=q.getBoundingClientRect().height;return ie(se),g(ne=>[{toastId:d.id,height:se,position:d.position},...ne]),()=>g(ne=>ne.filter(it=>it.toastId!==d.id))}},[g,d.id]),O.useEffect(()=>{d.delete&&Bt()},[Bt,d.delete]);function Oa(){return R!=null&&R.loading?O.createElement("div",{className:"sonner-loader","data-visible":ae==="loading"},R.loading):B?O.createElement("div",{className:"sonner-loader","data-visible":ae==="loading"},B):O.createElement(Lw,{visible:ae==="loading"})}return O.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Pe,className:U(L,Xn,E==null?void 0:E.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,E==null?void 0:E.default,E==null?void 0:E[ae],(n=d==null?void 0:d.classNames)==null?void 0:n[ae]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:k,"data-styled":!(d.jsx||d.unstyled||x),"data-mounted":Q,"data-promise":!!d.promise,"data-removed":je,"data-visible":vt,"data-y-position":Et,"data-x-position":Co,"data-index":h,"data-front":st,"data-swiping":ce,"data-dismissible":Ze,"data-type":ae,"data-invert":ko,"data-swipe-out":Oe,"data-expanded":!!(S||W&&Q),style:{"--index":h,"--toasts-before":h,"--z-index":v.length-h,"--offset":`${je?oe:Jt.current}px`,"--initial-height":W?"auto":`${Z}px`,...j,...d.style},onPointerDown:q=>{Eo||!Ze||(ke.current=new Date,$(Jt.current),q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(pe(!0),$t.current={x:q.clientX,y:q.clientY}))},onPointerUp:()=>{var q,se,ne,it;if(Oe||!Ze)return;$t.current=null;let at=Number(((q=Pe.current)==null?void 0:q.style.getPropertyValue("--swipe-amount").replace("px",""))||0),kr=new Date().getTime()-((se=ke.current)==null?void 0:se.getTime()),Fs=Math.abs(at)/kr;if(Math.abs(at)>=Zw||Fs>.11){$(Jt.current),(ne=d.onDismiss)==null||ne.call(d,d),Bt(),Se(!0);return}(it=Pe.current)==null||it.style.setProperty("--swipe-amount","0px"),pe(!1)},onPointerMove:q=>{var se;if(!$t.current||!Ze)return;let ne=q.clientY-$t.current.y,it=q.clientX-$t.current.x,at=(Et==="top"?Math.min:Math.max)(0,ne),kr=q.pointerType==="touch"?10:2;Math.abs(at)>kr?(se=Pe.current)==null||se.style.setProperty("--swipe-amount",`${ne}px`):Math.abs(it)>kr&&($t.current=null)}},_s&&!d.jsx?O.createElement("button",{"aria-label":z,"data-disabled":Eo,"data-close-button":!0,onClick:Eo||!Ze?()=>{}:()=>{var q;Bt(),(q=d.onDismiss)==null||q.call(d,d)},className:U(E==null?void 0:E.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||O.isValidElement(d.title)?d.jsx||d.title:O.createElement(O.Fragment,null,ae||d.icon||d.promise?O.createElement("div",{"data-icon":"",className:U(E==null?void 0:E.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Oa():null,d.type!=="loading"?d.icon||(R==null?void 0:R[ae])||Mw(ae):null):null,O.createElement("div",{"data-content":"",className:U(E==null?void 0:E.content,(i=d==null?void 0:d.classNames)==null?void 0:i.content)},O.createElement("div",{"data-title":"",className:U(E==null?void 0:E.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},d.title),d.description?O.createElement("div",{"data-description":"",className:U(_,bo,E==null?void 0:E.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},d.description):null),O.isValidElement(d.cancel)?d.cancel:d.cancel&&ii(d.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||T,onClick:q=>{var se,ne;ii(d.cancel)&&Ze&&((ne=(se=d.cancel).onClick)==null||ne.call(se,q),Bt())},className:U(E==null?void 0:E.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,O.isValidElement(d.action)?d.action:d.action&&ii(d.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||I,onClick:q=>{var se,ne;ii(d.action)&&(q.defaultPrevented||((ne=(se=d.action).onClick)==null||ne.call(se,q),Bt()))},className:U(E==null?void 0:E.actionButton,(p=d==null?void 0:d.classNames)==null?void 0:p.actionButton)},d.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}var n1=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:s,className:i,offset:a,theme:l="light",richColors:u,duration:p,style:f,visibleToasts:d=qw,toastOptions:x,dir:y=ff(),gap:g=Xw,loadingIcon:w,icons:m,containerAriaLabel:h="Notifications",pauseWhenPageIsHidden:v,cn:S=e1}=e,[N,k]=O.useState([]),C=O.useMemo(()=>Array.from(new Set([n].concat(N.filter(D=>D.position).map(D=>D.position)))),[N,n]),[j,T]=O.useState([]),[I,L]=O.useState(!1),[_,H]=O.useState(!1),[A,V]=O.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=O.useRef(null),W=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=O.useRef(null),R=O.useRef(!1),z=O.useCallback(D=>{var U;(U=N.find(Q=>Q.id===D.id))!=null&&U.delete||ct.dismiss(D.id),k(Q=>Q.filter(({id:J})=>J!==D.id))},[N]);return O.useEffect(()=>ct.subscribe(D=>{if(D.dismiss){k(U=>U.map(Q=>Q.id===D.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{lh.flushSync(()=>{k(U=>{let Q=U.findIndex(J=>J.id===D.id);return Q!==-1?[...U.slice(0,Q),{...U[Q],...D},...U.slice(Q+1)]:[D,...U]})})})}),[]),O.useEffect(()=>{if(l!=="system"){V(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:D})=>{V(D?"dark":"light")})},[l]),O.useEffect(()=>{N.length<=1&&L(!1)},[N]),O.useEffect(()=>{let D=U=>{var Q,J;r.every(je=>U[je]||U.code===je)&&(L(!0),(Q=B.current)==null||Q.focus()),U.code==="Escape"&&(document.activeElement===B.current||(J=B.current)!=null&&J.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[r]),O.useEffect(()=>{if(B.current)return()=>{E.current&&(E.current.focus({preventScroll:!0}),E.current=null,R.current=!1)}},[B.current]),N.length?O.createElement("section",{"aria-label":`${h} ${W}`,tabIndex:-1},C.map((D,U)=>{var Q;let[J,je]=D.split("-");return O.createElement("ol",{key:D,dir:y==="auto"?ff():y,tabIndex:-1,ref:B,className:i,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":J,"data-x-position":je,style:{"--front-toast-height":`${((Q=j[0])==null?void 0:Q.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||Gw,"--width":`${Yw}px`,"--gap":`${g}px`,...f},onBlur:X=>{R.current&&!X.currentTarget.contains(X.relatedTarget)&&(R.current=!1,E.current&&(E.current.focus({preventScroll:!0}),E.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||R.current||(R.current=!0,E.current=X.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{_||L(!1)},onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},N.filter(X=>!X.position&&U===0||X.position===D).map((X,ce)=>{var pe,Oe;return O.createElement(t1,{key:X.id,icons:m,index:ce,toast:X,defaultRichColors:u,duration:(pe=x==null?void 0:x.duration)!=null?pe:p,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:t,visibleToasts:d,closeButton:(Oe=x==null?void 0:x.closeButton)!=null?Oe:s,interacting:_,position:D,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:z,toasts:N.filter(Se=>Se.position==X.position),heights:j.filter(Se=>Se.position==X.position),setHeights:T,expandByDefault:o,gap:g,loadingIcon:w,expanded:I,pauseWhenPageIsHidden:v,cn:S})}))})):null};const r1=({...e})=>{const{theme:t="system"}=Rw();return c.jsx(n1,{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})},o1=["top","right","bottom","left"],Hn=Math.min,dt=Math.max,Gi=Math.round,ai=Math.floor,Wn=e=>({x:e,y:e}),s1={left:"right",right:"left",bottom:"top",top:"bottom"},i1={start:"end",end:"start"};function gc(e,t,n){return dt(e,Hn(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function go(e){return e.split("-")[1]}function ju(e){return e==="x"?"y":"x"}function Pu(e){return e==="y"?"height":"width"}function Qn(e){return["top","bottom"].includes(pn(e))?"y":"x"}function Tu(e){return ju(Qn(e))}function a1(e,t,n){n===void 0&&(n=!1);const r=go(e),o=Tu(e),s=Pu(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ki(i)),[i,Ki(i)]}function l1(e){const t=Ki(e);return[yc(e),t,yc(t)]}function yc(e){return e.replace(/start|end/g,t=>i1[t])}function c1(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function u1(e,t,n,r){const o=go(e);let s=c1(pn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(yc)))),s}function Ki(e){return e.replace(/left|right|bottom|top/g,t=>s1[t])}function d1(e){return{top:0,right:0,bottom:0,left:0,...e}}function sg(e){return typeof e!="number"?d1(e):{top:e,right:e,bottom:e,left:e}}function Yi(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 pf(e,t,n){let{reference:r,floating:o}=e;const s=Qn(t),i=Tu(t),a=Pu(i),l=pn(t),u=s==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let x;switch(l){case"top":x={x:p,y:r.y-o.height};break;case"bottom":x={x:p,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:f};break;case"left":x={x:r.x-o.width,y:f};break;default:x={x:r.x,y:r.y}}switch(go(t)){case"start":x[i]-=d*(n&&u?-1:1);break;case"end":x[i]+=d*(n&&u?-1:1);break}return x}const f1=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:p,y:f}=pf(u,r,l),d=r,x={},y=0;for(let g=0;g({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:p=0}=fn(e,t)||{};if(u==null)return{};const f=sg(p),d={x:n,y:r},x=Tu(o),y=Pu(x),g=await i.getDimensions(u),w=x==="y",m=w?"top":"left",h=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=s.reference[y]+s.reference[x]-d[x]-s.floating[y],N=d[x]-s.reference[x],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=k?k[v]:0;(!C||!await(i.isElement==null?void 0:i.isElement(k)))&&(C=a.floating[v]||s.floating[y]);const j=S/2-N/2,T=C/2-g[y]/2-1,I=Hn(f[m],T),L=Hn(f[h],T),_=I,H=C-g[y]-L,A=C/2-g[y]/2+j,V=gc(_,A,H),B=!l.arrow&&go(o)!=null&&A!==V&&s.reference[y]/2-(A<_?I:L)-g[y]/2<0,W=B?A<_?A-_:A-H:0;return{[x]:d[x]+W,data:{[x]:V,centerOffset:A-V-W,...B&&{alignmentOffset:W}},reset:B}}}),m1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=fn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=pn(o),h=Qn(a),v=pn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),N=d||(v||!g?[Ki(a)]:l1(a)),k=y!=="none";!d&&k&&N.push(...u1(a,g,y,S));const C=[a,...N],j=await vs(t,w),T=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&T.push(j[m]),f){const A=a1(o,i,S);T.push(j[A[0]],j[A[1]])}if(I=[...I,{placement:o,overflows:T}],!T.every(A=>A<=0)){var L,_;const A=(((L=s.flip)==null?void 0:L.index)||0)+1,V=C[A];if(V)return{data:{index:A,overflows:I},reset:{placement:V}};let B=(_=I.filter(W=>W.overflows[0]<=0).sort((W,E)=>W.overflows[1]-E.overflows[1])[0])==null?void 0:_.placement;if(!B)switch(x){case"bestFit":{var H;const W=(H=I.filter(E=>{if(k){const R=Qn(E.placement);return R===h||R==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(R=>R>0).reduce((R,z)=>R+z,0)]).sort((E,R)=>E[1]-R[1])[0])==null?void 0:H[0];W&&(B=W);break}case"initialPlacement":B=a;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function mf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hf(e){return o1.some(t=>e[t]>=0)}const h1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const s=await vs(t,{...o,elementContext:"reference"}),i=mf(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:hf(i)}}}case"escaped":{const s=await vs(t,{...o,altBoundary:!0}),i=mf(s,n.floating);return{data:{escapedOffsets:i,escaped:hf(i)}}}default:return{}}}}};async function g1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=pn(n),a=go(n),l=Qn(n)==="y",u=["left","top"].includes(i)?-1:1,p=s&&l?-1:1,f=fn(t,e);let{mainAxis:d,crossAxis:x,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(x=a==="end"?y*-1:y),l?{x:x*p,y:d*u}:{x:d*u,y:x*p}}const y1=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 g1(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}}}}},v1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...l}=fn(e,t),u={x:n,y:r},p=await vs(t,l),f=Qn(pn(o)),d=ju(f);let x=u[d],y=u[f];if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=x+p[w],v=x-p[m];x=gc(h,x,v)}if(i){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=y+p[w],v=y-p[m];y=gc(h,y,v)}const g=a.fn({...t,[d]:x,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:s,[f]:i}}}}}},x1=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}=fn(e,t),p={x:n,y:r},f=Qn(o),d=ju(f);let x=p[d],y=p[f];const g=fn(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=d==="y"?"height":"width",S=s.reference[d]-s.floating[v]+w.mainAxis,N=s.reference[d]+s.reference[v]-w.mainAxis;xN&&(x=N)}if(u){var m,h;const v=d==="y"?"width":"height",S=["top","left"].includes(pn(o)),N=s.reference[f]-s.floating[v]+(S&&((m=i.offset)==null?void 0:m[f])||0)+(S?0:w.crossAxis),k=s.reference[f]+s.reference[v]+(S?0:((h=i.offset)==null?void 0:h[f])||0)-(S?w.crossAxis:0);yk&&(y=k)}return{[d]:x,[f]:y}}}},w1=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}=fn(e,t),p=await vs(t,u),f=pn(o),d=go(o),x=Qn(o)==="y",{width:y,height:g}=s.floating;let w,m;f==="top"||f==="bottom"?(w=f,m=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,w=d==="end"?"top":"bottom");const h=g-p.top-p.bottom,v=y-p.left-p.right,S=Hn(g-p[w],h),N=Hn(y-p[m],v),k=!t.middlewareData.shift;let C=S,j=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=h),k&&!d){const I=dt(p.left,0),L=dt(p.right,0),_=dt(p.top,0),H=dt(p.bottom,0);x?j=y-2*(I!==0||L!==0?I+L:dt(p.left,p.right)):C=g-2*(_!==0||H!==0?_+H:dt(p.top,p.bottom))}await l({...t,availableWidth:j,availableHeight:C});const T=await i.getDimensions(a.floating);return y!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function wa(){return typeof window<"u"}function yo(e){return ig(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(ig(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ig(e){return wa()?e instanceof Node||e instanceof mt(e).Node:!1}function zt(e){return wa()?e instanceof Element||e instanceof mt(e).Element:!1}function Xt(e){return wa()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function gf(e){return!wa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}function Ls(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function b1(e){return["table","td","th"].includes(yo(e))}function ba(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Au(e){const t=Iu(),n=zt(e)?Ft(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function S1(e){let t=qn(e);for(;Xt(t)&&!co(t);){if(Au(t))return t;if(ba(t))return null;t=qn(t)}return null}function Iu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function co(e){return["html","body","#document"].includes(yo(e))}function Ft(e){return mt(e).getComputedStyle(e)}function Sa(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(yo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gf(e)&&e.host||Zt(e);return gf(t)?t.host:t}function ag(e){const t=qn(e);return co(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&Ls(t)?t:ag(t)}function xs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ag(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=mt(o);if(s){const a=vc(i);return t.concat(i,i.visualViewport||[],Ls(o)?o:[],a&&n?xs(a):[])}return t.concat(o,xs(o,[],n))}function vc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lg(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Gi(n)!==s||Gi(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ru(e){return zt(e)?e:e.contextElement}function Qr(e){const t=Ru(e);if(!Xt(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=lg(t);let i=(s?Gi(n.width):n.width)/r,a=(s?Gi(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const N1=Wn(0);function cg(e){const t=mt(e);return!Iu()||!t.visualViewport?N1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mt(e)?!1:t}function vr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ru(e);let i=Wn(1);t&&(r?zt(r)&&(i=Qr(r)):i=Qr(e));const a=C1(s,n,r)?cg(s):Wn(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,p=o.width/i.x,f=o.height/i.y;if(s){const d=mt(s),x=r&&zt(r)?mt(r):r;let y=d,g=vc(y);for(;g&&r&&x!==y;){const w=Qr(g),m=g.getBoundingClientRect(),h=Ft(g),v=m.left+(g.clientLeft+parseFloat(h.paddingLeft))*w.x,S=m.top+(g.clientTop+parseFloat(h.paddingTop))*w.y;l*=w.x,u*=w.y,p*=w.x,f*=w.y,l+=v,u+=S,y=mt(g),g=vc(y)}}return Yi({width:p,height:f,x:l,y:u})}function k1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Zt(r),a=t?ba(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Wn(1);const p=Wn(0),f=Xt(r);if((f||!f&&!s)&&((yo(r)!=="body"||Ls(i))&&(l=Sa(r)),Xt(r))){const d=vr(r);u=Qr(r),p.x=d.x+r.clientLeft,p.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+p.x,y:n.y*u.y-l.scrollTop*u.y+p.y}}function E1(e){return Array.from(e.getClientRects())}function xc(e,t){const n=Sa(e).scrollLeft;return t?t.left+n:vr(Zt(e)).left+n}function j1(e){const t=Zt(e),n=Sa(e),r=e.ownerDocument.body,o=dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+xc(e);const a=-n.scrollTop;return Ft(r).direction==="rtl"&&(i+=dt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function P1(e,t){const n=mt(e),r=Zt(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=Iu();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function T1(e,t){const n=vr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Xt(e)?Qr(e):Wn(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 yf(e,t,n){let r;if(t==="viewport")r=P1(e,n);else if(t==="document")r=j1(Zt(e));else if(zt(t))r=T1(t,n);else{const o=cg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Yi(r)}function ug(e,t){const n=qn(e);return n===t||!zt(n)||co(n)?!1:Ft(n).position==="fixed"||ug(n,t)}function A1(e,t){const n=t.get(e);if(n)return n;let r=xs(e,[],!1).filter(a=>zt(a)&&yo(a)!=="body"),o=null;const s=Ft(e).position==="fixed";let i=s?qn(e):e;for(;zt(i)&&!co(i);){const a=Ft(i),l=Au(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ls(i)&&!l&&ug(e,i))?r=r.filter(p=>p!==i):o=a,i=qn(i)}return t.set(e,r),r}function I1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ba(t)?[]:A1(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,p)=>{const f=yf(t,p,o);return u.top=dt(f.top,u.top),u.right=Hn(f.right,u.right),u.bottom=Hn(f.bottom,u.bottom),u.left=dt(f.left,u.left),u},yf(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function R1(e){const{width:t,height:n}=lg(e);return{width:t,height:n}}function M1(e,t,n){const r=Xt(t),o=Zt(t),s=n==="fixed",i=vr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Wn(0);if(r||!r&&!s)if((yo(t)!=="body"||Ls(o))&&(a=Sa(t)),r){const x=vr(t,!0,s,t);l.x=x.x+t.clientLeft,l.y=x.y+t.clientTop}else o&&(l.x=xc(o));let u=0,p=0;if(o&&!r&&!s){const x=o.getBoundingClientRect();p=x.top+a.scrollTop,u=x.left+a.scrollLeft-xc(o,x)}const f=i.left+a.scrollLeft-l.x-u,d=i.top+a.scrollTop-l.y-p;return{x:f,y:d,width:i.width,height:i.height}}function fl(e){return Ft(e).position==="static"}function vf(e,t){if(!Xt(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zt(e)===n&&(n=n.ownerDocument.body),n}function dg(e,t){const n=mt(e);if(ba(e))return n;if(!Xt(e)){let o=qn(e);for(;o&&!co(o);){if(zt(o)&&!fl(o))return o;o=qn(o)}return n}let r=vf(e,t);for(;r&&b1(r)&&fl(r);)r=vf(r,t);return r&&co(r)&&fl(r)&&!Au(r)?n:r||S1(e)||n}const O1=async function(e){const t=this.getOffsetParent||dg,n=this.getDimensions,r=await n(e.floating);return{reference:M1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L1(e){return Ft(e).direction==="rtl"}const D1={convertOffsetParentRelativeRectToViewportRelativeRect:k1,getDocumentElement:Zt,getClippingRect:I1,getOffsetParent:dg,getElementRects:O1,getClientRects:E1,getDimensions:R1,getScale:Qr,isElement:zt,isRTL:L1};function _1(e,t){let n=null,r;const o=Zt(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{left:u,top:p,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const x=ai(p),y=ai(o.clientWidth-(u+f)),g=ai(o.clientHeight-(p+d)),w=ai(u),h={rootMargin:-x+"px "+-y+"px "+-g+"px "+-w+"px",threshold:dt(0,Hn(1,l))||1};let v=!0;function S(N){const k=N[0].intersectionRatio;if(k!==l){if(!v)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(S,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,h)}n.observe(e)}return i(!0),s}function z1(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=Ru(e),p=o||s?[...u?xs(u):[],...xs(t)]:[];p.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const f=u&&a?_1(u,n):null;let d=-1,x=null;i&&(x=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=x)==null||v.observe(t)})),n()}),u&&!l&&x.observe(u),x.observe(t));let y,g=l?vr(e):null;l&&w();function w(){const m=vr(e);g&&(m.x!==g.x||m.y!==g.y||m.width!==g.width||m.height!==g.height)&&n(),g=m,y=requestAnimationFrame(w)}return n(),()=>{var m;p.forEach(h=>{o&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),f==null||f(),(m=x)==null||m.disconnect(),x=null,l&&cancelAnimationFrame(y)}}const F1=y1,$1=v1,B1=m1,U1=w1,V1=h1,xf=p1,H1=x1,W1=(e,t,n)=>{const r=new Map,o={platform:D1,...n},s={...o.platform,_c:r};return f1(e,t,{...o,platform:s})};var Ni=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Xi(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(!Xi(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)&&!Xi(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function fg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wf(e,t){const n=fg(e);return Math.round(t*n)/n}function pl(e){const t=b.useRef(e);return Ni(()=>{t.current=e}),t}function Q1(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,[p,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,x]=b.useState(r);Xi(d,r)||x(r);const[y,g]=b.useState(null),[w,m]=b.useState(null),h=b.useCallback(E=>{E!==k.current&&(k.current=E,g(E))},[]),v=b.useCallback(E=>{E!==C.current&&(C.current=E,m(E))},[]),S=s||y,N=i||w,k=b.useRef(null),C=b.useRef(null),j=b.useRef(p),T=l!=null,I=pl(l),L=pl(o),_=pl(u),H=b.useCallback(()=>{if(!k.current||!C.current)return;const E={placement:t,strategy:n,middleware:d};L.current&&(E.platform=L.current),W1(k.current,C.current,E).then(R=>{const z={...R,isPositioned:_.current!==!1};A.current&&!Xi(j.current,z)&&(j.current=z,Os.flushSync(()=>{f(z)}))})},[d,t,n,L,_]);Ni(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[u]);const A=b.useRef(!1);Ni(()=>(A.current=!0,()=>{A.current=!1}),[]),Ni(()=>{if(S&&(k.current=S),N&&(C.current=N),S&&N){if(I.current)return I.current(S,N,H);H()}},[S,N,H,I,T]);const V=b.useMemo(()=>({reference:k,floating:C,setReference:h,setFloating:v}),[h,v]),B=b.useMemo(()=>({reference:S,floating:N}),[S,N]),W=b.useMemo(()=>{const E={position:n,left:0,top:0};if(!B.floating)return E;const R=wf(B.floating,p.x),z=wf(B.floating,p.y);return a?{...E,transform:"translate("+R+"px, "+z+"px)",...fg(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:z}},[n,a,B.floating,p.x,p.y]);return b.useMemo(()=>({...p,update:H,refs:V,elements:B,floatingStyles:W}),[p,H,V,B,W])}const q1=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?xf({element:r.current,padding:o}).fn(n):{}:r?xf({element:r,padding:o}).fn(n):{}}}},G1=(e,t)=>({...F1(e),options:[e,t]}),K1=(e,t)=>({...$1(e),options:[e,t]}),Y1=(e,t)=>({...H1(e),options:[e,t]}),X1=(e,t)=>({...B1(e),options:[e,t]}),Z1=(e,t)=>({...U1(e),options:[e,t]}),J1=(e,t)=>({...V1(e),options:[e,t]}),eb=(e,t)=>({...q1(e),options:[e,t]});var tb="Arrow",pg=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(ot.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});pg.displayName=tb;var nb=pg;function rb(e,t=[]){let n=[];function r(s,i){const a=b.createContext(i),l=n.length;n=[...n,i];function u(f){const{scope:d,children:x,...y}=f,g=(d==null?void 0:d[e][l])||a,w=b.useMemo(()=>y,Object.values(y));return c.jsx(g.Provider,{value:w,children:x})}function p(f,d){const x=(d==null?void 0:d[e][l])||a,y=b.useContext(x);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,p]}const o=()=>{const s=n.map(i=>b.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,ob(o,...t)]}function ob(...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 f=l(s)[`__scope${u}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function sb(e){const[t,n]=b.useState(void 0);return yr(()=>{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 mg="Popper",[hg,gg]=rb(mg),[KS,yg]=hg(mg),vg="PopperAnchor",xg=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=yg(vg,n),i=b.useRef(null),a=_t(t,i);return b.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(ot.div,{...o,ref:a})});xg.displayName=vg;var Mu="PopperContent",[ib,ab]=hg(Mu),wg=b.forwardRef((e,t)=>{var ce,pe,Oe,Se,oe,$;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:x="optimized",onPlaced:y,...g}=e,w=yg(Mu,n),[m,h]=b.useState(null),v=_t(t,Z=>h(Z)),[S,N]=b.useState(null),k=sb(S),C=(k==null?void 0:k.width)??0,j=(k==null?void 0:k.height)??0,T=r+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},L=Array.isArray(u)?u:[u],_=L.length>0,H={padding:I,boundary:L.filter(cb),altBoundary:_},{refs:A,floatingStyles:V,placement:B,isPositioned:W,middlewareData:E}=Q1({strategy:"fixed",placement:T,whileElementsMounted:(...Z)=>z1(...Z,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[G1({mainAxis:o+j,alignmentAxis:i}),l&&K1({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Y1():void 0,...H}),l&&X1({...H}),Z1({...H,apply:({elements:Z,rects:ie,availableWidth:ke,availableHeight:Pe})=>{const{width:st,height:vt}=ie.reference,ae=Z.floating.style;ae.setProperty("--radix-popper-available-width",`${ke}px`),ae.setProperty("--radix-popper-available-height",`${Pe}px`),ae.setProperty("--radix-popper-anchor-width",`${st}px`),ae.setProperty("--radix-popper-anchor-height",`${vt}px`)}}),S&&eb({element:S,padding:a}),ub({arrowWidth:C,arrowHeight:j}),d&&J1({strategy:"referenceHidden",...H})]}),[R,z]=Ng(B),D=Yt(y);yr(()=>{W&&(D==null||D())},[W,D]);const U=(ce=E.arrow)==null?void 0:ce.x,Q=(pe=E.arrow)==null?void 0:pe.y,J=((Oe=E.arrow)==null?void 0:Oe.centerOffset)!==0,[je,X]=b.useState();return yr(()=>{m&&X(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:W?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(Se=E.transformOrigin)==null?void 0:Se.x,(oe=E.transformOrigin)==null?void 0:oe.y].join(" "),...(($=E.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ib,{scope:n,placedSide:R,onArrowChange:N,arrowX:U,arrowY:Q,shouldHideArrow:J,children:c.jsx(ot.div,{"data-side":R,"data-align":z,...g,ref:v,style:{...g.style,animation:W?void 0:"none"}})})})});wg.displayName=Mu;var bg="PopperArrow",lb={top:"bottom",right:"left",bottom:"top",left:"right"},Sg=b.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ab(bg,r),i=lb[s.placedSide];return c.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:c.jsx(nb,{...o,ref:n,style:{...o.style,display:"block"}})})});Sg.displayName=bg;function cb(e){return e!==null}var ub=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,p]=Ng(n),f={start:"0%",center:"50%",end:"100%"}[p],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,x=(((h=o.arrow)==null?void 0:h.y)??0)+l/2;let y="",g="";return u==="bottom"?(y=i?f:`${d}px`,g=`${-l}px`):u==="top"?(y=i?f:`${d}px`,g=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,g=i?f:`${x}px`):u==="left"&&(y=`${r.floating.width+l}px`,g=i?f:`${x}px`),{data:{x:y,y:g}}}});function Ng(e){const[t,n="center"]=e.split("-");return[t,n]}var db=xg,fb=wg,pb=Sg,[Na,YS]=fh("Tooltip",[gg]),Ou=gg(),Cg="TooltipProvider",mb=700,bf="tooltip.open",[hb,kg]=Na(Cg),Eg=e=>{const{__scopeTooltip:t,delayDuration:n=mb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[i,a]=b.useState(!0),l=b.useRef(!1),u=b.useRef(0);return b.useEffect(()=>{const p=u.current;return()=>window.clearTimeout(p)},[]),c.jsx(hb,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:b.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(p=>{l.current=p},[]),disableHoverableContent:o,children:s})};Eg.displayName=Cg;var jg="Tooltip",[XS,Ca]=Na(jg),wc="TooltipTrigger",gb=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ca(wc,n),s=kg(wc,n),i=Ou(n),a=b.useRef(null),l=_t(t,a,o.onTriggerChange),u=b.useRef(!1),p=b.useRef(!1),f=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(db,{asChild:!0,...i,children:c.jsx(ot.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Ae(e.onPointerMove,d=>{d.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:Ae(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:Ae(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ae(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ae(e.onBlur,o.onClose),onClick:Ae(e.onClick,o.onClose)})})});gb.displayName=wc;var yb="TooltipPortal",[ZS,vb]=Na(yb,{forceMount:void 0}),uo="TooltipContent",Pg=b.forwardRef((e,t)=>{const n=vb(uo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Ca(uo,e.__scopeTooltip);return c.jsx(bu,{present:r||i.open,children:i.disableHoverableContent?c.jsx(Tg,{side:o,...s,ref:t}):c.jsx(xb,{side:o,...s,ref:t})})}),xb=b.forwardRef((e,t)=>{const n=Ca(uo,e.__scopeTooltip),r=kg(uo,e.__scopeTooltip),o=b.useRef(null),s=_t(t,o),[i,a]=b.useState(null),{trigger:l,onClose:u}=n,p=o.current,{onPointerInTransitChange:f}=r,d=b.useCallback(()=>{a(null),f(!1)},[f]),x=b.useCallback((y,g)=>{const w=y.currentTarget,m={x:y.clientX,y:y.clientY},h=Nb(m,w.getBoundingClientRect()),v=Cb(m,h),S=kb(g.getBoundingClientRect()),N=jb([...v,...S]);a(N),f(!0)},[f]);return b.useEffect(()=>()=>d(),[d]),b.useEffect(()=>{if(l&&p){const y=w=>x(w,p),g=w=>x(w,l);return l.addEventListener("pointerleave",y),p.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),p.removeEventListener("pointerleave",g)}}},[l,p,x,d]),b.useEffect(()=>{if(i){const y=g=>{const w=g.target,m={x:g.clientX,y:g.clientY},h=(l==null?void 0:l.contains(w))||(p==null?void 0:p.contains(w)),v=!Eb(m,i);h?d():v&&(d(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,p,i,u,d]),c.jsx(Tg,{...e,ref:s})}),[wb,bb]=Na(jg,{isInside:!1}),Tg=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ca(uo,n),u=Ou(n),{onClose:p}=l;return b.useEffect(()=>(document.addEventListener(bf,p),()=>document.removeEventListener(bf,p)),[p]),b.useEffect(()=>{if(l.trigger){const f=d=>{const x=d.target;x!=null&&x.contains(l.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,p]),c.jsx(wu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:c.jsxs(fb,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(dh,{children:r}),c.jsx(wb,{scope:n,isInside:!0,children:c.jsx(fx,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Pg.displayName=uo;var Ag="TooltipArrow",Sb=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ou(n);return bb(Ag,n).isInside?null:c.jsx(pb,{...o,...r,ref:t})});Sb.displayName=Ag;function Nb(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 Cb(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function kb(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 Eb(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=p>r&&n<(u-a)*(r-l)/(p-l)+a&&(o=!o)}return o}function jb(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Pb(t)}function Pb(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 Tb=Eg,Ig=Pg;const Ab=Tb,Ib=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Ig,{ref:r,sideOffset:t,className:Ce("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}));Ib.displayName=Ig.displayName;var ka=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(){}},Ea=typeof window>"u"||"Deno"in globalThis;function Tt(){}function Rb(e,t){return typeof e=="function"?e(t):e}function Mb(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ob(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sf(e,t){return typeof e=="function"?e(t):e}function Lb(e,t){return typeof e=="function"?e(t):e}function Nf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Lu(i,t.options))return!1}else if(!bs(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(ws(t.options.mutationKey)!==ws(s))return!1}else if(!bs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Lu(e,t){return((t==null?void 0:t.queryKeyHashFn)||ws)(e)}function ws(e){return JSON.stringify(e,(t,n)=>bc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function bs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!bs(e[n],t[n])):!1}function Rg(e,t){if(e===t)return e;const n=kf(e)&&kf(t);if(n||bc(e)&&bc(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function _b(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rg(e,t):t}function zb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Fb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Du=Symbol();function Mg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Du?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var sr,Cn,qr,Bf,$b=(Bf=class extends ka{constructor(){super();te(this,sr);te(this,Cn);te(this,qr);K(this,qr,t=>{if(!Ea&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Cn)||this.setEventListener(P(this,qr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Cn))==null||t.call(this),K(this,Cn,void 0))}setEventListener(t){var n;K(this,qr,t),(n=P(this,Cn))==null||n.call(this),K(this,Cn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,sr)!==t&&(K(this,sr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,sr)=="boolean"?P(this,sr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},sr=new WeakMap,Cn=new WeakMap,qr=new WeakMap,Bf),Og=new $b,Gr,kn,Kr,Uf,Bb=(Uf=class extends ka{constructor(){super();te(this,Gr,!0);te(this,kn);te(this,Kr);K(this,Kr,t=>{if(!Ea&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,kn)||this.setEventListener(P(this,Kr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,kn))==null||t.call(this),K(this,kn,void 0))}setEventListener(t){var n;K(this,Kr,t),(n=P(this,kn))==null||n.call(this),K(this,kn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Gr)!==t&&(K(this,Gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Gr)}},Gr=new WeakMap,kn=new WeakMap,Kr=new WeakMap,Uf),Zi=new Bb;function Ub(){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 Vb(e){return Math.min(1e3*2**e,3e4)}function Lg(e){return(e??"online")==="online"?Zi.isOnline():!0}var Dg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ml(e){return e instanceof Dg}function _g(e){let t=!1,n=0,r=!1,o;const s=Ub(),i=g=>{var w;r||(d(new Dg(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Og.isFocused()&&(e.networkMode==="always"||Zi.isOnline())&&e.canRun(),p=()=>Lg(e.networkMode)&&e.canRun(),f=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),o==null||o(),s.resolve(g))},d=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),o==null||o(),s.reject(g))},x=()=>new Promise(g=>{var w;o=m=>{(r||u())&&g(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(f).catch(m=>{var k;if(r)return;const h=e.retry??(Ea?0:3),v=e.retryDelay??Vb,S=typeof v=="function"?v(n,m):v,N=h===!0||typeof h=="number"&&nu()?void 0:x()).then(()=>{t?d(m):y()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:p,start:()=>(p()?y():x().then(y),s)}}function Hb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);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 Ge=Hb(),ir,Vf,zg=(Vf=class{constructor(){te(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mb(this.gcTime)&&K(this,ir,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ea?1/0:5*60*1e3))}clearGcTimeout(){P(this,ir)&&(clearTimeout(P(this,ir)),K(this,ir,void 0))}},ir=new WeakMap,Vf),Yr,Xr,xt,Ve,js,ar,At,tn,Hf,Wb=(Hf=class extends zg{constructor(t){super();te(this,At);te(this,Yr);te(this,Xr);te(this,xt);te(this,Ve);te(this,js);te(this,ar);K(this,ar,!1),K(this,js,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,xt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Yr,qb(this.options)),this.state=t.state??P(this,Yr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...P(this,js),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,xt).remove(this)}setData(t,n){const r=_b(this.state.data,t,this.options);return $e(this,At,tn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$e(this,At,tn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,Ve))==null?void 0:r.promise;return(o=P(this,Ve))==null||o.cancel(t),n?n.then(Tt).catch(Tt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Yr))}isActive(){return this.observers.some(t=>Lb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Du||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ob(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,xt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,Ve)&&(P(this,ar)?P(this,Ve).cancel({revert:!0}):P(this,Ve).cancelRetry()),this.scheduleGc()),P(this,xt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,At,tn).call(this,{type:"invalidate"})}fetch(t,n){var l,u,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Ve))return P(this,Ve).continueRetry(),P(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(K(this,ar,!0),r.signal)})},s=()=>{const f=Mg(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return o(d),K(this,ar,!1),this.options.persister?this.options.persister(f,d,this):f(d)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(l=this.options.behavior)==null||l.onFetch(i,this),K(this,Xr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&$e(this,At,tn).call(this,{type:"fetch",meta:(p=i.fetchOptions)==null?void 0:p.meta});const a=f=>{var d,x,y,g;ml(f)&&f.silent||$e(this,At,tn).call(this,{type:"error",error:f}),ml(f)||((x=(d=P(this,xt).config).onError)==null||x.call(d,f,this),(g=(y=P(this,xt).config).onSettled)==null||g.call(y,this.state.data,f,this)),this.scheduleGc()};return K(this,Ve,_g({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,x,y,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){a(w);return}(x=(d=P(this,xt).config).onSuccess)==null||x.call(d,f,this),(g=(y=P(this,xt).config).onSettled)==null||g.call(y,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,d)=>{$e(this,At,tn).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{$e(this,At,tn).call(this,{type:"pause"})},onContinue:()=>{$e(this,At,tn).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),P(this,Ve).start()}},Yr=new WeakMap,Xr=new WeakMap,xt=new WeakMap,Ve=new WeakMap,js=new WeakMap,ar=new WeakMap,At=new WeakSet,tn=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,...Qb(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...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 ml(o)&&o.revert&&P(this,Xr)?{...P(this,Xr),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),Ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,xt).notify({query:this,type:"updated",action:t})})},Hf);function Qb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qb(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 Ht,Wf,Gb=(Wf=class extends ka{constructor(t={}){super();te(this,Ht);this.config=t,K(this,Ht,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Lu(o,n);let i=this.get(s);return i||(i=new Wb({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){P(this,Ht).has(t.queryHash)||(P(this,Ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Ht).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Ht).get(t)}getAll(){return[...P(this,Ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Nf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Nf(t,r)):n}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ht=new WeakMap,Wf),Wt,Qe,lr,Qt,xn,Qf,Kb=(Qf=class extends zg{constructor(t){super();te(this,Qt);te(this,Wt);te(this,Qe);te(this,lr);this.mutationId=t.mutationId,K(this,Qe,t.mutationCache),K(this,Wt,[]),this.state=t.state||Yb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Wt).includes(t)||(P(this,Wt).push(t),this.clearGcTimeout(),P(this,Qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Wt,P(this,Wt).filter(n=>n!==t)),this.scheduleGc(),P(this,Qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Wt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Qe).remove(this))}continue(){var t;return((t=P(this,lr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,a,l,u,p,f,d,x,y,g,w,m,h,v,S,N,k,C;K(this,lr,_g({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,T)=>{$e(this,Qt,xn).call(this,{type:"failed",failureCount:j,error:T})},onPause:()=>{$e(this,Qt,xn).call(this,{type:"pause"})},onContinue:()=>{$e(this,Qt,xn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Qe).canRun(this)}));const n=this.state.status==="pending",r=!P(this,lr).canStart();try{if(!n){$e(this,Qt,xn).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=P(this,Qe).config).onMutate)==null?void 0:s.call(o,t,this));const T=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));T!==this.state.context&&$e(this,Qt,xn).call(this,{type:"pending",context:T,variables:t,isPaused:r})}const j=await P(this,lr).start();return await((u=(l=P(this,Qe).config).onSuccess)==null?void 0:u.call(l,j,t,this.state.context,this)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,j,t,this.state.context)),await((x=(d=P(this,Qe).config).onSettled)==null?void 0:x.call(d,j,null,this.state.variables,this.state.context,this)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,j,null,t,this.state.context)),$e(this,Qt,xn).call(this,{type:"success",data:j}),j}catch(j){try{throw await((m=(w=P(this,Qe).config).onError)==null?void 0:m.call(w,j,t,this.state.context,this)),await((v=(h=this.options).onError)==null?void 0:v.call(h,j,t,this.state.context)),await((N=(S=P(this,Qe).config).onSettled)==null?void 0:N.call(S,void 0,j,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,j,t,this.state.context)),j}finally{$e(this,Qt,xn).call(this,{type:"error",error:j})}}finally{P(this,Qe).runNext(this)}}},Wt=new WeakMap,Qe=new WeakMap,lr=new WeakMap,Qt=new WeakSet,xn=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),Ge.batch(()=>{P(this,Wt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Qe).notify({mutation:this,type:"updated",action:t})})},Qf);function Yb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var lt,Ps,qf,Xb=(qf=class extends ka{constructor(t={}){super();te(this,lt);te(this,Ps);this.config=t,K(this,lt,new Map),K(this,Ps,Date.now())}build(t,n,r){const o=new Kb({mutationCache:this,mutationId:++$s(this,Ps)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=li(t),r=P(this,lt).get(n)??[];r.push(t),P(this,lt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=li(t);if(P(this,lt).has(n)){const o=(r=P(this,lt).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?P(this,lt).delete(n):P(this,lt).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=P(this,lt).get(li(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=P(this,lt).get(li(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...P(this,lt).values()].flat()}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){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ge.batch(()=>Promise.all(t.map(n=>n.continue().catch(Tt))))}},lt=new WeakMap,Ps=new WeakMap,qf);function li(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function jf(e){return{onFetch:(t,n)=>{var p,f,d,x,y;const r=t.options,o=(d=(f=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,s=((x=t.state.data)==null?void 0:x.pages)||[],i=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Mg(t.options,t.fetchOptions),h=async(v,S,N)=>{if(g)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const k={queryKey:t.queryKey,pageParam:S,direction:N?"backward":"forward",meta:t.options.meta};w(k);const C=await m(k),{maxPages:j}=t.options,T=N?Fb:zb;return{pages:T(v.pages,C,j),pageParams:T(v.pageParams,S,j)}};if(o&&s.length){const v=o==="backward",S=v?Zb:Pf,N={pages:s,pageParams:i},k=S(r,N);a=await h(N,k,v)}else{const v=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:Pf(r,a);if(l>0&&S==null)break;a=await h(a,S),l++}while(l{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Pf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Zb(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var we,En,jn,Zr,Jr,Pn,eo,to,Gf,Jb=(Gf=class{constructor(e={}){te(this,we);te(this,En);te(this,jn);te(this,Zr);te(this,Jr);te(this,Pn);te(this,eo);te(this,to);K(this,we,e.queryCache||new Gb),K(this,En,e.mutationCache||new Xb),K(this,jn,e.defaultOptions||{}),K(this,Zr,new Map),K(this,Jr,new Map),K(this,Pn,0)}mount(){$s(this,Pn)._++,P(this,Pn)===1&&(K(this,eo,Og.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,we).onFocus())})),K(this,to,Zi.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,we).onOnline())})))}unmount(){var e,t;$s(this,Pn)._--,P(this,Pn)===0&&((e=P(this,eo))==null||e.call(this),K(this,eo,void 0),(t=P(this,to))==null||t.call(this),K(this,to,void 0))}isFetching(e){return P(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,En).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=P(this,we).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Sf(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return P(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,we).get(r.queryHash),s=o==null?void 0:o.state.data,i=Rb(t,s);if(i!==void 0)return P(this,we).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ge.batch(()=>P(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,we);Ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,we),r={type:"active",...e};return Ge.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ge.batch(()=>P(this,we).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Tt).catch(Tt)}invalidateQueries(e={},t={}){return Ge.batch(()=>{if(P(this,we).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ge.batch(()=>P(this,we).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Tt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Tt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,we).build(this,t);return n.isStaleByTime(Sf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tt).catch(Tt)}fetchInfiniteQuery(e){return e.behavior=jf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tt).catch(Tt)}ensureInfiniteQueryData(e){return e.behavior=jf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zi.isOnline()?P(this,En).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,we)}getMutationCache(){return P(this,En)}getDefaultOptions(){return P(this,jn)}setDefaultOptions(e){K(this,jn,e)}setQueryDefaults(e,t){P(this,Zr).set(ws(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Zr).values()];let n={};return t.forEach(r=>{bs(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){P(this,Jr).set(ws(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Jr).values()];let n={};return t.forEach(r=>{bs(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,jn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lu(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.enabled!==!0&&t.queryFn===Du&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,jn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,we).clear(),P(this,En).clear()}},we=new WeakMap,En=new WeakMap,jn=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Pn=new WeakMap,eo=new WeakMap,to=new WeakMap,Gf),e2=b.createContext(void 0),t2=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(e2.Provider,{value:e,children:t}));/** * @remix-run/router v1.20.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 Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function r2(){return Math.random().toString(36).substr(2,8)}function Af(e,t){return{usr:e.state,key:e.key,idx:t}}function Sc(e,t,n,r){return n===void 0&&(n=null),Ss({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vo(t):t,{state:n,key:t&&t.key||r||r2()})}function $g(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vo(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 o2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=In.Pop,l=null,u=p();u==null&&(u=0,i.replaceState(Ss({},i.state,{idx:u}),""));function p(){return(i.state||{idx:null}).idx}function f(){a=In.Pop;let w=p(),m=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:m})}function d(w,m){a=In.Push;let h=Sc(g.location,w,m);u=p()+1;let v=Af(h,u),S=g.createHref(h);try{i.pushState(v,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(S)}s&&l&&l({action:a,location:g.location,delta:1})}function x(w,m){a=In.Replace;let h=Sc(g.location,w,m);u=p();let v=Af(h,u),S=g.createHref(h);i.replaceState(v,"",S),s&&l&&l({action:a,location:g.location,delta:0})}function y(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:$g(w);return h=h.replace(/ $/,"%20"),Re(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let g={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Tf,f),l=w,()=>{o.removeEventListener(Tf,f),l=null}},createHref(w){return t(o,w)},createURL:y,encodeLocation(w){let m=y(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:x,go(w){return i.go(w)}};return g}var If;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(If||(If={}));function s2(e,t,n){return n===void 0&&(n="/"),i2(e,t,n,!1)}function i2(e,t,n,r){let o=typeof t=="string"?vo(t):t,s=Vg(o.pathname||"/",n);if(s==null)return null;let i=Bg(e);a2(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("/")&&(Re(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=dr([r,l.relativePath]),p=n.concat(l);s.children&&s.children.length>0&&(Re(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Bg(s.children,t,p,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:m2(u,s.index),routesMeta:p})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of Ug(s.path))o(s,i,l)}),t}function Ug(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=Ug(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 a2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:h2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const l2=/^:[\w-]+$/,c2=3,u2=2,d2=1,f2=10,p2=-2,Rf=e=>e==="*";function m2(e,t){let n=e.split("/"),r=n.length;return n.some(Rf)&&(r+=p2),t&&(r+=u2),n.filter(o=>!Rf(o)).reduce((o,s)=>o+(l2.test(s)?c2:s===""?d2:f2),r)}function h2(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 g2(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:d,isOptional:x}=p;if(d==="*"){let g=a[f]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const y=a[f];return x&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function y2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(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 v2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function x2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?vo(e):e;return{pathname:n?n.startsWith("/")?n:w2(n,t):t,search:k2(r),hash:E2(o)}}function w2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function hl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function b2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function S2(e,t){let n=b2(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function N2(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=vo(e):(o=Ss({},e),Re(!o.pathname||!o.pathname.includes("?"),hl("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),hl("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),hl("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=x2(o,a),u=i&&i!=="/"&&i.endsWith("/"),p=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||p)&&(l.pathname+="/"),l}const dr=e=>e.join("/").replace(/\/\/+/g,"/"),C2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,E2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function j2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hg=["post","put","patch","delete"];new Set(Hg);const P2=["get",...Hg];new Set(P2);/** * React Router v6.27.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 Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(u,p){if(p===void 0&&(p={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=N2(u,JSON.parse(i),s,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:dr([t,f.pathname])),(p.replace?r.replace:r.push)(f,p.state,p)},[t,r,i,s,e])}function I2(){let{matches:e}=b.useContext(Nr),t=e[e.length-1];return t?t.params:{}}function R2(e,t){return M2(e,t)}function M2(e,t,n,r){Ta()||Re(!1);let{navigator:o}=b.useContext(ja),{matches:s}=b.useContext(Nr),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=zu(),p;if(t){var f;let w=typeof t=="string"?vo(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Re(!1),p=w}else p=u;let d=p.pathname||"/",x=d;if(l!=="/"){let w=l.replace(/^\//,"").split("/");x="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=s2(e,{pathname:x}),g=z2(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:dr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:dr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&g?b.createElement(Pa.Provider,{value:{location:Ns({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:In.Pop}},g):g}function O2(){let e=U2(),t=j2(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 b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,null)}const L2=b.createElement(O2,null);class D2 extends b.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?b.createElement(Nr.Provider,{value:this.props.routeContext},b.createElement(Wg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _2(e){let{routeContext:t,match:n,children:r}=e,o=b.useContext(_u);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Nr.Provider,{value:t},r)}function z2(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 p=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);p>=0||Re(!1),i=i.slice(0,Math.min(i.length,p+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((p,f,d)=>{let x,y=!1,g=null,w=null;n&&(x=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||L2,l&&(u<0&&d===0?(y=!0,w=null):u===d&&(y=!0,w=f.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,d+1)),h=()=>{let v;return x?v=g:y?v=w:f.route.Component?v=b.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=p,b.createElement(_2,{match:f,routeContext:{outlet:p,matches:m,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(D2,{location:n.location,revalidation:n.revalidation,component:g,error:x,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var qg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qg||{}),Ji=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}(Ji||{});function F2(e){let t=b.useContext(_u);return t||Re(!1),t}function $2(e){let t=b.useContext(T2);return t||Re(!1),t}function B2(e){let t=b.useContext(Nr);return t||Re(!1),t}function Gg(e){let t=B2(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function U2(){var e;let t=b.useContext(Wg),n=$2(Ji.UseRouteError),r=Gg(Ji.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function V2(){let{router:e}=F2(qg.UseNavigateStable),t=Gg(Ji.UseNavigateStable),n=b.useRef(!1);return Qg(()=>{n.current=!0}),b.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ns({fromRouteId:t},s)))},[e,t])}function tr(e){Re(!1)}function H2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=In.Pop,navigator:s,static:i=!1,future:a}=e;Ta()&&Re(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:s,static:i,future:Ns({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=vo(r));let{pathname:p="/",search:f="",hash:d="",state:x=null,key:y="default"}=r,g=b.useMemo(()=>{let w=Vg(p,l);return w==null?null:{location:{pathname:w,search:f,hash:d,state:x,key:y},navigationType:o}},[l,p,f,d,x,y,o]);return g==null?null:b.createElement(ja.Provider,{value:u},b.createElement(Pa.Provider,{children:n,value:g}))}function W2(e){let{children:t,location:n}=e;return R2(Nc(t),n)}new Promise(()=>{});function Nc(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,o)=>{if(!b.isValidElement(r))return;let s=[...t,o];if(r.type===b.Fragment){n.push.apply(n,Nc(r.props.children,s));return}r.type!==tr&&Re(!1),!r.props.index||!r.props.children||Re(!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=Nc(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.27.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 */const Q2="6";try{window.__reactRouterVersion=Q2}catch{}const q2="startTransition",Of=Cy[q2];function G2(e){let{basename:t,children:n,future:r,window:o}=e,s=b.useRef();s.current==null&&(s.current=n2({window:o,v5Compat:!0}));let i=s.current,[a,l]=b.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},p=b.useCallback(f=>{u&&Of?Of(()=>l(f)):l(f)},[l,u]);return b.useLayoutEffect(()=>i.listen(p),[i,p]),b.createElement(H2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var Lf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Lf||(Lf={}));var Df;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Df||(Df={}));const K2=Fh("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"}}),Me=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?ys:"button";return c.jsx(i,{className:Ce(K2({variant:t,size:n,className:e})),ref:s,...o})});Me.displayName="Button";const xo=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),[o,s]=b.useState(null),i=Fu();b.useEffect(()=>{const p=()=>{t(window.scrollY>20)};return window.addEventListener("scroll",p),()=>window.removeEventListener("scroll",p)},[]);const a=p=>{const f=document.getElementById(p);f&&f.scrollIntoView({behavior:"smooth"}),r(!1),s(null)},l=p=>{i(p),r(!1),s(null)},u=[{name:"AI Consulting",id:"services"},{name:"AI Development",id:"services"},{name:"AI Integration",id:"services"},{name:"AI Agents",id:"services"},{name:"AI Chatbots",id:"services"},{name:"WorkFlow Automation",id:"services"}];return c.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${e?"bg-white shadow-lg border-b border-gray-200":"bg-white/95 backdrop-blur-sm"}`,children:c.jsxs("nav",{className:"container mx-auto px-4 lg:px-6",children:[c.jsxs("div",{className:"flex items-center justify-between h-16 lg:h-20",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-primary rounded-lg flex items-center justify-center",children:c.jsx("div",{className:"text-white font-bold text-base sm:text-lg",children:"i"})}),c.jsx("div",{className:"text-xl sm:text-2xl font-bold text-primary",children:"logicaisolutions"})]}),c.jsxs("div",{className:"hidden lg:flex items-center space-x-8",children:[c.jsx("button",{onClick:()=>l("/"),className:"text-gray-700 hover:text-primary transition-colors font-medium py-2",children:"Home"}),c.jsxs("div",{className:"relative",onMouseEnter:()=>s("services"),onMouseLeave:()=>s(null),children:[c.jsxs("button",{onClick:()=>a("services"),className:"flex items-center text-gray-700 hover:text-primary transition-colors font-medium py-2",children:["Services",c.jsx(Dx,{className:"ml-1 h-4 w-4"})]}),o==="services"&&c.jsx("div",{className:"absolute top-full left-0 mt-2 w-64 bg-white shadow-ey-lg rounded-lg border border-gray-200 py-4",children:u.map((p,f)=>c.jsx("button",{onClick:()=>a(p.id),className:"block w-full text-left px-6 py-3 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors",children:p.name},f))})]}),c.jsx("button",{onClick:()=>a("portfolio"),className:"text-gray-700 hover:text-primary transition-colors font-medium py-2",children:"Portfolio"}),c.jsx("button",{onClick:()=>a("about"),className:"text-gray-700 hover:text-primary transition-colors font-medium py-2",children:"About"}),c.jsx("button",{onClick:()=>a("blog"),className:"text-gray-700 hover:text-primary transition-colors font-medium py-2",children:"Blog"}),c.jsx("button",{onClick:()=>a("contact"),className:"text-gray-700 hover:text-primary transition-colors font-medium py-2",children:"Contact"})]}),c.jsx("div",{className:"hidden lg:block",children:c.jsx(Me,{onClick:()=>a("contact"),className:"bg-secondary hover:bg-secondary-dark text-primary px-6 py-2.5 rounded-lg transition-all duration-300 hover:scale-105 font-semibold",children:"Get Started"})}),c.jsx("button",{className:"lg:hidden text-2xl text-primary",onClick:()=>r(!n),children:n?c.jsx(Gh,{}):c.jsx(Bx,{})})]}),n&&c.jsx("div",{className:"lg:hidden absolute top-full left-0 right-0 bg-white shadow-ey-lg border-t border-gray-200",children:c.jsxs("div",{className:"flex flex-col space-y-1 p-4",children:[c.jsx("button",{onClick:()=>l("/"),className:"text-left text-gray-700 hover:text-primary hover:bg-gray-50 transition-colors font-medium py-3 px-2 rounded",children:"Home"}),c.jsx("button",{onClick:()=>a("services"),className:"text-left text-gray-700 hover:text-primary hover:bg-gray-50 transition-colors font-medium py-3 px-2 rounded",children:"Services"}),c.jsx("button",{onClick:()=>a("portfolio"),className:"text-left text-gray-700 hover:text-primary hover:bg-gray-50 transition-colors font-medium py-3 px-2 rounded",children:"Portfolio"}),c.jsx("button",{onClick:()=>a("about"),className:"text-left text-gray-700 hover:text-primary hover:bg-gray-50 transition-colors font-medium py-3 px-2 rounded",children:"About"}),c.jsx("button",{onClick:()=>a("blog"),className:"text-left text-gray-700 hover:text-primary hover:bg-gray-50 transition-colors font-medium py-3 px-2 rounded",children:"Blog"}),c.jsx("button",{onClick:()=>a("contact"),className:"text-left text-gray-700 hover:text-primary hover:bg-gray-50 transition-colors font-medium py-3 px-2 rounded",children:"Contact"}),c.jsx(Me,{onClick:()=>a("contact"),className:"bg-secondary hover:bg-secondary-dark text-primary px-6 py-3 rounded-lg w-full font-semibold mt-4",children:"Get Started"})]})})]})})},Y2=()=>{const e=t=>{const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})};return c.jsxs("section",{id:"home",className:"min-h-screen flex items-center justify-center relative overflow-hidden bg-white pt-20",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-50 to-white",children:c.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjNmNGY2IiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=')] opacity-50"})}),c.jsx("div",{className:"container mx-auto px-4 sm:px-6 relative z-10",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center",children:[c.jsxs("div",{className:"animate-fade-in text-center lg:text-left",children:[c.jsx("div",{className:"mb-6",children:c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold",children:"🚀 ilogicaisolutions - AI Solutions That Work"})}),c.jsxs("h1",{className:"text-3xl sm:text-4xl lg:text-5xl xl:text-6xl font-bold text-primary mb-6 leading-tight",children:["Building a better",c.jsx("span",{className:"block text-secondary",children:"working world"}),c.jsx("span",{className:"block text-gray-700",children:"with AI"})]}),c.jsx("p",{className:"text-lg sm:text-xl text-gray-600 mb-8 leading-relaxed max-w-xl mx-auto lg:mx-0",children:"ilogicaisolutions helps businesses unlock the power of artificial intelligence. We create practical AI solutions that solve real problems and drive growth for companies across Australia."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-12 justify-center lg:justify-start",children:[c.jsxs(Me,{onClick:()=>e("contact"),className:"bg-primary hover:bg-primary-800 text-white px-6 sm:px-8 py-3 sm:py-4 text-base sm:text-lg rounded-lg transition-all duration-300 hover:scale-105 shadow-lg font-semibold flex items-center justify-center",children:["Get Started Today",c.jsx(Sr,{className:"ml-2 h-4 w-4 sm:h-5 sm:w-5"})]}),c.jsxs(Me,{onClick:()=>e("contact"),variant:"outline",className:"border-2 border-primary text-primary hover:bg-primary hover:text-white px-6 sm:px-8 py-3 sm:py-4 text-base sm:text-lg rounded-lg transition-all duration-300 hover:scale-105 font-semibold flex items-center justify-center",children:[c.jsx(Wh,{className:"mr-2 h-4 w-4 sm:h-5 sm:w-5"}),"Let's Talk"]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-4 sm:gap-8",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-primary mb-2",children:"10+"}),c.jsx("div",{className:"text-gray-600 text-xs sm:text-sm",children:"Projects Delivered"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-primary mb-2",children:"5+"}),c.jsx("div",{className:"text-gray-600 text-xs sm:text-sm",children:"Enterprise Clients"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-primary mb-2",children:"24/7"}),c.jsx("div",{className:"text-gray-600 text-xs sm:text-sm",children:"Support Available"})]})]})]}),c.jsx("div",{className:"relative animate-fade-in mt-8 lg:mt-0",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-primary/20 to-accent/20 rounded-3xl blur-xl"}),c.jsx("div",{className:"relative bg-gradient-to-br from-gray-100 to-gray-200 rounded-3xl shadow-lg p-4 sm:p-6 lg:p-8 z-10",children:c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6",children:[c.jsx("div",{className:"flex-shrink-0 animate-pulse",children:c.jsx("img",{src:"https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=200&h=300&fit=crop&crop=center",alt:"AI Robot - ilogicaisolutions",className:"w-24 h-36 sm:w-32 sm:h-48 object-cover rounded-lg transition-all duration-1000 hover:scale-110 animate-bounce",style:{animationDelay:"0.5s",animationDuration:"3s"}})}),c.jsxs("div",{className:"relative",children:[c.jsx("img",{src:"https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=300&h=200&fit=crop&crop=center",alt:"Laptop - ilogicaisolutions AI Solutions",className:"w-40 h-28 sm:w-48 sm:h-32 object-cover rounded-lg"}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/95 rounded-lg",children:c.jsxs("div",{className:"text-center px-2",children:[c.jsx("div",{className:"text-black text-xs sm:text-sm font-mono leading-tight",children:c.jsxs("div",{className:"typing-animation",children:["Transform your business",c.jsx("br",{}),"with ilogicaisolutions"]})}),c.jsx("span",{className:"inline-block w-2 h-4 bg-black animate-pulse ml-1"})]})})]})]})}),c.jsx("div",{className:"absolute -top-4 -right-4 w-16 h-16 sm:w-20 sm:h-20 bg-secondary rounded-2xl flex items-center justify-center shadow-lg animate-bounce",children:c.jsx("div",{className:"text-primary font-bold text-xl sm:text-2xl",children:"AI"})}),c.jsx("div",{className:"absolute -bottom-4 -left-4 w-12 h-12 sm:w-16 sm:h-16 bg-accent rounded-2xl flex items-center justify-center shadow-lg animate-pulse",style:{animationDelay:"1s"},children:c.jsx("div",{className:"text-white font-bold text-sm sm:text-lg",children:"🤖"})})]})})]})}),c.jsx("style",{children:` .typing-animation { overflow: hidden; border-right: 3px solid #000; white-space: nowrap; animation: typing 4s steps(40, end) infinite, blink-caret 0.75s step-end infinite; } @keyframes typing { 0% { width: 0; } 50% { width: 100%; } 100% { width: 100%; } } @keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: #000; } } `})]})},$n=b.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));$n.displayName="Card";const Aa=b.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("flex flex-col space-y-1.5 p-6",e),...t}));Aa.displayName="CardHeader";const Ia=b.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:Ce("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ia.displayName="CardTitle";const X2=b.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:Ce("text-sm text-muted-foreground",e),...t}));X2.displayName="CardDescription";const Bn=b.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("p-6 pt-0",e),...t}));Bn.displayName="CardContent";const Z2=b.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ce("flex items-center p-6 pt-0",e),...t}));Z2.displayName="CardFooter";const Kg=()=>{const e=[{title:"Innovation First",description:"We stay ahead of the curve with cutting-edge AI technologies, delivering solutions that truly make a difference for your business.",icon:c.jsx(zx,{className:"h-8 w-8"})},{title:"Client-Focused",description:"Every solution we build is designed around your specific business needs and challenges, ensuring maximum impact and ROI.",icon:c.jsx(Vx,{className:"h-8 w-8"})},{title:"Expert Team",description:"Our team brings years of hands-on experience in AI development, with proven track records across multiple industries.",icon:c.jsx(pc,{className:"h-8 w-8"})},{title:"Proven Results",description:"We measure success by the real-world impact our solutions have on your business operations and bottom line.",icon:c.jsx(Ox,{className:"h-8 w-8"})}],t=[{number:"10+",label:"Projects Completed"},{number:"5+",label:"Enterprise Clients"},{number:"6+",label:"Years of Experience"},{number:"100%",label:"Client Satisfaction"}];return c.jsx("section",{id:"about",className:"py-16 bg-gray-50",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold mb-4",children:"About ilogicaisolutions"}),c.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-primary mb-6",children:["Transforming businesses through",c.jsx("span",{className:"block text-secondary mt-2",children:"intelligent innovation"})]}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"At ilogicaisolutions, we believe in the power of artificial intelligence to solve real business problems. We work closely with companies to implement AI solutions that drive measurable results."})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center mb-16",children:[c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-3xl font-bold text-primary mb-4",children:"Our Mission"}),c.jsx("p",{className:"text-lg text-gray-600 leading-relaxed mb-4",children:"To make artificial intelligence accessible and practical for businesses of all sizes. We focus on creating AI solutions that solve real problems and deliver tangible value."}),c.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"ilogicaisolutions is committed to building ethical AI systems that enhance human capabilities rather than replace them, creating a better working environment for everyone."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-3xl font-bold text-primary mb-4",children:"Our Approach"}),c.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"We start by understanding your business challenges, then design AI solutions that fit seamlessly into your existing operations. Our hands-on approach ensures successful implementation and adoption."})]})]}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-primary/10 to-accent/10 rounded-3xl blur-xl"}),c.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=600&h=400&fit=crop&crop=center",alt:"ilogicaisolutions Team Collaboration",className:"relative rounded-3xl shadow-lg w-full z-10"})]})]}),c.jsx("div",{className:"bg-white rounded-3xl shadow-lg p-8 lg:p-12 mb-16",children:c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8",children:t.map((n,r)=>c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-4xl lg:text-5xl font-bold text-primary mb-3",children:n.number}),c.jsx("div",{className:"text-gray-600 font-medium",children:n.label})]},r))})}),c.jsxs("div",{className:"mb-16",children:[c.jsx("h3",{className:"text-4xl font-bold text-primary text-center mb-12",children:"Why Choose ilogicaisolutions"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((n,r)=>c.jsx($n,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105 bg-white",children:c.jsx(Bn,{className:"p-8",children:c.jsxs("div",{className:"flex items-start space-x-4",children:[c.jsx("div",{className:"text-primary bg-primary/10 p-3 rounded-lg flex-shrink-0",children:n.icon}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-xl font-semibold text-primary mb-3",children:n.title}),c.jsx("p",{className:"text-gray-600 leading-relaxed",children:n.description})]})]})})},r))})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("h3",{className:"text-4xl font-bold text-primary mb-8",children:"Meet Our Leadership"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[c.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 hover:shadow-xl transition-shadow",children:[c.jsx("div",{className:"w-24 h-24 bg-primary rounded-full mx-auto mb-4 flex items-center justify-center",children:c.jsx("span",{className:"text-white text-2xl font-bold",children:"MS"})}),c.jsx("h4",{className:"text-xl font-semibold text-primary mb-2",children:"Manoj Sinh"}),c.jsx("p",{className:"text-gray-600 mb-2",children:"CEO & Founder"}),c.jsx("p",{className:"text-sm text-gray-500",children:"6+ years experience in AI & Business Strategy"})]}),c.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 hover:shadow-xl transition-shadow",children:[c.jsx("div",{className:"w-24 h-24 bg-primary rounded-full mx-auto mb-4 flex items-center justify-center",children:c.jsx("span",{className:"text-white text-2xl font-bold",children:"GP"})}),c.jsx("h4",{className:"text-xl font-semibold text-primary mb-2",children:"Gaurav Parikh"}),c.jsx("p",{className:"text-gray-600 mb-2",children:"Founder"}),c.jsx("p",{className:"text-sm text-gray-500",children:"3+ years experience in AI Development"})]}),c.jsxs("div",{className:"bg-white rounded-2xl shadow-lg p-6 hover:shadow-xl transition-shadow",children:[c.jsx("div",{className:"w-24 h-24 bg-primary rounded-full mx-auto mb-4 flex items-center justify-center",children:c.jsx("span",{className:"text-white text-2xl font-bold",children:"DP"})}),c.jsx("h4",{className:"text-xl font-semibold text-primary mb-2",children:"Dipesh Parikh"}),c.jsx("p",{className:"text-gray-600 mb-2",children:"AI Engineer"}),c.jsx("p",{className:"text-sm text-gray-500",children:"3+ years experience in Machine Learning"})]})]})]})]})})},J2=()=>{const e=[{title:"AI Consulting",description:"ilogicaisolutions helps you understand how AI can work for your business—no tech knowledge needed. We'll guide you step-by-step to identify where AI can save you time or money.",features:["Understand what's possible with AI","Get expert advice for your business goals","Identify ways to automate or improve","Build a clear and simple action plan"],icon:c.jsx(pc,{className:"h-8 w-8"}),category:"Consulting",featured:!1},{title:"AI Development",description:"ilogicaisolutions creates simple, smart tools just for your business. Whether it's predicting what your customers might want or handling data for you, we build what you need—without the tech jargon.",features:["Custom AI tools that fit your business","AI that helps you make better decisions","Easy-to-use solutions for daily work","Ongoing support after setup"],icon:c.jsx(_x,{className:"h-8 w-8"}),category:"Development",featured:!0},{title:"AI Integration",description:"Already using tools like Excel, email, or online forms? ilogicaisolutions connects AI into those tools so they become smarter and work harder for you—with extra work on your part.",features:["Connect AI with tools you already use","Automate repetitive tasks","Get insights without learning new software","Easy setup and training for your team"],icon:c.jsx(Fx,{className:"h-8 w-8"}),category:"Integration",featured:!1},{title:"AI Agents",description:"ilogicaisolutions AI agents are like smart helpers that work for you 24/7. From answering questions to organizing your files, they do it all quietly in the background.",features:["Set up virtual assistants for your business","Automate everyday tasks like email replies","No need to monitor or manage them","We handle everything from setup to updates"],icon:c.jsx(pc,{className:"h-8 w-8"}),category:"Agents",featured:!1},{title:"AI Chatbots",description:"ilogicaisolutions smart chatbots can answer customer questions, help with bookings, or guide people through your website. They work around the clock so you don't have to.",features:["Answer customer questions instantly","Handle bookings and appointments","Guide visitors through your website","24/7 customer support without extra staff"],icon:c.jsx(Wh,{className:"h-8 w-8"}),category:"Chatbots",featured:!1},{title:"WorkFlow Automation",description:"ilogicaisolutions turns your manual, time-consuming tasks into automatic processes. From data entry to report generation, we make your workflow smarter and faster.",features:["Automate data entry and processing","Generate reports automatically","Connect different tools and systems","Save hours of manual work every week"],icon:c.jsx(Wx,{className:"h-8 w-8"}),category:"Automation",featured:!1}],t=()=>{const n=document.getElementById("contact");n&&n.scrollIntoView({behavior:"smooth"})};return c.jsx("section",{id:"services",className:"py-24 bg-white",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"text-center mb-20",children:[c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold mb-6",children:"ilogicaisolutions Services"}),c.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-primary mb-8",children:["Comprehensive AI Solutions",c.jsx("span",{className:"block text-secondary mt-2",children:"for Every Business Need"})]}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"From strategy to implementation, ilogicaisolutions provides end-to-end AI solutions that drive innovation, efficiency, and growth across your organization."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:e.map((n,r)=>c.jsxs($n,{className:`border-0 shadow-ey hover:shadow-ey-lg transition-all duration-300 hover:scale-105 group bg-white relative ${n.featured?"ring-2 ring-secondary":""}`,children:[n.featured&&c.jsx("div",{className:"absolute -top-3 left-1/2 transform -translate-x-1/2",children:c.jsx("span",{className:"bg-secondary text-primary px-4 py-1 rounded-full text-sm font-semibold",children:"Featured"})}),c.jsxs(Aa,{className:"pb-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("div",{className:"text-primary bg-primary/10 p-3 rounded-lg group-hover:bg-primary group-hover:text-white transition-colors",children:n.icon}),c.jsx("span",{className:"text-xs font-semibold text-gray-500 bg-gray-100 px-2 py-1 rounded-full",children:n.category})]}),c.jsx(Ia,{className:"text-xl font-semibold text-primary group-hover:text-primary-800 transition-colors",children:n.title})]}),c.jsxs(Bn,{children:[c.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:n.description}),c.jsx("ul",{className:"space-y-3 mb-6",children:n.features.map((o,s)=>c.jsxs("li",{className:"flex items-center text-sm text-gray-600",children:[c.jsx("div",{className:"w-2 h-2 bg-secondary rounded-full mr-3 flex-shrink-0"}),o]},s))}),c.jsxs(Me,{onClick:t,variant:"outline",className:"w-full border-primary text-primary hover:bg-primary hover:text-white transition-colors",children:["Learn More",c.jsx(Sr,{className:"ml-2 h-4 w-4"})]})]})]},r))}),c.jsxs("div",{className:"bg-gray-50 rounded-3xl p-8 lg:p-12",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h3",{className:"text-3xl font-bold text-primary mb-4",children:"ilogicaisolutions Proven Process"}),c.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"ilogicaisolutions follows a structured approach to ensure successful AI implementation and maximum value delivery."})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx("span",{className:"text-white font-bold text-xl",children:"1"})}),c.jsx("h4",{className:"text-lg font-semibold text-primary mb-2",children:"Discovery"}),c.jsx("p",{className:"text-gray-600 text-sm",children:"Understanding your business challenges and AI opportunities"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx("span",{className:"text-white font-bold text-xl",children:"2"})}),c.jsx("h4",{className:"text-lg font-semibold text-primary mb-2",children:"Strategy"}),c.jsx("p",{className:"text-gray-600 text-sm",children:"Developing comprehensive AI strategy and implementation roadmap"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx("span",{className:"text-white font-bold text-xl",children:"3"})}),c.jsx("h4",{className:"text-lg font-semibold text-primary mb-2",children:"Development"}),c.jsx("p",{className:"text-gray-600 text-sm",children:"Building and testing AI solutions with agile methodologies"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center mx-auto mb-4",children:c.jsx("span",{className:"text-white font-bold text-xl",children:"4"})}),c.jsx("h4",{className:"text-lg font-semibold text-primary mb-2",children:"Deployment"}),c.jsx("p",{className:"text-gray-600 text-sm",children:"Seamless integration and ongoing optimization support"})]})]})]})]})})};function eS(e){return Object.prototype.toString.call(e)==="[object Object]"}function _f(e){return eS(e)||Array.isArray(e)}function tS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $u(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==s?!1:n.every(i=>{const a=e[i],l=t[i];return typeof a=="function"?`${a}`==`${l}`:!_f(a)||!_f(l)?a===l:$u(a,l)})}function zf(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function nS(e,t){if(e.length!==t.length)return!1;const n=zf(e),r=zf(t);return n.every((o,s)=>{const i=r[s];return $u(o,i)})}function Bu(e){return typeof e=="number"}function Cc(e){return typeof e=="string"}function Ra(e){return typeof e=="boolean"}function Ff(e){return Object.prototype.toString.call(e)==="[object Object]"}function ye(e){return Math.abs(e)}function Uu(e){return Math.sign(e)}function Jo(e,t){return ye(e-t)}function rS(e,t){if(e===0||t===0||ye(e)<=ye(t))return 0;const n=Jo(ye(e),ye(t));return ye(n/e)}function Cs(e){return ks(e).map(Number)}function Lt(e){return e[Ds(e)]}function Ds(e){return Math.max(0,e.length-1)}function Vu(e,t){return t===Ds(e)}function $f(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function ks(e){return Object.keys(e)}function Yg(e,t){return[e,t].reduce((n,r)=>(ks(r).forEach(o=>{const s=n[o],i=r[o],a=Ff(s)&&Ff(i);n[o]=a?Yg(s,i):i}),n),{})}function kc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function oS(e,t){const n={start:r,center:o,end:s};function r(){return 0}function o(l){return s(l)/2}function s(l){return t-l}function i(l,u){return Cc(e)?n[e](l):e(t,l,u)}return{measure:i}}function Es(){let e=[];function t(o,s,i,a={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(s,i,a),l=()=>o.removeEventListener(s,i,a);else{const u=o;u.addListener(i),l=()=>u.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function sS(e,t,n,r){const o=Es(),s=1e3/60;let i=null,a=0,l=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&y()})}function p(){x(),o.clear()}function f(w){if(!l)return;i||(i=w);const m=w-i;for(i=w,a+=m;a>=s;)n(s),a-=s;const h=a/s;r(h),l&&t.requestAnimationFrame(f)}function d(){l||(l=t.requestAnimationFrame(f))}function x(){t.cancelAnimationFrame(l),i=null,a=0,l=0}function y(){i=null,a=0}return{init:u,destroy:p,start:d,stop:x,update:()=>n(s),render:r}}function iS(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",s=r?"x":"y",i=!r&&n?-1:1,a=p(),l=f();function u(y){const{height:g,width:w}=y;return r?g:w}function p(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function d(y){return y*i}return{scroll:o,cross:s,startEdge:a,endEdge:l,measureSize:u,direction:d}}function xr(e=0,t=0){const n=ye(e-t);function r(u){return ut}function s(u){return r(u)||o(u)}function i(u){return s(u)?r(u)?e:t:u}function a(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:s,reachedMax:o,reachedMin:r,removeOffset:a}}function Xg(e,t,n){const{constrain:r}=xr(0,e),o=e+1;let s=i(t);function i(d){return n?ye((o+d)%o):r(d)}function a(){return s}function l(d){return s=i(d),f}function u(d){return p().set(a()+d)}function p(){return Xg(e,a(),n)}const f={get:a,set:l,add:u,clone:p};return f}function aS(e,t,n,r,o,s,i,a,l,u,p,f,d,x,y,g,w,m,h){const{cross:v,direction:S}=e,N=["INPUT","SELECT","TEXTAREA"],k={passive:!1},C=Es(),j=Es(),T=xr(50,225).constrain(x.measure(20)),I={mouse:300,touch:400},L={mouse:500,touch:600},_=y?43:25;let H=!1,A=0,V=0,B=!1,W=!1,E=!1,R=!1;function z($){if(!h)return;function Z(ke){(Ra(h)||h($,ke))&&X(ke)}const ie=t;C.add(ie,"dragstart",ke=>ke.preventDefault(),k).add(ie,"touchmove",()=>{},k).add(ie,"touchend",()=>{}).add(ie,"touchstart",Z).add(ie,"mousedown",Z).add(ie,"touchcancel",pe).add(ie,"contextmenu",pe).add(ie,"click",Oe,!0)}function D(){C.clear(),j.clear()}function U(){const $=R?n:t;j.add($,"touchmove",ce,k).add($,"touchend",pe).add($,"mousemove",ce,k).add($,"mouseup",pe)}function Q($){const Z=$.nodeName||"";return N.includes(Z)}function J(){return(y?L:I)[R?"mouse":"touch"]}function je($,Z){const ie=f.add(Uu($)*-1),ke=p.byDistance($,!y).distance;return y||ye($)=2,!(Z&&$.button!==0)&&(Q($.target)||(B=!0,s.pointerDown($),u.useFriction(0).useDuration(0),o.set(i),U(),A=s.readPoint($),V=s.readPoint($,v),d.emit("pointerDown")))}function ce($){if(!kc($,r)&&$.touches.length>=2)return pe($);const ie=s.readPoint($),ke=s.readPoint($,v),Pe=Jo(ie,A),st=Jo(ke,V);if(!W&&!R&&(!$.cancelable||(W=Pe>st,!W)))return pe($);const vt=s.pointerMove($);Pe>g&&(E=!0),u.useFriction(.3).useDuration(.75),a.start(),o.add(S(vt)),$.preventDefault()}function pe($){const ie=p.byDistance(0,!1).index!==f.get(),ke=s.pointerUp($)*J(),Pe=je(S(ke),ie),st=rS(ke,Pe),vt=_-10*st,ae=m+st/50;W=!1,B=!1,j.clear(),u.useDuration(vt).useFriction(ae),l.distance(Pe,!y),R=!1,d.emit("pointerUp")}function Oe($){E&&($.stopPropagation(),$.preventDefault(),E=!1)}function Se(){return B}return{init:z,destroy:D,pointerDown:Se}}function lS(e,t){let r,o;function s(f){return f.timeStamp}function i(f,d){const y=`client${(d||e.scroll)==="x"?"X":"Y"}`;return(kc(f,t)?f:f.touches[0])[y]}function a(f){return r=f,o=f,i(f)}function l(f){const d=i(f)-i(o),x=s(f)-s(r)>170;return o=f,x&&(r=f),d}function u(f){if(!r||!o)return 0;const d=i(o)-i(r),x=s(f)-s(r),y=s(f)-s(o)>170,g=d/x;return x&&!y&&ye(g)>.1?g:0}return{pointerDown:a,pointerMove:l,pointerUp:u,readPoint:i}}function cS(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:s,offsetHeight:i}=n;return{top:r,right:o+s,bottom:r+i,left:o,width:s,height:i}}return{measure:e}}function uS(e){function t(r){return e*(r/100)}return{measure:t}}function dS(e,t,n,r,o,s,i){const a=[e].concat(r);let l,u,p=[],f=!1;function d(w){return o.measureSize(i.measure(w))}function x(w){if(!s)return;u=d(e),p=r.map(d);function m(h){for(const v of h){if(f)return;const S=v.target===e,N=r.indexOf(v.target),k=S?u:p[N],C=d(S?e:r[N]);if(ye(C-k)>=.5){w.reInit(),t.emit("resize");break}}}l=new ResizeObserver(h=>{(Ra(s)||s(w,h))&&m(h)}),n.requestAnimationFrame(()=>{a.forEach(h=>l.observe(h))})}function y(){f=!0,l&&l.disconnect()}return{init:x,destroy:y}}function fS(e,t,n,r,o,s){let i=0,a=0,l=o,u=s,p=e.get(),f=0;function d(k){const C=k/1e3,j=l*C,T=r.get()-e.get(),I=!l;let L=0;return I?(i=0,n.set(r),e.set(r),L=T):(n.set(e),i+=T/j,i*=u,p+=i,e.add(i*C),L=p-f),a=Uu(L),f=p,N}function x(){const k=r.get()-t.get();return ye(k)<.001}function y(){return l}function g(){return a}function w(){return i}function m(){return v(o)}function h(){return S(s)}function v(k){return l=k,N}function S(k){return u=k,N}const N={direction:g,duration:y,velocity:w,seek:d,settled:x,useBaseFriction:h,useBaseDuration:m,useFriction:S,useDuration:v};return N}function pS(e,t,n,r,o){const s=o.measure(10),i=o.measure(50),a=xr(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(x){if(!u())return;const y=e.reachedMin(t.get())?"min":"max",g=ye(e[y]-t.get()),w=n.get()-t.get(),m=a.constrain(g/i);n.subtract(w*m),!x&&ye(w){const{min:w,max:m}=s,h=s.constrain(y),v=!g,S=Vu(n,g);return v?m:S||u(w,h)?w:u(m,h)?m:h}).map(y=>parseFloat(y.toFixed(3)))}function d(){if(t<=e+o)return[s.max];if(r==="keepSnaps")return i;const{min:y,max:g}=a;return i.slice(y,g)}return{snapsContained:l,scrollContainLimit:a}}function hS(e,t,n){const r=t[0],o=n?r-e:Lt(t);return{limit:xr(o,r)}}function gS(e,t,n,r){const s=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:l}=xr(s,i);function u(d){return d===1?l(n.get()):d===-1?a(n.get()):!1}function p(d){if(!u(d))return;const x=e*(d*-1);r.forEach(y=>y.add(x))}return{loop:p}}function yS(e){const{max:t,length:n}=e;function r(s){const i=s-t;return n?i/-n:0}return{get:r}}function vS(e,t,n,r,o){const{startEdge:s,endEdge:i}=e,{groupSlides:a}=o,l=f().map(t.measure),u=d(),p=x();function f(){return a(r).map(g=>Lt(g)[i]-g[0][s]).map(ye)}function d(){return r.map(g=>n[s]-g[s]).map(g=>-ye(g))}function x(){return a(u).map(g=>g[0]).map((g,w)=>g+l[w])}return{snaps:u,snapsAligned:p}}function xS(e,t,n,r,o,s){const{groupSlides:i}=o,{min:a,max:l}=r,u=p();function p(){const d=i(s),x=!e||t==="keepSnaps";return n.length===1?[s]:x?d:d.slice(a,l).map((y,g,w)=>{const m=!g,h=Vu(w,g);if(m){const v=Lt(w[0])+1;return $f(v)}if(h){const v=Ds(s)-Lt(w)[0]+1;return $f(v,Lt(w)[0])}return y})}return{slideRegistry:u}}function wS(e,t,n,r,o){const{reachedAny:s,removeOffset:i,constrain:a}=r;function l(y){return y.concat().sort((g,w)=>ye(g)-ye(w))[0]}function u(y){const g=e?i(y):a(y),w=t.map((h,v)=>({diff:p(h-g,0),index:v})).sort((h,v)=>ye(h.diff)-ye(v.diff)),{index:m}=w[0];return{index:m,distance:g}}function p(y,g){const w=[y,y+n,y-n];if(!e)return y;if(!g)return l(w);const m=w.filter(h=>Uu(h)===g);return m.length?l(m):Lt(w)-n}function f(y,g){const w=t[y]-o.get(),m=p(w,g);return{index:y,distance:m}}function d(y,g){const w=o.get()+y,{index:m,distance:h}=u(w),v=!e&&s(w);if(!g||v)return{index:m,distance:y};const S=t[m]-h,N=y+p(S,0);return{index:m,distance:N}}return{byDistance:d,byIndex:f,shortcut:p}}function bS(e,t,n,r,o,s,i){function a(f){const d=f.distance,x=f.index!==t.get();s.add(d),d&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),x&&(n.set(t.get()),t.set(f.index),i.emit("select"))}function l(f,d){const x=o.byDistance(f,d);a(x)}function u(f,d){const x=t.clone().set(f),y=o.byIndex(x.get(),d);a(y)}return{distance:l,index:u}}function SS(e,t,n,r,o,s,i,a){const l={passive:!0,capture:!0};let u=0;function p(x){if(!a)return;function y(g){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const h=n.findIndex(v=>v.includes(g));Bu(h)&&(o.useDuration(0),r.index(h,0),i.emit("slideFocus"))}s.add(document,"keydown",f,!1),t.forEach((g,w)=>{s.add(g,"focus",m=>{(Ra(a)||a(x,m))&&y(w)},l)})}function f(x){x.code==="Tab"&&(u=new Date().getTime())}return{init:p}}function Bo(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function s(l){t-=i(l)}function i(l){return Bu(l)?l:l.get()}return{get:n,set:r,add:o,subtract:s}}function Zg(e,t){const n=e.scroll==="x"?s:i,r=t.style;let o=!1;function s(f){return`translate3d(${f}px,0px,0px)`}function i(f){return`translate3d(0px,${f}px,0px)`}function a(f){o||(r.transform=n(e.direction(f)))}function l(f){o=!f}function u(){o||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:a,toggleActive:l}}function NS(e,t,n,r,o,s,i,a,l){const p=Cs(o),f=Cs(o).reverse(),d=m().concat(h());function x(C,j){return C.reduce((T,I)=>T-o[I],j)}function y(C,j){return C.reduce((T,I)=>x(T,j)>0?T.concat([I]):T,[])}function g(C){return s.map((j,T)=>({start:j-r[T]+.5+C,end:j+t-.5+C}))}function w(C,j,T){const I=g(j);return C.map(L=>{const _=T?0:-n,H=T?n:0,A=T?"end":"start",V=I[L][A];return{index:L,loopPoint:V,slideLocation:Bo(-1),translate:Zg(e,l[L]),target:()=>a.get()>V?_:H}})}function m(){const C=i[0],j=y(f,C);return w(j,n,!1)}function h(){const C=t-i[0]-1,j=y(p,C);return w(j,-n,!0)}function v(){return d.every(({index:C})=>{const j=p.filter(T=>T!==C);return x(j,t)<=.1})}function S(){d.forEach(C=>{const{target:j,translate:T,slideLocation:I}=C,L=j();L!==I.get()&&(T.to(L),I.set(L))})}function N(){d.forEach(C=>C.translate.clear())}return{canLoop:v,clear:N,loop:S,loopPoints:d}}function CS(e,t,n){let r,o=!1;function s(l){if(!n)return;function u(p){for(const f of p)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(p=>{o||(Ra(n)||n(l,p))&&u(p)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:s,destroy:i}}function kS(e,t,n,r){const o={};let s=null,i=null,a,l=!1;function u(){a=new IntersectionObserver(y=>{l||(y.forEach(g=>{const w=t.indexOf(g.target);o[w]=g}),s=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(y=>a.observe(y))}function p(){a&&a.disconnect(),l=!0}function f(y){return ks(o).reduce((g,w)=>{const m=parseInt(w),{isIntersecting:h}=o[m];return(y&&h||!y&&!h)&&g.push(m),g},[])}function d(y=!0){if(y&&s)return s;if(!y&&i)return i;const g=f(y);return y&&(s=g),y||(i=g),g}return{init:u,destroy:p,get:d}}function ES(e,t,n,r,o,s){const{measureSize:i,startEdge:a,endEdge:l}=e,u=n[0]&&o,p=y(),f=g(),d=n.map(i),x=w();function y(){if(!u)return 0;const h=n[0];return ye(t[a]-h[a])}function g(){if(!u)return 0;const h=s.getComputedStyle(Lt(r));return parseFloat(h.getPropertyValue(`margin-${l}`))}function w(){return n.map((h,v,S)=>{const N=!v,k=Vu(S,v);return N?d[v]+p:k?d[v]+f:S[v+1][a]-h[a]}).map(ye)}return{slideSizes:d,slideSizesWithGaps:x,startGap:p,endGap:f}}function jS(e,t,n,r,o,s,i,a,l){const{startEdge:u,endEdge:p,direction:f}=e,d=Bu(n);function x(m,h){return Cs(m).filter(v=>v%h===0).map(v=>m.slice(v,v+h))}function y(m){return m.length?Cs(m).reduce((h,v,S)=>{const N=Lt(h)||0,k=N===0,C=v===Ds(m),j=o[u]-s[N][u],T=o[u]-s[v][p],I=!r&&k?f(i):0,L=!r&&C?f(a):0,_=ye(T-L-(j+I));return S&&_>t+l&&h.push(v),C&&h.push(m.length),h},[]).map((h,v,S)=>{const N=Math.max(S[v-1]||0);return m.slice(N,h)}):[]}function g(m){return d?x(m,n):y(m)}return{groupSlides:g}}function PS(e,t,n,r,o,s,i){const{align:a,axis:l,direction:u,startIndex:p,loop:f,duration:d,dragFree:x,dragThreshold:y,inViewThreshold:g,slidesToScroll:w,skipSnaps:m,containScroll:h,watchResize:v,watchSlides:S,watchDrag:N,watchFocus:k}=s,C=2,j=cS(),T=j.measure(t),I=n.map(j.measure),L=iS(l,u),_=L.measureSize(T),H=uS(_),A=oS(a,_),V=!f&&!!h,B=f||!!h,{slideSizes:W,slideSizesWithGaps:E,startGap:R,endGap:z}=ES(L,T,I,n,B,o),D=jS(L,_,w,f,T,I,R,z,C),{snaps:U,snapsAligned:Q}=vS(L,A,T,I,D),J=-Lt(U)+Lt(E),{snapsContained:je,scrollContainLimit:X}=mS(_,J,Q,h,C),ce=V?je:Q,{limit:pe}=hS(J,ce,f),Oe=Xg(Ds(ce),p,f),Se=Oe.clone(),oe=Cs(n),$=({dragHandler:Et,scrollBody:Co,scrollBounds:Cr,options:{loop:Zn}},ko)=>{Zn||Cr.constrain(Et.pointerDown()),Co.seek(ko)},Z=({scrollBody:Et,translate:Co,location:Cr,offsetLocation:Zn,scrollLooper:ko,slideLooper:Eo,dragHandler:Bt,animation:Oa,eventHandler:q,scrollBounds:se,options:{loop:ne}},it)=>{const at=Et.settled(),kr=!se.shouldConstrain(),Fs=ne?at:at&&kr;Fs&&!Bt.pointerDown()&&(Oa.stop(),q.emit("settle")),Fs||q.emit("scroll");const ay=Cr.get()*it+vt.get()*(1-it);Zn.set(ay),ne&&(ko.loop(Et.direction()),Eo.loop()),Co.to(Zn.get())},ie=sS(r,o,Et=>$($t,Et),Et=>Z($t,Et)),ke=.68,Pe=ce[Oe.get()],st=Bo(Pe),vt=Bo(Pe),ae=Bo(Pe),Ze=Bo(Pe),Xn=fS(st,ae,vt,Ze,d,ke),bo=wS(f,ce,J,pe,Ze),hn=bS(ie,Oe,Se,Xn,bo,Ze,i),_s=yS(pe),So=Es(),No=kS(t,n,i,g),{slideRegistry:Jt}=xS(V,h,ce,X,D,oe),zs=SS(e,n,Jt,hn,Xn,So,i,k),$t={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:T,slideRects:I,animation:ie,axis:L,dragHandler:aS(L,e,r,o,Ze,lS(L,o),st,ie,hn,Xn,bo,Oe,i,H,x,y,m,ke,N),eventStore:So,percentOfView:H,index:Oe,indexPrevious:Se,limit:pe,location:st,offsetLocation:ae,previousLocation:vt,options:s,resizeHandler:dS(t,i,o,n,L,v,j),scrollBody:Xn,scrollBounds:pS(pe,ae,Ze,Xn,H),scrollLooper:gS(J,pe,ae,[st,ae,vt,Ze]),scrollProgress:_s,scrollSnapList:ce.map(_s.get),scrollSnaps:ce,scrollTarget:bo,scrollTo:hn,slideLooper:NS(L,_,J,W,E,U,ce,ae,n),slideFocus:zs,slidesHandler:CS(t,i,S),slidesInView:No,slideIndexes:oe,slideRegistry:Jt,slidesToScroll:D,target:Ze,translate:Zg(L,t)};return $t}function TS(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(p=>p(t,u)),l}function s(u,p){return e[u]=r(u).concat([p]),l}function i(u,p){return e[u]=r(u).filter(f=>f!==p),l}function a(){e={}}const l={init:n,emit:o,off:i,on:s,clear:a};return l}const AS={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function IS(e){function t(s,i){return Yg(s,i||{})}function n(s){const i=s.breakpoints||{},a=ks(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,u)=>t(l,u),{});return t(s,a)}function r(s){return s.map(i=>ks(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function RS(e){let t=[];function n(s,i){return t=i.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(s,e)),i.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function ea(e,t,n){const r=e.ownerDocument,o=r.defaultView,s=IS(o),i=RS(s),a=Es(),l=TS(),{mergeOptions:u,optionsAtMedia:p,optionsMediaQueries:f}=s,{on:d,off:x,emit:y}=l,g=L;let w=!1,m,h=u(AS,ea.globalOptions),v=u(h),S=[],N,k,C;function j(){const{container:oe,slides:$}=v;k=(Cc(oe)?e.querySelector(oe):oe)||e.children[0];const ie=Cc($)?k.querySelectorAll($):$;C=[].slice.call(ie||k.children)}function T(oe){const $=PS(e,k,C,r,o,oe,l);if(oe.loop&&!$.slideLooper.canLoop()){const Z=Object.assign({},oe,{loop:!1});return T(Z)}return $}function I(oe,$){w||(h=u(h,oe),v=p(h),S=$||S,j(),m=T(v),f([h,...S.map(({options:Z})=>Z)]).forEach(Z=>a.add(Z,"change",L)),v.active&&(m.translate.to(m.location.get()),m.animation.init(),m.slidesInView.init(),m.slideFocus.init(Se),m.eventHandler.init(Se),m.resizeHandler.init(Se),m.slidesHandler.init(Se),m.options.loop&&m.slideLooper.loop(),k.offsetParent&&C.length&&m.dragHandler.init(Se),N=i.init(Se,S)))}function L(oe,$){const Z=D();_(),I(u({startIndex:Z},oe),$),l.emit("reInit")}function _(){m.dragHandler.destroy(),m.eventStore.clear(),m.translate.clear(),m.slideLooper.clear(),m.resizeHandler.destroy(),m.slidesHandler.destroy(),m.slidesInView.destroy(),m.animation.destroy(),i.destroy(),a.clear()}function H(){w||(w=!0,a.clear(),_(),l.emit("destroy"),l.clear())}function A(oe,$,Z){!v.active||w||(m.scrollBody.useBaseFriction().useDuration($===!0?0:v.duration),m.scrollTo.index(oe,Z||0))}function V(oe){const $=m.index.add(1).get();A($,oe,-1)}function B(oe){const $=m.index.add(-1).get();A($,oe,1)}function W(){return m.index.add(1).get()!==D()}function E(){return m.index.add(-1).get()!==D()}function R(){return m.scrollSnapList}function z(){return m.scrollProgress.get(m.location.get())}function D(){return m.index.get()}function U(){return m.indexPrevious.get()}function Q(){return m.slidesInView.get()}function J(){return m.slidesInView.get(!1)}function je(){return N}function X(){return m}function ce(){return e}function pe(){return k}function Oe(){return C}const Se={canScrollNext:W,canScrollPrev:E,containerNode:pe,internalEngine:X,destroy:H,off:x,on:d,emit:y,plugins:je,previousScrollSnap:U,reInit:g,rootNode:ce,scrollNext:V,scrollPrev:B,scrollProgress:z,scrollSnapList:R,scrollTo:A,selectedScrollSnap:D,slideNodes:Oe,slidesInView:Q,slidesNotInView:J};return I(t,n),setTimeout(()=>l.emit("init"),0),Se}ea.globalOptions=void 0;function Hu(e={},t=[]){const n=b.useRef(e),r=b.useRef(t),[o,s]=b.useState(),[i,a]=b.useState(),l=b.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return b.useEffect(()=>{$u(n.current,e)||(n.current=e,l())},[e,l]),b.useEffect(()=>{nS(r.current,t)||(r.current=t,l())},[t,l]),b.useEffect(()=>{if(tS()&&i){ea.globalOptions=Hu.globalOptions;const u=ea(i,n.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[i,s]),[a,o]}Hu.globalOptions=void 0;const Jg=b.createContext(null);function Ma(){const e=b.useContext(Jg);if(!e)throw new Error("useCarousel must be used within a ");return e}const ey=b.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:s,...i},a)=>{const[l,u]=Hu({...t,axis:e==="horizontal"?"x":"y"},r),[p,f]=b.useState(!1),[d,x]=b.useState(!1),y=b.useCallback(h=>{h&&(f(h.canScrollPrev()),x(h.canScrollNext()))},[]),g=b.useCallback(()=>{u==null||u.scrollPrev()},[u]),w=b.useCallback(()=>{u==null||u.scrollNext()},[u]),m=b.useCallback(h=>{h.key==="ArrowLeft"?(h.preventDefault(),g()):h.key==="ArrowRight"&&(h.preventDefault(),w())},[g,w]);return b.useEffect(()=>{!u||!n||n(u)},[u,n]),b.useEffect(()=>{if(u)return y(u),u.on("reInit",y),u.on("select",y),()=>{u==null||u.off("select",y)}},[u,y]),c.jsx(Jg.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:w,canScrollPrev:p,canScrollNext:d},children:c.jsx("div",{ref:a,onKeyDownCapture:m,className:Ce("relative",o),role:"region","aria-roledescription":"carousel",...i,children:s})})});ey.displayName="Carousel";const ty=b.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Ma();return c.jsx("div",{ref:r,className:"overflow-hidden",children:c.jsx("div",{ref:n,className:Ce("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ty.displayName="CarouselContent";const ny=b.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Ma();return c.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Ce("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});ny.displayName="CarouselItem";const ry=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:s,scrollPrev:i,canScrollPrev:a}=Ma();return c.jsxs(Me,{ref:o,variant:t,size:n,className:Ce("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[c.jsx(Bh,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Previous slide"})]})});ry.displayName="CarouselPrevious";const oy=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:s,scrollNext:i,canScrollNext:a}=Ma();return c.jsxs(Me,{ref:o,variant:t,size:n,className:Ce("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[c.jsx(Sr,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Next slide"})]})});oy.displayName="CarouselNext";const MS={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function OS(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function LS(e,t){const n=e.rootNode();return t&&t(n)||n}function Wu(e={}){let t,n,r,o,s=null,i=0,a=!1,l=!1,u=!1,p=!1;function f(A,V){n=A;const{mergeOptions:B,optionsAtMedia:W}=V,E=B(MS,Wu.globalOptions),R=B(E,e);if(t=W(R),n.scrollSnapList().length<=1)return;p=t.jump,r=!1,o=OS(n,t.delay);const{eventStore:z,ownerDocument:D}=n.internalEngine(),U=!!n.internalEngine().options.watchDrag,Q=LS(n,t.rootNode);z.add(D,"visibilitychange",m),U&&n.on("pointerDown",v),U&&!t.stopOnInteraction&&n.on("pointerUp",S),t.stopOnMouseEnter&&z.add(Q,"mouseenter",N),t.stopOnMouseEnter&&!t.stopOnInteraction&&z.add(Q,"mouseleave",k),t.stopOnFocusIn&&n.on("slideFocusStart",w),t.stopOnFocusIn&&!t.stopOnInteraction&&z.add(n.containerNode(),"focusout",g),t.playOnInit&&g()}function d(){n.off("pointerDown",v).off("pointerUp",S).off("slideFocusStart",w),w(),r=!0,a=!1}function x(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(i),i=A.setTimeout(L,o[n.selectedScrollSnap()]),s=new Date().getTime(),n.emit("autoplay:timerset")}function y(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(i),i=0,s=null,n.emit("autoplay:timerstopped")}function g(){if(!r){if(h()){u=!0;return}a||n.emit("autoplay:play"),x(),a=!0}}function w(){r||(a&&n.emit("autoplay:stop"),y(),a=!1)}function m(){if(h())return u=a,w();u&&g()}function h(){const{ownerDocument:A}=n.internalEngine();return A.visibilityState==="hidden"}function v(){l||w()}function S(){l||g()}function N(){l=!0,w()}function k(){l=!1,g()}function C(A){typeof A<"u"&&(p=A),g()}function j(){a&&w()}function T(){a&&g()}function I(){return a}function L(){const{index:A}=n.internalEngine(),V=A.clone().add(1).get(),B=n.scrollSnapList().length-1,W=t.stopOnLastSnap&&V===B;if(n.canScrollNext()?n.scrollNext(p):n.scrollTo(0,p),n.emit("autoplay:select"),W)return w();g()}function _(){if(!s)return null;const A=o[n.selectedScrollSnap()],V=new Date().getTime()-s;return A-V}return{name:"autoplay",options:e,init:f,destroy:d,play:C,stop:j,reset:T,isPlaying:I,timeUntilNext:_}}Wu.globalOptions=void 0;const DS=()=>{const e=[{id:1,title:"Healthcare Analytics Platform",description:"Built a comprehensive patient data analysis system for a major hospital network. The platform processes thousands of patient records daily, helping doctors make faster, more accurate diagnoses.",image:"https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=600&h=400&fit=crop",category:"Healthcare",technologies:["Python","TensorFlow","React","PostgreSQL"],results:"35% faster diagnosis, 40% reduced treatment time"},{id:2,title:"Smart Manufacturing System",description:"Developed an intelligent production monitoring system for automotive parts manufacturer. Real-time quality control and predictive maintenance reduced downtime significantly.",image:"https://images.unsplash.com/photo-1565043666747-69f6646db940?w=600&h=400&fit=crop",category:"Manufacturing",technologies:["IoT Sensors","Machine Learning","Azure Cloud","Node.js"],results:"25% cost reduction, 30% efficiency boost"},{id:3,title:"Financial Risk Assessment",description:"Created a fraud detection system for regional banking consortium. Advanced pattern recognition identifies suspicious transactions within seconds of occurrence.",image:"https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=600&h=400&fit=crop",category:"Banking",technologies:["Python","Natural Language Processing","AWS","Docker"],results:"80% faster fraud detection, 45% accuracy improvement"},{id:4,title:"Customer Intelligence System",description:"Implemented personalized recommendation engine for e-commerce retailer. System analyzes browsing patterns and purchase history to suggest relevant products.",image:"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=600&h=400&fit=crop",category:"E-commerce",technologies:["Recommendation Engine","BigQuery","React","Firebase"],results:"60% engagement increase, 28% sales growth"},{id:5,title:"Energy Grid Optimization",description:"Designed smart energy management for city utilities department. Predictive algorithms optimize power distribution and reduce waste across the municipal grid.",image:"https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=600&h=400&fit=crop",category:"Energy",technologies:["Time Series Analysis","GraphQL","Vue.js","MongoDB"],results:"22% energy waste reduction, 35% grid stability improvement"},{id:6,title:"Autonomous Vehicle Vision",description:"Built computer vision algorithms for logistics company's autonomous delivery vehicles. Real-time object detection ensures safe navigation in urban environments.",image:"https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=600&h=400&fit=crop",category:"Transportation",technologies:["Computer Vision","CUDA","ROS","C++"],results:"99.7% detection accuracy, 15ms response time"}],t=O.useRef(Wu({delay:4e3,stopOnInteraction:!0}));return c.jsx("section",{id:"portfolio",className:"py-16 bg-gray-50",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("div",{className:"mb-4",children:c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold",children:"🚀 Our Work"})}),c.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-primary mb-4",children:"Real Projects, Real Results"}),c.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:"See how ilogicaisolutions has helped businesses across different industries achieve their goals through innovative AI implementations."})]}),c.jsx("div",{className:"relative max-w-6xl mx-auto",children:c.jsxs(ey,{className:"w-full",plugins:[t.current],onMouseEnter:t.current.stop,onMouseLeave:t.current.reset,children:[c.jsx(ty,{className:"-ml-2 md:-ml-4",children:e.map(n=>c.jsx(ny,{className:"pl-2 md:pl-4 md:basis-1/2 lg:basis-1/2",children:c.jsxs("div",{className:"bg-white rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden h-full group",children:[c.jsxs("div",{className:"relative overflow-hidden",children:[c.jsx("img",{src:n.image,alt:n.title,className:"w-full h-56 object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy",onError:r=>{r.currentTarget.src="https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=600&h=400&fit=crop"}}),c.jsx("div",{className:"absolute top-4 left-4",children:c.jsx("span",{className:"bg-primary text-white px-3 py-1 rounded-full text-sm font-semibold",children:n.category})}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),c.jsxs("div",{className:"p-6",children:[c.jsx("h3",{className:"text-xl font-bold text-primary mb-3 group-hover:text-secondary transition-colors",children:n.title}),c.jsx("p",{className:"text-gray-600 mb-4 line-clamp-3 leading-relaxed",children:n.description}),c.jsxs("div",{className:"mb-4",children:[c.jsx("h4",{className:"text-sm font-semibold text-primary mb-2",children:"Technologies:"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:n.technologies.map((r,o)=>c.jsx("span",{className:"bg-gray-100 text-gray-700 px-2 py-1 rounded text-xs font-medium",children:r},o))})]}),c.jsxs("div",{className:"border-t pt-4",children:[c.jsx("h4",{className:"text-sm font-semibold text-primary mb-2",children:"Key Results:"}),c.jsx("p",{className:"text-sm text-green-600 font-medium",children:n.results})]})]})]})},n.id))}),c.jsx(ry,{className:"hidden md:flex"}),c.jsx(oy,{className:"hidden md:flex"})]})}),c.jsx("div",{className:"text-center mt-10",children:c.jsxs(Me,{className:"bg-primary hover:bg-primary-800 text-white px-8 py-3 text-lg rounded-lg transition-all duration-300 hover:scale-105 shadow-lg font-semibold",onClick:()=>{var n;return(n=document.getElementById("contact"))==null?void 0:n.scrollIntoView({behavior:"smooth"})},children:["Start Your Project",c.jsx(Sr,{className:"ml-2 h-5 w-5"})]})})]})})},_S=()=>{const e=[{name:"Healthcare",description:"AI-powered diagnostic tools, patient care optimization, medical imaging analysis, and drug discovery acceleration.",image:"https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=400&h=300&fit=crop",solutions:["Medical Imaging AI","Predictive Diagnostics","Drug Discovery","Patient Care Optimization"],stats:"40% faster diagnosis"},{name:"Financial Services",description:"Advanced fraud detection, risk assessment, algorithmic trading, and regulatory compliance automation.",image:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=400&h=300&fit=crop",solutions:["Fraud Detection","Risk Management","Algorithmic Trading","Compliance Automation"],stats:"99.9% fraud detection accuracy"},{name:"Manufacturing",description:"Predictive maintenance, quality control automation, supply chain optimization, and smart factory solutions.",image:"https://images.unsplash.com/photo-1565793298595-6a879b1d9492?w=400&h=300&fit=crop",solutions:["Predictive Maintenance","Quality Control","Supply Chain AI","Smart Manufacturing"],stats:"35% reduction in downtime"},{name:"Retail & E-commerce",description:"Personalized recommendations, inventory optimization, demand forecasting, and customer behavior analytics.",image:"https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=400&h=300&fit=crop",solutions:["Recommendation Engines","Inventory Optimization","Demand Forecasting","Customer Analytics"],stats:"25% increase in sales"},{name:"Transportation",description:"Route optimization, autonomous vehicle technology, predictive maintenance, and traffic management systems.",image:"https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=400&h=300&fit=crop",solutions:["Route Optimization","Autonomous Systems","Fleet Management","Traffic AI"],stats:"30% fuel savings"},{name:"Energy & Utilities",description:"Smart grid optimization, renewable energy forecasting, asset management, and energy consumption analytics.",image:"https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=400&h=300&fit=crop",solutions:["Smart Grid AI","Energy Forecasting","Asset Optimization","Consumption Analytics"],stats:"20% energy efficiency gain"}],t=()=>{const n=document.getElementById("contact");n&&n.scrollIntoView({behavior:"smooth"})};return c.jsx("section",{id:"industries",className:"py-24 bg-gray-50",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"text-center mb-20",children:[c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold mb-6",children:"Industries We Serve"}),c.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-primary mb-8",children:["AI Solutions Across",c.jsx("span",{className:"block text-secondary mt-2",children:"Every Industry"})]}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"Our expertise spans multiple industries, delivering tailored AI solutions that address sector-specific challenges and unlock new opportunities for growth."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:e.map((n,r)=>c.jsxs($n,{className:"border-0 shadow-ey hover:shadow-ey-lg transition-all duration-300 hover:scale-105 overflow-hidden group bg-white",children:[c.jsxs("div",{className:"relative h-48 overflow-hidden",children:[c.jsx("img",{src:n.image,alt:n.name,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-110"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/80 via-primary/20 to-transparent"}),c.jsxs("div",{className:"absolute bottom-4 left-4 right-4",children:[c.jsx("h3",{className:"text-xl font-semibold text-white mb-1",children:n.name}),c.jsx("div",{className:"text-secondary text-sm font-medium",children:n.stats})]})]}),c.jsxs(Bn,{className:"p-6",children:[c.jsx("p",{className:"text-gray-600 leading-relaxed mb-4",children:n.description}),c.jsxs("div",{className:"mb-6",children:[c.jsx("h4",{className:"text-sm font-semibold text-primary mb-3",children:"Key Solutions:"}),c.jsx("div",{className:"grid grid-cols-2 gap-2",children:n.solutions.map((o,s)=>c.jsx("div",{className:"text-xs text-gray-600 bg-gray-100 px-2 py-1 rounded",children:o},s))})]}),c.jsxs(Me,{onClick:t,variant:"outline",className:"w-full border-primary text-primary hover:bg-primary hover:text-white transition-colors",children:["Explore Solutions",c.jsx(Sr,{className:"ml-2 h-4 w-4"})]})]})]},r))}),c.jsxs("div",{className:"bg-white rounded-3xl shadow-ey-lg p-8 lg:p-12",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h3",{className:"text-3xl font-bold text-primary mb-4",children:"Success Stories"}),c.jsx("p",{className:"text-lg text-gray-600",children:"Real results from real clients across industries"})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[c.jsxs("div",{className:"text-center p-6 bg-gray-50 rounded-2xl",children:[c.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"$2.5M"}),c.jsx("div",{className:"text-gray-600 mb-2",children:"Annual Savings"}),c.jsx("div",{className:"text-sm text-gray-500",children:"Healthcare AI Implementation"})]}),c.jsxs("div",{className:"text-center p-6 bg-gray-50 rounded-2xl",children:[c.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"85%"}),c.jsx("div",{className:"text-gray-600 mb-2",children:"Efficiency Increase"}),c.jsx("div",{className:"text-sm text-gray-500",children:"Manufacturing Automation"})]}),c.jsxs("div",{className:"text-center p-6 bg-gray-50 rounded-2xl",children:[c.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"60%"}),c.jsx("div",{className:"text-gray-600 mb-2",children:"Faster Decision Making"}),c.jsx("div",{className:"text-sm text-gray-500",children:"Financial Services AI"})]})]})]})]})})},zS=()=>{const e=Fu(),t=[{id:"ai-trends-2025",title:"How AI is Changing Business Operations in 2025",excerpt:"This year has brought significant changes in how companies use artificial intelligence. At ilogicaisolutions, we've seen firsthand how businesses are adapting to new AI tools and technologies. From automated customer service to predictive analytics, companies are finding practical ways to implement AI solutions that actually improve their daily operations. The focus has shifted from experimental projects to real-world applications that deliver measurable results.",author:"ilogicaisolutions Team",date:"January 15, 2025",readTime:"6 min read",image:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&h=300&fit=crop&crop=center&auto=format",category:"Business AI"},{id:"machine-learning-guide",title:"Getting Started with Machine Learning for Small Businesses",excerpt:"Many small business owners think machine learning is only for tech giants, but that's not true anymore. ilogicaisolutions has helped dozens of small companies implement simple ML solutions that make a real difference. Whether it's predicting inventory needs, personalizing customer experiences, or automating routine tasks, machine learning can be accessible and affordable. The key is starting small and focusing on specific problems rather than trying to revolutionize everything at once.",author:"ilogicaisolutions Team",date:"January 12, 2025",readTime:"8 min read",image:"https://images.unsplash.com/photo-1518770660439-4636190af475?w=600&h=300&fit=crop&crop=center&auto=format",category:"Machine Learning"},{id:"ai-implementation-success",title:"5 Keys to Successful AI Implementation",excerpt:"After working with numerous clients, ilogicaisolutions has identified the common factors that determine whether an AI project succeeds or fails. It's not just about having the best technology - it's about proper planning, team buy-in, and realistic expectations. Successful AI implementation requires understanding your current processes, identifying specific pain points, and choosing solutions that fit your company culture. We've learned that gradual implementation often works better than dramatic overhauls.",author:"ilogicaisolutions Team",date:"January 10, 2025",readTime:"7 min read",image:"https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=600&h=300&fit=crop&crop=center&auto=format",category:"Implementation"},{id:"chatbots-customer-help",title:"Chatbots That Actually Help Customers",excerpt:"Too many businesses rush into chatbot development without thinking about the customer experience. At ilogicaisolutions, we've built chatbots that customers actually want to use because we focus on solving real problems rather than just automating conversations. A good chatbot should feel helpful, not frustrating. This means understanding common customer questions, providing clear responses, and knowing when to hand off to human support. The goal isn't to replace human interaction entirely, but to handle routine inquiries efficiently.",author:"ilogicaisolutions Team",date:"January 8, 2025",readTime:"5 min read",image:"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=600&h=300&fit=crop&crop=center&auto=format",category:"Chatbots"},{id:"data-quality-foundation",title:"Data Quality: The Foundation of Effective AI",excerpt:"The best AI algorithms in the world won't help if your data isn't clean and organized. ilogicaisolutions always starts new projects by examining our clients' data infrastructure because this determines everything else. Poor data quality leads to inaccurate predictions, biased results, and failed implementations. We help businesses establish proper data collection processes, clean up existing datasets, and create systems for maintaining data quality over time. It's not the most exciting part of AI, but it's absolutely essential.",author:"ilogicaisolutions Team",date:"January 5, 2025",readTime:"6 min read",image:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=600&h=300&fit=crop&crop=center&auto=format",category:"Data Management"},{id:"ai-projects-fail",title:"Why Some AI Projects Fail (And How to Avoid It)",excerpt:"Not every AI project is a success story, and at ilogicaisolutions, we believe in being honest about what can go wrong. Common failure points include unrealistic expectations, insufficient planning, poor data quality, and lack of team training. Many companies expect immediate results from AI implementations, but the reality is that successful projects require patience, iteration, and ongoing refinement. We've learned that setting clear, measurable goals from the beginning and maintaining realistic timelines are crucial for project success.",author:"ilogicaisolutions Team",date:"January 3, 2025",readTime:"7 min read",image:"https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=600&h=300&fit=crop&crop=center&auto=format",category:"Project Management"}];return c.jsx("section",{id:"blog",className:"py-24 bg-gray-50",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"text-center mb-20",children:[c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold mb-6",children:"Knowledge & Insights"}),c.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-primary mb-8",children:["AI Insights & Practical Tips",c.jsx("span",{className:"block text-secondary mt-2",children:"From the ilogicaisolutions Team"})]}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"Learn from our experience helping businesses implement AI solutions. Get practical advice, industry insights, and real-world examples from the ilogicaisolutions team."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16",children:t.map((n,r)=>c.jsxs($n,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-105 group bg-white overflow-hidden",children:[c.jsxs("div",{className:"relative overflow-hidden",children:[c.jsx("img",{src:n.image,alt:n.title,className:"w-full h-48 object-cover group-hover:scale-110 transition-transform duration-300",onError:o=>{const s=o.target;s.src=`https://via.placeholder.com/600x300/4F46E5/FFFFFF?text=${encodeURIComponent(n.category)}`}}),c.jsx("div",{className:"absolute top-4 left-4",children:c.jsx("span",{className:"bg-primary text-white px-3 py-1 rounded-full text-xs font-semibold",children:n.category})})]}),c.jsxs(Aa,{className:"pb-3",children:[c.jsxs("div",{className:"flex items-center text-sm text-gray-500 mb-3 space-x-4",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx(Uh,{className:"h-4 w-4 mr-1"}),n.date]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(ku,{className:"h-4 w-4 mr-1"}),n.readTime]})]}),c.jsx(Ia,{className:"text-lg font-semibold text-primary group-hover:text-primary-800 transition-colors leading-tight",children:n.title})]}),c.jsxs(Bn,{children:[c.jsx("p",{className:"text-gray-600 mb-4 leading-relaxed text-sm line-clamp-4",children:n.excerpt}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center text-sm text-gray-500",children:[c.jsx(qh,{className:"h-4 w-4 mr-1"}),n.author]}),c.jsxs(Me,{variant:"outline",size:"sm",className:"border-primary text-primary hover:bg-primary hover:text-white transition-colors",onClick:()=>e(`/blog/${n.id}`),children:["Read More",c.jsx(Sr,{className:"ml-1 h-3 w-3"})]})]})]})]},r))}),c.jsxs("div",{className:"text-center bg-white rounded-3xl p-8 lg:p-12 shadow-lg",children:[c.jsx("h3",{className:"text-3xl font-bold text-primary mb-4",children:"Stay Updated with AI Insights from ilogicaisolutions"}),c.jsx("p",{className:"text-lg text-gray-600 mb-8 max-w-2xl mx-auto",children:"Get practical AI tips, case studies, and insights delivered to your inbox. Learn how other businesses are successfully implementing AI solutions."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center max-w-md mx-auto",children:[c.jsx("input",{type:"email",placeholder:"Enter your email",className:"flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary w-full sm:w-auto"}),c.jsx(Me,{className:"bg-primary hover:bg-primary-800 text-white px-8 py-3 rounded-lg font-semibold w-full sm:w-auto",children:"Subscribe"})]})]})]})})},Uo=b.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:Ce("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Uo.displayName="Input";const sy=b.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:Ce("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));sy.displayName="Textarea";const iy=()=>{const[e,t]=b.useState({name:"",email:"",company:"",phone:"",industry:"",message:""}),n=s=>{s.preventDefault(),console.log("Form submitted:",e),alert("Thank you for your inquiry! Our team will contact you within 24 hours."),t({name:"",email:"",company:"",phone:"",industry:"",message:""})},r=s=>{t({...e,[s.target.name]:s.target.value})},o=[{icon:c.jsx(Vh,{className:"h-6 w-6"}),title:"Email Us",details:"manojec9396@gmail.com",subtitle:"We'll respond within 24 hours"},{icon:c.jsx(Qh,{className:"h-6 w-6"}),title:"Call Us",details:"+91 90814 53463",subtitle:"Mon-Fri, 9AM-6PM IST"},{icon:c.jsx(Hh,{className:"h-6 w-6"}),title:"Visit Us",details:"Adelaide, Australia",subtitle:"South Australia"},{icon:c.jsx(ku,{className:"h-6 w-6"}),title:"Business Hours",details:"24/7 Support Available",subtitle:"Global support coverage"}];return c.jsx("section",{id:"contact",className:"py-24 bg-white",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"text-center mb-20",children:[c.jsx("span",{className:"inline-block px-4 py-2 bg-secondary/20 text-primary rounded-full text-sm font-semibold mb-6",children:"Get In Touch"}),c.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-primary mb-8",children:["Ready to Transform",c.jsx("span",{className:"block text-secondary mt-2",children:"Your Business with AI?"})]}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"Let's discuss how our AI solutions can drive innovation and growth for your organization. Our experts are ready to help you get started."})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12 max-w-7xl mx-auto",children:[c.jsx("div",{className:"lg:col-span-2",children:c.jsxs($n,{className:"border-0 shadow-ey-lg bg-white",children:[c.jsxs(Aa,{children:[c.jsx(Ia,{className:"text-2xl font-semibold text-primary",children:"Start Your AI Journey"}),c.jsx("p",{className:"text-gray-600",children:"Fill out the form below and our team will reach out to discuss your needs."})]}),c.jsx(Bn,{children:c.jsxs("form",{onSubmit:n,className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Full Name *"}),c.jsx(Uo,{type:"text",name:"name",placeholder:"John Doe",value:e.name,onChange:r,required:!0,className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Address *"}),c.jsx(Uo,{type:"email",name:"email",placeholder:"john@company.com",value:e.email,onChange:r,required:!0,className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors"})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Company Name"}),c.jsx(Uo,{type:"text",name:"company",placeholder:"Your Company",value:e.company,onChange:r,className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Phone Number"}),c.jsx(Uo,{type:"tel",name:"phone",placeholder:"+91 90814 53463",value:e.phone,onChange:r,className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industry"}),c.jsxs("select",{name:"industry",value:e.industry,onChange:r,className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors bg-white",children:[c.jsx("option",{value:"",children:"Select your industry"}),c.jsx("option",{value:"healthcare",children:"Healthcare"}),c.jsx("option",{value:"finance",children:"Financial Services"}),c.jsx("option",{value:"manufacturing",children:"Manufacturing"}),c.jsx("option",{value:"retail",children:"Retail & E-commerce"}),c.jsx("option",{value:"transportation",children:"Transportation"}),c.jsx("option",{value:"energy",children:"Energy & Utilities"}),c.jsx("option",{value:"other",children:"Other"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Project Details *"}),c.jsx(sy,{name:"message",placeholder:"Tell us about your AI needs, current challenges, and goals...",value:e.message,onChange:r,required:!0,rows:5,className:"w-full p-4 border-2 border-gray-200 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors resize-none"})]}),c.jsxs(Me,{type:"submit",className:"w-full bg-primary hover:bg-primary-800 text-white py-4 rounded-lg transition-all duration-300 hover:scale-105 font-semibold text-lg flex items-center justify-center",children:["Send Message",c.jsx(Sr,{className:"ml-2 h-5 w-5"})]})]})})]})}),c.jsxs("div",{className:"space-y-6",children:[o.map((s,i)=>c.jsx($n,{className:"border-0 shadow-ey bg-white hover:shadow-ey-lg transition-shadow",children:c.jsx(Bn,{className:"p-6",children:c.jsxs("div",{className:"flex items-start space-x-4",children:[c.jsx("div",{className:"text-primary bg-primary/10 p-3 rounded-lg flex-shrink-0",children:s.icon}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-primary mb-2",children:s.title}),c.jsx("p",{className:"text-gray-900 font-medium",children:s.details}),c.jsx("p",{className:"text-gray-600 text-sm",children:s.subtitle})]})]})})},i)),c.jsx($n,{className:"border-0 shadow-ey bg-primary text-white",children:c.jsxs(Bn,{className:"p-6",children:[c.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Why Choose iLogic?"}),c.jsxs("ul",{className:"space-y-3 text-sm",children:[c.jsxs("li",{className:"flex items-start",children:[c.jsx("div",{className:"w-5 h-5 bg-secondary rounded-full flex items-center justify-center mr-3 mt-0.5 flex-shrink-0",children:c.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})}),c.jsx("span",{children:"Free consultation and needs assessment"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx("div",{className:"w-5 h-5 bg-secondary rounded-full flex items-center justify-center mr-3 mt-0.5 flex-shrink-0",children:c.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})}),c.jsx("span",{children:"Custom AI strategy roadmap"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx("div",{className:"w-5 h-5 bg-secondary rounded-full flex items-center justify-center mr-3 mt-0.5 flex-shrink-0",children:c.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})}),c.jsx("span",{children:"Proof of concept development"})]}),c.jsxs("li",{className:"flex items-start",children:[c.jsx("div",{className:"w-5 h-5 bg-secondary rounded-full flex items-center justify-center mr-3 mt-0.5 flex-shrink-0",children:c.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})}),c.jsx("span",{children:"24/7 ongoing support"})]})]})]})})]})]})]})})},wo=()=>{const e=r=>{const o=document.getElementById(r);o&&o.scrollIntoView({behavior:"smooth"})},t=["AI Consulting","AI Development","AI Integration","AI Agents","AI Chatbots","WorkFlow Automation"],n=["Healthcare","Financial Services","Manufacturing","Retail & E-commerce","Transportation","Energy & Utilities"];return c.jsx("footer",{className:"bg-primary text-white py-12",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-8",children:[c.jsxs("div",{className:"lg:col-span-1",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-6",children:[c.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-white rounded-lg flex items-center justify-center",children:c.jsx("div",{className:"text-primary font-bold text-base sm:text-lg",children:"i"})}),c.jsx("h3",{className:"text-xl sm:text-2xl font-bold",children:"logicaisolutions"})]}),c.jsx("p",{className:"text-gray-300 mb-6 leading-relaxed",children:"ilogicaisolutions helps Australian businesses harness the power of artificial intelligence. We create practical AI solutions that solve real problems and deliver measurable results for companies across all industries."}),c.jsx("div",{className:"text-secondary font-semibold text-lg",children:'"Building a better working world with AI"'}),c.jsxs("div",{className:"flex space-x-4 mt-6",children:[c.jsx("a",{href:"https://linkedin.com/company/ilogicaisolutions",className:"w-10 h-10 bg-white/10 hover:bg-secondary rounded-lg flex items-center justify-center transition-colors duration-300","aria-label":"ilogicaisolutions LinkedIn",children:c.jsx($x,{className:"h-5 w-5"})}),c.jsx("a",{href:"https://twitter.com/ilogicaisolutions",className:"w-10 h-10 bg-white/10 hover:bg-secondary rounded-lg flex items-center justify-center transition-colors duration-300","aria-label":"ilogicaisolutions Twitter",children:c.jsx(Hx,{className:"h-5 w-5"})}),c.jsx("a",{href:"#",className:"w-10 h-10 bg-white/10 hover:bg-secondary rounded-lg flex items-center justify-center transition-colors duration-300","aria-label":"ilogicaisolutions YouTube",children:c.jsx(Qx,{className:"h-5 w-5"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-lg font-semibold mb-6 text-white",children:"ilogicaisolutions Services"}),c.jsx("ul",{className:"space-y-3 text-gray-300",children:t.map((r,o)=>c.jsx("li",{children:c.jsx("button",{onClick:()=>e("services"),className:"hover:text-secondary transition-colors text-left",children:r})},o))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-lg font-semibold mb-6 text-white",children:"Industries We Serve"}),c.jsx("ul",{className:"space-y-3 text-gray-300",children:n.map((r,o)=>c.jsx("li",{children:c.jsx("button",{onClick:()=>e("industries"),className:"hover:text-secondary transition-colors text-left",children:r})},o))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-lg font-semibold mb-6 text-white",children:"Contact ilogicaisolutions"}),c.jsxs("div",{className:"space-y-4 text-gray-300",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(Vh,{className:"h-5 w-5 text-secondary"}),c.jsx("span",{children:"manojec9396@gmail.com"})]}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(Qh,{className:"h-5 w-5 text-secondary"}),c.jsx("span",{children:"+91 90814 53463"})]}),c.jsxs("div",{className:"flex items-start space-x-3",children:[c.jsx(Hh,{className:"h-5 w-5 text-secondary mt-1"}),c.jsxs("div",{children:[c.jsx("div",{children:"Adelaide, Australia"}),c.jsx("div",{children:"South Australia"})]})]})]}),c.jsxs("div",{className:"mt-6",children:[c.jsx("h5",{className:"text-base font-semibold mb-3 text-white",children:"Stay Updated with ilogicaisolutions"}),c.jsx("p",{className:"text-sm text-gray-300 mb-3",children:"Get practical AI insights and tips"}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[c.jsx("input",{type:"email",placeholder:"Your email",className:"flex-1 px-4 py-3 bg-white/10 border border-white/20 rounded-lg focus:outline-none focus:ring-2 focus:ring-secondary text-white placeholder-gray-400 w-full"}),c.jsx("button",{className:"px-4 py-3 bg-secondary hover:bg-secondary-dark text-primary rounded-lg transition-colors duration-300 font-semibold w-full sm:w-auto whitespace-nowrap",children:"Subscribe"})]})]})]})]}),c.jsx("div",{className:"border-t border-white/20 pt-6",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 items-center",children:[c.jsx("div",{className:"text-gray-300 text-sm",children:c.jsx("p",{children:"© 2025 ilogicaisolutions. All rights reserved."})}),c.jsxs("div",{className:"flex space-x-6 text-sm text-gray-300 md:justify-end",children:[c.jsx("a",{href:"#",className:"hover:text-secondary transition-colors",children:"Privacy Policy"}),c.jsx("a",{href:"#",className:"hover:text-secondary transition-colors",children:"Terms of Service"}),c.jsx("a",{href:"#",className:"hover:text-secondary transition-colors",children:"Cookie Policy"})]})]})})]})})},FS=()=>c.jsxs("div",{className:"min-h-screen font-inter overflow-x-hidden",children:[c.jsx(xo,{}),c.jsx(Y2,{}),c.jsx(Kg,{}),c.jsx(J2,{}),c.jsx(DS,{}),c.jsx(_S,{}),c.jsx(zS,{}),c.jsx(iy,{}),c.jsx(wo,{})]}),$S=()=>c.jsxs("div",{className:"min-h-screen font-inter overflow-x-hidden",children:[c.jsx(xo,{}),c.jsx(Kg,{}),c.jsx(wo,{})]}),BS=()=>c.jsxs("div",{className:"min-h-screen font-inter overflow-x-hidden",children:[c.jsx(xo,{}),c.jsx(iy,{}),c.jsx(wo,{})]}),US=()=>c.jsxs("div",{className:"min-h-screen font-inter overflow-x-hidden",children:[c.jsx(xo,{}),c.jsx("div",{className:"py-24 bg-white",children:c.jsxs("div",{className:"container mx-auto px-6 text-center",children:[c.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-primary mb-8",children:"Hello World from ilogicaisolutions!"}),c.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:"Welcome to ilogicaisolutions - where we transform businesses with intelligent AI solutions. We're building a better working world with artificial intelligence."}),c.jsx("div",{className:"mt-12",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("h3",{className:"text-2xl font-bold text-primary mb-4",children:"Our Location"}),c.jsx("p",{className:"text-gray-600",children:"Adelaide, Australia"}),c.jsx("p",{className:"text-gray-600",children:"South Australia"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("h3",{className:"text-2xl font-bold text-primary mb-4",children:"Contact Info"}),c.jsx("p",{className:"text-gray-600",children:"Phone: +91 90814 53463"}),c.jsx("p",{className:"text-gray-600",children:"Email: manojec9396@gmail.com"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("h3",{className:"text-2xl font-bold text-primary mb-4",children:"Our Mission"}),c.jsx("p",{className:"text-gray-600",children:"Building staffs, emphasizing history,"}),c.jsx("p",{className:"text-gray-600",children:"driving economic outcomes"})]})]})})]})}),c.jsx(wo,{})]}),VS=()=>{const{id:e}=I2(),t=Fu();b.useEffect(()=>{window.scrollTo(0,0)},[e]);const n=[{id:"ai-trends-2025",title:"How AI is Changing Business Operations in 2025",content:["This year has brought significant changes in how companies use artificial intelligence. At ilogicaisolutions, we've seen firsthand how businesses are adapting to new AI tools and technologies. From automated customer service to predictive analytics, companies are finding practical ways to implement AI solutions that actually improve their daily operations.","The focus has shifted from experimental projects to real-world applications that deliver measurable results. Organizations are no longer asking whether they should adopt AI, but rather how quickly they can implement solutions that drive efficiency and growth.","As we step into 2025, artificial intelligence continues to reshape the business landscape at an unprecedented pace. From advanced machine learning algorithms to sophisticated natural language processing, AI technologies are becoming more accessible and powerful than ever before.","Key Trends Shaping AI in 2025:","1. Autonomous Business Processes","The integration of AI in business processes is moving beyond automation to true autonomy. Companies are implementing self-managing systems that can make decisions, adapt to changes, and optimize operations without human intervention. This shift is particularly evident in supply chain management, customer service, and financial operations.","2. AI-Powered Decision Making","Organizations are increasingly relying on AI to support strategic decision-making. Advanced analytics platforms are providing executives with real-time insights, predictive modeling, and scenario planning capabilities that were previously impossible to achieve manually.","3. Ethical AI Implementation","As AI becomes more prevalent, companies are prioritizing ethical implementation frameworks. This includes ensuring fairness, transparency, and accountability in AI systems, particularly in sensitive areas like hiring, lending, and healthcare.","Industry Applications:","Healthcare Revolution:","AI is transforming healthcare through personalized medicine, early disease detection, and automated diagnostics. Machine learning algorithms are now capable of analyzing medical images with greater accuracy than human specialists in many cases.","Financial Services Innovation:","The financial sector is leveraging AI for fraud detection, algorithmic trading, risk assessment, and personalized financial advice. Real-time transaction monitoring and predictive analytics are becoming standard practices.","Challenges and Considerations:","Despite the promising developments, organizations face several challenges including data privacy concerns, the need for specialized talent, and the complexity of integrating AI with existing systems. Success requires careful planning, investment in training, and a clear understanding of business objectives.","Looking Ahead:","The future of AI in business is bright, with continued advancements in machine learning, natural language processing, and computer vision. Organizations that invest in AI capabilities today will be best positioned to compete in the digital economy of tomorrow."],author:"ilogicaisolutions Team",date:"January 15, 2025",readTime:"6 min read",image:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&h=400&fit=crop&crop=center&auto=format",category:"Business AI"},{id:"machine-learning-guide",title:"Getting Started with Machine Learning for Small Businesses",content:["Many small business owners think machine learning is only for tech giants, but that's not true anymore. ilogicaisolutions has helped dozens of small companies implement simple ML solutions that make a real difference.","Whether it's predicting inventory needs, personalizing customer experiences, or automating routine tasks, machine learning can be accessible and affordable. The key is starting small and focusing on specific problems rather than trying to revolutionize everything at once.","Getting Started with Enterprise ML:","Machine learning implementation in enterprise environments requires careful planning, strategic thinking, and a deep understanding of both technical and business requirements. This comprehensive guide provides actionable insights for every stage of the ML journey.","Phase 1: Assessment and Planning","Data Audit and Preparation:","Before implementing any ML solution, organizations must conduct a thorough audit of their data landscape. This includes assessing data quality, identifying gaps, and establishing governance frameworks.","Infrastructure Requirements:","Modern ML implementations require robust infrastructure capable of handling large datasets and complex computations. Cloud-based solutions offer scalability and flexibility for most enterprise needs.","Phase 2: Model Development","Algorithm Selection:","Choosing the right algorithm depends on your specific use case, data characteristics, and business objectives. Common approaches include supervised learning for predictive analytics and unsupervised learning for pattern discovery.","Training and Validation:","Proper model training requires careful attention to data splitting, cross-validation, and performance metrics. Organizations should establish clear benchmarks for model accuracy and reliability.","Phase 3: Deployment and Monitoring","Production Deployment:","Moving from development to production requires careful consideration of scalability, security, and integration with existing systems. Container-based deployments and API-first architectures are becoming standard practices.","Continuous Monitoring:","ML models require ongoing monitoring to ensure they continue to perform as expected. This includes tracking prediction accuracy, identifying data drift, and implementing retraining schedules.","Best Practices and Common Pitfalls:","Successful ML implementation requires avoiding common mistakes such as insufficient data preparation, overfitting, and lack of business alignment. Organizations should focus on solving real business problems rather than implementing technology for its own sake.","Measuring Success:","Success metrics should align with business objectives and include both technical performance indicators and business impact measurements. Regular reviews and adjustments ensure continued value delivery."],author:"ilogicaisolutions Team",date:"January 12, 2025",readTime:"8 min read",image:"https://images.unsplash.com/photo-1518770660439-4636190af475?w=800&h=400&fit=crop&crop=center&auto=format",category:"Machine Learning"},{id:"ai-implementation-success",title:"5 Keys to Successful AI Implementation",content:["After working with numerous clients, ilogicaisolutions has identified the common factors that determine whether an AI project succeeds or fails. It's not just about having the best technology - it's about proper planning, team buy-in, and realistic expectations.","Successful AI implementation requires understanding your current processes, identifying specific pain points, and choosing solutions that fit your company culture. We've learned that gradual implementation often works better than dramatic overhauls.","The Importance of Strategic Planning:","As artificial intelligence becomes increasingly integrated into critical business processes and decision-making systems, the importance of strategic AI planning cannot be overstated. Organizations must proactively address implementation considerations to build trust and ensure successful deployment.","Core Principles of Successful AI Implementation:","1. Clear Vision and Objectives:","AI systems must be designed with specific business goals in mind, avoiding the trap of implementing technology for its own sake. This requires careful attention to business requirements, success metrics, and ongoing monitoring for desired outcomes.","2. Data Foundation and Quality:","Organizations should establish robust data infrastructure before implementing AI solutions. Users and stakeholders should understand the importance of clean, well-organized data and what factors influence project success.","3. Team Training and Change Management:","Protecting team readiness and ensuring proper training are fundamental requirements for successful AI implementation. This includes implementing change management principles and ensuring all stakeholders understand their roles.","Implementation Framework:","Establishing AI Governance:","Organizations should establish dedicated implementation teams with diverse representation to oversee AI development and deployment. These teams can provide guidance, review projects, and ensure compliance with business standards.","Risk Assessment Processes:","Regular risk assessments help identify potential implementation issues before they become problems. This includes evaluating potential impacts on different stakeholder groups and implementing mitigation strategies.","Deployment Strategies:","Phased Implementation:","Building successful AI capabilities requires investing in gradual rollout and education for development teams, leadership, and other stakeholders. This ensures everyone understands their role in maintaining implementation standards.","Continuous Monitoring and Optimization:","Continuous monitoring and regular reviews help ensure AI systems continue to operate effectively over time. This includes tracking performance metrics, conducting success assessments, and reviewing business outcomes.","Real-World Success Stories:","Several organizations have successfully implemented AI frameworks, providing valuable lessons for others. These case studies demonstrate that strategic considerations can be integrated into AI development without sacrificing performance or innovation.","Future Considerations:","As AI technology continues to evolve, implementation considerations will become even more important. Organizations that prioritize strategic AI planning today will be better positioned to navigate future challenges and maintain stakeholder trust."],author:"ilogicaisolutions Team",date:"January 10, 2025",readTime:"7 min read",image:"https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=800&h=400&fit=crop&crop=center&auto=format",category:"Implementation"},{id:"chatbots-customer-help",title:"Chatbots That Actually Help Customers",content:["Too many businesses rush into chatbot development without thinking about the customer experience. At ilogicaisolutions, we've built chatbots that customers actually want to use because we focus on solving real problems rather than just automating conversations.","A good chatbot should feel helpful, not frustrating. This means understanding common customer questions, providing clear responses, and knowing when to hand off to human support. The goal isn't to replace human interaction entirely, but to handle routine inquiries efficiently.","Understanding Customer Needs:","The foundation of any successful chatbot is a deep understanding of what customers actually need. This requires analyzing support tickets, customer feedback, and common pain points to identify opportunities for automation.","Design Principles for Effective Chatbots:","1. Natural Conversation Flow:","Chatbots should feel conversational and intuitive, not robotic or scripted. This means using natural language processing to understand context and respond appropriately to customer queries.","2. Clear Escalation Paths:","Knowing when to hand off to human agents is crucial. Chatbots should recognize when they can't help and provide easy ways for customers to connect with human support.","3. Personalization and Context:","Effective chatbots use customer data to provide personalized responses and remember conversation history to avoid repetitive questions.","Implementation Best Practices:","Training Data Quality:","The quality of chatbot responses depends heavily on training data. Organizations should invest in creating comprehensive, accurate training datasets that reflect real customer interactions.","Continuous Learning and Improvement:","Chatbots should be continuously updated based on customer feedback and interaction data. Regular analysis of chatbot conversations helps identify areas for improvement.","Integration with Existing Systems:","Successful chatbots integrate seamlessly with existing customer service tools, CRM systems, and knowledge bases to provide comprehensive support.","Measuring Chatbot Success:","Customer Satisfaction Metrics:","Track customer satisfaction scores, resolution rates, and feedback to understand how well your chatbot is performing.","Operational Efficiency:","Monitor metrics like response time, ticket deflection rates, and agent workload reduction to measure operational impact.","Common Pitfalls to Avoid:","Many chatbot implementations fail because they try to do too much too soon. Start with simple, well-defined use cases and gradually expand functionality based on success and user feedback.","The Future of Customer Service:","As AI technology continues to advance, chatbots will become even more sophisticated and helpful. Organizations that focus on customer experience today will be best positioned to leverage future innovations."],author:"ilogicaisolutions Team",date:"January 8, 2025",readTime:"5 min read",image:"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=800&h=400&fit=crop&crop=center&auto=format",category:"Chatbots"},{id:"data-quality-foundation",title:"Data Quality: The Foundation of Effective AI",content:["The best AI algorithms in the world won't help if your data isn't clean and organized. ilogicaisolutions always starts new projects by examining our clients' data infrastructure because this determines everything else.","Poor data quality leads to inaccurate predictions, biased results, and failed implementations. We help businesses establish proper data collection processes, clean up existing datasets, and create systems for maintaining data quality over time. It's not the most exciting part of AI, but it's absolutely essential.","Understanding Data Quality:","Data quality encompasses accuracy, completeness, consistency, timeliness, and relevance. Each of these dimensions plays a crucial role in determining the success of AI initiatives.","Key Components of Data Quality:","1. Data Accuracy:","Accurate data reflects real-world conditions correctly. This means implementing validation rules, regular audits, and correction processes to ensure data integrity.","2. Data Completeness:","Complete datasets provide the full picture needed for AI algorithms to make informed decisions. Missing data can lead to biased or incorrect outcomes.","3. Data Consistency:","Consistent data follows the same formats, standards, and definitions across all systems and sources. This is crucial for integrating data from multiple sources.","Building a Data Quality Framework:","Data Governance:","Establish clear ownership, roles, and responsibilities for data quality. This includes defining data standards, policies, and procedures for data management.","Data Validation and Cleansing:","Implement automated processes for detecting and correcting data quality issues. This includes duplicate detection, format standardization, and error correction.","Monitoring and Maintenance:","Continuous monitoring helps identify data quality issues before they impact AI systems. Regular audits and quality assessments ensure ongoing data integrity.","Tools and Technologies:","Data Quality Platforms:","Modern data quality platforms provide automated tools for profiling, cleansing, and monitoring data quality across enterprise systems.","Master Data Management:","MDM systems help maintain consistent, accurate reference data across all business systems and applications.","Best Practices for Data Quality:","Prevention vs. Correction:","It's more efficient to prevent data quality issues than to fix them after they occur. Implement validation rules and quality checks at the point of data entry.","Regular Assessment:","Conduct regular data quality assessments to identify trends, issues, and improvement opportunities. Use metrics and KPIs to track progress over time.","Impact on AI Success:","High-quality data is the foundation of successful AI implementations. Organizations with strong data quality practices see better AI outcomes, faster implementation times, and higher ROI.","Getting Started:","Begin with a data quality assessment to understand current state and identify priority areas for improvement. Focus on data that directly impacts business decisions and AI initiatives."],author:"ilogicaisolutions Team",date:"January 5, 2025",readTime:"6 min read",image:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&h=400&fit=crop&crop=center&auto=format",category:"Data Management"},{id:"ai-projects-fail",title:"Why Some AI Projects Fail (And How to Avoid It)",content:["Not every AI project is a success story, and at ilogicaisolutions, we believe in being honest about what can go wrong. Common failure points include unrealistic expectations, insufficient planning, poor data quality, and lack of team training.","Many companies expect immediate results from AI implementations, but the reality is that successful projects require patience, iteration, and ongoing refinement. We've learned that setting clear, measurable goals from the beginning and maintaining realistic timelines are crucial for project success.","Common Reasons for AI Project Failure:","1. Unrealistic Expectations:","Many organizations expect AI to be a magic solution that will solve all their problems immediately. The reality is that AI implementation is a gradual process that requires time, resources, and patience.","2. Poor Data Quality:","As discussed in our previous posts, data quality is fundamental to AI success. Projects that don't address data issues upfront are likely to fail or produce unreliable results.","3. Lack of Clear Business Objectives:","AI projects without clear business goals often fail to deliver measurable value. It's essential to define success metrics and align AI initiatives with business strategy.","4. Insufficient Change Management:","AI implementation often requires significant changes to business processes and workflows. Without proper change management, organizations may face resistance and adoption challenges.","5. Technical Challenges and Complexity:","AI projects can be technically complex, requiring specialized skills and infrastructure. Organizations that underestimate these requirements often struggle with implementation.","Prevention Strategies:","Start Small and Scale Gradually:","Begin with pilot projects that have clear, achievable objectives. Use these successes to build momentum and support for larger initiatives.","Invest in Data Infrastructure:","Ensure your data infrastructure can support AI initiatives. This includes data quality, integration, and governance capabilities.","Build Internal Capabilities:","Develop AI skills within your organization through training, hiring, or partnerships. Having internal expertise is crucial for long-term success.","Focus on Business Value:","Always connect AI initiatives to specific business outcomes. Measure and communicate the value delivered by AI projects to maintain support and funding.","Learning from Failure:","Embrace Experimentation:","Not every AI experiment will succeed, and that's okay. Create a culture that encourages experimentation and learning from failures.","Conduct Post-Project Reviews:","Analyze both successful and failed projects to identify lessons learned and best practices for future initiatives.","Success Stories and Lessons:","Organizations that successfully implement AI often share common characteristics: strong leadership support, clear vision, adequate resources, and a willingness to learn and adapt.","Moving Forward:","AI project failure is often preventable with proper planning, realistic expectations, and strong execution. Learn from the experiences of others and apply proven best practices to increase your chances of success."],author:"ilogicaisolutions Team",date:"January 3, 2025",readTime:"7 min read",image:"https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=800&h=400&fit=crop&crop=center&auto=format",category:"Project Management"}],r=n.find(o=>o.id===e)||n[0];return c.jsxs("div",{className:"min-h-screen font-inter overflow-x-hidden",children:[c.jsx(xo,{}),c.jsx("article",{className:"pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[c.jsxs(Me,{onClick:()=>t("/"),variant:"outline",className:"mb-8 flex items-center",children:[c.jsx(Bh,{className:"mr-2 h-4 w-4"}),"Back to Home"]}),c.jsxs("header",{className:"mb-12",children:[c.jsx("div",{className:"mb-6",children:c.jsx("span",{className:"bg-primary text-white px-4 py-2 rounded-full text-sm font-semibold",children:r.category})}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-primary mb-6 leading-tight",children:r.title}),c.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-gray-600 mb-8",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx(qh,{className:"h-4 w-4 mr-2"}),r.author]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(Uh,{className:"h-4 w-4 mr-2"}),r.date]}),c.jsxs("div",{className:"flex items-center",children:[c.jsx(ku,{className:"h-4 w-4 mr-2"}),r.readTime]})]}),c.jsxs("div",{className:"flex gap-4 mb-8",children:[c.jsxs(Me,{variant:"outline",size:"sm",children:[c.jsx(Ux,{className:"mr-2 h-4 w-4"}),"Share"]}),c.jsxs(Me,{variant:"outline",size:"sm",children:[c.jsx(Lx,{className:"mr-2 h-4 w-4"}),"Save"]})]})]}),c.jsx("div",{className:"mb-12",children:c.jsx("img",{src:r.image,alt:r.title,className:"w-full h-64 lg:h-96 object-cover rounded-lg shadow-lg",onError:o=>{const s=o.target;s.src=`https://via.placeholder.com/800x400/4F46E5/FFFFFF?text=${encodeURIComponent(r.category)}`}})}),c.jsx("div",{className:"prose prose-lg max-w-none",children:r.content.map((o,s)=>{const i=o.endsWith(":")||/^\d+\./.test(o),a=o.includes(":")&&!o.endsWith(":");return i?c.jsx("h2",{className:"text-2xl font-bold text-primary mt-8 mb-4 leading-tight",children:o},s):a?c.jsx("h3",{className:"text-xl font-semibold text-primary mt-6 mb-3 leading-tight",children:o},s):c.jsx("p",{className:"text-gray-700 leading-relaxed mb-6 text-lg",children:o},s)})}),c.jsxs("div",{className:"mt-16 p-8 bg-gray-50 rounded-lg",children:[c.jsx("h3",{className:"text-xl font-semibold text-primary mb-4",children:"About the Author"}),c.jsxs("div",{className:"flex items-start space-x-4",children:[c.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center",children:c.jsx("span",{className:"text-white font-bold text-xl",children:"iL"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold text-gray-900",children:"ilogicaisolutions Team"}),c.jsx("p",{className:"text-gray-600 mt-2",children:"An expert team in artificial intelligence and machine learning with over 10 years of experience helping organizations implement AI solutions and drive digital transformation."})]})]})]})]})}),c.jsx(wo,{})]})},HS=()=>{const e=zu();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsxs("div",{className:"min-h-screen font-inter overflow-x-hidden",children:[c.jsx(xo,{}),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-primary/5 to-secondary/5",children:c.jsxs("div",{className:"text-center max-w-2xl mx-auto px-6",children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h1",{className:"text-6xl font-bold text-primary mb-4",children:"404"}),c.jsx("h2",{className:"text-3xl font-bold text-gray-800 mb-4",children:"Page Not Found"}),c.jsxs("p",{className:"text-xl text-gray-600 mb-2",children:["The page ",c.jsx("code",{className:"bg-gray-100 px-2 py-1 rounded text-sm font-mono text-primary",children:e.pathname})," doesn't exist."]}),c.jsx("p",{className:"text-gray-600 mb-8",children:"Don't worry, let's get you back on track with ilogicaisolutions."})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsx(Me,{asChild:!0,className:"bg-primary hover:bg-primary/90",children:c.jsx("a",{href:"/",children:"Back to Home"})}),c.jsx(Me,{variant:"outline",asChild:!0,children:c.jsx("a",{href:"/about",children:"Learn About Us"})}),c.jsx(Me,{variant:"outline",asChild:!0,children:c.jsx("a",{href:"/contact",children:"Contact Us"})})]}),c.jsxs("div",{className:"mt-12 text-sm text-gray-500",children:[c.jsx("p",{children:"Available pages:"}),c.jsxs("div",{className:"flex flex-wrap gap-2 justify-center mt-2",children:[c.jsx("a",{href:"/",className:"text-primary hover:underline",children:"Home"}),c.jsx("span",{children:"•"}),c.jsx("a",{href:"/about",className:"text-primary hover:underline",children:"About"}),c.jsx("span",{children:"•"}),c.jsx("a",{href:"/contact",className:"text-primary hover:underline",children:"Contact"}),c.jsx("span",{children:"•"}),c.jsx("a",{href:"/hello-world",className:"text-primary hover:underline",children:"Hello World"})]})]})]})}),c.jsx(wo,{})]})},WS=new Jb,QS=()=>c.jsx(t2,{client:WS,children:c.jsxs(Ab,{children:[c.jsx(Pw,{}),c.jsx(r1,{}),c.jsx(G2,{children:c.jsxs(W2,{children:[c.jsx(tr,{path:"/",element:c.jsx(FS,{})}),c.jsx(tr,{path:"/about",element:c.jsx($S,{})}),c.jsx(tr,{path:"/contact",element:c.jsx(BS,{})}),c.jsx(tr,{path:"/hello-world",element:c.jsx(US,{})}),c.jsx(tr,{path:"/blog/:id",element:c.jsx(VS,{})}),c.jsx(tr,{path:"*",element:c.jsx(HS,{})})]})})]})});ch(document.getElementById("root")).render(c.jsx(QS,{}));