diff --git a/assets/index-3a319c6a.js b/assets/index-3a319c6a.js deleted file mode 100644 index 980d3e2..0000000 --- a/assets/index-3a319c6a.js +++ /dev/null @@ -1,69 +0,0 @@ -var uv=Object.defineProperty;var cv=(e,t,n)=>t in e?uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Al=(e,t,n)=>(cv(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip={exports:{}},Is={},op={exports:{}},X={};/** - * @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 Ji=Symbol.for("react.element"),fv=Symbol.for("react.portal"),dv=Symbol.for("react.fragment"),hv=Symbol.for("react.strict_mode"),pv=Symbol.for("react.profiler"),mv=Symbol.for("react.provider"),yv=Symbol.for("react.context"),gv=Symbol.for("react.forward_ref"),vv=Symbol.for("react.suspense"),wv=Symbol.for("react.memo"),xv=Symbol.for("react.lazy"),Mf=Symbol.iterator;function Sv(e){return e===null||typeof e!="object"?null:(e=Mf&&e[Mf]||e["@@iterator"],typeof e=="function"?e:null)}var sp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lp=Object.assign,ap={};function Hr(e,t,n){this.props=e,this.context=t,this.refs=ap,this.updater=n||sp}Hr.prototype.isReactComponent={};Hr.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")};Hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function up(){}up.prototype=Hr.prototype;function Gu(e,t,n){this.props=e,this.context=t,this.refs=ap,this.updater=n||sp}var Yu=Gu.prototype=new up;Yu.constructor=Gu;lp(Yu,Hr.prototype);Yu.isPureReactComponent=!0;var zf=Array.isArray,cp=Object.prototype.hasOwnProperty,Xu={current:null},fp={key:!0,ref:!0,__self:!0,__source:!0};function dp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)cp.call(t,r)&&!fp.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,B=j[H];if(0>>1;Hi(Te,N))hei(ke,Te)?(j[H]=ke,j[he]=N,H=he):(j[H]=Te,j[se]=N,H=se);else if(hei(ke,N))j[H]=ke,j[he]=N,H=he;else break e}}return A}function i(j,A){var N=j.sortIndex-A.sortIndex;return N!==0?N:j.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,y=!1,m=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(j){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=j)r(u),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(u)}}function S(j){if(w=!1,v(j),!m)if(n(a)!==null)m=!0,ae(O);else{var A=n(u);A!==null&&ge(S,A.startTime-j)}}function O(j,A){m=!1,w&&(w=!1,p(C),C=-1),y=!0;var N=f;try{for(v(A),d=n(a);d!==null&&(!(d.expirationTime>A)||j&&!q());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var B=H(d.expirationTime<=A);A=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(a)&&r(a),v(A)}else r(a);d=n(a)}if(d!==null)var te=!0;else{var se=n(u);se!==null&&ge(S,se.startTime-A),te=!1}return te}finally{d=null,f=N,y=!1}}var P=!1,E=null,C=-1,F=5,L=-1;function q(){return!(e.unstable_now()-Lj||125H?(j.sortIndex=N,t(u,j),n(a)===null&&j===n(u)&&(w?(p(C),C=-1):w=!0,ge(S,N-H))):(j.sortIndex=B,t(a,j),m||y||(m=!0,ae(O))),j},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(j){var A=f;return function(){var N=f;f=A;try{return j.apply(this,arguments)}finally{f=N}}}})(yp);mp.exports=yp;var jv=mp.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 gp=I,lt=jv;function _(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"),_a=Object.prototype.hasOwnProperty,Av=/^[: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]*$/,Bf={},Vf={};function $v(e){return _a.call(Vf,e)?!0:_a.call(Bf,e)?!1:Av.test(e)?Vf[e]=!0:(Bf[e]=!0,!1)}function Lv(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 Iv(e,t,n,r){if(t===null||typeof t>"u"||Lv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Me[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Me[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Me[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Me[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zu=/[\-:]([a-z])/g;function ec(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(Zu,ec);Me[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zu,ec);Me[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zu,ec);Me[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Me.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Me[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function tc(e,t,n,r){var i=Me.hasOwnProperty(t)?Me[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ci(e):""}function Fv(e){switch(e.tag){case 5:return ci(e.type);case 16:return ci("Lazy");case 13:return ci("Suspense");case 19:return ci("SuspenseList");case 0:case 2:case 15:return e=Fl(e.type,!1),e;case 11:return e=Fl(e.type.render,!1),e;case 1:return e=Fl(e.type,!0),e;default:return""}}function La(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 cr:return"Fragment";case ur:return"Portal";case ja:return"Profiler";case nc:return"StrictMode";case Aa:return"Suspense";case $a:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xp:return(e.displayName||"Context")+".Consumer";case wp:return(e._context.displayName||"Context")+".Provider";case rc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ic:return t=e.displayName||null,t!==null?t:La(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return La(e(t))}catch{}}return null}function Dv(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 La(t);case 8:return t===nc?"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 Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mv(e){var t=Ep(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 go(e){e._valueTracker||(e._valueTracker=Mv(e))}function kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ts(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 Ia(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(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 Cp(e,t){t=t.checked,t!=null&&tc(e,"checked",t,!1)}function Fa(e,t){Cp(e,t);var n=Rn(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")?Da(e,t.type,n):t.hasOwnProperty("defaultValue")&&Da(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wf(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 Da(e,t,n){(t!=="number"||ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fi=Array.isArray;function Cr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yi={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},zv=["Webkit","ms","Moz","O"];Object.keys(yi).forEach(function(e){zv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yi[t]=yi[e]})});function Tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yi.hasOwnProperty(e)&&yi[e]?(""+t).trim():t+"px"}function bp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Uv=ye({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 Ua(e,t){if(t){if(Uv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ba(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 Va=null;function oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ha=null,Pr=null,Rr=null;function Gf(e){if(e=to(e)){if(typeof Ha!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Us(t),Ha(e.stateNode,e.type,t))}}function Np(e){Pr?Rr?Rr.push(e):Rr=[e]:Pr=e}function _p(){if(Pr){var e=Pr,t=Rr;if(Rr=Pr=null,Gf(e),t)for(e=0;e>>=0,e===0?32:31-(Jv(e)/Zv|0)|0}var wo=64,xo=4194304;function di(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 os(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=di(l):(o&=s,o!==0&&(r=di(o)))}else s=n&~i,s!==0?r=di(s):o!==0&&(r=di(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 Zi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function r0(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=vi),id=String.fromCharCode(32),od=!1;function Xp(e,t){switch(e){case"keyup":return _0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function A0(e,t){switch(e){case"compositionend":return Jp(t);case"keypress":return t.which!==32?null:(od=!0,id);case"textInput":return e=t.data,e===id&&od?null:e;default:return null}}function $0(e,t){if(fr)return e==="compositionend"||!hc&&Xp(e,t)?(e=Gp(),Do=cc=dn=null,fr=!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=ud(n)}}function nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rm(){for(var e=window,t=ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ts(e.document)}return t}function pc(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 V0(e){var t=rm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nm(n.ownerDocument.documentElement,n)){if(r!==null&&pc(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cd(n,o);var s=cd(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,dr=null,Ya=null,xi=null,Xa=!1;function fd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xa||dr==null||dr!==ts(r)||(r=dr,"selectionStart"in r&&pc(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}),xi&&Li(xi,r)||(xi=r,r=as(Ya,"onSelect"),0mr||(e.current=ru[mr],ru[mr]=null,mr--)}function le(e,t){mr++,ru[mr]=e.current,e.current=t}var On={},He=_n(On),tt=_n(!1),Kn=On;function _r(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function nt(e){return e=e.childContextTypes,e!=null}function cs(){ce(tt),ce(He)}function vd(e,t,n){if(He.current!==On)throw Error(_(168));le(He,t),le(tt,n)}function dm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Dv(e)||"Unknown",i));return ye({},n,r)}function fs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Kn=He.current,le(He,e),le(tt,tt.current),!0}function wd(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=dm(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,ce(tt),ce(He),le(He,e)):ce(tt),le(tt,n)}var Qt=null,Bs=!1,Xl=!1;function hm(e){Qt===null?Qt=[e]:Qt.push(e)}function t1(e){Bs=!0,hm(e)}function jn(){if(!Xl&&Qt!==null){Xl=!0;var e=0,t=ne;try{var n=Qt;for(ne=1;e>=s,i-=s,qt=1<<32-Tt(t)+i|n<C?(F=E,E=null):F=E.sibling;var L=f(p,E,v[C],S);if(L===null){E===null&&(E=F);break}e&&E&&L.alternate===null&&t(p,E),h=o(L,h,C),P===null?O=L:P.sibling=L,P=L,E=F}if(C===v.length)return n(p,E),de&&Ln(p,C),O;if(E===null){for(;CC?(F=E,E=null):F=E.sibling;var q=f(p,E,L.value,S);if(q===null){E===null&&(E=F);break}e&&E&&q.alternate===null&&t(p,E),h=o(q,h,C),P===null?O=q:P.sibling=q,P=q,E=F}if(L.done)return n(p,E),de&&Ln(p,C),O;if(E===null){for(;!L.done;C++,L=v.next())L=d(p,L.value,S),L!==null&&(h=o(L,h,C),P===null?O=L:P.sibling=L,P=L);return de&&Ln(p,C),O}for(E=r(p,E);!L.done;C++,L=v.next())L=y(E,p,C,L.value,S),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?C:L.key),h=o(L,h,C),P===null?O=L:P.sibling=L,P=L);return e&&E.forEach(function(K){return t(p,K)}),de&&Ln(p,C),O}function k(p,h,v,S){if(typeof v=="object"&&v!==null&&v.type===cr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case yo:e:{for(var O=v.key,P=h;P!==null;){if(P.key===O){if(O=v.type,O===cr){if(P.tag===7){n(p,P.sibling),h=i(P,v.props.children),h.return=p,p=h;break e}}else if(P.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ln&&Rd(O)===P.type){n(p,P.sibling),h=i(P,v.props),h.ref=ri(p,P,v),h.return=p,p=h;break e}n(p,P);break}else t(p,P);P=P.sibling}v.type===cr?(h=Hn(v.props.children,p.mode,S,v.key),h.return=p,p=h):(S=Wo(v.type,v.key,v.props,null,p.mode,S),S.ref=ri(p,h,v),S.return=p,p=S)}return s(p);case ur:e:{for(P=v.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(p,h.sibling),h=i(h,v.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=oa(v,p.mode,S),h.return=p,p=h}return s(p);case ln:return P=v._init,k(p,h,P(v._payload),S)}if(fi(v))return m(p,h,v,S);if(Jr(v))return w(p,h,v,S);Oo(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,v),h.return=p,p=h):(n(p,h),h=ia(v,p.mode,S),h.return=p,p=h),s(p)):n(p,h)}return k}var Ar=Sm(!0),Em=Sm(!1),no={},Dt=_n(no),Mi=_n(no),zi=_n(no);function zn(e){if(e===no)throw Error(_(174));return e}function kc(e,t){switch(le(zi,t),le(Mi,e),le(Dt,no),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:za(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=za(t,e)}ce(Dt),le(Dt,t)}function $r(){ce(Dt),ce(Mi),ce(zi)}function km(e){zn(zi.current);var t=zn(Dt.current),n=za(t,e.type);t!==n&&(le(Mi,e),le(Dt,n))}function Cc(e){Mi.current===e&&(ce(Dt),ce(Mi))}var pe=_n(0);function gs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jl=[];function Pc(){for(var e=0;en?n:4,e(!0);var r=Zl.transition;Zl.transition={};try{e(!1),t()}finally{ne=n,Zl.transition=r}}function Mm(){return xt().memoizedState}function o1(e,t,n){var r=kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zm(e))Um(t,n);else if(n=gm(e,t,n,r),n!==null){var i=Ge();bt(n,e,r,i),Bm(n,t,r)}}function s1(e,t,n){var r=kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zm(e))Um(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Nt(l,s)){var a=t.interleaved;a===null?(i.next=i,Sc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=gm(e,t,i,r),n!==null&&(i=Ge(),bt(n,e,r,i),Bm(n,t,r))}}function zm(e){var t=e.alternate;return e===me||t!==null&&t===me}function Um(e,t){Si=vs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lc(e,n)}}var ws={readContext:wt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},l1={readContext:wt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Td,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bo(4194308,4,$m.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();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=o1.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Od,useDebugValue:Nc,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Od(!1),t=e[0];return e=i1.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=At();if(de){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Ae===null)throw Error(_(349));Yn&30||Rm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Td(Tm.bind(null,r,o,e),[e]),r.flags|=2048,Vi(9,Om.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=At(),t=Ae.identifierPrefix;if(de){var n=Kt,r=qt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ui++,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[$t]=t,e[Di]=r,Xm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ba(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;iIr&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304)}else{if(!r)if(e=gs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!de)return Be(t),null}else 2*Se()-o.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Se(),t.sibling=null,n=pe.current,le(pe,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return Ic(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?it&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function m1(e,t){switch(yc(t),t.tag){case 1:return nt(t.type)&&cs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),ce(tt),ce(He),Pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cc(t),null;case 13:if(ce(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));jr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(pe),null;case 4:return $r(),null;case 10:return xc(t.type._context),null;case 22:case 23:return Ic(),null;case 24:return null;default:return null}}var bo=!1,Ve=!1,y1=typeof WeakSet=="function"?WeakSet:Set,M=null;function wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function mu(e,t,n){try{n()}catch(r){we(e,t,r)}}var Fd=!1;function g1(e,t){if(Ja=ss,e=rm(),pc(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=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===i&&(l=s),f===o&&++c===r&&(a=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Za={focusedElem:e,selectionRange:n},ss=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var w=m.memoizedProps,k=m.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ct(t.type,w),k);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){we(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return m=Fd,Fd=!1,m}function Ei(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&mu(t,n,o)}i=i.next}while(i!==r)}}function Qs(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 yu(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 ey(e){var t=e.alternate;t!==null&&(e.alternate=null,ey(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Di],delete t[nu],delete t[Z0],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 ty(e){return e.tag===5||e.tag===3||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ty(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 gu(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=us));else if(r!==4&&(e=e.child,e!==null))for(gu(e,t,n),e=e.sibling;e!==null;)gu(e,t,n),e=e.sibling}function vu(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(vu(e,t,n),e=e.sibling;e!==null;)vu(e,t,n),e=e.sibling}var Fe=null,Pt=!1;function on(e,t,n){for(n=n.child;n!==null;)ny(e,t,n),n=n.sibling}function ny(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Fs,n)}catch{}switch(n.tag){case 5:Ve||wr(n,t);case 6:var r=Fe,i=Pt;Fe=null,on(e,t,n),Fe=r,Pt=i,Fe!==null&&(Pt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Pt?(e=Fe,n=n.stateNode,e.nodeType===8?Yl(e.parentNode,n):e.nodeType===1&&Yl(e,n),Ai(e)):Yl(Fe,n.stateNode));break;case 4:r=Fe,i=Pt,Fe=n.stateNode.containerInfo,Pt=!0,on(e,t,n),Fe=r,Pt=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&mu(n,t,s),i=i.next}while(i!==r)}on(e,t,n);break;case 1:if(!Ve&&(wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){we(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,on(e,t,n),Ve=r):on(e,t,n);break;default:on(e,t,n)}}function Md(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new y1),t.forEach(function(r){var i=R1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Se()-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,hn===null)var r=!1;else{if(e=hn,hn=null,Es=0,ee&6)throw Error(_(331));var i=ee;for(ee|=4,M=e.current;M!==null;){var o=M,s=o.child;if(M.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aSe()-$c?Vn(e,0):Ac|=n),rt(e,t)}function cy(e,t){t===0&&(e.mode&1?(t=xo,xo<<=1,!(xo&130023424)&&(xo=4194304)):t=1);var n=Ge();e=en(e,t),e!==null&&(Zi(e,t,n),rt(e,n))}function P1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cy(e,n)}function R1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),cy(e,n)}var fy;fy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,h1(e,t,n);et=!!(e.flags&131072)}else et=!1,de&&t.flags&1048576&&pm(t,hs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vo(e,t),e=t.pendingProps;var i=_r(t,He.current);Tr(t,n),i=Oc(null,t,r,e,i,n);var o=Tc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nt(r)?(o=!0,fs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ec(t),i.updater=Vs,t.stateNode=i,i._reactInternals=t,au(t,r,e,n),t=fu(null,t,r,!0,o,n)):(t.tag=0,de&&o&&mc(t),We(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=T1(r),e=Ct(r,e),i){case 0:t=cu(null,t,r,e,n);break e;case 1:t=$d(null,t,r,e,n);break e;case 11:t=jd(null,t,r,e,n);break e;case 14:t=Ad(null,t,r,Ct(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),cu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),$d(e,t,r,i,n);case 3:e:{if(Km(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,i=o.element,vm(e,t),ys(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Lr(Error(_(423)),t),t=Ld(e,t,r,n,i);break e}else if(r!==i){i=Lr(Error(_(424)),t),t=Ld(e,t,r,n,i);break e}else for(ot=xn(t.stateNode.containerInfo.firstChild),st=t,de=!0,Rt=null,n=Em(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jr(),r===i){t=tn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return km(t),e===null&&ou(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,eu(r,i)?s=null:o!==null&&eu(r,o)&&(t.flags|=32),qm(e,t),We(e,t,s,n),t.child;case 6:return e===null&&ou(t),null;case 13:return Gm(e,t,n);case 4:return kc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ar(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),jd(e,t,r,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,le(ps,r._currentValue),r._currentValue=s,o!==null)if(Nt(o.value,s)){if(o.children===i.children&&!tt.current){t=tn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Gt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),su(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(_(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),su(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Tr(t,n),i=wt(i),r=r(i),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,i=Ct(r,t.pendingProps),i=Ct(r.type,i),Ad(e,t,r,i,n);case 15:return Qm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),Vo(e,t),t.tag=1,nt(r)?(e=!0,fs(t)):e=!1,Tr(t,n),xm(t,r,i),au(t,r,i,n),fu(null,t,r,!0,e,n);case 19:return Ym(e,t,n);case 22:return Wm(e,t,n)}throw Error(_(156,t.tag))};function dy(e,t){return Dp(e,t)}function O1(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 yt(e,t,n,r){return new O1(e,t,n,r)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function T1(e){if(typeof e=="function")return Dc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rc)return 11;if(e===ic)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=yt(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 Wo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Dc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case cr:return Hn(n.children,i,o,t);case nc:s=8,i|=8;break;case ja:return e=yt(12,n,t,i|2),e.elementType=ja,e.lanes=o,e;case Aa:return e=yt(13,n,t,i),e.elementType=Aa,e.lanes=o,e;case $a:return e=yt(19,n,t,i),e.elementType=$a,e.lanes=o,e;case Sp:return qs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wp:s=10;break e;case xp:s=9;break e;case rc:s=11;break e;case ic:s=14;break e;case ln:s=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=yt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Hn(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function qs(e,t,n,r){return e=yt(22,e,r,t),e.elementType=Sp,e.lanes=n,e.stateNode={isHidden:!1},e}function ia(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function oa(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function b1(e,t,n,r,i){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=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mc(e,t,n,r,i,o,s,l,a){return e=new b1(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=yt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ec(o),e}function N1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yy)}catch(e){console.error(e)}}yy(),pp.exports=at;var L1=pp.exports,qd=L1;Na.createRoot=qd.createRoot,Na.hydrateRoot=qd.hydrateRoot;class ro{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Qi=typeof window>"u"||"Deno"in window;function dt(){}function I1(e,t){return typeof e=="function"?e(t):e}function ku(e){return typeof e=="number"&&e>=0&&e!==1/0}function gy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pi(e,t,n){return Js(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function un(e,t,n){return Js(e)?[{...t,queryKey:e},n]:[e||{},t]}function Kd(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:l}=e;if(Js(s)){if(r){if(t.queryHash!==Vc(s,t.options))return!1}else if(!Ps(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Gd(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Js(o)){if(!t.options.mutationKey)return!1;if(n){if(pn(t.options.mutationKey)!==pn(o))return!1}else if(!Ps(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Vc(e,t){return((t==null?void 0:t.queryKeyHashFn)||pn)(e)}function pn(e){return JSON.stringify(e,(t,n)=>Pu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ps(e,t){return vy(e,t)}function vy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!vy(e[n],t[n])):!1}function wy(e,t){if(e===t)return e;const n=Yd(e)&&Yd(t);if(n||Pu(e)&&Pu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let l=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!Xd(n)||!n.hasOwnProperty("isPrototypeOf"))}function Xd(e){return Object.prototype.toString.call(e)==="[object Object]"}function Js(e){return Array.isArray(e)}function xy(e){return new Promise(t=>{setTimeout(t,e)})}function Jd(e){xy(0).then(e)}function F1(){if(typeof AbortController=="function")return new AbortController}function Ru(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?wy(e,t):t}class D1 extends ro{constructor(){super(),this.setup=t=>{if(!Qi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Rs=new D1,Zd=["online","offline"];class M1 extends ro{constructor(){super(),this.setup=t=>{if(!Qi&&window.addEventListener){const n=()=>t();return Zd.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Zd.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Os=new M1;function z1(e){return Math.min(1e3*2**e,3e4)}function Zs(e){return(e??"online")==="online"?Os.isOnline():!0}class Sy{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function qo(e){return e instanceof Sy}function Ey(e){let t=!1,n=0,r=!1,i,o,s;const l=new Promise((k,p)=>{o=k,s=p}),a=k=>{r||(y(new Sy(k)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Rs.isFocused()||e.networkMode!=="always"&&!Os.isOnline(),f=k=>{r||(r=!0,e.onSuccess==null||e.onSuccess(k),i==null||i(),o(k))},y=k=>{r||(r=!0,e.onError==null||e.onError(k),i==null||i(),s(k))},m=()=>new Promise(k=>{i=p=>{const h=r||!d();return h&&k(p),h},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),w=()=>{if(r)return;let k;try{k=e.fn()}catch(p){k=Promise.reject(p)}Promise.resolve(k).then(f).catch(p=>{var h,v;if(r)return;const S=(h=e.retry)!=null?h:3,O=(v=e.retryDelay)!=null?v:z1,P=typeof O=="function"?O(n,p):O,E=S===!0||typeof S=="number"&&n{if(d())return m()}).then(()=>{t?y(p):w()})})};return Zs(e.networkMode)?w():m().then(w),{promise:l,cancel:a,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Hc=console;function U1(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},o=c=>{t?e.push(c):Jd(()=>{n(c)})},s=c=>(...d)=>{o(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&Jd(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:s,schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Pe=U1();class ky{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ku(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Qi?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class B1 extends ky{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Hc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||V1(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Ru(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(dt).catch(dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!gy(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const s=F1(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};a(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=y=>{if(qo(y)&&y.silent||this.dispatch({type:"error",error:y}),!qo(y)){var m,w,k,p;(m=(w=this.cache.config).onError)==null||m.call(w,y,this),(k=(p=this.cache.config).onSettled)==null||k.call(p,this.state.data,y,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Ey({fn:c.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:y=>{var m,w,k,p;if(typeof y>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(y),(m=(w=this.cache.config).onSuccess)==null||m.call(w,y,this),(k=(p=this.cache.config).onSettled)==null||k.call(p,y,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(y,m)=>{this.dispatch({type:"failed",failureCount:y,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Zs(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return qo(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Pe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function V1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class H1 extends ro{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,s=(i=n.queryHash)!=null?i:Vc(o,n);let l=this.get(s);return l||(l=new B1({cache:this,logger:t.getLogger(),queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Pe.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=un(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>Kd(r,i))}findAll(t,n){const[r]=un(t,n);return Object.keys(r).length>0?this.queries.filter(i=>Kd(r,i)):this.queries}notify(t){Pe.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Pe.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Pe.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Q1 extends ky{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Hc,this.observers=[],this.state=t.state||W1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var E;return this.retryer=Ey({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(C,F)=>{this.dispatch({type:"failed",failureCount:C,error:F})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(E=this.options.retry)!=null?E:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,s,l,a,u,c;if(!n){var d,f,y,m;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const C=await((y=(m=this.options).onMutate)==null?void 0:y.call(m,this.state.variables));C!==this.state.context&&this.dispatch({type:"loading",context:C,variables:this.state.variables})}const E=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,E,this.state.variables,this.state.context,this)),await((o=(s=this.options).onSuccess)==null?void 0:o.call(s,E,this.state.variables,this.state.context)),await((l=(a=this.mutationCache.config).onSettled)==null?void 0:l.call(a,E,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,E,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:E}),E}catch(E){try{var w,k,p,h,v,S,O,P;throw await((w=(k=this.mutationCache.config).onError)==null?void 0:w.call(k,E,this.state.variables,this.state.context,this)),await((p=(h=this.options).onError)==null?void 0:p.call(h,E,this.state.variables,this.state.context)),await((v=(S=this.mutationCache.config).onSettled)==null?void 0:v.call(S,void 0,E,this.state.variables,this.state.context,this)),await((O=(P=this.options).onSettled)==null?void 0:O.call(P,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Zs(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Pe.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function W1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class q1 extends ro{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new Q1({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Pe.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>Gd(t,n))}findAll(t){return this.mutations.filter(n=>Gd(t,n))}notify(t){Pe.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Pe.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(dt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function K1(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",d=(a==null?void 0:a.direction)==="backward",f=((o=e.state.data)==null?void 0:o.pages)||[],y=((s=e.state.data)==null?void 0:s.pageParams)||[];let m=y,w=!1;const k=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>{var E;if((E=e.signal)!=null&&E.aborted)w=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{w=!0})}return e.signal}})},p=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),h=(P,E,C,F)=>(m=F?[E,...m]:[...m,E],F?[C,...P]:[...P,C]),v=(P,E,C,F)=>{if(w)return Promise.reject("Cancelled");if(typeof C>"u"&&!E&&P.length)return Promise.resolve(P);const L={queryKey:e.queryKey,pageParam:C,meta:e.options.meta};k(L);const q=p(L);return Promise.resolve(q).then(W=>h(P,C,W,F))};let S;if(!f.length)S=v([]);else if(c){const P=typeof u<"u",E=P?u:eh(e.options,f);S=v(f,P,E)}else if(d){const P=typeof u<"u",E=P?u:G1(e.options,f);S=v(f,P,E,!0)}else{m=[];const P=typeof e.options.getNextPageParam>"u";S=(l&&f[0]?l(f[0],0,f):!0)?v([],P,y[0]):Promise.resolve(h([],y[0],f[0]));for(let C=1;C{if(l&&f[C]?l(f[C],C,f):!0){const q=P?y[C]:eh(e.options,F);return v(F,P,q)}return Promise.resolve(h(F,y[C],f[C]))})}return S.then(P=>({pages:P,pageParams:m}))}}}}function eh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function G1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Y1{constructor(t={}){this.queryCache=t.queryCache||new H1,this.mutationCache=t.mutationCache||new q1,this.logger=t.logger||Hc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Rs.subscribe(()=>{Rs.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Os.subscribe(()=>{Os.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=un(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=pi(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i==null?void 0:i.state.data,s=I1(n,o);if(typeof s>"u")return;const l=pi(t),a=this.defaultQueryOptions(l);return this.queryCache.build(this,a).setData(s,{...r,manual:!0})}setQueriesData(t,n,r){return Pe.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=un(t,n),i=this.queryCache;Pe.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=un(t,n,r),s=this.queryCache,l={type:"active",...i};return Pe.batch(()=>(s.findAll(i).forEach(a=>{a.reset()}),this.refetchQueries(l,o)))}cancelQueries(t,n,r){const[i,o={}]=un(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const s=Pe.batch(()=>this.queryCache.findAll(i).map(l=>l.cancel(o)));return Promise.all(s).then(dt).catch(dt)}invalidateQueries(t,n,r){const[i,o]=un(t,n,r);return Pe.batch(()=>{var s,l;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const a={...i,type:(s=(l=i.refetchType)!=null?l:i.type)!=null?s:"active"};return this.refetchQueries(a,o)})}refetchQueries(t,n,r){const[i,o]=un(t,n,r),s=Pe.batch(()=>this.queryCache.findAll(i).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...o,cancelRefetch:(u=o==null?void 0:o.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let l=Promise.all(s).then(dt);return o!=null&&o.throwOnError||(l=l.catch(dt)),l}fetchQuery(t,n,r){const i=pi(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(dt).catch(dt)}fetchInfiniteQuery(t,n,r){const i=pi(t,n,r);return i.behavior=K1(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(dt).catch(dt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>pn(t)===pn(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Ps(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>pn(t)===pn(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Ps(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Vc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class X1 extends ro{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),th(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ou(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ou(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Cu(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&nh(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Z1(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(dt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Qi||this.currentResult.isStale||!ku(this.options.staleTime))return;const n=gy(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Qi||this.options.enabled===!1||!ku(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Rs.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:y,errorUpdatedAt:m,fetchStatus:w,status:k}=d,p=!1,h=!1,v;if(n._optimisticResults){const C=this.hasListeners(),F=!C&&th(t,n),L=C&&nh(t,r,n,i);(F||L)&&(w=Zs(t.options.networkMode)?"fetching":"paused",f||(k="loading")),n._optimisticResults==="isRestoring"&&(w="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&k!=="error")v=c.data,f=c.dataUpdatedAt,k=c.status,p=!0;else if(n.select&&typeof d.data<"u")if(o&&d.data===(s==null?void 0:s.data)&&n.select===this.selectFn)v=this.selectResult;else try{this.selectFn=n.select,v=n.select(d.data),v=Ru(o==null?void 0:o.data,v,n),this.selectResult=v,this.selectError=null}catch(C){this.selectError=C}else v=d.data;if(typeof n.placeholderData<"u"&&typeof v>"u"&&k==="loading"){let C;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=o.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof C<"u")try{C=n.select(C),this.selectError=null}catch(F){this.selectError=F}typeof C<"u"&&(k="success",v=Ru(o==null?void 0:o.data,C,n),h=!0)}this.selectError&&(y=this.selectError,v=this.selectResult,m=Date.now(),k="error");const S=w==="fetching",O=k==="loading",P=k==="error";return{status:k,fetchStatus:w,isLoading:O,isSuccess:k==="success",isError:P,isInitialLoading:O&&S,data:v,dataUpdatedAt:f,error:y,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!O,isLoadingError:P&&d.dataUpdatedAt===0,isPaused:w==="paused",isPlaceholderData:h,isPreviousData:p,isRefetchError:P&&d.dataUpdatedAt!==0,isStale:Qc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Cu(r,n))return;this.currentResult=r;const i={cache:!0},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!this.trackedProps.size)return!0;const a=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!qo(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Pe.batch(()=>{if(t.onSuccess){var n,r,i,o;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(o=this.options).onSettled)==null||i.call(o,this.currentResult.data,null)}else if(t.onError){var s,l,a,u;(s=(l=this.options).onError)==null||s.call(l,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function J1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function th(e,t){return J1(e,t)||e.state.dataUpdatedAt>0&&Ou(e,t,t.refetchOnMount)}function Ou(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qc(e,t)}return!1}function nh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qc(e,n)}function Qc(e,t){return e.isStaleByTime(t.staleTime)}function Z1(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Cu(e.getCurrentResult(),t)}var Cy={exports:{}},Py={};/** - * @license React - * use-sync-external-store-shim.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 Fr=I;function ew(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tw=typeof Object.is=="function"?Object.is:ew,nw=Fr.useState,rw=Fr.useEffect,iw=Fr.useLayoutEffect,ow=Fr.useDebugValue;function sw(e,t){var n=t(),r=nw({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return iw(function(){i.value=n,i.getSnapshot=t,sa(i)&&o({inst:i})},[e,n,t]),rw(function(){return sa(i)&&o({inst:i}),e(function(){sa(i)&&o({inst:i})})},[e]),ow(n),n}function sa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tw(e,n)}catch{return!0}}function lw(e,t){return t()}var aw=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lw:sw;Py.useSyncExternalStore=Fr.useSyncExternalStore!==void 0?Fr.useSyncExternalStore:aw;Cy.exports=Py;var uw=Cy.exports;const cw=uw.useSyncExternalStore,rh=I.createContext(void 0),Ry=I.createContext(!1);function Oy(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=rh),window.ReactQueryClientContext):rh)}const fw=({context:e}={})=>{const t=I.useContext(Oy(e,I.useContext(Ry)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},dw=({client:e,children:t,context:n,contextSharing:r=!1})=>{I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Oy(n,r);return I.createElement(Ry.Provider,{value:!n&&r},I.createElement(i.Provider,{value:e},t))},Ty=I.createContext(!1),hw=()=>I.useContext(Ty);Ty.Provider;function pw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const mw=I.createContext(pw()),yw=()=>I.useContext(mw);function gw(e,t){return typeof e=="function"?e(...t):!!e}const vw=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},ww=e=>{I.useEffect(()=>{e.clearReset()},[e])},xw=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&gw(n,[e.error,r]),Sw=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Ew=(e,t)=>e.isLoading&&e.isFetching&&!t,kw=(e,t,n)=>(e==null?void 0:e.suspense)&&Ew(t,n),Cw=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Pw(e,t){const n=fw({context:e.context}),r=hw(),i=yw(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=Pe.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=Pe.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=Pe.batchCalls(o.onSettled)),Sw(o),vw(o,i),ww(i);const[s]=I.useState(()=>new t(n,o)),l=s.getOptimisticResult(o);if(cw(I.useCallback(a=>{const u=r?()=>{}:s.subscribe(Pe.batchCalls(a));return s.updateResult(),u},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),I.useEffect(()=>{s.setOptions(o,{listeners:!1})},[o,s]),kw(o,l,r))throw Cw(o,s,i);if(xw({result:l,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return o.notifyOnChangeProps?l:s.trackResult(l)}function Rw(e,t,n){const r=pi(e,t,n);return Pw(r,X1)}function Tu(e,t){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Tu(e,t)}function Mt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tu(e,t)}var by={exports:{}},Ow="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Tw=Ow,bw=Tw;function Ny(){}function _y(){}_y.resetWarningCache=Ny;var Nw=function(){function e(r,i,o,s,l,a){if(a!==bw){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_y,resetWarningCache:Ny};return n.PropTypes=n,n};by.exports=Nw();var _w=by.exports;const ih=Ku(_w);function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;c--){var d=r[c];d==="."?la(r,c):d===".."?(la(r,c),u++):u&&(la(r,c),u--)}if(!s)for(;u--;u)r.unshift("..");s&&r[0]!==""&&(!r[0]||!jo(r[0]))&&r.unshift("");var f=r.join("/");return l&&f.substr(-1)!=="/"&&(f+="/"),f}function oh(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function Ko(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(i,o){return Ko(i,t[o])});if(typeof e=="object"||typeof t=="object"){var n=oh(e),r=oh(t);return n!==e||r!==t?Ko(n,r):Object.keys(Object.assign({},e,t)).every(function(i){return Ko(e[i],t[i])})}return!1}var Aw=!0,aa="Invariant failed";function An(e,t){if(!e){if(Aw)throw new Error(aa);var n=typeof t=="function"?t():t,r=n?"".concat(aa,": ").concat(n):aa;throw new Error(r)}}function Pi(e){return e.charAt(0)==="/"?e:"/"+e}function sh(e){return e.charAt(0)==="/"?e.substr(1):e}function $w(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function jy(e,t){return $w(e,t)?e.substr(t.length):e}function Ay(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Lw(e){var t=e||"/",n="",r="",i=t.indexOf("#");i!==-1&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return o!==-1&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function Je(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function Ke(e,t,n,r){var i;typeof e=="string"?(i=Lw(e),i.state=t):(i=ze({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=jw(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Iw(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Ko(e.state,t.state)}function Wc(){var e=null;function t(s){return e=s,function(){e===s&&(e=null)}}function n(s,l,a,u){if(e!=null){var c=typeof e=="function"?e(s,l):e;typeof c=="string"?typeof a=="function"?a(c,u):u(!0):u(c!==!1)}else u(!0)}var r=[];function i(s){var l=!0;function a(){l&&s.apply(void 0,arguments)}return r.push(a),function(){l=!1,r=r.filter(function(u){return u!==a})}}function o(){for(var s=arguments.length,l=new Array(s),a=0;aY?J.splice(Y,J.length-Y,q):J.push(q),c({action:L,location:q,index:Y,entries:J})}})}function k(C,F){var L="REPLACE",q=Ke(C,F,d(),E.location);u.confirmTransitionTo(q,L,n,function(K){K&&(E.entries[E.index]=q,c({action:L,location:q}))})}function p(C){var F=fh(E.index+C,0,E.entries.length-1),L="POP",q=E.entries[F];u.confirmTransitionTo(q,L,n,function(K){K?c({action:L,location:q,index:F}):c()})}function h(){p(-1)}function v(){p(1)}function S(C){var F=E.index+C;return F>=0&&F=0)&&(n[i]=e[i]);return n}var By={exports:{}},re={};/** @license React v16.13.1 - * react-is.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 Le=typeof Symbol=="function"&&Symbol.for,Zc=Le?Symbol.for("react.element"):60103,ef=Le?Symbol.for("react.portal"):60106,fl=Le?Symbol.for("react.fragment"):60107,dl=Le?Symbol.for("react.strict_mode"):60108,hl=Le?Symbol.for("react.profiler"):60114,pl=Le?Symbol.for("react.provider"):60109,ml=Le?Symbol.for("react.context"):60110,tf=Le?Symbol.for("react.async_mode"):60111,yl=Le?Symbol.for("react.concurrent_mode"):60111,gl=Le?Symbol.for("react.forward_ref"):60112,vl=Le?Symbol.for("react.suspense"):60113,lx=Le?Symbol.for("react.suspense_list"):60120,wl=Le?Symbol.for("react.memo"):60115,xl=Le?Symbol.for("react.lazy"):60116,ax=Le?Symbol.for("react.block"):60121,ux=Le?Symbol.for("react.fundamental"):60117,cx=Le?Symbol.for("react.responder"):60118,fx=Le?Symbol.for("react.scope"):60119;function ft(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zc:switch(e=e.type,e){case tf:case yl:case fl:case hl:case dl:case vl:return e;default:switch(e=e&&e.$$typeof,e){case ml:case gl:case xl:case wl:case pl:return e;default:return t}}case ef:return t}}}function Vy(e){return ft(e)===yl}re.AsyncMode=tf;re.ConcurrentMode=yl;re.ContextConsumer=ml;re.ContextProvider=pl;re.Element=Zc;re.ForwardRef=gl;re.Fragment=fl;re.Lazy=xl;re.Memo=wl;re.Portal=ef;re.Profiler=hl;re.StrictMode=dl;re.Suspense=vl;re.isAsyncMode=function(e){return Vy(e)||ft(e)===tf};re.isConcurrentMode=Vy;re.isContextConsumer=function(e){return ft(e)===ml};re.isContextProvider=function(e){return ft(e)===pl};re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zc};re.isForwardRef=function(e){return ft(e)===gl};re.isFragment=function(e){return ft(e)===fl};re.isLazy=function(e){return ft(e)===xl};re.isMemo=function(e){return ft(e)===wl};re.isPortal=function(e){return ft(e)===ef};re.isProfiler=function(e){return ft(e)===hl};re.isStrictMode=function(e){return ft(e)===dl};re.isSuspense=function(e){return ft(e)===vl};re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fl||e===yl||e===hl||e===dl||e===vl||e===lx||typeof e=="object"&&e!==null&&(e.$$typeof===xl||e.$$typeof===wl||e.$$typeof===pl||e.$$typeof===ml||e.$$typeof===gl||e.$$typeof===ux||e.$$typeof===cx||e.$$typeof===fx||e.$$typeof===ax)};re.typeOf=ft;By.exports=re;var dx=By.exports,Hy=dx,hx={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},px={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qy={};Qy[Hy.ForwardRef]=hx;Qy[Hy.Memo]=px;var ca=1073741823,dh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function mx(){var e="__global_unique_id__";return dh[e]=(dh[e]||0)+1}function yx(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function gx(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(i){return i!==r})},get:function(){return e},set:function(r,i){e=r,t.forEach(function(o){return o(e,i)})}}}function vx(e){return Array.isArray(e)?e[0]:e}function wx(e,t){var n,r,i="__create-react-context-"+mx()+"__",o=function(l){Mt(a,l);function a(){for(var c,d=arguments.length,f=new Array(d),y=0;y"u"&&(Dr=of);function jx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Ax=Dr(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=cl(e,["innerRef","navigate","onClick"]),s=o.target,l=ze({},o,{onClick:function(u){try{i&&i(u)}catch(c){throw u.preventDefault(),c}!u.defaultPrevented&&u.button===0&&(!s||s==="_self")&&!jx(u)&&(u.preventDefault(),r())}});return of!==Dr?l.ref=t||n:l.ref=n,z.createElement("a",l)}),Zn=Dr(function(e,t){var n=e.component,r=n===void 0?Ax:n,i=e.replace,o=e.to,s=e.innerRef,l=cl(e,["component","replace","to","innerRef"]);return z.createElement(Tn.Consumer,null,function(a){a||An(!1);var u=a.history,c=Nu(bu(o,a.location),a.location),d=c?u.createHref(c):"",f=ze({},l,{href:d,navigate:function(){var m=bu(o,a.location),w=Je(a.location)===Je(Nu(m)),k=i||w?u.replace:u.push;k(m)}});return of!==Dr?f.ref=t||s:f.innerRef=s,z.createElement(r,f)})}),Yy=function(t){return t},bs=z.forwardRef;typeof bs>"u"&&(bs=Yy);function $x(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?Dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ha=(e,t,n)=>(Mx(e,typeof t!="symbol"?t+"":t,n),n);let zx=class{constructor(){ha(this,"current",this.detect()),ha(this,"handoffState","pending"),ha(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Qn=new zx,Ns=(e,t)=>{Qn.isServer?I.useEffect(e,t):I.useLayoutEffect(e,t)};function Ux(e){let t=I.useRef(e);return Ns(()=>{t.current=e},[e]),t}let Ri=function(e){let t=Ux(e);return z.useCallback((...n)=>t.current(...n),[t])};function Bx(){let[e,t]=I.useState(Qn.isHandoffComplete);return e&&Qn.isHandoffComplete===!1&&t(!1),I.useEffect(()=>{e!==!0&&t(!0)},[e]),I.useEffect(()=>Qn.handoff(),[]),e}var xh;let Jy=(xh=z.useId)!=null?xh:function(){let e=Bx(),[t,n]=z.useState(e?()=>Qn.nextId():null);return Ns(()=>{t===null&&n(Qn.nextId())},[t]),t!=null?""+t:void 0};function oo(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,oo),r}function Vx(e){return Qn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Sh(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Hx(e,t){let[n,r]=I.useState(()=>Sh(e));return Ns(()=>{r(Sh(e))},[e.type,e.as]),Ns(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Zy=Symbol();function Qx(e,t=!0){return Object.assign(e,{[Zy]:t})}function sf(...e){let t=I.useRef(e);I.useEffect(()=>{t.current=e},[e]);let n=Ri(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Zy]))?void 0:n}function Wx(...e){return e.filter(Boolean).join(" ")}var _u=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_u||{}),qx=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(qx||{});function lf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s}){let l=eg(t,e);if(o)return Ao(l,n,r,s);let a=i??0;if(a&2){let{static:u=!1,...c}=l;if(u)return Ao(c,n,r,s)}if(a&1){let{unmount:u=!0,...c}=l;return oo(u?0:1,{0(){return null},1(){return Ao({...c,hidden:!0,style:{display:"none"}},n,r,s)}})}return Ao(l,n,r,s)}function Ao(e,t={},n,r){var i;let{as:o=n,children:s,refName:l="ref",...a}=pa(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},c=typeof s=="function"?s(t):s;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let d={};if(t){let f=!1,y=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(f=!0),w===!0&&y.push(m);f&&(d["data-headlessui-state"]=y.join(" "))}if(o===I.Fragment&&Object.keys(Eh(a)).length>0){if(!I.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(m=>` - ${m}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` -`)].join(` -`));let f=Wx((i=c.props)==null?void 0:i.className,a.className),y=f?{className:f}:{};return I.cloneElement(c,Object.assign({},eg(c.props,Eh(pa(a,["ref"]))),d,u,Kx(c.ref,u.ref),y))}return I.createElement(o,Object.assign({},pa(a,["ref"]),o!==I.Fragment&&u,o!==I.Fragment&&d),c)}function Kx(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function eg(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let l of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...o)}}});return t}function af(e){var t;return Object.assign(I.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Eh(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function pa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Gx(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Yx(n)?!1:r}function Yx(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let uf=I.createContext(null);uf.displayName="OpenClosedContext";var Wi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Wi||{});function Xx(){return I.useContext(uf)}function Jx({value:e,children:t}){return z.createElement(uf.Provider,{value:e},t)}var ar=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ar||{}),kh;let Zx=(kh=z.startTransition)!=null?kh:function(e){e()};var eS=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eS||{}),tS=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(tS||{});let nS={0:e=>({...e,disclosureState:oo(e.disclosureState,{0:1,1:0})}),1:e=>e.disclosureState===1?e:{...e,disclosureState:1},4(e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},5(e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},cf=I.createContext(null);cf.displayName="DisclosureContext";function ff(e){let t=I.useContext(cf);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ff),n}return t}let df=I.createContext(null);df.displayName="DisclosureAPIContext";function tg(e){let t=I.useContext(df);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tg),n}return t}let hf=I.createContext(null);hf.displayName="DisclosurePanelContext";function rS(){return I.useContext(hf)}function iS(e,t){return oo(t.type,nS,e,t)}let oS=I.Fragment;function sS(e,t){let{defaultOpen:n=!1,...r}=e,i=I.useRef(null),o=sf(t,Qx(k=>{i.current=k},e.as===void 0||e.as===I.Fragment)),s=I.useRef(null),l=I.useRef(null),a=I.useReducer(iS,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:l,panelRef:s,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:c},d]=a,f=Ri(k=>{d({type:1});let p=Vx(i);if(!p||!c)return;let h=(()=>k?k instanceof HTMLElement?k:k.current instanceof HTMLElement?k.current:p.getElementById(c):p.getElementById(c))();h==null||h.focus()}),y=I.useMemo(()=>({close:f}),[f]),m=I.useMemo(()=>({open:u===0,close:f}),[u,f]),w={ref:o};return z.createElement(cf.Provider,{value:a},z.createElement(df.Provider,{value:y},z.createElement(Jx,{value:oo(u,{0:Wi.Open,1:Wi.Closed})},lf({ourProps:w,theirProps:r,slot:m,defaultTag:oS,name:"Disclosure"}))))}let lS="button";function aS(e,t){let n=Jy(),{id:r=`headlessui-disclosure-button-${n}`,...i}=e,[o,s]=ff("Disclosure.Button"),l=rS(),a=l===null?!1:l===o.panelId,u=I.useRef(null),c=sf(u,t,a?null:o.buttonRef);I.useEffect(()=>{if(!a)return s({type:2,buttonId:r}),()=>{s({type:2,buttonId:null})}},[r,s,a]);let d=Ri(p=>{var h;if(a){if(o.disclosureState===1)return;switch(p.key){case ar.Space:case ar.Enter:p.preventDefault(),p.stopPropagation(),s({type:0}),(h=o.buttonRef.current)==null||h.focus();break}}else switch(p.key){case ar.Space:case ar.Enter:p.preventDefault(),p.stopPropagation(),s({type:0});break}}),f=Ri(p=>{switch(p.key){case ar.Space:p.preventDefault();break}}),y=Ri(p=>{var h;Gx(p.currentTarget)||e.disabled||(a?(s({type:0}),(h=o.buttonRef.current)==null||h.focus()):s({type:0}))}),m=I.useMemo(()=>({open:o.disclosureState===0}),[o]),w=Hx(e,u),k=a?{ref:c,type:w,onKeyDown:d,onClick:y}:{ref:c,id:r,type:w,"aria-expanded":e.disabled?void 0:o.disclosureState===0,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:d,onKeyUp:f,onClick:y};return lf({ourProps:k,theirProps:i,slot:m,defaultTag:lS,name:"Disclosure.Button"})}let uS="div",cS=_u.RenderStrategy|_u.Static;function fS(e,t){let n=Jy(),{id:r=`headlessui-disclosure-panel-${n}`,...i}=e,[o,s]=ff("Disclosure.Panel"),{close:l}=tg("Disclosure.Panel"),a=sf(t,o.panelRef,y=>{Zx(()=>s({type:y?4:5}))});I.useEffect(()=>(s({type:3,panelId:r}),()=>{s({type:3,panelId:null})}),[r,s]);let u=Xx(),c=(()=>u!==null?(u&Wi.Open)===Wi.Open:o.disclosureState===0)(),d=I.useMemo(()=>({open:o.disclosureState===0,close:l}),[o,l]),f={ref:a,id:r};return z.createElement(hf.Provider,{value:o.panelId},lf({ourProps:f,theirProps:i,slot:d,defaultTag:uS,features:cS,visible:c,name:"Disclosure.Panel"}))}let dS=af(sS),hS=af(aS),pS=af(fS),$n=Object.assign(dS,{Button:hS,Panel:pS});var ng={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ch=z.createContext&&z.createContext(ng),Pn=globalThis&&globalThis.__assign||function(){return Pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};function PS(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function RS(e,t){var n=PS(e);if("find"in n)return n.find(t);for(var r=n,i=0;i"u"},bS=function(e){return e===null},qi=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},ju=function(e){return qi(e)&&Object.keys(e).length===0},bn=function(e){return Array.isArray(e)},NS=function(e){return typeof e=="string"},_S=function(e){return typeof e=="number"&&!isNaN(e)},jS=function(e){return typeof e=="boolean"},AS=function(e){return e instanceof RegExp},Ki=function(e){return e instanceof Map},Gi=function(e){return e instanceof Set},sg=function(e){return TS(e)==="Symbol"},$S=function(e){return e instanceof Date&&!isNaN(e.valueOf())},LS=function(e){return e instanceof Error},Rh=function(e){return typeof e=="number"&&isNaN(e)},IS=function(e){return jS(e)||bS(e)||og(e)||_S(e)||NS(e)||sg(e)},FS=function(e){return typeof e=="bigint"},DS=function(e){return e===1/0||e===-1/0},MS=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},zS=function(e){return e instanceof URL},lg=function(e){return e.replace(/\./g,"\\.")},ma=function(e){return e.map(String).map(lg).join(".")},Oi=function(e){for(var t=[],n="",r=0;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Lu=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0?"Infinity":"-Infinity"},Number),jt(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),jt(zS,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function kl(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var ug=kl(function(e,t){if(sg(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),US=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),cg=kl(MS,function(e){return["typed-array",e.constructor.name]},function(e){return Lu([],$u(e))},function(e,t){var n=US[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function fg(e,t){if(e!=null&&e.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var dg=kl(fg,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Au({},e);var r={};return n.forEach(function(i){r[i]=e[i]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),hg=kl(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),BS=[dg,ug,hg,cg],Oh=function(e,t){var n=Ph(BS,function(i){return i.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=Ph(ag,function(i){return i.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},pg={};ag.forEach(function(e){pg[e.annotation]=e});var VS=function(e,t,n){if(bn(t))switch(t[0]){case"symbol":return ug.untransform(e,t,n);case"class":return dg.untransform(e,t,n);case"custom":return hg.untransform(e,t,n);case"typed-array":return cg.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=pg[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Sr=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function mg(e){if(Yo(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Yo(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Yo(e,"constructor"))throw new Error("constructor is not allowed as a property")}var HS=function(e,t){mg(t);for(var n=0;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},mn=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;nDu(i,t));if(!YS(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((i,o)=>{if(Th(t.props)&&!t.props.includes(o))return i;const s=e[o],l=Du(s,t);return XS(i,o,l,e,t.nonenumerable),i},{})}var Fn=globalThis&&globalThis.__assign||function(){return Fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},ZS=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{xg=e});function nE(){const e=new Y1(tE);xg(e)}function Mu(e,t,n){if(typeof e!="function")throw new TypeError("useQuery requires queryFn to be a function.");if(!e.queryCacheKey)throw new TypeError("queryFn needs to have queryCacheKey property defined.");const r=t!==void 0?[...e.queryCacheKey,t]:e.queryCacheKey;return Rw({queryKey:r,queryFn:()=>e(r,t),...n})}function Sg(e,t){return function(){return e.apply(t,arguments)}}const{toString:rE}=Object.prototype,{getPrototypeOf:mf}=Object,Cl=(e=>t=>{const n=rE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zt=e=>(e=e.toLowerCase(),t=>Cl(t)===e),Pl=e=>t=>typeof t===e,{isArray:Kr}=Array,Yi=Pl("undefined");function iE(e){return e!==null&&!Yi(e)&&e.constructor!==null&&!Yi(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eg=zt("ArrayBuffer");function oE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eg(e.buffer),t}const sE=Pl("string"),vt=Pl("function"),kg=Pl("number"),Rl=e=>e!==null&&typeof e=="object",lE=e=>e===!0||e===!1,Xo=e=>{if(Cl(e)!=="object")return!1;const t=mf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aE=zt("Date"),uE=zt("File"),cE=zt("Blob"),fE=zt("FileList"),dE=e=>Rl(e)&&vt(e.pipe),hE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=Cl(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},pE=zt("URLSearchParams"),mE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function so(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Kr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Rg=e=>!Yi(e)&&e!==Pg;function zu(){const{caseless:e}=Rg(this)&&this||{},t={},n=(r,i)=>{const o=e&&Cg(t,i)||i;Xo(t[o])&&Xo(r)?t[o]=zu(t[o],r):Xo(r)?t[o]=zu({},r):Kr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(so(t,(i,o)=>{n&&vt(i)?e[o]=Sg(i,n):e[o]=i},{allOwnKeys:r}),e),gE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wE=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&mf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},SE=e=>{if(!e)return null;if(Kr(e))return e;let t=e.length;if(!kg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},EE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mf(Uint8Array)),kE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},CE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},PE=zt("HTMLFormElement"),RE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),bh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),OE=zt("RegExp"),Og=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};so(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},TE=e=>{Og(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bE=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Kr(e)?r(e):r(String(e).split(t)),n},NE=()=>{},_E=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ya="abcdefghijklmnopqrstuvwxyz",Nh="0123456789",Tg={DIGIT:Nh,ALPHA:ya,ALPHA_DIGIT:ya+ya.toUpperCase()+Nh},jE=(e=16,t=Tg.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function AE(e){return!!(e&&vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $E=e=>{const t=new Array(10),n=(r,i)=>{if(Rl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Kr(r)?[]:{};return so(r,(s,l)=>{const a=n(s,i+1);!Yi(a)&&(o[l]=a)}),t[i]=void 0,o}}return r};return n(e,0)},LE=zt("AsyncFunction"),IE=e=>e&&(Rl(e)||vt(e))&&vt(e.then)&&vt(e.catch),T={isArray:Kr,isArrayBuffer:Eg,isBuffer:iE,isFormData:hE,isArrayBufferView:oE,isString:sE,isNumber:kg,isBoolean:lE,isObject:Rl,isPlainObject:Xo,isUndefined:Yi,isDate:aE,isFile:uE,isBlob:cE,isRegExp:OE,isFunction:vt,isStream:dE,isURLSearchParams:pE,isTypedArray:EE,isFileList:fE,forEach:so,merge:zu,extend:yE,trim:mE,stripBOM:gE,inherits:vE,toFlatObject:wE,kindOf:Cl,kindOfTest:zt,endsWith:xE,toArray:SE,forEachEntry:kE,matchAll:CE,isHTMLForm:PE,hasOwnProperty:bh,hasOwnProp:bh,reduceDescriptors:Og,freezeMethods:TE,toObjectSet:bE,toCamelCase:RE,noop:NE,toFiniteNumber:_E,findKey:Cg,global:Pg,isContextDefined:Rg,ALPHABET:Tg,generateString:jE,isSpecCompliantForm:AE,toJSONObject:$E,isAsyncFn:LE,isThenable:IE};function Z(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}T.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bg=Z.prototype,Ng={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ng[e]={value:e}});Object.defineProperties(Z,Ng);Object.defineProperty(bg,"isAxiosError",{value:!0});Z.from=(e,t,n,r,i,o)=>{const s=Object.create(bg);return T.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),Z.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const FE=null;function Uu(e){return T.isPlainObject(e)||T.isArray(e)}function _g(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function _h(e,t,n){return e?e.concat(t).map(function(i,o){return i=_g(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function DE(e){return T.isArray(e)&&!e.some(Uu)}const ME=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Ol(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,k){return!T.isUndefined(k[w])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(T.isDate(m))return m.toISOString();if(!a&&T.isBlob(m))throw new Z("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(m)||T.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,w,k){let p=m;if(m&&!k&&typeof m=="object"){if(T.endsWith(w,"{}"))w=r?w:w.slice(0,-2),m=JSON.stringify(m);else if(T.isArray(m)&&DE(m)||(T.isFileList(m)||T.endsWith(w,"[]"))&&(p=T.toArray(m)))return w=_g(w),p.forEach(function(v,S){!(T.isUndefined(v)||v===null)&&t.append(s===!0?_h([w],S,o):s===null?w:w+"[]",u(v))}),!1}return Uu(m)?!0:(t.append(_h(k,w,o),u(m)),!1)}const d=[],f=Object.assign(ME,{defaultVisitor:c,convertValue:u,isVisitable:Uu});function y(m,w){if(!T.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(m),T.forEach(m,function(p,h){(!(T.isUndefined(p)||p===null)&&i.call(t,p,T.isString(h)?h.trim():h,w,f))===!0&&y(p,w?w.concat(h):[h])}),d.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return y(e),t}function jh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function yf(e,t){this._pairs=[],e&&Ol(e,this,t)}const jg=yf.prototype;jg.append=function(t,n){this._pairs.push([t,n])};jg.toString=function(t){const n=t?function(r){return t.call(this,r,jh)}:jh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function zE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ag(e,t,n){if(!t)return e;const r=n&&n.encode||zE,i=n&&n.serialize;let o;if(i?o=i(t,n):o=T.isURLSearchParams(t)?t.toString():new yf(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class UE{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ah=UE,$g={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},BE=typeof URLSearchParams<"u"?URLSearchParams:yf,VE=typeof FormData<"u"?FormData:null,HE=typeof Blob<"u"?Blob:null,QE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),WE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Lt={isBrowser:!0,classes:{URLSearchParams:BE,FormData:VE,Blob:HE},isStandardBrowserEnv:QE,isStandardBrowserWebWorkerEnv:WE,protocols:["http","https","file","blob","url","data"]};function qE(e,t){return Ol(e,new Lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Lt.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function KE(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GE(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&T.isArray(i)?i.length:s,a?(T.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!T.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&T.isArray(i[s])&&(i[s]=GE(i[s])),!l)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,i)=>{t(KE(r),i,n,0)}),n}return null}function YE(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gf={transitional:$g,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=T.isObject(t);if(o&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return i&&i?JSON.stringify(Lg(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qE(t,this.formSerializer).toString();if((l=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Ol(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),YE(t)):t}],transformResponse:[function(t){const n=this.transitional||gf.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&T.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Z.from(l,Z.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{gf.headers[e]={}});const vf=gf,XE=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JE=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&XE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$h=Symbol("internals");function li(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:T.isArray(e)?e.map(Jo):String(e)}function ZE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ek=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ga(e,t,n,r,i){if(T.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function tk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nk(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class Tl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,a,u){const c=li(a);if(!c)throw new Error("header name must be a non-empty string");const d=T.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||a]=Jo(l))}const s=(l,a)=>T.forEach(l,(u,c)=>o(u,c,a));return T.isPlainObject(t)||t instanceof this.constructor?s(t,n):T.isString(t)&&(t=t.trim())&&!ek(t)?s(JE(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=li(t),t){const r=T.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ZE(i);if(T.isFunction(n))return n.call(this,i,r);if(T.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=li(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ga(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=li(s),s){const l=T.findKey(r,s);l&&(!n||ga(r,r[l],l,n))&&(delete r[l],i=!0)}}return T.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ga(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return T.forEach(this,(i,o)=>{const s=T.findKey(r,o);if(s){n[s]=Jo(i),delete n[o];return}const l=t?tk(o):String(o).trim();l!==o&&delete n[o],n[l]=Jo(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[$h]=this[$h]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=li(s);r[l]||(nk(i,s),r[l]=!0)}return T.isArray(t)?t.forEach(o):o(t),this}}Tl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Tl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Tl);const Yt=Tl;function va(e,t){const n=this||vf,r=t||n,i=Yt.from(r.headers);let o=r.data;return T.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ig(e){return!!(e&&e.__CANCEL__)}function lo(e,t,n){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(lo,Z,{__CANCEL__:!0});function rk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ik=Lt.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,l){const a=[];a.push(n+"="+encodeURIComponent(r)),T.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),T.isString(o)&&a.push("path="+o),T.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ok(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sk(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fg(e,t){return e&&!ok(t)?sk(e,t):t}const lk=Lt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const l=T.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function ak(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];s||(s=u),n[i]=a,r[i]=u;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,a=r(l),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-o)/a:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const ck=typeof XMLHttpRequest<"u",fk=ck&&function(e){return new Promise(function(n,r){let i=e.data;const o=Yt.from(e.headers).normalize(),s=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;T.isFormData(i)&&(Lt.isStandardBrowserEnv||Lt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?T.isString(u=o.getContentType())&&o.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+w))}const d=Fg(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ag(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const m=Yt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};rk(function(h){n(h),a()},function(h){r(h),a()},k),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new Z("Request aborted",Z.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Z("Network Error",Z.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const k=e.transitional||$g;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new Z(w,k.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,c)),c=null},Lt.isStandardBrowserEnv){const m=lk(d)&&e.xsrfCookieName&&ik.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&T.forEach(o.toJSON(),function(w,k){c.setRequestHeader(k,w)}),T.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Lh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Lh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{c&&(r(!m||m.type?new lo(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=ak(d);if(y&&Lt.protocols.indexOf(y)===-1){r(new Z("Unsupported protocol "+y+":",Z.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Bu={http:FE,xhr:fk};T.forEach(Bu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ih=e=>`- ${e}`,dk=e=>T.isFunction(e)||e===null||e===!1,Dg={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : -`+o.map(Ih).join(` -`):" "+Ih(o[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Bu};function wa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lo(null,e)}function Fh(e){return wa(e),e.headers=Yt.from(e.headers),e.data=va.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dg.getAdapter(e.adapter||vf.adapter)(e).then(function(r){return wa(e),r.data=va.call(e,e.transformResponse,r),r.headers=Yt.from(r.headers),r},function(r){return Ig(r)||(wa(e),r&&r.response&&(r.response.data=va.call(e,e.transformResponse,r.response),r.response.headers=Yt.from(r.response.headers))),Promise.reject(r)})}const Dh=e=>e instanceof Yt?e.toJSON():e;function zr(e,t){t=t||{};const n={};function r(u,c,d){return T.isPlainObject(u)&&T.isPlainObject(c)?T.merge.call({caseless:d},u,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(u,c,d){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!T.isUndefined(c))return r(void 0,c)}function s(u,c){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c)=>i(Dh(u),Dh(c),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||i,f=d(e[c],t[c],c);T.isUndefined(f)&&d!==l||(n[c]=f)}),n}const Mg="1.6.0",wf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mh={};wf.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Mg+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new Z(i(s," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED);return n&&!Mh[s]&&(Mh[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function hk(e,t,n){if(typeof e!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new Z("option "+o+" must be "+a,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}}const Vu={assertOptions:hk,validators:wf},sn=Vu.validators;class _s{constructor(t){this.defaults=t,this.interceptors={request:new Ah,response:new Ah}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Vu.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:Vu.assertOptions(i,{encode:sn.function,serialize:sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&T.merge(o.common,o[n.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Yt.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(a=a&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let c,d=0,f;if(!a){const m=[Fh.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new lo(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xf(function(i){t=i}),cancel:t}}}const pk=xf;function mk(e){return function(n){return e.apply(null,n)}}function yk(e){return T.isObject(e)&&e.isAxiosError===!0}const Hu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hu).forEach(([e,t])=>{Hu[t]=e});const gk=Hu;function zg(e){const t=new Zo(e),n=Sg(Zo.prototype.request,t);return T.extend(n,Zo.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return zg(zr(e,i))},n}const Oe=zg(vf);Oe.Axios=Zo;Oe.CanceledError=lo;Oe.CancelToken=pk;Oe.isCancel=Ig;Oe.VERSION=Mg;Oe.toFormData=Ol;Oe.AxiosError=Z;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=mk;Oe.isAxiosError=yk;Oe.mergeConfig=zr;Oe.AxiosHeaders=Yt;Oe.formToJSON=e=>Lg(T.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=Dg.getAdapter;Oe.HttpStatusCode=gk;Oe.default=Oe;const vk=Oe;function wk(e){return e==null?void 0:e.replace(/\/$/,"")}const xk=wk("https://backend.captn.ai")||"http://localhost:3001",Sf={apiUrl:xk};function Sk(e){function t(n){return`${e}:${n}`}return{getPrefixedKey:t,set(n,r){$o(),localStorage.setItem(t(n),JSON.stringify(r))},get(n){$o();const r=localStorage.getItem(t(n));try{return r?JSON.parse(r):void 0}catch{return}},remove(n){$o(),localStorage.removeItem(t(n))},clear(){$o(),Object.keys(localStorage).forEach(n=>{n.startsWith(e)&&localStorage.removeItem(n)})}}}const ao=Sk("wasp");function $o(){if(!window.localStorage)throw new Error("Local storage is not available.")}function Ek(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Xi=Ek(),Ut=vk.create({baseURL:Sf.apiUrl}),bl="authToken";let er=ao.get(bl);function kk(e){er=e,ao.set(bl,e),Xi.emit("authToken.set")}function Ck(){er=void 0,ao.remove(bl),Xi.emit("authToken.clear")}function Pk(){er=void 0,ao.clear(),Xi.emit("authToken.clear")}Ut.interceptors.request.use(e=>(er&&(e.headers.Authorization=`Bearer ${er}`),e));Ut.interceptors.response.use(void 0,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&Ck(),Promise.reject(e)});window.addEventListener("storage",e=>{e.key===ao.getPrefixedKey(bl)&&(e.newValue?(er=e.newValue,Xi.emit("authToken.set")):(er=void 0,Xi.emit("authToken.clear")))});function rr(e){var t;if(e!=null&&e.response){const n=(t=e.response)==null?void 0:t.data,r=e.response.status;throw new Rk(r,(n==null?void 0:n.message)??e.message,n)}else throw e}class Rk extends Error{constructor(n,r,i){super(r);Al(this,"statusCode");Al(this,"data");this.statusCode=n,this.data=i}}var Ef=(e=>(e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE",e))(Ef||{});async function Ug(e,t){try{const n=eE(t),r=await Ut.post(e.path,n);return wg(r.data)}catch(n){rr(n)}}function Bg(e){return{method:Ef.Post,path:`/${e}`}}function Ok(e){const t=new Map;function n(s){return t.get(s)||[]}function r(s,l){const a=e(s),u=n(a);t.set(a,[...u,{queryKey:s,updateQuery:l}])}function i(s){const l=e(s);return n(l).map(({updateQuery:a})=>a)}function o(s){const l=e(s),a=n(l).filter(({queryKey:u})=>u!==s);a.length>0?t.set(l,a):t.delete(l)}return{add:r,remove:o,getUpdateHandlers:i}}const Qu=new Map,kf=Ok(pn);function Tk(e,t){for(const n of t){let r=Qu.get(n);r||(r=new Set,Qu.set(n,r)),r.add(e)}}function bk(e){e.forEach(({queryKey:t,updateQuery:n})=>kf.add(t,n))}async function Nk(e,t){t.forEach(({queryKey:n})=>kf.remove(n)),await jk(e)}function _k(e){return kf.getUpdateHandlers(e)}async function Vg(){const e=await pf;e.resetQueries(),e.removeQueries()}async function jk(e){const t=await pf;$k(e).forEach(r=>t.invalidateQueries(r))}function Ak(e){return Array.from(Qu.get(e)||[])}function $k(e){return Array.from(new Set(e.flatMap(Ak)))}function Hg(e,t){const n=Bg(e);async function r(i,o){const s=await Ug(n,o);return _k(i).reduce((l,a)=>a(l),s)}return Qg(r,{relativeQueryPath:e,queryRoute:n,entitiesUsed:t}),r}function Qg(e,{relativeQueryPath:t,queryRoute:n,entitiesUsed:r}){e.queryCacheKey=[t],e.route=n,Tk(e.queryCacheKey,r)}const Lk=Ik();function Cf(e,t){return Mu(Lk,e,t)}function Ik(){const e="auth/me",t={method:Ef.Get,path:`/${e}`};async function n(){var r;try{const i=await Ut.get(t.path);return wg(i.data)}catch(i){if(((r=i.response)==null?void 0:r.status)===401)return null;rr(i)}}return Qg(n,{relativeQueryPath:e,queryRoute:t,entitiesUsed:["User"]}),n}const xa="inline-flex items-center border-b-2 border-indigo-300 px-1 pt-1 text-sm font-medium text-gray-900",Sa="inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",Ea=window.location.pathname;function Fk(){const{data:e}=Cf();return g.jsx($n,{as:"nav",className:"bg-captn-light-cream shadow sticky top-0 z-50 ",children:({open:t})=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-16",children:g.jsxs("div",{className:"flex h-16 justify-between",children:[g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex flex-shrink-0 items-center",children:g.jsx("a",{href:"/",children:g.jsx("img",{className:"h-8 w-8",src:Xy,alt:"My SaaS App"})})}),g.jsxs("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:[g.jsx("a",{href:"/",className:Ea==="/"?xa:Sa,children:"Home"}),g.jsx("a",{href:"/chat",className:Ea.includes("chat")?xa:Sa,children:"Chat"})]})]}),g.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:g.jsxs("a",{href:e?"/account":"/login",className:Ea==="/account"?xa:Sa,children:[g.jsx(xS,{className:"h-6 w-6 mr-2"}),"Account"]})}),g.jsx("div",{className:"-mr-2 flex items-center sm:hidden",children:g.jsxs($n.Button,{className:"inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-300",children:[g.jsx("span",{className:"sr-only",children:"Open menu"}),t?g.jsx(wS,{className:"block h-6 w-6","aria-hidden":"true"}):g.jsx(gS,{className:"block h-6 w-6","aria-hidden":"true"})]})})]})}),g.jsx($n.Panel,{className:"sm:hidden",children:g.jsxs("div",{className:"space-y-1 pt-2 pb-3",children:[g.jsx($n.Button,{as:"a",href:"/",className:"block border-l-4 border-indigo-300 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-500",children:"Landing Page"}),g.jsx($n.Button,{as:"a",href:"/pricing",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"Pricing"}),g.jsx($n.Button,{as:"a",href:"/gpt",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"GPT"}),g.jsx($n.Button,{as:"a",href:"/account",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800",children:"Account"})]})})]})})}function Dk({children:e}){return g.jsxs("div",{className:"relative flex-col z-0 flex h-screen w-full overflow-hidden",children:[g.jsx(Fk,{}),g.jsx("div",{className:"max-w-full px-0",children:e})]})}const ka=e=>t=>{const{data:n,isError:r,isSuccess:i,isLoading:o}=Cf();return i?n?g.jsx(e,{...t,user:n}):g.jsx(Cx,{to:"/login"}):o?g.jsx("span",{children:"Loading..."}):r?g.jsx("span",{children:"An error ocurred. Please refresh the page."}):g.jsx("span",{children:"An unknown error ocurred. Please refresh the page."})},Mk="/assets/captn-logo-large-8bedc952.png";function zk(){return g.jsx("div",{children:g.jsxs("div",{className:"mx-auto max-w-7xl pt-10 pb-24 sm:pb-32 lg:grid lg:grid-cols-2 lg:gap-x-8 lg:py-32 lg:px-8",children:[g.jsx("div",{className:"px-6 lg:px-0 lg:pt-4",children:g.jsx("div",{className:"mx-auto max-w-2xl",children:g.jsxs("div",{className:"max-w-lg",children:[g.jsx("h1",{className:" text-4xl font-bold tracking-tight text-captn-dark-blue sm:text-6xl",children:"Capt'n AI"}),g.jsx("p",{className:"mt-4 text-lg leading-8 text-captn-dark-blue",children:"Hey 🧙‍♂️! This is a sneak peek at my product's evolving homepage. Get ready for an amazing launch soon!"})]})})}),g.jsx("div",{className:"mt-20 sm:mt-24 lg:mx-0 md:mx-auto md:max-w-2xl lg:w-screen lg:mt-0 ",children:g.jsx("div",{className:"shadow-lg md:rounded-3xl relative isolate overflow-hidden",children:g.jsxs("div",{className:"bg-captn-light-blue [clip-path:inset(0)] md:[clip-path:inset(0_round_theme(borderRadius.3xl))]",children:[g.jsx("div",{className:"absolute -inset-y-px -z-10 ml-40 w-[200%] bg-captn-light-cream ring-1 ring-inset ring-white ","aria-hidden":"true"}),g.jsx("div",{className:"relative px-6 pt-8 sm:pt-16 md:pl-16 md:pr-0",children:g.jsx("img",{src:Mk})})]})})})]})})}var ie="colors",Qe="sizes",U="space",Uk={gap:U,gridGap:U,columnGap:U,gridColumnGap:U,rowGap:U,gridRowGap:U,inset:U,insetBlock:U,insetBlockEnd:U,insetBlockStart:U,insetInline:U,insetInlineEnd:U,insetInlineStart:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockEnd:U,marginBlockStart:U,marginInline:U,marginInlineEnd:U,marginInlineStart:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockEnd:U,paddingBlockStart:U,paddingInline:U,paddingInlineEnd:U,paddingInlineStart:U,top:U,right:U,bottom:U,left:U,scrollMargin:U,scrollMarginTop:U,scrollMarginRight:U,scrollMarginBottom:U,scrollMarginLeft:U,scrollMarginX:U,scrollMarginY:U,scrollMarginBlock:U,scrollMarginBlockEnd:U,scrollMarginBlockStart:U,scrollMarginInline:U,scrollMarginInlineEnd:U,scrollMarginInlineStart:U,scrollPadding:U,scrollPaddingTop:U,scrollPaddingRight:U,scrollPaddingBottom:U,scrollPaddingLeft:U,scrollPaddingX:U,scrollPaddingY:U,scrollPaddingBlock:U,scrollPaddingBlockEnd:U,scrollPaddingBlockStart:U,scrollPaddingInline:U,scrollPaddingInlineEnd:U,scrollPaddingInlineStart:U,fontSize:"fontSizes",background:ie,backgroundColor:ie,backgroundImage:ie,borderImage:ie,border:ie,borderBlock:ie,borderBlockEnd:ie,borderBlockStart:ie,borderBottom:ie,borderBottomColor:ie,borderColor:ie,borderInline:ie,borderInlineEnd:ie,borderInlineStart:ie,borderLeft:ie,borderLeftColor:ie,borderRight:ie,borderRightColor:ie,borderTop:ie,borderTopColor:ie,caretColor:ie,color:ie,columnRuleColor:ie,fill:ie,outline:ie,outlineColor:ie,stroke:ie,textDecorationColor:ie,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Qe,minBlockSize:Qe,maxBlockSize:Qe,inlineSize:Qe,minInlineSize:Qe,maxInlineSize:Qe,width:Qe,minWidth:Qe,maxWidth:Qe,height:Qe,minHeight:Qe,maxHeight:Qe,flexBasis:Qe,gridTemplateColumns:Qe,gridTemplateRows:Qe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Bk=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Gr=()=>{const e=Object.create(null);return(t,n,...r)=>{const i=(o=>JSON.stringify(o,Bk))(t);return i in e?e[i]:e[i]=n(t,...r)}},Wn=Symbol.for("sxs.internal"),Pf=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),zh=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Vk}=Object.prototype,Wu=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Hk=/\s+(?![^()]*\))/,sr=e=>t=>e(...typeof t=="string"?String(t).split(Hk):[t]),Uh={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:sr((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:sr((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:sr((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:sr((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:sr((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:sr((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Ca=/([\d.]+)([^]*)/,Qk=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(i)?`:is(${r})`:r):r+" "+i)),n),[]):t,Wk=(e,t)=>e in qk&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,i,o)=>r+(i==="stretch"?`-moz-available${o};${Wu(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${Wu(e)}:${r}fit-content`)+o):String(t),qk={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nn=e=>e?e+"-":"",Wg=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,i,o,s,l)=>s=="$"==!!o?r:(i||s=="--"?"calc(":"")+"var(--"+(s==="$"?nn(t)+(l.includes("$")?"":nn(n))+l.replace(/\$/g,"-"):l)+")"+(i||s=="--"?"*"+(i||"")+(o||"1")+")":"")),Kk=/\s*,\s*(?![^()]*\))/,Gk=Object.prototype.toString,Er=(e,t,n,r,i)=>{let o,s,l;const a=(u,c,d)=>{let f,y;const m=w=>{for(f in w){const h=f.charCodeAt(0)===64,v=h&&Array.isArray(w[f])?w[f]:[w[f]];for(y of v){const S=/[A-Z]/.test(p=f)?p:p.replace(/-[^]/g,P=>P[1].toUpperCase()),O=typeof y=="object"&&y&&y.toString===Gk&&(!r.utils[S]||!c.length);if(S in r.utils&&!O){const P=r.utils[S];if(P!==s){s=P,m(P(y)),s=null;continue}}else if(S in Uh){const P=Uh[S];if(P!==l){l=P,m(P(y)),l=null;continue}}if(h&&(k=f.slice(1)in r.media?"@media "+r.media[f.slice(1)]:f,f=k.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(P,E,C,F,L,q)=>{const K=Ca.test(E),W=.0625*(K?-1:1),[Y,J]=K?[F,E]:[E,F];return"("+(C[0]==="="?"":C[0]===">"===K?"max-":"min-")+Y+":"+(C[0]!=="="&&C.length===1?J.replace(Ca,(ae,ge,j)=>Number(ge)+W*(C===">"?1:-1)+j):J)+(L?") and ("+(L[0]===">"?"min-":"max-")+Y+":"+(L.length===1?q.replace(Ca,(ae,ge,j)=>Number(ge)+W*(L===">"?-1:1)+j):q):"")+")"})),O){const P=h?d.concat(f):[...d],E=h?[...c]:Qk(c,f.split(Kk));o!==void 0&&i(Bh(...o)),o=void 0,a(y,E,P)}else o===void 0&&(o=[[],c,d]),f=h||f.charCodeAt(0)!==36?f:`--${nn(r.prefix)}${f.slice(1).replace(/\$/g,"-")}`,y=O?y:typeof y=="number"?y&&S in Yk?String(y)+"px":String(y):Wg(Wk(S,y??""),r.prefix,r.themeMap[S]),o[0].push(`${h?`${f} `:`${Wu(f)}:`}${y}`)}}var k,p};m(u),o!==void 0&&i(Bh(...o)),o=void 0};a(e,t,n)},Bh=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Yk={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Vh=e=>String.fromCharCode(e+(e>25?39:97)),qn=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Vh(n%52)+r;return Vh(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),mi=["themed","global","styled","onevar","resonevar","allvar","inline"],Xk=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Jk=e=>{let t;const n=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,(o,s)=>{const{cssText:l}=o;let a="";if(l.startsWith("--sxs"))return"";if(i[s-1]&&(a=i[s-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return o.cssRules.length?`${a}${l}`:""}return l}).join("")},r=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const i=Object(e).styleSheets||[];for(const l of i)if(Xk(l)){for(let a=0,u=l.cssRules;u[a];++a){const c=Object(u[a]);if(c.type!==1)continue;const d=Object(u[a+1]);if(d.type!==4)continue;++a;const{cssText:f}=c;if(!f.startsWith("--sxs"))continue;const y=f.slice(14,-3).trim().split(/\s+/),m=mi[y[0]];m&&(t||(t={sheet:l,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:a,cache:new Set(y)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(c,d){this.cssRules.splice(d,0,l(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:n}}const{sheet:o,rules:s}=t;for(let l=mi.length-1;l>=0;--l){const a=mi[l];if(!s[a]){const u=mi[l+1],c=s[u]?s[u].index:o.cssRules.length;o.insertRule("@media{}",c),o.insertRule(`--sxs{--sxs:${l}}`,c),s[a]={group:o.cssRules[c+1],index:c,cache:new Set([l])}}Zk(s[a])}};return r(),t},Zk=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},ai=Symbol(),eC=Gr(),Hh=(e,t)=>eC(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const i of n)if(i!=null)if(i[Wn]){r.type==null&&(r.type=i[Wn].type);for(const o of i[Wn].composers)r.composers.add(o)}else i.constructor!==Object||i.$$typeof?r.type==null&&(r.type=i):r.composers.add(tC(i,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),nC(e,r,t)}),tC=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{const o=`${nn(i.prefix)}c-${qn(r)}`,s=[],l=[],a=Object.create(null),u=[];for(const f in n)a[f]=String(n[f]);if(typeof e=="object"&&e)for(const f in e){c=a,d=f,Vk.call(c,d)||(a[f]="undefined");const y=e[f];for(const m in y){const w={[f]:String(m)};String(m)==="undefined"&&u.push(f);const k=y[m],p=[w,k,!zh(k)];s.push(p)}}var c,d;if(typeof t=="object"&&t)for(const f of t){let{css:y,...m}=f;y=typeof y=="object"&&y||{};for(const k in m)m[k]=String(m[k]);const w=[m,y,!zh(y)];l.push(w)}return[o,r,s,l,a,u]},nC=(e,t,n)=>{const[r,i,o,s]=rC(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(d=>{function f(){for(let y=0;yf.rules[y]={apply:m=>f[ai].push([y,m])}),f})(n):null,a=(l||n).rules,u=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=d=>{d=typeof d=="object"&&d||iC;const{css:f,...y}=d,m={};for(const p in o)if(delete y[p],p in d){let h=d[p];typeof h=="object"&&h?m[p]={"@initial":o[p],...h}:(h=String(h),m[p]=h!=="undefined"||s.has(p)?h:o[p])}else m[p]=o[p];const w=new Set([...i]);for(const[p,h,v,S]of t.composers){n.rules.styled.cache.has(p)||(n.rules.styled.cache.add(p),Er(h,[`.${p}`],[],e,E=>{a.styled.apply(E)}));const O=Qh(v,m,e.media),P=Qh(S,m,e.media,!0);for(const E of O)if(E!==void 0)for(const[C,F,L]of E){const q=`${p}-${qn(F)}-${C}`;w.add(q);const K=(L?n.rules.resonevar:n.rules.onevar).cache,W=L?a.resonevar:a.onevar;K.has(q)||(K.add(q),Er(F,[`.${q}`],[],e,Y=>{W.apply(Y)}))}for(const E of P)if(E!==void 0)for(const[C,F]of E){const L=`${p}-${qn(F)}-${C}`;w.add(L),n.rules.allvar.cache.has(L)||(n.rules.allvar.cache.add(L),Er(F,[`.${L}`],[],e,q=>{a.allvar.apply(q)}))}}if(typeof f=="object"&&f){const p=`${r}-i${qn(f)}-css`;w.add(p),n.rules.inline.cache.has(p)||(n.rules.inline.cache.add(p),Er(f,[`.${p}`],[],e,h=>{a.inline.apply(h)}))}for(const p of String(d.className||"").trim().split(/\s+/))p&&w.add(p);const k=y.className=[...w].join(" ");return{type:t.type,className:k,selector:u,props:y,toString:()=>k,deferredInjector:l}};return Pf(c,{className:r,selector:u,[Wn]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},rC=e=>{let t="";const n=[],r={},i=[];for(const[o,,,,s,l]of e){t===""&&(t=o),n.push(o),i.push(...l);for(const a in s){const u=s[a];(r[a]===void 0||u!=="undefined"||l.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(i)]},Qh=(e,t,n,r)=>{const i=[];e:for(let[o,s,l]of e){if(l)continue;let a,u=0,c=!1;for(a in o){const d=o[a];let f=t[a];if(f!==d){if(typeof f!="object"||!f)continue e;{let y,m,w=0;for(const k in f){if(d===String(f[k])){if(k!=="@initial"){const p=k.slice(1);(m=m||[]).push(p in n?n[p]:k.replace(/^@media ?/,"")),c=!0}u+=w,y=!0}++w}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!y)continue e}}}(i[u]=i[u]||[]).push([r?"cv":`${a}-${o[a]}`,s,c])}return i},iC={},oC=Gr(),sC=(e,t)=>oC(e,()=>(...n)=>{const r=()=>{for(let i of n){i=typeof i=="object"&&i||{};let o=qn(i);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in i){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(i["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete i["@import"]}Er(i,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Pf(r,{toString:r})}),lC=Gr(),aC=(e,t)=>lC(e,()=>n=>{const r=`${nn(e.prefix)}k-${qn(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];Er(n,[],[],e,l=>o.push(l));const s=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(s)}return r};return Pf(i,{get name(){return i()},toString:i})}),uC=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nn(this.prefix)+nn(this.scale)+this.token}toString(){return this.computedValue}},cC=Gr(),fC=(e,t)=>cC(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const i=`.${n=(n=typeof n=="string"?n:"")||`${nn(e.prefix)}t-${qn(r)}`}`,o={},s=[];for(const a in r){o[a]={};for(const u in r[a]){const c=`--${nn(e.prefix)}${a}-${u}`,d=Wg(String(r[a][u]),e.prefix,a);o[a][u]=new uC(u,d,a,e.prefix),s.push(`${c}:${d}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(a)}return n};return{...o,get className(){return l()},selector:i,toString:l}}),dC=Gr(),Wh,hC=Gr(),qg=e=>{const t=(n=>{let r=!1;const i=dC(n,o=>{r=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",l=typeof o.media=="object"&&o.media||{},a=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},c={prefix:s,media:l,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...Uk},utils:typeof o.utils=="object"&&o.utils||{}},d=Jk(a),f={css:Hh(c,d),globalCss:sC(c,d),keyframes:aC(c,d),createTheme:fC(c,d),reset(){d.reset(),f.theme.toString()},theme:{},sheet:d,config:c,prefix:s,getCssText:d.toString,toString:d.toString};return String(f.theme=f.createTheme(u)),f});return r||i.reset(),i})(e);return t.styled=(({config:n,sheet:r})=>hC(n,()=>{const i=Hh(n,r);return(...o)=>{const s=i(...o),l=s[Wn].type,a=z.forwardRef((u,c)=>{const d=u&&u.as||l,{props:f,deferredInjector:y}=s(u);return delete f.as,f.ref=c,y?z.createElement(z.Fragment,null,z.createElement(d,f),z.createElement(y,null)):z.createElement(d,f)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[Wn]=s[Wn],a}}))(t),t},Kg=()=>Wh||(Wh=qg()),pC=(...e)=>Kg().createTheme(...e),mC=(...e)=>Kg().css(...e);const{styled:Ee,css:GP}=qg({theme:{colors:{waspYellow:"#ffcc00",gray700:"#a1a5ab",gray600:"#d1d5db",gray500:"gainsboro",gray400:"#f0f0f0",red:"#FED7D7",darkRed:"#fa3838",green:"#C6F6D5",brand:"$waspYellow",brandAccent:"#ffdb46",errorBackground:"$red",errorText:"#2D3748",successBackground:"$green",successText:"#2D3748",submitButtonText:"black",formErrorText:"$darkRed"},fontSizes:{sm:"0.875rem"}}});var uo=e=>e.type==="checkbox",kr=e=>e instanceof Date,qe=e=>e==null;const Gg=e=>typeof e=="object";var _e=e=>!qe(e)&&!Array.isArray(e)&&Gg(e)&&!kr(e),yC=e=>_e(e)&&e.target?uo(e.target)?e.target.checked:e.target.value:e,gC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vC=(e,t)=>e.has(gC(t)),wC=e=>{const t=e.constructor&&e.constructor.prototype;return _e(t)&&t.hasOwnProperty("isPrototypeOf")},Rf=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Rf&&(e instanceof Blob||e instanceof FileList))&&(n||_e(e)))if(t=n?[]:{},!n&&!wC(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Vt(e[r]));else return e;return t}var co=e=>Array.isArray(e)?e.filter(Boolean):[],Ce=e=>e===void 0,V=(e,t,n)=>{if(!t||!_e(e))return n;const r=co(t.split(/[,[\].]+?/)).reduce((i,o)=>qe(i)?i:i[o],e);return Ce(r)||r===e?Ce(e[t])?n:e[t]:r},Un=e=>typeof e=="boolean";const qh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ot={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Bt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};z.createContext(null);var xC=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Ot.all&&(t._proxyFormState[s]=!r||Ot.all),n&&(n[s]=!0),e[s]}});return i},ht=e=>_e(e)&&!Object.keys(e).length,SC=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ht(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Ot.all))},Pa=e=>Array.isArray(e)?e:[e];function EC(e){const t=z.useRef(e);t.current=e,z.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var It=e=>typeof e=="string",kC=(e,t,n,r,i)=>It(e)?(r&&t.watch.add(e),V(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),V(n,o))):(r&&(t.watchAll=!0),n),Of=e=>/^\w*$/.test(e),Yg=e=>co(e.replace(/["|']|\]/g,"").split(/\.|\[/));function fe(e,t,n){let r=-1;const i=Of(t)?[t]:Yg(t),o=i.length,s=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const qu=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=V(e,r);if(i){const{_f:o,...s}=i;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else _e(s)&&qu(s,t)}}};var Kh=e=>({isOnSubmit:!e||e===Ot.onSubmit,isOnBlur:e===Ot.onBlur,isOnChange:e===Ot.onChange,isOnAll:e===Ot.all,isOnTouch:e===Ot.onTouched}),Gh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),PC=(e,t,n)=>{const r=co(V(e,n));return fe(r,"root",t[n]),fe(e,n,r),e},Tf=e=>e.type==="file",yn=e=>typeof e=="function",js=e=>{if(!Rf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},es=e=>It(e),bf=e=>e.type==="radio",As=e=>e instanceof RegExp;const Yh={value:!1,isValid:!1},Xh={value:!0,isValid:!0};var Xg=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ce(e[0].attributes.value)?Ce(e[0].value)||e[0].value===""?Xh:{value:e[0].value,isValid:!0}:Xh:Yh}return Yh};const Jh={isValid:!1,value:null};var Jg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Jh):Jh;function Zh(e,t,n="validate"){if(es(e)||Array.isArray(e)&&e.every(es)||Un(e)&&!e)return{type:n,message:es(e)?e:"",ref:t}}var lr=e=>_e(e)&&!As(e)?e:{value:e,message:""},ep=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:l,maxLength:a,minLength:u,min:c,max:d,pattern:f,validate:y,name:m,valueAsNumber:w,mount:k,disabled:p}=e._f,h=V(t,m);if(!k||p)return{};const v=s?s[0]:o,S=K=>{r&&v.reportValidity&&(v.setCustomValidity(Un(K)?"":K||""),v.reportValidity())},O={},P=bf(o),E=uo(o),C=P||E,F=(w||Tf(o))&&Ce(o.value)&&Ce(h)||js(o)&&o.value===""||h===""||Array.isArray(h)&&!h.length,L=CC.bind(null,m,n,O),q=(K,W,Y,J=Bt.maxLength,ae=Bt.minLength)=>{const ge=K?W:Y;O[m]={type:K?J:ae,message:ge,ref:o,...L(K?J:ae,ge)}};if(i?!Array.isArray(h)||!h.length:l&&(!C&&(F||qe(h))||Un(h)&&!h||E&&!Xg(s).isValid||P&&!Jg(s).isValid)){const{value:K,message:W}=es(l)?{value:!!l,message:l}:lr(l);if(K&&(O[m]={type:Bt.required,message:W,ref:v,...L(Bt.required,W)},!n))return S(W),O}if(!F&&(!qe(c)||!qe(d))){let K,W;const Y=lr(d),J=lr(c);if(!qe(h)&&!isNaN(h)){const ae=o.valueAsNumber||h&&+h;qe(Y.value)||(K=ae>Y.value),qe(J.value)||(W=aenew Date(new Date().toDateString()+" "+N),j=o.type=="time",A=o.type=="week";It(Y.value)&&h&&(K=j?ge(h)>ge(Y.value):A?h>Y.value:ae>new Date(Y.value)),It(J.value)&&h&&(W=j?ge(h)+K.value,J=!qe(W.value)&&h.length<+W.value;if((Y||J)&&(q(Y,K.message,W.message),!n))return S(O[m].message),O}if(f&&!F&&It(h)){const{value:K,message:W}=lr(f);if(As(K)&&!h.match(K)&&(O[m]={type:Bt.pattern,message:W,ref:o,...L(Bt.pattern,W)},!n))return S(W),O}if(y){if(yn(y)){const K=await y(h,t),W=Zh(K,v);if(W&&(O[m]={...W,...L(Bt.validate,W.message)},!n))return S(W.message),O}else if(_e(y)){let K={};for(const W in y){if(!ht(K)&&!n)break;const Y=Zh(await y[W](h,t),v,W);Y&&(K={...Y,...L(W,Y.message)},S(Y.message),n&&(O[m]=K))}if(!ht(K)&&(O[m]={ref:v,...K},!n))return O}}return S(!0),O};function RC(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}}var $s=e=>qe(e)||!Gg(e);function Bn(e,t){if($s(e)||$s(t))return e===t;if(kr(e)&&kr(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(kr(o)&&kr(s)||_e(o)&&_e(s)||Array.isArray(o)&&Array.isArray(s)?!Bn(o,s):o!==s)return!1}}return!0}var Zg=e=>e.type==="select-multiple",TC=e=>bf(e)||uo(e),Oa=e=>js(e)&&e.isConnected,ev=e=>{for(const t in e)if(yn(e[t]))return!0;return!1};function Ls(e,t={}){const n=Array.isArray(e);if(_e(e)||n)for(const r in e)Array.isArray(e[r])||_e(e[r])&&!ev(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ls(e[r],t[r])):qe(e[r])||(t[r]=!0);return t}function tv(e,t,n){const r=Array.isArray(e);if(_e(e)||r)for(const i in e)Array.isArray(e[i])||_e(e[i])&&!ev(e[i])?Ce(t)||$s(n[i])?n[i]=Array.isArray(e[i])?Ls(e[i],[]):{...Ls(e[i])}:tv(e[i],qe(t)?{}:t[i],n[i]):n[i]=!Bn(e[i],t[i]);return n}var Ta=(e,t)=>tv(e,t,Ls(t)),nv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ce(e)?e:t?e===""?NaN:e&&+e:n&&It(e)?new Date(e):r?r(e):e;function ba(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Tf(t)?t.files:bf(t)?Jg(e.refs).value:Zg(t)?[...t.selectedOptions].map(({value:n})=>n):uo(t)?Xg(e.refs).value:nv(Ce(t.value)?e.ref.value:t.value,e)}var bC=(e,t,n,r)=>{const i={};for(const o of e){const s=V(t,o);s&&fe(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ui=e=>Ce(e)?e:As(e)?e.source:_e(e)?As(e.value)?e.value.source:e.value:e,NC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tp(e,t,n){const r=V(e,n);if(r||Of(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=V(t,o),l=V(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var _C=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,jC=(e,t)=>!co(V(e,t)).length&&Ie(e,t);const AC={mode:Ot.onSubmit,reValidateMode:Ot.onChange,shouldFocusError:!0};function $C(e={},t){let n={...AC,...e},r={submitCount:0,isDirty:!1,isLoading:yn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},o=_e(n.defaultValues)||_e(n.values)?Vt(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Vt(o),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Ra(),array:Ra(),state:Ra()},y=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Kh(n.mode),w=Kh(n.reValidateMode),k=n.criteriaMode===Ot.all,p=x=>R=>{clearTimeout(c),c=setTimeout(x,R)},h=async x=>{if(d.isValid||x){const R=n.resolver?ht((await F()).errors):await q(i,!0);R!==r.isValid&&f.state.next({isValid:R})}},v=x=>d.isValidating&&f.state.next({isValidating:x}),S=(x,R=[],b,Q,D=!0,$=!0)=>{if(Q&&b){if(l.action=!0,$&&Array.isArray(V(i,x))){const G=b(V(i,x),Q.argA,Q.argB);D&&fe(i,x,G)}if($&&Array.isArray(V(r.errors,x))){const G=b(V(r.errors,x),Q.argA,Q.argB);D&&fe(r.errors,x,G),jC(r.errors,x)}if(d.touchedFields&&$&&Array.isArray(V(r.touchedFields,x))){const G=b(V(r.touchedFields,x),Q.argA,Q.argB);D&&fe(r.touchedFields,x,G)}d.dirtyFields&&(r.dirtyFields=Ta(o,s)),f.state.next({name:x,isDirty:W(x,R),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fe(s,x,R)},O=(x,R)=>{fe(r.errors,x,R),f.state.next({errors:r.errors})},P=(x,R,b,Q)=>{const D=V(i,x);if(D){const $=V(s,x,Ce(b)?V(o,x):b);Ce($)||Q&&Q.defaultChecked||R?fe(s,x,R?$:ba(D._f)):ae(x,$),l.mount&&h()}},E=(x,R,b,Q,D)=>{let $=!1,G=!1;const ve={name:x};if(!b||Q){d.isDirty&&(G=r.isDirty,r.isDirty=ve.isDirty=W(),$=G!==ve.isDirty);const xe=Bn(V(o,x),R);G=V(r.dirtyFields,x),xe?Ie(r.dirtyFields,x):fe(r.dirtyFields,x,!0),ve.dirtyFields=r.dirtyFields,$=$||d.dirtyFields&&G!==!xe}if(b){const xe=V(r.touchedFields,x);xe||(fe(r.touchedFields,x,b),ve.touchedFields=r.touchedFields,$=$||d.touchedFields&&xe!==b)}return $&&D&&f.state.next(ve),$?ve:{}},C=(x,R,b,Q)=>{const D=V(r.errors,x),$=d.isValid&&Un(R)&&r.isValid!==R;if(e.delayError&&b?(u=p(()=>O(x,b)),u(e.delayError)):(clearTimeout(c),u=null,b?fe(r.errors,x,b):Ie(r.errors,x)),(b?!Bn(D,b):D)||!ht(Q)||$){const G={...Q,...$&&Un(R)?{isValid:R}:{},errors:r.errors,name:x};r={...r,...G},f.state.next(G)}v(!1)},F=async x=>n.resolver(s,n.context,bC(x||a.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async x=>{const{errors:R}=await F(x);if(x)for(const b of x){const Q=V(R,b);Q?fe(r.errors,b,Q):Ie(r.errors,b)}else r.errors=R;return R},q=async(x,R,b={valid:!0})=>{for(const Q in x){const D=x[Q];if(D){const{_f:$,...G}=D;if($){const ve=a.array.has($.name),xe=await ep(D,s,k,n.shouldUseNativeValidation&&!R,ve);if(xe[$.name]&&(b.valid=!1,R))break;!R&&(V(xe,$.name)?ve?PC(r.errors,xe,$.name):fe(r.errors,$.name,xe[$.name]):Ie(r.errors,$.name))}G&&await q(G,R,b)}}return b.valid},K=()=>{for(const x of a.unMount){const R=V(i,x);R&&(R._f.refs?R._f.refs.every(b=>!Oa(b)):!Oa(R._f.ref))&&he(x)}a.unMount=new Set},W=(x,R)=>(x&&R&&fe(s,x,R),!Bn(H(),o)),Y=(x,R,b)=>kC(x,a,{...l.mount?s:Ce(R)?o:It(x)?{[x]:R}:R},b,R),J=x=>co(V(l.mount?s:o,x,e.shouldUnregister?V(o,x,[]):[])),ae=(x,R,b={})=>{const Q=V(i,x);let D=R;if(Q){const $=Q._f;$&&(!$.disabled&&fe(s,x,nv(R,$)),D=js($.ref)&&qe(R)?"":R,Zg($.ref)?[...$.ref.options].forEach(G=>G.selected=D.includes(G.value)):$.refs?uo($.ref)?$.refs.length>1?$.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray(D)?!!D.find(ve=>ve===G.value):D===G.value)):$.refs[0]&&($.refs[0].checked=!!D):$.refs.forEach(G=>G.checked=G.value===D):Tf($.ref)?$.ref.value="":($.ref.value=D,$.ref.type||f.values.next({name:x,values:{...s}})))}(b.shouldDirty||b.shouldTouch)&&E(x,D,b.shouldTouch,b.shouldDirty,!0),b.shouldValidate&&N(x)},ge=(x,R,b)=>{for(const Q in R){const D=R[Q],$=`${x}.${Q}`,G=V(i,$);(a.array.has(x)||!$s(D)||G&&!G._f)&&!kr(D)?ge($,D,b):ae($,D,b)}},j=(x,R,b={})=>{const Q=V(i,x),D=a.array.has(x),$=Vt(R);fe(s,x,$),D?(f.array.next({name:x,values:{...s}}),(d.isDirty||d.dirtyFields)&&b.shouldDirty&&f.state.next({name:x,dirtyFields:Ta(o,s),isDirty:W(x,$)})):Q&&!Q._f&&!qe($)?ge(x,$,b):ae(x,$,b),Gh(x,a)&&f.state.next({...r}),f.values.next({name:x,values:{...s}}),!l.mount&&t()},A=async x=>{const R=x.target;let b=R.name,Q=!0;const D=V(i,b),$=()=>R.type?ba(D._f):yC(x);if(D){let G,ve;const xe=$(),ir=x.type===qh.BLUR||x.type===qh.FOCUS_OUT,sv=!NC(D._f)&&!n.resolver&&!V(r.errors,b)&&!D._f.deps||_C(ir,V(r.touchedFields,b),r.isSubmitted,w,m),_l=Gh(b,a,ir);fe(s,b,xe),ir?(D._f.onBlur&&D._f.onBlur(x),u&&u(0)):D._f.onChange&&D._f.onChange(x);const jl=E(b,xe,ir,!1),lv=!ht(jl)||_l;if(!ir&&f.values.next({name:b,type:x.type,values:{...s}}),sv)return d.isValid&&h(),lv&&f.state.next({name:b,..._l?{}:jl});if(!ir&&_l&&f.state.next({...r}),v(!0),n.resolver){const{errors:Ff}=await F([b]),av=tp(r.errors,i,b),Df=tp(Ff,i,av.name||b);G=Df.error,b=Df.name,ve=ht(Ff)}else G=(await ep(D,s,k,n.shouldUseNativeValidation))[b],Q=Number.isNaN(xe)||xe===V(s,b,xe),Q&&(G?ve=!1:d.isValid&&(ve=await q(i,!0)));Q&&(D._f.deps&&N(D._f.deps),C(b,ve,G,jl))}},N=async(x,R={})=>{let b,Q;const D=Pa(x);if(v(!0),n.resolver){const $=await L(Ce(x)?x:D);b=ht($),Q=x?!D.some(G=>V($,G)):b}else x?(Q=(await Promise.all(D.map(async $=>{const G=V(i,$);return await q(G&&G._f?{[$]:G}:G)}))).every(Boolean),!(!Q&&!r.isValid)&&h()):Q=b=await q(i);return f.state.next({...!It(x)||d.isValid&&b!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:b}:{},errors:r.errors,isValidating:!1}),R.shouldFocus&&!Q&&qu(i,$=>$&&V(r.errors,$),x?D:a.mount),Q},H=x=>{const R={...o,...l.mount?s:{}};return Ce(x)?R:It(x)?V(R,x):x.map(b=>V(R,b))},B=(x,R)=>({invalid:!!V((R||r).errors,x),isDirty:!!V((R||r).dirtyFields,x),isTouched:!!V((R||r).touchedFields,x),error:V((R||r).errors,x)}),te=x=>{x&&Pa(x).forEach(R=>Ie(r.errors,R)),f.state.next({errors:x?r.errors:{}})},se=(x,R,b)=>{const Q=(V(i,x,{_f:{}})._f||{}).ref;fe(r.errors,x,{...R,ref:Q}),f.state.next({name:x,errors:r.errors,isValid:!1}),b&&b.shouldFocus&&Q&&Q.focus&&Q.focus()},Te=(x,R)=>yn(x)?f.values.subscribe({next:b=>x(Y(void 0,R),b)}):Y(x,R,!0),he=(x,R={})=>{for(const b of x?Pa(x):a.mount)a.mount.delete(b),a.array.delete(b),R.keepValue||(Ie(i,b),Ie(s,b)),!R.keepError&&Ie(r.errors,b),!R.keepDirty&&Ie(r.dirtyFields,b),!R.keepTouched&&Ie(r.touchedFields,b),!n.shouldUnregister&&!R.keepDefaultValue&&Ie(o,b);f.values.next({values:{...s}}),f.state.next({...r,...R.keepDirty?{isDirty:W()}:{}}),!R.keepIsValid&&h()},ke=({disabled:x,name:R,field:b,fields:Q})=>{if(Un(x)){const D=x?void 0:V(s,R,ba(b?b._f:V(Q,R)._f));fe(s,R,D),E(R,D,!1,!1,!0)}},St=(x,R={})=>{let b=V(i,x);const Q=Un(R.disabled);return fe(i,x,{...b||{},_f:{...b&&b._f?b._f:{ref:{name:x}},name:x,mount:!0,...R}}),a.mount.add(x),b?ke({field:b,disabled:R.disabled,name:x}):P(x,!0,R.value),{...Q?{disabled:R.disabled}:{},...n.progressive?{required:!!R.required,min:ui(R.min),max:ui(R.max),minLength:ui(R.minLength),maxLength:ui(R.maxLength),pattern:ui(R.pattern)}:{},name:x,onChange:A,onBlur:A,ref:D=>{if(D){St(x,R),b=V(i,x);const $=Ce(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,G=TC($),ve=b._f.refs||[];if(G?ve.find(xe=>xe===$):$===b._f.ref)return;fe(i,x,{_f:{...b._f,...G?{refs:[...ve.filter(Oa),$,...Array.isArray(V(o,x))?[{}]:[]],ref:{type:$.type,name:x}}:{ref:$}}}),P(x,!1,void 0,$)}else b=V(i,x,{}),b._f&&(b._f.mount=!1),(n.shouldUnregister||R.shouldUnregister)&&!(vC(a.array,x)&&l.action)&&a.unMount.add(x)}}},Xr=()=>n.shouldFocusError&&qu(i,x=>x&&V(r.errors,x),a.mount),$f=(x,R)=>async b=>{b&&(b.preventDefault&&b.preventDefault(),b.persist&&b.persist());let Q=Vt(s);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:D,values:$}=await F();r.errors=D,Q=$}else await q(i);Ie(r.errors,"root"),ht(r.errors)?(f.state.next({errors:{}}),await x(Q,b)):(R&&await R({...r.errors},b),Xr(),setTimeout(Xr)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ht(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ov=(x,R={})=>{V(i,x)&&(Ce(R.defaultValue)?j(x,V(o,x)):(j(x,R.defaultValue),fe(o,x,R.defaultValue)),R.keepTouched||Ie(r.touchedFields,x),R.keepDirty||(Ie(r.dirtyFields,x),r.isDirty=R.defaultValue?W(x,V(o,x)):W()),R.keepError||(Ie(r.errors,x),d.isValid&&h()),f.state.next({...r}))},Lf=(x,R={})=>{const b=x?Vt(x):o,Q=Vt(b),D=x&&!ht(x)?Q:o;if(R.keepDefaultValues||(o=b),!R.keepValues){if(R.keepDirtyValues||y)for(const $ of a.mount)V(r.dirtyFields,$)?fe(D,$,V(s,$)):j($,V(D,$));else{if(Rf&&Ce(x))for(const $ of a.mount){const G=V(i,$);if(G&&G._f){const ve=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(js(ve)){const xe=ve.closest("form");if(xe){xe.reset();break}}}}i={}}s=e.shouldUnregister?R.keepDefaultValues?Vt(o):{}:Vt(D),f.array.next({values:{...D}}),f.values.next({values:{...D}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!d.isValid||!!R.keepIsValid,l.watch=!!e.shouldUnregister,f.state.next({submitCount:R.keepSubmitCount?r.submitCount:0,isDirty:R.keepDirty?r.isDirty:!!(R.keepDefaultValues&&!Bn(x,o)),isSubmitted:R.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:R.keepDirtyValues?r.dirtyFields:R.keepDefaultValues&&x?Ta(o,x):{},touchedFields:R.keepTouched?r.touchedFields:{},errors:R.keepErrors?r.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},If=(x,R)=>Lf(yn(x)?x(s):x,R);return{control:{register:St,unregister:he,getFieldState:B,handleSubmit:$f,setError:se,_executeSchema:F,_getWatch:Y,_getDirty:W,_updateValid:h,_removeUnmounted:K,_updateFieldArray:S,_updateDisabledField:ke,_getFieldArray:J,_reset:Lf,_resetDefaultValues:()=>yn(n.defaultValues)&&n.defaultValues().then(x=>{If(x,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_subjects:f,_proxyFormState:d,get _fields(){return i},get _formValues(){return s},get _state(){return l},set _state(x){l=x},get _defaultValues(){return o},get _names(){return a},set _names(x){a=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:N,register:St,handleSubmit:$f,watch:Te,setValue:j,getValues:H,reset:If,resetField:ov,clearErrors:te,unregister:he,setError:se,setFocus:(x,R={})=>{const b=V(i,x),Q=b&&b._f;if(Q){const D=Q.refs?Q.refs[0]:Q.ref;D.focus&&(D.focus(),R.shouldSelect&&D.select())}},getFieldState:B}}function Nf(e={}){const t=z.useRef(),n=z.useRef(),[r,i]=z.useState({isDirty:!1,isValidating:!1,isLoading:yn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:yn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$C(e,()=>i(s=>({...s}))),formState:r});const o=t.current.control;return o._options=e,EC({subject:o._subjects.state,next:s=>{SC(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),z.useEffect(()=>{e.values&&!Bn(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values):o._resetDefaultValues()},[e.values,o]),z.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=xC(r,o),t.current}const _f=Ee("form",{marginTop:"1.5rem"}),Xt=Ee("div",{"& + div":{marginTop:"1.5rem"}}),Ur=Ee("label",{display:"block",fontSize:"$sm",fontWeight:"500",marginBottom:"0.5rem"}),rv={display:"block",lineHeight:"1.5rem",fontSize:"$sm",borderWidth:"1px",borderColor:"$gray600",backgroundColor:"#f8f4ff",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:focus":{borderWidth:"1px",borderColor:"$gray700",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},borderRadius:"0.375rem",width:"100%",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",margin:0},Br=Ee("input",rv),LC=Ee("textarea",rv),Vr=Ee("div",{display:"block",fontSize:"$sm",fontWeight:"500",color:"$formErrorText",marginTop:"0.5rem"}),jf=Ee("button",{display:"flex",justifyContent:"center",width:"100%",borderWidth:"1px",borderColor:"$brand",backgroundColor:"$brand",color:"$submitButtonText",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",fontWeight:"600",fontSize:"$sm",lineHeight:"1.25rem",borderRadius:"0.375rem","&:hover":{backgroundColor:"$brandAccent",borderColor:"$brandAccent"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),IC=mC({width:"1.25rem",height:"1.25rem"}),FC=()=>g.jsx("svg",{className:IC(),"aria-hidden":"true",fill:"currentColor",viewBox:"0 0 24 24",children:g.jsx("g",{id:"brand",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:g.jsx("g",{id:"google",fill:"#000000",fillRule:"nonzero",children:g.jsx("path",{d:"M11.99,13.9 L11.99,10.18 L21.35,10.18 C21.49,10.81 21.6,11.4 21.6,12.23 C21.6,17.94 17.77,22 12,22 C6.48,22 2,17.52 2,12 C2,6.48 6.48,2 12,2 C14.7,2 16.96,2.99 18.69,4.61 L15.85,7.37 C15.13,6.69 13.87,5.89 12,5.89 C8.69,5.89 5.99,8.64 5.99,12.01 C5.99,15.38 8.69,18.13 12,18.13 C15.83,18.13 17.24,15.48 17.5,13.91 L11.99,13.91 L11.99,13.9 Z",id:"Shape"})})})}),DC=Ee("a",{display:"flex",justifyContent:"center",cursor:"pointer",color:"inherit",backgroundColor:"#f0f0f0",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"$gray600",fontSize:"13px",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:visited":{color:"inherit"},"&:hover":{backgroundColor:"$gray500",color:"inherit"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"});async function MC(e){try{return(await Ut.post("/auth/email/signup",e)).data}catch(t){rr(t)}}async function iv(e){kk(e),await Vg()}async function np(e){try{const t=await Ut.post("/auth/email/login",e);await iv(t.data.token)}catch(t){rr(t)}}function zC({onError:e,showEmailVerificationPending:t,isEmailVerificationRequired:n,onLoginSuccess:r,isLogin:i}){async function o(s){try{i?(await np(s),r()):(await MC(s),n?t():(await np(s),r()))}catch(l){e(l)}}return{handleSubmit:o}}const UC=Ee("div",{position:"relative",marginTop:"1.5rem"}),BC=Ee("div",{position:"absolute",inset:"0px",display:"flex",alignItems:"center"}),VC=Ee("div",{width:"100%",borderTopWidth:"1px",borderColor:"$gray500"}),HC=Ee("div",{position:"relative",display:"flex",justifyContent:"center",fontSize:"$sm"}),QC=Ee("span",{backgroundColor:"white",paddingLeft:"0.5rem",paddingRight:"0.5rem"}),WC=Ee("div",{marginTop:"1.5rem"}),qC=Ee("div",{fontWeight:"500",fontSize:"$sm"}),KC=Ee("div",{marginTop:"0.5rem",display:"flex",variants:{direction:{horizontal:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(48px, 1fr))"},vertical:{flexDirection:"column",margin:"8px 0"}},gap:{small:{gap:"4px"},medium:{gap:"8px"},large:{gap:"16px"}}}}),GC=`${Sf.apiUrl}/auth/google/login`,YC=({state:e,socialButtonsDirection:t="horizontal",additionalSignupFields:n})=>{const{isLoading:r,setErrorMessage:i,setSuccessMessage:o,setIsLoading:s}=I.useContext(fo),l=e==="login",a=l?"Log in":"Sign up",u=io(),c=p=>{var h,v;i({title:p.message,description:(v=(h=p.data)==null?void 0:h.data)==null?void 0:v.message})},d=Nf(),{register:f,formState:{errors:y},handleSubmit:m}=d,{handleSubmit:w}=zC({isLogin:l,onError:c,showEmailVerificationPending(){d.reset(),o("You've signed up successfully! Check your email for the confirmation link.")},onLoginSuccess(){u.push("/chat")},isEmailVerificationRequired:!0});async function k(p){s(!0),i(null),o(null);try{await w(p)}finally{s(!1)}}return g.jsxs(g.Fragment,{children:[g.jsxs(WC,{children:[g.jsxs(qC,{children:[a," with"]}),g.jsx(KC,{gap:"large",direction:t,children:g.jsx(DC,{href:GC,children:g.jsx(FC,{})})})]}),g.jsxs(UC,{children:[g.jsx(BC,{children:g.jsx(VC,{})}),g.jsx(HC,{children:g.jsx(QC,{children:"Or continue with"})})]}),g.jsxs(_f,{onSubmit:m(k),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"E-mail"}),g.jsx(Br,{...f("email",{required:"Email is required"}),type:"email",disabled:r}),y.email&&g.jsx(Vr,{children:y.email.message})]}),g.jsxs(Xt,{children:[g.jsx(Ur,{children:"Password"}),g.jsx(Br,{...f("password",{required:"Password is required"}),type:"password",disabled:r}),y.password&&g.jsx(Vr,{children:y.password.message})]}),g.jsx(XC,{hookForm:d,formState:{isLoading:r},additionalSignupFields:n}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:r,children:a})})]})]})};function XC({hookForm:e,formState:{isLoading:t},additionalSignupFields:n}){const{register:r,formState:{errors:i}}=e;function o(s,l,a){return g.jsxs(Xt,{children:[g.jsx(Ur,{children:s.label}),g.jsx(l,{...r(s.name,s.validations),...a,disabled:t}),i[s.name]&&g.jsx(Vr,{children:i[s.name].message})]},s.name)}return ZC(n)?n(e,{isLoading:t}):n&&n.map(s=>{if(JC(s))return s(e,{isLoading:t});switch(s.type){case"input":return o(s,Br,{type:"text"});case"textarea":return o(s,LC);default:throw new Error(`Unsupported additional signup field type: ${s.type}`)}})}function JC(e){return typeof e=="function"}function ZC(e){return typeof e=="function"}const Af=Ee("div",{padding:"0.5rem 0.75rem",borderRadius:"0.375rem",marginTop:"1rem",background:"$gray400"}),eP=Ee(Af,{background:"$errorBackground",color:"$errorText"}),tP=Ee(Af,{background:"$successBackground",color:"$successText"});async function nP(e){try{return(await Ut.post("/auth/email/request-password-reset",e)).data}catch(t){rr(t)}}async function rP(e){try{return(await Ut.post("/auth/email/reset-password",e)).data}catch(t){rr(t)}}const iP=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=Nf(),{isLoading:i,setErrorMessage:o,setSuccessMessage:s,setIsLoading:l}=I.useContext(fo),a=async u=>{var c,d;l(!0),o(null),s(null);try{await nP(u),n(),s("Check your email for a password reset link.")}catch(f){o({title:f.message,description:(d=(c=f.data)==null?void 0:c.data)==null?void 0:d.message})}finally{l(!1)}};return g.jsx(g.Fragment,{children:g.jsxs(_f,{onSubmit:t(a),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"E-mail"}),g.jsx(Br,{...e("email",{required:"Email is required"}),type:"email",disabled:i}),r.email&&g.jsx(Vr,{children:r.email.message})]}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:i,children:"Send password reset email"})})]})})},oP=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=Nf(),{isLoading:i,setErrorMessage:o,setSuccessMessage:s,setIsLoading:l}=I.useContext(fo),a=Gy(),u=new URLSearchParams(a.search).get("token"),c=async d=>{var f,y;if(!u){o({title:"The token is missing from the URL. Please check the link you received in your email."});return}if(!d.password||d.password!==d.passwordConfirmation){o({title:"Passwords don't match!"});return}l(!0),o(null),s(null);try{await rP({password:d.password,token:u}),n(),s("Your password has been reset.")}catch(m){o({title:m.message,description:(y=(f=m.data)==null?void 0:f.data)==null?void 0:y.message})}finally{l(!1)}};return g.jsx(g.Fragment,{children:g.jsxs(_f,{onSubmit:t(c),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"New password"}),g.jsx(Br,{...e("password",{required:"Password is required"}),type:"password",disabled:i}),r.passwordConfirmation&&g.jsx(Vr,{children:r.passwordConfirmation.message})]}),g.jsxs(Xt,{children:[g.jsx(Ur,{children:"Confirm new password"}),g.jsx(Br,{...e("passwordConfirmation",{required:"Password confirmation is required"}),type:"password",disabled:i}),r.passwordConfirmation&&g.jsx(Vr,{children:r.passwordConfirmation.message})]}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:i,children:"Reset password"})})]})})};async function sP(e){try{return(await Ut.post("/auth/email/verify-email",e)).data}catch(t){rr(t)}}const lP=()=>{const{isLoading:e,setErrorMessage:t,setSuccessMessage:n,setIsLoading:r}=I.useContext(fo),i=Gy(),o=new URLSearchParams(i.search).get("token");async function s(){var l,a;if(!o){t({title:"The token is missing from the URL. Please check the link you received in your email."});return}r(!0),t(null),n(null);try{await sP({token:o}),n("Your email has been verified. You can now log in.")}catch(u){t({title:u.message,description:(a=(l=u.data)==null?void 0:l.data)==null?void 0:a.message})}finally{r(!1)}}return I.useEffect(()=>{s()},[i]),g.jsx(g.Fragment,{children:e&&g.jsx(Af,{children:"Verifying email..."})})},aP={height:"3rem"},uP=Ee("div",{display:"flex",flexDirection:"column"}),cP=Ee("h2",{fontSize:"1.875rem",fontWeight:"700",marginTop:"1.5rem"}),fo=I.createContext({isLoading:!1,setIsLoading:e=>{},setErrorMessage:e=>{},setSuccessMessage:e=>{}});function ho({state:e,appearance:t,logo:n,socialLayout:r="horizontal",additionalSignupFields:i}){const[o,s]=I.useState(null),[l,a]=I.useState(null),[u,c]=I.useState(!1),d=pC(t??{}),y={login:"Log in to your account",signup:"Create a new account","forgot-password":"Forgot your password?","reset-password":"Reset your password","verify-email":"Email verification"}[e],m=r==="vertical"?"vertical":"horizontal";return g.jsxs(uP,{className:d,children:[g.jsxs("div",{children:[n&&g.jsx("img",{style:aP,src:n,alt:"Your Company"}),g.jsx(cP,{children:y})]}),o&&g.jsxs(eP,{children:[o.title,o.description&&": ",o.description]}),l&&g.jsx(tP,{children:l}),g.jsxs(fo.Provider,{value:{isLoading:u,setIsLoading:c,setErrorMessage:s,setSuccessMessage:a},children:[(e==="login"||e==="signup")&&g.jsx(YC,{state:e,socialButtonsDirection:m,additionalSignupFields:i}),e==="forgot-password"&&g.jsx(iP,{}),e==="reset-password"&&g.jsx(oP,{}),e==="verify-email"&&g.jsx(lP,{})]})]})}var Yr=(e=>(e.Login="login",e.Signup="signup",e.ForgotPassword="forgot-password",e.ResetPassword="reset-password",e.VerifyEmail="verify-email",e))(Yr||{});function fP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.Login})}function po({children:e}){return g.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsx("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:g.jsx("div",{className:"-mt-8",children:e})})})})}const dP={colors:{brand:"#0da37f",brandAccent:"#066d55",submitButtonText:"white"}};function hP(){const e=io(),{data:t}=Cf();return I.useEffect(()=>{t&&e.push("/")},[t,e]),g.jsxs(po,{children:[g.jsx(fP,{appearance:dP}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Don't have an account yet?"," ",g.jsx(Zn,{to:"/signup",className:"underline",children:"go to signup"}),"."]}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Forgot your password?"," ",g.jsx(Zn,{to:"/request-password-reset",className:"underline",children:"reset it"}),"."]})]})}function pP({appearance:e,logo:t,socialLayout:n,additionalFields:r}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.Signup,additionalSignupFields:r})}function mP(){return g.jsxs(po,{children:[g.jsx(pP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["I already have an account (",g.jsx(Zn,{to:"/login",className:"underline",children:"go to login"}),")."]}),g.jsx("br",{})]})}function yP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.ForgotPassword})}function gP(){return g.jsx(po,{children:g.jsx(yP,{})})}function vP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.ResetPassword})}function wP(){return g.jsxs(po,{children:[g.jsx(vP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",g.jsx(Zn,{to:"/login",children:"go to login"})]})]})}function xP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.VerifyEmail})}function SP(){return g.jsxs(po,{children:[g.jsx(xP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",g.jsx(Zn,{to:"/login",className:"underline",children:"go to login"})]})]})}function Nl(e,t){const n=Bg(e);async function r(o,s){bk(s);try{return await Ug(n,o)}finally{await Nk(t,s)}}const i=o=>r(o,[]);return i.internal=r,i}const EP=Nl("operations/stripe-payment",["User"]),kP=[{name:"Credits",id:"credits",href:"",price:"$2.95",description:"Buy credits to use for your projects.",features:["10 credits","Use them any time","No expiration date"],disabled:!0},{name:"Monthly Subscription",id:"monthly",href:"#",priceMonthly:"$9.99",description:"Get unlimited usage for your projects.",features:["Unlimited usage of all features","Priority support","Cancel any time"]}];function CP(){const[e,t]=I.useState(!1),n=async()=>{t(!0);try{const r=await EP();r!=null&&r.sessionUrl&&window.open(r.sessionUrl,"_self")}catch(r){alert("Something went wrong. Please try again."),console.error(r)}finally{t(!1)}};return g.jsx("div",{className:"mt-10 pb-24 sm:pb-32",children:g.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:g.jsx("div",{className:"mx-auto grid max-w-md grid-cols-1 gap-8 lg:max-w-4xl lg:grid-cols-2",children:kP.map(r=>g.jsxs("div",{className:"flex flex-col justify-between rounded-3xl bg-white p-8 shadow-xl ring-1 ring-gray-900/10 sm:p-10",children:[g.jsxs("div",{children:[g.jsx("h3",{id:r.id,className:"text-base font-semibold leading-7 text-indigo-600",children:r.name}),g.jsxs("div",{className:"mt-4 flex items-baseline gap-x-2",children:[g.jsx("span",{className:"text-5xl font-bold tracking-tight text-gray-900",children:r.priceMonthly||r.price}),r.priceMonthly&&g.jsx("span",{className:"text-base font-semibold leading-7 text-gray-600",children:"/month"})]}),g.jsx("p",{className:"mt-6 text-base leading-7 text-gray-600",children:r.description}),g.jsx("ul",{role:"list",className:"mt-10 space-y-4 text-sm leading-6 text-gray-600",children:r.features.map(i=>g.jsxs("li",{className:"flex gap-x-3",children:[g.jsx(vS,{className:"h-6 w-5 flex-none text-indigo-600","aria-hidden":"true"}),i]},i))})]}),g.jsx("button",{onClick:n,"aria-describedby":r.id,disabled:r.disabled,className:`${r.disabled&&"disabled:opacity-25 disabled:cursor-not-allowed"} mt-8 block rounded-md bg-yellow-400 px-3.5 py-2 text-center text-sm font-semibold leading-6 text-black shadow-sm hover:bg-yellow-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600`,children:e?"Loading...":"Buy Now"})]},r.id))})})})}async function PP(){Pk(),await Vg()}function RP({user:e}){return I.useState(!1),g.jsxs("div",{className:"mt-10 px-6 mx-auto w-1/2",children:[g.jsxs("div",{className:"overflow-hidden bg-white ring-1 ring-gray-900/10 shadow-lg sm:rounded-lg lg:m-8 ",children:[g.jsx("div",{className:"px-4 py-5 sm:px-6 lg:px-8",children:g.jsx("h3",{className:"text-base font-semibold leading-6 text-gray-900",children:"Account Information"})}),g.jsx("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:g.jsx("dl",{className:"sm:divide-y sm:divide-gray-200",children:g.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[g.jsx("dt",{className:"text-sm font-medium text-gray-500",children:"Email address"}),g.jsx("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:e.email})]})})})]}),g.jsx("div",{className:"inline-flex w-full justify-end",children:g.jsx("button",{onClick:PP,className:"inline-flex justify-center mx-8 py-2 px-4 border border-transparent shadow-md text-sm font-medium rounded-md text-white bg-captn-cta-red hover:bg-captn-cta-red-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"logout"})})]})}function OP({user:e}){const[t,n]=I.useState("loading"),r=io();return I.useEffect(()=>{function i(){return setTimeout(()=>{r.push("/account")},4e3)}const o=new URLSearchParams(window.location.search),s=o.get("canceled"),l=o.get("success");return o.get("credits"),s?n("canceled"):l?n("paid"):r.push("/account"),i(),()=>{clearTimeout(i())}},[]),g.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsxs("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:[g.jsx("h1",{children:t==="paid"?"🥳 Payment Successful!":t==="canceled"?"😢 Payment Canceled":t==="error"&&"🙄 Payment Error"}),t!=="loading"&&g.jsxs("span",{className:"text-center",children:["You are being redirected to your account page... ",g.jsx("br",{})]})]})})})}const TP=Hg("operations/get-chats",["Chat"]),bP=Hg("operations/get-conversations",["Conversation"]),NP=Nl("operations/create-chat",["Chat","Conversation"]),rp=Nl("operations/update-conversation",["Chat","Conversation"]),_P=Nl("operations/generate-open-airesponse",["Chat","Conversation"]),jP=({chats:e})=>e!=null&&e.length?g.jsx("div",{children:e.map((t,n)=>g.jsx(MP,{to:"/chat/:id?",params:{id:t.id},children:g.jsx("li",{children:g.jsxs("div",{className:"flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group",children:[g.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),g.jsx("span",{className:"ml-3",children:t.id})]})},n)},t.id))}):g.jsx("div",{children:"No chats"}),AP=({conversations:e})=>{if(!(e!=null&&e.length))return g.jsx("div",{children:"No conversations"});const t=e.filter(n=>n.role!=="system");return g.jsx("div",{className:"w-full",children:t.map((n,r)=>{const i=n.role==="user"?"captn-light-blue":"captn-dark-blue",o=n.role==="user"?g.jsx("div",{style:{alignItems:"center",background:"#fff",borderRadius:"50%",color:"#444654",display:"flex",flexBasis:"40px",flexGrow:"0",flexShrink:"0",fontSize:"14px",height:"40px",justifyContent:"center",padding:"5px",position:"relative",width:"40px"},className:"flex",children:g.jsx("div",{children:"You"})}):g.jsx("img",{alt:"captn logo",src:Xy,className:"w-full h-full",style:{borderRadius:"50%"}});return g.jsx("div",{children:g.jsx("div",{style:{minHeight:"85px"},className:`flex items-center p-2 text-gray-900 dark:text-white group bg-${i}`,children:g.jsxs("div",{style:{maxWidth:"840px",margin:"auto"},className:`relative ml-3 block w-full p-4 pl-10 text-sm text-gray-900 border-${i} rounded-lg bg-${i} dark:bg-${i} dark:border-${i} dark:placeholder-gray-400 dark:text-white`,children:[g.jsx("span",{className:"absolute inline-block",style:{left:"-15px",top:"6px",height:" 45px",width:"45px"},children:o}),g.jsx("span",{className:"text-base",children:n.content})]})})},r)})})};function $P(e){I.useState(!1);const[t,n]=I.useState([{}]),[r,i]=I.useState(null),{data:o,isLoading:s}=Mu(TP),{data:l,isLoading:a}=Mu(bP,{chatId:Number(e.match.params.id)}),u=io(),c=async f=>{f.preventDefault();try{const y=await NP();n(y.conversation),i(y.id),u.push(`/chat/${y.chatId}`)}catch(y){window.alert("Error: "+y.message)}},d=async f=>{f.preventDefault(),console.log("conversationId"),console.log(r);try{const y=f.target,m=y.userQuery.value;y.reset();const w={conversation_id:l.id,conversations:[...l.conversation,{role:"user",content:m}]};await rp(w);const k=await _P({conversation:w.conversations}),p={conversation_id:l.id,conversations:[...w.conversations,{role:"assistant",content:k.content}]};await rp(p)}catch(y){window.alert("Error: "+y.message)}};return g.jsxs("div",{className:"relative z-0 flex h-full w-full overflow-hidden h-screen",children:[g.jsx("div",{id:"default-sidebar",style:{width:"260px"},className:"flex-shrink-0 overflow-x-hidden dark bg-captn-dark-blue gizmo:bg-black","aria-label":"Sidebar",children:g.jsxs("div",{className:"border-x-captn-light-cream h-full px-3 py-4 overflow-y-auto bg-captn-dark-blue dark:bg-captn-dark-blue",children:[g.jsx("div",{className:"mb-1 flex flex-row gap-2",children:g.jsxs("button",{onClick:c,className:"flex px-3 min-h-[44px] py-1 items-center gap-3 transition-colors duration-200 dark:text-white cursor-pointer text-sm rounded-md rounded-md text-white bg-captn-cta-green hover:bg-captn-cta-green-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 flex-grow overflow-hidden",children:[g.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm shrink-0",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),g.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"New chat"]})}),g.jsx("div",{className:"flex-col flex-1 transition-opacity duration-500 -mr-2 pr-2 overflow-y-auto",children:g.jsx("ul",{className:"py-5 space-y-2 font-medium",children:o&&g.jsx(jP,{chats:o})})})]})}),g.jsx("div",{className:"relative flex h-full max-w-full flex-1 flex-col overflow-hidden bg-captn-light-blue",children:g.jsx("div",{className:"relative h-full w-full flex-1 overflow-auto transition-width",children:g.jsx("div",{className:"flex h-full flex-col",children:g.jsxs("div",{className:"flex-1 overflow-hidden",children:[g.jsx("div",{className:"flex h-full flex-col items-center justify-between pb-24 overflow-y-auto bg-captn-light-blue",style:{height:"85%"},children:l&&g.jsx(AP,{conversations:l.conversation})}),e.match.params.id?g.jsx("div",{className:"w-full pt-2 md:pt-0 border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:pl-2 gizmo:pl-0 gizmo:md:pl-0 md:w-[calc(100%-.5rem)] absolute bottom-100 left-0 md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient",children:g.jsxs("form",{onSubmit:d,className:"",children:[g.jsx("label",{htmlFor:"search",className:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"}),g.jsx("input",{type:"search",id:"userQuery",name:"search",className:"block w-full p-4 pl-5 text-sm text-gray-900 border border-gray-300 rounded-lg bg-captn-dark-blue focus:ring-blue-500 focus:border-blue-500 dark:bg-captn-dark-blue dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send a message",required:!0}),g.jsx("button",{type:"submit",className:"text-white absolute right-2.5 bottom-2.5 bg-captn-cta-green hover:bg-captn-cta-green-hover focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-captn-cta-green dark:hover:bg-captn-cta-green-hover dark:focus:ring-blue-800",children:"Send"})]})]})}):g.jsx("p",{className:"text-captn-light-cream opacity-70",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"60px"},children:"Please initiate a new chat or select existing chats to resume your conversation."})]})})})})]})}function LP({pathToApiServerRouteHandlingOauthRedirect:e}){const t=io(),n=I.useRef(!0);return I.useEffect(()=>{if(!n.current)return;const r=IP(e);return FP(t,r),()=>{n.current=!1}},[t,e]),g.jsx("p",{children:"Completing login process..."})}function IP(e){const t=window.location.search;return`${Sf.apiUrl}${e}${t}`}async function FP(e,t){const n=await DP(t);n!==null?(await iv(n),e.push("/chat")):(console.error("Error obtaining JWT token"),e.push("/login"))}async function DP(e){var t;try{const n=await Ut.get(e);return((t=n==null?void 0:n.data)==null?void 0:t.token)||null}catch(n){return console.error(n),null}}function MP({to:e,params:t,search:n,hash:r,...i}){const o=I.useMemo(()=>kt(e,t,n,r),[e,t]);return g.jsx(Zn,{to:o,...i})}const zP={RootRoute:{to:"/",component:zk,build:e=>kt("/",void 0,e.search,e.hash)},LoginRoute:{to:"/login",component:hP,build:e=>kt("/login",void 0,e.search,e.hash)},SignupRoute:{to:"/signup",component:mP,build:e=>kt("/signup",void 0,e.search,e.hash)},RequestPasswordResetRoute:{to:"/request-password-reset",component:gP,build:e=>kt("/request-password-reset",void 0,e.search,e.hash)},PasswordResetRoute:{to:"/password-reset",component:wP,build:e=>kt("/password-reset",void 0,e.search,e.hash)},EmailVerificationRoute:{to:"/email-verification",component:SP,build:e=>kt("/email-verification",void 0,e.search,e.hash)},PricingRoute:{to:"/pricing",component:CP,build:e=>kt("/pricing",void 0,e.search,e.hash)},AccountRoute:{to:"/account",component:ka(RP),build:e=>kt("/account",void 0,e.search,e.hash)},CheckoutRoute:{to:"/checkout",component:ka(OP),build:e=>kt("/checkout",void 0,e.search,e.hash)},ChatRoute:{to:"/chat/:id?",component:ka($P),build:e=>kt("/chat/:id?",e.params,e.search,e.hash)}},UP=g.jsx(_x,{children:g.jsx(Dk,{children:g.jsxs(Nx,{children:[Object.entries(zP).map(([e,t])=>g.jsx(gh,{exact:!0,path:t.to,component:t.component},e)),g.jsx(gh,{exact:!0,path:"/auth/login/google",children:g.jsx(LP,{pathToApiServerRouteHandlingOauthRedirect:"/auth/google/callback"})})]})})});BP();async function BP(){nE(),await VP()}async function VP(){const e=await pf;Na.createRoot(document.getElementById("root")).render(g.jsx(z.StrictMode,{children:g.jsx(dw,{client:e,children:UP})}))} diff --git a/assets/index-03f7a628.css b/assets/index-976b826a.css similarity index 77% rename from assets/index-03f7a628.css rename to assets/index-976b826a.css index 0df2a49..ccf5993 100644 --- a/assets/index-03f7a628.css +++ b/assets/index-976b826a.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variation-settings:normal}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-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;-webkit-font-feature-settings:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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::-webkit-input-placeholder,textarea::-webkit-input-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]{display:none}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--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);border-color:#2563eb}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--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)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,: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: }::-webkit-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: }::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: }.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.-inset-y-px{top:-1px;bottom:-1px}.inset-y-0{top:0;bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.left-0{left:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.top-0{top:0}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-0{z-index:0}.z-50{z-index:50}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mr-2{margin-right:-.5rem}.-mt-8{margin-top:-2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[44px\]{min-height:44px}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[200\%\]{width:200%}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.gap-x-2{-webkit-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-webkit-column-gap:.75rem;column-gap:.75rem}.gap-x-6{-webkit-column-gap:1.5rem;column-gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * 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))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-3xl{border-radius:1.5rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-x-captn-light-cream{--tw-border-opacity: 1;border-left-color:rgb(234 228 217 / var(--tw-border-opacity));border-right-color:rgb(234 228 217 / var(--tw-border-opacity))}.bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.bg-captn-cta-red{--tw-bg-opacity: 1;background-color:rgb(229 115 115 / var(--tw-bg-opacity))}.bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.bg-captn-light-blue{--tw-bg-opacity: 1;background-color:rgb(111 170 188 / var(--tw-bg-opacity))}.bg-captn-light-cream{--tw-bg-opacity: 1;background-color:rgb(234 228 217 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.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}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-captn-dark-blue{--tw-text-opacity: 1;color:rgb(0 56 81 / var(--tw-text-opacity))}.text-captn-light-cream{--tw-text-opacity: 1;color:rgb(234 228 217 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--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)}.ring-inset{--tw-ring-inset: inset}.ring-gray-900\/10{--tw-ring-color: rgb(17 24 39 / .1)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter: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-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-500{transition-duration:.5s}.\[clip-path\:inset\(0\)\]{-webkit-clip-path:inset(0);clip-path:inset(0)}@font-face{font-family:Panton-SemiBold;src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot);src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot?#iefix) format("embedded-opentype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff2) format("woff2"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff) format("woff"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.ttf) format("truetype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.svg#Panton-SemiBold) format("svg")}body{margin:0;font-family:Panton-SemiBold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}a{color:rgb(79 70 229 / var(--tw-text-opacity))}a:hover{color:rgb(99 102 241 / var(--tw-text-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.hover\:bg-captn-cta-red-hover:hover{--tw-bg-opacity: 1;background-color:rgb(239 83 80 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.hover\:bg-yellow-600:hover{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity))}.hover\:text-black\/70:hover{color:#000000b3}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-indigo-500:hover{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.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-4: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(4px + 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-inset:focus{--tw-ring-inset: inset}.focus\:ring-indigo-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-500:focus-visible{outline-color:#6366f1}.focus-visible\:outline-yellow-600:focus-visible{outline-color:#ca8a04}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}@media (prefers-color-scheme: dark){.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-white\/20{border-color:#fff3}.dark\:bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.dark\:bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400::-webkit-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}}@media (min-width: 640px){.sm\:col-span-1{grid-column:span 1 / span 1}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:mt-24{margin-top:6rem}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-md{max-width:28rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:gap-4{gap:1rem}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-10{padding:2.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pb-32{padding-bottom:8rem}.sm\:pt-16{padding-top:4rem}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 768px){.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:w-\[calc\(100\%-\.5rem\)\]{width:calc(100% - .5rem)}.md\:max-w-2xl{max-width:42rem}.md\:rounded-3xl{border-radius:1.5rem}.md\:border-t-0{border-top-width:0px}.md\:border-transparent{border-color:transparent}.md\:\!bg-transparent{background-color:transparent!important}.md\:pl-16{padding-left:4rem}.md\:pl-2{padding-left:.5rem}.md\:pr-0{padding-right:0}.md\:pt-0{padding-top:0}.md\:\[clip-path\:inset\(0_round_theme\(borderRadius\.3xl\)\)\]{-webkit-clip-path:inset(0 round 1.5rem);clip-path:inset(0 round 1.5rem)}@media (prefers-color-scheme: dark){.md\:dark\:border-transparent{border-color:transparent}}}@media (min-width: 1024px){.lg\:m-8{margin:2rem}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:mt-0{margin-top:0}.lg\:grid{display:grid}.lg\:w-screen{width:100vw}.lg\:max-w-4xl{max-width:56rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gap-x-8{-webkit-column-gap:2rem;column-gap:2rem}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-16{padding-left:4rem;padding-right:4rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-32{padding-top:8rem;padding-bottom:8rem}.lg\:pt-4{padding-top:1rem}}@media (min-width: 1280px){.xl\:col-auto{grid-column:auto}} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variation-settings:normal}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-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;-webkit-font-feature-settings:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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::-webkit-input-placeholder,textarea::-webkit-input-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]{display:none}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--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);border-color:#2563eb}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--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)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,: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: }::-webkit-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: }::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: }.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.-inset-y-px{top:-1px;bottom:-1px}.inset-y-0{top:0;bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.left-0{left:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.top-0{top:0}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-0{z-index:0}.z-50{z-index:50}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mr-2{margin-right:-.5rem}.-mt-8{margin-top:-2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[44px\]{min-height:44px}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[200\%\]{width:200%}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.gap-x-2{-webkit-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-webkit-column-gap:.75rem;column-gap:.75rem}.gap-x-6{-webkit-column-gap:1.5rem;column-gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * 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))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-3xl{border-radius:1.5rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-x-captn-light-cream{--tw-border-opacity: 1;border-left-color:rgb(234 228 217 / var(--tw-border-opacity));border-right-color:rgb(234 228 217 / var(--tw-border-opacity))}.bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.bg-captn-cta-red{--tw-bg-opacity: 1;background-color:rgb(229 115 115 / var(--tw-bg-opacity))}.bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.bg-captn-light-blue{--tw-bg-opacity: 1;background-color:rgb(111 170 188 / var(--tw-bg-opacity))}.bg-captn-light-cream{--tw-bg-opacity: 1;background-color:rgb(234 228 217 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.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}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-captn-dark-blue{--tw-text-opacity: 1;color:rgb(0 56 81 / var(--tw-text-opacity))}.text-captn-light-cream{--tw-text-opacity: 1;color:rgb(234 228 217 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--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)}.ring-inset{--tw-ring-inset: inset}.ring-gray-900\/10{--tw-ring-color: rgb(17 24 39 / .1)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter: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-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-500{transition-duration:.5s}.\[clip-path\:inset\(0\)\]{-webkit-clip-path:inset(0);clip-path:inset(0)}@font-face{font-family:Panton-SemiBold;src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot);src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot?#iefix) format("embedded-opentype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff2) format("woff2"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff) format("woff"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.ttf) format("truetype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.svg#Panton-SemiBold) format("svg")}body{margin:0;font-family:Panton-SemiBold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}a{color:rgb(79 70 229 / var(--tw-text-opacity))}a:hover{color:rgb(99 102 241 / var(--tw-text-opacity))}.chat-conversations ol,.chat-conversations ul,.chat-conversations li{list-style:auto;margin:10px}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.hover\:bg-captn-cta-red-hover:hover{--tw-bg-opacity: 1;background-color:rgb(239 83 80 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.hover\:bg-yellow-600:hover{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity))}.hover\:text-black\/70:hover{color:#000000b3}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-indigo-500:hover{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.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-4: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(4px + 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-inset:focus{--tw-ring-inset: inset}.focus\:ring-indigo-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-500:focus-visible{outline-color:#6366f1}.focus-visible\:outline-yellow-600:focus-visible{outline-color:#ca8a04}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}@media (prefers-color-scheme: dark){.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-white\/20{border-color:#fff3}.dark\:bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.dark\:bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400::-webkit-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}}@media (min-width: 640px){.sm\:col-span-1{grid-column:span 1 / span 1}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:mt-24{margin-top:6rem}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-md{max-width:28rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:gap-4{gap:1rem}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-10{padding:2.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pb-32{padding-bottom:8rem}.sm\:pt-16{padding-top:4rem}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 768px){.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:w-\[calc\(100\%-\.5rem\)\]{width:calc(100% - .5rem)}.md\:max-w-2xl{max-width:42rem}.md\:rounded-3xl{border-radius:1.5rem}.md\:border-t-0{border-top-width:0px}.md\:border-transparent{border-color:transparent}.md\:\!bg-transparent{background-color:transparent!important}.md\:pl-16{padding-left:4rem}.md\:pl-2{padding-left:.5rem}.md\:pr-0{padding-right:0}.md\:pt-0{padding-top:0}.md\:\[clip-path\:inset\(0_round_theme\(borderRadius\.3xl\)\)\]{-webkit-clip-path:inset(0 round 1.5rem);clip-path:inset(0 round 1.5rem)}@media (prefers-color-scheme: dark){.md\:dark\:border-transparent{border-color:transparent}}}@media (min-width: 1024px){.lg\:m-8{margin:2rem}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:mt-0{margin-top:0}.lg\:grid{display:grid}.lg\:w-screen{width:100vw}.lg\:max-w-4xl{max-width:56rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gap-x-8{-webkit-column-gap:2rem;column-gap:2rem}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-16{padding-left:4rem;padding-right:4rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-32{padding-top:8rem;padding-bottom:8rem}.lg\:pt-4{padding-top:1rem}}@media (min-width: 1280px){.xl\:col-auto{grid-column:auto}} diff --git a/assets/index-ba5bd05d.js b/assets/index-ba5bd05d.js new file mode 100644 index 0000000..b0f8404 --- /dev/null +++ b/assets/index-ba5bd05d.js @@ -0,0 +1,82 @@ +var ax=Object.defineProperty;var ux=(e,t,n)=>t in e?ax(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var za=(e,t,n)=>(ux(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cg={exports:{}},Ds={},bg={exports:{}},ce={};/** + * @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 Uo=Symbol.for("react.element"),cx=Symbol.for("react.portal"),fx=Symbol.for("react.fragment"),dx=Symbol.for("react.strict_mode"),px=Symbol.for("react.profiler"),hx=Symbol.for("react.provider"),mx=Symbol.for("react.context"),gx=Symbol.for("react.forward_ref"),yx=Symbol.for("react.suspense"),vx=Symbol.for("react.memo"),xx=Symbol.for("react.lazy"),gp=Symbol.iterator;function wx(e){return e===null||typeof e!="object"?null:(e=gp&&e[gp]||e["@@iterator"],typeof e=="function"?e:null)}var Pg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rg=Object.assign,Tg={};function Ri(e,t,n){this.props=e,this.context=t,this.refs=Tg,this.updater=n||Pg}Ri.prototype.isReactComponent={};Ri.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")};Ri.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Og(){}Og.prototype=Ri.prototype;function wf(e,t,n){this.props=e,this.context=t,this.refs=Tg,this.updater=n||Pg}var Sf=wf.prototype=new Og;Sf.constructor=wf;Rg(Sf,Ri.prototype);Sf.isPureReactComponent=!0;var yp=Array.isArray,Ag=Object.prototype.hasOwnProperty,kf={current:null},Ng={key:!0,ref:!0,__self:!0,__source:!0};function Ig(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Ag.call(t,r)&&!Ng.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,Q=D[W];if(0>>1;Wi(xe,y))lei(we,xe)?(D[W]=we,D[le]=y,W=le):(D[W]=xe,D[ae]=y,W=ae);else if(lei(we,y))D[W]=we,D[le]=y,W=le;else break e}}return z}function i(D,z){var y=D.sortIndex-z.sortIndex;return y!==0?y:D.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,d=3,p=!1,m=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(D){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=D)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function b(D){if(x=!1,v(D),!m)if(n(a)!==null)m=!0,ie(R);else{var z=n(u);z!==null&&se(b,z.startTime-D)}}function R(D,z){m=!1,x&&(x=!1,h(T),T=-1),p=!0;var y=d;try{for(v(z),f=n(a);f!==null&&(!(f.expirationTime>z)||D&&!j());){var W=f.callback;if(typeof W=="function"){f.callback=null,d=f.priorityLevel;var Q=W(f.expirationTime<=z);z=e.unstable_now(),typeof Q=="function"?f.callback=Q:f===n(a)&&r(a),v(z)}else r(a);f=n(a)}if(f!==null)var S=!0;else{var ae=n(u);ae!==null&&se(b,ae.startTime-z),S=!1}return S}finally{f=null,d=y,p=!1}}var k=!1,P=null,T=-1,F=5,_=-1;function j(){return!(e.unstable_now()-_D||125W?(D.sortIndex=y,t(u,D),n(a)===null&&D===n(u)&&(x?(h(T),T=-1):x=!0,se(b,y-W))):(D.sortIndex=Q,t(a,D),m||p||(m=!0,ie(R))),D},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(D){var z=d;return function(){var y=d;d=z;try{return D.apply(this,arguments)}finally{d=y}}}})(Fg);jg.exports=Fg;var Nx=jg.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 Dg=H,Pt=Nx;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qu=Object.prototype.hasOwnProperty,Ix=/^[: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]*$/,xp={},wp={};function _x(e){return Qu.call(wp,e)?!0:Qu.call(xp,e)?!1:Ix.test(e)?wp[e]=!0:(xp[e]=!0,!1)}function Lx(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 jx(e,t,n,r){if(t===null||typeof t>"u"||Lx(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 ut(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cf=/[\-:]([a-z])/g;function bf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cf,bf);Xe[t]=new ut(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(Cf,bf);Xe[t]=new ut(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(Cf,bf);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pf(e,t,n,r){var i=Xe.hasOwnProperty(t)?Xe[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` +`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Ba=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yi(e):""}function Fx(e){switch(e.tag){case 5:return Yi(e.type);case 16:return Yi("Lazy");case 13:return Yi("Suspense");case 19:return Yi("SuspenseList");case 0:case 2:case 15:return e=Ua(e.type,!1),e;case 11:return e=Ua(e.type.render,!1),e;case 1:return e=Ua(e.type,!0),e;default:return""}}function Xu(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 qr:return"Fragment";case Hr:return"Portal";case Ku:return"Profiler";case Rf:return"StrictMode";case Gu:return"Suspense";case Yu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $g:return(e.displayName||"Context")+".Consumer";case Mg:return(e._context.displayName||"Context")+".Provider";case Tf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Of:return t=e.displayName||null,t!==null?t:Xu(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Xu(e(t))}catch{}}return null}function Dx(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 Xu(t);case 8:return t===Rf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ug(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zx(e){var t=Ug(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cl(e){e._valueTracker||(e._valueTracker=zx(e))}function Vg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ug(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zl(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 Ju(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(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 Hg(e,t){t=t.checked,t!=null&&Pf(e,"checked",t,!1)}function Zu(e,t){Hg(e,t);var n=nr(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")?ec(e,t.type,n):t.hasOwnProperty("defaultValue")&&ec(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ep(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 ec(e,t,n){(t!=="number"||Zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xi=Array.isArray;function oi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var no={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},Mx=["Webkit","ms","Moz","O"];Object.keys(no).forEach(function(e){Mx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),no[t]=no[e]})});function Kg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||no.hasOwnProperty(e)&&no[e]?(""+t).trim():t+"px"}function Gg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Kg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $x=Ne({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 rc(e,t){if(t){if($x[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function ic(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 oc=null;function Af(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lc=null,li=null,si=null;function Pp(e){if(e=qo(e)){if(typeof lc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Us(t),lc(e.stateNode,e.type,t))}}function Yg(e){li?si?si.push(e):si=[e]:li=e}function Xg(){if(li){var e=li,t=si;if(si=li=null,Pp(e),t)for(e=0;e>>=0,e===0?32:31-(Xx(e)/Jx|0)|0}var dl=64,pl=4194304;function Ji(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 rs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=Ji(s):(o&=l,o!==0&&(r=Ji(o)))}else l=n&~i,l!==0?r=Ji(l):o!==0&&(r=Ji(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 Vo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yt(t),e[t]=n}function nw(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=io),jp=String.fromCharCode(32),Fp=!1;function yy(e,t){switch(e){case"keyup":return Aw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function Iw(e,t){switch(e){case"compositionend":return vy(t);case"keypress":return t.which!==32?null:(Fp=!0,jp);case"textInput":return e=t.data,e===jp&&Fp?null:e;default:return null}}function _w(e,t){if(Wr)return e==="compositionend"||!zf&&yy(e,t)?(e=my(),Ll=jf=Un=null,Wr=!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=$p(n)}}function ky(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ky(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ey(){for(var e=window,t=Zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zl(e.document)}return t}function Mf(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 Uw(e){var t=Ey(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ky(n.ownerDocument.documentElement,n)){if(r!==null&&Mf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Bp(n,o);var l=Bp(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Qr=null,dc=null,lo=null,pc=!1;function Up(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pc||Qr==null||Qr!==Zl(r)||(r=Qr,"selectionStart"in r&&Mf(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}),lo&&Co(lo,r)||(lo=r,r=ls(dc,"onSelect"),0Yr||(e.current=xc[Yr],xc[Yr]=null,Yr--)}function ke(e,t){Yr++,xc[Yr]=e.current,e.current=t}var rr={},nt=sr(rr),mt=sr(!1),Pr=rr;function hi(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gt(e){return e=e.childContextTypes,e!=null}function as(){be(mt),be(nt)}function Gp(e,t,n){if(nt.current!==rr)throw Error(M(168));ke(nt,t),ke(mt,n)}function Iy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,Dx(e)||"Unknown",i));return Ne({},n,r)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Pr=nt.current,ke(nt,e),ke(mt,mt.current),!0}function Yp(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Iy(e,t,Pr),r.__reactInternalMemoizedMergedChildContext=e,be(mt),be(nt),ke(nt,e)):be(mt),ke(mt,n)}var wn=null,Vs=!1,nu=!1;function _y(e){wn===null?wn=[e]:wn.push(e)}function eS(e){Vs=!0,_y(e)}function ar(){if(!nu&&wn!==null){nu=!0;var e=0,t=me;try{var n=wn;for(me=1;e>=l,i-=l,kn=1<<32-Yt(t)+i|n<T?(F=P,P=null):F=P.sibling;var _=d(h,P,v[T],b);if(_===null){P===null&&(P=F);break}e&&P&&_.alternate===null&&t(h,P),g=o(_,g,T),k===null?R=_:k.sibling=_,k=_,P=F}if(T===v.length)return n(h,P),Te&&dr(h,T),R;if(P===null){for(;TT?(F=P,P=null):F=P.sibling;var j=d(h,P,_.value,b);if(j===null){P===null&&(P=F);break}e&&P&&j.alternate===null&&t(h,P),g=o(j,g,T),k===null?R=j:k.sibling=j,k=j,P=F}if(_.done)return n(h,P),Te&&dr(h,T),R;if(P===null){for(;!_.done;T++,_=v.next())_=f(h,_.value,b),_!==null&&(g=o(_,g,T),k===null?R=_:k.sibling=_,k=_);return Te&&dr(h,T),R}for(P=r(h,P);!_.done;T++,_=v.next())_=p(P,h,T,_.value,b),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?T:_.key),g=o(_,g,T),k===null?R=_:k.sibling=_,k=_);return e&&P.forEach(function(L){return t(h,L)}),Te&&dr(h,T),R}function E(h,g,v,b){if(typeof v=="object"&&v!==null&&v.type===qr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ul:e:{for(var R=v.key,k=g;k!==null;){if(k.key===R){if(R=v.type,R===qr){if(k.tag===7){n(h,k.sibling),g=i(k,v.props.children),g.return=h,h=g;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Dn&&rh(R)===k.type){n(h,k.sibling),g=i(k,v.props),g.ref=Ui(h,k,v),g.return=h,h=g;break e}n(h,k);break}else t(h,k);k=k.sibling}v.type===qr?(g=kr(v.props.children,h.mode,b,v.key),g.return=h,h=g):(b=Ul(v.type,v.key,v.props,null,h.mode,b),b.ref=Ui(h,g,v),b.return=h,h=b)}return l(h);case Hr:e:{for(k=v.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(h,g.sibling),g=i(g,v.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=cu(v,h.mode,b),g.return=h,h=g}return l(h);case Dn:return k=v._init,E(h,g,k(v._payload),b)}if(Xi(v))return m(h,g,v,b);if(Di(v))return x(h,g,v,b);wl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(h,g.sibling),g=i(g,v),g.return=h,h=g):(n(h,g),g=uu(v,h.mode,b),g.return=h,h=g),l(h)):n(h,g)}return E}var gi=By(!0),Uy=By(!1),Wo={},fn=sr(Wo),To=sr(Wo),Oo=sr(Wo);function vr(e){if(e===Wo)throw Error(M(174));return e}function Kf(e,t){switch(ke(Oo,t),ke(To,e),ke(fn,Wo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nc(t,e)}be(fn),ke(fn,t)}function yi(){be(fn),be(To),be(Oo)}function Vy(e){vr(Oo.current);var t=vr(fn.current),n=nc(t,e.type);t!==n&&(ke(To,e),ke(fn,n))}function Gf(e){To.current===e&&(be(fn),be(To))}var Oe=sr(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ru=[];function Yf(){for(var e=0;en?n:4,e(!0);var r=iu.transition;iu.transition={};try{e(!1),t()}finally{me=n,iu.transition=r}}function ov(){return Bt().memoizedState}function iS(e,t,n){var r=Zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lv(e))sv(t,n);else if(n=Dy(e,t,n,r),n!==null){var i=st();Xt(n,e,r,i),av(n,t,r)}}function oS(e,t,n){var r=Zn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lv(e))sv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Jt(s,l)){var a=t.interleaved;a===null?(i.next=i,Wf(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Dy(e,t,i,r),n!==null&&(i=st(),Xt(n,e,r,i),av(n,t,r))}}function lv(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function sv(e,t){so=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function av(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,If(e,n)}}var ys={readContext:$t,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},lS={readContext:$t,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:oh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zl(4194308,4,ev.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){return zl(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();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=iS.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:ih,useDebugValue:td,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=ih(!1),t=e[0];return e=rS.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,i=rn();if(Te){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),qe===null)throw Error(M(349));Tr&30||Wy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,oh(Ky.bind(null,r,o,e),[e]),r.flags|=2048,Io(9,Qy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rn(),t=qe.identifierPrefix;if(Te){var n=En,r=kn;n=(r&~(1<<32-Yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ao++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ln]=t,e[Ro]=r,yv(e,t,!1,!1),t.stateNode=e;e:{switch(l=ic(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),i=r;break;case"iframe":case"object":case"embed":Ce("load",e),i=r;break;case"video":case"audio":for(i=0;ixi&&(t.flags|=128,r=!0,Vi(o,!1),t.lanes=4194304)}else{if(!r)if(e=ms(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Te)return et(t),null}else 2*_e()-o.renderingStartTime>xi&&n!==1073741824&&(t.flags|=128,r=!0,Vi(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,n=Oe.current,ke(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return sd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function hS(e,t){switch(Bf(t),t.tag){case 1:return gt(t.type)&&as(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yi(),be(mt),be(nt),Yf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gf(t),null;case 13:if(be(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Oe),null;case 4:return yi(),null;case 10:return qf(t.type._context),null;case 22:case 23:return sd(),null;case 24:return null;default:return null}}var kl=!1,tt=!1,mS=typeof WeakSet=="function"?WeakSet:Set,G=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Nc(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var hh=!1;function gS(e,t){if(hc=is,e=Ey(),Mf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(s=l+i),f!==o||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=l),d===o&&++c===r&&(a=l),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(mc={focusedElem:e,selectionRange:n},is=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,E=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Wt(t.type,x),E);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){Ie(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=hh,hh=!1,m}function ao(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Nc(t,n,o)}i=i.next}while(i!==r)}}function Ws(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 Ic(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 wv(e){var t=e.alternate;t!==null&&(e.alternate=null,wv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[Ro],delete t[vc],delete t[Jw],delete t[Zw])),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 Sv(e){return e.tag===5||e.tag===3||e.tag===4}function mh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sv(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 _c(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=ss));else if(r!==4&&(e=e.child,e!==null))for(_c(e,t,n),e=e.sibling;e!==null;)_c(e,t,n),e=e.sibling}function Lc(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(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}var Ge=null,Qt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)kv(e,t,n),n=n.sibling}function kv(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(zs,n)}catch{}switch(n.tag){case 5:tt||ei(n,t);case 6:var r=Ge,i=Qt;Ge=null,Ln(e,t,n),Ge=r,Qt=i,Ge!==null&&(Qt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Qt?(e=Ge,n=n.stateNode,e.nodeType===8?tu(e.parentNode,n):e.nodeType===1&&tu(e,n),ko(e)):tu(Ge,n.stateNode));break;case 4:r=Ge,i=Qt,Ge=n.stateNode.containerInfo,Qt=!0,Ln(e,t,n),Ge=r,Qt=i;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Nc(n,t,l),i=i.next}while(i!==r)}Ln(e,t,n);break;case 1:if(!tt&&(ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ie(n,t,s)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Ln(e,t,n),tt=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function gh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mS),t.forEach(function(r){var i=bS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vS(r/1960))-r,10e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,ws=0,de&6)throw Error(M(331));var i=de;for(de|=4,G=e.current;G!==null;){var o=G,l=o.child;if(G.flags&16){var s=o.deletions;if(s!==null){for(var a=0;a_e()-od?Sr(e,0):id|=n),yt(e,t)}function Av(e,t){t===0&&(e.mode&1?(t=pl,pl<<=1,!(pl&130023424)&&(pl=4194304)):t=1);var n=st();e=On(e,t),e!==null&&(Vo(e,t,n),yt(e,n))}function CS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Av(e,n)}function bS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Av(e,n)}var Nv;Nv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,dS(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Te&&t.flags&1048576&&Ly(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ml(e,t),e=t.pendingProps;var i=hi(t,nt.current);ui(t,n),i=Jf(null,t,r,e,i,n);var o=Zf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(o=!0,us(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qf(t),i.updater=Hs,t.stateNode=i,i._reactInternals=t,Cc(t,r,e,n),t=Rc(null,t,r,!0,o,n)):(t.tag=0,Te&&o&&$f(t),it(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=RS(r),e=Wt(r,e),i){case 0:t=Pc(null,t,r,e,n);break e;case 1:t=fh(null,t,r,e,n);break e;case 11:t=uh(null,t,r,e,n);break e;case 14:t=ch(null,t,r,Wt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),Pc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),fh(e,t,r,i,n);case 3:e:{if(hv(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,zy(e,t),hs(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=vi(Error(M(423)),t),t=dh(e,t,r,n,i);break e}else if(r!==i){i=vi(Error(M(424)),t),t=dh(e,t,r,n,i);break e}else for(Et=Yn(t.stateNode.containerInfo.firstChild),bt=t,Te=!0,Kt=null,n=Uy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mi(),r===i){t=An(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return Vy(t),e===null&&Sc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,gc(r,i)?l=null:o!==null&&gc(r,o)&&(t.flags|=32),pv(e,t),it(e,t,l,n),t.child;case 6:return e===null&&Sc(t),null;case 13:return mv(e,t,n);case 4:return Kf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gi(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),uh(e,t,r,i,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,ke(ds,r._currentValue),r._currentValue=l,o!==null)if(Jt(o.value,l)){if(o.children===i.children&&!mt.current){t=An(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Cn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),kc(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(M(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),kc(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}it(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ui(t,n),i=$t(i),r=r(i),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,i=Wt(r,t.pendingProps),i=Wt(r.type,i),ch(e,t,r,i,n);case 15:return fv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),Ml(e,t),t.tag=1,gt(r)?(e=!0,us(t)):e=!1,ui(t,n),$y(t,r,i),Cc(t,r,i,n),Rc(null,t,r,!0,e,n);case 19:return gv(e,t,n);case 22:return dv(e,t,n)}throw Error(M(156,t.tag))};function Iv(e,t){return iy(e,t)}function PS(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 Dt(e,t,n,r){return new PS(e,t,n,r)}function ud(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RS(e){if(typeof e=="function")return ud(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tf)return 11;if(e===Of)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=Dt(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 Ul(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")ud(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case qr:return kr(n.children,i,o,t);case Rf:l=8,i|=8;break;case Ku:return e=Dt(12,n,t,i|2),e.elementType=Ku,e.lanes=o,e;case Gu:return e=Dt(13,n,t,i),e.elementType=Gu,e.lanes=o,e;case Yu:return e=Dt(19,n,t,i),e.elementType=Yu,e.lanes=o,e;case Bg:return Ks(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mg:l=10;break e;case $g:l=9;break e;case Tf:l=11;break e;case Of:l=14;break e;case Dn:l=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Dt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function kr(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function Ks(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=Bg,e.lanes=n,e.stateNode={isHidden:!1},e}function uu(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function cu(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function TS(e,t,n,r,i){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=Ha(0),this.expirationTimes=Ha(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ha(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cd(e,t,n,r,i,o,l,s,a){return e=new TS(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qf(o),e}function OS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fv)}catch(e){console.error(e)}}Fv(),Lg.exports=Rt;var LS=Lg.exports,Ch=LS;Wu.createRoot=Ch.createRoot,Wu.hydrateRoot=Ch.hydrateRoot;class Qo{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Lo=typeof window>"u"||"Deno"in window;function It(){}function jS(e,t){return typeof e=="function"?e(t):e}function Mc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Dv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eo(e,t,n){return Zs(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Mn(e,t,n){return Zs(e)?[{...t,queryKey:e},n]:[e||{},t]}function bh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:s}=e;if(Zs(l)){if(r){if(t.queryHash!==hd(l,t.options))return!1}else if(!Es(t.queryKey,l))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Ph(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Zs(o)){if(!t.options.mutationKey)return!1;if(n){if(Hn(t.options.mutationKey)!==Hn(o))return!1}else if(!Es(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function hd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Hn)(e)}function Hn(e){return JSON.stringify(e,(t,n)=>Bc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Es(e,t){return zv(e,t)}function zv(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!zv(e[n],t[n])):!1}function Mv(e,t){if(e===t)return e;const n=Rh(e)&&Rh(t);if(n||Bc(e)&&Bc(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{};let s=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!Th(n)||!n.hasOwnProperty("isPrototypeOf"))}function Th(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zs(e){return Array.isArray(e)}function $v(e){return new Promise(t=>{setTimeout(t,e)})}function Oh(e){$v(0).then(e)}function FS(){if(typeof AbortController=="function")return new AbortController}function Uc(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mv(e,t):t}class DS extends Qo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Cs=new DS,Ah=["online","offline"];class zS extends Qo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return Ah.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Ah.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const bs=new zS;function MS(e){return Math.min(1e3*2**e,3e4)}function ea(e){return(e??"online")==="online"?bs.isOnline():!0}class Bv{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Vl(e){return e instanceof Bv}function Uv(e){let t=!1,n=0,r=!1,i,o,l;const s=new Promise((E,h)=>{o=E,l=h}),a=E=>{r||(p(new Bv(E)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!Cs.isFocused()||e.networkMode!=="always"&&!bs.isOnline(),d=E=>{r||(r=!0,e.onSuccess==null||e.onSuccess(E),i==null||i(),o(E))},p=E=>{r||(r=!0,e.onError==null||e.onError(E),i==null||i(),l(E))},m=()=>new Promise(E=>{i=h=>{const g=r||!f();return g&&E(h),g},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),x=()=>{if(r)return;let E;try{E=e.fn()}catch(h){E=Promise.reject(h)}Promise.resolve(E).then(d).catch(h=>{var g,v;if(r)return;const b=(g=e.retry)!=null?g:3,R=(v=e.retryDelay)!=null?v:MS,k=typeof R=="function"?R(n,h):R,P=b===!0||typeof b=="number"&&n{if(f())return m()}).then(()=>{t?p(h):x()})})};return ea(e.networkMode)?x():m().then(x),{promise:s,cancel:a,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const md=console;function $S(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},o=c=>{t?e.push(c):Oh(()=>{n(c)})},l=c=>(...f)=>{o(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&Oh(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:i,batchCalls:l,schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ze=$S();class Vv{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mc(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Lo?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class BS extends Vv{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||md,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||US(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Uc(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Dv(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const l=FS(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};a(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const d=p=>{if(Vl(p)&&p.silent||this.dispatch({type:"error",error:p}),!Vl(p)){var m,x,E,h;(m=(x=this.cache.config).onError)==null||m.call(x,p,this),(E=(h=this.cache.config).onSettled)==null||E.call(h,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Uv({fn:c.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:p=>{var m,x,E,h;if(typeof p>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(m=(x=this.cache.config).onSuccess)==null||m.call(x,p,this),(E=(h=this.cache.config).onSettled)==null||E.call(h,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(p,m)=>{this.dispatch({type:"failed",failureCount:p,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:ea(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return Vl(l)&&l.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function US(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class VS extends Qo{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,l=(i=n.queryHash)!=null?i:hd(o,n);let s=this.get(l);return s||(s=new BS({cache:this,logger:t.getLogger(),queryKey:o,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ze.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Mn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>bh(r,i))}findAll(t,n){const[r]=Mn(t,n);return Object.keys(r).length>0?this.queries.filter(i=>bh(r,i)):this.queries}notify(t){ze.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ze.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ze.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class HS extends Vv{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||md,this.observers=[],this.state=t.state||qS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var P;return this.retryer=Uv({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(T,F)=>{this.dispatch({type:"failed",failureCount:T,error:F})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(P=this.options.retry)!=null?P:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,l,s,a,u,c;if(!n){var f,d,p,m;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(d=this.mutationCache.config).onMutate)==null?void 0:f.call(d,this.state.variables,this));const T=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,this.state.variables));T!==this.state.context&&this.dispatch({type:"loading",context:T,variables:this.state.variables})}const P=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,P,this.state.variables,this.state.context,this)),await((o=(l=this.options).onSuccess)==null?void 0:o.call(l,P,this.state.variables,this.state.context)),await((s=(a=this.mutationCache.config).onSettled)==null?void 0:s.call(a,P,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,P,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:P}),P}catch(P){try{var x,E,h,g,v,b,R,k;throw await((x=(E=this.mutationCache.config).onError)==null?void 0:x.call(E,P,this.state.variables,this.state.context,this)),await((h=(g=this.options).onError)==null?void 0:h.call(g,P,this.state.variables,this.state.context)),await((v=(b=this.mutationCache.config).onSettled)==null?void 0:v.call(b,void 0,P,this.state.variables,this.state.context,this)),await((R=(k=this.options).onSettled)==null?void 0:R.call(k,void 0,P,this.state.variables,this.state.context)),P}finally{this.dispatch({type:"error",error:P})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ea(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ze.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function qS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class WS extends Qo{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new HS({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ze.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>Ph(t,n))}findAll(t){return this.mutations.filter(n=>Ph(t,n))}notify(t){ze.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ze.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(It)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function QS(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,l;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",f=(a==null?void 0:a.direction)==="backward",d=((o=e.state.data)==null?void 0:o.pages)||[],p=((l=e.state.data)==null?void 0:l.pageParams)||[];let m=p,x=!1;const E=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var P;if((P=e.signal)!=null&&P.aborted)x=!0;else{var T;(T=e.signal)==null||T.addEventListener("abort",()=>{x=!0})}return e.signal}})},h=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(k,P,T,F)=>(m=F?[P,...m]:[...m,P],F?[T,...k]:[...k,T]),v=(k,P,T,F)=>{if(x)return Promise.reject("Cancelled");if(typeof T>"u"&&!P&&k.length)return Promise.resolve(k);const _={queryKey:e.queryKey,pageParam:T,meta:e.options.meta};E(_);const j=h(_);return Promise.resolve(j).then(V=>g(k,T,V,F))};let b;if(!d.length)b=v([]);else if(c){const k=typeof u<"u",P=k?u:Nh(e.options,d);b=v(d,k,P)}else if(f){const k=typeof u<"u",P=k?u:KS(e.options,d);b=v(d,k,P,!0)}else{m=[];const k=typeof e.options.getNextPageParam>"u";b=(s&&d[0]?s(d[0],0,d):!0)?v([],k,p[0]):Promise.resolve(g([],p[0],d[0]));for(let T=1;T{if(s&&d[T]?s(d[T],T,d):!0){const j=k?p[T]:Nh(e.options,F);return v(F,k,j)}return Promise.resolve(g(F,p[T],d[T]))})}return b.then(k=>({pages:k,pageParams:m}))}}}}function Nh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function KS(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class GS{constructor(t={}){this.queryCache=t.queryCache||new VS,this.mutationCache=t.mutationCache||new WS,this.logger=t.logger||md,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Cs.subscribe(()=>{Cs.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=bs.subscribe(()=>{bs.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Mn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=eo(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i==null?void 0:i.state.data,l=jS(n,o);if(typeof l>"u")return;const s=eo(t),a=this.defaultQueryOptions(s);return this.queryCache.build(this,a).setData(l,{...r,manual:!0})}setQueriesData(t,n,r){return ze.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Mn(t,n),i=this.queryCache;ze.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=Mn(t,n,r),l=this.queryCache,s={type:"active",...i};return ze.batch(()=>(l.findAll(i).forEach(a=>{a.reset()}),this.refetchQueries(s,o)))}cancelQueries(t,n,r){const[i,o={}]=Mn(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const l=ze.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(o)));return Promise.all(l).then(It).catch(It)}invalidateQueries(t,n,r){const[i,o]=Mn(t,n,r);return ze.batch(()=>{var l,s;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const a={...i,type:(l=(s=i.refetchType)!=null?s:i.type)!=null?l:"active"};return this.refetchQueries(a,o)})}refetchQueries(t,n,r){const[i,o]=Mn(t,n,r),l=ze.batch(()=>this.queryCache.findAll(i).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...o,cancelRefetch:(u=o==null?void 0:o.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(l).then(It);return o!=null&&o.throwOnError||(s=s.catch(It)),s}fetchQuery(t,n,r){const i=eo(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const l=this.queryCache.build(this,o);return l.isStaleByTime(o.staleTime)?l.fetch(o):Promise.resolve(l.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(It).catch(It)}fetchInfiniteQuery(t,n,r){const i=eo(t,n,r);return i.behavior=QS(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(It).catch(It)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>Hn(t)===Hn(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Es(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Hn(t)===Hn(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Es(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=hd(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class YS extends Qo{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Ih(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vc(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vc(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),$c(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&_h(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return JS(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(It)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Lo||this.currentResult.isStale||!Mc(this.options.staleTime))return;const n=Dv(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Lo||this.options.enabled===!1||!Mc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Cs.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,o=this.currentResult,l=this.currentResultState,s=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:d,error:p,errorUpdatedAt:m,fetchStatus:x,status:E}=f,h=!1,g=!1,v;if(n._optimisticResults){const T=this.hasListeners(),F=!T&&Ih(t,n),_=T&&_h(t,r,n,i);(F||_)&&(x=ea(t.options.networkMode)?"fetching":"paused",d||(E="loading")),n._optimisticResults==="isRestoring"&&(x="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&E!=="error")v=c.data,d=c.dataUpdatedAt,E=c.status,h=!0;else if(n.select&&typeof f.data<"u")if(o&&f.data===(l==null?void 0:l.data)&&n.select===this.selectFn)v=this.selectResult;else try{this.selectFn=n.select,v=n.select(f.data),v=Uc(o==null?void 0:o.data,v,n),this.selectResult=v,this.selectError=null}catch(T){this.selectError=T}else v=f.data;if(typeof n.placeholderData<"u"&&typeof v>"u"&&E==="loading"){let T;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))T=o.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),this.selectError=null}catch(F){this.selectError=F}typeof T<"u"&&(E="success",v=Uc(o==null?void 0:o.data,T,n),g=!0)}this.selectError&&(p=this.selectError,v=this.selectResult,m=Date.now(),E="error");const b=x==="fetching",R=E==="loading",k=E==="error";return{status:E,fetchStatus:x,isLoading:R,isSuccess:E==="success",isError:k,isInitialLoading:R&&b,data:v,dataUpdatedAt:d,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!R,isLoadingError:k&&f.dataUpdatedAt===0,isPaused:x==="paused",isPlaceholderData:g,isPreviousData:h,isRefetchError:k&&f.dataUpdatedAt!==0,isStale:gd(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,$c(r,n))return;this.currentResult=r;const i={cache:!0},o=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.trackedProps.size)return!0;const a=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Vl(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ze.batch(()=>{if(t.onSuccess){var n,r,i,o;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(o=this.options).onSettled)==null||i.call(o,this.currentResult.data,null)}else if(t.onError){var l,s,a,u;(l=(s=this.options).onError)==null||l.call(s,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function XS(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ih(e,t){return XS(e,t)||e.state.dataUpdatedAt>0&&Vc(e,t,t.refetchOnMount)}function Vc(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&gd(e,t)}return!1}function _h(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&gd(e,n)}function gd(e,t){return e.isStaleByTime(t.staleTime)}function JS(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!$c(e.getCurrentResult(),t)}var Hv={exports:{}},qv={};/** + * @license React + * use-sync-external-store-shim.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 wi=H;function ZS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ek=typeof Object.is=="function"?Object.is:ZS,tk=wi.useState,nk=wi.useEffect,rk=wi.useLayoutEffect,ik=wi.useDebugValue;function ok(e,t){var n=t(),r=tk({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return rk(function(){i.value=n,i.getSnapshot=t,fu(i)&&o({inst:i})},[e,n,t]),nk(function(){return fu(i)&&o({inst:i}),e(function(){fu(i)&&o({inst:i})})},[e]),ik(n),n}function fu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ek(e,n)}catch{return!0}}function lk(e,t){return t()}var sk=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lk:ok;qv.useSyncExternalStore=wi.useSyncExternalStore!==void 0?wi.useSyncExternalStore:sk;Hv.exports=qv;var ak=Hv.exports;const uk=ak.useSyncExternalStore,Lh=H.createContext(void 0),Wv=H.createContext(!1);function Qv(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Lh),window.ReactQueryClientContext):Lh)}const ck=({context:e}={})=>{const t=H.useContext(Qv(e,H.useContext(Wv)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fk=({client:e,children:t,context:n,contextSharing:r=!1})=>{H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Qv(n,r);return H.createElement(Wv.Provider,{value:!n&&r},H.createElement(i.Provider,{value:e},t))},Kv=H.createContext(!1),dk=()=>H.useContext(Kv);Kv.Provider;function pk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const hk=H.createContext(pk()),mk=()=>H.useContext(hk);function gk(e,t){return typeof e=="function"?e(...t):!!e}const yk=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},vk=e=>{H.useEffect(()=>{e.clearReset()},[e])},xk=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&gk(n,[e.error,r]),wk=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Sk=(e,t)=>e.isLoading&&e.isFetching&&!t,kk=(e,t,n)=>(e==null?void 0:e.suspense)&&Sk(t,n),Ek=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Ck(e,t){const n=ck({context:e.context}),r=dk(),i=mk(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=ze.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=ze.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=ze.batchCalls(o.onSettled)),wk(o),yk(o,i),vk(i);const[l]=H.useState(()=>new t(n,o)),s=l.getOptimisticResult(o);if(uk(H.useCallback(a=>{const u=r?()=>{}:l.subscribe(ze.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),H.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),kk(o,s,r))throw Ek(o,l,i);if(xk({result:s,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return o.notifyOnChangeProps?s:l.trackResult(s)}function bk(e,t,n){const r=eo(e,t,n);return Ck(r,YS)}function Hc(e,t){return Hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Hc(e,t)}function dn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hc(e,t)}var Gv={exports:{}},Pk="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Rk=Pk,Tk=Rk;function Yv(){}function Xv(){}Xv.resetWarningCache=Yv;var Ok=function(){function e(r,i,o,l,s,a){if(a!==Tk){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xv,resetWarningCache:Yv};return n.PropTypes=n,n};Gv.exports=Ok();var Ak=Gv.exports;const jh=Bo(Ak);function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;c--){var f=r[c];f==="."?du(r,c):f===".."?(du(r,c),u++):u&&(du(r,c),u--)}if(!l)for(;u--;u)r.unshift("..");l&&r[0]!==""&&(!r[0]||!bl(r[0]))&&r.unshift("");var d=r.join("/");return s&&d.substr(-1)!=="/"&&(d+="/"),d}function Fh(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function Hl(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(i,o){return Hl(i,t[o])});if(typeof e=="object"||typeof t=="object"){var n=Fh(e),r=Fh(t);return n!==e||r!==t?Hl(n,r):Object.keys(Object.assign({},e,t)).every(function(i){return Hl(e[i],t[i])})}return!1}var Ik=!0,pu="Invariant failed";function ur(e,t){if(!e){if(Ik)throw new Error(pu);var n=typeof t=="function"?t():t,r=n?"".concat(pu,": ").concat(n):pu;throw new Error(r)}}function fo(e){return e.charAt(0)==="/"?e:"/"+e}function Dh(e){return e.charAt(0)==="/"?e.substr(1):e}function _k(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Jv(e,t){return _k(e,t)?e.substr(t.length):e}function Zv(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Lk(e){var t=e||"/",n="",r="",i=t.indexOf("#");i!==-1&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return o!==-1&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function dt(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function lt(e,t,n,r){var i;typeof e=="string"?(i=Lk(e),i.state=t):(i=Je({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=Nk(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function jk(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Hl(e.state,t.state)}function yd(){var e=null;function t(l){return e=l,function(){e===l&&(e=null)}}function n(l,s,a,u){if(e!=null){var c=typeof e=="function"?e(l,s):e;typeof c=="string"?typeof a=="function"?a(c,u):u(!0):u(c!==!1)}else u(!0)}var r=[];function i(l){var s=!0;function a(){s&&l.apply(void 0,arguments)}return r.push(a),function(){s=!1,r=r.filter(function(u){return u!==a})}}function o(){for(var l=arguments.length,s=new Array(l),a=0;aJ?K.splice(J,K.length-J,j):K.push(j),c({action:_,location:j,index:J,entries:K})}})}function E(T,F){var _="REPLACE",j=lt(T,F,f(),P.location);u.confirmTransitionTo(j,_,n,function(L){L&&(P.entries[P.index]=j,c({action:_,location:j}))})}function h(T){var F=Uh(P.index+T,0,P.entries.length-1),_="POP",j=P.entries[F];u.confirmTransitionTo(j,_,n,function(L){L?c({action:_,location:j,index:F}):c()})}function g(){h(-1)}function v(){h(1)}function b(T){var F=P.index+T;return F>=0&&F=0)&&(n[i]=e[i]);return n}var a0={exports:{}},ge={};/** @license React v16.13.1 + * react-is.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 Qe=typeof Symbol=="function"&&Symbol.for,Cd=Qe?Symbol.for("react.element"):60103,bd=Qe?Symbol.for("react.portal"):60106,da=Qe?Symbol.for("react.fragment"):60107,pa=Qe?Symbol.for("react.strict_mode"):60108,ha=Qe?Symbol.for("react.profiler"):60114,ma=Qe?Symbol.for("react.provider"):60109,ga=Qe?Symbol.for("react.context"):60110,Pd=Qe?Symbol.for("react.async_mode"):60111,ya=Qe?Symbol.for("react.concurrent_mode"):60111,va=Qe?Symbol.for("react.forward_ref"):60112,xa=Qe?Symbol.for("react.suspense"):60113,lE=Qe?Symbol.for("react.suspense_list"):60120,wa=Qe?Symbol.for("react.memo"):60115,Sa=Qe?Symbol.for("react.lazy"):60116,sE=Qe?Symbol.for("react.block"):60121,aE=Qe?Symbol.for("react.fundamental"):60117,uE=Qe?Symbol.for("react.responder"):60118,cE=Qe?Symbol.for("react.scope"):60119;function At(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cd:switch(e=e.type,e){case Pd:case ya:case da:case ha:case pa:case xa:return e;default:switch(e=e&&e.$$typeof,e){case ga:case va:case Sa:case wa:case ma:return e;default:return t}}case bd:return t}}}function u0(e){return At(e)===ya}ge.AsyncMode=Pd;ge.ConcurrentMode=ya;ge.ContextConsumer=ga;ge.ContextProvider=ma;ge.Element=Cd;ge.ForwardRef=va;ge.Fragment=da;ge.Lazy=Sa;ge.Memo=wa;ge.Portal=bd;ge.Profiler=ha;ge.StrictMode=pa;ge.Suspense=xa;ge.isAsyncMode=function(e){return u0(e)||At(e)===Pd};ge.isConcurrentMode=u0;ge.isContextConsumer=function(e){return At(e)===ga};ge.isContextProvider=function(e){return At(e)===ma};ge.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cd};ge.isForwardRef=function(e){return At(e)===va};ge.isFragment=function(e){return At(e)===da};ge.isLazy=function(e){return At(e)===Sa};ge.isMemo=function(e){return At(e)===wa};ge.isPortal=function(e){return At(e)===bd};ge.isProfiler=function(e){return At(e)===ha};ge.isStrictMode=function(e){return At(e)===pa};ge.isSuspense=function(e){return At(e)===xa};ge.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===da||e===ya||e===ha||e===pa||e===xa||e===lE||typeof e=="object"&&e!==null&&(e.$$typeof===Sa||e.$$typeof===wa||e.$$typeof===ma||e.$$typeof===ga||e.$$typeof===va||e.$$typeof===aE||e.$$typeof===uE||e.$$typeof===cE||e.$$typeof===sE)};ge.typeOf=At;a0.exports=ge;var fE=a0.exports,c0=fE,dE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f0={};f0[c0.ForwardRef]=dE;f0[c0.Memo]=pE;var mu=1073741823,Vh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function hE(){var e="__global_unique_id__";return Vh[e]=(Vh[e]||0)+1}function mE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function gE(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(i){return i!==r})},get:function(){return e},set:function(r,i){e=r,t.forEach(function(o){return o(e,i)})}}}function yE(e){return Array.isArray(e)?e[0]:e}function vE(e,t){var n,r,i="__create-react-context-"+hE()+"__",o=function(s){dn(a,s);function a(){for(var c,f=arguments.length,d=new Array(f),p=0;p"u"&&(Si=Od);function NE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var IE=Si(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=fa(e,["innerRef","navigate","onClick"]),l=o.target,s=Je({},o,{onClick:function(u){try{i&&i(u)}catch(c){throw u.preventDefault(),c}!u.defaultPrevented&&u.button===0&&(!l||l==="_self")&&!NE(u)&&(u.preventDefault(),r())}});return Od!==Si?s.ref=t||n:s.ref=n,Y.createElement("a",s)}),Nr=Si(function(e,t){var n=e.component,r=n===void 0?IE:n,i=e.replace,o=e.to,l=e.innerRef,s=fa(e,["component","replace","to","innerRef"]);return Y.createElement(ir.Consumer,null,function(a){a||ur(!1);var u=a.history,c=Wc(qc(o,a.location),a.location),f=c?u.createHref(c):"",d=Je({},s,{href:f,navigate:function(){var m=qc(o,a.location),x=dt(a.location)===dt(Wc(m)),E=i||x?u.replace:u.push;E(m)}});return Od!==Si?d.ref=t||l:d.innerRef=l,Y.createElement(r,d)})}),g0=function(t){return t},Rs=Y.forwardRef;typeof Rs>"u"&&(Rs=g0);function _E(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?DE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vu=(e,t,n)=>(zE(e,typeof t!="symbol"?t+"":t,n),n);let ME=class{constructor(){vu(this,"current",this.detect()),vu(this,"handoffState","pending"),vu(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Er=new ME,Ts=(e,t)=>{Er.isServer?H.useEffect(e,t):H.useLayoutEffect(e,t)};function $E(e){let t=H.useRef(e);return Ts(()=>{t.current=e},[e]),t}let po=function(e){let t=$E(e);return Y.useCallback((...n)=>t.current(...n),[t])};function BE(){let[e,t]=H.useState(Er.isHandoffComplete);return e&&Er.isHandoffComplete===!1&&t(!1),H.useEffect(()=>{e!==!0&&t(!0)},[e]),H.useEffect(()=>Er.handoff(),[]),e}var Xh;let v0=(Xh=Y.useId)!=null?Xh:function(){let e=BE(),[t,n]=Y.useState(e?()=>Er.nextId():null);return Ts(()=>{t===null&&n(Er.nextId())},[t]),t!=null?""+t:void 0};function Go(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Go),r}function UE(e){return Er.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Jh(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function VE(e,t){let[n,r]=H.useState(()=>Jh(e));return Ts(()=>{r(Jh(e))},[e.type,e.as]),Ts(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let x0=Symbol();function HE(e,t=!0){return Object.assign(e,{[x0]:t})}function Ad(...e){let t=H.useRef(e);H.useEffect(()=>{t.current=e},[e]);let n=po(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[x0]))?void 0:n}function qE(...e){return e.filter(Boolean).join(" ")}var Qc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Qc||{}),WE=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(WE||{});function Nd({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:l}){let s=w0(t,e);if(o)return Pl(s,n,r,l);let a=i??0;if(a&2){let{static:u=!1,...c}=s;if(u)return Pl(c,n,r,l)}if(a&1){let{unmount:u=!0,...c}=s;return Go(u?0:1,{0(){return null},1(){return Pl({...c,hidden:!0,style:{display:"none"}},n,r,l)}})}return Pl(s,n,r,l)}function Pl(e,t={},n,r){var i;let{as:o=n,children:l,refName:s="ref",...a}=xu(e,["unmount","static"]),u=e.ref!==void 0?{[s]:e.ref}:{},c=typeof l=="function"?l(t):l;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let f={};if(t){let d=!1,p=[];for(let[m,x]of Object.entries(t))typeof x=="boolean"&&(d=!0),x===!0&&p.push(m);d&&(f["data-headlessui-state"]=p.join(" "))}if(o===H.Fragment&&Object.keys(Zh(a)).length>0){if(!H.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(m=>` - ${m}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` +`)].join(` +`));let d=qE((i=c.props)==null?void 0:i.className,a.className),p=d?{className:d}:{};return H.cloneElement(c,Object.assign({},w0(c.props,Zh(xu(a,["ref"]))),f,u,QE(c.ref,u.ref),p))}return H.createElement(o,Object.assign({},xu(a,["ref"]),o!==H.Fragment&&u,o!==H.Fragment&&f),c)}function QE(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function w0(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let l=n[r];for(let s of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function Id(e){var t;return Object.assign(H.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zh(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function xu(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function KE(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&GE(n)?!1:r}function GE(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let _d=H.createContext(null);_d.displayName="OpenClosedContext";var jo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(jo||{});function YE(){return H.useContext(_d)}function XE({value:e,children:t}){return Y.createElement(_d.Provider,{value:e},t)}var Vr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Vr||{}),em;let JE=(em=Y.startTransition)!=null?em:function(e){e()};var ZE=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ZE||{}),eC=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(eC||{});let tC={0:e=>({...e,disclosureState:Go(e.disclosureState,{0:1,1:0})}),1:e=>e.disclosureState===1?e:{...e,disclosureState:1},4(e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},5(e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},Ld=H.createContext(null);Ld.displayName="DisclosureContext";function jd(e){let t=H.useContext(Ld);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,jd),n}return t}let Fd=H.createContext(null);Fd.displayName="DisclosureAPIContext";function S0(e){let t=H.useContext(Fd);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,S0),n}return t}let Dd=H.createContext(null);Dd.displayName="DisclosurePanelContext";function nC(){return H.useContext(Dd)}function rC(e,t){return Go(t.type,tC,e,t)}let iC=H.Fragment;function oC(e,t){let{defaultOpen:n=!1,...r}=e,i=H.useRef(null),o=Ad(t,HE(E=>{i.current=E},e.as===void 0||e.as===H.Fragment)),l=H.useRef(null),s=H.useRef(null),a=H.useReducer(rC,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:s,panelRef:l,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:c},f]=a,d=po(E=>{f({type:1});let h=UE(i);if(!h||!c)return;let g=(()=>E?E instanceof HTMLElement?E:E.current instanceof HTMLElement?E.current:h.getElementById(c):h.getElementById(c))();g==null||g.focus()}),p=H.useMemo(()=>({close:d}),[d]),m=H.useMemo(()=>({open:u===0,close:d}),[u,d]),x={ref:o};return Y.createElement(Ld.Provider,{value:a},Y.createElement(Fd.Provider,{value:p},Y.createElement(XE,{value:Go(u,{0:jo.Open,1:jo.Closed})},Nd({ourProps:x,theirProps:r,slot:m,defaultTag:iC,name:"Disclosure"}))))}let lC="button";function sC(e,t){let n=v0(),{id:r=`headlessui-disclosure-button-${n}`,...i}=e,[o,l]=jd("Disclosure.Button"),s=nC(),a=s===null?!1:s===o.panelId,u=H.useRef(null),c=Ad(u,t,a?null:o.buttonRef);H.useEffect(()=>{if(!a)return l({type:2,buttonId:r}),()=>{l({type:2,buttonId:null})}},[r,l,a]);let f=po(h=>{var g;if(a){if(o.disclosureState===1)return;switch(h.key){case Vr.Space:case Vr.Enter:h.preventDefault(),h.stopPropagation(),l({type:0}),(g=o.buttonRef.current)==null||g.focus();break}}else switch(h.key){case Vr.Space:case Vr.Enter:h.preventDefault(),h.stopPropagation(),l({type:0});break}}),d=po(h=>{switch(h.key){case Vr.Space:h.preventDefault();break}}),p=po(h=>{var g;KE(h.currentTarget)||e.disabled||(a?(l({type:0}),(g=o.buttonRef.current)==null||g.focus()):l({type:0}))}),m=H.useMemo(()=>({open:o.disclosureState===0}),[o]),x=VE(e,u),E=a?{ref:c,type:x,onKeyDown:f,onClick:p}:{ref:c,id:r,type:x,"aria-expanded":e.disabled?void 0:o.disclosureState===0,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:f,onKeyUp:d,onClick:p};return Nd({ourProps:E,theirProps:i,slot:m,defaultTag:lC,name:"Disclosure.Button"})}let aC="div",uC=Qc.RenderStrategy|Qc.Static;function cC(e,t){let n=v0(),{id:r=`headlessui-disclosure-panel-${n}`,...i}=e,[o,l]=jd("Disclosure.Panel"),{close:s}=S0("Disclosure.Panel"),a=Ad(t,o.panelRef,p=>{JE(()=>l({type:p?4:5}))});H.useEffect(()=>(l({type:3,panelId:r}),()=>{l({type:3,panelId:null})}),[r,l]);let u=YE(),c=(()=>u!==null?(u&jo.Open)===jo.Open:o.disclosureState===0)(),f=H.useMemo(()=>({open:o.disclosureState===0,close:s}),[o,s]),d={ref:a,id:r};return Y.createElement(Dd.Provider,{value:o.panelId},Nd({ourProps:d,theirProps:i,slot:f,defaultTag:aC,features:uC,visible:c,name:"Disclosure.Panel"}))}let fC=Id(oC),dC=Id(sC),pC=Id(cC),fr=Object.assign(fC,{Button:dC,Panel:pC});var k0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tm=Y.createContext&&Y.createContext(k0),tr=globalThis&&globalThis.__assign||function(){return tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){l={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o};function CC(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function bC(e,t){var n=CC(e);if("find"in n)return n.find(t);for(var r=n,i=0;i"u"},TC=function(e){return e===null},Fo=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},Kc=function(e){return Fo(e)&&Object.keys(e).length===0},or=function(e){return Array.isArray(e)},OC=function(e){return typeof e=="string"},AC=function(e){return typeof e=="number"&&!isNaN(e)},NC=function(e){return typeof e=="boolean"},IC=function(e){return e instanceof RegExp},Do=function(e){return e instanceof Map},zo=function(e){return e instanceof Set},P0=function(e){return RC(e)==="Symbol"},_C=function(e){return e instanceof Date&&!isNaN(e.valueOf())},LC=function(e){return e instanceof Error},rm=function(e){return typeof e=="number"&&isNaN(e)},jC=function(e){return NC(e)||TC(e)||b0(e)||AC(e)||OC(e)||P0(e)},FC=function(e){return typeof e=="bigint"},DC=function(e){return e===1/0||e===-1/0},zC=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},MC=function(e){return e instanceof URL},R0=function(e){return e.replace(/\./g,"\\.")},wu=function(e){return e.map(String).map(R0).join(".")},ho=function(e){for(var t=[],n="",r=0;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){l={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},Xc=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n0?"Infinity":"-Infinity"},Number),nn(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),nn(MC,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Ca(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var O0=Ca(function(e,t){if(P0(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),$C=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),A0=Ca(zC,function(e){return["typed-array",e.constructor.name]},function(e){return Xc([],Yc(e))},function(e,t){var n=$C[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function N0(e,t){if(e!=null&&e.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var I0=Ca(N0,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Gc({},e);var r={};return n.forEach(function(i){r[i]=e[i]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),_0=Ca(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),BC=[I0,O0,_0,A0],im=function(e,t){var n=nm(BC,function(i){return i.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=nm(T0,function(i){return i.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},L0={};T0.forEach(function(e){L0[e.annotation]=e});var UC=function(e,t,n){if(or(t))switch(t[0]){case"symbol":return O0.untransform(e,t,n);case"class":return I0.untransform(e,t,n);case"custom":return _0.untransform(e,t,n);case"typed-array":return A0.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=L0[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},ni=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function j0(e){if(Wl(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Wl(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Wl(e,"constructor"))throw new Error("constructor is not allowed as a property")}var VC=function(e,t){j0(t);for(var n=0;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){l={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},qn=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;nef(i,t));if(!GC(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((i,o)=>{if(om(t.props)&&!t.props.includes(o))return i;const l=e[o],s=ef(l,t);return YC(i,o,s,e,t.nonenumerable),i},{})}var hr=globalThis&&globalThis.__assign||function(){return hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){l={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},JC=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n{$0=e});function tb(){const e=new GS(eb);$0(e)}function tf(e,t,n){if(typeof e!="function")throw new TypeError("useQuery requires queryFn to be a function.");if(!e.queryCacheKey)throw new TypeError("queryFn needs to have queryCacheKey property defined.");const r=t!==void 0?[...e.queryCacheKey,t]:e.queryCacheKey;return bk({queryKey:r,queryFn:()=>e(r,t),...n})}function B0(e,t){return function(){return e.apply(t,arguments)}}const{toString:nb}=Object.prototype,{getPrototypeOf:Md}=Object,ba=(e=>t=>{const n=nb.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>ba(t)===e),Pa=e=>t=>typeof t===e,{isArray:Ni}=Array,Mo=Pa("undefined");function rb(e){return e!==null&&!Mo(e)&&e.constructor!==null&&!Mo(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const U0=hn("ArrayBuffer");function ib(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&U0(e.buffer),t}const ob=Pa("string"),Mt=Pa("function"),V0=Pa("number"),Ra=e=>e!==null&&typeof e=="object",lb=e=>e===!0||e===!1,Ql=e=>{if(ba(e)!=="object")return!1;const t=Md(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},sb=hn("Date"),ab=hn("File"),ub=hn("Blob"),cb=hn("FileList"),fb=e=>Ra(e)&&Mt(e.pipe),db=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((t=ba(e))==="formdata"||t==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},pb=hn("URLSearchParams"),hb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ni(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const q0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),W0=e=>!Mo(e)&&e!==q0;function nf(){const{caseless:e}=W0(this)&&this||{},t={},n=(r,i)=>{const o=e&&H0(t,i)||i;Ql(t[o])&&Ql(r)?t[o]=nf(t[o],r):Ql(r)?t[o]=nf({},r):Ni(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Yo(t,(i,o)=>{n&&Mt(i)?e[o]=B0(i,n):e[o]=i},{allOwnKeys:r}),e),gb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yb=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vb=(e,t,n,r)=>{let i,o,l;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Md(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wb=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!V0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Md(Uint8Array)),kb=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Eb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Cb=hn("HTMLFormElement"),bb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pb=hn("RegExp"),Q0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yo(n,(i,o)=>{let l;(l=t(i,o,e))!==!1&&(r[o]=l||i)}),Object.defineProperties(e,r)},Rb=e=>{Q0(e,(t,n)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tb=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ni(e)?r(e):r(String(e).split(t)),n},Ob=()=>{},Ab=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Su="abcdefghijklmnopqrstuvwxyz",sm="0123456789",K0={DIGIT:sm,ALPHA:Su,ALPHA_DIGIT:Su+Su.toUpperCase()+sm},Nb=(e=16,t=K0.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ib(e){return!!(e&&Mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _b=e=>{const t=new Array(10),n=(r,i)=>{if(Ra(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ni(r)?[]:{};return Yo(r,(l,s)=>{const a=n(l,i+1);!Mo(a)&&(o[s]=a)}),t[i]=void 0,o}}return r};return n(e,0)},Lb=hn("AsyncFunction"),jb=e=>e&&(Ra(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),I={isArray:Ni,isArrayBuffer:U0,isBuffer:rb,isFormData:db,isArrayBufferView:ib,isString:ob,isNumber:V0,isBoolean:lb,isObject:Ra,isPlainObject:Ql,isUndefined:Mo,isDate:sb,isFile:ab,isBlob:ub,isRegExp:Pb,isFunction:Mt,isStream:fb,isURLSearchParams:pb,isTypedArray:Sb,isFileList:cb,forEach:Yo,merge:nf,extend:mb,trim:hb,stripBOM:gb,inherits:yb,toFlatObject:vb,kindOf:ba,kindOfTest:hn,endsWith:xb,toArray:wb,forEachEntry:kb,matchAll:Eb,isHTMLForm:Cb,hasOwnProperty:lm,hasOwnProp:lm,reduceDescriptors:Q0,freezeMethods:Rb,toObjectSet:Tb,toCamelCase:bb,noop:Ob,toFiniteNumber:Ab,findKey:H0,global:q0,isContextDefined:W0,ALPHABET:K0,generateString:Nb,isSpecCompliantForm:Ib,toJSONObject:_b,isAsyncFn:Lb,isThenable:jb};function fe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}I.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const G0=fe.prototype,Y0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Y0[e]={value:e}});Object.defineProperties(fe,Y0);Object.defineProperty(G0,"isAxiosError",{value:!0});fe.from=(e,t,n,r,i,o)=>{const l=Object.create(G0);return I.toFlatObject(e,l,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),fe.call(l,e.message,t,n,r,i),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const Fb=null;function rf(e){return I.isPlainObject(e)||I.isArray(e)}function X0(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function am(e,t,n){return e?e.concat(t).map(function(i,o){return i=X0(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Db(e){return I.isArray(e)&&!e.some(rf)}const zb=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Ta(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,E){return!I.isUndefined(E[x])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!a&&I.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,x,E){let h=m;if(m&&!E&&typeof m=="object"){if(I.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&Db(m)||(I.isFileList(m)||I.endsWith(x,"[]"))&&(h=I.toArray(m)))return x=X0(x),h.forEach(function(v,b){!(I.isUndefined(v)||v===null)&&t.append(l===!0?am([x],b,o):l===null?x:x+"[]",u(v))}),!1}return rf(m)?!0:(t.append(am(E,x,o),u(m)),!1)}const f=[],d=Object.assign(zb,{defaultVisitor:c,convertValue:u,isVisitable:rf});function p(m,x){if(!I.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),I.forEach(m,function(h,g){(!(I.isUndefined(h)||h===null)&&i.call(t,h,I.isString(g)?g.trim():g,x,d))===!0&&p(h,x?x.concat(g):[g])}),f.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return p(e),t}function um(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $d(e,t){this._pairs=[],e&&Ta(e,this,t)}const J0=$d.prototype;J0.append=function(t,n){this._pairs.push([t,n])};J0.toString=function(t){const n=t?function(r){return t.call(this,r,um)}:um;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Mb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z0(e,t,n){if(!t)return e;const r=n&&n.encode||Mb,i=n&&n.serialize;let o;if(i?o=i(t,n):o=I.isURLSearchParams(t)?t.toString():new $d(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class $b{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cm=$b,e1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bb=typeof URLSearchParams<"u"?URLSearchParams:$d,Ub=typeof FormData<"u"?FormData:null,Vb=typeof Blob<"u"?Blob:null,Hb=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),qb=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),an={isBrowser:!0,classes:{URLSearchParams:Bb,FormData:Ub,Blob:Vb},isStandardBrowserEnv:Hb,isStandardBrowserWebWorkerEnv:qb,protocols:["http","https","file","blob","url","data"]};function Wb(e,t){return Ta(e,new an.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return an.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Qb(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kb(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return l=!l&&I.isArray(i)?i.length:l,a?(I.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!s):((!i[l]||!I.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],o)&&I.isArray(i[l])&&(i[l]=Kb(i[l])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(Qb(r),i,n,0)}),n}return null}function Gb(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bd={transitional:e1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=I.isObject(t);if(o&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i&&i?JSON.stringify(t1(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Wb(t,this.formSerializer).toString();if((s=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Ta(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Gb(t)):t}],transformResponse:[function(t){const n=this.transitional||Bd.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&I.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?fe.from(s,fe.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:an.classes.FormData,Blob:an.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Bd.headers[e]={}});const Ud=Bd,Yb=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xb=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&Yb[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fm=Symbol("internals");function Wi(e){return e&&String(e).trim().toLowerCase()}function Kl(e){return e===!1||e==null?e:I.isArray(e)?e.map(Kl):String(e)}function Jb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Zb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ku(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function eP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function tP(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,l){return this[r].call(this,t,i,o,l)},configurable:!0})})}class Oa{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,a,u){const c=Wi(a);if(!c)throw new Error("header name must be a non-empty string");const f=I.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||a]=Kl(s))}const l=(s,a)=>I.forEach(s,(u,c)=>o(u,c,a));return I.isPlainObject(t)||t instanceof this.constructor?l(t,n):I.isString(t)&&(t=t.trim())&&!Zb(t)?l(Xb(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Wi(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Jb(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Wi(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ku(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(l){if(l=Wi(l),l){const s=I.findKey(r,l);s&&(!n||ku(r,r[s],s,n))&&(delete r[s],i=!0)}}return I.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ku(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return I.forEach(this,(i,o)=>{const l=I.findKey(r,o);if(l){n[l]=Kl(i),delete n[o];return}const s=t?eP(o):String(o).trim();s!==o&&delete n[o],n[s]=Kl(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fm]=this[fm]={accessors:{}}).accessors,i=this.prototype;function o(l){const s=Wi(l);r[s]||(tP(i,l),r[s]=!0)}return I.isArray(t)?t.forEach(o):o(t),this}}Oa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Oa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Oa);const bn=Oa;function Eu(e,t){const n=this||Ud,r=t||n,i=bn.from(r.headers);let o=r.data;return I.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function n1(e){return!!(e&&e.__CANCEL__)}function Xo(e,t,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(Xo,fe,{__CANCEL__:!0});function nP(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const rP=an.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,l,s){const a=[];a.push(n+"="+encodeURIComponent(r)),I.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),I.isString(o)&&a.push("path="+o),I.isString(l)&&a.push("domain="+l),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function iP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oP(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function r1(e,t){return e&&!iP(t)?oP(e,t):t}const lP=an.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let l=o;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(l){const s=I.isString(l)?i(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function sP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];l||(l=u),n[i]=a,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-l{const o=i.loaded,l=i.lengthComputable?i.total:void 0,s=o-n,a=r(s),u=o<=l;n=o;const c={loaded:o,total:l,progress:l?o/l:void 0,bytes:s,rate:a||void 0,estimated:a&&l&&u?(l-o)/a:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const uP=typeof XMLHttpRequest<"u",cP=uP&&function(e){return new Promise(function(n,r){let i=e.data;const o=bn.from(e.headers).normalize(),l=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let u;I.isFormData(i)&&(an.isStandardBrowserEnv||an.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?I.isString(u=o.getContentType())&&o.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+x))}const f=r1(e.baseURL,e.url);c.open(e.method.toUpperCase(),Z0(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const m=bn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};nP(function(g){n(g),a()},function(g){r(g),a()},E),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new fe("Request aborted",fe.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||e1;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new fe(x,E.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,c)),c=null},an.isStandardBrowserEnv){const m=lP(f)&&e.xsrfCookieName&&rP.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&I.forEach(o.toJSON(),function(x,E){c.setRequestHeader(E,x)}),I.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",dm(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",dm(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=m=>{c&&(r(!m||m.type?new Xo(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=sP(f);if(p&&an.protocols.indexOf(p)===-1){r(new fe("Unsupported protocol "+p+":",fe.ERR_BAD_REQUEST,e));return}c.send(i||null)})},of={http:Fb,xhr:cP};I.forEach(of,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pm=e=>`- ${e}`,fP=e=>I.isFunction(e)||e===null||e===!1,i1={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since : +`+o.map(pm).join(` +`):" "+pm(o[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:of};function Cu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xo(null,e)}function hm(e){return Cu(e),e.headers=bn.from(e.headers),e.data=Eu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),i1.getAdapter(e.adapter||Ud.adapter)(e).then(function(r){return Cu(e),r.data=Eu.call(e,e.transformResponse,r),r.headers=bn.from(r.headers),r},function(r){return n1(r)||(Cu(e),r&&r.response&&(r.response.data=Eu.call(e,e.transformResponse,r.response),r.response.headers=bn.from(r.response.headers))),Promise.reject(r)})}const mm=e=>e instanceof bn?e.toJSON():e;function Ei(e,t){t=t||{};const n={};function r(u,c,f){return I.isPlainObject(u)&&I.isPlainObject(c)?I.merge.call({caseless:f},u,c):I.isPlainObject(c)?I.merge({},c):I.isArray(c)?c.slice():c}function i(u,c,f){if(I.isUndefined(c)){if(!I.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!I.isUndefined(c))return r(void 0,c)}function l(u,c){if(I.isUndefined(c)){if(!I.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(u,c)=>i(mm(u),mm(c),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||i,d=f(e[c],t[c],c);I.isUndefined(d)&&f!==s||(n[c]=d)}),n}const o1="1.6.0",Vd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gm={};Vd.transitional=function(t,n,r){function i(o,l){return"[Axios v"+o1+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,s)=>{if(t===!1)throw new fe(i(l," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!gm[l]&&(gm[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,s):!0}};function dP(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],l=t[o];if(l){const s=e[o],a=s===void 0||l(s,o,e);if(a!==!0)throw new fe("option "+o+" must be "+a,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}const lf={assertOptions:dP,validators:Vd},jn=lf.validators;class Os{constructor(t){this.defaults=t,this.interceptors={request:new cm,response:new cm}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ei(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&lf.assertOptions(r,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:lf.assertOptions(i,{encode:jn.function,serialize:jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&I.merge(o.common,o[n.method]);o&&I.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=bn.concat(l,o);const s=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(a=a&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let c,f=0,d;if(!a){const m=[hm.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(s=>{r.subscribe(s),o=s}).then(i);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,s){r.reason||(r.reason=new Xo(o,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Hd(function(i){t=i}),cancel:t}}}const pP=Hd;function hP(e){return function(n){return e.apply(null,n)}}function mP(e){return I.isObject(e)&&e.isAxiosError===!0}const sf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sf).forEach(([e,t])=>{sf[t]=e});const gP=sf;function l1(e){const t=new Gl(e),n=B0(Gl.prototype.request,t);return I.extend(n,Gl.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return l1(Ei(e,i))},n}const $e=l1(Ud);$e.Axios=Gl;$e.CanceledError=Xo;$e.CancelToken=pP;$e.isCancel=n1;$e.VERSION=o1;$e.toFormData=Ta;$e.AxiosError=fe;$e.Cancel=$e.CanceledError;$e.all=function(t){return Promise.all(t)};$e.spread=hP;$e.isAxiosError=mP;$e.mergeConfig=Ei;$e.AxiosHeaders=bn;$e.formToJSON=e=>t1(I.isHTMLForm(e)?new FormData(e):e);$e.getAdapter=i1.getAdapter;$e.HttpStatusCode=gP;$e.default=$e;const yP=$e;function vP(e){return e==null?void 0:e.replace(/\/$/,"")}const xP=vP("https://backend.captn.ai")||"http://localhost:3001",qd={apiUrl:xP};function wP(e){function t(n){return`${e}:${n}`}return{getPrefixedKey:t,set(n,r){Rl(),localStorage.setItem(t(n),JSON.stringify(r))},get(n){Rl();const r=localStorage.getItem(t(n));try{return r?JSON.parse(r):void 0}catch{return}},remove(n){Rl(),localStorage.removeItem(t(n))},clear(){Rl(),Object.keys(localStorage).forEach(n=>{n.startsWith(e)&&localStorage.removeItem(n)})}}}const Jo=wP("wasp");function Rl(){if(!window.localStorage)throw new Error("Local storage is not available.")}function SP(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const $o=SP(),mn=yP.create({baseURL:qd.apiUrl}),Aa="authToken";let Ir=Jo.get(Aa);function kP(e){Ir=e,Jo.set(Aa,e),$o.emit("authToken.set")}function EP(){Ir=void 0,Jo.remove(Aa),$o.emit("authToken.clear")}function CP(){Ir=void 0,Jo.clear(),$o.emit("authToken.clear")}mn.interceptors.request.use(e=>(Ir&&(e.headers.Authorization=`Bearer ${Ir}`),e));mn.interceptors.response.use(void 0,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&EP(),Promise.reject(e)});window.addEventListener("storage",e=>{e.key===Jo.getPrefixedKey(Aa)&&(e.newValue?(Ir=e.newValue,$o.emit("authToken.set")):(Ir=void 0,$o.emit("authToken.clear")))});function jr(e){var t;if(e!=null&&e.response){const n=(t=e.response)==null?void 0:t.data,r=e.response.status;throw new bP(r,(n==null?void 0:n.message)??e.message,n)}else throw e}class bP extends Error{constructor(n,r,i){super(r);za(this,"statusCode");za(this,"data");this.statusCode=n,this.data=i}}var Wd=(e=>(e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE",e))(Wd||{});async function s1(e,t){try{const n=ZC(t),r=await mn.post(e.path,n);return M0(r.data)}catch(n){jr(n)}}function a1(e){return{method:Wd.Post,path:`/${e}`}}function PP(e){const t=new Map;function n(l){return t.get(l)||[]}function r(l,s){const a=e(l),u=n(a);t.set(a,[...u,{queryKey:l,updateQuery:s}])}function i(l){const s=e(l);return n(s).map(({updateQuery:a})=>a)}function o(l){const s=e(l),a=n(s).filter(({queryKey:u})=>u!==l);a.length>0?t.set(s,a):t.delete(s)}return{add:r,remove:o,getUpdateHandlers:i}}const af=new Map,Qd=PP(Hn);function RP(e,t){for(const n of t){let r=af.get(n);r||(r=new Set,af.set(n,r)),r.add(e)}}function TP(e){e.forEach(({queryKey:t,updateQuery:n})=>Qd.add(t,n))}async function OP(e,t){t.forEach(({queryKey:n})=>Qd.remove(n)),await NP(e)}function AP(e){return Qd.getUpdateHandlers(e)}async function u1(){const e=await zd;e.resetQueries(),e.removeQueries()}async function NP(e){const t=await zd;_P(e).forEach(r=>t.invalidateQueries(r))}function IP(e){return Array.from(af.get(e)||[])}function _P(e){return Array.from(new Set(e.flatMap(IP)))}function c1(e,t){const n=a1(e);async function r(i,o){const l=await s1(n,o);return AP(i).reduce((s,a)=>a(s),l)}return f1(r,{relativeQueryPath:e,queryRoute:n,entitiesUsed:t}),r}function f1(e,{relativeQueryPath:t,queryRoute:n,entitiesUsed:r}){e.queryCacheKey=[t],e.route=n,RP(e.queryCacheKey,r)}const LP=jP();function Kd(e,t){return tf(LP,e,t)}function jP(){const e="auth/me",t={method:Wd.Get,path:`/${e}`};async function n(){var r;try{const i=await mn.get(t.path);return M0(i.data)}catch(i){if(((r=i.response)==null?void 0:r.status)===401)return null;jr(i)}}return f1(n,{relativeQueryPath:e,queryRoute:t,entitiesUsed:["User"]}),n}const bu="inline-flex items-center border-b-2 border-indigo-300 px-1 pt-1 text-sm font-medium text-gray-900",Pu="inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",Ru=window.location.pathname;function FP(){const{data:e}=Kd();return w.jsx(fr,{as:"nav",className:"bg-captn-light-cream shadow sticky top-0 z-50 ",children:({open:t})=>w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-16",children:w.jsxs("div",{className:"flex h-16 justify-between",children:[w.jsxs("div",{className:"flex",children:[w.jsx("div",{className:"flex flex-shrink-0 items-center",children:w.jsx("a",{href:"/",children:w.jsx("img",{className:"h-8 w-8",src:y0,alt:"My SaaS App"})})}),w.jsxs("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:[w.jsx("a",{href:"/",className:Ru==="/"?bu:Pu,children:"Home"}),w.jsx("a",{href:"/chat",className:Ru.includes("chat")?bu:Pu,children:"Chat"})]})]}),w.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:w.jsxs("a",{href:e?"/account":"/login",className:Ru==="/account"?bu:Pu,children:[w.jsx(xC,{className:"h-6 w-6 mr-2"}),"Account"]})}),w.jsx("div",{className:"-mr-2 flex items-center sm:hidden",children:w.jsxs(fr.Button,{className:"inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-300",children:[w.jsx("span",{className:"sr-only",children:"Open menu"}),t?w.jsx(vC,{className:"block h-6 w-6","aria-hidden":"true"}):w.jsx(gC,{className:"block h-6 w-6","aria-hidden":"true"})]})})]})}),w.jsx(fr.Panel,{className:"sm:hidden",children:w.jsxs("div",{className:"space-y-1 pt-2 pb-3",children:[w.jsx(fr.Button,{as:"a",href:"/",className:"block border-l-4 border-indigo-300 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-500",children:"Landing Page"}),w.jsx(fr.Button,{as:"a",href:"/pricing",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"Pricing"}),w.jsx(fr.Button,{as:"a",href:"/gpt",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"GPT"}),w.jsx(fr.Button,{as:"a",href:"/account",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800",children:"Account"})]})})]})})}function DP({children:e}){return w.jsxs("div",{className:"relative flex-col z-0 flex h-screen w-full overflow-hidden",children:[w.jsx(FP,{}),w.jsx("div",{className:"max-w-full px-0",children:e})]})}const Tu=e=>t=>{const{data:n,isError:r,isSuccess:i,isLoading:o}=Kd();return i?n?w.jsx(e,{...t,user:n}):w.jsx(EE,{to:"/login"}):o?w.jsx("span",{children:"Loading..."}):r?w.jsx("span",{children:"An error ocurred. Please refresh the page."}):w.jsx("span",{children:"An unknown error ocurred. Please refresh the page."})},zP="/assets/captn-logo-large-8bedc952.png";function MP(){return w.jsx("div",{children:w.jsxs("div",{className:"mx-auto max-w-7xl pt-10 pb-24 sm:pb-32 lg:grid lg:grid-cols-2 lg:gap-x-8 lg:py-32 lg:px-8",children:[w.jsx("div",{className:"px-6 lg:px-0 lg:pt-4",children:w.jsx("div",{className:"mx-auto max-w-2xl",children:w.jsxs("div",{className:"max-w-lg",children:[w.jsx("h1",{className:" text-4xl font-bold tracking-tight text-captn-dark-blue sm:text-6xl",children:"Capt'n AI"}),w.jsx("p",{className:"mt-4 text-lg leading-8 text-captn-dark-blue",children:"Hey 🧙‍♂️! This is a sneak peek at my product's evolving homepage. Get ready for an amazing launch soon!"})]})})}),w.jsx("div",{className:"mt-20 sm:mt-24 lg:mx-0 md:mx-auto md:max-w-2xl lg:w-screen lg:mt-0 ",children:w.jsx("div",{className:"shadow-lg md:rounded-3xl relative isolate overflow-hidden",children:w.jsxs("div",{className:"bg-captn-light-blue [clip-path:inset(0)] md:[clip-path:inset(0_round_theme(borderRadius.3xl))]",children:[w.jsx("div",{className:"absolute -inset-y-px -z-10 ml-40 w-[200%] bg-captn-light-cream ring-1 ring-inset ring-white ","aria-hidden":"true"}),w.jsx("div",{className:"relative px-6 pt-8 sm:pt-16 md:pl-16 md:pr-0",children:w.jsx("img",{src:zP})})]})})})]})})}var ye="colors",rt="sizes",X="space",$P={gap:X,gridGap:X,columnGap:X,gridColumnGap:X,rowGap:X,gridRowGap:X,inset:X,insetBlock:X,insetBlockEnd:X,insetBlockStart:X,insetInline:X,insetInlineEnd:X,insetInlineStart:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,marginBlock:X,marginBlockEnd:X,marginBlockStart:X,marginInline:X,marginInlineEnd:X,marginInlineStart:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,paddingBlock:X,paddingBlockEnd:X,paddingBlockStart:X,paddingInline:X,paddingInlineEnd:X,paddingInlineStart:X,top:X,right:X,bottom:X,left:X,scrollMargin:X,scrollMarginTop:X,scrollMarginRight:X,scrollMarginBottom:X,scrollMarginLeft:X,scrollMarginX:X,scrollMarginY:X,scrollMarginBlock:X,scrollMarginBlockEnd:X,scrollMarginBlockStart:X,scrollMarginInline:X,scrollMarginInlineEnd:X,scrollMarginInlineStart:X,scrollPadding:X,scrollPaddingTop:X,scrollPaddingRight:X,scrollPaddingBottom:X,scrollPaddingLeft:X,scrollPaddingX:X,scrollPaddingY:X,scrollPaddingBlock:X,scrollPaddingBlockEnd:X,scrollPaddingBlockStart:X,scrollPaddingInline:X,scrollPaddingInlineEnd:X,scrollPaddingInlineStart:X,fontSize:"fontSizes",background:ye,backgroundColor:ye,backgroundImage:ye,borderImage:ye,border:ye,borderBlock:ye,borderBlockEnd:ye,borderBlockStart:ye,borderBottom:ye,borderBottomColor:ye,borderColor:ye,borderInline:ye,borderInlineEnd:ye,borderInlineStart:ye,borderLeft:ye,borderLeftColor:ye,borderRight:ye,borderRightColor:ye,borderTop:ye,borderTopColor:ye,caretColor:ye,color:ye,columnRuleColor:ye,fill:ye,outline:ye,outlineColor:ye,stroke:ye,textDecorationColor:ye,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:rt,minBlockSize:rt,maxBlockSize:rt,inlineSize:rt,minInlineSize:rt,maxInlineSize:rt,width:rt,minWidth:rt,maxWidth:rt,height:rt,minHeight:rt,maxHeight:rt,flexBasis:rt,gridTemplateColumns:rt,gridTemplateRows:rt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},BP=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Ii=()=>{const e=Object.create(null);return(t,n,...r)=>{const i=(o=>JSON.stringify(o,BP))(t);return i in e?e[i]:e[i]=n(t,...r)}},Cr=Symbol.for("sxs.internal"),Gd=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),ym=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:UP}=Object.prototype,uf=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),VP=/\s+(?![^()]*\))/,$r=e=>t=>e(...typeof t=="string"?String(t).split(VP):[t]),vm={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:$r((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:$r((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:$r((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:$r((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:$r((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:$r((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Ou=/([\d.]+)([^]*)/,HP=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(i)?`:is(${r})`:r):r+" "+i)),n),[]):t,qP=(e,t)=>e in WP&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,i,o)=>r+(i==="stretch"?`-moz-available${o};${uf(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${uf(e)}:${r}fit-content`)+o):String(t),WP={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Nn=e=>e?e+"-":"",d1=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,i,o,l,s)=>l=="$"==!!o?r:(i||l=="--"?"calc(":"")+"var(--"+(l==="$"?Nn(t)+(s.includes("$")?"":Nn(n))+s.replace(/\$/g,"-"):s)+")"+(i||l=="--"?"*"+(i||"")+(o||"1")+")":"")),QP=/\s*,\s*(?![^()]*\))/,KP=Object.prototype.toString,ri=(e,t,n,r,i)=>{let o,l,s;const a=(u,c,f)=>{let d,p;const m=x=>{for(d in x){const g=d.charCodeAt(0)===64,v=g&&Array.isArray(x[d])?x[d]:[x[d]];for(p of v){const b=/[A-Z]/.test(h=d)?h:h.replace(/-[^]/g,k=>k[1].toUpperCase()),R=typeof p=="object"&&p&&p.toString===KP&&(!r.utils[b]||!c.length);if(b in r.utils&&!R){const k=r.utils[b];if(k!==l){l=k,m(k(p)),l=null;continue}}else if(b in vm){const k=vm[b];if(k!==s){s=k,m(k(p)),s=null;continue}}if(g&&(E=d.slice(1)in r.media?"@media "+r.media[d.slice(1)]:d,d=E.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(k,P,T,F,_,j)=>{const L=Ou.test(P),V=.0625*(L?-1:1),[J,K]=L?[F,P]:[P,F];return"("+(T[0]==="="?"":T[0]===">"===L?"max-":"min-")+J+":"+(T[0]!=="="&&T.length===1?K.replace(Ou,(ie,se,D)=>Number(se)+V*(T===">"?1:-1)+D):K)+(_?") and ("+(_[0]===">"?"min-":"max-")+J+":"+(_.length===1?j.replace(Ou,(ie,se,D)=>Number(se)+V*(_===">"?-1:1)+D):j):"")+")"})),R){const k=g?f.concat(d):[...f],P=g?[...c]:HP(c,d.split(QP));o!==void 0&&i(xm(...o)),o=void 0,a(p,P,k)}else o===void 0&&(o=[[],c,f]),d=g||d.charCodeAt(0)!==36?d:`--${Nn(r.prefix)}${d.slice(1).replace(/\$/g,"-")}`,p=R?p:typeof p=="number"?p&&b in GP?String(p)+"px":String(p):d1(qP(b,p??""),r.prefix,r.themeMap[b]),o[0].push(`${g?`${d} `:`${uf(d)}:`}${p}`)}}var E,h};m(u),o!==void 0&&i(xm(...o)),o=void 0};a(e,t,n)},xm=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,GP={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},wm=e=>String.fromCharCode(e+(e>25?39:97)),br=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=wm(n%52)+r;return wm(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),to=["themed","global","styled","onevar","resonevar","allvar","inline"],YP=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},XP=e=>{let t;const n=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,(o,l)=>{const{cssText:s}=o;let a="";if(s.startsWith("--sxs"))return"";if(i[l-1]&&(a=i[l-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${s}`;return o.cssRules.length?`${a}${s}`:""}return s}).join("")},r=()=>{if(t){const{rules:s,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in s)delete s[u]}const i=Object(e).styleSheets||[];for(const s of i)if(YP(s)){for(let a=0,u=s.cssRules;u[a];++a){const c=Object(u[a]);if(c.type!==1)continue;const f=Object(u[a+1]);if(f.type!==4)continue;++a;const{cssText:d}=c;if(!d.startsWith("--sxs"))continue;const p=d.slice(14,-3).trim().split(/\s+/),m=to[p[0]];m&&(t||(t={sheet:s,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:a,cache:new Set(p)})}if(t)break}if(!t){const s=(a,u)=>({type:u,cssRules:[],insertRule(c,f){this.cssRules.splice(f,0,s(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:r,toString:n}}const{sheet:o,rules:l}=t;for(let s=to.length-1;s>=0;--s){const a=to[s];if(!l[a]){const u=to[s+1],c=l[u]?l[u].index:o.cssRules.length;o.insertRule("@media{}",c),o.insertRule(`--sxs{--sxs:${s}}`,c),l[a]={group:o.cssRules[c+1],index:c,cache:new Set([s])}}JP(l[a])}};return r(),t},JP=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},Qi=Symbol(),ZP=Ii(),Sm=(e,t)=>ZP(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const i of n)if(i!=null)if(i[Cr]){r.type==null&&(r.type=i[Cr].type);for(const o of i[Cr].composers)r.composers.add(o)}else i.constructor!==Object||i.$$typeof?r.type==null&&(r.type=i):r.composers.add(e2(i,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),t2(e,r,t)}),e2=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{const o=`${Nn(i.prefix)}c-${br(r)}`,l=[],s=[],a=Object.create(null),u=[];for(const d in n)a[d]=String(n[d]);if(typeof e=="object"&&e)for(const d in e){c=a,f=d,UP.call(c,f)||(a[d]="undefined");const p=e[d];for(const m in p){const x={[d]:String(m)};String(m)==="undefined"&&u.push(d);const E=p[m],h=[x,E,!ym(E)];l.push(h)}}var c,f;if(typeof t=="object"&&t)for(const d of t){let{css:p,...m}=d;p=typeof p=="object"&&p||{};for(const E in m)m[E]=String(m[E]);const x=[m,p,!ym(p)];s.push(x)}return[o,r,l,s,a,u]},t2=(e,t,n)=>{const[r,i,o,l]=n2(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(f=>{function d(){for(let p=0;pd.rules[p]={apply:m=>d[Qi].push([p,m])}),d})(n):null,a=(s||n).rules,u=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=f=>{f=typeof f=="object"&&f||r2;const{css:d,...p}=f,m={};for(const h in o)if(delete p[h],h in f){let g=f[h];typeof g=="object"&&g?m[h]={"@initial":o[h],...g}:(g=String(g),m[h]=g!=="undefined"||l.has(h)?g:o[h])}else m[h]=o[h];const x=new Set([...i]);for(const[h,g,v,b]of t.composers){n.rules.styled.cache.has(h)||(n.rules.styled.cache.add(h),ri(g,[`.${h}`],[],e,P=>{a.styled.apply(P)}));const R=km(v,m,e.media),k=km(b,m,e.media,!0);for(const P of R)if(P!==void 0)for(const[T,F,_]of P){const j=`${h}-${br(F)}-${T}`;x.add(j);const L=(_?n.rules.resonevar:n.rules.onevar).cache,V=_?a.resonevar:a.onevar;L.has(j)||(L.add(j),ri(F,[`.${j}`],[],e,J=>{V.apply(J)}))}for(const P of k)if(P!==void 0)for(const[T,F]of P){const _=`${h}-${br(F)}-${T}`;x.add(_),n.rules.allvar.cache.has(_)||(n.rules.allvar.cache.add(_),ri(F,[`.${_}`],[],e,j=>{a.allvar.apply(j)}))}}if(typeof d=="object"&&d){const h=`${r}-i${br(d)}-css`;x.add(h),n.rules.inline.cache.has(h)||(n.rules.inline.cache.add(h),ri(d,[`.${h}`],[],e,g=>{a.inline.apply(g)}))}for(const h of String(f.className||"").trim().split(/\s+/))h&&x.add(h);const E=p.className=[...x].join(" ");return{type:t.type,className:E,selector:u,props:p,toString:()=>E,deferredInjector:s}};return Gd(c,{className:r,selector:u,[Cr]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},n2=e=>{let t="";const n=[],r={},i=[];for(const[o,,,,l,s]of e){t===""&&(t=o),n.push(o),i.push(...s);for(const a in l){const u=l[a];(r[a]===void 0||u!=="undefined"||s.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(i)]},km=(e,t,n,r)=>{const i=[];e:for(let[o,l,s]of e){if(s)continue;let a,u=0,c=!1;for(a in o){const f=o[a];let d=t[a];if(d!==f){if(typeof d!="object"||!d)continue e;{let p,m,x=0;for(const E in d){if(f===String(d[E])){if(E!=="@initial"){const h=E.slice(1);(m=m||[]).push(h in n?n[h]:E.replace(/^@media ?/,"")),c=!0}u+=x,p=!0}++x}if(m&&m.length&&(l={["@media "+m.join(", ")]:l}),!p)continue e}}}(i[u]=i[u]||[]).push([r?"cv":`${a}-${o[a]}`,l,c])}return i},r2={},i2=Ii(),o2=(e,t)=>i2(e,()=>(...n)=>{const r=()=>{for(let i of n){i=typeof i=="object"&&i||{};let o=br(i);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in i){let l=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(i["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,l++);delete i["@import"]}ri(i,[],[],e,l=>{t.rules.global.apply(l)})}}return""};return Gd(r,{toString:r})}),l2=Ii(),s2=(e,t)=>l2(e,()=>n=>{const r=`${Nn(e.prefix)}k-${br(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];ri(n,[],[],e,s=>o.push(s));const l=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(l)}return r};return Gd(i,{get name(){return i()},toString:i})}),a2=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Nn(this.prefix)+Nn(this.scale)+this.token}toString(){return this.computedValue}},u2=Ii(),c2=(e,t)=>u2(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const i=`.${n=(n=typeof n=="string"?n:"")||`${Nn(e.prefix)}t-${br(r)}`}`,o={},l=[];for(const a in r){o[a]={};for(const u in r[a]){const c=`--${Nn(e.prefix)}${a}-${u}`,f=d1(String(r[a][u]),e.prefix,a);o[a][u]=new a2(u,f,a,e.prefix),l.push(`${c}:${f}`)}}const s=()=>{if(l.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${l.join(";")}}`;t.rules.themed.apply(a)}return n};return{...o,get className(){return s()},selector:i,toString:s}}),f2=Ii(),Em,d2=Ii(),p1=e=>{const t=(n=>{let r=!1;const i=f2(n,o=>{r=!0;const l="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},a=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},c={prefix:l,media:s,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...$P},utils:typeof o.utils=="object"&&o.utils||{}},f=XP(a),d={css:Sm(c,f),globalCss:o2(c,f),keyframes:s2(c,f),createTheme:c2(c,f),reset(){f.reset(),d.theme.toString()},theme:{},sheet:f,config:c,prefix:l,getCssText:f.toString,toString:f.toString};return String(d.theme=d.createTheme(u)),d});return r||i.reset(),i})(e);return t.styled=(({config:n,sheet:r})=>d2(n,()=>{const i=Sm(n,r);return(...o)=>{const l=i(...o),s=l[Cr].type,a=Y.forwardRef((u,c)=>{const f=u&&u.as||s,{props:d,deferredInjector:p}=l(u);return delete d.as,d.ref=c,p?Y.createElement(Y.Fragment,null,Y.createElement(f,d),Y.createElement(p,null)):Y.createElement(f,d)});return a.className=l.className,a.displayName=`Styled.${s.displayName||s.name||s}`,a.selector=l.selector,a.toString=()=>l.selector,a[Cr]=l[Cr],a}}))(t),t},h1=()=>Em||(Em=p1()),p2=(...e)=>h1().createTheme(...e),h2=(...e)=>h1().css(...e);const{styled:Le,css:fI}=p1({theme:{colors:{waspYellow:"#ffcc00",gray700:"#a1a5ab",gray600:"#d1d5db",gray500:"gainsboro",gray400:"#f0f0f0",red:"#FED7D7",darkRed:"#fa3838",green:"#C6F6D5",brand:"$waspYellow",brandAccent:"#ffdb46",errorBackground:"$red",errorText:"#2D3748",successBackground:"$green",successText:"#2D3748",submitButtonText:"black",formErrorText:"$darkRed"},fontSizes:{sm:"0.875rem"}}});var Zo=e=>e.type==="checkbox",ii=e=>e instanceof Date,ot=e=>e==null;const m1=e=>typeof e=="object";var Ve=e=>!ot(e)&&!Array.isArray(e)&&m1(e)&&!ii(e),m2=e=>Ve(e)&&e.target?Zo(e.target)?e.target.checked:e.target.value:e,g2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,y2=(e,t)=>e.has(g2(t)),v2=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},Yd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function vn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Yd&&(e instanceof Blob||e instanceof FileList))&&(n||Ve(e)))if(t=n?[]:{},!n&&!v2(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=vn(e[r]));else return e;return t}var el=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,ee=(e,t,n)=>{if(!t||!Ve(e))return n;const r=el(t.split(/[,[\].]+?/)).reduce((i,o)=>ot(i)?i:i[o],e);return De(r)||r===e?De(e[t])?n:e[t]:r},xr=e=>typeof e=="boolean";const Cm={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Gt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},yn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};Y.createContext(null);var x2=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const l=o;return t._proxyFormState[l]!==Gt.all&&(t._proxyFormState[l]=!r||Gt.all),n&&(n[l]=!0),e[l]}});return i},_t=e=>Ve(e)&&!Object.keys(e).length,w2=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return _t(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||Gt.all))},Au=e=>Array.isArray(e)?e:[e];function S2(e){const t=Y.useRef(e);t.current=e,Y.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var un=e=>typeof e=="string",k2=(e,t,n,r,i)=>un(e)?(r&&t.watch.add(e),ee(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),ee(n,o))):(r&&(t.watchAll=!0),n),Xd=e=>/^\w*$/.test(e),g1=e=>el(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Re(e,t,n){let r=-1;const i=Xd(t)?[t]:g1(t),o=i.length,l=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const cf=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ee(e,r);if(i){const{_f:o,...l}=i;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else Ve(l)&&cf(l,t)}}};var bm=e=>({isOnSubmit:!e||e===Gt.onSubmit,isOnBlur:e===Gt.onBlur,isOnChange:e===Gt.onChange,isOnAll:e===Gt.all,isOnTouch:e===Gt.onTouched}),Pm=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),C2=(e,t,n)=>{const r=el(ee(e,n));return Re(r,"root",t[n]),Re(e,n,r),e},Jd=e=>e.type==="file",Wn=e=>typeof e=="function",As=e=>{if(!Yd)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Yl=e=>un(e),Zd=e=>e.type==="radio",Ns=e=>e instanceof RegExp;const Rm={value:!1,isValid:!1},Tm={value:!0,isValid:!0};var y1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!De(e[0].attributes.value)?De(e[0].value)||e[0].value===""?Tm:{value:e[0].value,isValid:!0}:Tm:Rm}return Rm};const Om={isValid:!1,value:null};var v1=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Om):Om;function Am(e,t,n="validate"){if(Yl(e)||Array.isArray(e)&&e.every(Yl)||xr(e)&&!e)return{type:n,message:Yl(e)?e:"",ref:t}}var Br=e=>Ve(e)&&!Ns(e)?e:{value:e,message:""},Nm=async(e,t,n,r,i)=>{const{ref:o,refs:l,required:s,maxLength:a,minLength:u,min:c,max:f,pattern:d,validate:p,name:m,valueAsNumber:x,mount:E,disabled:h}=e._f,g=ee(t,m);if(!E||h)return{};const v=l?l[0]:o,b=L=>{r&&v.reportValidity&&(v.setCustomValidity(xr(L)?"":L||""),v.reportValidity())},R={},k=Zd(o),P=Zo(o),T=k||P,F=(x||Jd(o))&&De(o.value)&&De(g)||As(o)&&o.value===""||g===""||Array.isArray(g)&&!g.length,_=E2.bind(null,m,n,R),j=(L,V,J,K=yn.maxLength,ie=yn.minLength)=>{const se=L?V:J;R[m]={type:L?K:ie,message:se,ref:o,..._(L?K:ie,se)}};if(i?!Array.isArray(g)||!g.length:s&&(!T&&(F||ot(g))||xr(g)&&!g||P&&!y1(l).isValid||k&&!v1(l).isValid)){const{value:L,message:V}=Yl(s)?{value:!!s,message:s}:Br(s);if(L&&(R[m]={type:yn.required,message:V,ref:v,..._(yn.required,V)},!n))return b(V),R}if(!F&&(!ot(c)||!ot(f))){let L,V;const J=Br(f),K=Br(c);if(!ot(g)&&!isNaN(g)){const ie=o.valueAsNumber||g&&+g;ot(J.value)||(L=ie>J.value),ot(K.value)||(V=ienew Date(new Date().toDateString()+" "+y),D=o.type=="time",z=o.type=="week";un(J.value)&&g&&(L=D?se(g)>se(J.value):z?g>J.value:ie>new Date(J.value)),un(K.value)&&g&&(V=D?se(g)+L.value,K=!ot(V.value)&&g.length<+V.value;if((J||K)&&(j(J,L.message,V.message),!n))return b(R[m].message),R}if(d&&!F&&un(g)){const{value:L,message:V}=Br(d);if(Ns(L)&&!g.match(L)&&(R[m]={type:yn.pattern,message:V,ref:o,..._(yn.pattern,V)},!n))return b(V),R}if(p){if(Wn(p)){const L=await p(g,t),V=Am(L,v);if(V&&(R[m]={...V,..._(yn.validate,V.message)},!n))return b(V.message),R}else if(Ve(p)){let L={};for(const V in p){if(!_t(L)&&!n)break;const J=Am(await p[V](g,t),v,V);J&&(L={...J,..._(V,J.message)},b(J.message),n&&(R[m]=L))}if(!_t(L)&&(R[m]={ref:v,...L},!n))return R}}return b(!0),R};function b2(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}}var Is=e=>ot(e)||!m1(e);function wr(e,t){if(Is(e)||Is(t))return e===t;if(ii(e)&&ii(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(ii(o)&&ii(l)||Ve(o)&&Ve(l)||Array.isArray(o)&&Array.isArray(l)?!wr(o,l):o!==l)return!1}}return!0}var x1=e=>e.type==="select-multiple",R2=e=>Zd(e)||Zo(e),Iu=e=>As(e)&&e.isConnected,w1=e=>{for(const t in e)if(Wn(e[t]))return!0;return!1};function _s(e,t={}){const n=Array.isArray(e);if(Ve(e)||n)for(const r in e)Array.isArray(e[r])||Ve(e[r])&&!w1(e[r])?(t[r]=Array.isArray(e[r])?[]:{},_s(e[r],t[r])):ot(e[r])||(t[r]=!0);return t}function S1(e,t,n){const r=Array.isArray(e);if(Ve(e)||r)for(const i in e)Array.isArray(e[i])||Ve(e[i])&&!w1(e[i])?De(t)||Is(n[i])?n[i]=Array.isArray(e[i])?_s(e[i],[]):{..._s(e[i])}:S1(e[i],ot(t)?{}:t[i],n[i]):n[i]=!wr(e[i],t[i]);return n}var _u=(e,t)=>S1(e,t,_s(t)),k1=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>De(e)?e:t?e===""?NaN:e&&+e:n&&un(e)?new Date(e):r?r(e):e;function Lu(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Jd(t)?t.files:Zd(t)?v1(e.refs).value:x1(t)?[...t.selectedOptions].map(({value:n})=>n):Zo(t)?y1(e.refs).value:k1(De(t.value)?e.ref.value:t.value,e)}var T2=(e,t,n,r)=>{const i={};for(const o of e){const l=ee(t,o);l&&Re(i,o,l._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Ki=e=>De(e)?e:Ns(e)?e.source:Ve(e)?Ns(e.value)?e.value.source:e.value:e,O2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Im(e,t,n){const r=ee(e,n);if(r||Xd(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),l=ee(t,o),s=ee(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var A2=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,N2=(e,t)=>!el(ee(e,t)).length&&Ke(e,t);const I2={mode:Gt.onSubmit,reValidateMode:Gt.onChange,shouldFocusError:!0};function _2(e={},t){let n={...I2,...e},r={submitCount:0,isDirty:!1,isLoading:Wn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},o=Ve(n.defaultValues)||Ve(n.values)?vn(n.defaultValues||n.values)||{}:{},l=n.shouldUnregister?{}:vn(o),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Nu(),array:Nu(),state:Nu()},p=e.resetOptions&&e.resetOptions.keepDirtyValues,m=bm(n.mode),x=bm(n.reValidateMode),E=n.criteriaMode===Gt.all,h=C=>A=>{clearTimeout(c),c=setTimeout(C,A)},g=async C=>{if(f.isValid||C){const A=n.resolver?_t((await F()).errors):await j(i,!0);A!==r.isValid&&d.state.next({isValid:A})}},v=C=>f.isValidating&&d.state.next({isValidating:C}),b=(C,A=[],N,Z,q=!0,B=!0)=>{if(Z&&N){if(s.action=!0,B&&Array.isArray(ee(i,C))){const te=N(ee(i,C),Z.argA,Z.argB);q&&Re(i,C,te)}if(B&&Array.isArray(ee(r.errors,C))){const te=N(ee(r.errors,C),Z.argA,Z.argB);q&&Re(r.errors,C,te),N2(r.errors,C)}if(f.touchedFields&&B&&Array.isArray(ee(r.touchedFields,C))){const te=N(ee(r.touchedFields,C),Z.argA,Z.argB);q&&Re(r.touchedFields,C,te)}f.dirtyFields&&(r.dirtyFields=_u(o,l)),d.state.next({name:C,isDirty:V(C,A),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Re(l,C,A)},R=(C,A)=>{Re(r.errors,C,A),d.state.next({errors:r.errors})},k=(C,A,N,Z)=>{const q=ee(i,C);if(q){const B=ee(l,C,De(N)?ee(o,C):N);De(B)||Z&&Z.defaultChecked||A?Re(l,C,A?B:Lu(q._f)):ie(C,B),s.mount&&g()}},P=(C,A,N,Z,q)=>{let B=!1,te=!1;const Pe={name:C};if(!N||Z){f.isDirty&&(te=r.isDirty,r.isDirty=Pe.isDirty=V(),B=te!==Pe.isDirty);const O=wr(ee(o,C),A);te=ee(r.dirtyFields,C),O?Ke(r.dirtyFields,C):Re(r.dirtyFields,C,!0),Pe.dirtyFields=r.dirtyFields,B=B||f.dirtyFields&&te!==!O}if(N){const O=ee(r.touchedFields,C);O||(Re(r.touchedFields,C,N),Pe.touchedFields=r.touchedFields,B=B||f.touchedFields&&O!==N)}return B&&q&&d.state.next(Pe),B?Pe:{}},T=(C,A,N,Z)=>{const q=ee(r.errors,C),B=f.isValid&&xr(A)&&r.isValid!==A;if(e.delayError&&N?(u=h(()=>R(C,N)),u(e.delayError)):(clearTimeout(c),u=null,N?Re(r.errors,C,N):Ke(r.errors,C)),(N?!wr(q,N):q)||!_t(Z)||B){const te={...Z,...B&&xr(A)?{isValid:A}:{},errors:r.errors,name:C};r={...r,...te},d.state.next(te)}v(!1)},F=async C=>n.resolver(l,n.context,T2(C||a.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),_=async C=>{const{errors:A}=await F(C);if(C)for(const N of C){const Z=ee(A,N);Z?Re(r.errors,N,Z):Ke(r.errors,N)}else r.errors=A;return A},j=async(C,A,N={valid:!0})=>{for(const Z in C){const q=C[Z];if(q){const{_f:B,...te}=q;if(B){const Pe=a.array.has(B.name),O=await Nm(q,l,E,n.shouldUseNativeValidation&&!A,Pe);if(O[B.name]&&(N.valid=!1,A))break;!A&&(ee(O,B.name)?Pe?C2(r.errors,O,B.name):Re(r.errors,B.name,O[B.name]):Ke(r.errors,B.name))}te&&await j(te,A,N)}}return N.valid},L=()=>{for(const C of a.unMount){const A=ee(i,C);A&&(A._f.refs?A._f.refs.every(N=>!Iu(N)):!Iu(A._f.ref))&&le(C)}a.unMount=new Set},V=(C,A)=>(C&&A&&Re(l,C,A),!wr(W(),o)),J=(C,A,N)=>k2(C,a,{...s.mount?l:De(A)?o:un(C)?{[C]:A}:A},N,A),K=C=>el(ee(s.mount?l:o,C,e.shouldUnregister?ee(o,C,[]):[])),ie=(C,A,N={})=>{const Z=ee(i,C);let q=A;if(Z){const B=Z._f;B&&(!B.disabled&&Re(l,C,k1(A,B)),q=As(B.ref)&&ot(A)?"":A,x1(B.ref)?[...B.ref.options].forEach(te=>te.selected=q.includes(te.value)):B.refs?Zo(B.ref)?B.refs.length>1?B.refs.forEach(te=>(!te.defaultChecked||!te.disabled)&&(te.checked=Array.isArray(q)?!!q.find(Pe=>Pe===te.value):q===te.value)):B.refs[0]&&(B.refs[0].checked=!!q):B.refs.forEach(te=>te.checked=te.value===q):Jd(B.ref)?B.ref.value="":(B.ref.value=q,B.ref.type||d.values.next({name:C,values:{...l}})))}(N.shouldDirty||N.shouldTouch)&&P(C,q,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&y(C)},se=(C,A,N)=>{for(const Z in A){const q=A[Z],B=`${C}.${Z}`,te=ee(i,B);(a.array.has(C)||!Is(q)||te&&!te._f)&&!ii(q)?se(B,q,N):ie(B,q,N)}},D=(C,A,N={})=>{const Z=ee(i,C),q=a.array.has(C),B=vn(A);Re(l,C,B),q?(d.array.next({name:C,values:{...l}}),(f.isDirty||f.dirtyFields)&&N.shouldDirty&&d.state.next({name:C,dirtyFields:_u(o,l),isDirty:V(C,B)})):Z&&!Z._f&&!ot(B)?se(C,B,N):ie(C,B,N),Pm(C,a)&&d.state.next({...r}),d.values.next({name:C,values:{...l}}),!s.mount&&t()},z=async C=>{const A=C.target;let N=A.name,Z=!0;const q=ee(i,N),B=()=>A.type?Lu(q._f):m2(C);if(q){let te,Pe;const O=B(),U=C.type===Cm.BLUR||C.type===Cm.FOCUS_OUT,re=!O2(q._f)&&!n.resolver&&!ee(r.errors,N)&&!q._f.deps||A2(U,ee(r.touchedFields,N),r.isSubmitted,x,m),ue=Pm(N,a,U);Re(l,N,O),U?(q._f.onBlur&&q._f.onBlur(C),u&&u(0)):q._f.onChange&&q._f.onChange(C);const pe=P(N,O,U,!1),xt=!_t(pe)||ue;if(!U&&d.values.next({name:N,type:C.type,values:{...l}}),re)return f.isValid&&g(),xt&&d.state.next({name:N,...ue?{}:pe});if(!U&&ue&&d.state.next({...r}),v(!0),n.resolver){const{errors:en}=await F([N]),Vt=Im(r.errors,i,N),_n=Im(en,i,Vt.name||N);te=_n.error,N=_n.name,Pe=_t(en)}else te=(await Nm(q,l,E,n.shouldUseNativeValidation))[N],Z=Number.isNaN(O)||O===ee(l,N,O),Z&&(te?Pe=!1:f.isValid&&(Pe=await j(i,!0)));Z&&(q._f.deps&&y(q._f.deps),T(N,Pe,te,pe))}},y=async(C,A={})=>{let N,Z;const q=Au(C);if(v(!0),n.resolver){const B=await _(De(C)?C:q);N=_t(B),Z=C?!q.some(te=>ee(B,te)):N}else C?(Z=(await Promise.all(q.map(async B=>{const te=ee(i,B);return await j(te&&te._f?{[B]:te}:te)}))).every(Boolean),!(!Z&&!r.isValid)&&g()):Z=N=await j(i);return d.state.next({...!un(C)||f.isValid&&N!==r.isValid?{}:{name:C},...n.resolver||!C?{isValid:N}:{},errors:r.errors,isValidating:!1}),A.shouldFocus&&!Z&&cf(i,B=>B&&ee(r.errors,B),C?q:a.mount),Z},W=C=>{const A={...o,...s.mount?l:{}};return De(C)?A:un(C)?ee(A,C):C.map(N=>ee(A,N))},Q=(C,A)=>({invalid:!!ee((A||r).errors,C),isDirty:!!ee((A||r).dirtyFields,C),isTouched:!!ee((A||r).touchedFields,C),error:ee((A||r).errors,C)}),S=C=>{C&&Au(C).forEach(A=>Ke(r.errors,A)),d.state.next({errors:C?r.errors:{}})},ae=(C,A,N)=>{const Z=(ee(i,C,{_f:{}})._f||{}).ref;Re(r.errors,C,{...A,ref:Z}),d.state.next({name:C,errors:r.errors,isValid:!1}),N&&N.shouldFocus&&Z&&Z.focus&&Z.focus()},xe=(C,A)=>Wn(C)?d.values.subscribe({next:N=>C(J(void 0,A),N)}):J(C,A,!0),le=(C,A={})=>{for(const N of C?Au(C):a.mount)a.mount.delete(N),a.array.delete(N),A.keepValue||(Ke(i,N),Ke(l,N)),!A.keepError&&Ke(r.errors,N),!A.keepDirty&&Ke(r.dirtyFields,N),!A.keepTouched&&Ke(r.touchedFields,N),!n.shouldUnregister&&!A.keepDefaultValue&&Ke(o,N);d.values.next({values:{...l}}),d.state.next({...r,...A.keepDirty?{isDirty:V()}:{}}),!A.keepIsValid&&g()},we=({disabled:C,name:A,field:N,fields:Z})=>{if(xr(C)){const q=C?void 0:ee(l,A,Lu(N?N._f:ee(Z,A)._f));Re(l,A,q),P(A,q,!1,!1,!0)}},je=(C,A={})=>{let N=ee(i,C);const Z=xr(A.disabled);return Re(i,C,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:C}},name:C,mount:!0,...A}}),a.mount.add(C),N?we({field:N,disabled:A.disabled,name:C}):k(C,!0,A.value),{...Z?{disabled:A.disabled}:{},...n.progressive?{required:!!A.required,min:Ki(A.min),max:Ki(A.max),minLength:Ki(A.minLength),maxLength:Ki(A.maxLength),pattern:Ki(A.pattern)}:{},name:C,onChange:z,onBlur:z,ref:q=>{if(q){je(C,A),N=ee(i,C);const B=De(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,te=R2(B),Pe=N._f.refs||[];if(te?Pe.find(O=>O===B):B===N._f.ref)return;Re(i,C,{_f:{...N._f,...te?{refs:[...Pe.filter(Iu),B,...Array.isArray(ee(o,C))?[{}]:[]],ref:{type:B.type,name:C}}:{ref:B}}}),k(C,!1,void 0,B)}else N=ee(i,C,{}),N._f&&(N._f.mount=!1),(n.shouldUnregister||A.shouldUnregister)&&!(y2(a.array,C)&&s.action)&&a.unMount.add(C)}}},Nt=()=>n.shouldFocusError&&cf(i,C=>C&&ee(r.errors,C),a.mount),Zt=(C,A)=>async N=>{N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let Z=vn(l);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:q,values:B}=await F();r.errors=q,Z=B}else await j(i);Ke(r.errors,"root"),_t(r.errors)?(d.state.next({errors:{}}),await C(Z,N)):(A&&await A({...r.errors},N),Nt(),setTimeout(Nt)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_t(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ji=(C,A={})=>{ee(i,C)&&(De(A.defaultValue)?D(C,ee(o,C)):(D(C,A.defaultValue),Re(o,C,A.defaultValue)),A.keepTouched||Ke(r.touchedFields,C),A.keepDirty||(Ke(r.dirtyFields,C),r.isDirty=A.defaultValue?V(C,ee(o,C)):V()),A.keepError||(Ke(r.errors,C),f.isValid&&g()),d.state.next({...r}))},ll=(C,A={})=>{const N=C?vn(C):o,Z=vn(N),q=C&&!_t(C)?Z:o;if(A.keepDefaultValues||(o=N),!A.keepValues){if(A.keepDirtyValues||p)for(const B of a.mount)ee(r.dirtyFields,B)?Re(q,B,ee(l,B)):D(B,ee(q,B));else{if(Yd&&De(C))for(const B of a.mount){const te=ee(i,B);if(te&&te._f){const Pe=Array.isArray(te._f.refs)?te._f.refs[0]:te._f.ref;if(As(Pe)){const O=Pe.closest("form");if(O){O.reset();break}}}}i={}}l=e.shouldUnregister?A.keepDefaultValues?vn(o):{}:vn(q),d.array.next({values:{...q}}),d.values.next({values:{...q}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!A.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:A.keepSubmitCount?r.submitCount:0,isDirty:A.keepDirty?r.isDirty:!!(A.keepDefaultValues&&!wr(C,o)),isSubmitted:A.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:A.keepDirtyValues?r.dirtyFields:A.keepDefaultValues&&C?_u(o,C):{},touchedFields:A.keepTouched?r.touchedFields:{},errors:A.keepErrors?r.errors:{},isSubmitSuccessful:A.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},sl=(C,A)=>ll(Wn(C)?C(l):C,A);return{control:{register:je,unregister:le,getFieldState:Q,handleSubmit:Zt,setError:ae,_executeSchema:F,_getWatch:J,_getDirty:V,_updateValid:g,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:we,_getFieldArray:K,_reset:ll,_resetDefaultValues:()=>Wn(n.defaultValues)&&n.defaultValues().then(C=>{sl(C,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:C=>{r={...r,...C}},_subjects:d,_proxyFormState:f,get _fields(){return i},get _formValues(){return l},get _state(){return s},set _state(C){s=C},get _defaultValues(){return o},get _names(){return a},set _names(C){a=C},get _formState(){return r},set _formState(C){r=C},get _options(){return n},set _options(C){n={...n,...C}}},trigger:y,register:je,handleSubmit:Zt,watch:xe,setValue:D,getValues:W,reset:sl,resetField:ji,clearErrors:S,unregister:le,setError:ae,setFocus:(C,A={})=>{const N=ee(i,C),Z=N&&N._f;if(Z){const q=Z.refs?Z.refs[0]:Z.ref;q.focus&&(q.focus(),A.shouldSelect&&q.select())}},getFieldState:Q}}function ep(e={}){const t=Y.useRef(),n=Y.useRef(),[r,i]=Y.useState({isDirty:!1,isValidating:!1,isLoading:Wn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Wn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={..._2(e,()=>i(l=>({...l}))),formState:r});const o=t.current.control;return o._options=e,S2({subject:o._subjects.state,next:l=>{w2(l,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Y.useEffect(()=>{e.values&&!wr(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values):o._resetDefaultValues()},[e.values,o]),Y.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=x2(r,o),t.current}const tp=Le("form",{marginTop:"1.5rem"}),Pn=Le("div",{"& + div":{marginTop:"1.5rem"}}),Ci=Le("label",{display:"block",fontSize:"$sm",fontWeight:"500",marginBottom:"0.5rem"}),E1={display:"block",lineHeight:"1.5rem",fontSize:"$sm",borderWidth:"1px",borderColor:"$gray600",backgroundColor:"#f8f4ff",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:focus":{borderWidth:"1px",borderColor:"$gray700",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},borderRadius:"0.375rem",width:"100%",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",margin:0},bi=Le("input",E1),L2=Le("textarea",E1),Pi=Le("div",{display:"block",fontSize:"$sm",fontWeight:"500",color:"$formErrorText",marginTop:"0.5rem"}),np=Le("button",{display:"flex",justifyContent:"center",width:"100%",borderWidth:"1px",borderColor:"$brand",backgroundColor:"$brand",color:"$submitButtonText",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",fontWeight:"600",fontSize:"$sm",lineHeight:"1.25rem",borderRadius:"0.375rem","&:hover":{backgroundColor:"$brandAccent",borderColor:"$brandAccent"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),j2=h2({width:"1.25rem",height:"1.25rem"}),F2=()=>w.jsx("svg",{className:j2(),"aria-hidden":"true",fill:"currentColor",viewBox:"0 0 24 24",children:w.jsx("g",{id:"brand",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:w.jsx("g",{id:"google",fill:"#000000",fillRule:"nonzero",children:w.jsx("path",{d:"M11.99,13.9 L11.99,10.18 L21.35,10.18 C21.49,10.81 21.6,11.4 21.6,12.23 C21.6,17.94 17.77,22 12,22 C6.48,22 2,17.52 2,12 C2,6.48 6.48,2 12,2 C14.7,2 16.96,2.99 18.69,4.61 L15.85,7.37 C15.13,6.69 13.87,5.89 12,5.89 C8.69,5.89 5.99,8.64 5.99,12.01 C5.99,15.38 8.69,18.13 12,18.13 C15.83,18.13 17.24,15.48 17.5,13.91 L11.99,13.91 L11.99,13.9 Z",id:"Shape"})})})}),D2=Le("a",{display:"flex",justifyContent:"center",cursor:"pointer",color:"inherit",backgroundColor:"#f0f0f0",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"$gray600",fontSize:"13px",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:visited":{color:"inherit"},"&:hover":{backgroundColor:"$gray500",color:"inherit"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"});async function z2(e){try{return(await mn.post("/auth/email/signup",e)).data}catch(t){jr(t)}}async function C1(e){kP(e),await u1()}async function _m(e){try{const t=await mn.post("/auth/email/login",e);await C1(t.data.token)}catch(t){jr(t)}}function M2({onError:e,showEmailVerificationPending:t,isEmailVerificationRequired:n,onLoginSuccess:r,isLogin:i}){async function o(l){try{i?(await _m(l),r()):(await z2(l),n?t():(await _m(l),r()))}catch(s){e(s)}}return{handleSubmit:o}}const $2=Le("div",{position:"relative",marginTop:"1.5rem"}),B2=Le("div",{position:"absolute",inset:"0px",display:"flex",alignItems:"center"}),U2=Le("div",{width:"100%",borderTopWidth:"1px",borderColor:"$gray500"}),V2=Le("div",{position:"relative",display:"flex",justifyContent:"center",fontSize:"$sm"}),H2=Le("span",{backgroundColor:"white",paddingLeft:"0.5rem",paddingRight:"0.5rem"}),q2=Le("div",{marginTop:"1.5rem"}),W2=Le("div",{fontWeight:"500",fontSize:"$sm"}),Q2=Le("div",{marginTop:"0.5rem",display:"flex",variants:{direction:{horizontal:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(48px, 1fr))"},vertical:{flexDirection:"column",margin:"8px 0"}},gap:{small:{gap:"4px"},medium:{gap:"8px"},large:{gap:"16px"}}}}),K2=`${qd.apiUrl}/auth/google/login`,G2=({state:e,socialButtonsDirection:t="horizontal",additionalSignupFields:n})=>{const{isLoading:r,setErrorMessage:i,setSuccessMessage:o,setIsLoading:l}=H.useContext(tl),s=e==="login",a=s?"Log in":"Sign up",u=Ko(),c=h=>{var g,v;i({title:h.message,description:(v=(g=h.data)==null?void 0:g.data)==null?void 0:v.message})},f=ep(),{register:d,formState:{errors:p},handleSubmit:m}=f,{handleSubmit:x}=M2({isLogin:s,onError:c,showEmailVerificationPending(){f.reset(),o("You've signed up successfully! Check your email for the confirmation link.")},onLoginSuccess(){u.push("/chat")},isEmailVerificationRequired:!0});async function E(h){l(!0),i(null),o(null);try{await x(h)}finally{l(!1)}}return w.jsxs(w.Fragment,{children:[w.jsxs(q2,{children:[w.jsxs(W2,{children:[a," with"]}),w.jsx(Q2,{gap:"large",direction:t,children:w.jsx(D2,{href:K2,children:w.jsx(F2,{})})})]}),w.jsxs($2,{children:[w.jsx(B2,{children:w.jsx(U2,{})}),w.jsx(V2,{children:w.jsx(H2,{children:"Or continue with"})})]}),w.jsxs(tp,{onSubmit:m(E),children:[w.jsxs(Pn,{children:[w.jsx(Ci,{children:"E-mail"}),w.jsx(bi,{...d("email",{required:"Email is required"}),type:"email",disabled:r}),p.email&&w.jsx(Pi,{children:p.email.message})]}),w.jsxs(Pn,{children:[w.jsx(Ci,{children:"Password"}),w.jsx(bi,{...d("password",{required:"Password is required"}),type:"password",disabled:r}),p.password&&w.jsx(Pi,{children:p.password.message})]}),w.jsx(Y2,{hookForm:f,formState:{isLoading:r},additionalSignupFields:n}),w.jsx(Pn,{children:w.jsx(np,{type:"submit",disabled:r,children:a})})]})]})};function Y2({hookForm:e,formState:{isLoading:t},additionalSignupFields:n}){const{register:r,formState:{errors:i}}=e;function o(l,s,a){return w.jsxs(Pn,{children:[w.jsx(Ci,{children:l.label}),w.jsx(s,{...r(l.name,l.validations),...a,disabled:t}),i[l.name]&&w.jsx(Pi,{children:i[l.name].message})]},l.name)}return J2(n)?n(e,{isLoading:t}):n&&n.map(l=>{if(X2(l))return l(e,{isLoading:t});switch(l.type){case"input":return o(l,bi,{type:"text"});case"textarea":return o(l,L2);default:throw new Error(`Unsupported additional signup field type: ${l.type}`)}})}function X2(e){return typeof e=="function"}function J2(e){return typeof e=="function"}const rp=Le("div",{padding:"0.5rem 0.75rem",borderRadius:"0.375rem",marginTop:"1rem",background:"$gray400"}),Z2=Le(rp,{background:"$errorBackground",color:"$errorText"}),eR=Le(rp,{background:"$successBackground",color:"$successText"});async function tR(e){try{return(await mn.post("/auth/email/request-password-reset",e)).data}catch(t){jr(t)}}async function nR(e){try{return(await mn.post("/auth/email/reset-password",e)).data}catch(t){jr(t)}}const rR=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=ep(),{isLoading:i,setErrorMessage:o,setSuccessMessage:l,setIsLoading:s}=H.useContext(tl),a=async u=>{var c,f;s(!0),o(null),l(null);try{await tR(u),n(),l("Check your email for a password reset link.")}catch(d){o({title:d.message,description:(f=(c=d.data)==null?void 0:c.data)==null?void 0:f.message})}finally{s(!1)}};return w.jsx(w.Fragment,{children:w.jsxs(tp,{onSubmit:t(a),children:[w.jsxs(Pn,{children:[w.jsx(Ci,{children:"E-mail"}),w.jsx(bi,{...e("email",{required:"Email is required"}),type:"email",disabled:i}),r.email&&w.jsx(Pi,{children:r.email.message})]}),w.jsx(Pn,{children:w.jsx(np,{type:"submit",disabled:i,children:"Send password reset email"})})]})})},iR=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=ep(),{isLoading:i,setErrorMessage:o,setSuccessMessage:l,setIsLoading:s}=H.useContext(tl),a=m0(),u=new URLSearchParams(a.search).get("token"),c=async f=>{var d,p;if(!u){o({title:"The token is missing from the URL. Please check the link you received in your email."});return}if(!f.password||f.password!==f.passwordConfirmation){o({title:"Passwords don't match!"});return}s(!0),o(null),l(null);try{await nR({password:f.password,token:u}),n(),l("Your password has been reset.")}catch(m){o({title:m.message,description:(p=(d=m.data)==null?void 0:d.data)==null?void 0:p.message})}finally{s(!1)}};return w.jsx(w.Fragment,{children:w.jsxs(tp,{onSubmit:t(c),children:[w.jsxs(Pn,{children:[w.jsx(Ci,{children:"New password"}),w.jsx(bi,{...e("password",{required:"Password is required"}),type:"password",disabled:i}),r.passwordConfirmation&&w.jsx(Pi,{children:r.passwordConfirmation.message})]}),w.jsxs(Pn,{children:[w.jsx(Ci,{children:"Confirm new password"}),w.jsx(bi,{...e("passwordConfirmation",{required:"Password confirmation is required"}),type:"password",disabled:i}),r.passwordConfirmation&&w.jsx(Pi,{children:r.passwordConfirmation.message})]}),w.jsx(Pn,{children:w.jsx(np,{type:"submit",disabled:i,children:"Reset password"})})]})})};async function oR(e){try{return(await mn.post("/auth/email/verify-email",e)).data}catch(t){jr(t)}}const lR=()=>{const{isLoading:e,setErrorMessage:t,setSuccessMessage:n,setIsLoading:r}=H.useContext(tl),i=m0(),o=new URLSearchParams(i.search).get("token");async function l(){var s,a;if(!o){t({title:"The token is missing from the URL. Please check the link you received in your email."});return}r(!0),t(null),n(null);try{await oR({token:o}),n("Your email has been verified. You can now log in.")}catch(u){t({title:u.message,description:(a=(s=u.data)==null?void 0:s.data)==null?void 0:a.message})}finally{r(!1)}}return H.useEffect(()=>{l()},[i]),w.jsx(w.Fragment,{children:e&&w.jsx(rp,{children:"Verifying email..."})})},sR={height:"3rem"},aR=Le("div",{display:"flex",flexDirection:"column"}),uR=Le("h2",{fontSize:"1.875rem",fontWeight:"700",marginTop:"1.5rem"}),tl=H.createContext({isLoading:!1,setIsLoading:e=>{},setErrorMessage:e=>{},setSuccessMessage:e=>{}});function nl({state:e,appearance:t,logo:n,socialLayout:r="horizontal",additionalSignupFields:i}){const[o,l]=H.useState(null),[s,a]=H.useState(null),[u,c]=H.useState(!1),f=p2(t??{}),p={login:"Log in to your account",signup:"Create a new account","forgot-password":"Forgot your password?","reset-password":"Reset your password","verify-email":"Email verification"}[e],m=r==="vertical"?"vertical":"horizontal";return w.jsxs(aR,{className:f,children:[w.jsxs("div",{children:[n&&w.jsx("img",{style:sR,src:n,alt:"Your Company"}),w.jsx(uR,{children:p})]}),o&&w.jsxs(Z2,{children:[o.title,o.description&&": ",o.description]}),s&&w.jsx(eR,{children:s}),w.jsxs(tl.Provider,{value:{isLoading:u,setIsLoading:c,setErrorMessage:l,setSuccessMessage:a},children:[(e==="login"||e==="signup")&&w.jsx(G2,{state:e,socialButtonsDirection:m,additionalSignupFields:i}),e==="forgot-password"&&w.jsx(rR,{}),e==="reset-password"&&w.jsx(iR,{}),e==="verify-email"&&w.jsx(lR,{})]})]})}var _i=(e=>(e.Login="login",e.Signup="signup",e.ForgotPassword="forgot-password",e.ResetPassword="reset-password",e.VerifyEmail="verify-email",e))(_i||{});function cR({appearance:e,logo:t,socialLayout:n}){return w.jsx(nl,{appearance:e,logo:t,socialLayout:n,state:_i.Login})}function rl({children:e}){return w.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:w.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:w.jsx("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:w.jsx("div",{className:"-mt-8",children:e})})})})}const fR={colors:{brand:"#0da37f",brandAccent:"#066d55",submitButtonText:"white"}};function dR(){const e=Ko(),{data:t}=Kd();return H.useEffect(()=>{t&&e.push("/")},[t,e]),w.jsxs(rl,{children:[w.jsx(cR,{appearance:fR}),w.jsx("br",{}),w.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Don't have an account yet?"," ",w.jsx(Nr,{to:"/signup",className:"underline",children:"go to signup"}),"."]}),w.jsx("br",{}),w.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Forgot your password?"," ",w.jsx(Nr,{to:"/request-password-reset",className:"underline",children:"reset it"}),"."]})]})}function pR({appearance:e,logo:t,socialLayout:n,additionalFields:r}){return w.jsx(nl,{appearance:e,logo:t,socialLayout:n,state:_i.Signup,additionalSignupFields:r})}function hR(){return w.jsxs(rl,{children:[w.jsx(pR,{}),w.jsx("br",{}),w.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["I already have an account (",w.jsx(Nr,{to:"/login",className:"underline",children:"go to login"}),")."]}),w.jsx("br",{})]})}function mR({appearance:e,logo:t,socialLayout:n}){return w.jsx(nl,{appearance:e,logo:t,socialLayout:n,state:_i.ForgotPassword})}function gR(){return w.jsx(rl,{children:w.jsx(mR,{})})}function yR({appearance:e,logo:t,socialLayout:n}){return w.jsx(nl,{appearance:e,logo:t,socialLayout:n,state:_i.ResetPassword})}function vR(){return w.jsxs(rl,{children:[w.jsx(yR,{}),w.jsx("br",{}),w.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",w.jsx(Nr,{to:"/login",children:"go to login"})]})]})}function xR({appearance:e,logo:t,socialLayout:n}){return w.jsx(nl,{appearance:e,logo:t,socialLayout:n,state:_i.VerifyEmail})}function wR(){return w.jsxs(rl,{children:[w.jsx(xR,{}),w.jsx("br",{}),w.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",w.jsx(Nr,{to:"/login",className:"underline",children:"go to login"})]})]})}function Na(e,t){const n=a1(e);async function r(o,l){TP(l);try{return await s1(n,o)}finally{await OP(t,l)}}const i=o=>r(o,[]);return i.internal=r,i}const SR=Na("operations/stripe-payment",["User"]),kR=[{name:"Credits",id:"credits",href:"",price:"$2.95",description:"Buy credits to use for your projects.",features:["10 credits","Use them any time","No expiration date"],disabled:!0},{name:"Monthly Subscription",id:"monthly",href:"#",priceMonthly:"$9.99",description:"Get unlimited usage for your projects.",features:["Unlimited usage of all features","Priority support","Cancel any time"]}];function ER(){const[e,t]=H.useState(!1),n=async()=>{t(!0);try{const r=await SR();r!=null&&r.sessionUrl&&window.open(r.sessionUrl,"_self")}catch(r){alert("Something went wrong. Please try again."),console.error(r)}finally{t(!1)}};return w.jsx("div",{className:"mt-10 pb-24 sm:pb-32",children:w.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:w.jsx("div",{className:"mx-auto grid max-w-md grid-cols-1 gap-8 lg:max-w-4xl lg:grid-cols-2",children:kR.map(r=>w.jsxs("div",{className:"flex flex-col justify-between rounded-3xl bg-white p-8 shadow-xl ring-1 ring-gray-900/10 sm:p-10",children:[w.jsxs("div",{children:[w.jsx("h3",{id:r.id,className:"text-base font-semibold leading-7 text-indigo-600",children:r.name}),w.jsxs("div",{className:"mt-4 flex items-baseline gap-x-2",children:[w.jsx("span",{className:"text-5xl font-bold tracking-tight text-gray-900",children:r.priceMonthly||r.price}),r.priceMonthly&&w.jsx("span",{className:"text-base font-semibold leading-7 text-gray-600",children:"/month"})]}),w.jsx("p",{className:"mt-6 text-base leading-7 text-gray-600",children:r.description}),w.jsx("ul",{role:"list",className:"mt-10 space-y-4 text-sm leading-6 text-gray-600",children:r.features.map(i=>w.jsxs("li",{className:"flex gap-x-3",children:[w.jsx(yC,{className:"h-6 w-5 flex-none text-indigo-600","aria-hidden":"true"}),i]},i))})]}),w.jsx("button",{onClick:n,"aria-describedby":r.id,disabled:r.disabled,className:`${r.disabled&&"disabled:opacity-25 disabled:cursor-not-allowed"} mt-8 block rounded-md bg-yellow-400 px-3.5 py-2 text-center text-sm font-semibold leading-6 text-black shadow-sm hover:bg-yellow-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600`,children:e?"Loading...":"Buy Now"})]},r.id))})})})}async function CR(){CP(),await u1()}function bR({user:e}){return H.useState(!1),w.jsxs("div",{className:"mt-10 px-6 mx-auto w-1/2",children:[w.jsxs("div",{className:"overflow-hidden bg-white ring-1 ring-gray-900/10 shadow-lg sm:rounded-lg lg:m-8 ",children:[w.jsx("div",{className:"px-4 py-5 sm:px-6 lg:px-8",children:w.jsx("h3",{className:"text-base font-semibold leading-6 text-gray-900",children:"Account Information"})}),w.jsx("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:w.jsx("dl",{className:"sm:divide-y sm:divide-gray-200",children:w.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[w.jsx("dt",{className:"text-sm font-medium text-gray-500",children:"Email address"}),w.jsx("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:e.email})]})})})]}),w.jsx("div",{className:"inline-flex w-full justify-end",children:w.jsx("button",{onClick:CR,className:"inline-flex justify-center mx-8 py-2 px-4 border border-transparent shadow-md text-sm font-medium rounded-md text-white bg-captn-cta-red hover:bg-captn-cta-red-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"logout"})})]})}function PR({user:e}){const[t,n]=H.useState("loading"),r=Ko();return H.useEffect(()=>{function i(){return setTimeout(()=>{r.push("/account")},4e3)}const o=new URLSearchParams(window.location.search),l=o.get("canceled"),s=o.get("success");return o.get("credits"),l?n("canceled"):s?n("paid"):r.push("/account"),i(),()=>{clearTimeout(i())}},[]),w.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:w.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:w.jsxs("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:[w.jsx("h1",{children:t==="paid"?"🥳 Payment Successful!":t==="canceled"?"😢 Payment Canceled":t==="error"&&"🙄 Payment Error"}),t!=="loading"&&w.jsxs("span",{className:"text-center",children:["You are being redirected to your account page... ",w.jsx("br",{})]})]})})})}const RR=c1("operations/get-chats",["Chat"]),TR=c1("operations/get-conversations",["Conversation"]);function OR(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const AR=/[ \t\n\f\r]/g;function NR(e){return typeof e=="object"?e.type==="text"?Lm(e.value):!1:Lm(e)}function Lm(e){return e.replace(AR,"")===""}class il{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}il.prototype.property={};il.prototype.normal={};il.prototype.space=null;function b1(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&FR.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Fm,$R);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Fm.test(o)){let l=o.replace(DR,MR);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=ip}return new i(r,t)}function MR(e){return"-"+e.toLowerCase()}function $R(e){return e.charAt(1).toUpperCase()}const BR={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},UR=b1([T1,R1,N1,I1,LR],"html"),_1=b1([T1,R1,N1,I1,jR],"svg");function VR(e){return e.join(" ").trim()}var op={exports:{}},Dm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,HR=/\n/g,qR=/^\s*/,WR=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,QR=/^:\s*/,KR=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,GR=/^[;\s]*/,YR=/^\s+|\s+$/g,XR=` +`,zm="/",Mm="*",mr="",JR="comment",ZR="declaration",eT=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var x=m.match(HR);x&&(n+=x.length);var E=m.lastIndexOf(XR);r=~E?m.length-E:r+m.length}function o(){var m={line:n,column:r};return function(x){return x.position=new l(m),u(),x}}function l(m){this.start=m,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function s(m){var x=new Error(t.source+":"+n+":"+r+": "+m);if(x.reason=m,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function a(m){var x=m.exec(e);if(x){var E=x[0];return i(E),e=e.slice(E.length),x}}function u(){a(qR)}function c(m){var x;for(m=m||[];x=f();)x!==!1&&m.push(x);return m}function f(){var m=o();if(!(zm!=e.charAt(0)||Mm!=e.charAt(1))){for(var x=2;mr!=e.charAt(x)&&(Mm!=e.charAt(x)||zm!=e.charAt(x+1));)++x;if(x+=2,mr===e.charAt(x-1))return s("End of comment missing");var E=e.slice(2,x-2);return r+=2,i(E),e=e.slice(x),r+=2,m({type:JR,comment:E})}}function d(){var m=o(),x=a(WR);if(x){if(f(),!a(QR))return s("property missing ':'");var E=a(KR),h=m({type:ZR,property:$m(x[0].replace(Dm,mr)),value:E?$m(E[0].replace(Dm,mr)):mr});return a(GR),h}}function p(){var m=[];c(m);for(var x;x=d();)x!==!1&&(m.push(x),c(m));return m}return u(),p()};function $m(e){return e?e.replace(YR,mr):mr}var tT=eT;function L1(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=tT(e),o=typeof t=="function",l,s,a=0,u=i.length;a0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function iT(e){const t=lp(e),n=j1(e);if(t&&n)return{start:t,end:n}}function mo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bm(e.position):"start"in e||"end"in e?Bm(e):"line"in e||"column"in e?pf(e):""}function pf(e){return Um(e&&e.line)+":"+Um(e&&e.column)}function Bm(e){return pf(e&&e.start)+"-"+pf(e&&e.end)}function Um(e){return e&&typeof e=="number"?e:1}class ct extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=mo(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ct.prototype.file="";ct.prototype.name="";ct.prototype.reason="";ct.prototype.message="";ct.prototype.stack="";ct.prototype.column=void 0;ct.prototype.line=void 0;ct.prototype.ancestors=void 0;ct.prototype.cause=void 0;ct.prototype.fatal=void 0;ct.prototype.place=void 0;ct.prototype.ruleId=void 0;ct.prototype.source=void 0;const sp={}.hasOwnProperty,oT=new Map,lT=/[A-Z]/g,sT=/-([a-z])/g,aT=new Set(["table","tbody","thead","tfoot","tr"]),uT=new Set(["td","th"]);function cT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=dT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=fT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_1:UR,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=D1(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function D1(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let i=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=_1,e.schema=i),e.ancestors.push(t);let o=pT(e,t);const l=hT(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&aT.has(t.tagName)&&(o=o.filter(function(a){return typeof a=="string"?!NR(a):!0})),sp.call(e.components,t.tagName)){const a=t.tagName;s=e.components[a],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(l.node=t)}else s=t.tagName;if(o.length>0){const a=o.length>1?o:o[0];a&&(l.children=a)}return e.schema=r,e.create(t,s,l,n)}if(t.type==="text")return t.value}function fT(e,t,n){return r;function r(i,o,l,s){const u=Array.isArray(l.children)?n:t;return s?u(o,l,s):u(o,l)}}function dT(e,t){return n;function n(r,i,o,l){const s=Array.isArray(o.children),a=lp(r);return t(i,o,l,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function pT(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:oT;for(;++r-1&&e.test(String.fromCharCode(n))}}const PT={'"':"quot","&":"amp","<":"lt",">":"gt"};function RT(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+PT[n]+";"}}function TT(e,t){const n=RT(Dr(e||""));if(!t)return n;const r=n.indexOf(":"),i=n.indexOf("?"),o=n.indexOf("#"),l=n.indexOf("/");return r<0||l>-1&&r>l||i>-1&&r>i||o>-1&&r>o||t.test(n.slice(0,r))?n:""}function Dr(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(l=String.fromCharCode(o,s),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}const OT={};function AT(e,t){const n=t||OT,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return M1(e,r,i)}function M1(e,t,n){if(NT(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Vm(e.children,t,n)}return Array.isArray(e)?Vm(e,t,n):""}function Vm(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o0?(pn(e,e.length,0,t),e):t}const qm={}.hasOwnProperty;function IT(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function di(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ee(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return he(a)?(e.enter(n),s(a)):t(a)}function s(a){return he(a)&&o++l))return;const P=t.events.length;let T=P,F,_;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(F){_=t.events[T][1].end;break}F=!0}for(h(r),k=P;kv;){const R=n[b];t.containerState=R[1],R[0].exit.call(t,e)}n.length=v}function g(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function MT(e,t,n){return Ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qm(e){if(e===null||vt(e)||bT(e))return 1;if(CT(e))return 2}function up(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);Km(f,-a),Km(d,a),l={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},o={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:a>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},l.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ft(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ft(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=Ft(u,up(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ft(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Ft(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,pn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&he(k)?Ee(e,g,"linePrefix",o+1)(k):g(k)}function g(k){return k===null||ne(k)?e.check(Gm,x,b)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||ne(k)?(e.exit("codeFlowValue"),g(k)):(e.consume(k),v)}function b(k){return e.exit("codeFenced"),t(k)}function R(k,P,T){let F=0;return _;function _(K){return k.enter("lineEnding"),k.consume(K),k.exit("lineEnding"),j}function j(K){return k.enter("codeFencedFence"),he(K)?Ee(k,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):L(K)}function L(K){return K===s?(k.enter("codeFencedFenceSequence"),V(K)):T(K)}function V(K){return K===s?(F++,k.consume(K),V):F>=l?(k.exit("codeFencedFenceSequence"),he(K)?Ee(k,J,"whitespace")(K):J(K)):T(K)}function J(K){return K===null||ne(K)?(k.exit("codeFencedFence"),P(K)):T(K)}}}function XT(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Du={name:"codeIndented",tokenize:ZT},JT={tokenize:eO,partial:!0};function ZT(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Ee(e,o,"linePrefix",4+1)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?a(u):ne(u)?e.attempt(JT,l,a)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ne(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function a(u){return e.exit("codeIndented"),t(u)}}function eO(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):ne(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):Ee(e,o,"linePrefix",4+1)(l)}function o(l){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):ne(l)?i(l):n(l)}}const tO={name:"codeText",tokenize:iO,resolve:nO,previous:rO};function nO(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function q1(e,t,n,r,i,o,l,s,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(h){return h===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(h),e.exit(o),d):h===null||h===32||h===41||hf(h)?n(h):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(h))}function d(h){return h===62?(e.enter(o),e.consume(h),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(s),d(h)):h===null||h===60||ne(h)?n(h):(e.consume(h),h===92?m:p)}function m(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function x(h){return!c&&(h===null||h===41||vt(h))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(h)):c999||p===null||p===91||p===93&&!a||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ne(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ne(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!he(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function Q1(e,t,n,r,i,o){let l;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,a):n(d)}function a(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===l?(e.exit(o),a(l)):d===null?n(d):ne(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ee(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===l||d===null||ne(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===l||d===92?(e.consume(d),c):c(d)}}function go(e,t){let n;return r;function r(i){return ne(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):he(i)?Ee(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const fO={name:"definition",tokenize:pO},dO={tokenize:hO,partial:!0};function pO(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return W1.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=di(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return vt(p)?go(e,u)(p):u(p)}function u(p){return q1(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(dO,f,f)(p)}function f(p){return he(p)?Ee(e,d,"whitespace")(p):d(p)}function d(p){return p===null||ne(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function hO(e,t,n){return r;function r(s){return vt(s)?go(e,i)(s):n(s)}function i(s){return Q1(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return he(s)?Ee(e,l,"whitespace")(s):l(s)}function l(s){return s===null||ne(s)?t(s):n(s)}}const mO={name:"hardBreakEscape",tokenize:gO};function gO(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ne(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const yO={name:"headingAtx",tokenize:xO,resolve:vO};function vO(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},pn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function xO(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||vt(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||ne(c)?(e.exit("atxHeading"),t(c)):he(c)?Ee(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||vt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const wO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xm=["pre","script","style","textarea"],SO={name:"htmlFlow",tokenize:bO,resolveTo:CO,concrete:!0},kO={tokenize:RO,partial:!0},EO={tokenize:PO,partial:!0};function CO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bO(e,t,n){const r=this;let i,o,l,s,a;return u;function u(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),o=!0,x):S===63?(e.consume(S),i=3,r.interrupt?t:y):sn(S)?(e.consume(S),l=String.fromCharCode(S),E):n(S)}function d(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,s=0,m):sn(S)?(e.consume(S),i=4,r.interrupt?t:y):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:y):n(S)}function m(S){const ae="CDATA[";return S===ae.charCodeAt(s++)?(e.consume(S),s===ae.length?r.interrupt?t:L:m):n(S)}function x(S){return sn(S)?(e.consume(S),l=String.fromCharCode(S),E):n(S)}function E(S){if(S===null||S===47||S===62||vt(S)){const ae=S===47,xe=l.toLowerCase();return!ae&&!o&&Xm.includes(xe)?(i=1,r.interrupt?t(S):L(S)):wO.includes(l.toLowerCase())?(i=6,ae?(e.consume(S),h):r.interrupt?t(S):L(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):o?g(S):v(S))}return S===45||Ct(S)?(e.consume(S),l+=String.fromCharCode(S),E):n(S)}function h(S){return S===62?(e.consume(S),r.interrupt?t:L):n(S)}function g(S){return he(S)?(e.consume(S),g):_(S)}function v(S){return S===47?(e.consume(S),_):S===58||S===95||sn(S)?(e.consume(S),b):he(S)?(e.consume(S),v):_(S)}function b(S){return S===45||S===46||S===58||S===95||Ct(S)?(e.consume(S),b):R(S)}function R(S){return S===61?(e.consume(S),k):he(S)?(e.consume(S),R):v(S)}function k(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),a=S,P):he(S)?(e.consume(S),k):T(S)}function P(S){return S===a?(e.consume(S),a=null,F):S===null||ne(S)?n(S):(e.consume(S),P)}function T(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||vt(S)?R(S):(e.consume(S),T)}function F(S){return S===47||S===62||he(S)?v(S):n(S)}function _(S){return S===62?(e.consume(S),j):n(S)}function j(S){return S===null||ne(S)?L(S):he(S)?(e.consume(S),j):n(S)}function L(S){return S===45&&i===2?(e.consume(S),ie):S===60&&i===1?(e.consume(S),se):S===62&&i===4?(e.consume(S),W):S===63&&i===3?(e.consume(S),y):S===93&&i===5?(e.consume(S),z):ne(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(kO,Q,V)(S)):S===null||ne(S)?(e.exit("htmlFlowData"),V(S)):(e.consume(S),L)}function V(S){return e.check(EO,J,Q)(S)}function J(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),K}function K(S){return S===null||ne(S)?V(S):(e.enter("htmlFlowData"),L(S))}function ie(S){return S===45?(e.consume(S),y):L(S)}function se(S){return S===47?(e.consume(S),l="",D):L(S)}function D(S){if(S===62){const ae=l.toLowerCase();return Xm.includes(ae)?(e.consume(S),W):L(S)}return sn(S)&&l.length<8?(e.consume(S),l+=String.fromCharCode(S),D):L(S)}function z(S){return S===93?(e.consume(S),y):L(S)}function y(S){return S===62?(e.consume(S),W):S===45&&i===2?(e.consume(S),y):L(S)}function W(S){return S===null||ne(S)?(e.exit("htmlFlowData"),Q(S)):(e.consume(S),W)}function Q(S){return e.exit("htmlFlow"),t(S)}}function PO(e,t,n){const r=this;return i;function i(l){return ne(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function RO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ia,t,n)}}const TO={name:"htmlText",tokenize:OO};function OO(e,t,n){const r=this;let i,o,l;return s;function s(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),a}function a(y){return y===33?(e.consume(y),u):y===47?(e.consume(y),R):y===63?(e.consume(y),v):sn(y)?(e.consume(y),T):n(y)}function u(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),o=0,m):sn(y)?(e.consume(y),g):n(y)}function c(y){return y===45?(e.consume(y),p):n(y)}function f(y){return y===null?n(y):y===45?(e.consume(y),d):ne(y)?(l=f,se(y)):(e.consume(y),f)}function d(y){return y===45?(e.consume(y),p):f(y)}function p(y){return y===62?ie(y):y===45?d(y):f(y)}function m(y){const W="CDATA[";return y===W.charCodeAt(o++)?(e.consume(y),o===W.length?x:m):n(y)}function x(y){return y===null?n(y):y===93?(e.consume(y),E):ne(y)?(l=x,se(y)):(e.consume(y),x)}function E(y){return y===93?(e.consume(y),h):x(y)}function h(y){return y===62?ie(y):y===93?(e.consume(y),h):x(y)}function g(y){return y===null||y===62?ie(y):ne(y)?(l=g,se(y)):(e.consume(y),g)}function v(y){return y===null?n(y):y===63?(e.consume(y),b):ne(y)?(l=v,se(y)):(e.consume(y),v)}function b(y){return y===62?ie(y):v(y)}function R(y){return sn(y)?(e.consume(y),k):n(y)}function k(y){return y===45||Ct(y)?(e.consume(y),k):P(y)}function P(y){return ne(y)?(l=P,se(y)):he(y)?(e.consume(y),P):ie(y)}function T(y){return y===45||Ct(y)?(e.consume(y),T):y===47||y===62||vt(y)?F(y):n(y)}function F(y){return y===47?(e.consume(y),ie):y===58||y===95||sn(y)?(e.consume(y),_):ne(y)?(l=F,se(y)):he(y)?(e.consume(y),F):ie(y)}function _(y){return y===45||y===46||y===58||y===95||Ct(y)?(e.consume(y),_):j(y)}function j(y){return y===61?(e.consume(y),L):ne(y)?(l=j,se(y)):he(y)?(e.consume(y),j):F(y)}function L(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),i=y,V):ne(y)?(l=L,se(y)):he(y)?(e.consume(y),L):(e.consume(y),J)}function V(y){return y===i?(e.consume(y),i=void 0,K):y===null?n(y):ne(y)?(l=V,se(y)):(e.consume(y),V)}function J(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||vt(y)?F(y):(e.consume(y),J)}function K(y){return y===47||y===62||vt(y)?F(y):n(y)}function ie(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function se(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),D}function D(y){return he(y)?Ee(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):z(y)}function z(y){return e.enter("htmlTextData"),l(y)}}const cp={name:"labelEnd",tokenize:jO,resolveTo:LO,resolveAll:_O},AO={tokenize:FO},NO={tokenize:DO},IO={tokenize:zO};function _O(e){let t=-1;for(;++t=3&&(u===null||ne(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),he(u)?Ee(e,s,"whitespace")(u):s(u))}}const ft={name:"list",tokenize:QO,continuation:{tokenize:KO},exit:YO},qO={tokenize:XO,partial:!0},WO={tokenize:GO,partial:!0};function QO(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:mf(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Xl,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return mf(p)&&++l<10?(e.consume(p),a):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ia,r.interrupt?n:c,e.attempt(qO,d,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function f(p){return he(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function KO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ia,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ee(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!he(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(WO,t,l)(s))}function l(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ee(e,e.attempt(ft,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function GO(e,t,n){const r=this;return Ee(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function YO(e){e.exit(this.containerState.type)}function XO(e,t,n){const r=this;return Ee(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){const l=r.events[r.events.length-1];return!he(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Jm={name:"setextUnderline",tokenize:ZO,resolveTo:JO};function JO(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=l,e.push(["exit",l,t]),e}function ZO(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),he(u)?Ee(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||ne(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const eA={tokenize:tA};function tA(e){const t=this,n=e.attempt(Ia,r,e.attempt(this.parser.constructs.flowInitial,i,Ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(lO,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const nA={resolveAll:G1()},rA=K1("string"),iA=K1("text");function K1(e){return{tokenize:t,resolveAll:G1(e==="text"?oA:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,s);return l;function l(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function aA(e,t){let n=-1;const r=[];let i;for(;++n0){const xt=re.tokenStack[re.tokenStack.length-1];(xt[1]||eg).call(re,void 0,xt[0])}for(U.position={start:Fn(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:Fn(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function jA(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FA(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function J1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function DA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return J1(e,t);const i={src:Dr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function zA(e,t){const n={src:Dr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function MA(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function $A(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return J1(e,t);const i={href:Dr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function BA(e,t){const n={href:Dr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function UA(e,t,n){const r=e.all(t),i=n?VA(n):Z1(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function HA(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=lp(t.children[1]),a=j1(t.children[t.children.length-1]);s&&a&&(l.position={start:s,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function GA(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:t.children.length;let a=-1;const u=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(rg(t.slice(i),i>0,!1)),o.join("")}function rg(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===tg||o===ng;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===tg||o===ng;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function JA(e,t){const n={type:"text",value:XA(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ZA(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const eN={blockquote:OA,break:AA,code:NA,delete:IA,emphasis:_A,footnoteReference:LA,heading:jA,html:FA,imageReference:DA,image:zA,inlineCode:MA,linkReference:$A,link:BA,listItem:UA,list:HA,paragraph:qA,root:WA,strong:QA,table:KA,tableCell:YA,tableRow:GA,text:JA,thematicBreak:ZA,toml:Tl,yaml:Tl,definition:Tl,footnoteDefinition:Tl};function Tl(){}const ex=-1,_a=0,Ls=1,js=2,fp=3,dp=4,pp=5,hp=6,tx=7,nx=8,ig=typeof self=="object"?self:globalThis,tN=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case _a:case ex:return n(l,i);case Ls:{const s=n([],i);for(const a of l)s.push(r(a));return s}case js:{const s=n({},i);for(const[a,u]of l)s[r(a)]=r(u);return s}case fp:return n(new Date(l),i);case dp:{const{source:s,flags:a}=l;return n(new RegExp(s,a),i)}case pp:{const s=n(new Map,i);for(const[a,u]of l)s.set(r(a),r(u));return s}case hp:{const s=n(new Set,i);for(const a of l)s.add(r(a));return s}case tx:{const{name:s,message:a}=l;return n(new ig[s](a),i)}case nx:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i)}return n(new ig[o](l),i)};return r},og=e=>tN(new Map,e)(0),Ur="",{toString:nN}={},{keys:rN}=Object,Gi=e=>{const t=typeof e;if(t!=="object"||!e)return[_a,t];const n=nN.call(e).slice(8,-1);switch(n){case"Array":return[Ls,Ur];case"Object":return[js,Ur];case"Date":return[fp,Ur];case"RegExp":return[dp,Ur];case"Map":return[pp,Ur];case"Set":return[hp,Ur]}return n.includes("Array")?[Ls,n]:n.includes("Error")?[tx,n]:[js,n]},Ol=([e,t])=>e===_a&&(t==="function"||t==="symbol"),iN=(e,t,n,r)=>{const i=(l,s)=>{const a=r.push(l)-1;return n.set(s,a),a},o=l=>{if(n.has(l))return n.get(l);let[s,a]=Gi(l);switch(s){case _a:{let c=l;switch(a){case"bigint":s=nx,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([ex],l)}return i([s,c],l)}case Ls:{if(a)return i([a,[...l]],l);const c=[],f=i([s,c],l);for(const d of l)c.push(o(d));return f}case js:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([s,c],l);for(const d of rN(l))(e||!Ol(Gi(l[d])))&&c.push([o(d),o(l[d])]);return f}case fp:return i([s,l.toISOString()],l);case dp:{const{source:c,flags:f}=l;return i([s,{source:c,flags:f}],l)}case pp:{const c=[],f=i([s,c],l);for(const[d,p]of l)(e||!(Ol(Gi(d))||Ol(Gi(p))))&&c.push([o(d),o(p)]);return f}case hp:{const c=[],f=i([s,c],l);for(const d of l)(e||!Ol(Gi(d)))&&c.push(o(d));return f}}const{message:u}=l;return i([s,{name:a,message:u}],l)};return o},lg=(e,{json:t,lossy:n}={})=>{const r=[];return iN(!(t||n),!!t,new Map,r)(e),r},Fs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?og(lg(e,t)):structuredClone(e):(e,t)=>og(lg(e,t));function oN(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||oN,r=e.options.footnoteBackLabel||lN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a0&&m.push({type:"text",value:" "});let g=typeof n=="string"?n:n(a,p);typeof g=="string"&&(g={type:"text",value:g}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const g=E.children[E.children.length-1];g&&g.type==="text"?g.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...m)}else c.push(...m);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,h),s.push(h)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Fs(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const rx=function(e){if(e==null)return fN;if(typeof e=="function")return La(e);if(typeof e=="object")return Array.isArray(e)?aN(e):uN(e);if(typeof e=="string")return cN(e);throw new Error("Expected function, string, or object as test")};function aN(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let p=ix,m,x,E;if((!t||o(a,u,c[c.length-1]||void 0))&&(p=gN(n(a,c)),p[0]===sg))return p;if("children"in a&&a.children){const h=a;if(h.children&&p[0]!==hN)for(x=(r?h.children.length:-1)+l,E=c.concat(h);x>-1&&x0&&n.push({type:"text",value:` +`}),n}function ag(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ug(e,t){const n=vN(e,t),r=n.one(e,void 0),i=sN(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function EN(e,t){return e&&"run"in e?async function(n,r){const i=ug(n,t);await e.run(i,r)}:function(n){return ug(n,t||e)}}function cg(e){if(e)throw e}var Jl=Object.prototype.hasOwnProperty,lx=Object.prototype.toString,fg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,pg=function(t){return typeof Array.isArray=="function"?Array.isArray(t):lx.call(t)==="[object Array]"},hg=function(t){if(!t||lx.call(t)!=="[object Object]")return!1;var n=Jl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Jl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Jl.call(t,i)},mg=function(t,n){fg&&n.name==="__proto__"?fg(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},gg=function(t,n){if(n==="__proto__")if(Jl.call(t,n)){if(dg)return dg(t,n).value}else return;return t[n]},CN=function e(){var t,n,r,i,o,l,s=arguments[0],a=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});al.length;let a;s&&l.push(i);try{a=e.apply(this,l)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...s){n||(n=!0,t(l,...s))}function o(l){i(null,l)}}const on={basename:RN,dirname:TN,extname:ON,join:AN,sep:"/"};function RN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ol(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function TN(e){if(ol(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ON(e){ol(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function AN(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function IN(e,t){let n="",r=0,i=-1,o=0,l=-1,s,a;for(;++l<=e.length;){if(l2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o>-1?o++:o=-1}return n}function ol(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _N={cwd:LN};function LN(){return"/"}function xf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function jN(e){if(typeof e=="string")e=new URL(e);else if(!xf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return FN(e)}function FN(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...m]=c;const x=r[d][1];vf(x)&&vf(p)&&(p=Mu(!0,x,p)),r[d]=[u,p,...m]}}}}const $N=new mp().freeze();function Vu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vg(e){if(!vf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Al(e){return BN(e)?e:new sx(e)}function BN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function UN(e){return typeof e=="string"||VN(e)}function VN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wg={}.hasOwnProperty,HN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sg=[],kg={allowDangerousHtml:!0},qN=/^(https?|ircs?|mailto|xmpp)$/i,WN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function QN(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,l=e.disallowedElements,s=e.rehypePlugins||Sg,a=e.remarkPlugins||Sg,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kg}:kg,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||KN,p=$N().use(TA).use(a).use(EN,u).use(s),m=new sx;typeof r=="string"&&(m.value=r);for(const g of WN)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+HN+g.id,void 0);const x=p.parse(m);let E=p.runSync(x,m);return i&&(E={type:"element",tagName:"div",properties:{className:i},children:E.type==="root"?E.children:[E]}),ox(E,h),cT(E,{Fragment:w.Fragment,components:o,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function h(g,v,b){if(g.type==="raw"&&b&&typeof v=="number")return c?b.children.splice(v,1):b.children[v]={type:"text",value:g.value},v;if(g.type==="element"){let R;for(R in Fu)if(wg.call(Fu,R)&&wg.call(g.properties,R)){const k=g.properties[R],P=Fu[R];(P===null||P.includes(g.tagName))&&(g.properties[R]=d(String(k||""),R,g))}}if(g.type==="element"){let R=t?!t.includes(g.tagName):l?l.includes(g.tagName):!1;if(!R&&n&&typeof v=="number"&&(R=!n(g,v,b)),R&&b&&typeof v=="number")return f&&g.children?b.children.splice(v,1,...g.children):b.children.splice(v,1),v}}}function KN(e){return TT(e,qN)}const GN=Na("operations/create-chat",["Chat","Conversation"]),Eg=Na("operations/update-conversation",["Chat","Conversation"]),YN=Na("operations/generate-open-airesponse",["Chat","Conversation"]),XN=({chats:e})=>e!=null&&e.length?w.jsx("div",{children:e.map((t,n)=>w.jsx(iI,{to:"/chat/:id?",params:{id:t.id},children:w.jsx("li",{children:w.jsxs("div",{className:"flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group",children:[w.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),w.jsx("span",{className:"ml-3",children:t.id})]})},n)},t.id))}):w.jsx("div",{children:"No chats"}),JN=({conversations:e})=>{if(!(e!=null&&e.length))return w.jsx("div",{children:"No conversations"});const t=e.filter(n=>n.role!=="system");return w.jsx("div",{className:"w-full",children:t.map((n,r)=>{const i=n.role==="user"?"captn-light-blue":"captn-dark-blue",o=n.role==="user"?w.jsx("div",{style:{alignItems:"center",background:"#fff",borderRadius:"50%",color:"#444654",display:"flex",flexBasis:"40px",flexGrow:"0",flexShrink:"0",fontSize:"14px",height:"40px",justifyContent:"center",padding:"5px",position:"relative",width:"40px"},className:"flex",children:w.jsx("div",{children:"You"})}):w.jsx("img",{alt:"captn logo",src:y0,className:"w-full h-full",style:{borderRadius:"50%"}});return w.jsx("div",{children:w.jsx("div",{style:{minHeight:"85px"},className:`flex items-center p-2 text-gray-900 dark:text-white group bg-${i}`,children:w.jsxs("div",{style:{maxWidth:"840px",margin:"auto"},className:`relative ml-3 block w-full p-4 pl-10 text-sm text-gray-900 border-${i} rounded-lg bg-${i} dark:bg-${i} dark:border-${i} dark:placeholder-gray-400 dark:text-white`,children:[w.jsx("span",{className:"absolute inline-block",style:{left:"-15px",top:"6px",height:" 45px",width:"45px"},children:o}),w.jsx("div",{className:"chat-conversations text-base flex flex-col gap-2",children:w.jsx(QN,{children:n.content})})]})})},r)})})};function ZN(e){H.useState(!1);const[t,n]=H.useState([{}]),[r,i]=H.useState(null),{data:o,isLoading:l}=tf(RR),{data:s,isLoading:a}=tf(TR,{chatId:Number(e.match.params.id)}),u=Ko(),c=async d=>{d.preventDefault();try{const p=await GN();n(p.conversation),i(p.id),u.push(`/chat/${p.chatId}`)}catch(p){window.alert("Error: "+p.message)}},f=async d=>{d.preventDefault(),console.log("conversationId"),console.log(r);try{const p=d.target,m=p.userQuery.value;p.reset();const x={conversation_id:s.id,conversations:[...s.conversation,{role:"user",content:m}]};await Eg(x);const E=await YN({conversation:x.conversations}),h={conversation_id:s.id,conversations:[...x.conversations,{role:"assistant",content:E.content}]};await Eg(h)}catch(p){window.alert("Error: "+p.message)}};return w.jsxs("div",{className:"relative z-0 flex h-full w-full overflow-hidden h-screen",children:[w.jsx("div",{id:"default-sidebar",style:{width:"260px"},className:"flex-shrink-0 overflow-x-hidden dark bg-captn-dark-blue gizmo:bg-black","aria-label":"Sidebar",children:w.jsxs("div",{className:"border-x-captn-light-cream h-full px-3 py-4 overflow-y-auto bg-captn-dark-blue dark:bg-captn-dark-blue",children:[w.jsx("div",{className:"mb-1 flex flex-row gap-2",children:w.jsxs("button",{onClick:c,className:"flex px-3 min-h-[44px] py-1 items-center gap-3 transition-colors duration-200 dark:text-white cursor-pointer text-sm rounded-md rounded-md text-white bg-captn-cta-green hover:bg-captn-cta-green-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 flex-grow overflow-hidden",children:[w.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm shrink-0",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),w.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"New chat"]})}),w.jsx("div",{className:"flex-col flex-1 transition-opacity duration-500 -mr-2 pr-2 overflow-y-auto",children:w.jsx("ul",{className:"py-5 space-y-2 font-medium",children:o&&w.jsx(XN,{chats:o})})})]})}),w.jsx("div",{className:"relative flex h-full max-w-full flex-1 flex-col overflow-hidden bg-captn-light-blue",children:w.jsx("div",{className:"relative h-full w-full flex-1 overflow-auto transition-width",children:w.jsx("div",{className:"flex h-full flex-col",children:w.jsxs("div",{className:"flex-1 overflow-hidden",children:[w.jsx("div",{className:"flex h-full flex-col items-center justify-between pb-24 overflow-y-auto bg-captn-light-blue",style:{height:"85%"},children:s&&w.jsx(JN,{conversations:s.conversation})}),e.match.params.id?w.jsx("div",{className:"w-full pt-2 md:pt-0 border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:pl-2 gizmo:pl-0 gizmo:md:pl-0 md:w-[calc(100%-.5rem)] absolute bottom-100 left-0 md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient",children:w.jsxs("form",{onSubmit:f,className:"",children:[w.jsx("label",{htmlFor:"search",className:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"}),w.jsx("input",{type:"search",id:"userQuery",name:"search",className:"block w-full p-4 pl-5 text-sm text-gray-900 border border-gray-300 rounded-lg bg-captn-dark-blue focus:ring-blue-500 focus:border-blue-500 dark:bg-captn-dark-blue dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send a message",required:!0}),w.jsx("button",{type:"submit",className:"text-white absolute right-2.5 bottom-2.5 bg-captn-cta-green hover:bg-captn-cta-green-hover focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-captn-cta-green dark:hover:bg-captn-cta-green-hover dark:focus:ring-blue-800",children:"Send"})]})]})}):w.jsx("p",{className:"text-captn-light-cream opacity-70",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"60px"},children:"Please initiate a new chat or select existing chats to resume your conversation."})]})})})})]})}function eI({pathToApiServerRouteHandlingOauthRedirect:e}){const t=Ko(),n=H.useRef(!0);return H.useEffect(()=>{if(!n.current)return;const r=tI(e);return nI(t,r),()=>{n.current=!1}},[t,e]),w.jsx("p",{children:"Completing login process..."})}function tI(e){const t=window.location.search;return`${qd.apiUrl}${e}${t}`}async function nI(e,t){const n=await rI(t);n!==null?(await C1(n),e.push("/chat")):(console.error("Error obtaining JWT token"),e.push("/login"))}async function rI(e){var t;try{const n=await mn.get(e);return((t=n==null?void 0:n.data)==null?void 0:t.token)||null}catch(n){return console.error(n),null}}function iI({to:e,params:t,search:n,hash:r,...i}){const o=H.useMemo(()=>qt(e,t,n,r),[e,t]);return w.jsx(Nr,{to:o,...i})}const oI={RootRoute:{to:"/",component:MP,build:e=>qt("/",void 0,e.search,e.hash)},LoginRoute:{to:"/login",component:dR,build:e=>qt("/login",void 0,e.search,e.hash)},SignupRoute:{to:"/signup",component:hR,build:e=>qt("/signup",void 0,e.search,e.hash)},RequestPasswordResetRoute:{to:"/request-password-reset",component:gR,build:e=>qt("/request-password-reset",void 0,e.search,e.hash)},PasswordResetRoute:{to:"/password-reset",component:vR,build:e=>qt("/password-reset",void 0,e.search,e.hash)},EmailVerificationRoute:{to:"/email-verification",component:wR,build:e=>qt("/email-verification",void 0,e.search,e.hash)},PricingRoute:{to:"/pricing",component:ER,build:e=>qt("/pricing",void 0,e.search,e.hash)},AccountRoute:{to:"/account",component:Tu(bR),build:e=>qt("/account",void 0,e.search,e.hash)},CheckoutRoute:{to:"/checkout",component:Tu(PR),build:e=>qt("/checkout",void 0,e.search,e.hash)},ChatRoute:{to:"/chat/:id?",component:Tu(ZN),build:e=>qt("/chat/:id?",e.params,e.search,e.hash)}},lI=w.jsx(AE,{children:w.jsx(DP,{children:w.jsxs(OE,{children:[Object.entries(oI).map(([e,t])=>w.jsx(Kh,{exact:!0,path:t.to,component:t.component},e)),w.jsx(Kh,{exact:!0,path:"/auth/login/google",children:w.jsx(eI,{pathToApiServerRouteHandlingOauthRedirect:"/auth/google/callback"})})]})})});sI();async function sI(){tb(),await aI()}async function aI(){const e=await zd;Wu.createRoot(document.getElementById("root")).render(w.jsx(Y.StrictMode,{children:w.jsx(fk,{client:e,children:lI})}))} diff --git a/index.html b/index.html index 28ff38e..0eb43f0 100644 --- a/index.html +++ b/index.html @@ -17,8 +17,8 @@ Capt'n.ai - - + +