diff --git a/assets/index-9VXQrnTa.js b/assets/index-9VXQrnTa.js deleted file mode 100644 index 84ad87d..0000000 --- a/assets/index-9VXQrnTa.js +++ /dev/null @@ -1,148 +0,0 @@ -function Kp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qu={exports:{}},Go={},Yu={exports:{}},j={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rr=Symbol.for("react.element"),Qp=Symbol.for("react.portal"),Yp=Symbol.for("react.fragment"),Gp=Symbol.for("react.strict_mode"),Xp=Symbol.for("react.profiler"),Zp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),qp=Symbol.for("react.forward_ref"),em=Symbol.for("react.suspense"),tm=Symbol.for("react.memo"),nm=Symbol.for("react.lazy"),da=Symbol.iterator;function rm(e){return e===null||typeof e!="object"?null:(e=da&&e[da]||e["@@iterator"],typeof e=="function"?e:null)}var Gu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xu=Object.assign,Zu={};function In(e,t,n){this.props=e,this.context=t,this.refs=Zu,this.updater=n||Gu}In.prototype.isReactComponent={};In.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};In.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ju(){}Ju.prototype=In.prototype;function ls(e,t,n){this.props=e,this.context=t,this.refs=Zu,this.updater=n||Gu}var is=ls.prototype=new Ju;is.constructor=ls;Xu(is,In.prototype);is.isPureReactComponent=!0;var fa=Array.isArray,qu=Object.prototype.hasOwnProperty,ss={current:null},ec={key:!0,ref:!0,__self:!0,__source:!0};function tc(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)qu.call(t,r)&&!ec.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,ee=P[z];if(0>>1;zo(yl,A))Ito(Ir,yl)?(P[z]=Ir,P[It]=A,z=It):(P[z]=yl,P[Ot]=A,z=Ot);else if(Ito(Ir,A))P[z]=Ir,P[It]=A,z=It;else break e}}return D}function o(P,D){var A=P.sortIndex-D.sortIndex;return A!==0?A:P.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var a=[],u=[],f=1,h=null,p=3,w=!1,E=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=P)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function S(P){if(v=!1,m(P),!E)if(n(a)!==null)E=!0,at(C);else{var D=n(u);D!==null&&en(S,D.startTime-P)}}function C(P,D){E=!1,v&&(v=!1,d(T),T=-1),w=!0;var A=p;try{for(m(D),h=n(a);h!==null&&(!(h.expirationTime>D)||P&&!ce());){var z=h.callback;if(typeof z=="function"){h.callback=null,p=h.priorityLevel;var ee=z(h.expirationTime<=D);D=e.unstable_now(),typeof ee=="function"?h.callback=ee:h===n(a)&&r(a),m(D)}else r(a);h=n(a)}if(h!==null)var Or=!0;else{var Ot=n(u);Ot!==null&&en(S,Ot.startTime-D),Or=!1}return Or}finally{h=null,p=A,w=!1}}var _=!1,N=null,T=-1,I=5,L=-1;function ce(){return!(e.unstable_now()-LP||125z?(P.sortIndex=A,t(u,P),n(a)===null&&P===n(u)&&(v?(d(T),T=-1):v=!0,en(S,A-z))):(P.sortIndex=ee,t(a,P),E||w||(E=!0,at(C))),P},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(P){var D=p;return function(){var A=p;p=D;try{return P.apply(this,arguments)}finally{p=A}}}})(ic);lc.exports=ic;var hm=lc.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var gm=g,ke=hm;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ni=Object.prototype.hasOwnProperty,vm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ma={},ha={};function ym(e){return ni.call(ha,e)?!0:ni.call(ma,e)?!1:vm.test(e)?ha[e]=!0:(ma[e]=!0,!1)}function wm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xm(e,t,n,r){if(t===null||typeof t>"u"||wm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function me(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){le[e]=new me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new me(e,5,!1,e.toLowerCase(),null,!1,!1)});var us=/[\-:]([a-z])/g;function cs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(us,cs);le[t]=new me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(us,cs);le[t]=new me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(us,cs);le[t]=new me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)});function ds(e,t,n,r){var o=le.hasOwnProperty(t)?le[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==l[s]){var a=` -`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=s);break}}}finally{Sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zn(e):""}function Sm(e){switch(e.tag){case 5:return Zn(e.type);case 16:return Zn("Lazy");case 13:return Zn("Suspense");case 19:return Zn("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function ii(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sn:return"Fragment";case ln:return"Portal";case ri:return"Profiler";case fs:return"StrictMode";case oi:return"Suspense";case li:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uc:return(e.displayName||"Context")+".Consumer";case ac:return(e._context.displayName||"Context")+".Provider";case ps:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ms:return t=e.displayName||null,t!==null?t:ii(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return ii(e(t))}catch{}}return null}function Em(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ii(t);case 8:return t===fs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function km(e){var t=dc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function br(e){e._valueTracker||(e._valueTracker=km(e))}function fc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function si(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pc(e,t){t=t.checked,t!=null&&ds(e,"checked",t,!1)}function ai(e,t){pc(e,t);var n=Pt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ui(e,t.type,n):t.hasOwnProperty("defaultValue")&&ui(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ya(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ui(e,t,n){(t!=="number"||xo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jn=Array.isArray;function yn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Br.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cm=["Webkit","ms","Moz","O"];Object.keys(tr).forEach(function(e){Cm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tr[t]=tr[e]})});function vc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tr.hasOwnProperty(e)&&tr[e]?(""+t).trim():t+"px"}function yc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nm=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fi(e,t){if(t){if(Nm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function pi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hi=null,wn=null,xn=null;function Sa(e){if(e=Ar(e)){if(typeof hi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=el(t),hi(e.stateNode,e.type,t))}}function wc(e){wn?xn?xn.push(e):xn=[e]:wn=e}function xc(){if(wn){var e=wn,t=xn;if(xn=wn=null,Sa(e),t)for(e=0;e>>=0,e===0?32:31-(Im(e)/zm|0)|0}var $r=64,Ur=4194304;function qn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Co(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=qn(s):(l&=i,l!==0&&(r=qn(l)))}else i=n&~o,i!==0?r=qn(i):l!==0&&(r=qn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Dr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ze(t),e[t]=n}function $m(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=rr),Da=" ",La=!1;function Bc(e,t){switch(e){case"keyup":return hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $c(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var an=!1;function vh(e,t){switch(e){case"compositionend":return $c(t);case"keypress":return t.which!==32?null:(La=!0,Da);case"textInput":return e=t.data,e===Da&&La?null:e;default:return null}}function yh(e,t){if(an)return e==="compositionend"||!ks&&Bc(e,t)?(e=Fc(),ao=xs=vt=null,an=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Oa(n)}}function Hc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kc(){for(var e=window,t=xo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xo(e.document)}return t}function Cs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ph(e){var t=Kc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hc(n.ownerDocument.documentElement,n)){if(r!==null&&Cs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Ia(n,l);var i=Ia(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,un=null,Si=null,lr=null,Ei=!1;function za(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ei||un==null||un!==xo(r)||(r=un,"selectionStart"in r&&Cs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lr&&yr(lr,r)||(lr=r,r=Po(Si,"onSelect"),0fn||(e.current=Ti[fn],Ti[fn]=null,fn--)}function B(e,t){fn++,Ti[fn]=e.current,e.current=t}var Tt={},ue=At(Tt),ve=At(!1),Ht=Tt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Tt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ye(e){return e=e.childContextTypes,e!=null}function Ro(){W(ve),W(ue)}function Va(e,t,n){if(ue.current!==Tt)throw Error(k(168));B(ue,t),B(ve,n)}function td(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,Em(e)||"Unknown",o));return Q({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tt,Ht=ue.current,B(ue,e),B(ve,ve.current),!0}function Ha(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=td(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,W(ve),W(ue),B(ue,e)):W(ve),B(ve,n)}var Ge=null,tl=!1,Il=!1;function nd(e){Ge===null?Ge=[e]:Ge.push(e)}function bh(e){tl=!0,nd(e)}function Mt(){if(!Il&&Ge!==null){Il=!0;var e=0,t=b;try{var n=Ge;for(b=1;e>=i,o-=i,Xe=1<<32-ze(t)+o|n<T?(I=N,N=null):I=N.sibling;var L=p(d,N,m[T],S);if(L===null){N===null&&(N=I);break}e&&N&&L.alternate===null&&t(d,N),c=l(L,c,T),_===null?C=L:_.sibling=L,_=L,N=I}if(T===m.length)return n(d,N),V&&zt(d,T),C;if(N===null){for(;TT?(I=N,N=null):I=N.sibling;var ce=p(d,N,L.value,S);if(ce===null){N===null&&(N=I);break}e&&N&&ce.alternate===null&&t(d,N),c=l(ce,c,T),_===null?C=ce:_.sibling=ce,_=ce,N=I}if(L.done)return n(d,N),V&&zt(d,T),C;if(N===null){for(;!L.done;T++,L=m.next())L=h(d,L.value,S),L!==null&&(c=l(L,c,T),_===null?C=L:_.sibling=L,_=L);return V&&zt(d,T),C}for(N=r(d,N);!L.done;T++,L=m.next())L=w(N,d,T,L.value,S),L!==null&&(e&&L.alternate!==null&&N.delete(L.key===null?T:L.key),c=l(L,c,T),_===null?C=L:_.sibling=L,_=L);return e&&N.forEach(function(F){return t(d,F)}),V&&zt(d,T),C}function x(d,c,m,S){if(typeof m=="object"&&m!==null&&m.type===sn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Fr:e:{for(var C=m.key,_=c;_!==null;){if(_.key===C){if(C=m.type,C===sn){if(_.tag===7){n(d,_.sibling),c=o(_,m.props.children),c.return=d,d=c;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===pt&&Ya(C)===_.type){n(d,_.sibling),c=o(_,m.props),c.ref=Hn(d,_,m),c.return=d,d=c;break e}n(d,_);break}else t(d,_);_=_.sibling}m.type===sn?(c=Wt(m.props.children,d.mode,S,m.key),c.return=d,d=c):(S=vo(m.type,m.key,m.props,null,d.mode,S),S.ref=Hn(d,c,m),S.return=d,d=S)}return i(d);case ln:e:{for(_=m.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(d,c.sibling),c=o(c,m.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Vl(m,d.mode,S),c.return=d,d=c}return i(d);case pt:return _=m._init,x(d,c,_(m._payload),S)}if(Jn(m))return E(d,c,m,S);if(Bn(m))return v(d,c,m,S);Gr(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(d,c.sibling),c=o(c,m),c.return=d,d=c):(n(d,c),c=Wl(m,d.mode,S),c.return=d,d=c),i(d)):n(d,c)}return x}var Ln=id(!0),sd=id(!1),Mo=At(null),jo=null,hn=null,Ts=null;function Rs(){Ts=hn=jo=null}function Ds(e){var t=Mo.current;W(Mo),e._currentValue=t}function Li(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function En(e,t){jo=e,Ts=hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function Le(e){var t=e._currentValue;if(Ts!==e)if(e={context:e,memoizedValue:t,next:null},hn===null){if(jo===null)throw Error(k(308));hn=e,jo.dependencies={lanes:0,firstContext:e}}else hn=hn.next=e;return t}var Bt=null;function Ls(e){Bt===null?Bt=[e]:Bt.push(e)}function ad(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ls(t)):(n.next=o.next,o.next=n),t.interleaved=n,nt(e,r)}function nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mt=!1;function As(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ud(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Je(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,nt(e,n)}return o=r.interleaved,o===null?(t.next=t,Ls(r)):(t.next=o.next,o.next=t),r.interleaved=t,nt(e,n)}function co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vs(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oo(e,t,n,r){var o=e.updateQueue;mt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,i===null?l=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var h=o.baseState;i=0,f=u=a=null,s=l;do{var p=s.lane,w=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var E=e,v=s;switch(p=t,w=n,v.tag){case 1:if(E=v.payload,typeof E=="function"){h=E.call(w,h,p);break e}h=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=v.payload,p=typeof E=="function"?E.call(w,h,p):E,p==null)break e;h=Q({},h,p);break e;case 2:mt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else w={eventTime:w,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=w,a=h):f=f.next=w,i|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(a=h),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Yt|=i,e.lanes=i,e.memoizedState=h}}function Xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Fl.transition;Fl.transition={};try{e(!1),t()}finally{b=n,Fl.transition=r}}function _d(){return Ae().memoizedState}function Wh(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pd(e))Td(t,n);else if(n=ad(e,t,n,r),n!==null){var o=fe();Fe(n,e,r,o),Rd(n,t,r)}}function Vh(e,t,n){var r=Nt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pd(e))Td(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,be(s,i)){var a=t.interleaved;a===null?(o.next=o,Ls(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=ad(e,t,o,r),n!==null&&(o=fe(),Fe(n,e,r,o),Rd(n,t,r))}}function Pd(e){var t=e.alternate;return e===K||t!==null&&t===K}function Td(e,t){ir=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vs(e,n)}}var Fo={readContext:Le,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Hh={readContext:Le,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Le,useEffect:Ja,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,po(4194308,4,Sd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return po(4194308,4,e,t)},useInsertionEffect:function(e,t){return po(4,2,e,t)},useMemo:function(e,t){var n=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:Za,useDebugValue:Bs,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Uh.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=Ue();if(V){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));Qt&30||pd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Ja(hd.bind(null,r,l,e),[e]),r.flags|=2048,_r(9,md.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ue(),t=ne.identifierPrefix;if(V){var n=Ze,r=Xe;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[We]=t,e[Sr]=r,bd(e,t,!1,!1),t.stateNode=e;e:{switch(i=pi(n,r),n){case"dialog":U("cancel",e),U("close",e),o=r;break;case"iframe":case"object":case"embed":U("load",e),o=r;break;case"video":case"audio":for(o=0;ojn&&(t.flags|=128,r=!0,Kn(l,!1),t.lanes=4194304)}else{if(!r)if(e=Io(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!V)return se(t),null}else 2*G()-l.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,Kn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=G(),t.sibling=null,n=H.current,B(H,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function qh(e,t){switch(_s(t),t.tag){case 1:return ye(t.type)&&Ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(),W(ve),W(ue),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return js(t),null;case 13:if(W(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(H),null;case 4:return An(),null;case 10:return Ds(t.type._context),null;case 22:case 23:return Ks(),null;case 24:return null;default:return null}}var Zr=!1,ae=!1,eg=typeof WeakSet=="function"?WeakSet:Set,R=null;function gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Bi(e,t,n){try{n()}catch(r){Y(e,t,r)}}var uu=!1;function tg(e,t){if(ki=No,e=Kc(),Cs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var w;h!==n||o!==0&&h.nodeType!==3||(s=i+o),h!==l||r!==0&&h.nodeType!==3||(a=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(w=h.firstChild)!==null;)p=h,h=w;for(;;){if(h===e)break t;if(p===n&&++u===o&&(s=i),p===l&&++f===r&&(a=i),(w=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=w}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ci={focusedElem:e,selectionRange:n},No=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var v=E.memoizedProps,x=E.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:je(t.type,v),x);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(S){Y(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return E=uu,uu=!1,E}function sr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Bi(t,n,l)}o=o.next}while(o!==r)}}function ol(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $i(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[Sr],delete t[Pi],delete t[zh],delete t[Fh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wd(e){return e.tag===5||e.tag===3||e.tag===4}function cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=To));else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}function Wi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Wi(e,t,n),e=e.sibling;e!==null;)Wi(e,t,n),e=e.sibling}var re=null,Oe=!1;function ut(e,t,n){for(n=n.child;n!==null;)Vd(e,t,n),n=n.sibling}function Vd(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Xo,n)}catch{}switch(n.tag){case 5:ae||gn(n,t);case 6:var r=re,o=Oe;re=null,ut(e,t,n),re=r,Oe=o,re!==null&&(Oe?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(Oe?(e=re,n=n.stateNode,e.nodeType===8?Ol(e.parentNode,n):e.nodeType===1&&Ol(e,n),gr(e)):Ol(re,n.stateNode));break;case 4:r=re,o=Oe,re=n.stateNode.containerInfo,Oe=!0,ut(e,t,n),re=r,Oe=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Bi(n,t,i),o=o.next}while(o!==r)}ut(e,t,n);break;case 1:if(!ae&&(gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Y(n,t,s)}ut(e,t,n);break;case 21:ut(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,ut(e,t,n),ae=r):ut(e,t,n);break;default:ut(e,t,n)}}function du(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new eg),t.forEach(function(r){var o=cg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Me(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rg(r/1960))-r,10e?16:e,yt===null)var r=!1;else{if(e=yt,yt=null,$o=0,O&6)throw Error(k(331));var o=O;for(O|=4,R=e.current;R!==null;){var l=R,i=l.child;if(R.flags&16){var s=l.deletions;if(s!==null){for(var a=0;aG()-Vs?Ut(e,0):Ws|=n),we(e,t)}function Jd(e,t){t===0&&(e.mode&1?(t=Ur,Ur<<=1,!(Ur&130023424)&&(Ur=4194304)):t=1);var n=fe();e=nt(e,t),e!==null&&(Dr(e,t,n),we(e,n))}function ug(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jd(e,n)}function cg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Jd(e,n)}var qd;qd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,Zh(e,t,n);ge=!!(e.flags&131072)}else ge=!1,V&&t.flags&1048576&&rd(t,Ao,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mo(e,t),e=t.pendingProps;var o=Rn(t,ue.current);En(t,n),o=zs(null,t,r,e,o,n);var l=Fs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(l=!0,Do(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,As(t),o.updater=rl,t.stateNode=o,o._reactInternals=t,Mi(t,r,e,n),t=Ii(null,t,r,!0,l,n)):(t.tag=0,V&&l&&Ns(t),de(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=fg(r),e=je(r,e),o){case 0:t=Oi(null,t,r,e,n);break e;case 1:t=iu(null,t,r,e,n);break e;case 11:t=ou(null,t,r,e,n);break e;case 14:t=lu(null,t,r,je(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:je(r,o),Oi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:je(r,o),iu(e,t,r,o,n);case 3:e:{if(Id(t),e===null)throw Error(k(387));r=t.pendingProps,l=t.memoizedState,o=l.element,ud(e,t),Oo(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Mn(Error(k(423)),t),t=su(e,t,r,n,o);break e}else if(r!==o){o=Mn(Error(k(424)),t),t=su(e,t,r,n,o);break e}else for(Se=Et(t.stateNode.containerInfo.firstChild),Ee=t,V=!0,Ie=null,n=sd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dn(),r===o){t=rt(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return cd(t),e===null&&Di(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Ni(r,o)?i=null:l!==null&&Ni(r,l)&&(t.flags|=32),Od(e,t),de(e,t,i,n),t.child;case 6:return e===null&&Di(t),null;case 13:return zd(e,t,n);case 4:return Ms(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ln(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:je(r,o),ou(e,t,r,o,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,B(Mo,r._currentValue),r._currentValue=i,l!==null)if(be(l.value,i)){if(l.children===o.children&&!ve.current){t=rt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Je(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Li(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Li(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}de(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,En(t,n),o=Le(o),r=r(o),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,o=je(r,t.pendingProps),o=je(r.type,o),lu(e,t,r,o,n);case 15:return Md(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:je(r,o),mo(e,t),t.tag=1,ye(r)?(e=!0,Do(t)):e=!1,En(t,n),Dd(t,r,o),Mi(t,r,o,n),Ii(null,t,r,!0,e,n);case 19:return Fd(e,t,n);case 22:return jd(e,t,n)}throw Error(k(156,t.tag))};function ef(e,t){return Pc(e,t)}function dg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Re(e,t,n,r){return new dg(e,t,n,r)}function Ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fg(e){if(typeof e=="function")return Ys(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ps)return 11;if(e===ms)return 14}return 2}function _t(e,t){var n=e.alternate;return n===null?(n=Re(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Ys(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case sn:return Wt(n.children,o,l,t);case fs:i=8,o|=8;break;case ri:return e=Re(12,n,t,o|2),e.elementType=ri,e.lanes=l,e;case oi:return e=Re(13,n,t,o),e.elementType=oi,e.lanes=l,e;case li:return e=Re(19,n,t,o),e.elementType=li,e.lanes=l,e;case cc:return il(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ac:i=10;break e;case uc:i=9;break e;case ps:i=11;break e;case ms:i=14;break e;case pt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Re(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Wt(e,t,n,r){return e=Re(7,e,r,t),e.lanes=n,e}function il(e,t,n,r){return e=Re(22,e,r,t),e.elementType=cc,e.lanes=n,e.stateNode={isHidden:!1},e}function Wl(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function Vl(e,t,n){return t=Re(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pg(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gs(e,t,n,r,o,l,i,s,a){return e=new pg(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Re(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},As(l),e}function mg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(of)}catch(e){console.error(e)}}of(),oc.exports=Ce;var qs=oc.exports;const wg=Ku(qs);var lf,wu=qs;lf=wu.createRoot,wu.hydrateRoot;function xg(e,t=()=>{}){return{emit:e,cancel:t}}function sf(){const e=[];return{collect(t){return"emit"in t||(t=xg(t)),e.push(t),{cancel(){const n=e.indexOf(t);e.splice(n,1),t.cancel()}}},emit(t){for(let n of e)n.emit(t)}}}function Rt(e){e()}function Sg(e){const t=[];let n=[];const r=sf();function o(s){return new Promise(a=>{n.push({request:s,resolve(u){a(u)}}),l.readyState==WebSocket.OPEN&&(console.log(">> ws: execute",s),l.send(JSON.stringify(s)))})}let l;function i(){l=new WebSocket(e),l.onopen=()=>{console.log("<< ws: onopen"),n=n.filter(({request:s})=>!t.includes(s));for(const{request:s}of n)try{console.log(">> ws: request",s),l.send(JSON.stringify(s))}catch(a){console.error("<< ws: open catch",a)}for(const s of t)Rt(()=>o(s))},l.onclose=s=>{console.error("<< ws: onclose",s),setTimeout(i,1e3)},l.onmessage=s=>{const a=JSON.parse(s.data);if((()=>{const u=x=>x.type==="response"&&!0,f=x=>x.type==="event"&&typeof x.event=="object"&&x.event!==null&&E(x.event),h=x=>x.type==="new"&&typeof x.message=="object"&&x.message!==null&&p(x.message),p=x=>typeof x.chatId=="string"&&typeof x.nonce=="number"&&typeof x.signature=="string"&&typeof x.content=="string"&&typeof x.contentIV=="string",w=x=>x.type==="wait"&&typeof x.chatId=="string",E=x=>x.type==="new"?h(x):x.type==="wait"?w(x):!1,v=x=>x.type==="response"?u(x):x.type==="event"?f(x):!1;return x=>typeof x=="object"&&x!==null&&v(x)})()(a)){if(a.type=="response"){const u=n.shift();if(!u)throw new Error("Got response without any request");console.log("<< ws: response",a),u.resolve(a)}a.type=="event"&&(console.log("<< ws: event",a),r.emit(a.event))}}}return i(),{events:r,bind(s){console.log(">> ws: bind",s),t.push(s),Rt(async()=>{await this.execute(s)})},unbind(s){console.log(">> ws: unbind",s),t.splice(t.indexOf(s),1)},execute:o}}const Yi=(e,t)=>t.some(n=>e instanceof n);let xu,Su;function Eg(){return xu||(xu=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function kg(){return Su||(Su=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Gi=new WeakMap,Hl=new WeakMap,dl=new WeakMap;function Cg(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",l),e.removeEventListener("error",i)},l=()=>{n(Vt(e.result)),o()},i=()=>{r(e.error),o()};e.addEventListener("success",l),e.addEventListener("error",i)});return dl.set(t,e),t}function Ng(e){if(Gi.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",l),e.removeEventListener("error",i),e.removeEventListener("abort",i)},l=()=>{n(),o()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",l),e.addEventListener("error",i),e.addEventListener("abort",i)});Gi.set(e,t)}let Xi={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Gi.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Vt(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function af(e){Xi=e(Xi)}function _g(e){return kg().includes(e)?function(...t){return e.apply(Zi(this),t),Vt(this.request)}:function(...t){return Vt(e.apply(Zi(this),t))}}function Pg(e){return typeof e=="function"?_g(e):(e instanceof IDBTransaction&&Ng(e),Yi(e,Eg())?new Proxy(e,Xi):e)}function Vt(e){if(e instanceof IDBRequest)return Cg(e);if(Hl.has(e))return Hl.get(e);const t=Pg(e);return t!==e&&(Hl.set(e,t),dl.set(t,e)),t}const Zi=e=>dl.get(e);function Tg(e,t,{blocked:n,upgrade:r,blocking:o,terminated:l}={}){const i=indexedDB.open(e,t),s=Vt(i);return r&&i.addEventListener("upgradeneeded",a=>{r(Vt(i.result),a.oldVersion,a.newVersion,Vt(i.transaction),a)}),n&&i.addEventListener("blocked",a=>n(a.oldVersion,a.newVersion,a)),s.then(a=>{l&&a.addEventListener("close",()=>l()),o&&a.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),s}const Rg=["get","getKey","getAll","getAllKeys","count"],Dg=["put","add","delete","clear"],Kl=new Map;function Eu(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Kl.get(t))return Kl.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Dg.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||Rg.includes(n)))return;const l=async function(i,...s){const a=this.transaction(i,o?"readwrite":"readonly");let u=a.store;return r&&(u=u.index(s.shift())),(await Promise.all([u[n](...s),o&&a.done]))[0]};return Kl.set(t,l),l}af(e=>({...e,get:(t,n,r)=>Eu(t,n)||e.get(t,n,r),has:(t,n)=>!!Eu(t,n)||e.has(t,n)}));const Lg=["continue","continuePrimaryKey","advance"],ku={},Ji=new WeakMap,uf=new WeakMap,Ag={get(e,t){if(!Lg.includes(t))return e[t];let n=ku[t];return n||(n=ku[t]=function(...r){Ji.set(this,uf.get(this)[t](...r))}),n}};async function*Mg(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,Ag);for(uf.set(n,t),dl.set(n,Zi(t));t;)yield n,t=await(Ji.get(n)||t.continue()),Ji.delete(n)}function Cu(e,t){return t===Symbol.asyncIterator&&Yi(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Yi(e,[IDBIndex,IDBObjectStore])}af(e=>({...e,get(t,n,r){return Cu(t,n)?Mg:e.get(t,n,r)},has(t,n){return Cu(t,n)||e.has(t,n)}}));function Vo(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let o=0;o=1&&_u(t)}});return{chat:Ug(),message:Vg(e),nickname:Hg(e)}}function Qg(){const e=sf();return{flow:e,emit(t){e.emit(t)}}}function Yg(){return{async decode({content:e,contentIV:t,signature:n,key:r}){const o=await Fg({encrypted:e,iv:t,key:r});return!o||!await Bg({data:"SIGNATURE:"+o.string,key:r,signature:n})?null:JSON.parse(o.string)},async encode({content:e,key:t}){const n=JSON.stringify(e),r=await Nu({data:"SIGNATURE:"+n,key:t}),o=await bg({data:n,key:t});return{contentIV:o.iv,content:o.encrypted,signature:r}},deriveNextKey(e){return Nu({data:"NEXT-KEY",key:e})}}}function Gg({messageStorage:e,coder:t,chat:n}){return async r=>{const o=await e.lastMessage(n);if(!o)throw new Error("Cannot get message key for chat that is not created");if(o.nonce>r)return;let l=o.key,i=o.nonce;for(;i!=r;)l=await t.deriveNextKey(l),i++;return l}}function Xg({nickname:e,sendMessage:t,events:n}){return({text:r})=>{n.emit({type:"reset_text"}),t({content:{type:"regular",title:e(),text:r}})}}function Zg(){let e=0;return{incrementAndGet(){return e++}}}function Jg({events:e,storage:t}){return n=>{e.emit({type:"nickname",nickname:n}),n.length==0&&(n="Anonymous"),Rt(()=>t.setName(n))}}function Pu({events:e,storage:t,messagesSnapshot:n}){let r;function o(l){r=l||"Anonymous"}return o(),Rt(async()=>{const l=await t.getName();o(l),e.emit({type:"nickname",nickname:r})}),e.flow.collect(l=>{switch(l.type){case"nickname":o(l.nickname);for(const i of n())i.content.type=="regular"&&(i.isAuthor&&i.content.title!=r&&e.emit({type:"edit",nonce:i.nonce,message:{...i,isAuthor:!1}}),!i.isAuthor&&i.content.title==r&&e.emit({type:"edit",nonce:i.nonce,message:{...i,isAuthor:!0}}));break}}),()=>r}function qg(){return e=>{if((()=>{const t=o=>o.type==="regular"&&typeof o.title=="string"&&typeof o.text=="string",n=o=>o.type==="unknown",r=o=>o.type==="regular"?t(o):o.type==="unknown"?n(o):!1;return o=>typeof o=="object"&&o!==null&&r(o)})()(e)){if(e.type=="regular"){const t=e.text.length>4096?`${e.text.substring(0,4096)}...`:e.text,n=e.title.length>25?`${e.title.substring(0,25)}...`:e.title;return{...e,text:t,title:n}}return e}}}function ev({events:e}){let t=[];function n(){e.emit({type:"messages_snapshot",messages:t})}return e.flow.collect(r=>{switch(r.type){case"new":t=[r.message,...t],n();break;case"history":t=[...t,r.message],n();break;case"edit":t=t.map(o=>o.nonce==r.nonce?r.message:o),n();break}}),()=>t}function tv({getMessageKey:e,coder:t,sanitizeContent:n,getNickname:r}){return async o=>{const l=await e(o.nonce);if(!l)throw new Error("Can't get message key");let i=await t.decode({content:o.content,contentIV:o.contentIV,signature:o.signature,key:l});i=n(i);const s={nonce:{server:o.nonce},isSending:!1,isFailure:!1,key:l};if(i?.type=="regular"){const a=r();return{content:i,isAuthor:a==i.title,display:!0,...s}}else return{isAuthor:!1,content:{type:"unknown"},display:!1,...s}}}function nv({events:e,socket:t,decodeMessage:n,messagesSnapshot:r,messagesStorage:o}){return()=>{t.events.collect(l=>Rt(async()=>{if(l.type=="new"){const i=await n(l.message);e.emit({type:"save",chat:l.message,message:{...i,nonce:{server:l.message.nonce}}});for(const s of r())if("server"in s.nonce&&s.nonce.server==i.nonce.server)return;e.emit({type:"new",message:i})}l.type=="wait"&&e.emit({type:"loaded"})}))}}function rv({socket:e,getMessageKey:t,coder:n,events:r,localNonce:o,sanitizeContent:l,chat:i}){let s=0;return r.flow.collect(a=>{switch(a.type){case"edit":case"history":case"new":"server"in a.message.nonce&&a.message.nonce.server>=s&&(s=a.message.nonce.server+1);break}}),a=>Rt(async()=>{const u=l(a.content);if(!u)return;const f={nonce:{local:o.incrementAndGet()},isAuthor:!0,isSending:!0,isFailure:!1,content:u};r.emit({type:"new",message:f});let h=20;for(;;){const p=await t(s);if(!p)throw new Error("Can't get message key");const{content:w,contentIV:E,signature:v}=await n.encode({key:p,content:f.content}),d={type:"send",message:{...i,content:w,contentIV:E,nonce:s,signature:v}};if((await e.execute(d)).status){const m={...f,isSending:!1,nonce:{server:s}};r.emit({type:"edit",nonce:f.nonce,message:m});return}if(h--,h<0){r.emit({type:"edit",nonce:f.nonce,message:{...f,isFailure:!0,isSending:!1}});return}}})}function ov({chat:e,events:t,messagesStorage:n,getNickname:r}){return()=>Rt(async()=>{const o=await n.list(e),l=r();for(const i of o){if(i.content.type=="deferred")continue;const s=i.content;t.emit({type:"history",message:{...i,content:s,isAuthor:i.content.type=="regular"&&i.content.title==l,isSending:!1,isFailure:!1,nonce:{server:i.nonce}}})}})}function lv({events:e,messageStorage:t,getMessageKey:n}){return()=>{e.flow.collect(r=>Rt(async()=>{if(r.type!="save")return;const o=await n(r.message.nonce.server);if(!o)return;const l=r.message;await t.add({...l,chatId:r.chat.chatId,nonce:r.message.nonce.server,key:o})}))}}function iv(e,t){const{socket:n,persistence:r}=e,o=Qg(),l=Yg(),i=qg(),s=ev({events:o}),a=Pu({events:o,messagesSnapshot:s,storage:r.nickname}),u=Pu({events:o,messagesSnapshot:s,storage:r.nickname}),f=Gg({messageStorage:r.message,coder:l,chat:t}),h=tv({getMessageKey:f,coder:l,sanitizeContent:i,getNickname:u}),p=Zg(),w=rv({coder:l,events:o,localNonce:p,getMessageKey:f,socket:n,sanitizeContent:i,chat:t}),E=Xg({nickname:a,sendMessage:w,events:o}),v=Jg({events:o,storage:r.nickname});return nv({decodeMessage:h,events:o,socket:n,messagesSnapshot:s,messagesStorage:r.message})(),ov({chat:t,events:o,getNickname:u,messagesStorage:r.message})(),lv({events:o,getMessageKey:f,messageStorage:r.message})(),{events:o,sendMessage:E,chat:t,setNickname:v,getNickname:u}}async function sv(){const e={chatId:"bHKhl2cuQ01pDXSRaqq/OMJeDFJVNIY5YuQB2w7ve+c="},t="/uwFt2yxHi59l26H9V8VTN3Kq+FtRewuWNfz1TNVcnM=",n=await Kg(),r=Sg("https://meetacy.app/seed-go"),o=await n.message.lastMessageNonce(e);return r.bind({type:"subscribe",chatId:e.chatId,nonce:o??0}),await n.message.lastMessage(e)==null&&await n.message.add({...e,key:t,nonce:0,content:{type:"deferred"}}),{socket:r,persistence:n,createChat(){return iv(this,e)}}}function av(e,t){const n=g.createContext(t),r=l=>{const{children:i,...s}=l,a=g.useMemo(()=>s,Object.values(s));return y.jsx(n.Provider,{value:a,children:i})};r.displayName=e+"Provider";function o(l){const i=g.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,o]}function ta(e,t=[]){let n=[];function r(l,i){const s=g.createContext(i),a=n.length;n=[...n,i];const u=h=>{const{scope:p,children:w,...E}=h,v=p?.[e]?.[a]||s,x=g.useMemo(()=>E,Object.values(E));return y.jsx(v.Provider,{value:x,children:w})};u.displayName=l+"Provider";function f(h,p){const w=p?.[e]?.[a]||s,E=g.useContext(w);if(E)return E;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${l}\``)}return[u,f]}const o=()=>{const l=n.map(i=>g.createContext(i));return function(s){const a=s?.[e]||l;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,uv(o,...t)]}function uv(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=r.reduce((s,{useScope:a,scopeName:u})=>{const h=a(l)[`__scope${u}`];return{...s,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function cv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cf(...e){return t=>e.forEach(n=>cv(n,t))}function lt(...e){return g.useCallback(cf(...e),e)}function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var On=globalThis?.document?g.useLayoutEffect:()=>{},dv=am.useId||(()=>{}),fv=0;function Ql(e){const[t,n]=g.useState(dv());return On(()=>{e||n(r=>r??String(fv++))},[e]),e||(t?`radix-${t}`:"")}function Dt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>t.current?.(...n),[])}function pv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=mv({defaultProp:t,onChange:n}),l=e!==void 0,i=l?e:r,s=Dt(n),a=g.useCallback(u=>{if(l){const h=typeof u=="function"?u(e):u;h!==e&&s(h)}else o(u)},[l,e,o,s]);return[i,a]}function mv({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,o=g.useRef(r),l=Dt(t);return g.useEffect(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}var pl=g.forwardRef((e,t)=>{const{children:n,...r}=e,o=g.Children.toArray(n),l=o.find(hv);if(l){const i=l.props.children,s=o.map(a=>a===l?g.Children.count(i)>1?g.Children.only(null):g.isValidElement(i)?i.props.children:null:a);return y.jsx(qi,{...r,ref:t,children:g.isValidElement(i)?g.cloneElement(i,void 0,s):null})}return y.jsx(qi,{...r,ref:t,children:n})});pl.displayName="Slot";var qi=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const o=vv(n);return g.cloneElement(n,{...gv(r,n.props),ref:t?cf(t,o):o})}return g.Children.count(n)>1?g.Children.only(null):null});qi.displayName="SlotClone";var df=({children:e})=>y.jsx(y.Fragment,{children:e});function hv(e){return g.isValidElement(e)&&e.type===df}function gv(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{l(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function vv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_e=yv.reduce((e,t)=>{const n=g.forwardRef((r,o)=>{const{asChild:l,...i}=r,s=l?pl:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wv(e,t){e&&qs.flushSync(()=>e.dispatchEvent(t))}function xv(e,t=globalThis?.document){const n=Dt(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Sv="DismissableLayer",es="dismissableLayer.update",Ev="dismissableLayer.pointerDownOutside",kv="dismissableLayer.focusOutside",Tu,ff=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pf=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...a}=e,u=g.useContext(ff),[f,h]=g.useState(null),p=f?.ownerDocument??globalThis?.document,[,w]=g.useState({}),E=lt(t,N=>h(N)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),d=v.indexOf(x),c=f?v.indexOf(f):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,S=c>=d,C=_v(N=>{const T=N.target,I=[...u.branches].some(L=>L.contains(T));!S||I||(o?.(N),i?.(N),N.defaultPrevented||s?.())},p),_=Pv(N=>{const T=N.target;[...u.branches].some(L=>L.contains(T))||(l?.(N),i?.(N),N.defaultPrevented||s?.())},p);return xv(N=>{c===u.layers.size-1&&(r?.(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},p),g.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Tu=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ru(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Tu)}},[f,p,n,u]),g.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ru())},[f,u]),g.useEffect(()=>{const N=()=>w({});return document.addEventListener(es,N),()=>document.removeEventListener(es,N)},[]),y.jsx(_e.div,{...a,ref:E,style:{pointerEvents:m?S?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,C.onPointerDownCapture)})});pf.displayName=Sv;var Cv="DismissableLayerBranch",Nv=g.forwardRef((e,t)=>{const n=g.useContext(ff),r=g.useRef(null),o=lt(t,r);return g.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),y.jsx(_e.div,{...e,ref:o})});Nv.displayName=Cv;function _v(e,t=globalThis?.document){const n=Dt(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const l=s=>{if(s.target&&!r.current){let a=function(){mf(Ev,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Pv(e,t=globalThis?.document){const n=Dt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=l=>{l.target&&!r.current&&mf(kv,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ru(){const e=new CustomEvent(es);document.dispatchEvent(e)}function mf(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wv(o,l):o.dispatchEvent(l)}var Yl="focusScope.autoFocusOnMount",Gl="focusScope.autoFocusOnUnmount",Du={bubbles:!1,cancelable:!0},Tv="FocusScope",hf=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=e,[s,a]=g.useState(null),u=Dt(o),f=Dt(l),h=g.useRef(null),p=lt(t,v=>a(v)),w=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let v=function(m){if(w.paused||!s)return;const S=m.target;s.contains(S)?h.current=S:ft(h.current,{select:!0})},x=function(m){if(w.paused||!s)return;const S=m.relatedTarget;S!==null&&(s.contains(S)||ft(h.current,{select:!0}))},d=function(m){if(document.activeElement===document.body)for(const C of m)C.removedNodes.length>0&&ft(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const c=new MutationObserver(d);return s&&c.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),c.disconnect()}}},[r,s,w.paused]),g.useEffect(()=>{if(s){Au.add(w);const v=document.activeElement;if(!s.contains(v)){const d=new CustomEvent(Yl,Du);s.addEventListener(Yl,u),s.dispatchEvent(d),d.defaultPrevented||(Rv(jv(gf(s)),{select:!0}),document.activeElement===v&&ft(s))}return()=>{s.removeEventListener(Yl,u),setTimeout(()=>{const d=new CustomEvent(Gl,Du);s.addEventListener(Gl,f),s.dispatchEvent(d),d.defaultPrevented||ft(v??document.body,{select:!0}),s.removeEventListener(Gl,f),Au.remove(w)},0)}}},[s,u,f,w]);const E=g.useCallback(v=>{if(!n&&!r||w.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,d=document.activeElement;if(x&&d){const c=v.currentTarget,[m,S]=Dv(c);m&&S?!v.shiftKey&&d===S?(v.preventDefault(),n&&ft(m,{select:!0})):v.shiftKey&&d===m&&(v.preventDefault(),n&&ft(S,{select:!0})):d===c&&v.preventDefault()}},[n,r,w.paused]);return y.jsx(_e.div,{tabIndex:-1,...i,ref:p,onKeyDown:E})});hf.displayName=Tv;function Rv(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ft(r,{select:t}),document.activeElement!==n)return}function Dv(e){const t=gf(e),n=Lu(t,e),r=Lu(t.reverse(),e);return[n,r]}function gf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lu(e,t){for(const n of e)if(!Lv(n,{upTo:t}))return n}function Lv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Av(e){return e instanceof HTMLInputElement&&"select"in e}function ft(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Av(e)&&t&&e.select()}}var Au=Mv();function Mv(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Mu(e,t),e.unshift(t)},remove(t){e=Mu(e,t),e[0]?.resume()}}}function Mu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jv(e){return e.filter(t=>t.tagName!=="A")}var Ov="Portal",vf=g.forwardRef((e,t)=>{const{container:n,...r}=e,[o,l]=g.useState(!1);On(()=>l(!0),[]);const i=n||o&&globalThis?.document?.body;return i?wg.createPortal(y.jsx(_e.div,{...r,ref:t}),i):null});vf.displayName=Ov;function Iv(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var ml=e=>{const{present:t,children:n}=e,r=zv(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),l=lt(r.ref,Fv(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:l}):null};ml.displayName="Presence";function zv(e){const[t,n]=g.useState(),r=g.useRef({}),o=g.useRef(e),l=g.useRef("none"),i=e?"mounted":"unmounted",[s,a]=Iv(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=eo(r.current);l.current=s==="mounted"?u:"none"},[s]),On(()=>{const u=r.current,f=o.current;if(f!==e){const p=l.current,w=eo(u);e?a("MOUNT"):w==="none"||u?.display==="none"?a("UNMOUNT"):a(f&&p!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),On(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=w=>{const v=eo(r.current).includes(w.animationName);if(w.target===t&&v&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=w=>{w.target===t&&(l.current=eo(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function eo(e){return e?.animationName||"none"}function Fv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xl=0;function bv(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ju()),document.body.insertAdjacentElement("beforeend",e[1]??ju()),Xl++,()=>{Xl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xl--}},[])}function ju(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ve=function(){return Ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return ny;var t=ry(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ly=Sf(),Cn="data-scroll-locked",iy=function(e,t,n,r){var o=e.left,l=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat($v,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body[`).concat(Cn,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(l,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(yo,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(wo,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(yo," .").concat(yo,` { - right: 0 `).concat(r,`; - } - - .`).concat(wo," .").concat(wo,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Cn,`] { - `).concat(Uv,": ").concat(s,`px; - } -`)},Iu=function(){var e=parseInt(document.body.getAttribute(Cn)||"0",10);return isFinite(e)?e:0},sy=function(){g.useEffect(function(){return document.body.setAttribute(Cn,(Iu()+1).toString()),function(){var e=Iu()-1;e<=0?document.body.removeAttribute(Cn):document.body.setAttribute(Cn,e.toString())}},[])},ay=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;sy();var l=g.useMemo(function(){return oy(o)},[o]);return g.createElement(ly,{styles:iy(l,!t,o,n?"":"!important")})},ts=!1;if(typeof window<"u")try{var to=Object.defineProperty({},"passive",{get:function(){return ts=!0,!0}});window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{ts=!1}var nn=ts?{passive:!1}:!1,uy=function(e){return e.tagName==="TEXTAREA"},Ef=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uy(e)&&n[t]==="visible")},cy=function(e){return Ef(e,"overflowY")},dy=function(e){return Ef(e,"overflowX")},zu=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=kf(e,r);if(o){var l=Cf(e,r),i=l[1],s=l[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},py=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},kf=function(e,t){return e==="v"?cy(t):dy(t)},Cf=function(e,t){return e==="v"?fy(t):py(t)},my=function(e,t){return e==="h"&&t==="rtl"?-1:1},hy=function(e,t,n,r,o){var l=my(e,window.getComputedStyle(t).direction),i=l*r,s=n.target,a=t.contains(s),u=!1,f=i>0,h=0,p=0;do{var w=Cf(e,s),E=w[0],v=w[1],x=w[2],d=v-x-l*E;(E||d)&&kf(e,s)&&(h+=d,p+=E),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(f&&(Math.abs(h)<1||!o)||!f&&(Math.abs(p)<1||!o))&&(u=!0),u},no=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fu=function(e){return[e.deltaX,e.deltaY]},bu=function(e){return e&&"current"in e?e.current:e},gy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vy=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},yy=0,rn=[];function wy(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(yy++)[0],l=g.useState(Sf)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Bv([e.lockRef.current],(e.shards||[]).map(bu),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var d=no(v),c=n.current,m="deltaX"in v?v.deltaX:c[0]-d[0],S="deltaY"in v?v.deltaY:c[1]-d[1],C,_=v.target,N=Math.abs(m)>Math.abs(S)?"h":"v";if("touches"in v&&N==="h"&&_.type==="range")return!1;var T=zu(N,_);if(!T)return!0;if(T?C=N:(C=N==="v"?"h":"v",T=zu(N,_)),!T)return!1;if(!r.current&&"changedTouches"in v&&(m||S)&&(r.current=C),!C)return!0;var I=r.current||C;return hy(I,x,v,I==="h"?m:S,!0)},[]),a=g.useCallback(function(v){var x=v;if(!(!rn.length||rn[rn.length-1]!==l)){var d="deltaY"in x?Fu(x):no(x),c=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&gy(C.delta,d)})[0];if(c&&c.should){x.cancelable&&x.preventDefault();return}if(!c){var m=(i.current.shards||[]).map(bu).filter(Boolean).filter(function(C){return C.contains(x.target)}),S=m.length>0?s(x,m[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=g.useCallback(function(v,x,d,c){var m={name:v,delta:x,target:d,should:c,shadowParent:xy(d)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(S){return S!==m})},1)},[]),f=g.useCallback(function(v){n.current=no(v),r.current=void 0},[]),h=g.useCallback(function(v){u(v.type,Fu(v),v.target,s(v,e.lockRef.current))},[]),p=g.useCallback(function(v){u(v.type,no(v),v.target,s(v,e.lockRef.current))},[]);g.useEffect(function(){return rn.push(l),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",a,nn),document.addEventListener("touchmove",a,nn),document.addEventListener("touchstart",f,nn),function(){rn=rn.filter(function(v){return v!==l}),document.removeEventListener("wheel",a,nn),document.removeEventListener("touchmove",a,nn),document.removeEventListener("touchstart",f,nn)}},[]);var w=e.removeScrollBar,E=e.inert;return g.createElement(g.Fragment,null,E?g.createElement(l,{styles:vy(o)}):null,w?g.createElement(ay,{gapMode:e.gapMode}):null)}function xy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Sy=Gv(xf,wy);var Nf=g.forwardRef(function(e,t){return g.createElement(hl,Ve({},e,{ref:t,sideCar:Sy}))});Nf.classNames=hl.classNames;var Ey=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},on=new WeakMap,ro=new WeakMap,oo={},ei=0,_f=function(e){return e&&(e.host||_f(e.parentNode))},ky=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_f(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Cy=function(e,t,n,r){var o=ky(t,Array.isArray(e)?e:[e]);oo[n]||(oo[n]=new WeakMap);var l=oo[n],i=[],s=new Set,a=new Set(o),u=function(h){!h||s.has(h)||(s.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||a.has(h)||Array.prototype.forEach.call(h.children,function(p){if(s.has(p))f(p);else try{var w=p.getAttribute(r),E=w!==null&&w!=="false",v=(on.get(p)||0)+1,x=(l.get(p)||0)+1;on.set(p,v),l.set(p,x),i.push(p),v===1&&E&&ro.set(p,!0),x===1&&p.setAttribute(n,"true"),E||p.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",p,d)}})};return f(t),s.clear(),ei++,function(){i.forEach(function(h){var p=on.get(h)-1,w=l.get(h)-1;on.set(h,p),l.set(h,w),p||(ro.has(h)||h.removeAttribute(r),ro.delete(h)),w||h.removeAttribute(n)}),ei--,ei||(on=new WeakMap,on=new WeakMap,ro=new WeakMap,oo={})}},Ny=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ey(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Cy(r,o,n,"aria-hidden")):function(){return null}},na="Dialog",[Pf,Tf]=ta(na),[_y,Be]=Pf(na),Rf=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:i=!0}=e,s=g.useRef(null),a=g.useRef(null),[u=!1,f]=pv({prop:r,defaultProp:o,onChange:l});return y.jsx(_y,{scope:t,triggerRef:s,contentRef:a,contentId:Ql(),titleId:Ql(),descriptionId:Ql(),open:u,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(h=>!h),[f]),modal:i,children:n})};Rf.displayName=na;var Df="DialogTrigger",Lf=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Df,n),l=lt(t,o.triggerRef);return y.jsx(_e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":la(o.open),...r,ref:l,onClick:qe(e.onClick,o.onOpenToggle)})});Lf.displayName=Df;var ra="DialogPortal",[Py,Af]=Pf(ra,{forceMount:void 0}),Mf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=Be(ra,t);return y.jsx(Py,{scope:t,forceMount:n,children:g.Children.map(r,i=>y.jsx(ml,{present:n||l.open,children:y.jsx(vf,{asChild:!0,container:o,children:i})}))})};Mf.displayName=ra;var Qo="DialogOverlay",jf=g.forwardRef((e,t)=>{const n=Af(Qo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=Be(Qo,e.__scopeDialog);return l.modal?y.jsx(ml,{present:r||l.open,children:y.jsx(Ty,{...o,ref:t})}):null});jf.displayName=Qo;var Ty=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Qo,n);return y.jsx(Nf,{as:pl,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(_e.div,{"data-state":la(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Zt="DialogContent",Of=g.forwardRef((e,t)=>{const n=Af(Zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=Be(Zt,e.__scopeDialog);return y.jsx(ml,{present:r||l.open,children:l.modal?y.jsx(Ry,{...o,ref:t}):y.jsx(Dy,{...o,ref:t})})});Of.displayName=Zt;var Ry=g.forwardRef((e,t)=>{const n=Be(Zt,e.__scopeDialog),r=g.useRef(null),o=lt(t,n.contentRef,r);return g.useEffect(()=>{const l=r.current;if(l)return Ny(l)},[]),y.jsx(If,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qe(e.onCloseAutoFocus,l=>{l.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:qe(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&l.preventDefault()}),onFocusOutside:qe(e.onFocusOutside,l=>l.preventDefault())})}),Dy=g.forwardRef((e,t)=>{const n=Be(Zt,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return y.jsx(If,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(r.current||n.triggerRef.current?.focus(),l.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=l.target;n.triggerRef.current?.contains(i)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),If=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=e,s=Be(Zt,n),a=g.useRef(null),u=lt(t,a);return bv(),y.jsxs(y.Fragment,{children:[y.jsx(hf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:y.jsx(pf,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":la(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(Ay,{titleId:s.titleId}),y.jsx(jy,{contentRef:a,descriptionId:s.descriptionId})]})]})}),oa="DialogTitle",zf=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(oa,n);return y.jsx(_e.h2,{id:o.titleId,...r,ref:t})});zf.displayName=oa;var Ff="DialogDescription",bf=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Ff,n);return y.jsx(_e.p,{id:o.descriptionId,...r,ref:t})});bf.displayName=Ff;var Bf="DialogClose",$f=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Bf,n);return y.jsx(_e.button,{type:"button",...r,ref:t,onClick:qe(e.onClick,()=>o.onOpenChange(!1))})});$f.displayName=Bf;function la(e){return e?"open":"closed"}var Uf="DialogTitleWarning",[Ly,Wf]=av(Uf,{contentName:Zt,titleName:oa,docsSlug:"dialog"}),Ay=({titleId:e})=>{const t=Wf(Uf),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},My="DialogDescriptionWarning",jy=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wf(My).contentName}}.`;return g.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Oy=Rf,Iy=Lf,zy=Mf,Fy=jf,by=Of,By=zf,$y=bf,Vf=$f,Hf="AlertDialog",[Uy,f1]=ta(Hf,[Tf]),it=Tf(),Kf=e=>{const{__scopeAlertDialog:t,...n}=e,r=it(t);return y.jsx(Oy,{...r,...n,modal:!0})};Kf.displayName=Hf;var Wy="AlertDialogTrigger",Qf=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=it(n);return y.jsx(Iy,{...o,...r,ref:t})});Qf.displayName=Wy;var Vy="AlertDialogPortal",Yf=e=>{const{__scopeAlertDialog:t,...n}=e,r=it(t);return y.jsx(zy,{...r,...n})};Yf.displayName=Vy;var Hy="AlertDialogOverlay",Gf=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=it(n);return y.jsx(Fy,{...o,...r,ref:t})});Gf.displayName=Hy;var Nn="AlertDialogContent",[Ky,Qy]=Uy(Nn),Xf=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,l=it(n),i=g.useRef(null),s=lt(t,i),a=g.useRef(null);return y.jsx(Ly,{contentName:Nn,titleName:Zf,docsSlug:"alert-dialog",children:y.jsx(Ky,{scope:n,cancelRef:a,children:y.jsxs(by,{role:"alertdialog",...l,...o,ref:s,onOpenAutoFocus:qe(o.onOpenAutoFocus,u=>{u.preventDefault(),a.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[y.jsx(df,{children:r}),y.jsx(Gy,{contentRef:i})]})})})});Xf.displayName=Nn;var Zf="AlertDialogTitle",Jf=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=it(n);return y.jsx(By,{...o,...r,ref:t})});Jf.displayName=Zf;var qf="AlertDialogDescription",ep=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=it(n);return y.jsx($y,{...o,...r,ref:t})});ep.displayName=qf;var Yy="AlertDialogAction",tp=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=it(n);return y.jsx(Vf,{...o,...r,ref:t})});tp.displayName=Yy;var np="AlertDialogCancel",rp=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Qy(np,n),l=it(n),i=lt(t,o);return y.jsx(Vf,{...l,...r,ref:i})});rp.displayName=np;var Gy=({contentRef:e})=>{const t=`\`${Nn}\` requires a description for the component to be accessible for screen reader users. - -You can add a description to the \`${Nn}\` by passing a \`${qf}\` component as a child, which also benefits sighted users by adding visible context to the dialog. - -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Nn}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. - -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Xy=Kf,Zy=Qf,Jy=Yf,op=Gf,lp=Xf,ip=tp,sp=rp,ap=Jf,up=ep;function cp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=n0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(ia);return s[0]===""&&s.length!==1&&s.shift(),dp(s,t)||t0(i)},getConflictingClassGroupIds:(i,s)=>{const a=n[i]||[];return s&&r[i]?[...a,...r[i]]:a}}},dp=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?dp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(ia);return t.validators.find(({validator:i})=>i(l))?.classGroupId},Bu=/^\[(.+)\]$/,t0=e=>{if(Bu.test(e)){const t=Bu.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},n0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return o0(Object.entries(e.classGroups),n).forEach(([l,i])=>{ns(i,r,l,t)}),r},ns=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:$u(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(r0(o)){ns(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,i])=>{ns(i,$u(t,l),n,r)})})},$u=(e,t)=>{let n=e;return t.split(ia).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},r0=e=>e.isThemeGetter,o0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([i,s])=>[t+i,s])):l);return[n,o]}):e,l0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(l,i)=>{n.set(l,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let i=n.get(l);if(i!==void 0)return i;if((i=r.get(l))!==void 0)return o(l,i),i},set(l,i){n.has(l)?n.set(l,i):o(l,i)}}},fp="!",i0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],l=t.length,i=s=>{const a=[];let u=0,f=0,h;for(let x=0;xf?h-f:void 0;return{modifiers:a,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:i}):i},s0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},a0=e=>({cache:l0(e.cacheSize),parseClassName:i0(e),...e0(e)}),u0=/\s+/,c0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,l=[],i=e.trim().split(u0);let s="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:w}=n(u);let E=!!w,v=r(E?p.substring(0,w):p);if(!v){if(!E){s=u+(s.length>0?" "+s:s);continue}if(v=r(p),!v){s=u+(s.length>0?" "+s:s);continue}E=!1}const x=s0(f).join(":"),d=h?x+fp:x,c=d+v;if(l.includes(c))continue;l.push(c);const m=o(v,E);for(let S=0;S0?" "+s:s)}return s};function d0(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rh(f),e());return n=a0(u),r=n.cache.get,o=n.cache.set,l=s,s(a)}function s(a){const u=r(a);if(u)return u;const f=c0(a,n);return o(a,f),f}return function(){return l(d0.apply(null,arguments))}}const $=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},mp=/^\[(?:([a-z-]+):)?(.+)\]$/i,p0=/^\d+\/\d+$/,m0=new Set(["px","full","screen"]),h0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g0=/\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$/,v0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,y0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>_n(e)||m0.has(e)||p0.test(e),ct=e=>bn(e,"length",P0),_n=e=>!!e&&!Number.isNaN(Number(e)),ti=e=>bn(e,"number",_n),Yn=e=>!!e&&Number.isInteger(Number(e)),x0=e=>e.endsWith("%")&&_n(e.slice(0,-1)),M=e=>mp.test(e),dt=e=>h0.test(e),S0=new Set(["length","size","percentage"]),E0=e=>bn(e,S0,hp),k0=e=>bn(e,"position",hp),C0=new Set(["image","url"]),N0=e=>bn(e,C0,R0),_0=e=>bn(e,"",T0),Gn=()=>!0,bn=(e,t,n)=>{const r=mp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},P0=e=>g0.test(e)&&!v0.test(e),hp=()=>!1,T0=e=>y0.test(e),R0=e=>w0.test(e),D0=()=>{const e=$("colors"),t=$("spacing"),n=$("blur"),r=$("brightness"),o=$("borderColor"),l=$("borderRadius"),i=$("borderSpacing"),s=$("borderWidth"),a=$("contrast"),u=$("grayscale"),f=$("hueRotate"),h=$("invert"),p=$("gap"),w=$("gradientColorStops"),E=$("gradientColorStopPositions"),v=$("inset"),x=$("margin"),d=$("opacity"),c=$("padding"),m=$("saturate"),S=$("scale"),C=$("sepia"),_=$("skew"),N=$("space"),T=$("translate"),I=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",M,t],F=()=>[M,t],st=()=>["",Qe,ct],jt=()=>["auto",_n,M],jr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],at=()=>["solid","dashed","dotted","double","none"],en=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",M],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[_n,M];return{cacheSize:500,separator:":",theme:{colors:[Gn],spacing:[Qe,ct],blur:["none","",dt,M],brightness:z(),borderColor:[e],borderRadius:["none","","full",dt,M],borderSpacing:F(),borderWidth:st(),contrast:z(),grayscale:D(),hueRotate:z(),invert:D(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[x0,ct],inset:ce(),margin:ce(),opacity:z(),padding:F(),saturate:z(),scale:z(),sepia:D(),skew:z(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[dt]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...jr(),M]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yn,M]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Yn,M]}],"grid-cols":[{"grid-cols":[Gn]}],"col-start-end":[{col:["auto",{span:["full",Yn,M]},M]}],"col-start":[{"col-start":jt()}],"col-end":[{"col-end":jt()}],"grid-rows":[{"grid-rows":[Gn]}],"row-start-end":[{row:["auto",{span:[Yn,M]},M]}],"row-start":[{"row-start":jt()}],"row-end":[{"row-end":jt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[dt]},dt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dt,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ti]}],"font-family":[{font:[Gn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",_n,ti]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qe,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[d]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...at(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qe,ct]}],"underline-offset":[{"underline-offset":["auto",Qe,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[d]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...jr(),k0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",E0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},N0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[d]}],"border-style":[{border:[...at(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[d]}],"divide-style":[{divide:at()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...at()]}],"outline-offset":[{"outline-offset":[Qe,M]}],"outline-w":[{outline:[Qe,ct]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:st()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[d]}],"ring-offset-w":[{"ring-offset":[Qe,ct]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dt,_0]}],"shadow-color":[{shadow:[Gn]}],opacity:[{opacity:[d]}],"mix-blend":[{"mix-blend":[...en(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":en()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",dt,M]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[m]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[d]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Yn,M]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qe,ct,ti]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},L0=f0(D0);function X(...e){return L0(qy(e))}function gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Wu=A0,gl=(e,t)=>n=>{var r;if(t?.variants==null)return Wu(e,n?.class,n?.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(u=>{const f=n?.[u],h=l?.[u];if(f===null)return null;const p=Uu(f)||Uu(h);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[h,p]=f;return p===void 0||(u[h]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:p,...w}=f;return Object.entries(w).every(E=>{let[v,x]=E;return Array.isArray(x)?x.includes({...l,...s}[v]):{...l,...s}[v]===x})?[...u,h,p]:u},[]);return Wu(e,i,a,n?.class,n?.className)},sa=gl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Yo=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const i=r?pl:"button";return y.jsx(i,{className:X(sa({variant:t,size:n,className:e})),ref:l,...o})});Yo.displayName="Button";const M0=Xy,j0=Zy,O0=Jy,vp=g.forwardRef(({className:e,...t},n)=>y.jsx(op,{className:X("fixed inset-0 z-50 bg-black/80 persistence-[state=open]:animate-in persistence-[state=closed]:animate-out persistence-[state=closed]:fade-out-0 persistence-[state=open]:fade-in-0",e),...t,ref:n}));vp.displayName=op.displayName;const yp=g.forwardRef(({className:e,...t},n)=>y.jsxs(O0,{children:[y.jsx(vp,{}),y.jsx(lp,{ref:n,className:X("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 persistence-[state=open]:animate-in persistence-[state=closed]:animate-out persistence-[state=closed]:fade-out-0 persistence-[state=open]:fade-in-0 persistence-[state=closed]:zoom-out-95 persistence-[state=open]:zoom-in-95 persistence-[state=closed]:slide-out-to-left-1/2 persistence-[state=closed]:slide-out-to-top-[48%] persistence-[state=open]:slide-in-from-left-1/2 persistence-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));yp.displayName=lp.displayName;const wp=({className:e,...t})=>y.jsx("div",{className:X("flex flex-col space-y-2 text-center sm:text-left",e),...t});wp.displayName="AlertDialogHeader";const xp=({className:e,...t})=>y.jsx("div",{className:X("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xp.displayName="AlertDialogFooter";const Sp=g.forwardRef(({className:e,...t},n)=>y.jsx(ap,{ref:n,className:X("text-lg font-semibold",e),...t}));Sp.displayName=ap.displayName;const Ep=g.forwardRef(({className:e,...t},n)=>y.jsx(up,{ref:n,className:X("text-sm text-muted-foreground",e),...t}));Ep.displayName=up.displayName;const kp=g.forwardRef(({className:e,...t},n)=>y.jsx(ip,{ref:n,className:X(sa(),e),...t}));kp.displayName=ip.displayName;const Cp=g.forwardRef(({className:e,...t},n)=>y.jsx(sp,{ref:n,className:X(sa({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Cp.displayName=sp.displayName;const aa=g.forwardRef(({className:e,type:t,...n},r)=>y.jsx("input",{type:t,className:X("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));aa.displayName="Input";/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const I0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Np=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var z0={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.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const F0=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:i,...s},a)=>g.createElement("svg",{ref:a,...z0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Np("lucide",o),...s},[...i.map(([u,f])=>g.createElement(u,f)),...Array.isArray(l)?l:[l]]));/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vl=(e,t)=>{const n=g.forwardRef(({className:r,...o},l)=>g.createElement(F0,{ref:l,iconNode:t,className:Np(`lucide-${I0(e)}`,r),...o}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const b0=vl("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const B0=vl("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $0=vl("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const U0=vl("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);function W0(){return y.jsx(y.Fragment,{children:y.jsxs(M0,{children:[y.jsx(j0,{children:y.jsx(Yo,{size:"icon",variant:"ghost",children:y.jsx($0,{})})}),y.jsxs(yp,{children:[y.jsxs(wp,{children:[y.jsx(Sp,{children:"Import Chat"}),y.jsx(Ep,{children:"Provide a private key to start chatting"})]}),y.jsx(aa,{enterKeyHint:"done",placeholder:"seed://0x6BEA7BF661BCE377C8F76FBAAB61A"}),y.jsxs(xp,{children:[y.jsx(Cp,{children:"Cancel"}),y.jsx(kp,{children:"Add"})]})]})]})})}function V0({text:e,setText:t}){return y.jsx(aa,{value:e,onChange:n=>t(n.target.value),placeholder:"Anonymous"})}function H0({text:e,setText:t}){return y.jsxs("div",{className:"flex fixed h-14 w-full border-b border-border/40 bg-background/95 items-center px-4",children:[y.jsx("h1",{className:"text-2xl font-medium",children:"Seed"}),y.jsx("div",{className:"flex justify-center flex-1 px-4",children:y.jsx("div",{children:y.jsx(V0,{text:e,setText:t})})}),y.jsx(W0,{})]})}var ua="Avatar",[K0,p1]=ta(ua),[Q0,_p]=K0(ua),Pp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,l]=g.useState("idle");return y.jsx(Q0,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:l,children:y.jsx(_e.span,{...r,ref:t})})});Pp.displayName=ua;var Tp="AvatarImage",Rp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...l}=e,i=_p(Tp,n),s=Y0(r,l.referrerPolicy),a=Dt(u=>{o(u),i.onImageLoadingStatusChange(u)});return On(()=>{s!=="idle"&&a(s)},[s,a]),s==="loaded"?y.jsx(_e.img,{...l,ref:t,src:r}):null});Rp.displayName=Tp;var Dp="AvatarFallback",Lp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,l=_p(Dp,n),[i,s]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const a=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(a)}},[r]),i&&l.imageLoadingStatus!=="loaded"?y.jsx(_e.span,{...o,ref:t}):null});Lp.displayName=Dp;function Y0(e,t){const[n,r]=g.useState("idle");return On(()=>{if(!e){r("error");return}let o=!0;const l=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),l.onload=i("loaded"),l.onerror=i("error"),l.src=e,t&&(l.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Ap=Pp,Mp=Rp,jp=Lp;const Op=g.forwardRef(({className:e,...t},n)=>y.jsx(Ap,{ref:n,className:X("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Op.displayName=Ap.displayName;const Ip=g.forwardRef(({className:e,...t},n)=>y.jsx(Mp,{ref:n,className:X("aspect-square h-full w-full",e),...t}));Ip.displayName=Mp.displayName;const zp=g.forwardRef(({className:e,...t},n)=>y.jsx(jp,{ref:n,className:X("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));zp.displayName=jp.displayName;function G0(){return y.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[y.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:y.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),y.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:y.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),y.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:y.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const X0=gl("flex gap-2 max-w-[95%] sm:max-w-[80%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),Fp=g.forwardRef(({className:e,variant:t,layout:n,children:r,...o},l)=>y.jsx("div",{className:X(X0({variant:t,layout:n,className:e}),"relative group"),ref:l,...o,children:g.Children.map(r,i=>g.isValidElement(i)&&typeof i.type!="string"?g.cloneElement(i,{variant:t,layout:n}):i)}));Fp.displayName="ChatBubble";const Z0=({src:e,fallback:t,className:n})=>y.jsxs(Op,{className:n,children:[y.jsx(Ip,{src:e,alt:"Avatar"}),y.jsx(zp,{children:t})]}),J0=gl("px-4 pb-4 pt-1",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",sent:"bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),bp=g.forwardRef(({className:e,variant:t,layout:n,isLoading:r=!1,children:o,...l},i)=>y.jsx("div",{className:X(J0({variant:t,layout:n,className:e}),"break-words max-w-full whitespace-pre-wrap"),ref:i,...l,children:r?y.jsx("div",{className:"flex items-center space-x-2",children:y.jsx(G0,{})}):o}));bp.displayName="ChatBubbleMessage";const q0=g.forwardRef(({variant:e,className:t,children:n,...r},o)=>y.jsx("div",{ref:o,className:X("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",e==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",t),...r,children:n}));q0.displayName="ChatBubbleActionWrapper";/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var rs=function(e,t){return rs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},rs(e,t)};function e1(e,t){rs(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var cr=function(){return cr=Object.assign||function(t){for(var n,r=1,o=arguments.length;re?w():t!==!0&&(o=setTimeout(r?E:w,r===void 0?e-h:e))}return u.cancel=a,u}var Pn={Pixel:"Pixel",Percent:"Percent"},Vu={unit:Pn.Percent,value:.8};function Hu(e){return typeof e=="number"?{unit:Pn.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Pn.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Pn.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),Vu):(console.warn("scrollThreshold should be string or number"),Vu)}var n1=function(e){e1(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might - happen because the element may not have been added to DOM yet. - See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. - `),null)},r.onStart=function(o){r.lastScrollTop||(r.dragging=!0,o instanceof MouseEvent?r.startY=o.pageY:o instanceof TouchEvent&&(r.startY=o.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(o){r.dragging&&(o instanceof MouseEvent?r.currentY=o.pageY:o instanceof TouchEvent&&(r.currentY=o.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(o){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(o)},0);var l=r.props.height||r._scrollableNode?o.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var i=r.props.inverse?r.isElementAtTop(l,r.props.scrollThreshold):r.isElementAtBottom(l,r.props.scrollThreshold);i&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=l.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=t1(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. - Pull Down To Refresh functionality will not work - as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var o=n.dataLength!==r.prevDataLength;return o?cr(cr({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,l=Hu(r);return l.unit===Pn.Pixel?n.scrollTop<=l.value+o-n.scrollHeight+1:n.scrollTop<=l.value/100+o-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,l=Hu(r);return l.unit===Pn.Pixel?n.scrollTop+o>=n.scrollHeight-l.value:n.scrollTop+o>=l.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=cr({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),o=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),l=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return Xn.createElement("div",{style:l,className:"infinite-scroll-component__outerdiv"},Xn.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(i){return n._infScroll=i},style:r},this.props.pullDownToRefresh&&Xn.createElement("div",{style:{position:"relative"},ref:function(i){return n._pullDown=i}},Xn.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!o&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(g.Component);function ca({size:e=24,className:t,...n}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,...n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:X("animate-spin",t),children:y.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}const Bp=g.forwardRef(({className:e,children:t,...n},r)=>y.jsx(n1,{scrollableTarget:"chatMessageListScroll",ref:r,inverse:!0,loader:y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-full flex justify-center",children:y.jsx(ca,{})}),y.jsx("div",{className:"h-8"})]}),endMessage:y.jsx("div",{className:"h-8"}),className:X("flex flex-col w-full h-full p-4 gap-6",e),...n,children:t}));Bp.displayName="ChatMessageList";var r1="Label",$p=g.forwardRef((e,t)=>y.jsx(_e.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));$p.displayName=r1;var Up=$p;const o1=gl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Wp=g.forwardRef(({className:e,...t},n)=>y.jsx(Up,{ref:n,className:X(o1(),e),...t}));Wp.displayName=Up.displayName;function l1({messages:e}){return y.jsx(y.Fragment,{children:y.jsx("div",{className:"flex flex-col-reverse flex-grow h-0 w-full overflow-y-scroll no-scrollbar",id:"chatMessageListScroll",children:y.jsx(Bp,{dataLength:e.length,next:()=>{},hasMore:!1,style:{display:"flex",flexDirection:"column-reverse"},children:e.map(t=>{const n=t.isAuthor?"sent":"received";if(t.content.type!="regular")return;const r="server"in t.nonce?`server:${t.nonce.server}`:`local:${t.nonce.local}`,l=t.content.title.split(" ").filter(i=>i.length>0).map(i=>i[0].toUpperCase()).join("");return y.jsxs(Fp,{variant:n,children:[y.jsx(Z0,{fallback:l}),y.jsxs(bp,{variant:n,children:[y.jsx(Wp,{htmlFor:"text",children:t.content.title}),y.jsx("p",{id:"text",children:t.content.text})]}),t.isSending&&y.jsx(ca,{}),t.isFailure&&y.jsx(b0,{})]},r)})})})})}function i1(){return y.jsx(y.Fragment,{children:y.jsx("div",{className:"w-full h-full flex justify-center items-center",children:y.jsx("h1",{className:"text-xl text-muted-foreground",children:"No messages here yet"})})})}const Vp=g.forwardRef(({className:e,...t},n)=>y.jsx("textarea",{className:X("flex md:min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Vp.displayName="Textarea";const os=g.forwardRef(({className:e,...t},n)=>y.jsx(Vp,{autoComplete:"off",ref:n,name:"message",className:X("px-4 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center resize-none",e),...t}));os.displayName="ChatInput";function s1({text:e,setText:t,onClick:n}){const r=g.useRef(n);r.current=n,g.useEffect(()=>{const l=i=>{if(document.activeElement===o.current&&(i.code==="Enter"||i.code==="NumpadEnter")){if(i.shiftKey)return;r.current(),i.preventDefault()}};return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l)}},[]);const o=g.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs("div",{children:[y.jsxs("div",{className:"flex sm:hidden p-1",children:[y.jsx(os,{ref:o,value:e,onChange:l=>t(l.target.value),placeholder:"Type your message here...",className:"flex-grow resize-none rounded-lg bg-background border-0 shadow-none focus-visible:ring--1 h-max"}),y.jsx(Yo,{size:"icon",className:"me-2",onClick:n,children:y.jsx(U0,{})})]}),y.jsxs("div",{className:"hidden sm:block m-10 p-1 relative rounded-lg border bg-background focus-within:ring-1 focus-within:ring-ring",children:[y.jsx(os,{ref:o,value:e,onChange:l=>t(l.target.value),placeholder:"Type your message here...",className:"resize-none rounded-lg bg-background border-0 p-3 shadow-none focus-visible:ring--1 h-max"}),y.jsx("div",{className:"flex items-center p-3 pt-0",children:y.jsxs(Yo,{size:"sm",className:"ml-auto gap-1.5",onClick:n,children:["Send Message",y.jsx(B0,{className:"size-3.5"})]})})]})]})})}function a1({events:e,sendMessage:t,setNickname:n,getNickname:r}){const[o,l]=g.useState([]),[i,s]=g.useState(!1),[a,u]=g.useState(""),[f,h]=g.useState(r());return g.useEffect(()=>{const p=e.flow.collect(w=>{switch(w.type){case"loaded":s(!0);break;case"messages_snapshot":l(w.messages);break;case"reset_text":u("");break;case"nickname":h(w.nickname);break}});return()=>{p.cancel()}},[]),y.jsx(y.Fragment,{children:y.jsxs("div",{className:"h-svh w-screen overflow-hidden flex flex-col",children:[y.jsx("div",{className:"w-full flex-grow flex justify-center",children:y.jsxs("div",{className:"h-full flex-grow max-w-full md:max-w-3xl flex flex-col",children:[i?o.length==0?i1():y.jsx(l1,{messages:o}):u1(),y.jsx(s1,{text:a,setText:u,onClick:()=>t({text:a})})]})}),y.jsx(H0,{text:f,setText:n})]})})}function u1(){return y.jsx(y.Fragment,{children:y.jsx("div",{className:"w-full h-full flex justify-center items-center",children:y.jsx(ca,{})})})}function c1({app:e,chat:t}){return y.jsx(y.Fragment,{children:y.jsx(a1,{...t})})}const Hp=await sv(),d1=Hp.createChat();lf(document.getElementById("root")).render(y.jsx(g.StrictMode,{children:y.jsx(c1,{app:Hp,chat:d1})})); diff --git a/assets/index-BBtpPbIY.js b/assets/index-BBtpPbIY.js new file mode 100644 index 0000000..31a432d --- /dev/null +++ b/assets/index-BBtpPbIY.js @@ -0,0 +1,156 @@ +function l0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ip(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vp={exports:{}},us={},Fp={exports:{}},O={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ko=Symbol.for("react.element"),u0=Symbol.for("react.portal"),c0=Symbol.for("react.fragment"),d0=Symbol.for("react.strict_mode"),f0=Symbol.for("react.profiler"),p0=Symbol.for("react.provider"),h0=Symbol.for("react.context"),m0=Symbol.for("react.forward_ref"),g0=Symbol.for("react.suspense"),v0=Symbol.for("react.memo"),y0=Symbol.for("react.lazy"),$c=Symbol.iterator;function w0(e){return e===null||typeof e!="object"?null:(e=$c&&e[$c]||e["@@iterator"],typeof e=="function"?e:null)}var zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bp=Object.assign,Up={};function Sr(e,t,n){this.props=e,this.context=t,this.refs=Up,this.updater=n||zp}Sr.prototype.isReactComponent={};Sr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $p(){}$p.prototype=Sr.prototype;function ru(e,t,n){this.props=e,this.context=t,this.refs=Up,this.updater=n||zp}var ou=ru.prototype=new $p;ou.constructor=ru;Bp(ou,Sr.prototype);ou.isPureReactComponent=!0;var Wc=Array.isArray,Wp=Object.prototype.hasOwnProperty,iu={current:null},Hp={key:!0,ref:!0,__self:!0,__source:!0};function Kp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Wp.call(t,r)&&!Hp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,ae=D[F];if(0>>1;Fo(Vs,_))uno(Io,Vs)?(D[F]=Io,D[un]=_,F=un):(D[F]=Vs,D[ln]=_,F=ln);else if(uno(Io,_))D[F]=Io,D[un]=_,F=un;else break e}}return N}function o(D,N){var _=D.sortIndex-N.sortIndex;return _!==0?_:D.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(D){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=D)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function C(D){if(v=!1,m(D),!w)if(n(l)!==null)w=!0,dt(E);else{var N=n(u);N!==null&&q(C,N.startTime-D)}}function E(D,N){w=!1,v&&(v=!1,h(T),T=-1),y=!0;var _=f;try{for(m(N),d=n(l);d!==null&&(!(d.expirationTime>N)||D&&!Z());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var ae=F(d.expirationTime<=N);N=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(l)&&r(l),m(N)}else r(l);d=n(l)}if(d!==null)var Oo=!0;else{var ln=n(u);ln!==null&&q(C,ln.startTime-N),Oo=!1}return Oo}finally{d=null,f=_,y=!1}}var k=!1,P=null,T=-1,b=5,M=-1;function Z(){return!(e.unstable_now()-MD||125F?(D.sortIndex=_,t(u,D),n(l)===null&&D===n(u)&&(v?(h(T),T=-1):v=!0,q(C,_-F))):(D.sortIndex=ae,t(l,D),w||y||(w=!0,dt(E))),D},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(D){var N=f;return function(){var _=f;f=N;try{return D.apply(this,arguments)}finally{f=_}}}})(Zp);Xp.exports=Zp;var N0=Xp.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var L0=g,be=N0;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oa=Object.prototype.hasOwnProperty,b0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Kc={},Gc={};function _0(e){return Oa.call(Gc,e)?!0:Oa.call(Kc,e)?!1:b0.test(e)?Gc[e]=!0:(Kc[e]=!0,!1)}function j0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function O0(e,t,n,r){if(t===null||typeof t>"u"||j0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Pe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var au=/[\-:]([a-z])/g;function lu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(au,lu);pe[t]=new Pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(au,lu);pe[t]=new Pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(au,lu);pe[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function uu(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Bs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function I0(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=Us(e.type,!1),e;case 11:return e=Us(e.type.render,!1),e;case 1:return e=Us(e.type,!0),e;default:return""}}function za(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vn:return"Fragment";case In:return"Portal";case Ia:return"Profiler";case cu:return"StrictMode";case Va:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eh:return(e.displayName||"Context")+".Consumer";case Jp:return(e._context.displayName||"Context")+".Provider";case du:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fu:return t=e.displayName||null,t!==null?t:za(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return za(e(t))}catch{}}return null}function V0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return za(t);case 8:return t===cu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F0(e){var t=nh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zo(e){e._valueTracker||(e._valueTracker=F0(e))}function rh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ba(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oh(e,t){t=t.checked,t!=null&&uu(e,"checked",t,!1)}function Ua(e,t){oh(e,t);var n=qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$a(e,t.type,n):t.hasOwnProperty("defaultValue")&&$a(e,t.type,qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $a(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function io(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},z0=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){z0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function lh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function uh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var B0=X({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ka(e,t){if(t){if(B0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Ga(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ya=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,tr=null,nr=null;function Jc(e){if(e=Ro(e)){if(typeof Qa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=hs(t),Qa(e.stateNode,e.type,t))}}function ch(e){tr?nr?nr.push(e):nr=[e]:tr=e}function dh(){if(tr){var e=tr,t=nr;if(nr=tr=null,Jc(e),t)for(e=0;e>>=0,e===0?32:31-(q0(e)/J0|0)|0}var Uo=64,$o=4194304;function Br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ni(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Br(a):(i&=s,i!==0&&(r=Br(i)))}else s=n&~o,s!==0?r=Br(s):i!==0&&(r=Br(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function rw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gr),ld=" ",ud=!1;function Nh(e,t){switch(e){case"keyup":return Nw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fn=!1;function bw(e,t){switch(e){case"compositionend":return Lh(t);case"keypress":return t.which!==32?null:(ud=!0,ld);case"textInput":return e=t.data,e===ld&&ud?null:e;default:return null}}function _w(e,t){if(Fn)return e==="compositionend"||!Su&&Nh(e,t)?(e=Rh(),pi=yu=zt=null,Fn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pd(n)}}function Oh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Oh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function Cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $w(e){var t=Ih(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Oh(n.ownerDocument.documentElement,n)){if(r!==null&&Cu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=hd(n,i);var s=hd(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zn=null,tl=null,Qr=null,nl=!1;function md(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nl||zn==null||zn!==Ai(r)||(r=zn,"selectionStart"in r&&Cu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qr&&fo(Qr,r)||(Qr=r,r=_i(tl,"onSelect"),0$n||(e.current=ll[$n],ll[$n]=null,$n--)}function U(e,t){$n++,ll[$n]=e.current,e.current=t}var Jt={},xe=on(Jt),Ae=on(!1),En=Jt;function dr(e,t){var n=e.type.contextTypes;if(!n)return Jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function De(e){return e=e.childContextTypes,e!=null}function Oi(){H(Ae),H(xe)}function Cd(e,t,n){if(xe.current!==Jt)throw Error(A(168));U(xe,t),U(Ae,n)}function Kh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,V0(e)||"Unknown",o));return X({},n,r)}function Ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jt,En=xe.current,U(xe,e),U(Ae,Ae.current),!0}function Ed(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Kh(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,H(Ae),H(xe),U(xe,e)):H(Ae),U(Ae,n)}var ht=null,ms=!1,na=!1;function Gh(e){ht===null?ht=[e]:ht.push(e)}function t1(e){ms=!0,Gh(e)}function sn(){if(!na&&ht!==null){na=!0;var e=0,t=z;try{var n=ht;for(z=1;e>=s,o-=s,mt=1<<32-Ze(t)+o|n<T?(b=P,P=null):b=P.sibling;var M=f(h,P,m[T],C);if(M===null){P===null&&(P=b);break}e&&P&&M.alternate===null&&t(h,P),p=i(M,p,T),k===null?E=M:k.sibling=M,k=M,P=b}if(T===m.length)return n(h,P),K&&dn(h,T),E;if(P===null){for(;TT?(b=P,P=null):b=P.sibling;var Z=f(h,P,M.value,C);if(Z===null){P===null&&(P=b);break}e&&P&&Z.alternate===null&&t(h,P),p=i(Z,p,T),k===null?E=Z:k.sibling=Z,k=Z,P=b}if(M.done)return n(h,P),K&&dn(h,T),E;if(P===null){for(;!M.done;T++,M=m.next())M=d(h,M.value,C),M!==null&&(p=i(M,p,T),k===null?E=M:k.sibling=M,k=M);return K&&dn(h,T),E}for(P=r(h,P);!M.done;T++,M=m.next())M=y(P,h,T,M.value,C),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?T:M.key),p=i(M,p,T),k===null?E=M:k.sibling=M,k=M);return e&&P.forEach(function(I){return t(h,I)}),K&&dn(h,T),E}function x(h,p,m,C){if(typeof m=="object"&&m!==null&&m.type===Vn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Fo:e:{for(var E=m.key,k=p;k!==null;){if(k.key===E){if(E=m.type,E===Vn){if(k.tag===7){n(h,k.sibling),p=o(k,m.props.children),p.return=h,h=p;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&kd(E)===k.type){n(h,k.sibling),p=o(k,m.props),p.ref=Lr(h,k,m),p.return=h,h=p;break e}n(h,k);break}else t(h,k);k=k.sibling}m.type===Vn?(p=xn(m.props.children,h.mode,C,m.key),p.return=h,h=p):(C=Si(m.type,m.key,m.props,null,h.mode,C),C.ref=Lr(h,p,m),C.return=h,h=C)}return s(h);case In:e:{for(k=m.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ca(m,h.mode,C),p.return=h,h=p}return s(h);case Ot:return k=m._init,x(h,p,k(m._payload),C)}if(zr(m))return w(h,p,m,C);if(Ar(m))return v(h,p,m,C);Xo(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=ua(m,h.mode,C),p.return=h,h=p),s(h)):n(h,p)}return x}var pr=Zh(!0),qh=Zh(!1),zi=on(null),Bi=null,Kn=null,ku=null;function Au(){ku=Kn=Bi=null}function Du(e){var t=zi.current;H(zi),e._currentValue=t}function dl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function or(e,t){Bi=e,ku=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function We(e){var t=e._currentValue;if(ku!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if(Bi===null)throw Error(A(308));Kn=e,Bi.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var gn=null;function Ru(e){gn===null?gn=[e]:gn.push(e)}function Jh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ru(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var It=!1;function Mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function em(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pt(e,n)}return o=r.interleaved,o===null?(t.next=t,Ru(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pt(e,n)}function mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mu(e,n)}}function Ad(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;It=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(f=t,y=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(y,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,f=typeof w=="function"?w.call(y,d,f):w,f==null)break e;d=X({},d,f);break e;case 2:It=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);kn|=s,e.lanes=s,e.memoizedState=d}}function Dd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{z=n,oa.transition=r}}function vm(){return He().memoizedState}function i1(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ym(e))wm(t,n);else if(n=Jh(e,t,n,r),n!==null){var o=Ce();qe(n,e,r,o),xm(n,t,r)}}function s1(e,t,n){var r=Yt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ym(e))wm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Je(a,s)){var l=t.interleaved;l===null?(o.next=o,Ru(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Jh(e,t,o,r),n!==null&&(o=Ce(),qe(n,e,r,o),xm(n,t,r))}}function ym(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function wm(e,t){Xr=Wi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mu(e,n)}}var Hi={readContext:We,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},a1={readContext:We,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:Md,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vi(4194308,4,fm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return vi(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=i1.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Rd,useDebugValue:Vu,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=Rd(!1),t=e[0];return e=o1.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,o=ot();if(K){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ue===null)throw Error(A(349));Tn&30||om(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Md(sm.bind(null,r,i,e),[e]),r.flags|=2048,xo(9,im.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ot(),t=ue.identifierPrefix;if(K){var n=gt,r=mt;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[it]=t,e[mo]=r,Mm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ga(n,r),n){case"dialog":W("cancel",e),W("close",e),o=r;break;case"iframe":case"object":case"embed":W("load",e),o=r;break;case"video":case"audio":for(o=0;ogr&&(t.flags|=128,r=!0,br(i,!1),t.lanes=4194304)}else{if(!r)if(e=$i(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!K)return me(t),null}else 2*ne()-i.renderingStartTime>gr&&n!==1073741824&&(t.flags|=128,r=!0,br(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=G.current,U(G,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return Wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function m1(e,t){switch(Pu(t),t.tag){case 1:return De(t.type)&&Oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hr(),H(Ae),H(xe),bu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lu(t),null;case 13:if(H(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(G),null;case 4:return hr(),null;case 10:return Du(t.type._context),null;case 22:case 23:return Wu(),null;case 24:return null;default:return null}}var qo=!1,ve=!1,g1=typeof WeakSet=="function"?WeakSet:Set,R=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function xl(e,t,n){try{n()}catch(r){ee(e,t,r)}}var Bd=!1;function v1(e,t){if(rl=Li,e=Ih(),Cu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ol={focusedElem:e,selectionRange:n},Li=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ye(t.type,v),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(C){ee(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return w=Bd,Bd=!1,w}function Zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&xl(t,n,i)}o=o.next}while(o!==r)}}function ys(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function bm(e){var t=e.alternate;t!==null&&(e.alternate=null,bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[it],delete t[mo],delete t[al],delete t[Jw],delete t[e1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _m(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ji));else if(r!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}function El(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(El(e,t,n),e=e.sibling;e!==null;)El(e,t,n),e=e.sibling}var ce=null,Qe=!1;function Nt(e,t,n){for(n=n.child;n!==null;)jm(e,t,n),n=n.sibling}function jm(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(cs,n)}catch{}switch(n.tag){case 5:ve||Gn(n,t);case 6:var r=ce,o=Qe;ce=null,Nt(e,t,n),ce=r,Qe=o,ce!==null&&(Qe?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Qe?(e=ce,n=n.stateNode,e.nodeType===8?ta(e.parentNode,n):e.nodeType===1&&ta(e,n),uo(e)):ta(ce,n.stateNode));break;case 4:r=ce,o=Qe,ce=n.stateNode.containerInfo,Qe=!0,Nt(e,t,n),ce=r,Qe=o;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&xl(n,t,s),o=o.next}while(o!==r)}Nt(e,t,n);break;case 1:if(!ve&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ee(n,t,a)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,Nt(e,t,n),ve=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function $d(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new g1),t.forEach(function(r){var o=k1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ke(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*w1(r/1960))-r,10e?16:e,Bt===null)var r=!1;else{if(e=Bt,Bt=null,Yi=0,V&6)throw Error(A(331));var o=V;for(V|=4,R=e.current;R!==null;){var i=R,s=i.child;if(R.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lne()-Uu?wn(e,0):Bu|=n),Re(e,t)}function $m(e,t){t===0&&(e.mode&1?(t=$o,$o<<=1,!($o&130023424)&&($o=4194304)):t=1);var n=Ce();e=Pt(e,t),e!==null&&(Ao(e,t,n),Re(e,n))}function T1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$m(e,n)}function k1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),$m(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,p1(e,t,n);ke=!!(e.flags&131072)}else ke=!1,K&&t.flags&1048576&&Yh(t,Fi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yi(e,t),e=t.pendingProps;var o=dr(t,xe.current);or(t,n),o=ju(null,t,r,e,o,n);var i=Ou();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(i=!0,Ii(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mu(t),o.updater=vs,t.stateNode=o,o._reactInternals=t,pl(t,r,e,n),t=gl(null,t,r,!0,i,n)):(t.tag=0,K&&i&&Eu(t),Se(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=D1(r),e=Ye(r,e),o){case 0:t=ml(null,t,r,e,n);break e;case 1:t=Vd(null,t,r,e,n);break e;case 11:t=Od(null,t,r,e,n);break e;case 14:t=Id(null,t,r,Ye(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ye(r,o),ml(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ye(r,o),Vd(e,t,r,o,n);case 3:e:{if(Am(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,em(e,t),Ui(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=mr(Error(A(423)),t),t=Fd(e,t,r,n,o);break e}else if(r!==o){o=mr(Error(A(424)),t),t=Fd(e,t,r,n,o);break e}else for(Ne=Ht(t.stateNode.containerInfo.firstChild),Le=t,K=!0,Xe=null,n=qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fr(),r===o){t=Tt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return tm(t),e===null&&cl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,il(r,o)?s=null:i!==null&&il(r,i)&&(t.flags|=32),km(e,t),Se(e,t,s,n),t.child;case 6:return e===null&&cl(t),null;case 13:return Dm(e,t,n);case 4:return Nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pr(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ye(r,o),Od(e,t,r,o,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,U(zi,r._currentValue),r._currentValue=s,i!==null)if(Je(i.value,s)){if(i.children===o.children&&!Ae.current){t=Tt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=yt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),dl(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),dl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Se(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,or(t,n),o=We(o),r=r(o),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,o=Ye(r,t.pendingProps),o=Ye(r.type,o),Id(e,t,r,o,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ye(r,o),yi(e,t),t.tag=1,De(r)?(e=!0,Ii(t)):e=!1,or(t,n),Sm(t,r,o),pl(t,r,o,n),gl(null,t,r,!0,e,n);case 19:return Rm(e,t,n);case 22:return Tm(e,t,n)}throw Error(A(156,t.tag))};function Hm(e,t){return yh(e,t)}function A1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new A1(e,t,n,r)}function Ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function D1(e){if(typeof e=="function")return Ku(e)?1:0;if(e!=null){if(e=e.$$typeof,e===du)return 11;if(e===fu)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Si(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ku(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vn:return xn(n.children,o,i,t);case cu:s=8,o|=8;break;case Ia:return e=Ue(12,n,t,o|2),e.elementType=Ia,e.lanes=i,e;case Va:return e=Ue(13,n,t,o),e.elementType=Va,e.lanes=i,e;case Fa:return e=Ue(19,n,t,o),e.elementType=Fa,e.lanes=i,e;case th:return xs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jp:s=10;break e;case eh:s=9;break e;case du:s=11;break e;case fu:s=14;break e;case Ot:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ue(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function xn(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function xs(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=th,e.lanes=n,e.stateNode={isHidden:!1},e}function ua(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ca(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function R1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ws(0),this.expirationTimes=Ws(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ws(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gu(e,t,n,r,o,i,s,a,l){return e=new R1(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ue(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mu(i),e}function M1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qm)}catch(e){console.error(e)}}Qm(),Qp.exports=je;var Zu=Qp.exports;const j1=Ip(Zu);var Xm,Zd=Zu;Xm=Zd.createRoot,Zd.hydrateRoot;function O1(e,t){const n=g.createContext(t),r=i=>{const{children:s,...a}=i,l=g.useMemo(()=>a,Object.values(a));return S.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=g.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function qu(e,t=[]){let n=[];function r(i,s){const a=g.createContext(s),l=n.length;n=[...n,s];const u=d=>{const{scope:f,children:y,...w}=d,v=f?.[e]?.[l]||a,x=g.useMemo(()=>w,Object.values(w));return S.jsx(v.Provider,{value:x,children:y})};u.displayName=i+"Provider";function c(d,f){const y=f?.[e]?.[l]||a,w=g.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>g.createContext(s));return function(a){const l=a?.[e]||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,I1(o,...t)]}function I1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function V1(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Zm(...e){return t=>e.forEach(n=>V1(n,t))}function Rt(...e){return g.useCallback(Zm(...e),e)}function wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var vr=globalThis?.document?g.useLayoutEffect:()=>{},F1=P0.useId||(()=>{}),z1=0;function da(e){const[t,n]=g.useState(F1());return vr(()=>{e||n(r=>r??String(z1++))},[e]),e||(t?`radix-${t}`:"")}function en(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>t.current?.(...n),[])}function B1({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=U1({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=en(n),l=g.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[i,e,o,a]);return[s,l]}function U1({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,o=g.useRef(r),i=en(t);return g.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Ts=g.forwardRef((e,t)=>{const{children:n,...r}=e,o=g.Children.toArray(n),i=o.find($1);if(i){const s=i.props.children,a=o.map(l=>l===i?g.Children.count(s)>1?g.Children.only(null):g.isValidElement(s)?s.props.children:null:l);return S.jsx(Dl,{...r,ref:t,children:g.isValidElement(s)?g.cloneElement(s,void 0,a):null})}return S.jsx(Dl,{...r,ref:t,children:n})});Ts.displayName="Slot";var Dl=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const o=H1(n);return g.cloneElement(n,{...W1(r,n.props),ref:t?Zm(t,o):o})}return g.Children.count(n)>1?g.Children.only(null):null});Dl.displayName="SlotClone";var qm=({children:e})=>S.jsx(S.Fragment,{children:e});function $1(e){return g.isValidElement(e)&&e.type===qm}function W1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function H1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var K1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ie=K1.reduce((e,t)=>{const n=g.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Ts:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function G1(e,t){e&&Zu.flushSync(()=>e.dispatchEvent(t))}function Y1(e,t=globalThis?.document){const n=en(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Q1="DismissableLayer",Rl="dismissableLayer.update",X1="dismissableLayer.pointerDownOutside",Z1="dismissableLayer.focusOutside",qd,Jm=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eg=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=g.useContext(Jm),[c,d]=g.useState(null),f=c?.ownerDocument??globalThis?.document,[,y]=g.useState({}),w=Rt(t,P=>d(P)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=v.indexOf(x),p=c?v.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,C=p>=h,E=ex(P=>{const T=P.target,b=[...u.branches].some(M=>M.contains(T));!C||b||(o?.(P),s?.(P),P.defaultPrevented||a?.())},f),k=tx(P=>{const T=P.target;[...u.branches].some(M=>M.contains(T))||(i?.(P),s?.(P),P.defaultPrevented||a?.())},f);return Y1(P=>{p===u.layers.size-1&&(r?.(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),g.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Jd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=qd)}},[c,f,n,u]),g.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Jd())},[c,u]),g.useEffect(()=>{const P=()=>y({});return document.addEventListener(Rl,P),()=>document.removeEventListener(Rl,P)},[]),S.jsx(Ie.div,{...l,ref:w,style:{pointerEvents:m?C?"auto":"none":void 0,...e.style},onFocusCapture:wt(e.onFocusCapture,k.onFocusCapture),onBlurCapture:wt(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wt(e.onPointerDownCapture,E.onPointerDownCapture)})});eg.displayName=Q1;var q1="DismissableLayerBranch",J1=g.forwardRef((e,t)=>{const n=g.useContext(Jm),r=g.useRef(null),o=Rt(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(Ie.div,{...e,ref:o})});J1.displayName=q1;function ex(e,t=globalThis?.document){const n=en(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){tg(X1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tx(e,t=globalThis?.document){const n=en(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&tg(Z1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jd(){const e=new CustomEvent(Rl);document.dispatchEvent(e)}function tg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?G1(o,i):o.dispatchEvent(i)}var fa="focusScope.autoFocusOnMount",pa="focusScope.autoFocusOnUnmount",ef={bubbles:!1,cancelable:!0},nx="FocusScope",ng=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=g.useState(null),u=en(o),c=en(i),d=g.useRef(null),f=Rt(t,v=>l(v)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let v=function(m){if(y.paused||!a)return;const C=m.target;a.contains(C)?d.current=C:_t(d.current,{select:!0})},x=function(m){if(y.paused||!a)return;const C=m.relatedTarget;C!==null&&(a.contains(C)||_t(d.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const E of m)E.removedNodes.length>0&&_t(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const p=new MutationObserver(h);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),p.disconnect()}}},[r,a,y.paused]),g.useEffect(()=>{if(a){nf.add(y);const v=document.activeElement;if(!a.contains(v)){const h=new CustomEvent(fa,ef);a.addEventListener(fa,u),a.dispatchEvent(h),h.defaultPrevented||(rx(lx(rg(a)),{select:!0}),document.activeElement===v&&_t(a))}return()=>{a.removeEventListener(fa,u),setTimeout(()=>{const h=new CustomEvent(pa,ef);a.addEventListener(pa,c),a.dispatchEvent(h),h.defaultPrevented||_t(v??document.body,{select:!0}),a.removeEventListener(pa,c),nf.remove(y)},0)}}},[a,u,c,y]);const w=g.useCallback(v=>{if(!n&&!r||y.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,h=document.activeElement;if(x&&h){const p=v.currentTarget,[m,C]=ox(p);m&&C?!v.shiftKey&&h===C?(v.preventDefault(),n&&_t(m,{select:!0})):v.shiftKey&&h===m&&(v.preventDefault(),n&&_t(C,{select:!0})):h===p&&v.preventDefault()}},[n,r,y.paused]);return S.jsx(Ie.div,{tabIndex:-1,...s,ref:f,onKeyDown:w})});ng.displayName=nx;function rx(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_t(r,{select:t}),document.activeElement!==n)return}function ox(e){const t=rg(e),n=tf(t,e),r=tf(t.reverse(),e);return[n,r]}function rg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tf(e,t){for(const n of e)if(!ix(n,{upTo:t}))return n}function ix(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function sx(e){return e instanceof HTMLInputElement&&"select"in e}function _t(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sx(e)&&t&&e.select()}}var nf=ax();function ax(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=rf(e,t),e.unshift(t)},remove(t){e=rf(e,t),e[0]?.resume()}}}function rf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lx(e){return e.filter(t=>t.tagName!=="A")}var ux="Portal",og=g.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=g.useState(!1);vr(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?j1.createPortal(S.jsx(Ie.div,{...r,ref:t}),s):null});og.displayName=ux;function cx(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var ks=e=>{const{present:t,children:n}=e,r=dx(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Rt(r.ref,fx(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};ks.displayName="Presence";function dx(e){const[t,n]=g.useState(),r=g.useRef({}),o=g.useRef(e),i=g.useRef("none"),s=e?"mounted":"unmounted",[a,l]=cx(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=ti(r.current);i.current=a==="mounted"?u:"none"},[a]),vr(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,y=ti(u);e?l("MOUNT"):y==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&f!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),vr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=y=>{const v=ti(r.current).includes(y.animationName);if(y.target===t&&v&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=y=>{y.target===t&&(i.current=ti(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ti(e){return e?.animationName||"none"}function fx(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ha=0;function px(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??of()),document.body.insertAdjacentElement("beforeend",e[1]??of()),ha++,()=>{ha===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ha--}},[])}function of(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return Mx;var t=Nx(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bx=lg(),sr="data-scroll-locked",_x=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(mx,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(a,"px ").concat(r,`; + } + body[`).concat(sr,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Ci,` { + right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(Ei,` { + margin-right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(Ci," .").concat(Ci,` { + right: 0 `).concat(r,`; + } + + .`).concat(Ei," .").concat(Ei,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(sr,`] { + `).concat(gx,": ").concat(a,`px; + } +`)},af=function(){var e=parseInt(document.body.getAttribute(sr)||"0",10);return isFinite(e)?e:0},jx=function(){g.useEffect(function(){return document.body.setAttribute(sr,(af()+1).toString()),function(){var e=af()-1;e<=0?document.body.removeAttribute(sr):document.body.setAttribute(sr,e.toString())}},[])},Ox=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;jx();var i=g.useMemo(function(){return Lx(o)},[o]);return g.createElement(bx,{styles:_x(i,!t,o,n?"":"!important")})},Ml=!1;if(typeof window<"u")try{var ni=Object.defineProperty({},"passive",{get:function(){return Ml=!0,!0}});window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{Ml=!1}var _n=Ml?{passive:!1}:!1,Ix=function(e){return e.tagName==="TEXTAREA"},ug=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ix(e)&&n[t]==="visible")},Vx=function(e){return ug(e,"overflowY")},Fx=function(e){return ug(e,"overflowX")},lf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=cg(e,r);if(o){var i=dg(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zx=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Bx=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cg=function(e,t){return e==="v"?Vx(t):Fx(t)},dg=function(e,t){return e==="v"?zx(t):Bx(t)},Ux=function(e,t){return e==="h"&&t==="rtl"?-1:1},$x=function(e,t,n,r,o){var i=Ux(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{var y=dg(e,a),w=y[0],v=y[1],x=y[2],h=v-x-i*w;(w||h)&&cg(e,a)&&(d+=h,f+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(u=!0),u},ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uf=function(e){return[e.deltaX,e.deltaY]},cf=function(e){return e&&"current"in e?e.current:e},Wx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hx=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Kx=0,jn=[];function Gx(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(Kx++)[0],i=g.useState(lg)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=hx([e.lockRef.current],(e.shards||[]).map(cf),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var h=ri(v),p=n.current,m="deltaX"in v?v.deltaX:p[0]-h[0],C="deltaY"in v?v.deltaY:p[1]-h[1],E,k=v.target,P=Math.abs(m)>Math.abs(C)?"h":"v";if("touches"in v&&P==="h"&&k.type==="range")return!1;var T=lf(P,k);if(!T)return!0;if(T?E=P:(E=P==="v"?"h":"v",T=lf(P,k)),!T)return!1;if(!r.current&&"changedTouches"in v&&(m||C)&&(r.current=E),!E)return!0;var b=r.current||E;return $x(b,x,v,b==="h"?m:C,!0)},[]),l=g.useCallback(function(v){var x=v;if(!(!jn.length||jn[jn.length-1]!==i)){var h="deltaY"in x?uf(x):ri(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&Wx(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var m=(s.current.shards||[]).map(cf).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=m.length>0?a(x,m[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=g.useCallback(function(v,x,h,p){var m={name:v,delta:x,target:h,should:p,shadowParent:Yx(h)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(C){return C!==m})},1)},[]),c=g.useCallback(function(v){n.current=ri(v),r.current=void 0},[]),d=g.useCallback(function(v){u(v.type,uf(v),v.target,a(v,e.lockRef.current))},[]),f=g.useCallback(function(v){u(v.type,ri(v),v.target,a(v,e.lockRef.current))},[]);g.useEffect(function(){return jn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,_n),document.addEventListener("touchmove",l,_n),document.addEventListener("touchstart",c,_n),function(){jn=jn.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,_n),document.removeEventListener("touchmove",l,_n),document.removeEventListener("touchstart",c,_n)}},[]);var y=e.removeScrollBar,w=e.inert;return g.createElement(g.Fragment,null,w?g.createElement(i,{styles:Hx(o)}):null,y?g.createElement(Ox,{gapMode:e.gapMode}):null)}function Yx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qx=Ex(ag,Gx);var fg=g.forwardRef(function(e,t){return g.createElement(As,st({},e,{ref:t,sideCar:Qx}))});fg.classNames=As.classNames;var Xx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},On=new WeakMap,oi=new WeakMap,ii={},ya=0,pg=function(e){return e&&(e.host||pg(e.parentNode))},Zx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qx=function(e,t,n,r){var o=Zx(t,Array.isArray(e)?e:[e]);ii[n]||(ii[n]=new WeakMap);var i=ii[n],s=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))c(f);else try{var y=f.getAttribute(r),w=y!==null&&y!=="false",v=(On.get(f)||0)+1,x=(i.get(f)||0)+1;On.set(f,v),i.set(f,x),s.push(f),v===1&&w&&oi.set(f,!0),x===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",f,h)}})};return c(t),a.clear(),ya++,function(){s.forEach(function(d){var f=On.get(d)-1,y=i.get(d)-1;On.set(d,f),i.set(d,y),f||(oi.has(d)||d.removeAttribute(r),oi.delete(d)),y||d.removeAttribute(n)}),ya--,ya||(On=new WeakMap,On=new WeakMap,oi=new WeakMap,ii={})}},Jx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Xx(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),qx(r,o,n,"aria-hidden")):function(){return null}},Ju="Dialog",[hg,mg]=qu(Ju),[eS,et]=hg(Ju),gg=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=g.useRef(null),l=g.useRef(null),[u=!1,c]=B1({prop:r,defaultProp:o,onChange:i});return S.jsx(eS,{scope:t,triggerRef:a,contentRef:l,contentId:da(),titleId:da(),descriptionId:da(),open:u,onOpenChange:c,onOpenToggle:g.useCallback(()=>c(d=>!d),[c]),modal:s,children:n})};gg.displayName=Ju;var vg="DialogTrigger",yg=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(vg,n),i=Rt(t,o.triggerRef);return S.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nc(o.open),...r,ref:i,onClick:wt(e.onClick,o.onOpenToggle)})});yg.displayName=vg;var ec="DialogPortal",[tS,wg]=hg(ec,{forceMount:void 0}),xg=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=et(ec,t);return S.jsx(tS,{scope:t,forceMount:n,children:g.Children.map(r,s=>S.jsx(ks,{present:n||i.open,children:S.jsx(og,{asChild:!0,container:o,children:s})}))})};xg.displayName=ec;var Zi="DialogOverlay",Sg=g.forwardRef((e,t)=>{const n=wg(Zi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=et(Zi,e.__scopeDialog);return i.modal?S.jsx(ks,{present:r||i.open,children:S.jsx(nS,{...o,ref:t})}):null});Sg.displayName=Zi;var nS=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(Zi,n);return S.jsx(fg,{as:Ts,allowPinchZoom:!0,shards:[o.contentRef],children:S.jsx(Ie.div,{"data-state":nc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Dn="DialogContent",Cg=g.forwardRef((e,t)=>{const n=wg(Dn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=et(Dn,e.__scopeDialog);return S.jsx(ks,{present:r||i.open,children:i.modal?S.jsx(rS,{...o,ref:t}):S.jsx(oS,{...o,ref:t})})});Cg.displayName=Dn;var rS=g.forwardRef((e,t)=>{const n=et(Dn,e.__scopeDialog),r=g.useRef(null),o=Rt(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Jx(i)},[]),S.jsx(Eg,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wt(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:wt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:wt(e.onFocusOutside,i=>i.preventDefault())})}),oS=g.forwardRef((e,t)=>{const n=et(Dn,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return S.jsx(Eg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Eg=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=et(Dn,n),l=g.useRef(null),u=Rt(t,l);return px(),S.jsxs(S.Fragment,{children:[S.jsx(ng,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(eg,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":nc(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(sS,{titleId:a.titleId}),S.jsx(lS,{contentRef:l,descriptionId:a.descriptionId})]})]})}),tc="DialogTitle",Pg=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(tc,n);return S.jsx(Ie.h2,{id:o.titleId,...r,ref:t})});Pg.displayName=tc;var Tg="DialogDescription",kg=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(Tg,n);return S.jsx(Ie.p,{id:o.descriptionId,...r,ref:t})});kg.displayName=Tg;var Ag="DialogClose",Dg=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=et(Ag,n);return S.jsx(Ie.button,{type:"button",...r,ref:t,onClick:wt(e.onClick,()=>o.onOpenChange(!1))})});Dg.displayName=Ag;function nc(e){return e?"open":"closed"}var Rg="DialogTitleWarning",[iS,Mg]=O1(Rg,{contentName:Dn,titleName:tc,docsSlug:"dialog"}),sS=({titleId:e})=>{const t=Mg(Rg),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},aS="DialogDescriptionWarning",lS=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mg(aS).contentName}}.`;return g.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},uS=gg,cS=yg,dS=xg,fS=Sg,pS=Cg,hS=Pg,mS=kg,Ng=Dg,Lg="AlertDialog",[gS,XA]=qu(Lg,[mg]),Mt=mg(),bg=e=>{const{__scopeAlertDialog:t,...n}=e,r=Mt(t);return S.jsx(uS,{...r,...n,modal:!0})};bg.displayName=Lg;var vS="AlertDialogTrigger",_g=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Mt(n);return S.jsx(cS,{...o,...r,ref:t})});_g.displayName=vS;var yS="AlertDialogPortal",jg=e=>{const{__scopeAlertDialog:t,...n}=e,r=Mt(t);return S.jsx(dS,{...r,...n})};jg.displayName=yS;var wS="AlertDialogOverlay",Og=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Mt(n);return S.jsx(fS,{...o,...r,ref:t})});Og.displayName=wS;var ar="AlertDialogContent",[xS,SS]=gS(ar),Ig=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Mt(n),s=g.useRef(null),a=Rt(t,s),l=g.useRef(null);return S.jsx(iS,{contentName:ar,titleName:Vg,docsSlug:"alert-dialog",children:S.jsx(xS,{scope:n,cancelRef:l,children:S.jsxs(pS,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:wt(o.onOpenAutoFocus,u=>{u.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[S.jsx(qm,{children:r}),S.jsx(ES,{contentRef:s})]})})})});Ig.displayName=ar;var Vg="AlertDialogTitle",Fg=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Mt(n);return S.jsx(hS,{...o,...r,ref:t})});Fg.displayName=Vg;var zg="AlertDialogDescription",Bg=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Mt(n);return S.jsx(mS,{...o,...r,ref:t})});Bg.displayName=zg;var CS="AlertDialogAction",Ug=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Mt(n);return S.jsx(Ng,{...o,...r,ref:t})});Ug.displayName=CS;var $g="AlertDialogCancel",Wg=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=SS($g,n),i=Mt(n),s=Rt(t,o);return S.jsx(Ng,{...i,...r,ref:s})});Wg.displayName=$g;var ES=({contentRef:e})=>{const t=`\`${ar}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${ar}\` by passing a \`${zg}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ar}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},PS=bg,TS=_g,kS=jg,Hg=Og,Kg=Ig,Gg=Ug,Yg=Wg,Qg=Fg,Xg=Bg;function Zg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=MS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(rc);return a[0]===""&&a.length!==1&&a.shift(),qg(a,t)||RS(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},qg=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(rc);return t.validators.find(({validator:s})=>s(i))?.classGroupId},df=/^\[(.+)\]$/,RS=e=>{if(df.test(e)){const t=df.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},MS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return LS(Object.entries(e.classGroups),n).forEach(([i,s])=>{Nl(s,r,i,t)}),r},Nl=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ff(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(NS(o)){Nl(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Nl(s,ff(t,i),n,r)})})},ff=(e,t)=>{let n=e;return t.split(rc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},NS=e=>e.isThemeGetter,LS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,bS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Jg="!",_S=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,c=0,d;for(let x=0;xc?d-c:void 0;return{modifiers:l,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:s}):s},jS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},OS=e=>({cache:bS(e.cacheSize),parseClassName:_S(e),...DS(e)}),IS=/\s+/,VS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(IS);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:y}=n(u);let w=!!y,v=r(w?f.substring(0,y):f);if(!v){if(!w){a=u+(a.length>0?" "+a:a);continue}if(v=r(f),!v){a=u+(a.length>0?" "+a:a);continue}w=!1}const x=jS(c).join(":"),h=d?x+Jg:x,p=h+v;if(i.includes(p))continue;i.push(p);const m=o(v,w);for(let C=0;C0?" "+a:a)}return a};function FS(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(c),e());return n=OS(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=VS(l,n);return o(l,c),c}return function(){return i(FS.apply(null,arguments))}}const $=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},tv=/^\[(?:([a-z-]+):)?(.+)\]$/i,BS=/^\d+\/\d+$/,US=new Set(["px","full","screen"]),$S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,WS=/\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$/,HS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,KS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>lr(e)||US.has(e)||BS.test(e),Lt=e=>Pr(e,"length",tC),lr=e=>!!e&&!Number.isNaN(Number(e)),wa=e=>Pr(e,"number",lr),jr=e=>!!e&&Number.isInteger(Number(e)),YS=e=>e.endsWith("%")&&lr(e.slice(0,-1)),j=e=>tv.test(e),bt=e=>$S.test(e),QS=new Set(["length","size","percentage"]),XS=e=>Pr(e,QS,nv),ZS=e=>Pr(e,"position",nv),qS=new Set(["image","url"]),JS=e=>Pr(e,qS,rC),eC=e=>Pr(e,"",nC),Or=()=>!0,Pr=(e,t,n)=>{const r=tv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},tC=e=>WS.test(e)&&!HS.test(e),nv=()=>!1,nC=e=>KS.test(e),rC=e=>GS.test(e),oC=()=>{const e=$("colors"),t=$("spacing"),n=$("blur"),r=$("brightness"),o=$("borderColor"),i=$("borderRadius"),s=$("borderSpacing"),a=$("borderWidth"),l=$("contrast"),u=$("grayscale"),c=$("hueRotate"),d=$("invert"),f=$("gap"),y=$("gradientColorStops"),w=$("gradientColorStopPositions"),v=$("inset"),x=$("margin"),h=$("opacity"),p=$("padding"),m=$("saturate"),C=$("scale"),E=$("sepia"),k=$("skew"),P=$("space"),T=$("translate"),b=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",j,t],I=()=>[j,t],tt=()=>["",ft,Lt],nt=()=>["auto",lr,j],kr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],dt=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",j],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[lr,j];return{cacheSize:500,separator:":",theme:{colors:[Or],spacing:[ft,Lt],blur:["none","",bt,j],brightness:F(),borderColor:[e],borderRadius:["none","","full",bt,j],borderSpacing:I(),borderWidth:tt(),contrast:F(),grayscale:N(),hueRotate:F(),invert:N(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[YS,Lt],inset:Z(),margin:Z(),opacity:F(),padding:I(),saturate:F(),scale:F(),sepia:N(),skew:F(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...kr(),j]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jr,j]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",jr,j]}],"grid-cols":[{"grid-cols":[Or]}],"col-start-end":[{col:["auto",{span:["full",jr,j]},j]}],"col-start":[{"col-start":nt()}],"col-end":[{"col-end":nt()}],"grid-rows":[{"grid-rows":[Or]}],"row-start-end":[{row:["auto",{span:[jr,j]},j]}],"row-start":[{"row-start":nt()}],"row-end":[{"row-end":nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,Lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wa]}],"font-family":[{font:[Or]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",j]}],"line-clamp":[{"line-clamp":["none",lr,wa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...dt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ft,Lt]}],"underline-offset":[{"underline-offset":["auto",ft,j]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...kr(),ZS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",XS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...dt(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:dt()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...dt()]}],"outline-offset":[{"outline-offset":[ft,j]}],"outline-w":[{outline:[ft,Lt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:tt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[ft,Lt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,eC]}],"shadow-color":[{shadow:[Or]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",bt,j]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[m]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[jr,j]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ft,Lt,wa]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},iC=zS(oC);function re(...e){return iC(AS(e))}function rv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,hf=sC,Ds=(e,t)=>n=>{var r;if(t?.variants==null)return hf(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n?.[u],d=i?.[u];if(c===null)return null;const f=pf(c)||pf(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...y}=c;return Object.entries(y).every(w=>{let[v,x]=w;return Array.isArray(x)?x.includes({...i,...a}[v]):{...i,...a}[v]===x})?[...u,d,f]:u},[]);return hf(e,s,l,n?.class,n?.className)},oc=Ds("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),qi=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Ts:"button";return S.jsx(s,{className:re(oc({variant:t,size:n,className:e})),ref:i,...o})});qi.displayName="Button";const aC=PS,lC=TS,uC=kS,ov=g.forwardRef(({className:e,...t},n)=>S.jsx(Hg,{className:re("fixed inset-0 z-50 bg-black/80 deprecated-persistence-[state=open]:animate-in deprecated-persistence-[state=closed]:animate-out deprecated-persistence-[state=closed]:fade-out-0 deprecated-persistence-[state=open]:fade-in-0",e),...t,ref:n}));ov.displayName=Hg.displayName;const iv=g.forwardRef(({className:e,...t},n)=>S.jsxs(uC,{children:[S.jsx(ov,{}),S.jsx(Kg,{ref:n,className:re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 deprecated-persistence-[state=open]:animate-in deprecated-persistence-[state=closed]:animate-out deprecated-persistence-[state=closed]:fade-out-0 deprecated-persistence-[state=open]:fade-in-0 deprecated-persistence-[state=closed]:zoom-out-95 deprecated-persistence-[state=open]:zoom-in-95 deprecated-persistence-[state=closed]:slide-out-to-left-1/2 deprecated-persistence-[state=closed]:slide-out-to-top-[48%] deprecated-persistence-[state=open]:slide-in-from-left-1/2 deprecated-persistence-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));iv.displayName=Kg.displayName;const sv=({className:e,...t})=>S.jsx("div",{className:re("flex flex-col space-y-2 text-center sm:text-left",e),...t});sv.displayName="AlertDialogHeader";const av=({className:e,...t})=>S.jsx("div",{className:re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});av.displayName="AlertDialogFooter";const lv=g.forwardRef(({className:e,...t},n)=>S.jsx(Qg,{ref:n,className:re("text-lg font-semibold",e),...t}));lv.displayName=Qg.displayName;const uv=g.forwardRef(({className:e,...t},n)=>S.jsx(Xg,{ref:n,className:re("text-sm text-muted-foreground",e),...t}));uv.displayName=Xg.displayName;const cv=g.forwardRef(({className:e,...t},n)=>S.jsx(Gg,{ref:n,className:re(oc(),e),...t}));cv.displayName=Gg.displayName;const dv=g.forwardRef(({className:e,...t},n)=>S.jsx(Yg,{ref:n,className:re(oc({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));dv.displayName=Yg.displayName;const ic=g.forwardRef(({className:e,type:t,...n},r)=>S.jsx("input",{type:t,className:re("flex h-10 max-w-full min-w-0 rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ic.displayName="Input";/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var dC={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.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fC=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>g.createElement("svg",{ref:l,...dC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fv("lucide",o),...a},[...s.map(([u,c])=>g.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rs=(e,t)=>{const n=g.forwardRef(({className:r,...o},i)=>g.createElement(fC,{ref:i,iconNode:t,className:fv(`lucide-${cC(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pC=Rs("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hC=Rs("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mC=Rs("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gC=Rs("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);function vC(){return S.jsx(S.Fragment,{children:S.jsxs(aC,{children:[S.jsx(lC,{children:S.jsx(qi,{size:"icon",variant:"ghost",children:S.jsx(mC,{})})}),S.jsxs(iv,{children:[S.jsxs(sv,{children:[S.jsx(lv,{children:"Import Chat"}),S.jsx(uv,{children:"Provide a private key to start chatting"})]}),S.jsx(ic,{enterKeyHint:"done",placeholder:"seed://0x6BEA7BF661BCE377C8F76FBAAB61A"}),S.jsxs(av,{children:[S.jsx(dv,{children:"Cancel"}),S.jsx(cv,{children:"Add"})]})]})]})})}function yC(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function Ms(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ll=e=>Array.isArray(e);function pv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function sc(e,t,n,r){if(typeof t=="function"){const[o,i]=mf(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=mf(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Ns(e,t,n){const r=e.getProps();return sc(r,t,n!==void 0?n:r.custom,e)}const ac=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],lc=["initial",...ac],No=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(No),xt=e=>e*1e3,St=e=>e/1e3,wC={type:"spring",stiffness:500,damping:25,restSpeed:10},xC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),SC={type:"keyframes",duration:.8},CC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EC=(e,{keyframes:t})=>t.length>2?SC:Nn.has(e)?e.startsWith("scale")?xC(t[1]):wC:CC;function uc(e,t){return e?e[t]||e.default||e:void 0}const PC={skipAnimations:!1,useManualTiming:!1},TC=e=>e!==null;function Ls(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(TC),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const we=e=>e;let bl=we;function kC(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const si=["read","resolveKeyframes","update","preRender","render","postRender"],AC=40;function hv(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=si.reduce((h,p)=>(h[p]=kC(i),h),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const h=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,AC),1),o.timestamp=h,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:si.reduce((h,p)=>{const m=s[p];return h[p]=(C,E=!1,k=!1)=>(n||w(),m.schedule(C,E,k)),h},{}),cancel:h=>{for(let p=0;p(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,DC=1e-7,RC=12;function MC(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=mv(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>DC&&++aMC(i,0,1,e,n);return i=>i===0||i===1?i:mv(o(i),t,r)}const gv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vv=e=>t=>1-e(1-t),yv=Lo(.33,1.53,.69,.99),cc=vv(yv),wv=gv(cc),xv=e=>(e*=2)<1?.5*cc(e):.5*(2-Math.pow(2,-10*(e-1))),dc=e=>1-Math.sin(Math.acos(e)),Sv=vv(dc),Cv=gv(dc),Ev=e=>/^0[^.\s]+$/u.test(e);function NC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ev(e):!0}const Pv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Tv=e=>t=>typeof t=="string"&&t.startsWith(e),kv=Tv("--"),LC=Tv("var(--"),fc=e=>LC(e)?bC.test(e.split("/*")[0].trim()):!1,bC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_C=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jC(e){const t=_C.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Av(e,t,n=1){const[r,o]=jC(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Pv(s)?parseFloat(s):s}return fc(o)?Av(o,t,n+1):o}const kt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Eo={...Tr,transform:e=>kt(0,1,e)},ai={...Tr,default:1},bo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jt=bo("deg"),ut=bo("%"),L=bo("px"),OC=bo("vh"),IC=bo("vw"),gf={...ut,parse:e=>ut.parse(e)/100,transform:e=>ut.transform(e*100)},VC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vf=e=>e===Tr||e===L,yf=(e,t)=>parseFloat(e.split(", ")[t]),wf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return yf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?yf(i[1],e):0}},FC=new Set(["x","y","z"]),zC=No.filter(e=>!FC.has(e));function BC(e){const t=[];return zC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:wf(4,13),y:wf(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const Dv=e=>t=>t.test(e),UC={test:e=>e==="auto",parse:e=>e},Rv=[Tr,L,ut,jt,IC,OC,UC],xf=e=>Rv.find(Dv(e)),Sn=new Set;let _l=!1,jl=!1;function Mv(){if(jl){const e=Array.from(Sn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=BC(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jl=!1,_l=!1,Sn.forEach(e=>e.complete()),Sn.clear()}function Nv(){Sn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jl=!0)})}function $C(){Nv(),Mv()}class pc{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Sn.add(this),_l||(_l=!0,B.read(Nv),B.resolveKeyframes(Mv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,hc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WC(e){return e==null}const HC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mc=(e,t)=>n=>!!(typeof n=="string"&&HC.test(n)&&n.startsWith(e)||t&&!WC(n)&&Object.prototype.hasOwnProperty.call(n,t)),Lv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(hc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},KC=e=>kt(0,255,e),Sa={...Tr,transform:e=>Math.round(KC(e))},yn={test:mc("rgb","red"),parse:Lv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sa.transform(e)+", "+Sa.transform(t)+", "+Sa.transform(n)+", "+eo(Eo.transform(r))+")"};function GC(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ol={test:mc("#"),parse:GC,transform:yn.transform},Qn={test:mc("hsl","hue"),parse:Lv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ut.transform(eo(t))+", "+ut.transform(eo(n))+", "+eo(Eo.transform(r))+")"},ge={test:e=>yn.test(e)||Ol.test(e)||Qn.test(e),parse:e=>yn.test(e)?yn.parse(e):Qn.test(e)?Qn.parse(e):Ol.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yn.transform(e):Qn.transform(e)},YC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(YC))===null||n===void 0?void 0:n.length)||0)>0}const bv="number",_v="color",XC="var",ZC="var(",Sf="${}",qC=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Po(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(qC,l=>(ge.test(l)?(r.color.push(i),o.push(_v),n.push(ge.parse(l))):l.startsWith(ZC)?(r.var.push(i),o.push(XC),n.push(l)):(r.number.push(i),o.push(bv),n.push(parseFloat(l))),++i,Sf)).split(Sf);return{values:n,split:a,indexes:r,types:o}}function jv(e){return Po(e).values}function Ov(e){const{split:t,types:n}=Po(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function eE(e){const t=jv(e);return Ov(e)(t.map(JC))}const nn={test:QC,parse:jv,createTransformer:Ov,getAnimatableNone:eE},tE=new Set(["brightness","contrast","saturate","opacity"]);function nE(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hc)||[];if(!r)return e;const o=n.replace(r,"");let i=tE.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const rE=/\b([a-z-]*)\(.*?\)/gu,Il={...nn,getAnimatableNone:e=>{const t=e.match(rE);return t?t.map(nE).join(" "):e}},oE={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L},iE={rotate:jt,rotateX:jt,rotateY:jt,rotateZ:jt,scale:ai,scaleX:ai,scaleY:ai,scaleZ:ai,skew:jt,skewX:jt,skewY:jt,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Eo,originX:gf,originY:gf,originZ:L},Cf={...Tr,transform:Math.round},gc={...oE,...iE,zIndex:Cf,size:L,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Cf},sE={...gc,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:Il,WebkitFilter:Il},vc=e=>sE[e];function Iv(e,t){let n=vc(e);return n!==Il&&(n=nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aE=new Set(["auto","none","0"]);function lE(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function yc(e){return typeof e=="function"}let Pi;function uE(){Pi=void 0}const ct={now:()=>(Pi===void 0&&ct.set(de.isProcessing||PC.useManualTiming?de.timestamp:performance.now()),Pi),set:e=>{Pi=e,queueMicrotask(uE)}},Ef=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nn.test(e)||e==="0")&&!e.startsWith("url("));function cE(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nfE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&$C(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ct.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!dE(t,r,o,i))if(s)this.options.duration=0;else{l?.(Ls(t,this.options,n)),a?.(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const wr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,y=Vl(u,s),w=Math.exp(-d);return Ca-f/y*w},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,w=Math.exp(-d),v=Vl(Math.pow(u,2),s);return(-o(u)+Ca>0?-1:1)*((f-y)*w)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ca+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=gE(o,i,a);if(e=xt(e),isNaN(l))return{stiffness:J.stiffness,damping:J.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const mE=12;function gE(e,t,n){let r=n;for(let o=1;o=Fl?1/0:t}const vE=["duration","bounce"],yE=["stiffness","damping","mass"];function Pf(e,t){return t.some(n=>e[n]!==void 0)}function wE(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!Pf(e,yE)&&Pf(e,vE))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*kt(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:J.mass,stiffness:o,damping:i}}else{const n=hE(e);t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}return t}function Wv(e=J.visualDuration,t=J.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=wE({...n,velocity:-St(n.velocity||0)}),w=f||0,v=u/(2*Math.sqrt(l*c)),x=s-i,h=St(Math.sqrt(l/c)),p=Math.abs(x)<5;r||(r=p?J.restSpeed.granular:J.restSpeed.default),o||(o=p?J.restDelta.granular:J.restDelta.default);let m;if(v<1){const E=Vl(h,v);m=k=>{const P=Math.exp(-v*h*k);return s-P*((w+v*h*x)/E*Math.sin(E*k)+x*Math.cos(E*k))}}else if(v===1)m=E=>s-Math.exp(-h*E)*(x+(w+h*x)*E);else{const E=h*Math.sqrt(v*v-1);m=k=>{const P=Math.exp(-v*h*k),T=Math.min(E*k,300);return s-P*((w+v*h*x)*Math.sinh(T)+E*x*Math.cosh(T))/E}}const C={calculatedDuration:y&&d||null,next:E=>{const k=m(E);if(y)a.done=E>=d;else{let P=0;v<1&&(P=E===0?xt(w):Uv(m,E,k));const T=Math.abs(P)<=r,b=Math.abs(s-k)<=o;a.done=T&&b}return a.value=a.done?s:k,a},toString:()=>{const E=Math.min($v(C),Fl),k=zv(P=>C.next(E*P).value,E,30);return E+"ms "+k}};return C}function Tf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=T=>a!==void 0&&Tl,w=T=>a===void 0?l:l===void 0||Math.abs(a-T)-v*Math.exp(-T/r),m=T=>h+p(T),C=T=>{const b=p(T),M=m(T);f.done=Math.abs(b)<=u,f.value=f.done?h:M};let E,k;const P=T=>{y(f.value)&&(E=T,k=Wv({keyframes:[f.value,w(f.value)],velocity:Uv(m,T,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:T=>{let b=!1;return!k&&E===void 0&&(b=!0,C(T),P(T)),E!==void 0&&T>=E?k.next(T-E):(!b&&C(T),f)}}}const xE=Lo(.42,0,1,1),SE=Lo(0,0,.58,1),Hv=Lo(.42,0,.58,1),CE=e=>Array.isArray(e)&&typeof e[0]!="number",wc=e=>Array.isArray(e)&&typeof e[0]=="number",kf={linear:we,easeIn:xE,easeInOut:Hv,easeOut:SE,circIn:dc,circInOut:Cv,circOut:Sv,backIn:cc,backInOut:wv,backOut:yv,anticipate:xv},Af=e=>{if(wc(e)){bl(e.length===4);const[t,n,r,o]=e;return Lo(t,n,r,o)}else if(typeof e=="string")return bl(kf[e]!==void 0),kf[e];return e},EE=(e,t)=>n=>t(e(n)),Xt=(...e)=>e.reduce(EE),Y=(e,t,n)=>e+(t-e)*n;function Ea(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ea(l,a,e+1/3),i=Ea(l,a,e),s=Ea(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Ji(e,t){return n=>n>0?t:e}const Pa=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},TE=[Ol,yn,Qn],kE=e=>TE.find(t=>t.test(e));function Df(e){const t=kE(e);if(!t)return!1;let n=t.parse(e);return t===Qn&&(n=PE(n)),n}const Rf=(e,t)=>{const n=Df(e),r=Df(t);if(!n||!r)return Ji(e,t);const o={...n};return i=>(o.red=Pa(n.red,r.red,i),o.green=Pa(n.green,r.green,i),o.blue=Pa(n.blue,r.blue,i),o.alpha=Y(n.alpha,r.alpha,i),yn.transform(o))},zl=new Set(["none","hidden"]);function AE(e,t){return zl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function DE(e,t){return n=>Y(e,t,n)}function xc(e){return typeof e=="number"?DE:typeof e=="string"?fc(e)?Ji:ge.test(e)?Rf:NE:Array.isArray(e)?Kv:typeof e=="object"?ge.test(e)?Rf:RE:Ji}function Kv(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>xc(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function ME(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=nn.createTransformer(t),r=Po(e),o=Po(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?zl.has(e)&&!o.values.length||zl.has(t)&&!r.values.length?AE(e,t):Xt(Kv(ME(r,o),o.values),n):Ji(e,t)};function Gv(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):xc(e)(e,t)}function LE(e,t,n){const r=[],o=n||Gv,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=LE(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(kt(e[0],e[i-1],u)):l}function _E(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=wr(0,t,r);e.push(Y(n,1,o))}}function jE(e){const t=[0];return _E(t,e.length-1),t}function OE(e,t){return e.map(n=>n*t)}function IE(e,t){return e.map(()=>t||Hv).splice(0,e.length-1)}function es({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=CE(r)?r.map(Af):Af(r),i={done:!1,value:t[0]},s=OE(n&&n.length===t.length?n:jE(t),e),a=bE(s,t,{ease:Array.isArray(o)?o:IE(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const VE=e=>{const t=({timestamp:n})=>e(n);return{start:()=>B.update(t,!0),stop:()=>tn(t),now:()=>de.isProcessing?de.timestamp:ct.now()}},FE={decay:Tf,inertia:Tf,tween:es,keyframes:es,spring:Wv},zE=e=>e/100;class Sc extends Fv{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=o?.KeyframeResolver||pc,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=yc(n)?n:FE[n]||es;let l,u;a!==es&&typeof t[0]!="number"&&(l=Xt(zE,Gv(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=$v(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:w,repeatDelay:v,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,C=i;if(y){const T=Math.min(this.currentTime,c)/d;let b=Math.floor(T),M=T%1;!M&&T>=1&&(M=1),M===1&&b--,b=Math.min(b,y+1),!!(b%2)&&(w==="reverse"?(M=1-M,v&&(M-=v/d)):w==="mirror"&&(C=s)),m=kt(0,1,M)*d}const E=p?{done:!1,value:l[0]}:C.next(m);a&&(E.value=a(E.value));let{done:k}=E;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&o!==void 0&&(E.value=Ls(l,this.options,o)),x&&x(E.value),P&&this.finish(),E}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=xt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=VE,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const BE=new Set(["opacity","clipPath","filter","transform"]);function Cc(e){let t;return()=>(t===void 0&&(t=e()),t)}const UE={linearEasing:void 0};function $E(e,t){const n=Cc(e);return()=>{var r;return(r=UE[t])!==null&&r!==void 0?r:n()}}const ts=$E(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Yv(e){return!!(typeof e=="function"&&ts()||!e||typeof e=="string"&&(e in Bl||ts())||wc(e)||Array.isArray(e)&&e.every(Yv))}const $r=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$r([0,.65,.55,1]),circOut:$r([.55,0,1,.45]),backIn:$r([.31,.01,.66,-.59]),backOut:$r([.33,1.53,.69,.99])};function Qv(e,t){if(e)return typeof e=="function"&&ts()?zv(e,t):wc(e)?$r(e):Array.isArray(e)?e.map(n=>Qv(n,t)||Bl.easeOut):Bl[e]}function WE(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Qv(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Mf(e,t){e.timeline=t,e.onfinish=null}const HE=Cc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ns=10,KE=2e4;function GE(e){return yc(e.type)||e.type==="spring"||!Yv(e.ease)}function YE(e,t){const n=new Sc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&ts()&&QE(s)&&(s=Xv[s]),GE(this.options)){const{onComplete:f,onUpdate:y,motionValue:w,element:v,...x}=this.options,h=YE(t,x);t=h.keyframes,t.length===1&&(t[1]=t[0]),o=h.duration,i=h.times,s=h.ease,a="keyframes"}const d=WE(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Mf(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ls(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return we;const{animation:r}=n;Mf(r,t)}return we}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...y}=this.options,w=new Sc({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),v=xt(this.time);u.setWithVelocity(w.sample(v-ns).value,w.sample(v).value,ns)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return HE()&&r&&BE.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const XE=Cc(()=>window.ScrollTimeline!==void 0);class ZE{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rXE()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function qE({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ec=(e,t,n,r={},o,i)=>s=>{const a=uc(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-xt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};qE(a)||(c={...c,...EC(e,c)}),c.duration&&(c.duration=xt(c.duration)),c.repeatDelay&&(c.repeatDelay=xt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Ls(c.keyframes,a);if(f!==void 0)return B.update(()=>{c.onUpdate(f),c.onComplete()}),new ZE([])}return!i&&Nf.supports(c)?new Nf(c):new Sc(c)},JE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),eP=e=>Ll(e)?e[e.length-1]||0:e;function Pc(e,t){e.indexOf(t)===-1&&e.push(t)}function Tc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class kc{constructor(){this.subscriptions=[]}add(t){return Pc(this.subscriptions,t),()=>Tc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class nP{constructor(t,n={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=ct.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ct.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=tP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new kc);const r=this.events[t].add(n);return t==="change"?()=>{r(),B.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Lf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Lf);return Bv(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function To(e,t){return new nP(e,t)}function rP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,To(n))}function oP(e,t){const n=Ns(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=eP(i[s]);rP(e,s,a)}}const Ac=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),iP="framerAppearId",Zv="data-"+Ac(iP);function qv(e){return e.props[Zv]}const ye=e=>!!(e&&e.getVelocity);function sP(e){return!!(ye(e)&&e.add)}function Ul(e,t){const n=e.getValue("willChange");if(sP(n))return n.add(t)}function aP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&aP(c,d))continue;const w={delay:n,...uc(s||{},d)};let v=!1;if(window.MotionHandoffAnimation){const h=qv(e);if(h){const p=window.MotionHandoffAnimation(h,d,B);p!==null&&(w.startTime=p,v=!0)}}Ul(e,d),f.start(Ec(d,f,y,e.shouldReduceMotion&&Nn.has(d)?{type:!1}:w,e,v));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{B.update(()=>{a&&oP(e,a)})}),u}function $l(e,t,n={}){var r;const o=Ns(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Jv(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return lP(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function lP(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(uP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push($l(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function uP(e,t){return e.sortNodePosition(t)}function cP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>$l(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=$l(e,t,n);else{const o=typeof t=="function"?Ns(e,t,n.custom):t;r=Promise.all(Jv(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const dP=lc.length;function ey(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ey(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>cP(e,n,r)))}function mP(e){let t=hP(e),n=bf(),r=!0;const o=l=>(u,c)=>{var d;const f=Ns(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:w,...v}=f;u={...u,...v,...w}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=ey(e.parent)||{},d=[],f=new Set;let y={},w=1/0;for(let x=0;xw&&C,b=!1;const M=Array.isArray(m)?m:[m];let Z=M.reduce(o(h),{});E===!1&&(Z={});const{prevResolvedValues:I={}}=p,tt={...I,...Z},nt=q=>{T=!0,f.has(q)&&(b=!0,f.delete(q)),p.needsAnimating[q]=!0;const D=e.getValue(q);D&&(D.liveStyle=!1)};for(const q in tt){const D=Z[q],N=I[q];if(y.hasOwnProperty(q))continue;let _=!1;Ll(D)&&Ll(N)?_=!pv(D,N):_=D!==N,_?D!=null?nt(q):f.add(q):D!==void 0&&f.has(q)?nt(q):p.protectedKeys[q]=!0}p.prevProp=m,p.prevResolvedValues=Z,p.isActive&&(y={...y,...Z}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(k&&P)||b)&&d.push(...M.map(q=>({animation:q,options:{type:h}})))}if(f.size){const x={};f.forEach(h=>{const p=e.getBaseTarget(h),m=e.getValue(h);m&&(m.liveStyle=!0),x[h]=p??null}),d.push({animation:x})}let v=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=bf(),r=!0}}}function gP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pv(t,e):!1}function cn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bf(){return{animate:cn(!0),whileInView:cn(),whileHover:cn(),whileTap:cn(),whileDrag:cn(),whileFocus:cn(),exit:cn()}}class an{constructor(t){this.isMounted=!1,this.node=t}update(){}}class vP extends an{constructor(t){super(t),t.animationState||(t.animationState=mP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ms(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let yP=0;class wP extends an{constructor(){super(...arguments),this.id=yP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const xP={animation:{Feature:vP},exit:{Feature:wP}};function SP(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Ge={x:!1,y:!1};function ty(){return Ge.x||Ge.y}function _f(e){return t=>{t.pointerType==="touch"||ty()||e(t)}}function CP(e,t,n={}){const r=new AbortController,o={passive:!0,...n,signal:r.signal},i=_f(s=>{const{target:a}=s,l=t(s);if(!l||!a)return;const u=_f(c=>{l(c),a.removeEventListener("pointerleave",u)});a.addEventListener("pointerleave",u,o)});return SP(e).forEach(s=>{s.addEventListener("pointerenter",i,o)}),()=>r.abort()}function EP(e){return e==="x"||e==="y"?Ge[e]?null:(Ge[e]=!0,()=>{Ge[e]=!1}):Ge.x||Ge.y?null:(Ge.x=Ge.y=!0,()=>{Ge.x=Ge.y=!1})}const ny=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function _o(e){return{point:{x:e.pageX,y:e.pageY}}}const PP=e=>t=>ny(t)&&e(t,_o(t));function vt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Zt(e,t,n,r){return vt(e,t,PP(n),r)}const jf=(e,t)=>Math.abs(e-t);function TP(e,t){const n=jf(e.x,t.x),r=jf(e.y,t.y);return Math.sqrt(n**2+r**2)}class ry{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ka(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=TP(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:w}=d,{timestamp:v}=de;this.history.push({...w,timestamp:v});const{onStart:x,onMove:h}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ta(f,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:w,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ka(d.type==="pointercancel"?this.lastMoveEventInfo:Ta(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,x),w&&w(d,x)},!ny(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=_o(t),a=Ta(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=de;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ka(a,this.history)),this.removeListeners=Xt(Zt(this.contextWindow,"pointermove",this.handlePointerMove),Zt(this.contextWindow,"pointerup",this.handlePointerUp),Zt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tn(this.updatePoint)}}function Ta(e,t){return t?{point:t(e.point)}:e}function Of(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ka({point:e},t){return{point:e,delta:Of(e,oy(t)),offset:Of(e,kP(t)),velocity:AP(t,.1)}}function kP(e){return e[0]}function oy(e){return e[e.length-1]}function AP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=oy(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xt(t)));)n--;if(!r)return{x:0,y:0};const i=St(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Xn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const iy=1e-4,DP=1-iy,RP=1+iy,sy=.01,MP=0-sy,NP=0+sy;function _e(e){return e.max-e.min}function LP(e,t,n){return Math.abs(e-t)<=n}function If(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=_e(n)/_e(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=DP&&e.scale<=RP||isNaN(e.scale))&&(e.scale=1),(e.translate>=MP&&e.translate<=NP||isNaN(e.translate))&&(e.translate=0)}function to(e,t,n,r){If(e.x,t.x,n.x,r?r.originX:void 0),If(e.y,t.y,n.y,r?r.originY:void 0)}function Vf(e,t,n){e.min=n.min+t.min,e.max=e.min+_e(t)}function bP(e,t,n){Vf(e.x,t.x,n.x),Vf(e.y,t.y,n.y)}function Ff(e,t,n){e.min=t.min-n.min,e.max=e.min+_e(t)}function no(e,t,n){Ff(e.x,t.x,n.x),Ff(e.y,t.y,n.y)}function _P(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function zf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function jP(e,{top:t,left:n,bottom:r,right:o}){return{x:zf(e.x,n,o),y:zf(e.y,t,r)}}function Bf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=wr(t.min,t.max-r,e.min):r>o&&(n=wr(e.min,e.max-o,t.min)),kt(0,1,n)}function VP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Wl=.35;function FP(e=Wl){return e===!1?e=0:e===!0&&(e=Wl),{x:Uf(e,"left","right"),y:Uf(e,"top","bottom")}}function Uf(e,t,n){return{min:$f(e,t),max:$f(e,n)}}function $f(e,t){return typeof e=="number"?e:e[t]||0}const Wf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zn=()=>({x:Wf(),y:Wf()}),Hf=()=>({min:0,max:0}),te=()=>({x:Hf(),y:Hf()});function Fe(e){return[e("x"),e("y")]}function ay({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function BP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Aa(e){return e===void 0||e===1}function Hl({scale:e,scaleX:t,scaleY:n}){return!Aa(e)||!Aa(t)||!Aa(n)}function pn(e){return Hl(e)||ly(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ly(e){return Kf(e.x)||Kf(e.y)}function Kf(e){return e&&e!=="0%"}function rs(e,t,n){const r=e-n,o=t*r;return n+o}function Gf(e,t,n,r,o){return o!==void 0&&(e=rs(e,o,r)),rs(e,n,r)+t}function Kl(e,t=0,n=1,r,o){e.min=Gf(e.min,t,n,r,o),e.max=Gf(e.max,t,n,r,o)}function uy(e,{x:t,y:n}){Kl(e.x,t.translate,t.scale,t.originPoint),Kl(e.y,n.translate,n.scale,n.originPoint)}const Yf=.999999999999,Qf=1.0000000000001;function UP(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aYf&&(t.x=1),t.yYf&&(t.y=1)}function qn(e,t){e.min=e.min+t,e.max=e.max+t}function Xf(e,t,n,r,o=.5){const i=Y(e.min,e.max,o);Kl(e,t,n,i,r)}function Jn(e,t){Xf(e.x,t.x,t.scaleX,t.scale,t.originX),Xf(e.y,t.y,t.scaleY,t.scale,t.originY)}function cy(e,t){return ay(BP(e.getBoundingClientRect(),t))}function $P(e,t,n){const r=cy(e,n),{scroll:o}=t;return o&&(qn(r.x,o.offset.x),qn(r.y,o.offset.y)),r}const dy=({current:e})=>e?e.ownerDocument.defaultView:null,WP=new WeakMap;class HP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_o(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:w}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=EP(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(x=>{let h=this.getAxisMotionValue(x).get()||0;if(ut.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[x];m&&(h=_e(m)*(parseFloat(h)/100))}}this.originPoint[x]=h}),w&&B.postRender(()=>w(c,d)),Ul(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:w,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(y&&this.currentDirection===null){this.currentDirection=KP(x),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),v&&v(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Fe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ry(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:dy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&B.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!li(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=_P(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Xn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=jP(o.layoutBox,n):this.constraints=!1,this.elastic=FP(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Fe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=VP(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xn(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=$P(r,o.root,this.visualElement.getTransformPagePoint());let s=OP(o.layout.layoutBox,i);if(n){const a=n(zP(s));this.hasMutatedConstraints=!!a,a&&(s=ay(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Fe(c=>{if(!li(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,w={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,w)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ul(this.visualElement,t),r.start(Ec(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!li(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Y(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Fe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=IP({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(s=>{if(!li(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Y(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;WP.set(this.visualElement,this);const t=this.visualElement.current,n=Zt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Xn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),B.read(r);const s=vt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Wl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function li(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class GP extends an{constructor(t){super(t),this.removeGroupControls=we,this.removeListeners=we,this.controls=new HP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||we}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zf=e=>(t,n)=>{e&&B.postRender(()=>e(t,n))};class YP extends an{constructor(){super(...arguments),this.removePointerDownListener=we}onPointerDown(t){this.session=new ry(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Zf(t),onStart:Zf(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&B.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Zt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bs=g.createContext(null);function QP(){const e=g.useContext(bs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=g.useId();g.useEffect(()=>r(o),[]);const i=g.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const Dc=g.createContext({}),fy=g.createContext({}),Ti={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ir={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=qf(e,t.target.x),r=qf(e,t.target.y);return`${n}% ${r}%`}},XP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=nn.parse(e);if(o.length>5)return r;const i=nn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=Y(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},os={};function ZP(e){Object.assign(os,e)}const{schedule:Rc,cancel:ZA}=hv(queueMicrotask,!1);class qP extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;ZP(JP),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ti.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||B.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function py(e){const[t,n]=QP(),r=g.useContext(Dc);return S.jsx(qP,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(fy),isPresent:t,safeToRemove:n})}const JP={borderRadius:{...Ir,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ir,borderTopRightRadius:Ir,borderBottomLeftRadius:Ir,borderBottomRightRadius:Ir,boxShadow:XP},hy=["TopLeft","TopRight","BottomLeft","BottomRight"],eT=hy.length,Jf=e=>typeof e=="string"?parseFloat(e):e,ep=e=>typeof e=="number"||L.test(e);function tT(e,t,n,r,o,i){o?(e.opacity=Y(0,n.opacity!==void 0?n.opacity:1,nT(r)),e.opacityExit=Y(t.opacity!==void 0?t.opacity:1,0,rT(r))):i&&(e.opacity=Y(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(wr(e,t,r))}function np(e,t){e.min=t.min,e.max=t.max}function Ve(e,t){np(e.x,t.x),np(e.y,t.y)}function rp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function op(e,t,n,r,o){return e-=t,e=rs(e,1/n,r),o!==void 0&&(e=rs(e,1/o,r)),e}function oT(e,t=0,n=1,r=.5,o,i=e,s=e){if(ut.test(t)&&(t=parseFloat(t),t=Y(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Y(i.min,i.max,r);e===i&&(a-=t),e.min=op(e.min,t,n,a,o),e.max=op(e.max,t,n,a,o)}function ip(e,t,[n,r,o],i,s){oT(e,t[n],t[r],t[o],t.scale,i,s)}const iT=["x","scaleX","originX"],sT=["y","scaleY","originY"];function sp(e,t,n,r){ip(e.x,t,iT,n?n.x:void 0,r?r.x:void 0),ip(e.y,t,sT,n?n.y:void 0,r?r.y:void 0)}function ap(e){return e.translate===0&&e.scale===1}function gy(e){return ap(e.x)&&ap(e.y)}function lp(e,t){return e.min===t.min&&e.max===t.max}function aT(e,t){return lp(e.x,t.x)&&lp(e.y,t.y)}function up(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vy(e,t){return up(e.x,t.x)&&up(e.y,t.y)}function cp(e){return _e(e.x)/_e(e.y)}function dp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class lT{constructor(){this.members=[]}add(t){Pc(this.members,t),t.scheduleRender()}remove(t){if(Tc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function uT(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:w}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const cT=(e,t)=>e.depth-t.depth;class dT{constructor(){this.children=[],this.isDirty=!1}add(t){Pc(this.children,t),this.isDirty=!0}remove(t){Tc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cT),this.isDirty=!1,this.children.forEach(t)}}function ki(e){const t=ye(e)?e.get():e;return JE(t)?t.toValue():t}function fT(e,t){const n=ct.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(tn(r),e(i-t))};return B.read(r,!0),()=>tn(r)}function pT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function hT(e,t,n){const r=ye(e)?e:To(e);return r.start(Ec("",r,t,n)),r.animation}const hn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Wr=typeof window<"u"&&window.MotionDebug!==void 0,Da=["","X","Y","Z"],mT={visibility:"hidden"},fp=1e3;let gT=0;function Ra(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=qv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",B,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yy(r)}function wy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=gT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Wr&&(hn.totalNodes=hn.resolvedTargetDeltas=hn.recalculatedProjection=0),this.nodes.forEach(wT),this.nodes.forEach(PT),this.nodes.forEach(TT),this.nodes.forEach(xT),Wr&&window.MotionDebug.record(hn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=fT(f,250),Ti.hasAnimatedSinceResize&&(Ti.hasAnimatedSinceResize=!1,this.nodes.forEach(hp))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||MT,{onLayoutAnimationStart:x,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!vy(this.targetLayout,w)||y,m=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const C={...uc(v,"layout"),onPlay:x,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||hp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(kT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=C/1e3;mp(d.x,s.x,E),mp(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),DT(this.relativeTarget,this.relativeTargetOrigin,f,E),m&&aT(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=te()),Ve(m,this.relativeTarget)),v&&(this.animationValues=c,tT(c,u,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{Ti.hasAnimatedSinceResize=!0,this.currentAnimation=hT(0,fp,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&xy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||te();const d=_e(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=_e(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ve(a,l),Jn(a,c),to(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new lT),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ra("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(pp),this.root.sharedNodes.clear()}}}function vT(e){e.updateLayout()}function yT(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Fe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=_e(f);f.min=r[d].min,f.max=f.min+y}):xy(i,n.layoutBox,r)&&Fe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=_e(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=Zn();to(a,r,n.layoutBox);const l=Zn();s?to(l,e.applyTransform(o,!0),n.measuredBox):to(l,r,n.layoutBox);const u=!gy(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const w=te();no(w,n.layoutBox,f.layoutBox);const v=te();no(v,r,y.layoutBox),vy(w,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=w,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function wT(e){Wr&&hn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ST(e){e.clearSnapshot()}function pp(e){e.clearMeasurements()}function CT(e){e.isLayoutDirty=!1}function ET(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PT(e){e.resolveTargetDelta()}function TT(e){e.calcProjection()}function kT(e){e.resetSkewAndRotation()}function AT(e){e.removeLeadSnapshot()}function mp(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gp(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function DT(e,t,n,r){gp(e.x,t.x,n.x,r),gp(e.y,t.y,n.y,r)}function RT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const MT={duration:.45,ease:[.4,0,.1,1]},vp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yp=vp("applewebkit/")&&!vp("chrome/")?Math.round:we;function wp(e){e.min=yp(e.min),e.max=yp(e.max)}function NT(e){wp(e.x),wp(e.y)}function xy(e,t,n){return e==="position"||e==="preserve-aspect"&&!LP(cp(t),cp(n),.2)}function LT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const bT=wy({attachResizeListener:(e,t)=>vt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ma={current:void 0},Sy=wy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ma.current){const e=new bT({});e.mount(window),e.setOptions({layoutScroll:!0}),Ma.current=e}return Ma.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_T={pan:{Feature:YP},drag:{Feature:GP,ProjectionNode:Sy,MeasureLayout:py}};function xp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n);const o=r[n?"onHoverStart":"onHoverEnd"];o&&B.postRender(()=>o(t,_o(t)))}class jT extends an{mount(){const{current:t,props:n}=this.node;t&&(this.unmount=CP(t,r=>(xp(this.node,r,!0),o=>xp(this.node,o,!1)),{passive:!n.onHoverStart&&!n.onHoverEnd}))}unmount(){}}class OT extends an{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xt(vt(this.node.current,"focus",()=>this.onFocus()),vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Cy=(e,t)=>t?e===t?!0:Cy(e,t.parentElement):!1;function Na(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,_o(n))}class IT extends an{constructor(){super(...arguments),this.removeStartListeners=we,this.removeEndListeners=we,this.removeAccessibleListeners=we,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Zt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Cy(this.node.current,a.target)?c:u;f&&B.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Zt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Xt(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Na("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&B.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=vt(this.node.current,"keyup",s),Na("down",(a,l)=>{this.startPress(a,l)})},n=vt(this.node.current,"keydown",t),r=()=>{this.isPressing&&Na("cancel",(i,s)=>this.cancelPress(i,s))},o=vt(this.node.current,"blur",r);this.removeAccessibleListeners=Xt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&B.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ty()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&B.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Zt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=vt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Gl=new WeakMap,La=new WeakMap,VT=e=>{const t=Gl.get(e.target);t&&t(e)},FT=e=>{e.forEach(VT)};function zT({root:e,...t}){const n=e||document;La.has(n)||La.set(n,{});const r=La.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(FT,{root:e,...t})),r[o]}function BT(e,t,n){const r=zT(t);return Gl.set(e,n),r.observe(e),()=>{Gl.delete(e),r.unobserve(e)}}const UT={some:0,all:1};class $T extends an{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:UT[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return BT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(WT(t,n))&&this.startObserver()}unmount(){}}function WT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HT={inView:{Feature:$T},tap:{Feature:IT},focus:{Feature:OT},hover:{Feature:jT}},KT={layout:{ProjectionNode:Sy,MeasureLayout:py}},Mc=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),_s=g.createContext({}),Nc=typeof window<"u",Ey=Nc?g.useLayoutEffect:g.useEffect,Py=g.createContext({strict:!1});function GT(e,t,n,r,o){var i,s;const{visualElement:a}=g.useContext(_s),l=g.useContext(Py),u=g.useContext(bs),c=g.useContext(Mc).reducedMotion,d=g.useRef();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=g.useContext(fy);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&YT(d.current,n,o,y);const w=g.useRef(!1);g.useInsertionEffect(()=>{f&&w.current&&f.update(n,u)});const v=n[Zv],x=g.useRef(!!v&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,v))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,v)));return Ey(()=>{f&&(w.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Rc.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),g.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,v)}),x.current=!1))}),f}function YT(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ty(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Xn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Ty(e){if(e)return e.options.allowProjection!==!1?e.projection:Ty(e.parent)}function QT(e,t,n){return g.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xn(n)&&(n.current=r))},[t])}function js(e){return Ms(e.animate)||lc.some(t=>Co(e[t]))}function ky(e){return!!(js(e)||e.variants)}function XT(e,t){if(js(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Co(n)?n:void 0,animate:Co(r)?r:void 0}}return e.inherit!==!1?t:{}}function ZT(e){const{initial:t,animate:n}=XT(e,g.useContext(_s));return g.useMemo(()=>({initial:t,animate:n}),[Sp(t),Sp(n)])}function Sp(e){return Array.isArray(e)?e.join(" "):e}const Cp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xr={};for(const e in Cp)xr[e]={isEnabled:t=>Cp[e].some(n=>!!t[n])};function qT(e){for(const t in e)xr[t]={...xr[t],...e[t]}}const JT=Symbol.for("motionComponentSymbol");function ek({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&qT(e);function i(a,l){let u;const c={...g.useContext(Mc),...a,layoutId:tk(a)},{isStatic:d}=c,f=ZT(a),y=r(a,d);if(!d&&Nc){nk();const w=rk(c);u=w.MeasureLayout,f.visualElement=GT(o,y,c,t,w.ProjectionNode)}return S.jsxs(_s.Provider,{value:f,children:[u&&f.visualElement?S.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,QT(y,f.visualElement,l),y,d,f.visualElement)]})}const s=g.forwardRef(i);return s[JT]=o,s}function tk({layoutId:e}){const t=g.useContext(Dc).id;return t&&e!==void 0?t+"-"+e:e}function nk(e,t){g.useContext(Py).strict}function rk(e){const{drag:t,layout:n}=xr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ok=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lc(e){return typeof e!="string"||e.includes("-")?!1:!!(ok.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ay(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Dy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ry(e,t,n,r){Ay(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Dy.has(o)?o:Ac(o),t.attrs[o])}function My(e,{layout:t,layoutId:n}){return Nn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!os[e]||e==="opacity")}function bc(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(ye(o[s])||t.style&&ye(t.style[s])||My(s,e)||((r=n?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Ny(e,t,n){const r=bc(e,t,n);for(const o in e)if(ye(e[o])||ye(t[o])){const i=No.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function _c(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}function ik({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:sk(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Ly=e=>(t,n)=>{const r=g.useContext(_s),o=g.useContext(bs),i=()=>ik(e,t,r,o);return n?i():_c(i)};function sk(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ki(i[f]);let{initial:s,animate:a}=e;const l=js(e),u=ky(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!Ms(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),by=()=>({...jc(),attrs:{}}),_y=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ak={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lk=No.length;function uk(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",hk={useVisualState:Ly({scrapeMotionValuesFromProps:Ny,createRenderState:by,onMount:(e,t,{renderState:n,latestValues:r})=>{B.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),B.render(()=>{Ic(n,r,Vc(t.tagName),e.transformTemplate),Ry(t,n)})}})},mk={useVisualState:Ly({scrapeMotionValuesFromProps:bc,createRenderState:jc})};function jy(e,t,n){for(const r in t)!ye(t[r])&&!My(r,n)&&(e[r]=t[r])}function gk({transformTemplate:e},t){return g.useMemo(()=>{const n=jc();return Oc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vk(e,t){const n=e.style||{},r={};return jy(r,n,e),Object.assign(r,gk(e,t)),r}function yk(e,t){const n={},r=vk(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const wk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function is(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wk.has(e)}let Oy=e=>!is(e);function xk(e){e&&(Oy=t=>t.startsWith("on")?!is(t):e(t))}try{xk(require("@emotion/is-prop-valid").default)}catch{}function Sk(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Oy(o)||n===!0&&is(o)||!t&&!is(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Ck(e,t,n,r){const o=g.useMemo(()=>{const i=by();return Ic(i,t,Vc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};jy(i,e.style,e),o.style={...i,...o.style}}return o}function Ek(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Lc(n)?Ck:yk)(r,i,s,n),u=Sk(r,typeof n=="string",e),c=n!==g.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=g.useMemo(()=>ye(d)?d.get():d,[d]);return g.createElement(n,{...c,children:f})}}function Pk(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Lc(r)?hk:mk,preloadedFeatures:e,useRender:Ek(o),createVisualElement:t,Component:r};return ek(s)}}const Yl={current:null},Iy={current:!1};function Tk(){if(Iy.current=!0,!!Nc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yl.current=e.matches;e.addListener(t),t()}else Yl.current=!1}function kk(e,t,n){for(const r in t){const o=t[r],i=n[r];if(ye(o))e.addValue(r,o);else if(ye(i))e.addValue(r,To(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,To(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Pp=new WeakMap,Ak=[...Rv,ge,nn],Dk=e=>Ak.find(Dv(e)),Tp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Rk{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=ct.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Iy.current||Tk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pp.delete(this.current),this.projection&&this.projection.unmount(),tn(this.notifyUpdate),tn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Nn.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&B.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in xr){const n=xr[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=To(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Pv(o)||Ev(o))?o=parseFloat(o):!Dk(o)&&nn.test(n)&&(o=Iv(t,n)),this.setBaseTarget(t,ye(o)?o.get():o)),ye(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=sc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ye(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Vy extends Rk{constructor(){super(...arguments),this.KeyframeResolver=Vv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Mk(e){return window.getComputedStyle(e)}class Nk extends Vy{constructor(){super(...arguments),this.type="html",this.renderInstance=Ay}readValueFromInstance(t,n){if(Nn.has(n)){const r=vc(n);return r&&r.default||0}else{const r=Mk(t),o=(kv(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cy(t,n)}build(t,n,r){Oc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return bc(t,n,r)}}class Lk extends Vy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nn.has(n)){const r=vc(n);return r&&r.default||0}return n=Dy.has(n)?n:Ac(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ny(t,n,r)}build(t,n,r){Ic(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Ry(t,n,r,o)}mount(t){this.isSVGTag=Vc(t.tagName),super.mount(t)}}const bk=(e,t)=>Lc(e)?new Lk(t):new Nk(t,{allowProjection:e!==g.Fragment}),_k=Pk({...xP,...HT,..._T,...KT},bk),kp=yC(_k);class jk extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ok({children:e,isPresent:t}){const n=g.useId(),r=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=g.useContext(Mc);return g.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${s}px !important; + height: ${a}px !important; + top: ${l}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(c)}},[t]),S.jsx(jk,{isPresent:t,childRef:r,sizeRef:o,children:g.cloneElement(e,{ref:r})})}const Ik=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=_c(Vk),l=g.useId(),u=g.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return g.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),g.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=S.jsx(Ok,{isPresent:n,children:e})),S.jsx(bs.Provider,{value:c,children:e})};function Vk(){return new Map}const ui=e=>e.key||"";function Ap(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Fk=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=g.useMemo(()=>Ap(e),[e]),l=a.map(ui),u=g.useRef(!0),c=g.useRef(a),d=_c(()=>new Map),[f,y]=g.useState(a),[w,v]=g.useState(a);Ey(()=>{u.current=!1,c.current=a;for(let p=0;p{const m=ui(p),C=a===w||l.includes(m),E=()=>{if(d.has(m))d.set(m,!0);else return;let k=!0;d.forEach(P=>{P||(k=!1)}),k&&(h?.(),v(c.current),o&&o())};return S.jsx(Ik,{isPresent:C,initial:!u.current||r?void 0:!1,custom:C?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:C?void 0:E,children:p},m)})})};function Fc({size:e=24,className:t,...n}){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,...n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:re("animate-spin",t),children:S.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}function zk({text:e,loaded:t,setText:n}){return S.jsxs("div",{className:"flex fixed h-14 w-full border-b border-border/40 bg-background/95 items-center px-4",children:[S.jsx("h1",{className:"text-2xl font-medium",children:"Seed"}),S.jsx("div",{className:"flex h-full justify-center items-center flex-1 mx-4 relative",children:S.jsx(Fk,{children:t?S.jsx(kp.div,{className:"absolute left-0 right-0 m-auto",initial:{opacity:0},animate:{opacity:1},children:S.jsx(Bk,{text:e,setText:n})},"nickname"):S.jsx(kp.div,{className:"absolute left-0 right-0",exit:{y:-100,opacity:0},children:S.jsx(Uk,{})},"loader")})}),S.jsx(vC,{})]})}function Bk({text:e,setText:t}){return S.jsx("div",{className:"w-full h-full flex justify-center items-center",children:S.jsx(ic,{value:e,onChange:n=>t(n.target.value),placeholder:"Anonymous"})})}function Uk(){return S.jsx(S.Fragment,{children:S.jsxs("div",{className:"w-full h-full flex justify-center items-center",children:[S.jsx("p",{className:"overflow-hidden text-ellipsis",children:"Connecting..."}),S.jsx(Fc,{className:"size-4"})]})})}var zc="Avatar",[$k,JA]=qu(zc),[Wk,Fy]=$k(zc),zy=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=g.useState("idle");return S.jsx(Wk,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:S.jsx(Ie.span,{...r,ref:t})})});zy.displayName=zc;var By="AvatarImage",Uy=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,s=Fy(By,n),a=Hk(r,i.referrerPolicy),l=en(u=>{o(u),s.onImageLoadingStatusChange(u)});return vr(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?S.jsx(Ie.img,{...i,ref:t,src:r}):null});Uy.displayName=By;var $y="AvatarFallback",Wy=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=Fy($y,n),[s,a]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&i.imageLoadingStatus!=="loaded"?S.jsx(Ie.span,{...o,ref:t}):null});Wy.displayName=$y;function Hk(e,t){const[n,r]=g.useState("idle");return vr(()=>{if(!e){r("error");return}let o=!0;const i=new window.Image,s=a=>()=>{o&&r(a)};return r("loading"),i.onload=s("loaded"),i.onerror=s("error"),i.src=e,t&&(i.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Hy=zy,Ky=Uy,Gy=Wy;const Yy=g.forwardRef(({className:e,...t},n)=>S.jsx(Hy,{ref:n,className:re("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Yy.displayName=Hy.displayName;const Qy=g.forwardRef(({className:e,...t},n)=>S.jsx(Ky,{ref:n,className:re("aspect-square h-full w-full",e),...t}));Qy.displayName=Ky.displayName;const Xy=g.forwardRef(({className:e,...t},n)=>S.jsx(Gy,{ref:n,className:re("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Xy.displayName=Gy.displayName;function Kk(){return S.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[S.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:S.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),S.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:S.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),S.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:S.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const Gk=Ds("flex gap-2 max-w-[95%] sm:max-w-[80%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),Zy=g.forwardRef(({className:e,variant:t,layout:n,children:r,...o},i)=>S.jsx("div",{className:re(Gk({variant:t,layout:n,className:e}),"relative group"),ref:i,...o,children:g.Children.map(r,s=>g.isValidElement(s)&&typeof s.type!="string"?g.cloneElement(s,{variant:t,layout:n}):s)}));Zy.displayName="ChatBubble";const Yk=({src:e,fallback:t,className:n})=>S.jsxs(Yy,{className:n,children:[S.jsx(Qy,{src:e,alt:"Avatar"}),S.jsx(Xy,{children:t})]}),Qk=Ds("px-4 pb-4 pt-1",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",sent:"bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),qy=g.forwardRef(({className:e,variant:t,layout:n,isLoading:r=!1,children:o,...i},s)=>S.jsx("div",{className:re(Qk({variant:t,layout:n,className:e}),"overflow-hidden text-ellipsis"),ref:s,...i,children:r?S.jsx("div",{className:"flex items-center space-x-2",children:S.jsx(Kk,{})}):o}));qy.displayName="ChatBubbleMessage";const Xk=g.forwardRef(({variant:e,className:t,children:n,...r},o)=>S.jsx("div",{ref:o,className:re("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",e==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",t),...r,children:n}));Xk.displayName="ChatBubbleActionWrapper";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var Ql=function(e,t){return Ql=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},Ql(e,t)};function Zk(e,t){Ql(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ro=function(){return ro=Object.assign||function(t){for(var n,r=1,o=arguments.length;re?y():t!==!0&&(o=setTimeout(r?w:y,r===void 0?e-d:e))}return u.cancel=l,u}var ur={Pixel:"Pixel",Percent:"Percent"},Dp={unit:ur.Percent,value:.8};function Rp(e){return typeof e=="number"?{unit:ur.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:ur.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:ur.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),Dp):(console.warn("scrollThreshold should be string or number"),Dp)}var Jk=function(e){Zk(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might + happen because the element may not have been added to DOM yet. + See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. + `),null)},r.onStart=function(o){r.lastScrollTop||(r.dragging=!0,o instanceof MouseEvent?r.startY=o.pageY:o instanceof TouchEvent&&(r.startY=o.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(o){r.dragging&&(o instanceof MouseEvent?r.currentY=o.pageY:o instanceof TouchEvent&&(r.currentY=o.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(o){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(o)},0);var i=r.props.height||r._scrollableNode?o.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var s=r.props.inverse?r.isElementAtTop(i,r.props.scrollThreshold):r.isElementAtBottom(i,r.props.scrollThreshold);s&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=i.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=qk(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. + Pull Down To Refresh functionality will not work + as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var o=n.dataLength!==r.prevDataLength;return o?ro(ro({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=Rp(r);return i.unit===ur.Pixel?n.scrollTop<=i.value+o-n.scrollHeight+1:n.scrollTop<=i.value/100+o-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var o=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,i=Rp(r);return i.unit===ur.Pixel?n.scrollTop+o>=n.scrollHeight-i.value:n.scrollTop+o>=i.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=ro({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),o=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return Vr.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},Vr.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(s){return n._infScroll=s},style:r},this.props.pullDownToRefresh&&Vr.createElement("div",{style:{position:"relative"},ref:function(s){return n._pullDown=s}},Vr.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!o&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(g.Component);const Jy=g.forwardRef(({className:e,children:t,...n},r)=>S.jsx(Jk,{scrollableTarget:"chatMessageListScroll",ref:r,inverse:!0,loader:S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"w-full flex justify-center",children:S.jsx(Fc,{})}),S.jsx("div",{className:"h-8"})]}),endMessage:S.jsx("div",{className:"h-8"}),className:re("flex flex-col w-full h-full p-4 gap-6",e),...n,children:t}));Jy.displayName="ChatMessageList";var eA="Label",e0=g.forwardRef((e,t)=>S.jsx(Ie.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));e0.displayName=eA;var t0=e0;const tA=Ds("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),n0=g.forwardRef(({className:e,...t},n)=>S.jsx(t0,{ref:n,className:re(tA(),e),...t}));n0.displayName=t0.displayName;function nA({messages:e}){return S.jsx(S.Fragment,{children:S.jsx("div",{className:"flex flex-col-reverse flex-grow h-0 w-full overflow-y-scroll no-scrollbar",id:"chatMessageListScroll",children:S.jsx(Jy,{dataLength:e.length,next:()=>{},hasMore:!1,style:{display:"flex",flexDirection:"column-reverse"},children:e.map(t=>{if(t.content.type!="regular")return;const n=t.content.author?"sent":"received",r=`${t.localNonce}`,i=t.content.title.split(" ").filter(s=>s.length>0).map(s=>s[0].toUpperCase()).join("");return S.jsxs(Zy,{variant:n,children:[S.jsx(Yk,{fallback:i}),S.jsxs(qy,{style:{wordWrap:"break-word"},variant:n,children:[S.jsx(n0,{htmlFor:"text",children:t.content.title}),S.jsx("p",{id:"text",children:t.content.text})]}),t.loading&&S.jsx(Fc,{}),t.failure&&S.jsx(pC,{})]},r)})})})})}function rA(){return S.jsx(S.Fragment,{children:S.jsx("div",{className:"w-full h-full flex justify-center items-center",children:S.jsx("h1",{className:"text-xl text-muted-foreground",children:"No messages here yet"})})})}const r0=g.forwardRef(({className:e,...t},n)=>S.jsx("textarea",{className:re("flex md:min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));r0.displayName="Textarea";const Xl=g.forwardRef(({className:e,...t},n)=>S.jsx(r0,{autoComplete:"off",ref:n,name:"message",className:re("px-4 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center resize-none",e),...t}));Xl.displayName="ChatInput";function oA({text:e,setText:t,onClick:n}){const r=g.useRef(n);r.current=n,g.useEffect(()=>{const i=s=>{if(document.activeElement===o.current&&(s.code==="Enter"||s.code==="NumpadEnter")){if(s.shiftKey)return;r.current(),s.preventDefault()}};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[]);const o=g.useRef(null);return S.jsx(S.Fragment,{children:S.jsxs("div",{children:[S.jsxs("div",{className:"flex sm:hidden p-1",children:[S.jsx(Xl,{ref:o,value:e,onChange:i=>t(i.target.value),placeholder:"Type your message here...",className:"flex-grow resize-none rounded-lg bg-background border-0 shadow-none focus-visible:ring--1 h-max"}),S.jsx(qi,{size:"icon",className:"me-2",onClick:n,children:S.jsx(gC,{})})]}),S.jsxs("div",{className:"hidden sm:block m-10 p-1 relative rounded-lg border bg-background focus-within:ring-1 focus-within:ring-ring",children:[S.jsx(Xl,{ref:o,value:e,onChange:i=>t(i.target.value),placeholder:"Type your message here...",className:"resize-none rounded-lg bg-background border-0 p-3 shadow-none focus-visible:ring--1 h-max"}),S.jsx("div",{className:"flex items-center p-3 pt-0",children:S.jsxs(qi,{size:"sm",className:"ml-auto gap-1.5",onClick:n,children:["Send Message",S.jsx(hC,{className:"size-3.5"})]})})]})]})})}function iA({loaded:e,messages:t,text:n,setText:r,nickname:o,setNickname:i,sendMessage:s}){return S.jsx(S.Fragment,{children:S.jsxs("div",{className:"h-svh w-screen overflow-hidden flex flex-col",children:[S.jsx("div",{className:"w-full flex-grow flex justify-center",children:S.jsxs("div",{className:"h-full flex-grow max-w-full md:max-w-3xl flex flex-col",children:[e&&t.length==0?rA():S.jsx(nA,{messages:t}),S.jsx(oA,{text:n,setText:r,onClick:()=>s()})]})}),S.jsx(zk,{text:o,setText:i,loaded:e})]})})}var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});var o0=Bc.OptionPredicator=void 0,Mp;(function(e){e.numeric=function(t){return e.finite(t)||t.numeric===!0},e.functional=function(t){return t.functional===!0},e.finite=function(t){return t.finite===!0},e.undefined=function(t){return t.undefined!==!1}})(Mp||(o0=Bc.OptionPredicator=Mp={}));function At(e){e()}const sA=o0.undefined;function Ln(){const e=[],t=[];let n=!1;return{get isActive(){return!n},receive(){let r;const o=new Promise(i=>{if(n)return i(null);const s=e.shift();s?(i(s.element),s.resolve(!0)):(r={resolve:i},t.push(r))});return o.cancel=()=>{const i=t.indexOf(r);t.splice(i,1),r.resolve(null)},o},send(r){let o;const i=new Promise(s=>{if(n)return s(!1);const a=t.shift();a?(a.resolve(r),s(!0)):(o={element:r,resolve:s},e.push(o))});return i.cancel=()=>{const s=e.indexOf(o);e.splice(s,1),o.resolve(!1)},i},close(){n=!0;for(const r of t)r.resolve(null);t.splice(0,t.length);for(const r of e)r.resolve(!1);e.splice(0,e.length)},[Symbol.asyncIterator](){const r={[Symbol.asyncIterator]:()=>r,next:async()=>{const o=await this.receive();return o==null?{done:!0,value:sA}:{value:o,done:!1}}};return r},onEach(r){let o;return At(async()=>{for(;;){const i=this.receive();o=i;const s=await i;if(o=null,s==null)break;await r(s)}}),{cancel(){o?.cancel()}}},map(r){const o=Ln();return this.onEach(async i=>{o.send(r(i))}),o}}}function ba(e,t){g.useEffect(()=>{const n=e();return n.onEach(t),n.close},[])}function aA(e){const t=Ln();let n=!1;const r=e.collect(o=>At(async()=>{!t.send(o)&&!n&&(r.cancel(),n=!0)}));return t}function lA({changeNickname:e,getNickname:t,sendTextMessage:n,chatEvents:r,loadLocalMessages:o}){const i=g.useRef(0),s=g.useRef(0),[a,l]=g.useState([]),u=g.useRef(a);u.current=a;function c(p){l(m=>m.map(C=>C.localNonce==p.localNonce?p:C))}const[d,f]=g.useState(!1),[y,w]=g.useState(""),[v,x]=g.useState(""),h=g.useRef(v);return h.current=v,ba(t,async p=>x(p)),ba(()=>r({nicknameRef:h,localNonceRef:i,serverNonceRef:s}),async p=>{switch(p.type){case"new":l(m=>[...p.messages,...m]);break;case"wait":f(!0);break}}),ba(()=>o({nicknameRef:h,localNonceRef:i,serverNonceRef:s}),async p=>{l(m=>[...m,...p])}),iA({loaded:d,messages:a,text:y,setText(p){w(p)},nickname:v,setNickname(p){x(p),l(m=>e(p,m))},sendMessage(){w(""),n({text:y,localNonceRef:i,serverNonceRef:s,nicknameRef:h}).onEach(async p=>{switch(p.type){case"sending":l(m=>[p.message,...m]);break;case"update":c(p.message);break}})}})}function uA({chat:e}){return S.jsx(S.Fragment,{children:S.jsx(lA,{...e})})}function cA({nicknameStorage:e}){return(t,n)=>(At(()=>e.setName(t)),n.map(r=>{if(r.content.type!="regular")return r;const o=r.content;return o.title==t?{...r,content:{...o,author:!0}}:o.author?{...r,content:{...o,author:!1}}:r}))}function dA({socket:e,messageCoder:t,incrementLocalNonce:n,nextMessage:r,sanitizeContent:o,chatId:i}){return({content:s,localNonceRef:a,serverNonceRef:l})=>{const u=Ln();return At(async()=>{s=o(s);const c={localNonce:n({localNonceRef:a}),serverNonce:null,loading:!0,failure:!1,content:s};u.send({type:"sending",message:c});let d=20;for(;u.isActive;){const{nonce:f,key:y}=await r(),{content:w,contentIV:v,signature:x}=await t.encode({key:y,content:c.content}),p={type:"send",message:{chatId:i,content:w,contentIV:v,nonce:f,signature:x}};if((await e.execute(p)).status){l.current=f,u.send({type:"update",message:{...c,serverNonce:f,loading:!1}});return}if(d--,d<0){u.send({type:"update",message:{...c,failure:!0,loading:!1}});return}}}),u}}function fA({socket:e,decodeMessage:t}){return({nicknameRef:n,localNonceRef:r,serverNonceRef:o})=>{const i=Ln(),s=aA(e.events),a=[];let l=!1;return At(async()=>{for await(const u of s){if(!i.isActive){s.close();break}switch(u.type){case"new":const c=await t({message:u.message,nicknameRef:n,localNonceRef:r});if(!c)throw new Error("Cannot decode message, so can't continue work");if(u.message.nonce<=o.current)break;o.current=u.message.nonce,l?i.send({type:"new",messages:[c]}):a.unshift(c);break;case"wait":i.send({type:"new",messages:[...a]}),a.splice(0,a.length),i.send({type:"wait"}),l=!0;break}}s.close()}),i}}function pA({messageStorage:e,messageCoder:t,chatId:n,incrementLocalNonce:r,sanitizeContent:o,nextMessage:i}){const s=Ln();return At(async()=>{for await(const{message:a,nicknameRef:l,localNonceRef:u,resolve:c,reject:d}of s)try{const f=await e.lastMessage({chatId:n}),{nonce:y,key:w}=await i();if(!f){c(void 0);continue}if(y!=a.nonce){c(void 0);continue}let v=await t.decode({...a,key:w}),x;switch(v?.type){case"regular":x={...v,author:l.current==v.title};break;default:x={type:"unknown"};break}x=o(x),await e.add({chatId:n,content:x,key:w,nonce:a.nonce});const h=r({localNonceRef:u});c({localNonce:h,serverNonce:a.nonce,content:x,loading:!1,failure:!1})}catch(f){console.log("ERR",f),d(f)}}),async({message:a,nicknameRef:l,localNonceRef:u})=>new Promise((c,d)=>{s.send({message:a,nicknameRef:l,localNonceRef:u,resolve:c,reject:d})})}function hA({nicknameStorage:e}){return()=>{const t=Ln();return e.getName().then(n=>{n&&n.length>0?t.send(n):t.send("Anonymous")}),t}}function mA({messageStorage:e,chatId:t,incrementLocalNonce:n}){return({nicknameRef:r,localNonceRef:o,serverNonceRef:i})=>{const s=Ln();return At(async()=>{const a=await e.list({chatId:t}),l=[];for(const u of a){if(u.content.type=="deferred")continue;i.current=u.nonce>i.current?u.nonce:i.current;let c={localNonce:n({localNonceRef:o}),serverNonce:u.nonce,loading:!1,failure:!1};u.content.type=="regular"?l.push({...c,content:{...u.content,author:r.current==u.content.title}}):l.push({...c,content:{type:"unknown"}})}s.send(l)}),s}}function i0({messageStorage:e,messageCoder:t,chatId:n}){return async()=>{const r=await e.lastMessage({chatId:n});if(!r)throw new Error("Cannot create next message, because there is no last message");if(r.content.type=="deferred")return{nonce:r.nonce,key:r.key};{const o=r.nonce+1,i=await t.deriveNextKey(r.key);return{nonce:o,key:i}}}}function gA(){return e=>{if(e.type=="regular"){const t=e.text.length>4096?`${e.text.substring(0,4096)}...`:e.text,n=e.title.length>25?`${e.title.substring(0,25)}...`:e.title;return{...e,text:t,title:n}}return e}}function vA({sendMessage:e}){return({text:t,localNonceRef:n,serverNonceRef:r,nicknameRef:o})=>e({content:{type:"regular",author:!0,title:o.current,text:t},localNonceRef:n,serverNonceRef:r})}function yA({nickname:e,message:t,socket:n,messageCoder:r,chatId:o,incrementLocalNonce:i}){const s=i0({messageStorage:t,messageCoder:r,chatId:o}),a=gA(),l=pA({messageStorage:t,messageCoder:r,chatId:o,incrementLocalNonce:i,nextMessage:s,sanitizeContent:a}),u=dA({socket:n,messageCoder:r,incrementLocalNonce:i,nextMessage:s,sanitizeContent:a,chatId:o});return{changeNickname:cA({nicknameStorage:e}),chatEvents:fA({decodeMessage:l,socket:n}),getNickname:hA({nicknameStorage:e}),loadLocalMessages:mA({messageStorage:t,chatId:o,incrementLocalNonce:i}),sendTextMessage:vA({sendMessage:u})}}function wA(e){e.createObjectStore("message",{keyPath:["nonce","chatId"]}).createIndex("chatId","chatId",{unique:!1})}function xA(e){return{async lastMessage({chatId:t}){const n=await e.transaction("message").objectStore("message").index("chatId").openCursor(IDBKeyRange.only(t),"prev");if(n)return n.value},async add(t){await e.transaction("message","readwrite").objectStore("message").put(t)},async list({chatId:t}){const n=await e.transaction("message").objectStore("message").index("chatId").openCursor(IDBKeyRange.only(t),"prev");if(!n)return[];const r=[];for await(const o of n)r.push(o.value);return r}}}function SA(e){e.createObjectStore("nickname",{keyPath:"id"})}function CA(e){return{async getName(){const t=await e.transaction("nickname").store.getAll();if(t.length!=0)return t[0].nickname},async setName(t){await e.transaction("nickname","readwrite").store.put({id:1,nickname:t})}}}const Zl=(e,t)=>t.some(n=>e instanceof n);let Np,Lp;function EA(){return Np||(Np=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function PA(){return Lp||(Lp=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ql=new WeakMap,_a=new WeakMap,Os=new WeakMap;function TA(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(Cn(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Os.set(t,e),t}function kA(e){if(ql.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});ql.set(e,t)}let Jl={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return ql.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Cn(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function s0(e){Jl=e(Jl)}function AA(e){return PA().includes(e)?function(...t){return e.apply(eu(this),t),Cn(this.request)}:function(...t){return Cn(e.apply(eu(this),t))}}function DA(e){return typeof e=="function"?AA(e):(e instanceof IDBTransaction&&kA(e),Zl(e,EA())?new Proxy(e,Jl):e)}function Cn(e){if(e instanceof IDBRequest)return TA(e);if(_a.has(e))return _a.get(e);const t=DA(e);return t!==e&&(_a.set(e,t),Os.set(t,e)),t}const eu=e=>Os.get(e);function RA(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=Cn(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Cn(s.result),l.oldVersion,l.newVersion,Cn(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const MA=["get","getKey","getAll","getAllKeys","count"],NA=["put","add","delete","clear"],ja=new Map;function bp(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(ja.get(t))return ja.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=NA.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||MA.includes(n)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),o&&l.done]))[0]};return ja.set(t,i),i}s0(e=>({...e,get:(t,n,r)=>bp(t,n)||e.get(t,n,r),has:(t,n)=>!!bp(t,n)||e.has(t,n)}));const LA=["continue","continuePrimaryKey","advance"],_p={},tu=new WeakMap,a0=new WeakMap,bA={get(e,t){if(!LA.includes(t))return e[t];let n=_p[t];return n||(n=_p[t]=function(...r){tu.set(this,a0.get(this)[t](...r))}),n}};async function*_A(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,bA);for(a0.set(n,t),Os.set(n,eu(t));t;)yield n,t=await(tu.get(n)||t.continue()),tu.delete(n)}function jp(e,t){return t===Symbol.asyncIterator&&Zl(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Zl(e,[IDBIndex,IDBObjectStore])}s0(e=>({...e,get(t,n,r){return jp(t,n)?_A:e.get(t,n,r)},has(t,n){return jp(t,n)||e.has(t,n)}}));async function jA(){const e=await RA("persistence",2,{upgrade(t,n){n==0&&(SA(t),wA(t))}});return{message:xA(e),nickname:CA(e)}}function OA(e,t=()=>{}){return{emit:e,cancel:t}}function IA(){const e=[];return{collect(t){return"emit"in t||(t=OA(t)),e.push(t),{cancel(){const n=e.indexOf(t);e.splice(n,1),t.cancel()}}},emit(t){for(let n of e)n.emit(t)}}}function VA(e){const t=[];let n=[];const r=IA();function o(a){return new Promise(l=>{n.push({request:a,resolve(u){l(u)}}),i.readyState==WebSocket.OPEN&&(console.log(">> ws: execute",a),i.send(JSON.stringify(a)))})}let i;function s(){i=new WebSocket(e),i.onopen=()=>{console.log("<< ws: onopen"),n=n.filter(({request:a})=>!t.includes(a));for(const{request:a}of n)try{console.log(">> ws: request",a),i.send(JSON.stringify(a))}catch(l){console.error("<< ws: open catch",l)}for(const a of t)At(()=>o(a))},i.onclose=a=>{console.error("<< ws: onclose",a),setTimeout(s,1e3)},i.onmessage=a=>{const l=JSON.parse(a.data);if((()=>{const u=x=>x.type==="response"&&!0,c=x=>x.type==="event"&&typeof x.event=="object"&&x.event!==null&&w(x.event),d=x=>x.type==="new"&&typeof x.message=="object"&&x.message!==null&&f(x.message),f=x=>typeof x.chatId=="string"&&typeof x.nonce=="number"&&typeof x.signature=="string"&&typeof x.content=="string"&&typeof x.contentIV=="string",y=x=>x.type==="wait"&&typeof x.chatId=="string",w=x=>x.type==="new"?d(x):x.type==="wait"?y(x):!1,v=x=>x.type==="response"?u(x):x.type==="event"?c(x):!1;return x=>typeof x=="object"&&x!==null&&v(x)})()(l)){if(l.type=="response"){const u=n.shift();if(!u)throw new Error("Got response without any request");console.log("<< ws: response",l),u.resolve(l)}l.type=="event"&&(console.log("<< ws: event",l),r.emit(l.event))}}}return s(),{events:r,bind(a){console.log(">> ws: bind",a),t.push(a),At(async()=>{await this.execute(a)})},unbind(a){console.log(">> ws: unbind",a),t.splice(t.indexOf(a),1)},execute:o}}function nu(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let o=0;o{const a=c=>c.type==="regular"&&typeof c.title=="string"&&typeof c.text=="string",l=c=>c.type==="unknown",u=c=>c.type==="regular"?a(c):c.type==="unknown"?l(c):!1;return c=>typeof c=="object"&&c!==null&&u(c)})()(s))return s},async encode({content:e,key:t}){const n=JSON.stringify(e),r=await Op({data:"SIGNATURE:"+n,key:t}),o=await $A({data:n,key:t});return{contentIV:o.iv,content:o.encrypted,signature:r}},deriveNextKey(e){return Op({data:"NEXT-KEY",key:e})}}}function KA(){return({localNonceRef:e})=>e.current++}async function GA(){const e="bHKhl2cuQ01pDXSRaqq/OMJeDFJVNIY5YuQB2w7ve+c=",t="/uwFt2yxHi59l26H9V8VTN3Kq+FtRewuWNfz1TNVcnM=",n=HA(),r=await jA(),o=VA("https://meetacy.app/seed-go");await r.message.lastMessage({chatId:e})==null&&await r.message.add({chatId:e,key:t,nonce:0,content:{type:"deferred"}});const i=i0({messageStorage:r.message,messageCoder:n,chatId:e});o.bind({type:"subscribe",chatId:e,...await i()});const s=KA();return{socket:o,persistence:r,createChat(){return yA({...r,socket:o,messageCoder:n,chatId:e,incrementLocalNonce:s})}}}const YA=await GA(),QA=YA.createChat();Xm(document.getElementById("root")).render(S.jsx(g.StrictMode,{children:S.jsx(uA,{chat:QA})})); diff --git a/assets/index-CWlmyZ16.css b/assets/index-CWlmyZ16.css new file mode 100644 index 0000000..4f2f361 --- /dev/null +++ b/assets/index-CWlmyZ16.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius: .5rem;--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-5{left:1.25rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.m-10{margin:2.5rem}.m-auto{margin:auto}.mx-4{margin-left:1rem;margin-right:1rem}.me-2{margin-inline-end:.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.h-0{height:0px}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-svh{height:100svh}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-0{min-width:0px}.max-w-\[95\%\]{max-width:95%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.resize-none{resize:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-tl-lg{border-top-left-radius:var(--radius)}.rounded-tr-lg{border-top-right-radius:var(--radius)}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-border\/40{border-color:hsl(var(--border) / .4)}.border-input{border-color:hsl(var(--input))}.bg-background{background-color:hsl(var(--background))}.bg-background\/95{background-color:hsl(var(--background) / .95)}.bg-black\/80{background-color:#000c}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-black\/30:hover{--tw-shadow-color: rgb(0 0 0 / .3);--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}@media (min-width: 640px){.sm\:absolute{position:absolute}.sm\:inset-auto{inset:auto}.sm\:bottom-\[calc\(100\%\+10px\)\]{bottom:calc(100% + 10px)}.sm\:left-0{left:0}.sm\:right-0{right:0}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:h-\[80vh\]{height:80vh}.sm\:h-full{height:100%}.sm\:max-h-\[500px\]{max-height:500px}.sm\:max-h-\[600px\]{max-height:600px}.sm\:max-h-\[700px\]{max-height:700px}.sm\:max-h-\[800px\]{max-height:800px}.sm\:w-\[90vw\]{width:90vw}.sm\:w-full{width:100%}.sm\:max-w-\[80\%\]{max-width:80%}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xl{max-width:36rem}.sm\:translate-y-5{--tw-translate-y: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:min-h-\[80px\]{min-height:80px}.md\:max-w-3xl{max-width:48rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/assets/index-DFX8ej1k.css b/assets/index-DFX8ej1k.css deleted file mode 100644 index 23fd400..0000000 --- a/assets/index-DFX8ej1k.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius: .5rem;--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.bottom-5{bottom:1.25rem}.left-5{left:1.25rem}.left-\[50\%\]{left:50%}.right-2{right:.5rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.m-10{margin:2.5rem}.me-2{margin-inline-end:.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-3\.5{width:.875rem;height:.875rem}.h-0{height:0px}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-svh{height:100svh}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[95\%\]{max-width:95%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.resize-none{resize:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-tl-lg{border-top-left-radius:var(--radius)}.rounded-tr-lg{border-top-right-radius:var(--radius)}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-border\/40{border-color:hsl(var(--border) / .4)}.border-input{border-color:hsl(var(--input))}.bg-background{background-color:hsl(var(--background))}.bg-background\/95{background-color:hsl(var(--background) / .95)}.bg-black\/80{background-color:#000c}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-black\/30:hover{--tw-shadow-color: rgb(0 0 0 / .3);--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}@media (min-width: 640px){.sm\:absolute{position:absolute}.sm\:inset-auto{inset:auto}.sm\:bottom-\[calc\(100\%\+10px\)\]{bottom:calc(100% + 10px)}.sm\:left-0{left:0}.sm\:right-0{right:0}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:h-\[80vh\]{height:80vh}.sm\:h-full{height:100%}.sm\:max-h-\[500px\]{max-height:500px}.sm\:max-h-\[600px\]{max-height:600px}.sm\:max-h-\[700px\]{max-height:700px}.sm\:max-h-\[800px\]{max-height:800px}.sm\:w-\[90vw\]{width:90vw}.sm\:w-full{width:100%}.sm\:max-w-\[80\%\]{max-width:80%}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xl{max-width:36rem}.sm\:translate-y-5{--tw-translate-y: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:min-h-\[80px\]{min-height:80px}.md\:max-w-3xl{max-width:48rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..c8340cc --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 434315e..2558866 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,11 @@ - + Seed - - + +
diff --git a/vite.svg b/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file