(function(){"use strict";function yg(e,t){for(var l=0;ln[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gr={exports:{}},mi={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var vg=Symbol.for("react.transitional.element"),bg=Symbol.for("react.fragment");function yr(e,t,l){var n=null;if(l!==void 0&&(n=""+l),t.key!==void 0&&(n=""+t.key),"key"in t){l={};for(var a in t)a!=="key"&&(l[a]=t[a])}else l=t;return t=l.ref,{$$typeof:vg,type:e,key:n,ref:t!==void 0?t:null,props:l}}mi.Fragment=bg,mi.jsx=yr,mi.jsxs=yr,gr.exports=mi;var o=gr.exports,vr={exports:{}},L={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ss=Symbol.for("react.transitional.element"),xg=Symbol.for("react.portal"),Sg=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Ng=Symbol.for("react.profiler"),Eg=Symbol.for("react.consumer"),_g=Symbol.for("react.context"),Tg=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Cg=Symbol.for("react.memo"),br=Symbol.for("react.lazy"),zg=Symbol.for("react.activity"),xr=Symbol.iterator;function Og(e){return e===null||typeof e!="object"?null:(e=xr&&e[xr]||e["@@iterator"],typeof e=="function"?e:null)}var Sr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ar=Object.assign,Nr={};function mn(e,t,l){this.props=e,this.context=t,this.refs=Nr,this.updater=l||Sr}mn.prototype.isReactComponent={},mn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")},mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Er(){}Er.prototype=mn.prototype;function us(e,t,l){this.props=e,this.context=t,this.refs=Nr,this.updater=l||Sr}var os=us.prototype=new Er;os.constructor=us,Ar(os,mn.prototype),os.isPureReactComponent=!0;var _r=Array.isArray;function rs(){}var ie={H:null,A:null,T:null,S:null},Tr=Object.prototype.hasOwnProperty;function fs(e,t,l){var n=l.ref;return{$$typeof:ss,type:e,key:t,ref:n!==void 0?n:null,props:l}}function Mg(e,t){return fs(e.type,t,e.props)}function ds(e){return typeof e=="object"&&e!==null&&e.$$typeof===ss}function wg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var jr=/\/+/g;function ms(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wg(""+e.key):t.toString(36)}function Rg(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(rs,rs):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function hn(e,t,l,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case ss:case xg:c=!0;break;case br:return c=e._init,hn(c(e._payload),t,l,n,a)}}if(c)return a=a(e),c=n===""?"."+ms(e,0):n,_r(a)?(l="",c!=null&&(l=c.replace(jr,"$&/")+"/"),hn(a,t,l,"",function(r){return r})):a!=null&&(ds(a)&&(a=Mg(a,l+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(jr,"$&/")+"/")+c)),t.push(a)),1;c=0;var s=n===""?".":n+":";if(_r(e))for(var u=0;u>>1,O=C[H];if(0>>1;Ha(Hl,M))eta(de,Hl)?(C[H]=de,C[et]=M,H=et):(C[H]=Hl,C[It]=M,H=It);else if(eta(de,M))C[H]=de,C[et]=M,H=et;else break e}}return _}function a(C,_){var M=C.sortIndex-_.sortIndex;return M!==0?M:C.id-_.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var c=Date,s=c.now();e.unstable_now=function(){return c.now()-s}}var u=[],r=[],f=1,g=null,d=3,h=!1,y=!1,b=!1,N=!1,p=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function x(C){for(var _=l(r);_!==null;){if(_.callback===null)n(r);else if(_.startTime<=C)n(r),_.sortIndex=_.expirationTime,t(u,_);else break;_=l(r)}}function T(C){if(b=!1,x(C),!y)if(l(u)!==null)y=!0,z||(z=!0,$());else{var _=l(r);_!==null&&ae(T,_.startTime-C)}}var z=!1,A=-1,E=5,w=-1;function D(){return N?!0:!(e.unstable_now()-wC&&D());){var H=g.callback;if(typeof H=="function"){g.callback=null,d=g.priorityLevel;var O=H(g.expirationTime<=C);if(C=e.unstable_now(),typeof O=="function"){g.callback=O,x(C),_=!0;break t}g===l(u)&&n(u),x(C)}else n(u);g=l(u)}if(g!==null)_=!0;else{var ft=l(r);ft!==null&&ae(T,ft.startTime-C),_=!1}}break e}finally{g=null,d=M,h=!1}_=void 0}}finally{_?$():z=!1}}}var $;if(typeof v=="function")$=function(){v(Z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,P=le.port2;le.port1.onmessage=Z,$=function(){P.postMessage(null)}}else $=function(){p(Z,0)};function ae(C,_){A=p(function(){C(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125H?(C.sortIndex=M,t(r,C),l(u)===null&&C===l(r)&&(b?(m(A),A=-1):b=!0,ae(T,M-H))):(C.sortIndex=O,t(u,C),y||h||(y=!0,z||(z=!0,$()))),C},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(C){var _=d;return function(){var M=d;d=_;try{return C.apply(this,arguments)}finally{d=M}}}})(wr),Mr.exports=wr;var Hg=Mr.exports,Rr={exports:{}},we={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Bg=S;function Dr(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ur)}catch(e){console.error(e)}}Ur(),Rr.exports=we;var yi=Rr.exports;const Gg=cs(yi);/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xe=Hg,Hr=S,qg=yi;function j(e){var t="https://react.dev/errors/"+e;if(1gn||(e.current=Ss[gn],Ss[gn]=null,gn--)}function ne(e,t){gn++,Ss[gn]=e.current,e.current=t}var vt=yt(null),ma=yt(null),nl=yt(null),bi=yt(null);function xi(e,t){switch(ne(nl,t),ne(ma,e),ne(vt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gh(t),e=yh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ne(vt),ne(vt,e)}function yn(){Ne(vt),Ne(ma),Ne(nl)}function As(e){e.memoizedState!==null&&ne(bi,e);var t=vt.current,l=yh(t,e.type);t!==l&&(ne(ma,e),ne(vt,l))}function Si(e){ma.current===e&&(Ne(vt),Ne(ma)),bi.current===e&&(Ne(bi),li._currentValue=Bl)}var Ns,Qr;function Ll(e){if(Ns===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ns=t&&t[1]||"",Qr=-1)":-1a||u[n]!==r[a]){var f=` `+u[n].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=n&&0<=a);break}}}finally{Es=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ll(l):""}function Zg(e,t){switch(e.tag){case 26:case 27:case 5:return Ll(e.type);case 16:return Ll("Lazy");case 13:return e.child!==t&&t!==null?Ll("Suspense Fallback"):Ll("Suspense");case 19:return Ll("SuspenseList");case 0:case 15:return _s(e.type,!1);case 11:return _s(e.type.render,!1);case 1:return _s(e.type,!0);case 31:return Ll("Activity");default:return""}}function Zr(e){try{var t="",l=null;do t+=Zg(e,l),l=e,e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` `+n.stack}}var Ts=Object.prototype.hasOwnProperty,js=xe.unstable_scheduleCallback,Cs=xe.unstable_cancelCallback,Kg=xe.unstable_shouldYield,Jg=xe.unstable_requestPaint,Xe=xe.unstable_now,$g=xe.unstable_getCurrentPriorityLevel,Kr=xe.unstable_ImmediatePriority,Jr=xe.unstable_UserBlockingPriority,Ai=xe.unstable_NormalPriority,Wg=xe.unstable_LowPriority,$r=xe.unstable_IdlePriority,Fg=xe.log,Pg=xe.unstable_setDisableYieldValue,ha=null,ke=null;function al(e){if(typeof Fg=="function"&&Pg(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(ha,e)}catch{}}var Ve=Math.clz32?Math.clz32:ty,Ig=Math.log,ey=Math.LN2;function ty(e){return e>>>=0,e===0?32:31-(Ig(e)/ey|0)|0}var Ni=256,Ei=262144,_i=4194304;function Yl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ti(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?a=Yl(n):(c&=s,c!==0?a=Yl(c):l||(l=s&~e,l!==0&&(a=Yl(l))))):(s=n&~i,s!==0?a=Yl(s):c!==0?a=Yl(c):l||(l=n&~e,l!==0&&(a=Yl(l)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function pa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ly(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wr(){var e=_i;return _i<<=1,!(_i&62914560)&&(_i=4194304),e}function zs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ny(e,t,l,n,a,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var s=e.entanglements,u=e.expirationTimes,r=e.hiddenUpdates;for(l=c&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oy=/[\n"\\]/g;function lt(e){return e.replace(oy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Us(e,t,l,n,a,i,c,s){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tt(t)):e.value!==""+tt(t)&&(e.value=""+tt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Hs(e,c,tt(t)):l!=null?Hs(e,c,tt(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+tt(s):e.removeAttribute("name")}function rf(e,t,l,n,a,i,c,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ds(e);return}l=l!=null?""+tt(l):"",t=t!=null?""+tt(t):l,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ds(e)}function Hs(e,t,l){t==="number"&&zi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Nn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qs=!1;if(Ot)try{var xa={};Object.defineProperty(xa,"passive",{get:function(){qs=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{qs=!1}var cl=null,Xs=null,Mi=null;function yf(){if(Mi)return Mi;var e,t=Xs,l=t.length,n,a="value"in cl?cl.value:cl.textContent,i=a.length;for(e=0;e=Na),Nf=" ",Ef=!1;function _f(e,t){switch(e){case"keyup":return By.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Yy(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(Ef=!0,Nf);case"textInput":return e=t.data,e===Nf&&Ef?null:e;default:return null}}function Gy(e,t){if(jn)return e==="compositionend"||!Ks&&_f(e,t)?(e=yf(),Mi=Xs=cl=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Df(l)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=zi(e.document)}return t}function Ws(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")}var Jy=Ot&&"documentMode"in document&&11>=document.documentMode,Cn=null,Fs=null,ja=null,Ps=!1;function Lf(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ps||Cn==null||Cn!==zi(n)||(n=Cn,"selectionStart"in n&&Ws(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ja&&Ta(ja,n)||(ja=n,n=Ec(Fs,"onSelect"),0>=c,a-=c,bt=1<<32-Ve(t)+a|l<E?(w=A,A=null):w=A.sibling;var D=d(p,A,v[E],x);if(D===null){A===null&&(A=w);break}e&&A&&D.alternate===null&&t(p,A),m=i(D,m,E),z===null?T=D:z.sibling=D,z=D,A=w}if(E===v.length)return l(p,A),V&&wt(p,E),T;if(A===null){for(;EE?(w=A,A=null):w=A.sibling;var Z=d(p,A,D.value,x);if(Z===null){A===null&&(A=w);break}e&&A&&Z.alternate===null&&t(p,A),m=i(Z,m,E),z===null?T=Z:z.sibling=Z,z=Z,A=w}if(D.done)return l(p,A),V&&wt(p,E),T;if(A===null){for(;!D.done;E++,D=v.next())D=g(p,D.value,x),D!==null&&(m=i(D,m,E),z===null?T=D:z.sibling=D,z=D);return V&&wt(p,E),T}for(A=n(A);!D.done;E++,D=v.next())D=h(A,p,E,D.value,x),D!==null&&(e&&D.alternate!==null&&A.delete(D.key===null?E:D.key),m=i(D,m,E),z===null?T=D:z.sibling=D,z=D);return e&&A.forEach(function($){return t(p,$)}),V&&wt(p,E),T}function N(p,m,v,x){if(typeof v=="object"&&v!==null&&v.type===pn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case vi:e:{for(var T=v.key;m!==null;){if(m.key===T){if(T=v.type,T===pn){if(m.tag===7){l(p,m.sibling),x=a(m,v.props.children),x.return=p,p=x;break e}}else if(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ll&&Wl(T)===m.type){l(p,m.sibling),x=a(m,v.props),Ra(x,v),x.return=p,p=x;break e}l(p,m);break}else t(p,m);m=m.sibling}v.type===pn?(x=Ql(v.props.children,p.mode,x,v.key),x.return=p,p=x):(x=qi(v.type,v.key,v.props,null,p.mode,x),Ra(x,v),x.return=p,p=x)}return c(p);case ra:e:{for(T=v.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){l(p,m.sibling),x=a(m,v.children||[]),x.return=p,p=x;break e}else{l(p,m);break}else t(p,m);m=m.sibling}x=iu(v,p.mode,x),x.return=p,p=x}return c(p);case ll:return v=Wl(v),N(p,m,v,x)}if(da(v))return y(p,m,v,x);if(fa(v)){if(T=fa(v),typeof T!="function")throw Error(j(150));return v=T.call(v),b(p,m,v,x)}if(typeof v.then=="function")return N(p,m,Ji(v),x);if(v.$$typeof===jt)return N(p,m,Vi(p,v),x);$i(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,m!==null&&m.tag===6?(l(p,m.sibling),x=a(m,v),x.return=p,p=x):(l(p,m),x=au(v,p.mode,x),x.return=p,p=x),c(p)):l(p,m)}return function(p,m,v,x){try{wa=0;var T=N(p,m,v,x);return Yn=null,T}catch(A){if(A===Ln||A===Zi)throw A;var z=Ze(29,A,null,p.mode);return z.lanes=x,z.return=p,z}finally{}}}var Pl=sd(!0),ud=sd(!1),fl=!1;function yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function dl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ml(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,J&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Gi(e),Qf(e,null,l),t}return Yi(e,n,t,l),Gi(e)}function Da(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Pr(e,l)}}function bu(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xu=!1;function Ua(){if(xu){var e=Bn;if(e!==null)throw e}}function Ha(e,t,l,n){xu=!1;var a=e.updateQueue;fl=!1;var i=a.firstBaseUpdate,c=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,r=u.next;u.next=null,c===null?i=r:c.next=r,c=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==c&&(s===null?f.firstBaseUpdate=r:s.next=r,f.lastBaseUpdate=u))}if(i!==null){var g=a.baseState;c=0,f=r=u=null,s=i;do{var d=s.lane&-536870913,h=d!==s.lane;if(h?(k&d)===d:(n&d)===d){d!==0&&d===Hn&&(xu=!0),f!==null&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var y=e,b=s;d=t;var N=l;switch(b.tag){case 1:if(y=b.payload,typeof y=="function"){g=y.call(N,g,d);break e}g=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,d=typeof y=="function"?y.call(N,g,d):y,d==null)break e;g=ce({},g,d);break e;case 2:fl=!0}}d=s.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(r=f=h,u=g):f=f.next=h,c|=d;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(u=g),a.baseState=u,a.firstBaseUpdate=r,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),vl|=c,e.lanes=c,e.memoizedState=g}}function od(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function rd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ei?i:8;var c=B.T,s={};B.T=s,Yu(e,!1,t,l);try{var u=a(),r=B.S;if(r!==null&&r(s,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=nv(u,n);Ya(e,t,f,Fe(e))}else Ya(e,t,n,Fe(e))}catch(g){Ya(e,t,{then:function(){},status:"rejected",reason:g},Fe())}finally{K.p=i,c!==null&&s.types!==null&&(c.types=s.types),B.T=c}}function ov(){}function Bu(e,t,l,n){if(e.tag!==5)throw Error(j(476));var a=Xd(e).queue;qd(e,a,t,Bl,l===null?ov:function(){return kd(e),l(n)})}function Xd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Bl,baseState:Bl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ht,lastRenderedState:Bl},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ht,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Xd(e);t.next===null&&(t=e.alternate.memoizedState),Ya(e,t.next.queue,{},Fe())}function Lu(){return Ce(li)}function Vd(){return he().memoizedState}function Qd(){return he().memoizedState}function rv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Fe();e=dl(l);var n=ml(t,e,l);n!==null&&(qe(n,t,l),Da(n,t,l)),t={cache:mu()},e.payload=t;return}t=t.return}}function fv(e,t,l){var n=Fe();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ic(e)?Kd(t,l):(l=lu(e,t,l,n),l!==null&&(qe(l,e,n),Jd(l,t,n)))}function Zd(e,t,l){var n=Fe();Ya(e,t,l,n)}function Ya(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ic(e))Kd(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,s=i(c,l);if(a.hasEagerState=!0,a.eagerState=s,Qe(s,c))return Yi(e,t,a,0),te===null&&Li(),!1}catch{}finally{}if(l=lu(e,t,a,n),l!==null)return qe(l,e,n),Jd(l,t,n),!0}return!1}function Yu(e,t,l,n){if(n={lane:2,revertLane:vo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ic(e)){if(t)throw Error(j(479))}else t=lu(e,l,n,2),t!==null&&qe(t,e,2)}function ic(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Kd(e,t){qn=Pi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Jd(e,t,l){if(l&4194048){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Pr(e,l)}}var Ga={readContext:Ce,use:tc,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useLayoutEffect:re,useInsertionEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useSyncExternalStore:re,useId:re,useHostTransitionStatus:re,useFormState:re,useActionState:re,useOptimistic:re,useMemoCache:re,useCacheRefresh:re};Ga.useEffectEvent=re;var $d={readContext:Ce,use:tc,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:Ce,useEffect:wd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,nc(4194308,4,Hd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return nc(4194308,4,e,t)},useInsertionEffect:function(e,t){nc(4,2,e,t)},useMemo:function(e,t){var l=De();t=t===void 0?null:t;var n=e();if(Il){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=De();if(l!==void 0){var a=l(t);if(Il){al(!0);try{l(t)}finally{al(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=fv.bind(null,Y,e),[n.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:function(e){e=wu(e);var t=e.queue,l=Zd.bind(null,Y,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Uu,useDeferredValue:function(e,t){var l=De();return Hu(l,e,t)},useTransition:function(){var e=wu(!1);return e=qd.bind(null,Y,e.queue,!0,!1),De().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=Y,a=De();if(V){if(l===void 0)throw Error(j(407));l=l()}else{if(l=t(),te===null)throw Error(j(349));k&127||gd(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,wd(vd.bind(null,n,i,e),[e]),n.flags|=2048,kn(9,{destroy:void 0},yd.bind(null,n,i,l,t),null),l},useId:function(){var e=De(),t=te.identifierPrefix;if(V){var l=xt,n=bt;l=(n&~(1<<32-Ve(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ii++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}i[Te]=t,i[Ue]=n;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(Oe(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Lt(t)}}return ue(t),Iu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Lt(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(j(166));if(e=nl.current,Dn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=je,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Te]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||hh(e.nodeValue,l)),e||ol(t,!0)}else e=_c(e).createTextNode(n),e[Te]=t,t.stateNode=e}return ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Dn(t),l!==null){if(e===null){if(!n)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[Te]=t}else Zl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ue(t),e=!1}else l=ou(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Je(t),t):(Je(t),null);if(t.flags&128)throw Error(j(558))}return ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Dn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(j(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(j(317));a[Te]=t}else Zl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ue(t),a=!1}else a=ou(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Je(t),t):(Je(t),null)}return Je(t),t.flags&128?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),rc(t,t.updateQueue),ue(t),null);case 4:return yn(),e===null&&Ao(t.stateNode.containerInfo),ue(t),null;case 10:return Dt(t.type),ue(t),null;case 19:if(Ne(me),n=t.memoizedState,n===null)return ue(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Xa(n,!1);else{if(fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Fi(e),i!==null){for(t.flags|=128,Xa(n,!1),e=i.updateQueue,t.updateQueue=e,rc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Zf(l,e),l=l.sibling;return ne(me,me.current&1|2),V&&wt(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Xe()>pc&&(t.flags|=128,a=!0,Xa(n,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,rc(t,e),Xa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!V)return ue(t),null}else 2*Xe()-n.renderingStartTime>pc&&l!==536870912&&(t.flags|=128,a=!0,Xa(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Xe(),e.sibling=null,l=me.current,ne(me,a?l&1|2:l&1),V&&wt(t,n.treeForkCount),e):(ue(t),null);case 22:case 23:return Je(t),Au(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?l&536870912&&!(t.flags&128)&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),l=t.updateQueue,l!==null&&rc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&Ne($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Dt(ge),ue(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function gv(e,t){switch(su(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dt(ge),yn(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Si(t),null;case 31:if(t.memoizedState!==null){if(Je(t),t.alternate===null)throw Error(j(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Je(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(me),null;case 4:return yn(),null;case 10:return Dt(t.type),null;case 22:case 23:return Je(t),Au(),e!==null&&Ne($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dt(ge),null;case 25:return null;default:return null}}function bm(e,t){switch(su(t),t.tag){case 3:Dt(ge),yn();break;case 26:case 27:case 5:Si(t);break;case 4:yn();break;case 31:t.memoizedState!==null&&Je(t);break;case 13:Je(t);break;case 19:Ne(me);break;case 10:Dt(t.type);break;case 22:case 23:Je(t),Au(),e!==null&&Ne($l);break;case 24:Dt(ge)}}function ka(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,c=l.inst;n=i(),c.destroy=n}l=l.next}while(l!==a)}}catch(s){F(t,t.return,s)}}function gl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var c=n.inst,s=c.destroy;if(s!==void 0){c.destroy=void 0,a=t;var u=l,r=s;try{r()}catch(f){F(a,u,f)}}}n=n.next}while(n!==i)}}catch(f){F(t,t.return,f)}}function xm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{rd(t,l)}catch(n){F(e,e.return,n)}}}function Sm(e,t,l){l.props=en(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){F(e,t,n)}}function Va(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){F(e,t,a)}}function St(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){F(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){F(e,t,a)}else l.current=null}function Am(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){F(e,e.return,a)}}function eo(e,t,l){try{var n=e.stateNode;Lv(n,e.type,l,t),n[Ue]=t}catch(a){F(e,e.return,a)}}function Nm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nl(e.type)||e.tag===4}function to(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nm(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.tag===27&&Nl(e.type)||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 lo(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=zt));else if(n!==4&&(n===27&&Nl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(lo(e,t,l),e=e.sibling;e!==null;)lo(e,t,l),e=e.sibling}function fc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Nl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(fc(e,t,l),e=e.sibling;e!==null;)fc(e,t,l),e=e.sibling}function Em(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Oe(t,n,l),t[Te]=e,t[Ue]=l}catch(i){F(e,e.return,i)}}var Yt=!1,be=!1,no=!1,_m=typeof WeakSet=="function"?WeakSet:Set,_e=null;function yv(e,t){if(e=e.containerInfo,_o=wc,e=Bf(e),Ws(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,s=-1,u=-1,r=0,f=0,g=e,d=null;t:for(;;){for(var h;g!==l||a!==0&&g.nodeType!==3||(s=c+a),g!==i||n!==0&&g.nodeType!==3||(u=c+n),g.nodeType===3&&(c+=g.nodeValue.length),(h=g.firstChild)!==null;)d=g,g=h;for(;;){if(g===e)break t;if(d===l&&++r===a&&(s=c),d===i&&++f===n&&(u=c),(h=g.nextSibling)!==null)break;g=d,d=g.parentNode}g=h}l=s===-1||u===-1?null:{start:s,end:u}}else l=null}l=l||{start:0,end:0}}else l=null;for(To={focusedElem:e,selectionRange:l},wc=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){switch(t=_e,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),Oe(i,n,l),i[Te]=e,Ee(i),n=i;break e;case"link":var c=Mh("link","href",a).get(n+(l.href||""));if(c){for(var s=0;sN&&(c=N,N=b,b=c);var p=Uf(s,b),m=Uf(s,N);if(p&&m&&(h.rangeCount!==1||h.anchorNode!==p.node||h.anchorOffset!==p.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var v=g.createRange();v.setStart(p.node,p.offset),h.removeAllRanges(),b>N?(h.addRange(v),h.extend(m.node,m.offset)):(v.setEnd(m.node,m.offset),h.addRange(v))}}}}for(g=[],h=s;h=h.parentNode;)h.nodeType===1&&g.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;sl?32:l,B.T=null,l=ro,ro=null;var i=xl,c=Vt;if(Se=0,Jn=xl=null,Vt=0,J&6)throw Error(j(331));var s=J;if(J|=4,Hm(i.current),Rm(i,i.current,c,l),J=s,Wa(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(ha,i)}catch{}return!0}finally{K.p=a,B.T=n,eh(e,t)}}function lh(e,t,l){t=at(l,t),t=ku(e.stateNode,t,2),e=ml(e,t,2),e!==null&&(ga(e,2),At(e))}function F(e,t,l){if(e.tag===3)lh(e,e,l);else for(;t!==null;){if(t.tag===3){lh(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(bl===null||!bl.has(n))){e=at(l,e),l=nm(2),n=ml(t,l,2),n!==null&&(am(l,n,t,e),ga(n,2),At(n));break}}t=t.return}}function po(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new xv;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(co=!0,a.add(l),e=_v.bind(null,e,t,l),t.then(e,e))}function _v(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,te===e&&(k&l)===l&&(fe===4||fe===3&&(k&62914560)===k&&300>Xe()-hc?!(J&2)&&$n(e,0):so|=l,Kn===k&&(Kn=0)),At(e)}function nh(e,t){t===0&&(t=Wr()),e=Vl(e,t),e!==null&&(ga(e,t),At(e))}function Tv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),nh(e,l)}function jv(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(j(314))}n!==null&&n.delete(t),nh(e,l)}function Cv(e,t){return js(e,t)}var Sc=null,Fn=null,go=!1,Ac=!1,yo=!1,Al=0;function At(e){e!==Fn&&e.next===null&&(Fn===null?Sc=Fn=e:Fn=Fn.next=e),Ac=!0,go||(go=!0,Ov())}function Wa(e,t){if(!yo&&Ac){yo=!0;do for(var l=!1,n=Sc;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var c=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-Ve(42|e)+1)-1,i&=a&~(c&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,sh(n,i))}else i=k,i=Ti(n,n===te?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(i&3)||pa(n,i)||(l=!0,sh(n,i));n=n.next}while(l);yo=!1}}function zv(){ah()}function ah(){Ac=go=!1;var e=0;Al!==0&&Gv()&&(e=Al);for(var t=Xe(),l=null,n=Sc;n!==null;){var a=n.next,i=ih(n,t);i===0?(n.next=null,l===null?Sc=a:l.next=a,a===null&&(Fn=l)):(l=n,(e!==0||i&3)&&(Ac=!0)),n=a}Se!==0&&Se!==5||Wa(e),Al!==0&&(Al=0)}function ih(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0s)break;var f=u.transferSize,g=u.initiatorType;f&&ph(g)&&(u=u.responseEnd,c+=f*(u"u"?null:document;function jh(e,t,l){var n=Pn;if(n&&typeof t=="string"&&t){var a=lt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Th.has(a)||(Th.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Oe(t,"link",e),Ee(t),n.head.appendChild(t)))}}function $v(e){Qt.D(e),jh("dns-prefetch",e,null)}function Wv(e,t){Qt.C(e,t),jh("preconnect",e,t)}function Fv(e,t,l){Qt.L(e,t,l);var n=Pn;if(n&&e&&t){var a='link[rel="preload"][as="'+lt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+lt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+lt(l.imageSizes)+'"]')):a+='[href="'+lt(e)+'"]';var i=a;switch(t){case"style":i=In(e);break;case"script":i=ea(e)}rt.has(i)||(e=ce({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),rt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(ei(i))||t==="script"&&n.querySelector(ti(i))||(t=n.createElement("link"),Oe(t,"link",e),Ee(t),n.head.appendChild(t)))}}function Pv(e,t){Qt.m(e,t);var l=Pn;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+lt(n)+'"][href="'+lt(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ea(e)}if(!rt.has(i)&&(e=ce({rel:"modulepreload",href:e},t),rt.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ti(i)))return}n=l.createElement("link"),Oe(n,"link",e),Ee(n),l.head.appendChild(n)}}}function Iv(e,t,l){Qt.S(e,t,l);var n=Pn;if(n&&e){var a=Sn(n).hoistableStyles,i=In(e);t=t||"default";var c=a.get(i);if(!c){var s={loading:0,preload:null};if(c=n.querySelector(ei(i)))s.loading=5;else{e=ce({rel:"stylesheet",href:e,"data-precedence":t},l),(l=rt.get(i))&&Ro(e,l);var u=c=n.createElement("link");Ee(u),Oe(u,"link",e),u._p=new Promise(function(r,f){u.onload=r,u.onerror=f}),u.addEventListener("load",function(){s.loading|=1}),u.addEventListener("error",function(){s.loading|=2}),s.loading|=4,jc(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:s},a.set(i,c)}}}function e0(e,t){Qt.X(e,t);var l=Pn;if(l&&e){var n=Sn(l).hoistableScripts,a=ea(e),i=n.get(a);i||(i=l.querySelector(ti(a)),i||(e=ce({src:e,async:!0},t),(t=rt.get(a))&&Do(e,t),i=l.createElement("script"),Ee(i),Oe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function t0(e,t){Qt.M(e,t);var l=Pn;if(l&&e){var n=Sn(l).hoistableScripts,a=ea(e),i=n.get(a);i||(i=l.querySelector(ti(a)),i||(e=ce({src:e,async:!0,type:"module"},t),(t=rt.get(a))&&Do(e,t),i=l.createElement("script"),Ee(i),Oe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Ch(e,t,l,n){var a=(a=nl.current)?Tc(a):null;if(!a)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=In(l.href),l=Sn(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=In(l.href);var i=Sn(a).hoistableStyles,c=i.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=a.querySelector(ei(e)))&&!i._p&&(c.instance=i,c.state.loading=5),rt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},rt.set(e,l),i||l0(a,e,l,c.state))),t&&n===null)throw Error(j(528,""));return c}if(t&&n!==null)throw Error(j(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ea(l),l=Sn(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function In(e){return'href="'+lt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function zh(e){return ce({},e,{"data-precedence":e.precedence,precedence:null})}function l0(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Oe(t,"link",l),Ee(t),e.head.appendChild(t))}function ea(e){return'[src="'+lt(e)+'"]'}function ti(e){return"script[async]"+e}function Oh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+lt(l.href)+'"]');if(n)return t.instance=n,Ee(n),n;var a=ce({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ee(n),Oe(n,"style",a),jc(n,l.precedence,e),t.instance=n;case"stylesheet":a=In(l.href);var i=e.querySelector(ei(a));if(i)return t.state.loading|=4,t.instance=i,Ee(i),i;n=zh(l),(a=rt.get(a))&&Ro(n,a),i=(e.ownerDocument||e).createElement("link"),Ee(i);var c=i;return c._p=new Promise(function(s,u){c.onload=s,c.onerror=u}),Oe(i,"link",n),t.state.loading|=4,jc(i,l.precedence,e),t.instance=i;case"script":return i=ea(l.src),(a=e.querySelector(ti(i)))?(t.instance=a,Ee(a),a):(n=l,(a=rt.get(i))&&(n=ce({},l),Do(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ee(a),Oe(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,jc(n,l.precedence,e));return t.instance}function jc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,c=0;c title"):null)}function n0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Rh(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function a0(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var a=In(n.href),i=t.querySelector(ei(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ee(i);return}i=t.ownerDocument||t,n=zh(n),(a=rt.get(a))&&Ro(n,a),i=i.createElement("link"),Ee(i);var c=i;c._p=new Promise(function(s,u){c.onload=s,c.onerror=u}),Oe(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=zc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Uo=0;function i0(e,t){return e.stylesheets&&e.count===0&&Mc(e,e.stylesheets),0Uo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function zc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Oc=null;function Mc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Oc=new Map,t.forEach(c0,e),Oc=null,zc.call(e))}function c0(e,t){if(!(t.state.loading&4)){var l=Oc.get(e);if(l)var n=l.get(null);else{l=new Map,Oc.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kh)}catch(e){console.error(e)}}Kh(),Or.exports=pi;var h0=Or.exports;const p0=cs(h0);function Zt(e,t,{checkForDefaultPrevented:l=!0}={}){return function(a){if(e==null||e(a),l===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Jh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $h(...e){return t=>{let l=!1;const n=e.map(a=>{const i=Jh(a,t);return!l&&typeof i=="function"&&(l=!0),i});if(l)return()=>{for(let a=0;a{var p;const{scope:d,children:h,...y}=g,b=((p=d==null?void 0:d[e])==null?void 0:p[u])||s,N=S.useMemo(()=>y,Object.values(y));return o.jsx(b.Provider,{value:N,children:h})};r.displayName=i+"Provider";function f(g,d){var b;const h=((b=d==null?void 0:d[e])==null?void 0:b[u])||s,y=S.useContext(h);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${i}\``)}return[r,f]}const a=()=>{const i=l.map(c=>S.createContext(c));return function(s){const u=(s==null?void 0:s[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return a.scopeName=e,[n,g0(a,...t)]}function g0(...e){const t=e[0];if(e.length===1)return t;const l=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const c=n.reduce((s,{useScope:u,scopeName:r})=>{const g=u(i)[`__scope${r}`];return{...s,...g}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return l.scopeName=t.scopeName,l}function y0(e){const t=v0(e),l=S.forwardRef((n,a)=>{const{children:i,...c}=n,s=S.Children.toArray(i),u=s.find(x0);if(u){const r=u.props.children,f=s.map(g=>g===u?S.Children.count(r)>1?S.Children.only(null):S.isValidElement(r)?r.props.children:null:g);return o.jsx(t,{...c,ref:a,children:S.isValidElement(r)?S.cloneElement(r,void 0,f):null})}return o.jsx(t,{...c,ref:a,children:i})});return l.displayName=`${e}.Slot`,l}function v0(e){const t=S.forwardRef((l,n)=>{const{children:a,...i}=l;if(S.isValidElement(a)){const c=A0(a),s=S0(i,a.props);return a.type!==S.Fragment&&(s.ref=n?$h(n,c):c),S.cloneElement(a,s)}return S.Children.count(a)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var b0=Symbol("radix.slottable");function x0(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===b0}function S0(e,t){const l={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?l[n]=(...s)=>{const u=i(...s);return a(...s),u}:a&&(l[n]=a):n==="style"?l[n]={...a,...i}:n==="className"&&(l[n]=[a,i].filter(Boolean).join(" "))}return{...e,...l}}function A0(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,l=t&&"isReactWarning"in t&&t.isReactWarning;return l?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,l=t&&"isReactWarning"in t&&t.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var N0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cl=N0.reduce((e,t)=>{const l=y0(`Primitive.${t}`),n=S.forwardRef((a,i)=>{const{asChild:c,...s}=a,u=c?l:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(u,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function E0(e,t){e&&yi.flushSync(()=>e.dispatchEvent(t))}function Yc(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...l)=>{var n;return(n=t.current)==null?void 0:n.call(t,...l)},[])}function _0(e,t=globalThis==null?void 0:globalThis.document){const l=Yc(e);S.useEffect(()=>{const n=a=>{a.key==="Escape"&&l(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[l,t])}var T0="DismissableLayer",Xo="dismissableLayer.update",j0="dismissableLayer.pointerDownOutside",C0="dismissableLayer.focusOutside",Fh,Ph=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ih=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...u}=e,r=S.useContext(Ph),[f,g]=S.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=S.useState({}),y=nn(t,A=>g(A)),b=Array.from(r.layers),[N]=[...r.layersWithOutsidePointerEventsDisabled].slice(-1),p=b.indexOf(N),m=f?b.indexOf(f):-1,v=r.layersWithOutsidePointerEventsDisabled.size>0,x=m>=p,T=M0(A=>{const E=A.target,w=[...r.branches].some(D=>D.contains(E));!x||w||(a==null||a(A),c==null||c(A),A.defaultPrevented||s==null||s())},d),z=w0(A=>{const E=A.target;[...r.branches].some(D=>D.contains(E))||(i==null||i(A),c==null||c(A),A.defaultPrevented||s==null||s())},d);return _0(A=>{m===r.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},d),S.useEffect(()=>{if(f)return l&&(r.layersWithOutsidePointerEventsDisabled.size===0&&(Fh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),r.layersWithOutsidePointerEventsDisabled.add(f)),r.layers.add(f),ep(),()=>{l&&r.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Fh)}},[f,d,l,r]),S.useEffect(()=>()=>{f&&(r.layers.delete(f),r.layersWithOutsidePointerEventsDisabled.delete(f),ep())},[f,r]),S.useEffect(()=>{const A=()=>h({});return document.addEventListener(Xo,A),()=>document.removeEventListener(Xo,A)},[]),o.jsx(Cl.div,{...u,ref:y,style:{pointerEvents:v?x?"auto":"none":void 0,...e.style},onFocusCapture:Zt(e.onFocusCapture,z.onFocusCapture),onBlurCapture:Zt(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Zt(e.onPointerDownCapture,T.onPointerDownCapture)})});Ih.displayName=T0;var z0="DismissableLayerBranch",O0=S.forwardRef((e,t)=>{const l=S.useContext(Ph),n=S.useRef(null),a=nn(t,n);return S.useEffect(()=>{const i=n.current;if(i)return l.branches.add(i),()=>{l.branches.delete(i)}},[l.branches]),o.jsx(Cl.div,{...e,ref:a})});O0.displayName=z0;function M0(e,t=globalThis==null?void 0:globalThis.document){const l=Yc(e),n=S.useRef(!1),a=S.useRef(()=>{});return S.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let u=function(){tp(j0,l,r,{discrete:!0})};const r={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=u,t.addEventListener("click",a.current,{once:!0})):u()}else t.removeEventListener("click",a.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,l]),{onPointerDownCapture:()=>n.current=!0}}function w0(e,t=globalThis==null?void 0:globalThis.document){const l=Yc(e),n=S.useRef(!1);return S.useEffect(()=>{const a=i=>{i.target&&!n.current&&tp(C0,l,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,l]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ep(){const e=new CustomEvent(Xo);document.dispatchEvent(e)}function tp(e,t,l,{discrete:n}){const a=l.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:l});t&&a.addEventListener(e,t,{once:!0}),n?E0(a,i):a.dispatchEvent(i)}var zl=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},R0=zr[" useId ".trim().toString()]||(()=>{}),D0=0;function U0(e){const[t,l]=S.useState(R0());return zl(()=>{l(n=>n??String(D0++))},[e]),t?`radix-${t}`:""}const H0=["top","right","bottom","left"],Ol=Math.min,Pe=Math.max,Gc=Math.round,qc=Math.floor,Nt=e=>({x:e,y:e}),B0={left:"right",right:"left",bottom:"top",top:"bottom"};function ko(e,t,l){return Pe(e,Ol(t,l))}function Kt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function la(e){return e.split("-")[1]}function Vo(e){return e==="x"?"y":"x"}function Qo(e){return e==="y"?"height":"width"}function Et(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Zo(e){return Vo(Et(e))}function L0(e,t,l){l===void 0&&(l=!1);const n=la(e),a=Zo(e),i=Qo(a);let c=a==="x"?n===(l?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Xc(c)),[c,Xc(c)]}function Y0(e){const t=Xc(e);return[Ko(e),t,Ko(t)]}function Ko(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lp=["left","right"],np=["right","left"],G0=["top","bottom"],q0=["bottom","top"];function X0(e,t,l){switch(e){case"top":case"bottom":return l?t?np:lp:t?lp:np;case"left":case"right":return t?G0:q0;default:return[]}}function k0(e,t,l,n){const a=la(e);let i=X0(Jt(e),l==="start",n);return a&&(i=i.map(c=>c+"-"+a),t&&(i=i.concat(i.map(Ko)))),i}function Xc(e){const t=Jt(e);return B0[t]+e.slice(t.length)}function V0(e){return{top:0,right:0,bottom:0,left:0,...e}}function ap(e){return typeof e!="number"?V0(e):{top:e,right:e,bottom:e,left:e}}function kc(e){const{x:t,y:l,width:n,height:a}=e;return{width:n,height:a,top:l,left:t,right:t+n,bottom:l+a,x:t,y:l}}function ip(e,t,l){let{reference:n,floating:a}=e;const i=Et(t),c=Zo(t),s=Qo(c),u=Jt(t),r=i==="y",f=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,d=n[s]/2-a[s]/2;let h;switch(u){case"top":h={x:f,y:n.y-a.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:g};break;case"left":h={x:n.x-a.width,y:g};break;default:h={x:n.x,y:n.y}}switch(la(t)){case"start":h[c]-=d*(l&&r?-1:1);break;case"end":h[c]+=d*(l&&r?-1:1);break}return h}async function Q0(e,t){var l;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:c,elements:s,strategy:u}=e,{boundary:r="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:d=!1,padding:h=0}=Kt(t,e),y=ap(h),N=s[d?g==="floating"?"reference":"floating":g],p=kc(await i.getClippingRect({element:(l=await(i.isElement==null?void 0:i.isElement(N)))==null||l?N:N.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:r,rootBoundary:f,strategy:u})),m=g==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},T=kc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:v,strategy:u}):m);return{top:(p.top-T.top+y.top)/x.y,bottom:(T.bottom-p.bottom+y.bottom)/x.y,left:(p.left-T.left+y.left)/x.x,right:(T.right-p.right+y.right)/x.x}}const Z0=50,K0=async(e,t,l)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=l,s=c.detectOverflow?c:{...c,detectOverflow:Q0},u=await(c.isRTL==null?void 0:c.isRTL(t));let r=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:g}=ip(r,n,u),d=n,h=0;const y={};for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:l,y:n,placement:a,rects:i,platform:c,elements:s,middlewareData:u}=t,{element:r,padding:f=0}=Kt(e,t)||{};if(r==null)return{};const g=ap(f),d={x:l,y:n},h=Zo(a),y=Qo(h),b=await c.getDimensions(r),N=h==="y",p=N?"top":"left",m=N?"bottom":"right",v=N?"clientHeight":"clientWidth",x=i.reference[y]+i.reference[h]-d[h]-i.floating[y],T=d[h]-i.reference[h],z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(r));let A=z?z[v]:0;(!A||!await(c.isElement==null?void 0:c.isElement(z)))&&(A=s.floating[v]||i.floating[y]);const E=x/2-T/2,w=A/2-b[y]/2-1,D=Ol(g[p],w),Z=Ol(g[m],w),$=D,le=A-b[y]-Z,P=A/2-b[y]/2+E,ae=ko($,P,le),C=!u.arrow&&la(a)!=null&&P!==ae&&i.reference[y]/2-(P<$?D:Z)-b[y]/2<0,_=C?P<$?P-$:P-le:0;return{[h]:d[h]+_,data:{[h]:ae,centerOffset:P-ae-_,...C&&{alignmentOffset:_}},reset:C}}}),$0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var l,n;const{placement:a,middlewareData:i,rects:c,initialPlacement:s,platform:u,elements:r}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...N}=Kt(e,t);if((l=i.arrow)!=null&&l.alignmentOffset)return{};const p=Jt(a),m=Et(s),v=Jt(s)===s,x=await(u.isRTL==null?void 0:u.isRTL(r.floating)),T=d||(v||!b?[Xc(s)]:Y0(s)),z=y!=="none";!d&&z&&T.push(...k0(s,b,y,x));const A=[s,...T],E=await u.detectOverflow(t,N),w=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&w.push(E[p]),g){const P=L0(a,c,x);w.push(E[P[0]],E[P[1]])}if(D=[...D,{placement:a,overflows:w}],!w.every(P=>P<=0)){var Z,$;const P=(((Z=i.flip)==null?void 0:Z.index)||0)+1,ae=A[P];if(ae&&(!(g==="alignment"?m!==Et(ae):!1)||D.every(M=>Et(M.placement)===m?M.overflows[0]>0:!0)))return{data:{index:P,overflows:D},reset:{placement:ae}};let C=($=D.filter(_=>_.overflows[0]<=0).sort((_,M)=>_.overflows[1]-M.overflows[1])[0])==null?void 0:$.placement;if(!C)switch(h){case"bestFit":{var le;const _=(le=D.filter(M=>{if(z){const H=Et(M.placement);return H===m||H==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(H=>H>0).reduce((H,O)=>H+O,0)]).sort((M,H)=>M[1]-H[1])[0])==null?void 0:le[0];_&&(C=_);break}case"initialPlacement":C=s;break}if(a!==C)return{reset:{placement:C}}}return{}}}};function cp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sp(e){return H0.some(t=>e[t]>=0)}const W0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:l,platform:n}=t,{strategy:a="referenceHidden",...i}=Kt(e,t);switch(a){case"referenceHidden":{const c=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=cp(c,l.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:sp(s)}}}case"escaped":{const c=await n.detectOverflow(t,{...i,altBoundary:!0}),s=cp(c,l.floating);return{data:{escapedOffsets:s,escaped:sp(s)}}}default:return{}}}}},up=new Set(["left","top"]);async function F0(e,t){const{placement:l,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),c=Jt(l),s=la(l),u=Et(l)==="y",r=up.has(c)?-1:1,f=i&&u?-1:1,g=Kt(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof y=="number"&&(h=s==="end"?y*-1:y),u?{x:h*f,y:d*r}:{x:d*r,y:h*f}}const P0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var l,n;const{x:a,y:i,placement:c,middlewareData:s}=t,u=await F0(t,e);return c===((l=s.offset)==null?void 0:l.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+u.x,y:i+u.y,data:{...u,placement:c}}}}},I0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:n,placement:a,platform:i}=t,{mainAxis:c=!0,crossAxis:s=!1,limiter:u={fn:p=>{let{x:m,y:v}=p;return{x:m,y:v}}},...r}=Kt(e,t),f={x:l,y:n},g=await i.detectOverflow(t,r),d=Et(Jt(a)),h=Vo(d);let y=f[h],b=f[d];if(c){const p=h==="y"?"top":"left",m=h==="y"?"bottom":"right",v=y+g[p],x=y-g[m];y=ko(v,y,x)}if(s){const p=d==="y"?"top":"left",m=d==="y"?"bottom":"right",v=b+g[p],x=b-g[m];b=ko(v,b,x)}const N=u.fn({...t,[h]:y,[d]:b});return{...N,data:{x:N.x-l,y:N.y-n,enabled:{[h]:c,[d]:s}}}}}},eb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:l,y:n,placement:a,rects:i,middlewareData:c}=t,{offset:s=0,mainAxis:u=!0,crossAxis:r=!0}=Kt(e,t),f={x:l,y:n},g=Et(a),d=Vo(g);let h=f[d],y=f[g];const b=Kt(s,t),N=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const v=d==="y"?"height":"width",x=i.reference[d]-i.floating[v]+N.mainAxis,T=i.reference[d]+i.reference[v]-N.mainAxis;hT&&(h=T)}if(r){var p,m;const v=d==="y"?"width":"height",x=up.has(Jt(a)),T=i.reference[g]-i.floating[v]+(x&&((p=c.offset)==null?void 0:p[g])||0)+(x?0:N.crossAxis),z=i.reference[g]+i.reference[v]+(x?0:((m=c.offset)==null?void 0:m[g])||0)-(x?N.crossAxis:0);yz&&(y=z)}return{[d]:h,[g]:y}}}},tb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var l,n;const{placement:a,rects:i,platform:c,elements:s}=t,{apply:u=()=>{},...r}=Kt(e,t),f=await c.detectOverflow(t,r),g=Jt(a),d=la(a),h=Et(a)==="y",{width:y,height:b}=i.floating;let N,p;g==="top"||g==="bottom"?(N=g,p=d===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(p=g,N=d==="end"?"top":"bottom");const m=b-f.top-f.bottom,v=y-f.left-f.right,x=Ol(b-f[N],m),T=Ol(y-f[p],v),z=!t.middlewareData.shift;let A=x,E=T;if((l=t.middlewareData.shift)!=null&&l.enabled.x&&(E=v),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=m),z&&!d){const D=Pe(f.left,0),Z=Pe(f.right,0),$=Pe(f.top,0),le=Pe(f.bottom,0);h?E=y-2*(D!==0||Z!==0?D+Z:Pe(f.left,f.right)):A=b-2*($!==0||le!==0?$+le:Pe(f.top,f.bottom))}await u({...t,availableWidth:E,availableHeight:A});const w=await c.getDimensions(s.floating);return y!==w.width||b!==w.height?{reset:{rects:!0}}:{}}}};function Vc(){return typeof window<"u"}function na(e){return op(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _t(e){var t;return(t=(op(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function op(e){return Vc()?e instanceof Node||e instanceof Ie(e).Node:!1}function pt(e){return Vc()?e instanceof Element||e instanceof Ie(e).Element:!1}function $t(e){return Vc()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function rp(e){return!Vc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}function ci(e){const{overflow:t,overflowX:l,overflowY:n,display:a}=gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+l)&&a!=="inline"&&a!=="contents"}function lb(e){return/^(table|td|th)$/.test(na(e))}function Qc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const nb=/transform|translate|scale|rotate|perspective|filter/,ab=/paint|layout|strict|content/,an=e=>!!e&&e!=="none";let Jo;function $o(e){const t=pt(e)?gt(e):e;return an(t.transform)||an(t.translate)||an(t.scale)||an(t.rotate)||an(t.perspective)||!Wo()&&(an(t.backdropFilter)||an(t.filter))||nb.test(t.willChange||"")||ab.test(t.contain||"")}function ib(e){let t=Ml(e);for(;$t(t)&&!aa(t);){if($o(t))return t;if(Qc(t))return null;t=Ml(t)}return null}function Wo(){return Jo==null&&(Jo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jo}function aa(e){return/^(html|body|#document)$/.test(na(e))}function gt(e){return Ie(e).getComputedStyle(e)}function Zc(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ml(e){if(na(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rp(e)&&e.host||_t(e);return rp(t)?t.host:t}function fp(e){const t=Ml(e);return aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:$t(t)&&ci(t)?t:fp(t)}function si(e,t,l){var n;t===void 0&&(t=[]),l===void 0&&(l=!0);const a=fp(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=Ie(a);if(i){const s=Fo(c);return t.concat(c,c.visualViewport||[],ci(a)?a:[],s&&l?si(s):[])}else return t.concat(a,si(a,[],l))}function Fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dp(e){const t=gt(e);let l=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=$t(e),i=a?e.offsetWidth:l,c=a?e.offsetHeight:n,s=Gc(l)!==i||Gc(n)!==c;return s&&(l=i,n=c),{width:l,height:n,$:s}}function Po(e){return pt(e)?e:e.contextElement}function ia(e){const t=Po(e);if(!$t(t))return Nt(1);const l=t.getBoundingClientRect(),{width:n,height:a,$:i}=dp(t);let c=(i?Gc(l.width):l.width)/n,s=(i?Gc(l.height):l.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const cb=Nt(0);function mp(e){const t=Ie(e);return!Wo()||!t.visualViewport?cb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sb(e,t,l){return t===void 0&&(t=!1),!l||t&&l!==Ie(e)?!1:t}function cn(e,t,l,n){t===void 0&&(t=!1),l===void 0&&(l=!1);const a=e.getBoundingClientRect(),i=Po(e);let c=Nt(1);t&&(n?pt(n)&&(c=ia(n)):c=ia(e));const s=sb(i,l,n)?mp(i):Nt(0);let u=(a.left+s.x)/c.x,r=(a.top+s.y)/c.y,f=a.width/c.x,g=a.height/c.y;if(i){const d=Ie(i),h=n&&pt(n)?Ie(n):n;let y=d,b=Fo(y);for(;b&&n&&h!==y;){const N=ia(b),p=b.getBoundingClientRect(),m=gt(b),v=p.left+(b.clientLeft+parseFloat(m.paddingLeft))*N.x,x=p.top+(b.clientTop+parseFloat(m.paddingTop))*N.y;u*=N.x,r*=N.y,f*=N.x,g*=N.y,u+=v,r+=x,y=Ie(b),b=Fo(y)}}return kc({width:f,height:g,x:u,y:r})}function Kc(e,t){const l=Zc(e).scrollLeft;return t?t.left+l:cn(_t(e)).left+l}function hp(e,t){const l=e.getBoundingClientRect(),n=l.left+t.scrollLeft-Kc(e,l),a=l.top+t.scrollTop;return{x:n,y:a}}function ub(e){let{elements:t,rect:l,offsetParent:n,strategy:a}=e;const i=a==="fixed",c=_t(n),s=t?Qc(t.floating):!1;if(n===c||s&&i)return l;let u={scrollLeft:0,scrollTop:0},r=Nt(1);const f=Nt(0),g=$t(n);if((g||!g&&!i)&&((na(n)!=="body"||ci(c))&&(u=Zc(n)),g)){const h=cn(n);r=ia(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const d=c&&!g&&!i?hp(c,u):Nt(0);return{width:l.width*r.x,height:l.height*r.y,x:l.x*r.x-u.scrollLeft*r.x+f.x+d.x,y:l.y*r.y-u.scrollTop*r.y+f.y+d.y}}function ob(e){return Array.from(e.getClientRects())}function rb(e){const t=_t(e),l=Zc(e),n=e.ownerDocument.body,a=Pe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-l.scrollLeft+Kc(e);const s=-l.scrollTop;return gt(n).direction==="rtl"&&(c+=Pe(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:s}}const pp=25;function fb(e,t){const l=Ie(e),n=_t(e),a=l.visualViewport;let i=n.clientWidth,c=n.clientHeight,s=0,u=0;if(a){i=a.width,c=a.height;const f=Wo();(!f||f&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}const r=Kc(n);if(r<=0){const f=n.ownerDocument,g=f.body,d=getComputedStyle(g),h=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,y=Math.abs(n.clientWidth-g.clientWidth-h);y<=pp&&(i-=y)}else r<=pp&&(i+=r);return{width:i,height:c,x:s,y:u}}function db(e,t){const l=cn(e,!0,t==="fixed"),n=l.top+e.clientTop,a=l.left+e.clientLeft,i=$t(e)?ia(e):Nt(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,u=a*i.x,r=n*i.y;return{width:c,height:s,x:u,y:r}}function gp(e,t,l){let n;if(t==="viewport")n=fb(e,l);else if(t==="document")n=rb(_t(e));else if(pt(t))n=db(t,l);else{const a=mp(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return kc(n)}function yp(e,t){const l=Ml(e);return l===t||!pt(l)||aa(l)?!1:gt(l).position==="fixed"||yp(l,t)}function mb(e,t){const l=t.get(e);if(l)return l;let n=si(e,[],!1).filter(s=>pt(s)&&na(s)!=="body"),a=null;const i=gt(e).position==="fixed";let c=i?Ml(e):e;for(;pt(c)&&!aa(c);){const s=gt(c),u=$o(c);!u&&s.position==="fixed"&&(a=null),(i?!u&&!a:!u&&s.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ci(c)&&!u&&yp(e,c))?n=n.filter(f=>f!==c):a=s,c=Ml(c)}return t.set(e,n),n}function hb(e){let{element:t,boundary:l,rootBoundary:n,strategy:a}=e;const c=[...l==="clippingAncestors"?Qc(t)?[]:mb(t,this._c):[].concat(l),n],s=gp(t,c[0],a);let u=s.top,r=s.right,f=s.bottom,g=s.left;for(let d=1;d{c(!1,1e-7)},1e3)}A===1&&!xp(r,e.getBoundingClientRect())&&c(),x=!1}try{l=new IntersectionObserver(T,{...v,root:a.ownerDocument})}catch{l=new IntersectionObserver(T,v)}l.observe(e)}return c(!0),i}function Sb(e,t,l,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,r=Po(e),f=a||i?[...r?si(r):[],...t?si(t):[]]:[];f.forEach(p=>{a&&p.addEventListener("scroll",l,{passive:!0}),i&&p.addEventListener("resize",l)});const g=r&&s?xb(r,l):null;let d=-1,h=null;c&&(h=new ResizeObserver(p=>{let[m]=p;m&&m.target===r&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),l()}),r&&!u&&h.observe(r),t&&h.observe(t));let y,b=u?cn(e):null;u&&N();function N(){const p=cn(e);b&&!xp(b,p)&&l(),b=p,y=requestAnimationFrame(N)}return l(),()=>{var p;f.forEach(m=>{a&&m.removeEventListener("scroll",l),i&&m.removeEventListener("resize",l)}),g==null||g(),(p=h)==null||p.disconnect(),h=null,u&&cancelAnimationFrame(y)}}const Ab=P0,Nb=I0,Eb=$0,_b=tb,Tb=W0,Sp=J0,jb=eb,Cb=(e,t,l)=>{const n=new Map,a={platform:bb,...l},i={...a.platform,_c:n};return K0(e,t,{...a,platform:i})};var zb=typeof document<"u",Ob=function(){},Jc=zb?S.useLayoutEffect:Ob;function $c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let l,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(l=e.length,l!==t.length)return!1;for(n=l;n--!==0;)if(!$c(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),l=a.length,l!==Object.keys(t).length)return!1;for(n=l;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=l;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!$c(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ap(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Np(e,t){const l=Ap(e);return Math.round(t*l)/l}function er(e){const t=S.useRef(e);return Jc(()=>{t.current=e}),t}function Mb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:l="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:u,open:r}=e,[f,g]=S.useState({x:0,y:0,strategy:l,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=S.useState(n);$c(d,n)||h(n);const[y,b]=S.useState(null),[N,p]=S.useState(null),m=S.useCallback(M=>{M!==z.current&&(z.current=M,b(M))},[]),v=S.useCallback(M=>{M!==A.current&&(A.current=M,p(M))},[]),x=i||y,T=c||N,z=S.useRef(null),A=S.useRef(null),E=S.useRef(f),w=u!=null,D=er(u),Z=er(a),$=er(r),le=S.useCallback(()=>{if(!z.current||!A.current)return;const M={placement:t,strategy:l,middleware:d};Z.current&&(M.platform=Z.current),Cb(z.current,A.current,M).then(H=>{const O={...H,isPositioned:$.current!==!1};P.current&&!$c(E.current,O)&&(E.current=O,yi.flushSync(()=>{g(O)}))})},[d,t,l,Z,$]);Jc(()=>{r===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,g(M=>({...M,isPositioned:!1})))},[r]);const P=S.useRef(!1);Jc(()=>(P.current=!0,()=>{P.current=!1}),[]),Jc(()=>{if(x&&(z.current=x),T&&(A.current=T),x&&T){if(D.current)return D.current(x,T,le);le()}},[x,T,le,D,w]);const ae=S.useMemo(()=>({reference:z,floating:A,setReference:m,setFloating:v}),[m,v]),C=S.useMemo(()=>({reference:x,floating:T}),[x,T]),_=S.useMemo(()=>{const M={position:l,left:0,top:0};if(!C.floating)return M;const H=Np(C.floating,f.x),O=Np(C.floating,f.y);return s?{...M,transform:"translate("+H+"px, "+O+"px)",...Ap(C.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:H,top:O}},[l,s,C.floating,f.x,f.y]);return S.useMemo(()=>({...f,update:le,refs:ae,elements:C,floatingStyles:_}),[f,le,ae,C,_])}const wb=e=>{function t(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:e,fn(l){const{element:n,padding:a}=typeof e=="function"?e(l):e;return n&&t(n)?n.current!=null?Sp({element:n.current,padding:a}).fn(l):{}:n?Sp({element:n,padding:a}).fn(l):{}}}},Rb=(e,t)=>{const l=Ab(e);return{name:l.name,fn:l.fn,options:[e,t]}},Db=(e,t)=>{const l=Nb(e);return{name:l.name,fn:l.fn,options:[e,t]}},Ub=(e,t)=>({fn:jb(e).fn,options:[e,t]}),Hb=(e,t)=>{const l=Eb(e);return{name:l.name,fn:l.fn,options:[e,t]}},Bb=(e,t)=>{const l=_b(e);return{name:l.name,fn:l.fn,options:[e,t]}},Lb=(e,t)=>{const l=Tb(e);return{name:l.name,fn:l.fn,options:[e,t]}},Yb=(e,t)=>{const l=wb(e);return{name:l.name,fn:l.fn,options:[e,t]}};var Gb="Arrow",Ep=S.forwardRef((e,t)=>{const{children:l,width:n=10,height:a=5,...i}=e;return o.jsx(Cl.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?l:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ep.displayName=Gb;var qb=Ep;function Xb(e){const[t,l]=S.useState(void 0);return zl(()=>{if(e){l({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let c,s;if("borderBoxSize"in i){const u=i.borderBoxSize,r=Array.isArray(u)?u[0]:u;c=r.inlineSize,s=r.blockSize}else c=e.offsetWidth,s=e.offsetHeight;l({width:c,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else l(void 0)},[e]),t}var tr="Popper",[_p,Tp]=Wh(tr),[kb,jp]=_p(tr),Cp=e=>{const{__scopePopper:t,children:l}=e,[n,a]=S.useState(null);return o.jsx(kb,{scope:t,anchor:n,onAnchorChange:a,children:l})};Cp.displayName=tr;var zp="PopperAnchor",Op=S.forwardRef((e,t)=>{const{__scopePopper:l,virtualRef:n,...a}=e,i=jp(zp,l),c=S.useRef(null),s=nn(t,c),u=S.useRef(null);return S.useEffect(()=>{const r=u.current;u.current=(n==null?void 0:n.current)||c.current,r!==u.current&&i.onAnchorChange(u.current)}),n?null:o.jsx(Cl.div,{...a,ref:s})});Op.displayName=zp;var lr="PopperContent",[Vb,Qb]=_p(lr),Mp=S.forwardRef((e,t)=>{var on,fi,pe,di,rn,fn;const{__scopePopper:l,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:r=[],collisionPadding:f=0,sticky:g="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:y,...b}=e,N=jp(lr,l),[p,m]=S.useState(null),v=nn(t,el=>m(el)),[x,T]=S.useState(null),z=Xb(x),A=(z==null?void 0:z.width)??0,E=(z==null?void 0:z.height)??0,w=n+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Z=Array.isArray(r)?r:[r],$=Z.length>0,le={padding:D,boundary:Z.filter(Kb),altBoundary:$},{refs:P,floatingStyles:ae,placement:C,isPositioned:_,middlewareData:M}=Mb({strategy:"fixed",placement:w,whileElementsMounted:(...el)=>Sb(...el,{animationFrame:h==="always"}),elements:{reference:N.anchor},middleware:[Rb({mainAxis:a+E,alignmentAxis:c}),u&&Db({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Ub():void 0,...le}),u&&Hb({...le}),Bb({...le,apply:({elements:el,rects:dn,availableWidth:Zx,availableHeight:Kx})=>{const{width:Jx,height:$x}=dn.reference,is=el.floating.style;is.setProperty("--radix-popper-available-width",`${Zx}px`),is.setProperty("--radix-popper-available-height",`${Kx}px`),is.setProperty("--radix-popper-anchor-width",`${Jx}px`),is.setProperty("--radix-popper-anchor-height",`${$x}px`)}}),x&&Yb({element:x,padding:s}),Jb({arrowWidth:A,arrowHeight:E}),d&&Lb({strategy:"referenceHidden",...le})]}),[H,O]=Dp(C),ft=Yc(y);zl(()=>{_&&(ft==null||ft())},[_,ft]);const It=(on=M.arrow)==null?void 0:on.x,Hl=(fi=M.arrow)==null?void 0:fi.y,et=((pe=M.arrow)==null?void 0:pe.centerOffset)!==0,[de,Me]=S.useState();return zl(()=>{p&&Me(window.getComputedStyle(p).zIndex)},[p]),o.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:_?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(di=M.transformOrigin)==null?void 0:di.x,(rn=M.transformOrigin)==null?void 0:rn.y].join(" "),...((fn=M.hide)==null?void 0:fn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(Vb,{scope:l,placedSide:H,onArrowChange:T,arrowX:It,arrowY:Hl,shouldHideArrow:et,children:o.jsx(Cl.div,{"data-side":H,"data-align":O,...b,ref:v,style:{...b.style,animation:_?void 0:"none"}})})})});Mp.displayName=lr;var wp="PopperArrow",Zb={top:"bottom",right:"left",bottom:"top",left:"right"},Rp=S.forwardRef(function(t,l){const{__scopePopper:n,...a}=t,i=Qb(wp,n),c=Zb[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:o.jsx(qb,{...a,ref:l,style:{...a.style,display:"block"}})})});Rp.displayName=wp;function Kb(e){return e!==null}var Jb=e=>({name:"transformOrigin",options:e,fn(t){var N,p,m;const{placement:l,rects:n,middlewareData:a}=t,c=((N=a.arrow)==null?void 0:N.centerOffset)!==0,s=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[r,f]=Dp(l),g={start:"0%",center:"50%",end:"100%"}[f],d=(((p=a.arrow)==null?void 0:p.x)??0)+s/2,h=(((m=a.arrow)==null?void 0:m.y)??0)+u/2;let y="",b="";return r==="bottom"?(y=c?g:`${d}px`,b=`${-u}px`):r==="top"?(y=c?g:`${d}px`,b=`${n.floating.height+u}px`):r==="right"?(y=`${-u}px`,b=c?g:`${h}px`):r==="left"&&(y=`${n.floating.width+u}px`,b=c?g:`${h}px`),{data:{x:y,y:b}}}});function Dp(e){const[t,l="center"]=e.split("-");return[t,l]}var $b=Cp,Wb=Op,Fb=Mp,Pb=Rp,Ib="Portal",Up=S.forwardRef((e,t)=>{var s;const{container:l,...n}=e,[a,i]=S.useState(!1);zl(()=>i(!0),[]);const c=l||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return c?Gg.createPortal(o.jsx(Cl.div,{...n,ref:t}),c):null});Up.displayName=Ib;function e1(e,t){return S.useReducer((l,n)=>t[l][n]??l,e)}var nr=e=>{const{present:t,children:l}=e,n=t1(t),a=typeof l=="function"?l({present:n.isPresent}):S.Children.only(l),i=nn(n.ref,l1(a));return typeof l=="function"||n.isPresent?S.cloneElement(a,{ref:i}):null};nr.displayName="Presence";function t1(e){const[t,l]=S.useState(),n=S.useRef(null),a=S.useRef(e),i=S.useRef("none"),c=e?"mounted":"unmounted",[s,u]=e1(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const r=Wc(n.current);i.current=s==="mounted"?r:"none"},[s]),zl(()=>{const r=n.current,f=a.current;if(f!==e){const d=i.current,h=Wc(r);e?u("MOUNT"):h==="none"||(r==null?void 0:r.display)==="none"?u("UNMOUNT"):u(f&&d!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),zl(()=>{if(t){let r;const f=t.ownerDocument.defaultView??window,g=h=>{const b=Wc(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&b&&(u("ANIMATION_END"),!a.current)){const N=t.style.animationFillMode;t.style.animationFillMode="forwards",r=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},d=h=>{h.target===t&&(i.current=Wc(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{f.clearTimeout(r),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(r=>{n.current=r?getComputedStyle(r):null,l(r)},[])}}function Wc(e){return(e==null?void 0:e.animationName)||"none"}function l1(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,l=t&&"isReactWarning"in t&&t.isReactWarning;return l?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,l=t&&"isReactWarning"in t&&t.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var n1=Symbol("radix.slottable");function a1(e){const t=({children:l})=>o.jsx(o.Fragment,{children:l});return t.displayName=`${e}.Slottable`,t.__radixId=n1,t}var i1=zr[" useInsertionEffect ".trim().toString()]||zl;function c1({prop:e,defaultProp:t,onChange:l=()=>{},caller:n}){const[a,i,c]=s1({defaultProp:t,onChange:l}),s=e!==void 0,u=s?e:a;{const f=S.useRef(e!==void 0);S.useEffect(()=>{const g=f.current;g!==s&&console.warn(`${n} is changing from ${g?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,n])}const r=S.useCallback(f=>{var g;if(s){const d=u1(f)?f(e):f;d!==e&&((g=c.current)==null||g.call(c,d))}else i(f)},[s,e,i,c]);return[u,r]}function s1({defaultProp:e,onChange:t}){const[l,n]=S.useState(e),a=S.useRef(l),i=S.useRef(t);return i1(()=>{i.current=t},[t]),S.useEffect(()=>{var c;a.current!==l&&((c=i.current)==null||c.call(i,l),a.current=l)},[l,a]),[l,n,i]}function u1(e){return typeof e=="function"}var o1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),r1="VisuallyHidden",Hp=S.forwardRef((e,t)=>o.jsx(Cl.span,{...e,ref:t,style:{...o1,...e.style}}));Hp.displayName=r1;var f1=Hp,[Fc]=Wh("Tooltip",[Tp]),Pc=Tp(),Bp="TooltipProvider",d1=700,ar="tooltip.open",[m1,ir]=Fc(Bp),Lp=e=>{const{__scopeTooltip:t,delayDuration:l=d1,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,c=S.useRef(!0),s=S.useRef(!1),u=S.useRef(0);return S.useEffect(()=>{const r=u.current;return()=>window.clearTimeout(r)},[]),o.jsx(m1,{scope:t,isOpenDelayedRef:c,delayDuration:l,onOpen:S.useCallback(()=>{window.clearTimeout(u.current),c.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>c.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:S.useCallback(r=>{s.current=r},[]),disableHoverableContent:a,children:i})};Lp.displayName=Bp;var ui="Tooltip",[h1,oi]=Fc(ui),Yp=e=>{const{__scopeTooltip:t,children:l,open:n,defaultOpen:a,onOpenChange:i,disableHoverableContent:c,delayDuration:s}=e,u=ir(ui,e.__scopeTooltip),r=Pc(t),[f,g]=S.useState(null),d=U0(),h=S.useRef(0),y=c??u.disableHoverableContent,b=s??u.delayDuration,N=S.useRef(!1),[p,m]=c1({prop:n,defaultProp:a??!1,onChange:A=>{A?(u.onOpen(),document.dispatchEvent(new CustomEvent(ar))):u.onClose(),i==null||i(A)},caller:ui}),v=S.useMemo(()=>p?N.current?"delayed-open":"instant-open":"closed",[p]),x=S.useCallback(()=>{window.clearTimeout(h.current),h.current=0,N.current=!1,m(!0)},[m]),T=S.useCallback(()=>{window.clearTimeout(h.current),h.current=0,m(!1)},[m]),z=S.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{N.current=!0,m(!0),h.current=0},b)},[b,m]);return S.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),o.jsx($b,{...r,children:o.jsx(h1,{scope:t,contentId:d,open:p,stateAttribute:v,trigger:f,onTriggerChange:g,onTriggerEnter:S.useCallback(()=>{u.isOpenDelayedRef.current?z():x()},[u.isOpenDelayedRef,z,x]),onTriggerLeave:S.useCallback(()=>{y?T():(window.clearTimeout(h.current),h.current=0)},[T,y]),onOpen:x,onClose:T,disableHoverableContent:y,children:l})})};Yp.displayName=ui;var cr="TooltipTrigger",Gp=S.forwardRef((e,t)=>{const{__scopeTooltip:l,...n}=e,a=oi(cr,l),i=ir(cr,l),c=Pc(l),s=S.useRef(null),u=nn(t,s,a.onTriggerChange),r=S.useRef(!1),f=S.useRef(!1),g=S.useCallback(()=>r.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),o.jsx(Wb,{asChild:!0,...c,children:o.jsx(Cl.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:u,onPointerMove:Zt(e.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:Zt(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:Zt(e.onPointerDown,()=>{a.open&&a.onClose(),r.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Zt(e.onFocus,()=>{r.current||a.onOpen()}),onBlur:Zt(e.onBlur,a.onClose),onClick:Zt(e.onClick,a.onClose)})})});Gp.displayName=cr;var sr="TooltipPortal",[p1,g1]=Fc(sr,{forceMount:void 0}),qp=e=>{const{__scopeTooltip:t,forceMount:l,children:n,container:a}=e,i=oi(sr,t);return o.jsx(p1,{scope:t,forceMount:l,children:o.jsx(nr,{present:l||i.open,children:o.jsx(Up,{asChild:!0,container:a,children:n})})})};qp.displayName=sr;var ca="TooltipContent",Xp=S.forwardRef((e,t)=>{const l=g1(ca,e.__scopeTooltip),{forceMount:n=l.forceMount,side:a="top",...i}=e,c=oi(ca,e.__scopeTooltip);return o.jsx(nr,{present:n||c.open,children:c.disableHoverableContent?o.jsx(kp,{side:a,...i,ref:t}):o.jsx(y1,{side:a,...i,ref:t})})}),y1=S.forwardRef((e,t)=>{const l=oi(ca,e.__scopeTooltip),n=ir(ca,e.__scopeTooltip),a=S.useRef(null),i=nn(t,a),[c,s]=S.useState(null),{trigger:u,onClose:r}=l,f=a.current,{onPointerInTransitChange:g}=n,d=S.useCallback(()=>{s(null),g(!1)},[g]),h=S.useCallback((y,b)=>{const N=y.currentTarget,p={x:y.clientX,y:y.clientY},m=S1(p,N.getBoundingClientRect()),v=A1(p,m),x=N1(b.getBoundingClientRect()),T=_1([...v,...x]);s(T),g(!0)},[g]);return S.useEffect(()=>()=>d(),[d]),S.useEffect(()=>{if(u&&f){const y=N=>h(N,f),b=N=>h(N,u);return u.addEventListener("pointerleave",y),f.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",b)}}},[u,f,h,d]),S.useEffect(()=>{if(c){const y=b=>{const N=b.target,p={x:b.clientX,y:b.clientY},m=(u==null?void 0:u.contains(N))||(f==null?void 0:f.contains(N)),v=!E1(p,c);m?d():v&&(d(),r())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,f,c,r,d]),o.jsx(kp,{...e,ref:i})}),[v1,b1]=Fc(ui,{isInside:!1}),x1=a1("TooltipContent"),kp=S.forwardRef((e,t)=>{const{__scopeTooltip:l,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:c,...s}=e,u=oi(ca,l),r=Pc(l),{onClose:f}=u;return S.useEffect(()=>(document.addEventListener(ar,f),()=>document.removeEventListener(ar,f)),[f]),S.useEffect(()=>{if(u.trigger){const g=d=>{const h=d.target;h!=null&&h.contains(u.trigger)&&f()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[u.trigger,f]),o.jsx(Ih,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:g=>g.preventDefault(),onDismiss:f,children:o.jsxs(Fb,{"data-state":u.stateAttribute,...r,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(x1,{children:n}),o.jsx(v1,{scope:l,isInside:!0,children:o.jsx(f1,{id:u.contentId,role:"tooltip",children:a||n})})]})})});Xp.displayName=ca;var Vp="TooltipArrow",Qp=S.forwardRef((e,t)=>{const{__scopeTooltip:l,...n}=e,a=Pc(l);return b1(Vp,l).isInside?null:o.jsx(Pb,{...a,...n,ref:t})});Qp.displayName=Vp;function S1(e,t){const l=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(l,n,a,i)){case i:return"left";case a:return"right";case l:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function A1(e,t,l=5){const n=[];switch(t){case"top":n.push({x:e.x-l,y:e.y+l},{x:e.x+l,y:e.y+l});break;case"bottom":n.push({x:e.x-l,y:e.y-l},{x:e.x+l,y:e.y-l});break;case"left":n.push({x:e.x+l,y:e.y-l},{x:e.x+l,y:e.y+l});break;case"right":n.push({x:e.x-l,y:e.y-l},{x:e.x-l,y:e.y+l});break}return n}function N1(e){const{top:t,right:l,bottom:n,left:a}=e;return[{x:a,y:t},{x:l,y:t},{x:l,y:n},{x:a,y:n}]}function E1(e,t){const{x:l,y:n}=e;let a=!1;for(let i=0,c=t.length-1;in!=d>n&&l<(g-r)*(n-f)/(d-f)+r&&(a=!a)}return a}function _1(e){const t=e.slice();return t.sort((l,n)=>l.xn.x?1:l.yn.y?1:0),T1(t)}function T1(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n=2;){const i=t[t.length-1],c=t[t.length-2];if((i.x-c.x)*(a.y-c.y)>=(i.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const l=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;l.length>=2;){const i=l[l.length-1],c=l[l.length-2];if((i.x-c.x)*(a.y-c.y)>=(i.y-c.y)*(a.x-c.x))l.pop();else break}l.push(a)}return l.pop(),t.length===1&&l.length===1&&t[0].x===l[0].x&&t[0].y===l[0].y?t:t.concat(l)}var j1=Lp,C1=Yp,z1=Gp,O1=qp,M1=Xp,w1=Qp;function Zp(e){var t,l,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{const l=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),Kp=(e=new Map,t=null,l)=>({nextPart:e,validators:t,classGroupId:l}),Ic="-",Jp=[],H1="arbitrary..",B1=e=>{const t=Y1(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return L1(c);const s=c.split(Ic),u=s[0]===""&&s.length>1?1:0;return $p(s,u,t)},getConflictingClassGroupIds:(c,s)=>{if(s){const u=n[c],r=l[c];return u?r?D1(r,u):u:r||Jp}return l[c]||Jp}}},$p=(e,t,l)=>{if(e.length-t===0)return l.classGroupId;const a=e[t],i=l.nextPart.get(a);if(i){const r=$p(e,t+1,i);if(r)return r}const c=l.validators;if(c===null)return;const s=t===0?e.join(Ic):e.slice(t).join(Ic),u=c.length;for(let r=0;re.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),l=t.indexOf(":"),n=t.slice(0,l);return n?H1+n:void 0})(),Y1=e=>{const{theme:t,classGroups:l}=e;return G1(l,t)},G1=(e,t)=>{const l=Kp();for(const n in e){const a=e[n];ur(a,l,n,t)}return l},ur=(e,t,l,n)=>{const a=e.length;for(let i=0;i{if(typeof e=="string"){X1(e,t,l);return}if(typeof e=="function"){k1(e,t,l,n);return}V1(e,t,l,n)},X1=(e,t,l)=>{const n=e===""?t:Wp(t,e);n.classGroupId=l},k1=(e,t,l,n)=>{if(Q1(e)){ur(e(n),t,l,n);return}t.validators===null&&(t.validators=[]),t.validators.push(U1(l,e))},V1=(e,t,l,n)=>{const a=Object.entries(e),i=a.length;for(let c=0;c{let l=e;const n=t.split(Ic),a=n.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,Z1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,l=Object.create(null),n=Object.create(null);const a=(i,c)=>{l[i]=c,t++,t>e&&(t=0,n=l,l=Object.create(null))};return{get(i){let c=l[i];if(c!==void 0)return c;if((c=n[i])!==void 0)return a(i,c),c},set(i,c){i in l?l[i]=c:a(i,c)}}},or="!",Fp=":",K1=[],Pp=(e,t,l,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:l,maybePostfixModifierPosition:n,isExternal:a}),J1=e=>{const{prefix:t,experimentalParseClassName:l}=e;let n=a=>{const i=[];let c=0,s=0,u=0,r;const f=a.length;for(let b=0;bu?r-u:void 0;return Pp(i,h,d,y)};if(t){const a=t+Fp,i=n;n=c=>c.startsWith(a)?i(c.slice(a.length)):Pp(K1,!1,c,void 0,!0)}if(l){const a=n;n=i=>l({className:i,parseClassName:a})}return n},$1=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((l,n)=>{t.set(l,1e6+n)}),l=>{const n=[];let a=[];for(let i=0;i0&&(a.sort(),n.push(...a),a=[]),n.push(c)):a.push(c)}return a.length>0&&(a.sort(),n.push(...a)),n}},W1=e=>({cache:Z1(e.cacheSize),parseClassName:J1(e),sortModifiers:$1(e),...B1(e)}),F1=/\s+/,P1=(e,t)=>{const{parseClassName:l,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=t,c=[],s=e.trim().split(F1);let u="";for(let r=s.length-1;r>=0;r-=1){const f=s[r],{isExternal:g,modifiers:d,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:b}=l(f);if(g){u=f+(u.length>0?" "+u:u);continue}let N=!!b,p=n(N?y.substring(0,b):y);if(!p){if(!N){u=f+(u.length>0?" "+u:u);continue}if(p=n(y),!p){u=f+(u.length>0?" "+u:u);continue}N=!1}const m=d.length===0?"":d.length===1?d[0]:i(d).join(":"),v=h?m+or:m,x=v+p;if(c.indexOf(x)>-1)continue;c.push(x);const T=a(p,N);for(let z=0;z0?" "+u:u)}return u},I1=(...e)=>{let t=0,l,n,a="";for(;t{if(typeof e=="string")return e;let t,l="";for(let n=0;n{let l,n,a,i;const c=u=>{const r=t.reduce((f,g)=>g(f),e());return l=W1(r),n=l.cache.get,a=l.cache.set,i=s,s(u)},s=u=>{const r=n(u);if(r)return r;const f=P1(u,l);return a(u,f),f};return i=c,(...u)=>i(I1(...u))},tx=[],Ae=e=>{const t=l=>l[e]||tx;return t.isThemeGetter=!0,t},eg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ax=/\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$/,ix=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wl=e=>lx.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Rl=e=>!!e&&Number.isInteger(Number(e)),rr=e=>e.endsWith("%")&&G(e.slice(0,-1)),Wt=e=>nx.test(e),lg=()=>!0,ux=e=>ax.test(e)&&!ix.test(e),fr=()=>!1,ox=e=>cx.test(e),rx=e=>sx.test(e),fx=e=>!R(e)&&!U(e),dx=e=>Dl(e,ug,fr),R=e=>eg.test(e),sn=e=>Dl(e,og,ux),ng=e=>Dl(e,xx,G),mx=e=>Dl(e,fg,lg),hx=e=>Dl(e,rg,fr),ag=e=>Dl(e,cg,fr),px=e=>Dl(e,sg,rx),es=e=>Dl(e,dg,ox),U=e=>tg.test(e),ri=e=>un(e,og),gx=e=>un(e,rg),ig=e=>un(e,cg),yx=e=>un(e,ug),vx=e=>un(e,sg),ts=e=>un(e,dg,!0),bx=e=>un(e,fg,!0),Dl=(e,t,l)=>{const n=eg.exec(e);return n?n[1]?t(n[1]):l(n[2]):!1},un=(e,t,l=!1)=>{const n=tg.exec(e);return n?n[1]?t(n[1]):l:!1},cg=e=>e==="position"||e==="percentage",sg=e=>e==="image"||e==="url",ug=e=>e==="length"||e==="size"||e==="bg-size",og=e=>e==="length",xx=e=>e==="number",rg=e=>e==="family-name",fg=e=>e==="number"||e==="weight",dg=e=>e==="shadow",Sx=ex(()=>{const e=Ae("color"),t=Ae("font"),l=Ae("text"),n=Ae("font-weight"),a=Ae("tracking"),i=Ae("leading"),c=Ae("breakpoint"),s=Ae("container"),u=Ae("spacing"),r=Ae("radius"),f=Ae("shadow"),g=Ae("inset-shadow"),d=Ae("text-shadow"),h=Ae("drop-shadow"),y=Ae("blur"),b=Ae("perspective"),N=Ae("aspect"),p=Ae("ease"),m=Ae("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...x(),U,R],z=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],E=()=>[U,R,u],w=()=>[wl,"full","auto",...E()],D=()=>[Rl,"none","subgrid",U,R],Z=()=>["auto",{span:["full",Rl,U,R]},Rl,U,R],$=()=>[Rl,"auto",U,R],le=()=>["auto","min","max","fr",U,R],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...E()],_=()=>[wl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],M=()=>[wl,"screen","full","dvw","lvw","svw","min","max","fit",...E()],H=()=>[wl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],O=()=>[e,U,R],ft=()=>[...x(),ig,ag,{position:[U,R]}],It=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Hl=()=>["auto","cover","contain",yx,dx,{size:[U,R]}],et=()=>[rr,ri,sn],de=()=>["","none","full",r,U,R],Me=()=>["",G,ri,sn],on=()=>["solid","dashed","dotted","double"],fi=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[G,rr,ig,ag],di=()=>["","none",y,U,R],rn=()=>["none",G,U,R],fn=()=>["none",G,U,R],el=()=>[G,U,R],dn=()=>[wl,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wt],breakpoint:[Wt],color:[lg],container:[Wt],"drop-shadow":[Wt],ease:["in","out","in-out"],font:[fx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wt],shadow:[Wt],spacing:["px",G],text:[Wt],"text-shadow":[Wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wl,R,U,N]}],container:["container"],columns:[{columns:[G,R,U,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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"],sr:["sr-only","not-sr-only"],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:T()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Rl,"auto",U,R]}],basis:[{basis:[wl,"full","auto",s,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,wl,"auto","initial","none",R]}],grow:[{grow:["",G,U,R]}],shrink:[{shrink:["",G,U,R]}],order:[{order:[Rl,"first","last","none",U,R]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[s,"screen",..._()]}],"min-w":[{"min-w":[s,"screen","none",..._()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[c]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",l,ri,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,bx,mx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rr,R]}],"font-family":[{font:[gx,hx,t]}],"font-features":[{"font-features":[R]}],"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:[a,U,R]}],"line-clamp":[{"line-clamp":[G,"none",U,ng]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",U,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...on(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",U,sn]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[G,"auto",U,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ft()}],"bg-repeat":[{bg:It()}],"bg-size":[{bg:Hl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rl,U,R],radial:["",U,R],conic:[Rl,U,R]},vx,px]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:et()}],"gradient-via-pos":[{via:et()}],"gradient-to-pos":[{to:et()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:Me()}],"border-w-x":[{"border-x":Me()}],"border-w-y":[{"border-y":Me()}],"border-w-s":[{"border-s":Me()}],"border-w-e":[{"border-e":Me()}],"border-w-bs":[{"border-bs":Me()}],"border-w-be":[{"border-be":Me()}],"border-w-t":[{"border-t":Me()}],"border-w-r":[{"border-r":Me()}],"border-w-b":[{"border-b":Me()}],"border-w-l":[{"border-l":Me()}],"divide-x":[{"divide-x":Me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...on(),"hidden","none"]}],"divide-style":[{divide:[...on(),"hidden","none"]}],"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-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":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:[...on(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,U,R]}],"outline-w":[{outline:["",G,ri,sn]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",f,ts,es]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",g,ts,es]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[G,sn]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":Me()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",d,ts,es]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[G,U,R]}],"mix-blend":[{"mix-blend":[...fi(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fi()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[U,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ft()}],"mask-repeat":[{mask:It()}],"mask-size":[{mask:Hl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,R]}],filter:[{filter:["","none",U,R]}],blur:[{blur:di()}],brightness:[{brightness:[G,U,R]}],contrast:[{contrast:[G,U,R]}],"drop-shadow":[{"drop-shadow":["","none",h,ts,es]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",G,U,R]}],"hue-rotate":[{"hue-rotate":[G,U,R]}],invert:[{invert:["",G,U,R]}],saturate:[{saturate:[G,U,R]}],sepia:[{sepia:["",G,U,R]}],"backdrop-filter":[{"backdrop-filter":["","none",U,R]}],"backdrop-blur":[{"backdrop-blur":di()}],"backdrop-brightness":[{"backdrop-brightness":[G,U,R]}],"backdrop-contrast":[{"backdrop-contrast":[G,U,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,U,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,U,R]}],"backdrop-invert":[{"backdrop-invert":["",G,U,R]}],"backdrop-opacity":[{"backdrop-opacity":[G,U,R]}],"backdrop-saturate":[{"backdrop-saturate":[G,U,R]}],"backdrop-sepia":[{"backdrop-sepia":["",G,U,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",U,R]}],ease:[{ease:["linear","initial",p,U,R]}],delay:[{delay:[G,U,R]}],animate:[{animate:["none",m,U,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,U,R]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:rn()}],"rotate-x":[{"rotate-x":rn()}],"rotate-y":[{"rotate-y":rn()}],"rotate-z":[{"rotate-z":rn()}],scale:[{scale:fn()}],"scale-x":[{"scale-x":fn()}],"scale-y":[{"scale-y":fn()}],"scale-z":[{"scale-z":fn()}],"scale-3d":["scale-3d"],skew:[{skew:el()}],"skew-x":[{"skew-x":el()}],"skew-y":[{"skew-y":el()}],transform:[{transform:[U,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",U,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",U,R]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[G,ri,sn,ng]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ax(...e){return Sx(R1(e))}function mg({delayDuration:e=0,...t}){return o.jsx(j1,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Nx({...e}){return o.jsx(mg,{children:o.jsx(C1,{"data-slot":"tooltip",...e})})}function Ex({...e}){return o.jsx(z1,{"data-slot":"tooltip-trigger",...e})}function _x({className:e,sideOffset:t=0,children:l,...n}){return o.jsx(O1,{children:o.jsxs(M1,{"data-slot":"tooltip-content",sideOffset:t,className:Ax("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[l,o.jsx(w1,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Tx=S.createContext(void 0);function jx({children:e,defaultTheme:t="light",switchable:l=!1}){const[n,a]=S.useState(()=>l&&localStorage.getItem("theme")||t);S.useEffect(()=>{const c=document.documentElement;n==="dark"?c.classList.add("dark"):c.classList.remove("dark"),l&&localStorage.setItem("theme",n)},[n,l]);const i=l?()=>{a(c=>c==="light"?"dark":"light")}:void 0;return o.jsx(Tx.Provider,{value:{theme:n,toggleTheme:i,switchable:l},children:e})}/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hg=(...e)=>e.filter((t,l,n)=>!!t&&n.indexOf(t)===l).join(" ");/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var zx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ox=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:l=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:c,...s},u)=>S.createElement("svg",{ref:u,...zx,width:t,height:t,stroke:e,strokeWidth:n?Number(l)*24/Number(t):l,className:hg("lucide",a),...s},[...c.map(([r,f])=>S.createElement(r,f)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ft=(e,t)=>{const l=S.forwardRef(({className:n,...a},i)=>S.createElement(Ox,{ref:i,iconNode:t,className:hg(`lucide-${Cx(e)}`,n),...a}));return l.displayName=`${e}`,l};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mx=Ft("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ls=Ft("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pt=Ft("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wx=Ft("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rx=Ft("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=Ft("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ux=Ft("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hx=Ft("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sa=Ft("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Bx="https://app.hellorep.ai/auth/login",Ul="https://app.hellorep.ai/signup/email?cta=START_NOW",ns="https://app.hellorep.ai/signup/email?cta=DEMO",dr="https://app.hellorep.ai/signup/demo-simulation",mr=[{label:"3K",sessions:3e3,salesMonthly:12,salesAnnual:10,supportMonthly:null,supportAnnual:null,conciergeMonthly:null,conciergeAnnual:null},{label:"10K",sessions:1e4,salesMonthly:99,salesAnnual:79,supportMonthly:49,supportAnnual:39,conciergeMonthly:118,conciergeAnnual:95},{label:"25K",sessions:25e3,salesMonthly:199,salesAnnual:159,supportMonthly:79,supportAnnual:99,conciergeMonthly:238,conciergeAnnual:191},{label:"50K",sessions:5e4,salesMonthly:350,salesAnnual:280,supportMonthly:149,supportAnnual:119,conciergeMonthly:420,conciergeAnnual:336},{label:"80K",sessions:8e4,salesMonthly:550,salesAnnual:440,supportMonthly:250,supportAnnual:200,conciergeMonthly:660,conciergeAnnual:528},{label:"125K",sessions:125e3,salesMonthly:770,salesAnnual:616,supportMonthly:350,supportAnnual:280,conciergeMonthly:925,conciergeAnnual:740},{label:"180K",sessions:18e4,salesMonthly:990,salesAnnual:792,supportMonthly:450,supportAnnual:360,conciergeMonthly:1190,conciergeAnnual:952},{label:"250K",sessions:25e4,salesMonthly:1290,salesAnnual:1032,supportMonthly:575,supportAnnual:460,conciergeMonthly:1560,conciergeAnnual:1248},{label:"500K",sessions:5e5,salesMonthly:2390,salesAnnual:1912,supportMonthly:1075,supportAnnual:860,conciergeMonthly:2870,conciergeAnnual:2296},{label:"Custom",sessions:null,salesMonthly:null,salesAnnual:null,supportMonthly:null,supportAnnual:null,conciergeMonthly:null,conciergeAnnual:null}],pg=[{label:"Starter",tickets:50,gorgiasPrice:10,repPrice:8,overage:.3},{label:"Basic",tickets:300,gorgiasPrice:60,repPrice:45,overage:.3},{label:"Pro",tickets:2e3,gorgiasPrice:360,repPrice:270,overage:.27},{label:"Advanced",tickets:5e3,gorgiasPrice:900,repPrice:675,overage:.27},{label:"Enterprise",tickets:null,gorgiasPrice:null,repPrice:null,overage:null}],as=[{id:"email",label:"Email",icon:"✉️"},{id:"instagram",label:"Instagram",icon:"📸"},{id:"facebook",label:"Facebook",icon:"💬"},{id:"tiktok",label:"TikTok",icon:"🎵"},{id:"whatsapp",label:"WhatsApp",icon:"📱"}],Lx=[{category:"Store Range",items:[{name:"Session limit",sales:"Tier-based",support:"Tier-based",concierge:"Tier-based"},{name:"Product catalog limit",sales:"20K",support:"20K",concierge:"20K"}]},{category:"Rep Team Support",items:[{name:"Onboarding",sales:"Full Onboarding",support:"Self Onboarding",concierge:"Full Onboarding"},{name:"Support channel",sales:"__CSM_DYNAMIC__",support:"__CSM_DYNAMIC__",concierge:"Dedicated Success Manager",note:"Dedicated CSM included for all plans above 50K sessions"}]},{category:"Core AI Features",items:[{name:"AI Training & Tone of Voice",sales:!0,support:!0,concierge:!0},{name:"Unlimited Seats",sales:!0,support:!0,concierge:!0},{name:"Multi-Language",sales:!0,support:!0,concierge:!0},{name:"Live Chat (Web & Mobile)",sales:!0,support:!0,concierge:!0}]},{category:"AI Sales Skills",items:[{name:"AI Drop-off Detection",sales:!0,support:!1,concierge:!0},{name:"Proactive Approach",sales:!0,support:!1,concierge:!0},{name:"Product Recommendation & Search",sales:!0,support:!1,concierge:!0},{name:"Upsell (Frequently Bought Together)",sales:!0,support:!1,concierge:!0},{name:"Out-of-Stock Recommendation",sales:!0,support:!1,concierge:!0},{name:"Abandoned Cart Rescue",sales:!0,support:!1,concierge:!0}]},{category:"AI Support Skills",items:[{name:"Order Status (WISMO)",sales:!1,support:!0,concierge:!0},{name:"Returns & Exchanges",sales:!1,support:!0,concierge:!0},{name:"Cancel / Modify Order",sales:!1,support:!0,concierge:!0},{name:"AI Answering Emails",sales:!1,support:!0,concierge:!0},{name:"Edit Subscriptions",sales:!1,support:!0,concierge:!0}]},{category:"Data Suite",items:[{name:"Sales Analytics",sales:!0,support:!1,concierge:!0},{name:"Support Analytics",sales:!1,support:!0,concierge:!0},{name:"AI CX Recommendations",sales:!0,support:!0,concierge:!0},{name:"Shopper Drop-off Reasons",sales:!0,support:!1,concierge:!0},{name:"Conversations Dashboard",sales:!0,support:!0,concierge:!0}]},{category:"Integrations",items:[{name:"Klaviyo, Gorgias, Zendesk",sales:!0,support:!0,concierge:!0},{name:"Meta, Instagram, Tapcart",sales:!0,support:!0,concierge:!0},{name:"Postscript, Yotpo, Attentive",sales:!0,support:!0,concierge:!0},{name:"20+ total integrations",sales:!0,support:!0,concierge:!0}]},{category:"Expert Zone (Add-on)",items:[{name:"Flow Studio Builder",sales:"+$200",support:"+$200",concierge:"Included"},{name:"Custom Support Policies",sales:"+$200",support:"+$200",concierge:"Included"},{name:"Product Finder Customization",sales:"+$200",support:"+$200",concierge:"Included"}]},{category:"New Products (Add-ons)",items:[{name:"AI for Email, Social & WhatsApp",sales:"Add-on",support:"Add-on",concierge:"Add-on",note:"From $68/mo · 25% cheaper than Gorgias"},{name:"AI Helpdesk",sales:"Paying customers only",support:"Paying customers only",concierge:"Paying customers only",note:"$20/user + ticket tier · Paying customers only"},{name:"Deep Research",sales:"Add-on",support:"Add-on",concierge:"Add-on",note:"10% of your Concierge price"},{name:"Virtual Try-On",sales:"Add-on",support:"Add-on",concierge:"Add-on",note:"10% of your Concierge price"},{name:"AI Support Agent",sales:"Add-on",support:!1,concierge:!1,note:"Upgrade to Concierge to add Support"},{name:"AI Sales Agent",sales:!1,support:"Add-on",concierge:!1,note:"Upgrade to Concierge to add Sales"}]}],Q=e=>"$"+e.toLocaleString(),hr=.75,Yx=.9;function Gx({onTotalChange:e}){const[t,l]=S.useState(Object.fromEntries(as.map(b=>[b.id,0]))),[n,a]=S.useState(["email"]),i=b=>{a(N=>N.includes(b)?N.length>1?N.filter(p=>p!==b):N:[...N,b])},c=(b,N)=>{l(p=>({...p,[b]:Math.max(0,N)}))},s=n.reduce((b,N)=>b+(t[N]??0),0),u=Math.round(s*hr),r=Math.round(s*Yx),f=r-u,g=s>=1e4;Tt.useEffect(()=>{e==null||e(g?0:u)},[u,g,e]);const d=[0,50,100,250,500,1e3,2500,5e3,1e4],h=b=>{const N=t[b]??0,p=d.find(m=>m>N)??N+500;c(b,p)},y=b=>{const N=t[b]??0,p=[...d].reverse().find(m=>mo.jsx("button",{onClick:()=>i(b.id),className:`channel-btn${n.includes(b.id)?" is-active":""}`,children:b.label},b.id))}),o.jsx("div",{className:"calc-step-label",children:"2 · Monthly conversations per channel"}),o.jsx("div",{className:"convo-list",children:n.map(b=>{const N=as.find(v=>v.id===b),p=t[b]??0,m=Math.round(p*hr);return o.jsxs("div",{className:"convo-row",children:[o.jsx("span",{className:"convo-row_label",children:N.label}),o.jsxs("div",{className:"convo-row_controls",children:[o.jsx("button",{onClick:()=>y(b),className:"stepper-btn",children:"−"}),o.jsx("input",{type:"number",min:0,value:p,onChange:v=>c(b,parseInt(v.target.value)||0),className:"channel-convo-value"}),o.jsx("button",{onClick:()=>h(b),className:"stepper-btn",children:"+"}),o.jsx("div",{className:"convo-row_price",children:p>0?Q(m)+"/mo":"—"})]})]},b)})}),s>0&&!g&&o.jsxs("div",{className:"calc-total",children:[o.jsxs("div",{className:"calc-total_header",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"calc-total_label",children:["Total · ",s.toLocaleString()," convos/mo"]}),o.jsxs("div",{className:"calc-total_amount",children:[Q(u),o.jsx("span",{className:"calc-total_unit",children:"/mo"})]})]}),f>0&&o.jsxs("div",{className:"calc-gorgias-compare",children:[o.jsxs("div",{className:"calc-gorgias-text",children:["vs Gorgias (",Q(r),")"]}),o.jsxs("div",{className:"calc-savings-badge",children:[o.jsx(sa,{size:11,color:"#7C9A7E",fill:"#7C9A7E"}),o.jsxs("span",{className:"calc-savings-text",children:["Save ",Q(f),"/mo"]})]})]})]}),o.jsxs("div",{className:"calc-breakdown",children:[n.filter(b=>(t[b]??0)>0).map(b=>{const N=as.find(m=>m.id===b),p=t[b];return o.jsxs("div",{className:"calc-breakdown-row",children:[o.jsxs("span",{className:"calc-breakdown-label",children:[N.label," · ",p.toLocaleString()," convos"]}),o.jsx("span",{className:"calc-breakdown-value",children:Q(Math.round(p*hr))})]},b)}),o.jsx("div",{className:"calc-comparison-row",children:o.jsx("span",{className:"calc-comparison-label",children:"$0.75 per AI-resolved conversation"})})]})]}),s===0&&o.jsx("div",{className:"calc-empty-state",children:o.jsx("div",{className:"calc-empty-state_text",children:"Enter conversation volumes above to see your price"})}),g&&o.jsxs("div",{className:"calc-enterprise-box",children:[o.jsx("div",{className:"calc-enterprise-text",children:"10,000+ conversations — custom pricing applies"}),o.jsx("a",{href:dr,className:"btn is-small-dark",children:"Talk to sales"})]})]})}function qx({onTotalChange:e}){var T,z;const[t,l]=S.useState(!1),[n,a]=S.useState(1),[i,c]=S.useState(3),[s,u]=S.useState(0),r=20,f=pg[n],g=f.label==="Enterprise",d=f.repPrice??0,h=i*r,y=f.overage?Math.round(s*f.overage):0,b=g?null:d+h+y,N=f.gorgiasPrice??0,p=!g&&f.gorgiasPrice?N+i*r+y:null,m=b&&p?p-b:null,v=A=>c(Math.min(100,Math.max(1,A))),x=A=>u(Math.min(2e3,Math.max(0,A)));return Tt.useEffect(()=>{t&&b!==null?e==null||e(b):e==null||e(0)},[b,t,e]),o.jsxs("div",{className:"calc-wrapper",children:[!t&&o.jsxs("div",{className:"paywall-overlay",children:[o.jsx("div",{className:"paywall-overlay_icon",children:o.jsx(Ux,{size:20,color:"#F5F3EE"})}),o.jsxs("div",{children:[o.jsx("div",{className:"paywall-overlay_title",children:"Available for paying customers"}),o.jsx("div",{className:"paywall-overlay_desc",children:"AI Helpdesk is an add-on for active Sales, Support, or Concierge plan customers."})]}),o.jsxs("div",{className:"paywall-overlay_btns",children:[o.jsx("a",{href:Ul,className:"btn paywall-overlay_primary",children:"Start a plan first"}),o.jsx("button",{onClick:()=>{window.location.href=Bx},children:"I'm a paying customer →"})]})]}),o.jsxs("div",{className:"calc-content",style:{opacity:t?1:.3,pointerEvents:t?"auto":"none"},children:[o.jsx("div",{className:"calc-step-label",children:"1 · Select ticket tier"}),o.jsx("div",{className:"tier-btns",children:pg.map((A,E)=>o.jsxs("button",{onClick:()=>a(E),className:`tier-btn${E===n?" is-active":""}`,children:[o.jsxs("div",{className:"tier-btn-info",children:[o.jsxs("div",{className:"tier-btn_name",children:[A.label," ",A.tickets?`(${A.tickets.toLocaleString()} tickets/mo)`:""]}),A.gorgiasPrice&&o.jsxs("div",{className:"tier-btn_gorgias",children:["Gorgias: ",o.jsx("span",{className:"tier-btn_gorgias-strike",children:Q(A.gorgiasPrice)})]})]}),o.jsx("span",{className:`tier-btn_price${E===n?" is-active":""}`,children:A.repPrice?Q(A.repPrice)+"/mo":"Custom"})]},A.label))}),!g&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"calc-step-label",children:["2 · Number of agents · $",r,"/agent/mo"]}),o.jsxs("div",{className:"stepper-row",children:[o.jsx("button",{onClick:()=>v(i-1),className:"stepper-btn",children:"−"}),o.jsx("input",{type:"number",min:1,max:100,value:i,onChange:A=>v(parseInt(A.target.value)||1),className:"stepper-input"}),o.jsx("button",{onClick:()=>v(i+1),className:"stepper-btn",children:"+"}),o.jsxs("div",{className:"stepper-price",children:[Q(h),"/mo"]})]}),o.jsxs("div",{className:"range-wrap",children:[o.jsx("input",{type:"range",min:1,max:100,value:i,onChange:A=>v(Number(A.target.value)),className:"u-w-full",style:{accentColor:"#8B7355"}}),o.jsxs("div",{className:"range-hints",children:[o.jsx("span",{className:"range-hint",children:"1 agent"}),o.jsx("span",{className:"range-hint",children:"100 agents"})]})]}),f.overage!==null&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"calc-step-label",children:["3 · Extra tickets beyond tier · $",(T=f.overage)==null?void 0:T.toFixed(2),"/ticket"]}),o.jsxs("div",{className:"stepper-row",children:[o.jsx("button",{onClick:()=>x(s-10),className:"stepper-btn",children:"−"}),o.jsx("input",{type:"number",min:0,max:2e3,step:10,value:s,onChange:A=>x(parseInt(A.target.value)||0),className:"stepper-input"}),o.jsx("button",{onClick:()=>x(s+10),className:"stepper-btn",children:"+"}),o.jsx("div",{className:"stepper-price",children:y>0?Q(y)+"/mo":"—"})]}),o.jsxs("div",{className:"range-wrap",children:[o.jsx("input",{type:"range",min:0,max:2e3,step:10,value:s,onChange:A=>x(Number(A.target.value)),className:"u-w-full",style:{accentColor:"#8B7355"}}),o.jsxs("div",{className:"range-hints",children:[o.jsx("span",{className:"range-hint",children:"0 extra"}),o.jsx("span",{className:"range-hint",children:"2,000 extra"})]})]})]}),b!==null&&o.jsxs("div",{className:"calc-total",children:[o.jsxs("div",{className:"calc-total_header",children:[o.jsxs("div",{children:[o.jsx("div",{className:"calc-total_label",children:"Monthly total"}),o.jsxs("div",{className:"calc-total_amount",children:[Q(b),o.jsx("span",{className:"calc-total_unit",children:"/mo"})]})]}),m&&m>0&&o.jsxs("div",{className:"calc-savings-badge",children:[o.jsx(sa,{size:11,color:"#7C9A7E",fill:"#7C9A7E"}),o.jsxs("span",{className:"calc-savings-text",children:["Save ",Q(m),"/mo vs Gorgias"]})]})]}),o.jsxs("div",{className:"calc-breakdown",children:[[{label:`Ticket tier (${f.label})`,value:Q(d)},{label:`${i} agent${i>1?"s":""} × $${r}`,value:Q(h)},...y>0?[{label:`${s} overage tickets × $${(z=f.overage)==null?void 0:z.toFixed(2)}`,value:Q(y)}]:[]].map(A=>o.jsxs("div",{className:"calc-breakdown-row",children:[o.jsx("span",{className:"calc-breakdown-label",children:A.label}),o.jsx("span",{className:"calc-breakdown-value",children:A.value})]},A.label)),p&&o.jsxs("div",{className:"calc-comparison-row",children:[o.jsx("span",{className:"calc-comparison-label",children:"Gorgias equivalent"}),o.jsx("span",{className:"calc-comparison-value",children:Q(p)})]})]})]})]}),g&&o.jsxs("div",{className:"calc-enterprise-box",children:[o.jsx("div",{className:"calc-enterprise-text",children:"Custom enterprise pricing"}),o.jsx("a",{href:dr,className:"btn is-small-dark",children:"Talk to sales"})]})]})]})}function Xx(){const[e,t]=Tt.useState(!1),l=["AI-resolved conversations (pay per result)","Customized tone of voice per channel","Answer pre- & post-sales FAQs","Handle returns and refunds","Edit orders & subscriptions","Generate dynamic discounts","Product recommendations","Strong feedback loop & analytics"];return o.jsxs("div",{children:[o.jsxs("button",{className:"accordion-header",onClick:()=>t(n=>!n),children:[o.jsx("span",{className:"accordion-toggle_text",children:"What's included"}),o.jsx("span",{className:"accordion-toggle_icon is-violet",children:e?"−":"+"})]}),o.jsxs("div",{className:`accordion-body ${e?"expanded":"collapsed"}`,children:[o.jsx("div",{className:"label-mono is-tan u-mb-sm",children:"What's included"}),o.jsx("ul",{className:"feature-list",children:l.map(n=>o.jsxs("li",{className:"feature-list_item",children:[o.jsx(Pt,{size:14,color:"var(--color-brand--shady-neon)",strokeWidth:2.5,className:"feature-list_check"}),o.jsx("span",{className:"feature-list_text",children:n})]},n))}),o.jsx("a",{href:Ul,className:"btn is-pill-dark",children:"Sign up"})]})]})}function kx(){const[e,t]=Tt.useState(!1),l=["AI-native inbox with smart triage","AI draft replies with Shopify context","Order data pulled automatically","Returns, WISMO, refunds handled","Collision detection & agent notes","Macros, tags, and custom views","Gorgias & Zendesk migration support","Analytics & CSAT tracking"];return o.jsxs("div",{children:[o.jsxs("button",{className:"accordion-header",onClick:()=>t(n=>!n),children:[o.jsx("span",{className:"accordion-toggle_text",children:"What's included"}),o.jsx("span",{className:"accordion-toggle_icon is-tan",children:e?"−":"+"})]}),o.jsxs("div",{className:`accordion-body ${e?"expanded":"collapsed"}`,children:[o.jsx("div",{className:"label-mono is-tan u-mb-sm",children:"What's included"}),o.jsx("ul",{className:"feature-list",children:l.map(n=>o.jsxs("li",{className:"feature-list_item",children:[o.jsx(Pt,{size:14,color:"var(--color-brand--shady-neon)",strokeWidth:2.5,className:"feature-list_check"}),o.jsx("span",{className:"feature-list_text",children:n})]},n))}),o.jsx("a",{href:Ul,className:"btn is-pill-dark",children:"Sign up"})]})]})}function pr({value:e,color:t}){return e===!0?o.jsx(Pt,{size:16,color:t,strokeWidth:2.5}):e===!1?o.jsx(Hx,{size:16,color:"#C5C0BB",strokeWidth:2}):e==="Add-on"?o.jsx("span",{className:"feature-badge",style:{color:t,background:`${t}18`},children:"Add-on"}):e==="Included"?o.jsx("span",{className:"feature-badge is-included",children:"Included"}):e==="Paying customers only"?o.jsx("span",{className:"feature-badge is-paying",children:"🔒 Paying only"}):o.jsx("span",{className:"feature-text-cell",children:e})}function Vx({corePlan:e,corePlanPrice:t,channelTotal:l,helpdeskTotal:n,billing:a,onSelectPlan:i}){const[c,s]=S.useState(!1),u=(t??0)+l+n,r=e!=="none"||l>0||n>0,f={none:"No plan",sales:"AI Sales",support:"AI Support",concierge:"AI Concierge"},g={none:"#8A8480",sales:"#7C9A7E",support:"#C4724A",concierge:"#6157f8"},d=[e!=="none"&&t?{label:f[e],price:t,color:g[e]}:null,l>0?{label:"AI Channels",price:l,color:"#9B6B9B"}:null,n>0?{label:"AI Helpdesk",price:n,color:"#8B7355"}:null].filter(Boolean);return o.jsxs("div",{className:"sticky-bar",style:{transform:r?"translateY(0)":"translateY(100%)"},children:[c&&d.length>0&&o.jsx("div",{className:"sticky-bar_breakdown",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"sticky-bar_items",children:d.map(h=>o.jsxs("div",{className:"sticky-bar_item",children:[o.jsx("div",{className:"sticky-bar_dot",style:{background:h.color}}),o.jsx("span",{className:"sticky-bar_item-label",children:h.label}),o.jsxs("span",{className:"sticky-bar_item-price",children:[Q(h.price),"/mo"]})]},h.label))})})}),o.jsxs("div",{className:"container sticky-bar_main",children:[o.jsxs("div",{className:"sticky-bar_plans",children:[o.jsx("span",{className:"sticky-bar_plan-label",children:"PLAN"}),["sales","support","concierge"].map(h=>o.jsx("button",{onClick:()=>i(e===h?"none":h),className:"sticky-bar_plan-pill",style:{border:e===h?`1.5px solid ${g[h]}`:"1.5px solid rgba(245,243,238,0.12)",background:e===h?`${g[h]}22`:"transparent",color:e===h?g[h]:"rgba(245,243,238,0.45)"},children:f[h]},h))]}),o.jsxs("div",{className:"sticky-bar_right",children:[d.length>1&&o.jsxs("button",{onClick:()=>s(h=>!h),className:"sticky-bar_expand",children:[c?"▼":"▲"," ",d.length," items"]}),o.jsxs("div",{className:"sticky-bar_total",children:[o.jsxs("div",{className:"sticky-bar_total-label",children:["TOTAL · ",a==="yearly"?"YEARLY":"MONTHLY"]}),o.jsxs("div",{className:"sticky-bar_total-amount",children:[Q(u),o.jsx("span",{className:"sticky-bar_total-unit",children:"/mo"})]})]}),o.jsx("a",{href:Ul,className:"sticky-bar_cta",children:"Start free trial →"})]})]})]})}function Qx(){const[e,t]=S.useState(4),[l,n]=S.useState("monthly"),[a,i]=S.useState(0),[c,s]=S.useState(!0),[u,r]=S.useState("none"),[f,g]=S.useState(0),[d,h]=S.useState(0),y=mr[e],b=y.label==="Custom",N=l==="yearly"?y.salesAnnual:y.salesMonthly,p=l==="yearly"?y.supportAnnual:y.supportMonthly,m=l==="yearly"?y.conciergeAnnual:y.conciergeMonthly,v=N!==null&&p!==null?N+p:null,x=m!==null&&N!==null?m-N:null,T=p!==null&&x!==null?p-x:null,z=p!==null&&T!==null&&p>0?Math.round(T/p*100):null,A=y.conciergeMonthly,E=y.conciergeAnnual,w=A&&E?(A-E)*12:null,D=m?Q(Math.round(m*.1)):"Custom",Z=m?Q(Math.round(m*.1)):"Custom",$=_=>{t(Number(_.target.value)),i(M=>M+1)},le=u==="none"||b?null:u==="sales"?N:u==="support"?p:u==="concierge"?m:null,P=Tt.useCallback(_=>g(_),[]),ae=Tt.useCallback(_=>h(_),[]),C=_=>_!==null?Q(_):"Custom";return o.jsxs("div",{className:"pricing-page",children:[o.jsx("section",{className:"section_session-slider is-sticky",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"slider-card",children:[o.jsxs("div",{className:"slider-card_header",children:[o.jsxs("div",{children:[o.jsx("div",{className:"label-mono u-mb-xs",children:"Monthly Website Visits"}),o.jsxs("div",{className:"slider-value",children:[b?"Custom":y.sessions.toLocaleString(),!b&&o.jsx("span",{className:"slider-value_unit",children:"sessions/mo"})]})]}),o.jsxs("div",{className:"billing-toggle_wrap",children:[o.jsx("div",{className:"billing-toggle",children:["monthly","yearly"].map(_=>o.jsxs("button",{onClick:()=>{n(_),i(M=>M+1)},className:`billing-toggle_btn${l===_?" is-active":""}`,children:[_==="monthly"?"Monthly":"Yearly",_==="yearly"&&o.jsx("span",{className:`billing-yearly-label${l==="yearly"?" is-active":""}`,children:"−20%"})]},_))}),l==="yearly"&&!b&&m!==null&&y.conciergeMonthly?o.jsxs("div",{className:"billing-hint",children:[o.jsx(sa,{size:10,color:"#6157f8",fill:"#6157f8"}),o.jsxs("span",{className:"billing-hint_text",children:["Save ",Q((y.conciergeMonthly-m)*12),"/year on Concierge"]})]}):l==="monthly"?o.jsx("div",{className:"billing-hint is-plain",children:"Switch to yearly and save 20%"}):null]})]}),o.jsx("input",{type:"range",min:0,max:mr.length-1,value:e,onChange:$,className:"u-w-full",style:{accentColor:"#6157f8"}}),o.jsx("div",{className:"slider-ticks",children:mr.map((_,M)=>o.jsx("span",{className:`slider-tick${M===e?" is-active":""}`,onClick:()=>{t(M),i(H=>H+1)},children:o.jsx("span",{className:"slider-tick_label",children:_.label})},_.label))})]})})}),o.jsx("section",{className:"section_plans",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"plans-grid",children:[o.jsxs("div",{className:"plan-card is-sales",children:[o.jsx("div",{className:"plan-card_eyebrow is-sales",children:"AI Sales Agent"}),o.jsx("h3",{className:"plan-card_title",children:"Sales"}),o.jsx("p",{className:"plan-card_desc",children:"Convert browsers into buyers with proactive AI on your storefront."}),o.jsxs("div",{className:"plan-card_price-block",children:[o.jsx("span",{className:"plan-card_price-amount",children:C(N)}),!b&&o.jsx("span",{className:"plan-card_price-unit",children:"/mo"})]},`sales-${a}`),l==="yearly"&&!b&&y.salesMonthly&&y.salesAnnual&&o.jsxs("div",{className:"plan-card_yearly-note is-sage",children:["Save ",Q((y.salesMonthly-y.salesAnnual)*12),"/year vs monthly"]}),!b&&y.sessions!==null&&y.sessions>5e4&&o.jsxs("div",{className:"plan-card_csm-badge is-sales",children:[o.jsx("span",{className:"plan-card_csm-badge_icon",children:"⭐"}),o.jsx("span",{className:"plan-card_csm-badge_text is-sage",children:"Dedicated CSM included at this tier"})]}),o.jsx("ul",{className:"plan-card_features",children:["AI Drop-off Detection","Proactive Product Approach","Product Recommendations & Search","Upsell & Abandoned Cart Rescue","Sales Analytics & Insights","20+ Integrations"].map(_=>o.jsxs("li",{className:"plan-card_feature",children:[o.jsx(Pt,{size:15,color:"#7C9A7E",strokeWidth:2.5}),o.jsx("span",{className:"plan-card_feature-text",children:_})]},_))}),o.jsxs("div",{className:"plan-card_actions",children:[o.jsx("a",{href:Ul,className:"btn is-primary",children:"Start free trial"}),o.jsxs("a",{href:ns,className:"btn is-outline",children:[o.jsx(ls,{size:15})," Book a demo"]})]})]}),o.jsxs("div",{className:"plan-card is-support",children:[o.jsx("div",{className:"plan-card_eyebrow is-support",children:"AI Support Agent"}),o.jsx("h3",{className:"plan-card_title",children:"Support"}),o.jsx("p",{className:"plan-card_desc",children:"Resolve tickets automatically. WISMO, returns, cancellations — handled."}),o.jsx("div",{className:"plan-card_price-block is-flex",children:p===null&&!b?o.jsxs(Nx,{children:[o.jsx(Ex,{asChild:!0,children:o.jsxs("span",{className:"tooltip-trigger",children:[o.jsx("span",{className:"plan-card_price-amount is-unavailable",children:"Not available"}),o.jsx(Dx,{size:18,color:"#C4724A"})]})}),o.jsx(_x,{side:"top",className:"tooltip-content",children:"AI Support requires a minimum of 10K sessions/month. Move the slider up to unlock this plan."})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"plan-card_price-amount",children:C(p)}),!b&&o.jsx("span",{className:"plan-card_price-unit",children:"/mo"})]})},`support-${a}`),l==="yearly"&&!b&&y.supportMonthly&&y.supportAnnual&&o.jsxs("div",{className:"plan-card_yearly-note is-terracotta",children:["Save ",Q((y.supportMonthly-y.supportAnnual)*12),"/year vs monthly"]}),!b&&y.sessions!==null&&y.sessions>5e4&&o.jsxs("div",{className:"plan-card_csm-badge is-support",children:[o.jsx("span",{className:"plan-card_csm-badge_icon",children:"⭐"}),o.jsx("span",{className:"plan-card_csm-badge_text is-terracotta",children:"Dedicated CSM included at this tier"})]}),o.jsx("ul",{className:"plan-card_features",children:["Order Status & WISMO","Returns & Exchanges","Cancel & Modify Orders","AI Answering Emails","Edit Subscriptions","Support Analytics"].map(_=>o.jsxs("li",{className:"plan-card_feature",children:[o.jsx(Pt,{size:15,color:"#C4724A",strokeWidth:2.5}),o.jsx("span",{className:"plan-card_feature-text",children:_})]},_))}),o.jsxs("div",{className:"plan-card_actions",children:[o.jsx("a",{href:Ul,className:"btn is-primary",children:"Start free trial"}),o.jsxs("a",{href:ns,className:"btn is-outline",children:[o.jsx(ls,{size:15})," Book a demo"]})]})]}),o.jsxs("div",{className:"plan-card is-concierge",children:[o.jsx("div",{className:"plan-card_popular-badge",children:"Most Popular"}),o.jsx("div",{className:"plan-card_eyebrow is-concierge",children:"AI Concierge"}),o.jsx("h3",{className:"plan-card_title",children:"Sales + Support"}),o.jsx("p",{className:"plan-card_desc",children:"The complete AI concierge. Sales and support bundled — with a dedicated success manager."}),o.jsxs("div",{className:"plan-card_price-block",children:[o.jsx("span",{className:"plan-card_price-amount",children:C(m)}),!b&&o.jsx("span",{className:"plan-card_price-unit",children:"/mo"})]},`concierge-${a}`),l==="yearly"&&!b&&w&&w>0&&o.jsxs("div",{className:"plan-card_yearly-note is-purple-light",children:["Save ",Q(w),"/year vs monthly billing"]}),T!==null&&T>0&&z!==null&&o.jsxs("div",{className:"u-mb-md",children:[o.jsxs("div",{className:"plan-card_bundle-badge",children:[o.jsx(sa,{size:12,color:"#6157f8",fill:"#6157f8"}),o.jsxs("span",{className:"plan-card_bundle-badge_text",children:["Save ",z,"% with the bundle"]})]}),o.jsxs("div",{className:"plan-card_bundle-note",children:["Support standalone is ",C(p),"/mo — inside Concierge you pay only ",x!==null?Q(x):"—","/mo for it"]})]}),o.jsx("ul",{className:"plan-card_features",children:["Everything in Sales + Support","Dedicated Success Manager","Full Onboarding","AI CX Recommendations","Priority Support","Add Deep Research & Virtual Try-On"].map(_=>o.jsxs("li",{className:"plan-card_feature",children:[o.jsx(Pt,{size:15,color:"#6157f8",strokeWidth:2.5}),o.jsx("span",{className:"plan-card_feature-text",children:_})]},_))}),!b&&o.jsxs("div",{className:"plan-card_concierge-addons",children:[o.jsx("div",{className:"plan-card_addons-label",children:"CONCIERGE ADD-ONS"}),o.jsxs("div",{className:"plan-card_addon-row",children:[o.jsx("span",{className:"plan-card_addon-name",children:"Deep Research"}),o.jsxs("span",{className:"plan-card_addon-price",children:[D,"/mo"]})]}),o.jsxs("div",{className:"plan-card_addon-row",children:[o.jsx("span",{className:"plan-card_addon-name",children:"Virtual Try-On"}),o.jsxs("span",{className:"plan-card_addon-price",children:[Z,"/mo"]})]})]}),o.jsxs("div",{className:"plan-card_actions",children:[o.jsx("a",{href:Ul,className:"btn is-primary-light",children:"Start free trial"}),o.jsxs("a",{href:ns,className:"btn is-outline-light",children:[o.jsx(ls,{size:15})," Book a demo"]})]})]})]}),o.jsxs("div",{className:"enterprise-card",children:[o.jsx("div",{className:"enterprise-card_info",children:o.jsxs("div",{children:[o.jsxs("div",{className:"enterprise-card_meta",children:[o.jsx("div",{className:"enterprise-card_label",children:"Enterprise"}),o.jsx("div",{className:"enterprise-card_tier",children:"500K+ sessions"})]}),o.jsx("h3",{className:"enterprise-card_title",children:"Custom pricing for high-volume stores"}),o.jsx("div",{className:"enterprise-card_features",children:["Dedicated Success Manager","Custom AI training","SLA guarantees","SSO & advanced security","Custom integrations","Volume discounts"].map(_=>o.jsxs("div",{className:"enterprise-card_feature",children:[o.jsx(Pt,{size:13,color:"#6157f8",strokeWidth:2.5}),o.jsx("span",{className:"enterprise-card_feature-text",children:_})]},_))})]})}),o.jsxs("div",{className:"enterprise-card_cta",children:[o.jsxs("div",{className:"enterprise-card_price",children:[o.jsx("div",{className:"enterprise-card_price-title",children:"Custom pricing"}),o.jsx("div",{className:"enterprise-card_price-note",children:"Tailored to your store's volume & needs"})]}),o.jsxs("div",{className:"enterprise-card_btns",children:[o.jsxs("a",{href:dr,className:"btn is-pill-light",children:["Talk to sales ",o.jsx(Mx,{size:15})]}),o.jsxs("a",{href:ns,className:"btn is-enterprise-outline",children:[o.jsx(ls,{size:15})," Book a demo"]})]})]})]}),o.jsxs("p",{className:"pricing-note",children:["Prices shown for ",b?"custom volume":y.sessions.toLocaleString()+" sessions/month"," · ",l==="yearly"?"Yearly billing (20% off)":"Monthly billing"," · All plans include 30-day free trial"]})]})}),o.jsx("div",{className:"section-divider-line"}),o.jsx("section",{className:"section_feature-table",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"feature-table-top",children:[o.jsxs("div",{children:[o.jsx("div",{className:"label-mono u-mb-sm",children:"Compare Plans"}),o.jsx("h2",{className:"section-heading",children:"Everything that's included"})]}),o.jsxs("button",{onClick:()=>s(_=>!_),className:"toggle-btn",children:[c?"Collapse":"Expand"," ",c?o.jsx(Rx,{size:15}):o.jsx(wx,{size:15})]})]}),c&&o.jsx("div",{className:"u-overflow-x-auto",children:o.jsxs("table",{className:"feature-table",children:[o.jsxs("thead",{children:[o.jsxs("tr",{children:[o.jsx("th",{className:"ft-th-feature",children:"Feature"}),o.jsx("th",{className:"ft-th-plan is-sales",children:"Sales"}),o.jsx("th",{className:"ft-th-plan is-support",children:"Support"}),o.jsx("th",{className:"ft-th-plan is-concierge",children:"Concierge"}),o.jsx("th",{className:"ft-th-notes",children:"Notes"})]}),o.jsxs("tr",{className:"ft-price-row",children:[o.jsxs("td",{className:"ft-price-td",children:["Price at ",b?"custom":y.sessions.toLocaleString()+" sessions",o.jsx("div",{className:"ft-price-billing",children:l==="yearly"?"Billed annually · 20% off":"Billed monthly"})]}),o.jsx("td",{className:"ft-price-cell",children:l==="yearly"&&!b&&y.salesMonthly&&y.salesAnnual?o.jsxs("div",{className:"table-price",children:[o.jsx("span",{className:"table-price_struck",children:Q(y.salesMonthly)}),o.jsx("span",{className:"table-price_main is-sage",children:Q(y.salesAnnual)}),o.jsx("span",{className:"table-price_unit",children:"/mo"})]}):o.jsxs("div",{className:"table-price",children:[o.jsx("span",{className:"table-price_main is-sage",children:C(N)}),!b&&o.jsx("span",{className:"table-price_unit",children:"/mo"})]})}),o.jsx("td",{className:"ft-price-cell",children:l==="yearly"&&!b&&y.supportMonthly&&y.supportAnnual?o.jsxs("div",{className:"table-price",children:[o.jsx("span",{className:"table-price_struck",children:Q(y.supportMonthly)}),o.jsx("span",{className:"table-price_main is-terracotta",children:Q(y.supportAnnual)}),o.jsx("span",{className:"table-price_unit",children:"/mo"})]}):o.jsxs("div",{className:"table-price",children:[o.jsx("span",{className:"table-price_main is-terracotta",children:C(p)}),!b&&o.jsx("span",{className:"table-price_unit",children:"/mo"})]})}),o.jsx("td",{className:"ft-price-cell is-concierge",children:!b&&m!==null?o.jsxs("div",{className:"table-price",children:[l==="yearly"&&y.conciergeMonthly?o.jsx("span",{className:"table-price_struck",children:Q(y.conciergeMonthly)}):v!==null?o.jsx("span",{className:"table-price_struck",children:Q(v)}):null,o.jsx("span",{className:"table-price_main is-purple",children:Q(m)}),o.jsx("span",{className:"table-price_unit",children:"/mo"})]}):o.jsxs("div",{className:"table-price",children:[o.jsx("span",{className:"table-price_main is-purple",children:C(m)}),!b&&o.jsx("span",{className:"table-price_unit",children:"/mo"})]})}),o.jsx("td",{className:"ft-td-notes",children:o.jsxs("div",{className:"ft-savings-col",children:[T!==null&&T>0&&z!==null&&o.jsxs("div",{className:"ft-badge-sm is-bundle",children:[o.jsx(sa,{size:9,color:"#6157f8",fill:"#6157f8"}),o.jsxs("span",{className:"ft-badge-sm_text is-purple",children:["Bundle saves ",z,"% on Support"]})]}),l==="yearly"&&!b&&(()=>{const _=y.salesMonthly&&y.salesAnnual?(y.salesMonthly-y.salesAnnual)*12:0,M=y.supportMonthly&&y.supportAnnual?(y.supportMonthly-y.supportAnnual)*12:0,H=y.conciergeMonthly&&y.conciergeAnnual?(y.conciergeMonthly-y.conciergeAnnual)*12:0;return _+M+H>0?o.jsxs("div",{className:"ft-badge-sm is-yearly",children:[o.jsx(sa,{size:9,color:"#7C9A7E",fill:"#7C9A7E"}),o.jsxs("span",{className:"ft-badge-sm_text is-sage",children:["Yearly −20% · saves ",Q(H),"/yr on Concierge"]})]}):null})()]})})]})]}),o.jsx("tbody",{children:Lx.map(_=>{const M=y.sessions!==null&&y.sessions>5e4,H=O=>O==="__CSM_DYNAMIC__"?M?"Dedicated Success Manager":"Email":O;return o.jsxs(Tt.Fragment,{children:[o.jsx("tr",{children:o.jsx("td",{colSpan:5,className:"ft-category-td",children:_.category})}),_.items.map(O=>o.jsxs("tr",{className:"ft-row",children:[o.jsx("td",{className:"ft-td-name",children:O.name}),o.jsx("td",{className:"ft-td-cell",children:o.jsx(pr,{value:H(O.sales),color:"#7C9A7E"})}),o.jsx("td",{className:"ft-td-cell",children:o.jsx(pr,{value:H(O.support),color:"#C4724A"})}),o.jsx("td",{className:"ft-td-cell is-concierge",children:o.jsx(pr,{value:H(O.concierge),color:"#6157f8"})}),o.jsx("td",{className:"ft-td-notes",children:"note"in O&&O.note&&o.jsx("span",{className:"ft-note-text",children:O.note})})]},O.name))]},_.category)})})]})})]})}),o.jsxs("div",{className:"section-color-group",children:[o.jsx("div",{className:"section-divider-line"}),o.jsx("section",{className:"section_products",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"section-intro",children:[o.jsx("div",{className:"label-mono is-new-prod u-mb-sm",children:"New Products"}),o.jsx("h2",{className:"section-intro_heading",children:"Expand your AI beyond the website"}),o.jsx("p",{className:"section-intro_subhead",children:"Four new products that extend REP AI into every channel your shoppers use."})]}),o.jsxs("div",{className:"product-card is-multichannel",children:[o.jsxs("div",{className:"product-card_header",children:[o.jsxs("div",{children:[o.jsx("div",{className:"label-mono is-tan u-mb-xs",children:"New"}),o.jsx("h3",{className:"product-card_title",children:"AI for Email, Social & WhatsApp"}),o.jsxs("p",{className:"product-card_desc",children:["REP AI handles conversations across Email, Instagram, Facebook, TikTok, and WhatsApp — same AI brain, every channel. Priced at ",o.jsx("strong",{children:"$0.75/AI-resolved conversation"})," — 17% cheaper than Gorgias AI."]})]}),o.jsx("div",{className:"product-card_media",children:o.jsx("div",{className:"product-card_discount is-multichannel",children:"25% cheaper than Gorgias"})})]}),!b&&o.jsxs("div",{className:"pairs-row",children:[o.jsx("span",{className:"pairs-label",children:"Pairs with"}),[{label:"AI Sales",price:N,color:"#0a5862",bg:"#e2e1d8",border:"rgba(124,154,126,0.3)"},{label:"AI Support",price:p,color:"#b7410e",bg:"#eaddd3",border:"rgba(196,114,74,0.3)"},{label:"AI Concierge",price:m,color:"#5f56f4",bg:"#e0dae5",border:"rgba(97,87,248,0.3)"}].map(_=>o.jsxs("div",{className:"plan-pill",style:{background:_.bg},children:[o.jsx("span",{className:"plan-pill_name",style:{color:_.color},children:_.label}),o.jsxs("span",{className:"plan-pill_price",style:{color:_.color},children:[C(_.price),"/mo"]})]},_.label))]}),o.jsxs("div",{className:"product-grid",children:[o.jsx("div",{children:o.jsx(Gx,{onTotalChange:P})}),o.jsx(Xx,{})]})]}),o.jsxs("div",{className:"product-card is-helpdesk",children:[o.jsxs("div",{className:"product-card_header",children:[o.jsxs("div",{children:[o.jsx("div",{className:"label-mono is-tan u-mb-xs",children:"NEW · Paying customers only"}),o.jsx("h3",{className:"product-card_title",children:"AI Helpdesk"}),o.jsxs("p",{className:"product-card_desc",children:["Full AI-native helpdesk inbox. Same tier structure as Gorgias — but ",o.jsx("strong",{children:"25% cheaper"}),", with Shopify-native order data and AI draft replies built in.",o.jsx("strong",{children:" $20/agent/month"})," on top of the ticket tier."]})]}),o.jsx("div",{className:"product-card_media",children:o.jsx("div",{className:"product-card_discount is-helpdesk",children:"$20/agent · 25% cheaper than Gorgias"})})]}),!b&&o.jsxs("div",{className:"pairs-row",children:[o.jsx("span",{className:"pairs-label",children:"Pairs with"}),[{label:"AI Sales",price:N,color:"#0a5862",bg:"#e2e1d8",border:"rgba(124,154,126,0.3)"},{label:"AI Support",price:p,color:"#b7410e",bg:"#eaddd3",border:"rgba(196,114,74,0.3)"},{label:"AI Concierge",price:m,color:"#5f56f4",bg:"#e0dae5",border:"rgba(97,87,248,0.3)"}].map(_=>o.jsxs("div",{className:"plan-pill",style:{background:_.bg},children:[o.jsx("span",{className:"plan-pill_name",style:{color:_.color},children:_.label}),o.jsxs("span",{className:"plan-pill_price",style:{color:_.color},children:[C(_.price),"/mo"]})]},_.label))]}),o.jsxs("div",{className:"product-grid",children:[o.jsx("div",{children:o.jsx(qx,{onTotalChange:ae})}),o.jsx(kx,{})]})]}),o.jsxs("div",{className:"product-card is-addons",children:[o.jsx("div",{className:"product-card_header",children:o.jsxs("div",{children:[o.jsx("div",{className:"label-mono u-mb-xs is-purple-light",children:"Concierge Add-ons"}),o.jsx("h3",{className:"product-card_title",children:"Deep Research & Virtual Try-On"}),o.jsxs("p",{className:"product-card_desc",children:["Premium add-ons for AI Concierge customers. Each priced at ",o.jsx("strong",{className:"text-purple-light",children:"10% of your Concierge plan price"})," — so they scale with your store."]})]})}),!b&&m!==null&&o.jsxs("div",{className:"requires-row",children:[o.jsx("span",{className:"requires-label",children:"Requires"}),o.jsxs("div",{className:"requires-pill",children:[o.jsx("span",{className:"requires-pill_name",children:"AI Concierge"}),o.jsxs("span",{className:"requires-pill_price",children:[Q(m),"/mo"]})]}),o.jsxs("span",{className:"requires-note",children:["· each add-on = ",Q(Math.round(m*.1)),"/mo at this tier"]})]}),o.jsxs("div",{className:"addons-grid",children:[o.jsxs("div",{className:"addon-card",children:[o.jsx("div",{className:"label-mono u-mb-sm is-purple-light",children:"Deep Research"}),o.jsxs("div",{className:"addon-card_price",children:[D,o.jsx("span",{className:"addon-card_price-unit",children:"/mo"})]}),o.jsx("div",{className:"addon-card_price-note",children:"10% of your Concierge price · scales with your tier"}),o.jsx("ul",{className:"addon-card_features",children:["Catalog & competitor analysis","Shopper behavior deep-dives","AI-generated insights reports","Weekly trend summaries"].map(_=>o.jsxs("li",{className:"addon-card_feature",children:[o.jsx(Pt,{size:13,color:"#a89ef8",strokeWidth:2.5}),o.jsx("span",{className:"addon-card_feature-text",children:_})]},_))})]}),o.jsxs("div",{className:"addon-card",children:[o.jsx("div",{className:"label-mono u-mb-sm is-purple-light",children:"Virtual Try-On"}),o.jsxs("div",{className:"addon-card_price",children:[Z,o.jsx("span",{className:"addon-card_price-unit",children:"/mo"})]}),o.jsx("div",{className:"addon-card_price-note",children:"10% of your Concierge price · scales with your tier"}),o.jsx("ul",{className:"addon-card_features",children:["AI-powered product visualization","Reduce returns with confidence","Works on any product image","Boosts CVR by up to 40%"].map(_=>o.jsxs("li",{className:"addon-card_feature",children:[o.jsx(Pt,{size:13,color:"#a89ef8",strokeWidth:2.5}),o.jsx("span",{className:"addon-card_feature-text",children:_})]},_))})]})]}),o.jsxs("div",{className:"addons-footer",children:[o.jsx("a",{href:Ul,className:"btn is-primary-light",children:"Sign up"}),o.jsx("div",{className:"addons-footer_note",children:"Concierge add-ons require an active AI Concierge plan"})]})]})]})})]}),o.jsx(Vx,{corePlan:u,corePlanPrice:le,channelTotal:f,helpdeskTotal:d,billing:l,onSelectPlan:r})]})}const gg=document.getElementById("rep-ai-pricing")||document.getElementById("root");gg?p0.createRoot(gg).render(o.jsx(Tt.StrictMode,{children:o.jsx(jx,{defaultTheme:"light",children:o.jsx(mg,{children:o.jsx(Qx,{})})})})):console.error('REP AI Pricing: mount element not found. Add
to your page.')})();