@kite-copilot/chat-panel 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- "use strict";var KiteChatEmbed=(()=>{var rS=Object.create;var Oi=Object.defineProperty;var oS=Object.getOwnPropertyDescriptor;var nS=Object.getOwnPropertyNames;var sS=Object.getPrototypeOf,iS=Object.prototype.hasOwnProperty;var lS=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var va=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uS=(e,t)=>{for(var a in t)Oi(e,a,{get:t[a],enumerable:!0})},qm=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nS(t))!iS.call(e,o)&&o!==a&&Oi(e,o,{get:()=>t[o],enumerable:!(r=oS(t,o))||r.enumerable});return e};var N=(e,t,a)=>(a=e!=null?rS(sS(e)):{},qm(t||!e||!e.__esModule?Oi(a,"default",{value:e,enumerable:!0}):a,e)),dS=e=>qm(Oi({},"__esModule",{value:!0}),e);var eh=va(Q=>{"use strict";var ts=Symbol.for("react.element"),cS=Symbol.for("react.portal"),fS=Symbol.for("react.fragment"),pS=Symbol.for("react.strict_mode"),mS=Symbol.for("react.profiler"),hS=Symbol.for("react.provider"),gS=Symbol.for("react.context"),xS=Symbol.for("react.forward_ref"),yS=Symbol.for("react.suspense"),vS=Symbol.for("react.memo"),LS=Symbol.for("react.lazy"),Hm=Symbol.iterator;function CS(e){return e===null||typeof e!="object"?null:(e=Hm&&e[Hm]||e["@@iterator"],typeof e=="function"?e:null)}var jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Km=Object.assign,$m={};function So(e,t,a){this.props=e,this.context=t,this.refs=$m,this.updater=a||jm}So.prototype.isReactComponent={};So.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")};So.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xm(){}Xm.prototype=So.prototype;function Jd(e,t,a){this.props=e,this.context=t,this.refs=$m,this.updater=a||jm}var ec=Jd.prototype=new Xm;ec.constructor=Jd;Km(ec,So.prototype);ec.isPureReactComponent=!0;var Wm=Array.isArray,Qm=Object.prototype.hasOwnProperty,tc={current:null},Ym={key:!0,ref:!0,__self:!0,__source:!0};function Zm(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Qm.call(t,r)&&!Ym.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:ts,type:e,key:n,ref:s,props:o,_owner:tc.current}}function SS(e,t){return{$$typeof:ts,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ac(e){return typeof e=="object"&&e!==null&&e.$$typeof===ts}function IS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Gm=/\/+/g;function Zd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?IS(""+e.key):t.toString(36)}function Ui(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ts:case cS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Zd(s,0):r,Wm(o)?(a="",e!=null&&(a=e.replace(Gm,"$&/")+"/"),Ui(o,t,a,"",function(u){return u})):o!=null&&(ac(o)&&(o=SS(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Gm,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Wm(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+Zd(n,i);s+=Ui(n,t,a,l,o)}else if(l=CS(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+Zd(n,i++),s+=Ui(n,t,a,l,o);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Vi(e,t,a){if(e==null)return e;var r=[],o=0;return Ui(e,r,"","",function(n){return t.call(a,n,o++)}),r}function wS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var et={current:null},_i={transition:null},kS={ReactCurrentDispatcher:et,ReactCurrentBatchConfig:_i,ReactCurrentOwner:tc};function Jm(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:Vi,forEach:function(e,t,a){Vi(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Vi(e,function(){t++}),t},toArray:function(e){return Vi(e,function(t){return t})||[]},only:function(e){if(!ac(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=So;Q.Fragment=fS;Q.Profiler=mS;Q.PureComponent=Jd;Q.StrictMode=pS;Q.Suspense=yS;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kS;Q.act=Jm;Q.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Km({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=tc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Qm.call(t,l)&&!Ym.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:ts,type:e.type,key:o,ref:n,props:r,_owner:s}};Q.createContext=function(e){return e={$$typeof:gS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hS,_context:e},e.Consumer=e};Q.createElement=Zm;Q.createFactory=function(e){var t=Zm.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:xS,render:e}};Q.isValidElement=ac;Q.lazy=function(e){return{$$typeof:LS,_payload:{_status:-1,_result:e},_init:wS}};Q.memo=function(e,t){return{$$typeof:vS,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=_i.transition;_i.transition={};try{e()}finally{_i.transition=t}};Q.unstable_act=Jm;Q.useCallback=function(e,t){return et.current.useCallback(e,t)};Q.useContext=function(e){return et.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return et.current.useDeferredValue(e)};Q.useEffect=function(e,t){return et.current.useEffect(e,t)};Q.useId=function(){return et.current.useId()};Q.useImperativeHandle=function(e,t,a){return et.current.useImperativeHandle(e,t,a)};Q.useInsertionEffect=function(e,t){return et.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return et.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return et.current.useMemo(e,t)};Q.useReducer=function(e,t,a){return et.current.useReducer(e,t,a)};Q.useRef=function(e){return et.current.useRef(e)};Q.useState=function(e){return et.current.useState(e)};Q.useSyncExternalStore=function(e,t,a){return et.current.useSyncExternalStore(e,t,a)};Q.useTransition=function(){return et.current.useTransition()};Q.version="18.3.1"});var H=va((ib,th)=>{"use strict";th.exports=eh()});var ch=va(ie=>{"use strict";function sc(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<zi(o,t))e[r]=t,e[a]=o,a=r;else break e}}function Ht(e){return e.length===0?null:e[0]}function Hi(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>zi(i,a))l<o&&0>zi(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>zi(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function zi(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ah=performance,ie.unstable_now=function(){return ah.now()}):(rc=Date,rh=rc.now(),ie.unstable_now=function(){return rc.now()-rh});var ah,rc,rh,na=[],Xa=[],PS=1,Ft=null,$e=3,Wi=!1,Ur=!1,rs=!1,sh=typeof setTimeout=="function"?setTimeout:null,ih=typeof clearTimeout=="function"?clearTimeout:null,oh=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ic(e){for(var t=Ht(Xa);t!==null;){if(t.callback===null)Hi(Xa);else if(t.startTime<=e)Hi(Xa),t.sortIndex=t.expirationTime,sc(na,t);else break;t=Ht(Xa)}}function lc(e){if(rs=!1,ic(e),!Ur)if(Ht(na)!==null)Ur=!0,dc(uc);else{var t=Ht(Xa);t!==null&&cc(lc,t.startTime-e)}}function uc(e,t){Ur=!1,rs&&(rs=!1,ih(os),os=-1),Wi=!0;var a=$e;try{for(ic(t),Ft=Ht(na);Ft!==null&&(!(Ft.expirationTime>t)||e&&!dh());){var r=Ft.callback;if(typeof r=="function"){Ft.callback=null,$e=Ft.priorityLevel;var o=r(Ft.expirationTime<=t);t=ie.unstable_now(),typeof o=="function"?Ft.callback=o:Ft===Ht(na)&&Hi(na),ic(t)}else Hi(na);Ft=Ht(na)}if(Ft!==null)var n=!0;else{var s=Ht(Xa);s!==null&&cc(lc,s.startTime-t),n=!1}return n}finally{Ft=null,$e=a,Wi=!1}}var Gi=!1,qi=null,os=-1,lh=5,uh=-1;function dh(){return!(ie.unstable_now()-uh<lh)}function oc(){if(qi!==null){var e=ie.unstable_now();uh=e;var t=!0;try{t=qi(!0,e)}finally{t?as():(Gi=!1,qi=null)}}else Gi=!1}var as;typeof oh=="function"?as=function(){oh(oc)}:typeof MessageChannel<"u"?(nc=new MessageChannel,nh=nc.port2,nc.port1.onmessage=oc,as=function(){nh.postMessage(null)}):as=function(){sh(oc,0)};var nc,nh;function dc(e){qi=e,Gi||(Gi=!0,as())}function cc(e,t){os=sh(function(){e(ie.unstable_now())},t)}ie.unstable_IdlePriority=5;ie.unstable_ImmediatePriority=1;ie.unstable_LowPriority=4;ie.unstable_NormalPriority=3;ie.unstable_Profiling=null;ie.unstable_UserBlockingPriority=2;ie.unstable_cancelCallback=function(e){e.callback=null};ie.unstable_continueExecution=function(){Ur||Wi||(Ur=!0,dc(uc))};ie.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):lh=0<e?Math.floor(1e3/e):5};ie.unstable_getCurrentPriorityLevel=function(){return $e};ie.unstable_getFirstCallbackNode=function(){return Ht(na)};ie.unstable_next=function(e){switch($e){case 1:case 2:case 3:var t=3;break;default:t=$e}var a=$e;$e=t;try{return e()}finally{$e=a}};ie.unstable_pauseExecution=function(){};ie.unstable_requestPaint=function(){};ie.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=$e;$e=e;try{return t()}finally{$e=a}};ie.unstable_scheduleCallback=function(e,t,a){var r=ie.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:PS++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,sc(Xa,e),Ht(na)===null&&e===Ht(Xa)&&(rs?(ih(os),os=-1):rs=!0,cc(lc,a-r))):(e.sortIndex=o,sc(na,e),Ur||Wi||(Ur=!0,dc(uc))),e};ie.unstable_shouldYield=dh;ie.unstable_wrapCallback=function(e){var t=$e;return function(){var a=$e;$e=t;try{return e.apply(this,arguments)}finally{$e=a}}}});var ph=va((ub,fh)=>{"use strict";fh.exports=ch()});var xy=va(bt=>{"use strict";var TS=H(),Pt=ph();function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Lg=new Set,Ps={};function Zr(e,t){Ho(e,t),Ho(e+"Capture",t)}function Ho(e,t){for(Ps[e]=t,e=0;e<t.length;e++)Lg.add(t[e])}var ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fc=Object.prototype.hasOwnProperty,bS=/^[: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]*$/,mh={},hh={};function AS(e){return Fc.call(hh,e)?!0:Fc.call(mh,e)?!1:bS.test(e)?hh[e]=!0:(mh[e]=!0,!1)}function RS(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function MS(e,t,a,r){if(t===null||typeof t>"u"||RS(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 rt(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(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){He[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tf=/[\-:]([a-z])/g;function bf(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(Tf,bf);He[t]=new rt(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(Tf,bf);He[t]=new rt(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(Tf,bf);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Af(e,t,a,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(MS(t,a,o,r)&&(a=null),r||o===null?AS(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var Aa=TS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),ko=Symbol.for("react.portal"),Po=Symbol.for("react.fragment"),Rf=Symbol.for("react.strict_mode"),Nc=Symbol.for("react.profiler"),Cg=Symbol.for("react.provider"),Sg=Symbol.for("react.context"),Mf=Symbol.for("react.forward_ref"),Bc=Symbol.for("react.suspense"),Oc=Symbol.for("react.suspense_list"),Df=Symbol.for("react.memo"),Ya=Symbol.for("react.lazy"),Ig=Symbol.for("react.offscreen"),gh=Symbol.iterator;function ns(e){return e===null||typeof e!="object"?null:(e=gh&&e[gh]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,fc;function ps(e){if(fc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);fc=t&&t[1]||""}return`
2
- `+fc+e}var pc=!1;function mc(e,t){if(!e||pc)return"";pc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
1
+ "use strict";var KiteChatEmbed=(()=>{var iS=Object.create;var zi=Object.defineProperty;var lS=Object.getOwnPropertyDescriptor;var uS=Object.getOwnPropertyNames;var dS=Object.getPrototypeOf,cS=Object.prototype.hasOwnProperty;var fS=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ba=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pS=(e,t)=>{for(var a in t)zi(e,a,{get:t[a],enumerable:!0})},Wm=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of uS(t))!cS.call(e,o)&&o!==a&&zi(e,o,{get:()=>t[o],enumerable:!(r=lS(t,o))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?iS(dS(e)):{},Wm(t||!e||!e.__esModule?zi(a,"default",{value:e,enumerable:!0}):a,e)),mS=e=>Wm(zi({},"__esModule",{value:!0}),e);var ah=ba(J=>{"use strict";var cs=Symbol.for("react.element"),hS=Symbol.for("react.portal"),gS=Symbol.for("react.fragment"),xS=Symbol.for("react.strict_mode"),yS=Symbol.for("react.profiler"),vS=Symbol.for("react.provider"),LS=Symbol.for("react.context"),CS=Symbol.for("react.forward_ref"),SS=Symbol.for("react.suspense"),IS=Symbol.for("react.memo"),wS=Symbol.for("react.lazy"),Gm=Symbol.iterator;function kS(e){return e===null||typeof e!="object"?null:(e=Gm&&e[Gm]||e["@@iterator"],typeof e=="function"?e:null)}var $m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xm=Object.assign,Qm={};function Ao(e,t,a){this.props=e,this.context=t,this.refs=Qm,this.updater=a||$m}Ao.prototype.isReactComponent={};Ao.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")};Ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ym(){}Ym.prototype=Ao.prototype;function oc(e,t,a){this.props=e,this.context=t,this.refs=Qm,this.updater=a||$m}var nc=oc.prototype=new Ym;nc.constructor=oc;Xm(nc,Ao.prototype);nc.isPureReactComponent=!0;var jm=Array.isArray,Zm=Object.prototype.hasOwnProperty,sc={current:null},Jm={key:!0,ref:!0,__self:!0,__source:!0};function eh(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Zm.call(t,r)&&!Jm.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:cs,type:e,key:n,ref:s,props:o,_owner:sc.current}}function bS(e,t){return{$$typeof:cs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ic(e){return typeof e=="object"&&e!==null&&e.$$typeof===cs}function PS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Km=/\/+/g;function rc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PS(""+e.key):t.toString(36)}function qi(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case cs:case hS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+rc(s,0):r,jm(o)?(a="",e!=null&&(a=e.replace(Km,"$&/")+"/"),qi(o,t,a,"",function(u){return u})):o!=null&&(ic(o)&&(o=bS(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Km,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",jm(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+rc(n,i);s+=qi(n,t,a,l,o)}else if(l=kS(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+rc(n,i++),s+=qi(n,t,a,l,o);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Hi(e,t,a){if(e==null)return e;var r=[],o=0;return qi(e,r,"","",function(n){return t.call(a,n,o++)}),r}function TS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var lt={current:null},Wi={transition:null},AS={ReactCurrentDispatcher:lt,ReactCurrentBatchConfig:Wi,ReactCurrentOwner:sc};function th(){throw Error("act(...) is not supported in production builds of React.")}J.Children={map:Hi,forEach:function(e,t,a){Hi(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Hi(e,function(){t++}),t},toArray:function(e){return Hi(e,function(t){return t})||[]},only:function(e){if(!ic(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=Ao;J.Fragment=gS;J.Profiler=yS;J.PureComponent=oc;J.StrictMode=xS;J.Suspense=SS;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AS;J.act=th;J.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Xm({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=sc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Zm.call(t,l)&&!Jm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:cs,type:e.type,key:o,ref:n,props:r,_owner:s}};J.createContext=function(e){return e={$$typeof:LS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:vS,_context:e},e.Consumer=e};J.createElement=eh;J.createFactory=function(e){var t=eh.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:CS,render:e}};J.isValidElement=ic;J.lazy=function(e){return{$$typeof:wS,_payload:{_status:-1,_result:e},_init:TS}};J.memo=function(e,t){return{$$typeof:IS,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=Wi.transition;Wi.transition={};try{e()}finally{Wi.transition=t}};J.unstable_act=th;J.useCallback=function(e,t){return lt.current.useCallback(e,t)};J.useContext=function(e){return lt.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return lt.current.useDeferredValue(e)};J.useEffect=function(e,t){return lt.current.useEffect(e,t)};J.useId=function(){return lt.current.useId()};J.useImperativeHandle=function(e,t,a){return lt.current.useImperativeHandle(e,t,a)};J.useInsertionEffect=function(e,t){return lt.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return lt.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return lt.current.useMemo(e,t)};J.useReducer=function(e,t,a){return lt.current.useReducer(e,t,a)};J.useRef=function(e){return lt.current.useRef(e)};J.useState=function(e){return lt.current.useState(e)};J.useSyncExternalStore=function(e,t,a){return lt.current.useSyncExternalStore(e,t,a)};J.useTransition=function(){return lt.current.useTransition()};J.version="18.3.1"});var j=ba((iT,rh)=>{"use strict";rh.exports=ah()});var ph=ba(he=>{"use strict";function cc(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<Gi(o,t))e[r]=t,e[a]=o,a=r;else break e}}function Xt(e){return e.length===0?null:e[0]}function Ki(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>Gi(i,a))l<o&&0>Gi(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>Gi(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function Gi(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(oh=performance,he.unstable_now=function(){return oh.now()}):(lc=Date,nh=lc.now(),he.unstable_now=function(){return lc.now()-nh});var oh,lc,nh,la=[],Ja=[],RS=1,Vt=null,et=3,$i=!1,Wr=!1,ps=!1,lh=typeof setTimeout=="function"?setTimeout:null,uh=typeof clearTimeout=="function"?clearTimeout:null,sh=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function fc(e){for(var t=Xt(Ja);t!==null;){if(t.callback===null)Ki(Ja);else if(t.startTime<=e)Ki(Ja),t.sortIndex=t.expirationTime,cc(la,t);else break;t=Xt(Ja)}}function pc(e){if(ps=!1,fc(e),!Wr)if(Xt(la)!==null)Wr=!0,hc(mc);else{var t=Xt(Ja);t!==null&&gc(pc,t.startTime-e)}}function mc(e,t){Wr=!1,ps&&(ps=!1,uh(ms),ms=-1),$i=!0;var a=et;try{for(fc(t),Vt=Xt(la);Vt!==null&&(!(Vt.expirationTime>t)||e&&!fh());){var r=Vt.callback;if(typeof r=="function"){Vt.callback=null,et=Vt.priorityLevel;var o=r(Vt.expirationTime<=t);t=he.unstable_now(),typeof o=="function"?Vt.callback=o:Vt===Xt(la)&&Ki(la),fc(t)}else Ki(la);Vt=Xt(la)}if(Vt!==null)var n=!0;else{var s=Xt(Ja);s!==null&&gc(pc,s.startTime-t),n=!1}return n}finally{Vt=null,et=a,$i=!1}}var Xi=!1,ji=null,ms=-1,dh=5,ch=-1;function fh(){return!(he.unstable_now()-ch<dh)}function uc(){if(ji!==null){var e=he.unstable_now();ch=e;var t=!0;try{t=ji(!0,e)}finally{t?fs():(Xi=!1,ji=null)}}else Xi=!1}var fs;typeof sh=="function"?fs=function(){sh(uc)}:typeof MessageChannel<"u"?(dc=new MessageChannel,ih=dc.port2,dc.port1.onmessage=uc,fs=function(){ih.postMessage(null)}):fs=function(){lh(uc,0)};var dc,ih;function hc(e){ji=e,Xi||(Xi=!0,fs())}function gc(e,t){ms=lh(function(){e(he.unstable_now())},t)}he.unstable_IdlePriority=5;he.unstable_ImmediatePriority=1;he.unstable_LowPriority=4;he.unstable_NormalPriority=3;he.unstable_Profiling=null;he.unstable_UserBlockingPriority=2;he.unstable_cancelCallback=function(e){e.callback=null};he.unstable_continueExecution=function(){Wr||$i||(Wr=!0,hc(mc))};he.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dh=0<e?Math.floor(1e3/e):5};he.unstable_getCurrentPriorityLevel=function(){return et};he.unstable_getFirstCallbackNode=function(){return Xt(la)};he.unstable_next=function(e){switch(et){case 1:case 2:case 3:var t=3;break;default:t=et}var a=et;et=t;try{return e()}finally{et=a}};he.unstable_pauseExecution=function(){};he.unstable_requestPaint=function(){};he.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=et;et=e;try{return t()}finally{et=a}};he.unstable_scheduleCallback=function(e,t,a){var r=he.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:RS++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,cc(Ja,e),Xt(la)===null&&e===Xt(Ja)&&(ps?(uh(ms),ms=-1):ps=!0,gc(pc,a-r))):(e.sortIndex=o,cc(la,e),Wr||$i||(Wr=!0,hc(mc))),e};he.unstable_shouldYield=fh;he.unstable_wrapCallback=function(e){var t=et;return function(){var a=et;et=t;try{return e.apply(this,arguments)}finally{et=a}}}});var hh=ba((uT,mh)=>{"use strict";mh.exports=ph()});var vy=ba(Mt=>{"use strict";var DS=j(),Rt=hh();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Sg=new Set,Bs={};function ro(e,t){Qo(e,t),Qo(e+"Capture",t)}function Qo(e,t){for(Bs[e]=t,e=0;e<t.length;e++)Sg.add(t[e])}var Ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=Object.prototype.hasOwnProperty,MS=/^[: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]*$/,gh={},xh={};function NS(e){return Uc.call(xh,e)?!0:Uc.call(gh,e)?!1:MS.test(e)?xh[e]=!0:(gh[e]=!0,!1)}function ES(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FS(e,t,a,r){if(t===null||typeof t>"u"||ES(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 ct(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new ct(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){je[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mf=/[\-:]([a-z])/g;function Nf(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(Mf,Nf);je[t]=new ct(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(Mf,Nf);je[t]=new ct(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(Mf,Nf);je[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ef(e,t,a,r){var o=je.hasOwnProperty(t)?je[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FS(t,a,o,r)&&(a=null),r||o===null?NS(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var Ba=DS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qi=Symbol.for("react.element"),Mo=Symbol.for("react.portal"),No=Symbol.for("react.fragment"),Ff=Symbol.for("react.strict_mode"),_c=Symbol.for("react.profiler"),Ig=Symbol.for("react.provider"),wg=Symbol.for("react.context"),Bf=Symbol.for("react.forward_ref"),zc=Symbol.for("react.suspense"),Hc=Symbol.for("react.suspense_list"),Of=Symbol.for("react.memo"),tr=Symbol.for("react.lazy"),kg=Symbol.for("react.offscreen"),yh=Symbol.iterator;function hs(e){return e===null||typeof e!="object"?null:(e=yh&&e[yh]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,xc;function Is(e){if(xc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);xc=t&&t[1]||""}return`
2
+ `+xc+e}var yc=!1;function vc(e,t){if(!e||yc)return"";yc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
3
3
  `),n=r.stack.split(`
4
4
  `),s=o.length-1,i=n.length-1;1<=s&&0<=i&&o[s]!==n[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==n[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==n[i]){var l=`
5
- `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{pc=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?ps(e):""}function DS(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=mc(e.type,!1),e;case 11:return e=mc(e.type.render,!1),e;case 1:return e=mc(e.type,!0),e;default:return""}}function Vc(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 Po:return"Fragment";case ko:return"Portal";case Nc:return"Profiler";case Rf:return"StrictMode";case Bc:return"Suspense";case Oc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sg:return(e.displayName||"Context")+".Consumer";case Cg:return(e._context.displayName||"Context")+".Provider";case Mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Df:return t=e.displayName||null,t!==null?t:Vc(e.type)||"Memo";case Ya:t=e._payload,e=e._init;try{return Vc(e(t))}catch{}}return null}function ES(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 Vc(t);case 8:return t===Rf?"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 cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FS(e){var t=wg(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ki(e){e._valueTracker||(e._valueTracker=FS(e))}function kg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=wg(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Cl(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 Uc(e,t){var a=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function xh(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=cr(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Pg(e,t){t=t.checked,t!=null&&Af(e,"checked",t,!1)}function _c(e,t){Pg(e,t);var a=cr(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zc(e,t.type,a):t.hasOwnProperty("defaultValue")&&zc(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yh(e,t,a){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,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function zc(e,t,a){(t!=="number"||Cl(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var ms=Array.isArray;function Oo(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+cr(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function qc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vh(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(b(92));if(ms(a)){if(1<a.length)throw Error(b(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:cr(a)}}function Tg(e,t){var a=cr(t.value),r=cr(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function Lh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $i,Ag=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($i=$i||document.createElement("div"),$i.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$i.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ts(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var xs={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},NS=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){NS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function Rg(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function Mg(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Rg(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var BS=Se({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 Wc(e,t){if(t){if(BS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Gc(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 jc=null;function Ef(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kc=null,Vo=null,Uo=null;function Ch(e){if(e=Gs(e)){if(typeof Kc!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Xl(t),Kc(e.stateNode,e.type,t))}}function Dg(e){Vo?Uo?Uo.push(e):Uo=[e]:Vo=e}function Eg(){if(Vo){var e=Vo,t=Uo;if(Uo=Vo=null,Ch(e),t)for(e=0;e<t.length;e++)Ch(t[e])}}function Fg(e,t){return e(t)}function Ng(){}var hc=!1;function Bg(e,t,a){if(hc)return e(t,a);hc=!0;try{return Fg(e,t,a)}finally{hc=!1,(Vo!==null||Uo!==null)&&(Ng(),Eg())}}function bs(e,t){var a=e.stateNode;if(a===null)return null;var r=Xl(a);if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(b(231,t,typeof a));return a}var $c=!1;if(ka)try{Io={},Object.defineProperty(Io,"passive",{get:function(){$c=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{$c=!1}var Io;function OS(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(d){this.onError(d)}}var ys=!1,Sl=null,Il=!1,Xc=null,VS={onError:function(e){ys=!0,Sl=e}};function US(e,t,a,r,o,n,s,i,l){ys=!1,Sl=null,OS.apply(VS,arguments)}function _S(e,t,a,r,o,n,s,i,l){if(US.apply(this,arguments),ys){if(ys){var u=Sl;ys=!1,Sl=null}else throw Error(b(198));Il||(Il=!0,Xc=u)}}function Jr(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Og(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sh(e){if(Jr(e)!==e)throw Error(b(188))}function zS(e){var t=e.alternate;if(!t){if(t=Jr(e),t===null)throw Error(b(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return Sh(o),e;if(n===r)return Sh(o),t;n=n.sibling}throw Error(b(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(b(189))}}if(a.alternate!==r)throw Error(b(190))}if(a.tag!==3)throw Error(b(188));return a.stateNode.current===a?e:t}function Vg(e){return e=zS(e),e!==null?Ug(e):null}function Ug(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ug(e);if(t!==null)return t;e=e.sibling}return null}var _g=Pt.unstable_scheduleCallback,Ih=Pt.unstable_cancelCallback,qS=Pt.unstable_shouldYield,HS=Pt.unstable_requestPaint,Pe=Pt.unstable_now,WS=Pt.unstable_getCurrentPriorityLevel,Ff=Pt.unstable_ImmediatePriority,zg=Pt.unstable_UserBlockingPriority,wl=Pt.unstable_NormalPriority,GS=Pt.unstable_LowPriority,qg=Pt.unstable_IdlePriority,Gl=null,ua=null;function jS(e){if(ua&&typeof ua.onCommitFiberRoot=="function")try{ua.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:XS,KS=Math.log,$S=Math.LN2;function XS(e){return e>>>=0,e===0?32:31-(KS(e)/$S|0)|0}var Xi=64,Qi=4194304;function hs(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 kl(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=hs(i):(n&=s,n!==0&&(r=hs(n)))}else s=a&~o,s!==0?r=hs(s):n!==0&&(r=hs(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-$t(t),o=1<<a,r|=e[a],t&=~o;return r}function QS(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function YS(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-$t(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=QS(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function Qc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hg(){var e=Xi;return Xi<<=1,(Xi&4194240)===0&&(Xi=64),e}function gc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Hs(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=a}function ZS(e,t){var a=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<a;){var o=31-$t(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function Nf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-$t(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var ne=0;function Wg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Gg,Bf,jg,Kg,$g,Yc=!1,Yi=[],rr=null,or=null,nr=null,As=new Map,Rs=new Map,Ja=[],JS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wh(e,t){switch(e){case"focusin":case"focusout":rr=null;break;case"dragenter":case"dragleave":or=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function ss(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=Gs(t),t!==null&&Bf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function eI(e,t,a,r,o){switch(t){case"focusin":return rr=ss(rr,e,t,a,r,o),!0;case"dragenter":return or=ss(or,e,t,a,r,o),!0;case"mouseover":return nr=ss(nr,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return As.set(n,ss(As.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,Rs.set(n,ss(Rs.get(n)||null,e,t,a,r,o)),!0}return!1}function Xg(e){var t=qr(e.target);if(t!==null){var a=Jr(t);if(a!==null){if(t=a.tag,t===13){if(t=Og(a),t!==null){e.blockedOn=t,$g(e.priority,function(){jg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);jc=r,a.target.dispatchEvent(r),jc=null}else return t=Gs(a),t!==null&&Bf(t),e.blockedOn=a,!1;t.shift()}return!0}function kh(e,t,a){cl(e)&&a.delete(t)}function tI(){Yc=!1,rr!==null&&cl(rr)&&(rr=null),or!==null&&cl(or)&&(or=null),nr!==null&&cl(nr)&&(nr=null),As.forEach(kh),Rs.forEach(kh)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,tI)))}function Ms(e){function t(o){return is(o,e)}if(0<Yi.length){is(Yi[0],e);for(var a=1;a<Yi.length;a++){var r=Yi[a];r.blockedOn===e&&(r.blockedOn=null)}}for(rr!==null&&is(rr,e),or!==null&&is(or,e),nr!==null&&is(nr,e),As.forEach(t),Rs.forEach(t),a=0;a<Ja.length;a++)r=Ja[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)Xg(a),a.blockedOn===null&&Ja.shift()}var _o=Aa.ReactCurrentBatchConfig,Pl=!0;function aI(e,t,a,r){var o=ne,n=_o.transition;_o.transition=null;try{ne=1,Of(e,t,a,r)}finally{ne=o,_o.transition=n}}function rI(e,t,a,r){var o=ne,n=_o.transition;_o.transition=null;try{ne=4,Of(e,t,a,r)}finally{ne=o,_o.transition=n}}function Of(e,t,a,r){if(Pl){var o=Zc(e,t,a,r);if(o===null)Ic(e,t,r,Tl,a),wh(e,r);else if(eI(o,e,t,a,r))r.stopPropagation();else if(wh(e,r),t&4&&-1<JS.indexOf(e)){for(;o!==null;){var n=Gs(o);if(n!==null&&Gg(n),n=Zc(e,t,a,r),n===null&&Ic(e,t,r,Tl,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Ic(e,t,r,null,a)}}var Tl=null;function Zc(e,t,a,r){if(Tl=null,e=Ef(r),e=qr(e),e!==null)if(t=Jr(e),t===null)e=null;else if(a=t.tag,a===13){if(e=Og(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Tl=e,null}function Qg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(WS()){case Ff:return 1;case zg:return 4;case wl:case GS:return 16;case qg:return 536870912;default:return 16}default:return 16}}var tr=null,Vf=null,fl=null;function Yg(){if(fl)return fl;var e,t=Vf,a=t.length,r,o="value"in tr?tr.value:tr.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return fl=o.slice(e,1<r?1-r:void 0)}function pl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zi(){return!0}function Ph(){return!1}function Tt(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Zi:Ph,this.isPropagationStopped=Ph,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Zi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Zi)},persist:function(){},isPersistent:Zi}),t}var Qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uf=Tt(Qo),Ws=Se({},Qo,{view:0,detail:0}),oI=Tt(Ws),xc,yc,ls,jl=Se({},Ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ls&&(ls&&e.type==="mousemove"?(xc=e.screenX-ls.screenX,yc=e.screenY-ls.screenY):yc=xc=0,ls=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:yc}}),Th=Tt(jl),nI=Se({},jl,{dataTransfer:0}),sI=Tt(nI),iI=Se({},Ws,{relatedTarget:0}),vc=Tt(iI),lI=Se({},Qo,{animationName:0,elapsedTime:0,pseudoElement:0}),uI=Tt(lI),dI=Se({},Qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cI=Tt(dI),fI=Se({},Qo,{data:0}),bh=Tt(fI),pI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hI[e])?!!t[e]:!1}function _f(){return gI}var xI=Se({},Ws,{key:function(e){if(e.key){var t=pI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_f,charCode:function(e){return e.type==="keypress"?pl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yI=Tt(xI),vI=Se({},jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ah=Tt(vI),LI=Se({},Ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_f}),CI=Tt(LI),SI=Se({},Qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),II=Tt(SI),wI=Se({},jl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kI=Tt(wI),PI=[9,13,27,32],zf=ka&&"CompositionEvent"in window,vs=null;ka&&"documentMode"in document&&(vs=document.documentMode);var TI=ka&&"TextEvent"in window&&!vs,Zg=ka&&(!zf||vs&&8<vs&&11>=vs),Rh=" ",Mh=!1;function Jg(e,t){switch(e){case"keyup":return PI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ex(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var To=!1;function bI(e,t){switch(e){case"compositionend":return ex(t);case"keypress":return t.which!==32?null:(Mh=!0,Rh);case"textInput":return e=t.data,e===Rh&&Mh?null:e;default:return null}}function AI(e,t){if(To)return e==="compositionend"||!zf&&Jg(e,t)?(e=Yg(),fl=Vf=tr=null,To=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zg&&t.locale!=="ko"?null:t.data;default:return null}}var RI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!RI[e.type]:t==="textarea"}function tx(e,t,a,r){Dg(r),t=bl(t,"onChange"),0<t.length&&(a=new Uf("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Ls=null,Ds=null;function MI(e){fx(e,0)}function Kl(e){var t=Ro(e);if(kg(t))return e}function DI(e,t){if(e==="change")return t}var ax=!1;ka&&(ka?(el="oninput"in document,el||(Lc=document.createElement("div"),Lc.setAttribute("oninput","return;"),el=typeof Lc.oninput=="function"),Ji=el):Ji=!1,ax=Ji&&(!document.documentMode||9<document.documentMode));var Ji,el,Lc;function Eh(){Ls&&(Ls.detachEvent("onpropertychange",rx),Ds=Ls=null)}function rx(e){if(e.propertyName==="value"&&Kl(Ds)){var t=[];tx(t,Ds,e,Ef(e)),Bg(MI,t)}}function EI(e,t,a){e==="focusin"?(Eh(),Ls=t,Ds=a,Ls.attachEvent("onpropertychange",rx)):e==="focusout"&&Eh()}function FI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kl(Ds)}function NI(e,t){if(e==="click")return Kl(t)}function BI(e,t){if(e==="input"||e==="change")return Kl(t)}function OI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:OI;function Es(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Fc.call(t,o)||!Qt(e[o],t[o]))return!1}return!0}function Fh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nh(e,t){var a=Fh(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Fh(a)}}function ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nx(){for(var e=window,t=Cl();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Cl(e.document)}return t}function qf(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 VI(e){var t=nx(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&ox(a.ownerDocument.documentElement,a)){if(r!==null&&qf(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=Nh(a,n);var s=Nh(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var UI=ka&&"documentMode"in document&&11>=document.documentMode,bo=null,Jc=null,Cs=null,ef=!1;function Bh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ef||bo==null||bo!==Cl(r)||(r=bo,"selectionStart"in r&&qf(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}),Cs&&Es(Cs,r)||(Cs=r,r=bl(Jc,"onSelect"),0<r.length&&(t=new Uf("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=bo)))}function tl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ao={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionend:tl("Transition","TransitionEnd")},Cc={},sx={};ka&&(sx=document.createElement("div").style,"AnimationEvent"in window||(delete Ao.animationend.animation,delete Ao.animationiteration.animation,delete Ao.animationstart.animation),"TransitionEvent"in window||delete Ao.transitionend.transition);function $l(e){if(Cc[e])return Cc[e];if(!Ao[e])return e;var t=Ao[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in sx)return Cc[e]=t[a];return e}var ix=$l("animationend"),lx=$l("animationiteration"),ux=$l("animationstart"),dx=$l("transitionend"),cx=new Map,Oh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function pr(e,t){cx.set(e,t),Zr(t,[e])}for(al=0;al<Oh.length;al++)rl=Oh[al],Vh=rl.toLowerCase(),Uh=rl[0].toUpperCase()+rl.slice(1),pr(Vh,"on"+Uh);var rl,Vh,Uh,al;pr(ix,"onAnimationEnd");pr(lx,"onAnimationIteration");pr(ux,"onAnimationStart");pr("dblclick","onDoubleClick");pr("focusin","onFocus");pr("focusout","onBlur");pr(dx,"onTransitionEnd");Ho("onMouseEnter",["mouseout","mouseover"]);Ho("onMouseLeave",["mouseout","mouseover"]);Ho("onPointerEnter",["pointerout","pointerover"]);Ho("onPointerLeave",["pointerout","pointerover"]);Zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_I=new Set("cancel close invalid load scroll toggle".split(" ").concat(gs));function _h(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,_S(r,t,void 0,e),e.currentTarget=null}function fx(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;_h(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;_h(o,i,u),n=l}}}if(Il)throw e=Xc,Il=!1,Xc=null,e}function fe(e,t){var a=t[nf];a===void 0&&(a=t[nf]=new Set);var r=e+"__bubble";a.has(r)||(px(t,e,2,!1),a.add(r))}function Sc(e,t,a){var r=0;t&&(r|=4),px(a,e,r,t)}var ol="_reactListening"+Math.random().toString(36).slice(2);function Fs(e){if(!e[ol]){e[ol]=!0,Lg.forEach(function(a){a!=="selectionchange"&&(_I.has(a)||Sc(a,!1,e),Sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ol]||(t[ol]=!0,Sc("selectionchange",!1,t))}}function px(e,t,a,r){switch(Qg(t)){case 1:var o=aI;break;case 4:o=rI;break;default:o=Of}a=o.bind(null,t,a,e),o=void 0,!$c||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Ic(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=qr(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}Bg(function(){var u=n,d=Ef(a),f=[];e:{var p=cx.get(e);if(p!==void 0){var g=Uf,y=e;switch(e){case"keypress":if(pl(a)===0)break e;case"keydown":case"keyup":g=yI;break;case"focusin":y="focus",g=vc;break;case"focusout":y="blur",g=vc;break;case"beforeblur":case"afterblur":g=vc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Th;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=sI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=CI;break;case ix:case lx:case ux:g=uI;break;case dx:g=II;break;case"scroll":g=oI;break;case"wheel":g=kI;break;case"copy":case"cut":case"paste":g=cI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ah}var v=(t&4)!==0,I=!v&&e==="scroll",h=v?p!==null?p+"Capture":null:p;v=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,h!==null&&(S=bs(m,h),S!=null&&v.push(Ns(m,S,x)))),I)break;m=m.return}0<v.length&&(p=new g(p,y,null,a,d),f.push({event:p,listeners:v}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&a!==jc&&(y=a.relatedTarget||a.fromElement)&&(qr(y)||y[Pa]))break e;if((g||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=a.relatedTarget||a.toElement,g=u,y=y?qr(y):null,y!==null&&(I=Jr(y),y!==I||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(v=Th,S="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ah,S="onPointerLeave",h="onPointerEnter",m="pointer"),I=g==null?p:Ro(g),x=y==null?p:Ro(y),p=new v(S,m+"leave",g,a,d),p.target=I,p.relatedTarget=x,S=null,qr(d)===u&&(v=new v(h,m+"enter",y,a,d),v.target=x,v.relatedTarget=I,S=v),I=S,g&&y)t:{for(v=g,h=y,m=0,x=v;x;x=wo(x))m++;for(x=0,S=h;S;S=wo(S))x++;for(;0<m-x;)v=wo(v),m--;for(;0<x-m;)h=wo(h),x--;for(;m--;){if(v===h||h!==null&&v===h.alternate)break t;v=wo(v),h=wo(h)}v=null}else v=null;g!==null&&zh(f,p,g,v,!1),y!==null&&I!==null&&zh(f,I,y,v,!0)}}e:{if(p=u?Ro(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var C=DI;else if(Dh(p))if(ax)C=BI;else{C=FI;var T=EI}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=NI);if(C&&(C=C(e,u))){tx(f,C,a,d);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&zc(p,"number",p.value)}switch(T=u?Ro(u):window,e){case"focusin":(Dh(T)||T.contentEditable==="true")&&(bo=T,Jc=u,Cs=null);break;case"focusout":Cs=Jc=bo=null;break;case"mousedown":ef=!0;break;case"contextmenu":case"mouseup":case"dragend":ef=!1,Bh(f,a,d);break;case"selectionchange":if(UI)break;case"keydown":case"keyup":Bh(f,a,d)}var P;if(zf)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else To?Jg(e,a)&&(k="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(Zg&&a.locale!=="ko"&&(To||k!=="onCompositionStart"?k==="onCompositionEnd"&&To&&(P=Yg()):(tr=d,Vf="value"in tr?tr.value:tr.textContent,To=!0)),T=bl(u,k),0<T.length&&(k=new bh(k,e,null,a,d),f.push({event:k,listeners:T}),P?k.data=P:(P=ex(a),P!==null&&(k.data=P)))),(P=TI?bI(e,a):AI(e,a))&&(u=bl(u,"onBeforeInput"),0<u.length&&(d=new bh("onBeforeInput","beforeinput",null,a,d),f.push({event:d,listeners:u}),d.data=P))}fx(f,t)})}function Ns(e,t,a){return{instance:e,listener:t,currentTarget:a}}function bl(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=bs(e,a),n!=null&&r.unshift(Ns(e,n,o)),n=bs(e,t),n!=null&&r.push(Ns(e,n,o))),e=e.return}return r}function wo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zh(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=bs(a,n),l!=null&&s.unshift(Ns(a,l,i))):o||(l=bs(a,n),l!=null&&s.push(Ns(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var zI=/\r\n?/g,qI=/\u0000|\uFFFD/g;function qh(e){return(typeof e=="string"?e:""+e).replace(zI,`
6
- `).replace(qI,"")}function nl(e,t,a){if(t=qh(t),qh(e)!==t&&a)throw Error(b(425))}function Al(){}var tf=null,af=null;function rf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var of=typeof setTimeout=="function"?setTimeout:void 0,HI=typeof clearTimeout=="function"?clearTimeout:void 0,Hh=typeof Promise=="function"?Promise:void 0,WI=typeof queueMicrotask=="function"?queueMicrotask:typeof Hh<"u"?function(e){return Hh.resolve(null).then(e).catch(GI)}:of;function GI(e){setTimeout(function(){throw e})}function wc(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),Ms(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);Ms(t)}function sr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Wh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var Yo=Math.random().toString(36).slice(2),la="__reactFiber$"+Yo,Bs="__reactProps$"+Yo,Pa="__reactContainer$"+Yo,nf="__reactEvents$"+Yo,jI="__reactListeners$"+Yo,KI="__reactHandles$"+Yo;function qr(e){var t=e[la];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Pa]||a[la]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wh(e);e!==null;){if(a=e[la])return a;e=Wh(e)}return t}e=a,a=e.parentNode}return null}function Gs(e){return e=e[la]||e[Pa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ro(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function Xl(e){return e[Bs]||null}var sf=[],Mo=-1;function mr(e){return{current:e}}function pe(e){0>Mo||(e.current=sf[Mo],sf[Mo]=null,Mo--)}function le(e,t){Mo++,sf[Mo]=e.current,e.current=t}var fr={},Ze=mr(fr),pt=mr(!1),Kr=fr;function Wo(e,t){var a=e.type.contextTypes;if(!a)return fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return e=e.childContextTypes,e!=null}function Rl(){pe(pt),pe(Ze)}function Gh(e,t,a){if(Ze.current!==fr)throw Error(b(168));le(Ze,t),le(pt,a)}function mx(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,ES(e)||"Unknown",o));return Se({},a,r)}function Ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fr,Kr=Ze.current,le(Ze,e),le(pt,pt.current),!0}function jh(e,t,a){var r=e.stateNode;if(!r)throw Error(b(169));a?(e=mx(e,t,Kr),r.__reactInternalMemoizedMergedChildContext=e,pe(pt),pe(Ze),le(Ze,e)):pe(pt),le(pt,a)}var Ca=null,Ql=!1,kc=!1;function hx(e){Ca===null?Ca=[e]:Ca.push(e)}function $I(e){Ql=!0,hx(e)}function hr(){if(!kc&&Ca!==null){kc=!0;var e=0,t=ne;try{var a=Ca;for(ne=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Ca=null,Ql=!1}catch(o){throw Ca!==null&&(Ca=Ca.slice(e+1)),_g(Ff,hr),o}finally{ne=t,kc=!1}}return null}var Do=[],Eo=0,Dl=null,El=0,Nt=[],Bt=0,$r=null,Sa=1,Ia="";function _r(e,t){Do[Eo++]=El,Do[Eo++]=Dl,Dl=e,El=t}function gx(e,t,a){Nt[Bt++]=Sa,Nt[Bt++]=Ia,Nt[Bt++]=$r,$r=e;var r=Sa;e=Ia;var o=32-$t(r)-1;r&=~(1<<o),a+=1;var n=32-$t(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Sa=1<<32-$t(t)+o|a<<o|r,Ia=n+e}else Sa=1<<n|a<<o|r,Ia=e}function Hf(e){e.return!==null&&(_r(e,1),gx(e,1,0))}function Wf(e){for(;e===Dl;)Dl=Do[--Eo],Do[Eo]=null,El=Do[--Eo],Do[Eo]=null;for(;e===$r;)$r=Nt[--Bt],Nt[Bt]=null,Ia=Nt[--Bt],Nt[Bt]=null,Sa=Nt[--Bt],Nt[Bt]=null}var kt=null,wt=null,ve=!1,Kt=null;function xx(e,t){var a=Ot(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function Kh(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,kt=e,wt=sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,kt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=$r!==null?{id:Sa,overflow:Ia}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Ot(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,kt=e,wt=null,!0):!1;default:return!1}}function lf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uf(e){if(ve){var t=wt;if(t){var a=t;if(!Kh(e,t)){if(lf(e))throw Error(b(418));t=sr(a.nextSibling);var r=kt;t&&Kh(e,t)?xx(r,a):(e.flags=e.flags&-4097|2,ve=!1,kt=e)}}else{if(lf(e))throw Error(b(418));e.flags=e.flags&-4097|2,ve=!1,kt=e}}}function $h(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;kt=e}function sl(e){if(e!==kt)return!1;if(!ve)return $h(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rf(e.type,e.memoizedProps)),t&&(t=wt)){if(lf(e))throw yx(),Error(b(418));for(;t;)xx(e,t),t=sr(t.nextSibling)}if($h(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){wt=sr(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=kt?sr(e.stateNode.nextSibling):null;return!0}function yx(){for(var e=wt;e;)e=sr(e.nextSibling)}function Go(){wt=kt=null,ve=!1}function Gf(e){Kt===null?Kt=[e]:Kt.push(e)}var XI=Aa.ReactCurrentBatchConfig;function us(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(b(309));var r=a.stateNode}if(!r)throw Error(b(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(b(284));if(!a._owner)throw Error(b(290,e))}return e}function il(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xh(e){var t=e._init;return t(e._payload)}function vx(e){function t(h,m){if(e){var x=h.deletions;x===null?(h.deletions=[m],h.flags|=16):x.push(m)}}function a(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function o(h,m){return h=dr(h,m),h.index=0,h.sibling=null,h}function n(h,m,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<m?(h.flags|=2,m):x):(h.flags|=2,m)):(h.flags|=1048576,m)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,m,x,S){return m===null||m.tag!==6?(m=Dc(x,h.mode,S),m.return=h,m):(m=o(m,x),m.return=h,m)}function l(h,m,x,S){var C=x.type;return C===Po?d(h,m,x.props.children,S,x.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ya&&Xh(C)===m.type)?(S=o(m,x.props),S.ref=us(h,m,x),S.return=h,S):(S=Ll(x.type,x.key,x.props,null,h.mode,S),S.ref=us(h,m,x),S.return=h,S)}function u(h,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Ec(x,h.mode,S),m.return=h,m):(m=o(m,x.children||[]),m.return=h,m)}function d(h,m,x,S,C){return m===null||m.tag!==7?(m=jr(x,h.mode,S,C),m.return=h,m):(m=o(m,x),m.return=h,m)}function f(h,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Dc(""+m,h.mode,x),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ji:return x=Ll(m.type,m.key,m.props,null,h.mode,x),x.ref=us(h,null,m),x.return=h,x;case ko:return m=Ec(m,h.mode,x),m.return=h,m;case Ya:var S=m._init;return f(h,S(m._payload),x)}if(ms(m)||ns(m))return m=jr(m,h.mode,x,null),m.return=h,m;il(h,m)}return null}function p(h,m,x,S){var C=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:i(h,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ji:return x.key===C?l(h,m,x,S):null;case ko:return x.key===C?u(h,m,x,S):null;case Ya:return C=x._init,p(h,m,C(x._payload),S)}if(ms(x)||ns(x))return C!==null?null:d(h,m,x,S,null);il(h,x)}return null}function g(h,m,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(x)||null,i(m,h,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ji:return h=h.get(S.key===null?x:S.key)||null,l(m,h,S,C);case ko:return h=h.get(S.key===null?x:S.key)||null,u(m,h,S,C);case Ya:var T=S._init;return g(h,m,x,T(S._payload),C)}if(ms(S)||ns(S))return h=h.get(x)||null,d(m,h,S,C,null);il(m,S)}return null}function y(h,m,x,S){for(var C=null,T=null,P=m,k=m=0,E=null;P!==null&&k<x.length;k++){P.index>k?(E=P,P=null):E=P.sibling;var R=p(h,P,x[k],S);if(R===null){P===null&&(P=E);break}e&&P&&R.alternate===null&&t(h,P),m=n(R,m,k),T===null?C=R:T.sibling=R,T=R,P=E}if(k===x.length)return a(h,P),ve&&_r(h,k),C;if(P===null){for(;k<x.length;k++)P=f(h,x[k],S),P!==null&&(m=n(P,m,k),T===null?C=P:T.sibling=P,T=P);return ve&&_r(h,k),C}for(P=r(h,P);k<x.length;k++)E=g(P,h,k,x[k],S),E!==null&&(e&&E.alternate!==null&&P.delete(E.key===null?k:E.key),m=n(E,m,k),T===null?C=E:T.sibling=E,T=E);return e&&P.forEach(function(ae){return t(h,ae)}),ve&&_r(h,k),C}function v(h,m,x,S){var C=ns(x);if(typeof C!="function")throw Error(b(150));if(x=C.call(x),x==null)throw Error(b(151));for(var T=C=null,P=m,k=m=0,E=null,R=x.next();P!==null&&!R.done;k++,R=x.next()){P.index>k?(E=P,P=null):E=P.sibling;var ae=p(h,P,R.value,S);if(ae===null){P===null&&(P=E);break}e&&P&&ae.alternate===null&&t(h,P),m=n(ae,m,k),T===null?C=ae:T.sibling=ae,T=ae,P=E}if(R.done)return a(h,P),ve&&_r(h,k),C;if(P===null){for(;!R.done;k++,R=x.next())R=f(h,R.value,S),R!==null&&(m=n(R,m,k),T===null?C=R:T.sibling=R,T=R);return ve&&_r(h,k),C}for(P=r(h,P);!R.done;k++,R=x.next())R=g(P,h,k,R.value,S),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?k:R.key),m=n(R,m,k),T===null?C=R:T.sibling=R,T=R);return e&&P.forEach(function(re){return t(h,re)}),ve&&_r(h,k),C}function I(h,m,x,S){if(typeof x=="object"&&x!==null&&x.type===Po&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ji:e:{for(var C=x.key,T=m;T!==null;){if(T.key===C){if(C=x.type,C===Po){if(T.tag===7){a(h,T.sibling),m=o(T,x.props.children),m.return=h,h=m;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ya&&Xh(C)===T.type){a(h,T.sibling),m=o(T,x.props),m.ref=us(h,T,x),m.return=h,h=m;break e}a(h,T);break}else t(h,T);T=T.sibling}x.type===Po?(m=jr(x.props.children,h.mode,S,x.key),m.return=h,h=m):(S=Ll(x.type,x.key,x.props,null,h.mode,S),S.ref=us(h,m,x),S.return=h,h=S)}return s(h);case ko:e:{for(T=x.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){a(h,m.sibling),m=o(m,x.children||[]),m.return=h,h=m;break e}else{a(h,m);break}else t(h,m);m=m.sibling}m=Ec(x,h.mode,S),m.return=h,h=m}return s(h);case Ya:return T=x._init,I(h,m,T(x._payload),S)}if(ms(x))return y(h,m,x,S);if(ns(x))return v(h,m,x,S);il(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(a(h,m.sibling),m=o(m,x),m.return=h,h=m):(a(h,m),m=Dc(x,h.mode,S),m.return=h,h=m),s(h)):a(h,m)}return I}var jo=vx(!0),Lx=vx(!1),Fl=mr(null),Nl=null,Fo=null,jf=null;function Kf(){jf=Fo=Nl=null}function $f(e){var t=Fl.current;pe(Fl),e._currentValue=t}function df(e,t,a){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===a)break;e=e.return}}function zo(e,t){Nl=e,jf=Fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function Ut(e){var t=e._currentValue;if(jf!==e)if(e={context:e,memoizedValue:t,next:null},Fo===null){if(Nl===null)throw Error(b(308));Fo=e,Nl.dependencies={lanes:0,firstContext:e}}else Fo=Fo.next=e;return t}var Hr=null;function Xf(e){Hr===null?Hr=[e]:Hr.push(e)}function Cx(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,Xf(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ta(e,r)}function Ta(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var Za=!1;function Qf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sx(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 wa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(te&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ta(e,a)}return o=r.interleaved,o===null?(t.next=t,Xf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ta(e,a)}function ml(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Nf(e,a)}}function Qh(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Bl(e,t,a,r){var o=e.updateQueue;Za=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(n!==null){var f=o.baseState;s=0,d=u=l=null,i=n;do{var p=i.lane,g=i.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var y=e,v=i;switch(p=t,g=a,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(g,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,p=typeof y=="function"?y.call(g,f,p):y,p==null)break e;f=Se({},f,p);break e;case 2:Za=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[i]:p.push(i))}else g={eventTime:g,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,s|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;p=i,i=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);Qr|=s,e.lanes=s,e.memoizedState=f}}function Yh(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(b(191,o));o.call(r)}}}var js={},da=mr(js),Os=mr(js),Vs=mr(js);function Wr(e){if(e===js)throw Error(b(174));return e}function Yf(e,t){switch(le(Vs,t),le(Os,e),le(da,js),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hc(t,e)}pe(da),le(da,t)}function Ko(){pe(da),pe(Os),pe(Vs)}function Ix(e){Wr(Vs.current);var t=Wr(da.current),a=Hc(t,e.type);t!==a&&(le(Os,e),le(da,a))}function Zf(e){Os.current===e&&(pe(da),pe(Os))}var Le=mr(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pc=[];function Jf(){for(var e=0;e<Pc.length;e++)Pc[e]._workInProgressVersionPrimary=null;Pc.length=0}var hl=Aa.ReactCurrentDispatcher,Tc=Aa.ReactCurrentBatchConfig,Xr=0,Ce=null,Ee=null,Oe=null,Vl=!1,Ss=!1,Us=0,QI=0;function Xe(){throw Error(b(321))}function ep(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Qt(e[a],t[a]))return!1;return!0}function tp(e,t,a,r,o,n){if(Xr=n,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hl.current=e===null||e.memoizedState===null?ew:tw,e=a(r,o),Ss){n=0;do{if(Ss=!1,Us=0,25<=n)throw Error(b(301));n+=1,Oe=Ee=null,t.updateQueue=null,hl.current=aw,e=a(r,o)}while(Ss)}if(hl.current=Ul,t=Ee!==null&&Ee.next!==null,Xr=0,Oe=Ee=Ce=null,Vl=!1,t)throw Error(b(300));return e}function ap(){var e=Us!==0;return Us=0,e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?Ce.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function _t(){if(Ee===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Oe===null?Ce.memoizedState:Oe.next;if(t!==null)Oe=t,Ee=e;else{if(e===null)throw Error(b(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Oe===null?Ce.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function _s(e,t){return typeof t=="function"?t(e):t}function bc(e){var t=_t(),a=t.queue;if(a===null)throw Error(b(311));a.lastRenderedReducer=e;var r=Ee,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var d=u.lane;if((Xr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=f,s=r):l=l.next=f,Ce.lanes|=d,Qr|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,Qt(r,t.memoizedState)||(ft=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,Ce.lanes|=n,Qr|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Ac(e){var t=_t(),a=t.queue;if(a===null)throw Error(b(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);Qt(n,t.memoizedState)||(ft=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function wx(){}function kx(e,t){var a=Ce,r=_t(),o=t(),n=!Qt(r.memoizedState,o);if(n&&(r.memoizedState=o,ft=!0),r=r.queue,rp(bx.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||Oe!==null&&Oe.memoizedState.tag&1){if(a.flags|=2048,zs(9,Tx.bind(null,a,r,o,t),void 0,null),Ve===null)throw Error(b(349));(Xr&30)!==0||Px(a,t,o)}return o}function Px(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Tx(e,t,a,r){t.value=a,t.getSnapshot=r,Ax(t)&&Rx(e)}function bx(e,t,a){return a(function(){Ax(t)&&Rx(e)})}function Ax(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Qt(e,a)}catch{return!0}}function Rx(e){var t=Ta(e,1);t!==null&&Xt(t,e,1,-1)}function Zh(e){var t=ia();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_s,lastRenderedState:e},t.queue=e,e=e.dispatch=JI.bind(null,Ce,e),[t.memoizedState,e]}function zs(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function Mx(){return _t().memoizedState}function gl(e,t,a,r){var o=ia();Ce.flags|=e,o.memoizedState=zs(1|t,a,void 0,r===void 0?null:r)}function Yl(e,t,a,r){var o=_t();r=r===void 0?null:r;var n=void 0;if(Ee!==null){var s=Ee.memoizedState;if(n=s.destroy,r!==null&&ep(r,s.deps)){o.memoizedState=zs(t,a,n,r);return}}Ce.flags|=e,o.memoizedState=zs(1|t,a,n,r)}function Jh(e,t){return gl(8390656,8,e,t)}function rp(e,t){return Yl(2048,8,e,t)}function Dx(e,t){return Yl(4,2,e,t)}function Ex(e,t){return Yl(4,4,e,t)}function Fx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nx(e,t,a){return a=a!=null?a.concat([e]):null,Yl(4,4,Fx.bind(null,t,e),a)}function op(){}function Bx(e,t){var a=_t();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&ep(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Ox(e,t){var a=_t();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&ep(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Vx(e,t,a){return(Xr&21)===0?(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=a):(Qt(a,t)||(a=Hg(),Ce.lanes|=a,Qr|=a,e.baseState=!0),t)}function YI(e,t){var a=ne;ne=a!==0&&4>a?a:4,e(!0);var r=Tc.transition;Tc.transition={};try{e(!1),t()}finally{ne=a,Tc.transition=r}}function Ux(){return _t().memoizedState}function ZI(e,t,a){var r=ur(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},_x(e))zx(t,a);else if(a=Cx(e,t,a,r),a!==null){var o=at();Xt(a,e,r,o),qx(a,t,r)}}function JI(e,t,a){var r=ur(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(_x(e))zx(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,Qt(i,s)){var l=t.interleaved;l===null?(o.next=o,Xf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Cx(e,t,o,r),a!==null&&(o=at(),Xt(a,e,r,o),qx(a,t,r))}}function _x(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function zx(e,t){Ss=Vl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qx(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Nf(e,a)}}var Ul={readContext:Ut,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},ew={readContext:Ut,useCallback:function(e,t){return ia().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:Jh,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,gl(4194308,4,Fx.bind(null,t,e),a)},useLayoutEffect:function(e,t){return gl(4194308,4,e,t)},useInsertionEffect:function(e,t){return gl(4,2,e,t)},useMemo:function(e,t){var a=ia();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=ia();return t=a!==void 0?a(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=ZI.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=ia();return e={current:e},t.memoizedState=e},useState:Zh,useDebugValue:op,useDeferredValue:function(e){return ia().memoizedState=e},useTransition:function(){var e=Zh(!1),t=e[0];return e=YI.bind(null,e[1]),ia().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=Ce,o=ia();if(ve){if(a===void 0)throw Error(b(407));a=a()}else{if(a=t(),Ve===null)throw Error(b(349));(Xr&30)!==0||Px(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,Jh(bx.bind(null,r,n,e),[e]),r.flags|=2048,zs(9,Tx.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=ia(),t=Ve.identifierPrefix;if(ve){var a=Ia,r=Sa;a=(r&~(1<<32-$t(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Us++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=QI++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tw={readContext:Ut,useCallback:Bx,useContext:Ut,useEffect:rp,useImperativeHandle:Nx,useInsertionEffect:Dx,useLayoutEffect:Ex,useMemo:Ox,useReducer:bc,useRef:Mx,useState:function(){return bc(_s)},useDebugValue:op,useDeferredValue:function(e){var t=_t();return Vx(t,Ee.memoizedState,e)},useTransition:function(){var e=bc(_s)[0],t=_t().memoizedState;return[e,t]},useMutableSource:wx,useSyncExternalStore:kx,useId:Ux,unstable_isNewReconciler:!1},aw={readContext:Ut,useCallback:Bx,useContext:Ut,useEffect:rp,useImperativeHandle:Nx,useInsertionEffect:Dx,useLayoutEffect:Ex,useMemo:Ox,useReducer:Ac,useRef:Mx,useState:function(){return Ac(_s)},useDebugValue:op,useDeferredValue:function(e){var t=_t();return Ee===null?t.memoizedState=e:Vx(t,Ee.memoizedState,e)},useTransition:function(){var e=Ac(_s)[0],t=_t().memoizedState;return[e,t]},useMutableSource:wx,useSyncExternalStore:kx,useId:Ux,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function cf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Se({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Zl={isMounted:function(e){return(e=e._reactInternals)?Jr(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=at(),o=ur(e),n=wa(r,o);n.payload=t,a!=null&&(n.callback=a),t=ir(e,n,o),t!==null&&(Xt(t,e,o,r),ml(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=at(),o=ur(e),n=wa(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=ir(e,n,o),t!==null&&(Xt(t,e,o,r),ml(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=at(),r=ur(e),o=wa(a,r);o.tag=2,t!=null&&(o.callback=t),t=ir(e,o,r),t!==null&&(Xt(t,e,r,a),ml(t,e,r))}};function eg(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!Es(a,r)||!Es(o,n):!0}function Hx(e,t,a){var r=!1,o=fr,n=t.contextType;return typeof n=="object"&&n!==null?n=Ut(n):(o=mt(t)?Kr:Ze.current,r=t.contextTypes,n=(r=r!=null)?Wo(e,o):fr),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function tg(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Zl.enqueueReplaceState(t,t.state,null)}function ff(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},Qf(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Ut(n):(n=mt(t)?Kr:Ze.current,o.context=Wo(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(cf(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Zl.enqueueReplaceState(o,o.state,null),Bl(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function $o(e,t){try{var a="",r=t;do a+=DS(r),r=r.return;while(r);var o=a}catch(n){o=`
5
+ `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{yc=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Is(e):""}function BS(e){switch(e.tag){case 5:return Is(e.type);case 16:return Is("Lazy");case 13:return Is("Suspense");case 19:return Is("SuspenseList");case 0:case 2:case 15:return e=vc(e.type,!1),e;case 11:return e=vc(e.type.render,!1),e;case 1:return e=vc(e.type,!0),e;default:return""}}function qc(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 No:return"Fragment";case Mo:return"Portal";case _c:return"Profiler";case Ff:return"StrictMode";case zc:return"Suspense";case Hc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wg:return(e.displayName||"Context")+".Consumer";case Ig:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Of:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case tr:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}function OS(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 qc(t);case 8:return t===Ff?"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 hr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VS(e){var t=bg(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){e._valueTracker||(e._valueTracker=VS(e))}function Pg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=bg(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function kl(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 Wc(e,t){var a=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function vh(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=hr(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Tg(e,t){t=t.checked,t!=null&&Ef(e,"checked",t,!1)}function Gc(e,t){Tg(e,t);var a=hr(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jc(e,t.type,a):t.hasOwnProperty("defaultValue")&&jc(e,t.type,hr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lh(e,t,a){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,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function jc(e,t,a){(t!=="number"||kl(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var ws=Array.isArray;function Wo(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+hr(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Kc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ch(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(R(92));if(ws(a)){if(1<a.length)throw Error(R(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:hr(a)}}function Ag(e,t){var a=hr(t.value),r=hr(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function Sh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Rg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function $c(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Rg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,Dg=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Os(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ps={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},US=["Webkit","ms","Moz","O"];Object.keys(Ps).forEach(function(e){US.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ps[t]=Ps[e]})});function Mg(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Ps.hasOwnProperty(e)&&Ps[e]?(""+t).trim():t+"px"}function Ng(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Mg(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var _S=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xc(e,t){if(t){if(_S[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Qc(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 Yc=null;function Vf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zc=null,Go=null,jo=null;function Ih(e){if(e=ti(e)){if(typeof Zc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Jl(t),Zc(e.stateNode,e.type,t))}}function Eg(e){Go?jo?jo.push(e):jo=[e]:Go=e}function Fg(){if(Go){var e=Go,t=jo;if(jo=Go=null,Ih(e),t)for(e=0;e<t.length;e++)Ih(t[e])}}function Bg(e,t){return e(t)}function Og(){}var Lc=!1;function Vg(e,t,a){if(Lc)return e(t,a);Lc=!0;try{return Bg(e,t,a)}finally{Lc=!1,(Go!==null||jo!==null)&&(Og(),Fg())}}function Vs(e,t){var a=e.stateNode;if(a===null)return null;var r=Jl(a);if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(R(231,t,typeof a));return a}var Jc=!1;if(Ma)try{Ro={},Object.defineProperty(Ro,"passive",{get:function(){Jc=!0}}),window.addEventListener("test",Ro,Ro),window.removeEventListener("test",Ro,Ro)}catch{Jc=!1}var Ro;function zS(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(d){this.onError(d)}}var Ts=!1,bl=null,Pl=!1,ef=null,HS={onError:function(e){Ts=!0,bl=e}};function qS(e,t,a,r,o,n,s,i,l){Ts=!1,bl=null,zS.apply(HS,arguments)}function WS(e,t,a,r,o,n,s,i,l){if(qS.apply(this,arguments),Ts){if(Ts){var u=bl;Ts=!1,bl=null}else throw Error(R(198));Pl||(Pl=!0,ef=u)}}function oo(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Ug(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wh(e){if(oo(e)!==e)throw Error(R(188))}function GS(e){var t=e.alternate;if(!t){if(t=oo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return wh(o),e;if(n===r)return wh(o),t;n=n.sibling}throw Error(R(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(R(189))}}if(a.alternate!==r)throw Error(R(190))}if(a.tag!==3)throw Error(R(188));return a.stateNode.current===a?e:t}function _g(e){return e=GS(e),e!==null?zg(e):null}function zg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zg(e);if(t!==null)return t;e=e.sibling}return null}var Hg=Rt.unstable_scheduleCallback,kh=Rt.unstable_cancelCallback,jS=Rt.unstable_shouldYield,KS=Rt.unstable_requestPaint,Re=Rt.unstable_now,$S=Rt.unstable_getCurrentPriorityLevel,Uf=Rt.unstable_ImmediatePriority,qg=Rt.unstable_UserBlockingPriority,Tl=Rt.unstable_NormalPriority,XS=Rt.unstable_LowPriority,Wg=Rt.unstable_IdlePriority,Xl=null,fa=null;function QS(e){if(fa&&typeof fa.onCommitFiberRoot=="function")try{fa.onCommitFiberRoot(Xl,e,void 0,(e.current.flags&128)===128)}catch{}}var ea=Math.clz32?Math.clz32:JS,YS=Math.log,ZS=Math.LN2;function JS(e){return e>>>=0,e===0?32:31-(YS(e)/ZS|0)|0}var Ji=64,el=4194304;function ks(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 Al(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=ks(i):(n&=s,n!==0&&(r=ks(n)))}else s=a&~o,s!==0?r=ks(s):n!==0&&(r=ks(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-ea(t),o=1<<a,r|=e[a],t&=~o;return r}function eI(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tI(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-ea(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=eI(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function tf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gg(){var e=Ji;return Ji<<=1,(Ji&4194240)===0&&(Ji=64),e}function Cc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Js(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ea(t),e[t]=a}function aI(e,t){var a=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<a;){var o=31-ea(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function _f(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-ea(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var fe=0;function jg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Kg,zf,$g,Xg,Qg,af=!1,tl=[],ir=null,lr=null,ur=null,Us=new Map,_s=new Map,rr=[],rI="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function bh(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":Us.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function gs(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=ti(t),t!==null&&zf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function oI(e,t,a,r,o){switch(t){case"focusin":return ir=gs(ir,e,t,a,r,o),!0;case"dragenter":return lr=gs(lr,e,t,a,r,o),!0;case"mouseover":return ur=gs(ur,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return Us.set(n,gs(Us.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,_s.set(n,gs(_s.get(n)||null,e,t,a,r,o)),!0}return!1}function Yg(e){var t=Kr(e.target);if(t!==null){var a=oo(t);if(a!==null){if(t=a.tag,t===13){if(t=Ug(a),t!==null){e.blockedOn=t,Qg(e.priority,function(){$g(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=rf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Yc=r,a.target.dispatchEvent(r),Yc=null}else return t=ti(a),t!==null&&zf(t),e.blockedOn=a,!1;t.shift()}return!0}function Ph(e,t,a){hl(e)&&a.delete(t)}function nI(){af=!1,ir!==null&&hl(ir)&&(ir=null),lr!==null&&hl(lr)&&(lr=null),ur!==null&&hl(ur)&&(ur=null),Us.forEach(Ph),_s.forEach(Ph)}function xs(e,t){e.blockedOn===t&&(e.blockedOn=null,af||(af=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,nI)))}function zs(e){function t(o){return xs(o,e)}if(0<tl.length){xs(tl[0],e);for(var a=1;a<tl.length;a++){var r=tl[a];r.blockedOn===e&&(r.blockedOn=null)}}for(ir!==null&&xs(ir,e),lr!==null&&xs(lr,e),ur!==null&&xs(ur,e),Us.forEach(t),_s.forEach(t),a=0;a<rr.length;a++)r=rr[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<rr.length&&(a=rr[0],a.blockedOn===null);)Yg(a),a.blockedOn===null&&rr.shift()}var Ko=Ba.ReactCurrentBatchConfig,Rl=!0;function sI(e,t,a,r){var o=fe,n=Ko.transition;Ko.transition=null;try{fe=1,Hf(e,t,a,r)}finally{fe=o,Ko.transition=n}}function iI(e,t,a,r){var o=fe,n=Ko.transition;Ko.transition=null;try{fe=4,Hf(e,t,a,r)}finally{fe=o,Ko.transition=n}}function Hf(e,t,a,r){if(Rl){var o=rf(e,t,a,r);if(o===null)Tc(e,t,r,Dl,a),bh(e,r);else if(oI(o,e,t,a,r))r.stopPropagation();else if(bh(e,r),t&4&&-1<rI.indexOf(e)){for(;o!==null;){var n=ti(o);if(n!==null&&Kg(n),n=rf(e,t,a,r),n===null&&Tc(e,t,r,Dl,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Tc(e,t,r,null,a)}}var Dl=null;function rf(e,t,a,r){if(Dl=null,e=Vf(r),e=Kr(e),e!==null)if(t=oo(e),t===null)e=null;else if(a=t.tag,a===13){if(e=Ug(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Dl=e,null}function Zg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($S()){case Uf:return 1;case qg:return 4;case Tl:case XS:return 16;case Wg:return 536870912;default:return 16}default:return 16}}var nr=null,qf=null,gl=null;function Jg(){if(gl)return gl;var e,t=qf,a=t.length,r,o="value"in nr?nr.value:nr.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return gl=o.slice(e,1<r?1-r:void 0)}function xl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function al(){return!0}function Th(){return!1}function Dt(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?al:Th,this.isPropagationStopped=Th,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=al)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),t}var rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wf=Dt(rn),ei=Pe({},rn,{view:0,detail:0}),lI=Dt(ei),Sc,Ic,ys,Ql=Pe({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ys&&(ys&&e.type==="mousemove"?(Sc=e.screenX-ys.screenX,Ic=e.screenY-ys.screenY):Ic=Sc=0,ys=e),Sc)},movementY:function(e){return"movementY"in e?e.movementY:Ic}}),Ah=Dt(Ql),uI=Pe({},Ql,{dataTransfer:0}),dI=Dt(uI),cI=Pe({},ei,{relatedTarget:0}),wc=Dt(cI),fI=Pe({},rn,{animationName:0,elapsedTime:0,pseudoElement:0}),pI=Dt(fI),mI=Pe({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hI=Dt(mI),gI=Pe({},rn,{data:0}),Rh=Dt(gI),xI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vI[e])?!!t[e]:!1}function Gf(){return LI}var CI=Pe({},ei,{key:function(e){if(e.key){var t=xI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gf,charCode:function(e){return e.type==="keypress"?xl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SI=Dt(CI),II=Pe({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dh=Dt(II),wI=Pe({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gf}),kI=Dt(wI),bI=Pe({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),PI=Dt(bI),TI=Pe({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),AI=Dt(TI),RI=[9,13,27,32],jf=Ma&&"CompositionEvent"in window,As=null;Ma&&"documentMode"in document&&(As=document.documentMode);var DI=Ma&&"TextEvent"in window&&!As,ex=Ma&&(!jf||As&&8<As&&11>=As),Mh=" ",Nh=!1;function tx(e,t){switch(e){case"keyup":return RI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ax(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function MI(e,t){switch(e){case"compositionend":return ax(t);case"keypress":return t.which!==32?null:(Nh=!0,Mh);case"textInput":return e=t.data,e===Mh&&Nh?null:e;default:return null}}function NI(e,t){if(Eo)return e==="compositionend"||!jf&&tx(e,t)?(e=Jg(),gl=qf=nr=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ex&&t.locale!=="ko"?null:t.data;default:return null}}var EI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!EI[e.type]:t==="textarea"}function rx(e,t,a,r){Eg(r),t=Ml(t,"onChange"),0<t.length&&(a=new Wf("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Rs=null,Hs=null;function FI(e){mx(e,0)}function Yl(e){var t=Oo(e);if(Pg(t))return e}function BI(e,t){if(e==="change")return t}var ox=!1;Ma&&(Ma?(ol="oninput"in document,ol||(kc=document.createElement("div"),kc.setAttribute("oninput","return;"),ol=typeof kc.oninput=="function"),rl=ol):rl=!1,ox=rl&&(!document.documentMode||9<document.documentMode));var rl,ol,kc;function Fh(){Rs&&(Rs.detachEvent("onpropertychange",nx),Hs=Rs=null)}function nx(e){if(e.propertyName==="value"&&Yl(Hs)){var t=[];rx(t,Hs,e,Vf(e)),Vg(FI,t)}}function OI(e,t,a){e==="focusin"?(Fh(),Rs=t,Hs=a,Rs.attachEvent("onpropertychange",nx)):e==="focusout"&&Fh()}function VI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(Hs)}function UI(e,t){if(e==="click")return Yl(t)}function _I(e,t){if(e==="input"||e==="change")return Yl(t)}function zI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aa=typeof Object.is=="function"?Object.is:zI;function qs(e,t){if(aa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Uc.call(t,o)||!aa(e[o],t[o]))return!1}return!0}function Bh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oh(e,t){var a=Bh(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Bh(a)}}function sx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ix(){for(var e=window,t=kl();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=kl(e.document)}return t}function Kf(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 HI(e){var t=ix(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&sx(a.ownerDocument.documentElement,a)){if(r!==null&&Kf(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=Oh(a,n);var s=Oh(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qI=Ma&&"documentMode"in document&&11>=document.documentMode,Fo=null,of=null,Ds=null,nf=!1;function Vh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nf||Fo==null||Fo!==kl(r)||(r=Fo,"selectionStart"in r&&Kf(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}),Ds&&qs(Ds,r)||(Ds=r,r=Ml(of,"onSelect"),0<r.length&&(t=new Wf("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Fo)))}function nl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Bo={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionend:nl("Transition","TransitionEnd")},bc={},lx={};Ma&&(lx=document.createElement("div").style,"AnimationEvent"in window||(delete Bo.animationend.animation,delete Bo.animationiteration.animation,delete Bo.animationstart.animation),"TransitionEvent"in window||delete Bo.transitionend.transition);function Zl(e){if(bc[e])return bc[e];if(!Bo[e])return e;var t=Bo[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in lx)return bc[e]=t[a];return e}var ux=Zl("animationend"),dx=Zl("animationiteration"),cx=Zl("animationstart"),fx=Zl("transitionend"),px=new Map,Uh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xr(e,t){px.set(e,t),ro(t,[e])}for(sl=0;sl<Uh.length;sl++)il=Uh[sl],_h=il.toLowerCase(),zh=il[0].toUpperCase()+il.slice(1),xr(_h,"on"+zh);var il,_h,zh,sl;xr(ux,"onAnimationEnd");xr(dx,"onAnimationIteration");xr(cx,"onAnimationStart");xr("dblclick","onDoubleClick");xr("focusin","onFocus");xr("focusout","onBlur");xr(fx,"onTransitionEnd");Qo("onMouseEnter",["mouseout","mouseover"]);Qo("onMouseLeave",["mouseout","mouseover"]);Qo("onPointerEnter",["pointerout","pointerover"]);Qo("onPointerLeave",["pointerout","pointerover"]);ro("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ro("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ro("onBeforeInput",["compositionend","keypress","textInput","paste"]);ro("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ro("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ro("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),WI=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function Hh(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,WS(r,t,void 0,e),e.currentTarget=null}function mx(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;Hh(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;Hh(o,i,u),n=l}}}if(Pl)throw e=ef,Pl=!1,ef=null,e}function ye(e,t){var a=t[cf];a===void 0&&(a=t[cf]=new Set);var r=e+"__bubble";a.has(r)||(hx(t,e,2,!1),a.add(r))}function Pc(e,t,a){var r=0;t&&(r|=4),hx(a,e,r,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function Ws(e){if(!e[ll]){e[ll]=!0,Sg.forEach(function(a){a!=="selectionchange"&&(WI.has(a)||Pc(a,!1,e),Pc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,Pc("selectionchange",!1,t))}}function hx(e,t,a,r){switch(Zg(t)){case 1:var o=sI;break;case 4:o=iI;break;default:o=Hf}a=o.bind(null,t,a,e),o=void 0,!Jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Tc(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Kr(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}Vg(function(){var u=n,d=Vf(a),c=[];e:{var f=px.get(e);if(f!==void 0){var g=Wf,L=e;switch(e){case"keypress":if(xl(a)===0)break e;case"keydown":case"keyup":g=SI;break;case"focusin":L="focus",g=wc;break;case"focusout":L="blur",g=wc;break;case"beforeblur":case"afterblur":g=wc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=dI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=kI;break;case ux:case dx:case cx:g=pI;break;case fx:g=PI;break;case"scroll":g=lI;break;case"wheel":g=AI;break;case"copy":case"cut":case"paste":g=hI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Dh}var v=(t&4)!==0,I=!v&&e==="scroll",h=v?f!==null?f+"Capture":null:f;v=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,h!==null&&(S=Vs(m,h),S!=null&&v.push(Gs(m,S,x)))),I)break;m=m.return}0<v.length&&(f=new g(f,L,null,a,d),c.push({event:f,listeners:v}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&a!==Yc&&(L=a.relatedTarget||a.fromElement)&&(Kr(L)||L[Na]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(L=a.relatedTarget||a.toElement,g=u,L=L?Kr(L):null,L!==null&&(I=oo(L),L!==I||L.tag!==5&&L.tag!==6)&&(L=null)):(g=null,L=u),g!==L)){if(v=Ah,S="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=Dh,S="onPointerLeave",h="onPointerEnter",m="pointer"),I=g==null?f:Oo(g),x=L==null?f:Oo(L),f=new v(S,m+"leave",g,a,d),f.target=I,f.relatedTarget=x,S=null,Kr(d)===u&&(v=new v(h,m+"enter",L,a,d),v.target=x,v.relatedTarget=I,S=v),I=S,g&&L)t:{for(v=g,h=L,m=0,x=v;x;x=Do(x))m++;for(x=0,S=h;S;S=Do(S))x++;for(;0<m-x;)v=Do(v),m--;for(;0<x-m;)h=Do(h),x--;for(;m--;){if(v===h||h!==null&&v===h.alternate)break t;v=Do(v),h=Do(h)}v=null}else v=null;g!==null&&qh(c,f,g,v,!1),L!==null&&I!==null&&qh(c,I,L,v,!0)}}e:{if(f=u?Oo(u):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var w=BI;else if(Eh(f))if(ox)w=_I;else{w=VI;var b=OI}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=UI);if(w&&(w=w(e,u))){rx(c,w,a,d);break e}b&&b(e,f,u),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&jc(f,"number",f.value)}switch(b=u?Oo(u):window,e){case"focusin":(Eh(b)||b.contentEditable==="true")&&(Fo=b,of=u,Ds=null);break;case"focusout":Ds=of=Fo=null;break;case"mousedown":nf=!0;break;case"contextmenu":case"mouseup":case"dragend":nf=!1,Vh(c,a,d);break;case"selectionchange":if(qI)break;case"keydown":case"keyup":Vh(c,a,d)}var D;if(jf)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Eo?tx(e,a)&&(P="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(P="onCompositionStart");P&&(ex&&a.locale!=="ko"&&(Eo||P!=="onCompositionStart"?P==="onCompositionEnd"&&Eo&&(D=Jg()):(nr=d,qf="value"in nr?nr.value:nr.textContent,Eo=!0)),b=Ml(u,P),0<b.length&&(P=new Rh(P,e,null,a,d),c.push({event:P,listeners:b}),D?P.data=D:(D=ax(a),D!==null&&(P.data=D)))),(D=DI?MI(e,a):NI(e,a))&&(u=Ml(u,"onBeforeInput"),0<u.length&&(d=new Rh("onBeforeInput","beforeinput",null,a,d),c.push({event:d,listeners:u}),d.data=D))}mx(c,t)})}function Gs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ml(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=Vs(e,a),n!=null&&r.unshift(Gs(e,n,o)),n=Vs(e,t),n!=null&&r.push(Gs(e,n,o))),e=e.return}return r}function Do(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qh(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=Vs(a,n),l!=null&&s.unshift(Gs(a,l,i))):o||(l=Vs(a,n),l!=null&&s.push(Gs(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var GI=/\r\n?/g,jI=/\u0000|\uFFFD/g;function Wh(e){return(typeof e=="string"?e:""+e).replace(GI,`
6
+ `).replace(jI,"")}function ul(e,t,a){if(t=Wh(t),Wh(e)!==t&&a)throw Error(R(425))}function Nl(){}var sf=null,lf=null;function uf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var df=typeof setTimeout=="function"?setTimeout:void 0,KI=typeof clearTimeout=="function"?clearTimeout:void 0,Gh=typeof Promise=="function"?Promise:void 0,$I=typeof queueMicrotask=="function"?queueMicrotask:typeof Gh<"u"?function(e){return Gh.resolve(null).then(e).catch(XI)}:df;function XI(e){setTimeout(function(){throw e})}function Ac(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),zs(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);zs(t)}function dr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var on=Math.random().toString(36).slice(2),ca="__reactFiber$"+on,js="__reactProps$"+on,Na="__reactContainer$"+on,cf="__reactEvents$"+on,QI="__reactListeners$"+on,YI="__reactHandles$"+on;function Kr(e){var t=e[ca];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Na]||a[ca]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=jh(e);e!==null;){if(a=e[ca])return a;e=jh(e)}return t}e=a,a=e.parentNode}return null}function ti(e){return e=e[ca]||e[Na],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Oo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Jl(e){return e[js]||null}var ff=[],Vo=-1;function yr(e){return{current:e}}function ve(e){0>Vo||(e.current=ff[Vo],ff[Vo]=null,Vo--)}function ge(e,t){Vo++,ff[Vo]=e.current,e.current=t}var gr={},ot=yr(gr),yt=yr(!1),Zr=gr;function Yo(e,t){var a=e.type.contextTypes;if(!a)return gr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vt(e){return e=e.childContextTypes,e!=null}function El(){ve(yt),ve(ot)}function Kh(e,t,a){if(ot.current!==gr)throw Error(R(168));ge(ot,t),ge(yt,a)}function gx(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,OS(e)||"Unknown",o));return Pe({},a,r)}function Fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gr,Zr=ot.current,ge(ot,e),ge(yt,yt.current),!0}function $h(e,t,a){var r=e.stateNode;if(!r)throw Error(R(169));a?(e=gx(e,t,Zr),r.__reactInternalMemoizedMergedChildContext=e,ve(yt),ve(ot),ge(ot,e)):ve(yt),ge(yt,a)}var Ta=null,eu=!1,Rc=!1;function xx(e){Ta===null?Ta=[e]:Ta.push(e)}function ZI(e){eu=!0,xx(e)}function vr(){if(!Rc&&Ta!==null){Rc=!0;var e=0,t=fe;try{var a=Ta;for(fe=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Ta=null,eu=!1}catch(o){throw Ta!==null&&(Ta=Ta.slice(e+1)),Hg(Uf,vr),o}finally{fe=t,Rc=!1}}return null}var Uo=[],_o=0,Bl=null,Ol=0,Ut=[],_t=0,Jr=null,Aa=1,Ra="";function Gr(e,t){Uo[_o++]=Ol,Uo[_o++]=Bl,Bl=e,Ol=t}function yx(e,t,a){Ut[_t++]=Aa,Ut[_t++]=Ra,Ut[_t++]=Jr,Jr=e;var r=Aa;e=Ra;var o=32-ea(r)-1;r&=~(1<<o),a+=1;var n=32-ea(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Aa=1<<32-ea(t)+o|a<<o|r,Ra=n+e}else Aa=1<<n|a<<o|r,Ra=e}function $f(e){e.return!==null&&(Gr(e,1),yx(e,1,0))}function Xf(e){for(;e===Bl;)Bl=Uo[--_o],Uo[_o]=null,Ol=Uo[--_o],Uo[_o]=null;for(;e===Jr;)Jr=Ut[--_t],Ut[_t]=null,Ra=Ut[--_t],Ut[_t]=null,Aa=Ut[--_t],Ut[_t]=null}var At=null,Tt=null,Ie=!1,Jt=null;function vx(e,t){var a=zt(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function Xh(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,At=e,Tt=dr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,Tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=Jr!==null?{id:Aa,overflow:Ra}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=zt(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,At=e,Tt=null,!0):!1;default:return!1}}function pf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function mf(e){if(Ie){var t=Tt;if(t){var a=t;if(!Xh(e,t)){if(pf(e))throw Error(R(418));t=dr(a.nextSibling);var r=At;t&&Xh(e,t)?vx(r,a):(e.flags=e.flags&-4097|2,Ie=!1,At=e)}}else{if(pf(e))throw Error(R(418));e.flags=e.flags&-4097|2,Ie=!1,At=e}}}function Qh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function dl(e){if(e!==At)return!1;if(!Ie)return Qh(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!uf(e.type,e.memoizedProps)),t&&(t=Tt)){if(pf(e))throw Lx(),Error(R(418));for(;t;)vx(e,t),t=dr(t.nextSibling)}if(Qh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){Tt=dr(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Tt=null}}else Tt=At?dr(e.stateNode.nextSibling):null;return!0}function Lx(){for(var e=Tt;e;)e=dr(e.nextSibling)}function Zo(){Tt=At=null,Ie=!1}function Qf(e){Jt===null?Jt=[e]:Jt.push(e)}var JI=Ba.ReactCurrentBatchConfig;function vs(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(R(309));var r=a.stateNode}if(!r)throw Error(R(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(R(284));if(!a._owner)throw Error(R(290,e))}return e}function cl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yh(e){var t=e._init;return t(e._payload)}function Cx(e){function t(h,m){if(e){var x=h.deletions;x===null?(h.deletions=[m],h.flags|=16):x.push(m)}}function a(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function o(h,m){return h=mr(h,m),h.index=0,h.sibling=null,h}function n(h,m,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<m?(h.flags|=2,m):x):(h.flags|=2,m)):(h.flags|=1048576,m)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,m,x,S){return m===null||m.tag!==6?(m=Oc(x,h.mode,S),m.return=h,m):(m=o(m,x),m.return=h,m)}function l(h,m,x,S){var w=x.type;return w===No?d(h,m,x.props.children,S,x.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===tr&&Yh(w)===m.type)?(S=o(m,x.props),S.ref=vs(h,m,x),S.return=h,S):(S=wl(x.type,x.key,x.props,null,h.mode,S),S.ref=vs(h,m,x),S.return=h,S)}function u(h,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Vc(x,h.mode,S),m.return=h,m):(m=o(m,x.children||[]),m.return=h,m)}function d(h,m,x,S,w){return m===null||m.tag!==7?(m=Yr(x,h.mode,S,w),m.return=h,m):(m=o(m,x),m.return=h,m)}function c(h,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Oc(""+m,h.mode,x),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qi:return x=wl(m.type,m.key,m.props,null,h.mode,x),x.ref=vs(h,null,m),x.return=h,x;case Mo:return m=Vc(m,h.mode,x),m.return=h,m;case tr:var S=m._init;return c(h,S(m._payload),x)}if(ws(m)||hs(m))return m=Yr(m,h.mode,x,null),m.return=h,m;cl(h,m)}return null}function f(h,m,x,S){var w=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:i(h,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Qi:return x.key===w?l(h,m,x,S):null;case Mo:return x.key===w?u(h,m,x,S):null;case tr:return w=x._init,f(h,m,w(x._payload),S)}if(ws(x)||hs(x))return w!==null?null:d(h,m,x,S,null);cl(h,x)}return null}function g(h,m,x,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(x)||null,i(m,h,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Qi:return h=h.get(S.key===null?x:S.key)||null,l(m,h,S,w);case Mo:return h=h.get(S.key===null?x:S.key)||null,u(m,h,S,w);case tr:var b=S._init;return g(h,m,x,b(S._payload),w)}if(ws(S)||hs(S))return h=h.get(x)||null,d(m,h,S,w,null);cl(m,S)}return null}function L(h,m,x,S){for(var w=null,b=null,D=m,P=m=0,V=null;D!==null&&P<x.length;P++){D.index>P?(V=D,D=null):V=D.sibling;var F=f(h,D,x[P],S);if(F===null){D===null&&(D=V);break}e&&D&&F.alternate===null&&t(h,D),m=n(F,m,P),b===null?w=F:b.sibling=F,b=F,D=V}if(P===x.length)return a(h,D),Ie&&Gr(h,P),w;if(D===null){for(;P<x.length;P++)D=c(h,x[P],S),D!==null&&(m=n(D,m,P),b===null?w=D:b.sibling=D,b=D);return Ie&&Gr(h,P),w}for(D=r(h,D);P<x.length;P++)V=g(D,h,P,x[P],S),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?P:V.key),m=n(V,m,P),b===null?w=V:b.sibling=V,b=V);return e&&D.forEach(function(le){return t(h,le)}),Ie&&Gr(h,P),w}function v(h,m,x,S){var w=hs(x);if(typeof w!="function")throw Error(R(150));if(x=w.call(x),x==null)throw Error(R(151));for(var b=w=null,D=m,P=m=0,V=null,F=x.next();D!==null&&!F.done;P++,F=x.next()){D.index>P?(V=D,D=null):V=D.sibling;var le=f(h,D,F.value,S);if(le===null){D===null&&(D=V);break}e&&D&&le.alternate===null&&t(h,D),m=n(le,m,P),b===null?w=le:b.sibling=le,b=le,D=V}if(F.done)return a(h,D),Ie&&Gr(h,P),w;if(D===null){for(;!F.done;P++,F=x.next())F=c(h,F.value,S),F!==null&&(m=n(F,m,P),b===null?w=F:b.sibling=F,b=F);return Ie&&Gr(h,P),w}for(D=r(h,D);!F.done;P++,F=x.next())F=g(D,h,P,F.value,S),F!==null&&(e&&F.alternate!==null&&D.delete(F.key===null?P:F.key),m=n(F,m,P),b===null?w=F:b.sibling=F,b=F);return e&&D.forEach(function(ee){return t(h,ee)}),Ie&&Gr(h,P),w}function I(h,m,x,S){if(typeof x=="object"&&x!==null&&x.type===No&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Qi:e:{for(var w=x.key,b=m;b!==null;){if(b.key===w){if(w=x.type,w===No){if(b.tag===7){a(h,b.sibling),m=o(b,x.props.children),m.return=h,h=m;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===tr&&Yh(w)===b.type){a(h,b.sibling),m=o(b,x.props),m.ref=vs(h,b,x),m.return=h,h=m;break e}a(h,b);break}else t(h,b);b=b.sibling}x.type===No?(m=Yr(x.props.children,h.mode,S,x.key),m.return=h,h=m):(S=wl(x.type,x.key,x.props,null,h.mode,S),S.ref=vs(h,m,x),S.return=h,h=S)}return s(h);case Mo:e:{for(b=x.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){a(h,m.sibling),m=o(m,x.children||[]),m.return=h,h=m;break e}else{a(h,m);break}else t(h,m);m=m.sibling}m=Vc(x,h.mode,S),m.return=h,h=m}return s(h);case tr:return b=x._init,I(h,m,b(x._payload),S)}if(ws(x))return L(h,m,x,S);if(hs(x))return v(h,m,x,S);cl(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(a(h,m.sibling),m=o(m,x),m.return=h,h=m):(a(h,m),m=Oc(x,h.mode,S),m.return=h,h=m),s(h)):a(h,m)}return I}var Jo=Cx(!0),Sx=Cx(!1),Vl=yr(null),Ul=null,zo=null,Yf=null;function Zf(){Yf=zo=Ul=null}function Jf(e){var t=Vl.current;ve(Vl),e._currentValue=t}function hf(e,t,a){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===a)break;e=e.return}}function $o(e,t){Ul=e,Yf=zo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(xt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(Yf!==e)if(e={context:e,memoizedValue:t,next:null},zo===null){if(Ul===null)throw Error(R(308));zo=e,Ul.dependencies={lanes:0,firstContext:e}}else zo=zo.next=e;return t}var $r=null;function ep(e){$r===null?$r=[e]:$r.push(e)}function Ix(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,ep(t)):(a.next=o.next,o.next=a),t.interleaved=a,Ea(e,r)}function Ea(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var ar=!1;function tp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wx(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 Da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cr(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ea(e,a)}return o=r.interleaved,o===null?(t.next=t,ep(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ea(e,a)}function yl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,_f(e,a)}}function Zh(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function _l(e,t,a,r){var o=e.updateQueue;ar=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=u:i.next=u,d.lastBaseUpdate=l))}if(n!==null){var c=o.baseState;s=0,d=u=l=null,i=n;do{var f=i.lane,g=i.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var L=e,v=i;switch(f=t,g=a,v.tag){case 1:if(L=v.payload,typeof L=="function"){c=L.call(g,c,f);break e}c=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=v.payload,f=typeof L=="function"?L.call(g,c,f):L,f==null)break e;c=Pe({},c,f);break e;case 2:ar=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else g={eventTime:g,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=g,l=c):d=d.next=g,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);to|=s,e.lanes=s,e.memoizedState=c}}function Jh(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var ai={},pa=yr(ai),Ks=yr(ai),$s=yr(ai);function Xr(e){if(e===ai)throw Error(R(174));return e}function ap(e,t){switch(ge($s,t),ge(Ks,e),ge(pa,ai),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$c(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$c(t,e)}ve(pa),ge(pa,t)}function en(){ve(pa),ve(Ks),ve($s)}function kx(e){Xr($s.current);var t=Xr(pa.current),a=$c(t,e.type);t!==a&&(ge(Ks,e),ge(pa,a))}function rp(e){Ks.current===e&&(ve(pa),ve(Ks))}var ke=yr(0);function zl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Dc=[];function op(){for(var e=0;e<Dc.length;e++)Dc[e]._workInProgressVersionPrimary=null;Dc.length=0}var vl=Ba.ReactCurrentDispatcher,Mc=Ba.ReactCurrentBatchConfig,eo=0,be=null,Be=null,_e=null,Hl=!1,Ms=!1,Xs=0,ew=0;function tt(){throw Error(R(321))}function np(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!aa(e[a],t[a]))return!1;return!0}function sp(e,t,a,r,o,n){if(eo=n,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vl.current=e===null||e.memoizedState===null?ow:nw,e=a(r,o),Ms){n=0;do{if(Ms=!1,Xs=0,25<=n)throw Error(R(301));n+=1,_e=Be=null,t.updateQueue=null,vl.current=sw,e=a(r,o)}while(Ms)}if(vl.current=ql,t=Be!==null&&Be.next!==null,eo=0,_e=Be=be=null,Hl=!1,t)throw Error(R(300));return e}function ip(){var e=Xs!==0;return Xs=0,e}function da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?be.memoizedState=_e=e:_e=_e.next=e,_e}function Wt(){if(Be===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=_e===null?be.memoizedState:_e.next;if(t!==null)_e=t,Be=e;else{if(e===null)throw Error(R(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},_e===null?be.memoizedState=_e=e:_e=_e.next=e}return _e}function Qs(e,t){return typeof t=="function"?t(e):t}function Nc(e){var t=Wt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=Be,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var d=u.lane;if((eo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=c,s=r):l=l.next=c,be.lanes|=d,to|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,aa(r,t.memoizedState)||(xt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,be.lanes|=n,to|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Ec(e){var t=Wt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);aa(n,t.memoizedState)||(xt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function bx(){}function Px(e,t){var a=be,r=Wt(),o=t(),n=!aa(r.memoizedState,o);if(n&&(r.memoizedState=o,xt=!0),r=r.queue,lp(Rx.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||_e!==null&&_e.memoizedState.tag&1){if(a.flags|=2048,Ys(9,Ax.bind(null,a,r,o,t),void 0,null),ze===null)throw Error(R(349));(eo&30)!==0||Tx(a,t,o)}return o}function Tx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ax(e,t,a,r){t.value=a,t.getSnapshot=r,Dx(t)&&Mx(e)}function Rx(e,t,a){return a(function(){Dx(t)&&Mx(e)})}function Dx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!aa(e,a)}catch{return!0}}function Mx(e){var t=Ea(e,1);t!==null&&ta(t,e,1,-1)}function eg(e){var t=da();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qs,lastRenderedState:e},t.queue=e,e=e.dispatch=rw.bind(null,be,e),[t.memoizedState,e]}function Ys(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function Nx(){return Wt().memoizedState}function Ll(e,t,a,r){var o=da();be.flags|=e,o.memoizedState=Ys(1|t,a,void 0,r===void 0?null:r)}function tu(e,t,a,r){var o=Wt();r=r===void 0?null:r;var n=void 0;if(Be!==null){var s=Be.memoizedState;if(n=s.destroy,r!==null&&np(r,s.deps)){o.memoizedState=Ys(t,a,n,r);return}}be.flags|=e,o.memoizedState=Ys(1|t,a,n,r)}function tg(e,t){return Ll(8390656,8,e,t)}function lp(e,t){return tu(2048,8,e,t)}function Ex(e,t){return tu(4,2,e,t)}function Fx(e,t){return tu(4,4,e,t)}function Bx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ox(e,t,a){return a=a!=null?a.concat([e]):null,tu(4,4,Bx.bind(null,t,e),a)}function up(){}function Vx(e,t){var a=Wt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&np(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Ux(e,t){var a=Wt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&np(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function _x(e,t,a){return(eo&21)===0?(e.baseState&&(e.baseState=!1,xt=!0),e.memoizedState=a):(aa(a,t)||(a=Gg(),be.lanes|=a,to|=a,e.baseState=!0),t)}function tw(e,t){var a=fe;fe=a!==0&&4>a?a:4,e(!0);var r=Mc.transition;Mc.transition={};try{e(!1),t()}finally{fe=a,Mc.transition=r}}function zx(){return Wt().memoizedState}function aw(e,t,a){var r=pr(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Hx(e))qx(t,a);else if(a=Ix(e,t,a,r),a!==null){var o=dt();ta(a,e,r,o),Wx(a,t,r)}}function rw(e,t,a){var r=pr(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Hx(e))qx(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,aa(i,s)){var l=t.interleaved;l===null?(o.next=o,ep(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Ix(e,t,o,r),a!==null&&(o=dt(),ta(a,e,r,o),Wx(a,t,r))}}function Hx(e){var t=e.alternate;return e===be||t!==null&&t===be}function qx(e,t){Ms=Hl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Wx(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,_f(e,a)}}var ql={readContext:qt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},ow={readContext:qt,useCallback:function(e,t){return da().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:tg,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Ll(4194308,4,Bx.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ll(4,2,e,t)},useMemo:function(e,t){var a=da();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=da();return t=a!==void 0?a(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=aw.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=da();return e={current:e},t.memoizedState=e},useState:eg,useDebugValue:up,useDeferredValue:function(e){return da().memoizedState=e},useTransition:function(){var e=eg(!1),t=e[0];return e=tw.bind(null,e[1]),da().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=be,o=da();if(Ie){if(a===void 0)throw Error(R(407));a=a()}else{if(a=t(),ze===null)throw Error(R(349));(eo&30)!==0||Tx(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,tg(Rx.bind(null,r,n,e),[e]),r.flags|=2048,Ys(9,Ax.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=da(),t=ze.identifierPrefix;if(Ie){var a=Ra,r=Aa;a=(r&~(1<<32-ea(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Xs++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=ew++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nw={readContext:qt,useCallback:Vx,useContext:qt,useEffect:lp,useImperativeHandle:Ox,useInsertionEffect:Ex,useLayoutEffect:Fx,useMemo:Ux,useReducer:Nc,useRef:Nx,useState:function(){return Nc(Qs)},useDebugValue:up,useDeferredValue:function(e){var t=Wt();return _x(t,Be.memoizedState,e)},useTransition:function(){var e=Nc(Qs)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:bx,useSyncExternalStore:Px,useId:zx,unstable_isNewReconciler:!1},sw={readContext:qt,useCallback:Vx,useContext:qt,useEffect:lp,useImperativeHandle:Ox,useInsertionEffect:Ex,useLayoutEffect:Fx,useMemo:Ux,useReducer:Ec,useRef:Nx,useState:function(){return Ec(Qs)},useDebugValue:up,useDeferredValue:function(e){var t=Wt();return Be===null?t.memoizedState=e:_x(t,Be.memoizedState,e)},useTransition:function(){var e=Ec(Qs)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:bx,useSyncExternalStore:Px,useId:zx,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function gf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Pe({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var au={isMounted:function(e){return(e=e._reactInternals)?oo(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=dt(),o=pr(e),n=Da(r,o);n.payload=t,a!=null&&(n.callback=a),t=cr(e,n,o),t!==null&&(ta(t,e,o,r),yl(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=dt(),o=pr(e),n=Da(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=cr(e,n,o),t!==null&&(ta(t,e,o,r),yl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=dt(),r=pr(e),o=Da(a,r);o.tag=2,t!=null&&(o.callback=t),t=cr(e,o,r),t!==null&&(ta(t,e,r,a),yl(t,e,r))}};function ag(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!qs(a,r)||!qs(o,n):!0}function Gx(e,t,a){var r=!1,o=gr,n=t.contextType;return typeof n=="object"&&n!==null?n=qt(n):(o=vt(t)?Zr:ot.current,r=t.contextTypes,n=(r=r!=null)?Yo(e,o):gr),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=au,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function rg(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&au.enqueueReplaceState(t,t.state,null)}function xf(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},tp(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=qt(n):(n=vt(t)?Zr:ot.current,o.context=Yo(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(gf(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&au.enqueueReplaceState(o,o.state,null),_l(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function tn(e,t){try{var a="",r=t;do a+=BS(r),r=r.return;while(r);var o=a}catch(n){o=`
7
7
  Error generating stack: `+n.message+`
8
- `+n.stack}return{value:e,source:t,stack:o,digest:null}}function Rc(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function pf(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var rw=typeof WeakMap=="function"?WeakMap:Map;function Wx(e,t,a){a=wa(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){zl||(zl=!0,If=r),pf(e,t)},a}function Gx(e,t,a){a=wa(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){pf(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){pf(e,t),typeof r!="function"&&(lr===null?lr=new Set([this]):lr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function ag(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new rw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=xw.bind(null,e,t,a),t.then(e,e))}function rg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function og(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=wa(-1,1),t.tag=2,ir(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ow=Aa.ReactCurrentOwner,ft=!1;function tt(e,t,a,r){t.child=e===null?Lx(t,null,a,r):jo(t,e.child,a,r)}function ng(e,t,a,r,o){a=a.render;var n=t.ref;return zo(t,o),r=tp(e,t,a,r,n,o),a=ap(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ba(e,t,o)):(ve&&a&&Hf(t),t.flags|=1,tt(e,t,r,o),t.child)}function sg(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!fp(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,jx(e,t,n,r,o)):(e=Ll(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Es,a(s,r)&&e.ref===t.ref)return ba(e,t,o)}return t.flags|=1,e=dr(n,r),e.ref=t.ref,e.return=t,t.child=e}function jx(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(Es(n,r)&&e.ref===t.ref)if(ft=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,ba(e,t,o)}return mf(e,t,a,r,o)}function Kx(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Bo,It),It|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(Bo,It),It|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,le(Bo,It),It|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,le(Bo,It),It|=r;return tt(e,t,o,a),t.child}function $x(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function mf(e,t,a,r,o){var n=mt(a)?Kr:Ze.current;return n=Wo(t,n),zo(t,o),a=tp(e,t,a,r,n,o),r=ap(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ba(e,t,o)):(ve&&r&&Hf(t),t.flags|=1,tt(e,t,a,o),t.child)}function ig(e,t,a,r,o){if(mt(a)){var n=!0;Ml(t)}else n=!1;if(zo(t,o),t.stateNode===null)xl(e,t),Hx(t,a,r),ff(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Ut(u):(u=mt(a)?Kr:Ze.current,u=Wo(t,u));var d=a.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&tg(t,s,r,u),Za=!1;var p=t.memoizedState;s.state=p,Bl(t,r,s,o),l=t.memoizedState,i!==r||p!==l||pt.current||Za?(typeof d=="function"&&(cf(t,a,d,r),l=t.memoizedState),(i=Za||eg(t,a,i,r,p,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Sx(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:Gt(t.type,i),s.props=u,f=t.pendingProps,p=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Ut(l):(l=mt(a)?Kr:Ze.current,l=Wo(t,l));var g=a.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==f||p!==l)&&tg(t,s,r,l),Za=!1,p=t.memoizedState,s.state=p,Bl(t,r,s,o);var y=t.memoizedState;i!==f||p!==y||pt.current||Za?(typeof g=="function"&&(cf(t,a,g,r),y=t.memoizedState),(u=Za||eg(t,a,u,r,p,y,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return hf(e,t,a,r,n,o)}function hf(e,t,a,r,o,n){$x(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&jh(t,a,!1),ba(e,t,n);r=t.stateNode,ow.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=jo(t,e.child,null,n),t.child=jo(t,null,i,n)):tt(e,t,i,n),t.memoizedState=r.state,o&&jh(t,a,!0),t.child}function Xx(e){var t=e.stateNode;t.pendingContext?Gh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gh(e,t.context,!1),Yf(e,t.containerInfo)}function lg(e,t,a,r,o){return Go(),Gf(o),t.flags|=256,tt(e,t,a,r),t.child}var gf={dehydrated:null,treeContext:null,retryLane:0};function xf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qx(e,t,a){var r=t.pendingProps,o=Le.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),le(Le,o&1),e===null)return uf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=tu(s,r,0,null),e=jr(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=xf(a),t.memoizedState=gf,e):np(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return nw(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=dr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=dr(i,n):(n=jr(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?xf(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=gf,r}return n=e.child,e=n.sibling,r=dr(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function np(e,t){return t=tu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ll(e,t,a,r){return r!==null&&Gf(r),jo(t,e.child,null,a),e=np(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nw(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=Rc(Error(b(422))),ll(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=tu({mode:"visible",children:r.children},o,0,null),n=jr(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&jo(t,e.child,null,s),t.child.memoizedState=xf(s),t.memoizedState=gf,n);if((t.mode&1)===0)return ll(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(b(419)),r=Rc(n,r,void 0),ll(e,t,s,r)}if(i=(s&e.childLanes)!==0,ft||i){if(r=Ve,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Ta(e,o),Xt(r,e,o,-1))}return cp(),r=Rc(Error(b(421))),ll(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=yw.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,wt=sr(o.nextSibling),kt=t,ve=!0,Kt=null,e!==null&&(Nt[Bt++]=Sa,Nt[Bt++]=Ia,Nt[Bt++]=$r,Sa=e.id,Ia=e.overflow,$r=t),t=np(t,r.children),t.flags|=4096,t)}function ug(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),df(e.return,t,a)}function Mc(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function Yx(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(tt(e,t,r.children,a),r=Le.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ug(e,a,t);else if(e.tag===19)ug(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(Le,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ol(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Mc(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ol(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Mc(t,!0,a,null,n);break;case"together":Mc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ba(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Qr|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,a=dr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=dr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function sw(e,t,a){switch(t.tag){case 3:Xx(t),Go();break;case 5:Ix(t);break;case 1:mt(t.type)&&Ml(t);break;case 4:Yf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;le(Fl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(Le,Le.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?Qx(e,t,a):(le(Le,Le.current&1),e=ba(e,t,a),e!==null?e.sibling:null);le(Le,Le.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Yx(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),le(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,Kx(e,t,a)}return ba(e,t,a)}var Zx,yf,Jx,ey;Zx=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};yf=function(){};Jx=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Wr(da.current);var n=null;switch(a){case"input":o=Uc(e,o),r=Uc(e,r),n=[];break;case"select":o=Se({},o,{value:void 0}),r=Se({},r,{value:void 0}),n=[];break;case"textarea":o=qc(e,o),r=qc(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Al)}Wc(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ps.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ps.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&fe("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};ey=function(e,t,a,r){a!==r&&(t.flags|=4)};function ds(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function iw(e,t,a){var r=t.pendingProps;switch(Wf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return mt(t.type)&&Rl(),Qe(t),null;case 3:return r=t.stateNode,Ko(),pe(pt),pe(Ze),Jf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(sl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kt!==null&&(Pf(Kt),Kt=null))),yf(e,t),Qe(t),null;case 5:Zf(t);var o=Wr(Vs.current);if(a=t.type,e!==null&&t.stateNode!=null)Jx(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return Qe(t),null}if(e=Wr(da.current),sl(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[la]=t,r[Bs]=n,e=(t.mode&1)!==0,a){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(o=0;o<gs.length;o++)fe(gs[o],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":xh(r,n),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},fe("invalid",r);break;case"textarea":vh(r,n),fe("invalid",r)}Wc(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&nl(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&nl(r.textContent,i,e),o=["children",""+i]):Ps.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&fe("scroll",r)}switch(a){case"input":Ki(r),yh(r,n,!0);break;case"textarea":Ki(r),Lh(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=Al)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bg(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[la]=t,e[Bs]=r,Zx(e,t,!1,!1),t.stateNode=e;e:{switch(s=Gc(a,r),a){case"dialog":fe("cancel",e),fe("close",e),o=r;break;case"iframe":case"object":case"embed":fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<gs.length;o++)fe(gs[o],e);o=r;break;case"source":fe("error",e),o=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),o=r;break;case"details":fe("toggle",e),o=r;break;case"input":xh(e,r),o=Uc(e,r),fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Se({},r,{value:void 0}),fe("invalid",e);break;case"textarea":vh(e,r),o=qc(e,r),fe("invalid",e);break;default:o=r}Wc(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?Mg(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ag(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&Ts(e,l):typeof l=="number"&&Ts(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Ps.hasOwnProperty(n)?l!=null&&n==="onScroll"&&fe("scroll",e):l!=null&&Af(e,n,l,s))}switch(a){case"input":Ki(e),yh(e,r,!1);break;case"textarea":Ki(e),Lh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cr(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Oo(e,!!r.multiple,n,!1):r.defaultValue!=null&&Oo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Al)}switch(a){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 Qe(t),null;case 6:if(e&&t.stateNode!=null)ey(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(a=Wr(Vs.current),Wr(da.current),sl(t)){if(r=t.stateNode,a=t.memoizedProps,r[la]=t,(n=r.nodeValue!==a)&&(e=kt,e!==null))switch(e.tag){case 3:nl(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nl(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[la]=t,t.stateNode=r}return Qe(t),null;case 13:if(pe(Le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&wt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)yx(),Go(),t.flags|=98560,n=!1;else if(n=sl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(b(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(b(317));n[la]=t}else Go(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),n=!1}else Kt!==null&&(Pf(Kt),Kt=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Le.current&1)!==0?Fe===0&&(Fe=3):cp())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return Ko(),yf(e,t),e===null&&Fs(t.stateNode.containerInfo),Qe(t),null;case 10:return $f(t.type._context),Qe(t),null;case 17:return mt(t.type)&&Rl(),Qe(t),null;case 19:if(pe(Le),n=t.memoizedState,n===null)return Qe(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)ds(n,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ol(e),s!==null){for(t.flags|=128,ds(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return le(Le,Le.current&1|2),t.child}e=e.sibling}n.tail!==null&&Pe()>Xo&&(t.flags|=128,r=!0,ds(n,!1),t.lanes=4194304)}else{if(!r)if(e=Ol(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),ds(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ve)return Qe(t),null}else 2*Pe()-n.renderingStartTime>Xo&&a!==1073741824&&(t.flags|=128,r=!0,ds(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Pe(),t.sibling=null,a=Le.current,le(Le,r?a&1|2:a&1),t):(Qe(t),null);case 22:case 23:return dp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(It&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function lw(e,t){switch(Wf(t),t.tag){case 1:return mt(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ko(),pe(pt),pe(Ze),Jf(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Zf(t),null;case 13:if(pe(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(Le),null;case 4:return Ko(),null;case 10:return $f(t.type._context),null;case 22:case 23:return dp(),null;case 24:return null;default:return null}}var ul=!1,Ye=!1,uw=typeof WeakSet=="function"?WeakSet:Set,M=null;function No(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Ie(e,t,r)}else a.current=null}function vf(e,t,a){try{a()}catch(r){Ie(e,t,r)}}var dg=!1;function dw(e,t){if(tf=Pl,e=nx(),qf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==a||o!==0&&f.nodeType!==3||(i=s+o),f!==n||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===a&&++u===o&&(i=s),p===n&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(af={focusedElem:e,selectionRange:a},Pl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,I=y.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Gt(t.type,v),I);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(S){Ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=dg,dg=!1,y}function Is(e,t,a){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 n=o.destroy;o.destroy=void 0,n!==void 0&&vf(t,a,n)}o=o.next}while(o!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function Lf(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function ty(e){var t=e.alternate;t!==null&&(e.alternate=null,ty(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[la],delete t[Bs],delete t[nf],delete t[jI],delete t[KI])),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 ay(e){return e.tag===5||e.tag===3||e.tag===4}function cg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ay(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 Cf(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Al));else if(r!==4&&(e=e.child,e!==null))for(Cf(e,t,a),e=e.sibling;e!==null;)Cf(e,t,a),e=e.sibling}function Sf(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sf(e,t,a),e=e.sibling;e!==null;)Sf(e,t,a),e=e.sibling}var ze=null,jt=!1;function Qa(e,t,a){for(a=a.child;a!==null;)ry(e,t,a),a=a.sibling}function ry(e,t,a){if(ua&&typeof ua.onCommitFiberUnmount=="function")try{ua.onCommitFiberUnmount(Gl,a)}catch{}switch(a.tag){case 5:Ye||No(a,t);case 6:var r=ze,o=jt;ze=null,Qa(e,t,a),ze=r,jt=o,ze!==null&&(jt?(e=ze,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):ze.removeChild(a.stateNode));break;case 18:ze!==null&&(jt?(e=ze,a=a.stateNode,e.nodeType===8?wc(e.parentNode,a):e.nodeType===1&&wc(e,a),Ms(e)):wc(ze,a.stateNode));break;case 4:r=ze,o=jt,ze=a.stateNode.containerInfo,jt=!0,Qa(e,t,a),ze=r,jt=o;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&vf(a,t,s),o=o.next}while(o!==r)}Qa(e,t,a);break;case 1:if(!Ye&&(No(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Ie(a,t,i)}Qa(e,t,a);break;case 21:Qa(e,t,a);break;case 22:a.mode&1?(Ye=(r=Ye)||a.memoizedState!==null,Qa(e,t,a),Ye=r):Qa(e,t,a);break;default:Qa(e,t,a)}}function fg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new uw),t.forEach(function(r){var o=vw.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function Wt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:ze=i.stateNode,jt=!1;break e;case 3:ze=i.stateNode.containerInfo,jt=!0;break e;case 4:ze=i.stateNode.containerInfo,jt=!0;break e}i=i.return}if(ze===null)throw Error(b(160));ry(n,s,o),ze=null,jt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ie(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)oy(t,e),t=t.sibling}function oy(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wt(t,e),sa(e),r&4){try{Is(3,e,e.return),Jl(3,e)}catch(v){Ie(e,e.return,v)}try{Is(5,e,e.return)}catch(v){Ie(e,e.return,v)}}break;case 1:Wt(t,e),sa(e),r&512&&a!==null&&No(a,a.return);break;case 5:if(Wt(t,e),sa(e),r&512&&a!==null&&No(a,a.return),e.flags&32){var o=e.stateNode;try{Ts(o,"")}catch(v){Ie(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Pg(o,n),Gc(i,s);var u=Gc(i,n);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d==="style"?Mg(o,f):d==="dangerouslySetInnerHTML"?Ag(o,f):d==="children"?Ts(o,f):Af(o,d,f,u)}switch(i){case"input":_c(o,n);break;case"textarea":Tg(o,n);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var g=n.value;g!=null?Oo(o,!!n.multiple,g,!1):p!==!!n.multiple&&(n.defaultValue!=null?Oo(o,!!n.multiple,n.defaultValue,!0):Oo(o,!!n.multiple,n.multiple?[]:"",!1))}o[Bs]=n}catch(v){Ie(e,e.return,v)}}break;case 6:if(Wt(t,e),sa(e),r&4){if(e.stateNode===null)throw Error(b(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(v){Ie(e,e.return,v)}}break;case 3:if(Wt(t,e),sa(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Ms(t.containerInfo)}catch(v){Ie(e,e.return,v)}break;case 4:Wt(t,e),sa(e);break;case 13:Wt(t,e),sa(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(lp=Pe())),r&4&&fg(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(Ye=(u=Ye)||d,Wt(t,e),Ye=u):Wt(t,e),sa(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(M=e,d=e.child;d!==null;){for(f=M=d;M!==null;){switch(p=M,g=p.child,p.tag){case 0:case 11:case 14:case 15:Is(4,p,p.return);break;case 1:No(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,a=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){Ie(r,a,v)}}break;case 5:No(p,p.return);break;case 22:if(p.memoizedState!==null){mg(f);continue}}g!==null?(g.return=p,M=g):mg(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=Rg("display",s))}catch(v){Ie(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Ie(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Wt(t,e),sa(e),r&4&&fg(e);break;case 21:break;default:Wt(t,e),sa(e)}}function sa(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(ay(a)){var r=a;break e}a=a.return}throw Error(b(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ts(o,""),r.flags&=-33);var n=cg(e);Sf(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=cg(e);Cf(e,i,s);break;default:throw Error(b(161))}}catch(l){Ie(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cw(e,t,a){M=e,ny(e,t,a)}function ny(e,t,a){for(var r=(e.mode&1)!==0;M!==null;){var o=M,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||ul;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||Ye;i=ul;var u=Ye;if(ul=s,(Ye=l)&&!u)for(M=o;M!==null;)s=M,l=s.child,s.tag===22&&s.memoizedState!==null?hg(o):l!==null?(l.return=s,M=l):hg(o);for(;n!==null;)M=n,ny(n,t,a),n=n.sibling;M=o,ul=i,Ye=u}pg(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,M=n):pg(e,t,a)}}function pg(e){for(;M!==null;){var t=M;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:Gt(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&Yh(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}Yh(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Ms(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}Ye||t.flags&512&&Lf(t)}catch(p){Ie(t,t.return,p)}}if(t===e){M=null;break}if(a=t.sibling,a!==null){a.return=t.return,M=a;break}M=t.return}}function mg(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var a=t.sibling;if(a!==null){a.return=t.return,M=a;break}M=t.return}}function hg(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{Jl(4,t)}catch(l){Ie(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ie(t,o,l)}}var n=t.return;try{Lf(t)}catch(l){Ie(t,n,l)}break;case 5:var s=t.return;try{Lf(t)}catch(l){Ie(t,s,l)}}}catch(l){Ie(t,t.return,l)}if(t===e){M=null;break}var i=t.sibling;if(i!==null){i.return=t.return,M=i;break}M=t.return}}var fw=Math.ceil,_l=Aa.ReactCurrentDispatcher,sp=Aa.ReactCurrentOwner,Vt=Aa.ReactCurrentBatchConfig,te=0,Ve=null,Ae=null,qe=0,It=0,Bo=mr(0),Fe=0,qs=null,Qr=0,eu=0,ip=0,ws=null,ct=null,lp=0,Xo=1/0,La=null,zl=!1,If=null,lr=null,dl=!1,ar=null,ql=0,ks=0,wf=null,yl=-1,vl=0;function at(){return(te&6)!==0?Pe():yl!==-1?yl:yl=Pe()}function ur(e){return(e.mode&1)===0?1:(te&2)!==0&&qe!==0?qe&-qe:XI.transition!==null?(vl===0&&(vl=Hg()),vl):(e=ne,e!==0||(e=window.event,e=e===void 0?16:Qg(e.type)),e)}function Xt(e,t,a,r){if(50<ks)throw ks=0,wf=null,Error(b(185));Hs(e,a,r),((te&2)===0||e!==Ve)&&(e===Ve&&((te&2)===0&&(eu|=a),Fe===4&&er(e,qe)),ht(e,r),a===1&&te===0&&(t.mode&1)===0&&(Xo=Pe()+500,Ql&&hr()))}function ht(e,t){var a=e.callbackNode;YS(e,t);var r=kl(e,e===Ve?qe:0);if(r===0)a!==null&&Ih(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Ih(a),t===1)e.tag===0?$I(gg.bind(null,e)):hx(gg.bind(null,e)),WI(function(){(te&6)===0&&hr()}),a=null;else{switch(Wg(r)){case 1:a=Ff;break;case 4:a=zg;break;case 16:a=wl;break;case 536870912:a=qg;break;default:a=wl}a=py(a,sy.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function sy(e,t){if(yl=-1,vl=0,(te&6)!==0)throw Error(b(327));var a=e.callbackNode;if(qo()&&e.callbackNode!==a)return null;var r=kl(e,e===Ve?qe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Hl(e,r);else{t=r;var o=te;te|=2;var n=ly();(Ve!==e||qe!==t)&&(La=null,Xo=Pe()+500,Gr(e,t));do try{hw();break}catch(i){iy(e,i)}while(!0);Kf(),_l.current=n,te=o,Ae!==null?t=0:(Ve=null,qe=0,t=Fe)}if(t!==0){if(t===2&&(o=Qc(e),o!==0&&(r=o,t=kf(e,o))),t===1)throw a=qs,Gr(e,0),er(e,r),ht(e,Pe()),a;if(t===6)er(e,r);else{if(o=e.current.alternate,(r&30)===0&&!pw(o)&&(t=Hl(e,r),t===2&&(n=Qc(e),n!==0&&(r=n,t=kf(e,n))),t===1))throw a=qs,Gr(e,0),er(e,r),ht(e,Pe()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:zr(e,ct,La);break;case 3:if(er(e,r),(r&130023424)===r&&(t=lp+500-Pe(),10<t)){if(kl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){at(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=of(zr.bind(null,e,ct,La),t);break}zr(e,ct,La);break;case 4:if(er(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-$t(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fw(r/1960))-r,10<r){e.timeoutHandle=of(zr.bind(null,e,ct,La),r);break}zr(e,ct,La);break;case 5:zr(e,ct,La);break;default:throw Error(b(329))}}}return ht(e,Pe()),e.callbackNode===a?sy.bind(null,e):null}function kf(e,t){var a=ws;return e.current.memoizedState.isDehydrated&&(Gr(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=ct,ct=a,t!==null&&Pf(t)),e}function Pf(e){ct===null?ct=e:ct.push.apply(ct,e)}function pw(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!Qt(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function er(e,t){for(t&=~ip,t&=~eu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-$t(t),r=1<<a;e[a]=-1,t&=~r}}function gg(e){if((te&6)!==0)throw Error(b(327));qo();var t=kl(e,0);if((t&1)===0)return ht(e,Pe()),null;var a=Hl(e,t);if(e.tag!==0&&a===2){var r=Qc(e);r!==0&&(t=r,a=kf(e,r))}if(a===1)throw a=qs,Gr(e,0),er(e,t),ht(e,Pe()),a;if(a===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zr(e,ct,La),ht(e,Pe()),null}function up(e,t){var a=te;te|=1;try{return e(t)}finally{te=a,te===0&&(Xo=Pe()+500,Ql&&hr())}}function Yr(e){ar!==null&&ar.tag===0&&(te&6)===0&&qo();var t=te;te|=1;var a=Vt.transition,r=ne;try{if(Vt.transition=null,ne=1,e)return e()}finally{ne=r,Vt.transition=a,te=t,(te&6)===0&&hr()}}function dp(){It=Bo.current,pe(Bo)}function Gr(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,HI(a)),Ae!==null)for(a=Ae.return;a!==null;){var r=a;switch(Wf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rl();break;case 3:Ko(),pe(pt),pe(Ze),Jf();break;case 5:Zf(r);break;case 4:Ko();break;case 13:pe(Le);break;case 19:pe(Le);break;case 10:$f(r.type._context);break;case 22:case 23:dp()}a=a.return}if(Ve=e,Ae=e=dr(e.current,null),qe=It=t,Fe=0,qs=null,ip=eu=Qr=0,ct=ws=null,Hr!==null){for(t=0;t<Hr.length;t++)if(a=Hr[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}Hr=null}return e}function iy(e,t){do{var a=Ae;try{if(Kf(),hl.current=Ul,Vl){for(var r=Ce.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vl=!1}if(Xr=0,Oe=Ee=Ce=null,Ss=!1,Us=0,sp.current=null,a===null||a.return===null){Fe=1,qs=t,Ae=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=qe,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,f=d.tag;if((d.mode&1)===0&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=rg(s);if(g!==null){g.flags&=-257,og(g,s,i,n,t),g.mode&1&&ag(n,u,t),t=g,l=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(l),t.updateQueue=v}else y.add(l);break e}else{if((t&1)===0){ag(n,u,t),cp();break e}l=Error(b(426))}}else if(ve&&i.mode&1){var I=rg(s);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),og(I,s,i,n,t),Gf($o(l,i));break e}}n=l=$o(l,i),Fe!==4&&(Fe=2),ws===null?ws=[n]:ws.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var h=Wx(n,l,t);Qh(n,h);break e;case 1:i=l;var m=n.type,x=n.stateNode;if((n.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(lr===null||!lr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var S=Gx(n,i,t);Qh(n,S);break e}}n=n.return}while(n!==null)}dy(a)}catch(C){t=C,Ae===a&&a!==null&&(Ae=a=a.return);continue}break}while(!0)}function ly(){var e=_l.current;return _l.current=Ul,e===null?Ul:e}function cp(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ve===null||(Qr&268435455)===0&&(eu&268435455)===0||er(Ve,qe)}function Hl(e,t){var a=te;te|=2;var r=ly();(Ve!==e||qe!==t)&&(La=null,Gr(e,t));do try{mw();break}catch(o){iy(e,o)}while(!0);if(Kf(),te=a,_l.current=r,Ae!==null)throw Error(b(261));return Ve=null,qe=0,Fe}function mw(){for(;Ae!==null;)uy(Ae)}function hw(){for(;Ae!==null&&!qS();)uy(Ae)}function uy(e){var t=fy(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?dy(e):Ae=t,sp.current=null}function dy(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=iw(a,t,It),a!==null){Ae=a;return}}else{if(a=lw(a,t),a!==null){a.flags&=32767,Ae=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Ae=null;return}}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Fe===0&&(Fe=5)}function zr(e,t,a){var r=ne,o=Vt.transition;try{Vt.transition=null,ne=1,gw(e,t,a,r)}finally{Vt.transition=o,ne=r}return null}function gw(e,t,a,r){do qo();while(ar!==null);if((te&6)!==0)throw Error(b(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(ZS(e,n),e===Ve&&(Ae=Ve=null,qe=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||dl||(dl=!0,py(wl,function(){return qo(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=Vt.transition,Vt.transition=null;var s=ne;ne=1;var i=te;te|=4,sp.current=null,dw(e,a),oy(a,e),VI(af),Pl=!!tf,af=tf=null,e.current=a,cw(a,e,o),HS(),te=i,ne=s,Vt.transition=n}else e.current=a;if(dl&&(dl=!1,ar=e,ql=o),n=e.pendingLanes,n===0&&(lr=null),jS(a.stateNode,r),ht(e,Pe()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(zl)throw zl=!1,e=If,If=null,e;return(ql&1)!==0&&e.tag!==0&&qo(),n=e.pendingLanes,(n&1)!==0?e===wf?ks++:(ks=0,wf=e):ks=0,hr(),null}function qo(){if(ar!==null){var e=Wg(ql),t=Vt.transition,a=ne;try{if(Vt.transition=null,ne=16>e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,ql=0,(te&6)!==0)throw Error(b(331));var o=te;for(te|=4,M=e.current;M!==null;){var n=M,s=n.child;if((M.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(M=u;M!==null;){var d=M;switch(d.tag){case 0:case 11:case 15:Is(8,d,n)}var f=d.child;if(f!==null)f.return=d,M=f;else for(;M!==null;){d=M;var p=d.sibling,g=d.return;if(ty(d),d===u){M=null;break}if(p!==null){p.return=g,M=p;break}M=g}}}var y=n.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var I=v.sibling;v.sibling=null,v=I}while(v!==null)}}M=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,M=s;else e:for(;M!==null;){if(n=M,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Is(9,n,n.return)}var h=n.sibling;if(h!==null){h.return=n.return,M=h;break e}M=n.return}}var m=e.current;for(M=m;M!==null;){s=M;var x=s.child;if((s.subtreeFlags&2064)!==0&&x!==null)x.return=s,M=x;else e:for(s=m;M!==null;){if(i=M,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:Jl(9,i)}}catch(C){Ie(i,i.return,C)}if(i===s){M=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,M=S;break e}M=i.return}}if(te=o,hr(),ua&&typeof ua.onPostCommitFiberRoot=="function")try{ua.onPostCommitFiberRoot(Gl,e)}catch{}r=!0}return r}finally{ne=a,Vt.transition=t}}return!1}function xg(e,t,a){t=$o(a,t),t=Wx(e,t,1),e=ir(e,t,1),t=at(),e!==null&&(Hs(e,1,t),ht(e,t))}function Ie(e,t,a){if(e.tag===3)xg(e,e,a);else for(;t!==null;){if(t.tag===3){xg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(lr===null||!lr.has(r))){e=$o(a,e),e=Gx(t,e,1),t=ir(t,e,1),e=at(),t!==null&&(Hs(t,1,e),ht(t,e));break}}t=t.return}}function xw(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=at(),e.pingedLanes|=e.suspendedLanes&a,Ve===e&&(qe&a)===a&&(Fe===4||Fe===3&&(qe&130023424)===qe&&500>Pe()-lp?Gr(e,0):ip|=a),ht(e,t)}function cy(e,t){t===0&&((e.mode&1)===0?t=1:(t=Qi,Qi<<=1,(Qi&130023424)===0&&(Qi=4194304)));var a=at();e=Ta(e,t),e!==null&&(Hs(e,t,a),ht(e,a))}function yw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),cy(e,a)}function vw(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),cy(e,a)}var fy;fy=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ft=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return ft=!1,sw(e,t,a);ft=(e.flags&131072)!==0}else ft=!1,ve&&(t.flags&1048576)!==0&&gx(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var o=Wo(t,Ze.current);zo(t,a),o=tp(null,t,r,e,o,a);var n=ap();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,mt(r)?(n=!0,Ml(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Qf(t),o.updater=Zl,t.stateNode=o,o._reactInternals=t,ff(t,r,e,a),t=hf(null,t,r,!0,n,a)):(t.tag=0,ve&&n&&Hf(t),tt(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Cw(r),e=Gt(r,e),o){case 0:t=mf(null,t,r,e,a);break e;case 1:t=ig(null,t,r,e,a);break e;case 11:t=ng(null,t,r,e,a);break e;case 14:t=sg(null,t,r,Gt(r.type,e),a);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),mf(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),ig(e,t,r,o,a);case 3:e:{if(Xx(t),e===null)throw Error(b(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Sx(e,t),Bl(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=$o(Error(b(423)),t),t=lg(e,t,r,a,o);break e}else if(r!==o){o=$o(Error(b(424)),t),t=lg(e,t,r,a,o);break e}else for(wt=sr(t.stateNode.containerInfo.firstChild),kt=t,ve=!0,Kt=null,a=Lx(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Go(),r===o){t=ba(e,t,a);break e}tt(e,t,r,a)}t=t.child}return t;case 5:return Ix(t),e===null&&uf(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,rf(r,o)?s=null:n!==null&&rf(r,n)&&(t.flags|=32),$x(e,t),tt(e,t,s,a),t.child;case 6:return e===null&&uf(t),null;case 13:return Qx(e,t,a);case 4:return Yf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,a):tt(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),ng(e,t,r,o,a);case 7:return tt(e,t,t.pendingProps,a),t.child;case 8:return tt(e,t,t.pendingProps.children,a),t.child;case 12:return tt(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,le(Fl,r._currentValue),r._currentValue=s,n!==null)if(Qt(n.value,s)){if(n.children===o.children&&!pt.current){t=ba(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=wa(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),df(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(b(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),df(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}tt(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zo(t,a),o=Ut(o),r=r(o),t.flags|=1,tt(e,t,r,a),t.child;case 14:return r=t.type,o=Gt(r,t.pendingProps),o=Gt(r.type,o),sg(e,t,r,o,a);case 15:return jx(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gt(r,o),xl(e,t),t.tag=1,mt(r)?(e=!0,Ml(t)):e=!1,zo(t,a),Hx(t,r,o),ff(t,r,o,a),hf(null,t,r,!0,e,a);case 19:return Yx(e,t,a);case 22:return Kx(e,t,a)}throw Error(b(156,t.tag))};function py(e,t){return _g(e,t)}function Lw(e,t,a,r){this.tag=e,this.key=a,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 Ot(e,t,a,r){return new Lw(e,t,a,r)}function fp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cw(e){if(typeof e=="function")return fp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mf)return 11;if(e===Df)return 14}return 2}function dr(e,t){var a=e.alternate;return a===null?(a=Ot(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function Ll(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")fp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Po:return jr(a.children,o,n,t);case Rf:s=8,o|=8;break;case Nc:return e=Ot(12,a,t,o|2),e.elementType=Nc,e.lanes=n,e;case Bc:return e=Ot(13,a,t,o),e.elementType=Bc,e.lanes=n,e;case Oc:return e=Ot(19,a,t,o),e.elementType=Oc,e.lanes=n,e;case Ig:return tu(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cg:s=10;break e;case Sg:s=9;break e;case Mf:s=11;break e;case Df:s=14;break e;case Ya:s=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Ot(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function jr(e,t,a,r){return e=Ot(7,e,r,t),e.lanes=a,e}function tu(e,t,a,r){return e=Ot(22,e,r,t),e.elementType=Ig,e.lanes=a,e.stateNode={isHidden:!1},e}function Dc(e,t,a){return e=Ot(6,e,null,t),e.lanes=a,e}function Ec(e,t,a){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sw(e,t,a,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=gc(0),this.expirationTimes=gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pp(e,t,a,r,o,n,s,i,l){return e=new Sw(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Ot(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qf(n),e}function Iw(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ko,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function my(e){if(!e)return fr;e=e._reactInternals;e:{if(Jr(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var a=e.type;if(mt(a))return mx(e,a,t)}return t}function hy(e,t,a,r,o,n,s,i,l){return e=pp(a,r,!0,e,o,n,s,i,l),e.context=my(null),a=e.current,r=at(),o=ur(a),n=wa(r,o),n.callback=t??null,ir(a,n,o),e.current.lanes=o,Hs(e,o,r),ht(e,r),e}function au(e,t,a,r){var o=t.current,n=at(),s=ur(o);return a=my(a),t.context===null?t.context=a:t.pendingContext=a,t=wa(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ir(o,t,s),e!==null&&(Xt(e,o,s,n),ml(e,o,s)),s}function Wl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function mp(e,t){yg(e,t),(e=e.alternate)&&yg(e,t)}function ww(){return null}var gy=typeof reportError=="function"?reportError:function(e){console.error(e)};function hp(e){this._internalRoot=e}ru.prototype.render=hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));au(e,t,null,null)};ru.prototype.unmount=hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yr(function(){au(null,e,null,null)}),t[Pa]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kg();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&Xg(e)}};function gp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vg(){}function kw(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=Wl(s);n.call(u)}}var s=hy(t,r,e,0,null,!1,!1,"",vg);return e._reactRootContainer=s,e[Pa]=s.current,Fs(e.nodeType===8?e.parentNode:e),Yr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=Wl(l);i.call(u)}}var l=pp(e,0,!1,null,null,!1,!1,"",vg);return e._reactRootContainer=l,e[Pa]=l.current,Fs(e.nodeType===8?e.parentNode:e),Yr(function(){au(t,l,a,r)}),l}function nu(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=Wl(s);i.call(l)}}au(t,s,e,o)}else s=kw(a,t,e,o,r);return Wl(s)}Gg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=hs(t.pendingLanes);a!==0&&(Nf(t,a|1),ht(t,Pe()),(te&6)===0&&(Xo=Pe()+500,hr()))}break;case 13:Yr(function(){var r=Ta(e,1);if(r!==null){var o=at();Xt(r,e,1,o)}}),mp(e,1)}};Bf=function(e){if(e.tag===13){var t=Ta(e,134217728);if(t!==null){var a=at();Xt(t,e,134217728,a)}mp(e,134217728)}};jg=function(e){if(e.tag===13){var t=ur(e),a=Ta(e,t);if(a!==null){var r=at();Xt(a,e,t,r)}mp(e,t)}};Kg=function(){return ne};$g=function(e,t){var a=ne;try{return ne=e,t()}finally{ne=a}};Kc=function(e,t,a){switch(t){case"input":if(_c(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=Xl(r);if(!o)throw Error(b(90));kg(r),_c(r,o)}}}break;case"textarea":Tg(e,a);break;case"select":t=a.value,t!=null&&Oo(e,!!a.multiple,t,!1)}};Fg=up;Ng=Yr;var Pw={usingClientEntryPoint:!1,Events:[Gs,Ro,Xl,Dg,Eg,up]},cs={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tw={bundleType:cs.bundleType,version:cs.version,rendererPackageName:cs.rendererPackageName,rendererConfig:cs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Aa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vg(e),e===null?null:e.stateNode},findFiberByHostInstance:cs.findFiberByHostInstance||ww,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(fs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!fs.isDisabled&&fs.supportsFiber))try{Gl=fs.inject(Tw),ua=fs}catch{}var fs;bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pw;bt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gp(t))throw Error(b(200));return Iw(e,t,null,a)};bt.createRoot=function(e,t){if(!gp(e))throw Error(b(299));var a=!1,r="",o=gy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=pp(e,1,!1,null,null,a,!1,r,o),e[Pa]=t.current,Fs(e.nodeType===8?e.parentNode:e),new hp(t)};bt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=Vg(t),e=e===null?null:e.stateNode,e};bt.flushSync=function(e){return Yr(e)};bt.hydrate=function(e,t,a){if(!ou(t))throw Error(b(200));return nu(null,e,t,!0,a)};bt.hydrateRoot=function(e,t,a){if(!gp(e))throw Error(b(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=gy;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=hy(t,null,e,1,a??null,o,!1,n,s),e[Pa]=t.current,Fs(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new ru(t)};bt.render=function(e,t,a){if(!ou(t))throw Error(b(200));return nu(null,e,t,!1,a)};bt.unmountComponentAtNode=function(e){if(!ou(e))throw Error(b(40));return e._reactRootContainer?(Yr(function(){nu(null,null,e,!1,function(){e._reactRootContainer=null,e[Pa]=null})}),!0):!1};bt.unstable_batchedUpdates=up;bt.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!ou(a))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return nu(e,t,a,!1,r)};bt.version="18.3.1-next-f1338f8080-20240426"});var xp=va((cb,vy)=>{"use strict";function yy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yy)}catch(e){console.error(e)}}yy(),vy.exports=xy()});var Cy=va(yp=>{"use strict";var Ly=xp();yp.createRoot=Ly.createRoot,yp.hydrateRoot=Ly.hydrateRoot;var fb});var My=va(iu=>{"use strict";var nk=H(),sk=Symbol.for("react.element"),ik=Symbol.for("react.fragment"),lk=Object.prototype.hasOwnProperty,uk=nk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dk={key:!0,ref:!0,__self:!0,__source:!0};function Ry(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)lk.call(t,r)&&!dk.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:sk,type:e,key:n,ref:s,props:o,_owner:uk.current}}iu.Fragment=ik;iu.jsx=Ry;iu.jsxs=Ry});var ot=va((xb,Dy)=>{"use strict";Dy.exports=My()});var ob={};uS(ob,{initKiteChat:()=>Mm});var Di=N(H()),WC=N(Cy());var _=N(H(),1);function Sy(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=Sy(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function su(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Sy(e))&&(r&&(r+=" "),r+=t);return r}var bw=e=>{let t=Rw(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split("-");return i[0]===""&&i.length!==1&&i.shift(),ky(i,t)||Aw(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},ky=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?ky(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:s})=>s(n))?.classGroupId},Iy=/^\[(.+)\]$/,Aw=e=>{if(Iy.test(e)){let t=Iy.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Rw=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Dw(Object.entries(e.classGroups),a).forEach(([n,s])=>{Lp(s,r,n,t)}),r},Lp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:wy(t,o);n.classGroupId=a;return}if(typeof o=="function"){if(Mw(o)){Lp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([n,s])=>{Lp(s,wy(t,n),a,r)})})},wy=(e,t)=>{let a=e;return t.split("-").forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},Mw=e=>e.isThemeGetter,Dw=(e,t)=>t?e.map(([a,r])=>{let o=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,o]}):e,Ew=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,r=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return o(n,s),s},set(n,s){a.has(n)?a.set(n,s):o(n,s)}}};var Fw=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,f;for(let I=0;I<i.length;I++){let h=i[I];if(u===0){if(h===o&&(r||i.slice(I,I+n)===t)){l.push(i.slice(d,I)),d=I+n;continue}if(h==="/"){f=I;continue}}h==="["?u++:h==="]"&&u--}let p=l.length===0?i:i.substring(d),g=p.startsWith("!"),y=g?p.substring(1):p,v=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:v}};return a?i=>a({className:i,parseClassName:s}):s},Nw=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},Bw=e=>({cache:Ew(e.cacheSize),parseClassName:Fw(e),...bw(e)}),Ow=/\s+/,Vw=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(Ow),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:g}=a(u),y=!!g,v=r(y?p.substring(0,g):p);if(!v){if(!y){i=u+(i.length>0?" "+i:i);continue}if(v=r(p),!v){i=u+(i.length>0?" "+i:i);continue}y=!1}let I=Nw(d).join(":"),h=f?I+"!":I,m=h+v;if(n.includes(m))continue;n.push(m);let x=o(v,y);for(let S=0;S<x.length;++S){let C=x[S];n.push(h+C)}i=u+(i.length>0?" "+i:i)}return i};function Uw(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Py(t))&&(r&&(r+=" "),r+=a);return r}var Py=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Py(e[r]))&&(a&&(a+=" "),a+=t);return a};function _w(e,...t){let a,r,o,n=s;function s(l){let u=t.reduce((d,f)=>f(d),e());return a=Bw(u),r=a.cache.get,o=a.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let d=Vw(l,a);return o(l,d),d}return function(){return n(Uw.apply(null,arguments))}}var me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ty=/^\[(?:([a-z-]+):)?(.+)\]$/i,zw=/^\d+\/\d+$/,qw=new Set(["px","full","screen"]),Hw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ww=/\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$/,Gw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ra=e=>Zo(e)||qw.has(e)||zw.test(e),gr=e=>Jo(e,"length",tk),Zo=e=>!!e&&!Number.isNaN(Number(e)),vp=e=>Jo(e,"number",Zo),Ks=e=>!!e&&Number.isInteger(Number(e)),$w=e=>e.endsWith("%")&&Zo(e.slice(0,-1)),j=e=>Ty.test(e),xr=e=>Hw.test(e),Xw=new Set(["length","size","percentage"]),Qw=e=>Jo(e,Xw,by),Yw=e=>Jo(e,"position",by),Zw=new Set(["image","url"]),Jw=e=>Jo(e,Zw,rk),ek=e=>Jo(e,"",ak),$s=()=>!0,Jo=(e,t,a)=>{let r=Ty.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},tk=e=>Ww.test(e)&&!Gw.test(e),by=()=>!1,ak=e=>jw.test(e),rk=e=>Kw.test(e);var ok=()=>{let e=me("colors"),t=me("spacing"),a=me("blur"),r=me("brightness"),o=me("borderColor"),n=me("borderRadius"),s=me("borderSpacing"),i=me("borderWidth"),l=me("contrast"),u=me("grayscale"),d=me("hueRotate"),f=me("invert"),p=me("gap"),g=me("gradientColorStops"),y=me("gradientColorStopPositions"),v=me("inset"),I=me("margin"),h=me("opacity"),m=me("padding"),x=me("saturate"),S=me("scale"),C=me("sepia"),T=me("skew"),P=me("space"),k=me("translate"),E=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",j,t],re=()=>[j,t],aa=()=>["",Ra,gr],$=()=>["auto",Zo,j],ra=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],De=()=>["start","end","center","between","around","evenly","stretch"],Ct=()=>["","0",j],oa=()=>["auto","avoid","all","avoid-page","page","left","right","column"],dt=()=>[Zo,j];return{cacheSize:500,separator:":",theme:{colors:[$s],spacing:[Ra,gr],blur:["none","",xr,j],brightness:dt(),borderColor:[e],borderRadius:["none","","full",xr,j],borderSpacing:re(),borderWidth:aa(),contrast:dt(),grayscale:Ct(),hueRotate:dt(),invert:Ct(),gap:re(),gradientColorStops:[e],gradientColorStopPositions:[$w,gr],inset:ae(),margin:ae(),opacity:dt(),padding:re(),saturate:dt(),scale:dt(),sepia:Ct(),skew:dt(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[xr]}],"break-after":[{"break-after":oa()}],"break-before":[{"break-before":oa()}],"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:[...ra(),j]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ks,j]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:Ct()}],shrink:[{shrink:Ct()}],order:[{order:["first","last","none",Ks,j]}],"grid-cols":[{"grid-cols":[$s]}],"col-start-end":[{col:["auto",{span:["full",Ks,j]},j]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[$s]}],"row-start-end":[{row:["auto",{span:[Ks,j]},j]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...De()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...De(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...De(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],ms:[{ms:[I]}],me:[{me:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[xr]},xr]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xr,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vp]}],"font-family":[{font:[$s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",j]}],"line-clamp":[{"line-clamp":["none",Zo,vp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ra,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ra,gr]}],"underline-offset":[{"underline-offset":["auto",Ra,j]}],"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:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],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",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ra(),Yw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Jw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:de()}],"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:["",...de()]}],"outline-offset":[{"outline-offset":[Ra,j]}],"outline-w":[{outline:[Ra,gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:aa()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Ra,gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xr,ek]}],"shadow-color":[{shadow:[$s]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xr,j]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:dt()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:dt()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ks,j]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],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",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-mt":[{"scroll-mt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-pe":[{"scroll-pe":re()}],"scroll-pt":[{"scroll-pt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"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",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ra,gr,vp]}],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"]}}};var Ay=_w(ok);var c=N(ot(),1);var Re=N(H(),1);var Fy=N(H(),1);function Ey(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xs(...e){return t=>{let a=!1,r=e.map(o=>{let n=Ey(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():Ey(e[o],null)}}}}function Ma(...e){return Fy.useCallback(Xs(...e),e)}var lu=N(ot(),1),ck=Symbol.for("react.lazy"),uu=Re[" use ".trim().toString()];function fk(e){return typeof e=="object"&&e!==null&&"then"in e}function Ny(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ck&&"_payload"in e&&fk(e._payload)}function pk(e){let t=mk(e),a=Re.forwardRef((r,o)=>{let{children:n,...s}=r;Ny(n)&&typeof uu=="function"&&(n=uu(n._payload));let i=Re.Children.toArray(n),l=i.find(gk);if(l){let u=l.props.children,d=i.map(f=>f===l?Re.Children.count(u)>1?Re.Children.only(null):Re.isValidElement(u)?u.props.children:null:f);return(0,lu.jsx)(t,{...s,ref:o,children:Re.isValidElement(u)?Re.cloneElement(u,void 0,d):null})}return(0,lu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}var By=pk("Slot");function mk(e){let t=Re.forwardRef((a,r)=>{let{children:o,...n}=a;if(Ny(o)&&typeof uu=="function"&&(o=uu(o._payload)),Re.isValidElement(o)){let s=yk(o),i=xk(n,o.props);return o.type!==Re.Fragment&&(i.ref=r?Xs(r,s):s),Re.cloneElement(o,i)}return Re.Children.count(o)>1?Re.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hk=Symbol("radix.slottable");function gk(e){return Re.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hk}function xk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function yk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Oy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vy=su,Uy=(e,t)=>a=>{var r;if(t?.variants==null)return Vy(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let d=a?.[u],f=n?.[u];if(d===null)return null;let p=Oy(d)||Oy(f);return o[u][p]}),i=a&&Object.entries(a).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:p,...g}=d;return Object.entries(g).every(y=>{let[v,I]=y;return Array.isArray(I)?I.includes({...n,...i}[v]):{...n,...i}[v]===I})?[...u,f,p]:u},[]);return Vy(e,s,l,a?.class,a?.className)};var B=N(H(),1);var zy=N(H(),1),wk=N(xp(),1);var Ne=N(H(),1);var du=N(ot(),1);function _y(e){let t=vk(e),a=Ne.forwardRef((r,o)=>{let{children:n,...s}=r,i=Ne.Children.toArray(n),l=i.find(Ck);if(l){let u=l.props.children,d=i.map(f=>f===l?Ne.Children.count(u)>1?Ne.Children.only(null):Ne.isValidElement(u)?u.props.children:null:f);return(0,du.jsx)(t,{...s,ref:o,children:Ne.isValidElement(u)?Ne.cloneElement(u,void 0,d):null})}return(0,du.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}function vk(e){let t=Ne.forwardRef((a,r)=>{let{children:o,...n}=a;if(Ne.isValidElement(o)){let s=Ik(o),i=Sk(n,o.props);return o.type!==Ne.Fragment&&(i.ref=r?Xs(r,s):s),Ne.cloneElement(o,i)}return Ne.Children.count(o)>1?Ne.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lk=Symbol("radix.slottable");function Ck(e){return Ne.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lk}function Sk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Ik(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var qy=N(ot(),1),kk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],en=kk.reduce((e,t)=>{let a=_y(`Primitive.${t}`),r=zy.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,qy.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var gt=N(H(),1);var Hy=N(H(),1),Qs=globalThis?.document?Hy.useLayoutEffect:()=>{};var Wy=N(H(),1);function Pk(e,t){return Wy.useReducer((a,r)=>t[a][r]??a,e)}var tn=e=>{let{present:t,children:a}=e,r=Tk(t),o=typeof a=="function"?a({present:r.isPresent}):gt.Children.only(a),n=Ma(r.ref,bk(o));return typeof a=="function"||r.isPresent?gt.cloneElement(o,{ref:n}):null};tn.displayName="Presence";function Tk(e){let[t,a]=gt.useState(),r=gt.useRef(null),o=gt.useRef(e),n=gt.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Pk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return gt.useEffect(()=>{let u=cu(r.current);n.current=i==="mounted"?u:"none"},[i]),Qs(()=>{let u=r.current,d=o.current;if(d!==e){let p=n.current,g=cu(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Qs(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,f=g=>{let v=cu(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(l("ANIMATION_END"),!o.current)){let I=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},p=g=>{g.target===t&&(n.current=cu(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:gt.useCallback(u=>{r.current=u?getComputedStyle(u):null,a(u)},[])}}function cu(e){return e?.animationName||"none"}function bk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Da=N(H(),1),Gy=N(ot(),1);function jy(e,t=[]){let a=[];function r(n,s){let i=Da.createContext(s),l=a.length;a=[...a,s];let u=f=>{let{scope:p,children:g,...y}=f,v=p?.[e]?.[l]||i,I=Da.useMemo(()=>y,Object.values(y));return(0,Gy.jsx)(v.Provider,{value:I,children:g})};u.displayName=n+"Provider";function d(f,p){let g=p?.[e]?.[l]||i,y=Da.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[u,d]}let o=()=>{let n=a.map(s=>Da.createContext(s));return function(i){let l=i?.[e]||n;return Da.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Ak(o,...t)]}function Ak(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let f=l(n)[`__scope${u}`];return{...i,...f}},{});return Da.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}var an=N(H(),1);function yr(e){let t=an.useRef(e);return an.useEffect(()=>{t.current=e}),an.useMemo(()=>(...a)=>t.current?.(...a),[])}var fu=N(H(),1),Rk=N(ot(),1),Mk=fu.createContext(void 0);function Ky(e){let t=fu.useContext(Mk);return e||t||"ltr"}function $y(e,[t,a]){return Math.min(a,Math.max(t,e))}var Nb=!!(typeof window<"u"&&window.document&&window.document.createElement);function vr(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}var Qy=N(H(),1),oe=N(ot(),1);function Dk(e,t){return Qy.useReducer((a,r)=>t[a][r]??a,e)}var Cp="ScrollArea",[Yy,jb]=jy(Cp),[Ek,zt]=Yy(Cp),Zy=B.forwardRef((e,t)=>{let{__scopeScrollArea:a,type:r="hover",dir:o,scrollHideDelay:n=600,...s}=e,[i,l]=B.useState(null),[u,d]=B.useState(null),[f,p]=B.useState(null),[g,y]=B.useState(null),[v,I]=B.useState(null),[h,m]=B.useState(0),[x,S]=B.useState(0),[C,T]=B.useState(!1),[P,k]=B.useState(!1),E=Ma(t,ae=>l(ae)),R=Ky(o);return(0,oe.jsx)(Ek,{scope:a,type:r,dir:R,scrollHideDelay:n,scrollArea:i,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:C,onScrollbarXEnabledChange:T,scrollbarY:v,onScrollbarYChange:I,scrollbarYEnabled:P,onScrollbarYEnabledChange:k,onCornerWidthChange:m,onCornerHeightChange:S,children:(0,oe.jsx)(en.div,{dir:R,...s,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});Zy.displayName=Cp;var Jy="ScrollAreaViewport",ev=B.forwardRef((e,t)=>{let{__scopeScrollArea:a,children:r,nonce:o,...n}=e,s=zt(Jy,a),i=B.useRef(null),l=Ma(t,i,s.onViewportChange);return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,oe.jsx)(en.div,{"data-radix-scroll-area-viewport":"",...n,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,oe.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});ev.displayName=Jy;var ca="ScrollAreaScrollbar",Sp=B.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=zt(ca,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return B.useEffect(()=>(i?n(!0):s(!0),()=>{i?n(!1):s(!1)}),[i,n,s]),o.type==="hover"?(0,oe.jsx)(Fk,{...r,ref:t,forceMount:a}):o.type==="scroll"?(0,oe.jsx)(Nk,{...r,ref:t,forceMount:a}):o.type==="auto"?(0,oe.jsx)(tv,{...r,ref:t,forceMount:a}):o.type==="always"?(0,oe.jsx)(Ip,{...r,ref:t}):null});Sp.displayName=ca;var Fk=B.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=zt(ca,e.__scopeScrollArea),[n,s]=B.useState(!1);return B.useEffect(()=>{let i=o.scrollArea,l=0;if(i){let u=()=>{window.clearTimeout(l),s(!0)},d=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),(0,oe.jsx)(tn,{present:a||n,children:(0,oe.jsx)(tv,{"data-state":n?"visible":"hidden",...r,ref:t})})}),Nk=B.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=zt(ca,e.__scopeScrollArea),n=e.orientation==="horizontal",s=gu(()=>l("SCROLL_END"),100),[i,l]=Dk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return B.useEffect(()=>{if(i==="idle"){let u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[i,o.scrollHideDelay,l]),B.useEffect(()=>{let u=o.viewport,d=n?"scrollLeft":"scrollTop";if(u){let f=u[d],p=()=>{let g=u[d];f!==g&&(l("SCROLL"),s()),f=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,n,l,s]),(0,oe.jsx)(tn,{present:a||i!=="hidden",children:(0,oe.jsx)(Ip,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:vr(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:vr(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),tv=B.forwardRef((e,t)=>{let a=zt(ca,e.__scopeScrollArea),{forceMount:r,...o}=e,[n,s]=B.useState(!1),i=e.orientation==="horizontal",l=gu(()=>{if(a.viewport){let u=a.viewport.offsetWidth<a.viewport.scrollWidth,d=a.viewport.offsetHeight<a.viewport.scrollHeight;s(i?u:d)}},10);return rn(a.viewport,l),rn(a.content,l),(0,oe.jsx)(tn,{present:r||n,children:(0,oe.jsx)(Ip,{"data-state":n?"visible":"hidden",...o,ref:t})})}),Ip=B.forwardRef((e,t)=>{let{orientation:a="vertical",...r}=e,o=zt(ca,e.__scopeScrollArea),n=B.useRef(null),s=B.useRef(0),[i,l]=B.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=nv(i.viewport,i.content),d={...r,sizes:i,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:p=>n.current=p,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:p=>s.current=p};function f(p,g){return zk(p,s.current,i,g)}return a==="horizontal"?(0,oe.jsx)(Bk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let p=o.viewport.scrollLeft,g=Xy(p,i,o.dir);n.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=f(p,o.dir))}}):a==="vertical"?(0,oe.jsx)(Ok,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let p=o.viewport.scrollTop,g=Xy(p,i);n.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=f(p))}}):null}),Bk=B.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=zt(ca,e.__scopeScrollArea),[s,i]=B.useState(),l=B.useRef(null),u=Ma(t,l,n.onScrollbarXChange);return B.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,oe.jsx)(rv,{"data-orientation":"horizontal",...o,ref:u,sizes:a,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":hu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(n.viewport){let p=n.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),iv(p,f)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:mu(s.paddingLeft),paddingEnd:mu(s.paddingRight)}})}})}),Ok=B.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=zt(ca,e.__scopeScrollArea),[s,i]=B.useState(),l=B.useRef(null),u=Ma(t,l,n.onScrollbarYChange);return B.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,oe.jsx)(rv,{"data-orientation":"vertical",...o,ref:u,sizes:a,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":hu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(n.viewport){let p=n.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),iv(p,f)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:mu(s.paddingTop),paddingEnd:mu(s.paddingBottom)}})}})}),[Vk,av]=Yy(ca),rv=B.forwardRef((e,t)=>{let{__scopeScrollArea:a,sizes:r,hasThumb:o,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:f,...p}=e,g=zt(ca,a),[y,v]=B.useState(null),I=Ma(t,E=>v(E)),h=B.useRef(null),m=B.useRef(""),x=g.viewport,S=r.content-r.viewport,C=yr(d),T=yr(l),P=gu(f,10);function k(E){if(h.current){let R=E.clientX-h.current.left,ae=E.clientY-h.current.top;u({x:R,y:ae})}}return B.useEffect(()=>{let E=R=>{let ae=R.target;y?.contains(ae)&&C(R,S)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[x,y,S,C]),B.useEffect(T,[r,T]),rn(y,P),rn(g.content,P),(0,oe.jsx)(Vk,{scope:a,scrollbar:y,hasThumb:o,onThumbChange:yr(n),onThumbPointerUp:yr(s),onThumbPositionChange:T,onThumbPointerDown:yr(i),children:(0,oe.jsx)(en.div,{...p,ref:I,style:{position:"absolute",...p.style},onPointerDown:vr(e.onPointerDown,E=>{E.button===0&&(E.target.setPointerCapture(E.pointerId),h.current=y.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),k(E))}),onPointerMove:vr(e.onPointerMove,k),onPointerUp:vr(e.onPointerUp,E=>{let R=E.target;R.hasPointerCapture(E.pointerId)&&R.releasePointerCapture(E.pointerId),document.body.style.webkitUserSelect=m.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})})}),pu="ScrollAreaThumb",wp=B.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=av(pu,e.__scopeScrollArea);return(0,oe.jsx)(tn,{present:a||o.hasThumb,children:(0,oe.jsx)(Uk,{ref:t,...r})})}),Uk=B.forwardRef((e,t)=>{let{__scopeScrollArea:a,style:r,...o}=e,n=zt(pu,a),s=av(pu,a),{onThumbPositionChange:i}=s,l=Ma(t,f=>s.onThumbChange(f)),u=B.useRef(void 0),d=gu(()=>{u.current&&(u.current(),u.current=void 0)},100);return B.useEffect(()=>{let f=n.viewport;if(f){let p=()=>{if(d(),!u.current){let g=qk(f,i);u.current=g,i()}};return i(),f.addEventListener("scroll",p),()=>f.removeEventListener("scroll",p)}},[n.viewport,d,i]),(0,oe.jsx)(en.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:vr(e.onPointerDownCapture,f=>{let g=f.target.getBoundingClientRect(),y=f.clientX-g.left,v=f.clientY-g.top;s.onThumbPointerDown({x:y,y:v})}),onPointerUp:vr(e.onPointerUp,s.onThumbPointerUp)})});wp.displayName=pu;var kp="ScrollAreaCorner",ov=B.forwardRef((e,t)=>{let a=zt(kp,e.__scopeScrollArea),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?(0,oe.jsx)(_k,{...e,ref:t}):null});ov.displayName=kp;var _k=B.forwardRef((e,t)=>{let{__scopeScrollArea:a,...r}=e,o=zt(kp,a),[n,s]=B.useState(0),[i,l]=B.useState(0),u=!!(n&&i);return rn(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),rn(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),s(d)}),u?(0,oe.jsx)(en.div,{...r,ref:t,style:{width:n,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function mu(e){return e?parseInt(e,10):0}function nv(e,t){let a=e/t;return isNaN(a)?0:a}function hu(e){let t=nv(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-a)*t;return Math.max(r,18)}function zk(e,t,a,r="ltr"){let o=hu(a),n=o/2,s=t||n,i=o-s,l=a.scrollbar.paddingStart+s,u=a.scrollbar.size-a.scrollbar.paddingEnd-i,d=a.content-a.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return sv([l,u],f)(e)}function Xy(e,t,a="ltr"){let r=hu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-o,s=t.content-t.viewport,i=n-r,l=a==="ltr"?[0,s]:[s*-1,0],u=$y(e,l);return sv([0,s],[0,i])(u)}function sv(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(a-e[0])}}function iv(e,t){return e>0&&e<t}var qk=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){let n={left:e.scrollLeft,top:e.scrollTop},s=a.left!==n.left,i=a.top!==n.top;(s||i)&&t(),a=n,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function gu(e,t){let a=yr(e),r=B.useRef(0);return B.useEffect(()=>()=>window.clearTimeout(r.current),[]),B.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(a,t)},[a,t])}function rn(e,t){let a=yr(t);Qs(()=>{let r=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,a])}var lv=Zy,uv=ev;var dv=ov;var yu=N(H());var cv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Pp=e=>{let t=Wk(e);return t.charAt(0).toUpperCase()+t.slice(1)},xu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),fv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Ys=N(H());var pv={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"};var mv=(0,Ys.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>(0,Ys.createElement)("svg",{ref:l,...pv,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:xu("lucide",o),...!n&&!fv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>(0,Ys.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var D=(e,t)=>{let a=(0,yu.forwardRef)(({className:r,...o},n)=>(0,yu.createElement)(mv,{ref:n,iconNode:t,className:xu(`lucide-${cv(Pp(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Pp(e),a};var Gk=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Zs=D("activity",Gk);var jk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],on=D("arrow-left",jk);var Kk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Js=D("arrow-up",Kk);var $k=[["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"}]],ei=D("calendar",$k);var Xk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ti=D("chevron-down",Xk);var Qk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ai=D("chevron-up",Qk);var Yk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Yt=D("circle-alert",Yk);var Zk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nt=D("circle-check",Zk);var Jk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Zt=D("circle-x",Jk);var eP=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],eo=D("clock",eP);var tP=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],Ea=D("command",tP);var aP=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Fa=D("corner-down-left",aP);var rP=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],to=D("credit-card",rP);var oP=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],ao=D("crown",oP);var nP=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],ro=D("dollar-sign",nP);var sP=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],nn=D("file-spreadsheet",sP);var iP=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],sn=D("key",iP);var lP=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],ri=D("laptop",lP);var uP=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jt=D("loader-circle",uP);var dP=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],ln=D("mail",dP);var cP=[["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"}]],un=D("map-pin",cP);var fP=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],oi=D("paperclip",fP);var pP=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],dn=D("refresh-cw",pP);var mP=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ni=D("search",mP);var hP=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],cn=D("shield",hP);var gP=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],si=D("smartphone",gP);var xP=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],xt=D("square-pen",xP);var yP=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],ii=D("trending-up",yP);var vP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],fn=D("users",vP);var LP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oo=D("x",LP);var CP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],li=D("zap",CP);var di=N(ot(),1),fa=N(H(),1);var hv=N(H(),1),pn=(0,hv.createContext)({});var gv=N(H(),1);function mn(e){let t=(0,gv.useRef)(null);return t.current===null&&(t.current=e()),t.current}var bp=N(ot(),1),Cv=N(H(),1),no=N(H(),1);var xv=N(H(),1),Lr=(0,xv.createContext)(null);var vv=N(ot(),1),vu=N(H(),1),Na=N(H(),1);var yv=N(H(),1),hn=(0,yv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Tp=class extends vu.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=a.offsetHeight||0,r.width=a.offsetWidth||0,r.top=a.offsetTop,r.left=a.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function Lv({children:e,isPresent:t}){let a=(0,Na.useId)(),r=(0,Na.useRef)(null),o=(0,Na.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,Na.useContext)(hn);return(0,Na.useInsertionEffect)(()=>{let{width:s,height:i,top:l,left:u}=o.current;if(t||!r.current||!s||!i)return;r.current.dataset.motionPopId=a;let d=document.createElement("style");return n&&(d.nonce=n),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
8
+ `+n.stack}return{value:e,source:t,stack:o,digest:null}}function Fc(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function yf(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var iw=typeof WeakMap=="function"?WeakMap:Map;function jx(e,t,a){a=Da(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Gl||(Gl=!0,Tf=r),yf(e,t)},a}function Kx(e,t,a){a=Da(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){yf(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){yf(e,t),typeof r!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function og(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new iw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=Cw.bind(null,e,t,a),t.then(e,e))}function ng(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sg(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Da(-1,1),t.tag=2,cr(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var lw=Ba.ReactCurrentOwner,xt=!1;function ut(e,t,a,r){t.child=e===null?Sx(t,null,a,r):Jo(t,e.child,a,r)}function ig(e,t,a,r,o){a=a.render;var n=t.ref;return $o(t,o),r=sp(e,t,a,r,n,o),a=ip(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fa(e,t,o)):(Ie&&a&&$f(t),t.flags|=1,ut(e,t,r,o),t.child)}function lg(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!xp(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,$x(e,t,n,r,o)):(e=wl(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:qs,a(s,r)&&e.ref===t.ref)return Fa(e,t,o)}return t.flags|=1,e=mr(n,r),e.ref=t.ref,e.return=t,t.child=e}function $x(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(qs(n,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Fa(e,t,o)}return vf(e,t,a,r,o)}function Xx(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(qo,Pt),Pt|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(qo,Pt),Pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,ge(qo,Pt),Pt|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,ge(qo,Pt),Pt|=r;return ut(e,t,o,a),t.child}function Qx(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function vf(e,t,a,r,o){var n=vt(a)?Zr:ot.current;return n=Yo(t,n),$o(t,o),a=sp(e,t,a,r,n,o),r=ip(),e!==null&&!xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fa(e,t,o)):(Ie&&r&&$f(t),t.flags|=1,ut(e,t,a,o),t.child)}function ug(e,t,a,r,o){if(vt(a)){var n=!0;Fl(t)}else n=!1;if($o(t,o),t.stateNode===null)Cl(e,t),Gx(t,a,r),xf(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=qt(u):(u=vt(a)?Zr:ot.current,u=Yo(t,u));var d=a.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&rg(t,s,r,u),ar=!1;var f=t.memoizedState;s.state=f,_l(t,r,s,o),l=t.memoizedState,i!==r||f!==l||yt.current||ar?(typeof d=="function"&&(gf(t,a,d,r),l=t.memoizedState),(i=ar||ag(t,a,i,r,f,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,wx(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:Yt(t.type,i),s.props=u,c=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=qt(l):(l=vt(a)?Zr:ot.current,l=Yo(t,l));var g=a.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==c||f!==l)&&rg(t,s,r,l),ar=!1,f=t.memoizedState,s.state=f,_l(t,r,s,o);var L=t.memoizedState;i!==c||f!==L||yt.current||ar?(typeof g=="function"&&(gf(t,a,g,r),L=t.memoizedState),(u=ar||ag(t,a,u,r,f,L,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,L,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,L,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),s.props=r,s.state=L,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Lf(e,t,a,r,n,o)}function Lf(e,t,a,r,o,n){Qx(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&$h(t,a,!1),Fa(e,t,n);r=t.stateNode,lw.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Jo(t,e.child,null,n),t.child=Jo(t,null,i,n)):ut(e,t,i,n),t.memoizedState=r.state,o&&$h(t,a,!0),t.child}function Yx(e){var t=e.stateNode;t.pendingContext?Kh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Kh(e,t.context,!1),ap(e,t.containerInfo)}function dg(e,t,a,r,o){return Zo(),Qf(o),t.flags|=256,ut(e,t,a,r),t.child}var Cf={dehydrated:null,treeContext:null,retryLane:0};function Sf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zx(e,t,a){var r=t.pendingProps,o=ke.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(ke,o&1),e===null)return mf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=nu(s,r,0,null),e=Yr(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Sf(a),t.memoizedState=Cf,e):dp(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return uw(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=mr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=mr(i,n):(n=Yr(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?Sf(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=Cf,r}return n=e.child,e=n.sibling,r=mr(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function dp(e,t){return t=nu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fl(e,t,a,r){return r!==null&&Qf(r),Jo(t,e.child,null,a),e=dp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uw(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=Fc(Error(R(422))),fl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=nu({mode:"visible",children:r.children},o,0,null),n=Yr(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&Jo(t,e.child,null,s),t.child.memoizedState=Sf(s),t.memoizedState=Cf,n);if((t.mode&1)===0)return fl(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(R(419)),r=Fc(n,r,void 0),fl(e,t,s,r)}if(i=(s&e.childLanes)!==0,xt||i){if(r=ze,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Ea(e,o),ta(r,e,o,-1))}return gp(),r=Fc(Error(R(421))),fl(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Sw.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Tt=dr(o.nextSibling),At=t,Ie=!0,Jt=null,e!==null&&(Ut[_t++]=Aa,Ut[_t++]=Ra,Ut[_t++]=Jr,Aa=e.id,Ra=e.overflow,Jr=t),t=dp(t,r.children),t.flags|=4096,t)}function cg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hf(e.return,t,a)}function Bc(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function Jx(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(ut(e,t,r.children,a),r=ke.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cg(e,a,t);else if(e.tag===19)cg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(ke,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&zl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Bc(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&zl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Bc(t,!0,a,null,n);break;case"together":Bc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),to|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,a=mr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=mr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function dw(e,t,a){switch(t.tag){case 3:Yx(t),Zo();break;case 5:kx(t);break;case 1:vt(t.type)&&Fl(t);break;case 4:ap(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Vl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(ke,ke.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?Zx(e,t,a):(ge(ke,ke.current&1),e=Fa(e,t,a),e!==null?e.sibling:null);ge(ke,ke.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Jx(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,Xx(e,t,a)}return Fa(e,t,a)}var ey,If,ty,ay;ey=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};If=function(){};ty=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xr(pa.current);var n=null;switch(a){case"input":o=Wc(e,o),r=Wc(e,r),n=[];break;case"select":o=Pe({},o,{value:void 0}),r=Pe({},r,{value:void 0}),n=[];break;case"textarea":o=Kc(e,o),r=Kc(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Nl)}Xc(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bs.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ye("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};ay=function(e,t,a,r){a!==r&&(t.flags|=4)};function Ls(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function cw(e,t,a){var r=t.pendingProps;switch(Xf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return vt(t.type)&&El(),at(t),null;case 3:return r=t.stateNode,en(),ve(yt),ve(ot),op(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jt!==null&&(Df(Jt),Jt=null))),If(e,t),at(t),null;case 5:rp(t);var o=Xr($s.current);if(a=t.type,e!==null&&t.stateNode!=null)ty(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return at(t),null}if(e=Xr(pa.current),dl(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[ca]=t,r[js]=n,e=(t.mode&1)!==0,a){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(o=0;o<bs.length;o++)ye(bs[o],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":vh(r,n),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},ye("invalid",r);break;case"textarea":Ch(r,n),ye("invalid",r)}Xc(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&ul(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&ul(r.textContent,i,e),o=["children",""+i]):Bs.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ye("scroll",r)}switch(a){case"input":Yi(r),Lh(r,n,!0);break;case"textarea":Yi(r),Sh(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=Nl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Rg(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[ca]=t,e[js]=r,ey(e,t,!1,!1),t.stateNode=e;e:{switch(s=Qc(a,r),a){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;o<bs.length;o++)ye(bs[o],e);o=r;break;case"source":ye("error",e),o=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),o=r;break;case"details":ye("toggle",e),o=r;break;case"input":vh(e,r),o=Wc(e,r),ye("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Pe({},r,{value:void 0}),ye("invalid",e);break;case"textarea":Ch(e,r),o=Kc(e,r),ye("invalid",e);break;default:o=r}Xc(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?Ng(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Dg(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&Os(e,l):typeof l=="number"&&Os(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Bs.hasOwnProperty(n)?l!=null&&n==="onScroll"&&ye("scroll",e):l!=null&&Ef(e,n,l,s))}switch(a){case"input":Yi(e),Lh(e,r,!1);break;case"textarea":Yi(e),Sh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+hr(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Wo(e,!!r.multiple,n,!1):r.defaultValue!=null&&Wo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Nl)}switch(a){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 at(t),null;case 6:if(e&&t.stateNode!=null)ay(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(a=Xr($s.current),Xr(pa.current),dl(t)){if(r=t.stateNode,a=t.memoizedProps,r[ca]=t,(n=r.nodeValue!==a)&&(e=At,e!==null))switch(e.tag){case 3:ul(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ul(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[ca]=t,t.stateNode=r}return at(t),null;case 13:if(ve(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&Tt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Lx(),Zo(),t.flags|=98560,n=!1;else if(n=dl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(R(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(R(317));n[ca]=t}else Zo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),n=!1}else Jt!==null&&(Df(Jt),Jt=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ke.current&1)!==0?Oe===0&&(Oe=3):gp())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return en(),If(e,t),e===null&&Ws(t.stateNode.containerInfo),at(t),null;case 10:return Jf(t.type._context),at(t),null;case 17:return vt(t.type)&&El(),at(t),null;case 19:if(ve(ke),n=t.memoizedState,n===null)return at(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)Ls(n,!1);else{if(Oe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=zl(e),s!==null){for(t.flags|=128,Ls(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return ge(ke,ke.current&1|2),t.child}e=e.sibling}n.tail!==null&&Re()>an&&(t.flags|=128,r=!0,Ls(n,!1),t.lanes=4194304)}else{if(!r)if(e=zl(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),Ls(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Ie)return at(t),null}else 2*Re()-n.renderingStartTime>an&&a!==1073741824&&(t.flags|=128,r=!0,Ls(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Re(),t.sibling=null,a=ke.current,ge(ke,r?a&1|2:a&1),t):(at(t),null);case 22:case 23:return hp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Pt&1073741824)!==0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function fw(e,t){switch(Xf(t),t.tag){case 1:return vt(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en(),ve(yt),ve(ot),op(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return rp(t),null;case 13:if(ve(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Zo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(ke),null;case 4:return en(),null;case 10:return Jf(t.type._context),null;case 22:case 23:return hp(),null;case 24:return null;default:return null}}var pl=!1,rt=!1,pw=typeof WeakSet=="function"?WeakSet:Set,B=null;function Ho(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Te(e,t,r)}else a.current=null}function wf(e,t,a){try{a()}catch(r){Te(e,t,r)}}var fg=!1;function mw(e,t){if(sf=Rl,e=ix(),Kf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var g;c!==a||o!==0&&c.nodeType!==3||(i=s+o),c!==n||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(g=c.firstChild)!==null;)f=c,c=g;for(;;){if(c===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++d===r&&(l=s),(g=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=g}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(lf={focusedElem:e,selectionRange:a},Rl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var L=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(L!==null){var v=L.memoizedProps,I=L.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Yt(t.type,v),I);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){Te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return L=fg,fg=!1,L}function Ns(e,t,a){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 n=o.destroy;o.destroy=void 0,n!==void 0&&wf(t,a,n)}o=o.next}while(o!==r)}}function ru(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function kf(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function ry(e){var t=e.alternate;t!==null&&(e.alternate=null,ry(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ca],delete t[js],delete t[cf],delete t[QI],delete t[YI])),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 oy(e){return e.tag===5||e.tag===3||e.tag===4}function pg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oy(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 bf(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Nl));else if(r!==4&&(e=e.child,e!==null))for(bf(e,t,a),e=e.sibling;e!==null;)bf(e,t,a),e=e.sibling}function Pf(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pf(e,t,a),e=e.sibling;e!==null;)Pf(e,t,a),e=e.sibling}var We=null,Zt=!1;function er(e,t,a){for(a=a.child;a!==null;)ny(e,t,a),a=a.sibling}function ny(e,t,a){if(fa&&typeof fa.onCommitFiberUnmount=="function")try{fa.onCommitFiberUnmount(Xl,a)}catch{}switch(a.tag){case 5:rt||Ho(a,t);case 6:var r=We,o=Zt;We=null,er(e,t,a),We=r,Zt=o,We!==null&&(Zt?(e=We,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):We.removeChild(a.stateNode));break;case 18:We!==null&&(Zt?(e=We,a=a.stateNode,e.nodeType===8?Ac(e.parentNode,a):e.nodeType===1&&Ac(e,a),zs(e)):Ac(We,a.stateNode));break;case 4:r=We,o=Zt,We=a.stateNode.containerInfo,Zt=!0,er(e,t,a),We=r,Zt=o;break;case 0:case 11:case 14:case 15:if(!rt&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&wf(a,t,s),o=o.next}while(o!==r)}er(e,t,a);break;case 1:if(!rt&&(Ho(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Te(a,t,i)}er(e,t,a);break;case 21:er(e,t,a);break;case 22:a.mode&1?(rt=(r=rt)||a.memoizedState!==null,er(e,t,a),rt=r):er(e,t,a);break;default:er(e,t,a)}}function mg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new pw),t.forEach(function(r){var o=Iw.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function Qt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:We=i.stateNode,Zt=!1;break e;case 3:We=i.stateNode.containerInfo,Zt=!0;break e;case 4:We=i.stateNode.containerInfo,Zt=!0;break e}i=i.return}if(We===null)throw Error(R(160));ny(n,s,o),We=null,Zt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Te(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sy(t,e),t=t.sibling}function sy(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),ua(e),r&4){try{Ns(3,e,e.return),ru(3,e)}catch(v){Te(e,e.return,v)}try{Ns(5,e,e.return)}catch(v){Te(e,e.return,v)}}break;case 1:Qt(t,e),ua(e),r&512&&a!==null&&Ho(a,a.return);break;case 5:if(Qt(t,e),ua(e),r&512&&a!==null&&Ho(a,a.return),e.flags&32){var o=e.stateNode;try{Os(o,"")}catch(v){Te(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Tg(o,n),Qc(i,s);var u=Qc(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?Ng(o,c):d==="dangerouslySetInnerHTML"?Dg(o,c):d==="children"?Os(o,c):Ef(o,d,c,u)}switch(i){case"input":Gc(o,n);break;case"textarea":Ag(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var g=n.value;g!=null?Wo(o,!!n.multiple,g,!1):f!==!!n.multiple&&(n.defaultValue!=null?Wo(o,!!n.multiple,n.defaultValue,!0):Wo(o,!!n.multiple,n.multiple?[]:"",!1))}o[js]=n}catch(v){Te(e,e.return,v)}}break;case 6:if(Qt(t,e),ua(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(v){Te(e,e.return,v)}}break;case 3:if(Qt(t,e),ua(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{zs(t.containerInfo)}catch(v){Te(e,e.return,v)}break;case 4:Qt(t,e),ua(e);break;case 13:Qt(t,e),ua(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(pp=Re())),r&4&&mg(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(rt=(u=rt)||d,Qt(t,e),rt=u):Qt(t,e),ua(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(B=e,d=e.child;d!==null;){for(c=B=d;B!==null;){switch(f=B,g=f.child,f.tag){case 0:case 11:case 14:case 15:Ns(4,f,f.return);break;case 1:Ho(f,f.return);var L=f.stateNode;if(typeof L.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,L.props=t.memoizedProps,L.state=t.memoizedState,L.componentWillUnmount()}catch(v){Te(r,a,v)}}break;case 5:Ho(f,f.return);break;case 22:if(f.memoizedState!==null){gg(c);continue}}g!==null?(g.return=f,B=g):gg(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=Mg("display",s))}catch(v){Te(e,e.return,v)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){Te(e,e.return,v)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Qt(t,e),ua(e),r&4&&mg(e);break;case 21:break;default:Qt(t,e),ua(e)}}function ua(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(oy(a)){var r=a;break e}a=a.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Os(o,""),r.flags&=-33);var n=pg(e);Pf(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=pg(e);bf(e,i,s);break;default:throw Error(R(161))}}catch(l){Te(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hw(e,t,a){B=e,iy(e,t,a)}function iy(e,t,a){for(var r=(e.mode&1)!==0;B!==null;){var o=B,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||pl;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||rt;i=pl;var u=rt;if(pl=s,(rt=l)&&!u)for(B=o;B!==null;)s=B,l=s.child,s.tag===22&&s.memoizedState!==null?xg(o):l!==null?(l.return=s,B=l):xg(o);for(;n!==null;)B=n,iy(n,t,a),n=n.sibling;B=o,pl=i,rt=u}hg(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,B=n):hg(e,t,a)}}function hg(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:rt||ru(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:Yt(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&Jh(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}Jh(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&zs(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}rt||t.flags&512&&kf(t)}catch(f){Te(t,t.return,f)}}if(t===e){B=null;break}if(a=t.sibling,a!==null){a.return=t.return,B=a;break}B=t.return}}function gg(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}function xg(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{ru(4,t)}catch(l){Te(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Te(t,o,l)}}var n=t.return;try{kf(t)}catch(l){Te(t,n,l)}break;case 5:var s=t.return;try{kf(t)}catch(l){Te(t,s,l)}}}catch(l){Te(t,t.return,l)}if(t===e){B=null;break}var i=t.sibling;if(i!==null){i.return=t.return,B=i;break}B=t.return}}var gw=Math.ceil,Wl=Ba.ReactCurrentDispatcher,cp=Ba.ReactCurrentOwner,Ht=Ba.ReactCurrentBatchConfig,ne=0,ze=null,Ne=null,Ge=0,Pt=0,qo=yr(0),Oe=0,Zs=null,to=0,ou=0,fp=0,Es=null,gt=null,pp=0,an=1/0,Pa=null,Gl=!1,Tf=null,fr=null,ml=!1,sr=null,jl=0,Fs=0,Af=null,Sl=-1,Il=0;function dt(){return(ne&6)!==0?Re():Sl!==-1?Sl:Sl=Re()}function pr(e){return(e.mode&1)===0?1:(ne&2)!==0&&Ge!==0?Ge&-Ge:JI.transition!==null?(Il===0&&(Il=Gg()),Il):(e=fe,e!==0||(e=window.event,e=e===void 0?16:Zg(e.type)),e)}function ta(e,t,a,r){if(50<Fs)throw Fs=0,Af=null,Error(R(185));Js(e,a,r),((ne&2)===0||e!==ze)&&(e===ze&&((ne&2)===0&&(ou|=a),Oe===4&&or(e,Ge)),Lt(e,r),a===1&&ne===0&&(t.mode&1)===0&&(an=Re()+500,eu&&vr()))}function Lt(e,t){var a=e.callbackNode;tI(e,t);var r=Al(e,e===ze?Ge:0);if(r===0)a!==null&&kh(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&kh(a),t===1)e.tag===0?ZI(yg.bind(null,e)):xx(yg.bind(null,e)),$I(function(){(ne&6)===0&&vr()}),a=null;else{switch(jg(r)){case 1:a=Uf;break;case 4:a=qg;break;case 16:a=Tl;break;case 536870912:a=Wg;break;default:a=Tl}a=hy(a,ly.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function ly(e,t){if(Sl=-1,Il=0,(ne&6)!==0)throw Error(R(327));var a=e.callbackNode;if(Xo()&&e.callbackNode!==a)return null;var r=Al(e,e===ze?Ge:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Kl(e,r);else{t=r;var o=ne;ne|=2;var n=dy();(ze!==e||Ge!==t)&&(Pa=null,an=Re()+500,Qr(e,t));do try{vw();break}catch(i){uy(e,i)}while(!0);Zf(),Wl.current=n,ne=o,Ne!==null?t=0:(ze=null,Ge=0,t=Oe)}if(t!==0){if(t===2&&(o=tf(e),o!==0&&(r=o,t=Rf(e,o))),t===1)throw a=Zs,Qr(e,0),or(e,r),Lt(e,Re()),a;if(t===6)or(e,r);else{if(o=e.current.alternate,(r&30)===0&&!xw(o)&&(t=Kl(e,r),t===2&&(n=tf(e),n!==0&&(r=n,t=Rf(e,n))),t===1))throw a=Zs,Qr(e,0),or(e,r),Lt(e,Re()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:jr(e,gt,Pa);break;case 3:if(or(e,r),(r&130023424)===r&&(t=pp+500-Re(),10<t)){if(Al(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){dt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=df(jr.bind(null,e,gt,Pa),t);break}jr(e,gt,Pa);break;case 4:if(or(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ea(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gw(r/1960))-r,10<r){e.timeoutHandle=df(jr.bind(null,e,gt,Pa),r);break}jr(e,gt,Pa);break;case 5:jr(e,gt,Pa);break;default:throw Error(R(329))}}}return Lt(e,Re()),e.callbackNode===a?ly.bind(null,e):null}function Rf(e,t){var a=Es;return e.current.memoizedState.isDehydrated&&(Qr(e,t).flags|=256),e=Kl(e,t),e!==2&&(t=gt,gt=a,t!==null&&Df(t)),e}function Df(e){gt===null?gt=e:gt.push.apply(gt,e)}function xw(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!aa(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t){for(t&=~fp,t&=~ou,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-ea(t),r=1<<a;e[a]=-1,t&=~r}}function yg(e){if((ne&6)!==0)throw Error(R(327));Xo();var t=Al(e,0);if((t&1)===0)return Lt(e,Re()),null;var a=Kl(e,t);if(e.tag!==0&&a===2){var r=tf(e);r!==0&&(t=r,a=Rf(e,r))}if(a===1)throw a=Zs,Qr(e,0),or(e,t),Lt(e,Re()),a;if(a===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jr(e,gt,Pa),Lt(e,Re()),null}function mp(e,t){var a=ne;ne|=1;try{return e(t)}finally{ne=a,ne===0&&(an=Re()+500,eu&&vr())}}function ao(e){sr!==null&&sr.tag===0&&(ne&6)===0&&Xo();var t=ne;ne|=1;var a=Ht.transition,r=fe;try{if(Ht.transition=null,fe=1,e)return e()}finally{fe=r,Ht.transition=a,ne=t,(ne&6)===0&&vr()}}function hp(){Pt=qo.current,ve(qo)}function Qr(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,KI(a)),Ne!==null)for(a=Ne.return;a!==null;){var r=a;switch(Xf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&El();break;case 3:en(),ve(yt),ve(ot),op();break;case 5:rp(r);break;case 4:en();break;case 13:ve(ke);break;case 19:ve(ke);break;case 10:Jf(r.type._context);break;case 22:case 23:hp()}a=a.return}if(ze=e,Ne=e=mr(e.current,null),Ge=Pt=t,Oe=0,Zs=null,fp=ou=to=0,gt=Es=null,$r!==null){for(t=0;t<$r.length;t++)if(a=$r[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}$r=null}return e}function uy(e,t){do{var a=Ne;try{if(Zf(),vl.current=ql,Hl){for(var r=be.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Hl=!1}if(eo=0,_e=Be=be=null,Ms=!1,Xs=0,cp.current=null,a===null||a.return===null){Oe=1,Zs=t,Ne=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=Ge,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=i,c=d.tag;if((d.mode&1)===0&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=ng(s);if(g!==null){g.flags&=-257,sg(g,s,i,n,t),g.mode&1&&og(n,u,t),t=g,l=u;var L=t.updateQueue;if(L===null){var v=new Set;v.add(l),t.updateQueue=v}else L.add(l);break e}else{if((t&1)===0){og(n,u,t),gp();break e}l=Error(R(426))}}else if(Ie&&i.mode&1){var I=ng(s);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),sg(I,s,i,n,t),Qf(tn(l,i));break e}}n=l=tn(l,i),Oe!==4&&(Oe=2),Es===null?Es=[n]:Es.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var h=jx(n,l,t);Zh(n,h);break e;case 1:i=l;var m=n.type,x=n.stateNode;if((n.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(fr===null||!fr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var S=Kx(n,i,t);Zh(n,S);break e}}n=n.return}while(n!==null)}fy(a)}catch(w){t=w,Ne===a&&a!==null&&(Ne=a=a.return);continue}break}while(!0)}function dy(){var e=Wl.current;return Wl.current=ql,e===null?ql:e}function gp(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),ze===null||(to&268435455)===0&&(ou&268435455)===0||or(ze,Ge)}function Kl(e,t){var a=ne;ne|=2;var r=dy();(ze!==e||Ge!==t)&&(Pa=null,Qr(e,t));do try{yw();break}catch(o){uy(e,o)}while(!0);if(Zf(),ne=a,Wl.current=r,Ne!==null)throw Error(R(261));return ze=null,Ge=0,Oe}function yw(){for(;Ne!==null;)cy(Ne)}function vw(){for(;Ne!==null&&!jS();)cy(Ne)}function cy(e){var t=my(e.alternate,e,Pt);e.memoizedProps=e.pendingProps,t===null?fy(e):Ne=t,cp.current=null}function fy(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=cw(a,t,Pt),a!==null){Ne=a;return}}else{if(a=fw(a,t),a!==null){a.flags&=32767,Ne=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Ne=null;return}}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Oe===0&&(Oe=5)}function jr(e,t,a){var r=fe,o=Ht.transition;try{Ht.transition=null,fe=1,Lw(e,t,a,r)}finally{Ht.transition=o,fe=r}return null}function Lw(e,t,a,r){do Xo();while(sr!==null);if((ne&6)!==0)throw Error(R(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(aI(e,n),e===ze&&(Ne=ze=null,Ge=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||ml||(ml=!0,hy(Tl,function(){return Xo(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=Ht.transition,Ht.transition=null;var s=fe;fe=1;var i=ne;ne|=4,cp.current=null,mw(e,a),sy(a,e),HI(lf),Rl=!!sf,lf=sf=null,e.current=a,hw(a,e,o),KS(),ne=i,fe=s,Ht.transition=n}else e.current=a;if(ml&&(ml=!1,sr=e,jl=o),n=e.pendingLanes,n===0&&(fr=null),QS(a.stateNode,r),Lt(e,Re()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(Gl)throw Gl=!1,e=Tf,Tf=null,e;return(jl&1)!==0&&e.tag!==0&&Xo(),n=e.pendingLanes,(n&1)!==0?e===Af?Fs++:(Fs=0,Af=e):Fs=0,vr(),null}function Xo(){if(sr!==null){var e=jg(jl),t=Ht.transition,a=fe;try{if(Ht.transition=null,fe=16>e?16:e,sr===null)var r=!1;else{if(e=sr,sr=null,jl=0,(ne&6)!==0)throw Error(R(331));var o=ne;for(ne|=4,B=e.current;B!==null;){var n=B,s=n.child;if((B.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(B=u;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:Ns(8,d,n)}var c=d.child;if(c!==null)c.return=d,B=c;else for(;B!==null;){d=B;var f=d.sibling,g=d.return;if(ry(d),d===u){B=null;break}if(f!==null){f.return=g,B=f;break}B=g}}}var L=n.alternate;if(L!==null){var v=L.child;if(v!==null){L.child=null;do{var I=v.sibling;v.sibling=null,v=I}while(v!==null)}}B=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,B=s;else e:for(;B!==null;){if(n=B,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Ns(9,n,n.return)}var h=n.sibling;if(h!==null){h.return=n.return,B=h;break e}B=n.return}}var m=e.current;for(B=m;B!==null;){s=B;var x=s.child;if((s.subtreeFlags&2064)!==0&&x!==null)x.return=s,B=x;else e:for(s=m;B!==null;){if(i=B,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:ru(9,i)}}catch(w){Te(i,i.return,w)}if(i===s){B=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,B=S;break e}B=i.return}}if(ne=o,vr(),fa&&typeof fa.onPostCommitFiberRoot=="function")try{fa.onPostCommitFiberRoot(Xl,e)}catch{}r=!0}return r}finally{fe=a,Ht.transition=t}}return!1}function vg(e,t,a){t=tn(a,t),t=jx(e,t,1),e=cr(e,t,1),t=dt(),e!==null&&(Js(e,1,t),Lt(e,t))}function Te(e,t,a){if(e.tag===3)vg(e,e,a);else for(;t!==null;){if(t.tag===3){vg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fr===null||!fr.has(r))){e=tn(a,e),e=Kx(t,e,1),t=cr(t,e,1),e=dt(),t!==null&&(Js(t,1,e),Lt(t,e));break}}t=t.return}}function Cw(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=dt(),e.pingedLanes|=e.suspendedLanes&a,ze===e&&(Ge&a)===a&&(Oe===4||Oe===3&&(Ge&130023424)===Ge&&500>Re()-pp?Qr(e,0):fp|=a),Lt(e,t)}function py(e,t){t===0&&((e.mode&1)===0?t=1:(t=el,el<<=1,(el&130023424)===0&&(el=4194304)));var a=dt();e=Ea(e,t),e!==null&&(Js(e,t,a),Lt(e,a))}function Sw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),py(e,a)}function Iw(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),py(e,a)}var my;my=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)xt=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return xt=!1,dw(e,t,a);xt=(e.flags&131072)!==0}else xt=!1,Ie&&(t.flags&1048576)!==0&&yx(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cl(e,t),e=t.pendingProps;var o=Yo(t,ot.current);$o(t,a),o=sp(null,t,r,e,o,a);var n=ip();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,vt(r)?(n=!0,Fl(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tp(t),o.updater=au,t.stateNode=o,o._reactInternals=t,xf(t,r,e,a),t=Lf(null,t,r,!0,n,a)):(t.tag=0,Ie&&n&&$f(t),ut(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Cl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=kw(r),e=Yt(r,e),o){case 0:t=vf(null,t,r,e,a);break e;case 1:t=ug(null,t,r,e,a);break e;case 11:t=ig(null,t,r,e,a);break e;case 14:t=lg(null,t,r,Yt(r.type,e),a);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),vf(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),ug(e,t,r,o,a);case 3:e:{if(Yx(t),e===null)throw Error(R(387));r=t.pendingProps,n=t.memoizedState,o=n.element,wx(e,t),_l(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=tn(Error(R(423)),t),t=dg(e,t,r,a,o);break e}else if(r!==o){o=tn(Error(R(424)),t),t=dg(e,t,r,a,o);break e}else for(Tt=dr(t.stateNode.containerInfo.firstChild),At=t,Ie=!0,Jt=null,a=Sx(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Zo(),r===o){t=Fa(e,t,a);break e}ut(e,t,r,a)}t=t.child}return t;case 5:return kx(t),e===null&&mf(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,uf(r,o)?s=null:n!==null&&uf(r,n)&&(t.flags|=32),Qx(e,t),ut(e,t,s,a),t.child;case 6:return e===null&&mf(t),null;case 13:return Zx(e,t,a);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jo(t,null,r,a):ut(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),ig(e,t,r,o,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,ge(Vl,r._currentValue),r._currentValue=s,n!==null)if(aa(n.value,s)){if(n.children===o.children&&!yt.current){t=Fa(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=Da(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),hf(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(R(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),hf(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}ut(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$o(t,a),o=qt(o),r=r(o),t.flags|=1,ut(e,t,r,a),t.child;case 14:return r=t.type,o=Yt(r,t.pendingProps),o=Yt(r.type,o),lg(e,t,r,o,a);case 15:return $x(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Cl(e,t),t.tag=1,vt(r)?(e=!0,Fl(t)):e=!1,$o(t,a),Gx(t,r,o),xf(t,r,o,a),Lf(null,t,r,!0,e,a);case 19:return Jx(e,t,a);case 22:return Xx(e,t,a)}throw Error(R(156,t.tag))};function hy(e,t){return Hg(e,t)}function ww(e,t,a,r){this.tag=e,this.key=a,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 zt(e,t,a,r){return new ww(e,t,a,r)}function xp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kw(e){if(typeof e=="function")return xp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Of)return 14}return 2}function mr(e,t){var a=e.alternate;return a===null?(a=zt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function wl(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")xp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case No:return Yr(a.children,o,n,t);case Ff:s=8,o|=8;break;case _c:return e=zt(12,a,t,o|2),e.elementType=_c,e.lanes=n,e;case zc:return e=zt(13,a,t,o),e.elementType=zc,e.lanes=n,e;case Hc:return e=zt(19,a,t,o),e.elementType=Hc,e.lanes=n,e;case kg:return nu(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ig:s=10;break e;case wg:s=9;break e;case Bf:s=11;break e;case Of:s=14;break e;case tr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=zt(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function Yr(e,t,a,r){return e=zt(7,e,r,t),e.lanes=a,e}function nu(e,t,a,r){return e=zt(22,e,r,t),e.elementType=kg,e.lanes=a,e.stateNode={isHidden:!1},e}function Oc(e,t,a){return e=zt(6,e,null,t),e.lanes=a,e}function Vc(e,t,a){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bw(e,t,a,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=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yp(e,t,a,r,o,n,s,i,l){return e=new bw(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=zt(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},tp(n),e}function Pw(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function gy(e){if(!e)return gr;e=e._reactInternals;e:{if(oo(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(vt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var a=e.type;if(vt(a))return gx(e,a,t)}return t}function xy(e,t,a,r,o,n,s,i,l){return e=yp(a,r,!0,e,o,n,s,i,l),e.context=gy(null),a=e.current,r=dt(),o=pr(a),n=Da(r,o),n.callback=t??null,cr(a,n,o),e.current.lanes=o,Js(e,o,r),Lt(e,r),e}function su(e,t,a,r){var o=t.current,n=dt(),s=pr(o);return a=gy(a),t.context===null?t.context=a:t.pendingContext=a,t=Da(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=cr(o,t,s),e!==null&&(ta(e,o,s,n),yl(e,o,s)),s}function $l(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Lg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function vp(e,t){Lg(e,t),(e=e.alternate)&&Lg(e,t)}function Tw(){return null}var yy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Lp(e){this._internalRoot=e}iu.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));su(e,t,null,null)};iu.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ao(function(){su(null,e,null,null)}),t[Na]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xg();e={blockedOn:null,target:e,priority:t};for(var a=0;a<rr.length&&t!==0&&t<rr[a].priority;a++);rr.splice(a,0,e),a===0&&Yg(e)}};function Cp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cg(){}function Aw(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=$l(s);n.call(u)}}var s=xy(t,r,e,0,null,!1,!1,"",Cg);return e._reactRootContainer=s,e[Na]=s.current,Ws(e.nodeType===8?e.parentNode:e),ao(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=$l(l);i.call(u)}}var l=yp(e,0,!1,null,null,!1,!1,"",Cg);return e._reactRootContainer=l,e[Na]=l.current,Ws(e.nodeType===8?e.parentNode:e),ao(function(){su(t,l,a,r)}),l}function uu(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=$l(s);i.call(l)}}su(t,s,e,o)}else s=Aw(a,t,e,o,r);return $l(s)}Kg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=ks(t.pendingLanes);a!==0&&(_f(t,a|1),Lt(t,Re()),(ne&6)===0&&(an=Re()+500,vr()))}break;case 13:ao(function(){var r=Ea(e,1);if(r!==null){var o=dt();ta(r,e,1,o)}}),vp(e,1)}};zf=function(e){if(e.tag===13){var t=Ea(e,134217728);if(t!==null){var a=dt();ta(t,e,134217728,a)}vp(e,134217728)}};$g=function(e){if(e.tag===13){var t=pr(e),a=Ea(e,t);if(a!==null){var r=dt();ta(a,e,t,r)}vp(e,t)}};Xg=function(){return fe};Qg=function(e,t){var a=fe;try{return fe=e,t()}finally{fe=a}};Zc=function(e,t,a){switch(t){case"input":if(Gc(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=Jl(r);if(!o)throw Error(R(90));Pg(r),Gc(r,o)}}}break;case"textarea":Ag(e,a);break;case"select":t=a.value,t!=null&&Wo(e,!!a.multiple,t,!1)}};Bg=mp;Og=ao;var Rw={usingClientEntryPoint:!1,Events:[ti,Oo,Jl,Eg,Fg,mp]},Cs={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Dw={bundleType:Cs.bundleType,version:Cs.version,rendererPackageName:Cs.rendererPackageName,rendererConfig:Cs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ba.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_g(e),e===null?null:e.stateNode},findFiberByHostInstance:Cs.findFiberByHostInstance||Tw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ss=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ss.isDisabled&&Ss.supportsFiber))try{Xl=Ss.inject(Dw),fa=Ss}catch{}var Ss;Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rw;Mt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cp(t))throw Error(R(200));return Pw(e,t,null,a)};Mt.createRoot=function(e,t){if(!Cp(e))throw Error(R(299));var a=!1,r="",o=yy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=yp(e,1,!1,null,null,a,!1,r,o),e[Na]=t.current,Ws(e.nodeType===8?e.parentNode:e),new Lp(t)};Mt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=_g(t),e=e===null?null:e.stateNode,e};Mt.flushSync=function(e){return ao(e)};Mt.hydrate=function(e,t,a){if(!lu(t))throw Error(R(200));return uu(null,e,t,!0,a)};Mt.hydrateRoot=function(e,t,a){if(!Cp(e))throw Error(R(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=yy;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=xy(t,null,e,1,a??null,o,!1,n,s),e[Na]=t.current,Ws(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new iu(t)};Mt.render=function(e,t,a){if(!lu(t))throw Error(R(200));return uu(null,e,t,!1,a)};Mt.unmountComponentAtNode=function(e){if(!lu(e))throw Error(R(40));return e._reactRootContainer?(ao(function(){uu(null,null,e,!1,function(){e._reactRootContainer=null,e[Na]=null})}),!0):!1};Mt.unstable_batchedUpdates=mp;Mt.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!lu(a))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return uu(e,t,a,!1,r)};Mt.version="18.3.1-next-f1338f8080-20240426"});var Sp=ba((cT,Cy)=>{"use strict";function Ly(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ly)}catch(e){console.error(e)}}Ly(),Cy.exports=vy()});var Iy=ba(Ip=>{"use strict";var Sy=Sp();Ip.createRoot=Sy.createRoot,Ip.hydrateRoot=Sy.hydrateRoot;var fT});var Ny=ba(cu=>{"use strict";var uk=j(),dk=Symbol.for("react.element"),ck=Symbol.for("react.fragment"),fk=Object.prototype.hasOwnProperty,pk=uk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mk={key:!0,ref:!0,__self:!0,__source:!0};function My(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)fk.call(t,r)&&!mk.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:dk,type:e,key:n,ref:s,props:o,_owner:pk.current}}cu.Fragment=ck;cu.jsx=My;cu.jsxs=My});var ie=ba((LT,Ey)=>{"use strict";Ey.exports=Ny()});var oT={};pS(oT,{initKiteChat:()=>Vm});var ds=M(j(),1),QC=M(Iy(),1);var Z=M(j(),1);function wy(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=wy(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function du(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=wy(e))&&(r&&(r+=" "),r+=t);return r}var Mw=e=>{let t=Ew(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split("-");return i[0]===""&&i.length!==1&&i.shift(),Py(i,t)||Nw(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Py=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Py(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:s})=>s(n))?.classGroupId},ky=/^\[(.+)\]$/,Nw=e=>{if(ky.test(e)){let t=ky.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Ew=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Bw(Object.entries(e.classGroups),a).forEach(([n,s])=>{kp(s,r,n,t)}),r},kp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:by(t,o);n.classGroupId=a;return}if(typeof o=="function"){if(Fw(o)){kp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([n,s])=>{kp(s,by(t,n),a,r)})})},by=(e,t)=>{let a=e;return t.split("-").forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},Fw=e=>e.isThemeGetter,Bw=(e,t)=>t?e.map(([a,r])=>{let o=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,o]}):e,Ow=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,r=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return o(n,s),s},set(n,s){a.has(n)?a.set(n,s):o(n,s)}}};var Vw=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let I=0;I<i.length;I++){let h=i[I];if(u===0){if(h===o&&(r||i.slice(I,I+n)===t)){l.push(i.slice(d,I)),d=I+n;continue}if(h==="/"){c=I;continue}}h==="["?u++:h==="]"&&u--}let f=l.length===0?i:i.substring(d),g=f.startsWith("!"),L=g?f.substring(1):f,v=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:L,maybePostfixModifierPosition:v}};return a?i=>a({className:i,parseClassName:s}):s},Uw=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},_w=e=>({cache:Ow(e.cacheSize),parseClassName:Vw(e),...Mw(e)}),zw=/\s+/,Hw=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(zw),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:g}=a(u),L=!!g,v=r(L?f.substring(0,g):f);if(!v){if(!L){i=u+(i.length>0?" "+i:i);continue}if(v=r(f),!v){i=u+(i.length>0?" "+i:i);continue}L=!1}let I=Uw(d).join(":"),h=c?I+"!":I,m=h+v;if(n.includes(m))continue;n.push(m);let x=o(v,L);for(let S=0;S<x.length;++S){let w=x[S];n.push(h+w)}i=u+(i.length>0?" "+i:i)}return i};function qw(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ty(t))&&(r&&(r+=" "),r+=a);return r}var Ty=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Ty(e[r]))&&(a&&(a+=" "),a+=t);return a};function Ww(e,...t){let a,r,o,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=_w(u),r=a.cache.get,o=a.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let d=Hw(l,a);return o(l,d),d}return function(){return n(qw.apply(null,arguments))}}var Le=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ay=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gw=/^\d+\/\d+$/,jw=new Set(["px","full","screen"]),Kw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$w=/\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$/,Xw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oa=e=>nn(e)||jw.has(e)||Gw.test(e),Lr=e=>sn(e,"length",nk),nn=e=>!!e&&!Number.isNaN(Number(e)),wp=e=>sn(e,"number",nn),ri=e=>!!e&&Number.isInteger(Number(e)),Zw=e=>e.endsWith("%")&&nn(e.slice(0,-1)),Q=e=>Ay.test(e),Cr=e=>Kw.test(e),Jw=new Set(["length","size","percentage"]),ek=e=>sn(e,Jw,Ry),tk=e=>sn(e,"position",Ry),ak=new Set(["image","url"]),rk=e=>sn(e,ak,ik),ok=e=>sn(e,"",sk),oi=()=>!0,sn=(e,t,a)=>{let r=Ay.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},nk=e=>$w.test(e)&&!Xw.test(e),Ry=()=>!1,sk=e=>Qw.test(e),ik=e=>Yw.test(e);var lk=()=>{let e=Le("colors"),t=Le("spacing"),a=Le("blur"),r=Le("brightness"),o=Le("borderColor"),n=Le("borderRadius"),s=Le("borderSpacing"),i=Le("borderWidth"),l=Le("contrast"),u=Le("grayscale"),d=Le("hueRotate"),c=Le("invert"),f=Le("gap"),g=Le("gradientColorStops"),L=Le("gradientColorStopPositions"),v=Le("inset"),I=Le("margin"),h=Le("opacity"),m=Le("padding"),x=Le("saturate"),S=Le("scale"),w=Le("sepia"),b=Le("skew"),D=Le("space"),P=Le("translate"),V=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",Q,t],ee=()=>[Q,t],Ia=()=>["",Oa,Lr],me=()=>["auto",nn,Q],zr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["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"],Ye=()=>["start","end","center","between","around","evenly","stretch"],bt=()=>["","0",Q],Kt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],mt=()=>[nn,Q];return{cacheSize:500,separator:":",theme:{colors:[oi],spacing:[Oa,Lr],blur:["none","",Cr,Q],brightness:mt(),borderColor:[e],borderRadius:["none","","full",Cr,Q],borderSpacing:ee(),borderWidth:Ia(),contrast:mt(),grayscale:bt(),hueRotate:mt(),invert:bt(),gap:ee(),gradientColorStops:[e],gradientColorStopPositions:[Zw,Lr],inset:le(),margin:le(),opacity:mt(),padding:ee(),saturate:mt(),scale:mt(),sepia:bt(),skew:mt(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[Cr]}],"break-after":[{"break-after":Kt()}],"break-before":[{"break-before":Kt()}],"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:[...zr(),Q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ri,Q]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:bt()}],shrink:[{shrink:bt()}],order:[{order:["first","last","none",ri,Q]}],"grid-cols":[{"grid-cols":[oi]}],"col-start-end":[{col:["auto",{span:["full",ri,Q]},Q]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[oi]}],"row-start-end":[{row:["auto",{span:[ri,Q]},Q]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Ye()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ye(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ye(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],ms:[{ms:[I]}],me:[{me:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[Cr]},Cr]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Cr,Lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wp]}],"font-family":[{font:[oi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",nn,wp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Oa,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Oa,Lr]}],"underline-offset":[{"underline-offset":["auto",Oa,Q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...zr(),tk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ek]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:$()}],"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:["",...$()]}],"outline-offset":[{"outline-offset":[Oa,Q]}],"outline-w":[{outline:[Oa,Lr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ia()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Oa,Lr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Cr,ok]}],"shadow-color":[{shadow:[oi]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Cr,Q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:mt()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:mt()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ri,Q]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Oa,Lr,wp]}],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"]}}};var Dy=Ww(lk);function Nt(...e){return Dy(du(e))}var Fy=M(ie(),1);function we({className:e,type:t,...a}){return(0,Fy.jsx)("input",{type:t,"data-slot":"input",className:Nt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}var Ee=M(j(),1);var Oy=M(j(),1);function By(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ni(...e){return t=>{let a=!1,r=e.map(o=>{let n=By(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():By(e[o],null)}}}}function Va(...e){return Oy.useCallback(ni(...e),e)}var fu=M(ie(),1),hk=Symbol.for("react.lazy"),pu=Ee[" use ".trim().toString()];function gk(e){return typeof e=="object"&&e!==null&&"then"in e}function Vy(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===hk&&"_payload"in e&&gk(e._payload)}function xk(e){let t=yk(e),a=Ee.forwardRef((r,o)=>{let{children:n,...s}=r;Vy(n)&&typeof pu=="function"&&(n=pu(n._payload));let i=Ee.Children.toArray(n),l=i.find(Lk);if(l){let u=l.props.children,d=i.map(c=>c===l?Ee.Children.count(u)>1?Ee.Children.only(null):Ee.isValidElement(u)?u.props.children:null:c);return(0,fu.jsx)(t,{...s,ref:o,children:Ee.isValidElement(u)?Ee.cloneElement(u,void 0,d):null})}return(0,fu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}var Uy=xk("Slot");function yk(e){let t=Ee.forwardRef((a,r)=>{let{children:o,...n}=a;if(Vy(o)&&typeof pu=="function"&&(o=pu(o._payload)),Ee.isValidElement(o)){let s=Sk(o),i=Ck(n,o.props);return o.type!==Ee.Fragment&&(i.ref=r?ni(r,s):s),Ee.cloneElement(o,i)}return Ee.Children.count(o)>1?Ee.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vk=Symbol("radix.slottable");function Lk(e){return Ee.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vk}function Ck(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Sk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var _y=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zy=du,Hy=(e,t)=>a=>{var r;if(t?.variants==null)return zy(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let d=a?.[u],c=n?.[u];if(d===null)return null;let f=_y(d)||_y(c);return o[u][f]}),i=a&&Object.entries(a).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...g}=d;return Object.entries(g).every(L=>{let[v,I]=L;return Array.isArray(I)?I.includes({...n,...i}[v]):{...n,...i}[v]===I})?[...u,c,f]:u},[]);return zy(e,s,l,a?.class,a?.className)};var qy=M(ie(),1),Ik=Hy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ke({className:e,variant:t,size:a,asChild:r=!1,...o}){return(0,qy.jsx)(r?Uy:"button",{"data-slot":"button",className:Nt(Ik({variant:t,size:a,className:e})),...o})}var hv=M(j(),1);var q=M(j(),1);var Gy=M(j(),1),Ak=M(Sp(),1);var Ve=M(j(),1);var mu=M(ie(),1);function Wy(e){let t=wk(e),a=Ve.forwardRef((r,o)=>{let{children:n,...s}=r,i=Ve.Children.toArray(n),l=i.find(bk);if(l){let u=l.props.children,d=i.map(c=>c===l?Ve.Children.count(u)>1?Ve.Children.only(null):Ve.isValidElement(u)?u.props.children:null:c);return(0,mu.jsx)(t,{...s,ref:o,children:Ve.isValidElement(u)?Ve.cloneElement(u,void 0,d):null})}return(0,mu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}function wk(e){let t=Ve.forwardRef((a,r)=>{let{children:o,...n}=a;if(Ve.isValidElement(o)){let s=Tk(o),i=Pk(n,o.props);return o.type!==Ve.Fragment&&(i.ref=r?ni(r,s):s),Ve.cloneElement(o,i)}return Ve.Children.count(o)>1?Ve.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kk=Symbol("radix.slottable");function bk(e){return Ve.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kk}function Pk(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}function Tk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var jy=M(ie(),1),Rk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ln=Rk.reduce((e,t)=>{let a=Wy(`Primitive.${t}`),r=Gy.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,jy.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var Ct=M(j(),1);var Ky=M(j(),1),si=globalThis?.document?Ky.useLayoutEffect:()=>{};var $y=M(j(),1);function Dk(e,t){return $y.useReducer((a,r)=>t[a][r]??a,e)}var un=e=>{let{present:t,children:a}=e,r=Mk(t),o=typeof a=="function"?a({present:r.isPresent}):Ct.Children.only(a),n=Va(r.ref,Nk(o));return typeof a=="function"||r.isPresent?Ct.cloneElement(o,{ref:n}):null};un.displayName="Presence";function Mk(e){let[t,a]=Ct.useState(),r=Ct.useRef(null),o=Ct.useRef(e),n=Ct.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Dk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ct.useEffect(()=>{let u=hu(r.current);n.current=i==="mounted"?u:"none"},[i]),si(()=>{let u=r.current,d=o.current;if(d!==e){let f=n.current,g=hu(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),si(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,c=g=>{let v=hu(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(l("ANIMATION_END"),!o.current)){let I=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},f=g=>{g.target===t&&(n.current=hu(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Ct.useCallback(u=>{r.current=u?getComputedStyle(u):null,a(u)},[])}}function hu(e){return e?.animationName||"none"}function Nk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Ua=M(j(),1),Xy=M(ie(),1);function Qy(e,t=[]){let a=[];function r(n,s){let i=Ua.createContext(s),l=a.length;a=[...a,s];let u=c=>{let{scope:f,children:g,...L}=c,v=f?.[e]?.[l]||i,I=Ua.useMemo(()=>L,Object.values(L));return(0,Xy.jsx)(v.Provider,{value:I,children:g})};u.displayName=n+"Provider";function d(c,f){let g=f?.[e]?.[l]||i,L=Ua.useContext(g);if(L)return L;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[u,d]}let o=()=>{let n=a.map(s=>Ua.createContext(s));return function(i){let l=i?.[e]||n;return Ua.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Ek(o,...t)]}function Ek(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let c=l(n)[`__scope${u}`];return{...i,...c}},{});return Ua.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}var dn=M(j(),1);function Sr(e){let t=dn.useRef(e);return dn.useEffect(()=>{t.current=e}),dn.useMemo(()=>(...a)=>t.current?.(...a),[])}var gu=M(j(),1),Fk=M(ie(),1),Bk=gu.createContext(void 0);function Yy(e){let t=gu.useContext(Bk);return e||t||"ltr"}function Zy(e,[t,a]){return Math.min(a,Math.max(t,e))}var WT=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ir(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}var ev=M(j(),1),ue=M(ie(),1);function Ok(e,t){return ev.useReducer((a,r)=>t[a][r]??a,e)}var bp="ScrollArea",[tv,tA]=Qy(bp),[Vk,Gt]=tv(bp),av=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,type:r="hover",dir:o,scrollHideDelay:n=600,...s}=e,[i,l]=q.useState(null),[u,d]=q.useState(null),[c,f]=q.useState(null),[g,L]=q.useState(null),[v,I]=q.useState(null),[h,m]=q.useState(0),[x,S]=q.useState(0),[w,b]=q.useState(!1),[D,P]=q.useState(!1),V=Va(t,le=>l(le)),F=Yy(o);return(0,ue.jsx)(Vk,{scope:a,type:r,dir:F,scrollHideDelay:n,scrollArea:i,viewport:u,onViewportChange:d,content:c,onContentChange:f,scrollbarX:g,onScrollbarXChange:L,scrollbarXEnabled:w,onScrollbarXEnabledChange:b,scrollbarY:v,onScrollbarYChange:I,scrollbarYEnabled:D,onScrollbarYEnabledChange:P,onCornerWidthChange:m,onCornerHeightChange:S,children:(0,ue.jsx)(ln.div,{dir:F,...s,ref:V,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});av.displayName=bp;var rv="ScrollAreaViewport",ov=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,children:r,nonce:o,...n}=e,s=Gt(rv,a),i=q.useRef(null),l=Va(t,i,s.onViewportChange);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,ue.jsx)(ln.div,{"data-radix-scroll-area-viewport":"",...n,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,ue.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});ov.displayName=rv;var ma="ScrollAreaScrollbar",Pp=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Gt(ma,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return q.useEffect(()=>(i?n(!0):s(!0),()=>{i?n(!1):s(!1)}),[i,n,s]),o.type==="hover"?(0,ue.jsx)(Uk,{...r,ref:t,forceMount:a}):o.type==="scroll"?(0,ue.jsx)(_k,{...r,ref:t,forceMount:a}):o.type==="auto"?(0,ue.jsx)(nv,{...r,ref:t,forceMount:a}):o.type==="always"?(0,ue.jsx)(Tp,{...r,ref:t}):null});Pp.displayName=ma;var Uk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Gt(ma,e.__scopeScrollArea),[n,s]=q.useState(!1);return q.useEffect(()=>{let i=o.scrollArea,l=0;if(i){let u=()=>{window.clearTimeout(l),s(!0)},d=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),(0,ue.jsx)(un,{present:a||n,children:(0,ue.jsx)(nv,{"data-state":n?"visible":"hidden",...r,ref:t})})}),_k=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Gt(ma,e.__scopeScrollArea),n=e.orientation==="horizontal",s=Lu(()=>l("SCROLL_END"),100),[i,l]=Ok("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return q.useEffect(()=>{if(i==="idle"){let u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[i,o.scrollHideDelay,l]),q.useEffect(()=>{let u=o.viewport,d=n?"scrollLeft":"scrollTop";if(u){let c=u[d],f=()=>{let g=u[d];c!==g&&(l("SCROLL"),s()),c=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,n,l,s]),(0,ue.jsx)(un,{present:a||i!=="hidden",children:(0,ue.jsx)(Tp,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Ir(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ir(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),nv=q.forwardRef((e,t)=>{let a=Gt(ma,e.__scopeScrollArea),{forceMount:r,...o}=e,[n,s]=q.useState(!1),i=e.orientation==="horizontal",l=Lu(()=>{if(a.viewport){let u=a.viewport.offsetWidth<a.viewport.scrollWidth,d=a.viewport.offsetHeight<a.viewport.scrollHeight;s(i?u:d)}},10);return cn(a.viewport,l),cn(a.content,l),(0,ue.jsx)(un,{present:r||n,children:(0,ue.jsx)(Tp,{"data-state":n?"visible":"hidden",...o,ref:t})})}),Tp=q.forwardRef((e,t)=>{let{orientation:a="vertical",...r}=e,o=Gt(ma,e.__scopeScrollArea),n=q.useRef(null),s=q.useRef(0),[i,l]=q.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uv(i.viewport,i.content),d={...r,sizes:i,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function c(f,g){return jk(f,s.current,i,g)}return a==="horizontal"?(0,ue.jsx)(zk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollLeft,g=Jy(f,i,o.dir);n.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=c(f,o.dir))}}):a==="vertical"?(0,ue.jsx)(Hk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollTop,g=Jy(f,i);n.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=c(f))}}):null}),zk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Gt(ma,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=Va(t,l,n.onScrollbarXChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ue.jsx)(iv,{"data-orientation":"horizontal",...o,ref:u,sizes:a,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":vu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(n.viewport){let f=n.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),cv(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:yu(s.paddingLeft),paddingEnd:yu(s.paddingRight)}})}})}),Hk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Gt(ma,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=Va(t,l,n.onScrollbarYChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ue.jsx)(iv,{"data-orientation":"vertical",...o,ref:u,sizes:a,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":vu(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(n.viewport){let f=n.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),cv(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:yu(s.paddingTop),paddingEnd:yu(s.paddingBottom)}})}})}),[qk,sv]=tv(ma),iv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,sizes:r,hasThumb:o,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:c,...f}=e,g=Gt(ma,a),[L,v]=q.useState(null),I=Va(t,V=>v(V)),h=q.useRef(null),m=q.useRef(""),x=g.viewport,S=r.content-r.viewport,w=Sr(d),b=Sr(l),D=Lu(c,10);function P(V){if(h.current){let F=V.clientX-h.current.left,le=V.clientY-h.current.top;u({x:F,y:le})}}return q.useEffect(()=>{let V=F=>{let le=F.target;L?.contains(le)&&w(F,S)};return document.addEventListener("wheel",V,{passive:!1}),()=>document.removeEventListener("wheel",V,{passive:!1})},[x,L,S,w]),q.useEffect(b,[r,b]),cn(L,D),cn(g.content,D),(0,ue.jsx)(qk,{scope:a,scrollbar:L,hasThumb:o,onThumbChange:Sr(n),onThumbPointerUp:Sr(s),onThumbPositionChange:b,onThumbPointerDown:Sr(i),children:(0,ue.jsx)(ln.div,{...f,ref:I,style:{position:"absolute",...f.style},onPointerDown:Ir(e.onPointerDown,V=>{V.button===0&&(V.target.setPointerCapture(V.pointerId),h.current=L.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),P(V))}),onPointerMove:Ir(e.onPointerMove,P),onPointerUp:Ir(e.onPointerUp,V=>{let F=V.target;F.hasPointerCapture(V.pointerId)&&F.releasePointerCapture(V.pointerId),document.body.style.webkitUserSelect=m.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})})}),xu="ScrollAreaThumb",Ap=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=sv(xu,e.__scopeScrollArea);return(0,ue.jsx)(un,{present:a||o.hasThumb,children:(0,ue.jsx)(Wk,{ref:t,...r})})}),Wk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,style:r,...o}=e,n=Gt(xu,a),s=sv(xu,a),{onThumbPositionChange:i}=s,l=Va(t,c=>s.onThumbChange(c)),u=q.useRef(void 0),d=Lu(()=>{u.current&&(u.current(),u.current=void 0)},100);return q.useEffect(()=>{let c=n.viewport;if(c){let f=()=>{if(d(),!u.current){let g=Kk(c,i);u.current=g,i()}};return i(),c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[n.viewport,d,i]),(0,ue.jsx)(ln.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ir(e.onPointerDownCapture,c=>{let g=c.target.getBoundingClientRect(),L=c.clientX-g.left,v=c.clientY-g.top;s.onThumbPointerDown({x:L,y:v})}),onPointerUp:Ir(e.onPointerUp,s.onThumbPointerUp)})});Ap.displayName=xu;var Rp="ScrollAreaCorner",lv=q.forwardRef((e,t)=>{let a=Gt(Rp,e.__scopeScrollArea),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?(0,ue.jsx)(Gk,{...e,ref:t}):null});lv.displayName=Rp;var Gk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,...r}=e,o=Gt(Rp,a),[n,s]=q.useState(0),[i,l]=q.useState(0),u=!!(n&&i);return cn(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),cn(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),s(d)}),u?(0,ue.jsx)(ln.div,{...r,ref:t,style:{width:n,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function yu(e){return e?parseInt(e,10):0}function uv(e,t){let a=e/t;return isNaN(a)?0:a}function vu(e){let t=uv(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-a)*t;return Math.max(r,18)}function jk(e,t,a,r="ltr"){let o=vu(a),n=o/2,s=t||n,i=o-s,l=a.scrollbar.paddingStart+s,u=a.scrollbar.size-a.scrollbar.paddingEnd-i,d=a.content-a.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return dv([l,u],c)(e)}function Jy(e,t,a="ltr"){let r=vu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-o,s=t.content-t.viewport,i=n-r,l=a==="ltr"?[0,s]:[s*-1,0],u=Zy(e,l);return dv([0,s],[0,i])(u)}function dv(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(a-e[0])}}function cv(e,t){return e>0&&e<t}var Kk=(e,t=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){let n={left:e.scrollLeft,top:e.scrollTop},s=a.left!==n.left,i=a.top!==n.top;(s||i)&&t(),a=n,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Lu(e,t){let a=Sr(e),r=q.useRef(0);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),q.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(a,t)},[a,t])}function cn(e,t){let a=Sr(t);si(()=>{let r=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,a])}var fv=av,pv=ov;var mv=lv;var wr=M(ie(),1),Dp=hv.forwardRef(({className:e,children:t,...a},r)=>(0,wr.jsxs)(fv,{"data-slot":"scroll-area",className:Nt("relative",e),...a,children:[(0,wr.jsx)(pv,{ref:r,"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,wr.jsx)(Xk,{}),(0,wr.jsx)(mv,{})]}));Dp.displayName="ScrollArea";function Xk({className:e,orientation:t="vertical",...a}){return(0,wr.jsx)(Pp,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Nt("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:(0,wr.jsx)(Ap,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var Su=M(j());var gv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Mp=e=>{let t=Qk(e);return t.charAt(0).toUpperCase()+t.slice(1)},Cu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),xv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var ii=M(j());var yv={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"};var vv=(0,ii.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>(0,ii.createElement)("svg",{ref:l,...yv,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Cu("lucide",o),...!n&&!xv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>(0,ii.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var O=(e,t)=>{let a=(0,Su.forwardRef)(({className:r,...o},n)=>(0,Su.createElement)(vv,{ref:n,iconNode:t,className:Cu(`lucide-${gv(Mp(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Mp(e),a};var Yk=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],li=O("activity",Yk);var Zk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fn=O("arrow-left",Zk);var Jk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ui=O("arrow-up",Jk);var eb=[["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"}]],di=O("calendar",eb);var tb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],no=O("chevron-down",tb);var ab=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ci=O("chevron-up",ab);var rb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ra=O("circle-alert",rb);var ob=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],He=O("circle-check",ob);var nb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],oa=O("circle-x",nb);var sb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],so=O("clock",sb);var ib=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],_a=O("command",ib);var lb=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],za=O("corner-down-left",lb);var ub=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],io=O("credit-card",ub);var db=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],lo=O("crown",db);var cb=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],uo=O("dollar-sign",cb);var fb=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],pn=O("file-spreadsheet",fb);var pb=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],mn=O("key",pb);var mb=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],fi=O("laptop",mb);var hb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jt=O("loader-circle",hb);var gb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],hn=O("mail",gb);var xb=[["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"}]],gn=O("map-pin",xb);var yb=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],pi=O("paperclip",yb);var vb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],mi=O("play",vb);var Lb=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],xn=O("refresh-cw",Lb);var Cb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],co=O("search",Cb);var Sb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],yn=O("shield",Sb);var Ib=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],hi=O("smartphone",Ib);var wb=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],St=O("square-pen",wb);var kb=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],gi=O("trending-up",kb);var bb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],vn=O("users",bb);var Pb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fo=O("x",Pb);var Tb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],xi=O("zap",Tb);var Ae=M(ie(),1);function Lv({phase:e,progressSteps:t=[]}){return(0,Ae.jsxs)("div",{className:"mb-3 rounded-lg bg-muted/40 px-3 py-3 text-xs text-muted-foreground transition-colors",children:[e==="thinking"&&t.length===0&&(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(jt,{className:"h-3.5 w-3.5 animate-spin"}),(0,Ae.jsx)("span",{children:"Thinking\u2026"})]}),e==="searching"&&(0,Ae.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-300",children:[(0,Ae.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ae.jsx)(co,{className:"h-3.5 w-3.5 opacity-70"}),(0,Ae.jsx)("span",{children:"Searching across pages\u2026"})]}),(0,Ae.jsxs)("ul",{className:"ml-6 list-disc space-y-1",children:[(0,Ae.jsx)("li",{className:"opacity-90",children:"Checking recent changes"}),(0,Ae.jsx)("li",{className:"opacity-90",children:"Scanning documentation"}),(0,Ae.jsx)("li",{className:"opacity-90",children:"Summarizing relevant sections"})]})]}),(e==="thinking"||e==="executing"||e==="responding")&&t.length>0&&(0,Ae.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-200",children:[t.map((a,r)=>(0,Ae.jsxs)("div",{className:`flex items-center gap-2 transition-opacity duration-200 ${a.completed?"opacity-60":"opacity-100"}`,children:[a.completed?(0,Ae.jsx)(He,{className:"h-3.5 w-3.5 text-green-500 flex-shrink-0"}):(0,Ae.jsx)(jt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Ae.jsx)("span",{className:a.completed?"line-through":"",children:a.message})]},r)),e==="responding"&&(0,Ae.jsxs)("div",{className:"flex items-center gap-2 opacity-100 animate-in fade-in-0 duration-200",children:[(0,Ae.jsx)(jt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Ae.jsx)("span",{children:"Preparing response..."})]})]})]})}var Cv=M(j(),1);var na=M(ie(),1);function Sv({title:e,links:t}){let[a,r]=Cv.useState(!1);return(0,na.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,na.jsx)("button",{type:"button",onClick:()=>r(o=>!o),className:"flex w-full items-center gap-2 px-0 py-0","aria-expanded":a,children:(0,na.jsxs)("div",{className:"flex items-center gap-1.5",children:[a?(0,na.jsx)(no,{className:"h-3 w-3 opacity-70"}):(0,na.jsx)(co,{className:"h-3 w-3 opacity-70"}),(0,na.jsx)("span",{children:e})]})}),a&&t.length>0&&(0,na.jsx)("ul",{className:"ml-5 mt-1 space-y-0.5",children:t.map(o=>(0,na.jsx)("li",{children:(0,na.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:o.label})},o.href))})]})}var vi=M(ie(),1),ha=M(j(),1);var Iv=M(j(),1),Ln=(0,Iv.createContext)({});var wv=M(j(),1);function Cn(e){let t=(0,wv.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Ep=M(ie(),1),Av=M(j(),1),po=M(j(),1);var kv=M(j(),1),kr=(0,kv.createContext)(null);var Pv=M(ie(),1),Iu=M(j(),1),Ha=M(j(),1);var bv=M(j(),1),Sn=(0,bv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Np=class extends Iu.Component{getSnapshotBeforeUpdate(t){let a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=a.offsetHeight||0,r.width=a.offsetWidth||0,r.top=a.offsetTop,r.left=a.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function Tv({children:e,isPresent:t}){let a=(0,Ha.useId)(),r=(0,Ha.useRef)(null),o=(0,Ha.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,Ha.useContext)(Sn);return(0,Ha.useInsertionEffect)(()=>{let{width:s,height:i,top:l,left:u}=o.current;if(t||!r.current||!s||!i)return;r.current.dataset.motionPopId=a;let d=document.createElement("style");return n&&(d.nonce=n),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
9
9
  [data-motion-pop-id="${a}"] {
10
10
  position: absolute !important;
11
11
  width: ${s}px !important;
@@ -13,31 +13,28 @@ Error generating stack: `+n.message+`
13
13
  top: ${l}px !important;
14
14
  left: ${u}px !important;
15
15
  }
16
- `),()=>{document.head.removeChild(d)}},[t]),(0,vv.jsx)(Tp,{isPresent:t,childRef:r,sizeRef:o,children:vu.cloneElement(e,{ref:r})})}var Sv=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:n,mode:s})=>{let i=mn(SP),l=(0,no.useId)(),u=(0,no.useCallback)(f=>{i.set(f,!0);for(let p of i.values())if(!p)return;r&&r()},[i,r]),d=(0,no.useMemo)(()=>({id:l,initial:t,isPresent:a,custom:o,onExitComplete:u,register:f=>(i.set(f,!1),()=>i.delete(f))}),n?[Math.random(),u]:[a,u]);return(0,no.useMemo)(()=>{i.forEach((f,p)=>i.set(p,!1))},[a]),Cv.useEffect(()=>{!a&&!i.size&&r&&r()},[a]),s==="popLayout"&&(e=(0,bp.jsx)(Lv,{isPresent:a,children:e})),(0,bp.jsx)(Lr.Provider,{value:d,children:e})};function SP(){return new Map}var Cr=N(H(),1);function Lu(e=!0){let t=(0,Cr.useContext)(Lr);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=t,n=(0,Cr.useId)();(0,Cr.useEffect)(()=>{e&&o(n)},[e]);let s=(0,Cr.useCallback)(()=>e&&r&&r(n),[n,r,e]);return!a&&r?[!1,s]:[!0]}var Cu=N(H(),1),ui=e=>e.key||"";function Ap(e){let t=[];return Cu.Children.forEach(e,a=>{(0,Cu.isValidElement)(a)&&t.push(a)}),t}var Su=N(H(),1);var gn=typeof window<"u";var Iu=gn?Su.useLayoutEffect:Su.useEffect;var Rp=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:n="sync",propagate:s=!1})=>{let[i,l]=Lu(s),u=(0,fa.useMemo)(()=>Ap(e),[e]),d=s&&!i?[]:u.map(ui),f=(0,fa.useRef)(!0),p=(0,fa.useRef)(u),g=mn(()=>new Map),[y,v]=(0,fa.useState)(u),[I,h]=(0,fa.useState)(u);Iu(()=>{f.current=!1,p.current=u;for(let S=0;S<I.length;S++){let C=ui(I[S]);d.includes(C)?g.delete(C):g.get(C)!==!0&&g.set(C,!1)}},[I,d.length,d.join("-")]);let m=[];if(u!==y){let S=[...u];for(let C=0;C<I.length;C++){let T=I[C],P=ui(T);d.includes(P)||(S.splice(C,0,T),m.push(T))}n==="wait"&&m.length&&(S=m),h(Ap(S)),v(u);return}let{forceRender:x}=(0,fa.useContext)(pn);return(0,di.jsx)(di.Fragment,{children:I.map(S=>{let C=ui(S),T=s&&!i?!1:u===I||d.includes(C),P=()=>{if(g.has(C))g.set(C,!0);else return;let k=!0;g.forEach(E=>{E||(k=!1)}),k&&(x?.(),h(p.current),s&&l?.(),r&&r())};return(0,di.jsx)(Sv,{isPresent:T,initial:!f.current||a?void 0:!1,custom:T?void 0:t,presenceAffectsLayout:o,mode:n,onExitComplete:T?void 0:P,children:S},C)})})};var se=e=>e;var Ba=se,ea=se;function so(e){let t;return()=>(t===void 0&&(t=e()),t)}var At=(e,t,a)=>{let r=t-e;return r===0?1:(a-e)/r};var Te=e=>e*1e3,We=e=>e/1e3;var xn={skipAnimations:!1,useManualTiming:!1};function Iv(e){let t=new Set,a=new Set,r=!1,o=!1,n=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function i(u){n.has(u)&&(l.schedule(u),e()),u(s)}let l={schedule:(u,d=!1,f=!1)=>{let g=f&&r?t:a;return d&&n.add(u),g.has(u)||g.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,a]=[a,t],t.forEach(i),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}var wu=["read","resolveKeyframes","update","preRender","render","postRender"],IP=40;function ku(e,t){let a=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>a=!0,s=wu.reduce((h,m)=>(h[m]=Iv(n),h),{}),{read:i,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:p}=s,g=()=>{let h=xn.useManualTiming?o.timestamp:performance.now();a=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,IP),1),o.timestamp=h,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),d.process(o),f.process(o),p.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(g))},y=()=>{a=!0,r=!0,o.isProcessing||e(g)};return{schedule:wu.reduce((h,m)=>{let x=s[m];return h[m]=(S,C=!1,T=!1)=>(a||y(),x.schedule(S,C,T)),h},{}),cancel:h=>{for(let m=0;m<wu.length;m++)s[wu[m]].cancel(h)},state:o,steps:s}}var{schedule:K,cancel:Rt,state:be,steps:Pu}=ku(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0);var wv=N(H(),1),Tu=(0,wv.createContext)({strict:!1});var kv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Oa={};for(let e in kv)Oa[e]={isEnabled:t=>kv[e].some(a=>!!t[a])};function Pv(e){for(let t in e)Oa[t]={...Oa[t],...e[t]}}var wP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ci(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wP.has(e)}var Tv=e=>!ci(e);function kP(e){e&&(Tv=t=>t.startsWith("on")?!ci(t):e(t))}try{kP(lS("@emotion/is-prop-valid").default)}catch{}function bv(e,t,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(Tv(o)||a===!0&&ci(o)||!t&&!ci(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Av(e){if(typeof Proxy>"u")return e;let t=new Map,a=(...r)=>e(...r);return new Proxy(a,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var Eu=N(ot(),1);var Ln=N(H(),1);var Rv=N(H(),1),Sr=(0,Rv.createContext)({});var Ru=N(H(),1);function Va(e){return typeof e=="string"||Array.isArray(e)}function Ir(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fi=["initial",...bu];function io(e){return Ir(e.animate)||fi.some(t=>Va(e[t]))}function Au(e){return!!(io(e)||e.variants)}function Mv(e,t){if(io(e)){let{initial:a,animate:r}=e;return{initial:a===!1||Va(a)?a:void 0,animate:Va(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ev(e){let{initial:t,animate:a}=Mv(e,(0,Ru.useContext)(Sr));return(0,Ru.useMemo)(()=>({initial:t,animate:a}),[Dv(t),Dv(a)])}function Dv(e){return Array.isArray(e)?e.join(" "):e}var Fv=Symbol.for("motionComponentSymbol");var Nv=N(H(),1);function Ua(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Bv(e,t,a){return(0,Nv.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):Ua(a)&&(a.current=r))},[t])}var yt=N(H(),1);var yn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var PP="framerAppearId",Mu="data-"+yn(PP);var{schedule:vn,cancel:sD}=ku(queueMicrotask,!1);var Ov=N(H(),1),Du=(0,Ov.createContext)({});function Vv(e,t,a,r,o){var n,s;let{visualElement:i}=(0,yt.useContext)(Sr),l=(0,yt.useContext)(Tu),u=(0,yt.useContext)(Lr),d=(0,yt.useContext)(hn).reducedMotion,f=(0,yt.useRef)(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:i,props:a,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));let p=f.current,g=(0,yt.useContext)(Du);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&TP(f.current,a,o,g);let y=(0,yt.useRef)(!1);(0,yt.useInsertionEffect)(()=>{p&&y.current&&p.update(a,u)});let v=a[Mu],I=(0,yt.useRef)(!!v&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,v))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,v)));return Iu(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),vn.render(p.render),I.current&&p.animationState&&p.animationState.animateChanges())}),(0,yt.useEffect)(()=>{p&&(!I.current&&p.animationState&&p.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,v)}),I.current=!1))}),p}function TP(e,t,a,r){let{layoutId:o,layout:n,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:Uv(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!s||i&&Ua(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Uv(e){if(e)return e.options.allowProjection!==!1?e.projection:Uv(e.parent)}function _v({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:r,Component:o}){var n,s;e&&Pv(e);function i(u,d){let f,p={...(0,Ln.useContext)(hn),...u,layoutId:bP(u)},{isStatic:g}=p,y=Ev(u),v=r(u,g);if(!g&&gn){AP(p,e);let I=RP(p);f=I.MeasureLayout,y.visualElement=Vv(o,v,p,t,I.ProjectionNode)}return(0,Eu.jsxs)(Sr.Provider,{value:y,children:[f&&y.visualElement?(0,Eu.jsx)(f,{visualElement:y.visualElement,...p}):null,a(o,u,Bv(v,y.visualElement,d),v,g,y.visualElement)]})}i.displayName=`motion.${typeof o=="string"?o:`create(${(s=(n=o.displayName)!==null&&n!==void 0?n:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,Ln.forwardRef)(i);return l[Fv]=o,l}function bP({layoutId:e}){let t=(0,Ln.useContext)(pn).id;return t&&e!==void 0?t+"-"+e:e}function AP(e,t){let a=(0,Ln.useContext)(Tu).strict}function RP(e){let{drag:t,layout:a}=Oa;if(!t&&!a)return{};let r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var zv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cn(e){return typeof e!="string"||e.includes("-")?!1:!!(zv.indexOf(e)>-1||/[A-Z]/u.test(e))}var Mp=N(H(),1);function qv(e){let t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Sn(e,t,a,r){if(typeof t=="function"){let[o,n]=qv(r);t=t(a!==void 0?a:e.custom,o,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,n]=qv(r);t=t(a!==void 0?a:e.custom,o,n)}return t}var pi=e=>Array.isArray(e);var Hv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Wv=e=>pi(e)?e[e.length-1]||0:e;var ue=e=>!!(e&&e.getVelocity);function In(e){let t=ue(e)?e.get():e;return Hv(t)?t.toValue():t}function MP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},r,o,n){let s={latestValues:DP(r,o,n,e),renderState:t()};return a&&(s.onMount=i=>a({props:r,current:i,...s}),s.onUpdate=i=>a(i)),s}var Fu=e=>(t,a)=>{let r=(0,Mp.useContext)(Sr),o=(0,Mp.useContext)(Lr),n=()=>MP(e,t,r,o);return a?n():mn(n)};function DP(e,t,a,r){let o={},n=r(e,{});for(let p in n)o[p]=In(n[p]);let{initial:s,animate:i}=e,l=io(e),u=Au(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=a?a.initial===!1:!1;d=d||s===!1;let f=d?i:s;if(f&&typeof f!="boolean"&&!Ir(f)){let p=Array.isArray(f)?f:[f];for(let g=0;g<p.length;g++){let y=Sn(e,p[g]);if(y){let{transitionEnd:v,transition:I,...h}=y;for(let m in h){let x=h[m];if(Array.isArray(x)){let S=d?x.length-1:0;x=x[S]}x!==null&&(o[m]=x)}for(let m in v)o[m]=v[m]}}}return o}var pa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vt=new Set(pa);var Gv=e=>t=>typeof t=="string"&&t.startsWith(e),Nu=Gv("--"),EP=Gv("var(--"),wn=e=>EP(e)?FP.test(e.split("/*")[0].trim()):!1,FP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Bu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Ge=(e,t,a)=>a>t?t:a<e?e:a;var ma={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_a={...ma,transform:e=>Ge(0,1,e)},mi={...ma,default:1};var hi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ha=hi("deg"),st=hi("%"),F=hi("px"),jv=hi("vh"),Kv=hi("vw"),Dp={...st,parse:e=>st.parse(e)/100,transform:e=>st.transform(e*100)};var $v={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,backgroundPositionX:F,backgroundPositionY:F};var Xv={rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:mi,scaleX:mi,scaleY:mi,scaleZ:mi,skew:ha,skewX:ha,skewY:ha,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:_a,originX:Dp,originY:Dp,originZ:F};var Ep={...ma,transform:Math.round};var kn={...$v,...Xv,zIndex:Ep,size:F,fillOpacity:_a,strokeOpacity:_a,numOctaves:Ep};var NP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},BP=pa.length;function Qv(e,t,a){let r="",o=!0;for(let n=0;n<BP;n++){let s=pa[n],i=e[s];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(s.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||a){let u=Bu(i,kn[s]);if(!l){o=!1;let d=NP[s]||s;r+=`${d}(${u}) `}a&&(t[s]=u)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function Pn(e,t,a){let{style:r,vars:o,transformOrigin:n}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(vt.has(l)){s=!0;continue}else if(Nu(l)){o[l]=u;continue}else{let d=Bu(u,kn[l]);l.startsWith("origin")?(i=!0,n[l]=d):r[l]=d}}if(t.transform||(s||a?r.transform=Qv(t,e.transform,a):r.transform&&(r.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:d=0}=n;r.transformOrigin=`${l} ${u} ${d}`}}var OP={offset:"stroke-dashoffset",array:"stroke-dasharray"},VP={offset:"strokeDashoffset",array:"strokeDasharray"};function Yv(e,t,a=1,r=0,o=!0){e.pathLength=1;let n=o?OP:VP;e[n.offset]=F.transform(-r);let s=F.transform(t),i=F.transform(a);e[n.array]=`${s} ${i}`}function Zv(e,t,a){return typeof e=="string"?e:F.transform(t+a*e)}function Jv(e,t,a){let r=Zv(t,e.x,e.width),o=Zv(a,e.y,e.height);return`${r} ${o}`}function Tn(e,{attrX:t,attrY:a,attrScale:r,originX:o,originY:n,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...u},d,f){if(Pn(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(o!==void 0||n!==void 0||g.transform)&&(g.transformOrigin=Jv(y,o!==void 0?o:.5,n!==void 0?n:.5)),t!==void 0&&(p.x=t),a!==void 0&&(p.y=a),r!==void 0&&(p.scale=r),s!==void 0&&Yv(p,s,i,l,!1)}var bn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var Ou=()=>({...bn(),attrs:{}});var An=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vu(e,{style:t,vars:a},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let n in a)e.style.setProperty(n,a[n])}var Uu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _u(e,t,a,r){Vu(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(Uu.has(o)?o:yn(o),t.attrs[o])}var Rn={};function eL(e){Object.assign(Rn,e)}function zu(e,{layout:t,layoutId:a}){return vt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Rn[e]||e==="opacity")}function Mn(e,t,a){var r;let{style:o}=e,n={};for(let s in o)(ue(o[s])||t.style&&ue(t.style[s])||zu(s,e)||((r=a?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(n[s]=o[s]);return n}function qu(e,t,a){let r=Mn(e,t,a);for(let o in e)if(ue(e[o])||ue(t[o])){let n=pa.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o]}return r}function UP(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var tL=["x","y","width","height","cx","cy","r"],aL={useVisualState:Fu({scrapeMotionValuesFromProps:qu,createRenderState:Ou,onUpdate:({props:e,prevProps:t,current:a,renderState:r,latestValues:o})=>{if(!a)return;let n=!!e.drag;if(!n){for(let i in o)if(vt.has(i)){n=!0;break}}if(!n)return;let s=!t;if(t)for(let i=0;i<tL.length;i++){let l=tL[i];e[l]!==t[l]&&(s=!0)}s&&K.read(()=>{UP(a,r),K.render(()=>{Tn(r,o,An(a.tagName),e.transformTemplate),_u(a,r)})})}})};var rL={useVisualState:Fu({scrapeMotionValuesFromProps:Mn,createRenderState:bn})};var Dn=N(H(),1);var oL=N(H(),1);function Fp(e,t,a){for(let r in t)!ue(t[r])&&!zu(r,a)&&(e[r]=t[r])}function _P({transformTemplate:e},t){return(0,oL.useMemo)(()=>{let a=bn();return Pn(a,t,e),Object.assign({},a.vars,a.style)},[t])}function zP(e,t){let a=e.style||{},r={};return Fp(r,a,e),Object.assign(r,_P(e,t)),r}function nL(e,t){let a={},r=zP(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=r,a}var sL=N(H(),1);function iL(e,t,a,r){let o=(0,sL.useMemo)(()=>{let n=Ou();return Tn(n,t,An(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};Fp(n,e.style,e),o.style={...n,...o.style}}return o}function lL(e=!1){return(a,r,o,{latestValues:n},s)=>{let l=(Cn(a)?iL:nL)(r,n,s,a),u=bv(r,typeof a=="string",e),d=a!==Dn.Fragment?{...u,...l,ref:o}:{},{children:f}=r,p=(0,Dn.useMemo)(()=>ue(f)?f.get():f,[f]);return(0,Dn.createElement)(a,{...d,children:p})}}function uL(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Cn(r)?aL:rL,preloadedFeatures:e,useRender:lL(o),createVisualElement:t,Component:r};return _v(s)}}function Np(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}function wr(e,t,a){let r=e.getProps();return Sn(r,t,a!==void 0?a:r.custom,e)}var Bp=so(()=>window.ScrollTimeline!==void 0);var gi=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,a){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=a}attachTimeline(t,a){let r=this.animations.map(o=>{if(Bp()&&o.attachTimeline)return o.attachTimeline(t);if(typeof a=="function")return a(o)});return()=>{r.forEach((o,n)=>{o&&o(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let a=0;a<this.animations.length;a++)t=Math.max(t,this.animations[a].duration);return t}runAll(t){this.animations.forEach(a=>a[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var xi=class extends gi{then(t,a){return Promise.all(this.animations).then(t).catch(a)}};function kr(e,t){return e?e[t]||e.default||e:void 0}function En(e){let t=0,a=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=a,r=e.next(t);return t>=2e4?1/0:t}function Pr(e){return typeof e=="function"}function yi(e,t){e.timeline=t,e.onfinish=null}var Fn=e=>Array.isArray(e)&&typeof e[0]=="number";var Vp={linearEasing:void 0};function dL(e,t){let a=so(e);return()=>{var r;return(r=Vp[t])!==null&&r!==void 0?r:a()}}var Tr=dL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var vi=(e,t,a=10)=>{let r="",o=Math.max(Math.round(t/a),2);for(let n=0;n<o;n++)r+=e(At(0,o-1,n))+", ";return`linear(${r.substring(0,r.length-2)})`};function Wu(e){return!!(typeof e=="function"&&Tr()||!e||typeof e=="string"&&(e in Hu||Tr())||Fn(e)||Array.isArray(e)&&e.every(Wu))}var Nn=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,Hu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function Bn(e,t){if(e)return typeof e=="function"&&Tr()?vi(e,t):Fn(e)?Nn(e):Array.isArray(e)?e.map(a=>Bn(a,t)||Hu.easeOut):Hu[e]}var Mt={x:!1,y:!1};function On(){return Mt.x||Mt.y}function Up(e,t,a){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=(r=a?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function Gu(e,t){let a=Up(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function cL(e){return t=>{t.pointerType==="touch"||On()||e(t)}}function _p(e,t,a={}){let[r,o,n]=Gu(e,a),s=cL(i=>{let{target:l}=i,u=t(i);if(typeof u!="function"||!l)return;let d=cL(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),n}var ju=(e,t)=>t?e===t?!0:ju(e,t.parentElement):!1;var lo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var qP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fL(e){return qP.has(e.tagName)||e.tabIndex!==-1}var uo=new WeakSet;function pL(e){return t=>{t.key==="Enter"&&e(t)}}function zp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var mL=(e,t)=>{let a=e.currentTarget;if(!a)return;let r=pL(()=>{if(uo.has(a))return;zp(a,"down");let o=pL(()=>{zp(a,"up")}),n=()=>zp(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function hL(e){return lo(e)&&!On()}function qp(e,t,a={}){let[r,o,n]=Gu(e,a),s=i=>{let l=i.currentTarget;if(!hL(i)||uo.has(l))return;uo.add(l);let u=t(i),d=(g,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!hL(g)||!uo.has(l))&&(uo.delete(l),typeof u=="function"&&u(g,{success:y}))},f=g=>{d(g,a.useGlobalTarget||ju(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",p,o)};return r.forEach(i=>{!fL(i)&&i.getAttribute("tabindex")===null&&(i.tabIndex=0),(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),i.addEventListener("focus",u=>mL(u,o),o)}),n}function Hp(e){return e==="x"||e==="y"?Mt[e]?null:(Mt[e]=!0,()=>{Mt[e]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}var Ku=new Set(["width","height","top","left","right","bottom",...pa]);var $u;function WP(){$u=void 0}var Je={now:()=>($u===void 0&&Je.set(be.isProcessing||xn.useManualTiming?be.timestamp:performance.now()),$u),set:e=>{$u=e,queueMicrotask(WP)}};function Vn(e,t){e.indexOf(t)===-1&&e.push(t)}function Un(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var br=class{constructor(){this.subscriptions=[]}add(t){return Vn(this.subscriptions,t),()=>Un(this.subscriptions,t)}notify(t,a,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,r);else for(let n=0;n<o;n++){let s=this.subscriptions[n];s&&s(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Xu(e,t){return t?e*(1e3/t):0}var xL=30,GP=e=>!isNaN(parseFloat(e)),yL={current:void 0},Wp=class{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let n=Je.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=Je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=GP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new br);let r=this.events[t].add(a);return t==="change"?()=>{r(),K.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return yL.current&&yL.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xL)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,xL);return Xu(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function za(e,t){return new Wp(e,t)}function jP(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,za(a))}function vL(e,t){let a=wr(e,t),{transitionEnd:r={},transition:o={},...n}=a||{};n={...n,...r};for(let s in n){let i=Wv(n[s]);jP(e,s,i)}}function LL(e){return!!(ue(e)&&e.add)}function Li(e,t){let a=e.getValue("willChange");if(LL(a))return a.add(t)}function Qu(e){return e.props[Mu]}var Yu={current:!1};var CL=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,KP=1e-7,$P=12;function XP(e,t,a,r,o){let n,s,i=0;do s=t+(a-t)/2,n=CL(s,r,o)-e,n>0?a=s:t=s;while(Math.abs(n)>KP&&++i<$P);return s}function Ar(e,t,a,r){if(e===t&&a===r)return se;let o=n=>XP(n,0,1,e,a);return n=>n===0||n===1?n:CL(o(n),t,r)}var Zu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Ju=e=>t=>1-e(1-t);var Gp=Ar(.33,1.53,.69,.99),Ci=Ju(Gp),ed=Zu(Ci);var td=e=>(e*=2)<1?.5*Ci(e):.5*(2-Math.pow(2,-10*(e-1)));var ad=e=>1-Math.sin(Math.acos(e)),rd=Ju(ad),od=Zu(ad);var nd=e=>/^0[^.\s]+$/u.test(e);function SL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nd(e):!0}var Rr=e=>Math.round(e*1e5)/1e5;var _n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function IL(e){return e==null}var wL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var zn=(e,t)=>a=>!!(typeof a=="string"&&wL.test(a)&&a.startsWith(e)||t&&!IL(a)&&Object.prototype.hasOwnProperty.call(a,t)),sd=(e,t,a)=>r=>{if(typeof r!="string")return r;let[o,n,s,i]=r.match(_n);return{[e]:parseFloat(o),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var QP=e=>Ge(0,255,e),jp={...ma,transform:e=>Math.round(QP(e))},ga={test:zn("rgb","red"),parse:sd("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+jp.transform(e)+", "+jp.transform(t)+", "+jp.transform(a)+", "+Rr(_a.transform(r))+")"};function YP(e){let t="",a="",r="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var Si={test:zn("#"),parse:YP,transform:ga.transform};var Mr={test:zn("hsl","hue"),parse:sd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+st.transform(Rr(t))+", "+st.transform(Rr(a))+", "+Rr(_a.transform(r))+")"};var Me={test:e=>ga.test(e)||Si.test(e)||Mr.test(e),parse:e=>ga.test(e)?ga.parse(e):Mr.test(e)?Mr.parse(e):Si.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ga.transform(e):Mr.transform(e)};var kL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZP(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_n))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(kL))===null||a===void 0?void 0:a.length)||0)>0}var TL="number",bL="color",JP="var",e1="var(",PL="${}",t1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function co(e){let t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[],n=0,i=t.replace(t1,l=>(Me.test(l)?(r.color.push(n),o.push(bL),a.push(Me.parse(l))):l.startsWith(e1)?(r.var.push(n),o.push(JP),a.push(l)):(r.number.push(n),o.push(TL),a.push(parseFloat(l))),++n,PL)).split(PL);return{values:a,split:i,indexes:r,types:o}}function AL(e){return co(e).values}function RL(e){let{split:t,types:a}=co(e),r=t.length;return o=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],o[s]!==void 0){let i=a[s];i===TL?n+=Rr(o[s]):i===bL?n+=Me.transform(o[s]):n+=o[s]}return n}}var a1=e=>typeof e=="number"?0:e;function r1(e){let t=AL(e);return RL(e)(t.map(a1))}var it={test:ZP,parse:AL,createTransformer:RL,getAnimatableNone:r1};var o1=new Set(["brightness","contrast","saturate","opacity"]);function n1(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=a.match(_n)||[];if(!r)return e;let o=a.replace(r,""),n=o1.has(t)?1:0;return r!==a&&(n*=100),t+"("+n+o+")"}var s1=/\b([a-z-]*)\(.*?\)/gu,Ii={...it,getAnimatableNone:e=>{let t=e.match(s1);return t?t.map(n1).join(" "):e}};var i1={...kn,color:Me,backgroundColor:Me,outlineColor:Me,fill:Me,stroke:Me,borderColor:Me,borderTopColor:Me,borderRightColor:Me,borderBottomColor:Me,borderLeftColor:Me,filter:Ii,WebkitFilter:Ii},qn=e=>i1[e];function id(e,t){let a=qn(e);return a!==Ii&&(a=it),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var l1=new Set(["auto","none","0"]);function ML(e,t,a){let r=0,o;for(;r<e.length&&!o;){let n=e[r];typeof n=="string"&&!l1.has(n)&&co(n).values.length&&(o=e[r]),r++}if(o&&a)for(let n of t)e[n]=id(a,o)}var Kp=e=>e===ma||e===F,DL=(e,t)=>parseFloat(e.split(", ")[t]),EL=(e,t)=>(a,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return DL(o[1],t);{let n=r.match(/^matrix\((.+)\)$/u);return n?DL(n[1],e):0}},u1=new Set(["x","y","z"]),d1=pa.filter(e=>!u1.has(e));function FL(e){let t=[];return d1.forEach(a=>{let r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}var fo={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:EL(4,13),y:EL(5,14)};fo.translateX=fo.x;fo.translateY=fo.y;var po=new Set,$p=!1,Xp=!1;function NL(){if(Xp){let e=Array.from(po).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{let o=FL(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=a.get(r);o&&o.forEach(([n,s])=>{var i;(i=r.getValue(n))===null||i===void 0||i.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Xp=!1,$p=!1,po.forEach(e=>e.complete()),po.clear()}function BL(){po.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xp=!0)})}function OL(){BL(),NL()}var Dr=class{constructor(t,a,r,o,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=o,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(po.add(this),$p||($p=!0,K.read(BL),K.resolveKeyframes(NL))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:r,motionValue:o}=this;for(let n=0;n<t.length;n++)if(t[n]===null)if(n===0){let s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&a){let l=r.readValue(a,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),po.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,po.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var ld=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var c1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function f1(e){let t=c1.exec(e);if(!t)return[,];let[,a,r,o]=t;return[`--${a??r}`,o]}var p1=4;function Qp(e,t,a=1){ea(a<=p1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=f1(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return ld(s)?parseFloat(s):s}return wn(o)?Qp(o,t,a+1):o}var ud=e=>t=>t.test(e);var VL={test:e=>e==="auto",parse:e=>e};var Yp=[ma,F,st,ha,Kv,jv,VL],Zp=e=>Yp.find(ud(e));var Hn=class extends Dr{constructor(t,a,r,o,n){super(t,a,r,o,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),wn(u))){let d=Qp(u,a.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ku.has(r)||t.length!==2)return;let[o,n]=t,s=Zp(o),i=Zp(n);if(s!==i)if(Kp(s)&&Kp(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,r=[];for(let o=0;o<t.length;o++)SL(t[o])&&r.push(o);r.length&&ML(t,r,a)}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;let o=a[a.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:a,name:r,unresolvedKeyframes:o}=this;if(!a||!a.current)return;let n=a.getValue(r);n&&n.jump(this.measuredOrigin,!1);let s=o.length-1,i=o[s];o[s]=fo[r](a.measureViewportBox(),window.getComputedStyle(a.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{a.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var Jp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(it.test(e)||e==="0")&&!e.startsWith("url("));function m1(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function UL(e,t,a,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=Jp(o,t),i=Jp(n,t);return Ba(s===i,`You are trying to animate ${t} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),!s||!i?!1:m1(e)||(a==="spring"||Pr(a))&&r}var h1=e=>e!==null;function Er(e,{repeat:t,repeatType:a="loop"},r){let o=e.filter(h1),n=t&&a!=="loop"&&t%2===1?0:o.length-1;return!n||r===void 0?o[n]:r}var g1=40,Wn=class{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:s="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Je.now(),this.options={autoplay:t,delay:a,type:r,repeat:o,repeatDelay:n,repeatType:s,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>g1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OL(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=Je.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:n,delay:s,onComplete:i,onUpdate:l,isGenerator:u}=this.options;if(!u&&!UL(t,r,o,n))if(Yu.current||!s){l&&l(Er(t,this.options,a)),i&&i(),this.resolveFinishedPromise();return}else this.options.duration=0;let d=this.initPlayback(t,a);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:a,...d},this.onPostResolved())}onPostResolved(){}then(t,a){return this.currentFinishedPromise.then(t,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};var Z=(e,t,a)=>e+(t-e)*a;function em(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function _L({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let o=0,n=0,s=0;if(!t)o=n=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i;o=em(l,i,e+1/3),n=em(l,i,e),s=em(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function Gn(e,t){return a=>a>0?t:e}var tm=(e,t,a)=>{let r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},x1=[Si,ga,Mr],y1=e=>x1.find(t=>t.test(e));function zL(e){let t=y1(e);if(Ba(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===Mr&&(a=_L(a)),a}var am=(e,t)=>{let a=zL(e),r=zL(t);if(!a||!r)return Gn(e,t);let o={...a};return n=>(o.red=tm(a.red,r.red,n),o.green=tm(a.green,r.green,n),o.blue=tm(a.blue,r.blue,n),o.alpha=Z(a.alpha,r.alpha,n),ga.transform(o))};var v1=(e,t)=>a=>t(e(a)),xa=(...e)=>e.reduce(v1);var dd=new Set(["none","hidden"]);function qL(e,t){return dd.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function L1(e,t){return a=>Z(e,t,a)}function cd(e){return typeof e=="number"?L1:typeof e=="string"?wn(e)?Gn:Me.test(e)?am:I1:Array.isArray(e)?HL:typeof e=="object"?Me.test(e)?am:C1:Gn}function HL(e,t){let a=[...e],r=a.length,o=e.map((n,s)=>cd(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)a[s]=o[s](n);return a}}function C1(e,t){let a={...e,...t},r={};for(let o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=cd(e[o])(e[o],t[o]));return o=>{for(let n in r)a[n]=r[n](o);return a}}function S1(e,t){var a;let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],i=e.indexes[s][o[s]],l=(a=e.values[i])!==null&&a!==void 0?a:0;r[n]=l,o[s]++}return r}var I1=(e,t)=>{let a=it.createTransformer(t),r=co(e),o=co(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?dd.has(e)&&!o.values.length||dd.has(t)&&!r.values.length?qL(e,t):xa(HL(S1(r,o),o.values),a):(Ba(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Gn(e,t))};function fd(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?Z(e,t,a):cd(e)(e,t)}var w1=5;function pd(e,t,a){let r=Math.max(t-w1,0);return Xu(a-e(r),t-r)}var he={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var rm=.001;function WL({duration:e=he.duration,bounce:t=he.bounce,velocity:a=he.velocity,mass:r=he.mass}){let o,n;Ba(e<=Te(he.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Ge(he.minDamping,he.maxDamping,s),e=Ge(he.minDuration,he.maxDuration,We(e)),s<1?(o=u=>{let d=u*s,f=d*e,p=d-a,g=md(u,s),y=Math.exp(-f);return rm-p/g*y},n=u=>{let f=u*s*e,p=f*a+a,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),v=md(Math.pow(u,2),s);return(-o(u)+rm>0?-1:1)*((p-g)*y)/v}):(o=u=>{let d=Math.exp(-u*e),f=(u-a)*e+1;return-rm+d*f},n=u=>{let d=Math.exp(-u*e),f=(a-u)*(e*e);return d*f});let i=5/e,l=P1(o,n,i);if(e=Te(e),isNaN(l))return{stiffness:he.stiffness,damping:he.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var k1=12;function P1(e,t,a){let r=a;for(let o=1;o<k1;o++)r=r-e(r)/t(r);return r}function md(e,t){return e*Math.sqrt(1-t*t)}var T1=["duration","bounce"],b1=["stiffness","damping","mass"];function GL(e,t){return t.some(a=>e[a]!==void 0)}function A1(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!GL(e,b1)&&GL(e,T1))if(e.visualDuration){let a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,n=2*Ge(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:he.mass,stiffness:o,damping:n}}else{let a=WL(e);t={...t,...a,mass:he.mass},t.isResolvedFromDuration=!0}return t}function hd(e=he.visualDuration,t=he.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=a,n=a.keyframes[0],s=a.keyframes[a.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:g}=A1({...a,velocity:-We(a.velocity||0)}),y=p||0,v=u/(2*Math.sqrt(l*d)),I=s-n,h=We(Math.sqrt(l/d)),m=Math.abs(I)<5;r||(r=m?he.restSpeed.granular:he.restSpeed.default),o||(o=m?he.restDelta.granular:he.restDelta.default);let x;if(v<1){let C=md(h,v);x=T=>{let P=Math.exp(-v*h*T);return s-P*((y+v*h*I)/C*Math.sin(C*T)+I*Math.cos(C*T))}}else if(v===1)x=C=>s-Math.exp(-h*C)*(I+(y+h*I)*C);else{let C=h*Math.sqrt(v*v-1);x=T=>{let P=Math.exp(-v*h*T),k=Math.min(C*T,300);return s-P*((y+v*h*I)*Math.sinh(k)+C*I*Math.cosh(k))/C}}let S={calculatedDuration:g&&f||null,next:C=>{let T=x(C);if(g)i.done=C>=f;else{let P=0;v<1&&(P=C===0?Te(y):pd(x,C,T));let k=Math.abs(P)<=r,E=Math.abs(s-T)<=o;i.done=k&&E}return i.value=i.done?s:T,i},toString:()=>{let C=Math.min(En(S),2e4),T=vi(P=>S.next(C*P).value,C,30);return C+"ms "+T}};return S}function om({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:d}){let f=e[0],p={done:!1,value:f},g=k=>i!==void 0&&k<i||l!==void 0&&k>l,y=k=>i===void 0?l:l===void 0||Math.abs(i-k)<Math.abs(l-k)?i:l,v=a*t,I=f+v,h=s===void 0?I:s(I);h!==I&&(v=h-f);let m=k=>-v*Math.exp(-k/r),x=k=>h+m(k),S=k=>{let E=m(k),R=x(k);p.done=Math.abs(E)<=u,p.value=p.done?h:R},C,T,P=k=>{g(p.value)&&(C=k,T=hd({keyframes:[p.value,y(p.value)],velocity:pd(x,k,p.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:k=>{let E=!1;return!T&&C===void 0&&(E=!0,S(k),P(k)),C!==void 0&&k>=C?T.next(k-C):(!E&&S(k),p)}}}var jL=Ar(.42,0,1,1),KL=Ar(0,0,.58,1),gd=Ar(.42,0,.58,1);var $L=e=>Array.isArray(e)&&typeof e[0]!="number";var XL={linear:se,easeIn:jL,easeInOut:gd,easeOut:KL,circIn:ad,circInOut:od,circOut:rd,backIn:Ci,backInOut:ed,backOut:Gp,anticipate:td},nm=e=>{if(Fn(e)){ea(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,a,r,o]=e;return Ar(t,a,r,o)}else if(typeof e=="string")return ea(XL[e]!==void 0,`Invalid easing type '${e}'`),XL[e];return e};function R1(e,t,a){let r=[],o=a||fd,n=e.length-1;for(let s=0;s<n;s++){let i=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||se:t;i=xa(l,i)}r.push(i)}return r}function QL(e,t,{clamp:a=!0,ease:r,mixer:o}={}){let n=e.length;if(ea(n===t.length,"Both input and output ranges must be the same length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=R1(t,r,o),l=i.length,u=d=>{if(s&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let p=At(e[f],e[f+1],d);return i[f](p)};return a?d=>u(Ge(e[0],e[n-1],d)):u}function YL(e,t){let a=e[e.length-1];for(let r=1;r<=t;r++){let o=At(0,t,r);e.push(Z(a,1,o))}}function ZL(e){let t=[0];return YL(t,e.length-1),t}function JL(e,t){return e.map(a=>a*t)}function M1(e,t){return e.map(()=>t||gd).splice(0,e.length-1)}function wi({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){let o=$L(r)?r.map(nm):nm(r),n={done:!1,value:t[0]},s=JL(a&&a.length===t.length?a:ZL(t),e),i=QL(s,t,{ease:Array.isArray(o)?o:M1(t,o)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var e0=e=>{let t=({timestamp:a})=>e(a);return{start:()=>K.update(t,!0),stop:()=>Rt(t),now:()=>be.isProcessing?be.timestamp:Je.now()}};var D1={decay:om,inertia:om,tween:wi,keyframes:wi,spring:hd},E1=e=>e/100,mo=class extends Wn{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:a,motionValue:r,element:o,keyframes:n}=this.options,s=o?.KeyframeResolver||Dr,i=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(n,i,a,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:a="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:n,velocity:s=0}=this.options,i=Pr(a)?a:D1[a]||wi,l,u;i!==wi&&typeof t[0]!="number"&&(l=xa(E1,fd(t[0],t[1])),t=[0,100]);let d=i({...this.options,keyframes:t});n==="mirror"&&(u=i({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=En(d));let{calculatedDuration:f}=d,p=f+o,g=p*(r+1)-o;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:g}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,a=!1){let{resolved:r}=this;if(!r){let{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}let{finalKeyframe:o,generator:n,mirroredGenerator:s,mapPercentToKeyframes:i,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return n.next(0);let{delay:p,repeat:g,repeatType:y,repeatDelay:v,onUpdate:I}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),a?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let h=this.currentTime-p*(this.speed>=0?1:-1),m=this.speed>=0?h<0:h>d;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=n;if(g){let k=Math.min(this.currentTime,d)/f,E=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&E--,E=Math.min(E,g+1),E%2&&(y==="reverse"?(R=1-R,v&&(R-=v/f)):y==="mirror"&&(S=s)),x=Ge(0,1,R)*f}let C=m?{done:!1,value:l[0]}:S.next(x);i&&(C.value=i(C.value));let{done:T}=C;!m&&u!==null&&(T=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return P&&o!==void 0&&(C.value=Er(l,this.options,o)),I&&I(C.value),P&&this.finish(),C}get duration(){let{resolved:t}=this;return t?We(t.calculatedDuration):0}get time(){return We(this.currentTime)}set time(t){t=Te(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=We(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=e0,onPlay:a,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),a&&a();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};var t0=new Set(["opacity","clipPath","filter","transform"]);function a0(e,t,a,{delay:r=0,duration:o=300,repeat:n=0,repeatType:s="loop",ease:i="easeInOut",times:l}={}){let u={[t]:a};l&&(u.offset=l);let d=Bn(i,o);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"})}var r0=so(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var xd=10,F1=2e4;function N1(e){return Pr(e.type)||e.type==="spring"||!Wu(e.ease)}function B1(e,t){let a=new mo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],n=0;for(;!r.done&&n<F1;)r=a.sample(n),o.push(r.value),n+=xd;return{times:void 0,keyframes:o,duration:n-xd,ease:"linear"}}var o0={anticipate:td,backInOut:ed,circInOut:od};function O1(e){return e in o0}var ki=class extends Wn{constructor(t){super(t);let{name:a,motionValue:r,element:o,keyframes:n}=this.options;this.resolver=new Hn(n,(s,i)=>this.onKeyframesResolved(s,i),a,r,o),this.resolver.scheduleResolve()}initPlayback(t,a){let{duration:r=300,times:o,ease:n,type:s,motionValue:i,name:l,startTime:u}=this.options;if(!i.owner||!i.owner.current)return!1;if(typeof n=="string"&&Tr()&&O1(n)&&(n=o0[n]),N1(this.options)){let{onComplete:f,onUpdate:p,motionValue:g,element:y,...v}=this.options,I=B1(t,v);t=I.keyframes,t.length===1&&(t[1]=t[0]),r=I.duration,o=I.times,n=I.ease,s="keyframes"}let d=a0(i.owner.current,l,t,{...this.options,duration:r,times:o,ease:n});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(yi(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:f}=this.options;i.set(Er(t,this.options,a)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:a}=t;return We(a)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:a}=t;return We(a.currentTime||0)}set time(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.currentTime=Te(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:a}=t;return a.playbackRate}set speed(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:a}=t;return a.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:a}=t;return a.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:a}=this;if(!a)return se;let{animation:r}=a;yi(r,t)}return se}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:a,keyframes:r,duration:o,type:n,ease:s,times:i}=t;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:d,onComplete:f,element:p,...g}=this.options,y=new mo({...g,keyframes:r,duration:o,type:n,ease:s,times:i,isGenerator:!0}),v=Te(this.time);u.setWithVelocity(y.sample(v-xd).value,y.sample(v).value,xd)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:a,name:r,repeatDelay:o,repeatType:n,damping:s,type:i}=t;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=a.owner.getProps();return r0()&&r&&t0.has(r)&&!l&&!u&&!o&&n!=="mirror"&&s!==0&&i!=="inertia"}};var V1={type:"spring",stiffness:500,damping:25,restSpeed:10},U1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_1={type:"keyframes",duration:.8},z1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n0=(e,{keyframes:t})=>t.length>2?_1:vt.has(e)?e.startsWith("scale")?U1(t[1]):V1:z1;function s0({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:o,repeat:n,repeatType:s,repeatDelay:i,from:l,elapsed:u,...d}){return!!Object.keys(d).length}var jn=(e,t,a,r={},o,n)=>s=>{let i=kr(r,e)||{},l=i.delay||r.delay||0,{elapsed:u=0}=r;u=u-Te(l);let d={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:p=>{t.set(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:n?void 0:o};s0(i)||(d={...d,...n0(e,d)}),d.duration&&(d.duration=Te(d.duration)),d.repeatDelay&&(d.repeatDelay=Te(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),(Yu.current||xn.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),f&&!n&&t.get()!==void 0){let p=Er(d.keyframes,i);if(p!==void 0)return K.update(()=>{d.onUpdate(p),d.onComplete()}),new xi([])}return!n&&ki.supports(d)?new ki(d):new mo(d)};function q1({protectedKeys:e,needsAnimating:t},a){let r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function yd(e,t,{delay:a=0,transitionOverride:r,type:o}={}){var n;let{transition:s=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(s=r);let u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(let f in l){let p=e.getValue(f,(n=e.latestValues[f])!==null&&n!==void 0?n:null),g=l[f];if(g===void 0||d&&q1(d,f))continue;let y={delay:a,...kr(s||{},f)},v=!1;if(window.MotionHandoffAnimation){let h=Qu(e);if(h){let m=window.MotionHandoffAnimation(h,f,K);m!==null&&(y.startTime=m,v=!0)}}Li(e,f),p.start(jn(f,p,g,e.shouldReduceMotion&&Ku.has(f)?{type:!1}:y,e,v));let I=p.animation;I&&u.push(I)}return i&&Promise.all(u).then(()=>{K.update(()=>{i&&vL(e,i)})}),u}function vd(e,t,a={}){var r;let o=wr(e,t,a.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(n=a.transitionOverride);let s=o?()=>Promise.all(yd(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=n;return H1(e,t,d+u,f,p,a)}:()=>Promise.resolve(),{when:l}=n;if(l){let[u,d]=l==="beforeChildren"?[s,i]:[i,s];return u().then(()=>d())}else return Promise.all([s(),i(a.delay)])}function H1(e,t,a=0,r=0,o=1,n){let s=[],i=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>i-u*r;return Array.from(e.variantChildren).sort(W1).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(vd(u,t,{...n,delay:a+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function W1(e,t){return e.sortNodePosition(t)}function i0(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(n=>vd(e,n,a));r=Promise.all(o)}else if(typeof t=="string")r=vd(e,t,a);else{let o=typeof t=="function"?wr(e,t,a.custom):t;r=Promise.all(yd(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}var G1=fi.length;function sm(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?sm(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<G1;a++){let r=fi[a],o=e.props[r];(Va(o)||o===!1)&&(t[r]=o)}return t}var j1=[...bu].reverse(),K1=bu.length;function $1(e){return t=>Promise.all(t.map(({animation:a,options:r})=>i0(e,a,r)))}function u0(e){let t=$1(e),a=l0(),r=!0,o=l=>(u,d)=>{var f;let p=wr(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){let{transition:g,transitionEnd:y,...v}=p;u={...u,...v,...y}}return u};function n(l){t=l(e)}function s(l){let{props:u}=e,d=sm(e.parent)||{},f=[],p=new Set,g={},y=1/0;for(let I=0;I<K1;I++){let h=j1[I],m=a[h],x=u[h]!==void 0?u[h]:d[h],S=Va(x),C=h===l?m.isActive:null;C===!1&&(y=I);let T=x===d[h]&&x!==u[h]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),m.protectedKeys={...g},!m.isActive&&C===null||!x&&!m.prevProp||Ir(x)||typeof x=="boolean")continue;let P=X1(m.prevProp,x),k=P||h===l&&m.isActive&&!T&&S||I>y&&S,E=!1,R=Array.isArray(x)?x:[x],ae=R.reduce(o(h),{});C===!1&&(ae={});let{prevResolvedValues:re={}}=m,aa={...re,...ae},$=we=>{k=!0,p.has(we)&&(E=!0,p.delete(we)),m.needsAnimating[we]=!0;let De=e.getValue(we);De&&(De.liveStyle=!1)};for(let we in aa){let De=ae[we],Ct=re[we];if(g.hasOwnProperty(we))continue;let oa=!1;pi(De)&&pi(Ct)?oa=!Np(De,Ct):oa=De!==Ct,oa?De!=null?$(we):p.add(we):De!==void 0&&p.has(we)?$(we):m.protectedKeys[we]=!0}m.prevProp=x,m.prevResolvedValues=ae,m.isActive&&(g={...g,...ae}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(T&&P)||E)&&f.push(...R.map(we=>({animation:we,options:{type:h}})))}if(p.size){let I={};p.forEach(h=>{let m=e.getBaseTarget(h),x=e.getValue(h);x&&(x.liveStyle=!0),I[h]=m??null}),f.push({animation:I})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function i(l,u){var d;if(a[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),a[l].isActive=u;let f=s(l);for(let p in a)a[p].protectedKeys={};return f}return{animateChanges:s,setActive:i,setAnimateFunction:n,getState:()=>a,reset:()=>{a=l0(),r=!0}}}function X1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Np(t,e):!1}function ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function l0(){return{animate:ho(!0),whileInView:ho(),whileHover:ho(),whileTap:ho(),whileDrag:ho(),whileFocus:ho(),exit:ho()}}var Ue=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Ld=class extends Ue{constructor(t){super(t),t.animationState||(t.animationState=u0(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Ir(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var Q1=0,Cd=class extends Ue{constructor(){super(...arguments),this.id=Q1++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>a(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var d0={animation:{Feature:Ld},exit:{Feature:Cd}};function qa(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function Ha(e){return{point:{x:e.pageX,y:e.pageY}}}var c0=e=>t=>lo(t)&&e(t,Ha(t));function Fr(e,t,a,r){return qa(e,t,c0(a),r)}var f0=(e,t)=>Math.abs(e-t);function p0(e,t){let a=f0(e.x,t.x),r=f0(e.y,t.y);return Math.sqrt(a**2+r**2)}var Kn=class{constructor(t,a,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=lm(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=p0(f.offset,{x:0,y:0})>=3;if(!p&&!g)return;let{point:y}=f,{timestamp:v}=be;this.history.push({...y,timestamp:v});let{onStart:I,onMove:h}=this.handlers;p||(I&&I(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=im(p,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let I=lm(f.type==="pointercancel"?this.lastMoveEventInfo:im(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,I),y&&y(f,I)},!lo(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=r,this.contextWindow=o||window;let s=Ha(t),i=im(s,this.transformPagePoint),{point:l}=i,{timestamp:u}=be;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=a;d&&d(t,lm(i,this.history)),this.removeListeners=xa(Fr(this.contextWindow,"pointermove",this.handlePointerMove),Fr(this.contextWindow,"pointerup",this.handlePointerUp),Fr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rt(this.updatePoint)}};function im(e,t){return t?{point:t(e.point)}:e}function m0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lm({point:e},t){return{point:e,delta:m0(e,h0(t)),offset:m0(e,Y1(t)),velocity:Z1(t,.1)}}function Y1(e){return e[0]}function h0(e){return e[e.length-1]}function Z1(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null,o=h0(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>Te(t)));)a--;if(!r)return{x:0,y:0};let n=We(o.timestamp-r.timestamp);if(n===0)return{x:0,y:0};let s={x:(o.x-r.x)/n,y:(o.y-r.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var v0=1e-4,J1=1-v0,eT=1+v0,L0=.01,tT=0-L0,aT=0+L0;function je(e){return e.max-e.min}function C0(e,t,a){return Math.abs(e-t)<=a}function g0(e,t,a,r=.5){e.origin=r,e.originPoint=Z(t.min,t.max,e.origin),e.scale=je(a)/je(t),e.translate=Z(a.min,a.max,e.origin)-e.originPoint,(e.scale>=J1&&e.scale<=eT||isNaN(e.scale))&&(e.scale=1),(e.translate>=tT&&e.translate<=aT||isNaN(e.translate))&&(e.translate=0)}function $n(e,t,a,r){g0(e.x,t.x,a.x,r?r.originX:void 0),g0(e.y,t.y,a.y,r?r.originY:void 0)}function x0(e,t,a){e.min=a.min+t.min,e.max=e.min+je(t)}function S0(e,t,a){x0(e.x,t.x,a.x),x0(e.y,t.y,a.y)}function y0(e,t,a){e.min=t.min-a.min,e.max=e.min+je(t)}function Xn(e,t,a){y0(e.x,t.x,a.x),y0(e.y,t.y,a.y)}function T0(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?Z(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?Z(a,e,r.max):Math.min(e,a)),e}function I0(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function b0(e,{top:t,left:a,bottom:r,right:o}){return{x:I0(e.x,a,o),y:I0(e.y,t,r)}}function w0(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function A0(e,t){return{x:w0(e.x,t.x),y:w0(e.y,t.y)}}function R0(e,t){let a=.5,r=je(e),o=je(t);return o>r?a=At(t.min,t.max-r,e.min):r>o&&(a=At(e.min,e.max-o,t.min)),Ge(0,1,a)}function M0(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var Sd=.35;function D0(e=Sd){return e===!1?e=0:e===!0&&(e=Sd),{x:k0(e,"left","right"),y:k0(e,"top","bottom")}}function k0(e,t,a){return{min:P0(e,t),max:P0(e,a)}}function P0(e,t){return typeof e=="number"?e:e[t]||0}var E0=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:E0(),y:E0()}),F0=()=>({min:0,max:0}),ge=()=>({x:F0(),y:F0()});function Lt(e){return[e("x"),e("y")]}function Id({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function N0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B0(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function um(e){return e===void 0||e===1}function wd({scale:e,scaleX:t,scaleY:a}){return!um(e)||!um(t)||!um(a)}function Wa(e){return wd(e)||dm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dm(e){return O0(e.x)||O0(e.y)}function O0(e){return e&&e!=="0%"}function Pi(e,t,a){let r=e-a,o=t*r;return a+o}function V0(e,t,a,r,o){return o!==void 0&&(e=Pi(e,o,r)),Pi(e,a,r)+t}function cm(e,t=0,a=1,r,o){e.min=V0(e.min,t,a,r,o),e.max=V0(e.max,t,a,r,o)}function fm(e,{x:t,y:a}){cm(e.x,t.translate,t.scale,t.originPoint),cm(e.y,a.translate,a.scale,a.originPoint)}var U0=.999999999999,_0=1.0000000000001;function q0(e,t,a,r=!1){let o=a.length;if(!o)return;t.x=t.y=1;let n,s;for(let i=0;i<o;i++){n=a[i],s=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&xo(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,fm(e,s)),r&&Wa(n.latestValues)&&xo(e,n.latestValues))}t.x<_0&&t.x>U0&&(t.x=1),t.y<_0&&t.y>U0&&(t.y=1)}function Nr(e,t){e.min=e.min+t,e.max=e.max+t}function z0(e,t,a,r,o=.5){let n=Z(e.min,e.max,o);cm(e,t,a,n,r)}function xo(e,t){z0(e.x,t.x,t.scaleX,t.scale,t.originX),z0(e.y,t.y,t.scaleY,t.scale,t.originY)}function pm(e,t){return Id(B0(e.getBoundingClientRect(),t))}function H0(e,t,a){let r=pm(e,a),{scroll:o}=t;return o&&(Nr(r.x,o.offset.x),Nr(r.y,o.offset.y)),r}var kd=({current:e})=>e?e.ownerDocument.defaultView:null;var rT=new WeakMap,Td=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ge(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=d=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Ha(d).point)},n=(d,f)=>{let{drag:p,dragPropagation:g,onDragStart:y}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Hp(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lt(I=>{let h=this.getAxisMotionValue(I).get()||0;if(st.test(h)){let{projection:m}=this.visualElement;if(m&&m.layout){let x=m.layout.layoutBox[I];x&&(h=je(x)*(parseFloat(h)/100))}}this.originPoint[I]=h}),y&&K.postRender(()=>y(d,f)),Li(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{let{dragPropagation:p,dragDirectionLock:g,onDirectionLock:y,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:I}=f;if(g&&this.currentDirection===null){this.currentDirection=oT(I),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,I),this.updateAxis("y",f.point,I),this.visualElement.render(),v&&v(d,f)},i=(d,f)=>this.stop(d,f),l=()=>Lt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Kn(t,{onSessionStart:o,onStart:n,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:kd(this.visualElement)})}stop(t,a){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=a;this.startAnimation(o);let{onDragEnd:n}=this.getProps();n&&K.postRender(()=>n(t,a))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,r){let{drag:o}=this.getProps();if(!r||!Pd(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=T0(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:a,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,n=this.constraints;a&&Ua(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=b0(o.layoutBox,a):this.constraints=!1,this.elastic=D0(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Lt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=M0(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ua(t))return!1;let r=t.current;ea(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=H0(r,o.root,this.visualElement.getTransformPagePoint()),s=A0(o.layout.layoutBox,n);if(a){let i=a(N0(s));this.hasMutatedConstraints=!!i,i&&(s=Id(i))}return s}startAnimation(t){let{drag:a,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Lt(d=>{if(!Pd(d,a,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});let p=o?200:1e6,g=o?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...n,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let r=this.getAxisMotionValue(t);return Li(this.visualElement,t),r.start(jn(t,r,0,a,this.visualElement,!1))}stopAnimation(){Lt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Lt(t=>{var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.state}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[a];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Lt(a=>{let{drag:r}=this.getProps();if(!Pd(a,r,this.currentDirection))return;let{projection:o}=this.visualElement,n=this.getAxisMotionValue(a);if(o&&o.layout){let{min:s,max:i}=o.layout.layoutBox[a];n.set(t[a]-Z(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Ua(a)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Lt(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let l=i.get();o[s]=R0({min:l,max:l},this.constraints[s])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Lt(s=>{if(!Pd(s,t,null))return;let i=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];i.set(Z(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;rT.set(this.visualElement,this);let t=this.visualElement.current,a=Fr(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();Ua(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,n=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),K.read(r);let s=qa(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Lt(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),a(),n(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:s=Sd,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function Pd(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function oT(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var bd=class extends Ue{constructor(t){super(t),this.removeGroupControls=se,this.removeListeners=se,this.controls=new Td(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||se}unmount(){this.removeGroupControls(),this.removeListeners()}};var W0=e=>(t,a)=>{e&&K.postRender(()=>e(t,a))},Ad=class extends Ue{constructor(){super(...arguments),this.removePointerDownListener=se}onPointerDown(t){this.session=new Kn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kd(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:W0(t),onStart:W0(a),onMove:r,onEnd:(n,s)=>{delete this.session,o&&K.postRender(()=>o(n,s))}}}mount(){this.removePointerDownListener=Fr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var K0=N(ot(),1),Ti=N(H(),1);var Qn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function G0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Yn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;let a=G0(e,t.target.x),r=G0(e,t.target.y);return`${a}% ${r}%`}};var j0={correct:(e,{treeScale:t,projectionDelta:a})=>{let r=e,o=it.parse(e);if(o.length>5)return r;let n=it.createTransformer(e),s=typeof o[0]!="number"?1:0,i=a.x.scale*t.x,l=a.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;let u=Z(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),n(o)}};var mm=class extends Ti.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=t;eL(nT),n&&(a.group&&a.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),Qn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:r,drag:o,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,o||t.layoutDependency!==a||a===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||K.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),vn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Rd(e){let[t,a]=Lu(),r=(0,Ti.useContext)(pn);return(0,K0.jsx)(mm,{...e,layoutGroup:r,switchLayoutGroup:(0,Ti.useContext)(Du),isPresent:t,safeToRemove:a})}var nT={borderRadius:{...Yn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yn,borderTopRightRadius:Yn,borderBottomLeftRadius:Yn,borderBottomRightRadius:Yn,boxShadow:j0};function $0(e,t,a){let r=ue(e)?e:za(e);return r.start(jn("",r,t,a)),r.animation}function X0(e){return e instanceof SVGElement&&e.tagName!=="svg"}var Q0=(e,t)=>e.depth-t.depth;var Md=class{constructor(){this.children=[],this.isDirty=!1}add(t){Vn(this.children,t),this.isDirty=!0}remove(t){Un(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Q0),this.isDirty=!1,this.children.forEach(t)}};function Y0(e,t){let a=Je.now(),r=({timestamp:o})=>{let n=o-a;n>=t&&(Rt(r),e(n-t))};return K.read(r,!0),()=>Rt(r)}var tC=["TopLeft","TopRight","BottomLeft","BottomRight"],sT=tC.length,Z0=e=>typeof e=="string"?parseFloat(e):e,J0=e=>typeof e=="number"||F.test(e);function aC(e,t,a,r,o,n){o?(e.opacity=Z(0,a.opacity!==void 0?a.opacity:1,iT(r)),e.opacityExit=Z(t.opacity!==void 0?t.opacity:1,0,lT(r))):n&&(e.opacity=Z(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,r));for(let s=0;s<sT;s++){let i=`border${tC[s]}Radius`,l=eC(t,i),u=eC(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||J0(l)===J0(u)?(e[i]=Math.max(Z(Z0(l),Z0(u),r),0),(st.test(u)||st.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=Z(t.rotate||0,a.rotate||0,r))}function eC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var iT=rC(0,.5,rd),lT=rC(.5,.95,se);function rC(e,t,a){return r=>r<e?0:r>t?1:a(At(e,t,r))}function oC(e,t){e.min=t.min,e.max=t.max}function Dt(e,t){oC(e.x,t.x),oC(e.y,t.y)}function hm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nC(e,t,a,r,o){return e-=t,e=Pi(e,1/a,r),o!==void 0&&(e=Pi(e,1/o,r)),e}function uT(e,t=0,a=1,r=.5,o,n=e,s=e){if(st.test(t)&&(t=parseFloat(t),t=Z(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Z(n.min,n.max,r);e===n&&(i-=t),e.min=nC(e.min,t,a,i,o),e.max=nC(e.max,t,a,i,o)}function sC(e,t,[a,r,o],n,s){uT(e,t[a],t[r],t[o],t.scale,n,s)}var dT=["x","scaleX","originX"],cT=["y","scaleY","originY"];function gm(e,t,a,r){sC(e.x,t,dT,a?a.x:void 0,r?r.x:void 0),sC(e.y,t,cT,a?a.y:void 0,r?r.y:void 0)}function iC(e){return e.translate===0&&e.scale===1}function xm(e){return iC(e.x)&&iC(e.y)}function lC(e,t){return e.min===t.min&&e.max===t.max}function dC(e,t){return lC(e.x,t.x)&&lC(e.y,t.y)}function uC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ym(e,t){return uC(e.x,t.x)&&uC(e.y,t.y)}function vm(e){return je(e.x)/je(e.y)}function Lm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Dd=class{constructor(){this.members=[]}add(t){Vn(this.members,t),t.scheduleRender()}remove(t){if(Un(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){let a=this.members.findIndex(o=>t===o);if(a===0)return!1;let r;for(let o=a;o>=0;o--){let n=this.members[o];if(n.isPresent!==!1){r=n;break}}return r?(this.promote(r),!0):!1}promote(t,a){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,a&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:a,resumingFrom:r}=t;a.onExitComplete&&a.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function cC(e,t,a){let r="",o=e.x.translate/t.x,n=e.y.translate/t.y,s=a?.z||0;if((o||n||s)&&(r=`translate3d(${o}px, ${n}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:g,skewY:y}=a;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(r+=`scale(${i}, ${l})`),r||"none"}var yo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},bi=typeof window<"u"&&window.MotionDebug!==void 0,Cm=["","X","Y","Z"],fT={visibility:"hidden"},fC=1e3,pT=0;function Sm(e,t,a,r){let{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function LC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=Qu(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:o,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",K,!(o||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&LC(r)}function Ed({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t?.()){this.id=pT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bi&&(yo.totalNodes=yo.resolvedTargetDeltas=yo.recalculatedProjection=0),this.nodes.forEach(gT),this.nodes.forEach(CT),this.nodes.forEach(ST),this.nodes.forEach(xT),bi&&window.MotionDebug.record(yo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Md)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new br),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=X0(s),this.instance=s;let{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(u||l)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Y0(p,250),Qn.hasAnimatedSinceResize&&(Qn.hasAnimatedSinceResize=!1,this.nodes.forEach(mC))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let v=this.options.transition||d.getDefaultTransition()||TT,{onLayoutAnimationStart:I,onLayoutAnimationComplete:h}=d.getProps(),m=!this.targetLayout||!ym(this.targetLayout,y)||g,x=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);let S={...kr(v,"layout"),onPlay:I,onComplete:h};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||mC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(IT),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(pC);return}this.isUpdating||this.nodes.forEach(vT),this.isUpdating=!1,this.nodes.forEach(LT),this.nodes.forEach(mT),this.nodes.forEach(hT),this.clearAllSnapshots();let i=Je.now();be.delta=Ge(0,1e3/60,i-be.timestamp),be.timestamp=i,be.isProcessing=!0,Pu.update.process(be),Pu.preRender.process(be),Pu.render.process(be),be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yT),this.sharedNodes.forEach(wT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ge(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!xm(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(i||Wa(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),bT(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:i}=this.options;if(!i)return ge();let l=i.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(AT))){let{scroll:d}=this.root;d&&(Nr(l.x,d.offset.x),Nr(l.y,d.offset.y))}return l}removeElementScroll(s){var i;let l=ge();if(Dt(l,s),!((i=this.scroll)===null||i===void 0)&&i.wasRoot)return l;for(let u=0;u<this.path.length;u++){let d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&Dt(l,s),Nr(l.x,f.offset.x),Nr(l.y,f.offset.y))}return l}applyTransform(s,i=!1){let l=ge();Dt(l,s);for(let u=0;u<this.path.length;u++){let d=this.path[u];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&xo(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Wa(d.latestValues)&&xo(l,d.latestValues)}return Wa(this.latestValues)&&xo(l,this.latestValues),l}removeTransform(s){let i=ge();Dt(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Wa(u.latestValues))continue;wd(u.latestValues)&&u.updateSnapshot();let d=ge(),f=u.measurePageBox();Dt(d,f),gm(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Wa(this.latestValues)&&gm(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=be.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ge(),this.relativeTargetOrigin=ge(),Xn(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Dt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ge(),this.targetWithTransforms=ge()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),S0(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Dt(this.target,this.layout.layoutBox),fm(this.target,this.targetDelta)):Dt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ge(),this.relativeTargetOrigin=ge(),Xn(this.relativeTargetOrigin,this.target,g.target),Dt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}bi&&yo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||wd(this.parent.latestValues)||dm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let i=this.getLead(),l=!!this.resumingFrom||this!==i,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===be.timestamp&&(u=!1),u)return;let{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;Dt(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,g=this.treeScale.y;q0(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=ge());let{target:y}=i;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hm(this.prevProjectionDelta.x,this.projectionDelta.x),hm(this.prevProjectionDelta.y,this.projectionDelta.y)),$n(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!Lm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Lm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),bi&&yo.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)===null||i===void 0||i.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=go(),this.projectionDelta=go(),this.projectionDeltaWithTransform=go()}setAnimationOrigin(s,i=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let p=ge(),g=l?l.source:void 0,y=this.layout?this.layout.source:void 0,v=g!==y,I=this.getStack(),h=!I||I.members.length<=1,m=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(PT));this.animationProgress=0;let x;this.mixTargetDelta=S=>{let C=S/1e3;hC(f.x,s.x,C),hC(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xn(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kT(this.relativeTarget,this.relativeTargetOrigin,p,C),x&&dC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=ge()),Dt(x,this.relativeTarget)),v&&(this.animationValues=d,aC(d,u,this.latestValues,C,m,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{Qn.hasAnimatedSinceResize=!0,this.currentAnimation=$0(0,fC,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:l,layout:u,latestValues:d}=s;if(!(!i||!l||!u)){if(this!==s&&this.layout&&u&&CC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ge();let f=je(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;let p=je(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}Dt(i,l),xo(i,d),$n(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Dd),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&Sm("z",s,u,this.animationValues);for(let d=0;d<Cm.length;d++)Sm(`rotate${Cm[d]}`,s,u,this.animationValues),Sm(`skew${Cm[d]}`,s,u,this.animationValues);s.render();for(let d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return fT;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=In(s?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=In(s?.pointerEvents)||""),this.hasProjected&&!Wa(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}let p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=cC(this.projectionDeltaWithTransform,this.treeScale,p),d&&(u.transform=d(p,u.transform));let{x:g,y}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(i=p.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let v in Rn){if(p[v]===void 0)continue;let{correct:I,applyTo:h}=Rn[v],m=u.transform==="none"?p[v]:I(p[v],f);if(h){let x=h.length;for(let S=0;S<x;S++)u[h[S]]=m}else u[v]=m}return this.options.layoutId&&(u.pointerEvents=f===this?In(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(pC),this.root.sharedNodes.clear()}}}function mT(e){e.updateLayout()}function hT(e){var t;let a=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,s=a.source!==e.layout.source;n==="size"?Lt(f=>{let p=s?a.measuredBox[f]:a.layoutBox[f],g=je(p);p.min=r[f].min,p.max=p.min+g}):CC(n,a.layoutBox,r)&&Lt(f=>{let p=s?a.measuredBox[f]:a.layoutBox[f],g=je(r[f]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});let i=go();$n(i,r,a.layoutBox);let l=go();s?$n(l,e.applyTransform(o,!0),a.measuredBox):$n(l,r,a.layoutBox);let u=!xm(i),d=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:g}=f;if(p&&g){let y=ge();Xn(y,a.layoutBox,p.layoutBox);let v=ge();Xn(v,r,g.layoutBox),ym(y,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:l,layoutDelta:i,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function gT(e){bi&&yo.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yT(e){e.clearSnapshot()}function pC(e){e.clearMeasurements()}function vT(e){e.isLayoutDirty=!1}function LT(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CT(e){e.resolveTargetDelta()}function ST(e){e.calcProjection()}function IT(e){e.resetSkewAndRotation()}function wT(e){e.removeLeadSnapshot()}function hC(e,t,a){e.translate=Z(t.translate,0,a),e.scale=Z(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function gC(e,t,a,r){e.min=Z(t.min,a.min,r),e.max=Z(t.max,a.max,r)}function kT(e,t,a,r){gC(e.x,t.x,a.x,r),gC(e.y,t.y,a.y,r)}function PT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var TT={duration:.45,ease:[.4,0,.1,1]},xC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yC=xC("applewebkit/")&&!xC("chrome/")?Math.round:se;function vC(e){e.min=yC(e.min),e.max=yC(e.max)}function bT(e){vC(e.x),vC(e.y)}function CC(e,t,a){return e==="position"||e==="preserve-aspect"&&!C0(vm(t),vm(a),.2)}function AT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var SC=Ed({attachResizeListener:(e,t)=>qa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Im={current:void 0},Fd=Ed({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Im.current){let e=new SC({});e.mount(window),e.setOptions({layoutScroll:!0}),Im.current=e}return Im.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var IC={pan:{Feature:Ad},drag:{Feature:bd,ProjectionNode:Fd,MeasureLayout:Rd}};function wC(e,t,a){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");let o="onHover"+a,n=r[o];n&&K.postRender(()=>n(t,Ha(t)))}var Nd=class extends Ue{mount(){let{current:t}=this.node;t&&(this.unmount=_p(t,a=>(wC(this.node,a,"Start"),r=>wC(this.node,r,"End"))))}unmount(){}};var Bd=class extends Ue{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xa(qa(this.node.current,"focus",()=>this.onFocus()),qa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function kC(e,t,a){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");let o="onTap"+(a==="End"?"":a),n=r[o];n&&K.postRender(()=>n(t,Ha(t)))}var Od=class extends Ue{mount(){let{current:t}=this.node;t&&(this.unmount=qp(t,a=>(kC(this.node,a,"Start"),(r,{success:o})=>kC(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var km=new WeakMap,wm=new WeakMap,RT=e=>{let t=km.get(e.target);t&&t(e)},MT=e=>{e.forEach(RT)};function DT({root:e,...t}){let a=e||document;wm.has(a)||wm.set(a,{});let r=wm.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(MT,{root:e,...t})),r[o]}function PC(e,t,a){let r=DT(t);return km.set(e,a),r.observe(e),()=>{km.delete(e),r.unobserve(e)}}var ET={some:0,all:1},Vd=class extends Ue{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:o="some",once:n}=t,s={root:a?a.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:ET[o]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(l)};return PC(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(FT(t,a))&&this.startObserver()}unmount(){}};function FT({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var TC={inView:{Feature:Vd},tap:{Feature:Od},focus:{Feature:Bd},hover:{Feature:Nd}};var bC={layout:{ProjectionNode:Fd,MeasureLayout:Rd}};var EC=N(H(),1);var Ai={current:null},Ud={current:!1};function AC(){if(Ud.current=!0,!!gn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ai.current=e.matches;e.addListener(t),t()}else Ai.current=!1}var NT=[...Yp,Me,it],RC=e=>NT.find(ud(e));var Pm=new WeakMap;function MC(e,t,a){for(let r in t){let o=t[r],n=a[r];if(ue(o))e.addValue(r,o);else if(ue(n))e.addValue(r,za(o,{owner:e}));else if(n!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,za(s!==void 0?s:o,{owner:e}))}}for(let r in a)t[r]===void 0&&e.removeValue(r);return t}var DC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_d=class{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:n,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let g=Je.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,K.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:d}=s;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=a.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!n,this.isControllingVariants=io(a),this.isVariantNode=Au(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(a,{},this);for(let g in p){let y=p[g];l[g]!==void 0&&ue(y)&&y.set(l[g],!1)}}mount(t){this.current=t,Pm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,r)=>this.bindToMotionValue(r,a)),Ud.current||AC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ai.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pm.delete(this.current),this.projection&&this.projection.unmount(),Rt(this.notifyUpdate),Rt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=vt.has(t),o=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&K.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=a.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),n(),s&&s(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Oa){let a=Oa[t];if(!a)continue;let{isEnabled:r,Feature:o}=a;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ge()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<DC.length;r++){let o=DC[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let n="on"+o,s=t[n];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=MC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=za(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(ld(o)||nd(o))?o=parseFloat(o):!RC(o)&&it.test(a)&&(o=id(t,a)),this.setBaseTarget(t,ue(o)?o.get():o)),ue(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var a;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=Sn(this.props,r,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!ue(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new br),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}};var Zn=class extends _d{constructor(){super(...arguments),this.KeyframeResolver=Hn}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ue(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};function BT(e){return window.getComputedStyle(e)}var zd=class extends Zn{constructor(){super(...arguments),this.type="html",this.renderInstance=Vu}readValueFromInstance(t,a){if(vt.has(a)){let r=qn(a);return r&&r.default||0}else{let r=BT(t),o=(Nu(a)?r.getPropertyValue(a):r[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:a}){return pm(t,a)}build(t,a,r){Pn(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Mn(t,a,r)}};var qd=class extends Zn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ge}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(vt.has(a)){let r=qn(a);return r&&r.default||0}return a=Uu.has(a)?a:yn(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return qu(t,a,r)}build(t,a,r){Tn(t,a,this.isSVGTag,r.transformTemplate)}renderInstance(t,a,r,o){_u(t,a,r,o)}mount(t){this.isSVGTag=An(t.tagName),super.mount(t)}};var FC=(e,t)=>Cn(e)?new qd(t):new zd(t,{allowProjection:e!==EC.Fragment});var NC=uL({...d0,...TC,...IC,...bC},FC);var Tm=Av(NC);function Ga(...e){return Ay(su(e))}function OT({className:e,type:t,...a}){return(0,c.jsx)("input",{type:t,"data-slot":"input",className:Ga("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}var VT=Uy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ta({className:e,variant:t,size:a,asChild:r=!1,...o}){return(0,c.jsx)(r?By:"button",{"data-slot":"button",className:Ga(VT({variant:t,size:a,className:e})),...o})}var OC=_.forwardRef(({className:e,children:t,...a},r)=>(0,c.jsxs)(lv,{"data-slot":"scroll-area",className:Ga("relative",e),...a,children:[(0,c.jsx)(uv,{ref:r,"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,c.jsx)(UT,{}),(0,c.jsx)(dv,{})]}));OC.displayName="ScrollArea";function UT({className:e,orientation:t="vertical",...a}){return(0,c.jsx)(Sp,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Ga("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:(0,c.jsx)(wp,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function _T({phase:e,progressSteps:t=[]}){return(0,c.jsxs)("div",{className:"mb-3 rounded-lg bg-muted/40 px-3 py-3 text-xs text-muted-foreground transition-colors",children:[e==="thinking"&&t.length===0&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)(Jt,{className:"h-3.5 w-3.5 animate-spin"}),(0,c.jsx)("span",{children:"Thinking\u2026"})]}),e==="searching"&&(0,c.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-300",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)(ni,{className:"h-3.5 w-3.5 opacity-70"}),(0,c.jsx)("span",{children:"Searching across pages\u2026"})]}),(0,c.jsxs)("ul",{className:"ml-6 list-disc space-y-1",children:[(0,c.jsx)("li",{className:"opacity-90",children:"Checking recent changes"}),(0,c.jsx)("li",{className:"opacity-90",children:"Scanning documentation"}),(0,c.jsx)("li",{className:"opacity-90",children:"Summarizing relevant sections"})]})]}),(e==="thinking"||e==="executing"||e==="responding")&&t.length>0&&(0,c.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-200",children:[t.map((a,r)=>(0,c.jsxs)("div",{className:`flex items-center gap-2 transition-opacity duration-200 ${a.completed?"opacity-60":"opacity-100"}`,children:[a.completed?(0,c.jsx)(nt,{className:"h-3.5 w-3.5 text-green-500 flex-shrink-0"}):(0,c.jsx)(Jt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,c.jsx)("span",{className:a.completed?"line-through":"",children:a.message})]},r)),e==="responding"&&(0,c.jsxs)("div",{className:"flex items-center gap-2 opacity-100 animate-in fade-in-0 duration-200",children:[(0,c.jsx)(Jt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,c.jsx)("span",{children:"Preparing response..."})]})]})]})}function zT({x:e,y:t,visible:a,onClick:r=!1}){return(0,c.jsx)(Rp,{children:a&&(0,c.jsx)(Tm.div,{className:"fixed pointer-events-none z-[9999]",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1,x:e,y:t},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:200,damping:20},style:{left:0,top:0},children:(0,c.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z",fill:"#C4B5FD"})})})})}function qT(){let[e,t]=_.useState({x:0,y:0,visible:!1,onClick:!1}),a=_.useCallback(n=>{let s=document.querySelector(n.selector);if(s){let i=s.getBoundingClientRect(),l=n.offset?.x||0,u=n.offset?.y||0;t({x:i.left+i.width/2+l,y:i.top+i.height/2+u,visible:!0,onClick:n.onClick||!1})}},[]),r=_.useCallback(()=>{t(n=>({...n,visible:!1}))},[]),o=_.useCallback(()=>{t(n=>({...n,visible:!0}))},[]);return{cursorState:e,moveTo:a,hide:r,show:o}}function lt({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card",className:Ga("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ja({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card-header",className:Ga("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Ka({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card-title",className:Ga("leading-none font-semibold",e),...t})}function VC({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card-description",className:Ga("text-muted-foreground text-sm",e),...t})}function ut({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card-content",className:Ga("px-6",e),...t})}var bm=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Hd=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),Am=e=>{switch(e){case"Enterprise":return ao;case"Professional":return li;default:return Zs}},Wd=e=>{switch(e){case"Enterprise":return"bg-purple-50 text-purple-700 border-purple-200";case"Professional":return"bg-blue-50 text-blue-700 border-blue-200";default:return"bg-gray-50 text-gray-700 border-gray-200"}};function Mi({status:e,type:t="default"}){let r=(()=>{let n=e.toLowerCase();if(t==="transaction")switch(n){case"paid":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:nt};case"failed":return{color:"bg-red-50 text-red-700 border-red-200",icon:Zt};case"pending":return{color:"bg-amber-50 text-amber-700 border-amber-200",icon:eo};case"refunded":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:dn};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:Yt}}if(t==="subscription")switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:nt};case"cancelled":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:Zt};case"past_due":return{color:"bg-red-50 text-red-700 border-red-200",icon:Yt};case"trialing":return{color:"bg-blue-50 text-blue-700 border-blue-200",icon:eo};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:Yt}}switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:nt};case"inactive":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:Zt};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:Yt}}})(),o=r.icon;return(0,c.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border ${r.color}`,children:[(0,c.jsx)(o,{className:"h-3 w-3"}),e]})}function HT({subscription:e}){let t=Am(e.plan);return(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":e.status==="past_due"?"bg-red-500":"bg-slate-300"}`}),(0,c.jsx)(ja,{className:"pb-3",children:(0,c.jsxs)("div",{className:"flex items-start justify-between",children:[(0,c.jsxs)("div",{className:"space-y-1",children:[(0,c.jsxs)(Ka,{className:"text-base font-semibold text-gray-900 flex items-center gap-2",children:[(0,c.jsx)(to,{className:"h-4 w-4 text-gray-500"}),e.id]}),e.customer_email&&(0,c.jsxs)(VC,{className:"text-sm text-gray-500 flex items-center gap-1.5",children:[(0,c.jsx)(ln,{className:"h-3 w-3"}),e.customer_email]})]}),(0,c.jsx)(Mi,{status:e.status,type:"subscription"})]})}),(0,c.jsx)(ut,{className:"pt-0",children:(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,c.jsxs)("div",{className:"space-y-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,c.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${Wd(e.plan)}`,children:[(0,c.jsx)(t,{className:"h-3 w-3"}),e.plan]})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Billing"}),(0,c.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[Hd(e.amount,e.currency)," / ",e.billing_cycle]})]})]}),(0,c.jsxs)("div",{className:"space-y-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Current Period"}),(0,c.jsxs)("div",{className:"text-sm text-gray-700",children:[bm(e.current_period_start)," - ",bm(e.current_period_end)]})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Created"}),(0,c.jsx)("div",{className:"text-sm text-gray-700",children:bm(e.created_at)})]})]})]})})]})}function WT({subscriptions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,c.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,c.jsxs)(ut,{className:"py-8 text-center",children:[(0,c.jsx)(to,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,c.jsx)("p",{className:"text-sm text-gray-500",children:"No subscriptions found"})]})}):(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(to,{className:"h-4 w-4"}),e.length," Subscription",e.length!==1?"s":""]})}),(0,c.jsxs)(ut,{className:"p-0",children:[(0,c.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>{let n=Am(o.plan);return(0,c.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,c.jsx)("div",{className:`p-2 rounded-lg ${Wd(o.plan).replace("text-","text-").replace("border-","bg-").split(" ")[0]}`,children:(0,c.jsx)(n,{className:"h-4 w-4"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer_email||o.customer_id}),(0,c.jsxs)("div",{className:"text-xs text-gray-500",children:[o.plan," \xB7 ",Hd(o.amount,o.currency),"/",o.billing_cycle]})]})]}),(0,c.jsx)(Mi,{status:o.status,type:"subscription"})]})},o.id)})}),r&&(0,c.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,c.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more subscription",e.length-t!==1?"s":""]})})]})]})}function GT({customer:e}){let t=Am(e.subscription);return(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":"bg-slate-300"}`}),(0,c.jsx)(ja,{className:"pb-3",children:(0,c.jsxs)("div",{className:"flex items-start justify-between",children:[(0,c.jsx)("div",{className:"flex items-center gap-3",children:(0,c.jsxs)("div",{children:[(0,c.jsx)(Ka,{className:"text-base font-semibold text-gray-900",children:e.name}),(0,c.jsxs)(VC,{className:"text-sm text-gray-500 flex items-center gap-1",children:[(0,c.jsx)(ln,{className:"h-3 w-3"}),e.email]})]})}),(0,c.jsx)(Mi,{status:e.status,type:"customer"})]})}),(0,c.jsx)(ut,{className:"pt-0",children:(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,c.jsxs)("div",{className:"space-y-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,c.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${Wd(e.subscription)}`,children:[(0,c.jsx)(t,{className:"h-3 w-3"}),e.subscription]})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Revenue"}),(0,c.jsxs)("div",{className:"text-sm font-medium text-gray-900 flex items-center gap-1",children:[(0,c.jsx)(ro,{className:"h-3 w-3 text-emerald-500"}),e.revenue]})]})]}),(0,c.jsxs)("div",{className:"space-y-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Location"}),(0,c.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,c.jsx)(un,{className:"h-3 w-3 text-gray-400"}),e.location||"Not specified"]})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Customer Since"}),(0,c.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,c.jsx)(ei,{className:"h-3 w-3 text-gray-400"}),e.joinDate]})]})]})]})})]})}function jT({customers:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,c.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,c.jsxs)(ut,{className:"py-8 text-center",children:[(0,c.jsx)(fn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,c.jsx)("p",{className:"text-sm text-gray-500",children:"No customers found"})]})}):(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(fn,{className:"h-4 w-4"}),e.length," Customer",e.length!==1?"s":""]})}),(0,c.jsxs)(ut,{className:"p-0",children:[(0,c.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,c.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsx)("div",{className:"flex items-center gap-3 min-w-0",children:(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name}),(0,c.jsx)("div",{className:"text-xs text-gray-500 truncate",children:o.email})]})}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Wd(o.subscription)}`,children:o.subscription}),(0,c.jsx)(Mi,{status:o.status,type:"customer"})]})]})},o.id))}),r&&(0,c.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,c.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more customer",e.length-t!==1?"s":""]})})]})]})}function BC({transactions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,c.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,c.jsxs)(ut,{className:"py-8 text-center",children:[(0,c.jsx)(ro,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,c.jsx)("p",{className:"text-sm text-gray-500",children:"No transactions found"})]})}):(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(ro,{className:"h-4 w-4"}),e.length," Transaction",e.length!==1?"s":""]})}),(0,c.jsxs)(ut,{className:"p-0",children:[(0,c.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,c.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,c.jsx)("div",{className:`p-2 rounded-lg ${o.status==="paid"?"bg-emerald-50":o.status==="failed"?"bg-red-50":o.status==="refunded"?"bg-slate-50":"bg-amber-50"}`,children:o.status==="paid"?(0,c.jsx)(nt,{className:"h-4 w-4 text-emerald-600"}):o.status==="failed"?(0,c.jsx)(Zt,{className:"h-4 w-4 text-red-600"}):o.status==="refunded"?(0,c.jsx)(dn,{className:"h-4 w-4 text-slate-600"}):(0,c.jsx)(eo,{className:"h-4 w-4 text-amber-600"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer}),(0,c.jsxs)("div",{className:"text-xs text-gray-500",children:[o.date,o.decline_reason&&(0,c.jsxs)("span",{className:"text-red-500 ml-2",children:["\xB7 ",o.decline_reason]})]})]})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsxs)("span",{className:`text-sm font-semibold ${o.status==="paid"?"text-emerald-600":o.status==="failed"?"text-red-600":o.status==="refunded"?"text-slate-600":"text-amber-600"}`,children:[o.status==="refunded"?"-":"",o.amount]}),(0,c.jsx)(Mi,{status:o.status,type:"transaction"})]})]})},o.id))}),r&&(0,c.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,c.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more transaction",e.length-t!==1?"s":""]})})]})]})}function KT({apiKeys:e}){return e.length===0?(0,c.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,c.jsxs)(ut,{className:"py-8 text-center",children:[(0,c.jsx)(sn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,c.jsx)("p",{className:"text-sm text-gray-500",children:"No API keys found"})]})}):(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(sn,{className:"h-4 w-4"}),e.length," API Key",e.length!==1?"s":""]})}),(0,c.jsx)(ut,{className:"p-0",children:(0,c.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,c.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-900",children:t.name}),(0,c.jsxs)("div",{className:"text-xs text-gray-500 font-mono",children:[t.key.slice(0,12),"...",t.key.slice(-4)]})]}),(0,c.jsxs)("div",{className:"text-xs text-gray-500",children:["Last used: ",t.lastUsed]})]})},a))})})]})}function $T({sessions:e}){let t=a=>{let r=a.toLowerCase();return r.includes("mobile")||r.includes("iphone")||r.includes("android")?si:ri};return e.length===0?(0,c.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,c.jsxs)(ut,{className:"py-8 text-center",children:[(0,c.jsx)(cn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,c.jsx)("p",{className:"text-sm text-gray-500",children:"No active sessions"})]})}):(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(cn,{className:"h-4 w-4"}),e.length," Active Session",e.length!==1?"s":""]})}),(0,c.jsx)(ut,{className:"p-0",children:(0,c.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((a,r)=>{let o=t(a.device);return(0,c.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"p-2 rounded-lg bg-gray-100",children:(0,c.jsx)(o,{className:"h-4 w-4 text-gray-600"})}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-900",children:a.device}),(0,c.jsxs)("div",{className:"text-xs text-gray-500 flex items-center gap-1",children:[(0,c.jsx)(un,{className:"h-3 w-3"}),a.location]})]})]}),(0,c.jsx)("div",{className:"text-xs text-gray-500",children:a.time})]})},r)})})})]})}function XT({stats:e}){return(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(ii,{className:"h-4 w-4"}),"Dashboard Overview"]})}),(0,c.jsx)(ut,{className:"p-4",children:(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[e.revenue&&(0,c.jsxs)("div",{className:"p-3 rounded-lg bg-emerald-50 border border-emerald-100",children:[(0,c.jsx)("div",{className:"text-xs text-emerald-600 font-medium mb-1",children:"Revenue"}),(0,c.jsx)("div",{className:"text-lg font-bold text-emerald-700",children:Hd(e.revenue.total)}),e.revenue.change!==0&&(0,c.jsxs)("div",{className:`text-xs ${e.revenue.change>0?"text-emerald-600":"text-red-600"}`,children:[e.revenue.change>0?"+":"",e.revenue.change,"% from last period"]})]}),e.subscriptions&&(0,c.jsxs)("div",{className:"p-3 rounded-lg bg-blue-50 border border-blue-100",children:[(0,c.jsx)("div",{className:"text-xs text-blue-600 font-medium mb-1",children:"Subscriptions"}),(0,c.jsxs)("div",{className:"text-lg font-bold text-blue-700",children:[e.subscriptions.active," active"]}),(0,c.jsxs)("div",{className:"text-xs text-blue-600",children:[e.subscriptions.total," total"]})]}),e.customers&&(0,c.jsxs)("div",{className:"p-3 rounded-lg bg-purple-50 border border-purple-100",children:[(0,c.jsx)("div",{className:"text-xs text-purple-600 font-medium mb-1",children:"Customers"}),(0,c.jsx)("div",{className:"text-lg font-bold text-purple-700",children:e.customers.total}),e.customers.new>0&&(0,c.jsxs)("div",{className:"text-xs text-purple-600",children:["+",e.customers.new," new this period"]})]}),e.transactions&&(0,c.jsxs)("div",{className:"p-3 rounded-lg bg-amber-50 border border-amber-100",children:[(0,c.jsx)("div",{className:"text-xs text-amber-600 font-medium mb-1",children:"Transactions"}),(0,c.jsxs)("div",{className:"text-lg font-bold text-amber-700",children:[e.transactions.successful," successful"]}),e.transactions.failed>0&&(0,c.jsxs)("div",{className:"text-xs text-red-600",children:[e.transactions.failed," failed"]})]})]})})]})}function QT({customers:e}){return e.length===0?(0,c.jsx)(lt,{className:"border-gray-200 shadow-sm bg-white",children:(0,c.jsxs)(ut,{className:"py-8 text-center",children:[(0,c.jsx)(ao,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,c.jsx)("p",{className:"text-sm text-gray-500",children:"No top customers data"})]})}):(0,c.jsxs)(lt,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,c.jsx)(ja,{className:"pb-2 border-b border-gray-100",children:(0,c.jsxs)(Ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,c.jsx)(ao,{className:"h-4 w-4 text-amber-500"}),"Top Customers"]})}),(0,c.jsx)(ut,{className:"p-0",children:(0,c.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,c.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,c.jsx)("div",{className:`h-6 w-6 rounded-full flex items-center justify-center text-xs font-bold ${a===0?"bg-amber-100 text-amber-700":a===1?"bg-slate-100 text-slate-700":a===2?"bg-orange-100 text-orange-700":"bg-gray-100 text-gray-700"}`,children:a+1}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:t.name}),(0,c.jsx)("div",{className:"text-xs text-gray-500 truncate",children:t.email})]})]}),(0,c.jsx)("div",{className:"text-sm font-semibold text-emerald-600",children:typeof t.revenue=="number"?Hd(t.revenue):t.revenue})]})},a))})})]})}function YT({type:e,data:t}){if(!t)return null;let a=t;switch(e){case"subscription":return(0,c.jsx)(HT,{subscription:a});case"subscriptions":{let r=a.subscriptions||a||[];return(0,c.jsx)(WT,{subscriptions:Array.isArray(r)?r:[r]})}case"customer":return(0,c.jsx)(GT,{customer:a.customer||a});case"customers":{let r=a.customers||a||[];return(0,c.jsx)(jT,{customers:Array.isArray(r)?r:[r]})}case"transactions":{let r=a.transactions||a||[];return(0,c.jsx)(BC,{transactions:Array.isArray(r)?r:[r]})}case"transaction":return(0,c.jsx)(BC,{transactions:[a],maxItems:1});case"dashboard_stats":return(0,c.jsx)(XT,{stats:a});case"top_customers":{let r=a.customers||a||[];return(0,c.jsx)(QT,{customers:Array.isArray(r)?r:[r]})}case"api_keys":{let r=a.api_keys||a||[];return(0,c.jsx)(KT,{apiKeys:Array.isArray(r)?r:[r]})}case"sessions":{let r=a.sessions||a||[];return(0,c.jsx)($T,{sessions:Array.isArray(r)?r:[r]})}default:return null}}var UC=[{id:"customers",title:"Customer Management",topics:[{id:"add-customer",label:"Add a new customer",prompt:"How do I add a new customer to the system and what information is required?"},{id:"customer-details",label:"View customer details",prompt:"Show me how to view and edit customer information and their payment history."}]},{id:"payments",title:"Payment Processing",topics:[{id:"process-payment",label:"Process a payment",prompt:"How do I process a one-time payment for a customer?"},{id:"refund-payment",label:"Issue a refund",prompt:"Walk me through issuing a refund for a customer payment."}]},{id:"subscriptions",title:"Subscription Management",topics:[{id:"create-subscription",label:"Create a subscription",prompt:"How do I set up a new subscription plan for a customer?"},{id:"update-subscription",label:"Update subscription tier",prompt:"How can I change a customer's subscription plan or upgrade them?"}]},{id:"billing",title:"Billing",topics:[{id:"payment-methods",label:"Manage payment methods",prompt:"How do customers add or update their payment methods?"}]}],_C={"getting-started":{id:"getting-started",title:"Getting started",steps:[{text:"Step 1: Let's open the Customers page. This is where you'll manage all your customers - you can view, add, and edit customer information here.",navigation:{page:"customers"},cursorTarget:{selector:'[data-page="customers"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Now let's open the Add customer dialog. This is where you'll enter information for your first customer, including their name, email, and other details.",navigation:{page:"customers"},cursorTarget:{selector:'[data-testid="add-customer-button"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Settings page. This is where you manage your account settings, company information, and preferences. We're going to verify your company address is correct.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 4: Here's the address field in the Company Information section. It's important to verify this address is accurate since it's used for billing and shipping purposes. Make sure it's up to date.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-testid="company-address-input"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 5: Let's open the API Keys tab. This section shows all your API keys - you'll need these to connect your application to our services. We're going to create a production API key.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 6: Let's open the Create API Key dialog. Here you can create a new API key for your application. You'll want to give it a descriptive name like 'Production Key' so you can easily identify it later.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"add-api-key":{id:"add-api-key",title:"How to add an API key",steps:[{text:"Step 1: Let's open the Settings page. This is where you manage your account settings and preferences. We need to go here to access the API Keys section.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 2: Let's open the API Keys tab. This section shows all your API keys and allows you to create new ones. You'll need API keys to connect your application to our services.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Create API Key dialog. This is where you'll create your new API key - you can give it a name to help you identify it later, then click Create to generate it.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"refund-payment":{id:"refund-payment",title:"How to refund a payment",steps:[{text:"Step 1: Let's open the Home page. This is your dashboard where you can view today's activity, your payment overview, and recent transactions. We need to go here to find the payment you want to refund.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-page="dashboard"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Scroll down to see the Recent transactions section at the bottom. This shows your latest payment transactions with their status. We're looking for a transaction with 'paid' status - only paid transactions can be refunded.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="recent-activity-card"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 3: Let's open the dropdown menu for this paid transaction. Each transaction has a menu button (three dots) that gives you options like refunding. Click it to see the available actions, including the 'Refund payment' option.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="transaction-menu-button"]',offset:{x:0,y:0},onClick:!0}}]}},Rm="https://api.kite.com",Ri={userId:"",orgId:"",agentUrl:Rm,theme:"light",position:"bottom-right",showDefaultFolders:!0,enableGuideCursor:!0},zC=_.createContext(null);function qC({children:e,config:t}){let a=_.useMemo(()=>{let r={...Ri,...t},o=[];r.showDefaultFolders!==!1&&(o=[...UC]),r.folders&&(o=[...o,...r.folders]);let n={...r.showDefaultFolders!==!1?_C:{},...r.guides};return{config:r,userId:r.userId,orgId:r.orgId,agentUrl:r.agentUrl||Rm,folders:o,guides:n,theme:r.theme||"light",position:r.position||"bottom-right",enableGuideCursor:r.enableGuideCursor!==!1}},[t]);return(0,c.jsx)(zC.Provider,{value:a,children:e})}function ZT(){let e=_.useContext(zC);return e||{config:Ri,userId:Ri.userId,orgId:Ri.orgId,agentUrl:Ri.agentUrl||Rm,folders:UC,guides:_C,theme:"light",position:"bottom-right",enableGuideCursor:!0}}function JT(e){if(!e)return null;let t=e.split(`
17
- `),a=[],r=null,o=!1,n=[],s=l=>{let u=[],d=l,f=0;for(;d.length>0;){let p=d.match(/^`([^`]+)`/);if(p){u.push((0,c.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded text-xs font-mono",children:p[1]},f++)),d=d.slice(p[0].length);continue}let g=d.match(/^\*\*([^*]+)\*\*/);if(g){u.push((0,c.jsx)("strong",{children:g[1]},f++)),d=d.slice(g[0].length);continue}let y=d.match(/^\*([^*]+)\*/);if(y){u.push((0,c.jsx)("em",{children:y[1]},f++)),d=d.slice(y[0].length);continue}let v=d.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(v){u.push((0,c.jsx)("a",{href:v[2],className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:v[1]},f++)),d=d.slice(v[0].length);continue}let I=d.search(/[`*\[]/);if(I===-1){u.push(d);break}else I===0?(u.push(d[0]),d=d.slice(1)):(u.push(d.slice(0,I)),d=d.slice(I))}return u.length===1?u[0]:(0,c.jsx)(c.Fragment,{children:u})},i=()=>{if(r){let l=r.type==="ul"?"ul":"ol";a.push((0,c.jsx)(l,{className:`${r.type==="ul"?"list-disc":"list-decimal"} ml-4 my-1`,children:r.items.map((u,d)=>(0,c.jsx)("li",{className:"ml-2",children:u},d))},a.length)),r=null}};for(let l=0;l<t.length;l++){let u=t[l];if(u.startsWith("```")){o?(a.push((0,c.jsx)("pre",{className:"bg-gray-100 rounded p-2 my-1 overflow-x-auto",children:(0,c.jsx)("code",{className:"text-xs font-mono",children:n.join(`
18
- `)})},a.length)),o=!1,n=[]):(i(),o=!0,u.slice(3).trim());continue}if(o){n.push(u);continue}let d=u.match(/^(#{1,6})\s+(.+)/);if(d){i();let g=d[1].length,y=s(d[2]),v=g===1?"text-lg font-bold my-1":g===2?"text-base font-bold my-1":"text-sm font-semibold my-1";a.push((0,c.jsx)("div",{className:v,children:y},a.length));continue}let f=u.match(/^[-*]\s+(.+)/);if(f){(!r||r.type!=="ul")&&(i(),r={type:"ul",items:[]}),r.items.push(s(f[1]));continue}let p=u.match(/^\d+[.)]\s+(.+)/);if(p){(!r||r.type!=="ol")&&(i(),r={type:"ol",items:[]}),r.items.push(s(p[1]));continue}if(u.trim()===""){i(),a.push((0,c.jsx)("div",{className:"h-2"},a.length));continue}if(u.match(/^[-*_]{3,}$/)){i(),a.push((0,c.jsx)("hr",{className:"my-2 border-gray-200"},a.length));continue}i(),a.push((0,c.jsx)("div",{children:s(u)},a.length))}return i(),(0,c.jsx)(c.Fragment,{children:a})}var eb=[];function HC({onBack:e,onNavigate:t,onActionComplete:a,onAgentAction:r,currentPage:o,config:n}){let s=ZT(),{userId:i,orgId:l,agentUrl:u,folders:d,guides:f,enableGuideCursor:p}=n?{...s,...n,userId:n.userId||s.userId,orgId:n.orgId||s.orgId,agentUrl:n.agentUrl||s.agentUrl}:s,[g,y]=_.useState(eb),[v,I]=_.useState(""),[h]=_.useState(()=>crypto.randomUUID()),m=_.useRef({}),x=g.length===0,[S,C]=_.useState("idle"),[T,P]=_.useState([]),k=_.useRef([]),E=g.length?g[g.length-1].role:void 0,[R,ae]=_.useState("landing"),[re,aa]=_.useState(void 0),[$,ra]=_.useState(void 0),de=_.useRef(void 0),we=_.useRef(null),[De,Ct]=_.useState(!1);_.useEffect(()=>{window.resetIntegrationNotification=()=>{localStorage.removeItem("gmailNotificationSeen"),console.log("Integration notification reset! Click the Integrations tab to see it again.")};let L=()=>{if(!localStorage.getItem("gmailNotificationSeen")){ae("landing"),aa(void 0);let O=Date.now(),A="I see you're exploring integrations. Let me know if there are any other connections we should add.",z={id:O,role:"assistant",kind:"text",content:"",isNotificationMessage:!0};y(q=>[...q,z]),ya(O,A),localStorage.setItem("gmailNotificationSeen","true")}};return window.addEventListener("integrationTabClicked",L),()=>{window.removeEventListener("integrationTabClicked",L)}},[]),_.useEffect(()=>{$?(!de.current||de.current.id!==$.id||de.current.stepIndex!==$.stepIndex)&&(de.current=$):de.current=void 0},[$]);let[oa,dt]=_.useState(null),[_e,jd]=_.useState(null),[GC,Kd]=_.useState({}),Dm=_.useRef(null),$d=_.useRef(null),Xd=_.useRef(null),{cursorState:Ei,moveTo:Br,hide:vo}=qT(),[Lo,Qd]=_.useState(null),[Em,Or]=_.useState(null),[Fi,jC]=_.useState(!1),Fm=_.useRef(null),Co=_.useRef(null);_.useEffect(()=>{if(!$||$.id!=="add-api-key"||$.stepIndex!==2)return;let w=setInterval(()=>{let O=document.querySelector('[role="dialog"]'),A=de.current;if(O&&A&&A.id==="add-api-key"&&A.stepIndex===2){vo();let z=Date.now()+1;y(q=>[...q,{id:z,role:"assistant",kind:"guideComplete",content:"Perfect! The dialog is now open. You can enter a name and create your API key."}]),ra(void 0),Ct(!0)}},300);return()=>clearInterval(w)},[$,vo]),_.useEffect(()=>()=>{Object.values(m.current).forEach(L=>window.clearInterval(L)),m.current={},k.current.forEach(L=>window.clearTimeout(L)),k.current=[]},[]),_.useEffect(()=>{if($&&g.length>0){let L=g[g.length-1];if((L.kind==="guideStep"||L.kind==="guideComplete")&&Xd.current&&$d.current){let w=$d.current,O=Xd.current,A=w.getBoundingClientRect(),q=O.getBoundingClientRect().top-A.top+w.scrollTop;w.scrollTop=q}}else!$&&g.length>0&&Dm.current?.scrollIntoView({behavior:"smooth"})},[g,S,$]);let Nm=_.useMemo(()=>{for(let L=g.length-1;L>=0;L--){let w=g[L];if(w.kind==="bulkSummary"&&w.bulkSummary?.navigationPage&&w.bulkSummary.successes>0)return w.bulkSummary.navigationPage}return null},[g]);_.useEffect(()=>{we.current=Nm},[Nm]),_.useEffect(()=>{Fm.current=Em},[Em]),_.useEffect(()=>{let L=w=>{if((w.metaKey||w.ctrlKey)&&w.key==="Enter"){let O=Fm.current;if(O){w.preventDefault(),w.stopPropagation(),_m(O);return}if(_e){w.preventDefault(),w.stopPropagation(),Vm();return}if(oa){w.preventDefault(),w.stopPropagation(),Om(oa);return}let A=we.current;if(A&&t){w.preventDefault(),w.stopPropagation(),t(A.page,A.subtab);return}if(De){w.preventDefault(),w.stopPropagation(),Ni();return}if(de.current){w.preventDefault(),w.stopPropagation(),zm();return}}};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[_e,oa,$,De,t]);function ya(L,w,O){let A=w.split(" "),z=0,q=window.setInterval(()=>{z+=1,y(G=>G.map(V=>V.id===L?{...V,content:A.slice(0,z).join(" ")}:V)),z>=A.length&&(window.clearInterval(q),delete m.current[L],O&&O.length>0&&y(G=>G.map(V=>V.id===L?{...V,followups:O}:V)),C("idle"))},25);m.current[L]=q}function KC(L,w){y(O=>O.map(A=>A.id===L?{...A,followupSelected:!0}:A)),Yd(w.label)}function Ni(){Object.values(m.current).forEach(L=>window.clearInterval(L)),m.current={},k.current.forEach(L=>window.clearTimeout(L)),k.current=[],vo(),y([]),I(""),C("idle"),ae("landing"),aa(void 0),ra(void 0),Ct(!1),dt(null),jd(null),Kd({}),e&&e()}function $C(L){ae("folder"),aa(L)}function XC(){ae("landing"),aa(void 0)}function QC(L){L.preventDefault();let w=v.trim();if(Lo){if(!w){let O={id:Date.now(),role:"assistant",kind:"text",content:"Please describe what you'd like to do with this CSV file. For example: 'Create customers from this file' or 'Add these subscriptions'."};y(A=>[...A,O]);return}YC(w,Lo),I(""),Qd(null),Co.current&&(Co.current.value="");return}w&&(Yd(w),I(""))}function Bm(L){let w={dashboard:"dashboard",customers:"customers page",payments:"payments page",settings:"settings page",support:"support page",disputes:"disputes page",radar:"radar page"};if(L.page==="settings"&&L.subtab){let O={general:"General",billing:"Billing",security:"Security",api:"API Keys",notifications:"Notifications",integrations:"Integrations"};return`${w.settings} (${O[L.subtab]||L.subtab} tab)`}return w[L.page]||L.page}function Om(L){t&&t(L.page,L.subtab),dt(null),y(w=>w.map(O=>O.kind==="navigationAction"&&O.navigationTarget?.page===L.page&&O.navigationTarget?.subtab===L.subtab?{...O,navigationTarget:void 0}:O))}function Vm(){if(!_e)return;let L=GC;if(_e.type!=="updateCompanyInfo"){if(_e.type==="addApiKey"){let w=L;if(!w.name||!w.name.trim())return}else if(_e.type==="addCustomer"){let w=L;if(!w.name||!w.name.trim()||!w.email||!w.email.trim())return}else if(_e.type==="changePassword"){let w=L;if(!w.currentPassword||!w.newPassword||!w.confirmPassword||w.newPassword!==w.confirmPassword)return}else if(_e.type==="addWebhook"){let w=L;if(!w.url||!w.url.trim())return}else if(_e.type==="addPaymentMethod"){let w=L;if(!w.cardNumber||!w.expiryDate)return}else if(_e.type==="deleteApiKey"){let w=L;if(!w.keyId&&!w.name)return}else if(_e.type==="refundPayment"){let w=L;if(!w.transactionId&&!w.customer)return}else if(_e.type==="createSubscription"){let w=L;if(!w.customerEmail&&!w.customerId)return}else if((_e.type==="toggleBlockRule"||_e.type==="enableBlockRule"||_e.type==="disableBlockRule")&&!L.ruleId)return}a&&a(_e.type,L),y(w=>w.map(O=>O.kind==="actionForm"&&O.actionType===_e.type?{...O,isSubmitted:!0}:O)),jd(null),Kd({})}function Um(L){r&&r({result:L}),window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:L}}))}async function Yd(L){k.current.forEach(G=>window.clearTimeout(G)),k.current=[];let O=[...g].reverse().find(G=>G.role==="assistant")?.isNotificationMessage===!0,A=Date.now(),z={id:A,role:"user",content:L};if(y(G=>[...G,z]),O){let G=Date.now()+1,V={id:G,role:"assistant",kind:"text",content:""};y(J=>[...J,V]),ya(G,"Thank you, your feedback is saved.");return}dt(null),C("thinking"),P([]);let q=!1;try{let G=new AbortController,V=setTimeout(()=>G.abort(),6e4),J=await fetch(`${u}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:h,user_id:i,org_id:l,message:L,current_page:o||"dashboard"}),signal:G.signal});if(clearTimeout(V),!J.ok)throw new Error(`Agent request failed: ${J.status}`);let W=J.body?.getReader();if(!W)throw new Error("No response body");let xe=new TextDecoder,ce="";for(;;){let{done:X,value:ke}=await W.read();if(X)break;ce+=xe.decode(ke,{stream:!0});let Ke=ce.split(`
16
+ `),()=>{document.head.removeChild(d)}},[t]),(0,Pv.jsx)(Np,{isPresent:t,childRef:r,sizeRef:o,children:Iu.cloneElement(e,{ref:r})})}var Rv=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:n,mode:s})=>{let i=Cn(Ab),l=(0,po.useId)(),u=(0,po.useCallback)(c=>{i.set(c,!0);for(let f of i.values())if(!f)return;r&&r()},[i,r]),d=(0,po.useMemo)(()=>({id:l,initial:t,isPresent:a,custom:o,onExitComplete:u,register:c=>(i.set(c,!1),()=>i.delete(c))}),n?[Math.random(),u]:[a,u]);return(0,po.useMemo)(()=>{i.forEach((c,f)=>i.set(f,!1))},[a]),Av.useEffect(()=>{!a&&!i.size&&r&&r()},[a]),s==="popLayout"&&(e=(0,Ep.jsx)(Tv,{isPresent:a,children:e})),(0,Ep.jsx)(kr.Provider,{value:d,children:e})};function Ab(){return new Map}var br=M(j(),1);function wu(e=!0){let t=(0,br.useContext)(kr);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=t,n=(0,br.useId)();(0,br.useEffect)(()=>{e&&o(n)},[e]);let s=(0,br.useCallback)(()=>e&&r&&r(n),[n,r,e]);return!a&&r?[!1,s]:[!0]}var ku=M(j(),1),yi=e=>e.key||"";function Fp(e){let t=[];return ku.Children.forEach(e,a=>{(0,ku.isValidElement)(a)&&t.push(a)}),t}var bu=M(j(),1);var In=typeof window<"u";var Pu=In?bu.useLayoutEffect:bu.useEffect;var Bp=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:n="sync",propagate:s=!1})=>{let[i,l]=wu(s),u=(0,ha.useMemo)(()=>Fp(e),[e]),d=s&&!i?[]:u.map(yi),c=(0,ha.useRef)(!0),f=(0,ha.useRef)(u),g=Cn(()=>new Map),[L,v]=(0,ha.useState)(u),[I,h]=(0,ha.useState)(u);Pu(()=>{c.current=!1,f.current=u;for(let S=0;S<I.length;S++){let w=yi(I[S]);d.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[I,d.length,d.join("-")]);let m=[];if(u!==L){let S=[...u];for(let w=0;w<I.length;w++){let b=I[w],D=yi(b);d.includes(D)||(S.splice(w,0,b),m.push(b))}n==="wait"&&m.length&&(S=m),h(Fp(S)),v(u);return}let{forceRender:x}=(0,ha.useContext)(Ln);return(0,vi.jsx)(vi.Fragment,{children:I.map(S=>{let w=yi(S),b=s&&!i?!1:u===I||d.includes(w),D=()=>{if(g.has(w))g.set(w,!0);else return;let P=!0;g.forEach(V=>{V||(P=!1)}),P&&(x?.(),h(f.current),s&&l?.(),r&&r())};return(0,vi.jsx)(Rv,{isPresent:b,initial:!c.current||a?void 0:!1,custom:b?void 0:t,presenceAffectsLayout:o,mode:n,onExitComplete:b?void 0:D,children:S},w)})})};var pe=e=>e;var qa=pe,sa=pe;function mo(e){let t;return()=>(t===void 0&&(t=e()),t)}var Et=(e,t,a)=>{let r=t-e;return r===0?1:(a-e)/r};var De=e=>e*1e3,$e=e=>e/1e3;var wn={skipAnimations:!1,useManualTiming:!1};function Dv(e){let t=new Set,a=new Set,r=!1,o=!1,n=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function i(u){n.has(u)&&(l.schedule(u),e()),u(s)}let l={schedule:(u,d=!1,c=!1)=>{let g=c&&r?t:a;return d&&n.add(u),g.has(u)||g.add(u),u},cancel:u=>{a.delete(u),n.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,a]=[a,t],t.forEach(i),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}var Tu=["read","resolveKeyframes","update","preRender","render","postRender"],Rb=40;function Au(e,t){let a=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>a=!0,s=Tu.reduce((h,m)=>(h[m]=Dv(n),h),{}),{read:i,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:f}=s,g=()=>{let h=wn.useManualTiming?o.timestamp:performance.now();a=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,Rb),1),o.timestamp=h,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),d.process(o),c.process(o),f.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(g))},L=()=>{a=!0,r=!0,o.isProcessing||e(g)};return{schedule:Tu.reduce((h,m)=>{let x=s[m];return h[m]=(S,w=!1,b=!1)=>(a||L(),x.schedule(S,w,b)),h},{}),cancel:h=>{for(let m=0;m<Tu.length;m++)s[Tu[m]].cancel(h)},state:o,steps:s}}var{schedule:Y,cancel:Ft,state:Me,steps:Ru}=Au(typeof requestAnimationFrame<"u"?requestAnimationFrame:pe,!0);var Mv=M(j(),1),Du=(0,Mv.createContext)({strict:!1});var Nv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Wa={};for(let e in Nv)Wa[e]={isEnabled:t=>Nv[e].some(a=>!!t[a])};function Ev(e){for(let t in e)Wa[t]={...Wa[t],...e[t]}}var Db=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Li(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Db.has(e)}var Fv=e=>!Li(e);function Mb(e){e&&(Fv=t=>t.startsWith("on")?!Li(t):e(t))}try{Mb(fS("@emotion/is-prop-valid").default)}catch{}function Bv(e,t,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(Fv(o)||a===!0&&Li(o)||!t&&!Li(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Ov(e){if(typeof Proxy>"u")return e;let t=new Map,a=(...r)=>e(...r);return new Proxy(a,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var Ou=M(ie(),1);var Pn=M(j(),1);var Vv=M(j(),1),Pr=(0,Vv.createContext)({});var Eu=M(j(),1);function Ga(e){return typeof e=="string"||Array.isArray(e)}function Tr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var Mu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ci=["initial",...Mu];function ho(e){return Tr(e.animate)||Ci.some(t=>Ga(e[t]))}function Nu(e){return!!(ho(e)||e.variants)}function Uv(e,t){if(ho(e)){let{initial:a,animate:r}=e;return{initial:a===!1||Ga(a)?a:void 0,animate:Ga(r)?r:void 0}}return e.inherit!==!1?t:{}}function zv(e){let{initial:t,animate:a}=Uv(e,(0,Eu.useContext)(Pr));return(0,Eu.useMemo)(()=>({initial:t,animate:a}),[_v(t),_v(a)])}function _v(e){return Array.isArray(e)?e.join(" "):e}var Hv=Symbol.for("motionComponentSymbol");var qv=M(j(),1);function ja(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Wv(e,t,a){return(0,qv.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):ja(a)&&(a.current=r))},[t])}var It=M(j(),1);var kn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Nb="framerAppearId",Fu="data-"+kn(Nb);var{schedule:bn,cancel:wM}=Au(queueMicrotask,!1);var Gv=M(j(),1),Bu=(0,Gv.createContext)({});function jv(e,t,a,r,o){var n,s;let{visualElement:i}=(0,It.useContext)(Pr),l=(0,It.useContext)(Du),u=(0,It.useContext)(kr),d=(0,It.useContext)(Sn).reducedMotion,c=(0,It.useRef)(null);r=r||l.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:a,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));let f=c.current,g=(0,It.useContext)(Bu);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Eb(c.current,a,o,g);let L=(0,It.useRef)(!1);(0,It.useInsertionEffect)(()=>{f&&L.current&&f.update(a,u)});let v=a[Fu],I=(0,It.useRef)(!!v&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,v))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,v)));return Pu(()=>{f&&(L.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),bn.render(f.render),I.current&&f.animationState&&f.animationState.animateChanges())}),(0,It.useEffect)(()=>{f&&(!I.current&&f.animationState&&f.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,v)}),I.current=!1))}),f}function Eb(e,t,a,r){let{layoutId:o,layout:n,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:Kv(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!s||i&&ja(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Kv(e){if(e)return e.options.allowProjection!==!1?e.projection:Kv(e.parent)}function $v({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:r,Component:o}){var n,s;e&&Ev(e);function i(u,d){let c,f={...(0,Pn.useContext)(Sn),...u,layoutId:Fb(u)},{isStatic:g}=f,L=zv(u),v=r(u,g);if(!g&&In){Bb(f,e);let I=Ob(f);c=I.MeasureLayout,L.visualElement=jv(o,v,f,t,I.ProjectionNode)}return(0,Ou.jsxs)(Pr.Provider,{value:L,children:[c&&L.visualElement?(0,Ou.jsx)(c,{visualElement:L.visualElement,...f}):null,a(o,u,Wv(v,L.visualElement,d),v,g,L.visualElement)]})}i.displayName=`motion.${typeof o=="string"?o:`create(${(s=(n=o.displayName)!==null&&n!==void 0?n:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,Pn.forwardRef)(i);return l[Hv]=o,l}function Fb({layoutId:e}){let t=(0,Pn.useContext)(Ln).id;return t&&e!==void 0?t+"-"+e:e}function Bb(e,t){let a=(0,Pn.useContext)(Du).strict}function Ob(e){let{drag:t,layout:a}=Wa;if(!t&&!a)return{};let r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var Xv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Tn(e){return typeof e!="string"||e.includes("-")?!1:!!(Xv.indexOf(e)>-1||/[A-Z]/u.test(e))}var Op=M(j(),1);function Qv(e){let t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function An(e,t,a,r){if(typeof t=="function"){let[o,n]=Qv(r);t=t(a!==void 0?a:e.custom,o,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,n]=Qv(r);t=t(a!==void 0?a:e.custom,o,n)}return t}var Si=e=>Array.isArray(e);var Yv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Zv=e=>Si(e)?e[e.length-1]||0:e;var xe=e=>!!(e&&e.getVelocity);function Rn(e){let t=xe(e)?e.get():e;return Yv(t)?t.toValue():t}function Vb({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},r,o,n){let s={latestValues:Ub(r,o,n,e),renderState:t()};return a&&(s.onMount=i=>a({props:r,current:i,...s}),s.onUpdate=i=>a(i)),s}var Vu=e=>(t,a)=>{let r=(0,Op.useContext)(Pr),o=(0,Op.useContext)(kr),n=()=>Vb(e,t,r,o);return a?n():Cn(n)};function Ub(e,t,a,r){let o={},n=r(e,{});for(let f in n)o[f]=Rn(n[f]);let{initial:s,animate:i}=e,l=ho(e),u=Nu(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let d=a?a.initial===!1:!1;d=d||s===!1;let c=d?i:s;if(c&&typeof c!="boolean"&&!Tr(c)){let f=Array.isArray(c)?c:[c];for(let g=0;g<f.length;g++){let L=An(e,f[g]);if(L){let{transitionEnd:v,transition:I,...h}=L;for(let m in h){let x=h[m];if(Array.isArray(x)){let S=d?x.length-1:0;x=x[S]}x!==null&&(o[m]=x)}for(let m in v)o[m]=v[m]}}}return o}var ga=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wt=new Set(ga);var Jv=e=>t=>typeof t=="string"&&t.startsWith(e),Uu=Jv("--"),_b=Jv("var(--"),Dn=e=>_b(e)?zb.test(e.split("/*")[0].trim()):!1,zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var _u=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Xe=(e,t,a)=>a>t?t:a<e?e:a;var xa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ka={...xa,transform:e=>Xe(0,1,e)},Ii={...xa,default:1};var wi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ya=wi("deg"),ft=wi("%"),z=wi("px"),e0=wi("vh"),t0=wi("vw"),Vp={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)};var a0={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z};var r0={rotate:ya,rotateX:ya,rotateY:ya,rotateZ:ya,scale:Ii,scaleX:Ii,scaleY:Ii,scaleZ:Ii,skew:ya,skewX:ya,skewY:ya,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Ka,originX:Vp,originY:Vp,originZ:z};var Up={...xa,transform:Math.round};var Mn={...a0,...r0,zIndex:Up,size:z,fillOpacity:Ka,strokeOpacity:Ka,numOctaves:Up};var Hb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qb=ga.length;function o0(e,t,a){let r="",o=!0;for(let n=0;n<qb;n++){let s=ga[n],i=e[s];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(s.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||a){let u=_u(i,Mn[s]);if(!l){o=!1;let d=Hb[s]||s;r+=`${d}(${u}) `}a&&(t[s]=u)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function Nn(e,t,a){let{style:r,vars:o,transformOrigin:n}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(wt.has(l)){s=!0;continue}else if(Uu(l)){o[l]=u;continue}else{let d=_u(u,Mn[l]);l.startsWith("origin")?(i=!0,n[l]=d):r[l]=d}}if(t.transform||(s||a?r.transform=o0(t,e.transform,a):r.transform&&(r.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:d=0}=n;r.transformOrigin=`${l} ${u} ${d}`}}var Wb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gb={offset:"strokeDashoffset",array:"strokeDasharray"};function n0(e,t,a=1,r=0,o=!0){e.pathLength=1;let n=o?Wb:Gb;e[n.offset]=z.transform(-r);let s=z.transform(t),i=z.transform(a);e[n.array]=`${s} ${i}`}function s0(e,t,a){return typeof e=="string"?e:z.transform(t+a*e)}function i0(e,t,a){let r=s0(t,e.x,e.width),o=s0(a,e.y,e.height);return`${r} ${o}`}function En(e,{attrX:t,attrY:a,attrScale:r,originX:o,originY:n,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...u},d,c){if(Nn(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:g,dimensions:L}=e;f.transform&&(L&&(g.transform=f.transform),delete f.transform),L&&(o!==void 0||n!==void 0||g.transform)&&(g.transformOrigin=i0(L,o!==void 0?o:.5,n!==void 0?n:.5)),t!==void 0&&(f.x=t),a!==void 0&&(f.y=a),r!==void 0&&(f.scale=r),s!==void 0&&n0(f,s,i,l,!1)}var Fn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var zu=()=>({...Fn(),attrs:{}});var Bn=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hu(e,{style:t,vars:a},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let n in a)e.style.setProperty(n,a[n])}var qu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Wu(e,t,a,r){Hu(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(qu.has(o)?o:kn(o),t.attrs[o])}var On={};function l0(e){Object.assign(On,e)}function Gu(e,{layout:t,layoutId:a}){return wt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!On[e]||e==="opacity")}function Vn(e,t,a){var r;let{style:o}=e,n={};for(let s in o)(xe(o[s])||t.style&&xe(t.style[s])||Gu(s,e)||((r=a?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(n[s]=o[s]);return n}function ju(e,t,a){let r=Vn(e,t,a);for(let o in e)if(xe(e[o])||xe(t[o])){let n=ga.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o]}return r}function jb(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var u0=["x","y","width","height","cx","cy","r"],d0={useVisualState:Vu({scrapeMotionValuesFromProps:ju,createRenderState:zu,onUpdate:({props:e,prevProps:t,current:a,renderState:r,latestValues:o})=>{if(!a)return;let n=!!e.drag;if(!n){for(let i in o)if(wt.has(i)){n=!0;break}}if(!n)return;let s=!t;if(t)for(let i=0;i<u0.length;i++){let l=u0[i];e[l]!==t[l]&&(s=!0)}s&&Y.read(()=>{jb(a,r),Y.render(()=>{En(r,o,Bn(a.tagName),e.transformTemplate),Wu(a,r)})})}})};var c0={useVisualState:Vu({scrapeMotionValuesFromProps:Vn,createRenderState:Fn})};var Un=M(j(),1);var f0=M(j(),1);function _p(e,t,a){for(let r in t)!xe(t[r])&&!Gu(r,a)&&(e[r]=t[r])}function Kb({transformTemplate:e},t){return(0,f0.useMemo)(()=>{let a=Fn();return Nn(a,t,e),Object.assign({},a.vars,a.style)},[t])}function $b(e,t){let a=e.style||{},r={};return _p(r,a,e),Object.assign(r,Kb(e,t)),r}function p0(e,t){let a={},r=$b(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=r,a}var m0=M(j(),1);function h0(e,t,a,r){let o=(0,m0.useMemo)(()=>{let n=zu();return En(n,t,Bn(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};_p(n,e.style,e),o.style={...n,...o.style}}return o}function g0(e=!1){return(a,r,o,{latestValues:n},s)=>{let l=(Tn(a)?h0:p0)(r,n,s,a),u=Bv(r,typeof a=="string",e),d=a!==Un.Fragment?{...u,...l,ref:o}:{},{children:c}=r,f=(0,Un.useMemo)(()=>xe(c)?c.get():c,[c]);return(0,Un.createElement)(a,{...d,children:f})}}function x0(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Tn(r)?d0:c0,preloadedFeatures:e,useRender:g0(o),createVisualElement:t,Component:r};return $v(s)}}function zp(e,t){if(!Array.isArray(t))return!1;let a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}function Ar(e,t,a){let r=e.getProps();return An(r,t,a!==void 0?a:r.custom,e)}var Hp=mo(()=>window.ScrollTimeline!==void 0);var ki=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,a){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=a}attachTimeline(t,a){let r=this.animations.map(o=>{if(Hp()&&o.attachTimeline)return o.attachTimeline(t);if(typeof a=="function")return a(o)});return()=>{r.forEach((o,n)=>{o&&o(),this.animations[n].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let a=0;a<this.animations.length;a++)t=Math.max(t,this.animations[a].duration);return t}runAll(t){this.animations.forEach(a=>a[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var bi=class extends ki{then(t,a){return Promise.all(this.animations).then(t).catch(a)}};function Rr(e,t){return e?e[t]||e.default||e:void 0}function _n(e){let t=0,a=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=a,r=e.next(t);return t>=2e4?1/0:t}function Dr(e){return typeof e=="function"}function Pi(e,t){e.timeline=t,e.onfinish=null}var zn=e=>Array.isArray(e)&&typeof e[0]=="number";var Wp={linearEasing:void 0};function y0(e,t){let a=mo(e);return()=>{var r;return(r=Wp[t])!==null&&r!==void 0?r:a()}}var Mr=y0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ti=(e,t,a=10)=>{let r="",o=Math.max(Math.round(t/a),2);for(let n=0;n<o;n++)r+=e(Et(0,o-1,n))+", ";return`linear(${r.substring(0,r.length-2)})`};function $u(e){return!!(typeof e=="function"&&Mr()||!e||typeof e=="string"&&(e in Ku||Mr())||zn(e)||Array.isArray(e)&&e.every($u))}var Hn=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,Ku={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hn([0,.65,.55,1]),circOut:Hn([.55,0,1,.45]),backIn:Hn([.31,.01,.66,-.59]),backOut:Hn([.33,1.53,.69,.99])};function qn(e,t){if(e)return typeof e=="function"&&Mr()?Ti(e,t):zn(e)?Hn(e):Array.isArray(e)?e.map(a=>qn(a,t)||Ku.easeOut):Ku[e]}var Bt={x:!1,y:!1};function Wn(){return Bt.x||Bt.y}function Gp(e,t,a){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=(r=a?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}function Xu(e,t){let a=Gp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function v0(e){return t=>{t.pointerType==="touch"||Wn()||e(t)}}function jp(e,t,a={}){let[r,o,n]=Xu(e,a),s=v0(i=>{let{target:l}=i,u=t(i);if(typeof u!="function"||!l)return;let d=v0(c=>{u(c),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),n}var Qu=(e,t)=>t?e===t?!0:Qu(e,t.parentElement):!1;var go=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var Xb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L0(e){return Xb.has(e.tagName)||e.tabIndex!==-1}var xo=new WeakSet;function C0(e){return t=>{t.key==="Enter"&&e(t)}}function Kp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var S0=(e,t)=>{let a=e.currentTarget;if(!a)return;let r=C0(()=>{if(xo.has(a))return;Kp(a,"down");let o=C0(()=>{Kp(a,"up")}),n=()=>Kp(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",n,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function I0(e){return go(e)&&!Wn()}function $p(e,t,a={}){let[r,o,n]=Xu(e,a),s=i=>{let l=i.currentTarget;if(!I0(i)||xo.has(l))return;xo.add(l);let u=t(i),d=(g,L)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!I0(g)||!xo.has(l))&&(xo.delete(l),typeof u=="function"&&u(g,{success:L}))},c=g=>{d(g,a.useGlobalTarget||Qu(l,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",f,o)};return r.forEach(i=>{!L0(i)&&i.getAttribute("tabindex")===null&&(i.tabIndex=0),(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),i.addEventListener("focus",u=>S0(u,o),o)}),n}function Xp(e){return e==="x"||e==="y"?Bt[e]?null:(Bt[e]=!0,()=>{Bt[e]=!1}):Bt.x||Bt.y?null:(Bt.x=Bt.y=!0,()=>{Bt.x=Bt.y=!1})}var Yu=new Set(["width","height","top","left","right","bottom",...ga]);var Zu;function Yb(){Zu=void 0}var nt={now:()=>(Zu===void 0&&nt.set(Me.isProcessing||wn.useManualTiming?Me.timestamp:performance.now()),Zu),set:e=>{Zu=e,queueMicrotask(Yb)}};function Gn(e,t){e.indexOf(t)===-1&&e.push(t)}function jn(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var Nr=class{constructor(){this.subscriptions=[]}add(t){return Gn(this.subscriptions,t),()=>jn(this.subscriptions,t)}notify(t,a,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,r);else for(let n=0;n<o;n++){let s=this.subscriptions[n];s&&s(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Ju(e,t){return t?e*(1e3/t):0}var k0=30,Zb=e=>!isNaN(parseFloat(e)),b0={current:void 0},Qp=class{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let n=nt.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=nt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Zb(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Nr);let r=this.events[t].add(a);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return b0.current&&b0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>k0)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,k0);return Ju(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function $a(e,t){return new Qp(e,t)}function Jb(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,$a(a))}function P0(e,t){let a=Ar(e,t),{transitionEnd:r={},transition:o={},...n}=a||{};n={...n,...r};for(let s in n){let i=Zv(n[s]);Jb(e,s,i)}}function T0(e){return!!(xe(e)&&e.add)}function Ai(e,t){let a=e.getValue("willChange");if(T0(a))return a.add(t)}function ed(e){return e.props[Fu]}var td={current:!1};var A0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,eP=1e-7,tP=12;function aP(e,t,a,r,o){let n,s,i=0;do s=t+(a-t)/2,n=A0(s,r,o)-e,n>0?a=s:t=s;while(Math.abs(n)>eP&&++i<tP);return s}function Er(e,t,a,r){if(e===t&&a===r)return pe;let o=n=>aP(n,0,1,e,a);return n=>n===0||n===1?n:A0(o(n),t,r)}var ad=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var rd=e=>t=>1-e(1-t);var Yp=Er(.33,1.53,.69,.99),Ri=rd(Yp),od=ad(Ri);var nd=e=>(e*=2)<1?.5*Ri(e):.5*(2-Math.pow(2,-10*(e-1)));var sd=e=>1-Math.sin(Math.acos(e)),id=rd(sd),ld=ad(sd);var ud=e=>/^0[^.\s]+$/u.test(e);function R0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ud(e):!0}var Fr=e=>Math.round(e*1e5)/1e5;var Kn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function D0(e){return e==null}var M0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var $n=(e,t)=>a=>!!(typeof a=="string"&&M0.test(a)&&a.startsWith(e)||t&&!D0(a)&&Object.prototype.hasOwnProperty.call(a,t)),dd=(e,t,a)=>r=>{if(typeof r!="string")return r;let[o,n,s,i]=r.match(Kn);return{[e]:parseFloat(o),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var rP=e=>Xe(0,255,e),Zp={...xa,transform:e=>Math.round(rP(e))},va={test:$n("rgb","red"),parse:dd("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+Zp.transform(e)+", "+Zp.transform(t)+", "+Zp.transform(a)+", "+Fr(Ka.transform(r))+")"};function oP(e){let t="",a="",r="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var Di={test:$n("#"),parse:oP,transform:va.transform};var Br={test:$n("hsl","hue"),parse:dd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Fr(t))+", "+ft.transform(Fr(a))+", "+Fr(Ka.transform(r))+")"};var Fe={test:e=>va.test(e)||Di.test(e)||Br.test(e),parse:e=>va.test(e)?va.parse(e):Br.test(e)?Br.parse(e):Di.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?va.transform(e):Br.transform(e)};var N0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nP(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kn))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(N0))===null||a===void 0?void 0:a.length)||0)>0}var F0="number",B0="color",sP="var",iP="var(",E0="${}",lP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yo(e){let t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[],n=0,i=t.replace(lP,l=>(Fe.test(l)?(r.color.push(n),o.push(B0),a.push(Fe.parse(l))):l.startsWith(iP)?(r.var.push(n),o.push(sP),a.push(l)):(r.number.push(n),o.push(F0),a.push(parseFloat(l))),++n,E0)).split(E0);return{values:a,split:i,indexes:r,types:o}}function O0(e){return yo(e).values}function V0(e){let{split:t,types:a}=yo(e),r=t.length;return o=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],o[s]!==void 0){let i=a[s];i===F0?n+=Fr(o[s]):i===B0?n+=Fe.transform(o[s]):n+=o[s]}return n}}var uP=e=>typeof e=="number"?0:e;function dP(e){let t=O0(e);return V0(e)(t.map(uP))}var pt={test:nP,parse:O0,createTransformer:V0,getAnimatableNone:dP};var cP=new Set(["brightness","contrast","saturate","opacity"]);function fP(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=a.match(Kn)||[];if(!r)return e;let o=a.replace(r,""),n=cP.has(t)?1:0;return r!==a&&(n*=100),t+"("+n+o+")"}var pP=/\b([a-z-]*)\(.*?\)/gu,Mi={...pt,getAnimatableNone:e=>{let t=e.match(pP);return t?t.map(fP).join(" "):e}};var mP={...Mn,color:Fe,backgroundColor:Fe,outlineColor:Fe,fill:Fe,stroke:Fe,borderColor:Fe,borderTopColor:Fe,borderRightColor:Fe,borderBottomColor:Fe,borderLeftColor:Fe,filter:Mi,WebkitFilter:Mi},Xn=e=>mP[e];function cd(e,t){let a=Xn(e);return a!==Mi&&(a=pt),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var hP=new Set(["auto","none","0"]);function U0(e,t,a){let r=0,o;for(;r<e.length&&!o;){let n=e[r];typeof n=="string"&&!hP.has(n)&&yo(n).values.length&&(o=e[r]),r++}if(o&&a)for(let n of t)e[n]=cd(a,o)}var Jp=e=>e===xa||e===z,_0=(e,t)=>parseFloat(e.split(", ")[t]),z0=(e,t)=>(a,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return _0(o[1],t);{let n=r.match(/^matrix\((.+)\)$/u);return n?_0(n[1],e):0}},gP=new Set(["x","y","z"]),xP=ga.filter(e=>!gP.has(e));function H0(e){let t=[];return xP.forEach(a=>{let r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}var vo={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:z0(4,13),y:z0(5,14)};vo.translateX=vo.x;vo.translateY=vo.y;var Lo=new Set,em=!1,tm=!1;function q0(){if(tm){let e=Array.from(Lo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{let o=H0(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=a.get(r);o&&o.forEach(([n,s])=>{var i;(i=r.getValue(n))===null||i===void 0||i.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tm=!1,em=!1,Lo.forEach(e=>e.complete()),Lo.clear()}function W0(){Lo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tm=!0)})}function G0(){W0(),q0()}var Or=class{constructor(t,a,r,o,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=o,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Lo.add(this),em||(em=!0,Y.read(W0),Y.resolveKeyframes(q0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:r,motionValue:o}=this;for(let n=0;n<t.length;n++)if(t[n]===null)if(n===0){let s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&a){let l=r.readValue(a,i);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Lo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Lo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var fd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var yP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vP(e){let t=yP.exec(e);if(!t)return[,];let[,a,r,o]=t;return[`--${a??r}`,o]}var LP=4;function am(e,t,a=1){sa(a<=LP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=vP(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return fd(s)?parseFloat(s):s}return Dn(o)?am(o,t,a+1):o}var pd=e=>t=>t.test(e);var j0={test:e=>e==="auto",parse:e=>e};var rm=[xa,z,ft,ya,t0,e0,j0],om=e=>rm.find(pd(e));var Qn=class extends Or{constructor(t,a,r,o,n){super(t,a,r,o,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Dn(u))){let d=am(u,a.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Yu.has(r)||t.length!==2)return;let[o,n]=t,s=om(o),i=om(n);if(s!==i)if(Jp(s)&&Jp(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:a}=this,r=[];for(let o=0;o<t.length;o++)R0(t[o])&&r.push(o);r.length&&U0(t,r,a)}measureInitialState(){let{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;let o=a[a.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:a,name:r,unresolvedKeyframes:o}=this;if(!a||!a.current)return;let n=a.getValue(r);n&&n.jump(this.measuredOrigin,!1);let s=o.length-1,i=o[s];o[s]=vo[r](a.measureViewportBox(),window.getComputedStyle(a.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{a.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var nm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pt.test(e)||e==="0")&&!e.startsWith("url("));function CP(e){let t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function K0(e,t,a,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=nm(o,t),i=nm(n,t);return qa(s===i,`You are trying to animate ${t} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),!s||!i?!1:CP(e)||(a==="spring"||Dr(a))&&r}var SP=e=>e!==null;function Vr(e,{repeat:t,repeatType:a="loop"},r){let o=e.filter(SP),n=t&&a!=="loop"&&t%2===1?0:o.length-1;return!n||r===void 0?o[n]:r}var IP=40,Yn=class{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:s="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=nt.now(),this.options={autoplay:t,delay:a,type:r,repeat:o,repeatDelay:n,repeatType:s,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&G0(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=nt.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:n,delay:s,onComplete:i,onUpdate:l,isGenerator:u}=this.options;if(!u&&!K0(t,r,o,n))if(td.current||!s){l&&l(Vr(t,this.options,a)),i&&i(),this.resolveFinishedPromise();return}else this.options.duration=0;let d=this.initPlayback(t,a);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:a,...d},this.onPostResolved())}onPostResolved(){}then(t,a){return this.currentFinishedPromise.then(t,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};var re=(e,t,a)=>e+(t-e)*a;function sm(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function $0({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let o=0,n=0,s=0;if(!t)o=n=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i;o=sm(l,i,e+1/3),n=sm(l,i,e),s=sm(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function Zn(e,t){return a=>a>0?t:e}var im=(e,t,a)=>{let r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},wP=[Di,va,Br],kP=e=>wP.find(t=>t.test(e));function X0(e){let t=kP(e);if(qa(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===Br&&(a=$0(a)),a}var lm=(e,t)=>{let a=X0(e),r=X0(t);if(!a||!r)return Zn(e,t);let o={...a};return n=>(o.red=im(a.red,r.red,n),o.green=im(a.green,r.green,n),o.blue=im(a.blue,r.blue,n),o.alpha=re(a.alpha,r.alpha,n),va.transform(o))};var bP=(e,t)=>a=>t(e(a)),La=(...e)=>e.reduce(bP);var md=new Set(["none","hidden"]);function Q0(e,t){return md.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function PP(e,t){return a=>re(e,t,a)}function hd(e){return typeof e=="number"?PP:typeof e=="string"?Dn(e)?Zn:Fe.test(e)?lm:RP:Array.isArray(e)?Y0:typeof e=="object"?Fe.test(e)?lm:TP:Zn}function Y0(e,t){let a=[...e],r=a.length,o=e.map((n,s)=>hd(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)a[s]=o[s](n);return a}}function TP(e,t){let a={...e,...t},r={};for(let o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=hd(e[o])(e[o],t[o]));return o=>{for(let n in r)a[n]=r[n](o);return a}}function AP(e,t){var a;let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],i=e.indexes[s][o[s]],l=(a=e.values[i])!==null&&a!==void 0?a:0;r[n]=l,o[s]++}return r}var RP=(e,t)=>{let a=pt.createTransformer(t),r=yo(e),o=yo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?md.has(e)&&!o.values.length||md.has(t)&&!r.values.length?Q0(e,t):La(Y0(AP(r,o),o.values),a):(qa(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Zn(e,t))};function gd(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?re(e,t,a):hd(e)(e,t)}var DP=5;function xd(e,t,a){let r=Math.max(t-DP,0);return Ju(a-e(r),t-r)}var Ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var um=.001;function Z0({duration:e=Ce.duration,bounce:t=Ce.bounce,velocity:a=Ce.velocity,mass:r=Ce.mass}){let o,n;qa(e<=De(Ce.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Xe(Ce.minDamping,Ce.maxDamping,s),e=Xe(Ce.minDuration,Ce.maxDuration,$e(e)),s<1?(o=u=>{let d=u*s,c=d*e,f=d-a,g=yd(u,s),L=Math.exp(-c);return um-f/g*L},n=u=>{let c=u*s*e,f=c*a+a,g=Math.pow(s,2)*Math.pow(u,2)*e,L=Math.exp(-c),v=yd(Math.pow(u,2),s);return(-o(u)+um>0?-1:1)*((f-g)*L)/v}):(o=u=>{let d=Math.exp(-u*e),c=(u-a)*e+1;return-um+d*c},n=u=>{let d=Math.exp(-u*e),c=(a-u)*(e*e);return d*c});let i=5/e,l=NP(o,n,i);if(e=De(e),isNaN(l))return{stiffness:Ce.stiffness,damping:Ce.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var MP=12;function NP(e,t,a){let r=a;for(let o=1;o<MP;o++)r=r-e(r)/t(r);return r}function yd(e,t){return e*Math.sqrt(1-t*t)}var EP=["duration","bounce"],FP=["stiffness","damping","mass"];function J0(e,t){return t.some(a=>e[a]!==void 0)}function BP(e){let t={velocity:Ce.velocity,stiffness:Ce.stiffness,damping:Ce.damping,mass:Ce.mass,isResolvedFromDuration:!1,...e};if(!J0(e,FP)&&J0(e,EP))if(e.visualDuration){let a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,n=2*Xe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ce.mass,stiffness:o,damping:n}}else{let a=Z0(e);t={...t,...a,mass:Ce.mass},t.isResolvedFromDuration=!0}return t}function vd(e=Ce.visualDuration,t=Ce.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=a,n=a.keyframes[0],s=a.keyframes[a.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:g}=BP({...a,velocity:-$e(a.velocity||0)}),L=f||0,v=u/(2*Math.sqrt(l*d)),I=s-n,h=$e(Math.sqrt(l/d)),m=Math.abs(I)<5;r||(r=m?Ce.restSpeed.granular:Ce.restSpeed.default),o||(o=m?Ce.restDelta.granular:Ce.restDelta.default);let x;if(v<1){let w=yd(h,v);x=b=>{let D=Math.exp(-v*h*b);return s-D*((L+v*h*I)/w*Math.sin(w*b)+I*Math.cos(w*b))}}else if(v===1)x=w=>s-Math.exp(-h*w)*(I+(L+h*I)*w);else{let w=h*Math.sqrt(v*v-1);x=b=>{let D=Math.exp(-v*h*b),P=Math.min(w*b,300);return s-D*((L+v*h*I)*Math.sinh(P)+w*I*Math.cosh(P))/w}}let S={calculatedDuration:g&&c||null,next:w=>{let b=x(w);if(g)i.done=w>=c;else{let D=0;v<1&&(D=w===0?De(L):xd(x,w,b));let P=Math.abs(D)<=r,V=Math.abs(s-b)<=o;i.done=P&&V}return i.value=i.done?s:b,i},toString:()=>{let w=Math.min(_n(S),2e4),b=Ti(D=>S.next(w*D).value,w,30);return w+"ms "+b}};return S}function dm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:d}){let c=e[0],f={done:!1,value:c},g=P=>i!==void 0&&P<i||l!==void 0&&P>l,L=P=>i===void 0?l:l===void 0||Math.abs(i-P)<Math.abs(l-P)?i:l,v=a*t,I=c+v,h=s===void 0?I:s(I);h!==I&&(v=h-c);let m=P=>-v*Math.exp(-P/r),x=P=>h+m(P),S=P=>{let V=m(P),F=x(P);f.done=Math.abs(V)<=u,f.value=f.done?h:F},w,b,D=P=>{g(f.value)&&(w=P,b=vd({keyframes:[f.value,L(f.value)],velocity:xd(x,P,f.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:P=>{let V=!1;return!b&&w===void 0&&(V=!0,S(P),D(P)),w!==void 0&&P>=w?b.next(P-w):(!V&&S(P),f)}}}var eL=Er(.42,0,1,1),tL=Er(0,0,.58,1),Ld=Er(.42,0,.58,1);var aL=e=>Array.isArray(e)&&typeof e[0]!="number";var rL={linear:pe,easeIn:eL,easeInOut:Ld,easeOut:tL,circIn:sd,circInOut:ld,circOut:id,backIn:Ri,backInOut:od,backOut:Yp,anticipate:nd},cm=e=>{if(zn(e)){sa(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,a,r,o]=e;return Er(t,a,r,o)}else if(typeof e=="string")return sa(rL[e]!==void 0,`Invalid easing type '${e}'`),rL[e];return e};function OP(e,t,a){let r=[],o=a||gd,n=e.length-1;for(let s=0;s<n;s++){let i=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||pe:t;i=La(l,i)}r.push(i)}return r}function oL(e,t,{clamp:a=!0,ease:r,mixer:o}={}){let n=e.length;if(sa(n===t.length,"Both input and output ranges must be the same length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=OP(t,r,o),l=i.length,u=d=>{if(s&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);let f=Et(e[c],e[c+1],d);return i[c](f)};return a?d=>u(Xe(e[0],e[n-1],d)):u}function nL(e,t){let a=e[e.length-1];for(let r=1;r<=t;r++){let o=Et(0,t,r);e.push(re(a,1,o))}}function sL(e){let t=[0];return nL(t,e.length-1),t}function iL(e,t){return e.map(a=>a*t)}function VP(e,t){return e.map(()=>t||Ld).splice(0,e.length-1)}function Ni({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){let o=aL(r)?r.map(cm):cm(r),n={done:!1,value:t[0]},s=iL(a&&a.length===t.length?a:sL(t),e),i=oL(s,t,{ease:Array.isArray(o)?o:VP(t,o)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var lL=e=>{let t=({timestamp:a})=>e(a);return{start:()=>Y.update(t,!0),stop:()=>Ft(t),now:()=>Me.isProcessing?Me.timestamp:nt.now()}};var UP={decay:dm,inertia:dm,tween:Ni,keyframes:Ni,spring:vd},_P=e=>e/100,Co=class extends Yn{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:a,motionValue:r,element:o,keyframes:n}=this.options,s=o?.KeyframeResolver||Or,i=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(n,i,a,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:a="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:n,velocity:s=0}=this.options,i=Dr(a)?a:UP[a]||Ni,l,u;i!==Ni&&typeof t[0]!="number"&&(l=La(_P,gd(t[0],t[1])),t=[0,100]);let d=i({...this.options,keyframes:t});n==="mirror"&&(u=i({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=_n(d));let{calculatedDuration:c}=d,f=c+o,g=f*(r+1)-o;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:f,totalDuration:g}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,a=!1){let{resolved:r}=this;if(!r){let{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}let{finalKeyframe:o,generator:n,mirroredGenerator:s,mapPercentToKeyframes:i,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:c}=r;if(this.startTime===null)return n.next(0);let{delay:f,repeat:g,repeatType:L,repeatDelay:v,onUpdate:I}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),a?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let h=this.currentTime-f*(this.speed>=0?1:-1),m=this.speed>=0?h<0:h>d;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=n;if(g){let P=Math.min(this.currentTime,d)/c,V=Math.floor(P),F=P%1;!F&&P>=1&&(F=1),F===1&&V--,V=Math.min(V,g+1),V%2&&(L==="reverse"?(F=1-F,v&&(F-=v/c)):L==="mirror"&&(S=s)),x=Xe(0,1,F)*c}let w=m?{done:!1,value:l[0]}:S.next(x);i&&(w.value=i(w.value));let{done:b}=w;!m&&u!==null&&(b=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return D&&o!==void 0&&(w.value=Vr(l,this.options,o)),I&&I(w.value),D&&this.finish(),w}get duration(){let{resolved:t}=this;return t?$e(t.calculatedDuration):0}get time(){return $e(this.currentTime)}set time(t){t=De(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=$e(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=lL,onPlay:a,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),a&&a();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};var uL=new Set(["opacity","clipPath","filter","transform"]);function dL(e,t,a,{delay:r=0,duration:o=300,repeat:n=0,repeatType:s="loop",ease:i="easeInOut",times:l}={}){let u={[t]:a};l&&(u.offset=l);let d=qn(i,o);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"})}var cL=mo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var Cd=10,zP=2e4;function HP(e){return Dr(e.type)||e.type==="spring"||!$u(e.ease)}function qP(e,t){let a=new Co({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],n=0;for(;!r.done&&n<zP;)r=a.sample(n),o.push(r.value),n+=Cd;return{times:void 0,keyframes:o,duration:n-Cd,ease:"linear"}}var fL={anticipate:nd,backInOut:od,circInOut:ld};function WP(e){return e in fL}var Ei=class extends Yn{constructor(t){super(t);let{name:a,motionValue:r,element:o,keyframes:n}=this.options;this.resolver=new Qn(n,(s,i)=>this.onKeyframesResolved(s,i),a,r,o),this.resolver.scheduleResolve()}initPlayback(t,a){let{duration:r=300,times:o,ease:n,type:s,motionValue:i,name:l,startTime:u}=this.options;if(!i.owner||!i.owner.current)return!1;if(typeof n=="string"&&Mr()&&WP(n)&&(n=fL[n]),HP(this.options)){let{onComplete:c,onUpdate:f,motionValue:g,element:L,...v}=this.options,I=qP(t,v);t=I.keyframes,t.length===1&&(t[1]=t[0]),r=I.duration,o=I.times,n=I.ease,s="keyframes"}let d=dL(i.owner.current,l,t,{...this.options,duration:r,times:o,ease:n});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Pi(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:c}=this.options;i.set(Vr(t,this.options,a)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:a}=t;return $e(a)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:a}=t;return $e(a.currentTime||0)}set time(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.currentTime=De(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:a}=t;return a.playbackRate}set speed(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:a}=t;return a.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:a}=t;return a.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:a}=this;if(!a)return pe;let{animation:r}=a;Pi(r,t)}return pe}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:a}=t;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:a,keyframes:r,duration:o,type:n,ease:s,times:i}=t;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:d,onComplete:c,element:f,...g}=this.options,L=new Co({...g,keyframes:r,duration:o,type:n,ease:s,times:i,isGenerator:!0}),v=De(this.time);u.setWithVelocity(L.sample(v-Cd).value,L.sample(v).value,Cd)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:a,name:r,repeatDelay:o,repeatType:n,damping:s,type:i}=t;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=a.owner.getProps();return cL()&&r&&uL.has(r)&&!l&&!u&&!o&&n!=="mirror"&&s!==0&&i!=="inertia"}};var GP={type:"spring",stiffness:500,damping:25,restSpeed:10},jP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KP={type:"keyframes",duration:.8},$P={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pL=(e,{keyframes:t})=>t.length>2?KP:wt.has(e)?e.startsWith("scale")?jP(t[1]):GP:$P;function mL({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:o,repeat:n,repeatType:s,repeatDelay:i,from:l,elapsed:u,...d}){return!!Object.keys(d).length}var Jn=(e,t,a,r={},o,n)=>s=>{let i=Rr(r,e)||{},l=i.delay||r.delay||0,{elapsed:u=0}=r;u=u-De(l);let d={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:n?void 0:o};mL(i)||(d={...d,...pL(e,d)}),d.duration&&(d.duration=De(d.duration)),d.repeatDelay&&(d.repeatDelay=De(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(c=!0)),(td.current||wn.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!n&&t.get()!==void 0){let f=Vr(d.keyframes,i);if(f!==void 0)return Y.update(()=>{d.onUpdate(f),d.onComplete()}),new bi([])}return!n&&Ei.supports(d)?new Ei(d):new Co(d)};function XP({protectedKeys:e,needsAnimating:t},a){let r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function Sd(e,t,{delay:a=0,transitionOverride:r,type:o}={}){var n;let{transition:s=e.getDefaultTransition(),transitionEnd:i,...l}=t;r&&(s=r);let u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(let c in l){let f=e.getValue(c,(n=e.latestValues[c])!==null&&n!==void 0?n:null),g=l[c];if(g===void 0||d&&XP(d,c))continue;let L={delay:a,...Rr(s||{},c)},v=!1;if(window.MotionHandoffAnimation){let h=ed(e);if(h){let m=window.MotionHandoffAnimation(h,c,Y);m!==null&&(L.startTime=m,v=!0)}}Ai(e,c),f.start(Jn(c,f,g,e.shouldReduceMotion&&Yu.has(c)?{type:!1}:L,e,v));let I=f.animation;I&&u.push(I)}return i&&Promise.all(u).then(()=>{Y.update(()=>{i&&P0(e,i)})}),u}function Id(e,t,a={}){var r;let o=Ar(e,t,a.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(n=a.transitionOverride);let s=o?()=>Promise.all(Sd(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:c,staggerDirection:f}=n;return QP(e,t,d+u,c,f,a)}:()=>Promise.resolve(),{when:l}=n;if(l){let[u,d]=l==="beforeChildren"?[s,i]:[i,s];return u().then(()=>d())}else return Promise.all([s(),i(a.delay)])}function QP(e,t,a=0,r=0,o=1,n){let s=[],i=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>i-u*r;return Array.from(e.variantChildren).sort(YP).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Id(u,t,{...n,delay:a+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function YP(e,t){return e.sortNodePosition(t)}function hL(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(n=>Id(e,n,a));r=Promise.all(o)}else if(typeof t=="string")r=Id(e,t,a);else{let o=typeof t=="function"?Ar(e,t,a.custom):t;r=Promise.all(Sd(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}var ZP=Ci.length;function fm(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?fm(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<ZP;a++){let r=Ci[a],o=e.props[r];(Ga(o)||o===!1)&&(t[r]=o)}return t}var JP=[...Mu].reverse(),e1=Mu.length;function t1(e){return t=>Promise.all(t.map(({animation:a,options:r})=>hL(e,a,r)))}function xL(e){let t=t1(e),a=gL(),r=!0,o=l=>(u,d)=>{var c;let f=Ar(e,d,l==="exit"?(c=e.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(f){let{transition:g,transitionEnd:L,...v}=f;u={...u,...v,...L}}return u};function n(l){t=l(e)}function s(l){let{props:u}=e,d=fm(e.parent)||{},c=[],f=new Set,g={},L=1/0;for(let I=0;I<e1;I++){let h=JP[I],m=a[h],x=u[h]!==void 0?u[h]:d[h],S=Ga(x),w=h===l?m.isActive:null;w===!1&&(L=I);let b=x===d[h]&&x!==u[h]&&S;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...g},!m.isActive&&w===null||!x&&!m.prevProp||Tr(x)||typeof x=="boolean")continue;let D=a1(m.prevProp,x),P=D||h===l&&m.isActive&&!b&&S||I>L&&S,V=!1,F=Array.isArray(x)?x:[x],le=F.reduce(o(h),{});w===!1&&(le={});let{prevResolvedValues:ee={}}=m,Ia={...ee,...le},me=W=>{P=!0,f.has(W)&&(V=!0,f.delete(W)),m.needsAnimating[W]=!0;let Ye=e.getValue(W);Ye&&(Ye.liveStyle=!1)};for(let W in Ia){let Ye=le[W],bt=ee[W];if(g.hasOwnProperty(W))continue;let Kt=!1;Si(Ye)&&Si(bt)?Kt=!zp(Ye,bt):Kt=Ye!==bt,Kt?Ye!=null?me(W):f.add(W):Ye!==void 0&&f.has(W)?me(W):m.protectedKeys[W]=!0}m.prevProp=x,m.prevResolvedValues=le,m.isActive&&(g={...g,...le}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(b&&D)||V)&&c.push(...F.map(W=>({animation:W,options:{type:h}})))}if(f.size){let I={};f.forEach(h=>{let m=e.getBaseTarget(h),x=e.getValue(h);x&&(x.liveStyle=!0),I[h]=m??null}),c.push({animation:I})}let v=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(c):Promise.resolve()}function i(l,u){var d;if(a[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),a[l].isActive=u;let c=s(l);for(let f in a)a[f].protectedKeys={};return c}return{animateChanges:s,setActive:i,setAnimateFunction:n,getState:()=>a,reset:()=>{a=gL(),r=!0}}}function a1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zp(t,e):!1}function So(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gL(){return{animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()}}var qe=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var wd=class extends qe{constructor(t){super(t),t.animationState||(t.animationState=xL(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Tr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var r1=0,kd=class extends qe{constructor(){super(...arguments),this.id=r1++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>a(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var yL={animation:{Feature:wd},exit:{Feature:kd}};function Xa(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function Qa(e){return{point:{x:e.pageX,y:e.pageY}}}var vL=e=>t=>go(t)&&e(t,Qa(t));function Ur(e,t,a,r){return Xa(e,t,vL(a),r)}var LL=(e,t)=>Math.abs(e-t);function CL(e,t){let a=LL(e.x,t.x),r=LL(e.y,t.y);return Math.sqrt(a**2+r**2)}var es=class{constructor(t,a,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=mm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=CL(c.offset,{x:0,y:0})>=3;if(!f&&!g)return;let{point:L}=c,{timestamp:v}=Me;this.history.push({...L,timestamp:v});let{onStart:I,onMove:h}=this.handlers;f||(I&&I(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=pm(f,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();let{onEnd:g,onSessionEnd:L,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let I=mm(c.type==="pointercancel"?this.lastMoveEventInfo:pm(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(c,I),L&&L(c,I)},!go(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=r,this.contextWindow=o||window;let s=Qa(t),i=pm(s,this.transformPagePoint),{point:l}=i,{timestamp:u}=Me;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=a;d&&d(t,mm(i,this.history)),this.removeListeners=La(Ur(this.contextWindow,"pointermove",this.handlePointerMove),Ur(this.contextWindow,"pointerup",this.handlePointerUp),Ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}};function pm(e,t){return t?{point:t(e.point)}:e}function SL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mm({point:e},t){return{point:e,delta:SL(e,IL(t)),offset:SL(e,o1(t)),velocity:n1(t,.1)}}function o1(e){return e[0]}function IL(e){return e[e.length-1]}function n1(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null,o=IL(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>De(t)));)a--;if(!r)return{x:0,y:0};let n=$e(o.timestamp-r.timestamp);if(n===0)return{x:0,y:0};let s={x:(o.x-r.x)/n,y:(o.y-r.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var PL=1e-4,s1=1-PL,i1=1+PL,TL=.01,l1=0-TL,u1=0+TL;function Qe(e){return e.max-e.min}function AL(e,t,a){return Math.abs(e-t)<=a}function wL(e,t,a,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Qe(a)/Qe(t),e.translate=re(a.min,a.max,e.origin)-e.originPoint,(e.scale>=s1&&e.scale<=i1||isNaN(e.scale))&&(e.scale=1),(e.translate>=l1&&e.translate<=u1||isNaN(e.translate))&&(e.translate=0)}function ts(e,t,a,r){wL(e.x,t.x,a.x,r?r.originX:void 0),wL(e.y,t.y,a.y,r?r.originY:void 0)}function kL(e,t,a){e.min=a.min+t.min,e.max=e.min+Qe(t)}function RL(e,t,a){kL(e.x,t.x,a.x),kL(e.y,t.y,a.y)}function bL(e,t,a){e.min=t.min-a.min,e.max=e.min+Qe(t)}function as(e,t,a){bL(e.x,t.x,a.x),bL(e.y,t.y,a.y)}function FL(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?re(a,e,r.max):Math.min(e,a)),e}function DL(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function BL(e,{top:t,left:a,bottom:r,right:o}){return{x:DL(e.x,a,o),y:DL(e.y,t,r)}}function ML(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function OL(e,t){return{x:ML(e.x,t.x),y:ML(e.y,t.y)}}function VL(e,t){let a=.5,r=Qe(e),o=Qe(t);return o>r?a=Et(t.min,t.max-r,e.min):r>o&&(a=Et(e.min,e.max-o,t.min)),Xe(0,1,a)}function UL(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var bd=.35;function _L(e=bd){return e===!1?e=0:e===!0&&(e=bd),{x:NL(e,"left","right"),y:NL(e,"top","bottom")}}function NL(e,t,a){return{min:EL(e,t),max:EL(e,a)}}function EL(e,t){return typeof e=="number"?e:e[t]||0}var zL=()=>({translate:0,scale:1,origin:0,originPoint:0}),Io=()=>({x:zL(),y:zL()}),HL=()=>({min:0,max:0}),Se=()=>({x:HL(),y:HL()});function kt(e){return[e("x"),e("y")]}function Pd({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function qL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WL(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function hm(e){return e===void 0||e===1}function Td({scale:e,scaleX:t,scaleY:a}){return!hm(e)||!hm(t)||!hm(a)}function Ya(e){return Td(e)||gm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gm(e){return GL(e.x)||GL(e.y)}function GL(e){return e&&e!=="0%"}function Fi(e,t,a){let r=e-a,o=t*r;return a+o}function jL(e,t,a,r,o){return o!==void 0&&(e=Fi(e,o,r)),Fi(e,a,r)+t}function xm(e,t=0,a=1,r,o){e.min=jL(e.min,t,a,r,o),e.max=jL(e.max,t,a,r,o)}function ym(e,{x:t,y:a}){xm(e.x,t.translate,t.scale,t.originPoint),xm(e.y,a.translate,a.scale,a.originPoint)}var KL=.999999999999,$L=1.0000000000001;function QL(e,t,a,r=!1){let o=a.length;if(!o)return;t.x=t.y=1;let n,s;for(let i=0;i<o;i++){n=a[i],s=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&wo(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ym(e,s)),r&&Ya(n.latestValues)&&wo(e,n.latestValues))}t.x<$L&&t.x>KL&&(t.x=1),t.y<$L&&t.y>KL&&(t.y=1)}function _r(e,t){e.min=e.min+t,e.max=e.max+t}function XL(e,t,a,r,o=.5){let n=re(e.min,e.max,o);xm(e,t,a,n,r)}function wo(e,t){XL(e.x,t.x,t.scaleX,t.scale,t.originX),XL(e.y,t.y,t.scaleY,t.scale,t.originY)}function vm(e,t){return Pd(WL(e.getBoundingClientRect(),t))}function YL(e,t,a){let r=vm(e,a),{scroll:o}=t;return o&&(_r(r.x,o.offset.x),_r(r.y,o.offset.y)),r}var Ad=({current:e})=>e?e.ownerDocument.defaultView:null;var d1=new WeakMap,Dd=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Se(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=d=>{let{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Qa(d).point)},n=(d,c)=>{let{drag:f,dragPropagation:g,onDragStart:L}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xp(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kt(I=>{let h=this.getAxisMotionValue(I).get()||0;if(ft.test(h)){let{projection:m}=this.visualElement;if(m&&m.layout){let x=m.layout.layoutBox[I];x&&(h=Qe(x)*(parseFloat(h)/100))}}this.originPoint[I]=h}),L&&Y.postRender(()=>L(d,c)),Ai(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,c)=>{let{dragPropagation:f,dragDirectionLock:g,onDirectionLock:L,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:I}=c;if(g&&this.currentDirection===null){this.currentDirection=c1(I),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",c.point,I),this.updateAxis("y",c.point,I),this.visualElement.render(),v&&v(d,c)},i=(d,c)=>this.stop(d,c),l=()=>kt(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new es(t,{onSessionStart:o,onStart:n,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ad(this.visualElement)})}stop(t,a){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=a;this.startAnimation(o);let{onDragEnd:n}=this.getProps();n&&Y.postRender(()=>n(t,a))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,r){let{drag:o}=this.getProps();if(!r||!Rd(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=FL(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:a,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,n=this.constraints;a&&ja(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=BL(o.layoutBox,a):this.constraints=!1,this.elastic=_L(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&kt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=UL(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!ja(t))return!1;let r=t.current;sa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=YL(r,o.root,this.visualElement.getTransformPagePoint()),s=OL(o.layout.layoutBox,n);if(a){let i=a(qL(s));this.hasMutatedConstraints=!!i,i&&(s=Pd(i))}return s}startAnimation(t){let{drag:a,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=kt(d=>{if(!Rd(d,a,this.currentDirection))return;let c=l&&l[d]||{};s&&(c={min:0,max:0});let f=o?200:1e6,g=o?40:1e7,L={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...n,...c};return this.startAxisValueAnimation(d,L)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let r=this.getAxisMotionValue(t);return Ai(this.visualElement,t),r.start(Jn(t,r,0,a,this.visualElement,!1))}stopAnimation(){kt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){kt(t=>{var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.state}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[a];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){kt(a=>{let{drag:r}=this.getProps();if(!Rd(a,r,this.currentDirection))return;let{projection:o}=this.visualElement,n=this.getAxisMotionValue(a);if(o&&o.layout){let{min:s,max:i}=o.layout.layoutBox[a];n.set(t[a]-re(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!ja(a)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};kt(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let l=i.get();o[s]=VL({min:l,max:l},this.constraints[s])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),kt(s=>{if(!Rd(s,t,null))return;let i=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];i.set(re(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;d1.set(this.visualElement,this);let t=this.visualElement.current,a=Ur(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();ja(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,n=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Y.read(r);let s=Xa(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(kt(d=>{let c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),a(),n(),i&&i()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:s=bd,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function Rd(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function c1(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Md=class extends qe{constructor(t){super(t),this.removeGroupControls=pe,this.removeListeners=pe,this.controls=new Dd(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pe}unmount(){this.removeGroupControls(),this.removeListeners()}};var ZL=e=>(t,a)=>{e&&Y.postRender(()=>e(t,a))},Nd=class extends qe{constructor(){super(...arguments),this.removePointerDownListener=pe}onPointerDown(t){this.session=new es(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ad(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ZL(t),onStart:ZL(a),onMove:r,onEnd:(n,s)=>{delete this.session,o&&Y.postRender(()=>o(n,s))}}}mount(){this.removePointerDownListener=Ur(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var tC=M(ie(),1),Bi=M(j(),1);var rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function JL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var os={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;let a=JL(e,t.target.x),r=JL(e,t.target.y);return`${a}% ${r}%`}};var eC={correct:(e,{treeScale:t,projectionDelta:a})=>{let r=e,o=pt.parse(e);if(o.length>5)return r;let n=pt.createTransformer(e),s=typeof o[0]!="number"?1:0,i=a.x.scale*t.x,l=a.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;let u=re(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),n(o)}};var Lm=class extends Bi.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=t;l0(f1),n&&(a.group&&a.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:r,drag:o,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,o||t.layoutDependency!==a||a===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||Y.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),bn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Ed(e){let[t,a]=wu(),r=(0,Bi.useContext)(Ln);return(0,tC.jsx)(Lm,{...e,layoutGroup:r,switchLayoutGroup:(0,Bi.useContext)(Bu),isPresent:t,safeToRemove:a})}var f1={borderRadius:{...os,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:os,borderTopRightRadius:os,borderBottomLeftRadius:os,borderBottomRightRadius:os,boxShadow:eC};function aC(e,t,a){let r=xe(e)?e:$a(e);return r.start(Jn("",r,t,a)),r.animation}function rC(e){return e instanceof SVGElement&&e.tagName!=="svg"}var oC=(e,t)=>e.depth-t.depth;var Fd=class{constructor(){this.children=[],this.isDirty=!1}add(t){Gn(this.children,t),this.isDirty=!0}remove(t){jn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(oC),this.isDirty=!1,this.children.forEach(t)}};function nC(e,t){let a=nt.now(),r=({timestamp:o})=>{let n=o-a;n>=t&&(Ft(r),e(n-t))};return Y.read(r,!0),()=>Ft(r)}var uC=["TopLeft","TopRight","BottomLeft","BottomRight"],p1=uC.length,sC=e=>typeof e=="string"?parseFloat(e):e,iC=e=>typeof e=="number"||z.test(e);function dC(e,t,a,r,o,n){o?(e.opacity=re(0,a.opacity!==void 0?a.opacity:1,m1(r)),e.opacityExit=re(t.opacity!==void 0?t.opacity:1,0,h1(r))):n&&(e.opacity=re(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,r));for(let s=0;s<p1;s++){let i=`border${uC[s]}Radius`,l=lC(t,i),u=lC(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||iC(l)===iC(u)?(e[i]=Math.max(re(sC(l),sC(u),r),0),(ft.test(u)||ft.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=re(t.rotate||0,a.rotate||0,r))}function lC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var m1=cC(0,.5,id),h1=cC(.5,.95,pe);function cC(e,t,a){return r=>r<e?0:r>t?1:a(Et(e,t,r))}function fC(e,t){e.min=t.min,e.max=t.max}function Ot(e,t){fC(e.x,t.x),fC(e.y,t.y)}function Cm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pC(e,t,a,r,o){return e-=t,e=Fi(e,1/a,r),o!==void 0&&(e=Fi(e,1/o,r)),e}function g1(e,t=0,a=1,r=.5,o,n=e,s=e){if(ft.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=re(n.min,n.max,r);e===n&&(i-=t),e.min=pC(e.min,t,a,i,o),e.max=pC(e.max,t,a,i,o)}function mC(e,t,[a,r,o],n,s){g1(e,t[a],t[r],t[o],t.scale,n,s)}var x1=["x","scaleX","originX"],y1=["y","scaleY","originY"];function Sm(e,t,a,r){mC(e.x,t,x1,a?a.x:void 0,r?r.x:void 0),mC(e.y,t,y1,a?a.y:void 0,r?r.y:void 0)}function hC(e){return e.translate===0&&e.scale===1}function Im(e){return hC(e.x)&&hC(e.y)}function gC(e,t){return e.min===t.min&&e.max===t.max}function yC(e,t){return gC(e.x,t.x)&&gC(e.y,t.y)}function xC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wm(e,t){return xC(e.x,t.x)&&xC(e.y,t.y)}function km(e){return Qe(e.x)/Qe(e.y)}function bm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Bd=class{constructor(){this.members=[]}add(t){Gn(this.members,t),t.scheduleRender()}remove(t){if(jn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){let a=this.members.findIndex(o=>t===o);if(a===0)return!1;let r;for(let o=a;o>=0;o--){let n=this.members[o];if(n.isPresent!==!1){r=n;break}}return r?(this.promote(r),!0):!1}promote(t,a){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,a&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:a,resumingFrom:r}=t;a.onExitComplete&&a.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function vC(e,t,a){let r="",o=e.x.translate/t.x,n=e.y.translate/t.y,s=a?.z||0;if((o||n||s)&&(r=`translate3d(${o}px, ${n}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:g,skewY:L}=a;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),L&&(r+=`skewY(${L}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(r+=`scale(${i}, ${l})`),r||"none"}var ko={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Oi=typeof window<"u"&&window.MotionDebug!==void 0,Pm=["","X","Y","Z"],v1={visibility:"hidden"},LC=1e3,L1=0;function Tm(e,t,a,r){let{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function TC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=ed(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:o,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Y,!(o||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&TC(r)}function Od({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t?.()){this.id=L1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Oi&&(ko.totalNodes=ko.resolvedTargetDeltas=ko.recalculatedProjection=0),this.nodes.forEach(I1),this.nodes.forEach(T1),this.nodes.forEach(A1),this.nodes.forEach(w1),Oi&&window.MotionDebug.record(ko)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fd)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Nr),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=rC(s),this.instance=s;let{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(u||l)&&(this.isLayoutDirty=!0),e){let c,f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=nC(f,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(SC))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:L})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let v=this.options.transition||d.getDefaultTransition()||E1,{onLayoutAnimationStart:I,onLayoutAnimationComplete:h}=d.getProps(),m=!this.targetLayout||!wm(this.targetLayout,L)||g,x=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,x);let S={...Rr(v,"layout"),onPlay:I,onComplete:h};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||SC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=L})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(R1),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&TC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(CC);return}this.isUpdating||this.nodes.forEach(b1),this.isUpdating=!1,this.nodes.forEach(P1),this.nodes.forEach(C1),this.nodes.forEach(S1),this.clearAllSnapshots();let i=nt.now();Me.delta=Xe(0,1e3/60,i-Me.timestamp),Me.timestamp=i,Me.isProcessing=!0,Ru.update.process(Me),Ru.preRender.process(Me),Ru.render.process(Me),Me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(k1),this.sharedNodes.forEach(D1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!Im(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(i||Ya(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),F1(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:i}=this.options;if(!i)return Se();let l=i.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(B1))){let{scroll:d}=this.root;d&&(_r(l.x,d.offset.x),_r(l.y,d.offset.y))}return l}removeElementScroll(s){var i;let l=Se();if(Ot(l,s),!((i=this.scroll)===null||i===void 0)&&i.wasRoot)return l;for(let u=0;u<this.path.length;u++){let d=this.path[u],{scroll:c,options:f}=d;d!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Ot(l,s),_r(l.x,c.offset.x),_r(l.y,c.offset.y))}return l}applyTransform(s,i=!1){let l=Se();Ot(l,s);for(let u=0;u<this.path.length;u++){let d=this.path[u];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&wo(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Ya(d.latestValues)&&wo(l,d.latestValues)}return Ya(this.latestValues)&&wo(l,this.latestValues),l}removeTransform(s){let i=Se();Ot(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Ya(u.latestValues))continue;Td(u.latestValues)&&u.updateSnapshot();let d=Se(),c=u.measurePageBox();Ot(d,c),Sm(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Ya(this.latestValues)&&Sm(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=Me.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),as(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Ot(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Se(),this.targetWithTransforms=Se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),RL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ot(this.target,this.layout.layoutBox),ym(this.target,this.targetDelta)):Ot(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),as(this.relativeTargetOrigin,this.target,g.target),Ot(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Oi&&ko.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Td(this.parent.latestValues)||gm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let i=this.getLead(),l=!!this.resumingFrom||this!==i,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Me.timestamp&&(u=!1),u)return;let{layout:d,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||c))return;Ot(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;QL(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Se());let{target:L}=i;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Cm(this.prevProjectionDelta.x,this.projectionDelta.x),Cm(this.prevProjectionDelta.y,this.projectionDelta.y)),ts(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!bm(this.projectionDelta.x,this.prevProjectionDelta.x)||!bm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",L)),Oi&&ko.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)===null||i===void 0||i.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Io(),this.projectionDelta=Io(),this.projectionDeltaWithTransform=Io()}setAnimationOrigin(s,i=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=Io();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let f=Se(),g=l?l.source:void 0,L=this.layout?this.layout.source:void 0,v=g!==L,I=this.getStack(),h=!I||I.members.length<=1,m=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(N1));this.animationProgress=0;let x;this.mixTargetDelta=S=>{let w=S/1e3;IC(c.x,s.x,w),IC(c.y,s.y,w),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M1(this.relativeTarget,this.relativeTargetOrigin,f,w),x&&yC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Se()),Ot(x,this.relativeTarget)),v&&(this.animationValues=d,dC(d,u,this.latestValues,w,m,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{rs.hasAnimatedSinceResize=!0,this.currentAnimation=aC(0,LC,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(LC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:l,layout:u,latestValues:d}=s;if(!(!i||!l||!u)){if(this!==s&&this.layout&&u&&AC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Se();let c=Qe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;let f=Qe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ot(i,l),wo(i,d),ts(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Bd),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&Tm("z",s,u,this.animationValues);for(let d=0;d<Pm.length;d++)Tm(`rotate${Pm[d]}`,s,u,this.animationValues),Tm(`skew${Pm[d]}`,s,u,this.animationValues);s.render();for(let d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return v1;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Rn(s?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Rn(s?.pointerEvents)||""),this.hasProjected&&!Ya(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}let f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=vC(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));let{x:g,y:L}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${L.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(i=f.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=c===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let v in On){if(f[v]===void 0)continue;let{correct:I,applyTo:h}=On[v],m=u.transform==="none"?f[v]:I(f[v],c);if(h){let x=h.length;for(let S=0;S<x;S++)u[h[S]]=m}else u[v]=m}return this.options.layoutId&&(u.pointerEvents=c===this?Rn(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(CC),this.root.sharedNodes.clear()}}}function C1(e){e.updateLayout()}function S1(e){var t;let a=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,s=a.source!==e.layout.source;n==="size"?kt(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Qe(f);f.min=r[c].min,f.max=f.min+g}):AC(n,a.layoutBox,r)&&kt(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Qe(r[c]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+g)});let i=Io();ts(i,r,a.layoutBox);let l=Io();s?ts(l,e.applyTransform(o,!0),a.measuredBox):ts(l,r,a.layoutBox);let u=!Im(i),d=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:f,layout:g}=c;if(f&&g){let L=Se();as(L,a.layoutBox,f.layoutBox);let v=Se();as(v,r,g.layoutBox),wm(L,v)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=L,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:l,layoutDelta:i,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function I1(e){Oi&&ko.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function w1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function k1(e){e.clearSnapshot()}function CC(e){e.clearMeasurements()}function b1(e){e.isLayoutDirty=!1}function P1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function SC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function T1(e){e.resolveTargetDelta()}function A1(e){e.calcProjection()}function R1(e){e.resetSkewAndRotation()}function D1(e){e.removeLeadSnapshot()}function IC(e,t,a){e.translate=re(t.translate,0,a),e.scale=re(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function wC(e,t,a,r){e.min=re(t.min,a.min,r),e.max=re(t.max,a.max,r)}function M1(e,t,a,r){wC(e.x,t.x,a.x,r),wC(e.y,t.y,a.y,r)}function N1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var E1={duration:.45,ease:[.4,0,.1,1]},kC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bC=kC("applewebkit/")&&!kC("chrome/")?Math.round:pe;function PC(e){e.min=bC(e.min),e.max=bC(e.max)}function F1(e){PC(e.x),PC(e.y)}function AC(e,t,a){return e==="position"||e==="preserve-aspect"&&!AL(km(t),km(a),.2)}function B1(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var RC=Od({attachResizeListener:(e,t)=>Xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Am={current:void 0},Vd=Od({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Am.current){let e=new RC({});e.mount(window),e.setOptions({layoutScroll:!0}),Am.current=e}return Am.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var DC={pan:{Feature:Nd},drag:{Feature:Md,ProjectionNode:Vd,MeasureLayout:Ed}};function MC(e,t,a){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");let o="onHover"+a,n=r[o];n&&Y.postRender(()=>n(t,Qa(t)))}var Ud=class extends qe{mount(){let{current:t}=this.node;t&&(this.unmount=jp(t,a=>(MC(this.node,a,"Start"),r=>MC(this.node,r,"End"))))}unmount(){}};var _d=class extends qe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=La(Xa(this.node.current,"focus",()=>this.onFocus()),Xa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function NC(e,t,a){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");let o="onTap"+(a==="End"?"":a),n=r[o];n&&Y.postRender(()=>n(t,Qa(t)))}var zd=class extends qe{mount(){let{current:t}=this.node;t&&(this.unmount=$p(t,a=>(NC(this.node,a,"Start"),(r,{success:o})=>NC(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var Dm=new WeakMap,Rm=new WeakMap,O1=e=>{let t=Dm.get(e.target);t&&t(e)},V1=e=>{e.forEach(O1)};function U1({root:e,...t}){let a=e||document;Rm.has(a)||Rm.set(a,{});let r=Rm.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(V1,{root:e,...t})),r[o]}function EC(e,t,a){let r=U1(t);return Dm.set(e,a),r.observe(e),()=>{Dm.delete(e),r.unobserve(e)}}var _1={some:0,all:1},Hd=class extends qe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:o="some",once:n}=t,s={root:a?a.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:_1[o]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return EC(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(z1(t,a))&&this.startObserver()}unmount(){}};function z1({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var FC={inView:{Feature:Hd},tap:{Feature:zd},focus:{Feature:_d},hover:{Feature:Ud}};var BC={layout:{ProjectionNode:Vd,MeasureLayout:Ed}};var zC=M(j(),1);var Vi={current:null},qd={current:!1};function OC(){if(qd.current=!0,!!In)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vi.current=e.matches;e.addListener(t),t()}else Vi.current=!1}var H1=[...rm,Fe,pt],VC=e=>H1.find(pd(e));var Mm=new WeakMap;function UC(e,t,a){for(let r in t){let o=t[r],n=a[r];if(xe(o))e.addValue(r,o);else if(xe(n))e.addValue(r,$a(o,{owner:e}));else if(n!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,$a(s!==void 0?s:o,{owner:e}))}}for(let r in a)t[r]===void 0&&e.removeValue(r);return t}var _C=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Wd=class{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:n,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let g=nt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Y.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:d}=s;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=a.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!n,this.isControllingVariants=ho(a),this.isVariantNode=Nu(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(let g in f){let L=f[g];l[g]!==void 0&&xe(L)&&L.set(l[g],!1)}}mount(t){this.current=t,Mm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,r)=>this.bindToMotionValue(r,a)),qd.current||OC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Mm.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=wt.has(t),o=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=a.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),n(),s&&s(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wa){let a=Wa[t];if(!a)continue;let{isEnabled:r,Feature:o}=a;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<_C.length;r++){let o=_C[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let n="on"+o,s=t[n];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=UC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){let r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=$a(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(fd(o)||ud(o))?o=parseFloat(o):!VC(o)&&pt.test(a)&&(o=cd(t,a)),this.setBaseTarget(t,xe(o)?o.get():o)),xe(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var a;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=An(this.props,r,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!xe(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Nr),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}};var ns=class extends Wd{constructor(){super(...arguments),this.KeyframeResolver=Qn}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;xe(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};function q1(e){return window.getComputedStyle(e)}var Gd=class extends ns{constructor(){super(...arguments),this.type="html",this.renderInstance=Hu}readValueFromInstance(t,a){if(wt.has(a)){let r=Xn(a);return r&&r.default||0}else{let r=q1(t),o=(Uu(a)?r.getPropertyValue(a):r[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:a}){return vm(t,a)}build(t,a,r){Nn(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Vn(t,a,r)}};var jd=class extends ns{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Se}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(wt.has(a)){let r=Xn(a);return r&&r.default||0}return a=qu.has(a)?a:kn(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return ju(t,a,r)}build(t,a,r){En(t,a,this.isSVGTag,r.transformTemplate)}renderInstance(t,a,r,o){Wu(t,a,r,o)}mount(t){this.isSVGTag=Bn(t.tagName),super.mount(t)}};var HC=(e,t)=>Tn(e)?new jd(t):new Gd(t,{allowProjection:e!==zC.Fragment});var qC=x0({...yL,...FC,...DC,...BC},HC);var Nm=Ov(qC);var Ui=M(ie(),1);function WC({x:e,y:t,visible:a,onClick:r=!1}){return(0,Ui.jsx)(Bp,{children:a&&(0,Ui.jsx)(Nm.div,{className:"fixed pointer-events-none z-[9999]",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1,x:e,y:t},exit:{opacity:0,scale:.5},transition:{type:"spring",stiffness:200,damping:20},style:{left:0,top:0},children:(0,Ui.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ui.jsx)("path",{d:"M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z",fill:"#C4B5FD"})})})})}var ss=M(j(),1);function GC(){let[e,t]=ss.useState({x:0,y:0,visible:!1,onClick:!1}),a=ss.useCallback(n=>{let s=document.querySelector(n.selector);if(s){let i=s.getBoundingClientRect(),l=n.offset?.x||0,u=n.offset?.y||0;t({x:i.left+i.width/2+l,y:i.top+i.height/2+u,visible:!0,onClick:n.onClick||!1})}},[]),r=ss.useCallback(()=>{t(n=>({...n,visible:!1}))},[]),o=ss.useCallback(()=>{t(n=>({...n,visible:!0}))},[]);return{cursorState:e,moveTo:a,hide:r,show:o}}var is=M(ie(),1);function st({className:e,...t}){return(0,is.jsx)("div",{"data-slot":"card",className:Nt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Ca({className:e,...t}){return(0,is.jsx)("div",{"data-slot":"card-header",className:Nt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Sa({className:e,...t}){return(0,is.jsx)("div",{"data-slot":"card-title",className:Nt("leading-none font-semibold",e),...t})}function Em({className:e,...t}){return(0,is.jsx)("div",{"data-slot":"card-description",className:Nt("text-muted-foreground text-sm",e),...t})}function it({className:e,...t}){return(0,is.jsx)("div",{"data-slot":"card-content",className:Nt("px-6",e),...t})}var y=M(ie(),1),Fm=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Kd=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),Bm=e=>{switch(e){case"Enterprise":return lo;case"Professional":return xi;default:return li}},$d=e=>{switch(e){case"Enterprise":return"bg-purple-50 text-purple-700 border-purple-200";case"Professional":return"bg-blue-50 text-blue-700 border-blue-200";default:return"bg-gray-50 text-gray-700 border-gray-200"}};function _i({status:e,type:t="default"}){let r=(()=>{let n=e.toLowerCase();if(t==="transaction")switch(n){case"paid":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:He};case"failed":return{color:"bg-red-50 text-red-700 border-red-200",icon:oa};case"pending":return{color:"bg-amber-50 text-amber-700 border-amber-200",icon:so};case"refunded":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:xn};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ra}}if(t==="subscription")switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:He};case"cancelled":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:oa};case"past_due":return{color:"bg-red-50 text-red-700 border-red-200",icon:ra};case"trialing":return{color:"bg-blue-50 text-blue-700 border-blue-200",icon:so};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ra}}switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:He};case"inactive":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:oa};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ra}}})(),o=r.icon;return(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border ${r.color}`,children:[(0,y.jsx)(o,{className:"h-3 w-3"}),e]})}function W1({subscription:e}){let t=Bm(e.plan);return(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":e.status==="past_due"?"bg-red-500":"bg-slate-300"}`}),(0,y.jsx)(Ca,{className:"pb-3",children:(0,y.jsxs)("div",{className:"flex items-start justify-between",children:[(0,y.jsxs)("div",{className:"space-y-1",children:[(0,y.jsxs)(Sa,{className:"text-base font-semibold text-gray-900 flex items-center gap-2",children:[(0,y.jsx)(io,{className:"h-4 w-4 text-gray-500"}),e.id]}),e.customer_email&&(0,y.jsxs)(Em,{className:"text-sm text-gray-500 flex items-center gap-1.5",children:[(0,y.jsx)(hn,{className:"h-3 w-3"}),e.customer_email]})]}),(0,y.jsx)(_i,{status:e.status,type:"subscription"})]})}),(0,y.jsx)(it,{className:"pt-0",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${$d(e.plan)}`,children:[(0,y.jsx)(t,{className:"h-3 w-3"}),e.plan]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Billing"}),(0,y.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[Kd(e.amount,e.currency)," / ",e.billing_cycle]})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Current Period"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700",children:[Fm(e.current_period_start)," - ",Fm(e.current_period_end)]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Created"}),(0,y.jsx)("div",{className:"text-sm text-gray-700",children:Fm(e.created_at)})]})]})]})})]})}function G1({subscriptions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(st,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(it,{className:"py-8 text-center",children:[(0,y.jsx)(io,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No subscriptions found"})]})}):(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(io,{className:"h-4 w-4"}),e.length," Subscription",e.length!==1?"s":""]})}),(0,y.jsxs)(it,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>{let n=Bm(o.plan);return(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`p-2 rounded-lg ${$d(o.plan).replace("text-","text-").replace("border-","bg-").split(" ")[0]}`,children:(0,y.jsx)(n,{className:"h-4 w-4"})}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer_email||o.customer_id}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:[o.plan," \xB7 ",Kd(o.amount,o.currency),"/",o.billing_cycle]})]})]}),(0,y.jsx)(_i,{status:o.status,type:"subscription"})]})},o.id)})}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more subscription",e.length-t!==1?"s":""]})})]})]})}function j1({customer:e}){let t=Bm(e.subscription);return(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)("div",{className:`h-1 ${e.status==="active"?"bg-emerald-500":"bg-slate-300"}`}),(0,y.jsx)(Ca,{className:"pb-3",children:(0,y.jsxs)("div",{className:"flex items-start justify-between",children:[(0,y.jsx)("div",{className:"flex items-center gap-3",children:(0,y.jsxs)("div",{children:[(0,y.jsx)(Sa,{className:"text-base font-semibold text-gray-900",children:e.name}),(0,y.jsxs)(Em,{className:"text-sm text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(hn,{className:"h-3 w-3"}),e.email]})]})}),(0,y.jsx)(_i,{status:e.status,type:"customer"})]})}),(0,y.jsx)(it,{className:"pt-0",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Plan"}),(0,y.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border ${$d(e.subscription)}`,children:[(0,y.jsx)(t,{className:"h-3 w-3"}),e.subscription]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Revenue"}),(0,y.jsxs)("div",{className:"text-sm font-medium text-gray-900 flex items-center gap-1",children:[(0,y.jsx)(uo,{className:"h-3 w-3 text-emerald-500"}),e.revenue]})]})]}),(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Location"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,y.jsx)(gn,{className:"h-3 w-3 text-gray-400"}),e.location||"Not specified"]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-xs text-gray-500 mb-1",children:"Customer Since"}),(0,y.jsxs)("div",{className:"text-sm text-gray-700 flex items-center gap-1",children:[(0,y.jsx)(di,{className:"h-3 w-3 text-gray-400"}),e.joinDate]})]})]})]})})]})}function K1({customers:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(st,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(it,{className:"py-8 text-center",children:[(0,y.jsx)(vn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No customers found"})]})}):(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(vn,{className:"h-4 w-4"}),e.length," Customer",e.length!==1?"s":""]})}),(0,y.jsxs)(it,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsx)("div",{className:"flex items-center gap-3 min-w-0",children:(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.name}),(0,y.jsx)("div",{className:"text-xs text-gray-500 truncate",children:o.email})]})}),(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${$d(o.subscription)}`,children:o.subscription}),(0,y.jsx)(_i,{status:o.status,type:"customer"})]})]})},o.id))}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more customer",e.length-t!==1?"s":""]})})]})]})}function jC({transactions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(st,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(it,{className:"py-8 text-center",children:[(0,y.jsx)(uo,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No transactions found"})]})}):(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(uo,{className:"h-4 w-4"}),e.length," Transaction",e.length!==1?"s":""]})}),(0,y.jsxs)(it,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`p-2 rounded-lg ${o.status==="paid"?"bg-emerald-50":o.status==="failed"?"bg-red-50":o.status==="refunded"?"bg-slate-50":"bg-amber-50"}`,children:o.status==="paid"?(0,y.jsx)(He,{className:"h-4 w-4 text-emerald-600"}):o.status==="failed"?(0,y.jsx)(oa,{className:"h-4 w-4 text-red-600"}):o.status==="refunded"?(0,y.jsx)(xn,{className:"h-4 w-4 text-slate-600"}):(0,y.jsx)(so,{className:"h-4 w-4 text-amber-600"})}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:o.customer}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:[o.date,o.decline_reason&&(0,y.jsxs)("span",{className:"text-red-500 ml-2",children:["\xB7 ",o.decline_reason]})]})]})]}),(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsxs)("span",{className:`text-sm font-semibold ${o.status==="paid"?"text-emerald-600":o.status==="failed"?"text-red-600":o.status==="refunded"?"text-slate-600":"text-amber-600"}`,children:[o.status==="refunded"?"-":"",o.amount]}),(0,y.jsx)(_i,{status:o.status,type:"transaction"})]})]})},o.id))}),r&&(0,y.jsx)("div",{className:"px-4 py-2 bg-gray-50 border-t border-gray-100 text-center",children:(0,y.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.length-t," more transaction",e.length-t!==1?"s":""]})})]})]})}function $1({apiKeys:e}){return e.length===0?(0,y.jsx)(st,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(it,{className:"py-8 text-center",children:[(0,y.jsx)(mn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No API keys found"})]})}):(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(mn,{className:"h-4 w-4"}),e.length," API Key",e.length!==1?"s":""]})}),(0,y.jsx)(it,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900",children:t.name}),(0,y.jsxs)("div",{className:"text-xs text-gray-500 font-mono",children:[t.key.slice(0,12),"...",t.key.slice(-4)]})]}),(0,y.jsxs)("div",{className:"text-xs text-gray-500",children:["Last used: ",t.lastUsed]})]})},a))})})]})}function X1({sessions:e}){let t=a=>{let r=a.toLowerCase();return r.includes("mobile")||r.includes("iphone")||r.includes("android")?hi:fi};return e.length===0?(0,y.jsx)(st,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(it,{className:"py-8 text-center",children:[(0,y.jsx)(yn,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No active sessions"})]})}):(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(yn,{className:"h-4 w-4"}),e.length," Active Session",e.length!==1?"s":""]})}),(0,y.jsx)(it,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((a,r)=>{let o=t(a.device);return(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"p-2 rounded-lg bg-gray-100",children:(0,y.jsx)(o,{className:"h-4 w-4 text-gray-600"})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900",children:a.device}),(0,y.jsxs)("div",{className:"text-xs text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(gn,{className:"h-3 w-3"}),a.location]})]})]}),(0,y.jsx)("div",{className:"text-xs text-gray-500",children:a.time})]})},r)})})})]})}function Q1({stats:e}){return(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(gi,{className:"h-4 w-4"}),"Dashboard Overview"]})}),(0,y.jsx)(it,{className:"p-4",children:(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[e.revenue&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-emerald-50 border border-emerald-100",children:[(0,y.jsx)("div",{className:"text-xs text-emerald-600 font-medium mb-1",children:"Revenue"}),(0,y.jsx)("div",{className:"text-lg font-bold text-emerald-700",children:Kd(e.revenue.total)}),e.revenue.change!==0&&(0,y.jsxs)("div",{className:`text-xs ${e.revenue.change>0?"text-emerald-600":"text-red-600"}`,children:[e.revenue.change>0?"+":"",e.revenue.change,"% from last period"]})]}),e.subscriptions&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-blue-50 border border-blue-100",children:[(0,y.jsx)("div",{className:"text-xs text-blue-600 font-medium mb-1",children:"Subscriptions"}),(0,y.jsxs)("div",{className:"text-lg font-bold text-blue-700",children:[e.subscriptions.active," active"]}),(0,y.jsxs)("div",{className:"text-xs text-blue-600",children:[e.subscriptions.total," total"]})]}),e.customers&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-purple-50 border border-purple-100",children:[(0,y.jsx)("div",{className:"text-xs text-purple-600 font-medium mb-1",children:"Customers"}),(0,y.jsx)("div",{className:"text-lg font-bold text-purple-700",children:e.customers.total}),e.customers.new>0&&(0,y.jsxs)("div",{className:"text-xs text-purple-600",children:["+",e.customers.new," new this period"]})]}),e.transactions&&(0,y.jsxs)("div",{className:"p-3 rounded-lg bg-amber-50 border border-amber-100",children:[(0,y.jsx)("div",{className:"text-xs text-amber-600 font-medium mb-1",children:"Transactions"}),(0,y.jsxs)("div",{className:"text-lg font-bold text-amber-700",children:[e.transactions.successful," successful"]}),e.transactions.failed>0&&(0,y.jsxs)("div",{className:"text-xs text-red-600",children:[e.transactions.failed," failed"]})]})]})})]})}function Y1({customers:e}){return e.length===0?(0,y.jsx)(st,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(it,{className:"py-8 text-center",children:[(0,y.jsx)(lo,{className:"h-10 w-10 text-gray-300 mx-auto mb-3"}),(0,y.jsx)("p",{className:"text-sm text-gray-500",children:"No top customers data"})]})}):(0,y.jsxs)(st,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(Ca,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(Sa,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(lo,{className:"h-4 w-4 text-amber-500"}),"Top Customers"]})}),(0,y.jsx)(it,{className:"p-0",children:(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:e.map((t,a)=>(0,y.jsx)("div",{className:"px-4 py-3 hover:bg-gray-50 transition-colors",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,y.jsx)("div",{className:`h-6 w-6 rounded-full flex items-center justify-center text-xs font-bold ${a===0?"bg-amber-100 text-amber-700":a===1?"bg-slate-100 text-slate-700":a===2?"bg-orange-100 text-orange-700":"bg-gray-100 text-gray-700"}`,children:a+1}),(0,y.jsxs)("div",{className:"min-w-0",children:[(0,y.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:t.name}),(0,y.jsx)("div",{className:"text-xs text-gray-500 truncate",children:t.email})]})]}),(0,y.jsx)("div",{className:"text-sm font-semibold text-emerald-600",children:typeof t.revenue=="number"?Kd(t.revenue):t.revenue})]})},a))})})]})}function KC({type:e,data:t}){if(!t)return null;switch(e){case"subscription":return(0,y.jsx)(W1,{subscription:t});case"subscriptions":let a=t.subscriptions||t||[];return(0,y.jsx)(G1,{subscriptions:Array.isArray(a)?a:[a]});case"customer":return(0,y.jsx)(j1,{customer:t.customer||t});case"customers":let r=t.customers||t||[];return(0,y.jsx)(K1,{customers:Array.isArray(r)?r:[r]});case"transactions":let o=t.transactions||t||[];return(0,y.jsx)(jC,{transactions:Array.isArray(o)?o:[o]});case"transaction":return(0,y.jsx)(jC,{transactions:[t],maxItems:1});case"dashboard_stats":return(0,y.jsx)(Q1,{stats:t});case"top_customers":let n=t.customers||t||[];return(0,y.jsx)(Y1,{customers:Array.isArray(n)?n:[n]});case"api_keys":let s=t.api_keys||t||[];return(0,y.jsx)($1,{apiKeys:Array.isArray(s)?s:[s]});case"sessions":let i=t.sessions||t||[];return(0,y.jsx)(X1,{sessions:Array.isArray(i)?i:[i]});default:return null}}var p=M(ie(),1),Z1="http://localhost:5002";function J1(e){if(!e)return null;let t=e.split(`
17
+ `),a=[],r=null,o=!1,n=[],s="",i=u=>{let d=[],c=u,f=0;for(;c.length>0;){let g=c.match(/^`([^`]+)`/);if(g){d.push((0,p.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded text-xs font-mono",children:g[1]},f++)),c=c.slice(g[0].length);continue}let L=c.match(/^\*\*([^*]+)\*\*/);if(L){d.push((0,p.jsx)("strong",{children:L[1]},f++)),c=c.slice(L[0].length);continue}let v=c.match(/^\*([^*]+)\*/);if(v){d.push((0,p.jsx)("em",{children:v[1]},f++)),c=c.slice(v[0].length);continue}let I=c.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(I){d.push((0,p.jsx)("a",{href:I[2],className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:I[1]},f++)),c=c.slice(I[0].length);continue}let h=c.search(/[`*\[]/);if(h===-1){d.push(c);break}else h===0?(d.push(c[0]),c=c.slice(1)):(d.push(c.slice(0,h)),c=c.slice(h))}return d.length===1?d[0]:(0,p.jsx)(p.Fragment,{children:d})},l=()=>{if(r){let u=r.type==="ul"?"ul":"ol";a.push((0,p.jsx)(u,{className:`${r.type==="ul"?"list-disc":"list-decimal"} ml-4 my-1`,children:r.items.map((d,c)=>(0,p.jsx)("li",{className:"ml-2",children:d},c))},a.length)),r=null}};for(let u=0;u<t.length;u++){let d=t[u];if(d.startsWith("```")){o?(a.push((0,p.jsx)("pre",{className:"bg-gray-100 rounded p-2 my-1 overflow-x-auto",children:(0,p.jsx)("code",{className:"text-xs font-mono",children:n.join(`
18
+ `)})},a.length)),o=!1,n=[],s=""):(l(),o=!0,s=d.slice(3).trim());continue}if(o){n.push(d);continue}let c=d.match(/^(#{1,6})\s+(.+)/);if(c){l();let L=c[1].length,v=i(c[2]),I=L===1?"text-lg font-bold my-1":L===2?"text-base font-bold my-1":"text-sm font-semibold my-1";a.push((0,p.jsx)("div",{className:I,children:v},a.length));continue}let f=d.match(/^[-*]\s+(.+)/);if(f){(!r||r.type!=="ul")&&(l(),r={type:"ul",items:[]}),r.items.push(i(f[1]));continue}let g=d.match(/^\d+[.)]\s+(.+)/);if(g){(!r||r.type!=="ol")&&(l(),r={type:"ol",items:[]}),r.items.push(i(g[1]));continue}if(d.trim()===""){l(),a.push((0,p.jsx)("div",{className:"h-2"},a.length));continue}if(d.match(/^[-*_]{3,}$/)){l(),a.push((0,p.jsx)("hr",{className:"my-2 border-gray-200"},a.length));continue}l(),a.push((0,p.jsx)("div",{children:i(d)},a.length))}return l(),(0,p.jsx)(p.Fragment,{children:a})}var $C=[{id:"customers",title:"Customer Management",topics:[{id:"add-customer",label:"Add a new customer",prompt:"How do I add a new customer to the system and what information is required?"},{id:"customer-details",label:"View customer details",prompt:"Show me how to view and edit customer information and their payment history."}]},{id:"payments",title:"Payment Processing",topics:[{id:"process-payment",label:"Process a payment",prompt:"How do I process a one-time payment for a customer?"},{id:"refund-payment",label:"Issue a refund",prompt:"Walk me through issuing a refund for a customer payment."}]},{id:"subscriptions",title:"Subscription Management",topics:[{id:"create-subscription",label:"Create a subscription",prompt:"How do I set up a new subscription plan for a customer?"},{id:"update-subscription",label:"Update subscription tier",prompt:"How can I change a customer's subscription plan or upgrade them?"}]},{id:"billing",title:"Billing",topics:[{id:"payment-methods",label:"Manage payment methods",prompt:"How do customers add or update their payment methods?"}]}],Om={"getting-started":{id:"getting-started",title:"Getting started",steps:[{text:"Step 1: Let's open the Customers page. This is where you'll manage all your customers - you can view, add, and edit customer information here.",navigation:{page:"customers"},cursorTarget:{selector:'[data-page="customers"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Now let's open the Add customer dialog. This is where you'll enter information for your first customer, including their name, email, and other details.",navigation:{page:"customers"},cursorTarget:{selector:'[data-testid="add-customer-button"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Settings page. This is where you manage your account settings, company information, and preferences. We're going to verify your company address is correct.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 4: Here's the address field in the Company Information section. It's important to verify this address is accurate since it's used for billing and shipping purposes. Make sure it's up to date.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-testid="company-address-input"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 5: Let's open the API Keys tab. This section shows all your API keys - you'll need these to connect your application to our services. We're going to create a production API key.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 6: Let's open the Create API Key dialog. Here you can create a new API key for your application. You'll want to give it a descriptive name like 'Production Key' so you can easily identify it later.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"add-api-key":{id:"add-api-key",title:"How to add an API key",steps:[{text:"Step 1: Let's open the Settings page. This is where you manage your account settings and preferences. We need to go here to access the API Keys section.",navigation:{page:"settings",subtab:"general"},cursorTarget:{selector:'[data-page="settings"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 2: Let's open the API Keys tab. This section shows all your API keys and allows you to create new ones. You'll need API keys to connect your application to our services.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-settings-tab="api"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 3: Let's open the Create API Key dialog. This is where you'll create your new API key - you can give it a name to help you identify it later, then click Create to generate it.",navigation:{page:"settings",subtab:"api"},cursorTarget:{selector:'[data-testid="create-api-key-button"]',offset:{x:0,y:0},onClick:!0}}]},"refund-payment":{id:"refund-payment",title:"How to refund a payment",steps:[{text:"Step 1: Let's open the Home page. This is your dashboard where you can view today's activity, your payment overview, and recent transactions. We need to go here to find the payment you want to refund.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-page="dashboard"]',offset:{x:0,y:0},onClick:!0}},{text:"Step 2: Scroll down to see the Recent transactions section at the bottom. This shows your latest payment transactions with their status. We're looking for a transaction with 'paid' status - only paid transactions can be refunded.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="recent-activity-card"]',offset:{x:0,y:0},onClick:!1}},{text:"Step 3: Let's open the dropdown menu for this paid transaction. Each transaction has a menu button (three dots) that gives you options like refunding. Click it to see the available actions, including the 'Refund payment' option.",navigation:{page:"dashboard"},cursorTarget:{selector:'[data-testid="transaction-menu-button"]',offset:{x:0,y:0},onClick:!0}}]}},eT=[];function XC({onBack:e,onNavigate:t,onActionComplete:a,currentPage:r,agentUrl:o=Z1}={}){let[n,s]=Z.useState(eT),[i,l]=Z.useState(""),[u]=Z.useState(()=>crypto.randomUUID()),d=Z.useRef({}),c=n.length===0,[f,g]=Z.useState("idle"),[L,v]=Z.useState([]),I=Z.useRef([]),h=n.length?n[n.length-1].role:void 0,[m,x]=Z.useState("landing"),[S,w]=Z.useState(void 0),[b,D]=Z.useState(void 0),P=Z.useRef(void 0),V=Z.useRef(null),[F,le]=Z.useState(!1);Z.useEffect(()=>{window.resetIntegrationNotification=()=>{localStorage.removeItem("gmailNotificationSeen"),console.log("Integration notification reset! Click the Integrations tab to see it again.")};let C=()=>{if(!localStorage.getItem("gmailNotificationSeen")){x("landing"),w(void 0);let H=Date.now(),E="I see you're exploring integrations. Let me know if there are any other connections we should add.",U={id:H,role:"assistant",kind:"text",content:"",isNotificationMessage:!0};s(oe=>[...oe,U]),wa(H,E),localStorage.setItem("gmailNotificationSeen","true")}};return window.addEventListener("integrationTabClicked",C),()=>{window.removeEventListener("integrationTabClicked",C)}},[]),Z.useEffect(()=>{b?(!P.current||P.current.id!==b.id||P.current.stepIndex!==b.stepIndex)&&(P.current=b):P.current=void 0},[b]);let[ee,Ia]=Z.useState(null),[me,zr]=Z.useState(null),[$,W]=Z.useState({}),Ye=Z.useRef(null),bt=Z.useRef(null),Kt=Z.useRef(null),{cursorState:mt,moveTo:Hr,hide:bo}=GC(),[Po,Xd]=Z.useState(null),[_m,Za]=Z.useState(null),[qr,zm]=Z.useState(!1),Qd=Z.useRef(null),To=Z.useRef(null);Z.useEffect(()=>{if(!b||b.id!=="add-api-key"||b.stepIndex!==2)return;let T=setInterval(()=>{let H=document.querySelector('[role="dialog"]'),E=P.current;if(H&&E&&E.id==="add-api-key"&&E.stepIndex===2){bo();let U=Date.now()+1;s(oe=>[...oe,{id:U,role:"assistant",kind:"guideComplete",content:"Perfect! The dialog is now open. You can enter a name and create your API key."}]),D(void 0),le(!0)}},300);return()=>clearInterval(T)},[b,bo]),Z.useEffect(()=>()=>{Object.values(d.current).forEach(C=>window.clearInterval(C)),d.current={},I.current.forEach(C=>window.clearTimeout(C)),I.current=[]},[]),Z.useEffect(()=>{if(b&&n.length>0){let C=n[n.length-1];if((C.kind==="guideStep"||C.kind==="guideComplete")&&Kt.current&&bt.current){let T=bt.current,H=Kt.current,E=T.getBoundingClientRect(),oe=H.getBoundingClientRect().top-E.top+T.scrollTop;T.scrollTop=oe}}else!b&&n.length>0&&Ye.current?.scrollIntoView({behavior:"smooth"})},[n,f,b]);let Hm=Z.useMemo(()=>{for(let C=n.length-1;C>=0;C--){let T=n[C];if(T.kind==="bulkSummary"&&T.bulkSummary?.navigationPage&&T.bulkSummary.successes>0)return T.bulkSummary.navigationPage}return null},[n]);Z.useEffect(()=>{V.current=Hm},[Hm]),Z.useEffect(()=>{Qd.current=_m},[_m]),Z.useEffect(()=>{let C=T=>{if((T.metaKey||T.ctrlKey)&&T.key==="Enter"){let H=Qd.current;if(H){T.preventDefault(),T.stopPropagation(),tc(H);return}if(me){T.preventDefault(),T.stopPropagation(),Jd();return}if(ee){T.preventDefault(),T.stopPropagation(),Zd(ee);return}let E=V.current;if(console.log("[DEBUG] Keyboard handler - latestBulkSummaryNavigation:",E,"onNavigate:",!!t),E&&t){console.log("[DEBUG] Navigating via keyboard to:",E.page),T.preventDefault(),T.stopPropagation(),t(E.page,E.subtab);return}if(F){T.preventDefault(),T.stopPropagation(),qm();return}if(P.current){T.preventDefault(),T.stopPropagation(),ac();return}}};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[me,ee,b,F,t]);function wa(C,T,H){let E=T.split(" "),U=0,oe=window.setInterval(()=>{U+=1,s(te=>te.map(A=>A.id===C?{...A,content:E.slice(0,U).join(" ")}:A)),U>=E.length&&(window.clearInterval(oe),delete d.current[C],H&&H.length>0&&s(te=>te.map(A=>A.id===C?{...A,followups:H}:A)),g("idle"))},25);d.current[C]=oe}function YC(C,T){s(H=>H.map(E=>E.id===C?{...E,followupSelected:!0}:E)),ec(T.label)}function qm(){Object.values(d.current).forEach(C=>window.clearInterval(C)),d.current={},I.current.forEach(C=>window.clearTimeout(C)),I.current=[],bo(),s([]),l(""),g("idle"),x("landing"),w(void 0),D(void 0),le(!1),Ia(null),zr(null),W({}),e&&e()}function Yd(C){x("folder"),w(C)}function ZC(){x("landing"),w(void 0)}function JC(C){C.preventDefault();let T=i.trim();if(Po){if(!T){let H={id:Date.now(),role:"assistant",kind:"text",content:"Please describe what you'd like to do with this CSV file. For example: 'Create customers from this file' or 'Add these subscriptions'."};s(E=>[...E,H]);return}tS(T,Po),l(""),Xd(null),To.current&&(To.current.value="");return}T&&(ec(T),l(""))}function eS(C){let T={dashboard:"dashboard",customers:"customers page",payments:"payments page",settings:"settings page",support:"support page",disputes:"disputes page",radar:"radar page"};if(C.page==="settings"&&C.subtab){let H={general:"General",billing:"Billing",security:"Security",api:"API Keys",notifications:"Notifications",integrations:"Integrations"};return`${T.settings} (${H[C.subtab]} tab)`}return T[C.page]}function Zd(C){t&&t(C.page,C.subtab),Ia(null),s(T=>T.map(H=>H.kind==="navigationAction"&&H.navigationTarget?.page===C.page&&H.navigationTarget?.subtab===C.subtab?{...H,navigationTarget:void 0}:H))}function Jd(){if(!me)return;let C=$;if(me.type!=="updateCompanyInfo"){if(me.type==="addApiKey"){let T=C;if(!T.name||!T.name.trim())return}else if(me.type==="addCustomer"){let T=C;if(!T.name||!T.name.trim()||!T.email||!T.email.trim())return}else if(me.type==="changePassword"){let T=C;if(!T.currentPassword||!T.newPassword||!T.confirmPassword||T.newPassword!==T.confirmPassword)return}else if(me.type==="addWebhook"){let T=C;if(!T.url||!T.url.trim())return}else if(me.type==="addPaymentMethod"){let T=C;if(!T.cardNumber||!T.expiryDate)return}else if(me.type==="deleteApiKey"){let T=C;if(!T.keyId&&!T.name)return}else if(me.type==="refundPayment"){let T=C;if(!T.transactionId&&!T.customer)return}else if(me.type==="createSubscription"){let T=C;if(!T.customerEmail&&!T.customerId)return}else if((me.type==="toggleBlockRule"||me.type==="enableBlockRule"||me.type==="disableBlockRule")&&!C.ruleId)return}a&&a(me.type,C),s(T=>T.map(H=>H.kind==="actionForm"&&H.actionType===me.type?{...H,isSubmitted:!0}:H)),zr(null),W({})}async function ec(C){I.current.forEach(te=>window.clearTimeout(te)),I.current=[];let H=[...n].reverse().find(te=>te.role==="assistant")?.isNotificationMessage===!0,E=Date.now(),U={id:E,role:"user",content:C};if(s(te=>[...te,U]),H){let te=Date.now()+1,A={id:te,role:"assistant",kind:"text",content:""};s(N=>[...N,A]),wa(te,"Thank you, your feedback is saved.");return}Ia(null),g("thinking"),v([]);let oe=!1;try{let te=new AbortController,A=setTimeout(()=>te.abort(),6e4),N=await fetch(`${o}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:u,message:C,current_page:r||"dashboard"}),signal:te.signal});if(clearTimeout(A),!N.ok)throw new Error(`Agent request failed: ${N.status}`);let k=N.body?.getReader();if(!k)throw new Error("No response body");let K=new TextDecoder,se="";for(;;){let{done:X,value:de}=await k.read();if(X)break;se+=K.decode(de,{stream:!0});let Ue=se.split(`
19
19
 
20
- `);ce=Ke.pop()||"";for(let Be of Ke){if(!Be.trim())continue;let Vr=Be.split(`
21
- `),St="",qt="";for(let Y of Vr)Y.startsWith("event: ")?St=Y.slice(7):Y.startsWith("data: ")&&(qt=Y.slice(6));if(!(!St||!qt))try{let Y=JSON.parse(qt);if(St==="progress")Y.status==="thinking"?(C("thinking"),P([{message:Y.message,completed:!1}])):Y.status==="executing"?(C("executing"),P(U=>{let ee=U.map(Et=>({...Et,completed:!0})),ye=ee[ee.length-1];return(!ye||ye.message!==Y.message)&&ee.push({message:Y.message,completed:!1}),ee})):Y.status==="responding"&&(C("responding"),P(U=>U.map(ee=>({...ee,completed:!0}))));else if(St==="response"){P([]),q=!0;let U=Y;if(U.action==="navigate"&&U.navigation){let ee={page:U.navigation.page,subtab:U.navigation.subtab};dt(ee);let ye={id:A+1,role:"assistant",kind:"navigationAction",content:U.response||`I can take you to the ${Bm(ee)}.`,navigationTarget:ee};y(Et=>[...Et,ye]),C("idle")}else if(U.action==="show_form"&&U.actionType){jd({type:U.actionType,data:U.actionData||{}}),Kd(U.actionData||{});let ee={id:A+1,role:"assistant",kind:"actionForm",content:U.response||U.message||"Please fill in the details below:",actionType:U.actionType,actionData:U.actionData||{}};y(ye=>[...ye,ee]),C("idle")}else if(U.action==="suggest_bulk"){let ee=A+1,ye={id:ee,role:"assistant",kind:"text",content:""};y(Et=>[...Et,ye]),ya(ee,U.response||U.message||"For bulk operations, you can upload a CSV file - just click the \u{1F4CE} button!",U.followups),q=!0}else if(U.action==="bulk_preview"){Or(U.bulk_session_id);let ee={id:A+1,role:"assistant",kind:"bulkPreview",content:U.message||`I found ${U.csv_data?.rowCount||0} items. Here's a preview:`,csvData:U.csv_data?{rowCount:U.csv_data.rowCount,columns:U.csv_data.columns,sampleRows:U.csv_data.sampleRows,fileName:"From context"}:void 0,suggestedAction:U.suggested_action,bulkSessionId:U.bulk_session_id};y(ye=>[...ye,ee]),C("idle"),q=!0}else if(U.action==="execute"&&U.executionResult){let ee=A+1,ye={id:ee,role:"assistant",kind:"text",content:"",structuredData:U.structuredData||void 0};y(Et=>[...Et,ye]),ya(ee,U.response,U.followups),q=!0,setTimeout(()=>{Um(U.executionResult)},100)}else{let ee=A+1,ye={id:ee,role:"assistant",kind:"text",content:""};y(Et=>[...Et,ye]),ya(ee,U.response,U.followups),q=!0}}else if(St==="error"){C("idle"),P([]),q=!0;let U=A+1,ee={id:U,role:"assistant",kind:"text",content:""};y(ye=>[...ye,ee]),ya(U,Y.message||"An error occurred processing your request.")}else St==="done"&&(P([]),C("idle"),q=!0)}catch(Y){console.error("Failed to parse SSE event:",Y)}}}P([]),q||C("idle")}catch(G){console.error("Agent request failed:",G),P([]);let V=A+1,J={id:V,role:"assistant",kind:"text",content:""};y(W=>[...W,J]),ya(V,"I'm having trouble connecting to my backend. Please make sure the agent server is running.")}finally{P([])}}async function YC(L,w){k.current.forEach(z=>window.clearTimeout(z)),k.current=[];let O=Date.now(),A={id:O,role:"user",content:`\u{1F4CE} ${w.name}
20
+ `);se=Ue.pop()||"";for(let Ze of Ue){if(!Ze.trim())continue;let ka=Ze.split(`
21
+ `),Je="",$t="";for(let G of ka)G.startsWith("event: ")?Je=G.slice(7):G.startsWith("data: ")&&($t=G.slice(6));if(!(!Je||!$t))try{let G=JSON.parse($t);if(Je==="progress")G.status==="thinking"?(g("thinking"),v([{message:G.message,completed:!1}])):G.status==="executing"?(g("executing"),v(_=>{let ae=_.map(ht=>({...ht,completed:!0})),ce=ae[ae.length-1];return(!ce||ce.message!==G.message)&&ae.push({message:G.message,completed:!1}),ae})):G.status==="responding"&&(g("responding"),v(_=>_.map(ae=>({...ae,completed:!0}))));else if(Je==="response"){v([]),oe=!0;let _=G;if(_.action==="navigate"&&_.navigation){let ae={page:_.navigation.page,subtab:_.navigation.subtab};Ia(ae);let ce={id:E+1,role:"assistant",kind:"navigationAction",content:_.response||`I can take you to the ${eS(ae)}.`,navigationTarget:ae};s(ht=>[...ht,ce]),g("idle")}else if(_.action==="show_form"&&_.actionType){zr({type:_.actionType,data:_.actionData||{}}),W(_.actionData||{});let ae={id:E+1,role:"assistant",kind:"actionForm",content:_.response||_.message||"Please fill in the details below:",actionType:_.actionType,actionData:_.actionData||{}};s(ce=>[...ce,ae]),g("idle")}else if(_.action==="suggest_bulk"){let ae=E+1,ce={id:ae,role:"assistant",kind:"text",content:""};s(ht=>[...ht,ce]),wa(ae,_.response||_.message||"For bulk operations, you can upload a CSV file - just click the \u{1F4CE} button!",_.followups),oe=!0}else if(_.action==="bulk_preview"){Za(_.bulk_session_id);let ae={id:E+1,role:"assistant",kind:"bulkPreview",content:_.message||`I found ${_.csv_data?.rowCount||0} items. Here's a preview:`,csvData:_.csv_data?{rowCount:_.csv_data.rowCount,columns:_.csv_data.columns,sampleRows:_.csv_data.sampleRows,fileName:"From context"}:void 0,suggestedAction:_.suggested_action,bulkSessionId:_.bulk_session_id};s(ce=>[...ce,ae]),g("idle"),oe=!0}else if(_.action==="execute"&&_.executionResult){let ae=E+1,ce={id:ae,role:"assistant",kind:"text",content:"",structuredData:_.structuredData||void 0};s(ht=>[...ht,ce]),wa(ae,_.response,_.followups),oe=!0,setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:_.executionResult}}))},100)}else{let ae=E+1,ce={id:ae,role:"assistant",kind:"text",content:""};s(ht=>[...ht,ce]),wa(ae,_.response,_.followups),oe=!0}}else if(Je==="error"){g("idle"),v([]),oe=!0;let _=E+1,ae={id:_,role:"assistant",kind:"text",content:""};s(ce=>[...ce,ae]),wa(_,G.message||"An error occurred processing your request.")}else Je==="done"&&(v([]),g("idle"),oe=!0)}catch(G){console.error("Failed to parse SSE event:",G)}}}v([]),oe||g("idle")}catch(te){console.error("Agent request failed:",te),v([]);let A=E+1,N={id:A,role:"assistant",kind:"text",content:""};s(k=>[...k,N]),wa(A,"I'm having trouble connecting to my backend. Please make sure the agent server is running on port 5002. For simple navigation requests, I can still help you locally.")}finally{v([])}}async function tS(C,T){I.current.forEach(U=>window.clearTimeout(U)),I.current=[];let H=Date.now(),E={id:H,role:"user",content:`\u{1F4CE} ${T.name}
22
22
 
23
- ${L}`};y(z=>[...z,A]),C("thinking"),P([{message:"Analyzing CSV file...",completed:!1}]);try{let z=new FormData;z.append("file",w),z.append("message",L),z.append("session_id",h),z.append("user_id",i),z.append("org_id",l),z.append("current_page",o||"dashboard");let q=new AbortController,G=setTimeout(()=>q.abort(),12e4),V=await fetch(`${u}/chat/bulk/stream`,{method:"POST",body:z,signal:q.signal});if(clearTimeout(G),!V.ok)throw new Error(`Bulk upload failed: ${V.status}`);let J=V.body?.getReader();if(!J)throw new Error("No response body");let W=new TextDecoder,xe="",ce=null;for(;;){let{done:X,value:ke}=await J.read();if(X)break;xe+=W.decode(ke,{stream:!0});let Ke=xe.split(`
23
+ ${C}`};s(U=>[...U,E]),g("thinking"),v([{message:"Analyzing CSV file...",completed:!1}]);try{let U=new FormData;U.append("file",T),U.append("message",C),U.append("session_id",u),U.append("current_page",r||"dashboard");let oe=new AbortController,te=setTimeout(()=>oe.abort(),12e4),A=await fetch(`${o}/chat/bulk/stream`,{method:"POST",body:U,signal:oe.signal});if(clearTimeout(te),!A.ok)throw new Error(`Bulk upload failed: ${A.status}`);let N=A.body?.getReader();if(!N)throw new Error("No response body");let k=new TextDecoder,K="",se=null;for(;;){let{done:X,value:de}=await N.read();if(X)break;K+=k.decode(de,{stream:!0});let Ue=K.split(`
24
24
 
25
- `);xe=Ke.pop()||"";for(let Be of Ke){if(!Be.trim())continue;let Vr=Be.split(`
26
- `),St="",qt="";for(let Y of Vr)Y.startsWith("event: ")?St=Y.slice(7):Y.startsWith("data: ")&&(qt=Y.slice(6));if(!(!St||!qt))try{let Y=JSON.parse(qt);if(St==="preview"){C("idle"),P([]),ce=Y.bulk_session_id,Or(ce);let U={id:O+1,role:"assistant",kind:"bulkPreview",content:Y.message||`I found ${Y.csv_data?.rowCount||0} items. Here's a preview:`,csvData:Y.csv_data?{rowCount:Y.csv_data.rowCount,columns:Y.csv_data.columns,sampleRows:Y.csv_data.sampleRows,fileName:w.name}:void 0,suggestedAction:Y.suggested_action,bulkSessionId:ce||void 0};y(ee=>[...ee,U])}else if(St==="error"){C("idle"),P([]);let U={id:Date.now(),role:"assistant",kind:"text",content:Y.message||"An error occurred processing the CSV file."};y(ee=>[...ee,U])}}catch(Y){console.error("Failed to parse SSE event:",Y)}}}}catch(z){console.error("Bulk upload failed:",z),C("idle"),P([]);let q={id:Date.now(),role:"assistant",kind:"text",content:"Failed to process CSV file. Please try again."};y(G=>[...G,q])}}async function _m(L){C("executing"),P([{message:"Starting bulk operation...",completed:!1}]),Or(null);try{let w=await fetch(`${u}/chat/bulk/confirm`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:h,user_id:i,org_id:l,bulk_session_id:L})});if(!w.ok)throw new Error(`Bulk confirm failed: ${w.status}`);let O=w.body?.getReader();if(!O)throw new Error("No response body");let A=new TextDecoder,z="";for(;;){let{done:q,value:G}=await O.read();if(q)break;z+=A.decode(G,{stream:!0});let V=z.split(`
25
+ `);K=Ue.pop()||"";for(let Ze of Ue){if(!Ze.trim())continue;let ka=Ze.split(`
26
+ `),Je="",$t="";for(let G of ka)G.startsWith("event: ")?Je=G.slice(7):G.startsWith("data: ")&&($t=G.slice(6));if(!(!Je||!$t))try{let G=JSON.parse($t);if(Je==="preview"){g("idle"),v([]),se=G.bulk_session_id,Za(se);let _={id:H+1,role:"assistant",kind:"bulkPreview",content:G.message||`I found ${G.csv_data.rowCount} rows in your CSV. Here's a preview:`,csvData:{rowCount:G.csv_data.rowCount,columns:G.csv_data.columns,sampleRows:G.csv_data.sampleRows,fileName:T.name},suggestedAction:G.suggested_action,bulkSessionId:se||void 0};s(ae=>[...ae,_])}else if(Je==="progress")g("executing"),v([{message:`Processing row ${G.row} of ${G.total}...`,completed:!1}]),s(_=>_[_.length-1]?.kind==="bulkProgress"?_.map((ce,ht)=>ht===_.length-1?{...ce,bulkProgress:{processed:G.row,total:G.total,successes:G.successes||0,failures:G.failures||0}}:ce):[..._,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:G.row,total:G.total,successes:G.successes||0,failures:G.failures||0}}]);else if(Je==="summary")g("idle"),v([]),Za(null),s(_=>[..._.filter(ce=>ce.kind!=="bulkProgress"),{id:Date.now(),role:"assistant",kind:"bulkSummary",content:G.message,bulkSummary:{total:G.total,successes:G.successes,failures:G.failures||[],navigationPage:G.navigationPage}}]),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:G.total,successes:G.successes}}}))},100);else if(Je==="error"){g("idle"),v([]),Za(null);let _={id:H+1,role:"assistant",kind:"text",content:G.message||"An error occurred processing your CSV file."};s(ae=>[...ae,_])}else Je==="done"&&(g("idle"),v([]))}catch(G){console.error("Failed to parse bulk SSE event:",G)}}}v([]),g("idle")}catch(U){console.error("Bulk upload failed:",U),v([]),g("idle");let oe={id:H+1,role:"assistant",kind:"text",content:"I'm having trouble processing your CSV file. Please make sure the agent server is running on port 5002 and try again."};s(te=>[...te,oe])}}async function tc(C){g("executing"),v([{message:"Starting bulk operation...",completed:!1}]);try{let T=await fetch(`${o}/chat/bulk/confirm`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bulk_session_id:C})});if(!T.ok)throw new Error(`Confirm failed: ${T.status}`);let H=T.body?.getReader();if(!H)throw new Error("No response body");let E=new TextDecoder,U="";for(;;){let{done:oe,value:te}=await H.read();if(oe)break;U+=E.decode(te,{stream:!0});let A=U.split(`
27
27
 
28
- `);z=V.pop()||"";for(let J of V){if(!J.trim())continue;let W=J.split(`
29
- `),xe="",ce="";for(let X of W)X.startsWith("event: ")?xe=X.slice(7):X.startsWith("data: ")&&(ce=X.slice(6));if(!(!xe||!ce))try{let X=JSON.parse(ce);if(xe==="progress")y(ke=>ke.find(Be=>Be.kind==="bulkProgress")?ke.map(Be=>Be.kind==="bulkProgress"?{...Be,bulkProgress:{processed:X.row,total:X.total,successes:X.successes||0,failures:X.failures||0}}:Be):[...ke,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:X.row,total:X.total,successes:X.successes||0,failures:X.failures||0}}]);else if(xe==="summary")C("idle"),P([]),Or(null),y(ke=>{let Ke=ke.filter(Vr=>Vr.kind!=="bulkProgress"&&Vr.kind!=="bulkPreview"),Be={id:Date.now(),role:"assistant",kind:"bulkSummary",content:X.message,bulkSummary:{total:X.total,successes:X.successes,failures:X.failures||[],navigationPage:X.navigationPage}};return[...Ke,Be]}),setTimeout(()=>{Um({bulk:!0,total:X.total,successes:X.successes})},100);else if(xe==="error"){C("idle"),P([]),Or(null);let ke={id:Date.now(),role:"assistant",kind:"text",content:X.message||"An error occurred during bulk processing."};y(Ke=>[...Ke,ke])}}catch(X){console.error("Failed to parse confirm SSE event:",X)}}}}catch(w){console.error("Bulk confirm failed:",w),C("idle"),P([]),Or(null);let O={id:Date.now(),role:"assistant",kind:"text",content:"Failed to start bulk operation. Please try again."};y(A=>[...A,O])}}function ZC(){Or(null),y(L=>L.filter(w=>w.kind!=="bulkPreview"))}function JC(L){Yd(L)}function eS(L){let w=Date.now()+Math.floor(Math.random()*1e3);y(O=>[...O,{id:w,role:"assistant",kind:"text",content:L}])}function tS(L){let w=f[L];if(!w)return;ae("landing"),aa(void 0);let O={id:L,stepIndex:0};ra(O),de.current=O,eS(`I'll help you with ${w.title}.`);let A=w.steps[0],z=A.cursorTarget?.selector.includes("[data-page="),q=A.cursorTarget?.selector.includes("[data-settings-tab=");if(A.cursorTarget&&(z||q)){let V=A.cursorTarget;q&&A.navigation&&t&&t(A.navigation.page,void 0),setTimeout(()=>{let W=()=>{let xe=document.querySelector(V.selector);xe&&xe.offsetParent!==null?(Br(V),V.onClick&&setTimeout(()=>{xe.click()},1200)):setTimeout(W,200)};W()},q?800:400)}else if(A.navigation&&t&&t(A.navigation.page,A.navigation.subtab),A.cursorTarget){let V=A.cursorTarget,J=V.selector.includes("data-settings-tab"),W=V.selector.includes("dialog")||V.selector.includes("api-key-name-input");setTimeout(()=>{let ce=()=>{let X=document.querySelector(V.selector);X&&X.offsetParent!==null?(Br(V),V.onClick&&setTimeout(()=>{X.click()},1e3)):J||W?setTimeout(ce,200):(Br(V),V.onClick&&setTimeout(()=>{let ke=document.querySelector(V.selector);ke&&ke.click()},1e3))};ce()},W?700:J?600:400)}let G={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:0};y(V=>[...V,G]),ya(G.id,A.text)}function zm(){if(!$)return;let L=f[$.id];if(!L)return;let w=de.current;(!w||w.id!==$.id)&&(w=$,de.current=$);let A=w.stepIndex+1;if(A>=L.steps.length){vo();let W=Date.now()+1;y(xe=>[...xe,{id:W,role:"assistant",kind:"guideComplete",content:"Guide Complete"}]),ra(void 0),Ct(!0);return}let z=L.steps[A],q={id:$.id,stepIndex:A};ra(q),de.current=q;let G={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:A};y(W=>[...W,G]);let V=z.cursorTarget?.selector.includes("[data-page="),J=z.cursorTarget?.selector.includes("[data-settings-tab=");if(z.cursorTarget&&(V||J)){let W=z.cursorTarget;J&&z.navigation&&t&&t(z.navigation.page,void 0),setTimeout(()=>{let ce=de.current;if(!ce||ce.id!==L.id||ce.stepIndex!==A)return;let X=()=>{let ke=de.current;if(!ke||ke.id!==L.id||ke.stepIndex!==A)return;let Ke=document.querySelector(W.selector);Ke&&Ke.offsetParent!==null?(Br(W),W.onClick&&setTimeout(()=>{let Be=de.current;!Be||Be.id!==L.id||Be.stepIndex!==A||Ke.click()},1200)):setTimeout(X,200)};X()},J?800:400)}else if(z.navigation&&t&&t(z.navigation.page,z.navigation.subtab),z.cursorTarget){let W=z.cursorTarget,xe=W.selector.includes("dialog")||W.selector.includes("api-key-name-input"),ce=W.selector.includes("data-settings-tab"),X=z.navigation?.subtab&&ce&&W.selector.includes(`data-settings-tab="${z.navigation.subtab}"`),ke=W.onClick&&!X,Ke=!!z.navigation,St=(!!z.navigation?.subtab?700:Ke?400:0)+(xe?700:ce?600:400);setTimeout(()=>{let qt=de.current;if(!qt||qt.id!==L.id||qt.stepIndex!==A)return;let Y=()=>{let U=de.current;if(!U||U.id!==L.id||U.stepIndex!==A)return;let ee=document.querySelector(W.selector);ee&&ee.offsetParent!==null?(Br(W),ke&&setTimeout(()=>{let ye=de.current;!ye||ye.id!==L.id||ye.stepIndex!==A||ee.click()},1e3)):xe||ce||W.selector.includes("data-testid")?setTimeout(Y,200):(Br(W),ke&&setTimeout(()=>{let ye=de.current;if(!ye||ye.id!==L.id||ye.stepIndex!==A)return;let Et=document.querySelector(W.selector);Et&&Et.click()},1e3))};Y()},St)}else vo();ya(G.id,z.text)}function aS(){if(!$)return;let L=f[$.id];if(!L)return;let w=$.stepIndex-1;if(w>=0){ra({id:$.id,stepIndex:w}),de.current={id:$.id,stepIndex:w};let O=L.steps[w];O.navigation&&t&&t(O.navigation.page,O.navigation.subtab),O.cursorTarget?Br(O.cursorTarget):vo()}}let Bi=d.find(L=>L.id===re);return(0,c.jsxs)("section",{className:"fixed bottom-6 right-6 z-50 flex flex-col w-[380px] max-h-[600px] rounded-2xl border border-gray-200 bg-white shadow-2xl overflow-hidden",children:[(0,c.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-white",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(!x||R==="folder")&&(0,c.jsx)(ta,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full",onClick:R==="folder"?XC:Ni,children:(0,c.jsx)(on,{className:"h-4 w-4"})}),(0,c.jsx)("span",{className:"text-sm font-medium text-gray-700",children:R==="folder"&&Bi?Bi.title:"AI Assistant"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)(ta,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full",onClick:()=>jC(!Fi),children:Fi?(0,c.jsx)(ai,{className:"h-4 w-4"}):(0,c.jsx)(ti,{className:"h-4 w-4"})}),!x&&(0,c.jsx)(ta,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full",onClick:Ni,children:(0,c.jsx)(xt,{className:"h-4 w-4"})})]})]}),!Fi&&(0,c.jsx)("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:x&&R==="landing"?(0,c.jsxs)("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:[(0,c.jsx)("div",{className:"space-y-2",children:d.map(L=>(0,c.jsxs)("button",{type:"button",onClick:()=>$C(L.id),className:"w-full text-left px-3 py-2.5 rounded-lg hover:bg-gray-50 transition-colors border border-gray-100",children:[(0,c.jsx)("div",{className:"text-sm font-medium text-gray-800",children:L.title}),(0,c.jsxs)("div",{className:"text-xs text-gray-500 mt-0.5",children:[L.topics.length," topics"]})]},L.id))}),(0,c.jsxs)("div",{className:"mt-6 pt-4 border-t border-gray-100",children:[(0,c.jsx)("div",{className:"text-xs uppercase tracking-wider text-gray-400 mb-2",children:"Interactive Guides"}),Object.values(f).map(L=>(0,c.jsx)("button",{type:"button",onClick:()=>tS(L.id),className:"w-full text-left px-3 py-2 rounded-lg hover:bg-gray-50 transition-colors text-sm text-gray-700",children:L.title},L.id))]})]}):x&&R==="folder"&&Bi?(0,c.jsx)("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:(0,c.jsx)("div",{className:"space-y-1",children:Bi.topics.map(L=>(0,c.jsx)("button",{type:"button",onClick:()=>JC(L.prompt),className:"w-full text-left px-3 py-2 rounded-lg hover:bg-gray-50 transition-colors text-sm text-gray-700",children:L.label},L.id))})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,c.jsx)(OC,{ref:$d,className:"h-full px-4 py-3",children:(0,c.jsxs)("div",{className:"space-y-1",children:[g.map((L,w)=>{let O=w>0?g[w-1]:null,A=!O||O.role!==L.role,z=L.kind==="guideStep"&&$&&L.guideStepIndex===$.stepIndex;if(L.role==="user")return(0,c.jsx)("div",{className:`${A?"mt-3":""}`,children:(0,c.jsx)("div",{className:"text-sm leading-6 text-gray-900 whitespace-pre-wrap",children:L.content})},L.id);if(L.kind==="navigationAction"&&L.navigationTarget)return(0,c.jsxs)("div",{className:`${A?"mt-3":""}`,children:[(0,c.jsx)("div",{className:"text-sm leading-6 text-gray-700 mb-2",children:L.content}),(0,c.jsxs)(ta,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>L.navigationTarget&&Om(L.navigationTarget),children:[(0,c.jsxs)("span",{children:["Go to ",Bm(L.navigationTarget)]}),(0,c.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,c.jsx)(Ea,{className:"h-3 w-3"}),(0,c.jsx)(Fa,{className:"h-3 w-3"})]})]})]},L.id);if(L.kind==="actionForm"&&L.actionType&&!L.isSubmitted)return(0,c.jsxs)("div",{className:`${A?"mt-3":""}`,children:[(0,c.jsx)("div",{className:"text-sm leading-6 text-gray-700 mb-3",children:L.content}),(0,c.jsx)("div",{className:"space-y-2 mb-3",children:(0,c.jsxs)("div",{className:"text-xs text-gray-500",children:["Form for: ",L.actionType]})}),(0,c.jsxs)(ta,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:Vm,children:[(0,c.jsx)("span",{children:"Submit"}),(0,c.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,c.jsx)(Ea,{className:"h-3 w-3"}),(0,c.jsx)(Fa,{className:"h-3 w-3"})]})]})]},L.id);if(L.kind==="bulkPreview"&&L.csvData)return(0,c.jsxs)("div",{className:`${A?"mt-3":""}`,children:[(0,c.jsx)("div",{className:"text-sm leading-6 text-gray-700 mb-2",children:L.content}),(0,c.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 overflow-hidden",children:[(0,c.jsxs)("div",{className:"px-3 py-2 border-b border-gray-200 flex items-center gap-2",children:[(0,c.jsx)(nn,{className:"h-4 w-4 text-gray-500"}),(0,c.jsx)("span",{className:"text-xs font-medium text-gray-700",children:L.csvData.fileName}),(0,c.jsxs)("span",{className:"text-xs text-gray-400 ml-auto",children:[L.csvData.rowCount," rows"]})]}),L.csvData.sampleRows&&L.csvData.sampleRows.length>0&&(0,c.jsx)("div",{className:"p-2",children:(0,c.jsx)("div",{className:"space-y-1",children:L.csvData.sampleRows.slice(0,3).map((q,G)=>(0,c.jsxs)("div",{className:"text-xs text-gray-600 bg-white rounded px-2 py-1 border border-gray-100",children:[Object.entries(q).slice(0,3).map(([V,J],W)=>(0,c.jsxs)("span",{children:[W>0&&" \u2022 ",(0,c.jsxs)("span",{className:"text-gray-400",children:[V,":"]})," ",J]},V)),Object.keys(q).length>3&&(0,c.jsx)("span",{className:"text-gray-400",children:" ..."})]},G))})}),L.suggestedAction&&(0,c.jsx)("div",{className:"px-3 py-2 bg-blue-50 border-t border-blue-100",children:(0,c.jsxs)("span",{className:"text-xs text-blue-700",children:["Suggested action: ",(0,c.jsx)("strong",{children:L.suggestedAction.replace(/_/g," ")})]})})]}),L.bulkSessionId&&(0,c.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,c.jsxs)(ta,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>L.bulkSessionId&&_m(L.bulkSessionId),children:[(0,c.jsxs)("span",{children:["Process ",L.csvData.rowCount," rows"]}),(0,c.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,c.jsx)(Ea,{className:"h-3 w-3"}),(0,c.jsx)(Fa,{className:"h-3 w-3"})]})]}),(0,c.jsx)(ta,{type:"button",size:"sm",variant:"ghost",className:"h-8 rounded-xl px-3 text-xs text-gray-500 hover:text-gray-700 hover:bg-gray-100",onClick:ZC,children:"Cancel"})]})]},L.id);if(L.kind==="bulkProgress"&&L.bulkProgress){let{processed:q,total:G,successes:V,failures:J}=L.bulkProgress,W=Math.round(q/G*100);return(0,c.jsx)("div",{className:`${A?"mt-3":""}`,children:(0,c.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-3",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,c.jsx)(Jt,{className:"h-4 w-4 animate-spin text-blue-600"}),(0,c.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:["Processing... ",q," of ",G]})]}),(0,c.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden mb-2",children:(0,c.jsx)("div",{className:"h-full bg-blue-600 transition-all duration-300",style:{width:`${W}%`}})}),(0,c.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-600",children:[(0,c.jsxs)("span",{className:"flex items-center gap-1",children:[(0,c.jsx)(nt,{className:"h-3 w-3 text-green-600"}),V," successful"]}),J>0&&(0,c.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,c.jsx)(oo,{className:"h-3 w-3"}),J," failed"]})]})]})},L.id)}if(L.kind==="bulkSummary"&&L.bulkSummary){let{total:q,successes:G,failures:V,navigationPage:J}=L.bulkSummary,W=V.length>0,xe=J?.page==="customers"?"Customers":J?.page==="dashboard"?"Dashboard":J?.page==="settings"?"Settings":"Results";return(0,c.jsx)("div",{className:`${A?"mt-3":""}`,children:(0,c.jsxs)("div",{className:`rounded-lg border p-3 ${W?"bg-amber-50 border-amber-200":"bg-green-50 border-green-200"}`,children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,c.jsx)(nt,{className:`h-5 w-5 ${W?"text-amber-600":"text-green-600"}`}),(0,c.jsx)("span",{className:"text-sm font-medium text-gray-800",children:"Bulk operation complete"})]}),(0,c.jsx)("div",{className:"text-sm text-gray-600 mb-2",children:L.content||`Processed ${q} rows: ${G} successful${W?`, ${V.length} failed`:""}.`}),(0,c.jsxs)("div",{className:"flex items-center gap-4 text-xs",children:[(0,c.jsxs)("span",{className:"flex items-center gap-1 text-green-700",children:[(0,c.jsx)(nt,{className:"h-3 w-3"}),G," successful"]}),W&&(0,c.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,c.jsx)(oo,{className:"h-3 w-3"}),V.length," failed"]})]}),W&&(0,c.jsxs)("div",{className:"mt-3 pt-2 border-t border-amber-200",children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-amber-700 mb-1",children:"Failed Rows"}),(0,c.jsxs)("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:[V.slice(0,5).map((ce,X)=>(0,c.jsxs)("div",{className:"text-xs text-red-700 bg-red-50 rounded px-2 py-1",children:["Row ",ce.row,": ",ce.error||"Unknown error"]},X)),V.length>5&&(0,c.jsxs)("div",{className:"text-xs text-amber-600",children:["...and ",V.length-5," more"]})]})]}),J&&G>0&&(0,c.jsx)("div",{className:"mt-3 pt-2 border-t border-gray-200",children:(0,c.jsxs)("button",{type:"button",onClick:()=>{t&&J.page&&t(J.page,J.subtab)},className:"flex items-center gap-2 text-xs text-gray-500 hover:text-gray-700 transition-colors group cursor-pointer",children:[(0,c.jsxs)("span",{className:"flex items-center gap-1 px-1.5 py-0.5 bg-gray-100 rounded text-[10px] font-medium text-gray-600 group-hover:bg-gray-200",children:[(0,c.jsx)(Ea,{className:"h-2.5 w-2.5"}),(0,c.jsx)("span",{children:"+"}),(0,c.jsx)(Fa,{className:"h-2.5 w-2.5"})]}),(0,c.jsxs)("span",{children:["View ",xe]})]})})]})},L.id)}return(0,c.jsx)(_.Fragment,{children:(0,c.jsxs)("div",{ref:z?Xd:null,className:`${A?"mt-3":""}`,children:[(0,c.jsx)("div",{className:"text-sm leading-6 text-gray-700",children:(()=>{let q=L.content||"";if(L.kind==="guideStep"){let G=q.match(/^(Step\s+\d+:)([\s\S]*)/);if(G)return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("strong",{children:G[1]}),G[2]]})}return L.role==="assistant"&&q?JT(q):q||(0,c.jsx)("span",{className:"opacity-70",children:"Thinking\u2026"})})()}),L.role==="assistant"&&L.structuredData&&(0,c.jsx)("div",{className:"mt-3",children:(0,c.jsx)(YT,{type:L.structuredData.type,data:L.structuredData.data})}),L.role==="assistant"&&L.followups&&L.followups.length>0&&!L.followupSelected&&(0,c.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:L.followups.map(q=>(0,c.jsx)("button",{type:"button",onClick:()=>KC(L.id,q),className:`inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-xl
28
+ `);U=A.pop()||"";for(let N of A){if(!N.trim())continue;let k=N.split(`
29
+ `),K="",se="";for(let X of k)X.startsWith("event: ")?K=X.slice(7):X.startsWith("data: ")&&(se=X.slice(6));if(!(!K||!se))try{let X=JSON.parse(se);if(K==="progress")v([{message:`Processing row ${X.row} of ${X.total}...`,completed:!1}]),s(de=>de[de.length-1]?.kind==="bulkProgress"?de.map((Ze,ka)=>ka===de.length-1?{...Ze,bulkProgress:{processed:X.row,total:X.total,successes:X.successes||0,failures:X.failures||0}}:Ze):[...de,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:X.row,total:X.total,successes:X.successes||0,failures:X.failures||0}}]);else if(K==="summary")console.log("[DEBUG] Received summary event - data:",X),console.log("[DEBUG] navigationPage from backend:",X.navigationPage),g("idle"),v([]),Za(null),s(de=>{let Ue=de.filter(ka=>ka.kind!=="bulkProgress"&&ka.kind!=="bulkPreview"),Ze={id:Date.now(),role:"assistant",kind:"bulkSummary",content:X.message,bulkSummary:{total:X.total,successes:X.successes,failures:X.failures||[],navigationPage:X.navigationPage}};return console.log("[DEBUG] Creating bulkSummary message:",Ze),[...Ue,Ze]}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:X.total,successes:X.successes}}}))},100);else if(K==="error"){g("idle"),v([]),Za(null);let de={id:Date.now(),role:"assistant",kind:"text",content:X.message||"An error occurred during bulk processing."};s(Ue=>[...Ue,de])}}catch(X){console.error("Failed to parse confirm SSE event:",X)}}}}catch(T){console.error("Bulk confirm failed:",T),g("idle"),v([]),Za(null);let H={id:Date.now(),role:"assistant",kind:"text",content:"Failed to start bulk operation. Please try again."};s(E=>[...E,H])}}function aS(){Za(null),s(C=>C.filter(T=>T.kind!=="bulkPreview"))}function rS(C){ec(C)}function oS(C){let T=Date.now()+Math.floor(Math.random()*1e3);s(H=>[...H,{id:T,role:"assistant",kind:"text",content:C}])}function nS(C){let T=Om[C];if(!T)return;x("landing"),w(void 0);let H={id:C,stepIndex:0};D(H),P.current=H,oS(`I'll help you with ${T.title}.`);let E=T.steps[0],U=E.cursorTarget?.selector.includes("[data-page="),oe=E.cursorTarget?.selector.includes("[data-settings-tab=");if(E.cursorTarget&&(U||oe)){let A=E.cursorTarget;oe&&E.navigation&&t&&t(E.navigation.page,void 0),setTimeout(()=>{let k=()=>{let K=document.querySelector(A.selector);K&&K.offsetParent!==null?(Hr(A),A.onClick&&setTimeout(()=>{K.click()},1200)):setTimeout(k,200)};k()},oe?800:400)}else if(E.navigation&&t&&t(E.navigation.page,E.navigation.subtab),E.cursorTarget){let A=E.cursorTarget,N=A.selector.includes("data-settings-tab"),k=A.selector.includes("dialog")||A.selector.includes("api-key-name-input");setTimeout(()=>{let se=()=>{let X=document.querySelector(A.selector);X&&X.offsetParent!==null?(Hr(A),A.onClick&&setTimeout(()=>{X.click()},1e3)):N||k?setTimeout(se,200):(Hr(A),A.onClick&&setTimeout(()=>{let de=document.querySelector(A.selector);de&&de.click()},1e3))};se()},k?700:N?600:400)}let te={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:0};s(A=>[...A,te]),wa(te.id,E.text)}function ac(){if(!b)return;let C=Om[b.id];if(!C)return;let T=P.current;(!T||T.id!==b.id)&&(T=b,P.current=b);let E=T.stepIndex+1;if(E>=C.steps.length){bo();let k=Date.now()+1;s(K=>[...K,{id:k,role:"assistant",kind:"guideComplete",content:"Guide Complete"}]),D(void 0),le(!0);return}let U=C.steps[E],oe={id:b.id,stepIndex:E};D(oe),P.current=oe;let te={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:E};s(k=>[...k,te]);let A=U.cursorTarget?.selector.includes("[data-page="),N=U.cursorTarget?.selector.includes("[data-settings-tab=");if(U.cursorTarget&&(A||N)){let k=U.cursorTarget;N&&U.navigation&&t&&t(U.navigation.page,void 0),setTimeout(()=>{let se=P.current;if(!se||se.id!==C.id||se.stepIndex!==E)return;let X=()=>{let de=P.current;if(!de||de.id!==C.id||de.stepIndex!==E)return;let Ue=document.querySelector(k.selector);Ue&&Ue.offsetParent!==null?(Hr(k),k.onClick&&setTimeout(()=>{let Ze=P.current;!Ze||Ze.id!==C.id||Ze.stepIndex!==E||Ue.click()},1200)):setTimeout(X,200)};X()},N?800:400)}else if(U.navigation&&t&&t(U.navigation.page,U.navigation.subtab),U.cursorTarget){let k=U.cursorTarget,K=k.selector.includes("dialog")||k.selector.includes("api-key-name-input"),se=k.selector.includes("data-settings-tab"),X=U.navigation?.subtab&&se&&k.selector.includes(`data-settings-tab="${U.navigation.subtab}"`),de=k.onClick&&!X,Ue=!!U.navigation,Je=(!!U.navigation?.subtab?700:Ue?400:0)+(K?700:se?600:400);setTimeout(()=>{let $t=P.current;if(!$t||$t.id!==C.id||$t.stepIndex!==E)return;let G=()=>{let _=P.current;if(!_||_.id!==C.id||_.stepIndex!==E)return;let ae=document.querySelector(k.selector);ae&&ae.offsetParent!==null?(Hr(k),de&&setTimeout(()=>{let ce=P.current;!ce||ce.id!==C.id||ce.stepIndex!==E||ae.click()},1e3)):K||se||k.selector.includes("data-testid")?setTimeout(G,200):(Hr(k),de&&setTimeout(()=>{let ce=P.current;if(!ce||ce.id!==C.id||ce.stepIndex!==E)return;let ht=document.querySelector(k.selector);ht&&ht.click()},1e3))};G()},Je)}else bo();wa(te.id,U.text)}function sS(){if(!b)return;let C=Om[b.id];if(!C)return;let T=b.stepIndex-1;if(T>=0){D({id:b.id,stepIndex:T});let H=C.steps[T];H.navigation&&t&&t(H.navigation.page,H.navigation.subtab),H.cursorTarget?setTimeout(()=>{Hr(H.cursorTarget)},500):bo();let E=n.filter(U=>U.kind!=="guideStep"&&U.kind!=="guideComplete");s([...E,{id:Date.now(),role:"assistant",kind:"guideStep",content:H.text}])}}return(0,p.jsxs)("section",{className:`fixed bottom-6 right-6 z-50 flex flex-col bg-white rounded-2xl shadow-2xl border border-gray-200/80 w-[400px] overflow-hidden transition-all duration-300 ${qr?"h-12":"h-[calc(100vh-48px)]"}`,children:[(0,p.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white cursor-pointer shrink-0",onClick:()=>zm(!qr),children:[(0,p.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:"Copilot"}),(0,p.jsxs)("div",{className:"flex items-center gap-1",children:[!qr&&(0,p.jsx)(Ke,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full",onClick:C=>{C.stopPropagation(),s([]),x("landing"),w(void 0),D(void 0),P.current=void 0,le(!1)},children:(0,p.jsx)(St,{className:"h-3.5 w-3.5"})}),(0,p.jsx)(Ke,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full",onClick:C=>{C.stopPropagation(),zm(!qr)},children:qr?(0,p.jsx)(ci,{className:"h-4 w-4"}):(0,p.jsx)(no,{className:"h-4 w-4"})})]})]}),!qr&&(0,p.jsx)("div",{className:c?"grid flex-1 place-items-center transition-all duration-300":"flex flex-1 flex-col transition-all duration-300 min-h-0 overflow-hidden",children:c?(0,p.jsxs)("div",{className:"w-full overflow-y-auto px-4",children:[(0,p.jsxs)("div",{className:"py-4 transition-all duration-300",children:[(0,p.jsx)("h2",{className:"text-center text-2xl font-semibold text-gray-900",children:m==="folder"?$C.find(C=>C.id===S)?.title||"":"What can I help with?"}),m==="landing"&&(0,p.jsx)("p",{className:"mt-1 text-center text-xs text-gray-500",children:"Ask me anything about your account"})]}),(0,p.jsxs)("div",{className:"pb-4",children:[m==="landing"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400",children:"Quick Start"}),(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"secondary",className:"w-full justify-start rounded-xl border border-primary/20 bg-primary/5 px-3 py-2.5 text-xs font-medium text-primary shadow-none transition-all hover:bg-primary/10 hover:border-primary/30 h-auto mb-4",onClick:()=>nS("getting-started"),children:[(0,p.jsx)(mi,{className:"mr-2 h-3.5 w-3.5"}),"Getting started"]}),(0,p.jsx)("div",{className:"mb-2 text-[10px] font-semibold uppercase tracking-wider text-gray-400",children:"Topics"}),(0,p.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-2 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>Yd("customers"),children:[(0,p.jsx)("span",{className:"mr-2 inline-block h-1.5 w-1.5 rounded-full bg-blue-400"}),"Customer Management"]}),(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-2 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>Yd("payments"),children:[(0,p.jsx)("span",{className:"mr-2 inline-block h-1.5 w-1.5 rounded-full bg-green-400"}),"Payment Processing"]}),(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-2 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>Yd("billing"),children:[(0,p.jsx)("span",{className:"mr-2 inline-block h-1.5 w-1.5 rounded-full bg-purple-400"}),"Billing"]})]})]}),m==="folder"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,p.jsx)(Ke,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full hover:bg-gray-100",onClick:ZC,"aria-label":"Back to suggestions",children:(0,p.jsx)(fn,{className:"h-4 w-4 text-gray-500"})}),(0,p.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:"Topics"})]}),(0,p.jsx)("div",{className:"flex flex-col gap-1.5",children:$C.find(C=>C.id===S)?.topics.map(C=>(0,p.jsx)(Ke,{type:"button",size:"sm",variant:"secondary",className:"justify-start rounded-xl border border-gray-200 bg-gray-50 px-3 py-2.5 text-xs text-gray-700 shadow-none transition-all hover:bg-gray-100 hover:border-gray-300 h-auto",onClick:()=>rS(C.prompt),children:C.label},C.id))})]})]})]}):(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,p.jsx)(Dp,{ref:bt,className:"h-full",children:(0,p.jsxs)("div",{className:"flex flex-col gap-2 px-4 py-3",children:[n.map((C,T)=>{let H=C.role==="user",E=T>0?n[T-1].role:void 0,U=E!==void 0&&E!==C.role,oe=P.current||b,te=!1;if(oe&&C.kind==="guideStep"?C.guideStepIndex!==void 0?te=C.guideStepIndex===oe.stepIndex:te=T===n.length-1:C.kind==="guideComplete"&&(te=T===n.length-1),C.kind==="guideStep"&&!te)return null;if(H)return(0,p.jsx)("div",{className:`flex justify-end ${U?"mt-3":""}`,children:(0,p.jsx)("div",{className:"max-w-[280px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm",children:C.content})},C.id);if(C.kind==="searchSummary")return(0,p.jsx)("div",{className:`${U?"mt-3":""}`,children:(0,p.jsx)(Sv,{title:C.title??"Search results",links:C.links??[]})},C.id);if(C.kind==="guideComplete")return(0,p.jsx)("div",{ref:te?Kt:null,className:`${U?"mt-3":""}`,children:(0,p.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-green-50 border border-green-200 px-3 py-2.5 text-sm leading-6",children:[(0,p.jsx)(He,{className:"h-5 w-5 text-green-600 flex-shrink-0"}),(0,p.jsx)("span",{className:"font-medium text-green-800",children:C.content})]})},C.id);if(C.kind==="navigationAction")return(0,p.jsxs)("div",{className:`${U?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-2 text-gray-700",children:C.content||""}),C.navigationTarget&&(0,p.jsx)("div",{className:"mt-2",children:(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>C.navigationTarget&&Zd(C.navigationTarget),children:[(0,p.jsx)("span",{children:"Confirm"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(_a,{className:"h-3 w-3"}),(0,p.jsx)(za,{className:"h-3 w-3"})]})]})})]},C.id);if(C.kind==="actionForm"){let A=C.actionType,N=Object.keys($).length>0?$:C.actionData||{};if(C.isSubmitted){let k="";return A==="updateCompanyInfo"?k="Company information has been updated successfully.":A==="addApiKey"?k="API key has been added successfully.":A==="addCustomer"?k="Customer has been added successfully.":A==="enable2FA"?k="Two-factor authentication has been enabled successfully.":A==="disable2FA"?k="Two-factor authentication has been disabled successfully.":A==="changePassword"?k="Your password has been changed successfully.":A==="revokeSession"?k="Session has been revoked successfully.":A==="toggleNotification"?k="Notification preferences have been updated successfully.":A==="connectIntegration"?k="Integration has been connected successfully.":A==="disconnectIntegration"?k="Integration has been disconnected successfully.":A==="addPaymentMethod"?k="Payment method has been added successfully.":A==="removePaymentMethod"?k="Payment method has been removed successfully.":A==="deleteApiKey"?k="API key has been deleted successfully.":A==="addWebhook"?k="Webhook endpoint has been added successfully.":A==="updateCurrency"?k="Currency preference has been updated successfully.":A==="updateTimezone"?k="Timezone has been updated successfully.":A==="refundPayment"?k="Refund has been processed successfully.":A==="exportCertificate"?k="Certificate of Incorporation has been downloaded successfully.":A==="createSubscription"?k="Subscription has been created successfully.":A==="toggleBlockRule"||A==="enableBlockRule"||A==="disableBlockRule"?k="Block rule has been updated successfully.":k="Action completed successfully.",(0,p.jsx)("div",{className:`${U?"mt-3":""}`,children:(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-gray-700",children:k})},C.id)}return(0,p.jsxs)("div",{className:`min-w-0 ${U?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:C.content||""}),A==="updateCompanyInfo"&&(0,p.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,p.jsx)(we,{placeholder:"Acme Corporation",value:N.companyName||"",onChange:k=>W({...$,companyName:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,p.jsx)(we,{type:"email",placeholder:"contact@acme.com",value:N.email||"",onChange:k=>W({...$,email:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Address"}),(0,p.jsx)(we,{placeholder:"123 Main St, San Francisco, CA",value:N.address||"",onChange:k=>W({...$,address:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Phone"}),(0,p.jsx)(we,{type:"tel",placeholder:"+1 (555) 123-4567",value:N.phone||"",onChange:k=>W({...$,phone:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Website"}),(0,p.jsx)(we,{type:"url",placeholder:"https://acme.com",value:N.website||"",onChange:k=>W({...$,website:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]})]}),A==="addApiKey"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name"}),(0,p.jsx)(we,{placeholder:"Production Key",value:N.name||"",onChange:k=>W({...$,name:k.target.value}),className:"h-8 text-xs border-gray-200"})]})}),A==="addCustomer"&&(0,p.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,p.jsx)(we,{placeholder:"Acme Corporation",value:N.name||"",onChange:k=>W({...$,name:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,p.jsx)(we,{type:"email",placeholder:"contact@acme.com",value:N.email||"",onChange:k=>W({...$,email:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Location"}),(0,p.jsx)(we,{placeholder:"San Francisco, CA",value:N.location||"",onChange:k=>W({...$,location:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Subscription Tier"}),(0,p.jsxs)("select",{value:N.subscription||"Starter",onChange:k=>W({...$,subscription:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Starter",children:"Starter"}),(0,p.jsx)("option",{value:"Professional",children:"Professional"}),(0,p.jsx)("option",{value:"Enterprise",children:"Enterprise"})]})]})]}),(A==="enable2FA"||A==="disable2FA")&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsx)("p",{className:"text-xs text-black",children:A==="enable2FA"?"This will enable two-factor authentication for your account. You'll need to set up an authenticator app.":"This will disable two-factor authentication for your account. Your account will be less secure."})}),A==="changePassword"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Current Password"}),(0,p.jsx)(we,{type:"password",value:N.currentPassword||"",onChange:k=>W({...$,currentPassword:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"New Password"}),(0,p.jsx)(we,{type:"password",value:N.newPassword||"",onChange:k=>W({...$,newPassword:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Confirm New Password"}),(0,p.jsx)(we,{type:"password",value:N.confirmPassword||"",onChange:k=>W({...$,confirmPassword:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),A==="toggleNotification"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Notification Type"}),(0,p.jsxs)("select",{value:N.notificationType||"paymentReceived",onChange:k=>W({...$,notificationType:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"paymentReceived",children:"Payment Received"}),(0,p.jsx)("option",{value:"paymentFailed",children:"Payment Failed"}),(0,p.jsx)("option",{value:"invoicePaid",children:"Invoice Paid"}),(0,p.jsx)("option",{value:"monthlySummary",children:"Monthly Summary"}),(0,p.jsx)("option",{value:"productUpdates",children:"Product Updates"})]})]}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)("input",{type:"checkbox",checked:N.enabled!==!1,onChange:k=>W({...$,enabled:k.target.checked}),className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"}),(0,p.jsx)("label",{className:"text-xs text-black",children:"Enable this notification"})]})]}),(A==="connectIntegration"||A==="disconnectIntegration")&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Integration"}),(0,p.jsxs)("select",{value:N.integrationName||"Slack",onChange:k=>W({...$,integrationName:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Slack",children:"Slack"}),(0,p.jsx)("option",{value:"Zapier",children:"Zapier"}),(0,p.jsx)("option",{value:"Webhook",children:"Webhook"})]})]})}),A==="addPaymentMethod"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Card Number"}),(0,p.jsx)(we,{placeholder:"1234 5678 9012 3456",value:N.cardNumber||"",onChange:k=>W({...$,cardNumber:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Expiry Date"}),(0,p.jsx)(we,{placeholder:"MM/YY",value:N.expiryDate||"",onChange:k=>W({...$,expiryDate:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),A==="removePaymentMethod"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsx)("p",{className:"text-xs text-black",children:"This will remove the default payment method from your account."})}),A==="refundPayment"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Transaction ID or Customer Name"}),(0,p.jsx)(we,{placeholder:"e.g., txn_1234 or Acme Corp",value:N.transactionId||N.customer||"",onChange:k=>{let K=k.target.value;K.startsWith("txn_")||/^\d+$/.test(K)?W({...$,transactionId:K,customer:void 0}):W({...$,customer:K,transactionId:void 0})},className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Amount (optional)"}),(0,p.jsx)(we,{placeholder:"$0.00",value:N.amount||"",onChange:k=>W({...$,amount:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Reason (optional)"}),(0,p.jsx)(we,{placeholder:"e.g., Customer request",value:N.reason||"",onChange:k=>W({...$,reason:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),A==="deleteApiKey"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name or ID"}),(0,p.jsx)(we,{placeholder:"Production Key",value:N.keyId||N.name||"",onChange:k=>W({...$,keyId:k.target.value,name:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsx)("p",{className:"text-xs text-red-600",children:"Warning: This action cannot be undone. The API key will be permanently deleted."})]}),A==="addWebhook"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Webhook URL"}),(0,p.jsx)(we,{type:"url",placeholder:"https://example.com/webhook",value:N.url||"",onChange:k=>W({...$,url:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Name (optional)"}),(0,p.jsx)(we,{placeholder:"Production Webhook",value:N.name||"",onChange:k=>W({...$,name:k.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),A==="updateCurrency"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Currency"}),(0,p.jsxs)("select",{value:N.currency||"USD",onChange:k=>W({...$,currency:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"USD",children:"USD ($)"}),(0,p.jsx)("option",{value:"EUR",children:"EUR (\u20AC)"}),(0,p.jsx)("option",{value:"GBP",children:"GBP (\xA3)"}),(0,p.jsx)("option",{value:"JPY",children:"JPY (\xA5)"})]})]})}),A==="updateTimezone"&&(0,p.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Timezone"}),(0,p.jsxs)("select",{value:N.timezone||"America/Los_Angeles",onChange:k=>W({...$,timezone:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"America/Los_Angeles",children:"Pacific Time (PT)"}),(0,p.jsx)("option",{value:"America/New_York",children:"Eastern Time (ET)"}),(0,p.jsx)("option",{value:"Europe/London",children:"GMT"}),(0,p.jsx)("option",{value:"Asia/Tokyo",children:"JST"})]})]})}),A==="revokeSession"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Device/Session"}),(0,p.jsx)(we,{placeholder:"MacBook Pro",value:N.device||"",onChange:k=>W({...$,device:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsx)("p",{className:"text-xs text-black",children:"This will sign out the device and invalidate its session."})]}),A==="createSubscription"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Customer Email"}),(0,p.jsx)(we,{type:"email",placeholder:"customer@example.com",value:N.customerEmail||"",onChange:k=>W({...$,customerEmail:k.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Plan"}),(0,p.jsxs)("select",{value:N.plan||"Starter",onChange:k=>W({...$,plan:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"Starter",children:"Starter ($29/mo)"}),(0,p.jsx)("option",{value:"Professional",children:"Professional ($99/mo)"}),(0,p.jsx)("option",{value:"Enterprise",children:"Enterprise ($299/mo)"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Billing Cycle"}),(0,p.jsxs)("select",{value:N.billingCycle||"monthly",onChange:k=>W({...$,billingCycle:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"monthly",children:"Monthly"}),(0,p.jsx)("option",{value:"yearly",children:"Yearly (Save 15%)"})]})]})]}),A==="exportCertificate"&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsx)("p",{className:"text-xs text-black",children:"This will export your certificate of incorporation document."}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Format"}),(0,p.jsxs)("select",{value:N.format||"pdf",onChange:k=>W({...$,format:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"pdf",children:"PDF"}),(0,p.jsx)("option",{value:"json",children:"JSON"})]})]})]}),(A==="toggleBlockRule"||A==="enableBlockRule"||A==="disableBlockRule")&&(0,p.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Block Rule"}),(0,p.jsxs)("select",{value:N.ruleId||"rule_1",onChange:k=>W({...$,ruleId:k.target.value}),className:"h-8 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-xs shadow-xs transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",children:[(0,p.jsx)("option",{value:"rule_1",children:"Block if risk level = 'highest'"}),(0,p.jsx)("option",{value:"rule_2",children:"Block if matches Stripe block lists"}),(0,p.jsx)("option",{value:"rule_3",children:"Block if CVC verification fails"}),(0,p.jsx)("option",{value:"rule_4",children:"Block if Postal code verification fails"})]})]}),(0,p.jsx)("p",{className:"text-xs text-black",children:A==="enableBlockRule"?"This will enable the selected block rule to actively block matching payments.":A==="disableBlockRule"?"This will disable the selected block rule. Matching payments will no longer be blocked.":"This will toggle the selected block rule's state."})]}),(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:Jd,children:[(0,p.jsx)("span",{children:"Confirm"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(_a,{className:"h-3 w-3"}),(0,p.jsx)(za,{className:"h-3 w-3"})]})]})})]},C.id)}if(C.kind==="bulkPreview"&&C.csvData)return(0,p.jsxs)("div",{className:`${U?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:C.content||""}),(0,p.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 overflow-hidden",children:[(0,p.jsxs)("div",{className:"bg-gray-100 px-3 py-2 border-b border-gray-200 flex items-center gap-2",children:[(0,p.jsx)(pn,{className:"h-4 w-4 text-gray-600"}),(0,p.jsx)("span",{className:"text-xs font-medium text-gray-700",children:C.csvData.fileName}),(0,p.jsxs)("span",{className:"text-xs text-gray-500",children:["\u2022 ",C.csvData.rowCount," rows"]})]}),(0,p.jsxs)("div",{className:"px-3 py-2 border-b border-gray-100",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Columns"}),(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:C.csvData.columns.map((A,N)=>(0,p.jsx)("span",{className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded",children:A},N))})]}),C.csvData.sampleRows.length>0&&(0,p.jsxs)("div",{className:"px-3 py-2",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Sample Data"}),(0,p.jsx)("div",{className:"space-y-1",children:C.csvData.sampleRows.slice(0,3).map((A,N)=>(0,p.jsxs)("div",{className:"text-xs text-gray-600 bg-white rounded px-2 py-1 border border-gray-100",children:[Object.entries(A).slice(0,3).map(([k,K],se)=>(0,p.jsxs)("span",{children:[se>0&&" \u2022 ",(0,p.jsxs)("span",{className:"text-gray-400",children:[k,":"]})," ",K]},k)),Object.keys(A).length>3&&(0,p.jsx)("span",{className:"text-gray-400",children:" ..."})]},N))})]}),C.suggestedAction&&(0,p.jsx)("div",{className:"px-3 py-2 bg-blue-50 border-t border-blue-100",children:(0,p.jsxs)("span",{className:"text-xs text-blue-700",children:["Suggested action: ",(0,p.jsx)("strong",{children:C.suggestedAction.replace(/_/g," ")})]})})]}),C.bulkSessionId&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:()=>C.bulkSessionId&&tc(C.bulkSessionId),children:[(0,p.jsxs)("span",{children:["Process ",C.csvData.rowCount," rows"]}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(_a,{className:"h-3 w-3"}),(0,p.jsx)(za,{className:"h-3 w-3"})]})]}),(0,p.jsx)(Ke,{type:"button",size:"sm",variant:"ghost",className:"h-8 rounded-xl px-3 text-xs text-gray-500 hover:text-gray-700 hover:bg-gray-100",onClick:aS,children:"Cancel"})]})]},C.id);if(C.kind==="bulkProgress"&&C.bulkProgress){let{processed:A,total:N,successes:k,failures:K}=C.bulkProgress,se=Math.round(A/N*100);return(0,p.jsx)("div",{className:`${U?"mt-3":""}`,children:(0,p.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-3",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,p.jsx)(jt,{className:"h-4 w-4 animate-spin text-blue-600"}),(0,p.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:["Processing... ",A," of ",N]})]}),(0,p.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden mb-2",children:(0,p.jsx)("div",{className:"h-full bg-blue-600 transition-all duration-300",style:{width:`${se}%`}})}),(0,p.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-600",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1",children:[(0,p.jsx)(He,{className:"h-3 w-3 text-green-600"}),k," successful"]}),K>0&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(fo,{className:"h-3 w-3"}),K," failed"]})]})]})},C.id)}if(C.kind==="bulkSummary"&&C.bulkSummary){let{total:A,successes:N,failures:k,navigationPage:K}=C.bulkSummary,se=k.length>0,X=K?.page==="customers"?"Customers":K?.page==="dashboard"?"Dashboard":K?.page==="settings"?"Settings":"Results";return(0,p.jsx)("div",{className:`${U?"mt-3":""}`,children:(0,p.jsxs)("div",{className:`rounded-lg border p-3 ${se?"bg-amber-50 border-amber-200":"bg-green-50 border-green-200"}`,children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,p.jsx)(He,{className:`h-5 w-5 ${se?"text-amber-600":"text-green-600"}`}),(0,p.jsx)("span",{className:"text-sm font-medium text-gray-800",children:"Bulk operation complete"})]}),(0,p.jsx)("div",{className:"text-sm text-gray-600 mb-2",children:C.content||`Processed ${A} rows: ${N} successful${se?`, ${k.length} failed`:""}.`}),(0,p.jsxs)("div",{className:"flex items-center gap-4 text-xs",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1 text-green-700",children:[(0,p.jsx)(He,{className:"h-3 w-3"}),N," successful"]}),se&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(fo,{className:"h-3 w-3"}),k.length," failed"]})]}),se&&(0,p.jsxs)("div",{className:"mt-3 pt-2 border-t border-amber-200",children:[(0,p.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-amber-700 mb-1",children:"Failed Rows"}),(0,p.jsxs)("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:[k.slice(0,5).map((de,Ue)=>(0,p.jsxs)("div",{className:"text-xs text-red-700 bg-red-50 rounded px-2 py-1",children:["Row ",de.row,": ",de.error||"Unknown error"]},Ue)),k.length>5&&(0,p.jsxs)("div",{className:"text-xs text-amber-600",children:["...and ",k.length-5," more"]})]})]}),K&&N>0&&(0,p.jsx)("div",{className:"mt-3 pt-2 border-t border-gray-200",children:(0,p.jsxs)("button",{type:"button",onClick:de=>{de.preventDefault(),de.stopPropagation(),console.log("[DEBUG] Button clicked - navigationPage:",K,"onNavigate:",!!t),t&&K.page?(console.log("[DEBUG] Calling onNavigate with page:",K.page),t(K.page,K.subtab)):console.log("[DEBUG] Condition failed - onNavigate:",!!t,"navigationPage.page:",K.page)},className:"flex items-center gap-2 text-xs text-gray-500 hover:text-gray-700 transition-colors group cursor-pointer",children:[(0,p.jsxs)("span",{className:"flex items-center gap-1 px-1.5 py-0.5 bg-gray-100 rounded text-[10px] font-medium text-gray-600 group-hover:bg-gray-200",children:[(0,p.jsx)(_a,{className:"h-2.5 w-2.5"}),(0,p.jsx)("span",{children:"+"}),(0,p.jsx)(za,{className:"h-2.5 w-2.5"})]}),(0,p.jsxs)("span",{children:["View ",X]})]})})]})},C.id)}return(0,p.jsx)(Z.Fragment,{children:(0,p.jsxs)("div",{ref:te?Kt:null,className:`${U?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"text-sm leading-6 text-gray-700",children:(()=>{let A=C.content||"";if(C.kind==="guideStep"){let N=A.match(/^(Step\s+\d+:)([\s\S]*)/);if(N)return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("strong",{children:N[1]}),N[2]]})}return C.role==="assistant"&&A?J1(A):A||(0,p.jsx)("span",{className:"opacity-70",children:"Thinking\u2026"})})()}),C.role==="assistant"&&C.structuredData&&(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsx)(KC,{type:C.structuredData.type,data:C.structuredData.data})}),C.role==="assistant"&&C.followups&&C.followups.length>0&&!C.followupSelected&&(0,p.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:C.followups.map(A=>(0,p.jsx)("button",{type:"button",onClick:()=>YC(C.id,A),className:`inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-xl
30
30
  bg-white hover:bg-gray-50 text-gray-600 hover:text-gray-800
31
31
  border border-gray-200 hover:border-gray-300 shadow-sm
32
- transition-all duration-150 ease-in-out`,children:q.label},q.id))})]})},L.id)}),($||De)&&(0,c.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[$&&$.stepIndex>0&&(0,c.jsx)(ta,{type:"button",size:"sm",variant:"secondary",className:"h-7 w-7 rounded-full p-0 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:aS,children:(0,c.jsx)(on,{className:"h-3.5 w-3.5 text-gray-600"})}),(0,c.jsxs)(ta,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:De?Ni:zm,children:[(0,c.jsx)("span",{children:De?"Done":"Next"}),(0,c.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,c.jsx)(Ea,{className:"h-3 w-3"}),(0,c.jsx)(Fa,{className:"h-3 w-3"})]})]})]}),(S==="thinking"||S==="searching"||S==="executing"||S==="responding")&&(0,c.jsx)("div",{className:`${E==="user"?"mt-3":""}`,children:(0,c.jsx)(_T,{phase:S,progressSteps:T})}),!$&&(0,c.jsx)("div",{ref:Dm})]})})})})}),!Fi&&(0,c.jsxs)("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50/50 shrink-0",children:[Lo&&(0,c.jsxs)("div",{className:"mb-2 flex items-center gap-2 rounded-xl bg-blue-50 border border-blue-200 px-3 py-2",children:[(0,c.jsx)(nn,{className:"h-4 w-4 text-blue-600"}),(0,c.jsx)("span",{className:"text-xs text-blue-700 flex-1 truncate",children:Lo.name}),(0,c.jsx)("button",{type:"button",onClick:()=>{Qd(null),Co.current&&(Co.current.value="")},className:"text-blue-600 hover:text-blue-800",children:(0,c.jsx)(oo,{className:"h-4 w-4"})})]}),(0,c.jsxs)("form",{onSubmit:QC,className:"w-full",children:[(0,c.jsx)("input",{ref:Co,type:"file",accept:".csv",className:"hidden",onChange:L=>{let w=L.target.files?.[0];w&&Qd(w)}}),(0,c.jsxs)("div",{className:"flex w-full items-center gap-2 rounded-2xl border border-gray-200 bg-white px-3 py-2 shadow-sm",children:[(0,c.jsx)(ta,{type:"button",size:"icon",variant:"ghost",onClick:()=>Co.current?.click(),className:"h-8 w-8 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100",title:"Upload CSV for bulk operations",children:(0,c.jsx)(oi,{className:"h-4 w-4"})}),(0,c.jsx)(OT,{placeholder:Lo?"Describe what to do with this CSV...":"Ask anything...",value:v,onChange:L=>I(L.target.value),className:"flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 text-sm placeholder:text-gray-400"}),(0,c.jsx)(ta,{type:"submit",size:"icon",disabled:!v.trim()&&!Lo,className:"h-8 w-8 rounded-full bg-gray-900 hover:bg-gray-800 disabled:bg-gray-300",children:(0,c.jsx)(Js,{className:"h-4 w-4"})})]})]})]}),p&&(0,c.jsx)(zT,{x:Ei.x,y:Ei.y,visible:Ei.visible,onClick:Ei.onClick})]})}var Gd=N(ot()),Jn=null,$a=null,es={};function tb({initialConfig:e}){let[t,a]=(0,Di.useState)(e),[r,o]=(0,Di.useState)(e.currentPage||"");(0,Di.useEffect)(()=>(es.setCurrentPage=o,es.setConfig=s=>a(i=>({...i,...s})),()=>{es={}}),[]);let n={userId:t.userId,orgId:t.orgId,theme:t.theme,position:t.position,agentUrl:t.agentUrl,className:t.className};return(0,Gd.jsx)(qC,{config:n,children:(0,Gd.jsx)(HC,{currentPage:r,onNavigate:t.onNavigate,onActionComplete:t.onActionComplete,onAgentAction:t.onAgentAction})})}function ab(){if(document.getElementById("kite-chat-styles"))return;let e=document.createElement("style");e.id="kite-chat-styles",e.textContent=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
33
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-700:oklch(55.3% .195 38.402);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-indigo-50:oklch(96.2% .018 272.314);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-500:oklch(60.6% .25 292.717);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--radius-xs:.125rem;--radius-2xl:1rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}}@layer components;@layer utilities{.\\@container\\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-8{top:calc(var(--spacing)*8)}.top-full{top:100%}.-right-3{right:calc(var(--spacing)*-3)}.right-0{right:calc(var(--spacing)*0)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-5{margin-left:calc(var(--spacing)*5)}.ml-6{margin-left:calc(var(--spacing)*6)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-full{width:100%;height:100%}.h-0{height:calc(var(--spacing)*0)}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-\\[600px\\]{max-height:600px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-24{width:calc(var(--spacing)*24)}.w-32{width:calc(var(--spacing)*32)}.w-40{width:calc(var(--spacing)*40)}.w-48{width:calc(var(--spacing)*48)}.w-56{width:calc(var(--spacing)*56)}.w-64{width:calc(var(--spacing)*64)}.w-80{width:calc(var(--spacing)*80)}.w-\\[380px\\]{width:380px}.w-full{width:100%}.max-w-6xl{max-width:var(--container-6xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-y-1{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.touch-none{touch-action:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-12{gap:calc(var(--spacing)*12)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-md{border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-100{border-color:var(--color-amber-100)}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-emerald-100{border-color:var(--color-emerald-100)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-700{border-color:var(--color-gray-700)}.border-gray-800{border-color:var(--color-gray-800)}.border-green-100{border-color:var(--color-green-100)}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200{border-color:var(--color-purple-200)}.border-red-100{border-color:var(--color-red-100)}.border-red-200{border-color:var(--color-red-200)}.border-ring{border-color:var(--ring)}.border-secondary{border-color:var(--secondary)}.border-slate-200{border-color:var(--color-slate-200)}.border-violet-100{border-color:var(--color-violet-100)}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-accent{background-color:var(--accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-foreground{background-color:var(--foreground)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-400{background-color:var(--color-green-400)}.bg-input{background-color:var(--input)}.bg-muted,.bg-muted\\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/40{background-color:color-mix(in oklab,var(--muted)40%,transparent)}}.bg-orange-100{background-color:var(--color-orange-100)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-ring{background-color:var(--ring)}.bg-secondary{background-color:var(--secondary)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-transparent{background-color:#0000}.bg-violet-50{background-color:var(--color-violet-50)}.bg-white{background-color:var(--color-white)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-violet-50{--tw-gradient-from:var(--color-violet-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-50{--tw-gradient-to:var(--color-indigo-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-repeat{background-repeat:repeat}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-px{padding:1px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-9{padding-left:calc(var(--spacing)*9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:var(--accent)}.text-accent-foreground{color:var(--accent-foreground)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-background{color:var(--background)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-muted{color:var(--muted)}.text-muted-foreground{color:var(--muted-foreground)}.text-orange-700{color:var(--color-orange-700)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary{color:var(--secondary)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-violet-500{color:var(--color-violet-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-destructive{--tw-ring-color:var(--destructive)}.ring-primary{--tw-ring-color:var(--primary)}.ring-ring{--tw-ring-color:var(--ring)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring{outline-color:var(--ring)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition\\!{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:bg-gray-200:is(:where(.group):hover *){background-color:var(--color-gray-200)}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media (hover:hover){.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-blue-800:hover{color:var(--color-blue-800)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-gray-800:hover{color:var(--color-gray-800)}.hover\\:underline:hover{text-decoration-line:underline}}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\\:opacity-50:disabled{opacity:.5}.has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}@media (min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (prefers-color-scheme:dark){.dark\\:border-input{border-color:var(--input)}.dark\\:bg-destructive\\/60{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-destructive\\/60{background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\\:bg-input\\/30{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-input\\/30{background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media (hover:hover){.dark\\:hover\\:bg-accent\\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\\:hover\\:bg-input\\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-input\\/50:hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\\:focus-visible\\:ring-destructive\\/40:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:focus-visible\\:ring-destructive\\/40:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:aria-invalid\\:ring-destructive\\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0)}#kite-chat-root section form input{color:var(--foreground,#1a1a1a)!important}#kite-chat-root section form input::placeholder{color:var(--muted-foreground,#9ca3af)!important}#kite-chat-root section .space-y-1>div+div{margin-top:.625rem}#kite-chat-root section>div.flex-1>div.overflow-y-auto{padding:1rem 1.25rem!important}#kite-chat-root section .mt-6.pt-4.border-t{margin-top:1.25rem;padding-top:1rem}#kite-chat-root section button.w-full.text-left.px-3{padding:.75rem 1rem}#kite-chat-root section .text-sm.leading-6{line-height:1.625rem}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}`,document.head.appendChild(e);let t=document.createElement("style");t.id="kite-chat-position",t.textContent=`
32
+ transition-all duration-150 ease-in-out`,children:A.label},A.id))})]})},C.id)}),(b||F)&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[b&&b.stepIndex>0&&(0,p.jsx)(Ke,{type:"button",size:"sm",variant:"secondary",className:"h-7 w-7 rounded-full p-0 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:sS,children:(0,p.jsx)(fn,{className:"h-3.5 w-3.5 text-gray-600"})}),(0,p.jsxs)(Ke,{type:"button",size:"sm",variant:"secondary",className:"h-8 rounded-xl px-3 text-xs gap-1.5 bg-gray-100 hover:bg-gray-200 border border-gray-200",onClick:F?qm:ac,children:[(0,p.jsx)("span",{children:F?"Done":"Next"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(_a,{className:"h-3 w-3"}),(0,p.jsx)(za,{className:"h-3 w-3"})]})]})]}),(f==="thinking"||f==="searching"||f==="executing"||f==="responding")&&(0,p.jsx)("div",{className:`${h==="user"?"mt-3":""}`,children:(0,p.jsx)(Lv,{phase:f,progressSteps:L})}),!b&&(0,p.jsx)("div",{ref:Ye})]})})})})}),!qr&&(0,p.jsxs)("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50/50 shrink-0",children:[Po&&(0,p.jsxs)("div",{className:"mb-2 flex items-center gap-2 rounded-xl bg-blue-50 border border-blue-200 px-3 py-2",children:[(0,p.jsx)(pn,{className:"h-4 w-4 text-blue-600"}),(0,p.jsx)("span",{className:"text-xs text-blue-700 flex-1 truncate",children:Po.name}),(0,p.jsx)("button",{type:"button",onClick:()=>{Xd(null),To.current&&(To.current.value="")},className:"text-blue-600 hover:text-blue-800",children:(0,p.jsx)(fo,{className:"h-4 w-4"})})]}),(0,p.jsxs)("form",{onSubmit:JC,className:"w-full",children:[(0,p.jsx)("input",{ref:To,type:"file",accept:".csv",className:"hidden",onChange:C=>{let T=C.target.files?.[0];T&&Xd(T)}}),(0,p.jsxs)("div",{className:"flex w-full items-center gap-2 rounded-2xl border border-gray-200 bg-white px-3 py-2 shadow-sm",children:[(0,p.jsx)(Ke,{type:"button",size:"icon",variant:"ghost",onClick:()=>To.current?.click(),className:"h-8 w-8 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100",title:"Upload CSV for bulk operations",children:(0,p.jsx)(pi,{className:"h-4 w-4"})}),(0,p.jsx)(we,{placeholder:Po?"Describe what to do with this CSV...":"Ask anything...",value:i,onChange:C=>l(C.target.value),onKeyDown:C=>{if((C.metaKey||C.ctrlKey)&&C.key==="Enter"){let T=Qd.current;if(T){C.preventDefault(),C.stopPropagation(),tc(T);return}if(me){C.preventDefault(),C.stopPropagation(),Jd();return}if(ee){C.preventDefault(),C.stopPropagation(),Zd(ee);return}if(P.current){C.preventDefault(),C.stopPropagation(),ac();return}}},className:"flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 text-sm placeholder:text-gray-400"}),(0,p.jsx)(Ke,{type:"submit",size:"icon",disabled:!i.trim()&&!Po,className:"h-8 w-8 rounded-full bg-gray-900 hover:bg-gray-800 disabled:bg-gray-300",children:(0,p.jsx)(ui,{className:"h-4 w-4"})})]})]})]}),(0,p.jsx)(WC,{x:mt.x,y:mt.y,visible:mt.visible,onClick:mt.onClick})]})}var Um=M(ie(),1),ls=null,ia=null,us={};function tT({initialConfig:e}){let[t,a]=(0,ds.useState)(e),[r,o]=(0,ds.useState)(e.currentPage||"dashboard");return(0,ds.useEffect)(()=>(us.setCurrentPage=o,us.setConfig=n=>a(s=>({...s,...n})),()=>{us={}}),[]),(0,ds.useEffect)(()=>{t.theme==="dark"?ia?.classList.add("dark"):ia?.classList.remove("dark")},[t.theme]),(0,Um.jsx)(XC,{currentPage:r,agentUrl:t.agentUrl,onNavigate:(n,s)=>t.onNavigate?.(n,s),onActionComplete:t.onActionComplete})}function aT(){if(document.getElementById("kite-chat-styles"))return;let e=document.createElement("style");e.id="kite-chat-styles",e.textContent=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
33
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-700:oklch(55.3% .195 38.402);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}}@layer components;@layer utilities{.\\@container\\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.z-50{z-index:50}.z-\\[9999\\]{z-index:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-5{margin-left:calc(var(--spacing)*5)}.ml-6{margin-left:calc(var(--spacing)*6)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-full{width:100%;height:100%}.h-1{height:calc(var(--spacing)*1)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\\[calc\\(100vh-48px\\)\\]{height:calc(100vh - 48px)}.h-auto{height:auto}.h-full{height:100%}.max-h-32{max-height:calc(var(--spacing)*32)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-\\[400px\\]{width:400px}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-br-md{border-bottom-right-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-amber-100{border-color:var(--color-amber-100)}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-emerald-100{border-color:var(--color-emerald-100)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab, red, red)){.border-gray-200\\/80{border-color:color-mix(in oklab,var(--color-gray-200)80%,transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--input)}.border-primary\\/20{border-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.border-primary\\/20{border-color:color-mix(in oklab,var(--primary)20%,transparent)}}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200{border-color:var(--color-purple-200)}.border-red-200{border-color:var(--color-red-200)}.border-slate-200{border-color:var(--color-slate-200)}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background{background-color:var(--background)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){.bg-gray-50\\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-400{background-color:var(--color-green-400)}.bg-muted\\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\\/40{background-color:color-mix(in oklab,var(--muted)40%,transparent)}}.bg-orange-100{background-color:var(--color-orange-100)}.bg-primary,.bg-primary\\/5{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/5{background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-secondary{background-color:var(--secondary)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-px{padding:1px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-card-foreground{color:var(--card-foreground)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-orange-700{color:var(--color-orange-700)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline-offset-4{text-underline-offset:4px}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:bg-gray-200:is(:where(.group):hover *){background-color:var(--color-gray-200)}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media (hover:hover){.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-primary\\/30:hover{border-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:border-primary\\/30:hover{border-color:color-mix(in oklab,var(--primary)30%,transparent)}}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-blue-800:hover{color:var(--color-blue-800)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-gray-800:hover{color:var(--color-gray-800)}.hover\\:underline:hover{text-decoration-line:underline}}.focus\\:ring-primary:focus{--tw-ring-color:var(--primary)}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\\:opacity-50:disabled{opacity:.5}.has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}@media (min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-input:is(.dark *){border-color:var(--input)}.dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\\:bg-input\\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media (hover:hover){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0)}#kite-chat-root section form input{color:var(--foreground,#1a1a1a)!important}#kite-chat-root section form input::placeholder{color:var(--muted-foreground,#9ca3af)!important}#kite-chat-root section .space-y-1>div+div{margin-top:.625rem}#kite-chat-root section>div.flex-1>div.overflow-y-auto{padding:1rem 1.25rem!important}#kite-chat-root section .mt-6.pt-4.border-t{margin-top:1.25rem;padding-top:1rem}#kite-chat-root section button.w-full.text-left.px-3{padding:.75rem 1rem}#kite-chat-root section .text-sm.leading-6{line-height:1.625rem}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}#kite-chat-root [data-motion]{will-change:transform,opacity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`,document.head.appendChild(e);let t=document.createElement("style");t.id="kite-chat-position",t.textContent=`
34
34
  #kite-chat-root {
35
- position: fixed;
36
- bottom: 20px;
37
- right: 20px;
38
- z-index: 9999;
35
+ /* Container is just a mount point - ChatPanel handles its own positioning */
39
36
  }
40
- `,document.head.appendChild(t)}function Mm(){let e=window.KiteChatConfig;if(!e){console.error("[KiteChat] Missing window.KiteChatConfig");return}if(!e.userId||!e.orgId){console.error("[KiteChat] userId and orgId are required");return}if(Jn){console.warn("[KiteChat] Already initialized");return}if(ab(),e.container){if($a=typeof e.container=="string"?document.querySelector(e.container):e.container,!$a){console.error(`[KiteChat] Container not found: ${e.container}`);return}}else $a=document.createElement("div"),$a.id="kite-chat-root",document.body.appendChild($a);Jn=(0,WC.createRoot)($a),Jn.render((0,Gd.jsx)(tb,{initialConfig:e})),window.KiteChat=rb(),console.log("[KiteChat] Initialized")}function rb(){return{setCurrentPage:e=>es.setCurrentPage?.(e),setUser:(e,t)=>es.setConfig?.({userId:e,orgId:t}),setConfig:e=>es.setConfig?.(e),destroy:()=>{Jn?.unmount(),Jn=null,$a&&!window.KiteChatConfig?.container&&$a.remove(),$a=null,window.KiteChat=void 0},isMounted:()=>Jn!==null}}typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Mm):Mm());return dS(ob);})();
37
+ `,document.head.appendChild(t)}function Vm(){let e=window.KiteChatConfig;if(!e){console.error("[KiteChat] Missing window.KiteChatConfig");return}if(!e.userId||!e.orgId){console.error("[KiteChat] userId and orgId are required");return}if(ls){console.warn("[KiteChat] Already initialized");return}if(aT(),e.container){if(ia=typeof e.container=="string"?document.querySelector(e.container):e.container,!ia){console.error(`[KiteChat] Container not found: ${e.container}`);return}}else ia=document.createElement("div"),ia.id="kite-chat-root",document.body.appendChild(ia);ls=(0,QC.createRoot)(ia),ls.render((0,Um.jsx)(tT,{initialConfig:e})),window.KiteChat=rT(),console.log("[KiteChat] Initialized")}function rT(){return{setCurrentPage:e=>us.setCurrentPage?.(e),setUser:(e,t)=>us.setConfig?.({userId:e,orgId:t}),setConfig:e=>us.setConfig?.(e),destroy:()=>{ls?.unmount(),ls=null,ia&&!window.KiteChatConfig?.container&&ia.remove(),ia=null,window.KiteChat=void 0},isMounted:()=>ls!==null}}typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Vm):Vm());return mS(oT);})();
41
38
  /*! Bundled license information:
42
39
 
43
40
  react/cjs/react.production.min.js:
@@ -110,6 +107,7 @@ lucide-react/dist/esm/icons/loader-circle.js:
110
107
  lucide-react/dist/esm/icons/mail.js:
111
108
  lucide-react/dist/esm/icons/map-pin.js:
112
109
  lucide-react/dist/esm/icons/paperclip.js:
110
+ lucide-react/dist/esm/icons/play.js:
113
111
  lucide-react/dist/esm/icons/refresh-cw.js:
114
112
  lucide-react/dist/esm/icons/search.js:
115
113
  lucide-react/dist/esm/icons/shield.js: