@kite-copilot/chat-panel 0.2.20 → 0.2.22

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 vS=Object.create;var Yi=Object.defineProperty;var LS=Object.getOwnPropertyDescriptor;var CS=Object.getOwnPropertyNames;var SS=Object.getPrototypeOf,IS=Object.prototype.hasOwnProperty;var wS=(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 Ra=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kS=(e,t)=>{for(var a in t)Yi(e,a,{get:t[a],enumerable:!0})},rh=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of CS(t))!IS.call(e,o)&&o!==a&&Yi(e,o,{get:()=>t[o],enumerable:!(r=LS(t,o))||r.enumerable});return e};var N=(e,t,a)=>(a=e!=null?vS(SS(e)):{},rh(t||!e||!e.__esModule?Yi(a,"default",{value:e,enumerable:!0}):a,e)),bS=e=>rh(Yi({},"__esModule",{value:!0}),e);var hh=Ra(ae=>{"use strict";var gs=Symbol.for("react.element"),PS=Symbol.for("react.portal"),TS=Symbol.for("react.fragment"),AS=Symbol.for("react.strict_mode"),RS=Symbol.for("react.profiler"),DS=Symbol.for("react.provider"),MS=Symbol.for("react.context"),NS=Symbol.for("react.forward_ref"),ES=Symbol.for("react.suspense"),FS=Symbol.for("react.memo"),BS=Symbol.for("react.lazy"),oh=Symbol.iterator;function OS(e){return e===null||typeof e!="object"?null:(e=oh&&e[oh]||e["@@iterator"],typeof e=="function"?e:null)}var ih={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lh=Object.assign,uh={};function No(e,t,a){this.props=e,this.context=t,this.refs=uh,this.updater=a||ih}No.prototype.isReactComponent={};No.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};No.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dh(){}dh.prototype=No.prototype;function mc(e,t,a){this.props=e,this.context=t,this.refs=uh,this.updater=a||ih}var hc=mc.prototype=new dh;hc.constructor=mc;lh(hc,No.prototype);hc.isPureReactComponent=!0;var nh=Array.isArray,ch=Object.prototype.hasOwnProperty,gc={current:null},fh={key:!0,ref:!0,__self:!0,__source:!0};function ph(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)ch.call(t,r)&&!fh.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:gs,type:e,key:n,ref:s,props:o,_owner:gc.current}}function VS(e,t){return{$$typeof:gs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xc(e){return typeof e=="object"&&e!==null&&e.$$typeof===gs}function US(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var sh=/\/+/g;function pc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?US(""+e.key):t.toString(36)}function Ji(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 gs:case PS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+pc(s,0):r,nh(o)?(a="",e!=null&&(a=e.replace(sh,"$&/")+"/"),Ji(o,t,a,"",function(u){return u})):o!=null&&(xc(o)&&(o=VS(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(sh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",nh(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+pc(n,i);s+=Ji(n,t,a,l,o)}else if(l=OS(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+pc(n,i++),s+=Ji(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 Zi(e,t,a){if(e==null)return e;var r=[],o=0;return Ji(e,r,"","",function(n){return t.call(a,n,o++)}),r}function _S(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 dt={current:null},el={transition:null},zS={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:el,ReactCurrentOwner:gc};function mh(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:Zi,forEach:function(e,t,a){Zi(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Zi(e,function(){t++}),t},toArray:function(e){return Zi(e,function(t){return t})||[]},only:function(e){if(!xc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=No;ae.Fragment=TS;ae.Profiler=RS;ae.PureComponent=mc;ae.StrictMode=AS;ae.Suspense=ES;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zS;ae.act=mh;ae.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=lh({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=gc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)ch.call(t,l)&&!fh.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:gs,type:e.type,key:o,ref:n,props:r,_owner:s}};ae.createContext=function(e){return e={$$typeof:MS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:DS,_context:e},e.Consumer=e};ae.createElement=ph;ae.createFactory=function(e){var t=ph.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:NS,render:e}};ae.isValidElement=xc;ae.lazy=function(e){return{$$typeof:BS,_payload:{_status:-1,_result:e},_init:_S}};ae.memo=function(e,t){return{$$typeof:FS,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=el.transition;el.transition={};try{e()}finally{el.transition=t}};ae.unstable_act=mh;ae.useCallback=function(e,t){return dt.current.useCallback(e,t)};ae.useContext=function(e){return dt.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};ae.useEffect=function(e,t){return dt.current.useEffect(e,t)};ae.useId=function(){return dt.current.useId()};ae.useImperativeHandle=function(e,t,a){return dt.current.useImperativeHandle(e,t,a)};ae.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return dt.current.useMemo(e,t)};ae.useReducer=function(e,t,a){return dt.current.useReducer(e,t,a)};ae.useRef=function(e){return dt.current.useRef(e)};ae.useState=function(e){return dt.current.useState(e)};ae.useSyncExternalStore=function(e,t,a){return dt.current.useSyncExternalStore(e,t,a)};ae.useTransition=function(){return dt.current.useTransition()};ae.version="18.3.1"});var X=Ra((ST,gh)=>{"use strict";gh.exports=hh()});var bh=Ra(ge=>{"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<tl(o,t))e[r]=t,e[a]=o,a=r;else break e}}function Yt(e){return e.length===0?null:e[0]}function rl(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>tl(i,a))l<o&&0>tl(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>tl(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function tl(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(xh=performance,ge.unstable_now=function(){return xh.now()}):(yc=Date,yh=yc.now(),ge.unstable_now=function(){return yc.now()-yh});var xh,yc,yh,da=[],or=[],HS=1,Ht=null,tt=3,ol=!1,Xr=!1,ys=!1,Ch=typeof setTimeout=="function"?setTimeout:null,Sh=typeof clearTimeout=="function"?clearTimeout:null,vh=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Sc(e){for(var t=Yt(or);t!==null;){if(t.callback===null)rl(or);else if(t.startTime<=e)rl(or),t.sortIndex=t.expirationTime,Cc(da,t);else break;t=Yt(or)}}function Ic(e){if(ys=!1,Sc(e),!Xr)if(Yt(da)!==null)Xr=!0,kc(wc);else{var t=Yt(or);t!==null&&bc(Ic,t.startTime-e)}}function wc(e,t){Xr=!1,ys&&(ys=!1,Sh(vs),vs=-1),ol=!0;var a=tt;try{for(Sc(t),Ht=Yt(da);Ht!==null&&(!(Ht.expirationTime>t)||e&&!kh());){var r=Ht.callback;if(typeof r=="function"){Ht.callback=null,tt=Ht.priorityLevel;var o=r(Ht.expirationTime<=t);t=ge.unstable_now(),typeof o=="function"?Ht.callback=o:Ht===Yt(da)&&rl(da),Sc(t)}else rl(da);Ht=Yt(da)}if(Ht!==null)var n=!0;else{var s=Yt(or);s!==null&&bc(Ic,s.startTime-t),n=!1}return n}finally{Ht=null,tt=a,ol=!1}}var nl=!1,al=null,vs=-1,Ih=5,wh=-1;function kh(){return!(ge.unstable_now()-wh<Ih)}function vc(){if(al!==null){var e=ge.unstable_now();wh=e;var t=!0;try{t=al(!0,e)}finally{t?xs():(nl=!1,al=null)}}else nl=!1}var xs;typeof vh=="function"?xs=function(){vh(vc)}:typeof MessageChannel<"u"?(Lc=new MessageChannel,Lh=Lc.port2,Lc.port1.onmessage=vc,xs=function(){Lh.postMessage(null)}):xs=function(){Ch(vc,0)};var Lc,Lh;function kc(e){al=e,nl||(nl=!0,xs())}function bc(e,t){vs=Ch(function(){e(ge.unstable_now())},t)}ge.unstable_IdlePriority=5;ge.unstable_ImmediatePriority=1;ge.unstable_LowPriority=4;ge.unstable_NormalPriority=3;ge.unstable_Profiling=null;ge.unstable_UserBlockingPriority=2;ge.unstable_cancelCallback=function(e){e.callback=null};ge.unstable_continueExecution=function(){Xr||ol||(Xr=!0,kc(wc))};ge.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"):Ih=0<e?Math.floor(1e3/e):5};ge.unstable_getCurrentPriorityLevel=function(){return tt};ge.unstable_getFirstCallbackNode=function(){return Yt(da)};ge.unstable_next=function(e){switch(tt){case 1:case 2:case 3:var t=3;break;default:t=tt}var a=tt;tt=t;try{return e()}finally{tt=a}};ge.unstable_pauseExecution=function(){};ge.unstable_requestPaint=function(){};ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=tt;tt=e;try{return t()}finally{tt=a}};ge.unstable_scheduleCallback=function(e,t,a){var r=ge.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:HS++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,Cc(or,e),Yt(da)===null&&e===Yt(or)&&(ys?(Sh(vs),vs=-1):ys=!0,bc(Ic,a-r))):(e.sortIndex=o,Cc(da,e),Xr||ol||(Xr=!0,kc(wc))),e};ge.unstable_shouldYield=kh;ge.unstable_wrapCallback=function(e){var t=tt;return function(){var a=tt;tt=t;try{return e.apply(this,arguments)}finally{tt=a}}}});var Th=Ra((wT,Ph)=>{"use strict";Ph.exports=bh()});var My=Ra(Et=>{"use strict";var qS=X(),Mt=Th();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 Fg=new Set,zs={};function lo(e,t){en(e,t),en(e+"Capture",t)}function en(e,t){for(zs[e]=t,e=0;e<t.length;e++)Fg.add(t[e])}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xc=Object.prototype.hasOwnProperty,WS=/^[: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]*$/,Ah={},Rh={};function GS(e){return Xc.call(Rh,e)?!0:Xc.call(Ah,e)?!1:WS.test(e)?Rh[e]=!0:(Ah[e]=!0,!1)}function jS(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 KS(e,t,a,r){if(t===null||typeof t>"u"||jS(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 pt(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 Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new pt(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){Xe[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hf=/[\-:]([a-z])/g;function qf(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(Hf,qf);Xe[t]=new pt(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(Hf,qf);Xe[t]=new pt(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(Hf,qf);Xe[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wf(e,t,a,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(KS(t,a,o,r)&&(a=null),r||o===null?GS(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 _a=qS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sl=Symbol.for("react.element"),Bo=Symbol.for("react.portal"),Oo=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),Qc=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),Og=Symbol.for("react.context"),jf=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),Zc=Symbol.for("react.suspense_list"),Kf=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Vg=Symbol.for("react.offscreen"),Dh=Symbol.iterator;function Ls(e){return e===null||typeof e!="object"?null:(e=Dh&&e[Dh]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,Pc;function Ts(e){if(Pc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pc=t&&t[1]||""}return`
2
- `+Pc+e}var Tc=!1;function Ac(e,t){if(!e||Tc)return"";Tc=!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 hS=Object.create;var $i=Object.defineProperty;var gS=Object.getOwnPropertyDescriptor;var xS=Object.getOwnPropertyNames;var yS=Object.getPrototypeOf,vS=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 Ra=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),CS=(e,t)=>{for(var a in t)$i(e,a,{get:t[a],enumerable:!0})},eh=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xS(t))!vS.call(e,o)&&o!==a&&$i(e,o,{get:()=>t[o],enumerable:!(r=gS(t,o))||r.enumerable});return e};var N=(e,t,a)=>(a=e!=null?hS(yS(e)):{},eh(t||!e||!e.__esModule?$i(a,"default",{value:e,enumerable:!0}):a,e)),SS=e=>eh($i({},"__esModule",{value:!0}),e);var fh=Ra(ee=>{"use strict";var ms=Symbol.for("react.element"),IS=Symbol.for("react.portal"),wS=Symbol.for("react.fragment"),kS=Symbol.for("react.strict_mode"),bS=Symbol.for("react.profiler"),PS=Symbol.for("react.provider"),TS=Symbol.for("react.context"),AS=Symbol.for("react.forward_ref"),RS=Symbol.for("react.suspense"),DS=Symbol.for("react.memo"),MS=Symbol.for("react.lazy"),th=Symbol.iterator;function NS(e){return e===null||typeof e!="object"?null:(e=th&&e[th]||e["@@iterator"],typeof e=="function"?e:null)}var oh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nh=Object.assign,sh={};function No(e,t,a){this.props=e,this.context=t,this.refs=sh,this.updater=a||oh}No.prototype.isReactComponent={};No.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};No.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ih(){}ih.prototype=No.prototype;function fc(e,t,a){this.props=e,this.context=t,this.refs=sh,this.updater=a||oh}var pc=fc.prototype=new ih;pc.constructor=fc;nh(pc,No.prototype);pc.isPureReactComponent=!0;var ah=Array.isArray,lh=Object.prototype.hasOwnProperty,mc={current:null},uh={key:!0,ref:!0,__self:!0,__source:!0};function dh(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)lh.call(t,r)&&!uh.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:ms,type:e,key:n,ref:s,props:o,_owner:mc.current}}function ES(e,t){return{$$typeof:ms,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hc(e){return typeof e=="object"&&e!==null&&e.$$typeof===ms}function FS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var rh=/\/+/g;function cc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?FS(""+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 ms:case IS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+cc(s,0):r,ah(o)?(a="",e!=null&&(a=e.replace(rh,"$&/")+"/"),Qi(o,t,a,"",function(u){return u})):o!=null&&(hc(o)&&(o=ES(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(rh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",ah(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+cc(n,i);s+=Qi(n,t,a,l,o)}else if(l=NS(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+cc(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 Xi(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 BS(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 ut={current:null},Yi={transition:null},OS={ReactCurrentDispatcher:ut,ReactCurrentBatchConfig:Yi,ReactCurrentOwner:mc};function ch(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Xi,forEach:function(e,t,a){Xi(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Xi(e,function(){t++}),t},toArray:function(e){return Xi(e,function(t){return t})||[]},only:function(e){if(!hc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=No;ee.Fragment=wS;ee.Profiler=bS;ee.PureComponent=fc;ee.StrictMode=kS;ee.Suspense=RS;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OS;ee.act=ch;ee.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=nh({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=mc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)lh.call(t,l)&&!uh.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:ms,type:e.type,key:o,ref:n,props:r,_owner:s}};ee.createContext=function(e){return e={$$typeof:TS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:PS,_context:e},e.Consumer=e};ee.createElement=dh;ee.createFactory=function(e){var t=dh.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:AS,render:e}};ee.isValidElement=hc;ee.lazy=function(e){return{$$typeof:MS,_payload:{_status:-1,_result:e},_init:BS}};ee.memo=function(e,t){return{$$typeof:DS,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=Yi.transition;Yi.transition={};try{e()}finally{Yi.transition=t}};ee.unstable_act=ch;ee.useCallback=function(e,t){return ut.current.useCallback(e,t)};ee.useContext=function(e){return ut.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return ut.current.useDeferredValue(e)};ee.useEffect=function(e,t){return ut.current.useEffect(e,t)};ee.useId=function(){return ut.current.useId()};ee.useImperativeHandle=function(e,t,a){return ut.current.useImperativeHandle(e,t,a)};ee.useInsertionEffect=function(e,t){return ut.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return ut.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return ut.current.useMemo(e,t)};ee.useReducer=function(e,t,a){return ut.current.useReducer(e,t,a)};ee.useRef=function(e){return ut.current.useRef(e)};ee.useState=function(e){return ut.current.useState(e)};ee.useSyncExternalStore=function(e,t,a){return ut.current.useSyncExternalStore(e,t,a)};ee.useTransition=function(){return ut.current.useTransition()};ee.version="18.3.1"});var K=Ra((CT,ph)=>{"use strict";ph.exports=fh()});var Ih=Ra(xe=>{"use strict";function vc(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 Jt(e){return e.length===0?null:e[0]}function el(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"?(mh=performance,xe.unstable_now=function(){return mh.now()}):(gc=Date,hh=gc.now(),xe.unstable_now=function(){return gc.now()-hh});var mh,gc,hh,ca=[],rr=[],VS=1,Wt=null,tt=3,tl=!1,Qr=!1,gs=!1,yh=typeof setTimeout=="function"?setTimeout:null,vh=typeof clearTimeout=="function"?clearTimeout:null,gh=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Lc(e){for(var t=Jt(rr);t!==null;){if(t.callback===null)el(rr);else if(t.startTime<=e)el(rr),t.sortIndex=t.expirationTime,vc(ca,t);else break;t=Jt(rr)}}function Cc(e){if(gs=!1,Lc(e),!Qr)if(Jt(ca)!==null)Qr=!0,Ic(Sc);else{var t=Jt(rr);t!==null&&wc(Cc,t.startTime-e)}}function Sc(e,t){Qr=!1,gs&&(gs=!1,vh(xs),xs=-1),tl=!0;var a=tt;try{for(Lc(t),Wt=Jt(ca);Wt!==null&&(!(Wt.expirationTime>t)||e&&!Sh());){var r=Wt.callback;if(typeof r=="function"){Wt.callback=null,tt=Wt.priorityLevel;var o=r(Wt.expirationTime<=t);t=xe.unstable_now(),typeof o=="function"?Wt.callback=o:Wt===Jt(ca)&&el(ca),Lc(t)}else el(ca);Wt=Jt(ca)}if(Wt!==null)var n=!0;else{var s=Jt(rr);s!==null&&wc(Cc,s.startTime-t),n=!1}return n}finally{Wt=null,tt=a,tl=!1}}var al=!1,Ji=null,xs=-1,Lh=5,Ch=-1;function Sh(){return!(xe.unstable_now()-Ch<Lh)}function xc(){if(Ji!==null){var e=xe.unstable_now();Ch=e;var t=!0;try{t=Ji(!0,e)}finally{t?hs():(al=!1,Ji=null)}}else al=!1}var hs;typeof gh=="function"?hs=function(){gh(xc)}:typeof MessageChannel<"u"?(yc=new MessageChannel,xh=yc.port2,yc.port1.onmessage=xc,hs=function(){xh.postMessage(null)}):hs=function(){yh(xc,0)};var yc,xh;function Ic(e){Ji=e,al||(al=!0,hs())}function wc(e,t){xs=yh(function(){e(xe.unstable_now())},t)}xe.unstable_IdlePriority=5;xe.unstable_ImmediatePriority=1;xe.unstable_LowPriority=4;xe.unstable_NormalPriority=3;xe.unstable_Profiling=null;xe.unstable_UserBlockingPriority=2;xe.unstable_cancelCallback=function(e){e.callback=null};xe.unstable_continueExecution=function(){Qr||tl||(Qr=!0,Ic(Sc))};xe.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};xe.unstable_getCurrentPriorityLevel=function(){return tt};xe.unstable_getFirstCallbackNode=function(){return Jt(ca)};xe.unstable_next=function(e){switch(tt){case 1:case 2:case 3:var t=3;break;default:t=tt}var a=tt;tt=t;try{return e()}finally{tt=a}};xe.unstable_pauseExecution=function(){};xe.unstable_requestPaint=function(){};xe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=tt;tt=e;try{return t()}finally{tt=a}};xe.unstable_scheduleCallback=function(e,t,a){var r=xe.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:VS++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,vc(rr,e),Jt(ca)===null&&e===Jt(rr)&&(gs?(vh(xs),xs=-1):gs=!0,wc(Cc,a-r))):(e.sortIndex=o,vc(ca,e),Qr||tl||(Qr=!0,Ic(Sc))),e};xe.unstable_shouldYield=Sh;xe.unstable_wrapCallback=function(e){var t=tt;return function(){var a=tt;tt=t;try{return e.apply(this,arguments)}finally{tt=a}}}});var kh=Ra((IT,wh)=>{"use strict";wh.exports=Ih()});var Ay=Ra(Et=>{"use strict";var US=K(),Mt=kh();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 Mg=new Set,Us={};function uo(e,t){en(e,t),en(e+"Capture",t)}function en(e,t){for(Us[e]=t,e=0;e<t.length;e++)Mg.add(t[e])}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kc=Object.prototype.hasOwnProperty,_S=/^[: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]*$/,bh={},Ph={};function zS(e){return Kc.call(Ph,e)?!0:Kc.call(bh,e)?!1:_S.test(e)?Ph[e]=!0:(bh[e]=!0,!1)}function HS(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 qS(e,t,a,r){if(t===null||typeof t>"u"||HS(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 ft(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 Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ft(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){Xe[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var _f=/[\-:]([a-z])/g;function zf(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(_f,zf);Xe[t]=new ft(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(_f,zf);Xe[t]=new ft(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(_f,zf);Xe[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hf(e,t,a,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qS(t,a,o,r)&&(a=null),r||o===null?zS(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 _a=US.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,rl=Symbol.for("react.element"),Bo=Symbol.for("react.portal"),Oo=Symbol.for("react.fragment"),qf=Symbol.for("react.strict_mode"),$c=Symbol.for("react.profiler"),Ng=Symbol.for("react.provider"),Eg=Symbol.for("react.context"),Wf=Symbol.for("react.forward_ref"),Xc=Symbol.for("react.suspense"),Qc=Symbol.for("react.suspense_list"),Gf=Symbol.for("react.memo"),nr=Symbol.for("react.lazy"),Fg=Symbol.for("react.offscreen"),Th=Symbol.iterator;function ys(e){return e===null||typeof e!="object"?null:(e=Th&&e[Th]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,kc;function bs(e){if(kc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);kc=t&&t[1]||""}return`
2
+ `+kc+e}var bc=!1;function Pc(e,t){if(!e||bc)return"";bc=!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{Tc=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Ts(e):""}function $S(e){switch(e.tag){case 5:return Ts(e.type);case 16:return Ts("Lazy");case 13:return Ts("Suspense");case 19:return Ts("SuspenseList");case 0:case 2:case 15:return e=Ac(e.type,!1),e;case 11:return e=Ac(e.type.render,!1),e;case 1:return e=Ac(e.type,!0),e;default:return""}}function Jc(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 Oo:return"Fragment";case Bo:return"Portal";case Qc:return"Profiler";case Gf:return"StrictMode";case Yc:return"Suspense";case Zc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Og:return(e.displayName||"Context")+".Consumer";case Bg:return(e._context.displayName||"Context")+".Provider";case jf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kf:return t=e.displayName||null,t!==null?t:Jc(e.type)||"Memo";case sr:t=e._payload,e=e._init;try{return Jc(e(t))}catch{}}return null}function XS(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 Jc(t);case 8:return t===Gf?"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 Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ug(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function QS(e){var t=Ug(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 il(e){e._valueTracker||(e._valueTracker=QS(e))}function _g(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ug(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Fl(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 ef(e,t){var a=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Mh(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=Lr(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 zg(e,t){t=t.checked,t!=null&&Wf(e,"checked",t,!1)}function tf(e,t){zg(e,t);var a=Lr(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")?af(e,t.type,a):t.hasOwnProperty("defaultValue")&&af(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nh(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 af(e,t,a){(t!=="number"||Fl(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var As=Array.isArray;function $o(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=""+Lr(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 rf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Eh(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(As(a)){if(1<a.length)throw Error(R(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:Lr(a)}}function Hg(e,t){var a=Lr(t.value),r=Lr(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 Fh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qg(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 of(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,Wg=(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(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hs(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ms={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},YS=["Webkit","ms","Moz","O"];Object.keys(Ms).forEach(function(e){YS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ms[t]=Ms[e]})});function Gg(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Ms.hasOwnProperty(e)&&Ms[e]?(""+t).trim():t+"px"}function jg(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Gg(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var ZS=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 nf(e,t){if(t){if(ZS[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 sf(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 lf=null;function $f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uf=null,Xo=null,Qo=null;function Bh(e){if(e=si(e)){if(typeof uf!="function")throw Error(R(280));var t=e.stateNode;t&&(t=uu(t),uf(e.stateNode,e.type,t))}}function Kg(e){Xo?Qo?Qo.push(e):Qo=[e]:Xo=e}function $g(){if(Xo){var e=Xo,t=Qo;if(Qo=Xo=null,Bh(e),t)for(e=0;e<t.length;e++)Bh(t[e])}}function Xg(e,t){return e(t)}function Qg(){}var Rc=!1;function Yg(e,t,a){if(Rc)return e(t,a);Rc=!0;try{return Xg(e,t,a)}finally{Rc=!1,(Xo!==null||Qo!==null)&&(Qg(),$g())}}function qs(e,t){var a=e.stateNode;if(a===null)return null;var r=uu(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 df=!1;if(Ba)try{Eo={},Object.defineProperty(Eo,"passive",{get:function(){df=!0}}),window.addEventListener("test",Eo,Eo),window.removeEventListener("test",Eo,Eo)}catch{df=!1}var Eo;function JS(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 Ns=!1,Bl=null,Ol=!1,cf=null,eI={onError:function(e){Ns=!0,Bl=e}};function tI(e,t,a,r,o,n,s,i,l){Ns=!1,Bl=null,JS.apply(eI,arguments)}function aI(e,t,a,r,o,n,s,i,l){if(tI.apply(this,arguments),Ns){if(Ns){var u=Bl;Ns=!1,Bl=null}else throw Error(R(198));Ol||(Ol=!0,cf=u)}}function uo(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 Zg(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 Oh(e){if(uo(e)!==e)throw Error(R(188))}function rI(e){var t=e.alternate;if(!t){if(t=uo(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 Oh(o),e;if(n===r)return Oh(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 Jg(e){return e=rI(e),e!==null?ex(e):null}function ex(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ex(e);if(t!==null)return t;e=e.sibling}return null}var tx=Mt.unstable_scheduleCallback,Vh=Mt.unstable_cancelCallback,oI=Mt.unstable_shouldYield,nI=Mt.unstable_requestPaint,Me=Mt.unstable_now,sI=Mt.unstable_getCurrentPriorityLevel,Xf=Mt.unstable_ImmediatePriority,ax=Mt.unstable_UserBlockingPriority,Vl=Mt.unstable_NormalPriority,iI=Mt.unstable_LowPriority,rx=Mt.unstable_IdlePriority,nu=null,ma=null;function lI(e){if(ma&&typeof ma.onCommitFiberRoot=="function")try{ma.onCommitFiberRoot(nu,e,void 0,(e.current.flags&128)===128)}catch{}}var aa=Math.clz32?Math.clz32:cI,uI=Math.log,dI=Math.LN2;function cI(e){return e>>>=0,e===0?32:31-(uI(e)/dI|0)|0}var ul=64,dl=4194304;function Rs(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 Ul(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=Rs(i):(n&=s,n!==0&&(r=Rs(n)))}else s=a&~o,s!==0?r=Rs(s):n!==0&&(r=Rs(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-aa(t),o=1<<a,r|=e[a],t&=~o;return r}function fI(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 pI(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-aa(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=fI(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function ff(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ox(){var e=ul;return ul<<=1,(ul&4194240)===0&&(ul=64),e}function Dc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function oi(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-aa(t),e[t]=a}function mI(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-aa(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function Qf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-aa(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var me=0;function nx(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var sx,Yf,ix,lx,ux,pf=!1,cl=[],fr=null,pr=null,mr=null,Ws=new Map,Gs=new Map,lr=[],hI="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 Uh(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":pr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":Ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(t.pointerId)}}function Cs(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=si(t),t!==null&&Yf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function gI(e,t,a,r,o){switch(t){case"focusin":return fr=Cs(fr,e,t,a,r,o),!0;case"dragenter":return pr=Cs(pr,e,t,a,r,o),!0;case"mouseover":return mr=Cs(mr,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return Ws.set(n,Cs(Ws.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,Gs.set(n,Cs(Gs.get(n)||null,e,t,a,r,o)),!0}return!1}function dx(e){var t=Zr(e.target);if(t!==null){var a=uo(t);if(a!==null){if(t=a.tag,t===13){if(t=Zg(a),t!==null){e.blockedOn=t,ux(e.priority,function(){ix(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 kl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=mf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);lf=r,a.target.dispatchEvent(r),lf=null}else return t=si(a),t!==null&&Yf(t),e.blockedOn=a,!1;t.shift()}return!0}function _h(e,t,a){kl(e)&&a.delete(t)}function xI(){pf=!1,fr!==null&&kl(fr)&&(fr=null),pr!==null&&kl(pr)&&(pr=null),mr!==null&&kl(mr)&&(mr=null),Ws.forEach(_h),Gs.forEach(_h)}function Ss(e,t){e.blockedOn===t&&(e.blockedOn=null,pf||(pf=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,xI)))}function js(e){function t(o){return Ss(o,e)}if(0<cl.length){Ss(cl[0],e);for(var a=1;a<cl.length;a++){var r=cl[a];r.blockedOn===e&&(r.blockedOn=null)}}for(fr!==null&&Ss(fr,e),pr!==null&&Ss(pr,e),mr!==null&&Ss(mr,e),Ws.forEach(t),Gs.forEach(t),a=0;a<lr.length;a++)r=lr[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<lr.length&&(a=lr[0],a.blockedOn===null);)dx(a),a.blockedOn===null&&lr.shift()}var Yo=_a.ReactCurrentBatchConfig,_l=!0;function yI(e,t,a,r){var o=me,n=Yo.transition;Yo.transition=null;try{me=1,Zf(e,t,a,r)}finally{me=o,Yo.transition=n}}function vI(e,t,a,r){var o=me,n=Yo.transition;Yo.transition=null;try{me=4,Zf(e,t,a,r)}finally{me=o,Yo.transition=n}}function Zf(e,t,a,r){if(_l){var o=mf(e,t,a,r);if(o===null)Vc(e,t,r,zl,a),Uh(e,r);else if(gI(o,e,t,a,r))r.stopPropagation();else if(Uh(e,r),t&4&&-1<hI.indexOf(e)){for(;o!==null;){var n=si(o);if(n!==null&&sx(n),n=mf(e,t,a,r),n===null&&Vc(e,t,r,zl,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Vc(e,t,r,null,a)}}var zl=null;function mf(e,t,a,r){if(zl=null,e=$f(r),e=Zr(e),e!==null)if(t=uo(e),t===null)e=null;else if(a=t.tag,a===13){if(e=Zg(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 zl=e,null}function cx(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(sI()){case Xf:return 1;case ax:return 4;case Vl:case iI:return 16;case rx:return 536870912;default:return 16}default:return 16}}var dr=null,Jf=null,bl=null;function fx(){if(bl)return bl;var e,t=Jf,a=t.length,r,o="value"in dr?dr.value:dr.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 bl=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 fl(){return!0}function zh(){return!1}function Nt(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)?fl:zh,this.isPropagationStopped=zh,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=fl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ep=Nt(ln),ni=Pe({},ln,{view:0,detail:0}),LI=Nt(ni),Mc,Nc,Is,su=Pe({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tp,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!==Is&&(Is&&e.type==="mousemove"?(Mc=e.screenX-Is.screenX,Nc=e.screenY-Is.screenY):Nc=Mc=0,Is=e),Mc)},movementY:function(e){return"movementY"in e?e.movementY:Nc}}),Hh=Nt(su),CI=Pe({},su,{dataTransfer:0}),SI=Nt(CI),II=Pe({},ni,{relatedTarget:0}),Ec=Nt(II),wI=Pe({},ln,{animationName:0,elapsedTime:0,pseudoElement:0}),kI=Nt(wI),bI=Pe({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PI=Nt(bI),TI=Pe({},ln,{data:0}),qh=Nt(TI),AI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RI={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"},DI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=DI[e])?!!t[e]:!1}function tp(){return MI}var NI=Pe({},ni,{key:function(e){if(e.key){var t=AI[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"?RI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tp,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}}),EI=Nt(NI),FI=Pe({},su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wh=Nt(FI),BI=Pe({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tp}),OI=Nt(BI),VI=Pe({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),UI=Nt(VI),_I=Pe({},su,{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}),zI=Nt(_I),HI=[9,13,27,32],ap=Ba&&"CompositionEvent"in window,Es=null;Ba&&"documentMode"in document&&(Es=document.documentMode);var qI=Ba&&"TextEvent"in window&&!Es,px=Ba&&(!ap||Es&&8<Es&&11>=Es),Gh=" ",jh=!1;function mx(e,t){switch(e){case"keyup":return HI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vo=!1;function WI(e,t){switch(e){case"compositionend":return hx(t);case"keypress":return t.which!==32?null:(jh=!0,Gh);case"textInput":return e=t.data,e===Gh&&jh?null:e;default:return null}}function GI(e,t){if(Vo)return e==="compositionend"||!ap&&mx(e,t)?(e=fx(),bl=Jf=dr=null,Vo=!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 px&&t.locale!=="ko"?null:t.data;default:return null}}var jI={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 Kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jI[e.type]:t==="textarea"}function gx(e,t,a,r){Kg(r),t=Hl(t,"onChange"),0<t.length&&(a=new ep("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Fs=null,Ks=null;function KI(e){Px(e,0)}function iu(e){var t=zo(e);if(_g(t))return e}function $I(e,t){if(e==="change")return t}var xx=!1;Ba&&(Ba?(ml="oninput"in document,ml||(Fc=document.createElement("div"),Fc.setAttribute("oninput","return;"),ml=typeof Fc.oninput=="function"),pl=ml):pl=!1,xx=pl&&(!document.documentMode||9<document.documentMode));var pl,ml,Fc;function $h(){Fs&&(Fs.detachEvent("onpropertychange",yx),Ks=Fs=null)}function yx(e){if(e.propertyName==="value"&&iu(Ks)){var t=[];gx(t,Ks,e,$f(e)),Yg(KI,t)}}function XI(e,t,a){e==="focusin"?($h(),Fs=t,Ks=a,Fs.attachEvent("onpropertychange",yx)):e==="focusout"&&$h()}function QI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Ks)}function YI(e,t){if(e==="click")return iu(t)}function ZI(e,t){if(e==="input"||e==="change")return iu(t)}function JI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oa=typeof Object.is=="function"?Object.is:JI;function $s(e,t){if(oa(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(!Xc.call(t,o)||!oa(e[o],t[o]))return!1}return!0}function Xh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qh(e,t){var a=Xh(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=Xh(a)}}function vx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lx(){for(var e=window,t=Fl();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Fl(e.document)}return t}function rp(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 ew(e){var t=Lx(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&vx(a.ownerDocument.documentElement,a)){if(r!==null&&rp(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=Qh(a,n);var s=Qh(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 tw=Ba&&"documentMode"in document&&11>=document.documentMode,Uo=null,hf=null,Bs=null,gf=!1;function Yh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;gf||Uo==null||Uo!==Fl(r)||(r=Uo,"selectionStart"in r&&rp(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}),Bs&&$s(Bs,r)||(Bs=r,r=Hl(hf,"onSelect"),0<r.length&&(t=new ep("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Uo)))}function hl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var _o={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionend:hl("Transition","TransitionEnd")},Bc={},Cx={};Ba&&(Cx=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function lu(e){if(Bc[e])return Bc[e];if(!_o[e])return e;var t=_o[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Cx)return Bc[e]=t[a];return e}var Sx=lu("animationend"),Ix=lu("animationiteration"),wx=lu("animationstart"),kx=lu("transitionend"),bx=new Map,Zh="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 Sr(e,t){bx.set(e,t),lo(t,[e])}for(gl=0;gl<Zh.length;gl++)xl=Zh[gl],Jh=xl.toLowerCase(),eg=xl[0].toUpperCase()+xl.slice(1),Sr(Jh,"on"+eg);var xl,Jh,eg,gl;Sr(Sx,"onAnimationEnd");Sr(Ix,"onAnimationIteration");Sr(wx,"onAnimationStart");Sr("dblclick","onDoubleClick");Sr("focusin","onFocus");Sr("focusout","onBlur");Sr(kx,"onTransitionEnd");en("onMouseEnter",["mouseout","mouseover"]);en("onMouseLeave",["mouseout","mouseover"]);en("onPointerEnter",["pointerout","pointerover"]);en("onPointerLeave",["pointerout","pointerover"]);lo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lo("onBeforeInput",["compositionend","keypress","textInput","paste"]);lo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),aw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ds));function tg(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,aI(r,t,void 0,e),e.currentTarget=null}function Px(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;tg(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;tg(o,i,u),n=l}}}if(Ol)throw e=cf,Ol=!1,cf=null,e}function ve(e,t){var a=t[Cf];a===void 0&&(a=t[Cf]=new Set);var r=e+"__bubble";a.has(r)||(Tx(t,e,2,!1),a.add(r))}function Oc(e,t,a){var r=0;t&&(r|=4),Tx(a,e,r,t)}var yl="_reactListening"+Math.random().toString(36).slice(2);function Xs(e){if(!e[yl]){e[yl]=!0,Fg.forEach(function(a){a!=="selectionchange"&&(aw.has(a)||Oc(a,!1,e),Oc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yl]||(t[yl]=!0,Oc("selectionchange",!1,t))}}function Tx(e,t,a,r){switch(cx(t)){case 1:var o=yI;break;case 4:o=vI;break;default:o=Zf}a=o.bind(null,t,a,e),o=void 0,!df||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 Vc(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=Zr(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}Yg(function(){var u=n,d=$f(a),c=[];e:{var p=bx.get(e);if(p!==void 0){var g=ep,L=e;switch(e){case"keypress":if(Pl(a)===0)break e;case"keydown":case"keyup":g=EI;break;case"focusin":L="focus",g=Ec;break;case"focusout":L="blur",g=Ec;break;case"beforeblur":case"afterblur":g=Ec;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=Hh;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=OI;break;case Sx:case Ix:case wx:g=kI;break;case kx:g=UI;break;case"scroll":g=LI;break;case"wheel":g=zI;break;case"copy":case"cut":case"paste":g=PI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Wh}var C=(t&4)!==0,w=!C&&e==="scroll",h=C?p!==null?p+"Capture":null:p;C=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,h!==null&&(S=qs(m,h),S!=null&&C.push(Qs(m,S,x)))),w)break;m=m.return}0<C.length&&(p=new g(p,L,null,a,d),c.push({event:p,listeners:C}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&a!==lf&&(L=a.relatedTarget||a.fromElement)&&(Zr(L)||L[Oa]))break e;if((g||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,g?(L=a.relatedTarget||a.toElement,g=u,L=L?Zr(L):null,L!==null&&(w=uo(L),L!==w||L.tag!==5&&L.tag!==6)&&(L=null)):(g=null,L=u),g!==L)){if(C=Hh,S="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(C=Wh,S="onPointerLeave",h="onPointerEnter",m="pointer"),w=g==null?p:zo(g),x=L==null?p:zo(L),p=new C(S,m+"leave",g,a,d),p.target=w,p.relatedTarget=x,S=null,Zr(d)===u&&(C=new C(h,m+"enter",L,a,d),C.target=x,C.relatedTarget=w,S=C),w=S,g&&L)t:{for(C=g,h=L,m=0,x=C;x;x=Fo(x))m++;for(x=0,S=h;S;S=Fo(S))x++;for(;0<m-x;)C=Fo(C),m--;for(;0<x-m;)h=Fo(h),x--;for(;m--;){if(C===h||h!==null&&C===h.alternate)break t;C=Fo(C),h=Fo(h)}C=null}else C=null;g!==null&&ag(c,p,g,C,!1),L!==null&&w!==null&&ag(c,w,L,C,!0)}}e:{if(p=u?zo(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var k=$I;else if(Kh(p))if(xx)k=ZI;else{k=QI;var P=XI}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=YI);if(k&&(k=k(e,u))){gx(c,k,a,d);break e}P&&P(e,p,u),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&af(p,"number",p.value)}switch(P=u?zo(u):window,e){case"focusin":(Kh(P)||P.contentEditable==="true")&&(Uo=P,hf=u,Bs=null);break;case"focusout":Bs=hf=Uo=null;break;case"mousedown":gf=!0;break;case"contextmenu":case"mouseup":case"dragend":gf=!1,Yh(c,a,d);break;case"selectionchange":if(tw)break;case"keydown":case"keyup":Yh(c,a,d)}var D;if(ap)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Vo?mx(e,a)&&(A="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(A="onCompositionStart");A&&(px&&a.locale!=="ko"&&(Vo||A!=="onCompositionStart"?A==="onCompositionEnd"&&Vo&&(D=fx()):(dr=d,Jf="value"in dr?dr.value:dr.textContent,Vo=!0)),P=Hl(u,A),0<P.length&&(A=new qh(A,e,null,a,d),c.push({event:A,listeners:P}),D?A.data=D:(D=hx(a),D!==null&&(A.data=D)))),(D=qI?WI(e,a):GI(e,a))&&(u=Hl(u,"onBeforeInput"),0<u.length&&(d=new qh("onBeforeInput","beforeinput",null,a,d),c.push({event:d,listeners:u}),d.data=D))}Px(c,t)})}function Qs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Hl(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=qs(e,a),n!=null&&r.unshift(Qs(e,n,o)),n=qs(e,t),n!=null&&r.push(Qs(e,n,o))),e=e.return}return r}function Fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ag(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=qs(a,n),l!=null&&s.unshift(Qs(a,l,i))):o||(l=qs(a,n),l!=null&&s.push(Qs(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var rw=/\r\n?/g,ow=/\u0000|\uFFFD/g;function rg(e){return(typeof e=="string"?e:""+e).replace(rw,`
6
- `).replace(ow,"")}function vl(e,t,a){if(t=rg(t),rg(e)!==t&&a)throw Error(R(425))}function ql(){}var xf=null,yf=null;function vf(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 Lf=typeof setTimeout=="function"?setTimeout:void 0,nw=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,sw=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(iw)}:Lf;function iw(e){setTimeout(function(){throw e})}function Uc(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),js(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);js(t)}function hr(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 ng(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 un=Math.random().toString(36).slice(2),pa="__reactFiber$"+un,Ys="__reactProps$"+un,Oa="__reactContainer$"+un,Cf="__reactEvents$"+un,lw="__reactListeners$"+un,uw="__reactHandles$"+un;function Zr(e){var t=e[pa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Oa]||a[pa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ng(e);e!==null;){if(a=e[pa])return a;e=ng(e)}return t}e=a,a=e.parentNode}return null}function si(e){return e=e[pa]||e[Oa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function uu(e){return e[Ys]||null}var Sf=[],Ho=-1;function Ir(e){return{current:e}}function Le(e){0>Ho||(e.current=Sf[Ho],Sf[Ho]=null,Ho--)}function xe(e,t){Ho++,Sf[Ho]=e.current,e.current=t}var Cr={},nt=Ir(Cr),vt=Ir(!1),ro=Cr;function tn(e,t){var a=e.type.contextTypes;if(!a)return Cr;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 Lt(e){return e=e.childContextTypes,e!=null}function Wl(){Le(vt),Le(nt)}function sg(e,t,a){if(nt.current!==Cr)throw Error(R(168));xe(nt,t),xe(vt,a)}function Ax(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,XS(e)||"Unknown",o));return Pe({},a,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,ro=nt.current,xe(nt,e),xe(vt,vt.current),!0}function ig(e,t,a){var r=e.stateNode;if(!r)throw Error(R(169));a?(e=Ax(e,t,ro),r.__reactInternalMemoizedMergedChildContext=e,Le(vt),Le(nt),xe(nt,e)):Le(vt),xe(vt,a)}var Ma=null,du=!1,_c=!1;function Rx(e){Ma===null?Ma=[e]:Ma.push(e)}function dw(e){du=!0,Rx(e)}function wr(){if(!_c&&Ma!==null){_c=!0;var e=0,t=me;try{var a=Ma;for(me=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Ma=null,du=!1}catch(o){throw Ma!==null&&(Ma=Ma.slice(e+1)),tx(Xf,wr),o}finally{me=t,_c=!1}}return null}var qo=[],Wo=0,jl=null,Kl=0,qt=[],Wt=0,oo=null,Na=1,Ea="";function Qr(e,t){qo[Wo++]=Kl,qo[Wo++]=jl,jl=e,Kl=t}function Dx(e,t,a){qt[Wt++]=Na,qt[Wt++]=Ea,qt[Wt++]=oo,oo=e;var r=Na;e=Ea;var o=32-aa(r)-1;r&=~(1<<o),a+=1;var n=32-aa(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Na=1<<32-aa(t)+o|a<<o|r,Ea=n+e}else Na=1<<n|a<<o|r,Ea=e}function op(e){e.return!==null&&(Qr(e,1),Dx(e,1,0))}function np(e){for(;e===jl;)jl=qo[--Wo],qo[Wo]=null,Kl=qo[--Wo],qo[Wo]=null;for(;e===oo;)oo=qt[--Wt],qt[Wt]=null,Ea=qt[--Wt],qt[Wt]=null,Na=qt[--Wt],qt[Wt]=null}var Dt=null,Rt=null,we=!1,ta=null;function Mx(e,t){var a=Gt(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 lg(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,Dt=e,Rt=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=oo!==null?{id:Na,overflow:Ea}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Gt(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Dt=e,Rt=null,!0):!1;default:return!1}}function If(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wf(e){if(we){var t=Rt;if(t){var a=t;if(!lg(e,t)){if(If(e))throw Error(R(418));t=hr(a.nextSibling);var r=Dt;t&&lg(e,t)?Mx(r,a):(e.flags=e.flags&-4097|2,we=!1,Dt=e)}}else{if(If(e))throw Error(R(418));e.flags=e.flags&-4097|2,we=!1,Dt=e}}}function ug(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function Ll(e){if(e!==Dt)return!1;if(!we)return ug(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vf(e.type,e.memoizedProps)),t&&(t=Rt)){if(If(e))throw Nx(),Error(R(418));for(;t;)Mx(e,t),t=hr(t.nextSibling)}if(ug(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){Rt=hr(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Dt?hr(e.stateNode.nextSibling):null;return!0}function Nx(){for(var e=Rt;e;)e=hr(e.nextSibling)}function an(){Rt=Dt=null,we=!1}function sp(e){ta===null?ta=[e]:ta.push(e)}var cw=_a.ReactCurrentBatchConfig;function ws(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 dg(e){var t=e._init;return t(e._payload)}function Ex(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=vr(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=Kc(x,h.mode,S),m.return=h,m):(m=o(m,x),m.return=h,m)}function l(h,m,x,S){var k=x.type;return k===Oo?d(h,m,x.props.children,S,x.key):m!==null&&(m.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sr&&dg(k)===m.type)?(S=o(m,x.props),S.ref=ws(h,m,x),S.return=h,S):(S=El(x.type,x.key,x.props,null,h.mode,S),S.ref=ws(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=$c(x,h.mode,S),m.return=h,m):(m=o(m,x.children||[]),m.return=h,m)}function d(h,m,x,S,k){return m===null||m.tag!==7?(m=ao(x,h.mode,S,k),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=Kc(""+m,h.mode,x),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case sl:return x=El(m.type,m.key,m.props,null,h.mode,x),x.ref=ws(h,null,m),x.return=h,x;case Bo:return m=$c(m,h.mode,x),m.return=h,m;case sr:var S=m._init;return c(h,S(m._payload),x)}if(As(m)||Ls(m))return m=ao(m,h.mode,x,null),m.return=h,m;Cl(h,m)}return null}function p(h,m,x,S){var k=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return k!==null?null:i(h,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case sl:return x.key===k?l(h,m,x,S):null;case Bo:return x.key===k?u(h,m,x,S):null;case sr:return k=x._init,p(h,m,k(x._payload),S)}if(As(x)||Ls(x))return k!==null?null:d(h,m,x,S,null);Cl(h,x)}return null}function g(h,m,x,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(x)||null,i(m,h,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case sl:return h=h.get(S.key===null?x:S.key)||null,l(m,h,S,k);case Bo:return h=h.get(S.key===null?x:S.key)||null,u(m,h,S,k);case sr:var P=S._init;return g(h,m,x,P(S._payload),k)}if(As(S)||Ls(S))return h=h.get(x)||null,d(m,h,S,k,null);Cl(m,S)}return null}function L(h,m,x,S){for(var k=null,P=null,D=m,A=m=0,V=null;D!==null&&A<x.length;A++){D.index>A?(V=D,D=null):V=D.sibling;var E=p(h,D,x[A],S);if(E===null){D===null&&(D=V);break}e&&D&&E.alternate===null&&t(h,D),m=n(E,m,A),P===null?k=E:P.sibling=E,P=E,D=V}if(A===x.length)return a(h,D),we&&Qr(h,A),k;if(D===null){for(;A<x.length;A++)D=c(h,x[A],S),D!==null&&(m=n(D,m,A),P===null?k=D:P.sibling=D,P=D);return we&&Qr(h,A),k}for(D=r(h,D);A<x.length;A++)V=g(D,h,A,x[A],S),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?A:V.key),m=n(V,m,A),P===null?k=V:P.sibling=V,P=V);return e&&D.forEach(function(ce){return t(h,ce)}),we&&Qr(h,A),k}function C(h,m,x,S){var k=Ls(x);if(typeof k!="function")throw Error(R(150));if(x=k.call(x),x==null)throw Error(R(151));for(var P=k=null,D=m,A=m=0,V=null,E=x.next();D!==null&&!E.done;A++,E=x.next()){D.index>A?(V=D,D=null):V=D.sibling;var ce=p(h,D,E.value,S);if(ce===null){D===null&&(D=V);break}e&&D&&ce.alternate===null&&t(h,D),m=n(ce,m,A),P===null?k=ce:P.sibling=ce,P=ce,D=V}if(E.done)return a(h,D),we&&Qr(h,A),k;if(D===null){for(;!E.done;A++,E=x.next())E=c(h,E.value,S),E!==null&&(m=n(E,m,A),P===null?k=E:P.sibling=E,P=E);return we&&Qr(h,A),k}for(D=r(h,D);!E.done;A++,E=x.next())E=g(D,h,A,E.value,S),E!==null&&(e&&E.alternate!==null&&D.delete(E.key===null?A:E.key),m=n(E,m,A),P===null?k=E:P.sibling=E,P=E);return e&&D.forEach(function(te){return t(h,te)}),we&&Qr(h,A),k}function w(h,m,x,S){if(typeof x=="object"&&x!==null&&x.type===Oo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sl:e:{for(var k=x.key,P=m;P!==null;){if(P.key===k){if(k=x.type,k===Oo){if(P.tag===7){a(h,P.sibling),m=o(P,x.props.children),m.return=h,h=m;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sr&&dg(k)===P.type){a(h,P.sibling),m=o(P,x.props),m.ref=ws(h,P,x),m.return=h,h=m;break e}a(h,P);break}else t(h,P);P=P.sibling}x.type===Oo?(m=ao(x.props.children,h.mode,S,x.key),m.return=h,h=m):(S=El(x.type,x.key,x.props,null,h.mode,S),S.ref=ws(h,m,x),S.return=h,h=S)}return s(h);case Bo:e:{for(P=x.key;m!==null;){if(m.key===P)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=$c(x,h.mode,S),m.return=h,h=m}return s(h);case sr:return P=x._init,w(h,m,P(x._payload),S)}if(As(x))return L(h,m,x,S);if(Ls(x))return C(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=Kc(x,h.mode,S),m.return=h,h=m),s(h)):a(h,m)}return w}var rn=Ex(!0),Fx=Ex(!1),$l=Ir(null),Xl=null,Go=null,ip=null;function lp(){ip=Go=Xl=null}function up(e){var t=$l.current;Le($l),e._currentValue=t}function kf(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){Xl=e,ip=Go=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(yt=!0),e.firstContext=null)}function Kt(e){var t=e._currentValue;if(ip!==e)if(e={context:e,memoizedValue:t,next:null},Go===null){if(Xl===null)throw Error(R(308));Go=e,Xl.dependencies={lanes:0,firstContext:e}}else Go=Go.next=e;return t}var Jr=null;function dp(e){Jr===null?Jr=[e]:Jr.push(e)}function Bx(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,dp(t)):(a.next=o.next,o.next=a),t.interleaved=a,Va(e,r)}function Va(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 ir=!1;function cp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ox(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 Fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gr(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ie&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Va(e,a)}return o=r.interleaved,o===null?(t.next=t,dp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Va(e,a)}function Tl(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,Qf(e,a)}}function cg(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 Ql(e,t,a,r){var o=e.updateQueue;ir=!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 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 L=e,C=i;switch(p=t,g=a,C.tag){case 1:if(L=C.payload,typeof L=="function"){c=L.call(g,c,p);break e}c=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=C.payload,p=typeof L=="function"?L.call(g,c,p):L,p==null)break e;c=Pe({},c,p);break e;case 2:ir=!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=c):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=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);so|=s,e.lanes=s,e.memoizedState=c}}function fg(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 ii={},ha=Ir(ii),Zs=Ir(ii),Js=Ir(ii);function eo(e){if(e===ii)throw Error(R(174));return e}function fp(e,t){switch(xe(Js,t),xe(Zs,e),xe(ha,ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:of(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=of(t,e)}Le(ha),xe(ha,t)}function on(){Le(ha),Le(Zs),Le(Js)}function Vx(e){eo(Js.current);var t=eo(ha.current),a=of(t,e.type);t!==a&&(xe(Zs,e),xe(ha,a))}function pp(e){Zs.current===e&&(Le(ha),Le(Zs))}var ke=Ir(0);function Yl(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 zc=[];function mp(){for(var e=0;e<zc.length;e++)zc[e]._workInProgressVersionPrimary=null;zc.length=0}var Al=_a.ReactCurrentDispatcher,Hc=_a.ReactCurrentBatchConfig,no=0,be=null,Ve=null,qe=null,Zl=!1,Os=!1,ei=0,fw=0;function at(){throw Error(R(321))}function hp(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!oa(e[a],t[a]))return!1;return!0}function gp(e,t,a,r,o,n){if(no=n,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Al.current=e===null||e.memoizedState===null?gw:xw,e=a(r,o),Os){n=0;do{if(Os=!1,ei=0,25<=n)throw Error(R(301));n+=1,qe=Ve=null,t.updateQueue=null,Al.current=yw,e=a(r,o)}while(Os)}if(Al.current=Jl,t=Ve!==null&&Ve.next!==null,no=0,qe=Ve=be=null,Zl=!1,t)throw Error(R(300));return e}function xp(){var e=ei!==0;return ei=0,e}function fa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?be.memoizedState=qe=e:qe=qe.next=e,qe}function $t(){if(Ve===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=qe===null?be.memoizedState:qe.next;if(t!==null)qe=t,Ve=e;else{if(e===null)throw Error(R(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},qe===null?be.memoizedState=qe=e:qe=qe.next=e}return qe}function ti(e,t){return typeof t=="function"?t(e):t}function qc(e){var t=$t(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=Ve,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((no&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,so|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,oa(r,t.memoizedState)||(yt=!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,so|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Wc(e){var t=$t(),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);oa(n,t.memoizedState)||(yt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Ux(){}function _x(e,t){var a=be,r=$t(),o=t(),n=!oa(r.memoizedState,o);if(n&&(r.memoizedState=o,yt=!0),r=r.queue,yp(qx.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ai(9,Hx.bind(null,a,r,o,t),void 0,null),We===null)throw Error(R(349));(no&30)!==0||zx(a,t,o)}return o}function zx(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 Hx(e,t,a,r){t.value=a,t.getSnapshot=r,Wx(t)&&Gx(e)}function qx(e,t,a){return a(function(){Wx(t)&&Gx(e)})}function Wx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!oa(e,a)}catch{return!0}}function Gx(e){var t=Va(e,1);t!==null&&ra(t,e,1,-1)}function pg(e){var t=fa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=hw.bind(null,be,e),[t.memoizedState,e]}function ai(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 jx(){return $t().memoizedState}function Rl(e,t,a,r){var o=fa();be.flags|=e,o.memoizedState=ai(1|t,a,void 0,r===void 0?null:r)}function cu(e,t,a,r){var o=$t();r=r===void 0?null:r;var n=void 0;if(Ve!==null){var s=Ve.memoizedState;if(n=s.destroy,r!==null&&hp(r,s.deps)){o.memoizedState=ai(t,a,n,r);return}}be.flags|=e,o.memoizedState=ai(1|t,a,n,r)}function mg(e,t){return Rl(8390656,8,e,t)}function yp(e,t){return cu(2048,8,e,t)}function Kx(e,t){return cu(4,2,e,t)}function $x(e,t){return cu(4,4,e,t)}function Xx(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 Qx(e,t,a){return a=a!=null?a.concat([e]):null,cu(4,4,Xx.bind(null,t,e),a)}function vp(){}function Yx(e,t){var a=$t();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&hp(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Zx(e,t){var a=$t();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&hp(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Jx(e,t,a){return(no&21)===0?(e.baseState&&(e.baseState=!1,yt=!0),e.memoizedState=a):(oa(a,t)||(a=ox(),be.lanes|=a,so|=a,e.baseState=!0),t)}function pw(e,t){var a=me;me=a!==0&&4>a?a:4,e(!0);var r=Hc.transition;Hc.transition={};try{e(!1),t()}finally{me=a,Hc.transition=r}}function ey(){return $t().memoizedState}function mw(e,t,a){var r=yr(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},ty(e))ay(t,a);else if(a=Bx(e,t,a,r),a!==null){var o=ft();ra(a,e,r,o),ry(a,t,r)}}function hw(e,t,a){var r=yr(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(ty(e))ay(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,oa(i,s)){var l=t.interleaved;l===null?(o.next=o,dp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Bx(e,t,o,r),a!==null&&(o=ft(),ra(a,e,r,o),ry(a,t,r))}}function ty(e){var t=e.alternate;return e===be||t!==null&&t===be}function ay(e,t){Os=Zl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ry(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qf(e,a)}}var Jl={readContext:Kt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},gw={readContext:Kt,useCallback:function(e,t){return fa().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:mg,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Rl(4194308,4,Xx.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var a=fa();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=fa();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=mw.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=fa();return e={current:e},t.memoizedState=e},useState:pg,useDebugValue:vp,useDeferredValue:function(e){return fa().memoizedState=e},useTransition:function(){var e=pg(!1),t=e[0];return e=pw.bind(null,e[1]),fa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=be,o=fa();if(we){if(a===void 0)throw Error(R(407));a=a()}else{if(a=t(),We===null)throw Error(R(349));(no&30)!==0||zx(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,mg(qx.bind(null,r,n,e),[e]),r.flags|=2048,ai(9,Hx.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=fa(),t=We.identifierPrefix;if(we){var a=Ea,r=Na;a=(r&~(1<<32-aa(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=ei++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=fw++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xw={readContext:Kt,useCallback:Yx,useContext:Kt,useEffect:yp,useImperativeHandle:Qx,useInsertionEffect:Kx,useLayoutEffect:$x,useMemo:Zx,useReducer:qc,useRef:jx,useState:function(){return qc(ti)},useDebugValue:vp,useDeferredValue:function(e){var t=$t();return Jx(t,Ve.memoizedState,e)},useTransition:function(){var e=qc(ti)[0],t=$t().memoizedState;return[e,t]},useMutableSource:Ux,useSyncExternalStore:_x,useId:ey,unstable_isNewReconciler:!1},yw={readContext:Kt,useCallback:Yx,useContext:Kt,useEffect:yp,useImperativeHandle:Qx,useInsertionEffect:Kx,useLayoutEffect:$x,useMemo:Zx,useReducer:Wc,useRef:jx,useState:function(){return Wc(ti)},useDebugValue:vp,useDeferredValue:function(e){var t=$t();return Ve===null?t.memoizedState=e:Jx(t,Ve.memoizedState,e)},useTransition:function(){var e=Wc(ti)[0],t=$t().memoizedState;return[e,t]},useMutableSource:Ux,useSyncExternalStore:_x,useId:ey,unstable_isNewReconciler:!1};function Jt(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 bf(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 fu={isMounted:function(e){return(e=e._reactInternals)?uo(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=ft(),o=yr(e),n=Fa(r,o);n.payload=t,a!=null&&(n.callback=a),t=gr(e,n,o),t!==null&&(ra(t,e,o,r),Tl(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=ft(),o=yr(e),n=Fa(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=gr(e,n,o),t!==null&&(ra(t,e,o,r),Tl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ft(),r=yr(e),o=Fa(a,r);o.tag=2,t!=null&&(o.callback=t),t=gr(e,o,r),t!==null&&(ra(t,e,r,a),Tl(t,e,r))}};function hg(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?!$s(a,r)||!$s(o,n):!0}function oy(e,t,a){var r=!1,o=Cr,n=t.contextType;return typeof n=="object"&&n!==null?n=Kt(n):(o=Lt(t)?ro:nt.current,r=t.contextTypes,n=(r=r!=null)?tn(e,o):Cr),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function gg(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&&fu.enqueueReplaceState(t,t.state,null)}function Pf(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},cp(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Kt(n):(n=Lt(t)?ro:nt.current,o.context=tn(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(bf(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&&fu.enqueueReplaceState(o,o.state,null),Ql(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function nn(e,t){try{var a="",r=t;do a+=$S(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{bc=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?bs(e):""}function WS(e){switch(e.tag){case 5:return bs(e.type);case 16:return bs("Lazy");case 13:return bs("Suspense");case 19:return bs("SuspenseList");case 0:case 2:case 15:return e=Pc(e.type,!1),e;case 11:return e=Pc(e.type.render,!1),e;case 1:return e=Pc(e.type,!0),e;default:return""}}function Yc(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 Oo:return"Fragment";case Bo:return"Portal";case $c:return"Profiler";case qf:return"StrictMode";case Xc:return"Suspense";case Qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Eg:return(e.displayName||"Context")+".Consumer";case Ng:return(e._context.displayName||"Context")+".Provider";case Wf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gf:return t=e.displayName||null,t!==null?t:Yc(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Yc(e(t))}catch{}}return null}function GS(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 Yc(t);case 8:return t===qf?"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 vr(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 jS(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 ol(e){e._valueTracker||(e._valueTracker=jS(e))}function Og(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 Ml(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 Zc(e,t){var a=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Ah(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=vr(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 Vg(e,t){t=t.checked,t!=null&&Hf(e,"checked",t,!1)}function Jc(e,t){Vg(e,t);var a=vr(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")?ef(e,t.type,a):t.hasOwnProperty("defaultValue")&&ef(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rh(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 ef(e,t,a){(t!=="number"||Ml(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var Ps=Array.isArray;function $o(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=""+vr(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 tf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dh(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(Ps(a)){if(1<a.length)throw Error(R(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:vr(a)}}function Ug(e,t){var a=vr(t.value),r=vr(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 Mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _g(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 af(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_g(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nl,zg=(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(nl=nl||document.createElement("div"),nl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _s(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Rs={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},KS=["Webkit","ms","Moz","O"];Object.keys(Rs).forEach(function(e){KS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rs[t]=Rs[e]})});function Hg(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Rs.hasOwnProperty(e)&&Rs[e]?(""+t).trim():t+"px"}function qg(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Hg(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var $S=Te({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 rf(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 of(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 nf=null;function jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sf=null,Xo=null,Qo=null;function Nh(e){if(e=oi(e)){if(typeof sf!="function")throw Error(R(280));var t=e.stateNode;t&&(t=su(t),sf(e.stateNode,e.type,t))}}function Wg(e){Xo?Qo?Qo.push(e):Qo=[e]:Xo=e}function Gg(){if(Xo){var e=Xo,t=Qo;if(Qo=Xo=null,Nh(e),t)for(e=0;e<t.length;e++)Nh(t[e])}}function jg(e,t){return e(t)}function Kg(){}var Tc=!1;function $g(e,t,a){if(Tc)return e(t,a);Tc=!0;try{return jg(e,t,a)}finally{Tc=!1,(Xo!==null||Qo!==null)&&(Kg(),Gg())}}function zs(e,t){var a=e.stateNode;if(a===null)return null;var r=su(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 lf=!1;if(Ba)try{Eo={},Object.defineProperty(Eo,"passive",{get:function(){lf=!0}}),window.addEventListener("test",Eo,Eo),window.removeEventListener("test",Eo,Eo)}catch{lf=!1}var Eo;function XS(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 Ds=!1,Nl=null,El=!1,uf=null,QS={onError:function(e){Ds=!0,Nl=e}};function YS(e,t,a,r,o,n,s,i,l){Ds=!1,Nl=null,XS.apply(QS,arguments)}function ZS(e,t,a,r,o,n,s,i,l){if(YS.apply(this,arguments),Ds){if(Ds){var u=Nl;Ds=!1,Nl=null}else throw Error(R(198));El||(El=!0,uf=u)}}function co(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 Xg(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 Eh(e){if(co(e)!==e)throw Error(R(188))}function JS(e){var t=e.alternate;if(!t){if(t=co(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 Eh(o),e;if(n===r)return Eh(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 Qg(e){return e=JS(e),e!==null?Yg(e):null}function Yg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yg(e);if(t!==null)return t;e=e.sibling}return null}var Zg=Mt.unstable_scheduleCallback,Fh=Mt.unstable_cancelCallback,eI=Mt.unstable_shouldYield,tI=Mt.unstable_requestPaint,Me=Mt.unstable_now,aI=Mt.unstable_getCurrentPriorityLevel,Kf=Mt.unstable_ImmediatePriority,Jg=Mt.unstable_UserBlockingPriority,Fl=Mt.unstable_NormalPriority,rI=Mt.unstable_LowPriority,ex=Mt.unstable_IdlePriority,au=null,ha=null;function oI(e){if(ha&&typeof ha.onCommitFiberRoot=="function")try{ha.onCommitFiberRoot(au,e,void 0,(e.current.flags&128)===128)}catch{}}var oa=Math.clz32?Math.clz32:iI,nI=Math.log,sI=Math.LN2;function iI(e){return e>>>=0,e===0?32:31-(nI(e)/sI|0)|0}var sl=64,il=4194304;function Ts(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 Bl(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=Ts(i):(n&=s,n!==0&&(r=Ts(n)))}else s=a&~o,s!==0?r=Ts(s):n!==0&&(r=Ts(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-oa(t),o=1<<a,r|=e[a],t&=~o;return r}function lI(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 uI(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-oa(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=lI(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function df(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tx(){var e=sl;return sl<<=1,(sl&4194240)===0&&(sl=64),e}function Ac(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ai(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-oa(t),e[t]=a}function dI(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-oa(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-oa(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var me=0;function ax(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var rx,Xf,ox,nx,sx,cf=!1,ll=[],cr=null,fr=null,pr=null,Hs=new Map,qs=new Map,ir=[],cI="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":cr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":Hs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qs.delete(t.pointerId)}}function vs(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=oi(t),t!==null&&Xf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function fI(e,t,a,r,o){switch(t){case"focusin":return cr=vs(cr,e,t,a,r,o),!0;case"dragenter":return fr=vs(fr,e,t,a,r,o),!0;case"mouseover":return pr=vs(pr,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return Hs.set(n,vs(Hs.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,qs.set(n,vs(qs.get(n)||null,e,t,a,r,o)),!0}return!1}function ix(e){var t=Jr(e.target);if(t!==null){var a=co(t);if(a!==null){if(t=a.tag,t===13){if(t=Xg(a),t!==null){e.blockedOn=t,sx(e.priority,function(){ox(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 Sl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ff(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);nf=r,a.target.dispatchEvent(r),nf=null}else return t=oi(a),t!==null&&Xf(t),e.blockedOn=a,!1;t.shift()}return!0}function Oh(e,t,a){Sl(e)&&a.delete(t)}function pI(){cf=!1,cr!==null&&Sl(cr)&&(cr=null),fr!==null&&Sl(fr)&&(fr=null),pr!==null&&Sl(pr)&&(pr=null),Hs.forEach(Oh),qs.forEach(Oh)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,cf||(cf=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,pI)))}function Ws(e){function t(o){return Ls(o,e)}if(0<ll.length){Ls(ll[0],e);for(var a=1;a<ll.length;a++){var r=ll[a];r.blockedOn===e&&(r.blockedOn=null)}}for(cr!==null&&Ls(cr,e),fr!==null&&Ls(fr,e),pr!==null&&Ls(pr,e),Hs.forEach(t),qs.forEach(t),a=0;a<ir.length;a++)r=ir[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<ir.length&&(a=ir[0],a.blockedOn===null);)ix(a),a.blockedOn===null&&ir.shift()}var Yo=_a.ReactCurrentBatchConfig,Ol=!0;function mI(e,t,a,r){var o=me,n=Yo.transition;Yo.transition=null;try{me=1,Qf(e,t,a,r)}finally{me=o,Yo.transition=n}}function hI(e,t,a,r){var o=me,n=Yo.transition;Yo.transition=null;try{me=4,Qf(e,t,a,r)}finally{me=o,Yo.transition=n}}function Qf(e,t,a,r){if(Ol){var o=ff(e,t,a,r);if(o===null)Bc(e,t,r,Vl,a),Bh(e,r);else if(fI(o,e,t,a,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<cI.indexOf(e)){for(;o!==null;){var n=oi(o);if(n!==null&&rx(n),n=ff(e,t,a,r),n===null&&Bc(e,t,r,Vl,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else Bc(e,t,r,null,a)}}var Vl=null;function ff(e,t,a,r){if(Vl=null,e=jf(r),e=Jr(e),e!==null)if(t=co(e),t===null)e=null;else if(a=t.tag,a===13){if(e=Xg(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 Vl=e,null}function lx(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(aI()){case Kf:return 1;case Jg:return 4;case Fl:case rI:return 16;case ex:return 536870912;default:return 16}default:return 16}}var ur=null,Yf=null,Il=null;function ux(){if(Il)return Il;var e,t=Yf,a=t.length,r,o="value"in ur?ur.value:ur.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 Il=o.slice(e,1<r?1-r:void 0)}function wl(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 ul(){return!0}function Vh(){return!1}function Nt(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)?ul:Vh,this.isPropagationStopped=Vh,this}return Te(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=ul)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ul)},persist:function(){},isPersistent:ul}),t}var ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zf=Nt(ln),ri=Te({},ln,{view:0,detail:0}),gI=Nt(ri),Rc,Dc,Cs,ru=Te({},ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jf,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!==Cs&&(Cs&&e.type==="mousemove"?(Rc=e.screenX-Cs.screenX,Dc=e.screenY-Cs.screenY):Dc=Rc=0,Cs=e),Rc)},movementY:function(e){return"movementY"in e?e.movementY:Dc}}),Uh=Nt(ru),xI=Te({},ru,{dataTransfer:0}),yI=Nt(xI),vI=Te({},ri,{relatedTarget:0}),Mc=Nt(vI),LI=Te({},ln,{animationName:0,elapsedTime:0,pseudoElement:0}),CI=Nt(LI),SI=Te({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),II=Nt(SI),wI=Te({},ln,{data:0}),_h=Nt(wI),kI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bI={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"},PI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PI[e])?!!t[e]:!1}function Jf(){return TI}var AI=Te({},ri,{key:function(e){if(e.key){var t=kI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jf,charCode:function(e){return e.type==="keypress"?wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RI=Nt(AI),DI=Te({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zh=Nt(DI),MI=Te({},ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jf}),NI=Nt(MI),EI=Te({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),FI=Nt(EI),BI=Te({},ru,{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}),OI=Nt(BI),VI=[9,13,27,32],ep=Ba&&"CompositionEvent"in window,Ms=null;Ba&&"documentMode"in document&&(Ms=document.documentMode);var UI=Ba&&"TextEvent"in window&&!Ms,dx=Ba&&(!ep||Ms&&8<Ms&&11>=Ms),Hh=" ",qh=!1;function cx(e,t){switch(e){case"keyup":return VI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vo=!1;function _I(e,t){switch(e){case"compositionend":return fx(t);case"keypress":return t.which!==32?null:(qh=!0,Hh);case"textInput":return e=t.data,e===Hh&&qh?null:e;default:return null}}function zI(e,t){if(Vo)return e==="compositionend"||!ep&&cx(e,t)?(e=ux(),Il=Yf=ur=null,Vo=!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 dx&&t.locale!=="ko"?null:t.data;default:return null}}var HI={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HI[e.type]:t==="textarea"}function px(e,t,a,r){Wg(r),t=Ul(t,"onChange"),0<t.length&&(a=new Zf("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Ns=null,Gs=null;function qI(e){wx(e,0)}function ou(e){var t=zo(e);if(Og(t))return e}function WI(e,t){if(e==="change")return t}var mx=!1;Ba&&(Ba?(cl="oninput"in document,cl||(Nc=document.createElement("div"),Nc.setAttribute("oninput","return;"),cl=typeof Nc.oninput=="function"),dl=cl):dl=!1,mx=dl&&(!document.documentMode||9<document.documentMode));var dl,cl,Nc;function Gh(){Ns&&(Ns.detachEvent("onpropertychange",hx),Gs=Ns=null)}function hx(e){if(e.propertyName==="value"&&ou(Gs)){var t=[];px(t,Gs,e,jf(e)),$g(qI,t)}}function GI(e,t,a){e==="focusin"?(Gh(),Ns=t,Gs=a,Ns.attachEvent("onpropertychange",hx)):e==="focusout"&&Gh()}function jI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ou(Gs)}function KI(e,t){if(e==="click")return ou(t)}function $I(e,t){if(e==="input"||e==="change")return ou(t)}function XI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sa=typeof Object.is=="function"?Object.is:XI;function js(e,t){if(sa(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(!Kc.call(t,o)||!sa(e[o],t[o]))return!1}return!0}function jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kh(e,t){var a=jh(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=jh(a)}}function gx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xx(){for(var e=window,t=Ml();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ml(e.document)}return t}function tp(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 QI(e){var t=xx(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&gx(a.ownerDocument.documentElement,a)){if(r!==null&&tp(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=Kh(a,n);var s=Kh(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 YI=Ba&&"documentMode"in document&&11>=document.documentMode,Uo=null,pf=null,Es=null,mf=!1;function $h(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;mf||Uo==null||Uo!==Ml(r)||(r=Uo,"selectionStart"in r&&tp(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}),Es&&js(Es,r)||(Es=r,r=Ul(pf,"onSelect"),0<r.length&&(t=new Zf("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Uo)))}function fl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var _o={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionend:fl("Transition","TransitionEnd")},Ec={},yx={};Ba&&(yx=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function nu(e){if(Ec[e])return Ec[e];if(!_o[e])return e;var t=_o[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in yx)return Ec[e]=t[a];return e}var vx=nu("animationend"),Lx=nu("animationiteration"),Cx=nu("animationstart"),Sx=nu("transitionend"),Ix=new Map,Xh="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 Cr(e,t){Ix.set(e,t),uo(t,[e])}for(pl=0;pl<Xh.length;pl++)ml=Xh[pl],Qh=ml.toLowerCase(),Yh=ml[0].toUpperCase()+ml.slice(1),Cr(Qh,"on"+Yh);var ml,Qh,Yh,pl;Cr(vx,"onAnimationEnd");Cr(Lx,"onAnimationIteration");Cr(Cx,"onAnimationStart");Cr("dblclick","onDoubleClick");Cr("focusin","onFocus");Cr("focusout","onBlur");Cr(Sx,"onTransitionEnd");en("onMouseEnter",["mouseout","mouseover"]);en("onMouseLeave",["mouseout","mouseover"]);en("onPointerEnter",["pointerout","pointerover"]);en("onPointerLeave",["pointerout","pointerover"]);uo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));uo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));uo("onBeforeInput",["compositionend","keypress","textInput","paste"]);uo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));uo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));uo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var As="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(" "),ZI=new Set("cancel close invalid load scroll toggle".split(" ").concat(As));function Zh(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,ZS(r,t,void 0,e),e.currentTarget=null}function wx(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;Zh(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;Zh(o,i,u),n=l}}}if(El)throw e=uf,El=!1,uf=null,e}function Le(e,t){var a=t[vf];a===void 0&&(a=t[vf]=new Set);var r=e+"__bubble";a.has(r)||(kx(t,e,2,!1),a.add(r))}function Fc(e,t,a){var r=0;t&&(r|=4),kx(a,e,r,t)}var hl="_reactListening"+Math.random().toString(36).slice(2);function Ks(e){if(!e[hl]){e[hl]=!0,Mg.forEach(function(a){a!=="selectionchange"&&(ZI.has(a)||Fc(a,!1,e),Fc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hl]||(t[hl]=!0,Fc("selectionchange",!1,t))}}function kx(e,t,a,r){switch(lx(t)){case 1:var o=mI;break;case 4:o=hI;break;default:o=Qf}a=o.bind(null,t,a,e),o=void 0,!lf||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 Bc(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=Jr(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}$g(function(){var u=n,d=jf(a),c=[];e:{var f=Ix.get(e);if(f!==void 0){var g=Zf,L=e;switch(e){case"keypress":if(wl(a)===0)break e;case"keydown":case"keyup":g=RI;break;case"focusin":L="focus",g=Mc;break;case"focusout":L="blur",g=Mc;break;case"beforeblur":case"afterblur":g=Mc;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=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=yI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=NI;break;case vx:case Lx:case Cx:g=CI;break;case Sx:g=FI;break;case"scroll":g=gI;break;case"wheel":g=OI;break;case"copy":case"cut":case"paste":g=II;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=zh}var C=(t&4)!==0,k=!C&&e==="scroll",h=C?f!==null?f+"Capture":null:f;C=[];for(var m=u,x;m!==null;){x=m;var w=x.stateNode;if(x.tag===5&&w!==null&&(x=w,h!==null&&(w=zs(m,h),w!=null&&C.push($s(m,w,x)))),k)break;m=m.return}0<C.length&&(f=new g(f,L,null,a,d),c.push({event:f,listeners:C}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&a!==nf&&(L=a.relatedTarget||a.fromElement)&&(Jr(L)||L[Oa]))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?Jr(L):null,L!==null&&(k=co(L),L!==k||L.tag!==5&&L.tag!==6)&&(L=null)):(g=null,L=u),g!==L)){if(C=Uh,w="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(C=zh,w="onPointerLeave",h="onPointerEnter",m="pointer"),k=g==null?f:zo(g),x=L==null?f:zo(L),f=new C(w,m+"leave",g,a,d),f.target=k,f.relatedTarget=x,w=null,Jr(d)===u&&(C=new C(h,m+"enter",L,a,d),C.target=x,C.relatedTarget=k,w=C),k=w,g&&L)t:{for(C=g,h=L,m=0,x=C;x;x=Fo(x))m++;for(x=0,w=h;w;w=Fo(w))x++;for(;0<m-x;)C=Fo(C),m--;for(;0<x-m;)h=Fo(h),x--;for(;m--;){if(C===h||h!==null&&C===h.alternate)break t;C=Fo(C),h=Fo(h)}C=null}else C=null;g!==null&&Jh(c,f,g,C,!1),L!==null&&k!==null&&Jh(c,k,L,C,!0)}}e:{if(f=u?zo(u):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var S=WI;else if(Wh(f))if(mx)S=$I;else{S=jI;var P=GI}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=KI);if(S&&(S=S(e,u))){px(c,S,a,d);break e}P&&P(e,f,u),e==="focusout"&&(P=f._wrapperState)&&P.controlled&&f.type==="number"&&ef(f,"number",f.value)}switch(P=u?zo(u):window,e){case"focusin":(Wh(P)||P.contentEditable==="true")&&(Uo=P,pf=u,Es=null);break;case"focusout":Es=pf=Uo=null;break;case"mousedown":mf=!0;break;case"contextmenu":case"mouseup":case"dragend":mf=!1,$h(c,a,d);break;case"selectionchange":if(YI)break;case"keydown":case"keyup":$h(c,a,d)}var D;if(ep)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Vo?cx(e,a)&&(A="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(A="onCompositionStart");A&&(dx&&a.locale!=="ko"&&(Vo||A!=="onCompositionStart"?A==="onCompositionEnd"&&Vo&&(D=ux()):(ur=d,Yf="value"in ur?ur.value:ur.textContent,Vo=!0)),P=Ul(u,A),0<P.length&&(A=new _h(A,e,null,a,d),c.push({event:A,listeners:P}),D?A.data=D:(D=fx(a),D!==null&&(A.data=D)))),(D=UI?_I(e,a):zI(e,a))&&(u=Ul(u,"onBeforeInput"),0<u.length&&(d=new _h("onBeforeInput","beforeinput",null,a,d),c.push({event:d,listeners:u}),d.data=D))}wx(c,t)})}function $s(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ul(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=zs(e,a),n!=null&&r.unshift($s(e,n,o)),n=zs(e,t),n!=null&&r.push($s(e,n,o))),e=e.return}return r}function Fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jh(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=zs(a,n),l!=null&&s.unshift($s(a,l,i))):o||(l=zs(a,n),l!=null&&s.push($s(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var JI=/\r\n?/g,ew=/\u0000|\uFFFD/g;function eg(e){return(typeof e=="string"?e:""+e).replace(JI,`
6
+ `).replace(ew,"")}function gl(e,t,a){if(t=eg(t),eg(e)!==t&&a)throw Error(R(425))}function _l(){}var hf=null,gf=null;function xf(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 yf=typeof setTimeout=="function"?setTimeout:void 0,tw=typeof clearTimeout=="function"?clearTimeout:void 0,tg=typeof Promise=="function"?Promise:void 0,aw=typeof queueMicrotask=="function"?queueMicrotask:typeof tg<"u"?function(e){return tg.resolve(null).then(e).catch(rw)}:yf;function rw(e){setTimeout(function(){throw e})}function Oc(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),Ws(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);Ws(t)}function mr(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 ag(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 un=Math.random().toString(36).slice(2),ma="__reactFiber$"+un,Xs="__reactProps$"+un,Oa="__reactContainer$"+un,vf="__reactEvents$"+un,ow="__reactListeners$"+un,nw="__reactHandles$"+un;function Jr(e){var t=e[ma];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Oa]||a[ma]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ag(e);e!==null;){if(a=e[ma])return a;e=ag(e)}return t}e=a,a=e.parentNode}return null}function oi(e){return e=e[ma]||e[Oa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function su(e){return e[Xs]||null}var Lf=[],Ho=-1;function Sr(e){return{current:e}}function Ce(e){0>Ho||(e.current=Lf[Ho],Lf[Ho]=null,Ho--)}function ye(e,t){Ho++,Lf[Ho]=e.current,e.current=t}var Lr={},nt=Sr(Lr),vt=Sr(!1),oo=Lr;function tn(e,t){var a=e.type.contextTypes;if(!a)return Lr;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 Lt(e){return e=e.childContextTypes,e!=null}function zl(){Ce(vt),Ce(nt)}function rg(e,t,a){if(nt.current!==Lr)throw Error(R(168));ye(nt,t),ye(vt,a)}function bx(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,GS(e)||"Unknown",o));return Te({},a,r)}function Hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lr,oo=nt.current,ye(nt,e),ye(vt,vt.current),!0}function og(e,t,a){var r=e.stateNode;if(!r)throw Error(R(169));a?(e=bx(e,t,oo),r.__reactInternalMemoizedMergedChildContext=e,Ce(vt),Ce(nt),ye(nt,e)):Ce(vt),ye(vt,a)}var Ma=null,iu=!1,Vc=!1;function Px(e){Ma===null?Ma=[e]:Ma.push(e)}function sw(e){iu=!0,Px(e)}function Ir(){if(!Vc&&Ma!==null){Vc=!0;var e=0,t=me;try{var a=Ma;for(me=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}Ma=null,iu=!1}catch(o){throw Ma!==null&&(Ma=Ma.slice(e+1)),Zg(Kf,Ir),o}finally{me=t,Vc=!1}}return null}var qo=[],Wo=0,ql=null,Wl=0,Gt=[],jt=0,no=null,Na=1,Ea="";function Yr(e,t){qo[Wo++]=Wl,qo[Wo++]=ql,ql=e,Wl=t}function Tx(e,t,a){Gt[jt++]=Na,Gt[jt++]=Ea,Gt[jt++]=no,no=e;var r=Na;e=Ea;var o=32-oa(r)-1;r&=~(1<<o),a+=1;var n=32-oa(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Na=1<<32-oa(t)+o|a<<o|r,Ea=n+e}else Na=1<<n|a<<o|r,Ea=e}function ap(e){e.return!==null&&(Yr(e,1),Tx(e,1,0))}function rp(e){for(;e===ql;)ql=qo[--Wo],qo[Wo]=null,Wl=qo[--Wo],qo[Wo]=null;for(;e===no;)no=Gt[--jt],Gt[jt]=null,Ea=Gt[--jt],Gt[jt]=null,Na=Gt[--jt],Gt[jt]=null}var Dt=null,Rt=null,ke=!1,ra=null;function Ax(e,t){var a=Kt(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 ng(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,Dt=e,Rt=mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=no!==null?{id:Na,overflow:Ea}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Kt(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Dt=e,Rt=null,!0):!1;default:return!1}}function Cf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sf(e){if(ke){var t=Rt;if(t){var a=t;if(!ng(e,t)){if(Cf(e))throw Error(R(418));t=mr(a.nextSibling);var r=Dt;t&&ng(e,t)?Ax(r,a):(e.flags=e.flags&-4097|2,ke=!1,Dt=e)}}else{if(Cf(e))throw Error(R(418));e.flags=e.flags&-4097|2,ke=!1,Dt=e}}}function sg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function xl(e){if(e!==Dt)return!1;if(!ke)return sg(e),ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xf(e.type,e.memoizedProps)),t&&(t=Rt)){if(Cf(e))throw Rx(),Error(R(418));for(;t;)Ax(e,t),t=mr(t.nextSibling)}if(sg(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){Rt=mr(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Dt?mr(e.stateNode.nextSibling):null;return!0}function Rx(){for(var e=Rt;e;)e=mr(e.nextSibling)}function an(){Rt=Dt=null,ke=!1}function op(e){ra===null?ra=[e]:ra.push(e)}var iw=_a.ReactCurrentBatchConfig;function Ss(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 yl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ig(e){var t=e._init;return t(e._payload)}function Dx(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=yr(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,w){return m===null||m.tag!==6?(m=Gc(x,h.mode,w),m.return=h,m):(m=o(m,x),m.return=h,m)}function l(h,m,x,w){var S=x.type;return S===Oo?d(h,m,x.props.children,w,x.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===nr&&ig(S)===m.type)?(w=o(m,x.props),w.ref=Ss(h,m,x),w.return=h,w):(w=Dl(x.type,x.key,x.props,null,h.mode,w),w.ref=Ss(h,m,x),w.return=h,w)}function u(h,m,x,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=jc(x,h.mode,w),m.return=h,m):(m=o(m,x.children||[]),m.return=h,m)}function d(h,m,x,w,S){return m===null||m.tag!==7?(m=ro(x,h.mode,w,S),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=Gc(""+m,h.mode,x),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case rl:return x=Dl(m.type,m.key,m.props,null,h.mode,x),x.ref=Ss(h,null,m),x.return=h,x;case Bo:return m=jc(m,h.mode,x),m.return=h,m;case nr:var w=m._init;return c(h,w(m._payload),x)}if(Ps(m)||ys(m))return m=ro(m,h.mode,x,null),m.return=h,m;yl(h,m)}return null}function f(h,m,x,w){var S=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:i(h,m,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case rl:return x.key===S?l(h,m,x,w):null;case Bo:return x.key===S?u(h,m,x,w):null;case nr:return S=x._init,f(h,m,S(x._payload),w)}if(Ps(x)||ys(x))return S!==null?null:d(h,m,x,w,null);yl(h,x)}return null}function g(h,m,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(x)||null,i(m,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case rl:return h=h.get(w.key===null?x:w.key)||null,l(m,h,w,S);case Bo:return h=h.get(w.key===null?x:w.key)||null,u(m,h,w,S);case nr:var P=w._init;return g(h,m,x,P(w._payload),S)}if(Ps(w)||ys(w))return h=h.get(x)||null,d(m,h,w,S,null);yl(m,w)}return null}function L(h,m,x,w){for(var S=null,P=null,D=m,A=m=0,V=null;D!==null&&A<x.length;A++){D.index>A?(V=D,D=null):V=D.sibling;var U=f(h,D,x[A],w);if(U===null){D===null&&(D=V);break}e&&D&&U.alternate===null&&t(h,D),m=n(U,m,A),P===null?S=U:P.sibling=U,P=U,D=V}if(A===x.length)return a(h,D),ke&&Yr(h,A),S;if(D===null){for(;A<x.length;A++)D=c(h,x[A],w),D!==null&&(m=n(D,m,A),P===null?S=D:P.sibling=D,P=D);return ke&&Yr(h,A),S}for(D=r(h,D);A<x.length;A++)V=g(D,h,A,x[A],w),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?A:V.key),m=n(V,m,A),P===null?S=V:P.sibling=V,P=V);return e&&D.forEach(function(ie){return t(h,ie)}),ke&&Yr(h,A),S}function C(h,m,x,w){var S=ys(x);if(typeof S!="function")throw Error(R(150));if(x=S.call(x),x==null)throw Error(R(151));for(var P=S=null,D=m,A=m=0,V=null,U=x.next();D!==null&&!U.done;A++,U=x.next()){D.index>A?(V=D,D=null):V=D.sibling;var ie=f(h,D,U.value,w);if(ie===null){D===null&&(D=V);break}e&&D&&ie.alternate===null&&t(h,D),m=n(ie,m,A),P===null?S=ie:P.sibling=ie,P=ie,D=V}if(U.done)return a(h,D),ke&&Yr(h,A),S;if(D===null){for(;!U.done;A++,U=x.next())U=c(h,U.value,w),U!==null&&(m=n(U,m,A),P===null?S=U:P.sibling=U,P=U);return ke&&Yr(h,A),S}for(D=r(h,D);!U.done;A++,U=x.next())U=g(D,h,A,U.value,w),U!==null&&(e&&U.alternate!==null&&D.delete(U.key===null?A:U.key),m=n(U,m,A),P===null?S=U:P.sibling=U,P=U);return e&&D.forEach(function(ue){return t(h,ue)}),ke&&Yr(h,A),S}function k(h,m,x,w){if(typeof x=="object"&&x!==null&&x.type===Oo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case rl:e:{for(var S=x.key,P=m;P!==null;){if(P.key===S){if(S=x.type,S===Oo){if(P.tag===7){a(h,P.sibling),m=o(P,x.props.children),m.return=h,h=m;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===nr&&ig(S)===P.type){a(h,P.sibling),m=o(P,x.props),m.ref=Ss(h,P,x),m.return=h,h=m;break e}a(h,P);break}else t(h,P);P=P.sibling}x.type===Oo?(m=ro(x.props.children,h.mode,w,x.key),m.return=h,h=m):(w=Dl(x.type,x.key,x.props,null,h.mode,w),w.ref=Ss(h,m,x),w.return=h,h=w)}return s(h);case Bo:e:{for(P=x.key;m!==null;){if(m.key===P)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=jc(x,h.mode,w),m.return=h,h=m}return s(h);case nr:return P=x._init,k(h,m,P(x._payload),w)}if(Ps(x))return L(h,m,x,w);if(ys(x))return C(h,m,x,w);yl(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=Gc(x,h.mode,w),m.return=h,h=m),s(h)):a(h,m)}return k}var rn=Dx(!0),Mx=Dx(!1),Gl=Sr(null),jl=null,Go=null,np=null;function sp(){np=Go=jl=null}function ip(e){var t=Gl.current;Ce(Gl),e._currentValue=t}function If(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){jl=e,np=Go=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(yt=!0),e.firstContext=null)}function Xt(e){var t=e._currentValue;if(np!==e)if(e={context:e,memoizedValue:t,next:null},Go===null){if(jl===null)throw Error(R(308));Go=e,jl.dependencies={lanes:0,firstContext:e}}else Go=Go.next=e;return t}var eo=null;function lp(e){eo===null?eo=[e]:eo.push(e)}function Nx(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,lp(t)):(a.next=o.next,o.next=a),t.interleaved=a,Va(e,r)}function Va(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 sr=!1;function up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ex(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 Fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hr(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(le&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Va(e,a)}return o=r.interleaved,o===null?(t.next=t,lp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Va(e,a)}function kl(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 lg(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 Kl(e,t,a,r){var o=e.updateQueue;sr=!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,C=i;switch(f=t,g=a,C.tag){case 1:if(L=C.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=C.payload,f=typeof L=="function"?L.call(g,c,f):L,f==null)break e;c=Te({},c,f);break e;case 2:sr=!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);io|=s,e.lanes=s,e.memoizedState=c}}function ug(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 ni={},ga=Sr(ni),Qs=Sr(ni),Ys=Sr(ni);function to(e){if(e===ni)throw Error(R(174));return e}function dp(e,t){switch(ye(Ys,t),ye(Qs,e),ye(ga,ni),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:af(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=af(t,e)}Ce(ga),ye(ga,t)}function on(){Ce(ga),Ce(Qs),Ce(Ys)}function Fx(e){to(Ys.current);var t=to(ga.current),a=af(t,e.type);t!==a&&(ye(Qs,e),ye(ga,a))}function cp(e){Qs.current===e&&(Ce(ga),Ce(Qs))}var be=Sr(0);function $l(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 Uc=[];function fp(){for(var e=0;e<Uc.length;e++)Uc[e]._workInProgressVersionPrimary=null;Uc.length=0}var bl=_a.ReactCurrentDispatcher,_c=_a.ReactCurrentBatchConfig,so=0,Pe=null,Ve=null,qe=null,Xl=!1,Fs=!1,Zs=0,lw=0;function at(){throw Error(R(321))}function pp(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!sa(e[a],t[a]))return!1;return!0}function mp(e,t,a,r,o,n){if(so=n,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bl.current=e===null||e.memoizedState===null?fw:pw,e=a(r,o),Fs){n=0;do{if(Fs=!1,Zs=0,25<=n)throw Error(R(301));n+=1,qe=Ve=null,t.updateQueue=null,bl.current=mw,e=a(r,o)}while(Fs)}if(bl.current=Ql,t=Ve!==null&&Ve.next!==null,so=0,qe=Ve=Pe=null,Xl=!1,t)throw Error(R(300));return e}function hp(){var e=Zs!==0;return Zs=0,e}function pa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Pe.memoizedState=qe=e:qe=qe.next=e,qe}function Qt(){if(Ve===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=qe===null?Pe.memoizedState:qe.next;if(t!==null)qe=t,Ve=e;else{if(e===null)throw Error(R(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},qe===null?Pe.memoizedState=qe=e:qe=qe.next=e}return qe}function Js(e,t){return typeof t=="function"?t(e):t}function zc(e){var t=Qt(),a=t.queue;if(a===null)throw Error(R(311));a.lastRenderedReducer=e;var r=Ve,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((so&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,Pe.lanes|=d,io|=d}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,sa(r,t.memoizedState)||(yt=!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,Pe.lanes|=n,io|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function Hc(e){var t=Qt(),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);sa(n,t.memoizedState)||(yt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Bx(){}function Ox(e,t){var a=Pe,r=Qt(),o=t(),n=!sa(r.memoizedState,o);if(n&&(r.memoizedState=o,yt=!0),r=r.queue,gp(_x.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ei(9,Ux.bind(null,a,r,o,t),void 0,null),We===null)throw Error(R(349));(so&30)!==0||Vx(a,t,o)}return o}function Vx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ux(e,t,a,r){t.value=a,t.getSnapshot=r,zx(t)&&Hx(e)}function _x(e,t,a){return a(function(){zx(t)&&Hx(e)})}function zx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!sa(e,a)}catch{return!0}}function Hx(e){var t=Va(e,1);t!==null&&na(t,e,1,-1)}function dg(e){var t=pa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Js,lastRenderedState:e},t.queue=e,e=e.dispatch=cw.bind(null,Pe,e),[t.memoizedState,e]}function ei(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.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 qx(){return Qt().memoizedState}function Pl(e,t,a,r){var o=pa();Pe.flags|=e,o.memoizedState=ei(1|t,a,void 0,r===void 0?null:r)}function lu(e,t,a,r){var o=Qt();r=r===void 0?null:r;var n=void 0;if(Ve!==null){var s=Ve.memoizedState;if(n=s.destroy,r!==null&&pp(r,s.deps)){o.memoizedState=ei(t,a,n,r);return}}Pe.flags|=e,o.memoizedState=ei(1|t,a,n,r)}function cg(e,t){return Pl(8390656,8,e,t)}function gp(e,t){return lu(2048,8,e,t)}function Wx(e,t){return lu(4,2,e,t)}function Gx(e,t){return lu(4,4,e,t)}function jx(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 Kx(e,t,a){return a=a!=null?a.concat([e]):null,lu(4,4,jx.bind(null,t,e),a)}function xp(){}function $x(e,t){var a=Qt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&pp(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Xx(e,t){var a=Qt();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&pp(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Qx(e,t,a){return(so&21)===0?(e.baseState&&(e.baseState=!1,yt=!0),e.memoizedState=a):(sa(a,t)||(a=tx(),Pe.lanes|=a,io|=a,e.baseState=!0),t)}function uw(e,t){var a=me;me=a!==0&&4>a?a:4,e(!0);var r=_c.transition;_c.transition={};try{e(!1),t()}finally{me=a,_c.transition=r}}function Yx(){return Qt().memoizedState}function dw(e,t,a){var r=xr(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Zx(e))Jx(t,a);else if(a=Nx(e,t,a,r),a!==null){var o=ct();na(a,e,r,o),ey(a,t,r)}}function cw(e,t,a){var r=xr(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zx(e))Jx(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,sa(i,s)){var l=t.interleaved;l===null?(o.next=o,lp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Nx(e,t,o,r),a!==null&&(o=ct(),na(a,e,r,o),ey(a,t,r))}}function Zx(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Jx(e,t){Fs=Xl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ey(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:Xt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},fw={readContext:Xt,useCallback:function(e,t){return pa().memoizedState=[e,t===void 0?null:t],e},useContext:Xt,useEffect:cg,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Pl(4194308,4,jx.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Pl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pl(4,2,e,t)},useMemo:function(e,t){var a=pa();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=pa();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=dw.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=pa();return e={current:e},t.memoizedState=e},useState:dg,useDebugValue:xp,useDeferredValue:function(e){return pa().memoizedState=e},useTransition:function(){var e=dg(!1),t=e[0];return e=uw.bind(null,e[1]),pa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=Pe,o=pa();if(ke){if(a===void 0)throw Error(R(407));a=a()}else{if(a=t(),We===null)throw Error(R(349));(so&30)!==0||Vx(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,cg(_x.bind(null,r,n,e),[e]),r.flags|=2048,ei(9,Ux.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=pa(),t=We.identifierPrefix;if(ke){var a=Ea,r=Na;a=(r&~(1<<32-oa(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Zs++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=lw++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pw={readContext:Xt,useCallback:$x,useContext:Xt,useEffect:gp,useImperativeHandle:Kx,useInsertionEffect:Wx,useLayoutEffect:Gx,useMemo:Xx,useReducer:zc,useRef:qx,useState:function(){return zc(Js)},useDebugValue:xp,useDeferredValue:function(e){var t=Qt();return Qx(t,Ve.memoizedState,e)},useTransition:function(){var e=zc(Js)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Bx,useSyncExternalStore:Ox,useId:Yx,unstable_isNewReconciler:!1},mw={readContext:Xt,useCallback:$x,useContext:Xt,useEffect:gp,useImperativeHandle:Kx,useInsertionEffect:Wx,useLayoutEffect:Gx,useMemo:Xx,useReducer:Hc,useRef:qx,useState:function(){return Hc(Js)},useDebugValue:xp,useDeferredValue:function(e){var t=Qt();return Ve===null?t.memoizedState=e:Qx(t,Ve.memoizedState,e)},useTransition:function(){var e=Hc(Js)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Bx,useSyncExternalStore:Ox,useId:Yx,unstable_isNewReconciler:!1};function ta(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function wf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:Te({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var uu={isMounted:function(e){return(e=e._reactInternals)?co(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=ct(),o=xr(e),n=Fa(r,o);n.payload=t,a!=null&&(n.callback=a),t=hr(e,n,o),t!==null&&(na(t,e,o,r),kl(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=ct(),o=xr(e),n=Fa(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=hr(e,n,o),t!==null&&(na(t,e,o,r),kl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ct(),r=xr(e),o=Fa(a,r);o.tag=2,t!=null&&(o.callback=t),t=hr(e,o,r),t!==null&&(na(t,e,r,a),kl(t,e,r))}};function fg(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?!js(a,r)||!js(o,n):!0}function ty(e,t,a){var r=!1,o=Lr,n=t.contextType;return typeof n=="object"&&n!==null?n=Xt(n):(o=Lt(t)?oo:nt.current,r=t.contextTypes,n=(r=r!=null)?tn(e,o):Lr),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=uu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function pg(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&&uu.enqueueReplaceState(t,t.state,null)}function kf(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},up(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Xt(n):(n=Lt(t)?oo:nt.current,o.context=tn(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(wf(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&&uu.enqueueReplaceState(o,o.state,null),Kl(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function nn(e,t){try{var a="",r=t;do a+=WS(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 Gc(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function Tf(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var vw=typeof WeakMap=="function"?WeakMap:Map;function ny(e,t,a){a=Fa(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){tu||(tu=!0,Vf=r),Tf(e,t)},a}function sy(e,t,a){a=Fa(-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(){Tf(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){Tf(e,t),typeof r!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function xg(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new vw;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=Nw.bind(null,e,t,a),t.then(e,e))}function yg(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 vg(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=Fa(-1,1),t.tag=2,gr(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Lw=_a.ReactCurrentOwner,yt=!1;function ct(e,t,a,r){t.child=e===null?Fx(t,null,a,r):rn(t,e.child,a,r)}function Lg(e,t,a,r,o){a=a.render;var n=t.ref;return Zo(t,o),r=gp(e,t,a,r,n,o),a=xp(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(we&&a&&op(t),t.flags|=1,ct(e,t,r,o),t.child)}function Cg(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Pp(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,iy(e,t,n,r,o)):(e=El(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:$s,a(s,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,e=vr(n,r),e.ref=t.ref,e.return=t,t.child=e}function iy(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if($s(n,r)&&e.ref===t.ref)if(yt=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,Ua(e,t,o)}return Af(e,t,a,r,o)}function ly(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},xe(Ko,At),At|=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,xe(Ko,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,xe(Ko,At),At|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,xe(Ko,At),At|=r;return ct(e,t,o,a),t.child}function uy(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Af(e,t,a,r,o){var n=Lt(a)?ro:nt.current;return n=tn(t,n),Zo(t,o),a=gp(e,t,a,r,n,o),r=xp(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(we&&r&&op(t),t.flags|=1,ct(e,t,a,o),t.child)}function Sg(e,t,a,r,o){if(Lt(a)){var n=!0;Gl(t)}else n=!1;if(Zo(t,o),t.stateNode===null)Dl(e,t),oy(t,a,r),Pf(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=Kt(u):(u=Lt(a)?ro:nt.current,u=tn(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)&&gg(t,s,r,u),ir=!1;var p=t.memoizedState;s.state=p,Ql(t,r,s,o),l=t.memoizedState,i!==r||p!==l||vt.current||ir?(typeof d=="function"&&(bf(t,a,d,r),l=t.memoizedState),(i=ir||hg(t,a,i,r,p,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,Ox(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:Jt(t.type,i),s.props=u,c=t.pendingProps,p=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Kt(l):(l=Lt(a)?ro:nt.current,l=tn(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||p!==l)&&gg(t,s,r,l),ir=!1,p=t.memoizedState,s.state=p,Ql(t,r,s,o);var L=t.memoizedState;i!==c||p!==L||vt.current||ir?(typeof g=="function"&&(bf(t,a,g,r),L=t.memoizedState),(u=ir||hg(t,a,u,r,p,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&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===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&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Rf(e,t,a,r,n,o)}function Rf(e,t,a,r,o,n){uy(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ig(t,a,!1),Ua(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=rn(t,e.child,null,n),t.child=rn(t,null,i,n)):ct(e,t,i,n),t.memoizedState=r.state,o&&ig(t,a,!0),t.child}function dy(e){var t=e.stateNode;t.pendingContext?sg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sg(e,t.context,!1),fp(e,t.containerInfo)}function Ig(e,t,a,r,o){return an(),sp(o),t.flags|=256,ct(e,t,a,r),t.child}var Df={dehydrated:null,treeContext:null,retryLane:0};function Mf(e){return{baseLanes:e,cachePool:null,transitions:null}}function cy(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),xe(ke,o&1),e===null)return wf(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=hu(s,r,0,null),e=ao(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Mf(a),t.memoizedState=Df,e):Lp(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return Cw(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=vr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=vr(i,n):(n=ao(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?Mf(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=Df,r}return n=e.child,e=n.sibling,r=vr(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 Lp(e,t){return t=hu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sl(e,t,a,r){return r!==null&&sp(r),rn(t,e.child,null,a),e=Lp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cw(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=Gc(Error(R(422))),Sl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=hu({mode:"visible",children:r.children},o,0,null),n=ao(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&rn(t,e.child,null,s),t.child.memoizedState=Mf(s),t.memoizedState=Df,n);if((t.mode&1)===0)return Sl(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=Gc(n,r,void 0),Sl(e,t,s,r)}if(i=(s&e.childLanes)!==0,yt||i){if(r=We,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,Va(e,o),ra(r,e,o,-1))}return bp(),r=Gc(Error(R(421))),Sl(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ew.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Rt=hr(o.nextSibling),Dt=t,we=!0,ta=null,e!==null&&(qt[Wt++]=Na,qt[Wt++]=Ea,qt[Wt++]=oo,Na=e.id,Ea=e.overflow,oo=t),t=Lp(t,r.children),t.flags|=4096,t)}function wg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),kf(e.return,t,a)}function jc(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 fy(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(ct(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&&wg(e,a,t);else if(e.tag===19)wg(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(xe(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&&Yl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),jc(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&&Yl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}jc(t,!0,a,null,n);break;case"together":jc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),so|=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=vr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Sw(e,t,a){switch(t.tag){case 3:dy(t),an();break;case 5:Vx(t);break;case 1:Lt(t.type)&&Gl(t);break;case 4:fp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xe($l,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xe(ke,ke.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?cy(e,t,a):(xe(ke,ke.current&1),e=Ua(e,t,a),e!==null?e.sibling:null);xe(ke,ke.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return fy(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,ly(e,t,a)}return Ua(e,t,a)}var py,Nf,my,hy;py=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}};Nf=function(){};my=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,eo(ha.current);var n=null;switch(a){case"input":o=ef(e,o),r=ef(e,r),n=[];break;case"select":o=Pe({},o,{value:void 0}),r=Pe({},r,{value:void 0}),n=[];break;case"textarea":o=rf(e,o),r=rf(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ql)}nf(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"&&(zs.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"&&(zs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ve("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)}};hy=function(e,t,a,r){a!==r&&(t.flags|=4)};function ks(e,t){if(!we)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 rt(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(np(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return Lt(t.type)&&Wl(),rt(t),null;case 3:return r=t.stateNode,on(),Le(vt),Le(nt),mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ta!==null&&(zf(ta),ta=null))),Nf(e,t),rt(t),null;case 5:pp(t);var o=eo(Js.current);if(a=t.type,e!==null&&t.stateNode!=null)my(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 rt(t),null}if(e=eo(ha.current),Ll(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[pa]=t,r[Ys]=n,e=(t.mode&1)!==0,a){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<Ds.length;o++)ve(Ds[o],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":Mh(r,n),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},ve("invalid",r);break;case"textarea":Eh(r,n),ve("invalid",r)}nf(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&&vl(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&vl(r.textContent,i,e),o=["children",""+i]):zs.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ve("scroll",r)}switch(a){case"input":il(r),Nh(r,n,!0);break;case"textarea":il(r),Fh(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=ql)}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=qg(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[pa]=t,e[Ys]=r,py(e,t,!1,!1),t.stateNode=e;e:{switch(s=sf(a,r),a){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ds.length;o++)ve(Ds[o],e);o=r;break;case"source":ve("error",e),o=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=r;break;case"details":ve("toggle",e),o=r;break;case"input":Mh(e,r),o=ef(e,r),ve("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Pe({},r,{value:void 0}),ve("invalid",e);break;case"textarea":Eh(e,r),o=rf(e,r),ve("invalid",e);break;default:o=r}nf(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?jg(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Wg(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&Hs(e,l):typeof l=="number"&&Hs(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(zs.hasOwnProperty(n)?l!=null&&n==="onScroll"&&ve("scroll",e):l!=null&&Wf(e,n,l,s))}switch(a){case"input":il(e),Nh(e,r,!1);break;case"textarea":il(e),Fh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Lr(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?$o(e,!!r.multiple,n,!1):r.defaultValue!=null&&$o(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ql)}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 rt(t),null;case 6:if(e&&t.stateNode!=null)hy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(a=eo(Js.current),eo(ha.current),Ll(t)){if(r=t.stateNode,a=t.memoizedProps,r[pa]=t,(n=r.nodeValue!==a)&&(e=Dt,e!==null))switch(e.tag){case 3:vl(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vl(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[pa]=t,t.stateNode=r}return rt(t),null;case 13:if(Le(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&Rt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Nx(),an(),t.flags|=98560,n=!1;else if(n=Ll(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[pa]=t}else an(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),n=!1}else ta!==null&&(zf(ta),ta=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?Ue===0&&(Ue=3):bp())),t.updateQueue!==null&&(t.flags|=4),rt(t),null);case 4:return on(),Nf(e,t),e===null&&Xs(t.stateNode.containerInfo),rt(t),null;case 10:return up(t.type._context),rt(t),null;case 17:return Lt(t.type)&&Wl(),rt(t),null;case 19:if(Le(ke),n=t.memoizedState,n===null)return rt(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)ks(n,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Yl(e),s!==null){for(t.flags|=128,ks(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 xe(ke,ke.current&1|2),t.child}e=e.sibling}n.tail!==null&&Me()>sn&&(t.flags|=128,r=!0,ks(n,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),ks(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!we)return rt(t),null}else 2*Me()-n.renderingStartTime>sn&&a!==1073741824&&(t.flags|=128,r=!0,ks(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=Me(),t.sibling=null,a=ke.current,xe(ke,r?a&1|2:a&1),t):(rt(t),null);case 22:case 23:return kp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(At&1073741824)!==0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function ww(e,t){switch(np(t),t.tag){case 1:return Lt(t.type)&&Wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return on(),Le(vt),Le(nt),mp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return pp(t),null;case 13:if(Le(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(ke),null;case 4:return on(),null;case 10:return up(t.type._context),null;case 22:case 23:return kp(),null;case 24:return null;default:return null}}var Il=!1,ot=!1,kw=typeof WeakSet=="function"?WeakSet:Set,O=null;function jo(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Ae(e,t,r)}else a.current=null}function Ef(e,t,a){try{a()}catch(r){Ae(e,t,r)}}var kg=!1;function bw(e,t){if(xf=_l,e=Lx(),rp(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,p=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;)p=c,c=g;for(;;){if(c===e)break t;if(p===a&&++u===o&&(i=s),p===n&&++d===r&&(l=s),(g=c.nextSibling)!==null)break;c=p,p=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(yf={focusedElem:e,selectionRange:a},_l=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;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 C=L.memoizedProps,w=L.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?C:Jt(t.type,C),w);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){Ae(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return L=kg,kg=!1,L}function Vs(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&&Ef(t,a,n)}o=o.next}while(o!==r)}}function pu(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 Ff(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 gy(e){var t=e.alternate;t!==null&&(e.alternate=null,gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pa],delete t[Ys],delete t[Cf],delete t[lw],delete t[uw])),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 xy(e){return e.tag===5||e.tag===3||e.tag===4}function bg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xy(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=ql));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 Of(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(Of(e,t,a),e=e.sibling;e!==null;)Of(e,t,a),e=e.sibling}var Ke=null,ea=!1;function nr(e,t,a){for(a=a.child;a!==null;)yy(e,t,a),a=a.sibling}function yy(e,t,a){if(ma&&typeof ma.onCommitFiberUnmount=="function")try{ma.onCommitFiberUnmount(nu,a)}catch{}switch(a.tag){case 5:ot||jo(a,t);case 6:var r=Ke,o=ea;Ke=null,nr(e,t,a),Ke=r,ea=o,Ke!==null&&(ea?(e=Ke,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Ke.removeChild(a.stateNode));break;case 18:Ke!==null&&(ea?(e=Ke,a=a.stateNode,e.nodeType===8?Uc(e.parentNode,a):e.nodeType===1&&Uc(e,a),js(e)):Uc(Ke,a.stateNode));break;case 4:r=Ke,o=ea,Ke=a.stateNode.containerInfo,ea=!0,nr(e,t,a),Ke=r,ea=o;break;case 0:case 11:case 14:case 15:if(!ot&&(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)&&Ef(a,t,s),o=o.next}while(o!==r)}nr(e,t,a);break;case 1:if(!ot&&(jo(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Ae(a,t,i)}nr(e,t,a);break;case 21:nr(e,t,a);break;case 22:a.mode&1?(ot=(r=ot)||a.memoizedState!==null,nr(e,t,a),ot=r):nr(e,t,a);break;default:nr(e,t,a)}}function Pg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new kw),t.forEach(function(r){var o=Fw.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function Zt(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:Ke=i.stateNode,ea=!1;break e;case 3:Ke=i.stateNode.containerInfo,ea=!0;break e;case 4:Ke=i.stateNode.containerInfo,ea=!0;break e}i=i.return}if(Ke===null)throw Error(R(160));yy(n,s,o),Ke=null,ea=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ae(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vy(t,e),t=t.sibling}function vy(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),ca(e),r&4){try{Vs(3,e,e.return),pu(3,e)}catch(C){Ae(e,e.return,C)}try{Vs(5,e,e.return)}catch(C){Ae(e,e.return,C)}}break;case 1:Zt(t,e),ca(e),r&512&&a!==null&&jo(a,a.return);break;case 5:if(Zt(t,e),ca(e),r&512&&a!==null&&jo(a,a.return),e.flags&32){var o=e.stateNode;try{Hs(o,"")}catch(C){Ae(e,e.return,C)}}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&&zg(o,n),sf(i,s);var u=sf(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?jg(o,c):d==="dangerouslySetInnerHTML"?Wg(o,c):d==="children"?Hs(o,c):Wf(o,d,c,u)}switch(i){case"input":tf(o,n);break;case"textarea":Hg(o,n);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var g=n.value;g!=null?$o(o,!!n.multiple,g,!1):p!==!!n.multiple&&(n.defaultValue!=null?$o(o,!!n.multiple,n.defaultValue,!0):$o(o,!!n.multiple,n.multiple?[]:"",!1))}o[Ys]=n}catch(C){Ae(e,e.return,C)}}break;case 6:if(Zt(t,e),ca(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(C){Ae(e,e.return,C)}}break;case 3:if(Zt(t,e),ca(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{js(t.containerInfo)}catch(C){Ae(e,e.return,C)}break;case 4:Zt(t,e),ca(e);break;case 13:Zt(t,e),ca(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(Ip=Me())),r&4&&Pg(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(ot=(u=ot)||d,Zt(t,e),ot=u):Zt(t,e),ca(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&(e.mode&1)!==0)for(O=e,d=e.child;d!==null;){for(c=O=d;O!==null;){switch(p=O,g=p.child,p.tag){case 0:case 11:case 14:case 15:Vs(4,p,p.return);break;case 1:jo(p,p.return);var L=p.stateNode;if(typeof L.componentWillUnmount=="function"){r=p,a=p.return;try{t=r,L.props=t.memoizedProps,L.state=t.memoizedState,L.componentWillUnmount()}catch(C){Ae(r,a,C)}}break;case 5:jo(p,p.return);break;case 22:if(p.memoizedState!==null){Ag(c);continue}}g!==null?(g.return=p,O=g):Ag(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=Gg("display",s))}catch(C){Ae(e,e.return,C)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(C){Ae(e,e.return,C)}}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:Zt(t,e),ca(e),r&4&&Pg(e);break;case 21:break;default:Zt(t,e),ca(e)}}function ca(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(xy(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&&(Hs(o,""),r.flags&=-33);var n=bg(e);Of(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=bg(e);Bf(e,i,s);break;default:throw Error(R(161))}}catch(l){Ae(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pw(e,t,a){O=e,Ly(e,t,a)}function Ly(e,t,a){for(var r=(e.mode&1)!==0;O!==null;){var o=O,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Il;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||ot;i=Il;var u=ot;if(Il=s,(ot=l)&&!u)for(O=o;O!==null;)s=O,l=s.child,s.tag===22&&s.memoizedState!==null?Rg(o):l!==null?(l.return=s,O=l):Rg(o);for(;n!==null;)O=n,Ly(n,t,a),n=n.sibling;O=o,Il=i,ot=u}Tg(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,O=n):Tg(e,t,a)}}function Tg(e){for(;O!==null;){var t=O;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ot||pu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ot)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:Jt(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&fg(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}fg(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&&js(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ot||t.flags&512&&Ff(t)}catch(p){Ae(t,t.return,p)}}if(t===e){O=null;break}if(a=t.sibling,a!==null){a.return=t.return,O=a;break}O=t.return}}function Ag(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var a=t.sibling;if(a!==null){a.return=t.return,O=a;break}O=t.return}}function Rg(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{pu(4,t)}catch(l){Ae(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ae(t,o,l)}}var n=t.return;try{Ff(t)}catch(l){Ae(t,n,l)}break;case 5:var s=t.return;try{Ff(t)}catch(l){Ae(t,s,l)}}}catch(l){Ae(t,t.return,l)}if(t===e){O=null;break}var i=t.sibling;if(i!==null){i.return=t.return,O=i;break}O=t.return}}var Tw=Math.ceil,eu=_a.ReactCurrentDispatcher,Cp=_a.ReactCurrentOwner,jt=_a.ReactCurrentBatchConfig,ie=0,We=null,Fe=null,$e=0,At=0,Ko=Ir(0),Ue=0,ri=null,so=0,mu=0,Sp=0,Us=null,xt=null,Ip=0,sn=1/0,Da=null,tu=!1,Vf=null,xr=null,wl=!1,cr=null,au=0,_s=0,Uf=null,Ml=-1,Nl=0;function ft(){return(ie&6)!==0?Me():Ml!==-1?Ml:Ml=Me()}function yr(e){return(e.mode&1)===0?1:(ie&2)!==0&&$e!==0?$e&-$e:cw.transition!==null?(Nl===0&&(Nl=ox()),Nl):(e=me,e!==0||(e=window.event,e=e===void 0?16:cx(e.type)),e)}function ra(e,t,a,r){if(50<_s)throw _s=0,Uf=null,Error(R(185));oi(e,a,r),((ie&2)===0||e!==We)&&(e===We&&((ie&2)===0&&(mu|=a),Ue===4&&ur(e,$e)),Ct(e,r),a===1&&ie===0&&(t.mode&1)===0&&(sn=Me()+500,du&&wr()))}function Ct(e,t){var a=e.callbackNode;pI(e,t);var r=Ul(e,e===We?$e:0);if(r===0)a!==null&&Vh(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Vh(a),t===1)e.tag===0?dw(Dg.bind(null,e)):Rx(Dg.bind(null,e)),sw(function(){(ie&6)===0&&wr()}),a=null;else{switch(nx(r)){case 1:a=Xf;break;case 4:a=ax;break;case 16:a=Vl;break;case 536870912:a=rx;break;default:a=Vl}a=Ty(a,Cy.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function Cy(e,t){if(Ml=-1,Nl=0,(ie&6)!==0)throw Error(R(327));var a=e.callbackNode;if(Jo()&&e.callbackNode!==a)return null;var r=Ul(e,e===We?$e:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=ru(e,r);else{t=r;var o=ie;ie|=2;var n=Iy();(We!==e||$e!==t)&&(Da=null,sn=Me()+500,to(e,t));do try{Dw();break}catch(i){Sy(e,i)}while(!0);lp(),eu.current=n,ie=o,Fe!==null?t=0:(We=null,$e=0,t=Ue)}if(t!==0){if(t===2&&(o=ff(e),o!==0&&(r=o,t=_f(e,o))),t===1)throw a=ri,to(e,0),ur(e,r),Ct(e,Me()),a;if(t===6)ur(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Aw(o)&&(t=ru(e,r),t===2&&(n=ff(e),n!==0&&(r=n,t=_f(e,n))),t===1))throw a=ri,to(e,0),ur(e,r),Ct(e,Me()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Yr(e,xt,Da);break;case 3:if(ur(e,r),(r&130023424)===r&&(t=Ip+500-Me(),10<t)){if(Ul(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ft(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Lf(Yr.bind(null,e,xt,Da),t);break}Yr(e,xt,Da);break;case 4:if(ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-aa(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tw(r/1960))-r,10<r){e.timeoutHandle=Lf(Yr.bind(null,e,xt,Da),r);break}Yr(e,xt,Da);break;case 5:Yr(e,xt,Da);break;default:throw Error(R(329))}}}return Ct(e,Me()),e.callbackNode===a?Cy.bind(null,e):null}function _f(e,t){var a=Us;return e.current.memoizedState.isDehydrated&&(to(e,t).flags|=256),e=ru(e,t),e!==2&&(t=xt,xt=a,t!==null&&zf(t)),e}function zf(e){xt===null?xt=e:xt.push.apply(xt,e)}function Aw(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(!oa(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 ur(e,t){for(t&=~Sp,t&=~mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-aa(t),r=1<<a;e[a]=-1,t&=~r}}function Dg(e){if((ie&6)!==0)throw Error(R(327));Jo();var t=Ul(e,0);if((t&1)===0)return Ct(e,Me()),null;var a=ru(e,t);if(e.tag!==0&&a===2){var r=ff(e);r!==0&&(t=r,a=_f(e,r))}if(a===1)throw a=ri,to(e,0),ur(e,t),Ct(e,Me()),a;if(a===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yr(e,xt,Da),Ct(e,Me()),null}function wp(e,t){var a=ie;ie|=1;try{return e(t)}finally{ie=a,ie===0&&(sn=Me()+500,du&&wr())}}function io(e){cr!==null&&cr.tag===0&&(ie&6)===0&&Jo();var t=ie;ie|=1;var a=jt.transition,r=me;try{if(jt.transition=null,me=1,e)return e()}finally{me=r,jt.transition=a,ie=t,(ie&6)===0&&wr()}}function kp(){At=Ko.current,Le(Ko)}function to(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,nw(a)),Fe!==null)for(a=Fe.return;a!==null;){var r=a;switch(np(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wl();break;case 3:on(),Le(vt),Le(nt),mp();break;case 5:pp(r);break;case 4:on();break;case 13:Le(ke);break;case 19:Le(ke);break;case 10:up(r.type._context);break;case 22:case 23:kp()}a=a.return}if(We=e,Fe=e=vr(e.current,null),$e=At=t,Ue=0,ri=null,Sp=mu=so=0,xt=Us=null,Jr!==null){for(t=0;t<Jr.length;t++)if(a=Jr[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}Jr=null}return e}function Sy(e,t){do{var a=Fe;try{if(lp(),Al.current=Jl,Zl){for(var r=be.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Zl=!1}if(no=0,qe=Ve=be=null,Os=!1,ei=0,Cp.current=null,a===null||a.return===null){Ue=1,ri=t,Fe=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=$e,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 p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=yg(s);if(g!==null){g.flags&=-257,vg(g,s,i,n,t),g.mode&1&&xg(n,u,t),t=g,l=u;var L=t.updateQueue;if(L===null){var C=new Set;C.add(l),t.updateQueue=C}else L.add(l);break e}else{if((t&1)===0){xg(n,u,t),bp();break e}l=Error(R(426))}}else if(we&&i.mode&1){var w=yg(s);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),vg(w,s,i,n,t),sp(nn(l,i));break e}}n=l=nn(l,i),Ue!==4&&(Ue=2),Us===null?Us=[n]:Us.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var h=ny(n,l,t);cg(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"&&(xr===null||!xr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var S=sy(n,i,t);cg(n,S);break e}}n=n.return}while(n!==null)}ky(a)}catch(k){t=k,Fe===a&&a!==null&&(Fe=a=a.return);continue}break}while(!0)}function Iy(){var e=eu.current;return eu.current=Jl,e===null?Jl:e}function bp(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),We===null||(so&268435455)===0&&(mu&268435455)===0||ur(We,$e)}function ru(e,t){var a=ie;ie|=2;var r=Iy();(We!==e||$e!==t)&&(Da=null,to(e,t));do try{Rw();break}catch(o){Sy(e,o)}while(!0);if(lp(),ie=a,eu.current=r,Fe!==null)throw Error(R(261));return We=null,$e=0,Ue}function Rw(){for(;Fe!==null;)wy(Fe)}function Dw(){for(;Fe!==null&&!oI();)wy(Fe)}function wy(e){var t=Py(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?ky(e):Fe=t,Cp.current=null}function ky(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=Iw(a,t,At),a!==null){Fe=a;return}}else{if(a=ww(a,t),a!==null){a.flags&=32767,Fe=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function Yr(e,t,a){var r=me,o=jt.transition;try{jt.transition=null,me=1,Mw(e,t,a,r)}finally{jt.transition=o,me=r}return null}function Mw(e,t,a,r){do Jo();while(cr!==null);if((ie&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(mI(e,n),e===We&&(Fe=We=null,$e=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||wl||(wl=!0,Ty(Vl,function(){return Jo(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=jt.transition,jt.transition=null;var s=me;me=1;var i=ie;ie|=4,Cp.current=null,bw(e,a),vy(a,e),ew(yf),_l=!!xf,yf=xf=null,e.current=a,Pw(a,e,o),nI(),ie=i,me=s,jt.transition=n}else e.current=a;if(wl&&(wl=!1,cr=e,au=o),n=e.pendingLanes,n===0&&(xr=null),lI(a.stateNode,r),Ct(e,Me()),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(tu)throw tu=!1,e=Vf,Vf=null,e;return(au&1)!==0&&e.tag!==0&&Jo(),n=e.pendingLanes,(n&1)!==0?e===Uf?_s++:(_s=0,Uf=e):_s=0,wr(),null}function Jo(){if(cr!==null){var e=nx(au),t=jt.transition,a=me;try{if(jt.transition=null,me=16>e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,au=0,(ie&6)!==0)throw Error(R(331));var o=ie;for(ie|=4,O=e.current;O!==null;){var n=O,s=n.child;if((O.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(O=u;O!==null;){var d=O;switch(d.tag){case 0:case 11:case 15:Vs(8,d,n)}var c=d.child;if(c!==null)c.return=d,O=c;else for(;O!==null;){d=O;var p=d.sibling,g=d.return;if(gy(d),d===u){O=null;break}if(p!==null){p.return=g,O=p;break}O=g}}}var L=n.alternate;if(L!==null){var C=L.child;if(C!==null){L.child=null;do{var w=C.sibling;C.sibling=null,C=w}while(C!==null)}}O=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,O=s;else e:for(;O!==null;){if(n=O,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Vs(9,n,n.return)}var h=n.sibling;if(h!==null){h.return=n.return,O=h;break e}O=n.return}}var m=e.current;for(O=m;O!==null;){s=O;var x=s.child;if((s.subtreeFlags&2064)!==0&&x!==null)x.return=s,O=x;else e:for(s=m;O!==null;){if(i=O,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:pu(9,i)}}catch(k){Ae(i,i.return,k)}if(i===s){O=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,O=S;break e}O=i.return}}if(ie=o,wr(),ma&&typeof ma.onPostCommitFiberRoot=="function")try{ma.onPostCommitFiberRoot(nu,e)}catch{}r=!0}return r}finally{me=a,jt.transition=t}}return!1}function Mg(e,t,a){t=nn(a,t),t=ny(e,t,1),e=gr(e,t,1),t=ft(),e!==null&&(oi(e,1,t),Ct(e,t))}function Ae(e,t,a){if(e.tag===3)Mg(e,e,a);else for(;t!==null;){if(t.tag===3){Mg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xr===null||!xr.has(r))){e=nn(a,e),e=sy(t,e,1),t=gr(t,e,1),e=ft(),t!==null&&(oi(t,1,e),Ct(t,e));break}}t=t.return}}function Nw(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=ft(),e.pingedLanes|=e.suspendedLanes&a,We===e&&($e&a)===a&&(Ue===4||Ue===3&&($e&130023424)===$e&&500>Me()-Ip?to(e,0):Sp|=a),Ct(e,t)}function by(e,t){t===0&&((e.mode&1)===0?t=1:(t=dl,dl<<=1,(dl&130023424)===0&&(dl=4194304)));var a=ft();e=Va(e,t),e!==null&&(oi(e,t,a),Ct(e,a))}function Ew(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),by(e,a)}function Fw(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),by(e,a)}var Py;Py=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||vt.current)yt=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return yt=!1,Sw(e,t,a);yt=(e.flags&131072)!==0}else yt=!1,we&&(t.flags&1048576)!==0&&Dx(t,Kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dl(e,t),e=t.pendingProps;var o=tn(t,nt.current);Zo(t,a),o=gp(null,t,r,e,o,a);var n=xp();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,Lt(r)?(n=!0,Gl(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cp(t),o.updater=fu,t.stateNode=o,o._reactInternals=t,Pf(t,r,e,a),t=Rf(null,t,r,!0,n,a)):(t.tag=0,we&&n&&op(t),ct(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Dl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ow(r),e=Jt(r,e),o){case 0:t=Af(null,t,r,e,a);break e;case 1:t=Sg(null,t,r,e,a);break e;case 11:t=Lg(null,t,r,e,a);break e;case 14:t=Cg(null,t,r,Jt(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:Jt(r,o),Af(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Sg(e,t,r,o,a);case 3:e:{if(dy(t),e===null)throw Error(R(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Ox(e,t),Ql(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=nn(Error(R(423)),t),t=Ig(e,t,r,a,o);break e}else if(r!==o){o=nn(Error(R(424)),t),t=Ig(e,t,r,a,o);break e}else for(Rt=hr(t.stateNode.containerInfo.firstChild),Dt=t,we=!0,ta=null,a=Fx(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(an(),r===o){t=Ua(e,t,a);break e}ct(e,t,r,a)}t=t.child}return t;case 5:return Vx(t),e===null&&wf(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,vf(r,o)?s=null:n!==null&&vf(r,n)&&(t.flags|=32),uy(e,t),ct(e,t,s,a),t.child;case 6:return e===null&&wf(t),null;case 13:return cy(e,t,a);case 4:return fp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rn(t,null,r,a):ct(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Lg(e,t,r,o,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(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,xe($l,r._currentValue),r._currentValue=s,n!==null)if(oa(n.value,s)){if(n.children===o.children&&!vt.current){t=Ua(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=Fa(-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),kf(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),kf(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}ct(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Zo(t,a),o=Kt(o),r=r(o),t.flags|=1,ct(e,t,r,a),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),Cg(e,t,r,o,a);case 15:return iy(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Dl(e,t),t.tag=1,Lt(r)?(e=!0,Gl(t)):e=!1,Zo(t,a),oy(t,r,o),Pf(t,r,o,a),Rf(null,t,r,!0,e,a);case 19:return fy(e,t,a);case 22:return ly(e,t,a)}throw Error(R(156,t.tag))};function Ty(e,t){return tx(e,t)}function Bw(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 Gt(e,t,a,r){return new Bw(e,t,a,r)}function Pp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ow(e){if(typeof e=="function")return Pp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jf)return 11;if(e===Kf)return 14}return 2}function vr(e,t){var a=e.alternate;return a===null?(a=Gt(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 El(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Pp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Oo:return ao(a.children,o,n,t);case Gf:s=8,o|=8;break;case Qc:return e=Gt(12,a,t,o|2),e.elementType=Qc,e.lanes=n,e;case Yc:return e=Gt(13,a,t,o),e.elementType=Yc,e.lanes=n,e;case Zc:return e=Gt(19,a,t,o),e.elementType=Zc,e.lanes=n,e;case Vg:return hu(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bg:s=10;break e;case Og:s=9;break e;case jf:s=11;break e;case Kf:s=14;break e;case sr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Gt(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function ao(e,t,a,r){return e=Gt(7,e,r,t),e.lanes=a,e}function hu(e,t,a,r){return e=Gt(22,e,r,t),e.elementType=Vg,e.lanes=a,e.stateNode={isHidden:!1},e}function Kc(e,t,a){return e=Gt(6,e,null,t),e.lanes=a,e}function $c(e,t,a){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vw(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=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tp(e,t,a,r,o,n,s,i,l){return e=new Vw(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Gt(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},cp(n),e}function Uw(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function Ay(e){if(!e)return Cr;e=e._reactInternals;e:{if(uo(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(Lt(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(Lt(a))return Ax(e,a,t)}return t}function Ry(e,t,a,r,o,n,s,i,l){return e=Tp(a,r,!0,e,o,n,s,i,l),e.context=Ay(null),a=e.current,r=ft(),o=yr(a),n=Fa(r,o),n.callback=t??null,gr(a,n,o),e.current.lanes=o,oi(e,o,r),Ct(e,r),e}function gu(e,t,a,r){var o=t.current,n=ft(),s=yr(o);return a=Ay(a),t.context===null?t.context=a:t.pendingContext=a,t=Fa(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gr(o,t,s),e!==null&&(ra(e,o,s,n),Tl(e,o,s)),s}function ou(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 Ng(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ap(e,t){Ng(e,t),(e=e.alternate)&&Ng(e,t)}function _w(){return null}var Dy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rp(e){this._internalRoot=e}xu.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));gu(e,t,null,null)};xu.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;io(function(){gu(null,e,null,null)}),t[Oa]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=lx();e={blockedOn:null,target:e,priority:t};for(var a=0;a<lr.length&&t!==0&&t<lr[a].priority;a++);lr.splice(a,0,e),a===0&&dx(e)}};function Dp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Eg(){}function zw(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=ou(s);n.call(u)}}var s=Ry(t,r,e,0,null,!1,!1,"",Eg);return e._reactRootContainer=s,e[Oa]=s.current,Xs(e.nodeType===8?e.parentNode:e),io(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=ou(l);i.call(u)}}var l=Tp(e,0,!1,null,null,!1,!1,"",Eg);return e._reactRootContainer=l,e[Oa]=l.current,Xs(e.nodeType===8?e.parentNode:e),io(function(){gu(t,l,a,r)}),l}function vu(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=ou(s);i.call(l)}}gu(t,s,e,o)}else s=zw(a,t,e,o,r);return ou(s)}sx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Rs(t.pendingLanes);a!==0&&(Qf(t,a|1),Ct(t,Me()),(ie&6)===0&&(sn=Me()+500,wr()))}break;case 13:io(function(){var r=Va(e,1);if(r!==null){var o=ft();ra(r,e,1,o)}}),Ap(e,1)}};Yf=function(e){if(e.tag===13){var t=Va(e,134217728);if(t!==null){var a=ft();ra(t,e,134217728,a)}Ap(e,134217728)}};ix=function(e){if(e.tag===13){var t=yr(e),a=Va(e,t);if(a!==null){var r=ft();ra(a,e,t,r)}Ap(e,t)}};lx=function(){return me};ux=function(e,t){var a=me;try{return me=e,t()}finally{me=a}};uf=function(e,t,a){switch(t){case"input":if(tf(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=uu(r);if(!o)throw Error(R(90));_g(r),tf(r,o)}}}break;case"textarea":Hg(e,a);break;case"select":t=a.value,t!=null&&$o(e,!!a.multiple,t,!1)}};Xg=wp;Qg=io;var Hw={usingClientEntryPoint:!1,Events:[si,zo,uu,Kg,$g,wp]},bs={findFiberByHostInstance:Zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qw={bundleType:bs.bundleType,version:bs.version,rendererPackageName:bs.rendererPackageName,rendererConfig:bs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_a.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jg(e),e===null?null:e.stateNode},findFiberByHostInstance:bs.findFiberByHostInstance||_w,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ps=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ps.isDisabled&&Ps.supportsFiber))try{nu=Ps.inject(qw),ma=Ps}catch{}var Ps;Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hw;Et.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dp(t))throw Error(R(200));return Uw(e,t,null,a)};Et.createRoot=function(e,t){if(!Dp(e))throw Error(R(299));var a=!1,r="",o=Dy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Tp(e,1,!1,null,null,a,!1,r,o),e[Oa]=t.current,Xs(e.nodeType===8?e.parentNode:e),new Rp(t)};Et.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=Jg(t),e=e===null?null:e.stateNode,e};Et.flushSync=function(e){return io(e)};Et.hydrate=function(e,t,a){if(!yu(t))throw Error(R(200));return vu(null,e,t,!0,a)};Et.hydrateRoot=function(e,t,a){if(!Dp(e))throw Error(R(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=Dy;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=Ry(t,null,e,1,a??null,o,!1,n,s),e[Oa]=t.current,Xs(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 xu(t)};Et.render=function(e,t,a){if(!yu(t))throw Error(R(200));return vu(null,e,t,!1,a)};Et.unmountComponentAtNode=function(e){if(!yu(e))throw Error(R(40));return e._reactRootContainer?(io(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Oa]=null})}),!0):!1};Et.unstable_batchedUpdates=wp;Et.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!yu(a))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return vu(e,t,a,!1,r)};Et.version="18.3.1-next-f1338f8080-20240426"});var Mp=Ra((bT,Ey)=>{"use strict";function Ny(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ny)}catch(e){console.error(e)}}Ny(),Ey.exports=My()});var By=Ra(Np=>{"use strict";var Fy=Mp();Np.createRoot=Fy.createRoot,Np.hydrateRoot=Fy.hydrateRoot;var PT});var jy=Ra(Cu=>{"use strict";var Ck=X(),Sk=Symbol.for("react.element"),Ik=Symbol.for("react.fragment"),wk=Object.prototype.hasOwnProperty,kk=Ck.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bk={key:!0,ref:!0,__self:!0,__source:!0};function Gy(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)wk.call(t,r)&&!bk.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:kk.current}}Cu.Fragment=Ik;Cu.jsx=Gy;Cu.jsxs=Gy});var le=Ra((FT,Ky)=>{"use strict";Ky.exports=jy()});var xT={};kS(xT,{initKiteChat:()=>$m});var ba=N(X(),1),dS=N(By(),1);var G=N(X(),1);function Oy(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=Oy(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function Lu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Oy(e))&&(r&&(r+=" "),r+=t);return r}var Ww=e=>{let t=jw(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split("-");return i[0]===""&&i.length!==1&&i.shift(),_y(i,t)||Gw(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},_y=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?_y(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},Vy=/^\[(.+)\]$/,Gw=e=>{if(Vy.test(e)){let t=Vy.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},jw=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return $w(Object.entries(e.classGroups),a).forEach(([n,s])=>{Fp(s,r,n,t)}),r},Fp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:Uy(t,o);n.classGroupId=a;return}if(typeof o=="function"){if(Kw(o)){Fp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([n,s])=>{Fp(s,Uy(t,n),a,r)})})},Uy=(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},Kw=e=>e.isThemeGetter,$w=(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,Xw=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 Qw=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 w=0;w<i.length;w++){let h=i[w];if(u===0){if(h===o&&(r||i.slice(w,w+n)===t)){l.push(i.slice(d,w)),d=w+n;continue}if(h==="/"){c=w;continue}}h==="["?u++:h==="]"&&u--}let p=l.length===0?i:i.substring(d),g=p.startsWith("!"),L=g?p.substring(1):p,C=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:L,maybePostfixModifierPosition:C}};return a?i=>a({className:i,parseClassName:s}):s},Yw=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},Zw=e=>({cache:Xw(e.cacheSize),parseClassName:Qw(e),...Ww(e)}),Jw=/\s+/,ek=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(Jw),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:g}=a(u),L=!!g,C=r(L?p.substring(0,g):p);if(!C){if(!L){i=u+(i.length>0?" "+i:i);continue}if(C=r(p),!C){i=u+(i.length>0?" "+i:i);continue}L=!1}let w=Yw(d).join(":"),h=c?w+"!":w,m=h+C;if(n.includes(m))continue;n.push(m);let x=o(C,L);for(let S=0;S<x.length;++S){let k=x[S];n.push(h+k)}i=u+(i.length>0?" "+i:i)}return i};function tk(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=zy(t))&&(r&&(r+=" "),r+=a);return r}var zy=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=zy(e[r]))&&(a&&(a+=" "),a+=t);return a};function ak(e,...t){let a,r,o,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=Zw(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=ek(l,a);return o(l,d),d}return function(){return n(tk.apply(null,arguments))}}var Ce=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Hy=/^\[(?:([a-z-]+):)?(.+)\]$/i,rk=/^\d+\/\d+$/,ok=new Set(["px","full","screen"]),nk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sk=/\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$/,ik=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,za=e=>dn(e)||ok.has(e)||rk.test(e),kr=e=>cn(e,"length",xk),dn=e=>!!e&&!Number.isNaN(Number(e)),Ep=e=>cn(e,"number",dn),li=e=>!!e&&Number.isInteger(Number(e)),dk=e=>e.endsWith("%")&&dn(e.slice(0,-1)),Y=e=>Hy.test(e),br=e=>nk.test(e),ck=new Set(["length","size","percentage"]),fk=e=>cn(e,ck,qy),pk=e=>cn(e,"position",qy),mk=new Set(["image","url"]),hk=e=>cn(e,mk,vk),gk=e=>cn(e,"",yk),ui=()=>!0,cn=(e,t,a)=>{let r=Hy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},xk=e=>sk.test(e)&&!ik.test(e),qy=()=>!1,yk=e=>lk.test(e),vk=e=>uk.test(e);var Lk=()=>{let e=Ce("colors"),t=Ce("spacing"),a=Ce("blur"),r=Ce("brightness"),o=Ce("borderColor"),n=Ce("borderRadius"),s=Ce("borderSpacing"),i=Ce("borderWidth"),l=Ce("contrast"),u=Ce("grayscale"),d=Ce("hueRotate"),c=Ce("invert"),p=Ce("gap"),g=Ce("gradientColorStops"),L=Ce("gradientColorStopPositions"),C=Ce("inset"),w=Ce("margin"),h=Ce("opacity"),m=Ce("padding"),x=Ce("saturate"),S=Ce("scale"),k=Ce("sepia"),P=Ce("skew"),D=Ce("space"),A=Ce("translate"),V=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",Y,t],te=()=>[Y,t],Ao=()=>["",za,kr],ua=()=>["auto",dn,Y],ps=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ar=()=>["solid","dashed","dotted","double","none"],K=()=>["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"],ue=()=>["","0",Y],Pa=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ut=()=>[dn,Y];return{cacheSize:500,separator:":",theme:{colors:[ui],spacing:[za,kr],blur:["none","",br,Y],brightness:ut(),borderColor:[e],borderRadius:["none","","full",br,Y],borderSpacing:te(),borderWidth:Ao(),contrast:ut(),grayscale:ue(),hueRotate:ut(),invert:ue(),gap:te(),gradientColorStops:[e],gradientColorStopPositions:[dk,kr],inset:ce(),margin:ce(),opacity:ut(),padding:te(),saturate:ut(),scale:ut(),sepia:ue(),skew:ut(),space:te(),translate:te()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":Pa()}],"break-before":[{"break-before":Pa()}],"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:[...ps(),Y]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",li,Y]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",li,Y]}],"grid-cols":[{"grid-cols":[ui]}],"col-start-end":[{col:["auto",{span:["full",li,Y]},Y]}],"col-start":[{"col-start":ua()}],"col-end":[{"col-end":ua()}],"grid-rows":[{"grid-rows":[ui]}],"row-start-end":[{row:["auto",{span:[li,Y]},Y]}],"row-start":[{"row-start":ua()}],"row-end":[{"row-end":ua()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[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:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[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",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ep]}],"font-family":[{font:[ui]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",dn,Ep]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",za,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[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:[...ar(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",za,kr]}],"underline-offset":[{"underline-offset":["auto",za,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:te()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ps(),pk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hk]}],"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:[...ar(),"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:ar()}],"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:["",...ar()]}],"outline-offset":[{"outline-offset":[za,Y]}],"outline-w":[{outline:[za,kr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ao()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[za,kr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,gk]}],"shadow-color":[{shadow:[ui]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"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":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:ut()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ut()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[li,Y]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":te()}],"scroll-mx":[{"scroll-mx":te()}],"scroll-my":[{"scroll-my":te()}],"scroll-ms":[{"scroll-ms":te()}],"scroll-me":[{"scroll-me":te()}],"scroll-mt":[{"scroll-mt":te()}],"scroll-mr":[{"scroll-mr":te()}],"scroll-mb":[{"scroll-mb":te()}],"scroll-ml":[{"scroll-ml":te()}],"scroll-p":[{"scroll-p":te()}],"scroll-px":[{"scroll-px":te()}],"scroll-py":[{"scroll-py":te()}],"scroll-ps":[{"scroll-ps":te()}],"scroll-pe":[{"scroll-pe":te()}],"scroll-pt":[{"scroll-pt":te()}],"scroll-pr":[{"scroll-pr":te()}],"scroll-pb":[{"scroll-pb":te()}],"scroll-pl":[{"scroll-pl":te()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[za,kr,Ep]}],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 Wy=ak(Lk);function Ft(...e){return Wy(Lu(e))}var $y=N(le(),1);function Te({className:e,type:t,...a}){return(0,$y.jsx)("input",{type:t,"data-slot":"input",className:Ft("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 Be=N(X(),1);var Qy=N(X(),1);function Xy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function di(...e){return t=>{let a=!1,r=e.map(o=>{let n=Xy(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():Xy(e[o],null)}}}}function Ha(...e){return Qy.useCallback(di(...e),e)}var Su=N(le(),1),Pk=Symbol.for("react.lazy"),Iu=Be[" use ".trim().toString()];function Tk(e){return typeof e=="object"&&e!==null&&"then"in e}function Yy(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Pk&&"_payload"in e&&Tk(e._payload)}function Ak(e){let t=Rk(e),a=Be.forwardRef((r,o)=>{let{children:n,...s}=r;Yy(n)&&typeof Iu=="function"&&(n=Iu(n._payload));let i=Be.Children.toArray(n),l=i.find(Mk);if(l){let u=l.props.children,d=i.map(c=>c===l?Be.Children.count(u)>1?Be.Children.only(null):Be.isValidElement(u)?u.props.children:null:c);return(0,Su.jsx)(t,{...s,ref:o,children:Be.isValidElement(u)?Be.cloneElement(u,void 0,d):null})}return(0,Su.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}var Zy=Ak("Slot");function Rk(e){let t=Be.forwardRef((a,r)=>{let{children:o,...n}=a;if(Yy(o)&&typeof Iu=="function"&&(o=Iu(o._payload)),Be.isValidElement(o)){let s=Ek(o),i=Nk(n,o.props);return o.type!==Be.Fragment&&(i.ref=r?di(r,s):s),Be.cloneElement(o,i)}return Be.Children.count(o)>1?Be.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dk=Symbol("radix.slottable");function Mk(e){return Be.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dk}function Nk(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 Ek(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=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ev=Lu,tv=(e,t)=>a=>{var r;if(t?.variants==null)return ev(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 p=Jy(d)||Jy(c);return o[u][p]}),i=a&&Object.entries(a).reduce((u,d)=>{let[c,p]=d;return p===void 0||(u[c]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:p,...g}=d;return Object.entries(g).every(L=>{let[C,w]=L;return Array.isArray(w)?w.includes({...n,...i}[C]):{...n,...i}[C]===w})?[...u,c,p]:u},[]);return ev(e,s,l,a?.class,a?.className)};var av=N(le(),1),Fk=tv("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 St({className:e,variant:t,size:a,asChild:r=!1,...o}){return(0,av.jsx)(r?Zy:"button",{"data-slot":"button",className:Ft(Fk({variant:t,size:a,className:e})),...o})}var Tv=N(X(),1);var q=N(X(),1);var ov=N(X(),1),zk=N(Mp(),1);var _e=N(X(),1);var wu=N(le(),1);function rv(e){let t=Bk(e),a=_e.forwardRef((r,o)=>{let{children:n,...s}=r,i=_e.Children.toArray(n),l=i.find(Vk);if(l){let u=l.props.children,d=i.map(c=>c===l?_e.Children.count(u)>1?_e.Children.only(null):_e.isValidElement(u)?u.props.children:null:c);return(0,wu.jsx)(t,{...s,ref:o,children:_e.isValidElement(u)?_e.cloneElement(u,void 0,d):null})}return(0,wu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}function Bk(e){let t=_e.forwardRef((a,r)=>{let{children:o,...n}=a;if(_e.isValidElement(o)){let s=_k(o),i=Uk(n,o.props);return o.type!==_e.Fragment&&(i.ref=r?di(r,s):s),_e.cloneElement(o,i)}return _e.Children.count(o)>1?_e.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ok=Symbol("radix.slottable");function Vk(e){return _e.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ok}function Uk(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 _k(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 nv=N(le(),1),Hk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fn=Hk.reduce((e,t)=>{let a=rv(`Primitive.${t}`),r=ov.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,nv.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var It=N(X(),1);var sv=N(X(),1),ci=globalThis?.document?sv.useLayoutEffect:()=>{};var iv=N(X(),1);function qk(e,t){return iv.useReducer((a,r)=>t[a][r]??a,e)}var pn=e=>{let{present:t,children:a}=e,r=Wk(t),o=typeof a=="function"?a({present:r.isPresent}):It.Children.only(a),n=Ha(r.ref,Gk(o));return typeof a=="function"||r.isPresent?It.cloneElement(o,{ref:n}):null};pn.displayName="Presence";function Wk(e){let[t,a]=It.useState(),r=It.useRef(null),o=It.useRef(e),n=It.useRef("none"),s=e?"mounted":"unmounted",[i,l]=qk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return It.useEffect(()=>{let u=ku(r.current);n.current=i==="mounted"?u:"none"},[i]),ci(()=>{let u=r.current,d=o.current;if(d!==e){let p=n.current,g=ku(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ci(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,c=g=>{let C=ku(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&C&&(l("ANIMATION_END"),!o.current)){let w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=g=>{g.target===t&&(n.current=ku(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:It.useCallback(u=>{r.current=u?getComputedStyle(u):null,a(u)},[])}}function ku(e){return e?.animationName||"none"}function Gk(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 qa=N(X(),1),lv=N(le(),1);function uv(e,t=[]){let a=[];function r(n,s){let i=qa.createContext(s),l=a.length;a=[...a,s];let u=c=>{let{scope:p,children:g,...L}=c,C=p?.[e]?.[l]||i,w=qa.useMemo(()=>L,Object.values(L));return(0,lv.jsx)(C.Provider,{value:w,children:g})};u.displayName=n+"Provider";function d(c,p){let g=p?.[e]?.[l]||i,L=qa.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=>qa.createContext(s));return function(i){let l=i?.[e]||n;return qa.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,jk(o,...t)]}function jk(...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 qa.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}var mn=N(X(),1);function Pr(e){let t=mn.useRef(e);return mn.useEffect(()=>{t.current=e}),mn.useMemo(()=>(...a)=>t.current?.(...a),[])}var bu=N(X(),1),Kk=N(le(),1),$k=bu.createContext(void 0);function dv(e){let t=bu.useContext($k);return e||t||"ltr"}function cv(e,[t,a]){return Math.min(a,Math.max(t,e))}var nA=!!(typeof window<"u"&&window.document&&window.document.createElement);function Tr(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}var pv=N(X(),1),de=N(le(),1);function Xk(e,t){return pv.useReducer((a,r)=>t[a][r]??a,e)}var Bp="ScrollArea",[mv,gA]=uv(Bp),[Qk,Xt]=mv(Bp),hv=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,p]=q.useState(null),[g,L]=q.useState(null),[C,w]=q.useState(null),[h,m]=q.useState(0),[x,S]=q.useState(0),[k,P]=q.useState(!1),[D,A]=q.useState(!1),V=Ha(t,ce=>l(ce)),E=dv(o);return(0,de.jsx)(Qk,{scope:a,type:r,dir:E,scrollHideDelay:n,scrollArea:i,viewport:u,onViewportChange:d,content:c,onContentChange:p,scrollbarX:g,onScrollbarXChange:L,scrollbarXEnabled:k,onScrollbarXEnabledChange:P,scrollbarY:C,onScrollbarYChange:w,scrollbarYEnabled:D,onScrollbarYEnabledChange:A,onCornerWidthChange:m,onCornerHeightChange:S,children:(0,de.jsx)(fn.div,{dir:E,...s,ref:V,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});hv.displayName=Bp;var gv="ScrollAreaViewport",xv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,children:r,nonce:o,...n}=e,s=Xt(gv,a),i=q.useRef(null),l=Ha(t,i,s.onViewportChange);return(0,de.jsxs)(de.Fragment,{children:[(0,de.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,de.jsx)(fn.div,{"data-radix-scroll-area-viewport":"",...n,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,de.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});xv.displayName=gv;var ga="ScrollAreaScrollbar",Op=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Xt(ga,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,de.jsx)(Yk,{...r,ref:t,forceMount:a}):o.type==="scroll"?(0,de.jsx)(Zk,{...r,ref:t,forceMount:a}):o.type==="auto"?(0,de.jsx)(yv,{...r,ref:t,forceMount:a}):o.type==="always"?(0,de.jsx)(Vp,{...r,ref:t}):null});Op.displayName=ga;var Yk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Xt(ga,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,de.jsx)(pn,{present:a||n,children:(0,de.jsx)(yv,{"data-state":n?"visible":"hidden",...r,ref:t})})}),Zk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Xt(ga,e.__scopeScrollArea),n=e.orientation==="horizontal",s=Ru(()=>l("SCROLL_END"),100),[i,l]=Xk("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],p=()=>{let g=u[d];c!==g&&(l("SCROLL"),s()),c=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,n,l,s]),(0,de.jsx)(pn,{present:a||i!=="hidden",children:(0,de.jsx)(Vp,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Tr(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Tr(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),yv=q.forwardRef((e,t)=>{let a=Xt(ga,e.__scopeScrollArea),{forceMount:r,...o}=e,[n,s]=q.useState(!1),i=e.orientation==="horizontal",l=Ru(()=>{if(a.viewport){let u=a.viewport.offsetWidth<a.viewport.scrollWidth,d=a.viewport.offsetHeight<a.viewport.scrollHeight;s(i?u:d)}},10);return hn(a.viewport,l),hn(a.content,l),(0,de.jsx)(pn,{present:r||n,children:(0,de.jsx)(Vp,{"data-state":n?"visible":"hidden",...o,ref:t})})}),Vp=q.forwardRef((e,t)=>{let{orientation:a="vertical",...r}=e,o=Xt(ga,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=Sv(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 c(p,g){return ob(p,s.current,i,g)}return a==="horizontal"?(0,de.jsx)(Jk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let p=o.viewport.scrollLeft,g=fv(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=c(p,o.dir))}}):a==="vertical"?(0,de.jsx)(eb,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let p=o.viewport.scrollTop,g=fv(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=c(p))}}):null}),Jk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Xt(ga,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=Ha(t,l,n.onScrollbarXChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,de.jsx)(Lv,{"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":Au(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(n.viewport){let p=n.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),wv(p,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Tu(s.paddingLeft),paddingEnd:Tu(s.paddingRight)}})}})}),eb=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Xt(ga,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=Ha(t,l,n.onScrollbarYChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,de.jsx)(Lv,{"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":Au(a)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(n.viewport){let p=n.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),wv(p,c)&&d.preventDefault()}},onResize:()=>{l.current&&n.viewport&&s&&r({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Tu(s.paddingTop),paddingEnd:Tu(s.paddingBottom)}})}})}),[tb,vv]=mv(ga),Lv=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,...p}=e,g=Xt(ga,a),[L,C]=q.useState(null),w=Ha(t,V=>C(V)),h=q.useRef(null),m=q.useRef(""),x=g.viewport,S=r.content-r.viewport,k=Pr(d),P=Pr(l),D=Ru(c,10);function A(V){if(h.current){let E=V.clientX-h.current.left,ce=V.clientY-h.current.top;u({x:E,y:ce})}}return q.useEffect(()=>{let V=E=>{let ce=E.target;L?.contains(ce)&&k(E,S)};return document.addEventListener("wheel",V,{passive:!1}),()=>document.removeEventListener("wheel",V,{passive:!1})},[x,L,S,k]),q.useEffect(P,[r,P]),hn(L,D),hn(g.content,D),(0,de.jsx)(tb,{scope:a,scrollbar:L,hasThumb:o,onThumbChange:Pr(n),onThumbPointerUp:Pr(s),onThumbPositionChange:P,onThumbPointerDown:Pr(i),children:(0,de.jsx)(fn.div,{...p,ref:w,style:{position:"absolute",...p.style},onPointerDown:Tr(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"),A(V))}),onPointerMove:Tr(e.onPointerMove,A),onPointerUp:Tr(e.onPointerUp,V=>{let E=V.target;E.hasPointerCapture(V.pointerId)&&E.releasePointerCapture(V.pointerId),document.body.style.webkitUserSelect=m.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})})}),Pu="ScrollAreaThumb",Up=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=vv(Pu,e.__scopeScrollArea);return(0,de.jsx)(pn,{present:a||o.hasThumb,children:(0,de.jsx)(ab,{ref:t,...r})})}),ab=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,style:r,...o}=e,n=Xt(Pu,a),s=vv(Pu,a),{onThumbPositionChange:i}=s,l=Ha(t,c=>s.onThumbChange(c)),u=q.useRef(void 0),d=Ru(()=>{u.current&&(u.current(),u.current=void 0)},100);return q.useEffect(()=>{let c=n.viewport;if(c){let p=()=>{if(d(),!u.current){let g=nb(c,i);u.current=g,i()}};return i(),c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[n.viewport,d,i]),(0,de.jsx)(fn.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:Tr(e.onPointerDownCapture,c=>{let g=c.target.getBoundingClientRect(),L=c.clientX-g.left,C=c.clientY-g.top;s.onThumbPointerDown({x:L,y:C})}),onPointerUp:Tr(e.onPointerUp,s.onThumbPointerUp)})});Up.displayName=Pu;var _p="ScrollAreaCorner",Cv=q.forwardRef((e,t)=>{let a=Xt(_p,e.__scopeScrollArea),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?(0,de.jsx)(rb,{...e,ref:t}):null});Cv.displayName=_p;var rb=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,...r}=e,o=Xt(_p,a),[n,s]=q.useState(0),[i,l]=q.useState(0),u=!!(n&&i);return hn(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),hn(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),s(d)}),u?(0,de.jsx)(fn.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 Tu(e){return e?parseInt(e,10):0}function Sv(e,t){let a=e/t;return isNaN(a)?0:a}function Au(e){let t=Sv(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-a)*t;return Math.max(r,18)}function ob(e,t,a,r="ltr"){let o=Au(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 Iv([l,u],c)(e)}function fv(e,t,a="ltr"){let r=Au(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=cv(e,l);return Iv([0,s],[0,i])(u)}function Iv(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 wv(e,t){return e>0&&e<t}var nb=(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 Ru(e,t){let a=Pr(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 hn(e,t){let a=Pr(t);ci(()=>{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 kv=hv,bv=xv;var Pv=Cv;var Ar=N(le(),1),zp=Tv.forwardRef(({className:e,children:t,...a},r)=>(0,Ar.jsxs)(kv,{"data-slot":"scroll-area",className:Ft("relative",e),...a,children:[(0,Ar.jsx)(bv,{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,Ar.jsx)(ib,{}),(0,Ar.jsx)(Pv,{})]}));zp.displayName="ScrollArea";function ib({className:e,orientation:t="vertical",...a}){return(0,Ar.jsx)(Op,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Ft("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,Ar.jsx)(Up,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var Mu=N(X());var Av=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Hp=e=>{let t=lb(e);return t.charAt(0).toUpperCase()+t.slice(1)},Du=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),Rv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var fi=N(X());var Dv={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,fi.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>(0,fi.createElement)("svg",{ref:l,...Dv,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Du("lucide",o),...!n&&!Rv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>(0,fi.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var U=(e,t)=>{let a=(0,Mu.forwardRef)(({className:r,...o},n)=>(0,Mu.createElement)(Mv,{ref:n,iconNode:t,className:Du(`lucide-${Av(Hp(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Hp(e),a};var ub=[["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"}]],pi=U("activity",ub);var db=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],gn=U("arrow-left",db);var cb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],mi=U("arrow-up",cb);var fb=[["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"}]],hi=U("calendar",fb);var pb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gi=U("chevron-down",pb);var mb=[["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"}]],na=U("circle-alert",mb);var hb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ge=U("circle-check",hb);var gb=[["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"}]],sa=U("circle-x",gb);var xb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],co=U("clock",xb);var yb=[["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"}]],Wa=U("command",yb);var vb=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Ga=U("corner-down-left",vb);var Lb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],fo=U("credit-card",Lb);var Cb=[["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"}]],po=U("crown",Cb);var Sb=[["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"}]],mo=U("dollar-sign",Sb);var Ib=[["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"}]],xn=U("file-spreadsheet",Ib);var wb=[["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"}]],yn=U("key",wb);var kb=[["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"}]],xi=U("laptop",kb);var bb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Bt=U("loader-circle",bb);var Pb=[["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"}]],vn=U("mail",Pb);var Tb=[["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"}]],Ln=U("map-pin",Tb);var Ab=[["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"}]],yi=U("paperclip",Ab);var Rb=[["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"}]],Cn=U("refresh-cw",Rb);var Db=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ho=U("search",Db);var Mb=[["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"}]],Sn=U("shield",Mb);var Nb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],vi=U("smartphone",Nb);var Eb=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],xa=U("sparkles",Eb);var Fb=[["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"}]],wt=U("square-pen",Fb);var Bb=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Li=U("trending-up",Bb);var Ob=[["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"}]],In=U("users",Ob);var Vb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rr=U("x",Vb);var Ub=[["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"}]],Ci=U("zap",Ub);var Re=N(le(),1);function Nv({phase:e,progressSteps:t=[]}){return(0,Re.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,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(Bt,{className:"h-3.5 w-3.5 animate-spin"}),(0,Re.jsx)("span",{children:"Thinking\u2026"})]}),e==="searching"&&(0,Re.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-300",children:[(0,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(ho,{className:"h-3.5 w-3.5 opacity-70"}),(0,Re.jsx)("span",{children:"Searching across pages\u2026"})]}),(0,Re.jsxs)("ul",{className:"ml-6 list-disc space-y-1",children:[(0,Re.jsx)("li",{className:"opacity-90",children:"Checking recent changes"}),(0,Re.jsx)("li",{className:"opacity-90",children:"Scanning documentation"}),(0,Re.jsx)("li",{className:"opacity-90",children:"Summarizing relevant sections"})]})]}),(e==="thinking"||e==="executing"||e==="responding")&&t.length>0&&(0,Re.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-200",children:[t.map((a,r)=>(0,Re.jsxs)("div",{className:`flex items-center gap-2 transition-opacity duration-200 ${a.completed?"opacity-60":"opacity-100"}`,children:[a.completed?(0,Re.jsx)(Ge,{className:"h-3.5 w-3.5 text-green-500 flex-shrink-0"}):(0,Re.jsx)(Bt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Re.jsx)("span",{className:a.completed?"line-through":"",children:a.message})]},r)),e==="responding"&&(0,Re.jsxs)("div",{className:"flex items-center gap-2 opacity-100 animate-in fade-in-0 duration-200",children:[(0,Re.jsx)(Bt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,Re.jsx)("span",{children:"Preparing response..."})]})]})]})}var Ev=N(X(),1);var ia=N(le(),1);function Fv({title:e,links:t}){let[a,r]=Ev.useState(!1);return(0,ia.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,ia.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,ia.jsxs)("div",{className:"flex items-center gap-1.5",children:[a?(0,ia.jsx)(gi,{className:"h-3 w-3 opacity-70"}):(0,ia.jsx)(ho,{className:"h-3 w-3 opacity-70"}),(0,ia.jsx)("span",{children:e})]})}),a&&t.length>0&&(0,ia.jsx)("ul",{className:"ml-5 mt-1 space-y-0.5",children:t.map(o=>(0,ia.jsx)("li",{children:(0,ia.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:o.label})},o.href))})]})}var Ii=N(le(),1),ya=N(X(),1);var Bv=N(X(),1),wn=(0,Bv.createContext)({});var Ov=N(X(),1);function kn(e){let t=(0,Ov.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Wp=N(le(),1),Hv=N(X(),1),go=N(X(),1);var Vv=N(X(),1),Dr=(0,Vv.createContext)(null);var _v=N(le(),1),Nu=N(X(),1),ja=N(X(),1);var Uv=N(X(),1),bn=(0,Uv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var qp=class extends Nu.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 zv({children:e,isPresent:t}){let a=(0,ja.useId)(),r=(0,ja.useRef)(null),o=(0,ja.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,ja.useContext)(bn);return(0,ja.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 qc(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function bf(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var hw=typeof WeakMap=="function"?WeakMap:Map;function ay(e,t,a){a=Fa(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Zl||(Zl=!0,Bf=r),bf(e,t)},a}function ry(e,t,a){a=Fa(-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(){bf(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){bf(e,t),typeof r!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function mg(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new hw;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=Aw.bind(null,e,t,a),t.then(e,e))}function hg(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 gg(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=Fa(-1,1),t.tag=2,hr(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var gw=_a.ReactCurrentOwner,yt=!1;function dt(e,t,a,r){t.child=e===null?Mx(t,null,a,r):rn(t,e.child,a,r)}function xg(e,t,a,r,o){a=a.render;var n=t.ref;return Zo(t,o),r=mp(e,t,a,r,n,o),a=hp(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(ke&&a&&ap(t),t.flags|=1,dt(e,t,r,o),t.child)}function yg(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!kp(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,oy(e,t,n,r,o)):(e=Dl(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:js,a(s,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,e=yr(n,r),e.ref=t.ref,e.return=t,t.child=e}function oy(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(js(n,r)&&e.ref===t.ref)if(yt=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,Ua(e,t,o)}return Pf(e,t,a,r,o)}function ny(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},ye(Ko,At),At|=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,ye(Ko,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,ye(Ko,At),At|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,ye(Ko,At),At|=r;return dt(e,t,o,a),t.child}function sy(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Pf(e,t,a,r,o){var n=Lt(a)?oo:nt.current;return n=tn(t,n),Zo(t,o),a=mp(e,t,a,r,n,o),r=hp(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(ke&&r&&ap(t),t.flags|=1,dt(e,t,a,o),t.child)}function vg(e,t,a,r,o){if(Lt(a)){var n=!0;Hl(t)}else n=!1;if(Zo(t,o),t.stateNode===null)Tl(e,t),ty(t,a,r),kf(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=Xt(u):(u=Lt(a)?oo:nt.current,u=tn(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)&&pg(t,s,r,u),sr=!1;var f=t.memoizedState;s.state=f,Kl(t,r,s,o),l=t.memoizedState,i!==r||f!==l||vt.current||sr?(typeof d=="function"&&(wf(t,a,d,r),l=t.memoizedState),(i=sr||fg(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,Ex(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:ta(t.type,i),s.props=u,c=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Xt(l):(l=Lt(a)?oo:nt.current,l=tn(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)&&pg(t,s,r,l),sr=!1,f=t.memoizedState,s.state=f,Kl(t,r,s,o);var L=t.memoizedState;i!==c||f!==L||vt.current||sr?(typeof g=="function"&&(wf(t,a,g,r),L=t.memoizedState),(u=sr||fg(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 Tf(e,t,a,r,n,o)}function Tf(e,t,a,r,o,n){sy(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&og(t,a,!1),Ua(e,t,n);r=t.stateNode,gw.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=rn(t,e.child,null,n),t.child=rn(t,null,i,n)):dt(e,t,i,n),t.memoizedState=r.state,o&&og(t,a,!0),t.child}function iy(e){var t=e.stateNode;t.pendingContext?rg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rg(e,t.context,!1),dp(e,t.containerInfo)}function Lg(e,t,a,r,o){return an(),op(o),t.flags|=256,dt(e,t,a,r),t.child}var Af={dehydrated:null,treeContext:null,retryLane:0};function Rf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ly(e,t,a){var r=t.pendingProps,o=be.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),ye(be,o&1),e===null)return Sf(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=fu(s,r,0,null),e=ro(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Rf(a),t.memoizedState=Af,e):yp(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return xw(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=yr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=yr(i,n):(n=ro(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?Rf(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=Af,r}return n=e.child,e=n.sibling,r=yr(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 yp(e,t){return t=fu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vl(e,t,a,r){return r!==null&&op(r),rn(t,e.child,null,a),e=yp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xw(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=qc(Error(R(422))),vl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=fu({mode:"visible",children:r.children},o,0,null),n=ro(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&rn(t,e.child,null,s),t.child.memoizedState=Rf(s),t.memoizedState=Af,n);if((t.mode&1)===0)return vl(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=qc(n,r,void 0),vl(e,t,s,r)}if(i=(s&e.childLanes)!==0,yt||i){if(r=We,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,Va(e,o),na(r,e,o,-1))}return wp(),r=qc(Error(R(421))),vl(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Rw.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Rt=mr(o.nextSibling),Dt=t,ke=!0,ra=null,e!==null&&(Gt[jt++]=Na,Gt[jt++]=Ea,Gt[jt++]=no,Na=e.id,Ea=e.overflow,no=t),t=yp(t,r.children),t.flags|=4096,t)}function Cg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),If(e.return,t,a)}function Wc(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 uy(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(dt(e,t,r.children,a),r=be.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(ye(be,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&&$l(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Wc(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&&$l(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Wc(t,!0,a,null,n);break;case"together":Wc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),io|=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=yr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=yr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function yw(e,t,a){switch(t.tag){case 3:iy(t),an();break;case 5:Fx(t);break;case 1:Lt(t.type)&&Hl(t);break;case 4:dp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(Gl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(be,be.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?ly(e,t,a):(ye(be,be.current&1),e=Ua(e,t,a),e!==null?e.sibling:null);ye(be,be.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return uy(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,ny(e,t,a)}return Ua(e,t,a)}var dy,Df,cy,fy;dy=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}};Df=function(){};cy=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,to(ga.current);var n=null;switch(a){case"input":o=Zc(e,o),r=Zc(e,r),n=[];break;case"select":o=Te({},o,{value:void 0}),r=Te({},r,{value:void 0}),n=[];break;case"textarea":o=tf(e,o),r=tf(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_l)}rf(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"&&(Us.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"&&(Us.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Le("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)}};fy=function(e,t,a,r){a!==r&&(t.flags|=4)};function Is(e,t){if(!ke)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 rt(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 vw(e,t,a){var r=t.pendingProps;switch(rp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return Lt(t.type)&&zl(),rt(t),null;case 3:return r=t.stateNode,on(),Ce(vt),Ce(nt),fp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ra!==null&&(Uf(ra),ra=null))),Df(e,t),rt(t),null;case 5:cp(t);var o=to(Ys.current);if(a=t.type,e!==null&&t.stateNode!=null)cy(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 rt(t),null}if(e=to(ga.current),xl(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[ma]=t,r[Xs]=n,e=(t.mode&1)!==0,a){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(o=0;o<As.length;o++)Le(As[o],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Ah(r,n),Le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},Le("invalid",r);break;case"textarea":Dh(r,n),Le("invalid",r)}rf(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&&gl(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&gl(r.textContent,i,e),o=["children",""+i]):Us.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Le("scroll",r)}switch(a){case"input":ol(r),Rh(r,n,!0);break;case"textarea":ol(r),Mh(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=_l)}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=_g(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[ma]=t,e[Xs]=r,dy(e,t,!1,!1),t.stateNode=e;e:{switch(s=of(a,r),a){case"dialog":Le("cancel",e),Le("close",e),o=r;break;case"iframe":case"object":case"embed":Le("load",e),o=r;break;case"video":case"audio":for(o=0;o<As.length;o++)Le(As[o],e);o=r;break;case"source":Le("error",e),o=r;break;case"img":case"image":case"link":Le("error",e),Le("load",e),o=r;break;case"details":Le("toggle",e),o=r;break;case"input":Ah(e,r),o=Zc(e,r),Le("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Te({},r,{value:void 0}),Le("invalid",e);break;case"textarea":Dh(e,r),o=tf(e,r),Le("invalid",e);break;default:o=r}rf(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?qg(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&zg(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&_s(e,l):typeof l=="number"&&_s(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Us.hasOwnProperty(n)?l!=null&&n==="onScroll"&&Le("scroll",e):l!=null&&Hf(e,n,l,s))}switch(a){case"input":ol(e),Rh(e,r,!1);break;case"textarea":ol(e),Mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vr(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?$o(e,!!r.multiple,n,!1):r.defaultValue!=null&&$o(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=_l)}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 rt(t),null;case 6:if(e&&t.stateNode!=null)fy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(a=to(Ys.current),to(ga.current),xl(t)){if(r=t.stateNode,a=t.memoizedProps,r[ma]=t,(n=r.nodeValue!==a)&&(e=Dt,e!==null))switch(e.tag){case 3:gl(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gl(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[ma]=t,t.stateNode=r}return rt(t),null;case 13:if(Ce(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ke&&Rt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Rx(),an(),t.flags|=98560,n=!1;else if(n=xl(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[ma]=t}else an(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),n=!1}else ra!==null&&(Uf(ra),ra=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||(be.current&1)!==0?Ue===0&&(Ue=3):wp())),t.updateQueue!==null&&(t.flags|=4),rt(t),null);case 4:return on(),Df(e,t),e===null&&Ks(t.stateNode.containerInfo),rt(t),null;case 10:return ip(t.type._context),rt(t),null;case 17:return Lt(t.type)&&zl(),rt(t),null;case 19:if(Ce(be),n=t.memoizedState,n===null)return rt(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)Is(n,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=$l(e),s!==null){for(t.flags|=128,Is(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 ye(be,be.current&1|2),t.child}e=e.sibling}n.tail!==null&&Me()>sn&&(t.flags|=128,r=!0,Is(n,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),Is(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ke)return rt(t),null}else 2*Me()-n.renderingStartTime>sn&&a!==1073741824&&(t.flags|=128,r=!0,Is(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=Me(),t.sibling=null,a=be.current,ye(be,r?a&1|2:a&1),t):(rt(t),null);case 22:case 23:return Ip(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(At&1073741824)!==0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Lw(e,t){switch(rp(t),t.tag){case 1:return Lt(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return on(),Ce(vt),Ce(nt),fp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return cp(t),null;case 13:if(Ce(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(be),null;case 4:return on(),null;case 10:return ip(t.type._context),null;case 22:case 23:return Ip(),null;case 24:return null;default:return null}}var Ll=!1,ot=!1,Cw=typeof WeakSet=="function"?WeakSet:Set,B=null;function jo(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Re(e,t,r)}else a.current=null}function Mf(e,t,a){try{a()}catch(r){Re(e,t,r)}}var Sg=!1;function Sw(e,t){if(hf=Ol,e=xx(),tp(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(gf={focusedElem:e,selectionRange:a},Ol=!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 C=L.memoizedProps,k=L.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?C:ta(t.type,C),k);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(w){Re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return L=Sg,Sg=!1,L}function Bs(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&&Mf(t,a,n)}o=o.next}while(o!==r)}}function du(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 Nf(e){var t=e.ref;if(t!==null){var a=e.stateNode;e.tag,e=a,typeof t=="function"?t(e):t.current=e}}function py(e){var t=e.alternate;t!==null&&(e.alternate=null,py(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ma],delete t[Xs],delete t[vf],delete t[ow],delete t[nw])),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 my(e){return e.tag===5||e.tag===3||e.tag===4}function Ig(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||my(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 Ef(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=_l));else if(r!==4&&(e=e.child,e!==null))for(Ef(e,t,a),e=e.sibling;e!==null;)Ef(e,t,a),e=e.sibling}function Ff(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(Ff(e,t,a),e=e.sibling;e!==null;)Ff(e,t,a),e=e.sibling}var Ke=null,aa=!1;function or(e,t,a){for(a=a.child;a!==null;)hy(e,t,a),a=a.sibling}function hy(e,t,a){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(au,a)}catch{}switch(a.tag){case 5:ot||jo(a,t);case 6:var r=Ke,o=aa;Ke=null,or(e,t,a),Ke=r,aa=o,Ke!==null&&(aa?(e=Ke,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Ke.removeChild(a.stateNode));break;case 18:Ke!==null&&(aa?(e=Ke,a=a.stateNode,e.nodeType===8?Oc(e.parentNode,a):e.nodeType===1&&Oc(e,a),Ws(e)):Oc(Ke,a.stateNode));break;case 4:r=Ke,o=aa,Ke=a.stateNode.containerInfo,aa=!0,or(e,t,a),Ke=r,aa=o;break;case 0:case 11:case 14:case 15:if(!ot&&(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)&&Mf(a,t,s),o=o.next}while(o!==r)}or(e,t,a);break;case 1:if(!ot&&(jo(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Re(a,t,i)}or(e,t,a);break;case 21:or(e,t,a);break;case 22:a.mode&1?(ot=(r=ot)||a.memoizedState!==null,or(e,t,a),ot=r):or(e,t,a);break;default:or(e,t,a)}}function wg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new Cw),t.forEach(function(r){var o=Dw.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function ea(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:Ke=i.stateNode,aa=!1;break e;case 3:Ke=i.stateNode.containerInfo,aa=!0;break e;case 4:Ke=i.stateNode.containerInfo,aa=!0;break e}i=i.return}if(Ke===null)throw Error(R(160));hy(n,s,o),Ke=null,aa=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Re(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)gy(t,e),t=t.sibling}function gy(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ea(t,e),fa(e),r&4){try{Bs(3,e,e.return),du(3,e)}catch(C){Re(e,e.return,C)}try{Bs(5,e,e.return)}catch(C){Re(e,e.return,C)}}break;case 1:ea(t,e),fa(e),r&512&&a!==null&&jo(a,a.return);break;case 5:if(ea(t,e),fa(e),r&512&&a!==null&&jo(a,a.return),e.flags&32){var o=e.stateNode;try{_s(o,"")}catch(C){Re(e,e.return,C)}}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&&Vg(o,n),of(i,s);var u=of(i,n);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?qg(o,c):d==="dangerouslySetInnerHTML"?zg(o,c):d==="children"?_s(o,c):Hf(o,d,c,u)}switch(i){case"input":Jc(o,n);break;case"textarea":Ug(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var g=n.value;g!=null?$o(o,!!n.multiple,g,!1):f!==!!n.multiple&&(n.defaultValue!=null?$o(o,!!n.multiple,n.defaultValue,!0):$o(o,!!n.multiple,n.multiple?[]:"",!1))}o[Xs]=n}catch(C){Re(e,e.return,C)}}break;case 6:if(ea(t,e),fa(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(C){Re(e,e.return,C)}}break;case 3:if(ea(t,e),fa(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Ws(t.containerInfo)}catch(C){Re(e,e.return,C)}break;case 4:ea(t,e),fa(e);break;case 13:ea(t,e),fa(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(Cp=Me())),r&4&&wg(e);break;case 22:if(d=a!==null&&a.memoizedState!==null,e.mode&1?(ot=(u=ot)||d,ea(t,e),ot=u):ea(t,e),fa(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:Bs(4,f,f.return);break;case 1:jo(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(C){Re(r,a,C)}}break;case 5:jo(f,f.return);break;case 22:if(f.memoizedState!==null){bg(c);continue}}g!==null?(g.return=f,B=g):bg(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=Hg("display",s))}catch(C){Re(e,e.return,C)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(C){Re(e,e.return,C)}}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:ea(t,e),fa(e),r&4&&wg(e);break;case 21:break;default:ea(t,e),fa(e)}}function fa(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(my(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&&(_s(o,""),r.flags&=-33);var n=Ig(e);Ff(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Ig(e);Ef(e,i,s);break;default:throw Error(R(161))}}catch(l){Re(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iw(e,t,a){B=e,xy(e,t,a)}function xy(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||Ll;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||ot;i=Ll;var u=ot;if(Ll=s,(ot=l)&&!u)for(B=o;B!==null;)s=B,l=s.child,s.tag===22&&s.memoizedState!==null?Pg(o):l!==null?(l.return=s,B=l):Pg(o);for(;n!==null;)B=n,xy(n,t,a),n=n.sibling;B=o,Ll=i,ot=u}kg(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,B=n):kg(e,t,a)}}function kg(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:ot||du(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ot)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:ta(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&ug(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}ug(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&&Ws(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ot||t.flags&512&&Nf(t)}catch(f){Re(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 bg(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 Pg(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{du(4,t)}catch(l){Re(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Re(t,o,l)}}var n=t.return;try{Nf(t)}catch(l){Re(t,n,l)}break;case 5:var s=t.return;try{Nf(t)}catch(l){Re(t,s,l)}}}catch(l){Re(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 ww=Math.ceil,Yl=_a.ReactCurrentDispatcher,vp=_a.ReactCurrentOwner,$t=_a.ReactCurrentBatchConfig,le=0,We=null,Fe=null,$e=0,At=0,Ko=Sr(0),Ue=0,ti=null,io=0,cu=0,Lp=0,Os=null,xt=null,Cp=0,sn=1/0,Da=null,Zl=!1,Bf=null,gr=null,Cl=!1,dr=null,Jl=0,Vs=0,Of=null,Al=-1,Rl=0;function ct(){return(le&6)!==0?Me():Al!==-1?Al:Al=Me()}function xr(e){return(e.mode&1)===0?1:(le&2)!==0&&$e!==0?$e&-$e:iw.transition!==null?(Rl===0&&(Rl=tx()),Rl):(e=me,e!==0||(e=window.event,e=e===void 0?16:lx(e.type)),e)}function na(e,t,a,r){if(50<Vs)throw Vs=0,Of=null,Error(R(185));ai(e,a,r),((le&2)===0||e!==We)&&(e===We&&((le&2)===0&&(cu|=a),Ue===4&&lr(e,$e)),Ct(e,r),a===1&&le===0&&(t.mode&1)===0&&(sn=Me()+500,iu&&Ir()))}function Ct(e,t){var a=e.callbackNode;uI(e,t);var r=Bl(e,e===We?$e:0);if(r===0)a!==null&&Fh(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Fh(a),t===1)e.tag===0?sw(Tg.bind(null,e)):Px(Tg.bind(null,e)),aw(function(){(le&6)===0&&Ir()}),a=null;else{switch(ax(r)){case 1:a=Kf;break;case 4:a=Jg;break;case 16:a=Fl;break;case 536870912:a=ex;break;default:a=Fl}a=ky(a,yy.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function yy(e,t){if(Al=-1,Rl=0,(le&6)!==0)throw Error(R(327));var a=e.callbackNode;if(Jo()&&e.callbackNode!==a)return null;var r=Bl(e,e===We?$e:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=eu(e,r);else{t=r;var o=le;le|=2;var n=Ly();(We!==e||$e!==t)&&(Da=null,sn=Me()+500,ao(e,t));do try{Pw();break}catch(i){vy(e,i)}while(!0);sp(),Yl.current=n,le=o,Fe!==null?t=0:(We=null,$e=0,t=Ue)}if(t!==0){if(t===2&&(o=df(e),o!==0&&(r=o,t=Vf(e,o))),t===1)throw a=ti,ao(e,0),lr(e,r),Ct(e,Me()),a;if(t===6)lr(e,r);else{if(o=e.current.alternate,(r&30)===0&&!kw(o)&&(t=eu(e,r),t===2&&(n=df(e),n!==0&&(r=n,t=Vf(e,n))),t===1))throw a=ti,ao(e,0),lr(e,r),Ct(e,Me()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Zr(e,xt,Da);break;case 3:if(lr(e,r),(r&130023424)===r&&(t=Cp+500-Me(),10<t)){if(Bl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ct(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yf(Zr.bind(null,e,xt,Da),t);break}Zr(e,xt,Da);break;case 4:if(lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-oa(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ww(r/1960))-r,10<r){e.timeoutHandle=yf(Zr.bind(null,e,xt,Da),r);break}Zr(e,xt,Da);break;case 5:Zr(e,xt,Da);break;default:throw Error(R(329))}}}return Ct(e,Me()),e.callbackNode===a?yy.bind(null,e):null}function Vf(e,t){var a=Os;return e.current.memoizedState.isDehydrated&&(ao(e,t).flags|=256),e=eu(e,t),e!==2&&(t=xt,xt=a,t!==null&&Uf(t)),e}function Uf(e){xt===null?xt=e:xt.push.apply(xt,e)}function kw(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(!sa(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 lr(e,t){for(t&=~Lp,t&=~cu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-oa(t),r=1<<a;e[a]=-1,t&=~r}}function Tg(e){if((le&6)!==0)throw Error(R(327));Jo();var t=Bl(e,0);if((t&1)===0)return Ct(e,Me()),null;var a=eu(e,t);if(e.tag!==0&&a===2){var r=df(e);r!==0&&(t=r,a=Vf(e,r))}if(a===1)throw a=ti,ao(e,0),lr(e,t),Ct(e,Me()),a;if(a===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zr(e,xt,Da),Ct(e,Me()),null}function Sp(e,t){var a=le;le|=1;try{return e(t)}finally{le=a,le===0&&(sn=Me()+500,iu&&Ir())}}function lo(e){dr!==null&&dr.tag===0&&(le&6)===0&&Jo();var t=le;le|=1;var a=$t.transition,r=me;try{if($t.transition=null,me=1,e)return e()}finally{me=r,$t.transition=a,le=t,(le&6)===0&&Ir()}}function Ip(){At=Ko.current,Ce(Ko)}function ao(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,tw(a)),Fe!==null)for(a=Fe.return;a!==null;){var r=a;switch(rp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zl();break;case 3:on(),Ce(vt),Ce(nt),fp();break;case 5:cp(r);break;case 4:on();break;case 13:Ce(be);break;case 19:Ce(be);break;case 10:ip(r.type._context);break;case 22:case 23:Ip()}a=a.return}if(We=e,Fe=e=yr(e.current,null),$e=At=t,Ue=0,ti=null,Lp=cu=io=0,xt=Os=null,eo!==null){for(t=0;t<eo.length;t++)if(a=eo[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}eo=null}return e}function vy(e,t){do{var a=Fe;try{if(sp(),bl.current=Ql,Xl){for(var r=Pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Xl=!1}if(so=0,qe=Ve=Pe=null,Fs=!1,Zs=0,vp.current=null,a===null||a.return===null){Ue=1,ti=t,Fe=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=$e,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=hg(s);if(g!==null){g.flags&=-257,gg(g,s,i,n,t),g.mode&1&&mg(n,u,t),t=g,l=u;var L=t.updateQueue;if(L===null){var C=new Set;C.add(l),t.updateQueue=C}else L.add(l);break e}else{if((t&1)===0){mg(n,u,t),wp();break e}l=Error(R(426))}}else if(ke&&i.mode&1){var k=hg(s);if(k!==null){(k.flags&65536)===0&&(k.flags|=256),gg(k,s,i,n,t),op(nn(l,i));break e}}n=l=nn(l,i),Ue!==4&&(Ue=2),Os===null?Os=[n]:Os.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var h=ay(n,l,t);lg(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"&&(gr===null||!gr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var w=ry(n,i,t);lg(n,w);break e}}n=n.return}while(n!==null)}Sy(a)}catch(S){t=S,Fe===a&&a!==null&&(Fe=a=a.return);continue}break}while(!0)}function Ly(){var e=Yl.current;return Yl.current=Ql,e===null?Ql:e}function wp(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),We===null||(io&268435455)===0&&(cu&268435455)===0||lr(We,$e)}function eu(e,t){var a=le;le|=2;var r=Ly();(We!==e||$e!==t)&&(Da=null,ao(e,t));do try{bw();break}catch(o){vy(e,o)}while(!0);if(sp(),le=a,Yl.current=r,Fe!==null)throw Error(R(261));return We=null,$e=0,Ue}function bw(){for(;Fe!==null;)Cy(Fe)}function Pw(){for(;Fe!==null&&!eI();)Cy(Fe)}function Cy(e){var t=wy(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?Sy(e):Fe=t,vp.current=null}function Sy(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=vw(a,t,At),a!==null){Fe=a;return}}else{if(a=Lw(a,t),a!==null){a.flags&=32767,Fe=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function Zr(e,t,a){var r=me,o=$t.transition;try{$t.transition=null,me=1,Tw(e,t,a,r)}finally{$t.transition=o,me=r}return null}function Tw(e,t,a,r){do Jo();while(dr!==null);if((le&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(dI(e,n),e===We&&(Fe=We=null,$e=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Cl||(Cl=!0,ky(Fl,function(){return Jo(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=$t.transition,$t.transition=null;var s=me;me=1;var i=le;le|=4,vp.current=null,Sw(e,a),gy(a,e),QI(gf),Ol=!!hf,gf=hf=null,e.current=a,Iw(a,e,o),tI(),le=i,me=s,$t.transition=n}else e.current=a;if(Cl&&(Cl=!1,dr=e,Jl=o),n=e.pendingLanes,n===0&&(gr=null),oI(a.stateNode,r),Ct(e,Me()),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=Bf,Bf=null,e;return(Jl&1)!==0&&e.tag!==0&&Jo(),n=e.pendingLanes,(n&1)!==0?e===Of?Vs++:(Vs=0,Of=e):Vs=0,Ir(),null}function Jo(){if(dr!==null){var e=ax(Jl),t=$t.transition,a=me;try{if($t.transition=null,me=16>e?16:e,dr===null)var r=!1;else{if(e=dr,dr=null,Jl=0,(le&6)!==0)throw Error(R(331));var o=le;for(le|=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:Bs(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(py(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 C=L.child;if(C!==null){L.child=null;do{var k=C.sibling;C.sibling=null,C=k}while(C!==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:Bs(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:du(9,i)}}catch(S){Re(i,i.return,S)}if(i===s){B=null;break e}var w=i.sibling;if(w!==null){w.return=i.return,B=w;break e}B=i.return}}if(le=o,Ir(),ha&&typeof ha.onPostCommitFiberRoot=="function")try{ha.onPostCommitFiberRoot(au,e)}catch{}r=!0}return r}finally{me=a,$t.transition=t}}return!1}function Ag(e,t,a){t=nn(a,t),t=ay(e,t,1),e=hr(e,t,1),t=ct(),e!==null&&(ai(e,1,t),Ct(e,t))}function Re(e,t,a){if(e.tag===3)Ag(e,e,a);else for(;t!==null;){if(t.tag===3){Ag(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gr===null||!gr.has(r))){e=nn(a,e),e=ry(t,e,1),t=hr(t,e,1),e=ct(),t!==null&&(ai(t,1,e),Ct(t,e));break}}t=t.return}}function Aw(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=ct(),e.pingedLanes|=e.suspendedLanes&a,We===e&&($e&a)===a&&(Ue===4||Ue===3&&($e&130023424)===$e&&500>Me()-Cp?ao(e,0):Lp|=a),Ct(e,t)}function Iy(e,t){t===0&&((e.mode&1)===0?t=1:(t=il,il<<=1,(il&130023424)===0&&(il=4194304)));var a=ct();e=Va(e,t),e!==null&&(ai(e,t,a),Ct(e,a))}function Rw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Iy(e,a)}function Dw(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),Iy(e,a)}var wy;wy=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||vt.current)yt=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return yt=!1,yw(e,t,a);yt=(e.flags&131072)!==0}else yt=!1,ke&&(t.flags&1048576)!==0&&Tx(t,Wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tl(e,t),e=t.pendingProps;var o=tn(t,nt.current);Zo(t,a),o=mp(null,t,r,e,o,a);var n=hp();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,Lt(r)?(n=!0,Hl(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,up(t),o.updater=uu,t.stateNode=o,o._reactInternals=t,kf(t,r,e,a),t=Tf(null,t,r,!0,n,a)):(t.tag=0,ke&&n&&ap(t),dt(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Tl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Nw(r),e=ta(r,e),o){case 0:t=Pf(null,t,r,e,a);break e;case 1:t=vg(null,t,r,e,a);break e;case 11:t=xg(null,t,r,e,a);break e;case 14:t=yg(null,t,r,ta(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:ta(r,o),Pf(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ta(r,o),vg(e,t,r,o,a);case 3:e:{if(iy(t),e===null)throw Error(R(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Ex(e,t),Kl(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=nn(Error(R(423)),t),t=Lg(e,t,r,a,o);break e}else if(r!==o){o=nn(Error(R(424)),t),t=Lg(e,t,r,a,o);break e}else for(Rt=mr(t.stateNode.containerInfo.firstChild),Dt=t,ke=!0,ra=null,a=Mx(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(an(),r===o){t=Ua(e,t,a);break e}dt(e,t,r,a)}t=t.child}return t;case 5:return Fx(t),e===null&&Sf(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,xf(r,o)?s=null:n!==null&&xf(r,n)&&(t.flags|=32),sy(e,t),dt(e,t,s,a),t.child;case 6:return e===null&&Sf(t),null;case 13:return ly(e,t,a);case 4:return dp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rn(t,null,r,a):dt(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ta(r,o),xg(e,t,r,o,a);case 7:return dt(e,t,t.pendingProps,a),t.child;case 8:return dt(e,t,t.pendingProps.children,a),t.child;case 12:return dt(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,ye(Gl,r._currentValue),r._currentValue=s,n!==null)if(sa(n.value,s)){if(n.children===o.children&&!vt.current){t=Ua(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=Fa(-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),If(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),If(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}dt(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Zo(t,a),o=Xt(o),r=r(o),t.flags|=1,dt(e,t,r,a),t.child;case 14:return r=t.type,o=ta(r,t.pendingProps),o=ta(r.type,o),yg(e,t,r,o,a);case 15:return oy(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ta(r,o),Tl(e,t),t.tag=1,Lt(r)?(e=!0,Hl(t)):e=!1,Zo(t,a),ty(t,r,o),kf(t,r,o,a),Tf(null,t,r,!0,e,a);case 19:return uy(e,t,a);case 22:return ny(e,t,a)}throw Error(R(156,t.tag))};function ky(e,t){return Zg(e,t)}function Mw(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 Kt(e,t,a,r){return new Mw(e,t,a,r)}function kp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nw(e){if(typeof e=="function")return kp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wf)return 11;if(e===Gf)return 14}return 2}function yr(e,t){var a=e.alternate;return a===null?(a=Kt(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 Dl(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")kp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Oo:return ro(a.children,o,n,t);case qf:s=8,o|=8;break;case $c:return e=Kt(12,a,t,o|2),e.elementType=$c,e.lanes=n,e;case Xc:return e=Kt(13,a,t,o),e.elementType=Xc,e.lanes=n,e;case Qc:return e=Kt(19,a,t,o),e.elementType=Qc,e.lanes=n,e;case Fg:return fu(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ng:s=10;break e;case Eg:s=9;break e;case Wf:s=11;break e;case Gf:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Kt(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function ro(e,t,a,r){return e=Kt(7,e,r,t),e.lanes=a,e}function fu(e,t,a,r){return e=Kt(22,e,r,t),e.elementType=Fg,e.lanes=a,e.stateNode={isHidden:!1},e}function Gc(e,t,a){return e=Kt(6,e,null,t),e.lanes=a,e}function jc(e,t,a){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ew(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=Ac(0),this.expirationTimes=Ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bp(e,t,a,r,o,n,s,i,l){return e=new Ew(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Kt(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},up(n),e}function Fw(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function by(e){if(!e)return Lr;e=e._reactInternals;e:{if(co(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(Lt(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(Lt(a))return bx(e,a,t)}return t}function Py(e,t,a,r,o,n,s,i,l){return e=bp(a,r,!0,e,o,n,s,i,l),e.context=by(null),a=e.current,r=ct(),o=xr(a),n=Fa(r,o),n.callback=t??null,hr(a,n,o),e.current.lanes=o,ai(e,o,r),Ct(e,r),e}function pu(e,t,a,r){var o=t.current,n=ct(),s=xr(o);return a=by(a),t.context===null?t.context=a:t.pendingContext=a,t=Fa(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hr(o,t,s),e!==null&&(na(e,o,s,n),kl(e,o,s)),s}function tu(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Rg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Pp(e,t){Rg(e,t),(e=e.alternate)&&Rg(e,t)}function Bw(){return null}var Ty=typeof reportError=="function"?reportError:function(e){console.error(e)};function Tp(e){this._internalRoot=e}mu.prototype.render=Tp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));pu(e,t,null,null)};mu.prototype.unmount=Tp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lo(function(){pu(null,e,null,null)}),t[Oa]=null}};function mu(e){this._internalRoot=e}mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=nx();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ir.length&&t!==0&&t<ir[a].priority;a++);ir.splice(a,0,e),a===0&&ix(e)}};function Ap(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dg(){}function Ow(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=tu(s);n.call(u)}}var s=Py(t,r,e,0,null,!1,!1,"",Dg);return e._reactRootContainer=s,e[Oa]=s.current,Ks(e.nodeType===8?e.parentNode:e),lo(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=tu(l);i.call(u)}}var l=bp(e,0,!1,null,null,!1,!1,"",Dg);return e._reactRootContainer=l,e[Oa]=l.current,Ks(e.nodeType===8?e.parentNode:e),lo(function(){pu(t,l,a,r)}),l}function gu(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=tu(s);i.call(l)}}pu(t,s,e,o)}else s=Ow(a,t,e,o,r);return tu(s)}rx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Ts(t.pendingLanes);a!==0&&($f(t,a|1),Ct(t,Me()),(le&6)===0&&(sn=Me()+500,Ir()))}break;case 13:lo(function(){var r=Va(e,1);if(r!==null){var o=ct();na(r,e,1,o)}}),Pp(e,1)}};Xf=function(e){if(e.tag===13){var t=Va(e,134217728);if(t!==null){var a=ct();na(t,e,134217728,a)}Pp(e,134217728)}};ox=function(e){if(e.tag===13){var t=xr(e),a=Va(e,t);if(a!==null){var r=ct();na(a,e,t,r)}Pp(e,t)}};nx=function(){return me};sx=function(e,t){var a=me;try{return me=e,t()}finally{me=a}};sf=function(e,t,a){switch(t){case"input":if(Jc(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=su(r);if(!o)throw Error(R(90));Og(r),Jc(r,o)}}}break;case"textarea":Ug(e,a);break;case"select":t=a.value,t!=null&&$o(e,!!a.multiple,t,!1)}};jg=Sp;Kg=lo;var Vw={usingClientEntryPoint:!1,Events:[oi,zo,su,Wg,Gg,Sp]},ws={findFiberByHostInstance:Jr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uw={bundleType:ws.bundleType,version:ws.version,rendererPackageName:ws.rendererPackageName,rendererConfig:ws.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_a.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qg(e),e===null?null:e.stateNode},findFiberByHostInstance:ws.findFiberByHostInstance||Bw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ks=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ks.isDisabled&&ks.supportsFiber))try{au=ks.inject(Uw),ha=ks}catch{}var ks;Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vw;Et.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ap(t))throw Error(R(200));return Fw(e,t,null,a)};Et.createRoot=function(e,t){if(!Ap(e))throw Error(R(299));var a=!1,r="",o=Ty;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=bp(e,1,!1,null,null,a,!1,r,o),e[Oa]=t.current,Ks(e.nodeType===8?e.parentNode:e),new Tp(t)};Et.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=Qg(t),e=e===null?null:e.stateNode,e};Et.flushSync=function(e){return lo(e)};Et.hydrate=function(e,t,a){if(!hu(t))throw Error(R(200));return gu(null,e,t,!0,a)};Et.hydrateRoot=function(e,t,a){if(!Ap(e))throw Error(R(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=Ty;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=Py(t,null,e,1,a??null,o,!1,n,s),e[Oa]=t.current,Ks(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 mu(t)};Et.render=function(e,t,a){if(!hu(t))throw Error(R(200));return gu(null,e,t,!1,a)};Et.unmountComponentAtNode=function(e){if(!hu(e))throw Error(R(40));return e._reactRootContainer?(lo(function(){gu(null,null,e,!1,function(){e._reactRootContainer=null,e[Oa]=null})}),!0):!1};Et.unstable_batchedUpdates=Sp;Et.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!hu(a))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return gu(e,t,a,!1,r)};Et.version="18.3.1-next-f1338f8080-20240426"});var Rp=Ra((kT,Dy)=>{"use strict";function Ry(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ry)}catch(e){console.error(e)}}Ry(),Dy.exports=Ay()});var Ny=Ra(Dp=>{"use strict";var My=Rp();Dp.createRoot=My.createRoot,Dp.hydrateRoot=My.hydrateRoot;var bT});var qy=Ra(yu=>{"use strict";var xk=K(),yk=Symbol.for("react.element"),vk=Symbol.for("react.fragment"),Lk=Object.prototype.hasOwnProperty,Ck=xk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sk={key:!0,ref:!0,__self:!0,__source:!0};function Hy(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)&&!Sk.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:yk,type:e,key:n,ref:s,props:o,_owner:Ck.current}}yu.Fragment=vk;yu.jsx=Hy;yu.jsxs=Hy});var de=Ra((ET,Wy)=>{"use strict";Wy.exports=qy()});var gT={};CS(gT,{initKiteChat:()=>Km});var ba=N(K(),1),sS=N(Ny(),1);var $=N(K(),1);function Ey(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=Ey(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function xu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Ey(e))&&(r&&(r+=" "),r+=t);return r}var _w=e=>{let t=Hw(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split("-");return i[0]===""&&i.length!==1&&i.shift(),Oy(i,t)||zw(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Oy=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Oy(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},Fy=/^\[(.+)\]$/,zw=e=>{if(Fy.test(e)){let t=Fy.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Hw=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Ww(Object.entries(e.classGroups),a).forEach(([n,s])=>{Np(s,r,n,t)}),r},Np=(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(qw(o)){Np(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([n,s])=>{Np(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},qw=e=>e.isThemeGetter,Ww=(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,Gw=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 jw=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 k=0;k<i.length;k++){let h=i[k];if(u===0){if(h===o&&(r||i.slice(k,k+n)===t)){l.push(i.slice(d,k)),d=k+n;continue}if(h==="/"){c=k;continue}}h==="["?u++:h==="]"&&u--}let f=l.length===0?i:i.substring(d),g=f.startsWith("!"),L=g?f.substring(1):f,C=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:L,maybePostfixModifierPosition:C}};return a?i=>a({className:i,parseClassName:s}):s},Kw=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:Gw(e.cacheSize),parseClassName:jw(e),..._w(e)}),Xw=/\s+/,Qw=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(Xw),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,C=r(L?f.substring(0,g):f);if(!C){if(!L){i=u+(i.length>0?" "+i:i);continue}if(C=r(f),!C){i=u+(i.length>0?" "+i:i);continue}L=!1}let k=Kw(d).join(":"),h=c?k+"!":k,m=h+C;if(n.includes(m))continue;n.push(m);let x=o(C,L);for(let w=0;w<x.length;++w){let S=x[w];n.push(h+S)}i=u+(i.length>0?" "+i:i)}return i};function Yw(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Vy(t))&&(r&&(r+=" "),r+=a);return r}var Vy=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Vy(e[r]))&&(a&&(a+=" "),a+=t);return a};function Zw(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=Qw(l,a);return o(l,d),d}return function(){return n(Yw.apply(null,arguments))}}var Se=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Uy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Jw=/^\d+\/\d+$/,ek=new Set(["px","full","screen"]),tk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ak=/\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$/,rk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ok=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,za=e=>dn(e)||ek.has(e)||Jw.test(e),wr=e=>cn(e,"length",pk),dn=e=>!!e&&!Number.isNaN(Number(e)),Mp=e=>cn(e,"number",dn),si=e=>!!e&&Number.isInteger(Number(e)),sk=e=>e.endsWith("%")&&dn(e.slice(0,-1)),Q=e=>Uy.test(e),kr=e=>tk.test(e),ik=new Set(["length","size","percentage"]),lk=e=>cn(e,ik,_y),uk=e=>cn(e,"position",_y),dk=new Set(["image","url"]),ck=e=>cn(e,dk,hk),fk=e=>cn(e,"",mk),ii=()=>!0,cn=(e,t,a)=>{let r=Uy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},pk=e=>ak.test(e)&&!rk.test(e),_y=()=>!1,mk=e=>ok.test(e),hk=e=>nk.test(e);var gk=()=>{let e=Se("colors"),t=Se("spacing"),a=Se("blur"),r=Se("brightness"),o=Se("borderColor"),n=Se("borderRadius"),s=Se("borderSpacing"),i=Se("borderWidth"),l=Se("contrast"),u=Se("grayscale"),d=Se("hueRotate"),c=Se("invert"),f=Se("gap"),g=Se("gradientColorStops"),L=Se("gradientColorStopPositions"),C=Se("inset"),k=Se("margin"),h=Se("opacity"),m=Se("padding"),x=Se("saturate"),w=Se("scale"),S=Se("sepia"),P=Se("skew"),D=Se("space"),A=Se("translate"),V=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",Q,t],ue=()=>[Q,t],Kr=()=>["",za,wr],Pa=()=>["auto",dn,Q],Ro=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],Ht=()=>["","0",Q],qt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ht=()=>[dn,Q];return{cacheSize:500,separator:":",theme:{colors:[ii],spacing:[za,wr],blur:["none","",kr,Q],brightness:ht(),borderColor:[e],borderRadius:["none","","full",kr,Q],borderSpacing:ue(),borderWidth:Kr(),contrast:ht(),grayscale:Ht(),hueRotate:ht(),invert:Ht(),gap:ue(),gradientColorStops:[e],gradientColorStopPositions:[sk,wr],inset:ie(),margin:ie(),opacity:ht(),padding:ue(),saturate:ht(),scale:ht(),sepia:Ht(),skew:ht(),space:ue(),translate:ue()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[kr]}],"break-after":[{"break-after":qt()}],"break-before":[{"break-before":qt()}],"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:[...Ro(),Q]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",si,Q]}],basis:[{basis:ie()}],"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:Ht()}],shrink:[{shrink:Ht()}],order:[{order:["first","last","none",si,Q]}],"grid-cols":[{"grid-cols":[ii]}],"col-start-end":[{col:["auto",{span:["full",si,Q]},Q]}],"col-start":[{"col-start":Pa()}],"col-end":[{"col-end":Pa()}],"grid-rows":[{"grid-rows":[ii]}],"row-start-end":[{row:["auto",{span:[si,Q]},Q]}],"row-start":[{"row-start":Pa()}],"row-end":[{"row-end":Pa()}],"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",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"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:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"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:[kr]},kr]}],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",kr,wr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mp]}],"font-family":[{font:[ii]}],"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",dn,Mp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",za,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:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",za,wr]}],"underline-offset":[{"underline-offset":["auto",za,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:ue()}],"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:[...Ro(),uk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ck]}],"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:[...se(),"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:se()}],"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:["",...se()]}],"outline-offset":[{"outline-offset":[za,Q]}],"outline-w":[{outline:[za,wr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Kr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[za,wr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kr,fk]}],"shadow-color":[{shadow:[ii]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...ge(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ge()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",kr,Q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"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":[S]}],"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:ht()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:ht()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[si,Q]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"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":ue()}],"scroll-mx":[{"scroll-mx":ue()}],"scroll-my":[{"scroll-my":ue()}],"scroll-ms":[{"scroll-ms":ue()}],"scroll-me":[{"scroll-me":ue()}],"scroll-mt":[{"scroll-mt":ue()}],"scroll-mr":[{"scroll-mr":ue()}],"scroll-mb":[{"scroll-mb":ue()}],"scroll-ml":[{"scroll-ml":ue()}],"scroll-p":[{"scroll-p":ue()}],"scroll-px":[{"scroll-px":ue()}],"scroll-py":[{"scroll-py":ue()}],"scroll-ps":[{"scroll-ps":ue()}],"scroll-pe":[{"scroll-pe":ue()}],"scroll-pt":[{"scroll-pt":ue()}],"scroll-pr":[{"scroll-pr":ue()}],"scroll-pb":[{"scroll-pb":ue()}],"scroll-pl":[{"scroll-pl":ue()}],"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:[za,wr,Mp]}],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 zy=Zw(gk);function Ft(...e){return zy(xu(e))}var Gy=N(de(),1);function Ae({className:e,type:t,...a}){return(0,Gy.jsx)("input",{type:t,"data-slot":"input",className:Ft("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 Be=N(K(),1);var Ky=N(K(),1);function jy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function li(...e){return t=>{let a=!1,r=e.map(o=>{let n=jy(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():jy(e[o],null)}}}}function Ha(...e){return Ky.useCallback(li(...e),e)}var vu=N(de(),1),Ik=Symbol.for("react.lazy"),Lu=Be[" use ".trim().toString()];function wk(e){return typeof e=="object"&&e!==null&&"then"in e}function $y(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ik&&"_payload"in e&&wk(e._payload)}function kk(e){let t=bk(e),a=Be.forwardRef((r,o)=>{let{children:n,...s}=r;$y(n)&&typeof Lu=="function"&&(n=Lu(n._payload));let i=Be.Children.toArray(n),l=i.find(Tk);if(l){let u=l.props.children,d=i.map(c=>c===l?Be.Children.count(u)>1?Be.Children.only(null):Be.isValidElement(u)?u.props.children:null:c);return(0,vu.jsx)(t,{...s,ref:o,children:Be.isValidElement(u)?Be.cloneElement(u,void 0,d):null})}return(0,vu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}var Xy=kk("Slot");function bk(e){let t=Be.forwardRef((a,r)=>{let{children:o,...n}=a;if($y(o)&&typeof Lu=="function"&&(o=Lu(o._payload)),Be.isValidElement(o)){let s=Rk(o),i=Ak(n,o.props);return o.type!==Be.Fragment&&(i.ref=r?li(r,s):s),Be.cloneElement(o,i)}return Be.Children.count(o)>1?Be.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pk=Symbol("radix.slottable");function Tk(e){return Be.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pk}function Ak(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 Rk(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=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yy=xu,Zy=(e,t)=>a=>{var r;if(t?.variants==null)return Yy(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=Qy(d)||Qy(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[C,k]=L;return Array.isArray(k)?k.includes({...n,...i}[C]):{...n,...i}[C]===k})?[...u,c,f]:u},[]);return Yy(e,s,l,a?.class,a?.className)};var Jy=N(de(),1),Dk=Zy("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 St({className:e,variant:t,size:a,asChild:r=!1,...o}){return(0,Jy.jsx)(r?Xy:"button",{"data-slot":"button",className:Ft(Dk({variant:t,size:a,className:e})),...o})}var kv=N(K(),1);var q=N(K(),1);var tv=N(K(),1),Ok=N(Rp(),1);var _e=N(K(),1);var Cu=N(de(),1);function ev(e){let t=Mk(e),a=_e.forwardRef((r,o)=>{let{children:n,...s}=r,i=_e.Children.toArray(n),l=i.find(Ek);if(l){let u=l.props.children,d=i.map(c=>c===l?_e.Children.count(u)>1?_e.Children.only(null):_e.isValidElement(u)?u.props.children:null:c);return(0,Cu.jsx)(t,{...s,ref:o,children:_e.isValidElement(u)?_e.cloneElement(u,void 0,d):null})}return(0,Cu.jsx)(t,{...s,ref:o,children:n})});return a.displayName=`${e}.Slot`,a}function Mk(e){let t=_e.forwardRef((a,r)=>{let{children:o,...n}=a;if(_e.isValidElement(o)){let s=Bk(o),i=Fk(n,o.props);return o.type!==_e.Fragment&&(i.ref=r?li(r,s):s),_e.cloneElement(o,i)}return _e.Children.count(o)>1?_e.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nk=Symbol("radix.slottable");function Ek(e){return _e.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nk}function Fk(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 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 av=N(de(),1),Vk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fn=Vk.reduce((e,t)=>{let a=ev(`Primitive.${t}`),r=tv.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,av.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var It=N(K(),1);var rv=N(K(),1),ui=globalThis?.document?rv.useLayoutEffect:()=>{};var ov=N(K(),1);function Uk(e,t){return ov.useReducer((a,r)=>t[a][r]??a,e)}var pn=e=>{let{present:t,children:a}=e,r=_k(t),o=typeof a=="function"?a({present:r.isPresent}):It.Children.only(a),n=Ha(r.ref,zk(o));return typeof a=="function"||r.isPresent?It.cloneElement(o,{ref:n}):null};pn.displayName="Presence";function _k(e){let[t,a]=It.useState(),r=It.useRef(null),o=It.useRef(e),n=It.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Uk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return It.useEffect(()=>{let u=Su(r.current);n.current=i==="mounted"?u:"none"},[i]),ui(()=>{let u=r.current,d=o.current;if(d!==e){let f=n.current,g=Su(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ui(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,c=g=>{let C=Su(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&C&&(l("ANIMATION_END"),!o.current)){let k=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},f=g=>{g.target===t&&(n.current=Su(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:It.useCallback(u=>{r.current=u?getComputedStyle(u):null,a(u)},[])}}function Su(e){return e?.animationName||"none"}function zk(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 qa=N(K(),1),nv=N(de(),1);function sv(e,t=[]){let a=[];function r(n,s){let i=qa.createContext(s),l=a.length;a=[...a,s];let u=c=>{let{scope:f,children:g,...L}=c,C=f?.[e]?.[l]||i,k=qa.useMemo(()=>L,Object.values(L));return(0,nv.jsx)(C.Provider,{value:k,children:g})};u.displayName=n+"Provider";function d(c,f){let g=f?.[e]?.[l]||i,L=qa.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=>qa.createContext(s));return function(i){let l=i?.[e]||n;return qa.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Hk(o,...t)]}function Hk(...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 qa.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}var mn=N(K(),1);function br(e){let t=mn.useRef(e);return mn.useEffect(()=>{t.current=e}),mn.useMemo(()=>(...a)=>t.current?.(...a),[])}var Iu=N(K(),1),qk=N(de(),1),Wk=Iu.createContext(void 0);function iv(e){let t=Iu.useContext(Wk);return e||t||"ltr"}function lv(e,[t,a]){return Math.min(a,Math.max(t,e))}var oA=!!(typeof window<"u"&&window.document&&window.document.createElement);function Pr(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}var dv=N(K(),1),ce=N(de(),1);function Gk(e,t){return dv.useReducer((a,r)=>t[a][r]??a,e)}var Ep="ScrollArea",[cv,hA]=sv(Ep),[jk,Yt]=cv(Ep),fv=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),[C,k]=q.useState(null),[h,m]=q.useState(0),[x,w]=q.useState(0),[S,P]=q.useState(!1),[D,A]=q.useState(!1),V=Ha(t,ie=>l(ie)),U=iv(o);return(0,ce.jsx)(jk,{scope:a,type:r,dir:U,scrollHideDelay:n,scrollArea:i,viewport:u,onViewportChange:d,content:c,onContentChange:f,scrollbarX:g,onScrollbarXChange:L,scrollbarXEnabled:S,onScrollbarXEnabledChange:P,scrollbarY:C,onScrollbarYChange:k,scrollbarYEnabled:D,onScrollbarYEnabledChange:A,onCornerWidthChange:m,onCornerHeightChange:w,children:(0,ce.jsx)(fn.div,{dir:U,...s,ref:V,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});fv.displayName=Ep;var pv="ScrollAreaViewport",mv=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,children:r,nonce:o,...n}=e,s=Yt(pv,a),i=q.useRef(null),l=Ha(t,i,s.onViewportChange);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.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,ce.jsx)(fn.div,{"data-radix-scroll-area-viewport":"",...n,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,ce.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});mv.displayName=pv;var xa="ScrollAreaScrollbar",Fp=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Yt(xa,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,ce.jsx)(Kk,{...r,ref:t,forceMount:a}):o.type==="scroll"?(0,ce.jsx)($k,{...r,ref:t,forceMount:a}):o.type==="auto"?(0,ce.jsx)(hv,{...r,ref:t,forceMount:a}):o.type==="always"?(0,ce.jsx)(Bp,{...r,ref:t}):null});Fp.displayName=xa;var Kk=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Yt(xa,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,ce.jsx)(pn,{present:a||n,children:(0,ce.jsx)(hv,{"data-state":n?"visible":"hidden",...r,ref:t})})}),$k=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=Yt(xa,e.__scopeScrollArea),n=e.orientation==="horizontal",s=Pu(()=>l("SCROLL_END"),100),[i,l]=Gk("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,ce.jsx)(pn,{present:a||i!=="hidden",children:(0,ce.jsx)(Bp,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Pr(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Pr(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),hv=q.forwardRef((e,t)=>{let a=Yt(xa,e.__scopeScrollArea),{forceMount:r,...o}=e,[n,s]=q.useState(!1),i=e.orientation==="horizontal",l=Pu(()=>{if(a.viewport){let u=a.viewport.offsetWidth<a.viewport.scrollWidth,d=a.viewport.offsetHeight<a.viewport.scrollHeight;s(i?u:d)}},10);return hn(a.viewport,l),hn(a.content,l),(0,ce.jsx)(pn,{present:r||n,children:(0,ce.jsx)(Bp,{"data-state":n?"visible":"hidden",...o,ref:t})})}),Bp=q.forwardRef((e,t)=>{let{orientation:a="vertical",...r}=e,o=Yt(xa,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=vv(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 eb(f,s.current,i,g)}return a==="horizontal"?(0,ce.jsx)(Xk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollLeft,g=uv(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,ce.jsx)(Qk,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let f=o.viewport.scrollTop,g=uv(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}),Xk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Yt(xa,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=Ha(t,l,n.onScrollbarXChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ce.jsx)(xv,{"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":bu(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:ku(s.paddingLeft),paddingEnd:ku(s.paddingRight)}})}})}),Qk=q.forwardRef((e,t)=>{let{sizes:a,onSizesChange:r,...o}=e,n=Yt(xa,e.__scopeScrollArea),[s,i]=q.useState(),l=q.useRef(null),u=Ha(t,l,n.onScrollbarYChange);return q.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),(0,ce.jsx)(xv,{"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":bu(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:ku(s.paddingTop),paddingEnd:ku(s.paddingBottom)}})}})}),[Yk,gv]=cv(xa),xv=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=Yt(xa,a),[L,C]=q.useState(null),k=Ha(t,V=>C(V)),h=q.useRef(null),m=q.useRef(""),x=g.viewport,w=r.content-r.viewport,S=br(d),P=br(l),D=Pu(c,10);function A(V){if(h.current){let U=V.clientX-h.current.left,ie=V.clientY-h.current.top;u({x:U,y:ie})}}return q.useEffect(()=>{let V=U=>{let ie=U.target;L?.contains(ie)&&S(U,w)};return document.addEventListener("wheel",V,{passive:!1}),()=>document.removeEventListener("wheel",V,{passive:!1})},[x,L,w,S]),q.useEffect(P,[r,P]),hn(L,D),hn(g.content,D),(0,ce.jsx)(Yk,{scope:a,scrollbar:L,hasThumb:o,onThumbChange:br(n),onThumbPointerUp:br(s),onThumbPositionChange:P,onThumbPointerDown:br(i),children:(0,ce.jsx)(fn.div,{...f,ref:k,style:{position:"absolute",...f.style},onPointerDown:Pr(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"),A(V))}),onPointerMove:Pr(e.onPointerMove,A),onPointerUp:Pr(e.onPointerUp,V=>{let U=V.target;U.hasPointerCapture(V.pointerId)&&U.releasePointerCapture(V.pointerId),document.body.style.webkitUserSelect=m.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})})}),wu="ScrollAreaThumb",Op=q.forwardRef((e,t)=>{let{forceMount:a,...r}=e,o=gv(wu,e.__scopeScrollArea);return(0,ce.jsx)(pn,{present:a||o.hasThumb,children:(0,ce.jsx)(Zk,{ref:t,...r})})}),Zk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,style:r,...o}=e,n=Yt(wu,a),s=gv(wu,a),{onThumbPositionChange:i}=s,l=Ha(t,c=>s.onThumbChange(c)),u=q.useRef(void 0),d=Pu(()=>{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=tb(c,i);u.current=g,i()}};return i(),c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[n.viewport,d,i]),(0,ce.jsx)(fn.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:Pr(e.onPointerDownCapture,c=>{let g=c.target.getBoundingClientRect(),L=c.clientX-g.left,C=c.clientY-g.top;s.onThumbPointerDown({x:L,y:C})}),onPointerUp:Pr(e.onPointerUp,s.onThumbPointerUp)})});Op.displayName=wu;var Vp="ScrollAreaCorner",yv=q.forwardRef((e,t)=>{let a=Yt(Vp,e.__scopeScrollArea),r=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&r?(0,ce.jsx)(Jk,{...e,ref:t}):null});yv.displayName=Vp;var Jk=q.forwardRef((e,t)=>{let{__scopeScrollArea:a,...r}=e,o=Yt(Vp,a),[n,s]=q.useState(0),[i,l]=q.useState(0),u=!!(n&&i);return hn(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),hn(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),s(d)}),u?(0,ce.jsx)(fn.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 ku(e){return e?parseInt(e,10):0}function vv(e,t){let a=e/t;return isNaN(a)?0:a}function bu(e){let t=vv(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-a)*t;return Math.max(r,18)}function eb(e,t,a,r="ltr"){let o=bu(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 Lv([l,u],c)(e)}function uv(e,t,a="ltr"){let r=bu(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=lv(e,l);return Lv([0,s],[0,i])(u)}function Lv(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 tb=(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 Pu(e,t){let a=br(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 hn(e,t){let a=br(t);ui(()=>{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 Sv=fv,Iv=mv;var wv=yv;var Tr=N(de(),1),Up=kv.forwardRef(({className:e,children:t,...a},r)=>(0,Tr.jsxs)(Sv,{"data-slot":"scroll-area",className:Ft("relative",e),...a,children:[(0,Tr.jsx)(Iv,{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,Tr.jsx)(rb,{}),(0,Tr.jsx)(wv,{})]}));Up.displayName="ScrollArea";function rb({className:e,orientation:t="vertical",...a}){return(0,Tr.jsx)(Fp,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Ft("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,Tr.jsx)(Op,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var Au=N(K());var bv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ob=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),_p=e=>{let t=ob(e);return t.charAt(0).toUpperCase()+t.slice(1)},Tu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),Pv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var di=N(K());var Tv={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 Av=(0,di.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>(0,di.createElement)("svg",{ref:l,...Tv,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Tu("lucide",o),...!n&&!Pv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,d])=>(0,di.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var O=(e,t)=>{let a=(0,Au.forwardRef)(({className:r,...o},n)=>(0,Au.createElement)(Av,{ref:n,iconNode:t,className:Tu(`lucide-${bv(_p(e))}`,`lucide-${e}`,r),...o}));return a.displayName=_p(e),a};var nb=[["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"}]],ci=O("activity",nb);var sb=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],gn=O("arrow-left",sb);var ib=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],fi=O("arrow-up",ib);var lb=[["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"}]],pi=O("calendar",lb);var ub=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mi=O("chevron-down",ub);var db=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],hi=O("chevron-left",db);var cb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gi=O("chevron-right",cb);var fb=[["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"}]],ia=O("circle-alert",fb);var pb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ge=O("circle-check",pb);var mb=[["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"}]],la=O("circle-x",mb);var hb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fo=O("clock",hb);var gb=[["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"}]],Wa=O("command",gb);var xb=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Ga=O("corner-down-left",xb);var yb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],po=O("credit-card",yb);var vb=[["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"}]],mo=O("crown",vb);var Lb=[["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"}]],ho=O("dollar-sign",Lb);var Cb=[["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"}]],xn=O("file-spreadsheet",Cb);var Sb=[["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"}]],yn=O("key",Sb);var Ib=[["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"}]],xi=O("laptop",Ib);var wb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Bt=O("loader-circle",wb);var kb=[["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"}]],vn=O("mail",kb);var bb=[["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"}]],Ln=O("map-pin",bb);var Pb=[["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"}]],yi=O("paperclip",Pb);var Tb=[["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"}]],Cn=O("refresh-cw",Tb);var Ab=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],go=O("search",Ab);var Rb=[["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"}]],Sn=O("shield",Rb);var Db=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],vi=O("smartphone",Db);var Mb=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ar=O("sparkles",Mb);var Nb=[["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"}]],wt=O("square-pen",Nb);var Eb=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Li=O("trending-up",Eb);var Fb=[["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"}]],In=O("users",Fb);var Bb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rr=O("x",Bb);var Ob=[["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"}]],Ci=O("zap",Ob);var De=N(de(),1);function Rv({phase:e,progressSteps:t=[]}){return(0,De.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,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(Bt,{className:"h-3.5 w-3.5 animate-spin"}),(0,De.jsx)("span",{children:"Thinking\u2026"})]}),e==="searching"&&(0,De.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-300",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(go,{className:"h-3.5 w-3.5 opacity-70"}),(0,De.jsx)("span",{children:"Searching across pages\u2026"})]}),(0,De.jsxs)("ul",{className:"ml-6 list-disc space-y-1",children:[(0,De.jsx)("li",{className:"opacity-90",children:"Checking recent changes"}),(0,De.jsx)("li",{className:"opacity-90",children:"Scanning documentation"}),(0,De.jsx)("li",{className:"opacity-90",children:"Summarizing relevant sections"})]})]}),(e==="thinking"||e==="executing"||e==="responding")&&t.length>0&&(0,De.jsxs)("div",{className:"space-y-2 animate-in fade-in-0 duration-200",children:[t.map((a,r)=>(0,De.jsxs)("div",{className:`flex items-center gap-2 transition-opacity duration-200 ${a.completed?"opacity-60":"opacity-100"}`,children:[a.completed?(0,De.jsx)(Ge,{className:"h-3.5 w-3.5 text-green-500 flex-shrink-0"}):(0,De.jsx)(Bt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,De.jsx)("span",{className:a.completed?"line-through":"",children:a.message})]},r)),e==="responding"&&(0,De.jsxs)("div",{className:"flex items-center gap-2 opacity-100 animate-in fade-in-0 duration-200",children:[(0,De.jsx)(Bt,{className:"h-3.5 w-3.5 animate-spin flex-shrink-0"}),(0,De.jsx)("span",{children:"Preparing response..."})]})]})]})}var Dv=N(K(),1);var ua=N(de(),1);function Mv({title:e,links:t}){let[a,r]=Dv.useState(!1);return(0,ua.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,ua.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,ua.jsxs)("div",{className:"flex items-center gap-1.5",children:[a?(0,ua.jsx)(mi,{className:"h-3 w-3 opacity-70"}):(0,ua.jsx)(go,{className:"h-3 w-3 opacity-70"}),(0,ua.jsx)("span",{children:e})]})}),a&&t.length>0&&(0,ua.jsx)("ul",{className:"ml-5 mt-1 space-y-0.5",children:t.map(o=>(0,ua.jsx)("li",{children:(0,ua.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:o.label})},o.href))})]})}var Ii=N(de(),1),ya=N(K(),1);var Nv=N(K(),1),wn=(0,Nv.createContext)({});var Ev=N(K(),1);function kn(e){let t=(0,Ev.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Hp=N(de(),1),Uv=N(K(),1),xo=N(K(),1);var Fv=N(K(),1),Dr=(0,Fv.createContext)(null);var Ov=N(de(),1),Ru=N(K(),1),ja=N(K(),1);var Bv=N(K(),1),bn=(0,Bv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var zp=class extends Ru.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 Vv({children:e,isPresent:t}){let a=(0,ja.useId)(),r=(0,ja.useRef)(null),o=(0,ja.useRef)({width:0,height:0,top:0,left:0}),{nonce:n}=(0,ja.useContext)(bn);return(0,ja.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,28 +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,_v.jsx)(qp,{isPresent:t,childRef:r,sizeRef:o,children:Nu.cloneElement(e,{ref:r})})}var qv=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:n,mode:s})=>{let i=kn(_b),l=(0,go.useId)(),u=(0,go.useCallback)(c=>{i.set(c,!0);for(let p of i.values())if(!p)return;r&&r()},[i,r]),d=(0,go.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,go.useMemo)(()=>{i.forEach((c,p)=>i.set(p,!1))},[a]),Hv.useEffect(()=>{!a&&!i.size&&r&&r()},[a]),s==="popLayout"&&(e=(0,Wp.jsx)(zv,{isPresent:a,children:e})),(0,Wp.jsx)(Dr.Provider,{value:d,children:e})};function _b(){return new Map}var Mr=N(X(),1);function Eu(e=!0){let t=(0,Mr.useContext)(Dr);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=t,n=(0,Mr.useId)();(0,Mr.useEffect)(()=>{e&&o(n)},[e]);let s=(0,Mr.useCallback)(()=>e&&r&&r(n),[n,r,e]);return!a&&r?[!1,s]:[!0]}var Fu=N(X(),1),Si=e=>e.key||"";function Gp(e){let t=[];return Fu.Children.forEach(e,a=>{(0,Fu.isValidElement)(a)&&t.push(a)}),t}var Bu=N(X(),1);var Pn=typeof window<"u";var Ou=Pn?Bu.useLayoutEffect:Bu.useEffect;var jp=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:n="sync",propagate:s=!1})=>{let[i,l]=Eu(s),u=(0,ya.useMemo)(()=>Gp(e),[e]),d=s&&!i?[]:u.map(Si),c=(0,ya.useRef)(!0),p=(0,ya.useRef)(u),g=kn(()=>new Map),[L,C]=(0,ya.useState)(u),[w,h]=(0,ya.useState)(u);Ou(()=>{c.current=!1,p.current=u;for(let S=0;S<w.length;S++){let k=Si(w[S]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[w,d.length,d.join("-")]);let m=[];if(u!==L){let S=[...u];for(let k=0;k<w.length;k++){let P=w[k],D=Si(P);d.includes(D)||(S.splice(k,0,P),m.push(P))}n==="wait"&&m.length&&(S=m),h(Gp(S)),C(u);return}let{forceRender:x}=(0,ya.useContext)(wn);return(0,Ii.jsx)(Ii.Fragment,{children:w.map(S=>{let k=Si(S),P=s&&!i?!1:u===w||d.includes(k),D=()=>{if(g.has(k))g.set(k,!0);else return;let A=!0;g.forEach(V=>{V||(A=!1)}),A&&(x?.(),h(p.current),s&&l?.(),r&&r())};return(0,Ii.jsx)(qv,{isPresent:P,initial:!c.current||a?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:o,mode:n,onExitComplete:P?void 0:D,children:S},k)})})};var he=e=>e;var Ka=he,la=he;function xo(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ot=(e,t,a)=>{let r=t-e;return r===0?1:(a-e)/r};var Ne=e=>e*1e3,Qe=e=>e/1e3;var Tn={skipAnimations:!1,useManualTiming:!1};function Wv(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 Vu=["read","resolveKeyframes","update","preRender","render","postRender"],zb=40;function Uu(e,t){let a=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>a=!0,s=Vu.reduce((h,m)=>(h[m]=Wv(n),h),{}),{read:i,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:p}=s,g=()=>{let h=Tn.useManualTiming?o.timestamp:performance.now();a=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,zb),1),o.timestamp=h,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),d.process(o),c.process(o),p.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(g))},L=()=>{a=!0,r=!0,o.isProcessing||e(g)};return{schedule:Vu.reduce((h,m)=>{let x=s[m];return h[m]=(S,k=!1,P=!1)=>(a||L(),x.schedule(S,k,P)),h},{}),cancel:h=>{for(let m=0;m<Vu.length;m++)s[Vu[m]].cancel(h)},state:o,steps:s}}var{schedule:Z,cancel:Vt,state:Ee,steps:_u}=Uu(typeof requestAnimationFrame<"u"?requestAnimationFrame:he,!0);var Gv=N(X(),1),zu=(0,Gv.createContext)({strict:!1});var jv={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"]},$a={};for(let e in jv)$a[e]={isEnabled:t=>jv[e].some(a=>!!t[a])};function Kv(e){for(let t in e)$a[t]={...$a[t],...e[t]}}var Hb=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 wi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Hb.has(e)}var $v=e=>!wi(e);function qb(e){e&&($v=t=>t.startsWith("on")?!wi(t):e(t))}try{qb(wS("@emotion/is-prop-valid").default)}catch{}function Xv(e,t,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||($v(o)||a===!0&&wi(o)||!t&&!wi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Qv(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 Ku=N(le(),1);var Dn=N(X(),1);var Yv=N(X(),1),Nr=(0,Yv.createContext)({});var Wu=N(X(),1);function Xa(e){return typeof e=="string"||Array.isArray(e)}function Er(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var Hu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ki=["initial",...Hu];function yo(e){return Er(e.animate)||ki.some(t=>Xa(e[t]))}function qu(e){return!!(yo(e)||e.variants)}function Zv(e,t){if(yo(e)){let{initial:a,animate:r}=e;return{initial:a===!1||Xa(a)?a:void 0,animate:Xa(r)?r:void 0}}return e.inherit!==!1?t:{}}function e0(e){let{initial:t,animate:a}=Zv(e,(0,Wu.useContext)(Nr));return(0,Wu.useMemo)(()=>({initial:t,animate:a}),[Jv(t),Jv(a)])}function Jv(e){return Array.isArray(e)?e.join(" "):e}var t0=Symbol.for("motionComponentSymbol");var a0=N(X(),1);function Qa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function r0(e,t,a){return(0,a0.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):Qa(a)&&(a.current=r))},[t])}var kt=N(X(),1);var An=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Wb="framerAppearId",Gu="data-"+An(Wb);var{schedule:Rn,cancel:BM}=Uu(queueMicrotask,!1);var o0=N(X(),1),ju=(0,o0.createContext)({});function n0(e,t,a,r,o){var n,s;let{visualElement:i}=(0,kt.useContext)(Nr),l=(0,kt.useContext)(zu),u=(0,kt.useContext)(Dr),d=(0,kt.useContext)(bn).reducedMotion,c=(0,kt.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 p=c.current,g=(0,kt.useContext)(ju);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&Gb(c.current,a,o,g);let L=(0,kt.useRef)(!1);(0,kt.useInsertionEffect)(()=>{p&&L.current&&p.update(a,u)});let C=a[Gu],w=(0,kt.useRef)(!!C&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Ou(()=>{p&&(L.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Rn.render(p.render),w.current&&p.animationState&&p.animationState.animateChanges())}),(0,kt.useEffect)(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,C)}),w.current=!1))}),p}function Gb(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:s0(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!s||i&&Qa(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function s0(e){if(e)return e.options.allowProjection!==!1?e.projection:s0(e.parent)}function i0({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:r,Component:o}){var n,s;e&&Kv(e);function i(u,d){let c,p={...(0,Dn.useContext)(bn),...u,layoutId:jb(u)},{isStatic:g}=p,L=e0(u),C=r(u,g);if(!g&&Pn){Kb(p,e);let w=$b(p);c=w.MeasureLayout,L.visualElement=n0(o,C,p,t,w.ProjectionNode)}return(0,Ku.jsxs)(Nr.Provider,{value:L,children:[c&&L.visualElement?(0,Ku.jsx)(c,{visualElement:L.visualElement,...p}):null,a(o,u,r0(C,L.visualElement,d),C,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,Dn.forwardRef)(i);return l[t0]=o,l}function jb({layoutId:e}){let t=(0,Dn.useContext)(wn).id;return t&&e!==void 0?t+"-"+e:e}function Kb(e,t){let a=(0,Dn.useContext)(zu).strict}function $b(e){let{drag:t,layout:a}=$a;if(!t&&!a)return{};let r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var l0=["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 Mn(e){return typeof e!="string"||e.includes("-")?!1:!!(l0.indexOf(e)>-1||/[A-Z]/u.test(e))}var Kp=N(X(),1);function u0(e){let t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Nn(e,t,a,r){if(typeof t=="function"){let[o,n]=u0(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]=u0(r);t=t(a!==void 0?a:e.custom,o,n)}return t}var bi=e=>Array.isArray(e);var d0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),c0=e=>bi(e)?e[e.length-1]||0:e;var ye=e=>!!(e&&e.getVelocity);function En(e){let t=ye(e)?e.get():e;return d0(t)?t.toValue():t}function Xb({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},r,o,n){let s={latestValues:Qb(r,o,n,e),renderState:t()};return a&&(s.onMount=i=>a({props:r,current:i,...s}),s.onUpdate=i=>a(i)),s}var $u=e=>(t,a)=>{let r=(0,Kp.useContext)(Nr),o=(0,Kp.useContext)(Dr),n=()=>Xb(e,t,r,o);return a?n():kn(n)};function Qb(e,t,a,r){let o={},n=r(e,{});for(let p in n)o[p]=En(n[p]);let{initial:s,animate:i}=e,l=yo(e),u=qu(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"&&!Er(c)){let p=Array.isArray(c)?c:[c];for(let g=0;g<p.length;g++){let L=Nn(e,p[g]);if(L){let{transitionEnd:C,transition:w,...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 C)o[m]=C[m]}}}return o}var va=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(va);var f0=e=>t=>typeof t=="string"&&t.startsWith(e),Xu=f0("--"),Yb=f0("var(--"),Fn=e=>Yb(e)?Zb.test(e.split("/*")[0].trim()):!1,Zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Qu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Ye=(e,t,a)=>a>t?t:a<e?e:a;var La={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ya={...La,transform:e=>Ye(0,1,e)},Pi={...La,default:1};var Ti=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ca=Ti("deg"),mt=Ti("%"),H=Ti("px"),p0=Ti("vh"),m0=Ti("vw"),$p={...mt,parse:e=>mt.parse(e)/100,transform:e=>mt.transform(e*100)};var h0={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H};var g0={rotate:Ca,rotateX:Ca,rotateY:Ca,rotateZ:Ca,scale:Pi,scaleX:Pi,scaleY:Pi,scaleZ:Pi,skew:Ca,skewX:Ca,skewY:Ca,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Ya,originX:$p,originY:$p,originZ:H};var Xp={...La,transform:Math.round};var Bn={...h0,...g0,zIndex:Xp,size:H,fillOpacity:Ya,strokeOpacity:Ya,numOctaves:Xp};var Jb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eP=va.length;function x0(e,t,a){let r="",o=!0;for(let n=0;n<eP;n++){let s=va[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=Qu(i,Bn[s]);if(!l){o=!1;let d=Jb[s]||s;r+=`${d}(${u}) `}a&&(t[s]=u)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function On(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(bt.has(l)){s=!0;continue}else if(Xu(l)){o[l]=u;continue}else{let d=Qu(u,Bn[l]);l.startsWith("origin")?(i=!0,n[l]=d):r[l]=d}}if(t.transform||(s||a?r.transform=x0(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 tP={offset:"stroke-dashoffset",array:"stroke-dasharray"},aP={offset:"strokeDashoffset",array:"strokeDasharray"};function y0(e,t,a=1,r=0,o=!0){e.pathLength=1;let n=o?tP:aP;e[n.offset]=H.transform(-r);let s=H.transform(t),i=H.transform(a);e[n.array]=`${s} ${i}`}function v0(e,t,a){return typeof e=="string"?e:H.transform(t+a*e)}function L0(e,t,a){let r=v0(t,e.x,e.width),o=v0(a,e.y,e.height);return`${r} ${o}`}function Vn(e,{attrX:t,attrY:a,attrScale:r,originX:o,originY:n,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...u},d,c){if(On(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:g,dimensions:L}=e;p.transform&&(L&&(g.transform=p.transform),delete p.transform),L&&(o!==void 0||n!==void 0||g.transform)&&(g.transformOrigin=L0(L,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&&y0(p,s,i,l,!1)}var Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var Yu=()=>({...Un(),attrs:{}});var _n=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Zu(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 Ju=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 ed(e,t,a,r){Zu(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(Ju.has(o)?o:An(o),t.attrs[o])}var zn={};function C0(e){Object.assign(zn,e)}function td(e,{layout:t,layoutId:a}){return bt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!zn[e]||e==="opacity")}function Hn(e,t,a){var r;let{style:o}=e,n={};for(let s in o)(ye(o[s])||t.style&&ye(t.style[s])||td(s,e)||((r=a?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(n[s]=o[s]);return n}function ad(e,t,a){let r=Hn(e,t,a);for(let o in e)if(ye(e[o])||ye(t[o])){let n=va.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o]}return r}function rP(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 S0=["x","y","width","height","cx","cy","r"],I0={useVisualState:$u({scrapeMotionValuesFromProps:ad,createRenderState:Yu,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(bt.has(i)){n=!0;break}}if(!n)return;let s=!t;if(t)for(let i=0;i<S0.length;i++){let l=S0[i];e[l]!==t[l]&&(s=!0)}s&&Z.read(()=>{rP(a,r),Z.render(()=>{Vn(r,o,_n(a.tagName),e.transformTemplate),ed(a,r)})})}})};var w0={useVisualState:$u({scrapeMotionValuesFromProps:Hn,createRenderState:Un})};var qn=N(X(),1);var k0=N(X(),1);function Qp(e,t,a){for(let r in t)!ye(t[r])&&!td(r,a)&&(e[r]=t[r])}function oP({transformTemplate:e},t){return(0,k0.useMemo)(()=>{let a=Un();return On(a,t,e),Object.assign({},a.vars,a.style)},[t])}function nP(e,t){let a=e.style||{},r={};return Qp(r,a,e),Object.assign(r,oP(e,t)),r}function b0(e,t){let a={},r=nP(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 P0=N(X(),1);function T0(e,t,a,r){let o=(0,P0.useMemo)(()=>{let n=Yu();return Vn(n,t,_n(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};Qp(n,e.style,e),o.style={...n,...o.style}}return o}function A0(e=!1){return(a,r,o,{latestValues:n},s)=>{let l=(Mn(a)?T0:b0)(r,n,s,a),u=Xv(r,typeof a=="string",e),d=a!==qn.Fragment?{...u,...l,ref:o}:{},{children:c}=r,p=(0,qn.useMemo)(()=>ye(c)?c.get():c,[c]);return(0,qn.createElement)(a,{...d,children:p})}}function R0(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Mn(r)?I0:w0,preloadedFeatures:e,useRender:A0(o),createVisualElement:t,Component:r};return i0(s)}}function Yp(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 Fr(e,t,a){let r=e.getProps();return Nn(r,t,a!==void 0?a:r.custom,e)}var Zp=xo(()=>window.ScrollTimeline!==void 0);var Ai=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(Zp()&&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 Ri=class extends Ai{then(t,a){return Promise.all(this.animations).then(t).catch(a)}};function Br(e,t){return e?e[t]||e.default||e:void 0}function Wn(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 Or(e){return typeof e=="function"}function Di(e,t){e.timeline=t,e.onfinish=null}var Gn=e=>Array.isArray(e)&&typeof e[0]=="number";var em={linearEasing:void 0};function D0(e,t){let a=xo(e);return()=>{var r;return(r=em[t])!==null&&r!==void 0?r:a()}}var Vr=D0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Mi=(e,t,a=10)=>{let r="",o=Math.max(Math.round(t/a),2);for(let n=0;n<o;n++)r+=e(Ot(0,o-1,n))+", ";return`linear(${r.substring(0,r.length-2)})`};function od(e){return!!(typeof e=="function"&&Vr()||!e||typeof e=="string"&&(e in rd||Vr())||Gn(e)||Array.isArray(e)&&e.every(od))}var jn=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,rd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jn([0,.65,.55,1]),circOut:jn([.55,0,1,.45]),backIn:jn([.31,.01,.66,-.59]),backOut:jn([.33,1.53,.69,.99])};function Kn(e,t){if(e)return typeof e=="function"&&Vr()?Mi(e,t):Gn(e)?jn(e):Array.isArray(e)?e.map(a=>Kn(a,t)||rd.easeOut):rd[e]}var Ut={x:!1,y:!1};function $n(){return Ut.x||Ut.y}function tm(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 nd(e,t){let a=tm(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function M0(e){return t=>{t.pointerType==="touch"||$n()||e(t)}}function am(e,t,a={}){let[r,o,n]=nd(e,a),s=M0(i=>{let{target:l}=i,u=t(i);if(typeof u!="function"||!l)return;let d=M0(c=>{u(c),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),n}var sd=(e,t)=>t?e===t?!0:sd(e,t.parentElement):!1;var vo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var sP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function N0(e){return sP.has(e.tagName)||e.tabIndex!==-1}var Lo=new WeakSet;function E0(e){return t=>{t.key==="Enter"&&e(t)}}function rm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var F0=(e,t)=>{let a=e.currentTarget;if(!a)return;let r=E0(()=>{if(Lo.has(a))return;rm(a,"down");let o=E0(()=>{rm(a,"up")}),n=()=>rm(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 B0(e){return vo(e)&&!$n()}function om(e,t,a={}){let[r,o,n]=nd(e,a),s=i=>{let l=i.currentTarget;if(!B0(i)||Lo.has(l))return;Lo.add(l);let u=t(i),d=(g,L)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",p),!(!B0(g)||!Lo.has(l))&&(Lo.delete(l),typeof u=="function"&&u(g,{success:L}))},c=g=>{d(g,a.useGlobalTarget||sd(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",p,o)};return r.forEach(i=>{!N0(i)&&i.getAttribute("tabindex")===null&&(i.tabIndex=0),(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),i.addEventListener("focus",u=>F0(u,o),o)}),n}function nm(e){return e==="x"||e==="y"?Ut[e]?null:(Ut[e]=!0,()=>{Ut[e]=!1}):Ut.x||Ut.y?null:(Ut.x=Ut.y=!0,()=>{Ut.x=Ut.y=!1})}var id=new Set(["width","height","top","left","right","bottom",...va]);var ld;function lP(){ld=void 0}var st={now:()=>(ld===void 0&&st.set(Ee.isProcessing||Tn.useManualTiming?Ee.timestamp:performance.now()),ld),set:e=>{ld=e,queueMicrotask(lP)}};function Xn(e,t){e.indexOf(t)===-1&&e.push(t)}function Qn(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var Ur=class{constructor(){this.subscriptions=[]}add(t){return Xn(this.subscriptions,t),()=>Qn(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 ud(e,t){return t?e*(1e3/t):0}var V0=30,uP=e=>!isNaN(parseFloat(e)),U0={current:void 0},sm=class{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let n=st.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=st.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uP(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 Ur);let r=this.events[t].add(a);return t==="change"?()=>{r(),Z.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 U0.current&&U0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=st.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>V0)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,V0);return ud(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 sm(e,t)}function dP(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Za(a))}function _0(e,t){let a=Fr(e,t),{transitionEnd:r={},transition:o={},...n}=a||{};n={...n,...r};for(let s in n){let i=c0(n[s]);dP(e,s,i)}}function z0(e){return!!(ye(e)&&e.add)}function Ni(e,t){let a=e.getValue("willChange");if(z0(a))return a.add(t)}function dd(e){return e.props[Gu]}var cd={current:!1};var H0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,cP=1e-7,fP=12;function pP(e,t,a,r,o){let n,s,i=0;do s=t+(a-t)/2,n=H0(s,r,o)-e,n>0?a=s:t=s;while(Math.abs(n)>cP&&++i<fP);return s}function _r(e,t,a,r){if(e===t&&a===r)return he;let o=n=>pP(n,0,1,e,a);return n=>n===0||n===1?n:H0(o(n),t,r)}var fd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var pd=e=>t=>1-e(1-t);var im=_r(.33,1.53,.69,.99),Ei=pd(im),md=fd(Ei);var hd=e=>(e*=2)<1?.5*Ei(e):.5*(2-Math.pow(2,-10*(e-1)));var gd=e=>1-Math.sin(Math.acos(e)),xd=pd(gd),yd=fd(gd);var vd=e=>/^0[^.\s]+$/u.test(e);function q0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vd(e):!0}var zr=e=>Math.round(e*1e5)/1e5;var Yn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W0(e){return e==null}var G0=/^(?:#[\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"&&G0.test(a)&&a.startsWith(e)||t&&!W0(a)&&Object.prototype.hasOwnProperty.call(a,t)),Ld=(e,t,a)=>r=>{if(typeof r!="string")return r;let[o,n,s,i]=r.match(Yn);return{[e]:parseFloat(o),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var mP=e=>Ye(0,255,e),lm={...La,transform:e=>Math.round(mP(e))},Sa={test:Zn("rgb","red"),parse:Ld("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+lm.transform(e)+", "+lm.transform(t)+", "+lm.transform(a)+", "+zr(Ya.transform(r))+")"};function hP(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 Fi={test:Zn("#"),parse:hP,transform:Sa.transform};var Hr={test:Zn("hsl","hue"),parse:Ld("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+mt.transform(zr(t))+", "+mt.transform(zr(a))+", "+zr(Ya.transform(r))+")"};var Oe={test:e=>Sa.test(e)||Fi.test(e)||Hr.test(e),parse:e=>Sa.test(e)?Sa.parse(e):Hr.test(e)?Hr.parse(e):Fi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Sa.transform(e):Hr.transform(e)};var j0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gP(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yn))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(j0))===null||a===void 0?void 0:a.length)||0)>0}var $0="number",X0="color",xP="var",yP="var(",K0="${}",vP=/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(vP,l=>(Oe.test(l)?(r.color.push(n),o.push(X0),a.push(Oe.parse(l))):l.startsWith(yP)?(r.var.push(n),o.push(xP),a.push(l)):(r.number.push(n),o.push($0),a.push(parseFloat(l))),++n,K0)).split(K0);return{values:a,split:i,indexes:r,types:o}}function Q0(e){return Co(e).values}function Y0(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===$0?n+=zr(o[s]):i===X0?n+=Oe.transform(o[s]):n+=o[s]}return n}}var LP=e=>typeof e=="number"?0:e;function CP(e){let t=Q0(e);return Y0(e)(t.map(LP))}var ht={test:gP,parse:Q0,createTransformer:Y0,getAnimatableNone:CP};var SP=new Set(["brightness","contrast","saturate","opacity"]);function IP(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=a.match(Yn)||[];if(!r)return e;let o=a.replace(r,""),n=SP.has(t)?1:0;return r!==a&&(n*=100),t+"("+n+o+")"}var wP=/\b([a-z-]*)\(.*?\)/gu,Bi={...ht,getAnimatableNone:e=>{let t=e.match(wP);return t?t.map(IP).join(" "):e}};var kP={...Bn,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Bi,WebkitFilter:Bi},Jn=e=>kP[e];function Cd(e,t){let a=Jn(e);return a!==Bi&&(a=ht),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var bP=new Set(["auto","none","0"]);function Z0(e,t,a){let r=0,o;for(;r<e.length&&!o;){let n=e[r];typeof n=="string"&&!bP.has(n)&&Co(n).values.length&&(o=e[r]),r++}if(o&&a)for(let n of t)e[n]=Cd(a,o)}var um=e=>e===La||e===H,J0=(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 J0(o[1],t);{let n=r.match(/^matrix\((.+)\)$/u);return n?J0(n[1],e):0}},PP=new Set(["x","y","z"]),TP=va.filter(e=>!PP.has(e));function tL(e){let t=[];return TP.forEach(a=>{let r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}var So={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)};So.translateX=So.x;So.translateY=So.y;var Io=new Set,dm=!1,cm=!1;function aL(){if(cm){let e=Array.from(Io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{let o=tL(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)})}cm=!1,dm=!1,Io.forEach(e=>e.complete()),Io.clear()}function rL(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cm=!0)})}function oL(){rL(),aL()}var qr=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?(Io.add(this),dm||(dm=!0,Z.read(rL),Z.resolveKeyframes(aL))):(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),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var Sd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var AP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RP(e){let t=AP.exec(e);if(!t)return[,];let[,a,r,o]=t;return[`--${a??r}`,o]}var DP=4;function fm(e,t,a=1){la(a<=DP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=RP(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return Sd(s)?parseFloat(s):s}return Fn(o)?fm(o,t,a+1):o}var Id=e=>t=>t.test(e);var nL={test:e=>e==="auto",parse:e=>e};var pm=[La,H,mt,Ca,m0,p0,nL],mm=e=>pm.find(Id(e));var es=class extends qr{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(),Fn(u))){let d=fm(u,a.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!id.has(r)||t.length!==2)return;let[o,n]=t,s=mm(o),i=mm(n);if(s!==i)if(um(s)&&um(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++)q0(t[o])&&r.push(o);r.length&&Z0(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=So[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]=So[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 hm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ht.test(e)||e==="0")&&!e.startsWith("url("));function MP(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 sL(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=hm(o,t),i=hm(n,t);return Ka(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:MP(e)||(a==="spring"||Or(a))&&r}var NP=e=>e!==null;function Wr(e,{repeat:t,repeatType:a="loop"},r){let o=e.filter(NP),n=t&&a!=="loop"&&t%2===1?0:o.length-1;return!n||r===void 0?o[n]:r}var EP=40,ts=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=st.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>EP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&oL(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=st.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:n,delay:s,onComplete:i,onUpdate:l,isGenerator:u}=this.options;if(!u&&!sL(t,r,o,n))if(cd.current||!s){l&&l(Wr(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 se=(e,t,a)=>e+(t-e)*a;function gm(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 iL({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=gm(l,i,e+1/3),n=gm(l,i,e),s=gm(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function as(e,t){return a=>a>0?t:e}var xm=(e,t,a)=>{let r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},FP=[Fi,Sa,Hr],BP=e=>FP.find(t=>t.test(e));function lL(e){let t=BP(e);if(Ka(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===Hr&&(a=iL(a)),a}var ym=(e,t)=>{let a=lL(e),r=lL(t);if(!a||!r)return as(e,t);let o={...a};return n=>(o.red=xm(a.red,r.red,n),o.green=xm(a.green,r.green,n),o.blue=xm(a.blue,r.blue,n),o.alpha=se(a.alpha,r.alpha,n),Sa.transform(o))};var OP=(e,t)=>a=>t(e(a)),Ia=(...e)=>e.reduce(OP);var wd=new Set(["none","hidden"]);function uL(e,t){return wd.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function VP(e,t){return a=>se(e,t,a)}function kd(e){return typeof e=="number"?VP:typeof e=="string"?Fn(e)?as:Oe.test(e)?ym:zP:Array.isArray(e)?dL:typeof e=="object"?Oe.test(e)?ym:UP:as}function dL(e,t){let a=[...e],r=a.length,o=e.map((n,s)=>kd(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)a[s]=o[s](n);return a}}function UP(e,t){let a={...e,...t},r={};for(let o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=kd(e[o])(e[o],t[o]));return o=>{for(let n in r)a[n]=r[n](o);return a}}function _P(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 zP=(e,t)=>{let a=ht.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?wd.has(e)&&!o.values.length||wd.has(t)&&!r.values.length?uL(e,t):Ia(dL(_P(r,o),o.values),a):(Ka(!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.`),as(e,t))};function bd(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?se(e,t,a):kd(e)(e,t)}var HP=5;function Pd(e,t,a){let r=Math.max(t-HP,0);return ud(a-e(r),t-r)}var Se={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 vm=.001;function cL({duration:e=Se.duration,bounce:t=Se.bounce,velocity:a=Se.velocity,mass:r=Se.mass}){let o,n;Ka(e<=Ne(Se.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Ye(Se.minDamping,Se.maxDamping,s),e=Ye(Se.minDuration,Se.maxDuration,Qe(e)),s<1?(o=u=>{let d=u*s,c=d*e,p=d-a,g=Td(u,s),L=Math.exp(-c);return vm-p/g*L},n=u=>{let c=u*s*e,p=c*a+a,g=Math.pow(s,2)*Math.pow(u,2)*e,L=Math.exp(-c),C=Td(Math.pow(u,2),s);return(-o(u)+vm>0?-1:1)*((p-g)*L)/C}):(o=u=>{let d=Math.exp(-u*e),c=(u-a)*e+1;return-vm+d*c},n=u=>{let d=Math.exp(-u*e),c=(a-u)*(e*e);return d*c});let i=5/e,l=WP(o,n,i);if(e=Ne(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var qP=12;function WP(e,t,a){let r=a;for(let o=1;o<qP;o++)r=r-e(r)/t(r);return r}function Td(e,t){return e*Math.sqrt(1-t*t)}var GP=["duration","bounce"],jP=["stiffness","damping","mass"];function fL(e,t){return t.some(a=>e[a]!==void 0)}function KP(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!fL(e,jP)&&fL(e,GP))if(e.visualDuration){let a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,n=2*Ye(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Se.mass,stiffness:o,damping:n}}else{let a=cL(e);t={...t,...a,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function Ad(e=Se.visualDuration,t=Se.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:p,isResolvedFromDuration:g}=KP({...a,velocity:-Qe(a.velocity||0)}),L=p||0,C=u/(2*Math.sqrt(l*d)),w=s-n,h=Qe(Math.sqrt(l/d)),m=Math.abs(w)<5;r||(r=m?Se.restSpeed.granular:Se.restSpeed.default),o||(o=m?Se.restDelta.granular:Se.restDelta.default);let x;if(C<1){let k=Td(h,C);x=P=>{let D=Math.exp(-C*h*P);return s-D*((L+C*h*w)/k*Math.sin(k*P)+w*Math.cos(k*P))}}else if(C===1)x=k=>s-Math.exp(-h*k)*(w+(L+h*w)*k);else{let k=h*Math.sqrt(C*C-1);x=P=>{let D=Math.exp(-C*h*P),A=Math.min(k*P,300);return s-D*((L+C*h*w)*Math.sinh(A)+k*w*Math.cosh(A))/k}}let S={calculatedDuration:g&&c||null,next:k=>{let P=x(k);if(g)i.done=k>=c;else{let D=0;C<1&&(D=k===0?Ne(L):Pd(x,k,P));let A=Math.abs(D)<=r,V=Math.abs(s-P)<=o;i.done=A&&V}return i.value=i.done?s:P,i},toString:()=>{let k=Math.min(Wn(S),2e4),P=Mi(D=>S.next(k*D).value,k,30);return k+"ms "+P}};return S}function Lm({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],p={done:!1,value:c},g=A=>i!==void 0&&A<i||l!==void 0&&A>l,L=A=>i===void 0?l:l===void 0||Math.abs(i-A)<Math.abs(l-A)?i:l,C=a*t,w=c+C,h=s===void 0?w:s(w);h!==w&&(C=h-c);let m=A=>-C*Math.exp(-A/r),x=A=>h+m(A),S=A=>{let V=m(A),E=x(A);p.done=Math.abs(V)<=u,p.value=p.done?h:E},k,P,D=A=>{g(p.value)&&(k=A,P=Ad({keyframes:[p.value,L(p.value)],velocity:Pd(x,A,p.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:A=>{let V=!1;return!P&&k===void 0&&(V=!0,S(A),D(A)),k!==void 0&&A>=k?P.next(A-k):(!V&&S(A),p)}}}var pL=_r(.42,0,1,1),mL=_r(0,0,.58,1),Rd=_r(.42,0,.58,1);var hL=e=>Array.isArray(e)&&typeof e[0]!="number";var gL={linear:he,easeIn:pL,easeInOut:Rd,easeOut:mL,circIn:gd,circInOut:yd,circOut:xd,backIn:Ei,backInOut:md,backOut:im,anticipate:hd},Cm=e=>{if(Gn(e)){la(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,a,r,o]=e;return _r(t,a,r,o)}else if(typeof e=="string")return la(gL[e]!==void 0,`Invalid easing type '${e}'`),gL[e];return e};function $P(e,t,a){let r=[],o=a||bd,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]||he:t;i=Ia(l,i)}r.push(i)}return r}function xL(e,t,{clamp:a=!0,ease:r,mixer:o}={}){let n=e.length;if(la(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=$P(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 p=Ot(e[c],e[c+1],d);return i[c](p)};return a?d=>u(Ye(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=Ot(0,t,r);e.push(se(a,1,o))}}function vL(e){let t=[0];return yL(t,e.length-1),t}function LL(e,t){return e.map(a=>a*t)}function XP(e,t){return e.map(()=>t||Rd).splice(0,e.length-1)}function Oi({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){let o=hL(r)?r.map(Cm):Cm(r),n={done:!1,value:t[0]},s=LL(a&&a.length===t.length?a:vL(t),e),i=xL(s,t,{ease:Array.isArray(o)?o:XP(t,o)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var CL=e=>{let t=({timestamp:a})=>e(a);return{start:()=>Z.update(t,!0),stop:()=>Vt(t),now:()=>Ee.isProcessing?Ee.timestamp:st.now()}};var QP={decay:Lm,inertia:Lm,tween:Oi,keyframes:Oi,spring:Ad},YP=e=>e/100,wo=class extends ts{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||qr,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=Or(a)?a:QP[a]||Oi,l,u;i!==Oi&&typeof t[0]!="number"&&(l=Ia(YP,bd(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=Wn(d));let{calculatedDuration:c}=d,p=c+o,g=p*(r+1)-o;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,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:A}=this.options;return{done:!0,value:A[A.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:p,repeat:g,repeatType:L,repeatDelay:C,onUpdate:w}=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 A=Math.min(this.currentTime,d)/c,V=Math.floor(A),E=A%1;!E&&A>=1&&(E=1),E===1&&V--,V=Math.min(V,g+1),V%2&&(L==="reverse"?(E=1-E,C&&(E-=C/c)):L==="mirror"&&(S=s)),x=Ye(0,1,E)*c}let k=m?{done:!1,value:l[0]}:S.next(x);i&&(k.value=i(k.value));let{done:P}=k;!m&&u!==null&&(P=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&o!==void 0&&(k.value=Wr(l,this.options,o)),w&&w(k.value),D&&this.finish(),k}get duration(){let{resolved:t}=this;return t?Qe(t.calculatedDuration):0}get time(){return Qe(this.currentTime)}set time(t){t=Ne(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=Qe(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=CL,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 SL=new Set(["opacity","clipPath","filter","transform"]);function IL(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=Kn(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 wL=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var Dd=10,ZP=2e4;function JP(e){return Or(e.type)||e.type==="spring"||!od(e.ease)}function e1(e,t){let a=new wo({...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+=Dd;return{times:void 0,keyframes:o,duration:n-Dd,ease:"linear"}}var kL={anticipate:hd,backInOut:md,circInOut:yd};function t1(e){return e in kL}var Vi=class extends ts{constructor(t){super(t);let{name:a,motionValue:r,element:o,keyframes:n}=this.options;this.resolver=new es(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"&&Vr()&&t1(n)&&(n=kL[n]),JP(this.options)){let{onComplete:c,onUpdate:p,motionValue:g,element:L,...C}=this.options,w=e1(t,C);t=w.keyframes,t.length===1&&(t[1]=t[0]),r=w.duration,o=w.times,n=w.ease,s="keyframes"}let d=IL(i.owner.current,l,t,{...this.options,duration:r,times:o,ease:n});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Di(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:c}=this.options;i.set(Wr(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 Qe(a)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:a}=t;return Qe(a.currentTime||0)}set time(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.currentTime=Ne(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 he;let{animation:r}=a;Di(r,t)}return he}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:p,...g}=this.options,L=new wo({...g,keyframes:r,duration:o,type:n,ease:s,times:i,isGenerator:!0}),C=Ne(this.time);u.setWithVelocity(L.sample(C-Dd).value,L.sample(C).value,Dd)}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 wL()&&r&&SL.has(r)&&!l&&!u&&!o&&n!=="mirror"&&s!==0&&i!=="inertia"}};var a1={type:"spring",stiffness:500,damping:25,restSpeed:10},r1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),o1={type:"keyframes",duration:.8},n1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bL=(e,{keyframes:t})=>t.length>2?o1:bt.has(e)?e.startsWith("scale")?r1(t[1]):a1:n1;function PL({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 rs=(e,t,a,r={},o,n)=>s=>{let i=Br(r,e)||{},l=i.delay||r.delay||0,{elapsed:u=0}=r;u=u-Ne(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};PL(i)||(d={...d,...bL(e,d)}),d.duration&&(d.duration=Ne(d.duration)),d.repeatDelay&&(d.repeatDelay=Ne(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)),(cd.current||Tn.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!n&&t.get()!==void 0){let p=Wr(d.keyframes,i);if(p!==void 0)return Z.update(()=>{d.onUpdate(p),d.onComplete()}),new Ri([])}return!n&&Vi.supports(d)?new Vi(d):new wo(d)};function s1({protectedKeys:e,needsAnimating:t},a){let r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function Md(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 p=e.getValue(c,(n=e.latestValues[c])!==null&&n!==void 0?n:null),g=l[c];if(g===void 0||d&&s1(d,c))continue;let L={delay:a,...Br(s||{},c)},C=!1;if(window.MotionHandoffAnimation){let h=dd(e);if(h){let m=window.MotionHandoffAnimation(h,c,Z);m!==null&&(L.startTime=m,C=!0)}}Ni(e,c),p.start(rs(c,p,g,e.shouldReduceMotion&&id.has(c)?{type:!1}:L,e,C));let w=p.animation;w&&u.push(w)}return i&&Promise.all(u).then(()=>{Z.update(()=>{i&&_0(e,i)})}),u}function Nd(e,t,a={}){var r;let o=Fr(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(Md(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:c,staggerDirection:p}=n;return i1(e,t,d+u,c,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 i1(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(l1).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Nd(u,t,{...n,delay:a+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function l1(e,t){return e.sortNodePosition(t)}function TL(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(n=>Nd(e,n,a));r=Promise.all(o)}else if(typeof t=="string")r=Nd(e,t,a);else{let o=typeof t=="function"?Fr(e,t,a.custom):t;r=Promise.all(Md(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}var u1=ki.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<u1;a++){let r=ki[a],o=e.props[r];(Xa(o)||o===!1)&&(t[r]=o)}return t}var d1=[...Hu].reverse(),c1=Hu.length;function f1(e){return t=>Promise.all(t.map(({animation:a,options:r})=>TL(e,a,r)))}function RL(e){let t=f1(e),a=AL(),r=!0,o=l=>(u,d)=>{var c;let p=Fr(e,d,l==="exit"?(c=e.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(p){let{transition:g,transitionEnd:L,...C}=p;u={...u,...C,...L}}return u};function n(l){t=l(e)}function s(l){let{props:u}=e,d=Sm(e.parent)||{},c=[],p=new Set,g={},L=1/0;for(let w=0;w<c1;w++){let h=d1[w],m=a[h],x=u[h]!==void 0?u[h]:d[h],S=Xa(x),k=h===l?m.isActive:null;k===!1&&(L=w);let P=x===d[h]&&x!==u[h]&&S;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...g},!m.isActive&&k===null||!x&&!m.prevProp||Er(x)||typeof x=="boolean")continue;let D=p1(m.prevProp,x),A=D||h===l&&m.isActive&&!P&&S||w>L&&S,V=!1,E=Array.isArray(x)?x:[x],ce=E.reduce(o(h),{});k===!1&&(ce={});let{prevResolvedValues:te={}}=m,Ao={...te,...ce},ua=K=>{A=!0,p.has(K)&&(V=!0,p.delete(K)),m.needsAnimating[K]=!0;let De=e.getValue(K);De&&(De.liveStyle=!1)};for(let K in Ao){let De=ce[K],ue=te[K];if(g.hasOwnProperty(K))continue;let Pa=!1;bi(De)&&bi(ue)?Pa=!Yp(De,ue):Pa=De!==ue,Pa?De!=null?ua(K):p.add(K):De!==void 0&&p.has(K)?ua(K):m.protectedKeys[K]=!0}m.prevProp=x,m.prevResolvedValues=ce,m.isActive&&(g={...g,...ce}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(P&&D)||V)&&c.push(...E.map(K=>({animation:K,options:{type:h}})))}if(p.size){let w={};p.forEach(h=>{let m=e.getBaseTarget(h),x=e.getValue(h);x&&(x.liveStyle=!0),w[h]=m??null}),c.push({animation:w})}let C=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?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(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),a[l].isActive=u;let c=s(l);for(let p in a)a[p].protectedKeys={};return c}return{animateChanges:s,setActive:i,setAnimateFunction:n,getState:()=>a,reset:()=>{a=AL(),r=!0}}}function p1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yp(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function AL(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}var je=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Ed=class extends je{constructor(t){super(t),t.animationState||(t.animationState=RL(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Er(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 m1=0,Fd=class extends je{constructor(){super(...arguments),this.id=m1++}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 DL={animation:{Feature:Ed},exit:{Feature:Fd}};function Ja(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function er(e){return{point:{x:e.pageX,y:e.pageY}}}var ML=e=>t=>vo(t)&&e(t,er(t));function Gr(e,t,a,r){return Ja(e,t,ML(a),r)}var NL=(e,t)=>Math.abs(e-t);function EL(e,t){let a=NL(e.x,t.x),r=NL(e.y,t.y);return Math.sqrt(a**2+r**2)}var os=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=wm(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=EL(c.offset,{x:0,y:0})>=3;if(!p&&!g)return;let{point:L}=c,{timestamp:C}=Ee;this.history.push({...L,timestamp:C});let{onStart:w,onMove:h}=this.handlers;p||(w&&w(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(c,p)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Im(p,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(c,p)=>{this.end();let{onEnd:g,onSessionEnd:L,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let w=wm(c.type==="pointercancel"?this.lastMoveEventInfo:Im(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(c,w),L&&L(c,w)},!vo(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=r,this.contextWindow=o||window;let s=er(t),i=Im(s,this.transformPagePoint),{point:l}=i,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=a;d&&d(t,wm(i,this.history)),this.removeListeners=Ia(Gr(this.contextWindow,"pointermove",this.handlePointerMove),Gr(this.contextWindow,"pointerup",this.handlePointerUp),Gr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vt(this.updatePoint)}};function Im(e,t){return t?{point:t(e.point)}:e}function FL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wm({point:e},t){return{point:e,delta:FL(e,BL(t)),offset:FL(e,h1(t)),velocity:g1(t,.1)}}function h1(e){return e[0]}function BL(e){return e[e.length-1]}function g1(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null,o=BL(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>Ne(t)));)a--;if(!r)return{x:0,y:0};let n=Qe(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 _L=1e-4,x1=1-_L,y1=1+_L,zL=.01,v1=0-zL,L1=0+zL;function Ze(e){return e.max-e.min}function HL(e,t,a){return Math.abs(e-t)<=a}function OL(e,t,a,r=.5){e.origin=r,e.originPoint=se(t.min,t.max,e.origin),e.scale=Ze(a)/Ze(t),e.translate=se(a.min,a.max,e.origin)-e.originPoint,(e.scale>=x1&&e.scale<=y1||isNaN(e.scale))&&(e.scale=1),(e.translate>=v1&&e.translate<=L1||isNaN(e.translate))&&(e.translate=0)}function ns(e,t,a,r){OL(e.x,t.x,a.x,r?r.originX:void 0),OL(e.y,t.y,a.y,r?r.originY:void 0)}function VL(e,t,a){e.min=a.min+t.min,e.max=e.min+Ze(t)}function qL(e,t,a){VL(e.x,t.x,a.x),VL(e.y,t.y,a.y)}function UL(e,t,a){e.min=t.min-a.min,e.max=e.min+Ze(t)}function ss(e,t,a){UL(e.x,t.x,a.x),UL(e.y,t.y,a.y)}function $L(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?se(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?se(a,e,r.max):Math.min(e,a)),e}function WL(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 XL(e,{top:t,left:a,bottom:r,right:o}){return{x:WL(e.x,a,o),y:WL(e.y,t,r)}}function GL(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 QL(e,t){return{x:GL(e.x,t.x),y:GL(e.y,t.y)}}function YL(e,t){let a=.5,r=Ze(e),o=Ze(t);return o>r?a=Ot(t.min,t.max-r,e.min):r>o&&(a=Ot(e.min,e.max-o,t.min)),Ye(0,1,a)}function ZL(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 JL(e=Bd){return e===!1?e=0:e===!0&&(e=Bd),{x:jL(e,"left","right"),y:jL(e,"top","bottom")}}function jL(e,t,a){return{min:KL(e,t),max:KL(e,a)}}function KL(e,t){return typeof e=="number"?e:e[t]||0}var eC=()=>({translate:0,scale:1,origin:0,originPoint:0}),bo=()=>({x:eC(),y:eC()}),tC=()=>({min:0,max:0}),Ie=()=>({x:tC(),y:tC()});function Pt(e){return[e("x"),e("y")]}function Od({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function aC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rC(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 km(e){return e===void 0||e===1}function Vd({scale:e,scaleX:t,scaleY:a}){return!km(e)||!km(t)||!km(a)}function tr(e){return Vd(e)||bm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bm(e){return oC(e.x)||oC(e.y)}function oC(e){return e&&e!=="0%"}function Ui(e,t,a){let r=e-a,o=t*r;return a+o}function nC(e,t,a,r,o){return o!==void 0&&(e=Ui(e,o,r)),Ui(e,a,r)+t}function Pm(e,t=0,a=1,r,o){e.min=nC(e.min,t,a,r,o),e.max=nC(e.max,t,a,r,o)}function Tm(e,{x:t,y:a}){Pm(e.x,t.translate,t.scale,t.originPoint),Pm(e.y,a.translate,a.scale,a.originPoint)}var sC=.999999999999,iC=1.0000000000001;function uC(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&&Po(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Tm(e,s)),r&&tr(n.latestValues)&&Po(e,n.latestValues))}t.x<iC&&t.x>sC&&(t.x=1),t.y<iC&&t.y>sC&&(t.y=1)}function jr(e,t){e.min=e.min+t,e.max=e.max+t}function lC(e,t,a,r,o=.5){let n=se(e.min,e.max,o);Pm(e,t,a,n,r)}function Po(e,t){lC(e.x,t.x,t.scaleX,t.scale,t.originX),lC(e.y,t.y,t.scaleY,t.scale,t.originY)}function Am(e,t){return Od(rC(e.getBoundingClientRect(),t))}function dC(e,t,a){let r=Am(e,a),{scroll:o}=t;return o&&(jr(r.x,o.offset.x),jr(r.y,o.offset.y)),r}var Ud=({current:e})=>e?e.ownerDocument.defaultView:null;var C1=new WeakMap,zd=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=Ie(),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(er(d).point)},n=(d,c)=>{let{drag:p,dragPropagation:g,onDragStart:L}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nm(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),Pt(w=>{let h=this.getAxisMotionValue(w).get()||0;if(mt.test(h)){let{projection:m}=this.visualElement;if(m&&m.layout){let x=m.layout.layoutBox[w];x&&(h=Ze(x)*(parseFloat(h)/100))}}this.originPoint[w]=h}),L&&Z.postRender(()=>L(d,c)),Ni(this.visualElement,"transform");let{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(d,c)=>{let{dragPropagation:p,dragDirectionLock:g,onDirectionLock:L,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:w}=c;if(g&&this.currentDirection===null){this.currentDirection=S1(w),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",c.point,w),this.updateAxis("y",c.point,w),this.visualElement.render(),C&&C(d,c)},i=(d,c)=>this.stop(d,c),l=()=>Pt(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 os(t,{onSessionStart:o,onStart:n,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ud(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&&Z.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||!_d(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=$L(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&&Qa(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=XL(o.layoutBox,a):this.constraints=!1,this.elastic=JL(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Pt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ZL(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Qa(t))return!1;let r=t.current;la(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=dC(r,o.root,this.visualElement.getTransformPagePoint()),s=QL(o.layout.layoutBox,n);if(a){let i=a(aC(s));this.hasMutatedConstraints=!!i,i&&(s=Od(i))}return s}startAnimation(t){let{drag:a,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Pt(d=>{if(!_d(d,a,this.currentDirection))return;let c=l&&l[d]||{};s&&(c={min:0,max:0});let p=o?200:1e6,g=o?40:1e7,L={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,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 Ni(this.visualElement,t),r.start(rs(t,r,0,a,this.visualElement,!1))}stopAnimation(){Pt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pt(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){Pt(a=>{let{drag:r}=this.getProps();if(!_d(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]-se(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Qa(a)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Pt(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let l=i.get();o[s]=YL({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(),Pt(s=>{if(!_d(s,t,null))return;let i=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];i.set(se(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;C1.set(this.visualElement,this);let t=this.visualElement.current,a=Gr(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();Qa(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()),Z.read(r);let s=Ja(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pt(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 _d(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function S1(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Hd=class extends je{constructor(t){super(t),this.removeGroupControls=he,this.removeListeners=he,this.controls=new zd(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||he}unmount(){this.removeGroupControls(),this.removeListeners()}};var cC=e=>(t,a)=>{e&&Z.postRender(()=>e(t,a))},qd=class extends je{constructor(){super(...arguments),this.removePointerDownListener=he}onPointerDown(t){this.session=new os(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ud(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:cC(t),onStart:cC(a),onMove:r,onEnd:(n,s)=>{delete this.session,o&&Z.postRender(()=>o(n,s))}}}mount(){this.removePointerDownListener=Gr(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 mC=N(le(),1),_i=N(X(),1);var is={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ls={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;let a=fC(e,t.target.x),r=fC(e,t.target.y);return`${a}% ${r}%`}};var pC={correct:(e,{treeScale:t,projectionDelta:a})=>{let r=e,o=ht.parse(e);if(o.length>5)return r;let n=ht.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=se(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 Rm=class extends _i.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=t;C0(I1),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()})),is.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()||Z.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rn.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 Wd(e){let[t,a]=Eu(),r=(0,_i.useContext)(wn);return(0,mC.jsx)(Rm,{...e,layoutGroup:r,switchLayoutGroup:(0,_i.useContext)(ju),isPresent:t,safeToRemove:a})}var I1={borderRadius:{...ls,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomLeftRadius:ls,borderBottomRightRadius:ls,boxShadow:pC};function hC(e,t,a){let r=ye(e)?e:Za(e);return r.start(rs("",r,t,a)),r.animation}function gC(e){return e instanceof SVGElement&&e.tagName!=="svg"}var xC=(e,t)=>e.depth-t.depth;var Gd=class{constructor(){this.children=[],this.isDirty=!1}add(t){Xn(this.children,t),this.isDirty=!0}remove(t){Qn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(xC),this.isDirty=!1,this.children.forEach(t)}};function yC(e,t){let a=st.now(),r=({timestamp:o})=>{let n=o-a;n>=t&&(Vt(r),e(n-t))};return Z.read(r,!0),()=>Vt(r)}var SC=["TopLeft","TopRight","BottomLeft","BottomRight"],w1=SC.length,vC=e=>typeof e=="string"?parseFloat(e):e,LC=e=>typeof e=="number"||H.test(e);function IC(e,t,a,r,o,n){o?(e.opacity=se(0,a.opacity!==void 0?a.opacity:1,k1(r)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,b1(r))):n&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,r));for(let s=0;s<w1;s++){let i=`border${SC[s]}Radius`,l=CC(t,i),u=CC(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||LC(l)===LC(u)?(e[i]=Math.max(se(vC(l),vC(u),r),0),(mt.test(u)||mt.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=se(t.rotate||0,a.rotate||0,r))}function CC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var k1=wC(0,.5,xd),b1=wC(.5,.95,he);function wC(e,t,a){return r=>r<e?0:r>t?1:a(Ot(e,t,r))}function kC(e,t){e.min=t.min,e.max=t.max}function _t(e,t){kC(e.x,t.x),kC(e.y,t.y)}function Dm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function bC(e,t,a,r,o){return e-=t,e=Ui(e,1/a,r),o!==void 0&&(e=Ui(e,1/o,r)),e}function P1(e,t=0,a=1,r=.5,o,n=e,s=e){if(mt.test(t)&&(t=parseFloat(t),t=se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=se(n.min,n.max,r);e===n&&(i-=t),e.min=bC(e.min,t,a,i,o),e.max=bC(e.max,t,a,i,o)}function PC(e,t,[a,r,o],n,s){P1(e,t[a],t[r],t[o],t.scale,n,s)}var T1=["x","scaleX","originX"],A1=["y","scaleY","originY"];function Mm(e,t,a,r){PC(e.x,t,T1,a?a.x:void 0,r?r.x:void 0),PC(e.y,t,A1,a?a.y:void 0,r?r.y:void 0)}function TC(e){return e.translate===0&&e.scale===1}function Nm(e){return TC(e.x)&&TC(e.y)}function AC(e,t){return e.min===t.min&&e.max===t.max}function DC(e,t){return AC(e.x,t.x)&&AC(e.y,t.y)}function RC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Em(e,t){return RC(e.x,t.x)&&RC(e.y,t.y)}function Fm(e){return Ze(e.x)/Ze(e.y)}function Bm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var jd=class{constructor(){this.members=[]}add(t){Xn(this.members,t),t.scheduleRender()}remove(t){if(Qn(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 MC(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:p,skewX:g,skewY:L}=a;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),p&&(r+=`rotateY(${p}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 To={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zi=typeof window<"u"&&window.MotionDebug!==void 0,Om=["","X","Y","Z"],R1={visibility:"hidden"},NC=1e3,D1=0;function Vm(e,t,a,r){let{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=dd(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:o,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Z,!(o||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zC(r)}function Kd({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t?.()){this.id=D1++,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,zi&&(To.totalNodes=To.resolvedTargetDeltas=To.recalculatedProjection=0),this.nodes.forEach(E1),this.nodes.forEach(U1),this.nodes.forEach(_1),this.nodes.forEach(F1),zi&&window.MotionDebug.record(To)},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 Gd)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ur),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=gC(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,p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=yC(p,250),is.hasAnimatedSinceResize&&(is.hasAnimatedSinceResize=!1,this.nodes.forEach(FC))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:L})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let C=this.options.transition||d.getDefaultTransition()||G1,{onLayoutAnimationStart:w,onLayoutAnimationComplete:h}=d.getProps(),m=!this.targetLayout||!Em(this.targetLayout,L)||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(c,x);let S={...Br(C,"layout"),onPlay:w,onComplete:h};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||FC(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,Vt(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(z1),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&&zC(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(EC);return}this.isUpdating||this.nodes.forEach(O1),this.isUpdating=!1,this.nodes.forEach(V1),this.nodes.forEach(M1),this.nodes.forEach(N1),this.clearAllSnapshots();let i=st.now();Ee.delta=Ye(0,1e3/60,i-Ee.timestamp),Ee.timestamp=i,Ee.isProcessing=!0,_u.update.process(Ee),_u.preRender.process(Ee),_u.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(B1),this.sharedNodes.forEach(H1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.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=Ie(),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&&!Nm(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(i||tr(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)),j1(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:i}=this.options;if(!i)return Ie();let l=i.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(K1))){let{scroll:d}=this.root;d&&(jr(l.x,d.offset.x),jr(l.y,d.offset.y))}return l}removeElementScroll(s){var i;let l=Ie();if(_t(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:p}=d;d!==this.root&&c&&p.layoutScroll&&(c.wasRoot&&_t(l,s),jr(l.x,c.offset.x),jr(l.y,c.offset.y))}return l}applyTransform(s,i=!1){let l=Ie();_t(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&&Po(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),tr(d.latestValues)&&Po(l,d.latestValues)}return tr(this.latestValues)&&Po(l,this.latestValues),l}removeTransform(s){let i=Ie();_t(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!tr(u.latestValues))continue;Vd(u.latestValues)&&u.updateSnapshot();let d=Ie(),c=u.measurePageBox();_t(d,c),Mm(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return tr(this.latestValues)&&Mm(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!==Ee.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:p}=this.options;if(!(!this.layout||!(c||p))){if(this.resolvedRelativeTargetAt=Ee.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),ss(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),_t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_t(this.target,this.layout.layoutBox),Tm(this.target,this.targetDelta)):_t(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=Ie(),this.relativeTargetOrigin=Ie(),ss(this.relativeTargetOrigin,this.target,g.target),_t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zi&&To.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Vd(this.parent.latestValues)||bm(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===Ee.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;_t(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,g=this.treeScale.y;uC(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=Ie());let{target:L}=i;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Dm(this.prevProjectionDelta.x,this.projectionDelta.x),Dm(this.prevProjectionDelta.y,this.projectionDelta.y)),ns(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==p||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)),zi&&To.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=bo(),this.projectionDelta=bo(),this.projectionDeltaWithTransform=bo()}setAnimationOrigin(s,i=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let p=Ie(),g=l?l.source:void 0,L=this.layout?this.layout.source:void 0,C=g!==L,w=this.getStack(),h=!w||w.members.length<=1,m=!!(C&&!h&&this.options.crossfade===!0&&!this.path.some(W1));this.animationProgress=0;let x;this.mixTargetDelta=S=>{let k=S/1e3;BC(c.x,s.x,k),BC(c.y,s.y,k),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ss(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),q1(this.relativeTarget,this.relativeTargetOrigin,p,k),x&&DC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ie()),_t(x,this.relativeTarget)),C&&(this.animationValues=d,IC(d,u,this.latestValues,k,m,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},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&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{is.hasAnimatedSinceResize=!0,this.currentAnimation=hC(0,NC,{...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(NC),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&&HC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();let c=Ze(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;let p=Ze(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}_t(i,l),Po(i,d),ns(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new jd),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&&Vm("z",s,u,this.animationValues);for(let d=0;d<Om.length;d++)Vm(`rotate${Om[d]}`,s,u,this.animationValues),Vm(`skew${Om[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 R1;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=En(s?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=En(s?.pointerEvents)||""),this.hasProjected&&!tr(this.latestValues)&&(C.transform=d?d({},""):"none",this.hasProjected=!1),C}let p=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=MC(this.projectionDeltaWithTransform,this.treeScale,p),d&&(u.transform=d(p,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=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=c===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let C in zn){if(p[C]===void 0)continue;let{correct:w,applyTo:h}=zn[C],m=u.transform==="none"?p[C]:w(p[C],c);if(h){let x=h.length;for(let S=0;S<x;S++)u[h[S]]=m}else u[C]=m}return this.options.layoutId&&(u.pointerEvents=c===this?En(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(EC),this.root.sharedNodes.clear()}}}function M1(e){e.updateLayout()}function N1(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"?Pt(c=>{let p=s?a.measuredBox[c]:a.layoutBox[c],g=Ze(p);p.min=r[c].min,p.max=p.min+g}):HC(n,a.layoutBox,r)&&Pt(c=>{let p=s?a.measuredBox[c]:a.layoutBox[c],g=Ze(r[c]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+g)});let i=bo();ns(i,r,a.layoutBox);let l=bo();s?ns(l,e.applyTransform(o,!0),a.measuredBox):ns(l,r,a.layoutBox);let u=!Nm(i),d=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:p,layout:g}=c;if(p&&g){let L=Ie();ss(L,a.layoutBox,p.layoutBox);let C=Ie();ss(C,r,g.layoutBox),Em(L,C)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=C,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 E1(e){zi&&To.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 F1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B1(e){e.clearSnapshot()}function EC(e){e.clearMeasurements()}function O1(e){e.isLayoutDirty=!1}function V1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function FC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function U1(e){e.resolveTargetDelta()}function _1(e){e.calcProjection()}function z1(e){e.resetSkewAndRotation()}function H1(e){e.removeLeadSnapshot()}function BC(e,t,a){e.translate=se(t.translate,0,a),e.scale=se(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function OC(e,t,a,r){e.min=se(t.min,a.min,r),e.max=se(t.max,a.max,r)}function q1(e,t,a,r){OC(e.x,t.x,a.x,r),OC(e.y,t.y,a.y,r)}function W1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var G1={duration:.45,ease:[.4,0,.1,1]},VC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),UC=VC("applewebkit/")&&!VC("chrome/")?Math.round:he;function _C(e){e.min=UC(e.min),e.max=UC(e.max)}function j1(e){_C(e.x),_C(e.y)}function HC(e,t,a){return e==="position"||e==="preserve-aspect"&&!HL(Fm(t),Fm(a),.2)}function K1(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var qC=Kd({attachResizeListener:(e,t)=>Ja(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Um={current:void 0},$d=Kd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Um.current){let e=new qC({});e.mount(window),e.setOptions({layoutScroll:!0}),Um.current=e}return Um.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var WC={pan:{Feature:qd},drag:{Feature:Hd,ProjectionNode:$d,MeasureLayout:Wd}};function GC(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&&Z.postRender(()=>n(t,er(t)))}var Xd=class extends je{mount(){let{current:t}=this.node;t&&(this.unmount=am(t,a=>(GC(this.node,a,"Start"),r=>GC(this.node,r,"End"))))}unmount(){}};var Qd=class extends je{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=Ia(Ja(this.node.current,"focus",()=>this.onFocus()),Ja(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function jC(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&&Z.postRender(()=>n(t,er(t)))}var Yd=class extends je{mount(){let{current:t}=this.node;t&&(this.unmount=om(t,a=>(jC(this.node,a,"Start"),(r,{success:o})=>jC(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var zm=new WeakMap,_m=new WeakMap,$1=e=>{let t=zm.get(e.target);t&&t(e)},X1=e=>{e.forEach($1)};function Q1({root:e,...t}){let a=e||document;_m.has(a)||_m.set(a,{});let r=_m.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(X1,{root:e,...t})),r[o]}function KC(e,t,a){let r=Q1(t);return zm.set(e,a),r.observe(e),()=>{zm.delete(e),r.unobserve(e)}}var Y1={some:0,all:1},Zd=class extends je{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:Y1[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(),p=u?d:c;p&&p(l)};return KC(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 $C={inView:{Feature:Zd},tap:{Feature:Yd},focus:{Feature:Qd},hover:{Feature:Xd}};var XC={layout:{ProjectionNode:$d,MeasureLayout:Wd}};var eS=N(X(),1);var Hi={current:null},Jd={current:!1};function QC(){if(Jd.current=!0,!!Pn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hi.current=e.matches;e.addListener(t),t()}else Hi.current=!1}var J1=[...pm,Oe,ht],YC=e=>J1.find(Id(e));var Hm=new WeakMap;function ZC(e,t,a){for(let r in t){let o=t[r],n=a[r];if(ye(o))e.addValue(r,o);else if(ye(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 JC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ec=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=qr,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=st.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Z.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=yo(a),this.isVariantNode=qu(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...p}=this.scrapeMotionValuesFromProps(a,{},this);for(let g in p){let L=p[g];l[g]!==void 0&&ye(L)&&L.set(l[g],!1)}}mount(t){this.current=t,Hm.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)),Jd.current||QC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Hi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Hm.delete(this.current),this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(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=bt.has(t),o=a.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Z.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 $a){let a=$a[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):Ie()}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<JC.length;r++){let o=JC[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=ZC(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"&&(Sd(o)||vd(o))?o=parseFloat(o):!YC(o)&&ht.test(a)&&(o=Cd(t,a)),this.setBaseTarget(t,ye(o)?o.get():o)),ye(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=Nn(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&&!ye(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 Ur),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}};var us=class extends ec{constructor(){super(...arguments),this.KeyframeResolver=es}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;ye(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};function eT(e){return window.getComputedStyle(e)}var tc=class extends us{constructor(){super(...arguments),this.type="html",this.renderInstance=Zu}readValueFromInstance(t,a){if(bt.has(a)){let r=Jn(a);return r&&r.default||0}else{let r=eT(t),o=(Xu(a)?r.getPropertyValue(a):r[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:a}){return Am(t,a)}build(t,a,r){On(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Hn(t,a,r)}};var ac=class extends us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(bt.has(a)){let r=Jn(a);return r&&r.default||0}return a=Ju.has(a)?a:An(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return ad(t,a,r)}build(t,a,r){Vn(t,a,this.isSVGTag,r.transformTemplate)}renderInstance(t,a,r,o){ed(t,a,r,o)}mount(t){this.isSVGTag=_n(t.tagName),super.mount(t)}};var tS=(e,t)=>Mn(e)?new ac(t):new tc(t,{allowProjection:e!==eS.Fragment});var aS=R0({...DL,...$C,...WC,...XC},tS);var qm=Qv(aS);var qi=N(le(),1);function rS({x:e,y:t,visible:a,onClick:r=!1}){return(0,qi.jsx)(jp,{children:a&&(0,qi.jsx)(qm.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,qi.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,qi.jsx)("path",{d:"M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z",fill:"#C4B5FD"})})})})}var ds=N(X(),1);function oS(){let[e,t]=ds.useState({x:0,y:0,visible:!1,onClick:!1}),a=ds.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=ds.useCallback(()=>{t(n=>({...n,visible:!1}))},[]),o=ds.useCallback(()=>{t(n=>({...n,visible:!0}))},[]);return{cursorState:e,moveTo:a,hide:r,show:o}}var cs=N(le(),1);function it({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card",className:Ft("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function wa({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card-header",className:Ft("@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,cs.jsx)("div",{"data-slot":"card-title",className:Ft("leading-none font-semibold",e),...t})}function Wm({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card-description",className:Ft("text-muted-foreground text-sm",e),...t})}function lt({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card-content",className:Ft("px-6",e),...t})}var y=N(le(),1),Gm=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),rc=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),jm=e=>{switch(e){case"Enterprise":return po;case"Professional":return Ci;default:return pi}},oc=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 Wi({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:Ge};case"failed":return{color:"bg-red-50 text-red-700 border-red-200",icon:sa};case"pending":return{color:"bg-amber-50 text-amber-700 border-amber-200",icon:co};case"refunded":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:Cn};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:na}}if(t==="subscription")switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:Ge};case"cancelled":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:sa};case"past_due":return{color:"bg-red-50 text-red-700 border-red-200",icon:na};case"trialing":return{color:"bg-blue-50 text-blue-700 border-blue-200",icon:co};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:na}}switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:Ge};case"inactive":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:sa};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:na}}})(),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 tT({subscription:e}){let t=jm(e.plan);return(0,y.jsxs)(it,{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)(wa,{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)(ka,{className:"text-base font-semibold text-gray-900 flex items-center gap-2",children:[(0,y.jsx)(fo,{className:"h-4 w-4 text-gray-500"}),e.id]}),e.customer_email&&(0,y.jsxs)(Wm,{className:"text-sm text-gray-500 flex items-center gap-1.5",children:[(0,y.jsx)(vn,{className:"h-3 w-3"}),e.customer_email]})]}),(0,y.jsx)(Wi,{status:e.status,type:"subscription"})]})}),(0,y.jsx)(lt,{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 ${oc(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:[rc(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:[Gm(e.current_period_start)," - ",Gm(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:Gm(e.created_at)})]})]})]})})]})}function aT({subscriptions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(fo,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(fo,{className:"h-4 w-4"}),e.length," Subscription",e.length!==1?"s":""]})}),(0,y.jsxs)(lt,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>{let n=jm(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 ${oc(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 ",rc(o.amount,o.currency),"/",o.billing_cycle]})]})]}),(0,y.jsx)(Wi,{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 rT({customer:e}){let t=jm(e.subscription);return(0,y.jsxs)(it,{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)(wa,{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)(ka,{className:"text-base font-semibold text-gray-900",children:e.name}),(0,y.jsxs)(Wm,{className:"text-sm text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(vn,{className:"h-3 w-3"}),e.email]})]})}),(0,y.jsx)(Wi,{status:e.status,type:"customer"})]})}),(0,y.jsx)(lt,{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 ${oc(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)(mo,{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)(Ln,{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)(hi,{className:"h-3 w-3 text-gray-400"}),e.joinDate]})]})]})]})})]})}function oT({customers:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(In,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(In,{className:"h-4 w-4"}),e.length," Customer",e.length!==1?"s":""]})}),(0,y.jsxs)(lt,{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 ${oc(o.subscription)}`,children:o.subscription}),(0,y.jsx)(Wi,{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 nS({transactions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(mo,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(mo,{className:"h-4 w-4"}),e.length," Transaction",e.length!==1?"s":""]})}),(0,y.jsxs)(lt,{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)(Ge,{className:"h-4 w-4 text-emerald-600"}):o.status==="failed"?(0,y.jsx)(sa,{className:"h-4 w-4 text-red-600"}):o.status==="refunded"?(0,y.jsx)(Cn,{className:"h-4 w-4 text-slate-600"}):(0,y.jsx)(co,{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)(Wi,{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 nT({apiKeys:e}){return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{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 API keys found"})]})}):(0,y.jsxs)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{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," API Key",e.length!==1?"s":""]})}),(0,y.jsx)(lt,{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 sT({sessions:e}){let t=a=>{let r=a.toLowerCase();return r.includes("mobile")||r.includes("iphone")||r.includes("android")?vi:xi};return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(Sn,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Sn,{className:"h-4 w-4"}),e.length," Active Session",e.length!==1?"s":""]})}),(0,y.jsx)(lt,{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)(Ln,{className:"h-3 w-3"}),a.location]})]})]}),(0,y.jsx)("div",{className:"text-xs text-gray-500",children:a.time})]})},r)})})})]})}function iT({stats:e}){return(0,y.jsxs)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Li,{className:"h-4 w-4"}),"Dashboard Overview"]})}),(0,y.jsx)(lt,{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:rc(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 lT({customers:e}){return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(po,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(po,{className:"h-4 w-4 text-amber-500"}),"Top Customers"]})}),(0,y.jsx)(lt,{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"?rc(t.revenue):t.revenue})]})},a))})})]})}function sS({type:e,data:t}){if(!t)return null;switch(e){case"subscription":return(0,y.jsx)(tT,{subscription:t});case"subscriptions":let a=t.subscriptions||t||[];return(0,y.jsx)(aT,{subscriptions:Array.isArray(a)?a:[a]});case"customer":return(0,y.jsx)(rT,{customer:t.customer||t});case"customers":let r=t.customers||t||[];return(0,y.jsx)(oT,{customers:Array.isArray(r)?r:[r]});case"transactions":let o=t.transactions||t||[];return(0,y.jsx)(nS,{transactions:Array.isArray(o)?o:[o]});case"transaction":return(0,y.jsx)(nS,{transactions:[t],maxItems:1});case"dashboard_stats":return(0,y.jsx)(iT,{stats:t});case"top_customers":let n=t.customers||t||[];return(0,y.jsx)(lT,{customers:Array.isArray(n)?n:[n]});case"api_keys":let s=t.api_keys||t||[];return(0,y.jsx)(nT,{apiKeys:Array.isArray(s)?s:[s]});case"sessions":let i=t.sessions||t||[];return(0,y.jsx)(sT,{sessions:Array.isArray(i)?i:[i]});default:return null}}var f=N(le(),1),uT="http://localhost:5002",lS=340;function dT(e){if(!e)return null;let t=e.split(`
17
- `),a=[],r=null,o=!1,n=[],s="",i=u=>{let d=[],c=u,p=0;for(;c.length>0;){let g=c.match(/^`([^`]+)`/);if(g){d.push((0,f.jsx)("code",{className:"bg-gray-100 px-1 py-0.5 rounded text-xs font-mono",children:g[1]},p++)),c=c.slice(g[0].length);continue}let L=c.match(/^\*\*([^*]+)\*\*/);if(L){d.push((0,f.jsx)("strong",{children:L[1]},p++)),c=c.slice(L[0].length);continue}let C=c.match(/^\*([^*]+)\*/);if(C){d.push((0,f.jsx)("em",{children:C[1]},p++)),c=c.slice(C[0].length);continue}let w=c.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(w){d.push((0,f.jsx)("a",{href:w[2],className:"kite-link",target:"_blank",rel:"noopener noreferrer",children:w[1]},p++)),c=c.slice(w[0].length);continue}let h=c.match(/^(https?:\/\/[^\s<>]+|www\.[^\s<>]+)/);if(h){let S=h[1],k=S.startsWith("www.")?`https://${S}`:S;d.push((0,f.jsx)("a",{href:k,className:"kite-link",target:"_blank",rel:"noopener noreferrer",children:S},p++)),c=c.slice(S.length);continue}let m=c.match(/^([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/);if(m){let S=m[1];d.push((0,f.jsx)("a",{href:`mailto:${S}`,className:"kite-link",children:S},p++)),c=c.slice(S.length);continue}let x=c.search(/[`*\[@h]/);if(x===-1){d.push(c);break}else x===0?(d.push(c[0]),c=c.slice(1)):(d.push(c.slice(0,x)),c=c.slice(x))}return d.length===1?d[0]:(0,f.jsx)(f.Fragment,{children:d})},l=()=>{if(r){let u=r.type==="ul"?"ul":"ol";a.push((0,f.jsx)(u,{className:`${r.type==="ul"?"list-disc":"list-decimal"} ml-4 my-1`,children:r.items.map((d,c)=>(0,f.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,f.jsx)("pre",{className:"bg-gray-100 rounded p-2 my-1 overflow-x-auto",children:(0,f.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,C=i(c[2]),w=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,f.jsx)("div",{className:w,children:C},a.length));continue}let p=d.match(/^[-*]\s+(.+)/);if(p){(!r||r.type!=="ul")&&(l(),r={type:"ul",items:[]}),r.items.push(i(p[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,f.jsx)("div",{className:"h-2"},a.length));continue}if(d.match(/^[-*_]{3,}$/)){l(),a.push((0,f.jsx)("hr",{className:"my-2 border-gray-200"},a.length));continue}l(),a.push((0,f.jsx)("div",{children:i(d)},a.length))}return l(),(0,f.jsx)(f.Fragment,{children:a})}var cT=[{id:"changing-layouts",label:"Changing layouts",prompt:"How do I change the layout of my profiles or folders?",icon:"layout"},{id:"bulk-uploads",label:"Bulk uploads",prompt:"How do I bulk upload profiles using a CSV file?",icon:"upload"},{id:"example-setups",label:"Example setups",prompt:"Can you show me some example folder setups?",icon:"setup"}],iS=[{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?"}]}],Km={"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}}]}},fT=[];function pT({isOpen:e=!0,onClose:t,onOpen:a,onBack:r,onNavigate:o,onActionComplete:n,currentPage:s,agentUrl:i=uT,startingQuestions:l,startingQuestionsEndpoint:u}={}){let[d,c]=G.useState(fT),[p,g]=G.useState(""),[L,C]=G.useState(()=>crypto.randomUUID()),w=G.useCallback(()=>{C(crypto.randomUUID())},[]),h=G.useRef({}),m=d.length===0,[x,S]=G.useState("idle"),[k,P]=G.useState([]),D=G.useRef([]),A=d.length?d[d.length-1].role:void 0,[V,E]=G.useState("landing"),[ce,te]=G.useState(void 0),[Ao,ua]=G.useState(l||cT),[ps,ar]=G.useState(!1);G.useEffect(()=>{u&&!l&&(ar(!0),fetch(u).then(v=>v.json()).then(v=>{Array.isArray(v)&&v.length>0&&ua(v)}).catch(v=>{console.warn("[KiteChat] Failed to fetch starting questions:",v)}).finally(()=>ar(!1)))},[u,l]),G.useEffect(()=>{l&&ua(l)},[l]);let[K,De]=G.useState(void 0),ue=G.useRef(void 0),Pa=G.useRef(null),[ut,Gi]=G.useState(!1);G.useEffect(()=>{window.resetIntegrationNotification=()=>{localStorage.removeItem("gmailNotificationSeen"),console.log("Integration notification reset! Click the Integrations tab to see it again.")};let v=()=>{if(!localStorage.getItem("gmailNotificationSeen")){E("landing"),te(void 0);let _=Date.now(),F="I see you're exploring integrations. Let me know if there are any other connections we should add.",B={id:_,role:"assistant",kind:"text",content:"",isNotificationMessage:!0};c(J=>[...J,B]),Ta(_,F),localStorage.setItem("gmailNotificationSeen","true")}};return window.addEventListener("integrationTabClicked",v),()=>{window.removeEventListener("integrationTabClicked",v)}},[]),G.useEffect(()=>{K?(!ue.current||ue.current.id!==K.id||ue.current.stepIndex!==K.stepIndex)&&(ue.current=K):ue.current=void 0},[K]);let[ms,ji]=G.useState(null),[ze,nc]=G.useState(null),[re,oe]=G.useState({}),Qm=G.useRef(null),sc=G.useRef(null),Ki=G.useRef(null),{cursorState:$i,moveTo:Kr,hide:Ro}=oS(),[$r,ic]=G.useState(null),[Ym,rr]=G.useState(null),lc=G.useRef(null),Do=G.useRef(null),[Zm,hs]=G.useState(!1),[Mo,Xi]=G.useState(""),Jm=G.useRef(null);G.useEffect(()=>{if(!K||K.id!=="add-api-key"||K.stepIndex!==2)return;let b=setInterval(()=>{let _=document.querySelector('[role="dialog"]'),F=ue.current;if(_&&F&&F.id==="add-api-key"&&F.stepIndex===2){Ro();let B=Date.now()+1;c(J=>[...J,{id:B,role:"assistant",kind:"guideComplete",content:"Perfect! The dialog is now open. You can enter a name and create your API key."}]),De(void 0),Gi(!0)}},300);return()=>clearInterval(b)},[K,Ro]),G.useEffect(()=>()=>{Object.values(h.current).forEach(v=>window.clearInterval(v)),h.current={},D.current.forEach(v=>window.clearTimeout(v)),D.current=[]},[]),G.useEffect(()=>{if(K&&d.length>0){let v=d[d.length-1];if((v.kind==="guideStep"||v.kind==="guideComplete")&&Ki.current&&sc.current){let b=sc.current,_=Ki.current,F=b.getBoundingClientRect(),J=_.getBoundingClientRect().top-F.top+b.scrollTop;b.scrollTop=J}}else!K&&d.length>0&&Qm.current?.scrollIntoView({behavior:"smooth"})},[d,x,K]);let eh=G.useMemo(()=>{for(let v=d.length-1;v>=0;v--){let b=d[v];if(b.kind==="bulkSummary"&&b.bulkSummary?.navigationPage&&b.bulkSummary.successes>0)return b.bulkSummary.navigationPage}return null},[d]);G.useEffect(()=>{Pa.current=eh},[eh]),G.useEffect(()=>{lc.current=Ym},[Ym]),G.useEffect(()=>{let v=b=>{if((b.metaKey||b.ctrlKey)&&b.key==="Enter"){let _=lc.current;if(_){b.preventDefault(),b.stopPropagation(),cc(_);return}if(ze){b.preventDefault(),b.stopPropagation(),dc();return}if(ms){b.preventDefault(),b.stopPropagation(),uc(ms);return}let F=Pa.current;if(console.log("[DEBUG] Keyboard handler - latestBulkSummaryNavigation:",F,"onNavigate:",!!o),F&&o){console.log("[DEBUG] Navigating via keyboard to:",F.page),b.preventDefault(),b.stopPropagation(),o(F.page,F.subtab);return}if(ut){b.preventDefault(),b.stopPropagation(),th();return}if(ue.current){b.preventDefault(),b.stopPropagation(),fc();return}}};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[ze,ms,K,ut,o]);function Ta(v,b,_){let F=b,B=_;if(b&&b.startsWith("{")&&b.includes('"response"'))try{let M=0,I=0;for(let j=0;j<b.length;j++)if(b[j]==="{")M++;else if(b[j]==="}"&&(M--,M===0)){I=j+1;break}let $=I>0?b.slice(0,I):b,ee=JSON.parse($);ee.response&&typeof ee.response=="string"&&(F=ee.response,!B&&ee.followups&&(B=ee.followups))}catch{}let J=F.split(" "),Q=0,T=window.setInterval(()=>{Q+=1,c(M=>M.map(I=>I.id===v?{...I,content:J.slice(0,Q).join(" ")}:I)),Q>=J.length&&(window.clearInterval(T),delete h.current[v],B&&B.length>0&&c(M=>M.map(I=>I.id===v?{...I,followups:B}:I)),S("idle"))},25);h.current[v]=T}function cS(v,b){c(_=>_.map(F=>F.id===v?{...F,followupSelected:!0}:F)),Qi(b.label)}function th(){Object.values(h.current).forEach(v=>window.clearInterval(v)),h.current={},D.current.forEach(v=>window.clearTimeout(v)),D.current=[],Ro(),w(),c([]),g(""),S("idle"),E("landing"),te(void 0),De(void 0),Gi(!1),ji(null),nc(null),oe({}),r&&r()}function yT(v){E("folder"),te(v)}function fS(){E("landing"),te(void 0)}function pS(v){v.preventDefault();let b=p.trim();if($r){if(!b){let _={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'."};c(F=>[...F,_]);return}hS(b,$r),g(""),ic(null),Do.current&&(Do.current.value="");return}b&&(Qi(b),g(""))}function mS(v){let b={dashboard:"dashboard",customers:"customers page",payments:"payments page",settings:"settings page",support:"support page",disputes:"disputes page",radar:"radar page"};if(v.page==="settings"&&v.subtab){let _={general:"General",billing:"Billing",security:"Security",api:"API Keys",notifications:"Notifications",integrations:"Integrations"};return`${b.settings} (${_[v.subtab]} tab)`}return b[v.page]}function uc(v){o&&o(v.page,v.subtab),ji(null),c(b=>b.map(_=>_.kind==="navigationAction"&&_.navigationTarget?.page===v.page&&_.navigationTarget?.subtab===v.subtab?{..._,navigationTarget:void 0}:_))}function dc(){if(!ze)return;let v=re;if(ze.type!=="updateCompanyInfo"){if(ze.type==="addApiKey"){let b=v;if(!b.name||!b.name.trim())return}else if(ze.type==="addCustomer"){let b=v;if(!b.name||!b.name.trim()||!b.email||!b.email.trim())return}else if(ze.type==="changePassword"){let b=v;if(!b.currentPassword||!b.newPassword||!b.confirmPassword||b.newPassword!==b.confirmPassword)return}else if(ze.type==="addWebhook"){let b=v;if(!b.url||!b.url.trim())return}else if(ze.type==="addPaymentMethod"){let b=v;if(!b.cardNumber||!b.expiryDate)return}else if(ze.type==="deleteApiKey"){let b=v;if(!b.keyId&&!b.name)return}else if(ze.type==="refundPayment"){let b=v;if(!b.transactionId&&!b.customer)return}else if(ze.type==="createSubscription"){let b=v;if(!b.customerEmail&&!b.customerId)return}else if((ze.type==="toggleBlockRule"||ze.type==="enableBlockRule"||ze.type==="disableBlockRule")&&!v.ruleId)return}n&&n(ze.type,v),c(b=>b.map(_=>_.kind==="actionForm"&&_.actionType===ze.type?{..._,isSubmitted:!0}:_)),nc(null),oe({})}async function Qi(v){D.current.forEach(Q=>window.clearTimeout(Q)),D.current=[];let _=[...d].reverse().find(Q=>Q.role==="assistant")?.isNotificationMessage===!0,F=Date.now(),B={id:F,role:"user",content:v};if(c(Q=>Q.map(T=>T.followups&&T.followups.length>0?{...T,followupSelected:!0}:T).concat(B)),_){let Q=Date.now()+1,T={id:Q,role:"assistant",kind:"text",content:""};c(M=>[...M,T]),Ta(Q,"Thank you, your feedback is saved.");return}ji(null),S("thinking"),P([]);let J=!1;try{let Q=new AbortController,T=setTimeout(()=>Q.abort(),6e4),M=await fetch(`${i}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:L,message:v,current_page:s||"dashboard"}),signal:Q.signal});if(clearTimeout(T),!M.ok)throw new Error(`Agent request failed: ${M.status}`);let I=M.body?.getReader();if(!I)throw new Error("No response body");let $=new TextDecoder,ee="";for(;;){let{done:j,value:fe}=await I.read();if(j)break;ee+=$.decode(fe,{stream:!0});let He=ee.split(`
16
+ `),()=>{document.head.removeChild(d)}},[t]),(0,Ov.jsx)(zp,{isPresent:t,childRef:r,sizeRef:o,children:Ru.cloneElement(e,{ref:r})})}var _v=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:n,mode:s})=>{let i=kn(Vb),l=(0,xo.useId)(),u=(0,xo.useCallback)(c=>{i.set(c,!0);for(let f of i.values())if(!f)return;r&&r()},[i,r]),d=(0,xo.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,xo.useMemo)(()=>{i.forEach((c,f)=>i.set(f,!1))},[a]),Uv.useEffect(()=>{!a&&!i.size&&r&&r()},[a]),s==="popLayout"&&(e=(0,Hp.jsx)(Vv,{isPresent:a,children:e})),(0,Hp.jsx)(Dr.Provider,{value:d,children:e})};function Vb(){return new Map}var Mr=N(K(),1);function Du(e=!0){let t=(0,Mr.useContext)(Dr);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=t,n=(0,Mr.useId)();(0,Mr.useEffect)(()=>{e&&o(n)},[e]);let s=(0,Mr.useCallback)(()=>e&&r&&r(n),[n,r,e]);return!a&&r?[!1,s]:[!0]}var Mu=N(K(),1),Si=e=>e.key||"";function qp(e){let t=[];return Mu.Children.forEach(e,a=>{(0,Mu.isValidElement)(a)&&t.push(a)}),t}var Nu=N(K(),1);var Pn=typeof window<"u";var Eu=Pn?Nu.useLayoutEffect:Nu.useEffect;var Wp=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:n="sync",propagate:s=!1})=>{let[i,l]=Du(s),u=(0,ya.useMemo)(()=>qp(e),[e]),d=s&&!i?[]:u.map(Si),c=(0,ya.useRef)(!0),f=(0,ya.useRef)(u),g=kn(()=>new Map),[L,C]=(0,ya.useState)(u),[k,h]=(0,ya.useState)(u);Eu(()=>{c.current=!1,f.current=u;for(let w=0;w<k.length;w++){let S=Si(k[w]);d.includes(S)?g.delete(S):g.get(S)!==!0&&g.set(S,!1)}},[k,d.length,d.join("-")]);let m=[];if(u!==L){let w=[...u];for(let S=0;S<k.length;S++){let P=k[S],D=Si(P);d.includes(D)||(w.splice(S,0,P),m.push(P))}n==="wait"&&m.length&&(w=m),h(qp(w)),C(u);return}let{forceRender:x}=(0,ya.useContext)(wn);return(0,Ii.jsx)(Ii.Fragment,{children:k.map(w=>{let S=Si(w),P=s&&!i?!1:u===k||d.includes(S),D=()=>{if(g.has(S))g.set(S,!0);else return;let A=!0;g.forEach(V=>{V||(A=!1)}),A&&(x?.(),h(f.current),s&&l?.(),r&&r())};return(0,Ii.jsx)(_v,{isPresent:P,initial:!c.current||a?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:o,mode:n,onExitComplete:P?void 0:D,children:w},S)})})};var he=e=>e;var Ka=he,da=he;function yo(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ot=(e,t,a)=>{let r=t-e;return r===0?1:(a-e)/r};var Ne=e=>e*1e3,Qe=e=>e/1e3;var Tn={skipAnimations:!1,useManualTiming:!1};function zv(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 Fu=["read","resolveKeyframes","update","preRender","render","postRender"],Ub=40;function Bu(e,t){let a=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>a=!0,s=Fu.reduce((h,m)=>(h[m]=zv(n),h),{}),{read:i,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:f}=s,g=()=>{let h=Tn.useManualTiming?o.timestamp:performance.now();a=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,Ub),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:Fu.reduce((h,m)=>{let x=s[m];return h[m]=(w,S=!1,P=!1)=>(a||L(),x.schedule(w,S,P)),h},{}),cancel:h=>{for(let m=0;m<Fu.length;m++)s[Fu[m]].cancel(h)},state:o,steps:s}}var{schedule:Y,cancel:Vt,state:Ee,steps:Ou}=Bu(typeof requestAnimationFrame<"u"?requestAnimationFrame:he,!0);var Hv=N(K(),1),Vu=(0,Hv.createContext)({strict:!1});var qv={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"]},$a={};for(let e in qv)$a[e]={isEnabled:t=>qv[e].some(a=>!!t[a])};function Wv(e){for(let t in e)$a[t]={...$a[t],...e[t]}}var _b=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 wi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_b.has(e)}var Gv=e=>!wi(e);function zb(e){e&&(Gv=t=>t.startsWith("on")?!wi(t):e(t))}try{zb(LS("@emotion/is-prop-valid").default)}catch{}function jv(e,t,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(Gv(o)||a===!0&&wi(o)||!t&&!wi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Kv(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 Wu=N(de(),1);var Dn=N(K(),1);var $v=N(K(),1),Nr=(0,$v.createContext)({});var zu=N(K(),1);function Xa(e){return typeof e=="string"||Array.isArray(e)}function Er(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var Uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ki=["initial",...Uu];function vo(e){return Er(e.animate)||ki.some(t=>Xa(e[t]))}function _u(e){return!!(vo(e)||e.variants)}function Xv(e,t){if(vo(e)){let{initial:a,animate:r}=e;return{initial:a===!1||Xa(a)?a:void 0,animate:Xa(r)?r:void 0}}return e.inherit!==!1?t:{}}function Yv(e){let{initial:t,animate:a}=Xv(e,(0,zu.useContext)(Nr));return(0,zu.useMemo)(()=>({initial:t,animate:a}),[Qv(t),Qv(a)])}function Qv(e){return Array.isArray(e)?e.join(" "):e}var Zv=Symbol.for("motionComponentSymbol");var Jv=N(K(),1);function Qa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e0(e,t,a){return(0,Jv.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):Qa(a)&&(a.current=r))},[t])}var kt=N(K(),1);var An=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Hb="framerAppearId",Hu="data-"+An(Hb);var{schedule:Rn,cancel:zM}=Bu(queueMicrotask,!1);var t0=N(K(),1),qu=(0,t0.createContext)({});function a0(e,t,a,r,o){var n,s;let{visualElement:i}=(0,kt.useContext)(Nr),l=(0,kt.useContext)(Vu),u=(0,kt.useContext)(Dr),d=(0,kt.useContext)(bn).reducedMotion,c=(0,kt.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,kt.useContext)(qu);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&qb(c.current,a,o,g);let L=(0,kt.useRef)(!1);(0,kt.useInsertionEffect)(()=>{f&&L.current&&f.update(a,u)});let C=a[Hu],k=(0,kt.useRef)(!!C&&!(!((n=window.MotionHandoffIsComplete)===null||n===void 0)&&n.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Eu(()=>{f&&(L.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Rn.render(f.render),k.current&&f.animationState&&f.animationState.animateChanges())}),(0,kt.useEffect)(()=>{f&&(!k.current&&f.animationState&&f.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,C)}),k.current=!1))}),f}function qb(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:r0(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!s||i&&Qa(i),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function r0(e){if(e)return e.options.allowProjection!==!1?e.projection:r0(e.parent)}function o0({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:r,Component:o}){var n,s;e&&Wv(e);function i(u,d){let c,f={...(0,Dn.useContext)(bn),...u,layoutId:Wb(u)},{isStatic:g}=f,L=Yv(u),C=r(u,g);if(!g&&Pn){Gb(f,e);let k=jb(f);c=k.MeasureLayout,L.visualElement=a0(o,C,f,t,k.ProjectionNode)}return(0,Wu.jsxs)(Nr.Provider,{value:L,children:[c&&L.visualElement?(0,Wu.jsx)(c,{visualElement:L.visualElement,...f}):null,a(o,u,e0(C,L.visualElement,d),C,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,Dn.forwardRef)(i);return l[Zv]=o,l}function Wb({layoutId:e}){let t=(0,Dn.useContext)(wn).id;return t&&e!==void 0?t+"-"+e:e}function Gb(e,t){let a=(0,Dn.useContext)(Vu).strict}function jb(e){let{drag:t,layout:a}=$a;if(!t&&!a)return{};let r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var n0=["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 Mn(e){return typeof e!="string"||e.includes("-")?!1:!!(n0.indexOf(e)>-1||/[A-Z]/u.test(e))}var Gp=N(K(),1);function s0(e){let t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Nn(e,t,a,r){if(typeof t=="function"){let[o,n]=s0(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]=s0(r);t=t(a!==void 0?a:e.custom,o,n)}return t}var bi=e=>Array.isArray(e);var i0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),l0=e=>bi(e)?e[e.length-1]||0:e;var ve=e=>!!(e&&e.getVelocity);function En(e){let t=ve(e)?e.get():e;return i0(t)?t.toValue():t}function Kb({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},r,o,n){let s={latestValues:$b(r,o,n,e),renderState:t()};return a&&(s.onMount=i=>a({props:r,current:i,...s}),s.onUpdate=i=>a(i)),s}var Gu=e=>(t,a)=>{let r=(0,Gp.useContext)(Nr),o=(0,Gp.useContext)(Dr),n=()=>Kb(e,t,r,o);return a?n():kn(n)};function $b(e,t,a,r){let o={},n=r(e,{});for(let f in n)o[f]=En(n[f]);let{initial:s,animate:i}=e,l=vo(e),u=_u(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"&&!Er(c)){let f=Array.isArray(c)?c:[c];for(let g=0;g<f.length;g++){let L=Nn(e,f[g]);if(L){let{transitionEnd:C,transition:k,...h}=L;for(let m in h){let x=h[m];if(Array.isArray(x)){let w=d?x.length-1:0;x=x[w]}x!==null&&(o[m]=x)}for(let m in C)o[m]=C[m]}}}return o}var va=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(va);var u0=e=>t=>typeof t=="string"&&t.startsWith(e),ju=u0("--"),Xb=u0("var(--"),Fn=e=>Xb(e)?Qb.test(e.split("/*")[0].trim()):!1,Qb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ku=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var Ye=(e,t,a)=>a>t?t:a<e?e:a;var La={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ya={...La,transform:e=>Ye(0,1,e)},Pi={...La,default:1};var Ti=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ca=Ti("deg"),pt=Ti("%"),H=Ti("px"),d0=Ti("vh"),c0=Ti("vw"),jp={...pt,parse:e=>pt.parse(e)/100,transform:e=>pt.transform(e*100)};var f0={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H};var p0={rotate:Ca,rotateX:Ca,rotateY:Ca,rotateZ:Ca,scale:Pi,scaleX:Pi,scaleY:Pi,scaleZ:Pi,skew:Ca,skewX:Ca,skewY:Ca,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Ya,originX:jp,originY:jp,originZ:H};var Kp={...La,transform:Math.round};var Bn={...f0,...p0,zIndex:Kp,size:H,fillOpacity:Ya,strokeOpacity:Ya,numOctaves:Kp};var Yb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zb=va.length;function m0(e,t,a){let r="",o=!0;for(let n=0;n<Zb;n++){let s=va[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=Ku(i,Bn[s]);if(!l){o=!1;let d=Yb[s]||s;r+=`${d}(${u}) `}a&&(t[s]=u)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function On(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(bt.has(l)){s=!0;continue}else if(ju(l)){o[l]=u;continue}else{let d=Ku(u,Bn[l]);l.startsWith("origin")?(i=!0,n[l]=d):r[l]=d}}if(t.transform||(s||a?r.transform=m0(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 Jb={offset:"stroke-dashoffset",array:"stroke-dasharray"},eP={offset:"strokeDashoffset",array:"strokeDasharray"};function h0(e,t,a=1,r=0,o=!0){e.pathLength=1;let n=o?Jb:eP;e[n.offset]=H.transform(-r);let s=H.transform(t),i=H.transform(a);e[n.array]=`${s} ${i}`}function g0(e,t,a){return typeof e=="string"?e:H.transform(t+a*e)}function x0(e,t,a){let r=g0(t,e.x,e.width),o=g0(a,e.y,e.height);return`${r} ${o}`}function Vn(e,{attrX:t,attrY:a,attrScale:r,originX:o,originY:n,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...u},d,c){if(On(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=x0(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&&h0(f,s,i,l,!1)}var Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var $u=()=>({...Un(),attrs:{}});var _n=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xu(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 Yu(e,t,a,r){Xu(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(Qu.has(o)?o:An(o),t.attrs[o])}var zn={};function y0(e){Object.assign(zn,e)}function Zu(e,{layout:t,layoutId:a}){return bt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!zn[e]||e==="opacity")}function Hn(e,t,a){var r;let{style:o}=e,n={};for(let s in o)(ve(o[s])||t.style&&ve(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 Ju(e,t,a){let r=Hn(e,t,a);for(let o in e)if(ve(e[o])||ve(t[o])){let n=va.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o]}return r}function tP(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 v0=["x","y","width","height","cx","cy","r"],L0={useVisualState:Gu({scrapeMotionValuesFromProps:Ju,createRenderState:$u,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(bt.has(i)){n=!0;break}}if(!n)return;let s=!t;if(t)for(let i=0;i<v0.length;i++){let l=v0[i];e[l]!==t[l]&&(s=!0)}s&&Y.read(()=>{tP(a,r),Y.render(()=>{Vn(r,o,_n(a.tagName),e.transformTemplate),Yu(a,r)})})}})};var C0={useVisualState:Gu({scrapeMotionValuesFromProps:Hn,createRenderState:Un})};var qn=N(K(),1);var S0=N(K(),1);function $p(e,t,a){for(let r in t)!ve(t[r])&&!Zu(r,a)&&(e[r]=t[r])}function aP({transformTemplate:e},t){return(0,S0.useMemo)(()=>{let a=Un();return On(a,t,e),Object.assign({},a.vars,a.style)},[t])}function rP(e,t){let a=e.style||{},r={};return $p(r,a,e),Object.assign(r,aP(e,t)),r}function I0(e,t){let a={},r=rP(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 w0=N(K(),1);function k0(e,t,a,r){let o=(0,w0.useMemo)(()=>{let n=$u();return Vn(n,t,_n(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 b0(e=!1){return(a,r,o,{latestValues:n},s)=>{let l=(Mn(a)?k0:I0)(r,n,s,a),u=jv(r,typeof a=="string",e),d=a!==qn.Fragment?{...u,...l,ref:o}:{},{children:c}=r,f=(0,qn.useMemo)(()=>ve(c)?c.get():c,[c]);return(0,qn.createElement)(a,{...d,children:f})}}function P0(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Mn(r)?L0:C0,preloadedFeatures:e,useRender:b0(o),createVisualElement:t,Component:r};return o0(s)}}function Xp(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 Fr(e,t,a){let r=e.getProps();return Nn(r,t,a!==void 0?a:r.custom,e)}var Qp=yo(()=>window.ScrollTimeline!==void 0);var Ai=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(Qp()&&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 Ri=class extends Ai{then(t,a){return Promise.all(this.animations).then(t).catch(a)}};function Br(e,t){return e?e[t]||e.default||e:void 0}function Wn(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 Or(e){return typeof e=="function"}function Di(e,t){e.timeline=t,e.onfinish=null}var Gn=e=>Array.isArray(e)&&typeof e[0]=="number";var Zp={linearEasing:void 0};function T0(e,t){let a=yo(e);return()=>{var r;return(r=Zp[t])!==null&&r!==void 0?r:a()}}var Vr=T0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Mi=(e,t,a=10)=>{let r="",o=Math.max(Math.round(t/a),2);for(let n=0;n<o;n++)r+=e(Ot(0,o-1,n))+", ";return`linear(${r.substring(0,r.length-2)})`};function td(e){return!!(typeof e=="function"&&Vr()||!e||typeof e=="string"&&(e in ed||Vr())||Gn(e)||Array.isArray(e)&&e.every(td))}var jn=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,ed={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jn([0,.65,.55,1]),circOut:jn([.55,0,1,.45]),backIn:jn([.31,.01,.66,-.59]),backOut:jn([.33,1.53,.69,.99])};function Kn(e,t){if(e)return typeof e=="function"&&Vr()?Mi(e,t):Gn(e)?jn(e):Array.isArray(e)?e.map(a=>Kn(a,t)||ed.easeOut):ed[e]}var Ut={x:!1,y:!1};function $n(){return Ut.x||Ut.y}function Jp(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 ad(e,t){let a=Jp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function A0(e){return t=>{t.pointerType==="touch"||$n()||e(t)}}function em(e,t,a={}){let[r,o,n]=ad(e,a),s=A0(i=>{let{target:l}=i,u=t(i);if(typeof u!="function"||!l)return;let d=A0(c=>{u(c),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(i=>{i.addEventListener("pointerenter",s,o)}),n}var rd=(e,t)=>t?e===t?!0:rd(e,t.parentElement):!1;var Lo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var oP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function R0(e){return oP.has(e.tagName)||e.tabIndex!==-1}var Co=new WeakSet;function D0(e){return t=>{t.key==="Enter"&&e(t)}}function tm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var M0=(e,t)=>{let a=e.currentTarget;if(!a)return;let r=D0(()=>{if(Co.has(a))return;tm(a,"down");let o=D0(()=>{tm(a,"up")}),n=()=>tm(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 N0(e){return Lo(e)&&!$n()}function am(e,t,a={}){let[r,o,n]=ad(e,a),s=i=>{let l=i.currentTarget;if(!N0(i)||Co.has(l))return;Co.add(l);let u=t(i),d=(g,L)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!N0(g)||!Co.has(l))&&(Co.delete(l),typeof u=="function"&&u(g,{success:L}))},c=g=>{d(g,a.useGlobalTarget||rd(l,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",f,o)};return r.forEach(i=>{!R0(i)&&i.getAttribute("tabindex")===null&&(i.tabIndex=0),(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,o),i.addEventListener("focus",u=>M0(u,o),o)}),n}function rm(e){return e==="x"||e==="y"?Ut[e]?null:(Ut[e]=!0,()=>{Ut[e]=!1}):Ut.x||Ut.y?null:(Ut.x=Ut.y=!0,()=>{Ut.x=Ut.y=!1})}var od=new Set(["width","height","top","left","right","bottom",...va]);var nd;function sP(){nd=void 0}var st={now:()=>(nd===void 0&&st.set(Ee.isProcessing||Tn.useManualTiming?Ee.timestamp:performance.now()),nd),set:e=>{nd=e,queueMicrotask(sP)}};function Xn(e,t){e.indexOf(t)===-1&&e.push(t)}function Qn(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var Ur=class{constructor(){this.subscriptions=[]}add(t){return Xn(this.subscriptions,t),()=>Qn(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 sd(e,t){return t?e*(1e3/t):0}var F0=30,iP=e=>!isNaN(parseFloat(e)),B0={current:void 0},om=class{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let n=st.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=st.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=iP(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 Ur);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=st.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>F0)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,F0);return sd(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 om(e,t)}function lP(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Za(a))}function O0(e,t){let a=Fr(e,t),{transitionEnd:r={},transition:o={},...n}=a||{};n={...n,...r};for(let s in n){let i=l0(n[s]);lP(e,s,i)}}function V0(e){return!!(ve(e)&&e.add)}function Ni(e,t){let a=e.getValue("willChange");if(V0(a))return a.add(t)}function id(e){return e.props[Hu]}var ld={current:!1};var U0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,uP=1e-7,dP=12;function cP(e,t,a,r,o){let n,s,i=0;do s=t+(a-t)/2,n=U0(s,r,o)-e,n>0?a=s:t=s;while(Math.abs(n)>uP&&++i<dP);return s}function _r(e,t,a,r){if(e===t&&a===r)return he;let o=n=>cP(n,0,1,e,a);return n=>n===0||n===1?n:U0(o(n),t,r)}var ud=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var dd=e=>t=>1-e(1-t);var nm=_r(.33,1.53,.69,.99),Ei=dd(nm),cd=ud(Ei);var fd=e=>(e*=2)<1?.5*Ei(e):.5*(2-Math.pow(2,-10*(e-1)));var pd=e=>1-Math.sin(Math.acos(e)),md=dd(pd),hd=ud(pd);var gd=e=>/^0[^.\s]+$/u.test(e);function _0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gd(e):!0}var zr=e=>Math.round(e*1e5)/1e5;var Yn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z0(e){return e==null}var H0=/^(?:#[\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"&&H0.test(a)&&a.startsWith(e)||t&&!z0(a)&&Object.prototype.hasOwnProperty.call(a,t)),xd=(e,t,a)=>r=>{if(typeof r!="string")return r;let[o,n,s,i]=r.match(Yn);return{[e]:parseFloat(o),[t]:parseFloat(n),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var fP=e=>Ye(0,255,e),sm={...La,transform:e=>Math.round(fP(e))},Sa={test:Zn("rgb","red"),parse:xd("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+sm.transform(e)+", "+sm.transform(t)+", "+sm.transform(a)+", "+zr(Ya.transform(r))+")"};function pP(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 Fi={test:Zn("#"),parse:pP,transform:Sa.transform};var Hr={test:Zn("hsl","hue"),parse:xd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+pt.transform(zr(t))+", "+pt.transform(zr(a))+", "+zr(Ya.transform(r))+")"};var Oe={test:e=>Sa.test(e)||Fi.test(e)||Hr.test(e),parse:e=>Sa.test(e)?Sa.parse(e):Hr.test(e)?Hr.parse(e):Fi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Sa.transform(e):Hr.transform(e)};var q0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mP(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yn))===null||t===void 0?void 0:t.length)||0)+(((a=e.match(q0))===null||a===void 0?void 0:a.length)||0)>0}var G0="number",j0="color",hP="var",gP="var(",W0="${}",xP=/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 So(e){let t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[],n=0,i=t.replace(xP,l=>(Oe.test(l)?(r.color.push(n),o.push(j0),a.push(Oe.parse(l))):l.startsWith(gP)?(r.var.push(n),o.push(hP),a.push(l)):(r.number.push(n),o.push(G0),a.push(parseFloat(l))),++n,W0)).split(W0);return{values:a,split:i,indexes:r,types:o}}function K0(e){return So(e).values}function $0(e){let{split:t,types:a}=So(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===G0?n+=zr(o[s]):i===j0?n+=Oe.transform(o[s]):n+=o[s]}return n}}var yP=e=>typeof e=="number"?0:e;function vP(e){let t=K0(e);return $0(e)(t.map(yP))}var mt={test:mP,parse:K0,createTransformer:$0,getAnimatableNone:vP};var LP=new Set(["brightness","contrast","saturate","opacity"]);function CP(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=a.match(Yn)||[];if(!r)return e;let o=a.replace(r,""),n=LP.has(t)?1:0;return r!==a&&(n*=100),t+"("+n+o+")"}var SP=/\b([a-z-]*)\(.*?\)/gu,Bi={...mt,getAnimatableNone:e=>{let t=e.match(SP);return t?t.map(CP).join(" "):e}};var IP={...Bn,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Bi,WebkitFilter:Bi},Jn=e=>IP[e];function yd(e,t){let a=Jn(e);return a!==Bi&&(a=mt),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var wP=new Set(["auto","none","0"]);function X0(e,t,a){let r=0,o;for(;r<e.length&&!o;){let n=e[r];typeof n=="string"&&!wP.has(n)&&So(n).values.length&&(o=e[r]),r++}if(o&&a)for(let n of t)e[n]=yd(a,o)}var im=e=>e===La||e===H,Q0=(e,t)=>parseFloat(e.split(", ")[t]),Y0=(e,t)=>(a,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Q0(o[1],t);{let n=r.match(/^matrix\((.+)\)$/u);return n?Q0(n[1],e):0}},kP=new Set(["x","y","z"]),bP=va.filter(e=>!kP.has(e));function Z0(e){let t=[];return bP.forEach(a=>{let r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}var Io={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:Y0(4,13),y:Y0(5,14)};Io.translateX=Io.x;Io.translateY=Io.y;var wo=new Set,lm=!1,um=!1;function J0(){if(um){let e=Array.from(wo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{let o=Z0(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)})}um=!1,lm=!1,wo.forEach(e=>e.complete()),wo.clear()}function eL(){wo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(um=!0)})}function tL(){eL(),J0()}var qr=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?(wo.add(this),lm||(lm=!0,Y.read(eL),Y.resolveKeyframes(J0))):(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),wo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,wo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var vd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var PP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function TP(e){let t=PP.exec(e);if(!t)return[,];let[,a,r,o]=t;return[`--${a??r}`,o]}var AP=4;function dm(e,t,a=1){da(a<=AP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=TP(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return vd(s)?parseFloat(s):s}return Fn(o)?dm(o,t,a+1):o}var Ld=e=>t=>t.test(e);var aL={test:e=>e==="auto",parse:e=>e};var cm=[La,H,pt,Ca,c0,d0,aL],fm=e=>cm.find(Ld(e));var es=class extends qr{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(),Fn(u))){let d=dm(u,a.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!od.has(r)||t.length!==2)return;let[o,n]=t,s=fm(o),i=fm(n);if(s!==i)if(im(s)&&im(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++)_0(t[o])&&r.push(o);r.length&&X0(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=Io[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]=Io[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 pm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mt.test(e)||e==="0")&&!e.startsWith("url("));function RP(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 rL(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=pm(o,t),i=pm(n,t);return Ka(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:RP(e)||(a==="spring"||Or(a))&&r}var DP=e=>e!==null;function Wr(e,{repeat:t,repeatType:a="loop"},r){let o=e.filter(DP),n=t&&a!=="loop"&&t%2===1?0:o.length-1;return!n||r===void 0?o[n]:r}var MP=40,ts=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=st.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>MP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&tL(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=st.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:n,delay:s,onComplete:i,onUpdate:l,isGenerator:u}=this.options;if(!u&&!rL(t,r,o,n))if(ld.current||!s){l&&l(Wr(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 ne=(e,t,a)=>e+(t-e)*a;function mm(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 oL({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=mm(l,i,e+1/3),n=mm(l,i,e),s=mm(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function as(e,t){return a=>a>0?t:e}var hm=(e,t,a)=>{let r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},NP=[Fi,Sa,Hr],EP=e=>NP.find(t=>t.test(e));function nL(e){let t=EP(e);if(Ka(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===Hr&&(a=oL(a)),a}var gm=(e,t)=>{let a=nL(e),r=nL(t);if(!a||!r)return as(e,t);let o={...a};return n=>(o.red=hm(a.red,r.red,n),o.green=hm(a.green,r.green,n),o.blue=hm(a.blue,r.blue,n),o.alpha=ne(a.alpha,r.alpha,n),Sa.transform(o))};var FP=(e,t)=>a=>t(e(a)),Ia=(...e)=>e.reduce(FP);var Cd=new Set(["none","hidden"]);function sL(e,t){return Cd.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function BP(e,t){return a=>ne(e,t,a)}function Sd(e){return typeof e=="number"?BP:typeof e=="string"?Fn(e)?as:Oe.test(e)?gm:UP:Array.isArray(e)?iL:typeof e=="object"?Oe.test(e)?gm:OP:as}function iL(e,t){let a=[...e],r=a.length,o=e.map((n,s)=>Sd(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)a[s]=o[s](n);return a}}function OP(e,t){let a={...e,...t},r={};for(let o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Sd(e[o])(e[o],t[o]));return o=>{for(let n in r)a[n]=r[n](o);return a}}function VP(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 UP=(e,t)=>{let a=mt.createTransformer(t),r=So(e),o=So(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?Cd.has(e)&&!o.values.length||Cd.has(t)&&!r.values.length?sL(e,t):Ia(iL(VP(r,o),o.values),a):(Ka(!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.`),as(e,t))};function Id(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?ne(e,t,a):Sd(e)(e,t)}var _P=5;function wd(e,t,a){let r=Math.max(t-_P,0);return sd(a-e(r),t-r)}var Ie={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 xm=.001;function lL({duration:e=Ie.duration,bounce:t=Ie.bounce,velocity:a=Ie.velocity,mass:r=Ie.mass}){let o,n;Ka(e<=Ne(Ie.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Ye(Ie.minDamping,Ie.maxDamping,s),e=Ye(Ie.minDuration,Ie.maxDuration,Qe(e)),s<1?(o=u=>{let d=u*s,c=d*e,f=d-a,g=kd(u,s),L=Math.exp(-c);return xm-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),C=kd(Math.pow(u,2),s);return(-o(u)+xm>0?-1:1)*((f-g)*L)/C}):(o=u=>{let d=Math.exp(-u*e),c=(u-a)*e+1;return-xm+d*c},n=u=>{let d=Math.exp(-u*e),c=(a-u)*(e*e);return d*c});let i=5/e,l=HP(o,n,i);if(e=Ne(e),isNaN(l))return{stiffness:Ie.stiffness,damping:Ie.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var zP=12;function HP(e,t,a){let r=a;for(let o=1;o<zP;o++)r=r-e(r)/t(r);return r}function kd(e,t){return e*Math.sqrt(1-t*t)}var qP=["duration","bounce"],WP=["stiffness","damping","mass"];function uL(e,t){return t.some(a=>e[a]!==void 0)}function GP(e){let t={velocity:Ie.velocity,stiffness:Ie.stiffness,damping:Ie.damping,mass:Ie.mass,isResolvedFromDuration:!1,...e};if(!uL(e,WP)&&uL(e,qP))if(e.visualDuration){let a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,n=2*Ye(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ie.mass,stiffness:o,damping:n}}else{let a=lL(e);t={...t,...a,mass:Ie.mass},t.isResolvedFromDuration=!0}return t}function bd(e=Ie.visualDuration,t=Ie.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}=GP({...a,velocity:-Qe(a.velocity||0)}),L=f||0,C=u/(2*Math.sqrt(l*d)),k=s-n,h=Qe(Math.sqrt(l/d)),m=Math.abs(k)<5;r||(r=m?Ie.restSpeed.granular:Ie.restSpeed.default),o||(o=m?Ie.restDelta.granular:Ie.restDelta.default);let x;if(C<1){let S=kd(h,C);x=P=>{let D=Math.exp(-C*h*P);return s-D*((L+C*h*k)/S*Math.sin(S*P)+k*Math.cos(S*P))}}else if(C===1)x=S=>s-Math.exp(-h*S)*(k+(L+h*k)*S);else{let S=h*Math.sqrt(C*C-1);x=P=>{let D=Math.exp(-C*h*P),A=Math.min(S*P,300);return s-D*((L+C*h*k)*Math.sinh(A)+S*k*Math.cosh(A))/S}}let w={calculatedDuration:g&&c||null,next:S=>{let P=x(S);if(g)i.done=S>=c;else{let D=0;C<1&&(D=S===0?Ne(L):wd(x,S,P));let A=Math.abs(D)<=r,V=Math.abs(s-P)<=o;i.done=A&&V}return i.value=i.done?s:P,i},toString:()=>{let S=Math.min(Wn(w),2e4),P=Mi(D=>w.next(S*D).value,S,30);return S+"ms "+P}};return w}function ym({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=A=>i!==void 0&&A<i||l!==void 0&&A>l,L=A=>i===void 0?l:l===void 0||Math.abs(i-A)<Math.abs(l-A)?i:l,C=a*t,k=c+C,h=s===void 0?k:s(k);h!==k&&(C=h-c);let m=A=>-C*Math.exp(-A/r),x=A=>h+m(A),w=A=>{let V=m(A),U=x(A);f.done=Math.abs(V)<=u,f.value=f.done?h:U},S,P,D=A=>{g(f.value)&&(S=A,P=bd({keyframes:[f.value,L(f.value)],velocity:wd(x,A,f.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:A=>{let V=!1;return!P&&S===void 0&&(V=!0,w(A),D(A)),S!==void 0&&A>=S?P.next(A-S):(!V&&w(A),f)}}}var dL=_r(.42,0,1,1),cL=_r(0,0,.58,1),Pd=_r(.42,0,.58,1);var fL=e=>Array.isArray(e)&&typeof e[0]!="number";var pL={linear:he,easeIn:dL,easeInOut:Pd,easeOut:cL,circIn:pd,circInOut:hd,circOut:md,backIn:Ei,backInOut:cd,backOut:nm,anticipate:fd},vm=e=>{if(Gn(e)){da(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,a,r,o]=e;return _r(t,a,r,o)}else if(typeof e=="string")return da(pL[e]!==void 0,`Invalid easing type '${e}'`),pL[e];return e};function jP(e,t,a){let r=[],o=a||Id,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]||he:t;i=Ia(l,i)}r.push(i)}return r}function mL(e,t,{clamp:a=!0,ease:r,mixer:o}={}){let n=e.length;if(da(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=jP(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=Ot(e[c],e[c+1],d);return i[c](f)};return a?d=>u(Ye(e[0],e[n-1],d)):u}function hL(e,t){let a=e[e.length-1];for(let r=1;r<=t;r++){let o=Ot(0,t,r);e.push(ne(a,1,o))}}function gL(e){let t=[0];return hL(t,e.length-1),t}function xL(e,t){return e.map(a=>a*t)}function KP(e,t){return e.map(()=>t||Pd).splice(0,e.length-1)}function Oi({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){let o=fL(r)?r.map(vm):vm(r),n={done:!1,value:t[0]},s=xL(a&&a.length===t.length?a:gL(t),e),i=mL(s,t,{ease:Array.isArray(o)?o:KP(t,o)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var yL=e=>{let t=({timestamp:a})=>e(a);return{start:()=>Y.update(t,!0),stop:()=>Vt(t),now:()=>Ee.isProcessing?Ee.timestamp:st.now()}};var $P={decay:ym,inertia:ym,tween:Oi,keyframes:Oi,spring:bd},XP=e=>e/100,ko=class extends ts{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||qr,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=Or(a)?a:$P[a]||Oi,l,u;i!==Oi&&typeof t[0]!="number"&&(l=Ia(XP,Id(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=Wn(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:A}=this.options;return{done:!0,value:A[A.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:C,onUpdate:k}=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,w=n;if(g){let A=Math.min(this.currentTime,d)/c,V=Math.floor(A),U=A%1;!U&&A>=1&&(U=1),U===1&&V--,V=Math.min(V,g+1),V%2&&(L==="reverse"?(U=1-U,C&&(U-=C/c)):L==="mirror"&&(w=s)),x=Ye(0,1,U)*c}let S=m?{done:!1,value:l[0]}:w.next(x);i&&(S.value=i(S.value));let{done:P}=S;!m&&u!==null&&(P=this.speed>=0?this.currentTime>=d:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&o!==void 0&&(S.value=Wr(l,this.options,o)),k&&k(S.value),D&&this.finish(),S}get duration(){let{resolved:t}=this;return t?Qe(t.calculatedDuration):0}get time(){return Qe(this.currentTime)}set time(t){t=Ne(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=Qe(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=yL,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 vL=new Set(["opacity","clipPath","filter","transform"]);function LL(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=Kn(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=yo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var Td=10,QP=2e4;function YP(e){return Or(e.type)||e.type==="spring"||!td(e.ease)}function ZP(e,t){let a=new ko({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],n=0;for(;!r.done&&n<QP;)r=a.sample(n),o.push(r.value),n+=Td;return{times:void 0,keyframes:o,duration:n-Td,ease:"linear"}}var SL={anticipate:fd,backInOut:cd,circInOut:hd};function JP(e){return e in SL}var Vi=class extends ts{constructor(t){super(t);let{name:a,motionValue:r,element:o,keyframes:n}=this.options;this.resolver=new es(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"&&Vr()&&JP(n)&&(n=SL[n]),YP(this.options)){let{onComplete:c,onUpdate:f,motionValue:g,element:L,...C}=this.options,k=ZP(t,C);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,o=k.times,n=k.ease,s="keyframes"}let d=LL(i.owner.current,l,t,{...this.options,duration:r,times:o,ease:n});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Di(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:c}=this.options;i.set(Wr(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 Qe(a)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:a}=t;return Qe(a.currentTime||0)}set time(t){let{resolved:a}=this;if(!a)return;let{animation:r}=a;r.currentTime=Ne(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 he;let{animation:r}=a;Di(r,t)}return he}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 ko({...g,keyframes:r,duration:o,type:n,ease:s,times:i,isGenerator:!0}),C=Ne(this.time);u.setWithVelocity(L.sample(C-Td).value,L.sample(C).value,Td)}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&&vL.has(r)&&!l&&!u&&!o&&n!=="mirror"&&s!==0&&i!=="inertia"}};var e1={type:"spring",stiffness:500,damping:25,restSpeed:10},t1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),a1={type:"keyframes",duration:.8},r1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IL=(e,{keyframes:t})=>t.length>2?a1:bt.has(e)?e.startsWith("scale")?t1(t[1]):e1:r1;function wL({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 rs=(e,t,a,r={},o,n)=>s=>{let i=Br(r,e)||{},l=i.delay||r.delay||0,{elapsed:u=0}=r;u=u-Ne(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};wL(i)||(d={...d,...IL(e,d)}),d.duration&&(d.duration=Ne(d.duration)),d.repeatDelay&&(d.repeatDelay=Ne(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)),(ld.current||Tn.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!n&&t.get()!==void 0){let f=Wr(d.keyframes,i);if(f!==void 0)return Y.update(()=>{d.onUpdate(f),d.onComplete()}),new Ri([])}return!n&&Vi.supports(d)?new Vi(d):new ko(d)};function o1({protectedKeys:e,needsAnimating:t},a){let r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function Ad(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&&o1(d,c))continue;let L={delay:a,...Br(s||{},c)},C=!1;if(window.MotionHandoffAnimation){let h=id(e);if(h){let m=window.MotionHandoffAnimation(h,c,Y);m!==null&&(L.startTime=m,C=!0)}}Ni(e,c),f.start(rs(c,f,g,e.shouldReduceMotion&&od.has(c)?{type:!1}:L,e,C));let k=f.animation;k&&u.push(k)}return i&&Promise.all(u).then(()=>{Y.update(()=>{i&&O0(e,i)})}),u}function Rd(e,t,a={}){var r;let o=Fr(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(Ad(e,o,a)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:d=0,staggerChildren:c,staggerDirection:f}=n;return n1(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 n1(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(s1).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Rd(u,t,{...n,delay:a+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function s1(e,t){return e.sortNodePosition(t)}function kL(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(n=>Rd(e,n,a));r=Promise.all(o)}else if(typeof t=="string")r=Rd(e,t,a);else{let o=typeof t=="function"?Fr(e,t,a.custom):t;r=Promise.all(Ad(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}var i1=ki.length;function Lm(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?Lm(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;a<i1;a++){let r=ki[a],o=e.props[r];(Xa(o)||o===!1)&&(t[r]=o)}return t}var l1=[...Uu].reverse(),u1=Uu.length;function d1(e){return t=>Promise.all(t.map(({animation:a,options:r})=>kL(e,a,r)))}function PL(e){let t=d1(e),a=bL(),r=!0,o=l=>(u,d)=>{var c;let f=Fr(e,d,l==="exit"?(c=e.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(f){let{transition:g,transitionEnd:L,...C}=f;u={...u,...C,...L}}return u};function n(l){t=l(e)}function s(l){let{props:u}=e,d=Lm(e.parent)||{},c=[],f=new Set,g={},L=1/0;for(let k=0;k<u1;k++){let h=l1[k],m=a[h],x=u[h]!==void 0?u[h]:d[h],w=Xa(x),S=h===l?m.isActive:null;S===!1&&(L=k);let P=x===d[h]&&x!==u[h]&&w;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...g},!m.isActive&&S===null||!x&&!m.prevProp||Er(x)||typeof x=="boolean")continue;let D=c1(m.prevProp,x),A=D||h===l&&m.isActive&&!P&&w||k>L&&w,V=!1,U=Array.isArray(x)?x:[x],ie=U.reduce(o(h),{});S===!1&&(ie={});let{prevResolvedValues:ue={}}=m,Kr={...ue,...ie},Pa=ge=>{A=!0,f.has(ge)&&(V=!0,f.delete(ge)),m.needsAnimating[ge]=!0;let re=e.getValue(ge);re&&(re.liveStyle=!1)};for(let ge in Kr){let re=ie[ge],Ht=ue[ge];if(g.hasOwnProperty(ge))continue;let qt=!1;bi(re)&&bi(Ht)?qt=!Xp(re,Ht):qt=re!==Ht,qt?re!=null?Pa(ge):f.add(ge):re!==void 0&&f.has(ge)?Pa(ge):m.protectedKeys[ge]=!0}m.prevProp=x,m.prevResolvedValues=ie,m.isActive&&(g={...g,...ie}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(P&&D)||V)&&c.push(...U.map(ge=>({animation:ge,options:{type:h}})))}if(f.size){let k={};f.forEach(h=>{let m=e.getBaseTarget(h),x=e.getValue(h);x&&(x.liveStyle=!0),k[h]=m??null}),c.push({animation:k})}let C=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?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=bL(),r=!0}}}function c1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xp(t,e):!1}function bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bL(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}var je=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Dd=class extends je{constructor(t){super(t),t.animationState||(t.animationState=PL(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Er(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 f1=0,Md=class extends je{constructor(){super(...arguments),this.id=f1++}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 TL={animation:{Feature:Dd},exit:{Feature:Md}};function Ja(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function er(e){return{point:{x:e.pageX,y:e.pageY}}}var AL=e=>t=>Lo(t)&&e(t,er(t));function Gr(e,t,a,r){return Ja(e,t,AL(a),r)}var RL=(e,t)=>Math.abs(e-t);function DL(e,t){let a=RL(e.x,t.x),r=RL(e.y,t.y);return Math.sqrt(a**2+r**2)}var os=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=Sm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=DL(c.offset,{x:0,y:0})>=3;if(!f&&!g)return;let{point:L}=c,{timestamp:C}=Ee;this.history.push({...L,timestamp:C});let{onStart:k,onMove:h}=this.handlers;f||(k&&k(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Cm(f,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();let{onEnd:g,onSessionEnd:L,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let k=Sm(c.type==="pointercancel"?this.lastMoveEventInfo:Cm(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(c,k),L&&L(c,k)},!Lo(t))return;this.dragSnapToOrigin=n,this.handlers=a,this.transformPagePoint=r,this.contextWindow=o||window;let s=er(t),i=Cm(s,this.transformPagePoint),{point:l}=i,{timestamp:u}=Ee;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=a;d&&d(t,Sm(i,this.history)),this.removeListeners=Ia(Gr(this.contextWindow,"pointermove",this.handlePointerMove),Gr(this.contextWindow,"pointerup",this.handlePointerUp),Gr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vt(this.updatePoint)}};function Cm(e,t){return t?{point:t(e.point)}:e}function ML(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sm({point:e},t){return{point:e,delta:ML(e,NL(t)),offset:ML(e,p1(t)),velocity:m1(t,.1)}}function p1(e){return e[0]}function NL(e){return e[e.length-1]}function m1(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null,o=NL(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>Ne(t)));)a--;if(!r)return{x:0,y:0};let n=Qe(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 OL=1e-4,h1=1-OL,g1=1+OL,VL=.01,x1=0-VL,y1=0+VL;function Ze(e){return e.max-e.min}function UL(e,t,a){return Math.abs(e-t)<=a}function EL(e,t,a,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=Ze(a)/Ze(t),e.translate=ne(a.min,a.max,e.origin)-e.originPoint,(e.scale>=h1&&e.scale<=g1||isNaN(e.scale))&&(e.scale=1),(e.translate>=x1&&e.translate<=y1||isNaN(e.translate))&&(e.translate=0)}function ns(e,t,a,r){EL(e.x,t.x,a.x,r?r.originX:void 0),EL(e.y,t.y,a.y,r?r.originY:void 0)}function FL(e,t,a){e.min=a.min+t.min,e.max=e.min+Ze(t)}function _L(e,t,a){FL(e.x,t.x,a.x),FL(e.y,t.y,a.y)}function BL(e,t,a){e.min=t.min-a.min,e.max=e.min+Ze(t)}function ss(e,t,a){BL(e.x,t.x,a.x),BL(e.y,t.y,a.y)}function GL(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?ne(a,e,r.max):Math.min(e,a)),e}function zL(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 jL(e,{top:t,left:a,bottom:r,right:o}){return{x:zL(e.x,a,o),y:zL(e.y,t,r)}}function HL(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 KL(e,t){return{x:HL(e.x,t.x),y:HL(e.y,t.y)}}function $L(e,t){let a=.5,r=Ze(e),o=Ze(t);return o>r?a=Ot(t.min,t.max-r,e.min):r>o&&(a=Ot(e.min,e.max-o,t.min)),Ye(0,1,a)}function XL(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 Nd=.35;function QL(e=Nd){return e===!1?e=0:e===!0&&(e=Nd),{x:qL(e,"left","right"),y:qL(e,"top","bottom")}}function qL(e,t,a){return{min:WL(e,t),max:WL(e,a)}}function WL(e,t){return typeof e=="number"?e:e[t]||0}var YL=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:YL(),y:YL()}),ZL=()=>({min:0,max:0}),we=()=>({x:ZL(),y:ZL()});function Pt(e){return[e("x"),e("y")]}function Ed({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function JL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function eC(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 Im(e){return e===void 0||e===1}function Fd({scale:e,scaleX:t,scaleY:a}){return!Im(e)||!Im(t)||!Im(a)}function tr(e){return Fd(e)||wm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wm(e){return tC(e.x)||tC(e.y)}function tC(e){return e&&e!=="0%"}function Ui(e,t,a){let r=e-a,o=t*r;return a+o}function aC(e,t,a,r,o){return o!==void 0&&(e=Ui(e,o,r)),Ui(e,a,r)+t}function km(e,t=0,a=1,r,o){e.min=aC(e.min,t,a,r,o),e.max=aC(e.max,t,a,r,o)}function bm(e,{x:t,y:a}){km(e.x,t.translate,t.scale,t.originPoint),km(e.y,a.translate,a.scale,a.originPoint)}var rC=.999999999999,oC=1.0000000000001;function sC(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&&To(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,bm(e,s)),r&&tr(n.latestValues)&&To(e,n.latestValues))}t.x<oC&&t.x>rC&&(t.x=1),t.y<oC&&t.y>rC&&(t.y=1)}function jr(e,t){e.min=e.min+t,e.max=e.max+t}function nC(e,t,a,r,o=.5){let n=ne(e.min,e.max,o);km(e,t,a,n,r)}function To(e,t){nC(e.x,t.x,t.scaleX,t.scale,t.originX),nC(e.y,t.y,t.scaleY,t.scale,t.originY)}function Pm(e,t){return Ed(eC(e.getBoundingClientRect(),t))}function iC(e,t,a){let r=Pm(e,a),{scroll:o}=t;return o&&(jr(r.x,o.offset.x),jr(r.y,o.offset.y)),r}var Bd=({current:e})=>e?e.ownerDocument.defaultView:null;var v1=new WeakMap,Vd=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=we(),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(er(d).point)},n=(d,c)=>{let{drag:f,dragPropagation:g,onDragStart:L}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rm(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),Pt(k=>{let h=this.getAxisMotionValue(k).get()||0;if(pt.test(h)){let{projection:m}=this.visualElement;if(m&&m.layout){let x=m.layout.layoutBox[k];x&&(h=Ze(x)*(parseFloat(h)/100))}}this.originPoint[k]=h}),L&&Y.postRender(()=>L(d,c)),Ni(this.visualElement,"transform");let{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(d,c)=>{let{dragPropagation:f,dragDirectionLock:g,onDirectionLock:L,onDrag:C}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:k}=c;if(g&&this.currentDirection===null){this.currentDirection=L1(k),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",c.point,k),this.updateAxis("y",c.point,k),this.visualElement.render(),C&&C(d,c)},i=(d,c)=>this.stop(d,c),l=()=>Pt(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 os(t,{onSessionStart:o,onStart:n,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Bd(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||!Od(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=GL(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&&Qa(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=jL(o.layoutBox,a):this.constraints=!1,this.elastic=QL(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Pt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=XL(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Qa(t))return!1;let r=t.current;da(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=iC(r,o.root,this.visualElement.getTransformPagePoint()),s=KL(o.layout.layoutBox,n);if(a){let i=a(JL(s));this.hasMutatedConstraints=!!i,i&&(s=Ed(i))}return s}startAnimation(t){let{drag:a,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=Pt(d=>{if(!Od(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 Ni(this.visualElement,t),r.start(rs(t,r,0,a,this.visualElement,!1))}stopAnimation(){Pt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pt(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){Pt(a=>{let{drag:r}=this.getProps();if(!Od(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]-ne(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Qa(a)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Pt(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let l=i.get();o[s]=$L({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(),Pt(s=>{if(!Od(s,t,null))return;let i=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];i.set(ne(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;v1.set(this.visualElement,this);let t=this.visualElement.current,a=Gr(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();Qa(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=Ja(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pt(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=Nd,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:s,dragMomentum:i}}};function Od(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function L1(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Ud=class extends je{constructor(t){super(t),this.removeGroupControls=he,this.removeListeners=he,this.controls=new Vd(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||he}unmount(){this.removeGroupControls(),this.removeListeners()}};var lC=e=>(t,a)=>{e&&Y.postRender(()=>e(t,a))},_d=class extends je{constructor(){super(...arguments),this.removePointerDownListener=he}onPointerDown(t){this.session=new os(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bd(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:lC(t),onStart:lC(a),onMove:r,onEnd:(n,s)=>{delete this.session,o&&Y.postRender(()=>o(n,s))}}}mount(){this.removePointerDownListener=Gr(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 cC=N(de(),1),_i=N(K(),1);var is={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ls={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;let a=uC(e,t.target.x),r=uC(e,t.target.y);return`${a}% ${r}%`}};var dC={correct:(e,{treeScale:t,projectionDelta:a})=>{let r=e,o=mt.parse(e);if(o.length>5)return r;let n=mt.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=ne(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 Tm=class extends _i.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=t;y0(C1),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()})),is.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(),Rn.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 zd(e){let[t,a]=Du(),r=(0,_i.useContext)(wn);return(0,cC.jsx)(Tm,{...e,layoutGroup:r,switchLayoutGroup:(0,_i.useContext)(qu),isPresent:t,safeToRemove:a})}var C1={borderRadius:{...ls,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomLeftRadius:ls,borderBottomRightRadius:ls,boxShadow:dC};function fC(e,t,a){let r=ve(e)?e:Za(e);return r.start(rs("",r,t,a)),r.animation}function pC(e){return e instanceof SVGElement&&e.tagName!=="svg"}var mC=(e,t)=>e.depth-t.depth;var Hd=class{constructor(){this.children=[],this.isDirty=!1}add(t){Xn(this.children,t),this.isDirty=!0}remove(t){Qn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mC),this.isDirty=!1,this.children.forEach(t)}};function hC(e,t){let a=st.now(),r=({timestamp:o})=>{let n=o-a;n>=t&&(Vt(r),e(n-t))};return Y.read(r,!0),()=>Vt(r)}var vC=["TopLeft","TopRight","BottomLeft","BottomRight"],S1=vC.length,gC=e=>typeof e=="string"?parseFloat(e):e,xC=e=>typeof e=="number"||H.test(e);function LC(e,t,a,r,o,n){o?(e.opacity=ne(0,a.opacity!==void 0?a.opacity:1,I1(r)),e.opacityExit=ne(t.opacity!==void 0?t.opacity:1,0,w1(r))):n&&(e.opacity=ne(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,r));for(let s=0;s<S1;s++){let i=`border${vC[s]}Radius`,l=yC(t,i),u=yC(a,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||xC(l)===xC(u)?(e[i]=Math.max(ne(gC(l),gC(u),r),0),(pt.test(u)||pt.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||a.rotate)&&(e.rotate=ne(t.rotate||0,a.rotate||0,r))}function yC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var I1=CC(0,.5,md),w1=CC(.5,.95,he);function CC(e,t,a){return r=>r<e?0:r>t?1:a(Ot(e,t,r))}function SC(e,t){e.min=t.min,e.max=t.max}function _t(e,t){SC(e.x,t.x),SC(e.y,t.y)}function Am(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function IC(e,t,a,r,o){return e-=t,e=Ui(e,1/a,r),o!==void 0&&(e=Ui(e,1/o,r)),e}function k1(e,t=0,a=1,r=.5,o,n=e,s=e){if(pt.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=ne(n.min,n.max,r);e===n&&(i-=t),e.min=IC(e.min,t,a,i,o),e.max=IC(e.max,t,a,i,o)}function wC(e,t,[a,r,o],n,s){k1(e,t[a],t[r],t[o],t.scale,n,s)}var b1=["x","scaleX","originX"],P1=["y","scaleY","originY"];function Rm(e,t,a,r){wC(e.x,t,b1,a?a.x:void 0,r?r.x:void 0),wC(e.y,t,P1,a?a.y:void 0,r?r.y:void 0)}function kC(e){return e.translate===0&&e.scale===1}function Dm(e){return kC(e.x)&&kC(e.y)}function bC(e,t){return e.min===t.min&&e.max===t.max}function TC(e,t){return bC(e.x,t.x)&&bC(e.y,t.y)}function PC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mm(e,t){return PC(e.x,t.x)&&PC(e.y,t.y)}function Nm(e){return Ze(e.x)/Ze(e.y)}function Em(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var qd=class{constructor(){this.members=[]}add(t){Xn(this.members,t),t.scheduleRender()}remove(t){if(Qn(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 AC(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 Ao={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zi=typeof window<"u"&&window.MotionDebug!==void 0,Fm=["","X","Y","Z"],T1={visibility:"hidden"},RC=1e3,A1=0;function Bm(e,t,a,r){let{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function VC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=id(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&&VC(r)}function Wd({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},i=t?.()){this.id=A1++,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,zi&&(Ao.totalNodes=Ao.resolvedTargetDeltas=Ao.recalculatedProjection=0),this.nodes.forEach(M1),this.nodes.forEach(O1),this.nodes.forEach(V1),this.nodes.forEach(N1),zi&&window.MotionDebug.record(Ao)},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 Hd)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ur),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=pC(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=hC(f,250),is.hasAnimatedSinceResize&&(is.hasAnimatedSinceResize=!1,this.nodes.forEach(MC))})}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 C=this.options.transition||d.getDefaultTransition()||q1,{onLayoutAnimationStart:k,onLayoutAnimationComplete:h}=d.getProps(),m=!this.targetLayout||!Mm(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 w={...Br(C,"layout"),onPlay:k,onComplete:h};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||MC(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,Vt(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(U1),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&&VC(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(DC);return}this.isUpdating||this.nodes.forEach(F1),this.isUpdating=!1,this.nodes.forEach(B1),this.nodes.forEach(R1),this.nodes.forEach(D1),this.clearAllSnapshots();let i=st.now();Ee.delta=Ye(0,1e3/60,i-Ee.timestamp),Ee.timestamp=i,Ee.isProcessing=!0,Ou.update.process(Ee),Ou.preRender.process(Ee),Ou.render.process(Ee),Ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(E1),this.sharedNodes.forEach(_1)}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=we(),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&&!Dm(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(i||tr(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)),W1(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:i}=this.options;if(!i)return we();let l=i.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(G1))){let{scroll:d}=this.root;d&&(jr(l.x,d.offset.x),jr(l.y,d.offset.y))}return l}removeElementScroll(s){var i;let l=we();if(_t(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&&_t(l,s),jr(l.x,c.offset.x),jr(l.y,c.offset.y))}return l}applyTransform(s,i=!1){let l=we();_t(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&&To(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),tr(d.latestValues)&&To(l,d.latestValues)}return tr(this.latestValues)&&To(l,this.latestValues),l}removeTransform(s){let i=we();_t(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!tr(u.latestValues))continue;Fd(u.latestValues)&&u.updateSnapshot();let d=we(),c=u.measurePageBox();_t(d,c),Rm(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return tr(this.latestValues)&&Rm(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!==Ee.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=Ee.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=we(),this.relativeTargetOrigin=we(),ss(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),_t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=we(),this.targetWithTransforms=we()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_L(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_t(this.target,this.layout.layoutBox),bm(this.target,this.targetDelta)):_t(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=we(),this.relativeTargetOrigin=we(),ss(this.relativeTargetOrigin,this.target,g.target),_t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zi&&Ao.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Fd(this.parent.latestValues)||wm(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===Ee.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;_t(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;sC(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=we());let{target:L}=i;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Am(this.prevProjectionDelta.x,this.projectionDelta.x),Am(this.prevProjectionDelta.y,this.projectionDelta.y)),ns(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!Em(this.projectionDelta.x,this.prevProjectionDelta.x)||!Em(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",L)),zi&&Ao.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=Po(),this.projectionDelta=Po(),this.projectionDeltaWithTransform=Po()}setAnimationOrigin(s,i=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=Po();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let f=we(),g=l?l.source:void 0,L=this.layout?this.layout.source:void 0,C=g!==L,k=this.getStack(),h=!k||k.members.length<=1,m=!!(C&&!h&&this.options.crossfade===!0&&!this.path.some(H1));this.animationProgress=0;let x;this.mixTargetDelta=w=>{let S=w/1e3;NC(c.x,s.x,S),NC(c.y,s.y,S),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ss(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z1(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&TC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=we()),_t(x,this.relativeTarget)),C&&(this.animationValues=d,LC(d,u,this.latestValues,S,m,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{is.hasAnimatedSinceResize=!0,this.currentAnimation=fC(0,RC,{...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(RC),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&&UC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||we();let c=Ze(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;let f=Ze(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}_t(i,l),To(i,d),ns(this.projectionDeltaWithTransform,this.layoutCorrected,i,d)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new qd),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&&Bm("z",s,u,this.animationValues);for(let d=0;d<Fm.length;d++)Bm(`rotate${Fm[d]}`,s,u,this.animationValues),Bm(`skew${Fm[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 T1;let u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=En(s?.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){let C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=En(s?.pointerEvents)||""),this.hasProjected&&!tr(this.latestValues)&&(C.transform=d?d({},""):"none",this.hasProjected=!1),C}let f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=AC(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 C in zn){if(f[C]===void 0)continue;let{correct:k,applyTo:h}=zn[C],m=u.transform==="none"?f[C]:k(f[C],c);if(h){let x=h.length;for(let w=0;w<x;w++)u[h[w]]=m}else u[C]=m}return this.options.layoutId&&(u.pointerEvents=c===this?En(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(DC),this.root.sharedNodes.clear()}}}function R1(e){e.updateLayout()}function D1(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"?Pt(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Ze(f);f.min=r[c].min,f.max=f.min+g}):UC(n,a.layoutBox,r)&&Pt(c=>{let f=s?a.measuredBox[c]:a.layoutBox[c],g=Ze(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=Po();ns(i,r,a.layoutBox);let l=Po();s?ns(l,e.applyTransform(o,!0),a.measuredBox):ns(l,r,a.layoutBox);let u=!Dm(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=we();ss(L,a.layoutBox,f.layoutBox);let C=we();ss(C,r,g.layoutBox),Mm(L,C)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=C,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 M1(e){zi&&Ao.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 N1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function E1(e){e.clearSnapshot()}function DC(e){e.clearMeasurements()}function F1(e){e.isLayoutDirty=!1}function B1(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 O1(e){e.resolveTargetDelta()}function V1(e){e.calcProjection()}function U1(e){e.resetSkewAndRotation()}function _1(e){e.removeLeadSnapshot()}function NC(e,t,a){e.translate=ne(t.translate,0,a),e.scale=ne(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function EC(e,t,a,r){e.min=ne(t.min,a.min,r),e.max=ne(t.max,a.max,r)}function z1(e,t,a,r){EC(e.x,t.x,a.x,r),EC(e.y,t.y,a.y,r)}function H1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var q1={duration:.45,ease:[.4,0,.1,1]},FC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),BC=FC("applewebkit/")&&!FC("chrome/")?Math.round:he;function OC(e){e.min=BC(e.min),e.max=BC(e.max)}function W1(e){OC(e.x),OC(e.y)}function UC(e,t,a){return e==="position"||e==="preserve-aspect"&&!UL(Nm(t),Nm(a),.2)}function G1(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var _C=Wd({attachResizeListener:(e,t)=>Ja(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Om={current:void 0},Gd=Wd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Om.current){let e=new _C({});e.mount(window),e.setOptions({layoutScroll:!0}),Om.current=e}return Om.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var zC={pan:{Feature:_d},drag:{Feature:Ud,ProjectionNode:Gd,MeasureLayout:zd}};function HC(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,er(t)))}var jd=class extends je{mount(){let{current:t}=this.node;t&&(this.unmount=em(t,a=>(HC(this.node,a,"Start"),r=>HC(this.node,r,"End"))))}unmount(){}};var Kd=class extends je{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=Ia(Ja(this.node.current,"focus",()=>this.onFocus()),Ja(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function qC(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,er(t)))}var $d=class extends je{mount(){let{current:t}=this.node;t&&(this.unmount=am(t,a=>(qC(this.node,a,"Start"),(r,{success:o})=>qC(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var Um=new WeakMap,Vm=new WeakMap,j1=e=>{let t=Um.get(e.target);t&&t(e)},K1=e=>{e.forEach(j1)};function $1({root:e,...t}){let a=e||document;Vm.has(a)||Vm.set(a,{});let r=Vm.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(K1,{root:e,...t})),r[o]}function WC(e,t,a){let r=$1(t);return Um.set(e,a),r.observe(e),()=>{Um.delete(e),r.unobserve(e)}}var X1={some:0,all:1},Xd=class extends je{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:X1[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 WC(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(Q1(t,a))&&this.startObserver()}unmount(){}};function Q1({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var GC={inView:{Feature:Xd},tap:{Feature:$d},focus:{Feature:Kd},hover:{Feature:jd}};var jC={layout:{ProjectionNode:Gd,MeasureLayout:zd}};var YC=N(K(),1);var Hi={current:null},Qd={current:!1};function KC(){if(Qd.current=!0,!!Pn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hi.current=e.matches;e.addListener(t),t()}else Hi.current=!1}var Y1=[...cm,Oe,mt],$C=e=>Y1.find(Ld(e));var _m=new WeakMap;function XC(e,t,a){for(let r in t){let o=t[r],n=a[r];if(ve(o))e.addValue(r,o);else if(ve(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 QC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Yd=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=qr,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=st.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=vo(a),this.isVariantNode=_u(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&&ve(L)&&L.set(l[g],!1)}}mount(t){this.current=t,_m.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||KC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Hi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_m.delete(this.current),this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(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=bt.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 $a){let a=$a[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):we()}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<QC.length;r++){let o=QC[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=XC(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"&&(vd(o)||gd(o))?o=parseFloat(o):!$C(o)&&mt.test(a)&&(o=yd(t,a)),this.setBaseTarget(t,ve(o)?o.get():o)),ve(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=Nn(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&&!ve(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 Ur),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}};var us=class extends Yd{constructor(){super(...arguments),this.KeyframeResolver=es}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;ve(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};function Z1(e){return window.getComputedStyle(e)}var Zd=class extends us{constructor(){super(...arguments),this.type="html",this.renderInstance=Xu}readValueFromInstance(t,a){if(bt.has(a)){let r=Jn(a);return r&&r.default||0}else{let r=Z1(t),o=(ju(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){On(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Hn(t,a,r)}};var Jd=class extends us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=we}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(bt.has(a)){let r=Jn(a);return r&&r.default||0}return a=Qu.has(a)?a:An(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return Ju(t,a,r)}build(t,a,r){Vn(t,a,this.isSVGTag,r.transformTemplate)}renderInstance(t,a,r,o){Yu(t,a,r,o)}mount(t){this.isSVGTag=_n(t.tagName),super.mount(t)}};var ZC=(e,t)=>Mn(e)?new Jd(t):new Zd(t,{allowProjection:e!==YC.Fragment});var JC=P0({...TL,...GC,...zC,...jC},ZC);var zm=Kv(JC);var qi=N(de(),1);function eS({x:e,y:t,visible:a,onClick:r=!1}){return(0,qi.jsx)(Wp,{children:a&&(0,qi.jsx)(zm.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,qi.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,qi.jsx)("path",{d:"M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z",fill:"#C4B5FD"})})})})}var ds=N(K(),1);function tS(){let[e,t]=ds.useState({x:0,y:0,visible:!1,onClick:!1}),a=ds.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=ds.useCallback(()=>{t(n=>({...n,visible:!1}))},[]),o=ds.useCallback(()=>{t(n=>({...n,visible:!0}))},[]);return{cursorState:e,moveTo:a,hide:r,show:o}}var cs=N(de(),1);function it({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card",className:Ft("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function wa({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card-header",className:Ft("@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,cs.jsx)("div",{"data-slot":"card-title",className:Ft("leading-none font-semibold",e),...t})}function Hm({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card-description",className:Ft("text-muted-foreground text-sm",e),...t})}function lt({className:e,...t}){return(0,cs.jsx)("div",{"data-slot":"card-content",className:Ft("px-6",e),...t})}var y=N(de(),1),qm=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),ec=(e,t="USD")=>new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e),Wm=e=>{switch(e){case"Enterprise":return mo;case"Professional":return Ci;default:return ci}},tc=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 Wi({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:Ge};case"failed":return{color:"bg-red-50 text-red-700 border-red-200",icon:la};case"pending":return{color:"bg-amber-50 text-amber-700 border-amber-200",icon:fo};case"refunded":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:Cn};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ia}}if(t==="subscription")switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:Ge};case"cancelled":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:la};case"past_due":return{color:"bg-red-50 text-red-700 border-red-200",icon:ia};case"trialing":return{color:"bg-blue-50 text-blue-700 border-blue-200",icon:fo};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ia}}switch(n){case"active":return{color:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:Ge};case"inactive":return{color:"bg-slate-50 text-slate-700 border-slate-200",icon:la};default:return{color:"bg-gray-50 text-gray-700 border-gray-200",icon:ia}}})(),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 J1({subscription:e}){let t=Wm(e.plan);return(0,y.jsxs)(it,{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)(wa,{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)(ka,{className:"text-base font-semibold text-gray-900 flex items-center gap-2",children:[(0,y.jsx)(po,{className:"h-4 w-4 text-gray-500"}),e.id]}),e.customer_email&&(0,y.jsxs)(Hm,{className:"text-sm text-gray-500 flex items-center gap-1.5",children:[(0,y.jsx)(vn,{className:"h-3 w-3"}),e.customer_email]})]}),(0,y.jsx)(Wi,{status:e.status,type:"subscription"})]})}),(0,y.jsx)(lt,{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 ${tc(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:[ec(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:[qm(e.current_period_start)," - ",qm(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:qm(e.created_at)})]})]})]})})]})}function eT({subscriptions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(po,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(po,{className:"h-4 w-4"}),e.length," Subscription",e.length!==1?"s":""]})}),(0,y.jsxs)(lt,{className:"p-0",children:[(0,y.jsx)("div",{className:"divide-y divide-gray-100",children:a.map(o=>{let n=Wm(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 ${tc(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 ",ec(o.amount,o.currency),"/",o.billing_cycle]})]})]}),(0,y.jsx)(Wi,{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 tT({customer:e}){let t=Wm(e.subscription);return(0,y.jsxs)(it,{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)(wa,{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)(ka,{className:"text-base font-semibold text-gray-900",children:e.name}),(0,y.jsxs)(Hm,{className:"text-sm text-gray-500 flex items-center gap-1",children:[(0,y.jsx)(vn,{className:"h-3 w-3"}),e.email]})]})}),(0,y.jsx)(Wi,{status:e.status,type:"customer"})]})}),(0,y.jsx)(lt,{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 ${tc(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)(ho,{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)(Ln,{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)(pi,{className:"h-3 w-3 text-gray-400"}),e.joinDate]})]})]})]})})]})}function aT({customers:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(In,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(In,{className:"h-4 w-4"}),e.length," Customer",e.length!==1?"s":""]})}),(0,y.jsxs)(lt,{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 ${tc(o.subscription)}`,children:o.subscription}),(0,y.jsx)(Wi,{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 aS({transactions:e,maxItems:t=5}){let a=e.slice(0,t),r=e.length>t;return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(ho,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(ho,{className:"h-4 w-4"}),e.length," Transaction",e.length!==1?"s":""]})}),(0,y.jsxs)(lt,{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)(Ge,{className:"h-4 w-4 text-emerald-600"}):o.status==="failed"?(0,y.jsx)(la,{className:"h-4 w-4 text-red-600"}):o.status==="refunded"?(0,y.jsx)(Cn,{className:"h-4 w-4 text-slate-600"}):(0,y.jsx)(fo,{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)(Wi,{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 rT({apiKeys:e}){return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{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 API keys found"})]})}):(0,y.jsxs)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{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," API Key",e.length!==1?"s":""]})}),(0,y.jsx)(lt,{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 oT({sessions:e}){let t=a=>{let r=a.toLowerCase();return r.includes("mobile")||r.includes("iphone")||r.includes("android")?vi:xi};return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(Sn,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Sn,{className:"h-4 w-4"}),e.length," Active Session",e.length!==1?"s":""]})}),(0,y.jsx)(lt,{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)(Ln,{className:"h-3 w-3"}),a.location]})]})]}),(0,y.jsx)("div",{className:"text-xs text-gray-500",children:a.time})]})},r)})})})]})}function nT({stats:e}){return(0,y.jsxs)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(Li,{className:"h-4 w-4"}),"Dashboard Overview"]})}),(0,y.jsx)(lt,{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:ec(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 sT({customers:e}){return e.length===0?(0,y.jsx)(it,{className:"border-gray-200 shadow-sm bg-white",children:(0,y.jsxs)(lt,{className:"py-8 text-center",children:[(0,y.jsx)(mo,{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)(it,{className:"border-gray-200 shadow-sm bg-white overflow-hidden",children:[(0,y.jsx)(wa,{className:"pb-2 border-b border-gray-100",children:(0,y.jsxs)(ka,{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[(0,y.jsx)(mo,{className:"h-4 w-4 text-amber-500"}),"Top Customers"]})}),(0,y.jsx)(lt,{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"?ec(t.revenue):t.revenue})]})},a))})})]})}function rS({type:e,data:t}){if(!t)return null;switch(e){case"subscription":return(0,y.jsx)(J1,{subscription:t});case"subscriptions":let a=t.subscriptions||t||[];return(0,y.jsx)(eT,{subscriptions:Array.isArray(a)?a:[a]});case"customer":return(0,y.jsx)(tT,{customer:t.customer||t});case"customers":let r=t.customers||t||[];return(0,y.jsx)(aT,{customers:Array.isArray(r)?r:[r]});case"transactions":let o=t.transactions||t||[];return(0,y.jsx)(aS,{transactions:Array.isArray(o)?o:[o]});case"transaction":return(0,y.jsx)(aS,{transactions:[t],maxItems:1});case"dashboard_stats":return(0,y.jsx)(nT,{stats:t});case"top_customers":let n=t.customers||t||[];return(0,y.jsx)(sT,{customers:Array.isArray(n)?n:[n]});case"api_keys":let s=t.api_keys||t||[];return(0,y.jsx)(rT,{apiKeys:Array.isArray(s)?s:[s]});case"sessions":let i=t.sessions||t||[];return(0,y.jsx)(oT,{sessions:Array.isArray(i)?i:[i]});default:return null}}var p=N(de(),1),iT="http://localhost:5002",jm=340;function lT(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 C=c.match(/^\*([^*]+)\*/);if(C){d.push((0,p.jsx)("em",{children:C[1]},f++)),c=c.slice(C[0].length);continue}let k=c.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(k){d.push((0,p.jsx)("a",{href:k[2],className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",children:k[1]},f++)),c=c.slice(k[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,C=i(c[2]),k=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:k,children:C},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 uT=[{id:"changing-layouts",label:"Changing layouts",prompt:"How do I change the layout of my profiles or folders?",icon:"layout"},{id:"bulk-uploads",label:"Bulk uploads",prompt:"How do I bulk upload profiles using a CSV file?",icon:"upload"},{id:"example-setups",label:"Example setups",prompt:"Can you show me some example folder setups?",icon:"setup"}],oS=[{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?"}]}],Gm={"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}}]}},dT=[];function cT({isOpen:e=!0,onClose:t,onBack:a,onNavigate:r,onActionComplete:o,currentPage:n,agentUrl:s=iT,startingQuestions:i,startingQuestionsEndpoint:l}={}){let[u,d]=$.useState(dT),[c,f]=$.useState(""),[g,L]=$.useState(()=>crypto.randomUUID()),C=$.useCallback(()=>{L(crypto.randomUUID())},[]),k=$.useRef({}),h=u.length===0,[m,x]=$.useState("idle"),[w,S]=$.useState([]),P=$.useRef([]),D=u.length?u[u.length-1].role:void 0,[A,V]=$.useState("landing"),[U,ie]=$.useState(void 0),[ue,Kr]=$.useState(i||uT),[Pa,Ro]=$.useState(!1);$.useEffect(()=>{l&&!i&&(Ro(!0),fetch(l).then(v=>v.json()).then(v=>{Array.isArray(v)&&v.length>0&&Kr(v)}).catch(v=>{console.warn("[KiteChat] Failed to fetch starting questions:",v)}).finally(()=>Ro(!1)))},[l,i]),$.useEffect(()=>{i&&Kr(i)},[i]);let[se,ge]=$.useState(void 0),re=$.useRef(void 0),Ht=$.useRef(null),[qt,ht]=$.useState(!1);$.useEffect(()=>{window.resetIntegrationNotification=()=>{localStorage.removeItem("gmailNotificationSeen"),console.log("Integration notification reset! Click the Integrations tab to see it again.")};let v=()=>{if(!localStorage.getItem("gmailNotificationSeen")){V("landing"),ie(void 0);let _=Date.now(),E="I see you're exploring integrations. Let me know if there are any other connections we should add.",F={id:_,role:"assistant",kind:"text",content:"",isNotificationMessage:!0};d(Z=>[...Z,F]),Ta(_,E),localStorage.setItem("gmailNotificationSeen","true")}};return window.addEventListener("integrationTabClicked",v),()=>{window.removeEventListener("integrationTabClicked",v)}},[]),$.useEffect(()=>{se?(!re.current||re.current.id!==se.id||re.current.stepIndex!==se.stepIndex)&&(re.current=se):re.current=void 0},[se]);let[ps,Gi]=$.useState(null),[ze,ac]=$.useState(null),[te,ae]=$.useState({}),Xm=$.useRef(null),rc=$.useRef(null),ji=$.useRef(null),{cursorState:Ki,moveTo:$r,hide:Do}=tS(),[Xr,oc]=$.useState(null),[Qm,ar]=$.useState(null),nc=$.useRef(null),Mo=$.useRef(null);$.useEffect(()=>{if(!se||se.id!=="add-api-key"||se.stepIndex!==2)return;let b=setInterval(()=>{let _=document.querySelector('[role="dialog"]'),E=re.current;if(_&&E&&E.id==="add-api-key"&&E.stepIndex===2){Do();let F=Date.now()+1;d(Z=>[...Z,{id:F,role:"assistant",kind:"guideComplete",content:"Perfect! The dialog is now open. You can enter a name and create your API key."}]),ge(void 0),ht(!0)}},300);return()=>clearInterval(b)},[se,Do]),$.useEffect(()=>()=>{Object.values(k.current).forEach(v=>window.clearInterval(v)),k.current={},P.current.forEach(v=>window.clearTimeout(v)),P.current=[]},[]),$.useEffect(()=>{if(se&&u.length>0){let v=u[u.length-1];if((v.kind==="guideStep"||v.kind==="guideComplete")&&ji.current&&rc.current){let b=rc.current,_=ji.current,E=b.getBoundingClientRect(),Z=_.getBoundingClientRect().top-E.top+b.scrollTop;b.scrollTop=Z}}else!se&&u.length>0&&Xm.current?.scrollIntoView({behavior:"smooth"})},[u,m,se]);let Ym=$.useMemo(()=>{for(let v=u.length-1;v>=0;v--){let b=u[v];if(b.kind==="bulkSummary"&&b.bulkSummary?.navigationPage&&b.bulkSummary.successes>0)return b.bulkSummary.navigationPage}return null},[u]);$.useEffect(()=>{Ht.current=Ym},[Ym]),$.useEffect(()=>{nc.current=Qm},[Qm]),$.useEffect(()=>{let v=b=>{if((b.metaKey||b.ctrlKey)&&b.key==="Enter"){let _=nc.current;if(_){b.preventDefault(),b.stopPropagation(),uc(_);return}if(ze){b.preventDefault(),b.stopPropagation(),ic();return}if(ps){b.preventDefault(),b.stopPropagation(),sc(ps);return}let E=Ht.current;if(console.log("[DEBUG] Keyboard handler - latestBulkSummaryNavigation:",E,"onNavigate:",!!r),E&&r){console.log("[DEBUG] Navigating via keyboard to:",E.page),b.preventDefault(),b.stopPropagation(),r(E.page,E.subtab);return}if(qt){b.preventDefault(),b.stopPropagation(),Zm();return}if(re.current){b.preventDefault(),b.stopPropagation(),dc();return}}};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[ze,ps,se,qt,r]);function Ta(v,b,_){let E=b,F=_;if(b&&b.startsWith("{")&&b.includes('"response"'))try{let M=0,I=0;for(let G=0;G<b.length;G++)if(b[G]==="{")M++;else if(b[G]==="}"&&(M--,M===0)){I=G+1;break}let j=I>0?b.slice(0,I):b,J=JSON.parse(j);J.response&&typeof J.response=="string"&&(E=J.response,!F&&J.followups&&(F=J.followups))}catch{}let Z=E.split(" "),X=0,T=window.setInterval(()=>{X+=1,d(M=>M.map(I=>I.id===v?{...I,content:Z.slice(0,X).join(" ")}:I)),X>=Z.length&&(window.clearInterval(T),delete k.current[v],F&&F.length>0&&d(M=>M.map(I=>I.id===v?{...I,followups:F}:I)),x("idle"))},25);k.current[v]=T}function iS(v,b){d(_=>_.map(E=>E.id===v?{...E,followupSelected:!0}:E)),lc(b.label)}function Zm(){Object.values(k.current).forEach(v=>window.clearInterval(v)),k.current={},P.current.forEach(v=>window.clearTimeout(v)),P.current=[],Do(),C(),d([]),f(""),x("idle"),V("landing"),ie(void 0),ge(void 0),ht(!1),Gi(null),ac(null),ae({}),a&&a()}function xT(v){V("folder"),ie(v)}function lS(){V("landing"),ie(void 0)}function uS(v){v.preventDefault();let b=c.trim();if(Xr){if(!b){let _={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'."};d(E=>[...E,_]);return}cS(b,Xr),f(""),oc(null),Mo.current&&(Mo.current.value="");return}b&&(lc(b),f(""))}function dS(v){let b={dashboard:"dashboard",customers:"customers page",payments:"payments page",settings:"settings page",support:"support page",disputes:"disputes page",radar:"radar page"};if(v.page==="settings"&&v.subtab){let _={general:"General",billing:"Billing",security:"Security",api:"API Keys",notifications:"Notifications",integrations:"Integrations"};return`${b.settings} (${_[v.subtab]} tab)`}return b[v.page]}function sc(v){r&&r(v.page,v.subtab),Gi(null),d(b=>b.map(_=>_.kind==="navigationAction"&&_.navigationTarget?.page===v.page&&_.navigationTarget?.subtab===v.subtab?{..._,navigationTarget:void 0}:_))}function ic(){if(!ze)return;let v=te;if(ze.type!=="updateCompanyInfo"){if(ze.type==="addApiKey"){let b=v;if(!b.name||!b.name.trim())return}else if(ze.type==="addCustomer"){let b=v;if(!b.name||!b.name.trim()||!b.email||!b.email.trim())return}else if(ze.type==="changePassword"){let b=v;if(!b.currentPassword||!b.newPassword||!b.confirmPassword||b.newPassword!==b.confirmPassword)return}else if(ze.type==="addWebhook"){let b=v;if(!b.url||!b.url.trim())return}else if(ze.type==="addPaymentMethod"){let b=v;if(!b.cardNumber||!b.expiryDate)return}else if(ze.type==="deleteApiKey"){let b=v;if(!b.keyId&&!b.name)return}else if(ze.type==="refundPayment"){let b=v;if(!b.transactionId&&!b.customer)return}else if(ze.type==="createSubscription"){let b=v;if(!b.customerEmail&&!b.customerId)return}else if((ze.type==="toggleBlockRule"||ze.type==="enableBlockRule"||ze.type==="disableBlockRule")&&!v.ruleId)return}o&&o(ze.type,v),d(b=>b.map(_=>_.kind==="actionForm"&&_.actionType===ze.type?{..._,isSubmitted:!0}:_)),ac(null),ae({})}async function lc(v){P.current.forEach(X=>window.clearTimeout(X)),P.current=[];let _=[...u].reverse().find(X=>X.role==="assistant")?.isNotificationMessage===!0,E=Date.now(),F={id:E,role:"user",content:v};if(d(X=>[...X,F]),_){let X=Date.now()+1,T={id:X,role:"assistant",kind:"text",content:""};d(M=>[...M,T]),Ta(X,"Thank you, your feedback is saved.");return}Gi(null),x("thinking"),S([]);let Z=!1;try{let X=new AbortController,T=setTimeout(()=>X.abort(),6e4),M=await fetch(`${s}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:g,message:v,current_page:n||"dashboard"}),signal:X.signal});if(clearTimeout(T),!M.ok)throw new Error(`Agent request failed: ${M.status}`);let I=M.body?.getReader();if(!I)throw new Error("No response body");let j=new TextDecoder,J="";for(;;){let{done:G,value:fe}=await I.read();if(G)break;J+=j.decode(fe,{stream:!0});let He=J.split(`
19
19
 
20
- `);ee=He.pop()||"";for(let Je of He){if(!Je.trim())continue;let Aa=Je.split(`
21
- `),et="",Qt="";for(let W of Aa)W.startsWith("event: ")?et=W.slice(7):W.startsWith("data: ")&&(Qt=W.slice(6));if(!(!et||!Qt))try{let W=JSON.parse(Qt);if(et==="progress")W.status==="thinking"?(S("thinking"),P([{message:W.message,completed:!1}])):W.status==="executing"?(S("executing"),P(z=>{let ne=z.map(gt=>({...gt,completed:!0})),pe=ne[ne.length-1];return(!pe||pe.message!==W.message)&&ne.push({message:W.message,completed:!1}),ne})):W.status==="responding"&&(S("responding"),P(z=>z.map(ne=>({...ne,completed:!0}))));else if(et==="response"){P([]),J=!0;let z=W;if(z.action==="navigate"&&z.navigation){let ne={page:z.navigation.page,subtab:z.navigation.subtab};ji(ne);let pe={id:F+1,role:"assistant",kind:"navigationAction",content:z.response||`I can take you to the ${mS(ne)}.`,navigationTarget:ne};c(gt=>[...gt,pe]),S("idle")}else if(z.action==="show_form"&&z.actionType){nc({type:z.actionType,data:z.actionData||{}}),oe(z.actionData||{});let ne={id:F+1,role:"assistant",kind:"actionForm",content:z.response||z.message||"Please fill in the details below:",actionType:z.actionType,actionData:z.actionData||{}};c(pe=>[...pe,ne]),S("idle")}else if(z.action==="suggest_bulk"){let ne=F+1,pe={id:ne,role:"assistant",kind:"text",content:""};c(gt=>[...gt,pe]),Ta(ne,z.response||z.message||"For bulk operations, you can upload a CSV file - just click the \u{1F4CE} button!",z.followups),J=!0}else if(z.action==="bulk_preview"){rr(z.bulk_session_id);let ne={id:F+1,role:"assistant",kind:"bulkPreview",content:z.message||`I found ${z.csv_data?.rowCount||0} items. Here's a preview:`,csvData:z.csv_data?{rowCount:z.csv_data.rowCount,columns:z.csv_data.columns,sampleRows:z.csv_data.sampleRows,fileName:"From context"}:void 0,suggestedAction:z.suggested_action,bulkSessionId:z.bulk_session_id};c(pe=>[...pe,ne]),S("idle"),J=!0}else if(z.action==="execute"&&z.executionResult){let ne=F+1,pe={id:ne,role:"assistant",kind:"text",content:"",structuredData:z.structuredData||void 0};c(gt=>[...gt,pe]),Ta(ne,z.response,z.followups),J=!0,setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:z.executionResult}}))},100)}else{let ne=F+1,pe={id:ne,role:"assistant",kind:"text",content:""};c(gt=>[...gt,pe]),Ta(ne,z.response,z.followups),J=!0}}else if(et==="error"){S("idle"),P([]),J=!0;let z=F+1,ne={id:z,role:"assistant",kind:"text",content:""};c(pe=>[...pe,ne]),Ta(z,W.message||"An error occurred processing your request.")}else et==="done"&&(P([]),S("idle"),J=!0)}catch(W){console.error("Failed to parse SSE event:",W)}}}P([]),J||S("idle")}catch(Q){console.error("Agent request failed:",Q),P([]);let T=F+1,M={id:T,role:"assistant",kind:"text",content:""};c($=>[...$,M]);let I="I'm having trouble connecting to my backend.";Q instanceof Error&&(Q.name==="AbortError"?I="The request timed out. The server might be busy - please try again.":Q.message.includes("Failed to fetch")||Q.message.includes("NetworkError")?I="I'm having trouble connecting to my backend. Please make sure the agent server is running on port 5002.":Q.message.includes("Agent request failed:")&&(I="The server encountered an error. Please try again.")),I+=" For simple navigation requests, I can still help you locally.",Ta(T,I)}finally{P([])}}async function hS(v,b){D.current.forEach(B=>window.clearTimeout(B)),D.current=[];let _=Date.now(),F={id:_,role:"user",content:`\u{1F4CE} ${b.name}
20
+ `);J=He.pop()||"";for(let Je of He){if(!Je.trim())continue;let Aa=Je.split(`
21
+ `),et="",Zt="";for(let W of Aa)W.startsWith("event: ")?et=W.slice(7):W.startsWith("data: ")&&(Zt=W.slice(6));if(!(!et||!Zt))try{let W=JSON.parse(Zt);if(et==="progress")W.status==="thinking"?(x("thinking"),S([{message:W.message,completed:!1}])):W.status==="executing"?(x("executing"),S(z=>{let oe=z.map(gt=>({...gt,completed:!0})),pe=oe[oe.length-1];return(!pe||pe.message!==W.message)&&oe.push({message:W.message,completed:!1}),oe})):W.status==="responding"&&(x("responding"),S(z=>z.map(oe=>({...oe,completed:!0}))));else if(et==="response"){S([]),Z=!0;let z=W;if(z.action==="navigate"&&z.navigation){let oe={page:z.navigation.page,subtab:z.navigation.subtab};Gi(oe);let pe={id:E+1,role:"assistant",kind:"navigationAction",content:z.response||`I can take you to the ${dS(oe)}.`,navigationTarget:oe};d(gt=>[...gt,pe]),x("idle")}else if(z.action==="show_form"&&z.actionType){ac({type:z.actionType,data:z.actionData||{}}),ae(z.actionData||{});let oe={id:E+1,role:"assistant",kind:"actionForm",content:z.response||z.message||"Please fill in the details below:",actionType:z.actionType,actionData:z.actionData||{}};d(pe=>[...pe,oe]),x("idle")}else if(z.action==="suggest_bulk"){let oe=E+1,pe={id:oe,role:"assistant",kind:"text",content:""};d(gt=>[...gt,pe]),Ta(oe,z.response||z.message||"For bulk operations, you can upload a CSV file - just click the \u{1F4CE} button!",z.followups),Z=!0}else if(z.action==="bulk_preview"){ar(z.bulk_session_id);let oe={id:E+1,role:"assistant",kind:"bulkPreview",content:z.message||`I found ${z.csv_data?.rowCount||0} items. Here's a preview:`,csvData:z.csv_data?{rowCount:z.csv_data.rowCount,columns:z.csv_data.columns,sampleRows:z.csv_data.sampleRows,fileName:"From context"}:void 0,suggestedAction:z.suggested_action,bulkSessionId:z.bulk_session_id};d(pe=>[...pe,oe]),x("idle"),Z=!0}else if(z.action==="execute"&&z.executionResult){let oe=E+1,pe={id:oe,role:"assistant",kind:"text",content:"",structuredData:z.structuredData||void 0};d(gt=>[...gt,pe]),Ta(oe,z.response,z.followups),Z=!0,setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:z.executionResult}}))},100)}else{let oe=E+1,pe={id:oe,role:"assistant",kind:"text",content:""};d(gt=>[...gt,pe]),Ta(oe,z.response,z.followups),Z=!0}}else if(et==="error"){x("idle"),S([]),Z=!0;let z=E+1,oe={id:z,role:"assistant",kind:"text",content:""};d(pe=>[...pe,oe]),Ta(z,W.message||"An error occurred processing your request.")}else et==="done"&&(S([]),x("idle"),Z=!0)}catch(W){console.error("Failed to parse SSE event:",W)}}}S([]),Z||x("idle")}catch(X){console.error("Agent request failed:",X),S([]);let T=E+1,M={id:T,role:"assistant",kind:"text",content:""};d(j=>[...j,M]);let I="I'm having trouble connecting to my backend.";X instanceof Error&&(X.name==="AbortError"?I="The request timed out. The server might be busy - please try again.":X.message.includes("Failed to fetch")||X.message.includes("NetworkError")?I="I'm having trouble connecting to my backend. Please make sure the agent server is running on port 5002.":X.message.includes("Agent request failed:")&&(I="The server encountered an error. Please try again.")),I+=" For simple navigation requests, I can still help you locally.",Ta(T,I)}finally{S([])}}async function cS(v,b){P.current.forEach(F=>window.clearTimeout(F)),P.current=[];let _=Date.now(),E={id:_,role:"user",content:`\u{1F4CE} ${b.name}
22
22
 
23
- ${v}`};c(B=>[...B,F]),S("thinking"),P([{message:"Analyzing CSV file...",completed:!1}]);try{let B=new FormData;B.append("file",b),B.append("message",v),B.append("session_id",L),B.append("current_page",s||"dashboard");let J=new AbortController,Q=setTimeout(()=>J.abort(),12e4),T=await fetch(`${i}/chat/bulk/stream`,{method:"POST",body:B,signal:J.signal});if(clearTimeout(Q),!T.ok)throw new Error(`Bulk upload failed: ${T.status}`);let M=T.body?.getReader();if(!M)throw new Error("No response body");let I=new TextDecoder,$="",ee=null;for(;;){let{done:j,value:fe}=await M.read();if(j)break;$+=I.decode(fe,{stream:!0});let He=$.split(`
23
+ ${v}`};d(F=>[...F,E]),x("thinking"),S([{message:"Analyzing CSV file...",completed:!1}]);try{let F=new FormData;F.append("file",b),F.append("message",v),F.append("session_id",g),F.append("current_page",n||"dashboard");let Z=new AbortController,X=setTimeout(()=>Z.abort(),12e4),T=await fetch(`${s}/chat/bulk/stream`,{method:"POST",body:F,signal:Z.signal});if(clearTimeout(X),!T.ok)throw new Error(`Bulk upload failed: ${T.status}`);let M=T.body?.getReader();if(!M)throw new Error("No response body");let I=new TextDecoder,j="",J=null;for(;;){let{done:G,value:fe}=await M.read();if(G)break;j+=I.decode(fe,{stream:!0});let He=j.split(`
24
24
 
25
- `);$=He.pop()||"";for(let Je of He){if(!Je.trim())continue;let Aa=Je.split(`
26
- `),et="",Qt="";for(let W of Aa)W.startsWith("event: ")?et=W.slice(7):W.startsWith("data: ")&&(Qt=W.slice(6));if(!(!et||!Qt))try{let W=JSON.parse(Qt);if(et==="preview"){S("idle"),P([]),ee=W.bulk_session_id,rr(ee);let z={id:_+1,role:"assistant",kind:"bulkPreview",content:W.message||`I found ${W.csv_data.rowCount} rows in your CSV. Here's a preview:`,csvData:{rowCount:W.csv_data.rowCount,columns:W.csv_data.columns,sampleRows:W.csv_data.sampleRows,fileName:b.name},suggestedAction:W.suggested_action,bulkSessionId:ee||void 0};c(ne=>[...ne,z])}else if(et==="progress")S("executing"),P([{message:`Processing row ${W.row} of ${W.total}...`,completed:!1}]),c(z=>z[z.length-1]?.kind==="bulkProgress"?z.map((pe,gt)=>gt===z.length-1?{...pe,bulkProgress:{processed:W.row,total:W.total,successes:W.successes||0,failures:W.failures||0}}:pe):[...z,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:W.row,total:W.total,successes:W.successes||0,failures:W.failures||0}}]);else if(et==="summary")S("idle"),P([]),rr(null),c(z=>[...z.filter(pe=>pe.kind!=="bulkProgress"),{id:Date.now(),role:"assistant",kind:"bulkSummary",content:W.message,bulkSummary:{total:W.total,successes:W.successes,failures:W.failures||[],navigationPage:W.navigationPage}}]),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:W.total,successes:W.successes}}}))},100);else if(et==="error"){S("idle"),P([]),rr(null);let z={id:_+1,role:"assistant",kind:"text",content:W.message||"An error occurred processing your CSV file."};c(ne=>[...ne,z])}else et==="done"&&(S("idle"),P([]))}catch(W){console.error("Failed to parse bulk SSE event:",W)}}}P([]),S("idle")}catch(B){console.error("Bulk upload failed:",B),P([]),S("idle");let J="I'm having trouble processing your CSV file.";B instanceof Error&&(B.name==="AbortError"?J="The bulk upload request timed out. The file might be too large or the server is busy - please try again.":B.message.includes("Failed to fetch")||B.message.includes("NetworkError")?J="I'm having trouble connecting to my backend. Please make sure the agent server is running on port 5002.":B.message.includes("Bulk upload failed:")&&(J="The server encountered an error processing your CSV file. Please try again.")),J+=" Please try again.";let Q={id:_+1,role:"assistant",kind:"text",content:J};c(T=>[...T,Q])}}async function cc(v){S("executing"),P([{message:"Starting bulk operation...",completed:!1}]);try{let b=await fetch(`${i}/chat/bulk/confirm`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bulk_session_id:v})});if(!b.ok)throw new Error(`Confirm failed: ${b.status}`);let _=b.body?.getReader();if(!_)throw new Error("No response body");let F=new TextDecoder,B="";for(;;){let{done:J,value:Q}=await _.read();if(J)break;B+=F.decode(Q,{stream:!0});let T=B.split(`
25
+ `);j=He.pop()||"";for(let Je of He){if(!Je.trim())continue;let Aa=Je.split(`
26
+ `),et="",Zt="";for(let W of Aa)W.startsWith("event: ")?et=W.slice(7):W.startsWith("data: ")&&(Zt=W.slice(6));if(!(!et||!Zt))try{let W=JSON.parse(Zt);if(et==="preview"){x("idle"),S([]),J=W.bulk_session_id,ar(J);let z={id:_+1,role:"assistant",kind:"bulkPreview",content:W.message||`I found ${W.csv_data.rowCount} rows in your CSV. Here's a preview:`,csvData:{rowCount:W.csv_data.rowCount,columns:W.csv_data.columns,sampleRows:W.csv_data.sampleRows,fileName:b.name},suggestedAction:W.suggested_action,bulkSessionId:J||void 0};d(oe=>[...oe,z])}else if(et==="progress")x("executing"),S([{message:`Processing row ${W.row} of ${W.total}...`,completed:!1}]),d(z=>z[z.length-1]?.kind==="bulkProgress"?z.map((pe,gt)=>gt===z.length-1?{...pe,bulkProgress:{processed:W.row,total:W.total,successes:W.successes||0,failures:W.failures||0}}:pe):[...z,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:W.row,total:W.total,successes:W.successes||0,failures:W.failures||0}}]);else if(et==="summary")x("idle"),S([]),ar(null),d(z=>[...z.filter(pe=>pe.kind!=="bulkProgress"),{id:Date.now(),role:"assistant",kind:"bulkSummary",content:W.message,bulkSummary:{total:W.total,successes:W.successes,failures:W.failures||[],navigationPage:W.navigationPage}}]),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:W.total,successes:W.successes}}}))},100);else if(et==="error"){x("idle"),S([]),ar(null);let z={id:_+1,role:"assistant",kind:"text",content:W.message||"An error occurred processing your CSV file."};d(oe=>[...oe,z])}else et==="done"&&(x("idle"),S([]))}catch(W){console.error("Failed to parse bulk SSE event:",W)}}}S([]),x("idle")}catch(F){console.error("Bulk upload failed:",F),S([]),x("idle");let Z="I'm having trouble processing your CSV file.";F instanceof Error&&(F.name==="AbortError"?Z="The bulk upload request timed out. The file might be too large or the server is busy - please try again.":F.message.includes("Failed to fetch")||F.message.includes("NetworkError")?Z="I'm having trouble connecting to my backend. Please make sure the agent server is running on port 5002.":F.message.includes("Bulk upload failed:")&&(Z="The server encountered an error processing your CSV file. Please try again.")),Z+=" Please try again.";let X={id:_+1,role:"assistant",kind:"text",content:Z};d(T=>[...T,X])}}async function uc(v){x("executing"),S([{message:"Starting bulk operation...",completed:!1}]);try{let b=await fetch(`${s}/chat/bulk/confirm`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bulk_session_id:v})});if(!b.ok)throw new Error(`Confirm failed: ${b.status}`);let _=b.body?.getReader();if(!_)throw new Error("No response body");let E=new TextDecoder,F="";for(;;){let{done:Z,value:X}=await _.read();if(Z)break;F+=E.decode(X,{stream:!0});let T=F.split(`
27
27
 
28
- `);B=T.pop()||"";for(let M of T){if(!M.trim())continue;let I=M.split(`
29
- `),$="",ee="";for(let j of I)j.startsWith("event: ")?$=j.slice(7):j.startsWith("data: ")&&(ee=j.slice(6));if(!(!$||!ee))try{let j=JSON.parse(ee);if($==="progress")P([{message:`Processing row ${j.row} of ${j.total}...`,completed:!1}]),c(fe=>fe[fe.length-1]?.kind==="bulkProgress"?fe.map((Je,Aa)=>Aa===fe.length-1?{...Je,bulkProgress:{processed:j.row,total:j.total,successes:j.successes||0,failures:j.failures||0}}:Je):[...fe,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:j.row,total:j.total,successes:j.successes||0,failures:j.failures||0}}]);else if($==="summary")console.log("[DEBUG] Received summary event - data:",j),console.log("[DEBUG] navigationPage from backend:",j.navigationPage),S("idle"),P([]),rr(null),c(fe=>{let He=fe.filter(Aa=>Aa.kind!=="bulkProgress"&&Aa.kind!=="bulkPreview"),Je={id:Date.now(),role:"assistant",kind:"bulkSummary",content:j.message,bulkSummary:{total:j.total,successes:j.successes,failures:j.failures||[],navigationPage:j.navigationPage}};return console.log("[DEBUG] Creating bulkSummary message:",Je),[...He,Je]}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:j.total,successes:j.successes}}}))},100);else if($==="error"){S("idle"),P([]),rr(null);let fe={id:Date.now(),role:"assistant",kind:"text",content:j.message||"An error occurred during bulk processing."};c(He=>[...He,fe])}}catch(j){console.error("Failed to parse confirm SSE event:",j)}}}}catch(b){console.error("Bulk confirm failed:",b),S("idle"),P([]),rr(null);let _={id:Date.now(),role:"assistant",kind:"text",content:"Failed to start bulk operation. Please try again."};c(F=>[...F,_])}}function gS(){rr(null),c(v=>v.filter(b=>b.kind!=="bulkPreview"))}function ah(v){Qi(v)}function xS(v){let b=Date.now()+Math.floor(Math.random()*1e3);c(_=>[..._,{id:b,role:"assistant",kind:"text",content:v}])}function vT(v){let b=Km[v];if(!b)return;E("landing"),te(void 0);let _={id:v,stepIndex:0};De(_),ue.current=_,xS(`I'll help you with ${b.title}.`);let F=b.steps[0],B=F.cursorTarget?.selector.includes("[data-page="),J=F.cursorTarget?.selector.includes("[data-settings-tab=");if(F.cursorTarget&&(B||J)){let T=F.cursorTarget;J&&F.navigation&&o&&o(F.navigation.page,void 0),setTimeout(()=>{let I=()=>{let $=document.querySelector(T.selector);$&&$.offsetParent!==null?(Kr(T),T.onClick&&setTimeout(()=>{$.click()},1200)):setTimeout(I,200)};I()},J?800:400)}else if(F.navigation&&o&&o(F.navigation.page,F.navigation.subtab),F.cursorTarget){let T=F.cursorTarget,M=T.selector.includes("data-settings-tab"),I=T.selector.includes("dialog")||T.selector.includes("api-key-name-input");setTimeout(()=>{let ee=()=>{let j=document.querySelector(T.selector);j&&j.offsetParent!==null?(Kr(T),T.onClick&&setTimeout(()=>{j.click()},1e3)):M||I?setTimeout(ee,200):(Kr(T),T.onClick&&setTimeout(()=>{let fe=document.querySelector(T.selector);fe&&fe.click()},1e3))};ee()},I?700:M?600:400)}let Q={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:0};c(T=>[...T,Q]),Ta(Q.id,F.text)}function fc(){if(!K)return;let v=Km[K.id];if(!v)return;let b=ue.current;(!b||b.id!==K.id)&&(b=K,ue.current=K);let F=b.stepIndex+1;if(F>=v.steps.length){Ro();let I=Date.now()+1;c($=>[...$,{id:I,role:"assistant",kind:"guideComplete",content:"Guide Complete"}]),De(void 0),Gi(!0);return}let B=v.steps[F],J={id:K.id,stepIndex:F};De(J),ue.current=J;let Q={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:F};c(I=>[...I,Q]);let T=B.cursorTarget?.selector.includes("[data-page="),M=B.cursorTarget?.selector.includes("[data-settings-tab=");if(B.cursorTarget&&(T||M)){let I=B.cursorTarget;M&&B.navigation&&o&&o(B.navigation.page,void 0),setTimeout(()=>{let ee=ue.current;if(!ee||ee.id!==v.id||ee.stepIndex!==F)return;let j=()=>{let fe=ue.current;if(!fe||fe.id!==v.id||fe.stepIndex!==F)return;let He=document.querySelector(I.selector);He&&He.offsetParent!==null?(Kr(I),I.onClick&&setTimeout(()=>{let Je=ue.current;!Je||Je.id!==v.id||Je.stepIndex!==F||He.click()},1200)):setTimeout(j,200)};j()},M?800:400)}else if(B.navigation&&o&&o(B.navigation.page,B.navigation.subtab),B.cursorTarget){let I=B.cursorTarget,$=I.selector.includes("dialog")||I.selector.includes("api-key-name-input"),ee=I.selector.includes("data-settings-tab"),j=B.navigation?.subtab&&ee&&I.selector.includes(`data-settings-tab="${B.navigation.subtab}"`),fe=I.onClick&&!j,He=!!B.navigation,et=(!!B.navigation?.subtab?700:He?400:0)+($?700:ee?600:400);setTimeout(()=>{let Qt=ue.current;if(!Qt||Qt.id!==v.id||Qt.stepIndex!==F)return;let W=()=>{let z=ue.current;if(!z||z.id!==v.id||z.stepIndex!==F)return;let ne=document.querySelector(I.selector);ne&&ne.offsetParent!==null?(Kr(I),fe&&setTimeout(()=>{let pe=ue.current;!pe||pe.id!==v.id||pe.stepIndex!==F||ne.click()},1e3)):$||ee||I.selector.includes("data-testid")?setTimeout(W,200):(Kr(I),fe&&setTimeout(()=>{let pe=ue.current;if(!pe||pe.id!==v.id||pe.stepIndex!==F)return;let gt=document.querySelector(I.selector);gt&&gt.click()},1e3))};W()},et)}else Ro();Ta(Q.id,B.text)}function yS(){if(!K)return;let v=Km[K.id];if(!v)return;let b=K.stepIndex-1;if(b>=0){De({id:K.id,stepIndex:b});let _=v.steps[b];_.navigation&&o&&o(_.navigation.page,_.navigation.subtab),_.cursorTarget?setTimeout(()=>{Kr(_.cursorTarget)},500):Ro();let F=d.filter(B=>B.kind!=="guideStep"&&B.kind!=="guideComplete");c([...F,{id:Date.now(),role:"assistant",kind:"guideStep",content:_.text}])}}return e?(0,f.jsxs)("section",{className:`fixed top-0 right-0 z-40 flex flex-col bg-white border-l border-gray-200 h-full overflow-hidden transition-transform duration-300 ${e?"translate-x-0":"translate-x-full"}`,style:{width:`${lS}px`},children:[(0,f.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 shrink-0",children:[(0,f.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,f.jsx)(xa,{className:"h-3.5 w-3.5 text-black",fill:"currentColor"}),(0,f.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:"Copilot"})]}),(0,f.jsxs)("div",{className:"flex items-center gap-1",children:[(0,f.jsx)(St,{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:()=>{w(),c([]),E("landing"),te(void 0),De(void 0),ue.current=void 0,Gi(!1)},children:(0,f.jsx)(wt,{className:"h-3 w-3"})}),(0,f.jsx)(St,{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:()=>t?.(),children:(0,f.jsx)(Rr,{className:"h-3.5 w-3.5"})})]})]}),(0,f.jsx)("div",{className:m?"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:m?(0,f.jsxs)("div",{className:"w-full overflow-y-auto px-4",children:[(0,f.jsx)("div",{className:"py-3 transition-all duration-300",children:(0,f.jsx)("h2",{className:"text-center text-2xl font-semibold text-gray-900",children:V==="folder"?iS.find(v=>v.id===ce)?.title||"":"How can I help?"})}),(0,f.jsxs)("div",{className:"pb-4 px-4",children:[V==="landing"&&(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{className:"flex flex-col gap-1",children:ps?(0,f.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,f.jsx)(Bt,{className:"h-4 w-4 animate-spin text-gray-400"})}):Ao.map((v,b)=>{let _=["bg-blue-400","bg-green-400","bg-purple-400","bg-orange-400","bg-pink-400"];return(0,f.jsxs)(St,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-1.5 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>ah(v.prompt),children:[(0,f.jsx)("span",{className:`mr-2 inline-block h-1.5 w-1.5 rounded-full ${_[b%_.length]}`}),v.label]},v.id)})})}),V==="folder"&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,f.jsx)(St,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full hover:bg-gray-100",onClick:fS,"aria-label":"Back to suggestions",children:(0,f.jsx)(gn,{className:"h-4 w-4 text-gray-500"})}),(0,f.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-400",children:"Topics"})]}),(0,f.jsx)("div",{className:"flex flex-col gap-1.5",children:iS.find(v=>v.id===ce)?.topics.map(v=>(0,f.jsx)(St,{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:()=>ah(v.prompt),children:v.label},v.id))})]})]})]}):(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,f.jsx)(zp,{ref:sc,className:"h-full",children:(0,f.jsxs)("div",{className:"flex flex-col gap-2 px-4 py-3",children:[d.map((v,b)=>{let _=v.role==="user",F=b>0?d[b-1].role:void 0,B=F!==void 0&&F!==v.role,J=ue.current||K,Q=!1;if(J&&v.kind==="guideStep"?v.guideStepIndex!==void 0?Q=v.guideStepIndex===J.stepIndex:Q=b===d.length-1:v.kind==="guideComplete"&&(Q=b===d.length-1),v.kind==="guideStep"&&!Q)return null;if(_)return(0,f.jsx)("div",{className:`flex justify-end ${B?"mt-3":""}`,children:(0,f.jsx)("div",{className:"max-w-[260px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm",children:v.content})},v.id);if(v.kind==="searchSummary")return(0,f.jsx)("div",{className:`${B?"mt-3":""}`,children:(0,f.jsx)(Fv,{title:v.title??"Search results",links:v.links??[]})},v.id);if(v.kind==="guideComplete")return(0,f.jsx)("div",{ref:Q?Ki:null,className:`${B?"mt-3":""}`,children:(0,f.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,f.jsx)(Ge,{className:"h-5 w-5 text-green-600 flex-shrink-0"}),(0,f.jsx)("span",{className:"font-medium text-green-800",children:v.content})]})},v.id);if(v.kind==="navigationAction")return(0,f.jsxs)("div",{className:`${B?"mt-3":""}`,children:[(0,f.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-2 text-gray-700",children:v.content||""}),v.navigationTarget&&(0,f.jsx)("div",{className:"mt-2",children:(0,f.jsxs)(St,{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:()=>v.navigationTarget&&uc(v.navigationTarget),children:[(0,f.jsx)("span",{children:"Confirm"}),(0,f.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,f.jsx)(Wa,{className:"h-3 w-3"}),(0,f.jsx)(Ga,{className:"h-3 w-3"})]})]})})]},v.id);if(v.kind==="actionForm"){let T=v.actionType,M=Object.keys(re).length>0?re:v.actionData||{};if(v.isSubmitted){let I="";return T==="updateCompanyInfo"?I="Company information has been updated successfully.":T==="addApiKey"?I="API key has been added successfully.":T==="addCustomer"?I="Customer has been added successfully.":T==="enable2FA"?I="Two-factor authentication has been enabled successfully.":T==="disable2FA"?I="Two-factor authentication has been disabled successfully.":T==="changePassword"?I="Your password has been changed successfully.":T==="revokeSession"?I="Session has been revoked successfully.":T==="toggleNotification"?I="Notification preferences have been updated successfully.":T==="connectIntegration"?I="Integration has been connected successfully.":T==="disconnectIntegration"?I="Integration has been disconnected successfully.":T==="addPaymentMethod"?I="Payment method has been added successfully.":T==="removePaymentMethod"?I="Payment method has been removed successfully.":T==="deleteApiKey"?I="API key has been deleted successfully.":T==="addWebhook"?I="Webhook endpoint has been added successfully.":T==="updateCurrency"?I="Currency preference has been updated successfully.":T==="updateTimezone"?I="Timezone has been updated successfully.":T==="refundPayment"?I="Refund has been processed successfully.":T==="exportCertificate"?I="Certificate of Incorporation has been downloaded successfully.":T==="createSubscription"?I="Subscription has been created successfully.":T==="toggleBlockRule"||T==="enableBlockRule"||T==="disableBlockRule"?I="Block rule has been updated successfully.":I="Action completed successfully.",(0,f.jsx)("div",{className:`${B?"mt-3":""}`,children:(0,f.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-gray-700",children:I})},v.id)}return(0,f.jsxs)("div",{className:`min-w-0 ${B?"mt-3":""}`,children:[(0,f.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:v.content||""}),T==="updateCompanyInfo"&&(0,f.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,f.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,f.jsx)(Te,{placeholder:"Acme Corporation",value:M.companyName||"",onChange:I=>oe({...re,companyName:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,f.jsx)(Te,{type:"email",placeholder:"contact@acme.com",value:M.email||"",onChange:I=>oe({...re,email:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Address"}),(0,f.jsx)(Te,{placeholder:"123 Main St, San Francisco, CA",value:M.address||"",onChange:I=>oe({...re,address:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Phone"}),(0,f.jsx)(Te,{type:"tel",placeholder:"+1 (555) 123-4567",value:M.phone||"",onChange:I=>oe({...re,phone:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Website"}),(0,f.jsx)(Te,{type:"url",placeholder:"https://acme.com",value:M.website||"",onChange:I=>oe({...re,website:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]})]}),T==="addApiKey"&&(0,f.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name"}),(0,f.jsx)(Te,{placeholder:"Production Key",value:M.name||"",onChange:I=>oe({...re,name:I.target.value}),className:"h-8 text-xs border-gray-200"})]})}),T==="addCustomer"&&(0,f.jsxs)("div",{className:"space-y-2 bg-gray-50 rounded-lg p-2 border border-gray-200 overflow-hidden",children:[(0,f.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Company Name"}),(0,f.jsx)(Te,{placeholder:"Acme Corporation",value:M.name||"",onChange:I=>oe({...re,name:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Email"}),(0,f.jsx)(Te,{type:"email",placeholder:"contact@acme.com",value:M.email||"",onChange:I=>oe({...re,email:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Location"}),(0,f.jsx)(Te,{placeholder:"San Francisco, CA",value:M.location||"",onChange:I=>oe({...re,location:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Subscription Tier"}),(0,f.jsxs)("select",{value:M.subscription||"Starter",onChange:I=>oe({...re,subscription:I.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,f.jsx)("option",{value:"Starter",children:"Starter"}),(0,f.jsx)("option",{value:"Professional",children:"Professional"}),(0,f.jsx)("option",{value:"Enterprise",children:"Enterprise"})]})]})]}),(T==="enable2FA"||T==="disable2FA")&&(0,f.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,f.jsx)("p",{className:"text-xs text-black",children:T==="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."})}),T==="changePassword"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Current Password"}),(0,f.jsx)(Te,{type:"password",value:M.currentPassword||"",onChange:I=>oe({...re,currentPassword:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"New Password"}),(0,f.jsx)(Te,{type:"password",value:M.newPassword||"",onChange:I=>oe({...re,newPassword:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Confirm New Password"}),(0,f.jsx)(Te,{type:"password",value:M.confirmPassword||"",onChange:I=>oe({...re,confirmPassword:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="toggleNotification"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Notification Type"}),(0,f.jsxs)("select",{value:M.notificationType||"paymentReceived",onChange:I=>oe({...re,notificationType:I.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,f.jsx)("option",{value:"paymentReceived",children:"Payment Received"}),(0,f.jsx)("option",{value:"paymentFailed",children:"Payment Failed"}),(0,f.jsx)("option",{value:"invoicePaid",children:"Invoice Paid"}),(0,f.jsx)("option",{value:"monthlySummary",children:"Monthly Summary"}),(0,f.jsx)("option",{value:"productUpdates",children:"Product Updates"})]})]}),(0,f.jsxs)("div",{className:"flex items-center gap-2",children:[(0,f.jsx)("input",{type:"checkbox",checked:M.enabled!==!1,onChange:I=>oe({...re,enabled:I.target.checked}),className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"}),(0,f.jsx)("label",{className:"text-xs text-black",children:"Enable this notification"})]})]}),(T==="connectIntegration"||T==="disconnectIntegration")&&(0,f.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Integration"}),(0,f.jsxs)("select",{value:M.integrationName||"Slack",onChange:I=>oe({...re,integrationName:I.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,f.jsx)("option",{value:"Slack",children:"Slack"}),(0,f.jsx)("option",{value:"Zapier",children:"Zapier"}),(0,f.jsx)("option",{value:"Webhook",children:"Webhook"})]})]})}),T==="addPaymentMethod"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Card Number"}),(0,f.jsx)(Te,{placeholder:"1234 5678 9012 3456",value:M.cardNumber||"",onChange:I=>oe({...re,cardNumber:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Expiry Date"}),(0,f.jsx)(Te,{placeholder:"MM/YY",value:M.expiryDate||"",onChange:I=>oe({...re,expiryDate:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="removePaymentMethod"&&(0,f.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,f.jsx)("p",{className:"text-xs text-black",children:"This will remove the default payment method from your account."})}),T==="refundPayment"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Transaction ID or Customer Name"}),(0,f.jsx)(Te,{placeholder:"e.g., txn_1234 or Acme Corp",value:M.transactionId||M.customer||"",onChange:I=>{let $=I.target.value;$.startsWith("txn_")||/^\d+$/.test($)?oe({...re,transactionId:$,customer:void 0}):oe({...re,customer:$,transactionId:void 0})},className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Amount (optional)"}),(0,f.jsx)(Te,{placeholder:"$0.00",value:M.amount||"",onChange:I=>oe({...re,amount:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Reason (optional)"}),(0,f.jsx)(Te,{placeholder:"e.g., Customer request",value:M.reason||"",onChange:I=>oe({...re,reason:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="deleteApiKey"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"API Key Name or ID"}),(0,f.jsx)(Te,{placeholder:"Production Key",value:M.keyId||M.name||"",onChange:I=>oe({...re,keyId:I.target.value,name:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsx)("p",{className:"text-xs text-red-600",children:"Warning: This action cannot be undone. The API key will be permanently deleted."})]}),T==="addWebhook"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Webhook URL"}),(0,f.jsx)(Te,{type:"url",placeholder:"https://example.com/webhook",value:M.url||"",onChange:I=>oe({...re,url:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Name (optional)"}),(0,f.jsx)(Te,{placeholder:"Production Webhook",value:M.name||"",onChange:I=>oe({...re,name:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="updateCurrency"&&(0,f.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Currency"}),(0,f.jsxs)("select",{value:M.currency||"USD",onChange:I=>oe({...re,currency:I.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,f.jsx)("option",{value:"USD",children:"USD ($)"}),(0,f.jsx)("option",{value:"EUR",children:"EUR (\u20AC)"}),(0,f.jsx)("option",{value:"GBP",children:"GBP (\xA3)"}),(0,f.jsx)("option",{value:"JPY",children:"JPY (\xA5)"})]})]})}),T==="updateTimezone"&&(0,f.jsx)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Timezone"}),(0,f.jsxs)("select",{value:M.timezone||"America/Los_Angeles",onChange:I=>oe({...re,timezone:I.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,f.jsx)("option",{value:"America/Los_Angeles",children:"Pacific Time (PT)"}),(0,f.jsx)("option",{value:"America/New_York",children:"Eastern Time (ET)"}),(0,f.jsx)("option",{value:"Europe/London",children:"GMT"}),(0,f.jsx)("option",{value:"Asia/Tokyo",children:"JST"})]})]})}),T==="revokeSession"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Device/Session"}),(0,f.jsx)(Te,{placeholder:"MacBook Pro",value:M.device||"",onChange:I=>oe({...re,device:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsx)("p",{className:"text-xs text-black",children:"This will sign out the device and invalidate its session."})]}),T==="createSubscription"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Customer Email"}),(0,f.jsx)(Te,{type:"email",placeholder:"customer@example.com",value:M.customerEmail||"",onChange:I=>oe({...re,customerEmail:I.target.value}),className:"h-8 text-xs border-gray-200"})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Plan"}),(0,f.jsxs)("select",{value:M.plan||"Starter",onChange:I=>oe({...re,plan:I.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,f.jsx)("option",{value:"Starter",children:"Starter ($29/mo)"}),(0,f.jsx)("option",{value:"Professional",children:"Professional ($99/mo)"}),(0,f.jsx)("option",{value:"Enterprise",children:"Enterprise ($299/mo)"})]})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Billing Cycle"}),(0,f.jsxs)("select",{value:M.billingCycle||"monthly",onChange:I=>oe({...re,billingCycle:I.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,f.jsx)("option",{value:"monthly",children:"Monthly"}),(0,f.jsx)("option",{value:"yearly",children:"Yearly (Save 15%)"})]})]})]}),T==="exportCertificate"&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsx)("p",{className:"text-xs text-black",children:"This will export your certificate of incorporation document."}),(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Format"}),(0,f.jsxs)("select",{value:M.format||"pdf",onChange:I=>oe({...re,format:I.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,f.jsx)("option",{value:"pdf",children:"PDF"}),(0,f.jsx)("option",{value:"json",children:"JSON"})]})]})]}),(T==="toggleBlockRule"||T==="enableBlockRule"||T==="disableBlockRule")&&(0,f.jsxs)("div",{className:"space-y-3 bg-gray-50 rounded-lg p-3 border border-gray-200",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("label",{className:"text-xs font-medium text-black mb-1.5 block",children:"Block Rule"}),(0,f.jsxs)("select",{value:M.ruleId||"rule_1",onChange:I=>oe({...re,ruleId:I.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,f.jsx)("option",{value:"rule_1",children:"Block if risk level = 'highest'"}),(0,f.jsx)("option",{value:"rule_2",children:"Block if matches Stripe block lists"}),(0,f.jsx)("option",{value:"rule_3",children:"Block if CVC verification fails"}),(0,f.jsx)("option",{value:"rule_4",children:"Block if Postal code verification fails"})]})]}),(0,f.jsx)("p",{className:"text-xs text-black",children:T==="enableBlockRule"?"This will enable the selected block rule to actively block matching payments.":T==="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,f.jsx)("div",{className:"mt-3",children:(0,f.jsxs)(St,{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:dc,children:[(0,f.jsx)("span",{children:"Confirm"}),(0,f.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,f.jsx)(Wa,{className:"h-3 w-3"}),(0,f.jsx)(Ga,{className:"h-3 w-3"})]})]})})]},v.id)}if(v.kind==="bulkPreview"&&v.csvData)return(0,f.jsxs)("div",{className:`${B?"mt-3":""}`,children:[(0,f.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:v.content||""}),(0,f.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 overflow-hidden",children:[(0,f.jsxs)("div",{className:"bg-gray-100 px-3 py-2 border-b border-gray-200 flex items-center gap-2",children:[(0,f.jsx)(xn,{className:"h-4 w-4 text-gray-600"}),(0,f.jsx)("span",{className:"text-xs font-medium text-gray-700",children:v.csvData.fileName}),(0,f.jsxs)("span",{className:"text-xs text-gray-500",children:["\u2022 ",v.csvData.rowCount," rows"]})]}),(0,f.jsxs)("div",{className:"px-3 py-2 border-b border-gray-100",children:[(0,f.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Columns"}),(0,f.jsx)("div",{className:"flex flex-wrap gap-1",children:v.csvData.columns.map((T,M)=>(0,f.jsx)("span",{className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded",children:T},M))})]}),v.csvData.sampleRows.length>0&&(0,f.jsxs)("div",{className:"px-3 py-2",children:[(0,f.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 mb-1",children:"Sample Data"}),(0,f.jsx)("div",{className:"space-y-1",children:v.csvData.sampleRows.slice(0,3).map((T,M)=>(0,f.jsxs)("div",{className:"text-xs text-gray-600 bg-white rounded px-2 py-1 border border-gray-100",children:[Object.entries(T).slice(0,3).map(([I,$],ee)=>(0,f.jsxs)("span",{children:[ee>0&&" \u2022 ",(0,f.jsxs)("span",{className:"text-gray-400",children:[I,":"]})," ",$]},I)),Object.keys(T).length>3&&(0,f.jsxs)("span",{className:"text-gray-400",children:[" ","..."]})]},M))})]}),v.suggestedAction&&(0,f.jsx)("div",{className:"px-3 py-2 bg-blue-50 border-t border-blue-100",children:(0,f.jsxs)("span",{className:"text-xs text-blue-700",children:["Suggested action:"," ",(0,f.jsx)("strong",{children:v.suggestedAction.replace(/_/g," ")})]})})]}),v.bulkSessionId&&(0,f.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,f.jsxs)(St,{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:()=>v.bulkSessionId&&cc(v.bulkSessionId),children:[(0,f.jsxs)("span",{children:["Process ",v.csvData.rowCount," rows"]}),(0,f.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,f.jsx)(Wa,{className:"h-3 w-3"}),(0,f.jsx)(Ga,{className:"h-3 w-3"})]})]}),(0,f.jsx)(St,{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:gS,children:"Cancel"})]})]},v.id);if(v.kind==="bulkProgress"&&v.bulkProgress){let{processed:T,total:M,successes:I,failures:$}=v.bulkProgress,ee=Math.round(T/M*100);return(0,f.jsx)("div",{className:`${B?"mt-3":""}`,children:(0,f.jsxs)("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-3",children:[(0,f.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,f.jsx)(Bt,{className:"h-4 w-4 animate-spin text-blue-600"}),(0,f.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:["Processing... ",T," of ",M]})]}),(0,f.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden mb-2",children:(0,f.jsx)("div",{className:"h-full bg-blue-600 transition-all duration-300",style:{width:`${ee}%`}})}),(0,f.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-600",children:[(0,f.jsxs)("span",{className:"flex items-center gap-1",children:[(0,f.jsx)(Ge,{className:"h-3 w-3 text-green-600"}),I," successful"]}),$>0&&(0,f.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,f.jsx)(Rr,{className:"h-3 w-3"}),$," failed"]})]})]})},v.id)}if(v.kind==="bulkSummary"&&v.bulkSummary){let{total:T,successes:M,failures:I,navigationPage:$}=v.bulkSummary,ee=I.length>0,j=$?.page==="customers"?"Customers":$?.page==="dashboard"?"Dashboard":$?.page==="settings"?"Settings":"Results";return(0,f.jsx)("div",{className:`${B?"mt-3":""}`,children:(0,f.jsxs)("div",{className:`rounded-lg border p-3 ${ee?"bg-amber-50 border-amber-200":"bg-green-50 border-green-200"}`,children:[(0,f.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,f.jsx)(Ge,{className:`h-5 w-5 ${ee?"text-amber-600":"text-green-600"}`}),(0,f.jsx)("span",{className:"text-sm font-medium text-gray-800",children:"Bulk operation complete"})]}),(0,f.jsx)("div",{className:"text-sm text-gray-600 mb-2",children:v.content||`Processed ${T} rows: ${M} successful${ee?`, ${I.length} failed`:""}.`}),(0,f.jsxs)("div",{className:"flex items-center gap-4 text-xs",children:[(0,f.jsxs)("span",{className:"flex items-center gap-1 text-green-700",children:[(0,f.jsx)(Ge,{className:"h-3 w-3"}),M," successful"]}),ee&&(0,f.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,f.jsx)(Rr,{className:"h-3 w-3"}),I.length," failed"]})]}),ee&&(0,f.jsxs)("div",{className:"mt-3 pt-2 border-t border-amber-200",children:[(0,f.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-amber-700 mb-1",children:"Failed Rows"}),(0,f.jsxs)("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:[I.slice(0,5).map((fe,He)=>(0,f.jsxs)("div",{className:"text-xs text-red-700 bg-red-50 rounded px-2 py-1",children:["Row ",fe.row,":"," ",fe.error||"Unknown error"]},He)),I.length>5&&(0,f.jsxs)("div",{className:"text-xs text-amber-600",children:["...and ",I.length-5," more"]})]})]}),$&&M>0&&(0,f.jsx)("div",{className:"mt-3 pt-2 border-t border-gray-200",children:(0,f.jsxs)("button",{type:"button",onClick:fe=>{fe.preventDefault(),fe.stopPropagation(),console.log("[DEBUG] Button clicked - navigationPage:",$,"onNavigate:",!!o),o&&$.page?(console.log("[DEBUG] Calling onNavigate with page:",$.page),o($.page,$.subtab)):console.log("[DEBUG] Condition failed - onNavigate:",!!o,"navigationPage.page:",$.page)},className:"flex items-center gap-2 text-xs text-gray-500 hover:text-gray-700 transition-colors group cursor-pointer",children:[(0,f.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,f.jsx)(Wa,{className:"h-2.5 w-2.5"}),(0,f.jsx)("span",{children:"+"}),(0,f.jsx)(Ga,{className:"h-2.5 w-2.5"})]}),(0,f.jsxs)("span",{children:["View ",j]})]})})]})},v.id)}return(0,f.jsx)(G.Fragment,{children:(0,f.jsxs)("div",{ref:Q?Ki:null,className:`${B?"mt-3":""}`,children:[(0,f.jsx)("div",{className:"text-sm leading-6 text-gray-700",children:(()=>{let T=v.content||"";if(v.kind==="guideStep"){let M=T.match(/^(Step\s+\d+:)([\s\S]*)/);if(M)return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("strong",{children:M[1]}),M[2]]})}return v.role==="assistant"&&T?dT(T):T||(0,f.jsx)("span",{className:"opacity-70",children:"Thinking\u2026"})})()}),v.role==="assistant"&&v.structuredData&&(0,f.jsx)("div",{className:"mt-3",children:(0,f.jsx)(sS,{type:v.structuredData.type,data:v.structuredData.data})}),v.role==="assistant"&&v.followups&&v.followups.length>0&&!v.followupSelected&&(0,f.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:v.followups.map(T=>(0,f.jsx)("button",{type:"button",onClick:()=>cS(v.id,T),className:`inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-xl
28
+ `);F=T.pop()||"";for(let M of T){if(!M.trim())continue;let I=M.split(`
29
+ `),j="",J="";for(let G of I)G.startsWith("event: ")?j=G.slice(7):G.startsWith("data: ")&&(J=G.slice(6));if(!(!j||!J))try{let G=JSON.parse(J);if(j==="progress")S([{message:`Processing row ${G.row} of ${G.total}...`,completed:!1}]),d(fe=>fe[fe.length-1]?.kind==="bulkProgress"?fe.map((Je,Aa)=>Aa===fe.length-1?{...Je,bulkProgress:{processed:G.row,total:G.total,successes:G.successes||0,failures:G.failures||0}}:Je):[...fe,{id:Date.now(),role:"assistant",kind:"bulkProgress",bulkProgress:{processed:G.row,total:G.total,successes:G.successes||0,failures:G.failures||0}}]);else if(j==="summary")console.log("[DEBUG] Received summary event - data:",G),console.log("[DEBUG] navigationPage from backend:",G.navigationPage),x("idle"),S([]),ar(null),d(fe=>{let He=fe.filter(Aa=>Aa.kind!=="bulkProgress"&&Aa.kind!=="bulkPreview"),Je={id:Date.now(),role:"assistant",kind:"bulkSummary",content:G.message,bulkSummary:{total:G.total,successes:G.successes,failures:G.failures||[],navigationPage:G.navigationPage}};return console.log("[DEBUG] Creating bulkSummary message:",Je),[...He,Je]}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("agentActionComplete",{detail:{result:{bulk:!0,total:G.total,successes:G.successes}}}))},100);else if(j==="error"){x("idle"),S([]),ar(null);let fe={id:Date.now(),role:"assistant",kind:"text",content:G.message||"An error occurred during bulk processing."};d(He=>[...He,fe])}}catch(G){console.error("Failed to parse confirm SSE event:",G)}}}}catch(b){console.error("Bulk confirm failed:",b),x("idle"),S([]),ar(null);let _={id:Date.now(),role:"assistant",kind:"text",content:"Failed to start bulk operation. Please try again."};d(E=>[...E,_])}}function fS(){ar(null),d(v=>v.filter(b=>b.kind!=="bulkPreview"))}function Jm(v){lc(v)}function pS(v){let b=Date.now()+Math.floor(Math.random()*1e3);d(_=>[..._,{id:b,role:"assistant",kind:"text",content:v}])}function yT(v){let b=Gm[v];if(!b)return;V("landing"),ie(void 0);let _={id:v,stepIndex:0};ge(_),re.current=_,pS(`I'll help you with ${b.title}.`);let E=b.steps[0],F=E.cursorTarget?.selector.includes("[data-page="),Z=E.cursorTarget?.selector.includes("[data-settings-tab=");if(E.cursorTarget&&(F||Z)){let T=E.cursorTarget;Z&&E.navigation&&r&&r(E.navigation.page,void 0),setTimeout(()=>{let I=()=>{let j=document.querySelector(T.selector);j&&j.offsetParent!==null?($r(T),T.onClick&&setTimeout(()=>{j.click()},1200)):setTimeout(I,200)};I()},Z?800:400)}else if(E.navigation&&r&&r(E.navigation.page,E.navigation.subtab),E.cursorTarget){let T=E.cursorTarget,M=T.selector.includes("data-settings-tab"),I=T.selector.includes("dialog")||T.selector.includes("api-key-name-input");setTimeout(()=>{let J=()=>{let G=document.querySelector(T.selector);G&&G.offsetParent!==null?($r(T),T.onClick&&setTimeout(()=>{G.click()},1e3)):M||I?setTimeout(J,200):($r(T),T.onClick&&setTimeout(()=>{let fe=document.querySelector(T.selector);fe&&fe.click()},1e3))};J()},I?700:M?600:400)}let X={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:0};d(T=>[...T,X]),Ta(X.id,E.text)}function dc(){if(!se)return;let v=Gm[se.id];if(!v)return;let b=re.current;(!b||b.id!==se.id)&&(b=se,re.current=se);let E=b.stepIndex+1;if(E>=v.steps.length){Do();let I=Date.now()+1;d(j=>[...j,{id:I,role:"assistant",kind:"guideComplete",content:"Guide Complete"}]),ge(void 0),ht(!0);return}let F=v.steps[E],Z={id:se.id,stepIndex:E};ge(Z),re.current=Z;let X={id:Date.now()+1,role:"assistant",kind:"guideStep",content:"",guideStepIndex:E};d(I=>[...I,X]);let T=F.cursorTarget?.selector.includes("[data-page="),M=F.cursorTarget?.selector.includes("[data-settings-tab=");if(F.cursorTarget&&(T||M)){let I=F.cursorTarget;M&&F.navigation&&r&&r(F.navigation.page,void 0),setTimeout(()=>{let J=re.current;if(!J||J.id!==v.id||J.stepIndex!==E)return;let G=()=>{let fe=re.current;if(!fe||fe.id!==v.id||fe.stepIndex!==E)return;let He=document.querySelector(I.selector);He&&He.offsetParent!==null?($r(I),I.onClick&&setTimeout(()=>{let Je=re.current;!Je||Je.id!==v.id||Je.stepIndex!==E||He.click()},1200)):setTimeout(G,200)};G()},M?800:400)}else if(F.navigation&&r&&r(F.navigation.page,F.navigation.subtab),F.cursorTarget){let I=F.cursorTarget,j=I.selector.includes("dialog")||I.selector.includes("api-key-name-input"),J=I.selector.includes("data-settings-tab"),G=F.navigation?.subtab&&J&&I.selector.includes(`data-settings-tab="${F.navigation.subtab}"`),fe=I.onClick&&!G,He=!!F.navigation,et=(!!F.navigation?.subtab?700:He?400:0)+(j?700:J?600:400);setTimeout(()=>{let Zt=re.current;if(!Zt||Zt.id!==v.id||Zt.stepIndex!==E)return;let W=()=>{let z=re.current;if(!z||z.id!==v.id||z.stepIndex!==E)return;let oe=document.querySelector(I.selector);oe&&oe.offsetParent!==null?($r(I),fe&&setTimeout(()=>{let pe=re.current;!pe||pe.id!==v.id||pe.stepIndex!==E||oe.click()},1e3)):j||J||I.selector.includes("data-testid")?setTimeout(W,200):($r(I),fe&&setTimeout(()=>{let pe=re.current;if(!pe||pe.id!==v.id||pe.stepIndex!==E)return;let gt=document.querySelector(I.selector);gt&&gt.click()},1e3))};W()},et)}else Do();Ta(X.id,F.text)}function mS(){if(!se)return;let v=Gm[se.id];if(!v)return;let b=se.stepIndex-1;if(b>=0){ge({id:se.id,stepIndex:b});let _=v.steps[b];_.navigation&&r&&r(_.navigation.page,_.navigation.subtab),_.cursorTarget?setTimeout(()=>{$r(_.cursorTarget)},500):Do();let E=u.filter(F=>F.kind!=="guideStep"&&F.kind!=="guideComplete");d([...E,{id:Date.now(),role:"assistant",kind:"guideStep",content:_.text}])}}return(0,p.jsxs)("section",{className:`fixed top-0 right-0 z-40 flex flex-col bg-white border-l border-gray-200 h-full overflow-hidden transition-transform duration-300 ${e?"translate-x-0":"translate-x-full"}`,style:{width:`${jm}px`},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 shrink-0",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,p.jsx)(Ar,{className:"h-3.5 w-3.5 text-black",fill:"currentColor"}),(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:[(0,p.jsx)(St,{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(),d([]),V("landing"),ie(void 0),ge(void 0),re.current=void 0,ht(!1)},children:(0,p.jsx)(wt,{className:"h-3 w-3"})}),(0,p.jsx)(St,{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:()=>t?.(),children:(0,p.jsx)(Rr,{className:"h-3.5 w-3.5"})})]})]}),(0,p.jsx)("div",{className:h?"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:h?(0,p.jsxs)("div",{className:"w-full overflow-y-auto px-4",children:[(0,p.jsx)("div",{className:"py-3 transition-all duration-300",children:(0,p.jsx)("h2",{className:"text-center text-2xl font-semibold text-gray-900",children:A==="folder"?oS.find(v=>v.id===U)?.title||"":"How can I help?"})}),(0,p.jsxs)("div",{className:"pb-4 px-4",children:[A==="landing"&&(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:"flex flex-col gap-1",children:Pa?(0,p.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,p.jsx)(Bt,{className:"h-4 w-4 animate-spin text-gray-400"})}):ue.map((v,b)=>{let _=["bg-blue-400","bg-green-400","bg-purple-400","bg-orange-400","bg-pink-400"];return(0,p.jsxs)(St,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start rounded-lg px-3 py-1.5 text-xs text-gray-700 hover:bg-gray-100 h-auto",onClick:()=>Jm(v.prompt),children:[(0,p.jsx)("span",{className:`mr-2 inline-block h-1.5 w-1.5 rounded-full ${_[b%_.length]}`}),v.label]},v.id)})})}),A==="folder"&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,p.jsx)(St,{type:"button",size:"icon",variant:"ghost",className:"h-7 w-7 rounded-full hover:bg-gray-100",onClick:lS,"aria-label":"Back to suggestions",children:(0,p.jsx)(gn,{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:oS.find(v=>v.id===U)?.topics.map(v=>(0,p.jsx)(St,{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:()=>Jm(v.prompt),children:v.label},v.id))})]})]})]}):(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,p.jsx)(Up,{ref:rc,className:"h-full",children:(0,p.jsxs)("div",{className:"flex flex-col gap-2 px-4 py-3",children:[u.map((v,b)=>{let _=v.role==="user",E=b>0?u[b-1].role:void 0,F=E!==void 0&&E!==v.role,Z=re.current||se,X=!1;if(Z&&v.kind==="guideStep"?v.guideStepIndex!==void 0?X=v.guideStepIndex===Z.stepIndex:X=b===u.length-1:v.kind==="guideComplete"&&(X=b===u.length-1),v.kind==="guideStep"&&!X)return null;if(_)return(0,p.jsx)("div",{className:`flex justify-end ${F?"mt-3":""}`,children:(0,p.jsx)("div",{className:"max-w-[260px] rounded-2xl rounded-br-md bg-gray-900 px-3.5 py-2.5 text-sm text-white shadow-sm",children:v.content})},v.id);if(v.kind==="searchSummary")return(0,p.jsx)("div",{className:`${F?"mt-3":""}`,children:(0,p.jsx)(Mv,{title:v.title??"Search results",links:v.links??[]})},v.id);if(v.kind==="guideComplete")return(0,p.jsx)("div",{ref:X?ji:null,className:`${F?"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)(Ge,{className:"h-5 w-5 text-green-600 flex-shrink-0"}),(0,p.jsx)("span",{className:"font-medium text-green-800",children:v.content})]})},v.id);if(v.kind==="navigationAction")return(0,p.jsxs)("div",{className:`${F?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-2 text-gray-700",children:v.content||""}),v.navigationTarget&&(0,p.jsx)("div",{className:"mt-2",children:(0,p.jsxs)(St,{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:()=>v.navigationTarget&&sc(v.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)(Wa,{className:"h-3 w-3"}),(0,p.jsx)(Ga,{className:"h-3 w-3"})]})]})})]},v.id);if(v.kind==="actionForm"){let T=v.actionType,M=Object.keys(te).length>0?te:v.actionData||{};if(v.isSubmitted){let I="";return T==="updateCompanyInfo"?I="Company information has been updated successfully.":T==="addApiKey"?I="API key has been added successfully.":T==="addCustomer"?I="Customer has been added successfully.":T==="enable2FA"?I="Two-factor authentication has been enabled successfully.":T==="disable2FA"?I="Two-factor authentication has been disabled successfully.":T==="changePassword"?I="Your password has been changed successfully.":T==="revokeSession"?I="Session has been revoked successfully.":T==="toggleNotification"?I="Notification preferences have been updated successfully.":T==="connectIntegration"?I="Integration has been connected successfully.":T==="disconnectIntegration"?I="Integration has been disconnected successfully.":T==="addPaymentMethod"?I="Payment method has been added successfully.":T==="removePaymentMethod"?I="Payment method has been removed successfully.":T==="deleteApiKey"?I="API key has been deleted successfully.":T==="addWebhook"?I="Webhook endpoint has been added successfully.":T==="updateCurrency"?I="Currency preference has been updated successfully.":T==="updateTimezone"?I="Timezone has been updated successfully.":T==="refundPayment"?I="Refund has been processed successfully.":T==="exportCertificate"?I="Certificate of Incorporation has been downloaded successfully.":T==="createSubscription"?I="Subscription has been created successfully.":T==="toggleBlockRule"||T==="enableBlockRule"||T==="disableBlockRule"?I="Block rule has been updated successfully.":I="Action completed successfully.",(0,p.jsx)("div",{className:`${F?"mt-3":""}`,children:(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-gray-700",children:I})},v.id)}return(0,p.jsxs)("div",{className:`min-w-0 ${F?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:v.content||""}),T==="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)(Ae,{placeholder:"Acme Corporation",value:M.companyName||"",onChange:I=>ae({...te,companyName:I.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)(Ae,{type:"email",placeholder:"contact@acme.com",value:M.email||"",onChange:I=>ae({...te,email:I.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)(Ae,{placeholder:"123 Main St, San Francisco, CA",value:M.address||"",onChange:I=>ae({...te,address:I.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)(Ae,{type:"tel",placeholder:"+1 (555) 123-4567",value:M.phone||"",onChange:I=>ae({...te,phone:I.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)(Ae,{type:"url",placeholder:"https://acme.com",value:M.website||"",onChange:I=>ae({...te,website:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]})]}),T==="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)(Ae,{placeholder:"Production Key",value:M.name||"",onChange:I=>ae({...te,name:I.target.value}),className:"h-8 text-xs border-gray-200"})]})}),T==="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)(Ae,{placeholder:"Acme Corporation",value:M.name||"",onChange:I=>ae({...te,name:I.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)(Ae,{type:"email",placeholder:"contact@acme.com",value:M.email||"",onChange:I=>ae({...te,email:I.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)(Ae,{placeholder:"San Francisco, CA",value:M.location||"",onChange:I=>ae({...te,location:I.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:M.subscription||"Starter",onChange:I=>ae({...te,subscription:I.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"})]})]})]}),(T==="enable2FA"||T==="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:T==="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."})}),T==="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)(Ae,{type:"password",value:M.currentPassword||"",onChange:I=>ae({...te,currentPassword:I.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)(Ae,{type:"password",value:M.newPassword||"",onChange:I=>ae({...te,newPassword:I.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)(Ae,{type:"password",value:M.confirmPassword||"",onChange:I=>ae({...te,confirmPassword:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="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:M.notificationType||"paymentReceived",onChange:I=>ae({...te,notificationType:I.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:M.enabled!==!1,onChange:I=>ae({...te,enabled:I.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"})]})]}),(T==="connectIntegration"||T==="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:M.integrationName||"Slack",onChange:I=>ae({...te,integrationName:I.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"})]})]})}),T==="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)(Ae,{placeholder:"1234 5678 9012 3456",value:M.cardNumber||"",onChange:I=>ae({...te,cardNumber:I.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)(Ae,{placeholder:"MM/YY",value:M.expiryDate||"",onChange:I=>ae({...te,expiryDate:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="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."})}),T==="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)(Ae,{placeholder:"e.g., txn_1234 or Acme Corp",value:M.transactionId||M.customer||"",onChange:I=>{let j=I.target.value;j.startsWith("txn_")||/^\d+$/.test(j)?ae({...te,transactionId:j,customer:void 0}):ae({...te,customer:j,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)(Ae,{placeholder:"$0.00",value:M.amount||"",onChange:I=>ae({...te,amount:I.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)(Ae,{placeholder:"e.g., Customer request",value:M.reason||"",onChange:I=>ae({...te,reason:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="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)(Ae,{placeholder:"Production Key",value:M.keyId||M.name||"",onChange:I=>ae({...te,keyId:I.target.value,name:I.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."})]}),T==="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)(Ae,{type:"url",placeholder:"https://example.com/webhook",value:M.url||"",onChange:I=>ae({...te,url:I.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)(Ae,{placeholder:"Production Webhook",value:M.name||"",onChange:I=>ae({...te,name:I.target.value}),className:"h-8 text-xs border-gray-200"})]})]}),T==="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:M.currency||"USD",onChange:I=>ae({...te,currency:I.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)"})]})]})}),T==="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:M.timezone||"America/Los_Angeles",onChange:I=>ae({...te,timezone:I.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"})]})]})}),T==="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)(Ae,{placeholder:"MacBook Pro",value:M.device||"",onChange:I=>ae({...te,device:I.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."})]}),T==="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)(Ae,{type:"email",placeholder:"customer@example.com",value:M.customerEmail||"",onChange:I=>ae({...te,customerEmail:I.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:M.plan||"Starter",onChange:I=>ae({...te,plan:I.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:M.billingCycle||"monthly",onChange:I=>ae({...te,billingCycle:I.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%)"})]})]})]}),T==="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:M.format||"pdf",onChange:I=>ae({...te,format:I.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"})]})]})]}),(T==="toggleBlockRule"||T==="enableBlockRule"||T==="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:M.ruleId||"rule_1",onChange:I=>ae({...te,ruleId:I.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:T==="enableBlockRule"?"This will enable the selected block rule to actively block matching payments.":T==="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)(St,{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:ic,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)(Wa,{className:"h-3 w-3"}),(0,p.jsx)(Ga,{className:"h-3 w-3"})]})]})})]},v.id)}if(v.kind==="bulkPreview"&&v.csvData)return(0,p.jsxs)("div",{className:`${F?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 mb-3 text-gray-700",children:v.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)(xn,{className:"h-4 w-4 text-gray-600"}),(0,p.jsx)("span",{className:"text-xs font-medium text-gray-700",children:v.csvData.fileName}),(0,p.jsxs)("span",{className:"text-xs text-gray-500",children:["\u2022 ",v.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:v.csvData.columns.map((T,M)=>(0,p.jsx)("span",{className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded",children:T},M))})]}),v.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:v.csvData.sampleRows.slice(0,3).map((T,M)=>(0,p.jsxs)("div",{className:"text-xs text-gray-600 bg-white rounded px-2 py-1 border border-gray-100",children:[Object.entries(T).slice(0,3).map(([I,j],J)=>(0,p.jsxs)("span",{children:[J>0&&" \u2022 ",(0,p.jsxs)("span",{className:"text-gray-400",children:[I,":"]})," ",j]},I)),Object.keys(T).length>3&&(0,p.jsxs)("span",{className:"text-gray-400",children:[" ","..."]})]},M))})]}),v.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:v.suggestedAction.replace(/_/g," ")})]})})]}),v.bulkSessionId&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,p.jsxs)(St,{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:()=>v.bulkSessionId&&uc(v.bulkSessionId),children:[(0,p.jsxs)("span",{children:["Process ",v.csvData.rowCount," rows"]}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Wa,{className:"h-3 w-3"}),(0,p.jsx)(Ga,{className:"h-3 w-3"})]})]}),(0,p.jsx)(St,{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:fS,children:"Cancel"})]})]},v.id);if(v.kind==="bulkProgress"&&v.bulkProgress){let{processed:T,total:M,successes:I,failures:j}=v.bulkProgress,J=Math.round(T/M*100);return(0,p.jsx)("div",{className:`${F?"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)(Bt,{className:"h-4 w-4 animate-spin text-blue-600"}),(0,p.jsxs)("span",{className:"text-sm font-medium text-gray-700",children:["Processing... ",T," of ",M]})]}),(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:`${J}%`}})}),(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)(Ge,{className:"h-3 w-3 text-green-600"}),I," successful"]}),j>0&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(Rr,{className:"h-3 w-3"}),j," failed"]})]})]})},v.id)}if(v.kind==="bulkSummary"&&v.bulkSummary){let{total:T,successes:M,failures:I,navigationPage:j}=v.bulkSummary,J=I.length>0,G=j?.page==="customers"?"Customers":j?.page==="dashboard"?"Dashboard":j?.page==="settings"?"Settings":"Results";return(0,p.jsx)("div",{className:`${F?"mt-3":""}`,children:(0,p.jsxs)("div",{className:`rounded-lg border p-3 ${J?"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)(Ge,{className:`h-5 w-5 ${J?"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:v.content||`Processed ${T} rows: ${M} successful${J?`, ${I.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)(Ge,{className:"h-3 w-3"}),M," successful"]}),J&&(0,p.jsxs)("span",{className:"flex items-center gap-1 text-red-600",children:[(0,p.jsx)(Rr,{className:"h-3 w-3"}),I.length," failed"]})]}),J&&(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:[I.slice(0,5).map((fe,He)=>(0,p.jsxs)("div",{className:"text-xs text-red-700 bg-red-50 rounded px-2 py-1",children:["Row ",fe.row,":"," ",fe.error||"Unknown error"]},He)),I.length>5&&(0,p.jsxs)("div",{className:"text-xs text-amber-600",children:["...and ",I.length-5," more"]})]})]}),j&&M>0&&(0,p.jsx)("div",{className:"mt-3 pt-2 border-t border-gray-200",children:(0,p.jsxs)("button",{type:"button",onClick:fe=>{fe.preventDefault(),fe.stopPropagation(),console.log("[DEBUG] Button clicked - navigationPage:",j,"onNavigate:",!!r),r&&j.page?(console.log("[DEBUG] Calling onNavigate with page:",j.page),r(j.page,j.subtab)):console.log("[DEBUG] Condition failed - onNavigate:",!!r,"navigationPage.page:",j.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)(Wa,{className:"h-2.5 w-2.5"}),(0,p.jsx)("span",{children:"+"}),(0,p.jsx)(Ga,{className:"h-2.5 w-2.5"})]}),(0,p.jsxs)("span",{children:["View ",G]})]})})]})},v.id)}return(0,p.jsx)($.Fragment,{children:(0,p.jsxs)("div",{ref:X?ji:null,className:`${F?"mt-3":""}`,children:[(0,p.jsx)("div",{className:"text-sm leading-6 text-gray-700",children:(()=>{let T=v.content||"";if(v.kind==="guideStep"){let M=T.match(/^(Step\s+\d+:)([\s\S]*)/);if(M)return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("strong",{children:M[1]}),M[2]]})}return v.role==="assistant"&&T?lT(T):T||(0,p.jsx)("span",{className:"opacity-70",children:"Thinking\u2026"})})()}),v.role==="assistant"&&v.structuredData&&(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsx)(rS,{type:v.structuredData.type,data:v.structuredData.data})}),v.role==="assistant"&&v.followups&&v.followups.length>0&&!v.followupSelected&&(0,p.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:v.followups.map(T=>(0,p.jsx)("button",{type:"button",onClick:()=>iS(v.id,T),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:T.label},T.id))})]})},v.id)}),(K||ut)&&(0,f.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[K&&K.stepIndex>0&&(0,f.jsx)(St,{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:yS,children:(0,f.jsx)(gn,{className:"h-3.5 w-3.5 text-gray-600"})}),(0,f.jsxs)(St,{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:ut?th:fc,children:[(0,f.jsx)("span",{children:ut?"Done":"Next"}),(0,f.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,f.jsx)(Wa,{className:"h-3 w-3"}),(0,f.jsx)(Ga,{className:"h-3 w-3"})]})]})]}),(x==="thinking"||x==="searching"||x==="executing"||x==="responding")&&(0,f.jsx)("div",{className:`${A==="user"?"mt-3":""}`,children:(0,f.jsx)(Nv,{phase:x,progressSteps:k})}),!K&&(0,f.jsx)("div",{ref:Qm})]})})})})}),(0,f.jsxs)("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50/50 shrink-0",children:[$r&&(0,f.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,f.jsx)(xn,{className:"h-4 w-4 text-blue-600"}),(0,f.jsx)("span",{className:"text-xs text-blue-700 flex-1 truncate",children:$r.name}),(0,f.jsx)("button",{type:"button",onClick:()=>{ic(null),Do.current&&(Do.current.value="")},className:"text-blue-600 hover:text-blue-800",children:(0,f.jsx)(Rr,{className:"h-4 w-4"})})]}),(0,f.jsxs)("form",{onSubmit:pS,className:"w-full",children:[(0,f.jsx)("input",{ref:Do,type:"file",accept:".csv",className:"hidden",onChange:v=>{let b=v.target.files?.[0];b&&ic(b)}}),(0,f.jsxs)("div",{className:"flex w-full items-start gap-2 rounded-xl border border-gray-200 bg-white px-3 py-2 shadow-sm",children:[(0,f.jsx)(St,{type:"button",size:"icon",variant:"ghost",onClick:()=>Do.current?.click(),className:"h-5 w-5 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100",title:"Upload CSV for bulk operations",children:(0,f.jsx)(yi,{className:"h-2.5 w-2.5"})}),(0,f.jsx)("textarea",{placeholder:$r?"Describe what to do with this CSV...":"Ask anything...",value:p,onChange:v=>g(v.target.value),rows:1,className:"flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 text-sm placeholder:text-gray-400 resize-none overflow-hidden outline-none",style:{minHeight:"20px",maxHeight:"120px"},onInput:v=>{let b=v.target;b.style.height="auto",b.style.height=Math.min(b.scrollHeight,120)+"px"},onKeyDown:v=>{if(v.key==="Enter"&&!v.shiftKey&&!v.metaKey&&!v.ctrlKey){if(v.preventDefault(),p.trim()||$r){let b=v.currentTarget.closest("form");b&&b.requestSubmit()}return}if((v.metaKey||v.ctrlKey)&&v.key==="Enter"){let b=lc.current;if(b){v.preventDefault(),v.stopPropagation(),cc(b);return}if(ze){v.preventDefault(),v.stopPropagation(),dc();return}if(ms){v.preventDefault(),v.stopPropagation(),uc(ms);return}if(ue.current){v.preventDefault(),v.stopPropagation(),fc();return}}}}),(0,f.jsx)(St,{type:"submit",size:"icon",disabled:!p.trim()&&!$r,className:"h-6 w-6 rounded-full bg-gray-900 hover:bg-gray-800 disabled:bg-gray-300",children:(0,f.jsx)(mi,{className:"h-2.5 w-2.5"})})]})]})]}),(0,f.jsx)(rS,{x:$i.x,y:$i.y,visible:$i.visible,onClick:$i.onClick})]}):(0,f.jsx)("div",{className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-50",children:(0,f.jsx)("div",{className:`flex items-center gap-3 rounded-xl bg-white border border-gray-200 shadow-lg px-4 py-3 hover:shadow-xl transition-all duration-300 ease-out ${Zm?"w-[480px]":"w-[320px]"}`,children:Zm?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("input",{ref:Jm,type:"text",value:Mo,onChange:v=>Xi(v.target.value),onKeyDown:v=>{v.key==="Enter"&&Mo.trim()?(v.preventDefault(),a?.(),Qi(Mo.trim()),Xi(""),hs(!1)):v.key==="Escape"&&(hs(!1),Xi(""))},onBlur:()=>{Mo.trim()||setTimeout(()=>hs(!1),200)},placeholder:"Ask a question...",className:"flex-1 text-sm text-gray-700 outline-none bg-transparent"}),(0,f.jsxs)("div",{className:"flex items-center gap-2",children:[(0,f.jsx)("span",{className:"text-xs text-gray-400 font-medium",children:"\u21B5 Enter"}),(0,f.jsx)("button",{onClick:()=>{a?.(),Mo.trim()&&g(Mo),Xi(""),hs(!1)},className:"h-7 w-7 rounded-lg bg-gray-100 hover:bg-gray-200 flex items-center justify-center transition-colors cursor-pointer",children:(0,f.jsx)(xa,{className:"h-3.5 w-3.5 text-black",fill:"currentColor"})})]})]}):(0,f.jsxs)("div",{className:"flex items-center gap-3 w-full",children:[(0,f.jsxs)("button",{onClick:()=>{hs(!0),setTimeout(()=>Jm.current?.focus(),100)},className:"flex items-center gap-3 flex-1 group",children:[(0,f.jsx)("span",{className:"text-sm text-gray-500 flex-1 text-left",children:"Ask a question..."}),(0,f.jsx)("span",{className:"text-xs text-gray-400 font-medium",children:"\u2318I"})]}),(0,f.jsx)("button",{onClick:()=>{a?.()},className:"h-7 w-7 rounded-lg bg-gray-100 hover:bg-gray-200 flex items-center justify-center transition-colors",children:(0,f.jsx)(xa,{className:"h-3.5 w-3.5 text-black",fill:"currentColor"})})]})})})}function uS({onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n,defaultOpen:s=!1,isOpen:i,onOpenChange:l}){let[u,d]=G.useState(s),c=i!==void 0?i:u,p=g=>{i===void 0&&d(g),l?.(g)};return G.useEffect(()=>{let g=document.body.style.paddingRight,L=document.body.style.transition;return document.body.style.transition="padding-right 0.3s ease",document.body.style.paddingRight=c?`${lS}px`:"0px",()=>{document.body.style.paddingRight=g,document.body.style.transition=L}},[c]),(0,f.jsx)(pT,{isOpen:c,onClose:()=>p(!1),onOpen:()=>p(!0),onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n})}var Xm=N(le(),1),fs=null,Tt=null,zt={};function mT({initialConfig:e}){let[t,a]=(0,ba.useState)(e),[r,o]=(0,ba.useState)(e.currentPage||"dashboard"),[n,s]=(0,ba.useState)(!1),i=(0,ba.useRef)(!1);return(0,ba.useEffect)(()=>{i.current=n},[n]),(0,ba.useEffect)(()=>(zt.setCurrentPage=o,zt.setConfig=l=>a(u=>({...u,...l})),zt.setIsOpen=s,zt.getIsOpen=()=>i.current,()=>{zt={}}),[]),(0,ba.useEffect)(()=>{t.theme==="dark"?Tt?.classList.add("dark"):Tt?.classList.remove("dark")},[t.theme]),(0,Xm.jsx)(uS,{isOpen:n,onOpenChange:s,currentPage:r,agentUrl:t.agentUrl,onNavigate:(l,u)=>t.onNavigate?.(l,u),onActionComplete:t.onActionComplete,startingQuestions:t.startingQuestions,startingQuestionsEndpoint:t.startingQuestionsEndpoint})}function hT(){if(console.log("[KiteChat-Debug] injectStyles called",{existingStyle:!!document.getElementById("kite-chat-styles"),cssContentLength:47196}),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
- @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){#kite-chat-root *,#kite-chat-root :before,#kite-chat-root :after,#kite-chat-root ::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-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}}:root,#kite-chat-root{--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-400:oklch(75% .183 55.934);--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-pink-400:oklch(71.8% .202 349.761);--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-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)}#kite-chat-root *,#kite-chat-root :after,#kite-chat-root :before,#kite-chat-root ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root,#kite-chat-root{-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}#kite-chat-root hr{height:0;color:inherit;border-top-width:1px}#kite-chat-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#kite-chat-root h1,#kite-chat-root h2,#kite-chat-root h3,#kite-chat-root h4,#kite-chat-root h5,#kite-chat-root h6{font-size:inherit;font-weight:inherit}#kite-chat-root a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}#kite-chat-root b,#kite-chat-root strong{font-weight:bolder}#kite-chat-root code,#kite-chat-root kbd,#kite-chat-root samp,#kite-chat-root 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}#kite-chat-root small{font-size:80%}#kite-chat-root sub,#kite-chat-root sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}#kite-chat-root sub{bottom:-.25em}#kite-chat-root sup{top:-.5em}#kite-chat-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#kite-chat-root :-moz-focusring{outline:auto}#kite-chat-root progress{vertical-align:baseline}#kite-chat-root summary{display:list-item}#kite-chat-root ol,#kite-chat-root ul,#kite-chat-root menu{list-style:none}#kite-chat-root img,#kite-chat-root svg,#kite-chat-root video,#kite-chat-root canvas,#kite-chat-root audio,#kite-chat-root iframe,#kite-chat-root embed,#kite-chat-root object{vertical-align:middle;display:block}#kite-chat-root img,#kite-chat-root video{max-width:100%;height:auto}#kite-chat-root button,#kite-chat-root input,#kite-chat-root select,#kite-chat-root optgroup,#kite-chat-root textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#kite-chat-root ::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}#kite-chat-root :where(select:is([multiple],[size])) optgroup{font-weight:bolder}#kite-chat-root :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}#kite-chat-root ::file-selector-button{margin-inline-end:4px}#kite-chat-root ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){#kite-chat-root ::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){#kite-chat-root ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}#kite-chat-root textarea{resize:vertical}#kite-chat-root ::-webkit-search-decoration{-webkit-appearance:none}#kite-chat-root ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}#kite-chat-root ::-webkit-datetime-edit{display:inline-flex}#kite-chat-root ::-webkit-datetime-edit-fields-wrapper{padding:0}#kite-chat-root ::-webkit-datetime-edit{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-year-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-month-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-day-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-hour-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-minute-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-second-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-millisecond-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-meridiem-field{padding-block:0}#kite-chat-root ::-webkit-calendar-picker-indicator{line-height:1}#kite-chat-root :-moz-ui-invalid{box-shadow:none}#kite-chat-root button,#kite-chat-root input:where([type=button],[type=reset],[type=submit]){appearance:button}#kite-chat-root ::file-selector-button{appearance:button}#kite-chat-root ::-webkit-inner-spin-button{height:auto}#kite-chat-root ::-webkit-outer-spin-button{height:auto}#kite-chat-root [hidden]:where(:not([hidden=until-found])){display:none!important}#kite-chat-root .\\@container\\/card-header{container:card-header/inline-size}#kite-chat-root .pointer-events-none{pointer-events:none}#kite-chat-root .collapse{visibility:collapse}#kite-chat-root .visible{visibility:visible}#kite-chat-root .fixed{position:fixed}#kite-chat-root .relative{position:relative}#kite-chat-root .top-0{top:calc(var(--spacing)*0)}#kite-chat-root .top-1\\/2{top:50%}#kite-chat-root .right-0{right:calc(var(--spacing)*0)}#kite-chat-root .bottom-6{bottom:calc(var(--spacing)*6)}#kite-chat-root .left-1\\/2{left:50%}#kite-chat-root .z-40{z-index:40}#kite-chat-root .z-50{z-index:50}#kite-chat-root .z-\\[9999\\]{z-index:9999}#kite-chat-root .col-start-2{grid-column-start:2}#kite-chat-root .row-span-2{grid-row:span 2/span 2}#kite-chat-root .row-start-1{grid-row-start:1}#kite-chat-root .container{width:100%}@media (min-width:40rem){#kite-chat-root .container{max-width:40rem}}@media (min-width:48rem){#kite-chat-root .container{max-width:48rem}}@media (min-width:64rem){#kite-chat-root .container{max-width:64rem}}@media (min-width:80rem){#kite-chat-root .container{max-width:80rem}}@media (min-width:96rem){#kite-chat-root .container{max-width:96rem}}#kite-chat-root .mx-auto{margin-inline:auto}#kite-chat-root .my-1{margin-block:calc(var(--spacing)*1)}#kite-chat-root .my-2{margin-block:calc(var(--spacing)*2)}#kite-chat-root .mt-1{margin-top:calc(var(--spacing)*1)}#kite-chat-root .mt-2{margin-top:calc(var(--spacing)*2)}#kite-chat-root .mt-3{margin-top:calc(var(--spacing)*3)}#kite-chat-root .mr-2{margin-right:calc(var(--spacing)*2)}#kite-chat-root .mb-1{margin-bottom:calc(var(--spacing)*1)}#kite-chat-root .mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}#kite-chat-root .mb-2{margin-bottom:calc(var(--spacing)*2)}#kite-chat-root .mb-3{margin-bottom:calc(var(--spacing)*3)}#kite-chat-root .mb-4{margin-bottom:calc(var(--spacing)*4)}#kite-chat-root .ml-2{margin-left:calc(var(--spacing)*2)}#kite-chat-root .ml-4{margin-left:calc(var(--spacing)*4)}#kite-chat-root .ml-5{margin-left:calc(var(--spacing)*5)}#kite-chat-root .ml-6{margin-left:calc(var(--spacing)*6)}#kite-chat-root .block{display:block}#kite-chat-root .contents{display:contents}#kite-chat-root .flex{display:flex}#kite-chat-root .grid{display:grid}#kite-chat-root .hidden{display:none}#kite-chat-root .inline{display:inline}#kite-chat-root .inline-block{display:inline-block}#kite-chat-root .inline-flex{display:inline-flex}#kite-chat-root .table{display:table}#kite-chat-root .size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}#kite-chat-root .size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}#kite-chat-root .size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}#kite-chat-root .size-full{width:100%;height:100%}#kite-chat-root .h-1{height:calc(var(--spacing)*1)}#kite-chat-root .h-1\\.5{height:calc(var(--spacing)*1.5)}#kite-chat-root .h-2{height:calc(var(--spacing)*2)}#kite-chat-root .h-2\\.5{height:calc(var(--spacing)*2.5)}#kite-chat-root .h-3{height:calc(var(--spacing)*3)}#kite-chat-root .h-3\\.5{height:calc(var(--spacing)*3.5)}#kite-chat-root .h-4{height:calc(var(--spacing)*4)}#kite-chat-root .h-5{height:calc(var(--spacing)*5)}#kite-chat-root .h-6{height:calc(var(--spacing)*6)}#kite-chat-root .h-7{height:calc(var(--spacing)*7)}#kite-chat-root .h-8{height:calc(var(--spacing)*8)}#kite-chat-root .h-9{height:calc(var(--spacing)*9)}#kite-chat-root .h-10{height:calc(var(--spacing)*10)}#kite-chat-root .h-16{height:calc(var(--spacing)*16)}#kite-chat-root .h-auto{height:auto}#kite-chat-root .h-full{height:100%}#kite-chat-root .max-h-32{max-height:calc(var(--spacing)*32)}#kite-chat-root .min-h-0{min-height:calc(var(--spacing)*0)}#kite-chat-root .w-1\\.5{width:calc(var(--spacing)*1.5)}#kite-chat-root .w-2\\.5{width:calc(var(--spacing)*2.5)}#kite-chat-root .w-3{width:calc(var(--spacing)*3)}#kite-chat-root .w-3\\.5{width:calc(var(--spacing)*3.5)}#kite-chat-root .w-4{width:calc(var(--spacing)*4)}#kite-chat-root .w-5{width:calc(var(--spacing)*5)}#kite-chat-root .w-6{width:calc(var(--spacing)*6)}#kite-chat-root .w-7{width:calc(var(--spacing)*7)}#kite-chat-root .w-10{width:calc(var(--spacing)*10)}#kite-chat-root .w-\\[320px\\]{width:320px}#kite-chat-root .w-\\[480px\\]{width:480px}#kite-chat-root .w-full{width:100%}#kite-chat-root .max-w-\\[260px\\]{max-width:260px}#kite-chat-root .min-w-0{min-width:calc(var(--spacing)*0)}#kite-chat-root .flex-1{flex:1}#kite-chat-root .flex-shrink-0,#kite-chat-root .shrink-0{flex-shrink:0}#kite-chat-root .-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}#kite-chat-root .animate-spin{animation:var(--animate-spin)}#kite-chat-root .cursor-pointer{cursor:pointer}#kite-chat-root .touch-none{touch-action:none}#kite-chat-root .resize-none{resize:none}#kite-chat-root .list-decimal{list-style-type:decimal}#kite-chat-root .list-disc{list-style-type:disc}#kite-chat-root .auto-rows-min{grid-auto-rows:min-content}#kite-chat-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#kite-chat-root .grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}#kite-chat-root .flex-col{flex-direction:column}#kite-chat-root .flex-wrap{flex-wrap:wrap}#kite-chat-root .place-items-center{place-items:center}#kite-chat-root .items-center{align-items:center}#kite-chat-root .items-start{align-items:flex-start}#kite-chat-root .justify-between{justify-content:space-between}#kite-chat-root .justify-center{justify-content:center}#kite-chat-root .justify-end{justify-content:flex-end}#kite-chat-root .justify-start{justify-content:flex-start}#kite-chat-root .gap-0\\.5{gap:calc(var(--spacing)*.5)}#kite-chat-root .gap-1{gap:calc(var(--spacing)*1)}#kite-chat-root .gap-1\\.5{gap:calc(var(--spacing)*1.5)}#kite-chat-root .gap-2{gap:calc(var(--spacing)*2)}#kite-chat-root .gap-2\\.5{gap:calc(var(--spacing)*2.5)}#kite-chat-root .gap-3{gap:calc(var(--spacing)*3)}#kite-chat-root .gap-4{gap:calc(var(--spacing)*4)}#kite-chat-root .gap-6{gap:calc(var(--spacing)*6)}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}#kite-chat-root .self-start{align-self:flex-start}#kite-chat-root .justify-self-end{justify-self:flex-end}#kite-chat-root .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#kite-chat-root .overflow-hidden{overflow:hidden}#kite-chat-root .overflow-x-auto{overflow-x:auto}#kite-chat-root .overflow-y-auto{overflow-y:auto}#kite-chat-root .rounded{border-radius:.25rem}#kite-chat-root .rounded-2xl{border-radius:var(--radius-2xl)}#kite-chat-root .rounded-\\[inherit\\]{border-radius:inherit}#kite-chat-root .rounded-full{border-radius:3.40282e38px}#kite-chat-root .rounded-lg{border-radius:var(--kite-radius)}#kite-chat-root .rounded-md{border-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .rounded-xl{border-radius:calc(var(--kite-radius) + 4px)}#kite-chat-root .rounded-l-lg{border-top-left-radius:var(--kite-radius);border-bottom-left-radius:var(--kite-radius)}#kite-chat-root .rounded-br-md{border-bottom-right-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .border{border-style:var(--tw-border-style);border-width:1px}#kite-chat-root .border-0{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}#kite-chat-root .border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}#kite-chat-root .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#kite-chat-root .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#kite-chat-root .border-amber-100{border-color:var(--color-amber-100)}#kite-chat-root .border-amber-200{border-color:var(--color-amber-200)}#kite-chat-root .border-blue-100{border-color:var(--color-blue-100)}#kite-chat-root .border-blue-200{border-color:var(--color-blue-200)}#kite-chat-root .border-emerald-100{border-color:var(--color-emerald-100)}#kite-chat-root .border-emerald-200{border-color:var(--color-emerald-200)}#kite-chat-root .border-gray-100{border-color:var(--color-gray-100)}#kite-chat-root .border-gray-200{border-color:var(--color-gray-200)}#kite-chat-root .border-gray-300{border-color:var(--color-gray-300)}#kite-chat-root .border-green-200{border-color:var(--color-green-200)}#kite-chat-root .border-input{border-color:var(--kite-input)}#kite-chat-root .border-primary\\/20{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .border-primary\\/20{border-color:color-mix(in oklab,var(--kite-primary)20%,transparent)}}#kite-chat-root .border-purple-100{border-color:var(--color-purple-100)}#kite-chat-root .border-purple-200{border-color:var(--color-purple-200)}#kite-chat-root .border-red-200{border-color:var(--color-red-200)}#kite-chat-root .border-slate-200{border-color:var(--color-slate-200)}#kite-chat-root .border-t-transparent{border-top-color:#0000}#kite-chat-root .border-l-transparent{border-left-color:#0000}#kite-chat-root .bg-amber-50{background-color:var(--color-amber-50)}#kite-chat-root .bg-amber-100{background-color:var(--color-amber-100)}#kite-chat-root .bg-background{background-color:var(--kite-background)}#kite-chat-root .bg-blue-50{background-color:var(--color-blue-50)}#kite-chat-root .bg-blue-100{background-color:var(--color-blue-100)}#kite-chat-root .bg-blue-400{background-color:var(--color-blue-400)}#kite-chat-root .bg-blue-600{background-color:var(--color-blue-600)}#kite-chat-root .bg-border{background-color:var(--kite-border)}#kite-chat-root .bg-card{background-color:var(--kite-card)}#kite-chat-root .bg-destructive{background-color:var(--kite-destructive)}#kite-chat-root .bg-emerald-50{background-color:var(--color-emerald-50)}#kite-chat-root .bg-emerald-500{background-color:var(--color-emerald-500)}#kite-chat-root .bg-gray-50{background-color:var(--color-gray-50)}#kite-chat-root .bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-gray-50\\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}}#kite-chat-root .bg-gray-100{background-color:var(--color-gray-100)}#kite-chat-root .bg-gray-200{background-color:var(--color-gray-200)}#kite-chat-root .bg-gray-900{background-color:var(--color-gray-900)}#kite-chat-root .bg-green-50{background-color:var(--color-green-50)}#kite-chat-root .bg-green-400{background-color:var(--color-green-400)}#kite-chat-root .bg-muted\\/40{background-color:var(--kite-muted)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-muted\\/40{background-color:color-mix(in oklab,var(--kite-muted)40%,transparent)}}#kite-chat-root .bg-orange-100{background-color:var(--color-orange-100)}#kite-chat-root .bg-orange-400{background-color:var(--color-orange-400)}#kite-chat-root .bg-pink-400{background-color:var(--color-pink-400)}#kite-chat-root .bg-primary,#kite-chat-root .bg-primary\\/5{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-primary\\/5{background-color:color-mix(in oklab,var(--kite-primary)5%,transparent)}}#kite-chat-root .bg-purple-50{background-color:var(--color-purple-50)}#kite-chat-root .bg-purple-400{background-color:var(--color-purple-400)}#kite-chat-root .bg-red-50{background-color:var(--color-red-50)}#kite-chat-root .bg-red-500{background-color:var(--color-red-500)}#kite-chat-root .bg-secondary{background-color:var(--kite-secondary)}#kite-chat-root .bg-slate-50{background-color:var(--color-slate-50)}#kite-chat-root .bg-slate-100{background-color:var(--color-slate-100)}#kite-chat-root .bg-slate-300{background-color:var(--color-slate-300)}#kite-chat-root .bg-transparent{background-color:#0000}#kite-chat-root .bg-white{background-color:var(--color-white)}#kite-chat-root .bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .p-0{padding:calc(var(--spacing)*0)}#kite-chat-root .p-2{padding:calc(var(--spacing)*2)}#kite-chat-root .p-3{padding:calc(var(--spacing)*3)}#kite-chat-root .p-4{padding:calc(var(--spacing)*4)}#kite-chat-root .p-px{padding:1px}#kite-chat-root .px-0{padding-inline:calc(var(--spacing)*0)}#kite-chat-root .px-1{padding-inline:calc(var(--spacing)*1)}#kite-chat-root .px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}#kite-chat-root .px-2{padding-inline:calc(var(--spacing)*2)}#kite-chat-root .px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .px-3{padding-inline:calc(var(--spacing)*3)}#kite-chat-root .px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}#kite-chat-root .px-4{padding-inline:calc(var(--spacing)*4)}#kite-chat-root .px-6{padding-inline:calc(var(--spacing)*6)}#kite-chat-root .py-0{padding-block:calc(var(--spacing)*0)}#kite-chat-root .py-0\\.5{padding-block:calc(var(--spacing)*.5)}#kite-chat-root .py-1{padding-block:calc(var(--spacing)*1)}#kite-chat-root .py-1\\.5{padding-block:calc(var(--spacing)*1.5)}#kite-chat-root .py-2{padding-block:calc(var(--spacing)*2)}#kite-chat-root .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}#kite-chat-root .py-3{padding-block:calc(var(--spacing)*3)}#kite-chat-root .py-4{padding-block:calc(var(--spacing)*4)}#kite-chat-root .py-6{padding-block:calc(var(--spacing)*6)}#kite-chat-root .py-8{padding-block:calc(var(--spacing)*8)}#kite-chat-root .pt-0{padding-top:calc(var(--spacing)*0)}#kite-chat-root .pt-2{padding-top:calc(var(--spacing)*2)}#kite-chat-root .pb-2{padding-bottom:calc(var(--spacing)*2)}#kite-chat-root .pb-3{padding-bottom:calc(var(--spacing)*3)}#kite-chat-root .pb-4{padding-bottom:calc(var(--spacing)*4)}#kite-chat-root .text-center{text-align:center}#kite-chat-root .text-left{text-align:left}#kite-chat-root .font-mono{font-family:var(--font-mono)}#kite-chat-root .text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}#kite-chat-root .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}#kite-chat-root .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}#kite-chat-root .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#kite-chat-root .text-\\[10px\\]{font-size:10px}#kite-chat-root .leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}#kite-chat-root .leading-none{--tw-leading:1;line-height:1}#kite-chat-root .font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}#kite-chat-root .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}#kite-chat-root .tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}#kite-chat-root .tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}#kite-chat-root .whitespace-nowrap{white-space:nowrap}#kite-chat-root .whitespace-pre-wrap{white-space:pre-wrap}#kite-chat-root .text-amber-500{color:var(--color-amber-500)}#kite-chat-root .text-amber-600{color:var(--color-amber-600)}#kite-chat-root .text-amber-700{color:var(--color-amber-700)}#kite-chat-root .text-black{color:var(--color-black)}#kite-chat-root .text-blue-600{color:var(--color-blue-600)}#kite-chat-root .text-blue-700{color:var(--color-blue-700)}#kite-chat-root .text-card-foreground{color:var(--kite-card-foreground)}#kite-chat-root .text-emerald-500{color:var(--color-emerald-500)}#kite-chat-root .text-emerald-600{color:var(--color-emerald-600)}#kite-chat-root .text-emerald-700{color:var(--color-emerald-700)}#kite-chat-root .text-gray-300{color:var(--color-gray-300)}#kite-chat-root .text-gray-400{color:var(--color-gray-400)}#kite-chat-root .text-gray-500{color:var(--color-gray-500)}#kite-chat-root .text-gray-600{color:var(--color-gray-600)}#kite-chat-root .text-gray-700{color:var(--color-gray-700)}#kite-chat-root .text-gray-800{color:var(--color-gray-800)}#kite-chat-root .text-gray-900{color:var(--color-gray-900)}#kite-chat-root .text-green-500{color:var(--color-green-500)}#kite-chat-root .text-green-600{color:var(--color-green-600)}#kite-chat-root .text-green-700{color:var(--color-green-700)}#kite-chat-root .text-green-800{color:var(--color-green-800)}#kite-chat-root .text-muted-foreground{color:var(--kite-muted-foreground)}#kite-chat-root .text-orange-700{color:var(--color-orange-700)}#kite-chat-root .text-primary{color:var(--kite-primary)}#kite-chat-root .text-primary-foreground{color:var(--kite-primary-foreground)}#kite-chat-root .text-purple-600{color:var(--color-purple-600)}#kite-chat-root .text-purple-700{color:var(--color-purple-700)}#kite-chat-root .text-red-500{color:var(--color-red-500)}#kite-chat-root .text-red-600{color:var(--color-red-600)}#kite-chat-root .text-red-700{color:var(--color-red-700)}#kite-chat-root .text-secondary-foreground{color:var(--kite-secondary-foreground)}#kite-chat-root .text-slate-600{color:var(--color-slate-600)}#kite-chat-root .text-slate-700{color:var(--color-slate-700)}#kite-chat-root .text-white{color:var(--color-white)}#kite-chat-root .uppercase{text-transform:uppercase}#kite-chat-root .italic{font-style:italic}#kite-chat-root .line-through{text-decoration-line:line-through}#kite-chat-root .underline-offset-4{text-underline-offset:4px}#kite-chat-root .opacity-60{opacity:.6}#kite-chat-root .opacity-70{opacity:.7}#kite-chat-root .opacity-90{opacity:.9}#kite-chat-root .opacity-100{opacity:1}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .outline{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .duration-150{--tw-duration:.15s;transition-duration:.15s}#kite-chat-root .duration-200{--tw-duration:.2s;transition-duration:.2s}#kite-chat-root .duration-300{--tw-duration:.3s;transition-duration:.3s}#kite-chat-root .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}#kite-chat-root .ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}#kite-chat-root .outline-none{--tw-outline-style:none;outline-style:none}#kite-chat-root .select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){#kite-chat-root .group-hover\\:bg-gray-200:is(:where(.group):hover *){background-color:var(--color-gray-200)}}#kite-chat-root .selection\\:bg-primary ::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:bg-primary::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:text-primary-foreground ::selection{color:var(--kite-primary-foreground)}#kite-chat-root .selection\\:text-primary-foreground::selection{color:var(--kite-primary-foreground)}#kite-chat-root .file\\:inline-flex::file-selector-button{display:inline-flex}#kite-chat-root .file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}#kite-chat-root .file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .file\\:bg-transparent::file-selector-button{background-color:#0000}#kite-chat-root .file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .file\\:text-foreground::file-selector-button{color:var(--kite-foreground)}#kite-chat-root .placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}#kite-chat-root .placeholder\\:text-muted-foreground::placeholder{color:var(--kite-muted-foreground)}@media (hover:hover){#kite-chat-root .hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:color-mix(in oklab,var(--kite-primary)30%,transparent)}}#kite-chat-root .hover\\:bg-accent:hover{background-color:var(--kite-accent)}#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--kite-destructive)90%,transparent)}}#kite-chat-root .hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}#kite-chat-root .hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}#kite-chat-root .hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}#kite-chat-root .hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--kite-primary)10%,transparent)}}#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--kite-primary)90%,transparent)}}#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:var(--kite-secondary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--kite-secondary)80%,transparent)}}#kite-chat-root .hover\\:text-accent-foreground:hover{color:var(--kite-accent-foreground)}#kite-chat-root .hover\\:text-blue-800:hover{color:var(--color-blue-800)}#kite-chat-root .hover\\:text-gray-600:hover{color:var(--color-gray-600)}#kite-chat-root .hover\\:text-gray-700:hover{color:var(--color-gray-700)}#kite-chat-root .hover\\:text-gray-800:hover{color:var(--color-gray-800)}#kite-chat-root .hover\\:underline:hover{text-decoration-line:underline}#kite-chat-root .hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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)}}#kite-chat-root .focus\\:ring-primary:focus{--tw-ring-color:var(--kite-primary)}#kite-chat-root .focus-visible\\:border-ring:focus-visible{border-color:var(--kite-ring)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--kite-ring)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-ring)50%,transparent)}}#kite-chat-root .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)}#kite-chat-root .focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#kite-chat-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#kite-chat-root .disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}#kite-chat-root .disabled\\:opacity-50:disabled{opacity:.5}#kite-chat-root .has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}#kite-chat-root .has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}#kite-chat-root .has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}#kite-chat-root .aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--kite-destructive)}#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}@media (min-width:48rem){#kite-chat-root .md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}#kite-chat-root .dark\\:border-input:is(.dark *){border-color:var(--kite-input)}#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--kite-destructive)60%,transparent)}}#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--kite-input)30%,transparent)}}@media (hover:hover){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--kite-accent)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-accent)50%,transparent)}}#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-input)50%,transparent)}}}#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}#kite-chat-root .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}#kite-chat-root .\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}#kite-chat-root .\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}#kite-chat-root .\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:root{--kite-radius:.625rem;--kite-background:oklch(100% 0 0);--kite-foreground:oklch(14.5% 0 0);--kite-card:oklch(100% 0 0);--kite-card-foreground:oklch(14.5% 0 0);--kite-popover:oklch(100% 0 0);--kite-popover-foreground:oklch(14.5% 0 0);--kite-primary:oklch(20.5% 0 0);--kite-primary-foreground:oklch(98.5% 0 0);--kite-secondary:oklch(97% 0 0);--kite-secondary-foreground:oklch(20.5% 0 0);--kite-muted:oklch(97% 0 0);--kite-muted-foreground:oklch(55.6% 0 0);--kite-accent:oklch(97% 0 0);--kite-accent-foreground:oklch(20.5% 0 0);--kite-destructive:oklch(57.7% .245 27.325);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(92.2% 0 0);--kite-input:oklch(92.2% 0 0);--kite-ring:oklch(70.8% 0 0)}.dark{--kite-background:oklch(14.5% 0 0);--kite-foreground:oklch(98.5% 0 0);--kite-card:oklch(20.5% 0 0);--kite-card-foreground:oklch(98.5% 0 0);--kite-popover:oklch(20.5% 0 0);--kite-popover-foreground:oklch(98.5% 0 0);--kite-primary:oklch(92.2% 0 0);--kite-primary-foreground:oklch(20.5% 0 0);--kite-secondary:oklch(26.9% 0 0);--kite-secondary-foreground:oklch(98.5% 0 0);--kite-muted:oklch(26.9% 0 0);--kite-muted-foreground:oklch(70.8% 0 0);--kite-accent:oklch(26.9% 0 0);--kite-accent-foreground:oklch(98.5% 0 0);--kite-destructive:oklch(70.4% .191 22.216);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(100% 0 0/.1);--kite-input:oklch(100% 0 0/.15);--kite-ring:oklch(55.6% 0 0);--kite-link:oklch(65% .15 250)}#kite-chat-root *{border-color:var(--kite-border)}#kite-chat-root section form input{color:var(--kite-foreground,#1a1a1a)!important}#kite-chat-root section form input::placeholder{color:var(--kite-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)}}#kite-chat-root .animate-spin{animation:1s linear infinite spin}#kite-chat-root [data-motion]{will-change:transform,opacity}#kite-chat-root a,#kite-chat-root .kite-link{word-break:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;text-decoration:none;color:var(--kite-link)!important}#kite-chat-root a:hover,#kite-chat-root .kite-link:hover{text-decoration:underline}#kite-chat-root .text-sm.leading-6{overflow-wrap:break-word;word-break:break-word;max-width:100%}@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-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}#kite-chat-root{--kite-link:oklch(55% .15 250)}`,document.head.appendChild(e),console.log("[KiteChat-Debug] Style injected",{styleInHead:!!document.getElementById("kite-chat-styles"),cssLength:e.textContent?.length||0});let t=document.createElement("style");t.id="kite-chat-position",t.textContent=`
32
+ transition-all duration-150 ease-in-out`,children:T.label},T.id))})]})},v.id)}),(se||qt)&&(0,p.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[se&&se.stepIndex>0&&(0,p.jsx)(St,{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:mS,children:(0,p.jsx)(gn,{className:"h-3.5 w-3.5 text-gray-600"})}),(0,p.jsxs)(St,{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:qt?Zm:dc,children:[(0,p.jsx)("span",{children:qt?"Done":"Next"}),(0,p.jsxs)("span",{className:"flex items-center gap-0.5 text-gray-400",children:[(0,p.jsx)(Wa,{className:"h-3 w-3"}),(0,p.jsx)(Ga,{className:"h-3 w-3"})]})]})]}),(m==="thinking"||m==="searching"||m==="executing"||m==="responding")&&(0,p.jsx)("div",{className:`${D==="user"?"mt-3":""}`,children:(0,p.jsx)(Rv,{phase:m,progressSteps:w})}),!se&&(0,p.jsx)("div",{ref:Xm})]})})})})}),(0,p.jsxs)("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50/50 shrink-0",children:[Xr&&(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)(xn,{className:"h-4 w-4 text-blue-600"}),(0,p.jsx)("span",{className:"text-xs text-blue-700 flex-1 truncate",children:Xr.name}),(0,p.jsx)("button",{type:"button",onClick:()=>{oc(null),Mo.current&&(Mo.current.value="")},className:"text-blue-600 hover:text-blue-800",children:(0,p.jsx)(Rr,{className:"h-4 w-4"})})]}),(0,p.jsxs)("form",{onSubmit:uS,className:"w-full",children:[(0,p.jsx)("input",{ref:Mo,type:"file",accept:".csv",className:"hidden",onChange:v=>{let b=v.target.files?.[0];b&&oc(b)}}),(0,p.jsxs)("div",{className:"flex w-full items-start gap-2 rounded-xl border border-gray-200 bg-white px-3 py-2 shadow-sm",children:[(0,p.jsx)(St,{type:"button",size:"icon",variant:"ghost",onClick:()=>Mo.current?.click(),className:"h-5 w-5 rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100",title:"Upload CSV for bulk operations",children:(0,p.jsx)(yi,{className:"h-2.5 w-2.5"})}),(0,p.jsx)("textarea",{placeholder:Xr?"Describe what to do with this CSV...":"Ask anything...",value:c,onChange:v=>f(v.target.value),rows:1,className:"flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 text-sm placeholder:text-gray-400 resize-none overflow-hidden outline-none",style:{minHeight:"20px",maxHeight:"120px"},onInput:v=>{let b=v.target;b.style.height="auto",b.style.height=Math.min(b.scrollHeight,120)+"px"},onKeyDown:v=>{if(v.key==="Enter"&&!v.shiftKey&&!v.metaKey&&!v.ctrlKey){if(v.preventDefault(),c.trim()||Xr){let b=v.currentTarget.closest("form");b&&b.requestSubmit()}return}if((v.metaKey||v.ctrlKey)&&v.key==="Enter"){let b=nc.current;if(b){v.preventDefault(),v.stopPropagation(),uc(b);return}if(ze){v.preventDefault(),v.stopPropagation(),ic();return}if(ps){v.preventDefault(),v.stopPropagation(),sc(ps);return}if(re.current){v.preventDefault(),v.stopPropagation(),dc();return}}}}),(0,p.jsx)(St,{type:"submit",size:"icon",disabled:!c.trim()&&!Xr,className:"h-6 w-6 rounded-full bg-gray-900 hover:bg-gray-800 disabled:bg-gray-300",children:(0,p.jsx)(fi,{className:"h-2.5 w-2.5"})})]})]})]}),(0,p.jsx)(eS,{x:Ki.x,y:Ki.y,visible:Ki.visible,onClick:Ki.onClick})]})}function fT({isOpen:e,onClick:t,className:a=""}){return(0,p.jsx)("button",{type:"button",onClick:t,className:`fixed top-1/2 z-50 flex items-center justify-center w-6 h-16 bg-gray-100 hover:bg-gray-200 border border-gray-200 border-r-0 rounded-l-lg text-gray-600 hover:text-gray-800 shadow-md transition-all duration-300 ${a}`,"aria-label":e?"Close help panel":"Open help panel",style:{right:e?`${jm}px`:"0px",transform:"translateY(-50%)"},children:e?(0,p.jsx)(gi,{className:"h-4 w-4"}):(0,p.jsx)(hi,{className:"h-4 w-4"})})}function nS({onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n,defaultOpen:s=!1,isOpen:i,onOpenChange:l}){let[u,d]=$.useState(s),c=i!==void 0?i:u,f=g=>{i===void 0&&d(g),l?.(g)};return $.useEffect(()=>{let g=document.body.style.paddingRight,L=document.body.style.transition;return document.body.style.transition="padding-right 0.3s ease",document.body.style.paddingRight=c?`${jm}px`:"0px",()=>{document.body.style.paddingRight=g,document.body.style.transition=L}},[c]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(fT,{isOpen:c,onClick:()=>f(!c)}),(0,p.jsx)(cT,{isOpen:c,onClose:()=>f(!1),onNavigate:e,onActionComplete:t,currentPage:a,agentUrl:r,startingQuestions:o,startingQuestionsEndpoint:n})]})}var $m=N(de(),1),fs=null,Tt=null,zt={};function pT({initialConfig:e}){let[t,a]=(0,ba.useState)(e),[r,o]=(0,ba.useState)(e.currentPage||"dashboard"),[n,s]=(0,ba.useState)(!1),i=(0,ba.useRef)(!1);return(0,ba.useEffect)(()=>{i.current=n},[n]),(0,ba.useEffect)(()=>(zt.setCurrentPage=o,zt.setConfig=l=>a(u=>({...u,...l})),zt.setIsOpen=s,zt.getIsOpen=()=>i.current,()=>{zt={}}),[]),(0,ba.useEffect)(()=>{t.theme==="dark"?Tt?.classList.add("dark"):Tt?.classList.remove("dark")},[t.theme]),(0,$m.jsx)(nS,{isOpen:n,onOpenChange:s,currentPage:r,agentUrl:t.agentUrl,onNavigate:(l,u)=>t.onNavigate?.(l,u),onActionComplete:t.onActionComplete,startingQuestions:t.startingQuestions,startingQuestionsEndpoint:t.startingQuestionsEndpoint})}function mT(){if(console.log("[KiteChat-Debug] injectStyles called",{existingStyle:!!document.getElementById("kite-chat-styles"),cssContentLength:45735}),document.getElementById("kite-chat-styles"))return;let e=document.createElement("style");e.id="kite-chat-styles",e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
33
+ @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){#kite-chat-root *,#kite-chat-root :before,#kite-chat-root :after,#kite-chat-root ::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-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}}:root,#kite-chat-root{--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-400:oklch(75% .183 55.934);--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-pink-400:oklch(71.8% .202 349.761);--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)}#kite-chat-root *,#kite-chat-root :after,#kite-chat-root :before,#kite-chat-root ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}#kite-chat-root,#kite-chat-root{-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}#kite-chat-root hr{height:0;color:inherit;border-top-width:1px}#kite-chat-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#kite-chat-root h1,#kite-chat-root h2,#kite-chat-root h3,#kite-chat-root h4,#kite-chat-root h5,#kite-chat-root h6{font-size:inherit;font-weight:inherit}#kite-chat-root a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}#kite-chat-root b,#kite-chat-root strong{font-weight:bolder}#kite-chat-root code,#kite-chat-root kbd,#kite-chat-root samp,#kite-chat-root 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}#kite-chat-root small{font-size:80%}#kite-chat-root sub,#kite-chat-root sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}#kite-chat-root sub{bottom:-.25em}#kite-chat-root sup{top:-.5em}#kite-chat-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#kite-chat-root :-moz-focusring{outline:auto}#kite-chat-root progress{vertical-align:baseline}#kite-chat-root summary{display:list-item}#kite-chat-root ol,#kite-chat-root ul,#kite-chat-root menu{list-style:none}#kite-chat-root img,#kite-chat-root svg,#kite-chat-root video,#kite-chat-root canvas,#kite-chat-root audio,#kite-chat-root iframe,#kite-chat-root embed,#kite-chat-root object{vertical-align:middle;display:block}#kite-chat-root img,#kite-chat-root video{max-width:100%;height:auto}#kite-chat-root button,#kite-chat-root input,#kite-chat-root select,#kite-chat-root optgroup,#kite-chat-root textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#kite-chat-root ::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}#kite-chat-root :where(select:is([multiple],[size])) optgroup{font-weight:bolder}#kite-chat-root :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}#kite-chat-root ::file-selector-button{margin-inline-end:4px}#kite-chat-root ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){#kite-chat-root ::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){#kite-chat-root ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}#kite-chat-root textarea{resize:vertical}#kite-chat-root ::-webkit-search-decoration{-webkit-appearance:none}#kite-chat-root ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}#kite-chat-root ::-webkit-datetime-edit{display:inline-flex}#kite-chat-root ::-webkit-datetime-edit-fields-wrapper{padding:0}#kite-chat-root ::-webkit-datetime-edit{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-year-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-month-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-day-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-hour-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-minute-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-second-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-millisecond-field{padding-block:0}#kite-chat-root ::-webkit-datetime-edit-meridiem-field{padding-block:0}#kite-chat-root ::-webkit-calendar-picker-indicator{line-height:1}#kite-chat-root :-moz-ui-invalid{box-shadow:none}#kite-chat-root button,#kite-chat-root input:where([type=button],[type=reset],[type=submit]){appearance:button}#kite-chat-root ::file-selector-button{appearance:button}#kite-chat-root ::-webkit-inner-spin-button{height:auto}#kite-chat-root ::-webkit-outer-spin-button{height:auto}#kite-chat-root [hidden]:where(:not([hidden=until-found])){display:none!important}#kite-chat-root .\\@container\\/card-header{container:card-header/inline-size}#kite-chat-root .pointer-events-none{pointer-events:none}#kite-chat-root .collapse{visibility:collapse}#kite-chat-root .visible{visibility:visible}#kite-chat-root .fixed{position:fixed}#kite-chat-root .relative{position:relative}#kite-chat-root .top-0{top:calc(var(--spacing)*0)}#kite-chat-root .top-1\\/2{top:50%}#kite-chat-root .right-0{right:calc(var(--spacing)*0)}#kite-chat-root .z-40{z-index:40}#kite-chat-root .z-50{z-index:50}#kite-chat-root .z-\\[9999\\]{z-index:9999}#kite-chat-root .col-start-2{grid-column-start:2}#kite-chat-root .row-span-2{grid-row:span 2/span 2}#kite-chat-root .row-start-1{grid-row-start:1}#kite-chat-root .container{width:100%}@media (min-width:40rem){#kite-chat-root .container{max-width:40rem}}@media (min-width:48rem){#kite-chat-root .container{max-width:48rem}}@media (min-width:64rem){#kite-chat-root .container{max-width:64rem}}@media (min-width:80rem){#kite-chat-root .container{max-width:80rem}}@media (min-width:96rem){#kite-chat-root .container{max-width:96rem}}#kite-chat-root .mx-auto{margin-inline:auto}#kite-chat-root .my-1{margin-block:calc(var(--spacing)*1)}#kite-chat-root .my-2{margin-block:calc(var(--spacing)*2)}#kite-chat-root .mt-1{margin-top:calc(var(--spacing)*1)}#kite-chat-root .mt-2{margin-top:calc(var(--spacing)*2)}#kite-chat-root .mt-3{margin-top:calc(var(--spacing)*3)}#kite-chat-root .mr-2{margin-right:calc(var(--spacing)*2)}#kite-chat-root .mb-1{margin-bottom:calc(var(--spacing)*1)}#kite-chat-root .mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}#kite-chat-root .mb-2{margin-bottom:calc(var(--spacing)*2)}#kite-chat-root .mb-3{margin-bottom:calc(var(--spacing)*3)}#kite-chat-root .mb-4{margin-bottom:calc(var(--spacing)*4)}#kite-chat-root .ml-2{margin-left:calc(var(--spacing)*2)}#kite-chat-root .ml-4{margin-left:calc(var(--spacing)*4)}#kite-chat-root .ml-5{margin-left:calc(var(--spacing)*5)}#kite-chat-root .ml-6{margin-left:calc(var(--spacing)*6)}#kite-chat-root .block{display:block}#kite-chat-root .contents{display:contents}#kite-chat-root .flex{display:flex}#kite-chat-root .grid{display:grid}#kite-chat-root .hidden{display:none}#kite-chat-root .inline{display:inline}#kite-chat-root .inline-block{display:inline-block}#kite-chat-root .inline-flex{display:inline-flex}#kite-chat-root .table{display:table}#kite-chat-root .size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}#kite-chat-root .size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}#kite-chat-root .size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}#kite-chat-root .size-full{width:100%;height:100%}#kite-chat-root .h-1{height:calc(var(--spacing)*1)}#kite-chat-root .h-1\\.5{height:calc(var(--spacing)*1.5)}#kite-chat-root .h-2{height:calc(var(--spacing)*2)}#kite-chat-root .h-2\\.5{height:calc(var(--spacing)*2.5)}#kite-chat-root .h-3{height:calc(var(--spacing)*3)}#kite-chat-root .h-3\\.5{height:calc(var(--spacing)*3.5)}#kite-chat-root .h-4{height:calc(var(--spacing)*4)}#kite-chat-root .h-5{height:calc(var(--spacing)*5)}#kite-chat-root .h-6{height:calc(var(--spacing)*6)}#kite-chat-root .h-7{height:calc(var(--spacing)*7)}#kite-chat-root .h-8{height:calc(var(--spacing)*8)}#kite-chat-root .h-9{height:calc(var(--spacing)*9)}#kite-chat-root .h-10{height:calc(var(--spacing)*10)}#kite-chat-root .h-16{height:calc(var(--spacing)*16)}#kite-chat-root .h-auto{height:auto}#kite-chat-root .h-full{height:100%}#kite-chat-root .max-h-32{max-height:calc(var(--spacing)*32)}#kite-chat-root .min-h-0{min-height:calc(var(--spacing)*0)}#kite-chat-root .w-1\\.5{width:calc(var(--spacing)*1.5)}#kite-chat-root .w-2\\.5{width:calc(var(--spacing)*2.5)}#kite-chat-root .w-3{width:calc(var(--spacing)*3)}#kite-chat-root .w-3\\.5{width:calc(var(--spacing)*3.5)}#kite-chat-root .w-4{width:calc(var(--spacing)*4)}#kite-chat-root .w-5{width:calc(var(--spacing)*5)}#kite-chat-root .w-6{width:calc(var(--spacing)*6)}#kite-chat-root .w-7{width:calc(var(--spacing)*7)}#kite-chat-root .w-10{width:calc(var(--spacing)*10)}#kite-chat-root .w-full{width:100%}#kite-chat-root .max-w-\\[260px\\]{max-width:260px}#kite-chat-root .min-w-0{min-width:calc(var(--spacing)*0)}#kite-chat-root .flex-1{flex:1}#kite-chat-root .flex-shrink-0,#kite-chat-root .shrink-0{flex-shrink:0}#kite-chat-root .translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}#kite-chat-root .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}#kite-chat-root .animate-spin{animation:var(--animate-spin)}#kite-chat-root .cursor-pointer{cursor:pointer}#kite-chat-root .touch-none{touch-action:none}#kite-chat-root .resize-none{resize:none}#kite-chat-root .list-decimal{list-style-type:decimal}#kite-chat-root .list-disc{list-style-type:disc}#kite-chat-root .auto-rows-min{grid-auto-rows:min-content}#kite-chat-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#kite-chat-root .grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}#kite-chat-root .flex-col{flex-direction:column}#kite-chat-root .flex-wrap{flex-wrap:wrap}#kite-chat-root .place-items-center{place-items:center}#kite-chat-root .items-center{align-items:center}#kite-chat-root .items-start{align-items:flex-start}#kite-chat-root .justify-between{justify-content:space-between}#kite-chat-root .justify-center{justify-content:center}#kite-chat-root .justify-end{justify-content:flex-end}#kite-chat-root .justify-start{justify-content:flex-start}#kite-chat-root .gap-0\\.5{gap:calc(var(--spacing)*.5)}#kite-chat-root .gap-1{gap:calc(var(--spacing)*1)}#kite-chat-root .gap-1\\.5{gap:calc(var(--spacing)*1.5)}#kite-chat-root .gap-2{gap:calc(var(--spacing)*2)}#kite-chat-root .gap-2\\.5{gap:calc(var(--spacing)*2.5)}#kite-chat-root .gap-3{gap:calc(var(--spacing)*3)}#kite-chat-root .gap-4{gap:calc(var(--spacing)*4)}#kite-chat-root .gap-6{gap:calc(var(--spacing)*6)}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :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)))}#kite-chat-root :where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}#kite-chat-root .self-start{align-self:flex-start}#kite-chat-root .justify-self-end{justify-self:flex-end}#kite-chat-root .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#kite-chat-root .overflow-hidden{overflow:hidden}#kite-chat-root .overflow-x-auto{overflow-x:auto}#kite-chat-root .overflow-y-auto{overflow-y:auto}#kite-chat-root .rounded{border-radius:.25rem}#kite-chat-root .rounded-2xl{border-radius:var(--radius-2xl)}#kite-chat-root .rounded-\\[inherit\\]{border-radius:inherit}#kite-chat-root .rounded-full{border-radius:3.40282e38px}#kite-chat-root .rounded-lg{border-radius:var(--kite-radius)}#kite-chat-root .rounded-md{border-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .rounded-xl{border-radius:calc(var(--kite-radius) + 4px)}#kite-chat-root .rounded-l-lg{border-top-left-radius:var(--kite-radius);border-bottom-left-radius:var(--kite-radius)}#kite-chat-root .rounded-br-md{border-bottom-right-radius:calc(var(--kite-radius) - 2px)}#kite-chat-root .border{border-style:var(--tw-border-style);border-width:1px}#kite-chat-root .border-0{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}#kite-chat-root .border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}#kite-chat-root .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#kite-chat-root .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#kite-chat-root .border-amber-100{border-color:var(--color-amber-100)}#kite-chat-root .border-amber-200{border-color:var(--color-amber-200)}#kite-chat-root .border-blue-100{border-color:var(--color-blue-100)}#kite-chat-root .border-blue-200{border-color:var(--color-blue-200)}#kite-chat-root .border-emerald-100{border-color:var(--color-emerald-100)}#kite-chat-root .border-emerald-200{border-color:var(--color-emerald-200)}#kite-chat-root .border-gray-100{border-color:var(--color-gray-100)}#kite-chat-root .border-gray-200{border-color:var(--color-gray-200)}#kite-chat-root .border-gray-300{border-color:var(--color-gray-300)}#kite-chat-root .border-green-200{border-color:var(--color-green-200)}#kite-chat-root .border-input{border-color:var(--kite-input)}#kite-chat-root .border-primary\\/20{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .border-primary\\/20{border-color:color-mix(in oklab,var(--kite-primary)20%,transparent)}}#kite-chat-root .border-purple-100{border-color:var(--color-purple-100)}#kite-chat-root .border-purple-200{border-color:var(--color-purple-200)}#kite-chat-root .border-red-200{border-color:var(--color-red-200)}#kite-chat-root .border-slate-200{border-color:var(--color-slate-200)}#kite-chat-root .border-t-transparent{border-top-color:#0000}#kite-chat-root .border-l-transparent{border-left-color:#0000}#kite-chat-root .bg-amber-50{background-color:var(--color-amber-50)}#kite-chat-root .bg-amber-100{background-color:var(--color-amber-100)}#kite-chat-root .bg-background{background-color:var(--kite-background)}#kite-chat-root .bg-blue-50{background-color:var(--color-blue-50)}#kite-chat-root .bg-blue-100{background-color:var(--color-blue-100)}#kite-chat-root .bg-blue-400{background-color:var(--color-blue-400)}#kite-chat-root .bg-blue-600{background-color:var(--color-blue-600)}#kite-chat-root .bg-border{background-color:var(--kite-border)}#kite-chat-root .bg-card{background-color:var(--kite-card)}#kite-chat-root .bg-destructive{background-color:var(--kite-destructive)}#kite-chat-root .bg-emerald-50{background-color:var(--color-emerald-50)}#kite-chat-root .bg-emerald-500{background-color:var(--color-emerald-500)}#kite-chat-root .bg-gray-50{background-color:var(--color-gray-50)}#kite-chat-root .bg-gray-50\\/50{background-color:#f9fafb80}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-gray-50\\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}}#kite-chat-root .bg-gray-100{background-color:var(--color-gray-100)}#kite-chat-root .bg-gray-200{background-color:var(--color-gray-200)}#kite-chat-root .bg-gray-900{background-color:var(--color-gray-900)}#kite-chat-root .bg-green-50{background-color:var(--color-green-50)}#kite-chat-root .bg-green-400{background-color:var(--color-green-400)}#kite-chat-root .bg-muted\\/40{background-color:var(--kite-muted)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-muted\\/40{background-color:color-mix(in oklab,var(--kite-muted)40%,transparent)}}#kite-chat-root .bg-orange-100{background-color:var(--color-orange-100)}#kite-chat-root .bg-orange-400{background-color:var(--color-orange-400)}#kite-chat-root .bg-pink-400{background-color:var(--color-pink-400)}#kite-chat-root .bg-primary,#kite-chat-root .bg-primary\\/5{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .bg-primary\\/5{background-color:color-mix(in oklab,var(--kite-primary)5%,transparent)}}#kite-chat-root .bg-purple-50{background-color:var(--color-purple-50)}#kite-chat-root .bg-purple-400{background-color:var(--color-purple-400)}#kite-chat-root .bg-red-50{background-color:var(--color-red-50)}#kite-chat-root .bg-red-500{background-color:var(--color-red-500)}#kite-chat-root .bg-secondary{background-color:var(--kite-secondary)}#kite-chat-root .bg-slate-50{background-color:var(--color-slate-50)}#kite-chat-root .bg-slate-100{background-color:var(--color-slate-100)}#kite-chat-root .bg-slate-300{background-color:var(--color-slate-300)}#kite-chat-root .bg-transparent{background-color:#0000}#kite-chat-root .bg-white{background-color:var(--color-white)}#kite-chat-root .bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .p-0{padding:calc(var(--spacing)*0)}#kite-chat-root .p-2{padding:calc(var(--spacing)*2)}#kite-chat-root .p-3{padding:calc(var(--spacing)*3)}#kite-chat-root .p-4{padding:calc(var(--spacing)*4)}#kite-chat-root .p-px{padding:1px}#kite-chat-root .px-0{padding-inline:calc(var(--spacing)*0)}#kite-chat-root .px-1{padding-inline:calc(var(--spacing)*1)}#kite-chat-root .px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}#kite-chat-root .px-2{padding-inline:calc(var(--spacing)*2)}#kite-chat-root .px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .px-3{padding-inline:calc(var(--spacing)*3)}#kite-chat-root .px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}#kite-chat-root .px-4{padding-inline:calc(var(--spacing)*4)}#kite-chat-root .px-6{padding-inline:calc(var(--spacing)*6)}#kite-chat-root .py-0{padding-block:calc(var(--spacing)*0)}#kite-chat-root .py-0\\.5{padding-block:calc(var(--spacing)*.5)}#kite-chat-root .py-1{padding-block:calc(var(--spacing)*1)}#kite-chat-root .py-1\\.5{padding-block:calc(var(--spacing)*1.5)}#kite-chat-root .py-2{padding-block:calc(var(--spacing)*2)}#kite-chat-root .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}#kite-chat-root .py-3{padding-block:calc(var(--spacing)*3)}#kite-chat-root .py-4{padding-block:calc(var(--spacing)*4)}#kite-chat-root .py-6{padding-block:calc(var(--spacing)*6)}#kite-chat-root .py-8{padding-block:calc(var(--spacing)*8)}#kite-chat-root .pt-0{padding-top:calc(var(--spacing)*0)}#kite-chat-root .pt-2{padding-top:calc(var(--spacing)*2)}#kite-chat-root .pb-2{padding-bottom:calc(var(--spacing)*2)}#kite-chat-root .pb-3{padding-bottom:calc(var(--spacing)*3)}#kite-chat-root .pb-4{padding-bottom:calc(var(--spacing)*4)}#kite-chat-root .text-center{text-align:center}#kite-chat-root .font-mono{font-family:var(--font-mono)}#kite-chat-root .text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}#kite-chat-root .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}#kite-chat-root .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}#kite-chat-root .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#kite-chat-root .text-\\[10px\\]{font-size:10px}#kite-chat-root .leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}#kite-chat-root .leading-none{--tw-leading:1;line-height:1}#kite-chat-root .font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}#kite-chat-root .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}#kite-chat-root .tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}#kite-chat-root .tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}#kite-chat-root .whitespace-nowrap{white-space:nowrap}#kite-chat-root .whitespace-pre-wrap{white-space:pre-wrap}#kite-chat-root .text-amber-500{color:var(--color-amber-500)}#kite-chat-root .text-amber-600{color:var(--color-amber-600)}#kite-chat-root .text-amber-700{color:var(--color-amber-700)}#kite-chat-root .text-black{color:var(--color-black)}#kite-chat-root .text-blue-600{color:var(--color-blue-600)}#kite-chat-root .text-blue-700{color:var(--color-blue-700)}#kite-chat-root .text-card-foreground{color:var(--kite-card-foreground)}#kite-chat-root .text-emerald-500{color:var(--color-emerald-500)}#kite-chat-root .text-emerald-600{color:var(--color-emerald-600)}#kite-chat-root .text-emerald-700{color:var(--color-emerald-700)}#kite-chat-root .text-gray-300{color:var(--color-gray-300)}#kite-chat-root .text-gray-400{color:var(--color-gray-400)}#kite-chat-root .text-gray-500{color:var(--color-gray-500)}#kite-chat-root .text-gray-600{color:var(--color-gray-600)}#kite-chat-root .text-gray-700{color:var(--color-gray-700)}#kite-chat-root .text-gray-800{color:var(--color-gray-800)}#kite-chat-root .text-gray-900{color:var(--color-gray-900)}#kite-chat-root .text-green-500{color:var(--color-green-500)}#kite-chat-root .text-green-600{color:var(--color-green-600)}#kite-chat-root .text-green-700{color:var(--color-green-700)}#kite-chat-root .text-green-800{color:var(--color-green-800)}#kite-chat-root .text-muted-foreground{color:var(--kite-muted-foreground)}#kite-chat-root .text-orange-700{color:var(--color-orange-700)}#kite-chat-root .text-primary{color:var(--kite-primary)}#kite-chat-root .text-primary-foreground{color:var(--kite-primary-foreground)}#kite-chat-root .text-purple-600{color:var(--color-purple-600)}#kite-chat-root .text-purple-700{color:var(--color-purple-700)}#kite-chat-root .text-red-500{color:var(--color-red-500)}#kite-chat-root .text-red-600{color:var(--color-red-600)}#kite-chat-root .text-red-700{color:var(--color-red-700)}#kite-chat-root .text-secondary-foreground{color:var(--kite-secondary-foreground)}#kite-chat-root .text-slate-600{color:var(--color-slate-600)}#kite-chat-root .text-slate-700{color:var(--color-slate-700)}#kite-chat-root .text-white{color:var(--color-white)}#kite-chat-root .uppercase{text-transform:uppercase}#kite-chat-root .italic{font-style:italic}#kite-chat-root .line-through{text-decoration-line:line-through}#kite-chat-root .underline-offset-4{text-underline-offset:4px}#kite-chat-root .opacity-60{opacity:.6}#kite-chat-root .opacity-70{opacity:.7}#kite-chat-root .opacity-90{opacity:.9}#kite-chat-root .opacity-100{opacity:1}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .outline{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .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))}#kite-chat-root .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#kite-chat-root .duration-150{--tw-duration:.15s;transition-duration:.15s}#kite-chat-root .duration-200{--tw-duration:.2s;transition-duration:.2s}#kite-chat-root .duration-300{--tw-duration:.3s;transition-duration:.3s}#kite-chat-root .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}#kite-chat-root .outline-none{--tw-outline-style:none;outline-style:none}#kite-chat-root .select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){#kite-chat-root .group-hover\\:bg-gray-200:is(:where(.group):hover *){background-color:var(--color-gray-200)}}#kite-chat-root .selection\\:bg-primary ::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:bg-primary::selection{background-color:var(--kite-primary)}#kite-chat-root .selection\\:text-primary-foreground ::selection{color:var(--kite-primary-foreground)}#kite-chat-root .selection\\:text-primary-foreground::selection{color:var(--kite-primary-foreground)}#kite-chat-root .file\\:inline-flex::file-selector-button{display:inline-flex}#kite-chat-root .file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}#kite-chat-root .file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}#kite-chat-root .file\\:bg-transparent::file-selector-button{background-color:#0000}#kite-chat-root .file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#kite-chat-root .file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#kite-chat-root .file\\:text-foreground::file-selector-button{color:var(--kite-foreground)}#kite-chat-root .placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}#kite-chat-root .placeholder\\:text-muted-foreground::placeholder{color:var(--kite-muted-foreground)}@media (hover:hover){#kite-chat-root .hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:border-primary\\/30:hover{border-color:color-mix(in oklab,var(--kite-primary)30%,transparent)}}#kite-chat-root .hover\\:bg-accent:hover{background-color:var(--kite-accent)}#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--kite-destructive)90%,transparent)}}#kite-chat-root .hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}#kite-chat-root .hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}#kite-chat-root .hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}#kite-chat-root .hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--kite-primary)10%,transparent)}}#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:var(--kite-primary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--kite-primary)90%,transparent)}}#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:var(--kite-secondary)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--kite-secondary)80%,transparent)}}#kite-chat-root .hover\\:text-accent-foreground:hover{color:var(--kite-accent-foreground)}#kite-chat-root .hover\\:text-blue-800:hover{color:var(--color-blue-800)}#kite-chat-root .hover\\:text-gray-600:hover{color:var(--color-gray-600)}#kite-chat-root .hover\\:text-gray-700:hover{color:var(--color-gray-700)}#kite-chat-root .hover\\:text-gray-800:hover{color:var(--color-gray-800)}#kite-chat-root .hover\\:underline:hover{text-decoration-line:underline}}#kite-chat-root .focus\\:ring-primary:focus{--tw-ring-color:var(--kite-primary)}#kite-chat-root .focus-visible\\:border-ring:focus-visible{border-color:var(--kite-ring)}#kite-chat-root .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)}#kite-chat-root .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)}#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--kite-ring)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-ring)50%,transparent)}}#kite-chat-root .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)}#kite-chat-root .focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}#kite-chat-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#kite-chat-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#kite-chat-root .disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}#kite-chat-root .disabled\\:opacity-50:disabled{opacity:.5}#kite-chat-root .has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}#kite-chat-root .has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}#kite-chat-root .has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}#kite-chat-root .has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}#kite-chat-root .aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--kite-destructive)}#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)20%,transparent)}}@media (min-width:48rem){#kite-chat-root .md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}#kite-chat-root .dark\\:border-input:is(.dark *){border-color:var(--kite-input)}#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--kite-destructive)60%,transparent)}}#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--kite-input)30%,transparent)}}@media (hover:hover){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--kite-accent)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-accent)50%,transparent)}}#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--kite-input)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--kite-input)50%,transparent)}}}#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--kite-destructive)}@supports (color:color-mix(in lab, red, red)){#kite-chat-root .dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--kite-destructive)40%,transparent)}}#kite-chat-root .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}#kite-chat-root .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}#kite-chat-root .\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}#kite-chat-root .\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}#kite-chat-root .\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:root{--kite-radius:.625rem;--kite-background:oklch(100% 0 0);--kite-foreground:oklch(14.5% 0 0);--kite-card:oklch(100% 0 0);--kite-card-foreground:oklch(14.5% 0 0);--kite-popover:oklch(100% 0 0);--kite-popover-foreground:oklch(14.5% 0 0);--kite-primary:oklch(20.5% 0 0);--kite-primary-foreground:oklch(98.5% 0 0);--kite-secondary:oklch(97% 0 0);--kite-secondary-foreground:oklch(20.5% 0 0);--kite-muted:oklch(97% 0 0);--kite-muted-foreground:oklch(55.6% 0 0);--kite-accent:oklch(97% 0 0);--kite-accent-foreground:oklch(20.5% 0 0);--kite-destructive:oklch(57.7% .245 27.325);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(92.2% 0 0);--kite-input:oklch(92.2% 0 0);--kite-ring:oklch(70.8% 0 0)}.dark{--kite-background:oklch(14.5% 0 0);--kite-foreground:oklch(98.5% 0 0);--kite-card:oklch(20.5% 0 0);--kite-card-foreground:oklch(98.5% 0 0);--kite-popover:oklch(20.5% 0 0);--kite-popover-foreground:oklch(98.5% 0 0);--kite-primary:oklch(92.2% 0 0);--kite-primary-foreground:oklch(20.5% 0 0);--kite-secondary:oklch(26.9% 0 0);--kite-secondary-foreground:oklch(98.5% 0 0);--kite-muted:oklch(26.9% 0 0);--kite-muted-foreground:oklch(70.8% 0 0);--kite-accent:oklch(26.9% 0 0);--kite-accent-foreground:oklch(98.5% 0 0);--kite-destructive:oklch(70.4% .191 22.216);--kite-destructive-foreground:oklch(98.5% 0 0);--kite-border:oklch(100% 0 0/.1);--kite-input:oklch(100% 0 0/.15);--kite-ring:oklch(55.6% 0 0)}#kite-chat-root *{border-color:var(--kite-border)}#kite-chat-root section form input{color:var(--kite-foreground,#1a1a1a)!important}#kite-chat-root section form input::placeholder{color:var(--kite-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)}}#kite-chat-root .animate-spin{animation:1s linear infinite spin}#kite-chat-root [data-motion]{will-change:transform,opacity}@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-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),console.log("[KiteChat-Debug] Style injected",{styleInHead:!!document.getElementById("kite-chat-styles"),cssLength:e.textContent?.length||0});let t=document.createElement("style");t.id="kite-chat-position",t.textContent=`
34
34
  #kite-chat-root {
35
35
  /* Container is just a mount point - ChatPanel handles its own positioning */
36
36
  }
37
- `,document.head.appendChild(t)}function $m(){console.log("[KiteChat-Debug] init() called",{hasConfig:!!window.KiteChatConfig,configKeys:window.KiteChatConfig?Object.keys(window.KiteChatConfig):[]});let e=window.KiteChatConfig;if(!e){console.error("[KiteChat] Missing window.KiteChatConfig"),console.log("[KiteChat-Debug] FAIL: no config");return}if(!e.userId||!e.orgId){console.error("[KiteChat] userId and orgId are required"),console.log("[KiteChat-Debug] FAIL: missing userId/orgId",{hasUserId:!!e.userId,hasOrgId:!!e.orgId});return}if(fs){console.warn("[KiteChat] Already initialized");return}if(hT(),e.container){let t=typeof e.container=="string"?document.querySelector(e.container):e.container;if(console.log("[KiteChat-Debug] Using custom container",{containerSelector:typeof e.container=="string"?e.container:"HTMLElement",foundContainer:!!t,containerId:t?.id||"NO_ID",containerClasses:t?.className||""}),!t){console.error(`[KiteChat] Container not found: ${e.container}`);return}Tt=document.createElement("div"),Tt.id="kite-chat-root",t.appendChild(Tt),console.log("[KiteChat-Debug] Created inner wrapper with kite-chat-root ID inside custom container")}else Tt=document.createElement("div"),Tt.id="kite-chat-root",document.body.appendChild(Tt),console.log("[KiteChat-Debug] Created default container",{containerId:Tt.id});console.log("[KiteChat-Debug] About to render",{finalContainerId:Tt?.id||"NO_ID",finalContainerClasses:Tt?.className||""}),fs=(0,dS.createRoot)(Tt),fs.render((0,Xm.jsx)(mT,{initialConfig:e})),window.KiteChat=gT(),console.log("[KiteChat] Initialized")}function gT(){return{setCurrentPage:e=>zt.setCurrentPage?.(e),setUser:(e,t)=>zt.setConfig?.({userId:e,orgId:t}),setConfig:e=>zt.setConfig?.(e),open:()=>zt.setIsOpen?.(!0),close:()=>zt.setIsOpen?.(!1),toggle:()=>{let e=zt.getIsOpen?.()??!1;zt.setIsOpen?.(!e)},isOpen:()=>zt.getIsOpen?.()??!1,destroy:()=>{fs?.unmount(),fs=null,Tt?.remove(),Tt=null,window.KiteChat=void 0},isMounted:()=>fs!==null}}typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",$m):$m());return bS(xT);})();
37
+ `,document.head.appendChild(t)}function Km(){console.log("[KiteChat-Debug] init() called",{hasConfig:!!window.KiteChatConfig,configKeys:window.KiteChatConfig?Object.keys(window.KiteChatConfig):[]});let e=window.KiteChatConfig;if(!e){console.error("[KiteChat] Missing window.KiteChatConfig"),console.log("[KiteChat-Debug] FAIL: no config");return}if(!e.userId||!e.orgId){console.error("[KiteChat] userId and orgId are required"),console.log("[KiteChat-Debug] FAIL: missing userId/orgId",{hasUserId:!!e.userId,hasOrgId:!!e.orgId});return}if(fs){console.warn("[KiteChat] Already initialized");return}if(mT(),e.container){let t=typeof e.container=="string"?document.querySelector(e.container):e.container;if(console.log("[KiteChat-Debug] Using custom container",{containerSelector:typeof e.container=="string"?e.container:"HTMLElement",foundContainer:!!t,containerId:t?.id||"NO_ID",containerClasses:t?.className||""}),!t){console.error(`[KiteChat] Container not found: ${e.container}`);return}Tt=document.createElement("div"),Tt.id="kite-chat-root",t.appendChild(Tt),console.log("[KiteChat-Debug] Created inner wrapper with kite-chat-root ID inside custom container")}else Tt=document.createElement("div"),Tt.id="kite-chat-root",document.body.appendChild(Tt),console.log("[KiteChat-Debug] Created default container",{containerId:Tt.id});console.log("[KiteChat-Debug] About to render",{finalContainerId:Tt?.id||"NO_ID",finalContainerClasses:Tt?.className||""}),fs=(0,sS.createRoot)(Tt),fs.render((0,$m.jsx)(pT,{initialConfig:e})),window.KiteChat=hT(),console.log("[KiteChat] Initialized")}function hT(){return{setCurrentPage:e=>zt.setCurrentPage?.(e),setUser:(e,t)=>zt.setConfig?.({userId:e,orgId:t}),setConfig:e=>zt.setConfig?.(e),open:()=>zt.setIsOpen?.(!0),close:()=>zt.setIsOpen?.(!1),toggle:()=>{let e=zt.getIsOpen?.()??!1;zt.setIsOpen?.(!e)},isOpen:()=>zt.getIsOpen?.()??!1,destroy:()=>{fs?.unmount(),fs=null,Tt?.remove(),Tt=null,window.KiteChat=void 0},isMounted:()=>fs!==null}}typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Km):Km());return SS(gT);})();
38
38
  /*! Bundled license information:
39
39
 
40
40
  react/cjs/react.production.min.js:
@@ -90,6 +90,8 @@ lucide-react/dist/esm/icons/arrow-left.js:
90
90
  lucide-react/dist/esm/icons/arrow-up.js:
91
91
  lucide-react/dist/esm/icons/calendar.js:
92
92
  lucide-react/dist/esm/icons/chevron-down.js:
93
+ lucide-react/dist/esm/icons/chevron-left.js:
94
+ lucide-react/dist/esm/icons/chevron-right.js:
93
95
  lucide-react/dist/esm/icons/circle-alert.js:
94
96
  lucide-react/dist/esm/icons/circle-check.js:
95
97
  lucide-react/dist/esm/icons/circle-x.js:
@@ -118,7 +120,7 @@ lucide-react/dist/esm/icons/x.js:
118
120
  lucide-react/dist/esm/icons/zap.js:
119
121
  lucide-react/dist/esm/lucide-react.js:
120
122
  (**
121
- * @license lucide-react v0.555.0 - ISC
123
+ * @license lucide-react v0.562.0 - ISC
122
124
  *
123
125
  * This source code is licensed under the ISC license.
124
126
  * See the LICENSE file in the root directory of this source tree.