diff --git a/index-GBvC0EIR.js b/index-GBvC0EIR.js index 885fc33..83fb5a3 100644 --- a/index-GBvC0EIR.js +++ b/index-GBvC0EIR.js @@ -22,7 +22,7 @@ function $3(e,t){for(var n=0;n>>1,z=J[he];if(0>>1;heo(ye,ie))deo(Me,ye)?(J[he]=Me,J[de]=ie,he=de):(J[he]=ye,J[ne]=ie,he=ne);else if(deo(Me,ie))J[he]=Me,J[de]=ie,he=de;else break e}}return pe}function o(J,pe){var ie=J.sortIndex-pe.sortIndex;return ie!==0?ie:J.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var c=[],f=[],p=1,h=null,m=3,b=!1,v=!1,y=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(J){for(var pe=n(f);pe!==null;){if(pe.callback===null)r(f);else if(pe.startTime<=J)r(f),pe.sortIndex=pe.expirationTime,t(c,pe);else break;pe=n(f)}}function k(J){if(y=!1,S(J),!v)if(n(c)!==null)v=!0,re(T);else{var pe=n(f);pe!==null&&le(k,pe.startTime-J)}}function T(J,pe){v=!1,y&&(y=!1,_(I),I=-1),b=!0;var ie=m;try{for(S(pe),h=n(c);h!==null&&(!(h.expirationTime>pe)||J&&!X());){var he=h.callback;if(typeof he=="function"){h.callback=null,m=h.priorityLevel;var z=he(h.expirationTime<=pe);pe=e.unstable_now(),typeof z=="function"?h.callback=z:h===n(c)&&r(c),S(pe)}else r(c);h=n(c)}if(h!==null)var ue=!0;else{var ne=n(f);ne!==null&&le(k,ne.startTime-pe),ue=!1}return ue}finally{h=null,m=ie,b=!1}}var E=!1,L=null,I=-1,q=5,$=-1;function X(){return!(e.unstable_now()-$J||125he?(J.sortIndex=ie,t(f,J),n(c)===null&&J===n(f)&&(y?(_(I),I=-1):y=!0,le(k,ie-he))):(J.sortIndex=z,t(c,J),v||b||(v=!0,re(T))),J},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(J){var pe=m;return function(){var ie=m;m=pe;try{return J.apply(this,arguments)}finally{m=ie}}}})(J3);Q3.exports=J3;var z9=Q3.exports;/** + */(function(e){function t(J,pe){var ie=J.length;J.push(pe);e:for(;0>>1,z=J[he];if(0>>1;heo(ye,ie))deo(Me,ye)?(J[he]=Me,J[de]=ie,he=de):(J[he]=ye,J[ne]=ie,he=ne);else if(deo(Me,ie))J[he]=Me,J[de]=ie,he=de;else break e}}return pe}function o(J,pe){var ie=J.sortIndex-pe.sortIndex;return ie!==0?ie:J.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var c=[],f=[],p=1,h=null,g=3,b=!1,v=!1,y=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(J){for(var pe=n(f);pe!==null;){if(pe.callback===null)r(f);else if(pe.startTime<=J)r(f),pe.sortIndex=pe.expirationTime,t(c,pe);else break;pe=n(f)}}function k(J){if(y=!1,S(J),!v)if(n(c)!==null)v=!0,re(T);else{var pe=n(f);pe!==null&&le(k,pe.startTime-J)}}function T(J,pe){v=!1,y&&(y=!1,_(I),I=-1),b=!0;var ie=g;try{for(S(pe),h=n(c);h!==null&&(!(h.expirationTime>pe)||J&&!X());){var he=h.callback;if(typeof he=="function"){h.callback=null,g=h.priorityLevel;var z=he(h.expirationTime<=pe);pe=e.unstable_now(),typeof z=="function"?h.callback=z:h===n(c)&&r(c),S(pe)}else r(c);h=n(c)}if(h!==null)var ue=!0;else{var ne=n(f);ne!==null&&le(k,ne.startTime-pe),ue=!1}return ue}finally{h=null,g=ie,b=!1}}var E=!1,L=null,I=-1,q=5,$=-1;function X(){return!(e.unstable_now()-$J||125he?(J.sortIndex=ie,t(f,J),n(c)===null&&J===n(f)&&(y?(_(I),I=-1):y=!0,le(k,ie-he))):(J.sortIndex=z,t(c,J),v||b||(v=!0,re(T))),J},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(J){var pe=g;return function(){var ie=g;g=pe;try{return J.apply(this,arguments)}finally{g=ie}}}})(J3);Q3.exports=J3;var z9=Q3.exports;/** * @license React * react-dom.production.min.js * @@ -34,21 +34,21 @@ function $3(e,t){for(var n=0;nu||o[a]!==i[u]){var c=` -`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=u);break}}}finally{cg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ec(e):""}function G9(e){switch(e.tag){case 5:return ec(e.type);case 16:return ec("Lazy");case 13:return ec("Suspense");case 19:return ec("SuspenseList");case 0:case 2:case 15:return e=fg(e.type,!1),e;case 11:return e=fg(e.type.render,!1),e;case 1:return e=fg(e.type,!0),e;default:return""}}function wv(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 cl:return"Fragment";case ul:return"Portal";case gv:return"Profiler";case c1:return"StrictMode";case vv:return"Suspense";case yv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nC:return(e.displayName||"Context")+".Consumer";case tC:return(e._context.displayName||"Context")+".Provider";case f1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d1:return t=e.displayName||null,t!==null?t:wv(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return wv(e(t))}catch{}}return null}function K9(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 wv(t);case 8:return t===c1?"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 Rs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y9(e){var t=oC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wd(e){e._valueTracker||(e._valueTracker=Y9(e))}function iC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Op(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 bv(e,t){var n=t.checked;return ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rs(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 sC(e,t){t=t.checked,t!=null&&u1(e,"checked",t,!1)}function xv(e,t){sC(e,t);var n=Rs(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")?_v(e,t.type,n):t.hasOwnProperty("defaultValue")&&_v(e,t.type,Rs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jx(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 _v(e,t,n){(t!=="number"||Op(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tc=Array.isArray;function Al(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=bd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ac(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uc={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},X9=["Webkit","ms","Moz","O"];Object.keys(uc).forEach(function(e){X9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uc[t]=uc[e]})});function cC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uc.hasOwnProperty(e)&&uc[e]?(""+t).trim():t+"px"}function fC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z9=ln({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 Cv(e,t){if(t){if(Z9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function Av(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 Rv=null;function p1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kv=null,Rl=null,kl=null;function n_(e){if(e=sf(e)){if(typeof kv!="function")throw Error(me(280));var t=e.stateNode;t&&(t=Sh(t),kv(e.stateNode,e.type,t))}}function dC(e){Rl?kl?kl.push(e):kl=[e]:Rl=e}function pC(){if(Rl){var e=Rl,t=kl;if(kl=Rl=null,n_(e),t)for(e=0;e>>=0,e===0?32:31-(lL(e)/uL|0)|0}var xd=64,_d=4194304;function nc(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 Bp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~o;u!==0?r=nc(u):(i&=a,i!==0&&(r=nc(i)))}else a=n&~o,a!==0?r=nc(a):i!==0&&(r=nc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zo(t),e[t]=n}function pL(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=fc),f_=" ",d_=!1;function LC(e,t){switch(e){case"keyup":return zL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fl=!1;function VL(e,t){switch(e){case"compositionend":return NC(t);case"keypress":return t.which!==32?null:(d_=!0,f_);case"textInput":return e=t.data,e===f_&&d_?null:e;default:return null}}function WL(e,t){if(fl)return e==="compositionend"||!x1&&LC(e,t)?(e=PC(),ip=y1=hs=null,fl=!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=g_(n)}}function $C(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FC(){for(var e=window,t=Op();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Op(e.document)}return t}function _1(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 JL(e){var t=FC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$C(n.ownerDocument.documentElement,n)){if(r!==null&&_1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=v_(n,i);var a=v_(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,dl=null,Nv=null,pc=null,Mv=!1;function y_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mv||dl==null||dl!==Op(r)||(r=dl,"selectionStart"in r&&_1(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}),pc&&Oc(pc,r)||(pc=r,r=Fp(Nv,"onSelect"),0ml||(e.current=zv[ml],zv[ml]=null,ml--)}function qt(e,t){ml++,zv[ml]=e.current,e.current=t}var ks={},cr=Ps(ks),Dr=Ps(!1),ga=ks;function Il(e,t){var n=e.type.contextTypes;if(!n)return ks;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pr(e){return e=e.childContextTypes,e!=null}function zp(){Yt(Dr),Yt(cr)}function C_(e,t,n){if(cr.current!==ks)throw Error(me(168));qt(cr,t),qt(Dr,n)}function KC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(me(108,K9(e)||"Unknown",o));return ln({},n,r)}function jp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ks,ga=cr.current,qt(cr,e),qt(Dr,Dr.current),!0}function A_(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=KC(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(cr),qt(cr,e)):Yt(Dr),qt(Dr,n)}var Oi=null,Eh=!1,Cg=!1;function YC(e){Oi===null?Oi=[e]:Oi.push(e)}function fN(e){Eh=!0,YC(e)}function Os(){if(!Cg&&Oi!==null){Cg=!0;var e=0,t=Ot;try{var n=Oi;for(Ot=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<I?(q=L,L=null):q=L.sibling;var $=m(_,L,S[I],k);if($===null){L===null&&(L=q);break}e&&L&&$.alternate===null&&t(_,L),w=i($,w,I),E===null?T=$:E.sibling=$,E=$,L=q}if(I===S.length)return n(_,L),en&&Zs(_,I),T;if(L===null){for(;II?(q=L,L=null):q=L.sibling;var X=m(_,L,$.value,k);if(X===null){L===null&&(L=q);break}e&&L&&X.alternate===null&&t(_,L),w=i(X,w,I),E===null?T=X:E.sibling=X,E=X,L=q}if($.done)return n(_,L),en&&Zs(_,I),T;if(L===null){for(;!$.done;I++,$=S.next())$=h(_,$.value,k),$!==null&&(w=i($,w,I),E===null?T=$:E.sibling=$,E=$);return en&&Zs(_,I),T}for(L=r(_,L);!$.done;I++,$=S.next())$=b(L,_,I,$.value,k),$!==null&&(e&&$.alternate!==null&&L.delete($.key===null?I:$.key),w=i($,w,I),E===null?T=$:E.sibling=$,E=$);return e&&L.forEach(function(ae){return t(_,ae)}),en&&Zs(_,I),T}function A(_,w,S,k){if(typeof S=="object"&&S!==null&&S.type===cl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case yd:e:{for(var T=S.key,E=w;E!==null;){if(E.key===T){if(T=S.type,T===cl){if(E.tag===7){n(_,E.sibling),w=o(E,S.props.children),w.return=_,_=w;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ls&&T_(T)===E.type){n(_,E.sibling),w=o(E,S.props),w.ref=Iu(_,E,S),w.return=_,_=w;break e}n(_,E);break}else t(_,E);E=E.sibling}S.type===cl?(w=da(S.props.children,_.mode,k,S.key),w.return=_,_=w):(k=pp(S.type,S.key,S.props,null,_.mode,k),k.ref=Iu(_,w,S),k.return=_,_=k)}return a(_);case ul:e:{for(E=S.key;w!==null;){if(w.key===E)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=o(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=Lg(S,_.mode,k),w.return=_,_=w}return a(_);case ls:return E=S._init,A(_,w,E(S._payload),k)}if(tc(S))return v(_,w,S,k);if(Ou(S))return y(_,w,S,k);Td(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=o(w,S),w.return=_,_=w):(n(_,w),w=Og(S,_.mode,k),w.return=_,_=w),a(_)):n(_,w)}return A}var Fl=JC(!0),e5=JC(!1),qp=Ps(null),Hp=null,yl=null,A1=null;function R1(){A1=yl=Hp=null}function k1(e){var t=qp.current;Yt(qp),e._currentValue=t}function Wv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Dl(e,t){Hp=e,A1=yl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tr=!0),e.firstContext=null)}function Do(e){var t=e._currentValue;if(A1!==e)if(e={context:e,memoizedValue:t,next:null},yl===null){if(Hp===null)throw Error(me(308));yl=e,Hp.dependencies={lanes:0,firstContext:e}}else yl=yl.next=e;return t}var ia=null;function T1(e){ia===null?ia=[e]:ia.push(e)}function t5(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,T1(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ui(e,r)}function Ui(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var us=!1;function D1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n5(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _s(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,bt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ui(e,n)}return o=r.interleaved,o===null?(t.next=t,T1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ui(e,n)}function ap(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}function D_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gp(e,t,n,r){var o=e.updateQueue;us=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var c=u,f=c.next;c.next=null,a===null?i=f:a.next=f,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==a&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;a=0,p=f=c=null,u=i;do{var m=u.lane,b=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:b,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(m=t,b=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(b,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,m=typeof v=="function"?v.call(b,h,m):v,m==null)break e;h=ln({},h,m);break e;case 2:us=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else b={eventTime:b,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=b,c=h):p=p.next=b,a|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);wa|=a,e.lanes=a,e.memoizedState=h}}function P_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rg.transition;Rg.transition={};try{e(!1),t()}finally{Ot=n,Rg.transition=r}}function w5(){return Po().memoizedState}function mN(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},b5(e))x5(t,n);else if(n=t5(e,t,n,r),n!==null){var o=xr();Qo(n,e,r,o),_5(n,t,r)}}function gN(e,t,n){var r=Es(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(b5(e))x5(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,Jo(u,a)){var c=t.interleaved;c===null?(o.next=o,T1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=t5(e,t,o,r),n!==null&&(o=xr(),Qo(n,e,r,o),_5(n,t,r))}}function b5(e){var t=e.alternate;return e===an||t!==null&&t===an}function x5(e,t){hc=Yp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _5(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}var Xp={readContext:Do,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useInsertionEffect:sr,useLayoutEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useMutableSource:sr,useSyncExternalStore:sr,useId:sr,unstable_isNewReconciler:!1},vN={readContext:Do,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Do,useEffect:L_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,up(4194308,4,h5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return up(4194308,4,e,t)},useInsertionEffect:function(e,t){return up(4,2,e,t)},useMemo:function(e,t){var n=li();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();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=mN.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:O_,useDebugValue:$1,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=O_(!1),t=e[0];return e=hN.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=an,o=li();if(en){if(n===void 0)throw Error(me(407));n=n()}else{if(n=t(),jn===null)throw Error(me(349));ya&30||s5(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,L_(l5.bind(null,r,i,e),[e]),r.flags|=2048,Uc(9,a5.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=li(),t=jn.identifierPrefix;if(en){var n=Mi,r=Ni;n=(r&~(1<<32-Zo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$c++,0")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=u);break}}}finally{cg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ec(e):""}function G9(e){switch(e.tag){case 5:return ec(e.type);case 16:return ec("Lazy");case 13:return ec("Suspense");case 19:return ec("SuspenseList");case 0:case 2:case 15:return e=fg(e.type,!1),e;case 11:return e=fg(e.type.render,!1),e;case 1:return e=fg(e.type,!0),e;default:return""}}function wv(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 cl:return"Fragment";case ul:return"Portal";case gv:return"Profiler";case c1:return"StrictMode";case vv:return"Suspense";case yv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nC:return(e.displayName||"Context")+".Consumer";case tC:return(e._context.displayName||"Context")+".Provider";case f1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d1:return t=e.displayName||null,t!==null?t:wv(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return wv(e(t))}catch{}}return null}function K9(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 wv(t);case 8:return t===c1?"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 Rs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y9(e){var t=oC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wd(e){e._valueTracker||(e._valueTracker=Y9(e))}function iC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Op(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 bv(e,t){var n=t.checked;return ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rs(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 sC(e,t){t=t.checked,t!=null&&u1(e,"checked",t,!1)}function xv(e,t){sC(e,t);var n=Rs(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")?_v(e,t.type,n):t.hasOwnProperty("defaultValue")&&_v(e,t.type,Rs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jx(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 _v(e,t,n){(t!=="number"||Op(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tc=Array.isArray;function Al(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=bd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ac(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uc={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},X9=["Webkit","ms","Moz","O"];Object.keys(uc).forEach(function(e){X9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uc[t]=uc[e]})});function cC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uc.hasOwnProperty(e)&&uc[e]?(""+t).trim():t+"px"}function fC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z9=ln({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 Cv(e,t){if(t){if(Z9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function Av(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 Rv=null;function p1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kv=null,Rl=null,kl=null;function n_(e){if(e=sf(e)){if(typeof kv!="function")throw Error(me(280));var t=e.stateNode;t&&(t=Sh(t),kv(e.stateNode,e.type,t))}}function dC(e){Rl?kl?kl.push(e):kl=[e]:Rl=e}function pC(){if(Rl){var e=Rl,t=kl;if(kl=Rl=null,n_(e),t)for(e=0;e>>=0,e===0?32:31-(lL(e)/uL|0)|0}var xd=64,_d=4194304;function nc(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 Bp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~o;u!==0?r=nc(u):(i&=a,i!==0&&(r=nc(i)))}else a=n&~o,a!==0?r=nc(a):i!==0&&(r=nc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zo(t),e[t]=n}function pL(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=fc),f_=" ",d_=!1;function LC(e,t){switch(e){case"keyup":return zL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fl=!1;function VL(e,t){switch(e){case"compositionend":return NC(t);case"keypress":return t.which!==32?null:(d_=!0,f_);case"textInput":return e=t.data,e===f_&&d_?null:e;default:return null}}function WL(e,t){if(fl)return e==="compositionend"||!x1&&LC(e,t)?(e=PC(),ip=y1=hs=null,fl=!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=g_(n)}}function $C(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FC(){for(var e=window,t=Op();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Op(e.document)}return t}function _1(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 JL(e){var t=FC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$C(n.ownerDocument.documentElement,n)){if(r!==null&&_1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=v_(n,i);var a=v_(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,dl=null,Nv=null,pc=null,Mv=!1;function y_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mv||dl==null||dl!==Op(r)||(r=dl,"selectionStart"in r&&_1(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}),pc&&Oc(pc,r)||(pc=r,r=Fp(Nv,"onSelect"),0ml||(e.current=zv[ml],zv[ml]=null,ml--)}function qt(e,t){ml++,zv[ml]=e.current,e.current=t}var ks={},cr=Ps(ks),Dr=Ps(!1),ga=ks;function Il(e,t){var n=e.type.contextTypes;if(!n)return ks;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pr(e){return e=e.childContextTypes,e!=null}function zp(){Yt(Dr),Yt(cr)}function C_(e,t,n){if(cr.current!==ks)throw Error(me(168));qt(cr,t),qt(Dr,n)}function KC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(me(108,K9(e)||"Unknown",o));return ln({},n,r)}function jp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ks,ga=cr.current,qt(cr,e),qt(Dr,Dr.current),!0}function A_(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=KC(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(cr),qt(cr,e)):Yt(Dr),qt(Dr,n)}var Oi=null,Eh=!1,Cg=!1;function YC(e){Oi===null?Oi=[e]:Oi.push(e)}function fN(e){Eh=!0,YC(e)}function Os(){if(!Cg&&Oi!==null){Cg=!0;var e=0,t=Ot;try{var n=Oi;for(Ot=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<I?(q=L,L=null):q=L.sibling;var $=g(_,L,S[I],k);if($===null){L===null&&(L=q);break}e&&L&&$.alternate===null&&t(_,L),w=i($,w,I),E===null?T=$:E.sibling=$,E=$,L=q}if(I===S.length)return n(_,L),en&&Zs(_,I),T;if(L===null){for(;II?(q=L,L=null):q=L.sibling;var X=g(_,L,$.value,k);if(X===null){L===null&&(L=q);break}e&&L&&X.alternate===null&&t(_,L),w=i(X,w,I),E===null?T=X:E.sibling=X,E=X,L=q}if($.done)return n(_,L),en&&Zs(_,I),T;if(L===null){for(;!$.done;I++,$=S.next())$=h(_,$.value,k),$!==null&&(w=i($,w,I),E===null?T=$:E.sibling=$,E=$);return en&&Zs(_,I),T}for(L=r(_,L);!$.done;I++,$=S.next())$=b(L,_,I,$.value,k),$!==null&&(e&&$.alternate!==null&&L.delete($.key===null?I:$.key),w=i($,w,I),E===null?T=$:E.sibling=$,E=$);return e&&L.forEach(function(ae){return t(_,ae)}),en&&Zs(_,I),T}function A(_,w,S,k){if(typeof S=="object"&&S!==null&&S.type===cl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case yd:e:{for(var T=S.key,E=w;E!==null;){if(E.key===T){if(T=S.type,T===cl){if(E.tag===7){n(_,E.sibling),w=o(E,S.props.children),w.return=_,_=w;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ls&&T_(T)===E.type){n(_,E.sibling),w=o(E,S.props),w.ref=Iu(_,E,S),w.return=_,_=w;break e}n(_,E);break}else t(_,E);E=E.sibling}S.type===cl?(w=da(S.props.children,_.mode,k,S.key),w.return=_,_=w):(k=pp(S.type,S.key,S.props,null,_.mode,k),k.ref=Iu(_,w,S),k.return=_,_=k)}return a(_);case ul:e:{for(E=S.key;w!==null;){if(w.key===E)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=o(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=Lg(S,_.mode,k),w.return=_,_=w}return a(_);case ls:return E=S._init,A(_,w,E(S._payload),k)}if(tc(S))return v(_,w,S,k);if(Ou(S))return y(_,w,S,k);Td(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=o(w,S),w.return=_,_=w):(n(_,w),w=Og(S,_.mode,k),w.return=_,_=w),a(_)):n(_,w)}return A}var Fl=JC(!0),e5=JC(!1),qp=Ps(null),Hp=null,yl=null,A1=null;function R1(){A1=yl=Hp=null}function k1(e){var t=qp.current;Yt(qp),e._currentValue=t}function Wv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Dl(e,t){Hp=e,A1=yl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tr=!0),e.firstContext=null)}function Do(e){var t=e._currentValue;if(A1!==e)if(e={context:e,memoizedValue:t,next:null},yl===null){if(Hp===null)throw Error(me(308));yl=e,Hp.dependencies={lanes:0,firstContext:e}}else yl=yl.next=e;return t}var ia=null;function T1(e){ia===null?ia=[e]:ia.push(e)}function t5(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,T1(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ui(e,r)}function Ui(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var us=!1;function D1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n5(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _s(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,bt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ui(e,n)}return o=r.interleaved,o===null?(t.next=t,T1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ui(e,n)}function ap(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}function D_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gp(e,t,n,r){var o=e.updateQueue;us=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var c=u,f=c.next;c.next=null,a===null?i=f:a.next=f,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==a&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;a=0,p=f=c=null,u=i;do{var g=u.lane,b=u.eventTime;if((r&g)===g){p!==null&&(p=p.next={eventTime:b,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(g=t,b=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(b,h,g);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,g=typeof v=="function"?v.call(b,h,g):v,g==null)break e;h=ln({},h,g);break e;case 2:us=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[u]:g.push(u))}else b={eventTime:b,lane:g,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=b,c=h):p=p.next=b,a|=g;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;g=u,u=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);wa|=a,e.lanes=a,e.memoizedState=h}}function P_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rg.transition;Rg.transition={};try{e(!1),t()}finally{Ot=n,Rg.transition=r}}function w5(){return Po().memoizedState}function mN(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},b5(e))x5(t,n);else if(n=t5(e,t,n,r),n!==null){var o=xr();Qo(n,e,r,o),_5(n,t,r)}}function gN(e,t,n){var r=Es(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(b5(e))x5(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,Jo(u,a)){var c=t.interleaved;c===null?(o.next=o,T1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=t5(e,t,o,r),n!==null&&(o=xr(),Qo(n,e,r,o),_5(n,t,r))}}function b5(e){var t=e.alternate;return e===an||t!==null&&t===an}function x5(e,t){hc=Yp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _5(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}var Xp={readContext:Do,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useInsertionEffect:sr,useLayoutEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useMutableSource:sr,useSyncExternalStore:sr,useId:sr,unstable_isNewReconciler:!1},vN={readContext:Do,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Do,useEffect:L_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,up(4194308,4,h5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return up(4194308,4,e,t)},useInsertionEffect:function(e,t){return up(4,2,e,t)},useMemo:function(e,t){var n=li();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();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=mN.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:O_,useDebugValue:$1,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=O_(!1),t=e[0];return e=hN.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=an,o=li();if(en){if(n===void 0)throw Error(me(407));n=n()}else{if(n=t(),jn===null)throw Error(me(349));ya&30||s5(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,L_(l5.bind(null,r,i,e),[e]),r.flags|=2048,Uc(9,a5.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=li(),t=jn.identifierPrefix;if(en){var n=Mi,r=Ni;n=(r&~(1<<32-Zo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$c++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[fi]=t,e[Mc]=r,O5(e,t,!1,!1),t.stateNode=e;e:{switch(a=Av(n,r),n){case"dialog":Gt("cancel",e),Gt("close",e),o=r;break;case"iframe":case"object":case"embed":Gt("load",e),o=r;break;case"video":case"audio":for(o=0;ojl&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304)}else{if(!r)if(e=Kp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return ar(t),null}else 2*xn()-i.renderingStartTime>jl&&n!==1073741824&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xn(),t.sibling=null,n=sn.current,qt(sn,r?n&1|2:n&1),t):(ar(t),null);case 22:case 23:return W1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(ar(t),t.subtreeFlags&6&&(t.flags|=8192)):ar(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function CN(e,t){switch(E1(t),t.tag){case 1:return Pr(t.type)&&zp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),Yt(Dr),Yt(cr),L1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O1(t),null;case 13:if(Yt(sn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(sn),null;case 4:return Ul(),null;case 10:return k1(t.type._context),null;case 22:case 23:return W1(),null;case 24:return null;default:return null}}var Pd=!1,ur=!1,AN=typeof WeakSet=="function"?WeakSet:Set,ke=null;function wl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gn(e,t,r)}else n.current=null}function Jv(e,t,n){try{n()}catch(r){gn(e,t,r)}}var W_=!1;function RN(e,t){if(Bv=Ip,e=FC(),_1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var b;h!==n||o!==0&&h.nodeType!==3||(u=a+o),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(b=h.firstChild)!==null;)m=h,h=b;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(b=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=b}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iv={focusedElem:e,selectionRange:n},Ip=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){t=ke;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,A=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:qo(t.type,y),A);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(k){gn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}return v=W_,W_=!1,v}function mc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Jv(t,n,i)}o=o.next}while(o!==r)}}function Rh(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 e2(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 M5(e){var t=e.alternate;t!==null&&(e.alternate=null,M5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fi],delete t[Mc],delete t[Uv],delete t[uN],delete t[cN])),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 B5(e){return e.tag===5||e.tag===3||e.tag===4}function q_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B5(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 t2(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=Up));else if(r!==4&&(e=e.child,e!==null))for(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}function n2(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(n2(e,t,n),e=e.sibling;e!==null;)n2(e,t,n),e=e.sibling}var Xn=null,Ho=!1;function os(e,t,n){for(n=n.child;n!==null;)I5(e,t,n),n=n.sibling}function I5(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(wh,n)}catch{}switch(n.tag){case 5:ur||wl(n,t);case 6:var r=Xn,o=Ho;Xn=null,os(e,t,n),Xn=r,Ho=o,Xn!==null&&(Ho?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(Ho?(e=Xn,n=n.stateNode,e.nodeType===8?Eg(e.parentNode,n):e.nodeType===1&&Eg(e,n),Dc(e)):Eg(Xn,n.stateNode));break;case 4:r=Xn,o=Ho,Xn=n.stateNode.containerInfo,Ho=!0,os(e,t,n),Xn=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!ur&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Jv(n,t,a),o=o.next}while(o!==r)}os(e,t,n);break;case 1:if(!ur&&(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){gn(n,t,u)}os(e,t,n);break;case 21:os(e,t,n);break;case 22:n.mode&1?(ur=(r=ur)||n.memoizedState!==null,os(e,t,n),ur=r):os(e,t,n);break;default:os(e,t,n)}}function H_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AN),t.forEach(function(r){var o=BN.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Vo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=xn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TN(r/1960))-r,10e?16:e,ms===null)var r=!1;else{if(e=ms,ms=null,Jp=0,bt&6)throw Error(me(331));var o=bt;for(bt|=4,ke=e.current;ke!==null;){var i=ke,a=i.child;if(ke.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cxn()-j1?fa(e,0):z1|=n),Or(e,t)}function q5(e,t){t===0&&(e.mode&1?(t=_d,_d<<=1,!(_d&130023424)&&(_d=4194304)):t=1);var n=xr();e=Ui(e,t),e!==null&&(rf(e,t,n),Or(e,n))}function MN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q5(e,n)}function BN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}r!==null&&r.delete(t),q5(e,n)}var H5;H5=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)Tr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tr=!1,SN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&XC(t,Wp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cp(e,t),e=t.pendingProps;var o=Il(t,cr.current);Dl(t,n),o=M1(null,t,r,e,o,n);var i=B1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(r)?(i=!0,jp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,D1(t),o.updater=Ah,t.stateNode=o,o._reactInternals=t,Hv(t,r,e,n),t=Yv(null,t,r,!0,i,n)):(t.tag=0,en&&i&&S1(t),yr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cp(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$N(r),e=qo(r,e),o){case 0:t=Kv(null,t,r,e,n);break e;case 1:t=z_(null,t,r,e,n);break e;case 11:t=F_(null,t,r,e,n);break e;case 14:t=U_(null,t,r,qo(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),Kv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),z_(e,t,r,o,n);case 3:e:{if(T5(t),e===null)throw Error(me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,n5(e,t),Gp(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zl(Error(me(423)),t),t=j_(e,t,r,n,o);break e}else if(r!==o){o=zl(Error(me(424)),t),t=j_(e,t,r,n,o);break e}else for(Xr=xs(t.stateNode.containerInfo.firstChild),Zr=t,en=!0,Yo=null,n=e5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($l(),r===o){t=zi(e,t,n);break e}yr(e,t,r,n)}t=t.child}return t;case 5:return r5(t),e===null&&Vv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,$v(r,o)?a=null:i!==null&&$v(r,i)&&(t.flags|=32),k5(e,t),yr(e,t,a,n),t.child;case 6:return e===null&&Vv(t),null;case 13:return D5(e,t,n);case 4:return P1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fl(t,null,r,n):yr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),F_(e,t,r,o,n);case 7:return yr(e,t,t.pendingProps,n),t.child;case 8:return yr(e,t,t.pendingProps.children,n),t.child;case 12:return yr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,qt(qp,r._currentValue),r._currentValue=a,i!==null)if(Jo(i.value,a)){if(i.children===o.children&&!Dr.current){t=zi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){a=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Bi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Wv(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(me(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Wv(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dl(t,n),o=Do(o),r=r(o),t.flags|=1,yr(e,t,r,n),t.child;case 14:return r=t.type,o=qo(r,t.pendingProps),o=qo(r.type,o),U_(e,t,r,o,n);case 15:return A5(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),cp(e,t),t.tag=1,Pr(r)?(e=!0,jp(t)):e=!1,Dl(t,n),S5(t,r,o),Hv(t,r,o,n),Yv(null,t,r,!0,e,n);case 19:return P5(e,t,n);case 22:return R5(e,t,n)}throw Error(me(156,t.tag))};function G5(e,t){return bC(e,t)}function IN(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 Ao(e,t,n,r){return new IN(e,t,n,r)}function H1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $N(e){if(typeof e=="function")return H1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f1)return 11;if(e===d1)return 14}return 2}function Cs(e,t){var n=e.alternate;return n===null?(n=Ao(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 pp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")H1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case cl:return da(n.children,o,i,t);case c1:a=8,o|=8;break;case gv:return e=Ao(12,n,t,o|2),e.elementType=gv,e.lanes=i,e;case vv:return e=Ao(13,n,t,o),e.elementType=vv,e.lanes=i,e;case yv:return e=Ao(19,n,t,o),e.elementType=yv,e.lanes=i,e;case rC:return Th(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tC:a=10;break e;case nC:a=9;break e;case f1:a=11;break e;case d1:a=14;break e;case ls:a=16,r=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function da(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function Th(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=rC,e.lanes=n,e.stateNode={isHidden:!1},e}function Og(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Lg(e,t,n){return t=Ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function FN(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pg(0),this.expirationTimes=pg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G1(e,t,n,r,o,i,a,u,c){return e=new FN(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},D1(i),e}function UN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z5)}catch(e){console.error(e)}}Z5(),Z3.exports=ro;var Nh=Z3.exports;const xl=n1(Nh),qN=$3({__proto__:null,default:xl},[Nh]);var eS=Nh;hv.createRoot=eS.createRoot,hv.hydrateRoot=eS.hydrateRoot;var Q5={};function HN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var GN=HN,nt=GN;function KN(e){return!!e&&typeof e.then=="function"}var Kt=KN;function YN(e,t){if(e!=null)return e;throw nt(t??"Got unexpected null or undefined")}var tn=YN;function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Mh{getValue(){throw nt("BaseLoadable")}toPromise(){throw nt("BaseLoadable")}valueMaybe(){throw nt("BaseLoadable")}valueOrThrow(){throw nt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw nt("BaseLoadable")}promiseOrThrow(){throw nt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw nt("BaseLoadable")}errorOrThrow(){throw nt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw nt("BaseLoadable")}}class XN extends Mh{constructor(t){super(),Qe(this,"state","hasValue"),Qe(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Kt(n)?xa(n):Vl(n)?n:lf(n)}catch(n){return Kt(n)?xa(n.next(()=>this.map(t))):Bh(n)}}}class ZN extends Mh{constructor(t){super(),Qe(this,"state","hasError"),Qe(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class J5 extends Mh{constructor(t){super(),Qe(this,"state","loading"),Qe(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xa(this.contents.then(n=>{const r=t(n);if(Vl(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(Kt(n))return n.then(()=>this.map(t).contents);throw n}))}}function lf(e){return Object.freeze(new XN(e))}function Bh(e){return Object.freeze(new ZN(e))}function xa(e){return Object.freeze(new J5(e))}function eA(){return Object.freeze(new J5(new Promise(()=>{})))}function QN(e){return e.every(t=>t.state==="hasValue")?lf(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Bh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xa(Promise.all(e.map(t=>t.contents)))}function tA(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Vl(o)?o:Kt(o)?xa(o):lf(o)),r=QN(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Vl(e){return e instanceof Mh}const JN={of:e=>Kt(e)?xa(e):Vl(e)?e:lf(e),error:e=>Bh(e),loading:()=>eA(),all:tA,isLoadable:Vl};var ka={loadableWithValue:lf,loadableWithError:Bh,loadableWithPromise:xa,loadableLoading:eA,loadableAll:tA,isLoadable:Vl,RecoilLoadable:JN},eM=ka.loadableWithValue,tM=ka.loadableWithError,nM=ka.loadableWithPromise,rM=ka.loadableLoading,oM=ka.loadableAll,iM=ka.isLoadable,sM=ka.RecoilLoadable,uf=Object.freeze({__proto__:null,loadableWithValue:eM,loadableWithError:tM,loadableWithPromise:nM,loadableLoading:rM,loadableAll:oM,isLoadable:iM,RecoilLoadable:sM});const a2={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function aM(e,t){var n,r;const o=(n=Q5[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw nt(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function lM(e,t){var n;const r=(n=Q5[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function uM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(aM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{a2.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),lM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{a2.RECOIL_GKS_ENABLED.add(n)})}))}uM();var su=a2;function Ih(e){return su.RECOIL_GKS_ENABLED.has(e)}Ih.setPass=e=>{su.RECOIL_GKS_ENABLED.add(e)};Ih.setFail=e=>{su.RECOIL_GKS_ENABLED.delete(e)};Ih.clear=()=>{su.RECOIL_GKS_ENABLED.clear()};var Ft=Ih;function cM(e,t,{error:n}={}){return null}var fM=cM,Z1=fM,Ng,Mg,Bg;const dM=(Ng=rt.createMutableSource)!==null&&Ng!==void 0?Ng:rt.unstable_createMutableSource,nA=(Mg=rt.useMutableSource)!==null&&Mg!==void 0?Mg:rt.unstable_useMutableSource,rA=(Bg=rt.useSyncExternalStore)!==null&&Bg!==void 0?Bg:rt.unstable_useSyncExternalStore;function pM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function hM(){return Ft("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ft("recoil_sync_external_store")&&rA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ft("recoil_mutable_source")&&nA!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Ft("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Ft("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function mM(){return!1}var cf={createMutableSource:dM,useMutableSource:nA,useSyncExternalStore:rA,currentRendererSupportsUseSyncExternalStore:pM,reactMode:hM,isFastRefreshEnabled:mM};class Q1{constructor(t){Qe(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class oA extends Q1{}class iA extends Q1{}function gM(e){return e instanceof oA||e instanceof iA}var $h={AbstractRecoilValue:Q1,RecoilState:oA,RecoilValueReadOnly:iA,isRecoilValue:gM},vM=$h.AbstractRecoilValue,yM=$h.RecoilState,wM=$h.RecoilValueReadOnly,bM=$h.isRecoilValue,Wl=Object.freeze({__proto__:null,AbstractRecoilValue:vM,RecoilState:yM,RecoilValueReadOnly:wM,isRecoilValue:bM});function xM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Fh=xM;class sA{}const _M=new sA,_a=new Map,J1=new Map;function SM(e){return Fh(e,t=>tn(J1.get(t)))}function EM(e){if(_a.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Dg(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bN=typeof WeakMap=="function"?WeakMap:Map;function E5(e,t,n){n=Bi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qp||(Qp=!0,r2=r),Gv(e,t)},n}function C5(e,t,n){n=Bi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Gv(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Gv(e,t),typeof r!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function B_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bN;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=NN.bind(null,e,t,n),t.then(e,e))}function I_(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $_(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bi(-1,1),t.tag=2,_s(n,t,1))),n.lanes|=1),e)}var xN=Wi.ReactCurrentOwner,Tr=!1;function yr(e,t,n,r){t.child=e===null?e5(t,null,n,r):Fl(t,e.child,n,r)}function F_(e,t,n,r,o){n=n.render;var i=t.ref;return Dl(t,o),r=M1(e,t,n,r,i,o),n=B1(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zi(e,t,o)):(en&&n&&S1(t),t.flags|=1,yr(e,t,r,o),t.child)}function U_(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!H1(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,A5(e,t,i,r,o)):(e=pp(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Oc,n(a,r)&&e.ref===t.ref)return zi(e,t,o)}return t.flags|=1,e=Cs(i,r),e.ref=t.ref,e.return=t,t.child=e}function A5(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Oc(i,r)&&e.ref===t.ref)if(Tr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Tr=!0);else return t.lanes=e.lanes,zi(e,t,o)}return Kv(e,t,n,r,o)}function R5(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qt(bl,Gr),Gr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qt(bl,Gr),Gr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,qt(bl,Gr),Gr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,qt(bl,Gr),Gr|=r;return yr(e,t,o,n),t.child}function k5(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kv(e,t,n,r,o){var i=Pr(n)?ga:cr.current;return i=Il(t,i),Dl(t,o),n=M1(e,t,n,r,i,o),r=B1(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zi(e,t,o)):(en&&r&&S1(t),t.flags|=1,yr(e,t,n,o),t.child)}function z_(e,t,n,r,o){if(Pr(n)){var i=!0;jp(t)}else i=!1;if(Dl(t,o),t.stateNode===null)cp(e,t),S5(t,n,r),Hv(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,f=n.contextType;typeof f=="object"&&f!==null?f=Do(f):(f=Pr(n)?ga:cr.current,f=Il(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||c!==f)&&M_(t,a,r,f),us=!1;var g=t.memoizedState;a.state=g,Gp(t,r,a,o),c=t.memoizedState,u!==r||g!==c||Dr.current||us?(typeof p=="function"&&(qv(t,n,p,r),c=t.memoizedState),(u=us||N_(t,n,u,r,g,c,f))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=f,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,n5(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:qo(t.type,u),a.props=f,h=t.pendingProps,g=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Do(c):(c=Pr(n)?ga:cr.current,c=Il(t,c));var b=n.getDerivedStateFromProps;(p=typeof b=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==h||g!==c)&&M_(t,a,r,c),us=!1,g=t.memoizedState,a.state=g,Gp(t,r,a,o);var v=t.memoizedState;u!==h||g!==v||Dr.current||us?(typeof b=="function"&&(qv(t,n,b,r),v=t.memoizedState),(f=us||N_(t,n,f,r,g,v,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Yv(e,t,n,r,i,o)}function Yv(e,t,n,r,o,i){k5(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&A_(t,n,!1),zi(e,t,i);r=t.stateNode,xN.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Fl(t,e.child,null,i),t.child=Fl(t,null,u,i)):yr(e,t,u,i),t.memoizedState=r.state,o&&A_(t,n,!0),t.child}function T5(e){var t=e.stateNode;t.pendingContext?C_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&C_(e,t.context,!1),P1(e,t.containerInfo)}function j_(e,t,n,r,o){return $l(),C1(o),t.flags|=256,yr(e,t,n,r),t.child}var Xv={dehydrated:null,treeContext:null,retryLane:0};function Zv(e){return{baseLanes:e,cachePool:null,transitions:null}}function D5(e,t,n){var r=t.pendingProps,o=sn.current,i=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),qt(sn,o&1),e===null)return Vv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Th(a,r,0,null),e=da(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Zv(n),t.memoizedState=Xv,e):F1(t,a));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return _N(e,t,a,r,u,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,u=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Cs(o,c),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=Cs(u,i):(i=da(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Zv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Xv,r}return i=e.child,e=i.sibling,r=Cs(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function F1(e,t){return t=Th({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dd(e,t,n,r){return r!==null&&C1(r),Fl(t,e.child,null,n),e=F1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _N(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Dg(Error(me(422))),Dd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Th({mode:"visible",children:r.children},o,0,null),i=da(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Fl(t,e.child,null,a),t.child.memoizedState=Zv(a),t.memoizedState=Xv,i);if(!(t.mode&1))return Dd(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(me(419)),r=Dg(i,r,void 0),Dd(e,t,a,r)}if(u=(a&e.childLanes)!==0,Tr||u){if(r=jn,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ui(e,o),Qo(r,e,o,-1))}return q1(),r=Dg(Error(me(421))),Dd(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=MN.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Xr=xs(o.nextSibling),Zr=t,en=!0,Yo=null,e!==null&&(xo[_o++]=Ni,xo[_o++]=Mi,xo[_o++]=va,Ni=e.id,Mi=e.overflow,va=t),t=F1(t,r.children),t.flags|=4096,t)}function V_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wv(e.return,t,n)}function Pg(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function P5(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yr(e,t,r.children,n),r=sn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&V_(e,n,t);else if(e.tag===19)V_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(qt(sn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Kp(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Pg(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Kp(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Pg(t,!0,n,null,i);break;case"together":Pg(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(me(153));if(t.child!==null){for(e=t.child,n=Cs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function SN(e,t,n){switch(t.tag){case 3:T5(t),$l();break;case 5:r5(t);break;case 1:Pr(t.type)&&jp(t);break;case 4:P1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;qt(qp,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qt(sn,sn.current&1),t.flags|=128,null):n&t.child.childLanes?D5(e,t,n):(qt(sn,sn.current&1),e=zi(e,t,n),e!==null?e.sibling:null);qt(sn,sn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return P5(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),qt(sn,sn.current),r)break;return null;case 22:case 23:return t.lanes=0,R5(e,t,n)}return zi(e,t,n)}var O5,Qv,L5,N5;O5=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qv=function(){};L5=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,sa(pi.current);var i=null;switch(n){case"input":o=bv(e,o),r=bv(e,r),i=[];break;case"select":o=ln({},o,{value:void 0}),r=ln({},r,{value:void 0}),i=[];break;case"textarea":o=Sv(e,o),r=Sv(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Up)}Cv(n,r);var a;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Cc.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(u=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(c!=null||u!=null))if(f==="style")if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Cc.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&Gt("scroll",e),i||u===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};N5=function(e,t,n,r){n!==r&&(t.flags|=4)};function $u(e,t){if(!en)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ar(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function EN(e,t,n){var r=t.pendingProps;switch(E1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ar(t),null;case 1:return Pr(t.type)&&zp(),ar(t),null;case 3:return r=t.stateNode,Ul(),Yt(Dr),Yt(cr),L1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yo!==null&&(s2(Yo),Yo=null))),Qv(e,t),ar(t),null;case 5:O1(t);var o=sa(Ic.current);if(n=t.type,e!==null&&t.stateNode!=null)L5(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(me(166));return ar(t),null}if(e=sa(pi.current),kd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fi]=t,r[Mc]=i,e=(t.mode&1)!==0,n){case"dialog":Gt("cancel",r),Gt("close",r);break;case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[fi]=t,e[Mc]=r,O5(e,t,!1,!1),t.stateNode=e;e:{switch(a=Av(n,r),n){case"dialog":Gt("cancel",e),Gt("close",e),o=r;break;case"iframe":case"object":case"embed":Gt("load",e),o=r;break;case"video":case"audio":for(o=0;ojl&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304)}else{if(!r)if(e=Kp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return ar(t),null}else 2*xn()-i.renderingStartTime>jl&&n!==1073741824&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xn(),t.sibling=null,n=sn.current,qt(sn,r?n&1|2:n&1),t):(ar(t),null);case 22:case 23:return W1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(ar(t),t.subtreeFlags&6&&(t.flags|=8192)):ar(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function CN(e,t){switch(E1(t),t.tag){case 1:return Pr(t.type)&&zp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),Yt(Dr),Yt(cr),L1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O1(t),null;case 13:if(Yt(sn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(sn),null;case 4:return Ul(),null;case 10:return k1(t.type._context),null;case 22:case 23:return W1(),null;case 24:return null;default:return null}}var Pd=!1,ur=!1,AN=typeof WeakSet=="function"?WeakSet:Set,ke=null;function wl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gn(e,t,r)}else n.current=null}function Jv(e,t,n){try{n()}catch(r){gn(e,t,r)}}var W_=!1;function RN(e,t){if(Bv=Ip,e=FC(),_1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,u=-1,c=-1,f=0,p=0,h=e,g=null;t:for(;;){for(var b;h!==n||o!==0&&h.nodeType!==3||(u=a+o),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(b=h.firstChild)!==null;)g=h,h=b;for(;;){if(h===e)break t;if(g===n&&++f===o&&(u=a),g===i&&++p===r&&(c=a),(b=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=b}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iv={focusedElem:e,selectionRange:n},Ip=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){t=ke;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,A=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:qo(t.type,y),A);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(k){gn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}return v=W_,W_=!1,v}function mc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Jv(t,n,i)}o=o.next}while(o!==r)}}function Rh(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 e2(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 M5(e){var t=e.alternate;t!==null&&(e.alternate=null,M5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fi],delete t[Mc],delete t[Uv],delete t[uN],delete t[cN])),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 B5(e){return e.tag===5||e.tag===3||e.tag===4}function q_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B5(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 t2(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=Up));else if(r!==4&&(e=e.child,e!==null))for(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}function n2(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(n2(e,t,n),e=e.sibling;e!==null;)n2(e,t,n),e=e.sibling}var Xn=null,Ho=!1;function os(e,t,n){for(n=n.child;n!==null;)I5(e,t,n),n=n.sibling}function I5(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(wh,n)}catch{}switch(n.tag){case 5:ur||wl(n,t);case 6:var r=Xn,o=Ho;Xn=null,os(e,t,n),Xn=r,Ho=o,Xn!==null&&(Ho?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(Ho?(e=Xn,n=n.stateNode,e.nodeType===8?Eg(e.parentNode,n):e.nodeType===1&&Eg(e,n),Dc(e)):Eg(Xn,n.stateNode));break;case 4:r=Xn,o=Ho,Xn=n.stateNode.containerInfo,Ho=!0,os(e,t,n),Xn=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!ur&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Jv(n,t,a),o=o.next}while(o!==r)}os(e,t,n);break;case 1:if(!ur&&(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){gn(n,t,u)}os(e,t,n);break;case 21:os(e,t,n);break;case 22:n.mode&1?(ur=(r=ur)||n.memoizedState!==null,os(e,t,n),ur=r):os(e,t,n);break;default:os(e,t,n)}}function H_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AN),t.forEach(function(r){var o=BN.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Vo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=xn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TN(r/1960))-r,10e?16:e,ms===null)var r=!1;else{if(e=ms,ms=null,Jp=0,bt&6)throw Error(me(331));var o=bt;for(bt|=4,ke=e.current;ke!==null;){var i=ke,a=i.child;if(ke.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cxn()-j1?fa(e,0):z1|=n),Or(e,t)}function q5(e,t){t===0&&(e.mode&1?(t=_d,_d<<=1,!(_d&130023424)&&(_d=4194304)):t=1);var n=xr();e=Ui(e,t),e!==null&&(rf(e,t,n),Or(e,n))}function MN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q5(e,n)}function BN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}r!==null&&r.delete(t),q5(e,n)}var H5;H5=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)Tr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tr=!1,SN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&XC(t,Wp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cp(e,t),e=t.pendingProps;var o=Il(t,cr.current);Dl(t,n),o=M1(null,t,r,e,o,n);var i=B1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(r)?(i=!0,jp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,D1(t),o.updater=Ah,t.stateNode=o,o._reactInternals=t,Hv(t,r,e,n),t=Yv(null,t,r,!0,i,n)):(t.tag=0,en&&i&&S1(t),yr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cp(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$N(r),e=qo(r,e),o){case 0:t=Kv(null,t,r,e,n);break e;case 1:t=z_(null,t,r,e,n);break e;case 11:t=F_(null,t,r,e,n);break e;case 14:t=U_(null,t,r,qo(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),Kv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),z_(e,t,r,o,n);case 3:e:{if(T5(t),e===null)throw Error(me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,n5(e,t),Gp(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zl(Error(me(423)),t),t=j_(e,t,r,n,o);break e}else if(r!==o){o=zl(Error(me(424)),t),t=j_(e,t,r,n,o);break e}else for(Xr=xs(t.stateNode.containerInfo.firstChild),Zr=t,en=!0,Yo=null,n=e5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($l(),r===o){t=zi(e,t,n);break e}yr(e,t,r,n)}t=t.child}return t;case 5:return r5(t),e===null&&Vv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,$v(r,o)?a=null:i!==null&&$v(r,i)&&(t.flags|=32),k5(e,t),yr(e,t,a,n),t.child;case 6:return e===null&&Vv(t),null;case 13:return D5(e,t,n);case 4:return P1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fl(t,null,r,n):yr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),F_(e,t,r,o,n);case 7:return yr(e,t,t.pendingProps,n),t.child;case 8:return yr(e,t,t.pendingProps.children,n),t.child;case 12:return yr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,qt(qp,r._currentValue),r._currentValue=a,i!==null)if(Jo(i.value,a)){if(i.children===o.children&&!Dr.current){t=zi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){a=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Bi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Wv(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(me(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Wv(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dl(t,n),o=Do(o),r=r(o),t.flags|=1,yr(e,t,r,n),t.child;case 14:return r=t.type,o=qo(r,t.pendingProps),o=qo(r.type,o),U_(e,t,r,o,n);case 15:return A5(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),cp(e,t),t.tag=1,Pr(r)?(e=!0,jp(t)):e=!1,Dl(t,n),S5(t,r,o),Hv(t,r,o,n),Yv(null,t,r,!0,e,n);case 19:return P5(e,t,n);case 22:return R5(e,t,n)}throw Error(me(156,t.tag))};function G5(e,t){return bC(e,t)}function IN(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 Ao(e,t,n,r){return new IN(e,t,n,r)}function H1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $N(e){if(typeof e=="function")return H1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f1)return 11;if(e===d1)return 14}return 2}function Cs(e,t){var n=e.alternate;return n===null?(n=Ao(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 pp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")H1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case cl:return da(n.children,o,i,t);case c1:a=8,o|=8;break;case gv:return e=Ao(12,n,t,o|2),e.elementType=gv,e.lanes=i,e;case vv:return e=Ao(13,n,t,o),e.elementType=vv,e.lanes=i,e;case yv:return e=Ao(19,n,t,o),e.elementType=yv,e.lanes=i,e;case rC:return Th(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tC:a=10;break e;case nC:a=9;break e;case f1:a=11;break e;case d1:a=14;break e;case ls:a=16,r=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function da(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function Th(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=rC,e.lanes=n,e.stateNode={isHidden:!1},e}function Og(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Lg(e,t,n){return t=Ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function FN(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pg(0),this.expirationTimes=pg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G1(e,t,n,r,o,i,a,u,c){return e=new FN(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},D1(i),e}function UN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z5)}catch(e){console.error(e)}}Z5(),Z3.exports=ro;var Nh=Z3.exports;const xl=n1(Nh),qN=$3({__proto__:null,default:xl},[Nh]);var eS=Nh;hv.createRoot=eS.createRoot,hv.hydrateRoot=eS.hydrateRoot;var Q5={};function HN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var GN=HN,nt=GN;function KN(e){return!!e&&typeof e.then=="function"}var Kt=KN;function YN(e,t){if(e!=null)return e;throw nt(t??"Got unexpected null or undefined")}var tn=YN;function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Mh{getValue(){throw nt("BaseLoadable")}toPromise(){throw nt("BaseLoadable")}valueMaybe(){throw nt("BaseLoadable")}valueOrThrow(){throw nt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw nt("BaseLoadable")}promiseOrThrow(){throw nt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw nt("BaseLoadable")}errorOrThrow(){throw nt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw nt("BaseLoadable")}}class XN extends Mh{constructor(t){super(),Qe(this,"state","hasValue"),Qe(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Kt(n)?xa(n):Vl(n)?n:lf(n)}catch(n){return Kt(n)?xa(n.next(()=>this.map(t))):Bh(n)}}}class ZN extends Mh{constructor(t){super(),Qe(this,"state","hasError"),Qe(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class J5 extends Mh{constructor(t){super(),Qe(this,"state","loading"),Qe(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xa(this.contents.then(n=>{const r=t(n);if(Vl(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(Kt(n))return n.then(()=>this.map(t).contents);throw n}))}}function lf(e){return Object.freeze(new XN(e))}function Bh(e){return Object.freeze(new ZN(e))}function xa(e){return Object.freeze(new J5(e))}function eA(){return Object.freeze(new J5(new Promise(()=>{})))}function QN(e){return e.every(t=>t.state==="hasValue")?lf(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Bh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xa(Promise.all(e.map(t=>t.contents)))}function tA(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Vl(o)?o:Kt(o)?xa(o):lf(o)),r=QN(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Vl(e){return e instanceof Mh}const JN={of:e=>Kt(e)?xa(e):Vl(e)?e:lf(e),error:e=>Bh(e),loading:()=>eA(),all:tA,isLoadable:Vl};var ka={loadableWithValue:lf,loadableWithError:Bh,loadableWithPromise:xa,loadableLoading:eA,loadableAll:tA,isLoadable:Vl,RecoilLoadable:JN},eM=ka.loadableWithValue,tM=ka.loadableWithError,nM=ka.loadableWithPromise,rM=ka.loadableLoading,oM=ka.loadableAll,iM=ka.isLoadable,sM=ka.RecoilLoadable,uf=Object.freeze({__proto__:null,loadableWithValue:eM,loadableWithError:tM,loadableWithPromise:nM,loadableLoading:rM,loadableAll:oM,isLoadable:iM,RecoilLoadable:sM});const a2={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function aM(e,t){var n,r;const o=(n=Q5[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw nt(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function lM(e,t){var n;const r=(n=Q5[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function uM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(aM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{a2.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),lM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{a2.RECOIL_GKS_ENABLED.add(n)})}))}uM();var su=a2;function Ih(e){return su.RECOIL_GKS_ENABLED.has(e)}Ih.setPass=e=>{su.RECOIL_GKS_ENABLED.add(e)};Ih.setFail=e=>{su.RECOIL_GKS_ENABLED.delete(e)};Ih.clear=()=>{su.RECOIL_GKS_ENABLED.clear()};var Ft=Ih;function cM(e,t,{error:n}={}){return null}var fM=cM,Z1=fM,Ng,Mg,Bg;const dM=(Ng=rt.createMutableSource)!==null&&Ng!==void 0?Ng:rt.unstable_createMutableSource,nA=(Mg=rt.useMutableSource)!==null&&Mg!==void 0?Mg:rt.unstable_useMutableSource,rA=(Bg=rt.useSyncExternalStore)!==null&&Bg!==void 0?Bg:rt.unstable_useSyncExternalStore;function pM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function hM(){return Ft("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ft("recoil_sync_external_store")&&rA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ft("recoil_mutable_source")&&nA!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Ft("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Ft("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function mM(){return!1}var cf={createMutableSource:dM,useMutableSource:nA,useSyncExternalStore:rA,currentRendererSupportsUseSyncExternalStore:pM,reactMode:hM,isFastRefreshEnabled:mM};class Q1{constructor(t){Qe(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class oA extends Q1{}class iA extends Q1{}function gM(e){return e instanceof oA||e instanceof iA}var $h={AbstractRecoilValue:Q1,RecoilState:oA,RecoilValueReadOnly:iA,isRecoilValue:gM},vM=$h.AbstractRecoilValue,yM=$h.RecoilState,wM=$h.RecoilValueReadOnly,bM=$h.isRecoilValue,Wl=Object.freeze({__proto__:null,AbstractRecoilValue:vM,RecoilState:yM,RecoilValueReadOnly:wM,isRecoilValue:bM});function xM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Fh=xM;class sA{}const _M=new sA,_a=new Map,J1=new Map;function SM(e){return Fh(e,t=>tn(J1.get(t)))}function EM(e){if(_a.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of - hot module replacement.`;console.warn(t)}}function CM(e){su.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&EM(e.key),_a.set(e.key,e);const t=e.set==null?new Wl.RecoilValueReadOnly(e.key):new Wl.RecoilState(e.key);return J1.set(e.key,t),t}class aA extends Error{}function AM(e){const t=_a.get(e);if(t==null)throw new aA(`Missing definition for RecoilValue: "${e}""`);return t}function RM(e){return _a.get(e)}const nh=new Map;function kM(e){var t;if(!Ft("recoil_memory_managament_2020"))return;const n=_a.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;_a.delete(e),(r=lA(e))===null||r===void 0||r(),nh.delete(e)}}function TM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?nh.delete(e):nh.set(e,t))}function lA(e){return nh.get(e)}var Ur={nodes:_a,recoilValues:J1,registerNode:CM,getNode:AM,getNodeMaybe:RM,deleteNodeConfigIfPossible:kM,setConfigDeletionHandler:TM,getConfigDeletionHandler:lA,recoilValuesForKeys:SM,NodeMissingError:aA,DefaultValue:sA,DEFAULT_VALUE:_M};function DM(e,t){t()}var PM={enqueueExecution:DM};function OM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var LM=OM(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,u=o/4,c={},f=function(F){return function(){return F}},p=n.hash=function(W){var F=typeof W>"u"?"undefined":t(W);if(F==="number")return W;F!=="string"&&(W+="");for(var ce=0,be=0,we=W.length;be>1&1431655765,F=(F&858993459)+(F>>2&858993459),F=F+(F>>4)&252645135,F+=F>>8,F+=F>>16,F&127},m=function(F,ce){return ce>>>F&i},b=function(F){return 1<=ce;)we[Fe--]=we[Fe];return we[ce]=be,we}for(var Ne=0,Ie=0,He=new Array(Se+1);Ne>>=1;return Fe[ce]=be,X(F,Ie+1,Fe)},H=function(F,ce,be,we){for(var Se=new Array(ce-1),Fe=0,Ne=0,Ie=0,He=we.length;Ie1?q(F,this.hash,He):He[0]}var _t=we();return _t===c?this:(++Ne.value,Q(F,be,this.hash,this,Se,I(F,Se,Fe,_t)))},ie=function(F,ce,be,we,Se,Fe,Ne){var Ie=this.mask,He=this.children,_t=m(be,Se),Rn=b(_t),zt=v(Ie,Rn),kn=Ie&Rn,fn=kn?He[zt]:E,so=fn._modify(F,ce,be+r,we,Se,Fe,Ne);if(fn===so)return this;var rr=le(F,this),N=Ie,B=void 0;if(kn&&L(so)){if(N&=~Rn,!N)return E;if(He.length<=2&&ae(He[zt^1]))return He[zt^1];B=A(rr,zt,He)}else if(!kn&&!L(so)){if(He.length>=a)return K(F,_t,so,Ie,He);N|=Rn,B=_(rr,zt,so,He)}else B=y(rr,zt,so,He);return rr?(this.mask=N,this.children=B,this):$(F,N,B)},he=function(F,ce,be,we,Se,Fe,Ne){var Ie=this.size,He=this.children,_t=m(be,Se),Rn=He[_t],zt=(Rn||E)._modify(F,ce,be+r,we,Se,Fe,Ne);if(Rn===zt)return this;var kn=le(F,this),fn=void 0;if(L(Rn)&&!L(zt))++Ie,fn=y(kn,_t,zt,He);else if(!L(Rn)&&L(zt)){if(--Ie,Ie<=u)return H(F,Ie,_t,He);fn=y(kn,_t,E,He)}else fn=y(kn,_t,zt,He);return kn?(this.size=Ie,this.children=fn,this):X(F,Ie,fn)};E._modify=function(W,F,ce,be,we,Se,Fe){var Ne=be();return Ne===c?E:(++Fe.value,I(W,we,Se,Ne))};function z(W,F,ce,be,we){this._editable=W,this._edit=F,this._config=ce,this._root=be,this._size=we}z.prototype.setTree=function(W,F){return this._editable?(this._root=W,this._size=F,this):W===this._root?this:new z(this._editable,this._edit,this._config,W,F)};var ue=n.tryGetHash=function(W,F,ce,be){for(var we=be._root,Se=0,Fe=be._config.keyEq;;)switch(we.type){case w:return Fe(ce,we.key)?we.value:W;case S:{if(F===we.hash)for(var Ne=we.children,Ie=0,He=Ne.length;Ie{n.set(o,t(r,o))}),n}var rh=FM;function UM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function zM(e){return{nodeDeps:rh(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:rh(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Ig(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const u=a==null?t:yc(t,a);for(const c of u)i.has(c)||i.set(c,new Set),tn(i.get(c)).add(e);if(a){const c=yc(a,t);for(const f of c){if(!i.has(f))return;const p=tn(i.get(f));p.delete(e),p.size===0&&i.delete(f)}}}function jM(e,t,n,r){var o,i,a,u;const c=n.getState();r===c.currentTree.version||r===((o=c.nextTree)===null||o===void 0?void 0:o.version)||((i=c.previousTree)===null||i===void 0||i.version);const f=n.getGraph(r);if(Ig(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);Ig(e,t,h,f)}if(r===((u=c.previousTree)===null||u===void 0?void 0:u.version)||r===c.currentTree.version){var p;const h=(p=c.nextTree)===null||p===void 0?void 0:p.version;if(h!==void 0){const m=n.getGraph(h);Ig(e,t,m,f)}}}var ff={cloneGraph:zM,graph:UM,saveDepsToStore:jM};let VM=0;const WM=()=>VM++;let qM=0;const HM=()=>qM++;let GM=0;const KM=()=>GM++;var Uh={getNextTreeStateVersion:WM,getNextStoreID:HM,getNextComponentID:KM};const{persistentMap:tS}=IM,{graph:YM}=ff,{getNextTreeStateVersion:uA}=Uh;function cA(){const e=uA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:tS(),nonvalidatedAtoms:tS()}}function XM(){const e=cA();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,YM()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var fA={makeEmptyTreeState:cA,makeEmptyStoreState:XM,getNextTreeStateVersion:uA};class dA{}function ZM(){return new dA}var zh={RetentionZone:dA,retentionZone:ZM};function QM(e,t){const n=new Set(e);return n.add(t),n}function JM(e,t){const n=new Set(e);return n.delete(t),n}function eB(e,t,n){const r=new Map(e);return r.set(t,n),r}function tB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function nB(e,t){const n=new Map(e);return n.delete(t),n}function rB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var pA={setByAddingToSet:QM,setByDeletingFromSet:JM,mapBySettingInMap:eB,mapByUpdatingInMap:tB,mapByDeletingFromMap:nB,mapByDeletingMultipleFromMap:rB};function*oB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ny=oB;function iB(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var hA=iB;const{getNode:df,getNodeMaybe:sB,recoilValuesForKeys:nS}=Ur,{RetentionZone:rS}=zh,{setByAddingToSet:aB}=pA,lB=Object.freeze(new Set);class uB extends Error{}function cB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof rS)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!Ft("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function a(u){const c=i.nodesRetainedByZone.get(u);c==null||c.delete(t),c&&c.size===0&&i.nodesRetainedByZone.delete(u)}if(n instanceof rS)a(n);else if(Array.isArray(n))for(const u of n)a(u)}}function ry(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=df(n),a=cB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function fB(e,t,n){ry(e,e.getState().currentTree,t,n)}function dB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function pB(e,t,n){return ry(e,t,n,"get"),df(n).get(e,t)}function mA(e,t,n){return df(n).peek(e,t)}function hB(e,t,n){var r;const o=sB(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:aB(e.dirtyAtoms,t)}}function mB(e,t,n,r){const o=df(n);if(o.set==null)throw new uB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return ry(e,t,n,"set"),i(e,t,r)}function gB(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=df(n).nodeType;return hA({type:i},{loadable:()=>mA(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var a;return nS((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,u;return{nodes:nS(ny(gA(e,t,new Set([n])),c=>c!==n)),components:Fh((a=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&a!==void 0?a:[],([c])=>({name:c}))}}})}function gA(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var a;r.add(u);const c=(a=i.nodeToNodeSubscriptions.get(u))!==null&&a!==void 0?a:lB;for(const f of c)r.has(f)||o.push(f)}return r}var Ls={getNodeLoadable:pB,peekNodeLoadable:mA,setNodeValue:mB,initializeNode:fB,cleanUpNode:dB,setUnvalidatedAtomValue_DEPRECATED:hB,peekNodeInfo:gB,getDownstreamNodes:gA};let vA=null;function vB(e){vA=e}function yB(){var e;(e=vA)===null||e===void 0||e()}var yA={setInvalidateMemoizedSnapshot:vB,invalidateMemoizedSnapshot:yB};const{getDownstreamNodes:wB,getNodeLoadable:wA,setNodeValue:bB}=Ls,{getNextComponentID:xB}=Uh,{getNode:_B,getNodeMaybe:bA}=Ur,{DefaultValue:oy}=Ur,{reactMode:SB}=cf,{AbstractRecoilValue:EB,RecoilState:CB,RecoilValueReadOnly:AB,isRecoilValue:RB}=Wl,{invalidateMemoizedSnapshot:kB}=yA;function TB(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const a=wA(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function DB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof oy?n.delete(o):n.set(o,r)}),n}function PB(e,t,{key:n},r){if(typeof r=="function"){const o=wA(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw nt(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function OB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=PB(e,t,o,i),u=bB(e,t,o.key,a);for(const[c,f]of u.entries())l2(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;l2(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,a=bA(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else Z1(`Unknown action ${n.type}`)}function l2(e,t,n){n.state==="hasValue"&&n.contents instanceof oy?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function xA(e,t){e.replaceState(n=>{const r=_A(n);for(const o of t)OB(e,r,o);return SA(e,r),kB(),r})}function jh(e,t){if(wc.length){const n=wc[wc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else xA(e,[t])}const wc=[];function LB(){const e=new Map;return wc.push(e),()=>{for(const[t,n]of e)xA(t,n);wc.pop()}}function _A(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function SA(e,t){const n=wB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=bA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function EA(e,t,n){jh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function NB(e,t,n){if(n instanceof oy)return EA(e,t,n);jh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function MB(e,t){jh(e,{type:"markModified",recoilValue:t})}function BB(e,t,n){jh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function IB(e,{key:t},n,r=null){const o=xB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=SB();if(a.early&&(a.mode==="LEGACY"||a.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),c=u.nodeToComponentSubscriptions.get(t);c===void 0||!c.has(o)||(c.delete(o),c.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function $B(e,t){var n;const{currentTree:r}=e.getState(),o=_B(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var wi={RecoilValueReadOnly:AB,AbstractRecoilValue:EB,RecoilState:CB,getRecoilValueAsLoadable:TB,setRecoilValue:EA,setRecoilValueLoadable:NB,markRecoilValueModified:MB,setUnvalidatedRecoilValue:BB,subscribeToRecoilValue:IB,isRecoilValue:RB,applyAtomValueWrites:DB,batchStart:LB,writeLoadableToTreeState:l2,invalidateDownstreams:SA,copyTreeState:_A,refreshRecoilValue:$B};function FB(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var UB=FB;const{cleanUpNode:zB}=Ls,{deleteNodeConfigIfPossible:jB,getNode:CA}=Ur,{RetentionZone:AA}=zh,VB=12e4,RA=new Set;function kA(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof AA)for(const u of GB(n,a))o.add(u);else o.add(a);const i=WB(e,o);for(const a of i)HB(e,r,a)}function WB(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return u(t),i;function u(c){const f=new Set,p=qB(e,r,c,i,a);for(const v of p){var h;if(CA(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((h=n.retention.referenceCounts.get(v))!==null&&h!==void 0?h:0)>0){a.add(v);continue}if(TA(v).some(A=>n.retention.referenceCounts.get(A))){a.add(v);continue}const y=o.nodeToNodeSubscriptions.get(v);if(y&&UB(y,A=>a.has(A))){a.add(v);continue}i.add(v),f.add(v)}const m=new Set;for(const v of f)for(const y of(b=o.nodeDeps.get(v))!==null&&b!==void 0?b:RA){var b;i.has(y)||m.add(y)}m.size&&u(m)}}function qB(e,t,n,r,o){const i=e.getGraph(t.version),a=[],u=new Set;for(;n.size>0;)c(tn(n.values().next().value));return a;function c(f){if(r.has(f)||o.has(f)){n.delete(f);return}if(u.has(f))return;const p=i.nodeToNodeSubscriptions.get(f);if(p)for(const h of p)c(h);u.add(f),n.delete(f),a.push(f)}}function HB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;zB(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=TA(n);for(const c of o){var i;(i=r.retention.nodesRetainedByZone.get(c))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const c=a.nodeDeps.get(n);if(c!==void 0){a.nodeDeps.delete(n);for(const f of c){var u;(u=a.nodeToNodeSubscriptions.get(f))===null||u===void 0||u.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}jB(n)}function GB(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:RA}function TA(e){const t=CA(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof AA?[t]:t}function KB(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):kA(e,new Set([t]))}function YB(e,t,n){var r;if(!Ft("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?DA(e,t):o.set(t,i)}function DA(e,t){if(!Ft("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),KB(e,t)}function XB(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();kA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function ZB(e){return e===void 0?"recoilRoot":e}var Ta={SUSPENSE_TIMEOUT_MS:VB,updateRetainCount:YB,updateRetainCountToZero:DA,releaseScheduledRetainablesNow:XB,retainedByOptionWithDefault:ZB};const{unstable_batchedUpdates:QB}=xl;var JB={unstable_batchedUpdates:QB};const{unstable_batchedUpdates:eI}=JB;var tI={unstable_batchedUpdates:eI};const{batchStart:nI}=wi,{unstable_batchedUpdates:rI}=tI;let iy=rI||(e=>e());const oI=e=>{iy=e},iI=()=>iy,sI=e=>{iy(()=>{let t=()=>{};try{t=nI(),e()}finally{t()}})};var Vh={getBatcher:iI,setBatcher:oI,batchUpdates:sI};function*aI(e){for(const t of e)for(const n of t)yield n}var PA=aI;const OA=typeof Window>"u"||typeof window>"u",lI=e=>!OA&&(e===window||e instanceof Window),uI=typeof navigator<"u"&&navigator.product==="ReactNative";var Wh={isSSR:OA,isReactNative:uI,isWindow:lI};function cI(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function fI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function dI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var pI={memoizeWithArgsHash:cI,memoizeOneWithArgsHash:fI,memoizeOneWithArgsHashAndInvalidation:dI};const{batchUpdates:u2}=Vh,{initializeNode:hI,peekNodeInfo:mI}=Ls,{graph:gI}=ff,{getNextStoreID:vI}=Uh,{DEFAULT_VALUE:yI,recoilValues:oS,recoilValuesForKeys:iS}=Ur,{AbstractRecoilValue:wI,getRecoilValueAsLoadable:bI,setRecoilValue:sS,setUnvalidatedRecoilValue:xI}=wi,{updateRetainCount:hp}=Ta,{setInvalidateMemoizedSnapshot:_I}=yA,{getNextTreeStateVersion:SI,makeEmptyStoreState:EI}=fA,{isSSR:CI}=Wh,{memoizeOneWithArgsHashAndInvalidation:AI}=pI;class qh{constructor(t,n){Qe(this,"_store",void 0),Qe(this,"_refCount",1),Qe(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),bI(this._store,r))),Qe(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Qe(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const a=this._store.getState().currentTree;return iS(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?oS.values():r.isInitialized===!0?iS(PA([o,i])):ny(oS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),Qe(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),mI(this._store,this._store.getState().currentTree,r))),Qe(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new c2(this,u2);return r(o),o}),Qe(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new c2(this,u2);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:vI(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return tn(o.get(r));const i=gI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw nt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)hI(this._store,r,"get"),hp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){CI||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!Ft("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Ft("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function LA(e,t,n=!1){const r=e.getState(),o=n?SI():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fh(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function RI(e){const t=new qh(EI());return e!=null?t.map(e):t}const[aS,NA]=AI((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:tn(r.previousTree);return new qh(LA(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});_I(NA);function kI(e,t="latest"){const n=aS(e,t);return n.isRetained()?n:(NA(),aS(e,t))}class c2 extends qh{constructor(t,n){super(LA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Qe(this,"_batch",void 0),Qe(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{hp(i,r.key,1),sS(this.getStore_INTERNAL(),r,o)})}),Qe(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{hp(o,r.key,1),sS(this.getStore_INTERNAL(),r,yI)})}),Qe(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();u2(()=>{for(const[i,a]of r.entries())hp(o,i,1),xI(o,new wI(i),a)})}),this._batch=n}}var Hh={Snapshot:qh,MutableSnapshot:c2,freshSnapshot:RI,cloneSnapshot:kI},TI=Hh.Snapshot,DI=Hh.MutableSnapshot,PI=Hh.freshSnapshot,OI=Hh.cloneSnapshot,Gh=Object.freeze({__proto__:null,Snapshot:TI,MutableSnapshot:DI,freshSnapshot:PI,cloneSnapshot:OI});function LI(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var NI=LI;const{useRef:MI}=rt;function BI(e){const t=MI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var lS=BI;const{getNextTreeStateVersion:II,makeEmptyStoreState:MA}=fA,{cleanUpNode:$I,getDownstreamNodes:FI,initializeNode:UI,setNodeValue:zI,setUnvalidatedAtomValue_DEPRECATED:jI}=Ls,{graph:VI}=ff,{cloneGraph:WI}=ff,{getNextStoreID:BA}=Uh,{createMutableSource:$g,reactMode:IA}=cf,{applyAtomValueWrites:qI}=wi,{releaseScheduledRetainablesNow:$A}=Ta,{freshSnapshot:HI}=Gh,{useCallback:GI,useContext:FA,useEffect:f2,useMemo:KI,useRef:YI,useState:XI}=rt;function Uu(){throw nt("This component must be used inside a component.")}const UA=Object.freeze({storeID:BA(),getState:Uu,replaceState:Uu,getGraph:Uu,subscribeToTransactions:Uu,addTransactionMetadata:Uu});let d2=!1;function uS(e){if(d2)throw nt("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){Ft("recoil_memory_managament_2020")&&Ft("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&$A(e);const n=t.currentTree.version,r=II();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,WI(tn(t.graphsByVersion.get(n))))}}const zA=rt.createContext({current:UA}),Kh=()=>FA(zA),jA=rt.createContext(null);function ZI(){return FA(jA)}function sy(e,t,n){const r=FI(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[a,[u,c]]of i)c(n)}}function VA(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[a,u]of i)u(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!IA().early||t.suspendedComponentResolvers.size>0)&&(sy(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function QI(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,VA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Z1("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ft("recoil_memory_managament_2020")&&n==null&&$A(e)}finally{t.commitDepth--}}function JI({setNotifyBatcherOfChange:e}){const t=Kh(),[,n]=XI([]);return e(()=>n({})),f2(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),f2(()=>{PM.enqueueExecution("Batcher",()=>{QI(t.current)})}),null}function e$(e,t){const n=MA();return t({set:(r,o)=>{const i=n.currentTree,a=zI(e,i,r.key,o),u=new Set(a.keys()),c=i.nonvalidatedAtoms.clone();for(const f of u)c.delete(f);n.currentTree={...i,dirtyAtoms:NI(i.dirtyAtoms,u),atomValues:qI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=jI(n.currentTree,i,o)})}}),n}function t$(e){const t=HI(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let cS=0;function n$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=b=>{const v=o.current.graphsByVersion;if(v.has(b))return tn(v.get(b));const y=VI();return v.set(b,y),y},a=(b,v)=>{if(v==null){const{transactionSubscriptions:y}=h.current.getState(),A=cS++;return y.set(A,b),{release:()=>{y.delete(A)}}}else{const{nodeTransactionSubscriptions:y}=h.current.getState();y.has(v)||y.set(v,new Map);const A=cS++;return tn(y.get(v)).set(A,b),{release:()=>{const _=y.get(v);_&&(_.delete(A),_.size===0&&y.delete(v))}}}},u=b=>{uS(h.current);for(const v of Object.keys(b))tn(h.current.getState().nextTree).transactionMetadata[v]=b[v]},c=b=>{uS(h.current);const v=tn(o.current.nextTree);let y;try{d2=!0,y=b(v)}finally{d2=!1}y!==v&&(o.current.nextTree=y,IA().early&&sy(h.current,o.current,y),tn(f.current)())},f=YI(null),p=GI(b=>{f.current=b},[f]),h=lS(()=>n??{storeID:BA(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:u});n!=null&&(h.current=n),o=lS(()=>e!=null?e$(h.current,e):t!=null?t$(t):MA());const m=KI(()=>$g==null?void 0:$g(o,()=>o.current.currentTree.version),[o]);return f2(()=>{const b=h.current;for(const v of new Set(b.getState().knownAtoms))UI(b,v,"get");return()=>{for(const v of b.getState().knownAtoms)$I(b,v)}},[h]),rt.createElement(zA.Provider,{value:h},rt.createElement(jA.Provider,{value:m},rt.createElement(JI,{setNotifyBatcherOfChange:p}),r))}function r$(e){const{override:t,...n}=e,r=Kh();return t===!1&&r.current!==UA?e.children:rt.createElement(n$,n)}function o$(){return Kh().current.storeID}var qi={RecoilRoot:r$,useStoreRef:Kh,useRecoilMutableSource:ZI,useRecoilStoreID:o$,notifyComponents_FOR_TESTING:sy,sendEndOfBatchNotifications_FOR_TESTING:VA};function i$(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var WA=u$;const{useStoreRef:c$}=qi,{SUSPENSE_TIMEOUT_MS:f$}=Ta,{updateRetainCount:zu}=Ta,{RetentionZone:d$}=zh,{useEffect:p$,useRef:h$}=rt,{isSSR:fS}=Wh;function m$(e){if(Ft("recoil_memory_managament_2020"))return g$(e)}function g$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof d$?a:a.key),r=c$();p$(()=>{if(!Ft("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!fS)window.clearTimeout(o.current),o.current=null;else for(const u of n)zu(a,u,1);return()=>{for(const u of n)zu(a,u,-1)}},[r,...n]);const o=h$(),i=WA(n);if(!fS&&(i===void 0||!s$(i,n))){const a=r.current;for(const u of n)zu(a,u,1);if(i)for(const u of i)zu(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)zu(a,u,-1)},f$)}}var ay=m$;function v$(){return""}var pf=v$;const{batchUpdates:y$}=Vh,{DEFAULT_VALUE:qA}=Ur,{currentRendererSupportsUseSyncExternalStore:w$,reactMode:au,useMutableSource:b$,useSyncExternalStore:x$}=cf,{useRecoilMutableSource:_$,useStoreRef:bi}=qi,{AbstractRecoilValue:p2,getRecoilValueAsLoadable:hf,setRecoilValue:oh,setUnvalidatedRecoilValue:S$,subscribeToRecoilValue:ql}=wi,{useCallback:Lr,useEffect:Hl,useMemo:HA,useRef:bc,useState:ly}=rt,{setByAddingToSet:E$}=pA,{isSSR:C$}=Wh;function uy(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const i=n.current.getState().suspendedComponentResolvers;i.add(o),C$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:nt(`Invalid value of loadable atom "${t.key}"`)}function A$(){const e=pf(),t=bi(),[,n]=ly([]),r=bc(new Set);r.current=new Set;const o=bc(new Set),i=bc(new Map),a=Lr(c=>{const f=i.current.get(c);f&&(f.release(),i.current.delete(c))},[i]),u=Lr((c,f)=>{i.current.has(f)&&n([])},[]);return Hl(()=>{const c=t.current;yc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=ql(c,new p2(f),m=>u(m,f),e);i.current.set(f,p),c.getState().nextTree?c.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(c.getState(),f)}):u(c.getState(),f)}),yc(o.current,r.current).forEach(f=>{a(f)}),o.current=r.current}),Hl(()=>{const c=i.current;return yc(r.current,new Set(c.keys())).forEach(f=>{const p=ql(t.current,new p2(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),HA(()=>{function c(v){return y=>{oh(t.current,v,y)}}function f(v){return()=>oh(t.current,v,qA)}function p(v){var y;r.current.has(v.key)||(r.current=E$(r.current,v.key));const A=t.current.getState();return hf(t.current,v,au().early&&(y=A.nextTree)!==null&&y!==void 0?y:A.currentTree)}function h(v){const y=p(v);return uy(y,v,t)}function m(v){return[h(v),c(v)]}function b(v){return[p(v),c(v)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:b,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const R$={current:0};function k$(e){const t=bi(),n=pf(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return{loadable:hf(c,e,p),key:e.key}},[t,e]),o=Lr(u=>{let c;return()=>{var f,p;const h=u();return(f=c)!==null&&f!==void 0&&f.loadable.is(h.loadable)&&((p=c)===null||p===void 0?void 0:p.key)===h.key?c:(c=h,h)}},[]),i=HA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return ql(c,e,u,n).release},[t,e,n]);return x$(a,i,i).loadable}function T$(e){const t=bi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=au().early&&(f=h.nextTree)!==null&&f!==void 0?f:h.currentTree;return hf(p,e,m)},[t,e]),r=Lr(()=>n(),[n]),o=pf(),i=Lr((f,p)=>{const h=t.current;return ql(h,e,()=>{if(!Ft("recoil_suppress_rerender_in_callback"))return p();const b=n();c.current.is(b)||p(),c.current=b},o).release},[t,e,o,n]),a=_$();if(a==null)throw nt("Recoil hooks must be used in components contained within a component.");const u=b$(a,r,i),c=bc(u);return Hl(()=>{c.current=u}),u}function h2(e){const t=bi(),n=pf(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=au().early&&(c=p.nextTree)!==null&&c!==void 0?c:p.currentTree;return hf(f,e,h)},[t,e]),o=Lr(()=>({loadable:r(),key:e.key}),[r,e.key]),i=Lr(c=>{const f=o();return c.loadable.is(f.loadable)&&c.key===f.key?c:f},[o]);Hl(()=>{const c=ql(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=ly(o);return a.key!==e.key?o().loadable:a.loadable}function D$(e){const t=bi(),[,n]=ly([]),r=pf(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return hf(c,e,p)},[t,e]),i=o(),a=bc(i);return Hl(()=>{a.current=i}),Hl(()=>{const u=t.current,c=u.getState(),f=ql(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const b=o();(m=a.current)!==null&&m!==void 0&&m.is(b)||n(b),a.current=b},r);if(c.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var p;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const h=o();(p=a.current)!==null&&p!==void 0&&p.is(h)||n(h),a.current=h}return f.release},[r,o,e,t]),i}function cy(e){return Ft("recoil_memory_managament_2020")&&ay(e),{TRANSITION_SUPPORT:h2,SYNC_EXTERNAL_STORE:w$()?k$:h2,MUTABLE_SOURCE:T$,LEGACY:D$}[au().mode](e)}function GA(e){const t=bi(),n=cy(e);return uy(n,e,t)}function Yh(e){const t=bi();return Lr(n=>{oh(t.current,e,n)},[t,e])}function P$(e){const t=bi();return Lr(()=>{oh(t.current,e,qA)},[t,e])}function O$(e){return[GA(e),Yh(e)]}function L$(e){return[cy(e),Yh(e)]}function N$(){const e=bi();return(t,n={})=>{y$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>S$(e.current,new p2(o),r))})}}function KA(e){return Ft("recoil_memory_managament_2020")&&ay(e),h2(e)}function YA(e){const t=bi(),n=KA(e);return uy(n,e,t)}function M$(e){return[YA(e),Yh(e)]}var B$={recoilComponentGetRecoilValueCount_FOR_TESTING:R$,useRecoilInterface:A$,useRecoilState:O$,useRecoilStateLoadable:L$,useRecoilValue:GA,useRecoilValueLoadable:cy,useResetRecoilState:P$,useSetRecoilState:Yh,useSetUnvalidatedAtomValues:N$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:KA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:YA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:M$};function I$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var $$=I$;function F$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var U$=F$;function z$(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function hS(e){const t=e.atomValues.toMap(),n=rh($$(t,(r,o)=>{const a=XA(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return j$(e.nonvalidatedAtoms.toMap(),n)}function X$(e){Zh(Xh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=hS(r),i=hS(n),a=rh(q$,c=>{var f,p,h,m;return{persistence_UNSTABLE:{type:(f=(p=c.persistence_UNSTABLE)===null||p===void 0?void 0:p.type)!==null&&f!==void 0?f:"none",backButton:(h=(m=c.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&h!==void 0?h:!1}}}),u=U$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Z$(e){Zh(Xh(t=>{const n=ih(t,"latest"),r=ih(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Q$(){const e=fy(),[t,n]=Y$(()=>ih(e.current)),r=WA(t),o=dS(),i=dS();if(Zh(Xh(u=>n(ih(u)),[])),ZA(()=>{const u=t.retain();if(o.current&&!pS){var c;window.clearTimeout(o.current),o.current=null,(c=i.current)===null||c===void 0||c.call(i),i.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!pS){if(o.current){var a;window.clearTimeout(o.current),o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=i.current)===null||u===void 0||u.call(i),i.current=null},K$)}return t}function QA(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;V$(()=>{const a=new Set;for(const f of[o.atomValues.keys(),i.atomValues.keys()])for(const p of f){var u,c;((u=o.atomValues.get(p))===null||u===void 0?void 0:u.contents)!==((c=i.atomValues.get(p))===null||c===void 0?void 0:c.contents)&&XA(p).shouldRestoreFromSnapshots&&a.add(p)}a.forEach(f=>{G$(e,new H$(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):W$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function J$(){const e=fy();return Xh(t=>QA(e.current,t),[e])}var JA={useRecoilSnapshot:Q$,gotoSnapshot:QA,useGotoRecoilSnapshot:J$,useRecoilTransactionObserver:Z$,useTransactionObservation_DEPRECATED:X$,useTransactionSubscription_DEPRECATED:Zh};const{peekNodeInfo:eF}=Ls,{useStoreRef:tF}=qi;function nF(){const e=tF();return({key:t})=>eF(e.current,e.current.getState().currentTree,t)}var rF=nF;const{reactMode:oF}=cf,{RecoilRoot:iF,useStoreRef:sF}=qi,{useMemo:aF}=rt;function lF(){oF().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=sF().current;return aF(()=>{function t({children:n}){return rt.createElement(iF,{store_INTERNAL:e},n)}return t},[e])}var uF=lF;const{loadableWithValue:cF}=uf,{initializeNode:fF}=Ls,{DEFAULT_VALUE:dF,getNode:pF}=Ur,{copyTreeState:hF,getRecoilValueAsLoadable:mF,invalidateDownstreams:gF,writeLoadableToTreeState:vF}=wi;function mS(e){return pF(e.key).nodeType==="atom"}class yF{constructor(t,n){Qe(this,"_store",void 0),Qe(this,"_treeState",void 0),Qe(this,"_changes",void 0),Qe(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!mS(r))throw nt("Reading selectors within atomicUpdate is not supported");const o=mF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:nt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Qe(this,"set",(r,o)=>{if(!mS(r))throw nt("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else fF(this._store,r.key,"set"),this._changes.set(r.key,o)}),Qe(this,"reset",r=>{this.set(r,dF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=hF(this._treeState);for(const[n,r]of this._changes)vF(t,n,cF(r));return gF(this._store,t),t}}function wF(e){return t=>{e.replaceState(n=>{const r=new yF(e,n);return t(r),r.newTreeState_INTERNAL()})}}var bF={atomicUpdater:wF},xF=bF.atomicUpdater,eR=Object.freeze({__proto__:null,atomicUpdater:xF});function _F(e,t){if(!e)throw new Error(t)}var SF=_F,oc=SF;const{atomicUpdater:EF}=eR,{batchUpdates:CF}=Vh,{DEFAULT_VALUE:AF}=Ur,{useStoreRef:RF}=qi,{refreshRecoilValue:kF,setRecoilValue:gS}=wi,{cloneSnapshot:TF}=Gh,{gotoSnapshot:DF}=JA,{useCallback:PF}=rt;class tR{}const OF=new tR;function nR(e,t,n,r){let o=OF,i;if(CF(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw nt(u);const c=hA({...r??{},set:(p,h)=>gS(e,p,h),reset:p=>gS(e,p,AF),refresh:p=>kF(e,p),gotoSnapshot:p=>DF(e,p),transact_UNSTABLE:p=>EF(e)(p)},{snapshot:()=>{const p=TF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw nt(u);o=f(...n)}),o instanceof tR&&oc(!1),Kt(o))o=o.finally(()=>{var u;(u=i)===null||u===void 0||u()});else{var a;(a=i)===null||a===void 0||a()}return o}function LF(e,t){const n=RF();return PF((...r)=>nR(n.current,e,r),t!=null?[...t,n]:void 0)}var rR={recoilCallback:nR,useRecoilCallback:LF};const{useStoreRef:NF}=qi,{refreshRecoilValue:MF}=wi,{useCallback:BF}=rt;function IF(e){const t=NF();return BF(()=>{const n=t.current;MF(n,e)},[e,t])}var $F=IF;const{atomicUpdater:FF}=eR,{useStoreRef:UF}=qi,{useMemo:zF}=rt;function jF(e,t){const n=UF();return zF(()=>(...r)=>{FF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var VF=jF;class WF{constructor(t){Qe(this,"value",void 0),this.value=t}}var qF={WrappedValue:WF},HF=qF.WrappedValue,oR=Object.freeze({__proto__:null,WrappedValue:HF});const{isFastRefreshEnabled:GF}=cf;class vS extends Error{}class KF{constructor(t){var n,r,o;Qe(this,"_name",void 0),Qe(this,"_numLeafs",void 0),Qe(this,"_root",void 0),Qe(this,"_onHit",void 0),Qe(this,"_onSet",void 0),Qe(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,a,u,c;let f,p;for(const[A,_]of t){var h,m,b;const w=this._root;if((w==null?void 0:w.type)==="leaf")throw this.invalidCacheError();const S=f;if(f=S?S.branches.get(p):w,f=(h=f)!==null&&h!==void 0?h:{type:"branch",nodeKey:A,parent:S,branches:new Map,branchKey:p},f.type!=="branch"||f.nodeKey!==A)throw this.invalidCacheError();S==null||S.branches.set(p,f),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,f),p=this._mapNodeValue(_),this._root=(b=this._root)!==null&&b!==void 0?b:f}const v=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==p))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,y),this._root=(u=this._root)!==null&&u!==void 0?u:y,this._numLeafs++,this._onSet(y),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,y)};try{o()}catch(i){if(i instanceof vS)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=GF()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw Z1(t+(this._name!=null?` - ${this._name}`:"")),new vS}}var YF={TreeCache:KF},XF=YF.TreeCache,iR=Object.freeze({__proto__:null,TreeCache:XF});class ZF{constructor(t){var n;Qe(this,"_maxSize",void 0),Qe(this,"_size",void 0),Qe(this,"_head",void 0),Qe(this,"_tail",void 0),Qe(this,"_map",void 0),Qe(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=tn(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var QF={LRUCache:ZF},JF=QF.LRUCache,sR=Object.freeze({__proto__:null,LRUCache:JF});const{LRUCache:eU}=sR,{TreeCache:tU}=iR;function nU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new eU({maxSize:t}),o=new tU({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const a=r.tail();r.set(i,!0),a&&o.size()>t&&o.delete(a.key)}});return o}var yS=nU;function Wo(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw nt("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(Kt(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>Wo(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return Wo(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,a]of e)o[typeof i=="string"?i:Wo(i,t)]=a;return Wo(o,t,n)}return e instanceof Set?Wo(Array.from(e).sort((o,i)=>Wo(o,t).localeCompare(Wo(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Wo(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${Wo(o,t)}:${Wo(e[o],t,o)}`).join(",")}}`}function rU(e,t={allowFunctions:!1}){return Wo(e,t)}var Qh=rU;const{TreeCache:oU}=iR,Nd={equality:"reference",eviction:"keep-all",maxSize:1/0};function iU({equality:e=Nd.equality,eviction:t=Nd.eviction,maxSize:n=Nd.maxSize}=Nd,r){const o=sU(e);return aU(t,n,o,r)}function sU(e){switch(e){case"reference":return t=>t;case"value":return t=>Qh(t)}throw nt(`Unrecognized equality policy ${e}`)}function aU(e,t,n,r){switch(e){case"keep-all":return new oU({name:r,mapNodeValue:n});case"lru":return yS({name:r,maxSize:tn(t),mapNodeValue:n});case"most-recent":return yS({name:r,maxSize:1,mapNodeValue:n})}throw nt(`Unrecognized eviction policy ${e}`)}var lU=iU;function uU(e){return()=>null}var cU={startPerfBlock:uU};const{isLoadable:fU,loadableWithError:Md,loadableWithPromise:dU,loadableWithValue:Fg}=uf,{WrappedValue:aR}=oR,{getNodeLoadable:Bd,peekNodeLoadable:pU,setNodeValue:hU}=Ls,{saveDepsToStore:mU}=ff,{DEFAULT_VALUE:gU,getConfigDeletionHandler:vU,getNode:yU,registerNode:wS}=Ur,{isRecoilValue:wU}=Wl,{markRecoilValueModified:bS}=wi,{retainedByOptionWithDefault:bU}=Ta,{recoilCallback:xU}=rR,{startPerfBlock:_U}=cU;class lR{}const ju=new lR,Vu=[],Id=new Map,SU=(()=>{let e=0;return()=>e++})();function uR(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,a=new Set,u=lU(o??{equality:"reference",eviction:"keep-all"},n),c=bU(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!Ft("recoil_memory_managament_2020")||p>0}function m(z){return z.getState().knownSelectors.add(n),p++,()=>{p--}}function b(){return vU(n)!==void 0&&!h()}function v(z,ue,ne,ye,de){re(ue,ye,de),y(z,ne)}function y(z,ue){H(z,ue)&&K(z),_(ue,!0)}function A(z,ue){H(z,ue)&&(tn($(z)).stateVersions.clear(),_(ue,!1))}function _(z,ue){const ne=Id.get(z);if(ne!=null){for(const ye of ne)bS(ye,tn(t));ue&&Id.delete(z)}}function w(z,ue){let ne=Id.get(ue);ne==null&&Id.set(ue,ne=new Set),ne.add(z)}function S(z,ue,ne,ye,de,Me){return ue.then(Ae=>{if(!h())throw K(z),ju;const ge=Fg(Ae);return v(z,ne,de,ge,ye),Ae}).catch(Ae=>{if(!h())throw K(z),ju;if(Kt(Ae))return k(z,Ae,ne,ye,de,Me);const ge=Md(Ae);throw v(z,ne,de,ge,ye),Ae})}function k(z,ue,ne,ye,de,Me){return ue.then(Ae=>{if(!h())throw K(z),ju;Me.loadingDepKey!=null&&Me.loadingDepPromise===ue?ne.atomValues.set(Me.loadingDepKey,Fg(Ae)):z.getState().knownSelectors.forEach(Ce=>{ne.atomValues.delete(Ce)});const ge=L(z,ne);if(ge&&ge.state!=="loading"){if((H(z,de)||$(z)==null)&&y(z,de),ge.state==="hasValue")return ge.contents;throw ge.contents}if(!H(z,de)){const Ce=q(z,ne);if(Ce!=null)return Ce.loadingLoadable.contents}const[Je,Le]=E(z,ne,de);if(Je.state!=="loading"&&v(z,ne,de,Je,Le),Je.state==="hasError")throw Je.contents;return Je.contents}).catch(Ae=>{if(Ae instanceof lR)throw ju;if(!h())throw K(z),ju;const ge=Md(Ae);throw v(z,ne,de,ge,ye),Ae})}function T(z,ue,ne,ye){var de,Me,Ae,ge;if(H(z,ye)||ue.version===((de=z.getState())===null||de===void 0||(Me=de.currentTree)===null||Me===void 0?void 0:Me.version)||ue.version===((Ae=z.getState())===null||Ae===void 0||(ge=Ae.nextTree)===null||ge===void 0?void 0:ge.version)){var Je,Le,Ce;mU(n,ne,z,(Je=(Le=z.getState())===null||Le===void 0||(Ce=Le.nextTree)===null||Ce===void 0?void 0:Ce.version)!==null&&Je!==void 0?Je:z.getState().currentTree.version)}for(const Ge of ne)a.add(Ge)}function E(z,ue,ne){const ye=_U(n);let de=!0,Me=!0;const Ae=()=>{ye(),Me=!1};let ge,Je=!1,Le;const Ce={loadingDepKey:null,loadingDepPromise:null},Ge=new Map;function st({key:xt}){const mt=Bd(z,ue,xt);switch(Ge.set(xt,mt),de||(T(z,ue,new Set(Ge.keys()),ne),A(z,ne)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw Ce.loadingDepKey=xt,Ce.loadingDepPromise=mt.contents,mt.contents}throw nt("Invalid Loadable state")}const ht=xt=>(...mt)=>{if(Me)throw nt("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&oc(!1),xU(z,xt,mt,{node:t})};try{ge=r({get:st,getCallback:ht}),ge=wU(ge)?st(ge):ge,fU(ge)&&(ge.state==="hasError"&&(Je=!0),ge=ge.contents),Kt(ge)?ge=S(z,ge,ue,Ge,ne,Ce).finally(Ae):Ae(),ge=ge instanceof aR?ge.value:ge}catch(xt){ge=xt,Kt(ge)?ge=k(z,ge,ue,Ge,ne,Ce).finally(Ae):(Je=!0,Ae())}return Je?Le=Md(ge):Kt(ge)?Le=dU(ge):Le=Fg(ge),de=!1,ae(z,ne,Ge),T(z,ue,new Set(Ge.keys()),ne),[Le,Ge]}function L(z,ue){let ne=ue.atomValues.get(n);if(ne!=null)return ne;const ye=new Set;try{ne=u.get(Me=>(typeof Me!="string"&&oc(!1),Bd(z,ue,Me).contents),{onNodeVisit:Me=>{Me.type==="branch"&&Me.nodeKey!==n&&ye.add(Me.nodeKey)}})}catch(Me){throw nt(`Problem with cache lookup for selector "${n}": ${Me.message}`)}if(ne){var de;ue.atomValues.set(n,ne),T(z,ue,ye,(de=$(z))===null||de===void 0?void 0:de.executionID)}return ne}function I(z,ue){const ne=L(z,ue);if(ne!=null)return K(z),ne;const ye=q(z,ue);if(ye!=null){var de;return((de=ye.loadingLoadable)===null||de===void 0?void 0:de.state)==="loading"&&w(z,ye.executionID),ye.loadingLoadable}const Me=SU(),[Ae,ge]=E(z,ue,Me);return Ae.state==="loading"?(X(z,Me,Ae,ge,ue),w(z,Me)):(K(z),re(ue,Ae,ge)),Ae}function q(z,ue){const ne=PA([f.has(z)?[tn(f.get(z))]:[],Fh(ny(f,([de])=>de!==z),([,de])=>de)]);function ye(de){for(const[Me,Ae]of de)if(!Bd(z,ue,Me).is(Ae))return!0;return!1}for(const de of ne){if(de.stateVersions.get(ue.version)||!ye(de.depValuesDiscoveredSoFarDuringAsyncWork))return de.stateVersions.set(ue.version,!0),de;de.stateVersions.set(ue.version,!1)}}function $(z){return f.get(z)}function X(z,ue,ne,ye,de){f.set(z,{depValuesDiscoveredSoFarDuringAsyncWork:ye,executionID:ue,loadingLoadable:ne,stateVersions:new Map([[de.version,!0]])})}function ae(z,ue,ne){if(H(z,ue)){const ye=$(z);ye!=null&&(ye.depValuesDiscoveredSoFarDuringAsyncWork=ne)}}function K(z){f.delete(z)}function H(z,ue){var ne;return ue===((ne=$(z))===null||ne===void 0?void 0:ne.executionID)}function Q(z){return Array.from(z.entries()).map(([ue,ne])=>[ue,ne.contents])}function re(z,ue,ne){z.atomValues.set(n,ue);try{u.set(Q(ne),ue)}catch(ye){throw nt(`Problem with setting cache for selector "${n}": ${ye.message}`)}}function le(z){if(Vu.includes(n)){const ue=`Recoil selector has circular dependencies: ${Vu.slice(Vu.indexOf(n)).join(" → ")}`;return Md(nt(ue))}Vu.push(n);try{return z()}finally{Vu.pop()}}function J(z,ue){const ne=ue.atomValues.get(n);return ne??u.get(ye=>{var de;return typeof ye!="string"&&oc(!1),(de=pU(z,ue,ye))===null||de===void 0?void 0:de.contents})}function pe(z,ue){return le(()=>I(z,ue))}function ie(z){z.atomValues.delete(n)}function he(z,ue){t==null&&oc(!1);for(const ye of a){var ne;const de=yU(ye);(ne=de.clearCache)===null||ne===void 0||ne.call(de,z,ue)}a.clear(),ie(ue),u.clear(),bS(z,t)}return i!=null?t=wS({key:n,nodeType:"selector",peek:J,get:pe,set:(ue,ne,ye)=>{let de=!1;const Me=new Map;function Ae({key:Ce}){if(de)throw nt("Recoil: Async selector sets are not currently supported.");const Ge=Bd(ue,ne,Ce);if(Ge.state==="hasValue")return Ge.contents;if(Ge.state==="loading"){const st=`Getting value of asynchronous atom or selector "${Ce}" in a pending state while setting selector "${n}" is not yet supported.`;throw nt(st)}else throw Ge.contents}function ge(Ce,Ge){if(de)throw nt("Recoil: Async selector sets are not currently supported.");const st=typeof Ge=="function"?Ge(Ae(Ce)):Ge;hU(ue,ne,Ce.key,st).forEach((xt,mt)=>Me.set(mt,xt))}function Je(Ce){ge(Ce,gU)}const Le=i({set:ge,get:Ae,reset:Je},ye);if(Le!==void 0)throw Kt(Le)?nt("Recoil: Async selector sets are not currently supported."):nt("Recoil: selector set should be a void function.");return de=!0,Me},init:m,invalidate:ie,clearCache:he,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=wS({key:n,nodeType:"selector",peek:J,get:pe,init:m,invalidate:ie,clearCache:he,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}uR.value=e=>new aR(e);var Gl=uR;const{isLoadable:EU,loadableWithError:Ug,loadableWithPromise:zg,loadableWithValue:Ya}=uf,{WrappedValue:cR}=oR,{peekNodeInfo:CU}=Ls,{DEFAULT_VALUE:ta,DefaultValue:cs,getConfigDeletionHandler:fR,registerNode:AU,setConfigDeletionHandler:RU}=Ur,{isRecoilValue:kU}=Wl,{getRecoilValueAsLoadable:TU,markRecoilValueModified:DU,setRecoilValue:xS,setRecoilValueLoadable:PU}=wi,{retainedByOptionWithDefault:OU}=Ta,Wu=e=>e instanceof cR?e.value:e;function LU(e){const{key:t,persistence_UNSTABLE:n}=e,r=OU(e.retainedBy_UNSTABLE);let o=0;function i(w){return zg(w.then(S=>(a=Ya(S),S)).catch(S=>{throw a=Ug(S),S}))}let a=Kt(e.default)?i(e.default):EU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Ya(Wu(e.default));a.contents;let u;const c=new Map;function f(w){return w}function p(w,S){const k=S.then(T=>{var E,L;return((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&xS(w,_,T),T}).catch(T=>{var E,L;throw((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&PU(w,_,Ug(T)),T});return k}function h(w,S,k){var T;o++;const E=()=>{var $;o--,($=c.get(w))===null||$===void 0||$.forEach(X=>X()),c.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const $=()=>{var X;((X=w.getState().nextTree)!==null&&X!==void 0?X:w.getState().currentTree).atomValues.has(t)||DU(w,_)};a.contents.finally($)}const L=(T=e.effects)!==null&&T!==void 0?T:e.effects_UNSTABLE;if(L!=null){let $=function(ie){if(H&&ie.key===t){const he=K;return he instanceof cs?m(w,S):Kt(he)?zg(he.then(z=>z instanceof cs?a.toPromise():z)):Ya(he)}return TU(w,ie)},X=function(ie){return $(ie).toPromise()},ae=function(ie){var he;const z=CU(w,(he=w.getState().nextTree)!==null&&he!==void 0?he:w.getState().currentTree,ie.key);return H&&ie.key===t&&!(K instanceof cs)?{...z,isSet:!0,loadable:$(ie)}:z},K=ta,H=!0,Q=!1,re=null;const le=ie=>he=>{if(H){const z=$(_),ue=z.state==="hasValue"?z.contents:ta;K=typeof he=="function"?he(ue):he,Kt(K)&&(K=K.then(ne=>(re={effect:ie,value:ne},ne)))}else{if(Kt(he))throw nt("Setting atoms to async values is not implemented.");typeof he!="function"&&(re={effect:ie,value:Wu(he)}),xS(w,_,typeof he=="function"?z=>{const ue=Wu(he(z));return re={effect:ie,value:ue},ue}:Wu(he))}},J=ie=>()=>le(ie)(ta),pe=ie=>he=>{var z;const{release:ue}=w.subscribeToTransactions(ne=>{var ye;let{currentTree:de,previousTree:Me}=ne.getState();Me||(Me=de);const Ae=(ye=de.atomValues.get(t))!==null&&ye!==void 0?ye:a;if(Ae.state==="hasValue"){var ge,Je,Le,Ce;const Ge=Ae.contents,st=(ge=Me.atomValues.get(t))!==null&&ge!==void 0?ge:a,ht=st.state==="hasValue"?st.contents:ta;((Je=re)===null||Je===void 0?void 0:Je.effect)!==ie||((Le=re)===null||Le===void 0?void 0:Le.value)!==Ge?he(Ge,ht,!de.atomValues.has(t)):((Ce=re)===null||Ce===void 0?void 0:Ce.effect)===ie&&(re=null)}},t);c.set(w,[...(z=c.get(w))!==null&&z!==void 0?z:[],ue])};for(const ie of L)try{const he=ie({node:_,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:k,setSelf:le(ie),resetSelf:J(ie),onSet:pe(ie),getPromise:X,getLoadable:$,getInfo_UNSTABLE:ae});if(he!=null){var I;c.set(w,[...(I=c.get(w))!==null&&I!==void 0?I:[],he])}}catch(he){K=he,Q=!0}if(H=!1,!(K instanceof cs)){var q;const ie=Q?Ug(K):Kt(K)?zg(p(w,K)):Ya(Wu(K));ie.contents,S.atomValues.set(t,ie),(q=w.getState().nextTree)===null||q===void 0||q.atomValues.set(t,ie)}}return E}function m(w,S){var k,T;return(k=(T=S.atomValues.get(t))!==null&&T!==void 0?T:u)!==null&&k!==void 0?k:a}function b(w,S){if(S.atomValues.has(t))return tn(S.atomValues.get(t));if(S.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return a;const k=S.nonvalidatedAtoms.get(t),T=n.validator(k,ta);return u=T instanceof cs?a:Ya(T),u}else return a}function v(){u=void 0}function y(w,S,k){if(S.atomValues.has(t)){const T=tn(S.atomValues.get(t));if(T.state==="hasValue"&&k===T.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof cs)return new Map;return u=void 0,new Map().set(t,Ya(k))}function A(){return fR(t)!==void 0&&o<=0}const _=AU({key:t,nodeType:"atom",peek:m,get:b,set:y,init:h,invalidate:v,shouldDeleteConfigOnRelease:A,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return _}function dy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return kU(n)?NU({...t,default:n}):LU({...t,default:n})}function NU(e){const t=dy({...e,default:ta,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof cs?r:tn(e.persistence_UNSTABLE).validator(r,ta)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Gl({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof cs?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return RU(n.key,fR(e.key)),n}dy.value=e=>new cR(e);var dR=dy;class MU{constructor(t){var n;Qe(this,"_map",void 0),Qe(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var BU={MapCache:MU},IU=BU.MapCache,$U=Object.freeze({__proto__:null,MapCache:IU});const{LRUCache:_S}=sR,{MapCache:FU}=$U,$d={equality:"reference",eviction:"none",maxSize:1/0};function UU({equality:e=$d.equality,eviction:t=$d.eviction,maxSize:n=$d.maxSize}=$d){const r=zU(e);return jU(t,n,r)}function zU(e){switch(e){case"reference":return t=>t;case"value":return t=>Qh(t)}throw nt(`Unrecognized equality policy ${e}`)}function jU(e,t,n){switch(e){case"keep-all":return new FU({mapKey:n});case"lru":return new _S({mapKey:n,maxSize:tn(t)});case"most-recent":return new _S({mapKey:n,maxSize:1})}throw nt(`Unrecognized eviction policy ${e}`)}var pR=UU;const{setConfigDeletionHandler:VU}=Ur;function WU(e){var t,n;const r=pR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,a;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:c,...f}=e,p="default"in e?e.default:new Promise(()=>{}),h=dR({...f,key:`${e.key}__${(i=Qh(o))!==null&&i!==void 0?i:"void"}`,default:typeof p=="function"?p(o):p,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(o,h),VU(h.key,()=>{r.delete(o)}),h}}var qU=WU;const{setConfigDeletionHandler:HU}=Ur;let GU=0;function KU(e){var t,n;const r=pR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a;try{a=r.get(o)}catch(m){throw nt(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=Qh(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${GU++}`,c=m=>e.get(o)(m),f=e.cachePolicy_UNSTABLE,p=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let h;if(e.set!=null){const m=e.set;h=Gl({key:u,get:c,set:(v,y)=>m(o)(v,y),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Gl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),HU(h.key,()=>{r.delete(o)}),h}}var Ns=KU;const YU=Ns({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function XU(e){return YU(e)}var ZU=XU;const QU=Ns({key:"__error",get:e=>()=>{throw nt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function JU(e){return QU(e)}var ez=JU;function tz(e){return e}var nz=tz;const{loadableWithError:hR,loadableWithPromise:mR,loadableWithValue:gR}=uf;function Jh(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function rz(e){return e!=null&&!Kt(e)}function e0(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function m2(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function Ol(e,t,n){const r=n.map((o,i)=>o==null?gR(t[i]):Kt(o)?mR(o):hR(o));return m2(e,r)}function oz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const iz=Ns({key:"__waitForNone",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);return Ol(e,r,o)},dangerouslyAllowMutability:!0}),sz=Ns({key:"__waitForAny",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);return o.some(i=>!Kt(i))?Ol(e,r,o):new Promise(i=>{for(const[a,u]of o.entries())Kt(u)&&u.then(c=>{r[a]=c,o[a]=void 0,i(Ol(e,r,o))}).catch(c=>{o[a]=c,i(Ol(e,r,o))})})},dangerouslyAllowMutability:!0}),az=Ns({key:"__waitForAll",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);if(o.every(a=>a==null))return m2(e,r);const i=o.find(rz);if(i!=null)throw i;return Promise.all(o).then(a=>m2(e,oz(r,a)))},dangerouslyAllowMutability:!0}),lz=Ns({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);return o.every(i=>!Kt(i))?Ol(e,r,o):Promise.all(o.map((i,a)=>Kt(i)?i.then(u=>{r[a]=u,o[a]=void 0}).catch(u=>{r[a]=void 0,o[a]=u}):null)).then(()=>Ol(e,r,o))},dangerouslyAllowMutability:!0}),uz=Ns({key:"__noWait",get:e=>({get:t})=>{try{return Gl.value(gR(t(e)))}catch(n){return Gl.value(Kt(n)?mR(n):hR(n))}},dangerouslyAllowMutability:!0});var cz={waitForNone:iz,waitForAny:sz,waitForAll:az,waitForAllSettled:lz,noWait:uz};const{RecoilLoadable:fz}=uf,{DefaultValue:dz}=Ur,{RecoilRoot:pz,useRecoilStoreID:hz}=qi,{isRecoilValue:mz}=Wl,{retentionZone:gz}=zh,{freshSnapshot:vz}=Gh,{useRecoilState:yz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:wz,useRecoilStateLoadable:bz,useRecoilValue:xz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:_z,useRecoilValueLoadable:Sz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ez,useResetRecoilState:Cz,useSetRecoilState:Az}=B$,{useGotoRecoilSnapshot:Rz,useRecoilSnapshot:kz,useRecoilTransactionObserver:Tz}=JA,{useRecoilCallback:Dz}=rR,{noWait:Pz,waitForAll:Oz,waitForAllSettled:Lz,waitForAny:Nz,waitForNone:Mz}=cz;var Ms={DefaultValue:dz,isRecoilValue:mz,RecoilLoadable:fz,RecoilEnv:su,RecoilRoot:pz,useRecoilStoreID:hz,useRecoilBridgeAcrossReactRoots_UNSTABLE:uF,atom:dR,selector:Gl,atomFamily:qU,selectorFamily:Ns,constSelector:ZU,errorSelector:ez,readOnlySelector:nz,noWait:Pz,waitForNone:Mz,waitForAny:Nz,waitForAll:Oz,waitForAllSettled:Lz,useRecoilValue:xz,useRecoilValueLoadable:Sz,useRecoilState:yz,useRecoilStateLoadable:bz,useSetRecoilState:Az,useResetRecoilState:Cz,useGetRecoilValueInfo_UNSTABLE:rF,useRecoilRefresher_UNSTABLE:$F,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ez,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:_z,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:wz,useRecoilCallback:Dz,useRecoilTransaction_UNSTABLE:VF,useGotoRecoilSnapshot:Rz,useRecoilSnapshot:kz,useRecoilTransactionObserver_UNSTABLE:Tz,snapshot_UNSTABLE:vz,useRetain:ay,retentionZone:gz},Bz=Ms.DefaultValue,Iz=Ms.RecoilRoot,_n=Ms.atom,vR=Ms.selector,Dn=Ms.useRecoilValue,SS=Ms.useRecoilState,bn=Ms.useSetRecoilState,mp=Ms.useResetRecoilState,sh={exports:{}};/** + hot module replacement.`;console.warn(t)}}function CM(e){su.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&EM(e.key),_a.set(e.key,e);const t=e.set==null?new Wl.RecoilValueReadOnly(e.key):new Wl.RecoilState(e.key);return J1.set(e.key,t),t}class aA extends Error{}function AM(e){const t=_a.get(e);if(t==null)throw new aA(`Missing definition for RecoilValue: "${e}""`);return t}function RM(e){return _a.get(e)}const nh=new Map;function kM(e){var t;if(!Ft("recoil_memory_managament_2020"))return;const n=_a.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;_a.delete(e),(r=lA(e))===null||r===void 0||r(),nh.delete(e)}}function TM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?nh.delete(e):nh.set(e,t))}function lA(e){return nh.get(e)}var Ur={nodes:_a,recoilValues:J1,registerNode:CM,getNode:AM,getNodeMaybe:RM,deleteNodeConfigIfPossible:kM,setConfigDeletionHandler:TM,getConfigDeletionHandler:lA,recoilValuesForKeys:SM,NodeMissingError:aA,DefaultValue:sA,DEFAULT_VALUE:_M};function DM(e,t){t()}var PM={enqueueExecution:DM};function OM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var LM=OM(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,u=o/4,c={},f=function(F){return function(){return F}},p=n.hash=function(W){var F=typeof W>"u"?"undefined":t(W);if(F==="number")return W;F!=="string"&&(W+="");for(var ce=0,be=0,we=W.length;be>1&1431655765,F=(F&858993459)+(F>>2&858993459),F=F+(F>>4)&252645135,F+=F>>8,F+=F>>16,F&127},g=function(F,ce){return ce>>>F&i},b=function(F){return 1<=ce;)we[Fe--]=we[Fe];return we[ce]=be,we}for(var Ne=0,Ie=0,He=new Array(Se+1);Ne>>=1;return Fe[ce]=be,X(F,Ie+1,Fe)},H=function(F,ce,be,we){for(var Se=new Array(ce-1),Fe=0,Ne=0,Ie=0,He=we.length;Ie1?q(F,this.hash,He):He[0]}var _t=we();return _t===c?this:(++Ne.value,Q(F,be,this.hash,this,Se,I(F,Se,Fe,_t)))},ie=function(F,ce,be,we,Se,Fe,Ne){var Ie=this.mask,He=this.children,_t=g(be,Se),Rn=b(_t),zt=v(Ie,Rn),kn=Ie&Rn,fn=kn?He[zt]:E,so=fn._modify(F,ce,be+r,we,Se,Fe,Ne);if(fn===so)return this;var rr=le(F,this),N=Ie,B=void 0;if(kn&&L(so)){if(N&=~Rn,!N)return E;if(He.length<=2&&ae(He[zt^1]))return He[zt^1];B=A(rr,zt,He)}else if(!kn&&!L(so)){if(He.length>=a)return K(F,_t,so,Ie,He);N|=Rn,B=_(rr,zt,so,He)}else B=y(rr,zt,so,He);return rr?(this.mask=N,this.children=B,this):$(F,N,B)},he=function(F,ce,be,we,Se,Fe,Ne){var Ie=this.size,He=this.children,_t=g(be,Se),Rn=He[_t],zt=(Rn||E)._modify(F,ce,be+r,we,Se,Fe,Ne);if(Rn===zt)return this;var kn=le(F,this),fn=void 0;if(L(Rn)&&!L(zt))++Ie,fn=y(kn,_t,zt,He);else if(!L(Rn)&&L(zt)){if(--Ie,Ie<=u)return H(F,Ie,_t,He);fn=y(kn,_t,E,He)}else fn=y(kn,_t,zt,He);return kn?(this.size=Ie,this.children=fn,this):X(F,Ie,fn)};E._modify=function(W,F,ce,be,we,Se,Fe){var Ne=be();return Ne===c?E:(++Fe.value,I(W,we,Se,Ne))};function z(W,F,ce,be,we){this._editable=W,this._edit=F,this._config=ce,this._root=be,this._size=we}z.prototype.setTree=function(W,F){return this._editable?(this._root=W,this._size=F,this):W===this._root?this:new z(this._editable,this._edit,this._config,W,F)};var ue=n.tryGetHash=function(W,F,ce,be){for(var we=be._root,Se=0,Fe=be._config.keyEq;;)switch(we.type){case w:return Fe(ce,we.key)?we.value:W;case S:{if(F===we.hash)for(var Ne=we.children,Ie=0,He=Ne.length;Ie{n.set(o,t(r,o))}),n}var rh=FM;function UM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function zM(e){return{nodeDeps:rh(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:rh(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Ig(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const u=a==null?t:yc(t,a);for(const c of u)i.has(c)||i.set(c,new Set),tn(i.get(c)).add(e);if(a){const c=yc(a,t);for(const f of c){if(!i.has(f))return;const p=tn(i.get(f));p.delete(e),p.size===0&&i.delete(f)}}}function jM(e,t,n,r){var o,i,a,u;const c=n.getState();r===c.currentTree.version||r===((o=c.nextTree)===null||o===void 0?void 0:o.version)||((i=c.previousTree)===null||i===void 0||i.version);const f=n.getGraph(r);if(Ig(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);Ig(e,t,h,f)}if(r===((u=c.previousTree)===null||u===void 0?void 0:u.version)||r===c.currentTree.version){var p;const h=(p=c.nextTree)===null||p===void 0?void 0:p.version;if(h!==void 0){const g=n.getGraph(h);Ig(e,t,g,f)}}}var ff={cloneGraph:zM,graph:UM,saveDepsToStore:jM};let VM=0;const WM=()=>VM++;let qM=0;const HM=()=>qM++;let GM=0;const KM=()=>GM++;var Uh={getNextTreeStateVersion:WM,getNextStoreID:HM,getNextComponentID:KM};const{persistentMap:tS}=IM,{graph:YM}=ff,{getNextTreeStateVersion:uA}=Uh;function cA(){const e=uA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:tS(),nonvalidatedAtoms:tS()}}function XM(){const e=cA();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,YM()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var fA={makeEmptyTreeState:cA,makeEmptyStoreState:XM,getNextTreeStateVersion:uA};class dA{}function ZM(){return new dA}var zh={RetentionZone:dA,retentionZone:ZM};function QM(e,t){const n=new Set(e);return n.add(t),n}function JM(e,t){const n=new Set(e);return n.delete(t),n}function eB(e,t,n){const r=new Map(e);return r.set(t,n),r}function tB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function nB(e,t){const n=new Map(e);return n.delete(t),n}function rB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var pA={setByAddingToSet:QM,setByDeletingFromSet:JM,mapBySettingInMap:eB,mapByUpdatingInMap:tB,mapByDeletingFromMap:nB,mapByDeletingMultipleFromMap:rB};function*oB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ny=oB;function iB(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var hA=iB;const{getNode:df,getNodeMaybe:sB,recoilValuesForKeys:nS}=Ur,{RetentionZone:rS}=zh,{setByAddingToSet:aB}=pA,lB=Object.freeze(new Set);class uB extends Error{}function cB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof rS)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!Ft("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function a(u){const c=i.nodesRetainedByZone.get(u);c==null||c.delete(t),c&&c.size===0&&i.nodesRetainedByZone.delete(u)}if(n instanceof rS)a(n);else if(Array.isArray(n))for(const u of n)a(u)}}function ry(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=df(n),a=cB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function fB(e,t,n){ry(e,e.getState().currentTree,t,n)}function dB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function pB(e,t,n){return ry(e,t,n,"get"),df(n).get(e,t)}function mA(e,t,n){return df(n).peek(e,t)}function hB(e,t,n){var r;const o=sB(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:aB(e.dirtyAtoms,t)}}function mB(e,t,n,r){const o=df(n);if(o.set==null)throw new uB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return ry(e,t,n,"set"),i(e,t,r)}function gB(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=df(n).nodeType;return hA({type:i},{loadable:()=>mA(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var a;return nS((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,u;return{nodes:nS(ny(gA(e,t,new Set([n])),c=>c!==n)),components:Fh((a=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&a!==void 0?a:[],([c])=>({name:c}))}}})}function gA(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var a;r.add(u);const c=(a=i.nodeToNodeSubscriptions.get(u))!==null&&a!==void 0?a:lB;for(const f of c)r.has(f)||o.push(f)}return r}var Ls={getNodeLoadable:pB,peekNodeLoadable:mA,setNodeValue:mB,initializeNode:fB,cleanUpNode:dB,setUnvalidatedAtomValue_DEPRECATED:hB,peekNodeInfo:gB,getDownstreamNodes:gA};let vA=null;function vB(e){vA=e}function yB(){var e;(e=vA)===null||e===void 0||e()}var yA={setInvalidateMemoizedSnapshot:vB,invalidateMemoizedSnapshot:yB};const{getDownstreamNodes:wB,getNodeLoadable:wA,setNodeValue:bB}=Ls,{getNextComponentID:xB}=Uh,{getNode:_B,getNodeMaybe:bA}=Ur,{DefaultValue:oy}=Ur,{reactMode:SB}=cf,{AbstractRecoilValue:EB,RecoilState:CB,RecoilValueReadOnly:AB,isRecoilValue:RB}=Wl,{invalidateMemoizedSnapshot:kB}=yA;function TB(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const a=wA(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function DB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof oy?n.delete(o):n.set(o,r)}),n}function PB(e,t,{key:n},r){if(typeof r=="function"){const o=wA(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw nt(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function OB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=PB(e,t,o,i),u=bB(e,t,o.key,a);for(const[c,f]of u.entries())l2(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;l2(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,a=bA(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else Z1(`Unknown action ${n.type}`)}function l2(e,t,n){n.state==="hasValue"&&n.contents instanceof oy?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function xA(e,t){e.replaceState(n=>{const r=_A(n);for(const o of t)OB(e,r,o);return SA(e,r),kB(),r})}function jh(e,t){if(wc.length){const n=wc[wc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else xA(e,[t])}const wc=[];function LB(){const e=new Map;return wc.push(e),()=>{for(const[t,n]of e)xA(t,n);wc.pop()}}function _A(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function SA(e,t){const n=wB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=bA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function EA(e,t,n){jh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function NB(e,t,n){if(n instanceof oy)return EA(e,t,n);jh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function MB(e,t){jh(e,{type:"markModified",recoilValue:t})}function BB(e,t,n){jh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function IB(e,{key:t},n,r=null){const o=xB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=SB();if(a.early&&(a.mode==="LEGACY"||a.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),c=u.nodeToComponentSubscriptions.get(t);c===void 0||!c.has(o)||(c.delete(o),c.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function $B(e,t){var n;const{currentTree:r}=e.getState(),o=_B(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var wi={RecoilValueReadOnly:AB,AbstractRecoilValue:EB,RecoilState:CB,getRecoilValueAsLoadable:TB,setRecoilValue:EA,setRecoilValueLoadable:NB,markRecoilValueModified:MB,setUnvalidatedRecoilValue:BB,subscribeToRecoilValue:IB,isRecoilValue:RB,applyAtomValueWrites:DB,batchStart:LB,writeLoadableToTreeState:l2,invalidateDownstreams:SA,copyTreeState:_A,refreshRecoilValue:$B};function FB(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var UB=FB;const{cleanUpNode:zB}=Ls,{deleteNodeConfigIfPossible:jB,getNode:CA}=Ur,{RetentionZone:AA}=zh,VB=12e4,RA=new Set;function kA(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof AA)for(const u of GB(n,a))o.add(u);else o.add(a);const i=WB(e,o);for(const a of i)HB(e,r,a)}function WB(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return u(t),i;function u(c){const f=new Set,p=qB(e,r,c,i,a);for(const v of p){var h;if(CA(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((h=n.retention.referenceCounts.get(v))!==null&&h!==void 0?h:0)>0){a.add(v);continue}if(TA(v).some(A=>n.retention.referenceCounts.get(A))){a.add(v);continue}const y=o.nodeToNodeSubscriptions.get(v);if(y&&UB(y,A=>a.has(A))){a.add(v);continue}i.add(v),f.add(v)}const g=new Set;for(const v of f)for(const y of(b=o.nodeDeps.get(v))!==null&&b!==void 0?b:RA){var b;i.has(y)||g.add(y)}g.size&&u(g)}}function qB(e,t,n,r,o){const i=e.getGraph(t.version),a=[],u=new Set;for(;n.size>0;)c(tn(n.values().next().value));return a;function c(f){if(r.has(f)||o.has(f)){n.delete(f);return}if(u.has(f))return;const p=i.nodeToNodeSubscriptions.get(f);if(p)for(const h of p)c(h);u.add(f),n.delete(f),a.push(f)}}function HB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;zB(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=TA(n);for(const c of o){var i;(i=r.retention.nodesRetainedByZone.get(c))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const c=a.nodeDeps.get(n);if(c!==void 0){a.nodeDeps.delete(n);for(const f of c){var u;(u=a.nodeToNodeSubscriptions.get(f))===null||u===void 0||u.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}jB(n)}function GB(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:RA}function TA(e){const t=CA(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof AA?[t]:t}function KB(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):kA(e,new Set([t]))}function YB(e,t,n){var r;if(!Ft("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?DA(e,t):o.set(t,i)}function DA(e,t){if(!Ft("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),KB(e,t)}function XB(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();kA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function ZB(e){return e===void 0?"recoilRoot":e}var Ta={SUSPENSE_TIMEOUT_MS:VB,updateRetainCount:YB,updateRetainCountToZero:DA,releaseScheduledRetainablesNow:XB,retainedByOptionWithDefault:ZB};const{unstable_batchedUpdates:QB}=xl;var JB={unstable_batchedUpdates:QB};const{unstable_batchedUpdates:eI}=JB;var tI={unstable_batchedUpdates:eI};const{batchStart:nI}=wi,{unstable_batchedUpdates:rI}=tI;let iy=rI||(e=>e());const oI=e=>{iy=e},iI=()=>iy,sI=e=>{iy(()=>{let t=()=>{};try{t=nI(),e()}finally{t()}})};var Vh={getBatcher:iI,setBatcher:oI,batchUpdates:sI};function*aI(e){for(const t of e)for(const n of t)yield n}var PA=aI;const OA=typeof Window>"u"||typeof window>"u",lI=e=>!OA&&(e===window||e instanceof Window),uI=typeof navigator<"u"&&navigator.product==="ReactNative";var Wh={isSSR:OA,isReactNative:uI,isWindow:lI};function cI(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function fI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function dI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var pI={memoizeWithArgsHash:cI,memoizeOneWithArgsHash:fI,memoizeOneWithArgsHashAndInvalidation:dI};const{batchUpdates:u2}=Vh,{initializeNode:hI,peekNodeInfo:mI}=Ls,{graph:gI}=ff,{getNextStoreID:vI}=Uh,{DEFAULT_VALUE:yI,recoilValues:oS,recoilValuesForKeys:iS}=Ur,{AbstractRecoilValue:wI,getRecoilValueAsLoadable:bI,setRecoilValue:sS,setUnvalidatedRecoilValue:xI}=wi,{updateRetainCount:hp}=Ta,{setInvalidateMemoizedSnapshot:_I}=yA,{getNextTreeStateVersion:SI,makeEmptyStoreState:EI}=fA,{isSSR:CI}=Wh,{memoizeOneWithArgsHashAndInvalidation:AI}=pI;class qh{constructor(t,n){Qe(this,"_store",void 0),Qe(this,"_refCount",1),Qe(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),bI(this._store,r))),Qe(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Qe(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const a=this._store.getState().currentTree;return iS(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?oS.values():r.isInitialized===!0?iS(PA([o,i])):ny(oS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),Qe(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),mI(this._store,this._store.getState().currentTree,r))),Qe(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new c2(this,u2);return r(o),o}),Qe(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new c2(this,u2);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:vI(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return tn(o.get(r));const i=gI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw nt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)hI(this._store,r,"get"),hp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){CI||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!Ft("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Ft("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function LA(e,t,n=!1){const r=e.getState(),o=n?SI():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fh(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function RI(e){const t=new qh(EI());return e!=null?t.map(e):t}const[aS,NA]=AI((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:tn(r.previousTree);return new qh(LA(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});_I(NA);function kI(e,t="latest"){const n=aS(e,t);return n.isRetained()?n:(NA(),aS(e,t))}class c2 extends qh{constructor(t,n){super(LA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Qe(this,"_batch",void 0),Qe(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{hp(i,r.key,1),sS(this.getStore_INTERNAL(),r,o)})}),Qe(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{hp(o,r.key,1),sS(this.getStore_INTERNAL(),r,yI)})}),Qe(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();u2(()=>{for(const[i,a]of r.entries())hp(o,i,1),xI(o,new wI(i),a)})}),this._batch=n}}var Hh={Snapshot:qh,MutableSnapshot:c2,freshSnapshot:RI,cloneSnapshot:kI},TI=Hh.Snapshot,DI=Hh.MutableSnapshot,PI=Hh.freshSnapshot,OI=Hh.cloneSnapshot,Gh=Object.freeze({__proto__:null,Snapshot:TI,MutableSnapshot:DI,freshSnapshot:PI,cloneSnapshot:OI});function LI(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var NI=LI;const{useRef:MI}=rt;function BI(e){const t=MI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var lS=BI;const{getNextTreeStateVersion:II,makeEmptyStoreState:MA}=fA,{cleanUpNode:$I,getDownstreamNodes:FI,initializeNode:UI,setNodeValue:zI,setUnvalidatedAtomValue_DEPRECATED:jI}=Ls,{graph:VI}=ff,{cloneGraph:WI}=ff,{getNextStoreID:BA}=Uh,{createMutableSource:$g,reactMode:IA}=cf,{applyAtomValueWrites:qI}=wi,{releaseScheduledRetainablesNow:$A}=Ta,{freshSnapshot:HI}=Gh,{useCallback:GI,useContext:FA,useEffect:f2,useMemo:KI,useRef:YI,useState:XI}=rt;function Uu(){throw nt("This component must be used inside a component.")}const UA=Object.freeze({storeID:BA(),getState:Uu,replaceState:Uu,getGraph:Uu,subscribeToTransactions:Uu,addTransactionMetadata:Uu});let d2=!1;function uS(e){if(d2)throw nt("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){Ft("recoil_memory_managament_2020")&&Ft("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&$A(e);const n=t.currentTree.version,r=II();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,WI(tn(t.graphsByVersion.get(n))))}}const zA=rt.createContext({current:UA}),Kh=()=>FA(zA),jA=rt.createContext(null);function ZI(){return FA(jA)}function sy(e,t,n){const r=FI(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[a,[u,c]]of i)c(n)}}function VA(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[a,u]of i)u(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!IA().early||t.suspendedComponentResolvers.size>0)&&(sy(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function QI(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,VA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Z1("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ft("recoil_memory_managament_2020")&&n==null&&$A(e)}finally{t.commitDepth--}}function JI({setNotifyBatcherOfChange:e}){const t=Kh(),[,n]=XI([]);return e(()=>n({})),f2(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),f2(()=>{PM.enqueueExecution("Batcher",()=>{QI(t.current)})}),null}function e$(e,t){const n=MA();return t({set:(r,o)=>{const i=n.currentTree,a=zI(e,i,r.key,o),u=new Set(a.keys()),c=i.nonvalidatedAtoms.clone();for(const f of u)c.delete(f);n.currentTree={...i,dirtyAtoms:NI(i.dirtyAtoms,u),atomValues:qI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=jI(n.currentTree,i,o)})}}),n}function t$(e){const t=HI(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let cS=0;function n$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=b=>{const v=o.current.graphsByVersion;if(v.has(b))return tn(v.get(b));const y=VI();return v.set(b,y),y},a=(b,v)=>{if(v==null){const{transactionSubscriptions:y}=h.current.getState(),A=cS++;return y.set(A,b),{release:()=>{y.delete(A)}}}else{const{nodeTransactionSubscriptions:y}=h.current.getState();y.has(v)||y.set(v,new Map);const A=cS++;return tn(y.get(v)).set(A,b),{release:()=>{const _=y.get(v);_&&(_.delete(A),_.size===0&&y.delete(v))}}}},u=b=>{uS(h.current);for(const v of Object.keys(b))tn(h.current.getState().nextTree).transactionMetadata[v]=b[v]},c=b=>{uS(h.current);const v=tn(o.current.nextTree);let y;try{d2=!0,y=b(v)}finally{d2=!1}y!==v&&(o.current.nextTree=y,IA().early&&sy(h.current,o.current,y),tn(f.current)())},f=YI(null),p=GI(b=>{f.current=b},[f]),h=lS(()=>n??{storeID:BA(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:u});n!=null&&(h.current=n),o=lS(()=>e!=null?e$(h.current,e):t!=null?t$(t):MA());const g=KI(()=>$g==null?void 0:$g(o,()=>o.current.currentTree.version),[o]);return f2(()=>{const b=h.current;for(const v of new Set(b.getState().knownAtoms))UI(b,v,"get");return()=>{for(const v of b.getState().knownAtoms)$I(b,v)}},[h]),rt.createElement(zA.Provider,{value:h},rt.createElement(jA.Provider,{value:g},rt.createElement(JI,{setNotifyBatcherOfChange:p}),r))}function r$(e){const{override:t,...n}=e,r=Kh();return t===!1&&r.current!==UA?e.children:rt.createElement(n$,n)}function o$(){return Kh().current.storeID}var qi={RecoilRoot:r$,useStoreRef:Kh,useRecoilMutableSource:ZI,useRecoilStoreID:o$,notifyComponents_FOR_TESTING:sy,sendEndOfBatchNotifications_FOR_TESTING:VA};function i$(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var WA=u$;const{useStoreRef:c$}=qi,{SUSPENSE_TIMEOUT_MS:f$}=Ta,{updateRetainCount:zu}=Ta,{RetentionZone:d$}=zh,{useEffect:p$,useRef:h$}=rt,{isSSR:fS}=Wh;function m$(e){if(Ft("recoil_memory_managament_2020"))return g$(e)}function g$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof d$?a:a.key),r=c$();p$(()=>{if(!Ft("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!fS)window.clearTimeout(o.current),o.current=null;else for(const u of n)zu(a,u,1);return()=>{for(const u of n)zu(a,u,-1)}},[r,...n]);const o=h$(),i=WA(n);if(!fS&&(i===void 0||!s$(i,n))){const a=r.current;for(const u of n)zu(a,u,1);if(i)for(const u of i)zu(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)zu(a,u,-1)},f$)}}var ay=m$;function v$(){return""}var pf=v$;const{batchUpdates:y$}=Vh,{DEFAULT_VALUE:qA}=Ur,{currentRendererSupportsUseSyncExternalStore:w$,reactMode:au,useMutableSource:b$,useSyncExternalStore:x$}=cf,{useRecoilMutableSource:_$,useStoreRef:bi}=qi,{AbstractRecoilValue:p2,getRecoilValueAsLoadable:hf,setRecoilValue:oh,setUnvalidatedRecoilValue:S$,subscribeToRecoilValue:ql}=wi,{useCallback:Lr,useEffect:Hl,useMemo:HA,useRef:bc,useState:ly}=rt,{setByAddingToSet:E$}=pA,{isSSR:C$}=Wh;function uy(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const i=n.current.getState().suspendedComponentResolvers;i.add(o),C$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:nt(`Invalid value of loadable atom "${t.key}"`)}function A$(){const e=pf(),t=bi(),[,n]=ly([]),r=bc(new Set);r.current=new Set;const o=bc(new Set),i=bc(new Map),a=Lr(c=>{const f=i.current.get(c);f&&(f.release(),i.current.delete(c))},[i]),u=Lr((c,f)=>{i.current.has(f)&&n([])},[]);return Hl(()=>{const c=t.current;yc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=ql(c,new p2(f),g=>u(g,f),e);i.current.set(f,p),c.getState().nextTree?c.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(c.getState(),f)}):u(c.getState(),f)}),yc(o.current,r.current).forEach(f=>{a(f)}),o.current=r.current}),Hl(()=>{const c=i.current;return yc(r.current,new Set(c.keys())).forEach(f=>{const p=ql(t.current,new p2(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),HA(()=>{function c(v){return y=>{oh(t.current,v,y)}}function f(v){return()=>oh(t.current,v,qA)}function p(v){var y;r.current.has(v.key)||(r.current=E$(r.current,v.key));const A=t.current.getState();return hf(t.current,v,au().early&&(y=A.nextTree)!==null&&y!==void 0?y:A.currentTree)}function h(v){const y=p(v);return uy(y,v,t)}function g(v){return[h(v),c(v)]}function b(v){return[p(v),c(v)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:g,getRecoilStateLoadable:b,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const R$={current:0};function k$(e){const t=bi(),n=pf(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return{loadable:hf(c,e,p),key:e.key}},[t,e]),o=Lr(u=>{let c;return()=>{var f,p;const h=u();return(f=c)!==null&&f!==void 0&&f.loadable.is(h.loadable)&&((p=c)===null||p===void 0?void 0:p.key)===h.key?c:(c=h,h)}},[]),i=HA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return ql(c,e,u,n).release},[t,e,n]);return x$(a,i,i).loadable}function T$(e){const t=bi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),g=au().early&&(f=h.nextTree)!==null&&f!==void 0?f:h.currentTree;return hf(p,e,g)},[t,e]),r=Lr(()=>n(),[n]),o=pf(),i=Lr((f,p)=>{const h=t.current;return ql(h,e,()=>{if(!Ft("recoil_suppress_rerender_in_callback"))return p();const b=n();c.current.is(b)||p(),c.current=b},o).release},[t,e,o,n]),a=_$();if(a==null)throw nt("Recoil hooks must be used in components contained within a component.");const u=b$(a,r,i),c=bc(u);return Hl(()=>{c.current=u}),u}function h2(e){const t=bi(),n=pf(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=au().early&&(c=p.nextTree)!==null&&c!==void 0?c:p.currentTree;return hf(f,e,h)},[t,e]),o=Lr(()=>({loadable:r(),key:e.key}),[r,e.key]),i=Lr(c=>{const f=o();return c.loadable.is(f.loadable)&&c.key===f.key?c:f},[o]);Hl(()=>{const c=ql(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=ly(o);return a.key!==e.key?o().loadable:a.loadable}function D$(e){const t=bi(),[,n]=ly([]),r=pf(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return hf(c,e,p)},[t,e]),i=o(),a=bc(i);return Hl(()=>{a.current=i}),Hl(()=>{const u=t.current,c=u.getState(),f=ql(u,e,h=>{var g;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const b=o();(g=a.current)!==null&&g!==void 0&&g.is(b)||n(b),a.current=b},r);if(c.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var p;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const h=o();(p=a.current)!==null&&p!==void 0&&p.is(h)||n(h),a.current=h}return f.release},[r,o,e,t]),i}function cy(e){return Ft("recoil_memory_managament_2020")&&ay(e),{TRANSITION_SUPPORT:h2,SYNC_EXTERNAL_STORE:w$()?k$:h2,MUTABLE_SOURCE:T$,LEGACY:D$}[au().mode](e)}function GA(e){const t=bi(),n=cy(e);return uy(n,e,t)}function Yh(e){const t=bi();return Lr(n=>{oh(t.current,e,n)},[t,e])}function P$(e){const t=bi();return Lr(()=>{oh(t.current,e,qA)},[t,e])}function O$(e){return[GA(e),Yh(e)]}function L$(e){return[cy(e),Yh(e)]}function N$(){const e=bi();return(t,n={})=>{y$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>S$(e.current,new p2(o),r))})}}function KA(e){return Ft("recoil_memory_managament_2020")&&ay(e),h2(e)}function YA(e){const t=bi(),n=KA(e);return uy(n,e,t)}function M$(e){return[YA(e),Yh(e)]}var B$={recoilComponentGetRecoilValueCount_FOR_TESTING:R$,useRecoilInterface:A$,useRecoilState:O$,useRecoilStateLoadable:L$,useRecoilValue:GA,useRecoilValueLoadable:cy,useResetRecoilState:P$,useSetRecoilState:Yh,useSetUnvalidatedAtomValues:N$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:KA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:YA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:M$};function I$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var $$=I$;function F$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var U$=F$;function z$(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function hS(e){const t=e.atomValues.toMap(),n=rh($$(t,(r,o)=>{const a=XA(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return j$(e.nonvalidatedAtoms.toMap(),n)}function X$(e){Zh(Xh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=hS(r),i=hS(n),a=rh(q$,c=>{var f,p,h,g;return{persistence_UNSTABLE:{type:(f=(p=c.persistence_UNSTABLE)===null||p===void 0?void 0:p.type)!==null&&f!==void 0?f:"none",backButton:(h=(g=c.persistence_UNSTABLE)===null||g===void 0?void 0:g.backButton)!==null&&h!==void 0?h:!1}}}),u=U$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Z$(e){Zh(Xh(t=>{const n=ih(t,"latest"),r=ih(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Q$(){const e=fy(),[t,n]=Y$(()=>ih(e.current)),r=WA(t),o=dS(),i=dS();if(Zh(Xh(u=>n(ih(u)),[])),ZA(()=>{const u=t.retain();if(o.current&&!pS){var c;window.clearTimeout(o.current),o.current=null,(c=i.current)===null||c===void 0||c.call(i),i.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!pS){if(o.current){var a;window.clearTimeout(o.current),o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=i.current)===null||u===void 0||u.call(i),i.current=null},K$)}return t}function QA(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;V$(()=>{const a=new Set;for(const f of[o.atomValues.keys(),i.atomValues.keys()])for(const p of f){var u,c;((u=o.atomValues.get(p))===null||u===void 0?void 0:u.contents)!==((c=i.atomValues.get(p))===null||c===void 0?void 0:c.contents)&&XA(p).shouldRestoreFromSnapshots&&a.add(p)}a.forEach(f=>{G$(e,new H$(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):W$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function J$(){const e=fy();return Xh(t=>QA(e.current,t),[e])}var JA={useRecoilSnapshot:Q$,gotoSnapshot:QA,useGotoRecoilSnapshot:J$,useRecoilTransactionObserver:Z$,useTransactionObservation_DEPRECATED:X$,useTransactionSubscription_DEPRECATED:Zh};const{peekNodeInfo:eF}=Ls,{useStoreRef:tF}=qi;function nF(){const e=tF();return({key:t})=>eF(e.current,e.current.getState().currentTree,t)}var rF=nF;const{reactMode:oF}=cf,{RecoilRoot:iF,useStoreRef:sF}=qi,{useMemo:aF}=rt;function lF(){oF().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=sF().current;return aF(()=>{function t({children:n}){return rt.createElement(iF,{store_INTERNAL:e},n)}return t},[e])}var uF=lF;const{loadableWithValue:cF}=uf,{initializeNode:fF}=Ls,{DEFAULT_VALUE:dF,getNode:pF}=Ur,{copyTreeState:hF,getRecoilValueAsLoadable:mF,invalidateDownstreams:gF,writeLoadableToTreeState:vF}=wi;function mS(e){return pF(e.key).nodeType==="atom"}class yF{constructor(t,n){Qe(this,"_store",void 0),Qe(this,"_treeState",void 0),Qe(this,"_changes",void 0),Qe(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!mS(r))throw nt("Reading selectors within atomicUpdate is not supported");const o=mF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:nt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Qe(this,"set",(r,o)=>{if(!mS(r))throw nt("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else fF(this._store,r.key,"set"),this._changes.set(r.key,o)}),Qe(this,"reset",r=>{this.set(r,dF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=hF(this._treeState);for(const[n,r]of this._changes)vF(t,n,cF(r));return gF(this._store,t),t}}function wF(e){return t=>{e.replaceState(n=>{const r=new yF(e,n);return t(r),r.newTreeState_INTERNAL()})}}var bF={atomicUpdater:wF},xF=bF.atomicUpdater,eR=Object.freeze({__proto__:null,atomicUpdater:xF});function _F(e,t){if(!e)throw new Error(t)}var SF=_F,oc=SF;const{atomicUpdater:EF}=eR,{batchUpdates:CF}=Vh,{DEFAULT_VALUE:AF}=Ur,{useStoreRef:RF}=qi,{refreshRecoilValue:kF,setRecoilValue:gS}=wi,{cloneSnapshot:TF}=Gh,{gotoSnapshot:DF}=JA,{useCallback:PF}=rt;class tR{}const OF=new tR;function nR(e,t,n,r){let o=OF,i;if(CF(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw nt(u);const c=hA({...r??{},set:(p,h)=>gS(e,p,h),reset:p=>gS(e,p,AF),refresh:p=>kF(e,p),gotoSnapshot:p=>DF(e,p),transact_UNSTABLE:p=>EF(e)(p)},{snapshot:()=>{const p=TF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw nt(u);o=f(...n)}),o instanceof tR&&oc(!1),Kt(o))o=o.finally(()=>{var u;(u=i)===null||u===void 0||u()});else{var a;(a=i)===null||a===void 0||a()}return o}function LF(e,t){const n=RF();return PF((...r)=>nR(n.current,e,r),t!=null?[...t,n]:void 0)}var rR={recoilCallback:nR,useRecoilCallback:LF};const{useStoreRef:NF}=qi,{refreshRecoilValue:MF}=wi,{useCallback:BF}=rt;function IF(e){const t=NF();return BF(()=>{const n=t.current;MF(n,e)},[e,t])}var $F=IF;const{atomicUpdater:FF}=eR,{useStoreRef:UF}=qi,{useMemo:zF}=rt;function jF(e,t){const n=UF();return zF(()=>(...r)=>{FF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var VF=jF;class WF{constructor(t){Qe(this,"value",void 0),this.value=t}}var qF={WrappedValue:WF},HF=qF.WrappedValue,oR=Object.freeze({__proto__:null,WrappedValue:HF});const{isFastRefreshEnabled:GF}=cf;class vS extends Error{}class KF{constructor(t){var n,r,o;Qe(this,"_name",void 0),Qe(this,"_numLeafs",void 0),Qe(this,"_root",void 0),Qe(this,"_onHit",void 0),Qe(this,"_onSet",void 0),Qe(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,a,u,c;let f,p;for(const[A,_]of t){var h,g,b;const w=this._root;if((w==null?void 0:w.type)==="leaf")throw this.invalidCacheError();const S=f;if(f=S?S.branches.get(p):w,f=(h=f)!==null&&h!==void 0?h:{type:"branch",nodeKey:A,parent:S,branches:new Map,branchKey:p},f.type!=="branch"||f.nodeKey!==A)throw this.invalidCacheError();S==null||S.branches.set(p,f),r==null||(g=r.onNodeVisit)===null||g===void 0||g.call(r,f),p=this._mapNodeValue(_),this._root=(b=this._root)!==null&&b!==void 0?b:f}const v=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==p))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,y),this._root=(u=this._root)!==null&&u!==void 0?u:y,this._numLeafs++,this._onSet(y),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,y)};try{o()}catch(i){if(i instanceof vS)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=GF()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw Z1(t+(this._name!=null?` - ${this._name}`:"")),new vS}}var YF={TreeCache:KF},XF=YF.TreeCache,iR=Object.freeze({__proto__:null,TreeCache:XF});class ZF{constructor(t){var n;Qe(this,"_maxSize",void 0),Qe(this,"_size",void 0),Qe(this,"_head",void 0),Qe(this,"_tail",void 0),Qe(this,"_map",void 0),Qe(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=tn(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var QF={LRUCache:ZF},JF=QF.LRUCache,sR=Object.freeze({__proto__:null,LRUCache:JF});const{LRUCache:eU}=sR,{TreeCache:tU}=iR;function nU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new eU({maxSize:t}),o=new tU({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const a=r.tail();r.set(i,!0),a&&o.size()>t&&o.delete(a.key)}});return o}var yS=nU;function Wo(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw nt("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(Kt(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>Wo(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return Wo(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,a]of e)o[typeof i=="string"?i:Wo(i,t)]=a;return Wo(o,t,n)}return e instanceof Set?Wo(Array.from(e).sort((o,i)=>Wo(o,t).localeCompare(Wo(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Wo(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${Wo(o,t)}:${Wo(e[o],t,o)}`).join(",")}}`}function rU(e,t={allowFunctions:!1}){return Wo(e,t)}var Qh=rU;const{TreeCache:oU}=iR,Nd={equality:"reference",eviction:"keep-all",maxSize:1/0};function iU({equality:e=Nd.equality,eviction:t=Nd.eviction,maxSize:n=Nd.maxSize}=Nd,r){const o=sU(e);return aU(t,n,o,r)}function sU(e){switch(e){case"reference":return t=>t;case"value":return t=>Qh(t)}throw nt(`Unrecognized equality policy ${e}`)}function aU(e,t,n,r){switch(e){case"keep-all":return new oU({name:r,mapNodeValue:n});case"lru":return yS({name:r,maxSize:tn(t),mapNodeValue:n});case"most-recent":return yS({name:r,maxSize:1,mapNodeValue:n})}throw nt(`Unrecognized eviction policy ${e}`)}var lU=iU;function uU(e){return()=>null}var cU={startPerfBlock:uU};const{isLoadable:fU,loadableWithError:Md,loadableWithPromise:dU,loadableWithValue:Fg}=uf,{WrappedValue:aR}=oR,{getNodeLoadable:Bd,peekNodeLoadable:pU,setNodeValue:hU}=Ls,{saveDepsToStore:mU}=ff,{DEFAULT_VALUE:gU,getConfigDeletionHandler:vU,getNode:yU,registerNode:wS}=Ur,{isRecoilValue:wU}=Wl,{markRecoilValueModified:bS}=wi,{retainedByOptionWithDefault:bU}=Ta,{recoilCallback:xU}=rR,{startPerfBlock:_U}=cU;class lR{}const ju=new lR,Vu=[],Id=new Map,SU=(()=>{let e=0;return()=>e++})();function uR(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,a=new Set,u=lU(o??{equality:"reference",eviction:"keep-all"},n),c=bU(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!Ft("recoil_memory_managament_2020")||p>0}function g(z){return z.getState().knownSelectors.add(n),p++,()=>{p--}}function b(){return vU(n)!==void 0&&!h()}function v(z,ue,ne,ye,de){re(ue,ye,de),y(z,ne)}function y(z,ue){H(z,ue)&&K(z),_(ue,!0)}function A(z,ue){H(z,ue)&&(tn($(z)).stateVersions.clear(),_(ue,!1))}function _(z,ue){const ne=Id.get(z);if(ne!=null){for(const ye of ne)bS(ye,tn(t));ue&&Id.delete(z)}}function w(z,ue){let ne=Id.get(ue);ne==null&&Id.set(ue,ne=new Set),ne.add(z)}function S(z,ue,ne,ye,de,Me){return ue.then(Ae=>{if(!h())throw K(z),ju;const ge=Fg(Ae);return v(z,ne,de,ge,ye),Ae}).catch(Ae=>{if(!h())throw K(z),ju;if(Kt(Ae))return k(z,Ae,ne,ye,de,Me);const ge=Md(Ae);throw v(z,ne,de,ge,ye),Ae})}function k(z,ue,ne,ye,de,Me){return ue.then(Ae=>{if(!h())throw K(z),ju;Me.loadingDepKey!=null&&Me.loadingDepPromise===ue?ne.atomValues.set(Me.loadingDepKey,Fg(Ae)):z.getState().knownSelectors.forEach(Ce=>{ne.atomValues.delete(Ce)});const ge=L(z,ne);if(ge&&ge.state!=="loading"){if((H(z,de)||$(z)==null)&&y(z,de),ge.state==="hasValue")return ge.contents;throw ge.contents}if(!H(z,de)){const Ce=q(z,ne);if(Ce!=null)return Ce.loadingLoadable.contents}const[Je,Le]=E(z,ne,de);if(Je.state!=="loading"&&v(z,ne,de,Je,Le),Je.state==="hasError")throw Je.contents;return Je.contents}).catch(Ae=>{if(Ae instanceof lR)throw ju;if(!h())throw K(z),ju;const ge=Md(Ae);throw v(z,ne,de,ge,ye),Ae})}function T(z,ue,ne,ye){var de,Me,Ae,ge;if(H(z,ye)||ue.version===((de=z.getState())===null||de===void 0||(Me=de.currentTree)===null||Me===void 0?void 0:Me.version)||ue.version===((Ae=z.getState())===null||Ae===void 0||(ge=Ae.nextTree)===null||ge===void 0?void 0:ge.version)){var Je,Le,Ce;mU(n,ne,z,(Je=(Le=z.getState())===null||Le===void 0||(Ce=Le.nextTree)===null||Ce===void 0?void 0:Ce.version)!==null&&Je!==void 0?Je:z.getState().currentTree.version)}for(const Ge of ne)a.add(Ge)}function E(z,ue,ne){const ye=_U(n);let de=!0,Me=!0;const Ae=()=>{ye(),Me=!1};let ge,Je=!1,Le;const Ce={loadingDepKey:null,loadingDepPromise:null},Ge=new Map;function st({key:xt}){const mt=Bd(z,ue,xt);switch(Ge.set(xt,mt),de||(T(z,ue,new Set(Ge.keys()),ne),A(z,ne)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw Ce.loadingDepKey=xt,Ce.loadingDepPromise=mt.contents,mt.contents}throw nt("Invalid Loadable state")}const ht=xt=>(...mt)=>{if(Me)throw nt("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&oc(!1),xU(z,xt,mt,{node:t})};try{ge=r({get:st,getCallback:ht}),ge=wU(ge)?st(ge):ge,fU(ge)&&(ge.state==="hasError"&&(Je=!0),ge=ge.contents),Kt(ge)?ge=S(z,ge,ue,Ge,ne,Ce).finally(Ae):Ae(),ge=ge instanceof aR?ge.value:ge}catch(xt){ge=xt,Kt(ge)?ge=k(z,ge,ue,Ge,ne,Ce).finally(Ae):(Je=!0,Ae())}return Je?Le=Md(ge):Kt(ge)?Le=dU(ge):Le=Fg(ge),de=!1,ae(z,ne,Ge),T(z,ue,new Set(Ge.keys()),ne),[Le,Ge]}function L(z,ue){let ne=ue.atomValues.get(n);if(ne!=null)return ne;const ye=new Set;try{ne=u.get(Me=>(typeof Me!="string"&&oc(!1),Bd(z,ue,Me).contents),{onNodeVisit:Me=>{Me.type==="branch"&&Me.nodeKey!==n&&ye.add(Me.nodeKey)}})}catch(Me){throw nt(`Problem with cache lookup for selector "${n}": ${Me.message}`)}if(ne){var de;ue.atomValues.set(n,ne),T(z,ue,ye,(de=$(z))===null||de===void 0?void 0:de.executionID)}return ne}function I(z,ue){const ne=L(z,ue);if(ne!=null)return K(z),ne;const ye=q(z,ue);if(ye!=null){var de;return((de=ye.loadingLoadable)===null||de===void 0?void 0:de.state)==="loading"&&w(z,ye.executionID),ye.loadingLoadable}const Me=SU(),[Ae,ge]=E(z,ue,Me);return Ae.state==="loading"?(X(z,Me,Ae,ge,ue),w(z,Me)):(K(z),re(ue,Ae,ge)),Ae}function q(z,ue){const ne=PA([f.has(z)?[tn(f.get(z))]:[],Fh(ny(f,([de])=>de!==z),([,de])=>de)]);function ye(de){for(const[Me,Ae]of de)if(!Bd(z,ue,Me).is(Ae))return!0;return!1}for(const de of ne){if(de.stateVersions.get(ue.version)||!ye(de.depValuesDiscoveredSoFarDuringAsyncWork))return de.stateVersions.set(ue.version,!0),de;de.stateVersions.set(ue.version,!1)}}function $(z){return f.get(z)}function X(z,ue,ne,ye,de){f.set(z,{depValuesDiscoveredSoFarDuringAsyncWork:ye,executionID:ue,loadingLoadable:ne,stateVersions:new Map([[de.version,!0]])})}function ae(z,ue,ne){if(H(z,ue)){const ye=$(z);ye!=null&&(ye.depValuesDiscoveredSoFarDuringAsyncWork=ne)}}function K(z){f.delete(z)}function H(z,ue){var ne;return ue===((ne=$(z))===null||ne===void 0?void 0:ne.executionID)}function Q(z){return Array.from(z.entries()).map(([ue,ne])=>[ue,ne.contents])}function re(z,ue,ne){z.atomValues.set(n,ue);try{u.set(Q(ne),ue)}catch(ye){throw nt(`Problem with setting cache for selector "${n}": ${ye.message}`)}}function le(z){if(Vu.includes(n)){const ue=`Recoil selector has circular dependencies: ${Vu.slice(Vu.indexOf(n)).join(" → ")}`;return Md(nt(ue))}Vu.push(n);try{return z()}finally{Vu.pop()}}function J(z,ue){const ne=ue.atomValues.get(n);return ne??u.get(ye=>{var de;return typeof ye!="string"&&oc(!1),(de=pU(z,ue,ye))===null||de===void 0?void 0:de.contents})}function pe(z,ue){return le(()=>I(z,ue))}function ie(z){z.atomValues.delete(n)}function he(z,ue){t==null&&oc(!1);for(const ye of a){var ne;const de=yU(ye);(ne=de.clearCache)===null||ne===void 0||ne.call(de,z,ue)}a.clear(),ie(ue),u.clear(),bS(z,t)}return i!=null?t=wS({key:n,nodeType:"selector",peek:J,get:pe,set:(ue,ne,ye)=>{let de=!1;const Me=new Map;function Ae({key:Ce}){if(de)throw nt("Recoil: Async selector sets are not currently supported.");const Ge=Bd(ue,ne,Ce);if(Ge.state==="hasValue")return Ge.contents;if(Ge.state==="loading"){const st=`Getting value of asynchronous atom or selector "${Ce}" in a pending state while setting selector "${n}" is not yet supported.`;throw nt(st)}else throw Ge.contents}function ge(Ce,Ge){if(de)throw nt("Recoil: Async selector sets are not currently supported.");const st=typeof Ge=="function"?Ge(Ae(Ce)):Ge;hU(ue,ne,Ce.key,st).forEach((xt,mt)=>Me.set(mt,xt))}function Je(Ce){ge(Ce,gU)}const Le=i({set:ge,get:Ae,reset:Je},ye);if(Le!==void 0)throw Kt(Le)?nt("Recoil: Async selector sets are not currently supported."):nt("Recoil: selector set should be a void function.");return de=!0,Me},init:g,invalidate:ie,clearCache:he,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=wS({key:n,nodeType:"selector",peek:J,get:pe,init:g,invalidate:ie,clearCache:he,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}uR.value=e=>new aR(e);var Gl=uR;const{isLoadable:EU,loadableWithError:Ug,loadableWithPromise:zg,loadableWithValue:Ya}=uf,{WrappedValue:cR}=oR,{peekNodeInfo:CU}=Ls,{DEFAULT_VALUE:ta,DefaultValue:cs,getConfigDeletionHandler:fR,registerNode:AU,setConfigDeletionHandler:RU}=Ur,{isRecoilValue:kU}=Wl,{getRecoilValueAsLoadable:TU,markRecoilValueModified:DU,setRecoilValue:xS,setRecoilValueLoadable:PU}=wi,{retainedByOptionWithDefault:OU}=Ta,Wu=e=>e instanceof cR?e.value:e;function LU(e){const{key:t,persistence_UNSTABLE:n}=e,r=OU(e.retainedBy_UNSTABLE);let o=0;function i(w){return zg(w.then(S=>(a=Ya(S),S)).catch(S=>{throw a=Ug(S),S}))}let a=Kt(e.default)?i(e.default):EU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Ya(Wu(e.default));a.contents;let u;const c=new Map;function f(w){return w}function p(w,S){const k=S.then(T=>{var E,L;return((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&xS(w,_,T),T}).catch(T=>{var E,L;throw((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&PU(w,_,Ug(T)),T});return k}function h(w,S,k){var T;o++;const E=()=>{var $;o--,($=c.get(w))===null||$===void 0||$.forEach(X=>X()),c.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const $=()=>{var X;((X=w.getState().nextTree)!==null&&X!==void 0?X:w.getState().currentTree).atomValues.has(t)||DU(w,_)};a.contents.finally($)}const L=(T=e.effects)!==null&&T!==void 0?T:e.effects_UNSTABLE;if(L!=null){let $=function(ie){if(H&&ie.key===t){const he=K;return he instanceof cs?g(w,S):Kt(he)?zg(he.then(z=>z instanceof cs?a.toPromise():z)):Ya(he)}return TU(w,ie)},X=function(ie){return $(ie).toPromise()},ae=function(ie){var he;const z=CU(w,(he=w.getState().nextTree)!==null&&he!==void 0?he:w.getState().currentTree,ie.key);return H&&ie.key===t&&!(K instanceof cs)?{...z,isSet:!0,loadable:$(ie)}:z},K=ta,H=!0,Q=!1,re=null;const le=ie=>he=>{if(H){const z=$(_),ue=z.state==="hasValue"?z.contents:ta;K=typeof he=="function"?he(ue):he,Kt(K)&&(K=K.then(ne=>(re={effect:ie,value:ne},ne)))}else{if(Kt(he))throw nt("Setting atoms to async values is not implemented.");typeof he!="function"&&(re={effect:ie,value:Wu(he)}),xS(w,_,typeof he=="function"?z=>{const ue=Wu(he(z));return re={effect:ie,value:ue},ue}:Wu(he))}},J=ie=>()=>le(ie)(ta),pe=ie=>he=>{var z;const{release:ue}=w.subscribeToTransactions(ne=>{var ye;let{currentTree:de,previousTree:Me}=ne.getState();Me||(Me=de);const Ae=(ye=de.atomValues.get(t))!==null&&ye!==void 0?ye:a;if(Ae.state==="hasValue"){var ge,Je,Le,Ce;const Ge=Ae.contents,st=(ge=Me.atomValues.get(t))!==null&&ge!==void 0?ge:a,ht=st.state==="hasValue"?st.contents:ta;((Je=re)===null||Je===void 0?void 0:Je.effect)!==ie||((Le=re)===null||Le===void 0?void 0:Le.value)!==Ge?he(Ge,ht,!de.atomValues.has(t)):((Ce=re)===null||Ce===void 0?void 0:Ce.effect)===ie&&(re=null)}},t);c.set(w,[...(z=c.get(w))!==null&&z!==void 0?z:[],ue])};for(const ie of L)try{const he=ie({node:_,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:k,setSelf:le(ie),resetSelf:J(ie),onSet:pe(ie),getPromise:X,getLoadable:$,getInfo_UNSTABLE:ae});if(he!=null){var I;c.set(w,[...(I=c.get(w))!==null&&I!==void 0?I:[],he])}}catch(he){K=he,Q=!0}if(H=!1,!(K instanceof cs)){var q;const ie=Q?Ug(K):Kt(K)?zg(p(w,K)):Ya(Wu(K));ie.contents,S.atomValues.set(t,ie),(q=w.getState().nextTree)===null||q===void 0||q.atomValues.set(t,ie)}}return E}function g(w,S){var k,T;return(k=(T=S.atomValues.get(t))!==null&&T!==void 0?T:u)!==null&&k!==void 0?k:a}function b(w,S){if(S.atomValues.has(t))return tn(S.atomValues.get(t));if(S.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return a;const k=S.nonvalidatedAtoms.get(t),T=n.validator(k,ta);return u=T instanceof cs?a:Ya(T),u}else return a}function v(){u=void 0}function y(w,S,k){if(S.atomValues.has(t)){const T=tn(S.atomValues.get(t));if(T.state==="hasValue"&&k===T.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof cs)return new Map;return u=void 0,new Map().set(t,Ya(k))}function A(){return fR(t)!==void 0&&o<=0}const _=AU({key:t,nodeType:"atom",peek:g,get:b,set:y,init:h,invalidate:v,shouldDeleteConfigOnRelease:A,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return _}function dy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return kU(n)?NU({...t,default:n}):LU({...t,default:n})}function NU(e){const t=dy({...e,default:ta,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof cs?r:tn(e.persistence_UNSTABLE).validator(r,ta)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Gl({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof cs?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return RU(n.key,fR(e.key)),n}dy.value=e=>new cR(e);var dR=dy;class MU{constructor(t){var n;Qe(this,"_map",void 0),Qe(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var BU={MapCache:MU},IU=BU.MapCache,$U=Object.freeze({__proto__:null,MapCache:IU});const{LRUCache:_S}=sR,{MapCache:FU}=$U,$d={equality:"reference",eviction:"none",maxSize:1/0};function UU({equality:e=$d.equality,eviction:t=$d.eviction,maxSize:n=$d.maxSize}=$d){const r=zU(e);return jU(t,n,r)}function zU(e){switch(e){case"reference":return t=>t;case"value":return t=>Qh(t)}throw nt(`Unrecognized equality policy ${e}`)}function jU(e,t,n){switch(e){case"keep-all":return new FU({mapKey:n});case"lru":return new _S({mapKey:n,maxSize:tn(t)});case"most-recent":return new _S({mapKey:n,maxSize:1})}throw nt(`Unrecognized eviction policy ${e}`)}var pR=UU;const{setConfigDeletionHandler:VU}=Ur;function WU(e){var t,n;const r=pR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,a;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:c,...f}=e,p="default"in e?e.default:new Promise(()=>{}),h=dR({...f,key:`${e.key}__${(i=Qh(o))!==null&&i!==void 0?i:"void"}`,default:typeof p=="function"?p(o):p,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(o,h),VU(h.key,()=>{r.delete(o)}),h}}var qU=WU;const{setConfigDeletionHandler:HU}=Ur;let GU=0;function KU(e){var t,n;const r=pR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a;try{a=r.get(o)}catch(g){throw nt(`Problem with cache lookup for selector ${e.key}: ${g.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=Qh(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${GU++}`,c=g=>e.get(o)(g),f=e.cachePolicy_UNSTABLE,p=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let h;if(e.set!=null){const g=e.set;h=Gl({key:u,get:c,set:(v,y)=>g(o)(v,y),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Gl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),HU(h.key,()=>{r.delete(o)}),h}}var Ns=KU;const YU=Ns({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function XU(e){return YU(e)}var ZU=XU;const QU=Ns({key:"__error",get:e=>()=>{throw nt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function JU(e){return QU(e)}var ez=JU;function tz(e){return e}var nz=tz;const{loadableWithError:hR,loadableWithPromise:mR,loadableWithValue:gR}=uf;function Jh(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function rz(e){return e!=null&&!Kt(e)}function e0(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function m2(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function Ol(e,t,n){const r=n.map((o,i)=>o==null?gR(t[i]):Kt(o)?mR(o):hR(o));return m2(e,r)}function oz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const iz=Ns({key:"__waitForNone",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);return Ol(e,r,o)},dangerouslyAllowMutability:!0}),sz=Ns({key:"__waitForAny",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);return o.some(i=>!Kt(i))?Ol(e,r,o):new Promise(i=>{for(const[a,u]of o.entries())Kt(u)&&u.then(c=>{r[a]=c,o[a]=void 0,i(Ol(e,r,o))}).catch(c=>{o[a]=c,i(Ol(e,r,o))})})},dangerouslyAllowMutability:!0}),az=Ns({key:"__waitForAll",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);if(o.every(a=>a==null))return m2(e,r);const i=o.find(rz);if(i!=null)throw i;return Promise.all(o).then(a=>m2(e,oz(r,a)))},dangerouslyAllowMutability:!0}),lz=Ns({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=e0(e),[r,o]=Jh(t,n);return o.every(i=>!Kt(i))?Ol(e,r,o):Promise.all(o.map((i,a)=>Kt(i)?i.then(u=>{r[a]=u,o[a]=void 0}).catch(u=>{r[a]=void 0,o[a]=u}):null)).then(()=>Ol(e,r,o))},dangerouslyAllowMutability:!0}),uz=Ns({key:"__noWait",get:e=>({get:t})=>{try{return Gl.value(gR(t(e)))}catch(n){return Gl.value(Kt(n)?mR(n):hR(n))}},dangerouslyAllowMutability:!0});var cz={waitForNone:iz,waitForAny:sz,waitForAll:az,waitForAllSettled:lz,noWait:uz};const{RecoilLoadable:fz}=uf,{DefaultValue:dz}=Ur,{RecoilRoot:pz,useRecoilStoreID:hz}=qi,{isRecoilValue:mz}=Wl,{retentionZone:gz}=zh,{freshSnapshot:vz}=Gh,{useRecoilState:yz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:wz,useRecoilStateLoadable:bz,useRecoilValue:xz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:_z,useRecoilValueLoadable:Sz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ez,useResetRecoilState:Cz,useSetRecoilState:Az}=B$,{useGotoRecoilSnapshot:Rz,useRecoilSnapshot:kz,useRecoilTransactionObserver:Tz}=JA,{useRecoilCallback:Dz}=rR,{noWait:Pz,waitForAll:Oz,waitForAllSettled:Lz,waitForAny:Nz,waitForNone:Mz}=cz;var Ms={DefaultValue:dz,isRecoilValue:mz,RecoilLoadable:fz,RecoilEnv:su,RecoilRoot:pz,useRecoilStoreID:hz,useRecoilBridgeAcrossReactRoots_UNSTABLE:uF,atom:dR,selector:Gl,atomFamily:qU,selectorFamily:Ns,constSelector:ZU,errorSelector:ez,readOnlySelector:nz,noWait:Pz,waitForNone:Mz,waitForAny:Nz,waitForAll:Oz,waitForAllSettled:Lz,useRecoilValue:xz,useRecoilValueLoadable:Sz,useRecoilState:yz,useRecoilStateLoadable:bz,useSetRecoilState:Az,useResetRecoilState:Cz,useGetRecoilValueInfo_UNSTABLE:rF,useRecoilRefresher_UNSTABLE:$F,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ez,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:_z,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:wz,useRecoilCallback:Dz,useRecoilTransaction_UNSTABLE:VF,useGotoRecoilSnapshot:Rz,useRecoilSnapshot:kz,useRecoilTransactionObserver_UNSTABLE:Tz,snapshot_UNSTABLE:vz,useRetain:ay,retentionZone:gz},Bz=Ms.DefaultValue,Iz=Ms.RecoilRoot,_n=Ms.atom,vR=Ms.selector,Dn=Ms.useRecoilValue,SS=Ms.useRecoilState,bn=Ms.useSetRecoilState,mp=Ms.useResetRecoilState,sh={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */sh.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,b=4,v=1,y=2,A=1,_=2,w=4,S=8,k=16,T=32,E=64,L=128,I=256,q=512,$=30,X="...",ae=800,K=16,H=1,Q=2,re=3,le=1/0,J=9007199254740991,pe=17976931348623157e292,ie=NaN,he=4294967295,z=he-1,ue=he>>>1,ne=[["ary",L],["bind",A],["bindKey",_],["curry",S],["curryRight",k],["flip",q],["partial",T],["partialRight",E],["rearg",I]],ye="[object Arguments]",de="[object Array]",Me="[object AsyncFunction]",Ae="[object Boolean]",ge="[object Date]",Je="[object DOMException]",Le="[object Error]",Ce="[object Function]",Ge="[object GeneratorFunction]",st="[object Map]",ht="[object Number]",xt="[object Null]",mt="[object Object]",Mn="[object Promise]",dr="[object Proxy]",Et="[object RegExp]",at="[object Set]",un="[object String]",cn="[object Symbol]",Ut="[object Undefined]",Ct="[object WeakMap]",Cn="[object WeakSet]",nn="[object ArrayBuffer]",We="[object DataView]",Pe="[object Float32Array]",Xt="[object Float64Array]",nr="[object Int8Array]",qn="[object Int16Array]",An="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ce="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fe=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,Ie=RegExp(Fe.source),He=RegExp(Ne.source),_t=/<%-([\s\S]+?)%>/g,Rn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rr=/[\\^$.*+?()[\]{}|]/g,N=RegExp(rr.source),B=/^\s+/,G=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xe=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ve=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,St=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,At=/^\[object .+?Constructor\]$/,Ee=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ni=/($^)/,ri=/['\n\r\u2028\u2029\\]/g,$o="\\ud800-\\udfff",Gi="\\u0300-\\u036f",Ki="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Fs=Gi+Ki+ao,Us="\\u2700-\\u27bf",zs="a-z\\xdf-\\xf6\\xf8-\\xff",Xe="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pr="\\u2000-\\u206f",jt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lo="A-Z\\xc0-\\xd6\\xd8-\\xde",gu="\\ufe0e\\ufe0f",Df=Xe+Zt+pr+jt,Q0="['’]",bT="["+$o+"]",Rw="["+Df+"]",Pf="["+Fs+"]",kw="\\d+",xT="["+Us+"]",Tw="["+zs+"]",Dw="[^"+$o+Df+kw+Us+zs+lo+"]",J0="\\ud83c[\\udffb-\\udfff]",_T="(?:"+Pf+"|"+J0+")",Pw="[^"+$o+"]",em="(?:\\ud83c[\\udde6-\\uddff]){2}",tm="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="["+lo+"]",Ow="\\u200d",Lw="(?:"+Tw+"|"+Dw+")",ST="(?:"+Na+"|"+Dw+")",Nw="(?:"+Q0+"(?:d|ll|m|re|s|t|ve))?",Mw="(?:"+Q0+"(?:D|LL|M|RE|S|T|VE))?",Bw=_T+"?",Iw="["+gu+"]?",ET="(?:"+Ow+"(?:"+[Pw,em,tm].join("|")+")"+Iw+Bw+")*",CT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$w=Iw+Bw+ET,RT="(?:"+[xT,em,tm].join("|")+")"+$w,kT="(?:"+[Pw+Pf+"?",Pf,em,tm,bT].join("|")+")",TT=RegExp(Q0,"g"),DT=RegExp(Pf,"g"),nm=RegExp(J0+"(?="+J0+")|"+kT+$w,"g"),PT=RegExp([Na+"?"+Tw+"+"+Nw+"(?="+[Rw,Na,"$"].join("|")+")",ST+"+"+Mw+"(?="+[Rw,Na+Lw,"$"].join("|")+")",Na+"?"+Lw+"+"+Nw,Na+"+"+Mw,AT,CT,kw,RT].join("|"),"g"),OT=RegExp("["+Ow+$o+Fs+gu+"]"),LT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MT=-1,Ht={};Ht[Pe]=Ht[Xt]=Ht[nr]=Ht[qn]=Ht[An]=Ht[Io]=Ht[W]=Ht[F]=Ht[ce]=!0,Ht[ye]=Ht[de]=Ht[nn]=Ht[Ae]=Ht[We]=Ht[ge]=Ht[Le]=Ht[Ce]=Ht[st]=Ht[ht]=Ht[mt]=Ht[Et]=Ht[at]=Ht[un]=Ht[Ct]=!1;var Vt={};Vt[ye]=Vt[de]=Vt[nn]=Vt[We]=Vt[Ae]=Vt[ge]=Vt[Pe]=Vt[Xt]=Vt[nr]=Vt[qn]=Vt[An]=Vt[st]=Vt[ht]=Vt[mt]=Vt[Et]=Vt[at]=Vt[un]=Vt[cn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ce]=!0,Vt[Le]=Vt[Ce]=Vt[Ct]=!1;var BT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},IT={"&":"&","<":"<",">":">",'"':""","'":"'"},$T={"&":"&","<":"<",">":">",""":'"',"'":"'"},FT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UT=parseFloat,zT=parseInt,Fw=typeof window=="object"&&window&&window.Object===Object&&window,jT=typeof self=="object"&&self&&self.Object===Object&&self,Hn=Fw||jT||Function("return this")(),rm=t&&!t.nodeType&&t,js=rm&&!0&&e&&!e.nodeType&&e,Uw=js&&js.exports===rm,om=Uw&&Fw.process,uo=function(){try{var U=js&&js.require&&js.require("util").types;return U||om&&om.binding&&om.binding("util")}catch{}}(),zw=uo&&uo.isArrayBuffer,jw=uo&&uo.isDate,Vw=uo&&uo.isMap,Ww=uo&&uo.isRegExp,qw=uo&&uo.isSet,Hw=uo&&uo.isTypedArray;function zr(U,ee,Y){switch(Y.length){case 0:return U.call(ee);case 1:return U.call(ee,Y[0]);case 2:return U.call(ee,Y[0],Y[1]);case 3:return U.call(ee,Y[0],Y[1],Y[2])}return U.apply(ee,Y)}function VT(U,ee,Y,Re){for(var Ke=-1,Rt=U==null?0:U.length;++Ke-1}function im(U,ee,Y){for(var Re=-1,Ke=U==null?0:U.length;++Re-1;);return Y}function eb(U,ee){for(var Y=U.length;Y--&&Ma(ee,U[Y],0)>-1;);return Y}function QT(U,ee){for(var Y=U.length,Re=0;Y--;)U[Y]===ee&&++Re;return Re}var JT=um(BT),e8=um(IT);function t8(U){return"\\"+FT[U]}function n8(U,ee){return U==null?n:U[ee]}function Ba(U){return OT.test(U)}function r8(U){return LT.test(U)}function o8(U){for(var ee,Y=[];!(ee=U.next()).done;)Y.push(ee.value);return Y}function pm(U){var ee=-1,Y=Array(U.size);return U.forEach(function(Re,Ke){Y[++ee]=[Ke,Re]}),Y}function tb(U,ee){return function(Y){return U(ee(Y))}}function Zi(U,ee){for(var Y=-1,Re=U.length,Ke=0,Rt=[];++Y-1}function q8(s,l){var d=this.__data__,g=Yf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=z8,_i.prototype.delete=j8,_i.prototype.get=V8,_i.prototype.has=W8,_i.prototype.set=q8;function Si(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function ho(s,l,d,g,x,R){var P,M=l&h,j=l&m,oe=l&b;if(d&&(P=x?d(s,g,x,R):d(s)),P!==n)return P;if(!rn(s))return s;var se=Ye(s);if(se){if(P=YD(s),!M)return Er(s,P)}else{var fe=ir(s),_e=fe==Ce||fe==Ge;if(rs(s))return Ib(s,M);if(fe==mt||fe==ye||_e&&!x){if(P=j||_e?{}:nx(s),!M)return j?$D(s,aD(P,s)):ID(s,pb(P,s))}else{if(!Vt[fe])return x?s:{};P=XD(s,fe,M)}}R||(R=new Uo);var Oe=R.get(s);if(Oe)return Oe;R.set(s,P),Px(s)?s.forEach(function(Ve){P.add(ho(Ve,l,d,Ve,s,R))}):Tx(s)&&s.forEach(function(Ve,lt){P.set(lt,ho(Ve,l,d,lt,s,R))});var je=oe?j?Fm:$m:j?Ar:Un,tt=se?n:je(s);return co(tt||s,function(Ve,lt){tt&&(lt=Ve,Ve=s[lt]),Su(P,lt,ho(Ve,l,d,lt,s,R))}),P}function lD(s){var l=Un(s);return function(d){return hb(d,s,l)}}function hb(s,l,d){var g=d.length;if(s==null)return!g;for(s=It(s);g--;){var x=d[g],R=l[x],P=s[x];if(P===n&&!(x in s)||!R(P))return!1}return!0}function mb(s,l,d){if(typeof s!="function")throw new fo(a);return Du(function(){s.apply(n,d)},l)}function Eu(s,l,d,g){var x=-1,R=Of,P=!0,M=s.length,j=[],oe=l.length;if(!M)return j;d&&(l=Qt(l,jr(d))),g?(R=im,P=!1):l.length>=o&&(R=vu,P=!1,l=new qs(l));e:for(;++xx?0:x+d),g=g===n||g>x?x:et(g),g<0&&(g+=x),g=d>g?0:Lx(g);d0&&d(M)?l>1?Gn(M,l-1,d,g,x):Xi(x,M):g||(x[x.length]=M)}return x}var bm=Vb(),yb=Vb(!0);function oi(s,l){return s&&bm(s,l,Un)}function xm(s,l){return s&&yb(s,l,Un)}function Zf(s,l){return Yi(l,function(d){return ki(s[d])})}function Gs(s,l){l=ts(l,s);for(var d=0,g=l.length;s!=null&&dl}function fD(s,l){return s!=null&&Pt.call(s,l)}function dD(s,l){return s!=null&&l in It(s)}function pD(s,l,d){return s>=or(l,d)&&s=120&&se.length>=120)?new qs(P&&se):n}se=s[0];var fe=-1,_e=M[0];e:for(;++fe-1;)M!==s&&jf.call(M,j,1),jf.call(s,j,1);return s}function Tb(s,l){for(var d=s?l.length:0,g=d-1;d--;){var x=l[d];if(d==g||x!==R){var R=x;Ri(x)?jf.call(s,x,1):Pm(s,x)}}return s}function km(s,l){return s+qf(ub()*(l-s+1))}function AD(s,l,d,g){for(var x=-1,R=In(Wf((l-s)/(d||1)),0),P=Y(R);R--;)P[g?R:++x]=s,s+=d;return P}function Tm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=qf(l/2),l&&(s+=s);while(l);return d}function ot(s,l){return Hm(ix(s,l,Rr),s+"")}function RD(s){return db(Ga(s))}function kD(s,l){var d=Ga(s);return ld(d,Hs(l,0,d.length))}function Ru(s,l,d,g){if(!rn(s))return s;l=ts(l,s);for(var x=-1,R=l.length,P=R-1,M=s;M!=null&&++xx?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var R=Y(x);++g>>1,P=s[R];P!==null&&!Wr(P)&&(d?P<=l:P=o){var oe=l?null:jD(s);if(oe)return Nf(oe);P=!1,x=vu,j=new qs}else j=l?[]:M;e:for(;++g=g?s:mo(s,l,d)}var Bb=w8||function(s){return Hn.clearTimeout(s)};function Ib(s,l){if(l)return s.slice();var d=s.length,g=ob?ob(d):new s.constructor(d);return s.copy(g),g}function Mm(s){var l=new s.constructor(s.byteLength);return new Uf(l).set(new Uf(s)),l}function LD(s,l){var d=l?Mm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function ND(s){var l=new s.constructor(s.source,$e.exec(s));return l.lastIndex=s.lastIndex,l}function MD(s){return _u?It(_u.call(s)):{}}function $b(s,l){var d=l?Mm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Fb(s,l){if(s!==l){var d=s!==n,g=s===null,x=s===s,R=Wr(s),P=l!==n,M=l===null,j=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&P&&j&&!M&&!oe||g&&P&&j||!d&&j||!x)return 1;if(!g&&!R&&!oe&&s=M)return j;var oe=d[g];return j*(oe=="desc"?-1:1)}}return s.index-l.index}function Ub(s,l,d,g){for(var x=-1,R=s.length,P=d.length,M=-1,j=l.length,oe=In(R-P,0),se=Y(j+oe),fe=!g;++M1?d[x-1]:n,P=x>2?d[2]:n;for(R=s.length>3&&typeof R=="function"?(x--,R):n,P&&mr(d[0],d[1],P)&&(R=x<3?n:R,x=1),l=It(l);++g-1?x[R?l[P]:P]:n}}function Hb(s){return Ai(function(l){var d=l.length,g=d,x=po.prototype.thru;for(s&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new fo(a);if(x&&!P&&sd(R)=="wrapper")var P=new po([],!0)}for(g=P?g:d;++g1&&ft.reverse(),se&&jM))return!1;var oe=R.get(s),se=R.get(l);if(oe&&se)return oe==l&&se==s;var fe=-1,_e=!0,Oe=d&y?new qs:n;for(R.set(s,l),R.set(l,s);++fe1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(te,`{ + */sh.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,g=2,b=4,v=1,y=2,A=1,_=2,w=4,S=8,k=16,T=32,E=64,L=128,I=256,q=512,$=30,X="...",ae=800,K=16,H=1,Q=2,re=3,le=1/0,J=9007199254740991,pe=17976931348623157e292,ie=NaN,he=4294967295,z=he-1,ue=he>>>1,ne=[["ary",L],["bind",A],["bindKey",_],["curry",S],["curryRight",k],["flip",q],["partial",T],["partialRight",E],["rearg",I]],ye="[object Arguments]",de="[object Array]",Me="[object AsyncFunction]",Ae="[object Boolean]",ge="[object Date]",Je="[object DOMException]",Le="[object Error]",Ce="[object Function]",Ge="[object GeneratorFunction]",st="[object Map]",ht="[object Number]",xt="[object Null]",mt="[object Object]",Mn="[object Promise]",dr="[object Proxy]",Et="[object RegExp]",at="[object Set]",un="[object String]",cn="[object Symbol]",Ut="[object Undefined]",Ct="[object WeakMap]",Cn="[object WeakSet]",nn="[object ArrayBuffer]",We="[object DataView]",Pe="[object Float32Array]",Xt="[object Float64Array]",nr="[object Int8Array]",qn="[object Int16Array]",An="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ce="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fe=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,Ie=RegExp(Fe.source),He=RegExp(Ne.source),_t=/<%-([\s\S]+?)%>/g,Rn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rr=/[\\^$.*+?()[\]{}|]/g,N=RegExp(rr.source),B=/^\s+/,G=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xe=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ve=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,St=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,At=/^\[object .+?Constructor\]$/,Ee=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ni=/($^)/,ri=/['\n\r\u2028\u2029\\]/g,$o="\\ud800-\\udfff",Gi="\\u0300-\\u036f",Ki="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Fs=Gi+Ki+ao,Us="\\u2700-\\u27bf",zs="a-z\\xdf-\\xf6\\xf8-\\xff",Xe="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pr="\\u2000-\\u206f",jt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lo="A-Z\\xc0-\\xd6\\xd8-\\xde",gu="\\ufe0e\\ufe0f",Df=Xe+Zt+pr+jt,Q0="['’]",bT="["+$o+"]",Rw="["+Df+"]",Pf="["+Fs+"]",kw="\\d+",xT="["+Us+"]",Tw="["+zs+"]",Dw="[^"+$o+Df+kw+Us+zs+lo+"]",J0="\\ud83c[\\udffb-\\udfff]",_T="(?:"+Pf+"|"+J0+")",Pw="[^"+$o+"]",em="(?:\\ud83c[\\udde6-\\uddff]){2}",tm="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="["+lo+"]",Ow="\\u200d",Lw="(?:"+Tw+"|"+Dw+")",ST="(?:"+Na+"|"+Dw+")",Nw="(?:"+Q0+"(?:d|ll|m|re|s|t|ve))?",Mw="(?:"+Q0+"(?:D|LL|M|RE|S|T|VE))?",Bw=_T+"?",Iw="["+gu+"]?",ET="(?:"+Ow+"(?:"+[Pw,em,tm].join("|")+")"+Iw+Bw+")*",CT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$w=Iw+Bw+ET,RT="(?:"+[xT,em,tm].join("|")+")"+$w,kT="(?:"+[Pw+Pf+"?",Pf,em,tm,bT].join("|")+")",TT=RegExp(Q0,"g"),DT=RegExp(Pf,"g"),nm=RegExp(J0+"(?="+J0+")|"+kT+$w,"g"),PT=RegExp([Na+"?"+Tw+"+"+Nw+"(?="+[Rw,Na,"$"].join("|")+")",ST+"+"+Mw+"(?="+[Rw,Na+Lw,"$"].join("|")+")",Na+"?"+Lw+"+"+Nw,Na+"+"+Mw,AT,CT,kw,RT].join("|"),"g"),OT=RegExp("["+Ow+$o+Fs+gu+"]"),LT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MT=-1,Ht={};Ht[Pe]=Ht[Xt]=Ht[nr]=Ht[qn]=Ht[An]=Ht[Io]=Ht[W]=Ht[F]=Ht[ce]=!0,Ht[ye]=Ht[de]=Ht[nn]=Ht[Ae]=Ht[We]=Ht[ge]=Ht[Le]=Ht[Ce]=Ht[st]=Ht[ht]=Ht[mt]=Ht[Et]=Ht[at]=Ht[un]=Ht[Ct]=!1;var Vt={};Vt[ye]=Vt[de]=Vt[nn]=Vt[We]=Vt[Ae]=Vt[ge]=Vt[Pe]=Vt[Xt]=Vt[nr]=Vt[qn]=Vt[An]=Vt[st]=Vt[ht]=Vt[mt]=Vt[Et]=Vt[at]=Vt[un]=Vt[cn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ce]=!0,Vt[Le]=Vt[Ce]=Vt[Ct]=!1;var BT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},IT={"&":"&","<":"<",">":">",'"':""","'":"'"},$T={"&":"&","<":"<",">":">",""":'"',"'":"'"},FT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UT=parseFloat,zT=parseInt,Fw=typeof window=="object"&&window&&window.Object===Object&&window,jT=typeof self=="object"&&self&&self.Object===Object&&self,Hn=Fw||jT||Function("return this")(),rm=t&&!t.nodeType&&t,js=rm&&!0&&e&&!e.nodeType&&e,Uw=js&&js.exports===rm,om=Uw&&Fw.process,uo=function(){try{var U=js&&js.require&&js.require("util").types;return U||om&&om.binding&&om.binding("util")}catch{}}(),zw=uo&&uo.isArrayBuffer,jw=uo&&uo.isDate,Vw=uo&&uo.isMap,Ww=uo&&uo.isRegExp,qw=uo&&uo.isSet,Hw=uo&&uo.isTypedArray;function zr(U,ee,Y){switch(Y.length){case 0:return U.call(ee);case 1:return U.call(ee,Y[0]);case 2:return U.call(ee,Y[0],Y[1]);case 3:return U.call(ee,Y[0],Y[1],Y[2])}return U.apply(ee,Y)}function VT(U,ee,Y,Re){for(var Ke=-1,Rt=U==null?0:U.length;++Ke-1}function im(U,ee,Y){for(var Re=-1,Ke=U==null?0:U.length;++Re-1;);return Y}function eb(U,ee){for(var Y=U.length;Y--&&Ma(ee,U[Y],0)>-1;);return Y}function QT(U,ee){for(var Y=U.length,Re=0;Y--;)U[Y]===ee&&++Re;return Re}var JT=um(BT),e8=um(IT);function t8(U){return"\\"+FT[U]}function n8(U,ee){return U==null?n:U[ee]}function Ba(U){return OT.test(U)}function r8(U){return LT.test(U)}function o8(U){for(var ee,Y=[];!(ee=U.next()).done;)Y.push(ee.value);return Y}function pm(U){var ee=-1,Y=Array(U.size);return U.forEach(function(Re,Ke){Y[++ee]=[Ke,Re]}),Y}function tb(U,ee){return function(Y){return U(ee(Y))}}function Zi(U,ee){for(var Y=-1,Re=U.length,Ke=0,Rt=[];++Y-1}function q8(s,l){var d=this.__data__,m=Yf(d,s);return m<0?(++this.size,d.push([s,l])):d[m][1]=l,this}_i.prototype.clear=z8,_i.prototype.delete=j8,_i.prototype.get=V8,_i.prototype.has=W8,_i.prototype.set=q8;function Si(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function ho(s,l,d,m,x,R){var P,M=l&h,j=l&g,oe=l&b;if(d&&(P=x?d(s,m,x,R):d(s)),P!==n)return P;if(!rn(s))return s;var se=Ye(s);if(se){if(P=YD(s),!M)return Er(s,P)}else{var fe=ir(s),_e=fe==Ce||fe==Ge;if(rs(s))return Ib(s,M);if(fe==mt||fe==ye||_e&&!x){if(P=j||_e?{}:nx(s),!M)return j?$D(s,aD(P,s)):ID(s,pb(P,s))}else{if(!Vt[fe])return x?s:{};P=XD(s,fe,M)}}R||(R=new Uo);var Oe=R.get(s);if(Oe)return Oe;R.set(s,P),Px(s)?s.forEach(function(Ve){P.add(ho(Ve,l,d,Ve,s,R))}):Tx(s)&&s.forEach(function(Ve,lt){P.set(lt,ho(Ve,l,d,lt,s,R))});var je=oe?j?Fm:$m:j?Ar:Un,tt=se?n:je(s);return co(tt||s,function(Ve,lt){tt&&(lt=Ve,Ve=s[lt]),Su(P,lt,ho(Ve,l,d,lt,s,R))}),P}function lD(s){var l=Un(s);return function(d){return hb(d,s,l)}}function hb(s,l,d){var m=d.length;if(s==null)return!m;for(s=It(s);m--;){var x=d[m],R=l[x],P=s[x];if(P===n&&!(x in s)||!R(P))return!1}return!0}function mb(s,l,d){if(typeof s!="function")throw new fo(a);return Du(function(){s.apply(n,d)},l)}function Eu(s,l,d,m){var x=-1,R=Of,P=!0,M=s.length,j=[],oe=l.length;if(!M)return j;d&&(l=Qt(l,jr(d))),m?(R=im,P=!1):l.length>=o&&(R=vu,P=!1,l=new qs(l));e:for(;++xx?0:x+d),m=m===n||m>x?x:et(m),m<0&&(m+=x),m=d>m?0:Lx(m);d0&&d(M)?l>1?Gn(M,l-1,d,m,x):Xi(x,M):m||(x[x.length]=M)}return x}var bm=Vb(),yb=Vb(!0);function oi(s,l){return s&&bm(s,l,Un)}function xm(s,l){return s&&yb(s,l,Un)}function Zf(s,l){return Yi(l,function(d){return ki(s[d])})}function Gs(s,l){l=ts(l,s);for(var d=0,m=l.length;s!=null&&dl}function fD(s,l){return s!=null&&Pt.call(s,l)}function dD(s,l){return s!=null&&l in It(s)}function pD(s,l,d){return s>=or(l,d)&&s=120&&se.length>=120)?new qs(P&&se):n}se=s[0];var fe=-1,_e=M[0];e:for(;++fe-1;)M!==s&&jf.call(M,j,1),jf.call(s,j,1);return s}function Tb(s,l){for(var d=s?l.length:0,m=d-1;d--;){var x=l[d];if(d==m||x!==R){var R=x;Ri(x)?jf.call(s,x,1):Pm(s,x)}}return s}function km(s,l){return s+qf(ub()*(l-s+1))}function AD(s,l,d,m){for(var x=-1,R=In(Wf((l-s)/(d||1)),0),P=Y(R);R--;)P[m?R:++x]=s,s+=d;return P}function Tm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=qf(l/2),l&&(s+=s);while(l);return d}function ot(s,l){return Hm(ix(s,l,Rr),s+"")}function RD(s){return db(Ga(s))}function kD(s,l){var d=Ga(s);return ld(d,Hs(l,0,d.length))}function Ru(s,l,d,m){if(!rn(s))return s;l=ts(l,s);for(var x=-1,R=l.length,P=R-1,M=s;M!=null&&++xx?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var R=Y(x);++m>>1,P=s[R];P!==null&&!Wr(P)&&(d?P<=l:P=o){var oe=l?null:jD(s);if(oe)return Nf(oe);P=!1,x=vu,j=new qs}else j=l?[]:M;e:for(;++m=m?s:mo(s,l,d)}var Bb=w8||function(s){return Hn.clearTimeout(s)};function Ib(s,l){if(l)return s.slice();var d=s.length,m=ob?ob(d):new s.constructor(d);return s.copy(m),m}function Mm(s){var l=new s.constructor(s.byteLength);return new Uf(l).set(new Uf(s)),l}function LD(s,l){var d=l?Mm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function ND(s){var l=new s.constructor(s.source,$e.exec(s));return l.lastIndex=s.lastIndex,l}function MD(s){return _u?It(_u.call(s)):{}}function $b(s,l){var d=l?Mm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Fb(s,l){if(s!==l){var d=s!==n,m=s===null,x=s===s,R=Wr(s),P=l!==n,M=l===null,j=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&P&&j&&!M&&!oe||m&&P&&j||!d&&j||!x)return 1;if(!m&&!R&&!oe&&s=M)return j;var oe=d[m];return j*(oe=="desc"?-1:1)}}return s.index-l.index}function Ub(s,l,d,m){for(var x=-1,R=s.length,P=d.length,M=-1,j=l.length,oe=In(R-P,0),se=Y(j+oe),fe=!m;++M1?d[x-1]:n,P=x>2?d[2]:n;for(R=s.length>3&&typeof R=="function"?(x--,R):n,P&&mr(d[0],d[1],P)&&(R=x<3?n:R,x=1),l=It(l);++m-1?x[R?l[P]:P]:n}}function Hb(s){return Ai(function(l){var d=l.length,m=d,x=po.prototype.thru;for(s&&l.reverse();m--;){var R=l[m];if(typeof R!="function")throw new fo(a);if(x&&!P&&sd(R)=="wrapper")var P=new po([],!0)}for(m=P?m:d;++m1&&ft.reverse(),se&&jM))return!1;var oe=R.get(s),se=R.get(l);if(oe&&se)return oe==l&&se==s;var fe=-1,_e=!0,Oe=d&y?new qs:n;for(R.set(s,l),R.set(l,s);++fe1?"& ":"")+l[m],l=l.join(d>2?", ":" "),s.replace(te,`{ /* [wrapped with `+l+`] */ -`)}function QD(s){return Ye(s)||Xs(s)||!!(ab&&s&&s[ab])}function Ri(s,l){var d=typeof s;return l=l??J,!!l&&(d=="number"||d!="symbol"&&yt.test(s))&&s>-1&&s%1==0&&s0){if(++l>=ae)return arguments[0]}else l=0;return s.apply(n,arguments)}}function ld(s,l){var d=-1,g=s.length,x=g-1;for(l=l===n?g:l;++d1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,vx(s,d)});function yx(s){var l=C(s);return l.__chain__=!0,l}function u6(s,l){return l(s),s}function ud(s,l){return l(s)}var c6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,x=function(R){return wm(R,s)};return l>1||this.__actions__.length||!(g instanceof ct)||!Ri(d)?this.thru(x):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ud,args:[x],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function f6(){return yx(this)}function d6(){return new po(this.value(),this.__chain__)}function p6(){this.__values__===n&&(this.__values__=Ox(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function h6(){return this}function m6(s){for(var l,d=this;d instanceof Kf;){var g=fx(d);g.__index__=0,g.__values__=n,l?x.__wrapped__=g:l=g;var x=g;d=d.__wrapped__}return x.__wrapped__=s,l}function g6(){var s=this.__wrapped__;if(s instanceof ct){var l=s;return this.__actions__.length&&(l=new ct(this)),l=l.reverse(),l.__actions__.push({func:ud,args:[Gm],thisArg:n}),new po(l,this.__chain__)}return this.thru(Gm)}function v6(){return Nb(this.__wrapped__,this.__actions__)}var y6=td(function(s,l,d){Pt.call(s,d)?++s[d]:Ei(s,d,1)});function w6(s,l,d){var g=Ye(s)?Gw:uD;return d&&mr(s,l,d)&&(l=n),g(s,ze(l,3))}function b6(s,l){var d=Ye(s)?Yi:vb;return d(s,ze(l,3))}var x6=qb(dx),_6=qb(px);function S6(s,l){return Gn(cd(s,l),1)}function E6(s,l){return Gn(cd(s,l),le)}function C6(s,l,d){return d=d===n?1:et(d),Gn(cd(s,l),d)}function wx(s,l){var d=Ye(s)?co:Ji;return d(s,ze(l,3))}function bx(s,l){var d=Ye(s)?WT:gb;return d(s,ze(l,3))}var A6=td(function(s,l,d){Pt.call(s,d)?s[d].push(l):Ei(s,d,[l])});function R6(s,l,d,g){s=Cr(s)?s:Ga(s),d=d&&!g?et(d):0;var x=s.length;return d<0&&(d=In(x+d,0)),md(s)?d<=x&&s.indexOf(l,d)>-1:!!x&&Ma(s,l,d)>-1}var k6=ot(function(s,l,d){var g=-1,x=typeof l=="function",R=Cr(s)?Y(s.length):[];return Ji(s,function(P){R[++g]=x?zr(l,P,d):Cu(P,l,d)}),R}),T6=td(function(s,l,d){Ei(s,d,l)});function cd(s,l){var d=Ye(s)?Qt:Sb;return d(s,ze(l,3))}function D6(s,l,d,g){return s==null?[]:(Ye(l)||(l=l==null?[]:[l]),d=g?n:d,Ye(d)||(d=d==null?[]:[d]),Rb(s,l,d))}var P6=td(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function O6(s,l,d){var g=Ye(s)?sm:Zw,x=arguments.length<3;return g(s,ze(l,4),d,x,Ji)}function L6(s,l,d){var g=Ye(s)?qT:Zw,x=arguments.length<3;return g(s,ze(l,4),d,x,gb)}function N6(s,l){var d=Ye(s)?Yi:vb;return d(s,pd(ze(l,3)))}function M6(s){var l=Ye(s)?db:RD;return l(s)}function B6(s,l,d){(d?mr(s,l,d):l===n)?l=1:l=et(l);var g=Ye(s)?oD:kD;return g(s,l)}function I6(s){var l=Ye(s)?iD:DD;return l(s)}function $6(s){if(s==null)return 0;if(Cr(s))return md(s)?Ia(s):s.length;var l=ir(s);return l==st||l==at?s.size:Cm(s).length}function F6(s,l,d){var g=Ye(s)?am:PD;return d&&mr(s,l,d)&&(l=n),g(s,ze(l,3))}var U6=ot(function(s,l){if(s==null)return[];var d=l.length;return d>1&&mr(s,l[0],l[1])?l=[]:d>2&&mr(l[0],l[1],l[2])&&(l=[l[0]]),Rb(s,Gn(l,1),[])}),fd=b8||function(){return Hn.Date.now()};function z6(s,l){if(typeof l!="function")throw new fo(a);return s=et(s),function(){if(--s<1)return l.apply(this,arguments)}}function xx(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function _x(s,l){var d;if(typeof l!="function")throw new fo(a);return s=et(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var Ym=ot(function(s,l,d){var g=A;if(d.length){var x=Zi(d,qa(Ym));g|=T}return Ci(s,g,l,d,x)}),Sx=ot(function(s,l,d){var g=A|_;if(d.length){var x=Zi(d,qa(Sx));g|=T}return Ci(l,g,s,d,x)});function Ex(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=Ex.placeholder,g}function Cx(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=Cx.placeholder,g}function Ax(s,l,d){var g,x,R,P,M,j,oe=0,se=!1,fe=!1,_e=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(se=!!d.leading,fe="maxWait"in d,R=fe?In(vo(d.maxWait)||0,l):R,_e="trailing"in d?!!d.trailing:_e);function Oe(wn){var jo=g,Di=x;return g=x=n,oe=wn,P=s.apply(Di,jo),P}function je(wn){return oe=wn,M=Du(lt,l),se?Oe(wn):P}function tt(wn){var jo=wn-j,Di=wn-oe,qx=l-jo;return fe?or(qx,R-Di):qx}function Ve(wn){var jo=wn-j,Di=wn-oe;return j===n||jo>=l||jo<0||fe&&Di>=R}function lt(){var wn=fd();if(Ve(wn))return ft(wn);M=Du(lt,tt(wn))}function ft(wn){return M=n,_e&&g?Oe(wn):(g=x=n,P)}function qr(){M!==n&&Bb(M),oe=0,g=j=x=M=n}function gr(){return M===n?P:ft(fd())}function Hr(){var wn=fd(),jo=Ve(wn);if(g=arguments,x=this,j=wn,jo){if(M===n)return je(j);if(fe)return Bb(M),M=Du(lt,l),Oe(j)}return M===n&&(M=Du(lt,l)),P}return Hr.cancel=qr,Hr.flush=gr,Hr}var j6=ot(function(s,l){return mb(s,1,l)}),V6=ot(function(s,l,d){return mb(s,vo(l)||0,d)});function W6(s){return Ci(s,q)}function dd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fo(a);var d=function(){var g=arguments,x=l?l.apply(this,g):g[0],R=d.cache;if(R.has(x))return R.get(x);var P=s.apply(this,g);return d.cache=R.set(x,P)||R,P};return d.cache=new(dd.Cache||Si),d}dd.Cache=Si;function pd(s){if(typeof s!="function")throw new fo(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function q6(s){return _x(2,s)}var H6=OD(function(s,l){l=l.length==1&&Ye(l[0])?Qt(l[0],jr(ze())):Qt(Gn(l,1),jr(ze()));var d=l.length;return ot(function(g){for(var x=-1,R=or(g.length,d);++x=l}),Xs=bb(function(){return arguments}())?bb:function(s){return pn(s)&&Pt.call(s,"callee")&&!sb.call(s,"callee")},Ye=Y.isArray,aP=zw?jr(zw):mD;function Cr(s){return s!=null&&hd(s.length)&&!ki(s)}function yn(s){return pn(s)&&Cr(s)}function lP(s){return s===!0||s===!1||pn(s)&&hr(s)==Ae}var rs=_8||ag,uP=jw?jr(jw):gD;function cP(s){return pn(s)&&s.nodeType===1&&!Pu(s)}function fP(s){if(s==null)return!0;if(Cr(s)&&(Ye(s)||typeof s=="string"||typeof s.splice=="function"||rs(s)||Ha(s)||Xs(s)))return!s.length;var l=ir(s);if(l==st||l==at)return!s.size;if(Tu(s))return!Cm(s).length;for(var d in s)if(Pt.call(s,d))return!1;return!0}function dP(s,l){return Au(s,l)}function pP(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?Au(s,l,n,d):!!g}function Zm(s){if(!pn(s))return!1;var l=hr(s);return l==Le||l==Je||typeof s.message=="string"&&typeof s.name=="string"&&!Pu(s)}function hP(s){return typeof s=="number"&&lb(s)}function ki(s){if(!rn(s))return!1;var l=hr(s);return l==Ce||l==Ge||l==Me||l==dr}function kx(s){return typeof s=="number"&&s==et(s)}function hd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=J}function rn(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function pn(s){return s!=null&&typeof s=="object"}var Tx=Vw?jr(Vw):yD;function mP(s,l){return s===l||Em(s,l,zm(l))}function gP(s,l,d){return d=typeof d=="function"?d:n,Em(s,l,zm(l),d)}function vP(s){return Dx(s)&&s!=+s}function yP(s){if(t7(s))throw new Ke(i);return xb(s)}function wP(s){return s===null}function bP(s){return s==null}function Dx(s){return typeof s=="number"||pn(s)&&hr(s)==ht}function Pu(s){if(!pn(s)||hr(s)!=mt)return!1;var l=zf(s);if(l===null)return!0;var d=Pt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&If.call(d)==g8}var Qm=Ww?jr(Ww):wD;function xP(s){return kx(s)&&s>=-J&&s<=J}var Px=qw?jr(qw):bD;function md(s){return typeof s=="string"||!Ye(s)&&pn(s)&&hr(s)==un}function Wr(s){return typeof s=="symbol"||pn(s)&&hr(s)==cn}var Ha=Hw?jr(Hw):xD;function _P(s){return s===n}function SP(s){return pn(s)&&ir(s)==Ct}function EP(s){return pn(s)&&hr(s)==Cn}var CP=id(Am),AP=id(function(s,l){return s<=l});function Ox(s){if(!s)return[];if(Cr(s))return md(s)?Fo(s):Er(s);if(yu&&s[yu])return o8(s[yu]());var l=ir(s),d=l==st?pm:l==at?Nf:Ga;return d(s)}function Ti(s){if(!s)return s===0?s:0;if(s=vo(s),s===le||s===-le){var l=s<0?-1:1;return l*pe}return s===s?s:0}function et(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Lx(s){return s?Hs(et(s),0,he):0}function vo(s){if(typeof s=="number")return s;if(Wr(s))return ie;if(rn(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=rn(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Qw(s);var d=vt.test(s);return d||Ee.test(s)?zT(s.slice(2),d?2:8):St.test(s)?ie:+s}function Nx(s){return ii(s,Ar(s))}function RP(s){return s?Hs(et(s),-J,J):s===0?s:0}function Dt(s){return s==null?"":Vr(s)}var kP=Va(function(s,l){if(Tu(l)||Cr(l)){ii(l,Un(l),s);return}for(var d in l)Pt.call(l,d)&&Su(s,d,l[d])}),Mx=Va(function(s,l){ii(l,Ar(l),s)}),gd=Va(function(s,l,d,g){ii(l,Ar(l),s,g)}),TP=Va(function(s,l,d,g){ii(l,Un(l),s,g)}),DP=Ai(wm);function PP(s,l){var d=ja(s);return l==null?d:pb(d,l)}var OP=ot(function(s,l){s=It(s);var d=-1,g=l.length,x=g>2?l[2]:n;for(x&&mr(l[0],l[1],x)&&(g=1);++d1),R}),ii(s,Fm(s),d),g&&(d=ho(d,h|m|b,VD));for(var x=l.length;x--;)Pm(d,l[x]);return d});function XP(s,l){return Ix(s,pd(ze(l)))}var ZP=Ai(function(s,l){return s==null?{}:ED(s,l)});function Ix(s,l){if(s==null)return{};var d=Qt(Fm(s),function(g){return[g]});return l=ze(l),kb(s,d,function(g,x){return l(g,x[0])})}function QP(s,l,d){l=ts(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++gl){var g=s;s=l,l=g}if(d||s%1||l%1){var x=ub();return or(s+x*(l-s+UT("1e-"+((x+"").length-1))),l)}return km(s,l)}var uO=Wa(function(s,l,d){return l=l.toLowerCase(),s+(d?Ux(l):l)});function Ux(s){return tg(Dt(s).toLowerCase())}function zx(s){return s=Dt(s),s&&s.replace(dn,JT).replace(DT,"")}function cO(s,l,d){s=Dt(s),l=Vr(l);var g=s.length;d=d===n?g:Hs(et(d),0,g);var x=d;return d-=l.length,d>=0&&s.slice(d,x)==l}function fO(s){return s=Dt(s),s&&He.test(s)?s.replace(Ne,e8):s}function dO(s){return s=Dt(s),s&&N.test(s)?s.replace(rr,"\\$&"):s}var pO=Wa(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),hO=Wa(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),mO=Wb("toLowerCase");function gO(s,l,d){s=Dt(s),l=et(l);var g=l?Ia(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return od(qf(x),d)+s+od(Wf(x),d)}function vO(s,l,d){s=Dt(s),l=et(l);var g=l?Ia(s):0;return l&&g>>0,d?(s=Dt(s),s&&(typeof l=="string"||l!=null&&!Qm(l))&&(l=Vr(l),!l&&Ba(s))?ns(Fo(s),0,d):s.split(l,d)):[]}var EO=Wa(function(s,l,d){return s+(d?" ":"")+tg(l)});function CO(s,l,d){return s=Dt(s),d=d==null?0:Hs(et(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function AO(s,l,d){var g=C.templateSettings;d&&mr(s,l,d)&&(l=n),s=Dt(s),l=gd({},l,g,Zb);var x=gd({},l.imports,g.imports,Zb),R=Un(x),P=dm(x,R),M,j,oe=0,se=l.interpolate||ni,fe="__p += '",_e=hm((l.escape||ni).source+"|"+se.source+"|"+(se===zt?Be:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Oe="//# sourceURL="+(Pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++MT+"]")+` +`)}function QD(s){return Ye(s)||Xs(s)||!!(ab&&s&&s[ab])}function Ri(s,l){var d=typeof s;return l=l??J,!!l&&(d=="number"||d!="symbol"&&yt.test(s))&&s>-1&&s%1==0&&s0){if(++l>=ae)return arguments[0]}else l=0;return s.apply(n,arguments)}}function ld(s,l){var d=-1,m=s.length,x=m-1;for(l=l===n?m:l;++d1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,vx(s,d)});function yx(s){var l=C(s);return l.__chain__=!0,l}function u6(s,l){return l(s),s}function ud(s,l){return l(s)}var c6=Ai(function(s){var l=s.length,d=l?s[0]:0,m=this.__wrapped__,x=function(R){return wm(R,s)};return l>1||this.__actions__.length||!(m instanceof ct)||!Ri(d)?this.thru(x):(m=m.slice(d,+d+(l?1:0)),m.__actions__.push({func:ud,args:[x],thisArg:n}),new po(m,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function f6(){return yx(this)}function d6(){return new po(this.value(),this.__chain__)}function p6(){this.__values__===n&&(this.__values__=Ox(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function h6(){return this}function m6(s){for(var l,d=this;d instanceof Kf;){var m=fx(d);m.__index__=0,m.__values__=n,l?x.__wrapped__=m:l=m;var x=m;d=d.__wrapped__}return x.__wrapped__=s,l}function g6(){var s=this.__wrapped__;if(s instanceof ct){var l=s;return this.__actions__.length&&(l=new ct(this)),l=l.reverse(),l.__actions__.push({func:ud,args:[Gm],thisArg:n}),new po(l,this.__chain__)}return this.thru(Gm)}function v6(){return Nb(this.__wrapped__,this.__actions__)}var y6=td(function(s,l,d){Pt.call(s,d)?++s[d]:Ei(s,d,1)});function w6(s,l,d){var m=Ye(s)?Gw:uD;return d&&mr(s,l,d)&&(l=n),m(s,ze(l,3))}function b6(s,l){var d=Ye(s)?Yi:vb;return d(s,ze(l,3))}var x6=qb(dx),_6=qb(px);function S6(s,l){return Gn(cd(s,l),1)}function E6(s,l){return Gn(cd(s,l),le)}function C6(s,l,d){return d=d===n?1:et(d),Gn(cd(s,l),d)}function wx(s,l){var d=Ye(s)?co:Ji;return d(s,ze(l,3))}function bx(s,l){var d=Ye(s)?WT:gb;return d(s,ze(l,3))}var A6=td(function(s,l,d){Pt.call(s,d)?s[d].push(l):Ei(s,d,[l])});function R6(s,l,d,m){s=Cr(s)?s:Ga(s),d=d&&!m?et(d):0;var x=s.length;return d<0&&(d=In(x+d,0)),md(s)?d<=x&&s.indexOf(l,d)>-1:!!x&&Ma(s,l,d)>-1}var k6=ot(function(s,l,d){var m=-1,x=typeof l=="function",R=Cr(s)?Y(s.length):[];return Ji(s,function(P){R[++m]=x?zr(l,P,d):Cu(P,l,d)}),R}),T6=td(function(s,l,d){Ei(s,d,l)});function cd(s,l){var d=Ye(s)?Qt:Sb;return d(s,ze(l,3))}function D6(s,l,d,m){return s==null?[]:(Ye(l)||(l=l==null?[]:[l]),d=m?n:d,Ye(d)||(d=d==null?[]:[d]),Rb(s,l,d))}var P6=td(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function O6(s,l,d){var m=Ye(s)?sm:Zw,x=arguments.length<3;return m(s,ze(l,4),d,x,Ji)}function L6(s,l,d){var m=Ye(s)?qT:Zw,x=arguments.length<3;return m(s,ze(l,4),d,x,gb)}function N6(s,l){var d=Ye(s)?Yi:vb;return d(s,pd(ze(l,3)))}function M6(s){var l=Ye(s)?db:RD;return l(s)}function B6(s,l,d){(d?mr(s,l,d):l===n)?l=1:l=et(l);var m=Ye(s)?oD:kD;return m(s,l)}function I6(s){var l=Ye(s)?iD:DD;return l(s)}function $6(s){if(s==null)return 0;if(Cr(s))return md(s)?Ia(s):s.length;var l=ir(s);return l==st||l==at?s.size:Cm(s).length}function F6(s,l,d){var m=Ye(s)?am:PD;return d&&mr(s,l,d)&&(l=n),m(s,ze(l,3))}var U6=ot(function(s,l){if(s==null)return[];var d=l.length;return d>1&&mr(s,l[0],l[1])?l=[]:d>2&&mr(l[0],l[1],l[2])&&(l=[l[0]]),Rb(s,Gn(l,1),[])}),fd=b8||function(){return Hn.Date.now()};function z6(s,l){if(typeof l!="function")throw new fo(a);return s=et(s),function(){if(--s<1)return l.apply(this,arguments)}}function xx(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function _x(s,l){var d;if(typeof l!="function")throw new fo(a);return s=et(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var Ym=ot(function(s,l,d){var m=A;if(d.length){var x=Zi(d,qa(Ym));m|=T}return Ci(s,m,l,d,x)}),Sx=ot(function(s,l,d){var m=A|_;if(d.length){var x=Zi(d,qa(Sx));m|=T}return Ci(l,m,s,d,x)});function Ex(s,l,d){l=d?n:l;var m=Ci(s,S,n,n,n,n,n,l);return m.placeholder=Ex.placeholder,m}function Cx(s,l,d){l=d?n:l;var m=Ci(s,k,n,n,n,n,n,l);return m.placeholder=Cx.placeholder,m}function Ax(s,l,d){var m,x,R,P,M,j,oe=0,se=!1,fe=!1,_e=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(se=!!d.leading,fe="maxWait"in d,R=fe?In(vo(d.maxWait)||0,l):R,_e="trailing"in d?!!d.trailing:_e);function Oe(wn){var jo=m,Di=x;return m=x=n,oe=wn,P=s.apply(Di,jo),P}function je(wn){return oe=wn,M=Du(lt,l),se?Oe(wn):P}function tt(wn){var jo=wn-j,Di=wn-oe,qx=l-jo;return fe?or(qx,R-Di):qx}function Ve(wn){var jo=wn-j,Di=wn-oe;return j===n||jo>=l||jo<0||fe&&Di>=R}function lt(){var wn=fd();if(Ve(wn))return ft(wn);M=Du(lt,tt(wn))}function ft(wn){return M=n,_e&&m?Oe(wn):(m=x=n,P)}function qr(){M!==n&&Bb(M),oe=0,m=j=x=M=n}function gr(){return M===n?P:ft(fd())}function Hr(){var wn=fd(),jo=Ve(wn);if(m=arguments,x=this,j=wn,jo){if(M===n)return je(j);if(fe)return Bb(M),M=Du(lt,l),Oe(j)}return M===n&&(M=Du(lt,l)),P}return Hr.cancel=qr,Hr.flush=gr,Hr}var j6=ot(function(s,l){return mb(s,1,l)}),V6=ot(function(s,l,d){return mb(s,vo(l)||0,d)});function W6(s){return Ci(s,q)}function dd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fo(a);var d=function(){var m=arguments,x=l?l.apply(this,m):m[0],R=d.cache;if(R.has(x))return R.get(x);var P=s.apply(this,m);return d.cache=R.set(x,P)||R,P};return d.cache=new(dd.Cache||Si),d}dd.Cache=Si;function pd(s){if(typeof s!="function")throw new fo(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function q6(s){return _x(2,s)}var H6=OD(function(s,l){l=l.length==1&&Ye(l[0])?Qt(l[0],jr(ze())):Qt(Gn(l,1),jr(ze()));var d=l.length;return ot(function(m){for(var x=-1,R=or(m.length,d);++x=l}),Xs=bb(function(){return arguments}())?bb:function(s){return pn(s)&&Pt.call(s,"callee")&&!sb.call(s,"callee")},Ye=Y.isArray,aP=zw?jr(zw):mD;function Cr(s){return s!=null&&hd(s.length)&&!ki(s)}function yn(s){return pn(s)&&Cr(s)}function lP(s){return s===!0||s===!1||pn(s)&&hr(s)==Ae}var rs=_8||ag,uP=jw?jr(jw):gD;function cP(s){return pn(s)&&s.nodeType===1&&!Pu(s)}function fP(s){if(s==null)return!0;if(Cr(s)&&(Ye(s)||typeof s=="string"||typeof s.splice=="function"||rs(s)||Ha(s)||Xs(s)))return!s.length;var l=ir(s);if(l==st||l==at)return!s.size;if(Tu(s))return!Cm(s).length;for(var d in s)if(Pt.call(s,d))return!1;return!0}function dP(s,l){return Au(s,l)}function pP(s,l,d){d=typeof d=="function"?d:n;var m=d?d(s,l):n;return m===n?Au(s,l,n,d):!!m}function Zm(s){if(!pn(s))return!1;var l=hr(s);return l==Le||l==Je||typeof s.message=="string"&&typeof s.name=="string"&&!Pu(s)}function hP(s){return typeof s=="number"&&lb(s)}function ki(s){if(!rn(s))return!1;var l=hr(s);return l==Ce||l==Ge||l==Me||l==dr}function kx(s){return typeof s=="number"&&s==et(s)}function hd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=J}function rn(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function pn(s){return s!=null&&typeof s=="object"}var Tx=Vw?jr(Vw):yD;function mP(s,l){return s===l||Em(s,l,zm(l))}function gP(s,l,d){return d=typeof d=="function"?d:n,Em(s,l,zm(l),d)}function vP(s){return Dx(s)&&s!=+s}function yP(s){if(t7(s))throw new Ke(i);return xb(s)}function wP(s){return s===null}function bP(s){return s==null}function Dx(s){return typeof s=="number"||pn(s)&&hr(s)==ht}function Pu(s){if(!pn(s)||hr(s)!=mt)return!1;var l=zf(s);if(l===null)return!0;var d=Pt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&If.call(d)==g8}var Qm=Ww?jr(Ww):wD;function xP(s){return kx(s)&&s>=-J&&s<=J}var Px=qw?jr(qw):bD;function md(s){return typeof s=="string"||!Ye(s)&&pn(s)&&hr(s)==un}function Wr(s){return typeof s=="symbol"||pn(s)&&hr(s)==cn}var Ha=Hw?jr(Hw):xD;function _P(s){return s===n}function SP(s){return pn(s)&&ir(s)==Ct}function EP(s){return pn(s)&&hr(s)==Cn}var CP=id(Am),AP=id(function(s,l){return s<=l});function Ox(s){if(!s)return[];if(Cr(s))return md(s)?Fo(s):Er(s);if(yu&&s[yu])return o8(s[yu]());var l=ir(s),d=l==st?pm:l==at?Nf:Ga;return d(s)}function Ti(s){if(!s)return s===0?s:0;if(s=vo(s),s===le||s===-le){var l=s<0?-1:1;return l*pe}return s===s?s:0}function et(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Lx(s){return s?Hs(et(s),0,he):0}function vo(s){if(typeof s=="number")return s;if(Wr(s))return ie;if(rn(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=rn(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Qw(s);var d=vt.test(s);return d||Ee.test(s)?zT(s.slice(2),d?2:8):St.test(s)?ie:+s}function Nx(s){return ii(s,Ar(s))}function RP(s){return s?Hs(et(s),-J,J):s===0?s:0}function Dt(s){return s==null?"":Vr(s)}var kP=Va(function(s,l){if(Tu(l)||Cr(l)){ii(l,Un(l),s);return}for(var d in l)Pt.call(l,d)&&Su(s,d,l[d])}),Mx=Va(function(s,l){ii(l,Ar(l),s)}),gd=Va(function(s,l,d,m){ii(l,Ar(l),s,m)}),TP=Va(function(s,l,d,m){ii(l,Un(l),s,m)}),DP=Ai(wm);function PP(s,l){var d=ja(s);return l==null?d:pb(d,l)}var OP=ot(function(s,l){s=It(s);var d=-1,m=l.length,x=m>2?l[2]:n;for(x&&mr(l[0],l[1],x)&&(m=1);++d1),R}),ii(s,Fm(s),d),m&&(d=ho(d,h|g|b,VD));for(var x=l.length;x--;)Pm(d,l[x]);return d});function XP(s,l){return Ix(s,pd(ze(l)))}var ZP=Ai(function(s,l){return s==null?{}:ED(s,l)});function Ix(s,l){if(s==null)return{};var d=Qt(Fm(s),function(m){return[m]});return l=ze(l),kb(s,d,function(m,x){return l(m,x[0])})}function QP(s,l,d){l=ts(l,s);var m=-1,x=l.length;for(x||(x=1,s=n);++ml){var m=s;s=l,l=m}if(d||s%1||l%1){var x=ub();return or(s+x*(l-s+UT("1e-"+((x+"").length-1))),l)}return km(s,l)}var uO=Wa(function(s,l,d){return l=l.toLowerCase(),s+(d?Ux(l):l)});function Ux(s){return tg(Dt(s).toLowerCase())}function zx(s){return s=Dt(s),s&&s.replace(dn,JT).replace(DT,"")}function cO(s,l,d){s=Dt(s),l=Vr(l);var m=s.length;d=d===n?m:Hs(et(d),0,m);var x=d;return d-=l.length,d>=0&&s.slice(d,x)==l}function fO(s){return s=Dt(s),s&&He.test(s)?s.replace(Ne,e8):s}function dO(s){return s=Dt(s),s&&N.test(s)?s.replace(rr,"\\$&"):s}var pO=Wa(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),hO=Wa(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),mO=Wb("toLowerCase");function gO(s,l,d){s=Dt(s),l=et(l);var m=l?Ia(s):0;if(!l||m>=l)return s;var x=(l-m)/2;return od(qf(x),d)+s+od(Wf(x),d)}function vO(s,l,d){s=Dt(s),l=et(l);var m=l?Ia(s):0;return l&&m>>0,d?(s=Dt(s),s&&(typeof l=="string"||l!=null&&!Qm(l))&&(l=Vr(l),!l&&Ba(s))?ns(Fo(s),0,d):s.split(l,d)):[]}var EO=Wa(function(s,l,d){return s+(d?" ":"")+tg(l)});function CO(s,l,d){return s=Dt(s),d=d==null?0:Hs(et(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function AO(s,l,d){var m=C.templateSettings;d&&mr(s,l,d)&&(l=n),s=Dt(s),l=gd({},l,m,Zb);var x=gd({},l.imports,m.imports,Zb),R=Un(x),P=dm(x,R),M,j,oe=0,se=l.interpolate||ni,fe="__p += '",_e=hm((l.escape||ni).source+"|"+se.source+"|"+(se===zt?Be:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Oe="//# sourceURL="+(Pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++MT+"]")+` `;s.replace(_e,function(Ve,lt,ft,qr,gr,Hr){return ft||(ft=qr),fe+=s.slice(oe,Hr).replace(ri,t8),lt&&(M=!0,fe+=`' + __e(`+lt+`) + '`),gr&&(j=!0,fe+=`'; @@ -65,7 +65,7 @@ __p += '`),ft&&(fe+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+fe+`return __p -}`;var tt=Vx(function(){return Rt(R,Oe+"return "+fe).apply(n,P)});if(tt.source=fe,Zm(tt))throw tt;return tt}function RO(s){return Dt(s).toLowerCase()}function kO(s){return Dt(s).toUpperCase()}function TO(s,l,d){if(s=Dt(s),s&&(d||l===n))return Qw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),x=Fo(l),R=Jw(g,x),P=eb(g,x)+1;return ns(g,R,P).join("")}function DO(s,l,d){if(s=Dt(s),s&&(d||l===n))return s.slice(0,nb(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),x=eb(g,Fo(l))+1;return ns(g,0,x).join("")}function PO(s,l,d){if(s=Dt(s),s&&(d||l===n))return s.replace(B,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),x=Jw(g,Fo(l));return ns(g,x).join("")}function OO(s,l){var d=$,g=X;if(rn(l)){var x="separator"in l?l.separator:x;d="length"in l?et(l.length):d,g="omission"in l?Vr(l.omission):g}s=Dt(s);var R=s.length;if(Ba(s)){var P=Fo(s);R=P.length}if(d>=R)return s;var M=d-Ia(g);if(M<1)return g;var j=P?ns(P,0,M).join(""):s.slice(0,M);if(x===n)return j+g;if(P&&(M+=j.length-M),Qm(x)){if(s.slice(M).search(x)){var oe,se=j;for(x.global||(x=hm(x.source,Dt($e.exec(x))+"g")),x.lastIndex=0;oe=x.exec(se);)var fe=oe.index;j=j.slice(0,fe===n?M:fe)}}else if(s.indexOf(Vr(x),M)!=M){var _e=j.lastIndexOf(x);_e>-1&&(j=j.slice(0,_e))}return j+g}function LO(s){return s=Dt(s),s&&Ie.test(s)?s.replace(Fe,l8):s}var NO=Wa(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),tg=Wb("toUpperCase");function jx(s,l,d){return s=Dt(s),l=d?n:l,l===n?r8(s)?f8(s):KT(s):s.match(l)||[]}var Vx=ot(function(s,l){try{return zr(s,n,l)}catch(d){return Zm(d)?d:new Ke(d)}}),MO=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,Ym(s[d],s))}),s});function BO(s){var l=s==null?0:s.length,d=ze();return s=l?Qt(s,function(g){if(typeof g[1]!="function")throw new fo(a);return[d(g[0]),g[1]]}):[],ot(function(g){for(var x=-1;++xJ)return[];var d=he,g=or(s,he);l=ze(l),s-=he;for(var x=fm(g,l);++d0||l<0)?new ct(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=et(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ct.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ct.prototype.toArray=function(){return this.take(he)},oi(ct.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=C[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);x&&(C.prototype[l]=function(){var P=this.__wrapped__,M=g?[1]:arguments,j=P instanceof ct,oe=M[0],se=j||Ye(P),fe=function(lt){var ft=x.apply(C,Xi([lt],M));return g&&_e?ft[0]:ft};se&&d&&typeof oe=="function"&&oe.length!=1&&(j=se=!1);var _e=this.__chain__,Oe=!!this.__actions__.length,je=R&&!_e,tt=j&&!Oe;if(!R&&se){P=tt?P:new ct(this);var Ve=s.apply(P,M);return Ve.__actions__.push({func:ud,args:[fe],thisArg:n}),new po(Ve,_e)}return je&&tt?s.apply(this,M):(Ve=this.thru(fe),je?g?Ve.value()[0]:Ve.value():Ve)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Mf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(Ye(R)?R:[],x)}return this[d](function(P){return l.apply(Ye(P)?P:[],x)})}}),oi(ct.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Pt.call(za,g)||(za[g]=[]),za[g].push({name:l,func:d})}}),za[nd(n,_).name]=[{name:"wrapper",func:n}],ct.prototype.clone=L8,ct.prototype.reverse=N8,ct.prototype.value=M8,C.prototype.at=c6,C.prototype.chain=f6,C.prototype.commit=d6,C.prototype.next=p6,C.prototype.plant=m6,C.prototype.reverse=g6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=v6,C.prototype.first=C.prototype.head,yu&&(C.prototype[yu]=h6),C},$a=d8();js?((js.exports=$a)._=$a,rm._=$a):Hn._=$a}).call(F3)})(sh,sh.exports);var Da=sh.exports;let Fd;const $z=new Uint8Array(16);function Fz(){if(!Fd&&(Fd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fd($z)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function Uz(e,t=0){return Kn[e[t+0]]+Kn[e[t+1]]+Kn[e[t+2]]+Kn[e[t+3]]+"-"+Kn[e[t+4]]+Kn[e[t+5]]+"-"+Kn[e[t+6]]+Kn[e[t+7]]+"-"+Kn[e[t+8]]+Kn[e[t+9]]+"-"+Kn[e[t+10]]+Kn[e[t+11]]+Kn[e[t+12]]+Kn[e[t+13]]+Kn[e[t+14]]+Kn[e[t+15]]}const zz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ES={randomUUID:zz};function py(e,t,n){if(ES.randomUUID&&!t&&!e)return ES.randomUUID();e=e||{};const r=e.random||(e.rng||Fz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Uz(r)}function g2(e){this.message=e}g2.prototype=new Error,g2.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function CS(e){this.message=e}CS.prototype=new Error,CS.prototype.name="InvalidTokenError";var jz={};/** +}`;var tt=Vx(function(){return Rt(R,Oe+"return "+fe).apply(n,P)});if(tt.source=fe,Zm(tt))throw tt;return tt}function RO(s){return Dt(s).toLowerCase()}function kO(s){return Dt(s).toUpperCase()}function TO(s,l,d){if(s=Dt(s),s&&(d||l===n))return Qw(s);if(!s||!(l=Vr(l)))return s;var m=Fo(s),x=Fo(l),R=Jw(m,x),P=eb(m,x)+1;return ns(m,R,P).join("")}function DO(s,l,d){if(s=Dt(s),s&&(d||l===n))return s.slice(0,nb(s)+1);if(!s||!(l=Vr(l)))return s;var m=Fo(s),x=eb(m,Fo(l))+1;return ns(m,0,x).join("")}function PO(s,l,d){if(s=Dt(s),s&&(d||l===n))return s.replace(B,"");if(!s||!(l=Vr(l)))return s;var m=Fo(s),x=Jw(m,Fo(l));return ns(m,x).join("")}function OO(s,l){var d=$,m=X;if(rn(l)){var x="separator"in l?l.separator:x;d="length"in l?et(l.length):d,m="omission"in l?Vr(l.omission):m}s=Dt(s);var R=s.length;if(Ba(s)){var P=Fo(s);R=P.length}if(d>=R)return s;var M=d-Ia(m);if(M<1)return m;var j=P?ns(P,0,M).join(""):s.slice(0,M);if(x===n)return j+m;if(P&&(M+=j.length-M),Qm(x)){if(s.slice(M).search(x)){var oe,se=j;for(x.global||(x=hm(x.source,Dt($e.exec(x))+"g")),x.lastIndex=0;oe=x.exec(se);)var fe=oe.index;j=j.slice(0,fe===n?M:fe)}}else if(s.indexOf(Vr(x),M)!=M){var _e=j.lastIndexOf(x);_e>-1&&(j=j.slice(0,_e))}return j+m}function LO(s){return s=Dt(s),s&&Ie.test(s)?s.replace(Fe,l8):s}var NO=Wa(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),tg=Wb("toUpperCase");function jx(s,l,d){return s=Dt(s),l=d?n:l,l===n?r8(s)?f8(s):KT(s):s.match(l)||[]}var Vx=ot(function(s,l){try{return zr(s,n,l)}catch(d){return Zm(d)?d:new Ke(d)}}),MO=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,Ym(s[d],s))}),s});function BO(s){var l=s==null?0:s.length,d=ze();return s=l?Qt(s,function(m){if(typeof m[1]!="function")throw new fo(a);return[d(m[0]),m[1]]}):[],ot(function(m){for(var x=-1;++xJ)return[];var d=he,m=or(s,he);l=ze(l),s-=he;for(var x=fm(m,l);++d0||l<0)?new ct(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=et(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ct.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ct.prototype.toArray=function(){return this.take(he)},oi(ct.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),x=C[m?"take"+(l=="last"?"Right":""):l],R=m||/^find/.test(l);x&&(C.prototype[l]=function(){var P=this.__wrapped__,M=m?[1]:arguments,j=P instanceof ct,oe=M[0],se=j||Ye(P),fe=function(lt){var ft=x.apply(C,Xi([lt],M));return m&&_e?ft[0]:ft};se&&d&&typeof oe=="function"&&oe.length!=1&&(j=se=!1);var _e=this.__chain__,Oe=!!this.__actions__.length,je=R&&!_e,tt=j&&!Oe;if(!R&&se){P=tt?P:new ct(this);var Ve=s.apply(P,M);return Ve.__actions__.push({func:ud,args:[fe],thisArg:n}),new po(Ve,_e)}return je&&tt?s.apply(this,M):(Ve=this.thru(fe),je?m?Ve.value()[0]:Ve.value():Ve)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Mf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",m=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var x=arguments;if(m&&!this.__chain__){var R=this.value();return l.apply(Ye(R)?R:[],x)}return this[d](function(P){return l.apply(Ye(P)?P:[],x)})}}),oi(ct.prototype,function(s,l){var d=C[l];if(d){var m=d.name+"";Pt.call(za,m)||(za[m]=[]),za[m].push({name:l,func:d})}}),za[nd(n,_).name]=[{name:"wrapper",func:n}],ct.prototype.clone=L8,ct.prototype.reverse=N8,ct.prototype.value=M8,C.prototype.at=c6,C.prototype.chain=f6,C.prototype.commit=d6,C.prototype.next=p6,C.prototype.plant=m6,C.prototype.reverse=g6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=v6,C.prototype.first=C.prototype.head,yu&&(C.prototype[yu]=h6),C},$a=d8();js?((js.exports=$a)._=$a,rm._=$a):Hn._=$a}).call(F3)})(sh,sh.exports);var Da=sh.exports;let Fd;const $z=new Uint8Array(16);function Fz(){if(!Fd&&(Fd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fd($z)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function Uz(e,t=0){return Kn[e[t+0]]+Kn[e[t+1]]+Kn[e[t+2]]+Kn[e[t+3]]+"-"+Kn[e[t+4]]+Kn[e[t+5]]+"-"+Kn[e[t+6]]+Kn[e[t+7]]+"-"+Kn[e[t+8]]+Kn[e[t+9]]+"-"+Kn[e[t+10]]+Kn[e[t+11]]+Kn[e[t+12]]+Kn[e[t+13]]+Kn[e[t+14]]+Kn[e[t+15]]}const zz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ES={randomUUID:zz};function py(e,t,n){if(ES.randomUUID&&!t&&!e)return ES.randomUUID();e=e||{};const r=e.random||(e.rng||Fz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Uz(r)}function g2(e){this.message=e}g2.prototype=new Error,g2.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function CS(e){this.message=e}CS.prototype=new Error,CS.prototype.name="InvalidTokenError";var jz={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -73,12 +73,12 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Kl=D;function Vz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wz=typeof Object.is=="function"?Object.is:Vz,qz=Kl.useState,Hz=Kl.useEffect,Gz=Kl.useLayoutEffect,Kz=Kl.useDebugValue;function Yz(e,t){var n=t(),r=qz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Gz(function(){o.value=n,o.getSnapshot=t,jg(o)&&i({inst:o})},[e,n,t]),Hz(function(){return jg(o)&&i({inst:o}),e(function(){jg(o)&&i({inst:o})})},[e]),Kz(n),n}function jg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wz(e,n)}catch{return!0}}function Xz(e,t){return t()}var Zz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Xz:Yz;jz.useSyncExternalStore=Kl.useSyncExternalStore!==void 0?Kl.useSyncExternalStore:Zz;const gs=()=>{},So=gs(),Vg=Object,Xo=e=>e===So,na=e=>typeof e=="function",t0=(e,t)=>({...e,...t}),Qz=e=>na(e.then),Ud=new WeakMap;let Jz=0;const jc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Vg(e)===e&&!r&&n!=RegExp){if(o=Ud.get(e),o)return o;if(o=++Jz+"~",Ud.set(e,o),n==Array){for(o="@",i=0;i{const n=ps.get(e);return[()=>!Xo(t)&&e.get(t)||Wg,r=>{if(!Xo(t)){const o=e.get(t);t in zd||(zd[t]=o),n[5](t,t0(o,r),o||Wg)}},n[6],()=>!Xo(t)&&t in zd?zd[t]:!Xo(t)&&e.get(t)||Wg]};let y2=!0;const tj=()=>y2,[w2,b2]=hy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[gs,gs],nj=()=>{const e=v2&&document.visibilityState;return Xo(e)||e!=="hidden"},rj=e=>(v2&&document.addEventListener("visibilitychange",e),w2("focus",e),()=>{v2&&document.removeEventListener("visibilitychange",e),b2("focus",e)}),oj=e=>{const t=()=>{y2=!0,e()},n=()=>{y2=!1};return w2("online",t),w2("offline",n),()=>{b2("online",t),b2("offline",n)}},ij={isOnline:tj,isVisible:nj},sj={initFocus:rj,initReconnect:oj};rt.useId;const wR=!hy||"Deno"in window,qg=typeof navigator<"u"&&navigator.connection,AS=!wR&&qg&&(["slow-2g","2g"].includes(qg.effectiveType)||qg.saveData),bR=e=>{if(na(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?jc(e):"",[e,t]};let aj=0;const RS=()=>++aj,lj=0,uj=1,cj=2;async function fj(...e){const[t,n,r,o]=e,i=t0({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const u=i.rollbackOnError;let c=i.optimisticData;const f=m=>typeof u=="function"?u(m):u!==!1,p=i.throwOnError;if(na(n)){const m=n,b=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&m(t.get(y)._k)&&b.push(y);return Promise.all(b.map(h))}return h(n);async function h(m){const[b]=bR(m);if(!b)return;const[v,y]=ej(t,b),[A,_,w,S]=ps.get(t),k=()=>{const K=A[b];return(na(i.revalidate)?i.revalidate(v().data,m):i.revalidate!==!1)&&(delete w[b],delete S[b],K&&K[0])?K[0](cj).then(()=>v().data):v().data};if(e.length<3)return k();let T=r,E;const L=RS();_[b]=[L,0];const I=!Xo(c),q=v(),$=q.data,X=q._c,ae=Xo(X)?$:X;if(I&&(c=na(c)?c(ae,$):c,y({data:c,_c:ae})),na(T))try{T=T(ae)}catch(K){E=K}if(T&&Qz(T))if(T=await T.catch(K=>{E=K}),L!==_[b][0]){if(E)throw E;return T}else E&&I&&f(E)&&(a=!0,y({data:ae,_c:So}));if(a&&!E)if(na(a)){const K=a(T,ae);y({data:K,error:So,_c:So})}else y({data:T,error:So,_c:So});if(_[b][1]=RS(),Promise.resolve(k()).then(()=>{y({_c:So})}),E){if(p)throw E;return}return T}}const kS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},dj=(e,t)=>{if(!ps.has(e)){const n=t0(sj,t),r={},o=fj.bind(So,e);let i=gs;const a={},u=(p,h)=>{const m=a[p]||[];return a[p]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},c=(p,h,m)=>{e.set(p,h);const b=a[p];if(b)for(const v of b)v(h,m)},f=()=>{if(!ps.has(e)&&(ps.set(e,[r,{},{},{},o,c,u]),!wR)){const p=n.initFocus(setTimeout.bind(So,kS.bind(So,r,lj))),h=n.initReconnect(setTimeout.bind(So,kS.bind(So,r,uj)));i=()=>{p&&p(),h&&h(),ps.delete(e)}}};return f(),[e,o,f,i]}return[e,ps.get(e)[4]]},pj=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Xo(i)&&a>i||setTimeout(r,u,o)},hj=(e,t)=>jc(e)==jc(t),[xR,mj]=dj(new Map);t0({onLoadingSlow:gs,onSuccess:gs,onError:gs,onErrorRetry:pj,onDiscarded:gs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:AS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:AS?5e3:3e3,compare:hj,isPaused:()=>!1,cache:xR,mutate:mj,fallback:{}},ij);D.createContext({});const gj="$inf$",_R=hy&&window.__SWR_DEVTOOLS_USE__,vj=_R?window.__SWR_DEVTOOLS_USE__:[],yj=()=>{_R&&(window.__SWR_DEVTOOLS_REACT__=rt)},wj=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=bR(t),[,,,u]=ps.get(xR);if(a.startsWith(gj))return n(...i);const c=u[a];return Xo(c)?n(...i):(delete u[a],c)}),r);vj.concat(wj);yj();rt.use;const gi=Object.create(null);gi.open="0";gi.close="1";gi.ping="2";gi.pong="3";gi.message="4";gi.upgrade="5";gi.noop="6";const gp=Object.create(null);Object.keys(gi).forEach(e=>{gp[gi[e]]=e});const x2={type:"error",data:"parser error"},SR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ER=typeof ArrayBuffer=="function",CR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,my=({type:e,data:t},n,r)=>SR&&t instanceof Blob?n?r(t):TS(t,r):ER&&(t instanceof ArrayBuffer||CR(t))?n?r(t):TS(new Blob([t]),r):r(gi[e]+(t||"")),TS=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function DS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Hg;function bj(e,t){if(SR&&e.data instanceof Blob)return e.data.arrayBuffer().then(DS).then(t);if(ER&&(e.data instanceof ArrayBuffer||CR(e.data)))return t(DS(e.data));my(e,!1,n=>{Hg||(Hg=new TextEncoder),t(Hg.encode(n))})}const PS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,a,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(a&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},_j=typeof ArrayBuffer=="function",gy=(e,t)=>{if(typeof e!="string")return{type:"message",data:AR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Sj(e.substring(1),t)}:gp[n]?e.length>1?{type:gp[n],data:e.substring(1)}:{type:gp[n]}:x2},Sj=(e,t)=>{if(_j){const n=xj(e);return AR(n,t)}else return{base64:!0,data:e}},AR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},RR="",Ej=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,a)=>{my(i,!1,u=>{r[a]=u,++o===n&&t(r.join(RR))})})},Cj=(e,t)=>{const n=e.split(RR),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Gg;function jd(e){return e.reduce((t,n)=>t+n.length,0)}function Vd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){u.enqueue(x2);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if(jd(n)e){u.enqueue(x2);break}}}})}const kR=4;function Ln(e){if(e)return kj(e)}function kj(e){for(var t in Ln.prototype)e[t]=Ln.prototype[t];return e}Ln.prototype.on=Ln.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ln.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ln.prototype.off=Ln.prototype.removeListener=Ln.prototype.removeAllListeners=Ln.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Tj=Eo.setTimeout,Dj=Eo.clearTimeout;function n0(e,t){t.useNativeTimers?(e.setTimeoutFn=Tj.bind(Eo),e.clearTimeoutFn=Dj.bind(Eo)):(e.setTimeoutFn=Eo.setTimeout.bind(Eo),e.clearTimeoutFn=Eo.clearTimeout.bind(Eo))}const Pj=1.33;function Oj(e){return typeof e=="string"?Lj(e):Math.ceil((e.byteLength||e.size)*Pj)}function Lj(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function Nj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Mj(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function PR(){const e=NS(+new Date);return e!==LS?(OS=0,LS=e):e+"."+NS(OS++)}for(;Wd<_2;Wd++)Ij[DR[Wd]]=Wd;let OR=!1;try{OR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $j=OR;function LR(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||$j))return new XMLHttpRequest}catch{}if(!t)try{return new Eo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Fj(){}const Uj=function(){return new LR({xdomain:!1}).responseType!=null}();class zj extends vy{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}const n=t&&t.forceBase64;this.supportsBinary=Uj&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Cj(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ej(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=PR()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ll(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Ll=class vp extends Ln{constructor(t,n){super(),n0(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=TR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new LR(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=vp.requestsCount++,vp.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Fj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete vp.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Ll.requestsCount=0;Ll.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",MS);else if(typeof addEventListener=="function"){const e="onpagehide"in Eo?"pagehide":"unload";addEventListener(e,MS,!1)}}function MS(){for(let e in Ll.requests)Ll.requests.hasOwnProperty(e)&&Ll.requests[e].abort()}const yy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),qd=Eo.WebSocket||Eo.MozWebSocket,BS=!0,jj="arraybuffer",IS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Vj extends vy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=IS?{}:TR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=BS&&!IS?n?new qd(t,n):new qd(t):new qd(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{BS&&this.ws.send(i)}catch{}o&&yy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=PR()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!qd}}class Wj extends vy{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Rj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Aj();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:u,value:c})=>{u||(this.onPacket(c),i())}).catch(u=>{})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&yy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const qj={websocket:Vj,webtransport:Wj,polling:zj},Hj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Gj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S2(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Hj.exec(e||""),i={},a=14;for(;a--;)i[Gj[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Kj(i,i.path),i.queryKey=Yj(i,i.query),i}function Kj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Yj(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let NR=class ol extends Ln{constructor(t,n={}){super(),this.binaryType=jj,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=S2(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=S2(n.host).host),n0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Mj(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=kR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new qj[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ol.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;ol.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ol.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const a=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",a),n.once("close",u),this.once("close",c),this.once("upgrading",f),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",ol.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ol.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,MR=Object.prototype.toString,Jj=typeof Blob=="function"||typeof Blob<"u"&&MR.call(Blob)==="[object BlobConstructor]",eV=typeof File=="function"||typeof File<"u"&&MR.call(File)==="[object FileConstructor]";function wy(e){return Zj&&(e instanceof ArrayBuffer||Qj(e))||Jj&&e instanceof Blob||eV&&e instanceof File}function yp(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let u=0;u{this.io.clearTimeoutFn(i),n.apply(this,u)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(a,u)=>a?o(a):r(u);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case dt.EVENT:case dt.BINARY_EVENT:this.onevent(t);break;case dt.ACK:case dt.BINARY_ACK:this.onack(t);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:dt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}lu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};lu.prototype.reset=function(){this.attempts=0};lu.prototype.setMin=function(e){this.ms=e};lu.prototype.setMax=function(e){this.max=e};lu.prototype.setJitter=function(e){this.jitter=e};class A2 extends Ln{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,n0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new lu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||aV;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new NR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Go(n,"open",function(){r.onopen(),t&&t()}),i=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},a=Go(n,"error",i);if(this._timeout!==!1){const u=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Go(t,"ping",this.onping.bind(this)),Go(t,"data",this.ondata.bind(this)),Go(t,"error",this.onerror.bind(this)),Go(t,"close",this.onclose.bind(this)),Go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){yy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new BR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const qu={};function wp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Xj(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=qu[o]&&i in qu[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return u?c=new A2(r,t):(qu[o]||(qu[o]=new A2(r,t)),c=qu[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(wp,{Manager:A2,Socket:BR,io:wp,connect:wp});var uV=e=>{let t={},n=new Date,r=new Date;r.setDate(n.getDate()-1);let o=new Date;o.setDate(n.getDate()-7);let i=new Date;return i.setDate(n.getDate()-30),e.forEach(a=>{let u=new Date(a.createdAt),c=u.toDateString()===n.toDateString(),f=u.toDateString()===r.toDateString(),p=u>=o,h=u>=i,m;c?m="Today":f?m="Yesterday":p?m="Previous 7 days":h?m="Previous 30 days":m=u.toLocaleString("default",{month:"long",year:"numeric"}).split(" ").slice(0,1).join(" "),t[m]||(t[m]=[]),t[m].push(a)}),t},IR=_n({key:"ThreadIdToResume",default:void 0}),cV=_n({key:"ChatProfile",default:void 0}),FS=_n({key:"SessionId",default:py()}),R2=vR({key:"SessionIdSelector",get:({get:e})=>e(FS),set:({set:e},t)=>e(FS,t instanceof Bz?py():t)}),r0=_n({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),xy=_n({key:"Actions",default:[]}),_y=_n({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),$R=_n({key:"TokenCount",default:0}),Sy=_n({key:"Loading",default:!1}),Ey=_n({key:"AskUser",default:void 0}),FR=_n({key:"CallFn",default:void 0}),o0=_n({key:"ChatSettings",default:[]}),UR=vR({key:"ChatSettingsValue/Default",get:({get:e})=>e(o0).reduce((t,n)=>(t[n.id]=n.initial,t),{})}),Cy=_n({key:"ChatSettingsValue",default:UR}),Ay=_n({key:"DisplayElements",default:[]}),Ry=_n({key:"TasklistElements",default:[]}),ky=_n({key:"FirstUserInteraction",default:void 0}),fV=_n({key:"AccessToken",default:void 0});_n({key:"User",default:null});_n({key:"ChainlitConfig",default:void 0});_n({key:"ThreadHistory",default:{threads:void 0,currentThreadId:void 0,timeGroupedThreads:void 0,pageInfo:void 0},effects:[({setSelf:e,onSet:t})=>{t((n,r)=>{let o=n==null?void 0:n.timeGroupedThreads;n!=null&&n.threads&&!Da.isEqual(n.threads,r==null?void 0:r.timeGroupedThreads)&&(o=uV(n.threads)),e({...n,timeGroupedThreads:o})})}]});var dV=_n({key:"SideView",default:void 0}),Ty=_n({key:"CurrentThreadId",default:void 0}),pV=()=>{let e=Dn(Sy),t=Dn(Ay),n=Dn(Ry),r=Dn(xy),o=Dn(r0),i=Dn(Ey),a=Dn(FR),u=Dn(o0),c=Dn(Cy),f=Dn(UR),p=(o==null?void 0:o.socket.connected)&&!(o!=null&&o.error),h=!p||e||(i==null?void 0:i.spec.type)==="file"||(i==null?void 0:i.spec.type)==="action";return{actions:r,askUser:i,callFn:a,chatSettingsDefaultValue:f,chatSettingsInputs:u,chatSettingsValue:c,connected:p,disabled:h,elements:t,error:o==null?void 0:o.error,loading:e,tasklists:n}},_l=(e,t)=>{let n=["assistant_message","user_message"],r=[...n,"tool"],o=n.includes(t.type),i=r.includes(t.type),a=!t.parentId;if(a&&!i)return e;let u=a?void 0:Dy(e,t.parentId),c=(a||(u==null?void 0:u.type)!=="assistant_message")&&t.type==="tool";if(i0(e,t.id))return Py(e,t.id,t);if(c){let f=e.length>0?e[e.length-1]:void 0,p=(f==null?void 0:f.type)==="assistant_message"&&(f==null?void 0:f.id.startsWith("wrap_"));return f&&p?[...e.slice(0,e.length-1),{...f,steps:[...f.steps||[],t]}]:[...e,{...t,name:"",input:"",output:"",id:"wrap_"+t.id,type:"assistant_message",steps:[t]}]}else return!o&&"parentId"in t&&t.parentId?jR(e,t.parentId,t):"indent"in t&&t.indent&&t.indent>0?zR(e,t.indent,t):[...e,t]},zR=(e,t,n,r=0)=>{let o=[...e];if(o.length===0)return[...o,n];{let i=o.length-1,a=o[i];return a.steps=a.steps||[],r+1===t?(a.steps=[...a.steps,n],o[i]={...a},o):(a.steps=zR(a.steps,t,n,r+1),o[i]={...a},o)}},jR=(e,t,n)=>{let r=[...e];for(let o=0;o{for(let n of e){if(Da.isEqual(n.id,t))return n;if(n.steps&&n.steps.length>0){let r=Dy(n.steps,t);if(r)return r}}},i0=(e,t)=>Dy(e,t)!==void 0,Py=(e,t,n)=>{let r=[...e];for(let o=0;o{let n=[...e];for(let r=0;r{let i=[...e];for(let a=0;a{let c=new FormData;c.append("file",e),o.open("POST",this.buildEndpoint(`/project/file?session_id=${n}`),!0),r&&o.setRequestHeader("Authorization",this.checkToken(r)),o.upload.onprogress=function(f){if(f.lengthComputable){let p=f.loaded/f.total*100;t(p)}},o.onload=function(){if(o.status===200){let f=JSON.parse(o.responseText);a(f)}else u("Upload failed")},o.onerror=function(){u("Upload error")},o.send(c)});return{xhr:o,promise:i}}getElementUrl(e,t){let n=`?session_id=${t}`;return this.buildEndpoint(`/project/file/${e}${n}`)}getLogoEndpoint(e){return this.buildEndpoint(`/logo?theme=${e}`)}getOAuthEndpoint(e){return this.buildEndpoint(`/auth/oauth/${e}`)}},Oy=D.createContext(new qR("http://localhost:8000","webapp")),vV=()=>{let e=D.useContext(Oy),t=Dn(fV),n=Dn(r0),r=Dn(Ey),o=Dn(R2),i=mp(o0),a=mp(R2),u=mp(Cy),c=bn(ky),f=bn(Sy),p=bn(_y),h=bn(Ay),m=bn(Ry),b=bn(xy),v=bn($R),y=bn(IR),A=bn(dV),_=bn(Ty),w=D.useCallback(()=>{n==null||n.socket.emit("clear_session"),n==null||n.socket.disconnect(),y(void 0),a(),c(void 0),p([]),h([]),m([]),b([]),v(0),i(),u(),A(void 0),_(void 0)},[n]),S=D.useCallback(($,X=[])=>{$.id||($.id=py()),$.createdAt||($.createdAt=new Date().toISOString()),p(ae=>_l(ae,$)),n==null||n.socket.emit("client_message",{message:$,fileReferences:X})},[n==null?void 0:n.socket]),k=D.useCallback(($,X,ae,K)=>{n==null||n.socket.emit("audio_chunk",{isStart:$,mimeType:X,elapsedTime:ae,data:K})},[n==null?void 0:n.socket]),T=D.useCallback($=>{n==null||n.socket.emit("audio_end",{fileReferences:$})},[n==null?void 0:n.socket]),E=D.useCallback($=>{r&&(p(X=>_l(X,$)),r.callback($))},[r]),L=D.useCallback($=>{n==null||n.socket.emit("chat_settings_change",$)},[n==null?void 0:n.socket]),I=D.useCallback(()=>{p($=>$.map(X=>(X.streaming=!1,X))),f(!1),n==null||n.socket.emit("stop")},[n==null?void 0:n.socket]),q=D.useCallback($=>{let X=n==null?void 0:n.socket;if(!X)return;let ae=new Promise((K,H)=>{X.once("action_response",Q=>{Q.status?K(Q):H(Q)})});return X.emit("action_call",$),ae},[n==null?void 0:n.socket]);return{uploadFile:D.useCallback(($,X)=>e.uploadFile($,X,o,t),[o,t]),callAction:q,clear:w,replyMessage:E,sendMessage:S,sendAudioChunk:k,endAudioStream:T,stopTask:I,setIdToResume:y,updateChatSettings:L}},yV=()=>{let e=Dn(_y),t=Dn(ky);return{threadId:Dn(Ty),messages:e,firstInteraction:t}},wV=()=>{let e=D.useContext(Oy),t=Dn(R2),[n,r]=SS(r0),o=mp(Cy),i=bn(ky),a=bn(Sy),u=bn(_y),c=bn(Ey),f=bn(FR),p=bn(Ay),h=bn(Ry),m=bn(xy),b=bn(o0),v=bn($R),[y,A]=SS(cV),_=Dn(IR),w=bn(Ty),S=D.useCallback(({userEnv:E,accessToken:L})=>{let{protocol:I,host:q,pathname:$}=new URL(e.httpEndpoint),X=`${I}//${q}`,ae=$&&$!=="/"?`${$}/ws/socket.io`:"/ws/socket.io",K=wp(X,{path:ae,extraHeaders:{Authorization:L||"","X-Chainlit-Client-Type":e.type,"X-Chainlit-Session-Id":t,"X-Chainlit-Thread-Id":_||"","user-env":JSON.stringify(E),"X-Chainlit-Chat-Profile":y?encodeURIComponent(y):""}});r(H=>{var Q,re;return(Q=H==null?void 0:H.socket)==null||Q.removeAllListeners(),(re=H==null?void 0:H.socket)==null||re.close(),{socket:K}}),K.on("connect",()=>{K.emit("connection_successful"),r(H=>({...H,error:!1}))}),K.on("connect_error",H=>{r(Q=>({...Q,error:!0}))}),K.on("task_start",()=>{a(!0)}),K.on("task_end",()=>{a(!1)}),K.on("reload",()=>{K.emit("clear_session"),window.location.reload()}),K.on("resume_thread",H=>{var le,J;let Q=[];for(let pe of H.steps)Q=_l(Q,pe);(le=H.metadata)!=null&&le.chat_profile&&A((J=H.metadata)==null?void 0:J.chat_profile),u(Q);let re=H.elements||[];h(re.filter(pe=>pe.type==="tasklist")),p(re.filter(pe=>["avatar","tasklist"].indexOf(pe.type)===-1))}),K.on("new_message",H=>{u(Q=>_l(Q,H))}),K.on("first_interaction",H=>{i(H.interaction),w(H.thread_id)}),K.on("update_message",H=>{u(Q=>Py(Q,H.id,H))}),K.on("delete_message",H=>{u(Q=>VR(Q,H.id))}),K.on("stream_start",H=>{u(Q=>_l(Q,H))}),K.on("stream_token",({id:H,token:Q,isSequence:re,isInput:le})=>{u(J=>WR(J,H,Q,re,le))}),K.on("ask",({msg:H,spec:Q},re)=>{c({spec:Q,callback:re}),u(le=>_l(le,H)),a(!1)}),K.on("ask_timeout",()=>{c(void 0),a(!1)}),K.on("clear_ask",()=>{c(void 0)}),K.on("call_fn",({name:H,args:Q},re)=>{f({name:H,args:Q,callback:re})}),K.on("clear_call_fn",()=>{f(void 0)}),K.on("call_fn_timeout",()=>{f(void 0)}),K.on("chat_settings",H=>{b(H),o()}),K.on("element",H=>{!H.url&&H.chainlitKey&&(H.url=e.getElementUrl(H.chainlitKey,t)),H.type==="tasklist"?h(Q=>{let re=Q.findIndex(le=>le.id===H.id);return re===-1?[...Q,H]:[...Q.slice(0,re),H,...Q.slice(re+1)]}):p(Q=>{let re=Q.findIndex(le=>le.id===H.id);return re===-1?[...Q,H]:[...Q.slice(0,re),H,...Q.slice(re+1)]})}),K.on("remove_element",H=>{p(Q=>Q.filter(re=>re.id!==H.id)),h(Q=>Q.filter(re=>re.id!==H.id))}),K.on("action",H=>{m(Q=>[...Q,H])}),K.on("remove_action",H=>{m(Q=>{let re=Q.findIndex(le=>le.id===H.id);return re===-1?Q:[...Q.slice(0,re),...Q.slice(re+1)]})}),K.on("token_usage",H=>{v(Q=>Q+H)})},[r,t,y]),k=D.useCallback(Da.debounce(S,200),[S]),T=D.useCallback(()=>{n!=null&&n.socket&&(n.socket.removeAllListeners(),n.socket.close())},[n]);return{connect:k,disconnect:T,session:n,sessionId:t,chatProfile:y,idToResume:_,setChatProfile:A}};function HR(e,t){return function(){return e.apply(t,arguments)}}const{toString:bV}=Object.prototype,{getPrototypeOf:Ly}=Object,s0=(e=>t=>{const n=bV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>s0(t)===e),a0=e=>t=>typeof t===e,{isArray:uu}=Array,Vc=a0("undefined");function xV(e){return e!==null&&!Vc(e)&&e.constructor!==null&&!Vc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GR=ti("ArrayBuffer");function _V(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GR(e.buffer),t}const SV=a0("string"),Qr=a0("function"),KR=a0("number"),l0=e=>e!==null&&typeof e=="object",EV=e=>e===!0||e===!1,bp=e=>{if(s0(e)!=="object")return!1;const t=Ly(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CV=ti("Date"),AV=ti("File"),RV=ti("Blob"),kV=ti("FileList"),TV=e=>l0(e)&&Qr(e.pipe),DV=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=s0(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},PV=ti("URLSearchParams"),[OV,LV,NV,MV]=["ReadableStream","Request","Response","Headers"].map(ti),BV=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),uu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,XR=e=>!Vc(e)&&e!==aa;function k2(){const{caseless:e}=XR(this)&&this||{},t={},n=(r,o)=>{const i=e&&YR(t,o)||o;bp(t[i])&&bp(r)?t[i]=k2(t[i],r):bp(r)?t[i]=k2({},r):uu(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(mf(t,(o,i)=>{n&&Qr(o)?e[i]=HR(o,n):e[i]=o},{allOwnKeys:r}),e),$V=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FV=(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)},UV=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Ly(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zV=(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},jV=e=>{if(!e)return null;if(uu(e))return e;let t=e.length;if(!KR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ly(Uint8Array)),WV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qV=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HV=ti("HTMLFormElement"),GV=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KV=ti("RegExp"),ZR=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mf(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},YV=e=>{ZR(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(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+"'")})}})},XV=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return uu(e)?r(e):r(String(e).split(t)),n},ZV=()=>{},QV=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Kg="abcdefghijklmnopqrstuvwxyz",jS="0123456789",QR={DIGIT:jS,ALPHA:Kg,ALPHA_DIGIT:Kg+Kg.toUpperCase()+jS},JV=(e=16,t=QR.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eW(e){return!!(e&&Qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tW=e=>{const t=new Array(10),n=(r,o)=>{if(l0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=uu(r)?[]:{};return mf(r,(a,u)=>{const c=n(a,o+1);!Vc(c)&&(i[u]=c)}),t[o]=void 0,i}}return r};return n(e,0)},nW=ti("AsyncFunction"),rW=e=>e&&(l0(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),JR=((e,t)=>e?setImmediate:t?((n,r)=>(aa.addEventListener("message",({source:o,data:i})=>{o===aa&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),aa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(aa.postMessage)),oW=typeof queueMicrotask<"u"?queueMicrotask.bind(aa):typeof process<"u"&&process.nextTick||JR,Z={isArray:uu,isArrayBuffer:GR,isBuffer:xV,isFormData:DV,isArrayBufferView:_V,isString:SV,isNumber:KR,isBoolean:EV,isObject:l0,isPlainObject:bp,isReadableStream:OV,isRequest:LV,isResponse:NV,isHeaders:MV,isUndefined:Vc,isDate:CV,isFile:AV,isBlob:RV,isRegExp:KV,isFunction:Qr,isStream:TV,isURLSearchParams:PV,isTypedArray:VV,isFileList:kV,forEach:mf,merge:k2,extend:IV,trim:BV,stripBOM:$V,inherits:FV,toFlatObject:UV,kindOf:s0,kindOfTest:ti,endsWith:zV,toArray:jV,forEachEntry:WV,matchAll:qV,isHTMLForm:HV,hasOwnProperty:zS,hasOwnProp:zS,reduceDescriptors:ZR,freezeMethods:YV,toObjectSet:XV,toCamelCase:GV,noop:ZV,toFiniteNumber:QV,findKey:YR,global:aa,isContextDefined:XR,ALPHABET:QR,generateString:JV,isSpecCompliantForm:eW,toJSONObject:tW,isAsyncFn:nW,isThenable:rW,setImmediate:JR,asap:oW};function Ze(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Ze,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:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const ek=Ze.prototype,tk={};["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=>{tk[e]={value:e}});Object.defineProperties(Ze,tk);Object.defineProperty(ek,"isAxiosError",{value:!0});Ze.from=(e,t,n,r,o,i)=>{const a=Object.create(ek);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Ze.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const iW=null;function T2(e){return Z.isPlainObject(e)||Z.isArray(e)}function nk(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function VS(e,t,n){return e?e.concat(t).map(function(o,i){return o=nk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sW(e){return Z.isArray(e)&&!e.some(T2)}const aW=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function u0(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,A){return!Z.isUndefined(A[y])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(Z.isDate(v))return v.toISOString();if(!c&&Z.isBlob(v))throw new Ze("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(v)||Z.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,y,A){let _=v;if(v&&!A&&typeof v=="object"){if(Z.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(Z.isArray(v)&&sW(v)||(Z.isFileList(v)||Z.endsWith(y,"[]"))&&(_=Z.toArray(v)))return y=nk(y),_.forEach(function(S,k){!(Z.isUndefined(S)||S===null)&&t.append(a===!0?VS([y],k,i):a===null?y:y+"[]",f(S))}),!1}return T2(v)?!0:(t.append(VS(A,y,i),f(v)),!1)}const h=[],m=Object.assign(aW,{defaultVisitor:p,convertValue:f,isVisitable:T2});function b(v,y){if(!Z.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(v),Z.forEach(v,function(_,w){(!(Z.isUndefined(_)||_===null)&&o.call(t,_,Z.isString(w)?w.trim():w,y,m))===!0&&b(_,y?y.concat(w):[w])}),h.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function WS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ny(e,t){this._pairs=[],e&&u0(e,this,t)}const rk=Ny.prototype;rk.append=function(t,n){this._pairs.push([t,n])};rk.toString=function(t){const n=t?function(r){return t.call(this,r,WS)}:WS;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ok(e,t,n){if(!t)return e;const r=n&&n.encode||lW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Z.isURLSearchParams(t)?t.toString():new Ny(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qS{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){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ik={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uW=typeof URLSearchParams<"u"?URLSearchParams:Ny,cW=typeof FormData<"u"?FormData:null,fW=typeof Blob<"u"?Blob:null,dW={isBrowser:!0,classes:{URLSearchParams:uW,FormData:cW,Blob:fW},protocols:["http","https","file","blob","url","data"]},My=typeof window<"u"&&typeof document<"u",D2=typeof navigator=="object"&&navigator||void 0,pW=My&&(!D2||["ReactNative","NativeScript","NS"].indexOf(D2.product)<0),hW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mW=My&&window.location.href||"http://localhost",gW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:My,hasStandardBrowserEnv:pW,hasStandardBrowserWebWorkerEnv:hW,navigator:D2,origin:mW},Symbol.toStringTag,{value:"Module"})),Nr={...gW,...dW};function vW(e,t){return u0(e,new Nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Nr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yW(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wW(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Z.isArray(o[a])&&(o[a]=wW(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(yW(r),o,n,0)}),n}return null}function bW(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gf={transitional:ik,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(sk(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vW(t,this.formSerializer).toString();if((u=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return u0(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bW(t)):t}],transformResponse:[function(t){const n=this.transitional||gf.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Ze.from(u,Ze.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{gf.headers[e]={}});const xW=Z.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"]),_W=e=>{const t={};let n,r,o;return e&&e.split(` + */var Kl=D;function Vz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wz=typeof Object.is=="function"?Object.is:Vz,qz=Kl.useState,Hz=Kl.useEffect,Gz=Kl.useLayoutEffect,Kz=Kl.useDebugValue;function Yz(e,t){var n=t(),r=qz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Gz(function(){o.value=n,o.getSnapshot=t,jg(o)&&i({inst:o})},[e,n,t]),Hz(function(){return jg(o)&&i({inst:o}),e(function(){jg(o)&&i({inst:o})})},[e]),Kz(n),n}function jg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wz(e,n)}catch{return!0}}function Xz(e,t){return t()}var Zz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Xz:Yz;jz.useSyncExternalStore=Kl.useSyncExternalStore!==void 0?Kl.useSyncExternalStore:Zz;const gs=()=>{},So=gs(),Vg=Object,Xo=e=>e===So,na=e=>typeof e=="function",t0=(e,t)=>({...e,...t}),Qz=e=>na(e.then),Ud=new WeakMap;let Jz=0;const jc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Vg(e)===e&&!r&&n!=RegExp){if(o=Ud.get(e),o)return o;if(o=++Jz+"~",Ud.set(e,o),n==Array){for(o="@",i=0;i{const n=ps.get(e);return[()=>!Xo(t)&&e.get(t)||Wg,r=>{if(!Xo(t)){const o=e.get(t);t in zd||(zd[t]=o),n[5](t,t0(o,r),o||Wg)}},n[6],()=>!Xo(t)&&t in zd?zd[t]:!Xo(t)&&e.get(t)||Wg]};let y2=!0;const tj=()=>y2,[w2,b2]=hy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[gs,gs],nj=()=>{const e=v2&&document.visibilityState;return Xo(e)||e!=="hidden"},rj=e=>(v2&&document.addEventListener("visibilitychange",e),w2("focus",e),()=>{v2&&document.removeEventListener("visibilitychange",e),b2("focus",e)}),oj=e=>{const t=()=>{y2=!0,e()},n=()=>{y2=!1};return w2("online",t),w2("offline",n),()=>{b2("online",t),b2("offline",n)}},ij={isOnline:tj,isVisible:nj},sj={initFocus:rj,initReconnect:oj};rt.useId;const wR=!hy||"Deno"in window,qg=typeof navigator<"u"&&navigator.connection,AS=!wR&&qg&&(["slow-2g","2g"].includes(qg.effectiveType)||qg.saveData),bR=e=>{if(na(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?jc(e):"",[e,t]};let aj=0;const RS=()=>++aj,lj=0,uj=1,cj=2;async function fj(...e){const[t,n,r,o]=e,i=t0({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const u=i.rollbackOnError;let c=i.optimisticData;const f=g=>typeof u=="function"?u(g):u!==!1,p=i.throwOnError;if(na(n)){const g=n,b=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&g(t.get(y)._k)&&b.push(y);return Promise.all(b.map(h))}return h(n);async function h(g){const[b]=bR(g);if(!b)return;const[v,y]=ej(t,b),[A,_,w,S]=ps.get(t),k=()=>{const K=A[b];return(na(i.revalidate)?i.revalidate(v().data,g):i.revalidate!==!1)&&(delete w[b],delete S[b],K&&K[0])?K[0](cj).then(()=>v().data):v().data};if(e.length<3)return k();let T=r,E;const L=RS();_[b]=[L,0];const I=!Xo(c),q=v(),$=q.data,X=q._c,ae=Xo(X)?$:X;if(I&&(c=na(c)?c(ae,$):c,y({data:c,_c:ae})),na(T))try{T=T(ae)}catch(K){E=K}if(T&&Qz(T))if(T=await T.catch(K=>{E=K}),L!==_[b][0]){if(E)throw E;return T}else E&&I&&f(E)&&(a=!0,y({data:ae,_c:So}));if(a&&!E)if(na(a)){const K=a(T,ae);y({data:K,error:So,_c:So})}else y({data:T,error:So,_c:So});if(_[b][1]=RS(),Promise.resolve(k()).then(()=>{y({_c:So})}),E){if(p)throw E;return}return T}}const kS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},dj=(e,t)=>{if(!ps.has(e)){const n=t0(sj,t),r={},o=fj.bind(So,e);let i=gs;const a={},u=(p,h)=>{const g=a[p]||[];return a[p]=g,g.push(h),()=>g.splice(g.indexOf(h),1)},c=(p,h,g)=>{e.set(p,h);const b=a[p];if(b)for(const v of b)v(h,g)},f=()=>{if(!ps.has(e)&&(ps.set(e,[r,{},{},{},o,c,u]),!wR)){const p=n.initFocus(setTimeout.bind(So,kS.bind(So,r,lj))),h=n.initReconnect(setTimeout.bind(So,kS.bind(So,r,uj)));i=()=>{p&&p(),h&&h(),ps.delete(e)}}};return f(),[e,o,f,i]}return[e,ps.get(e)[4]]},pj=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Xo(i)&&a>i||setTimeout(r,u,o)},hj=(e,t)=>jc(e)==jc(t),[xR,mj]=dj(new Map);t0({onLoadingSlow:gs,onSuccess:gs,onError:gs,onErrorRetry:pj,onDiscarded:gs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:AS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:AS?5e3:3e3,compare:hj,isPaused:()=>!1,cache:xR,mutate:mj,fallback:{}},ij);D.createContext({});const gj="$inf$",_R=hy&&window.__SWR_DEVTOOLS_USE__,vj=_R?window.__SWR_DEVTOOLS_USE__:[],yj=()=>{_R&&(window.__SWR_DEVTOOLS_REACT__=rt)},wj=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=bR(t),[,,,u]=ps.get(xR);if(a.startsWith(gj))return n(...i);const c=u[a];return Xo(c)?n(...i):(delete u[a],c)}),r);vj.concat(wj);yj();rt.use;const gi=Object.create(null);gi.open="0";gi.close="1";gi.ping="2";gi.pong="3";gi.message="4";gi.upgrade="5";gi.noop="6";const gp=Object.create(null);Object.keys(gi).forEach(e=>{gp[gi[e]]=e});const x2={type:"error",data:"parser error"},SR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ER=typeof ArrayBuffer=="function",CR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,my=({type:e,data:t},n,r)=>SR&&t instanceof Blob?n?r(t):TS(t,r):ER&&(t instanceof ArrayBuffer||CR(t))?n?r(t):TS(new Blob([t]),r):r(gi[e]+(t||"")),TS=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function DS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Hg;function bj(e,t){if(SR&&e.data instanceof Blob)return e.data.arrayBuffer().then(DS).then(t);if(ER&&(e.data instanceof ArrayBuffer||CR(e.data)))return t(DS(e.data));my(e,!1,n=>{Hg||(Hg=new TextEncoder),t(Hg.encode(n))})}const PS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,a,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(a&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},_j=typeof ArrayBuffer=="function",gy=(e,t)=>{if(typeof e!="string")return{type:"message",data:AR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Sj(e.substring(1),t)}:gp[n]?e.length>1?{type:gp[n],data:e.substring(1)}:{type:gp[n]}:x2},Sj=(e,t)=>{if(_j){const n=xj(e);return AR(n,t)}else return{base64:!0,data:e}},AR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},RR="",Ej=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,a)=>{my(i,!1,u=>{r[a]=u,++o===n&&t(r.join(RR))})})},Cj=(e,t)=>{const n=e.split(RR),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Gg;function jd(e){return e.reduce((t,n)=>t+n.length,0)}function Vd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){u.enqueue(x2);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if(jd(n)e){u.enqueue(x2);break}}}})}const kR=4;function Ln(e){if(e)return kj(e)}function kj(e){for(var t in Ln.prototype)e[t]=Ln.prototype[t];return e}Ln.prototype.on=Ln.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ln.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ln.prototype.off=Ln.prototype.removeListener=Ln.prototype.removeAllListeners=Ln.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Tj=Eo.setTimeout,Dj=Eo.clearTimeout;function n0(e,t){t.useNativeTimers?(e.setTimeoutFn=Tj.bind(Eo),e.clearTimeoutFn=Dj.bind(Eo)):(e.setTimeoutFn=Eo.setTimeout.bind(Eo),e.clearTimeoutFn=Eo.clearTimeout.bind(Eo))}const Pj=1.33;function Oj(e){return typeof e=="string"?Lj(e):Math.ceil((e.byteLength||e.size)*Pj)}function Lj(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function Nj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Mj(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function PR(){const e=NS(+new Date);return e!==LS?(OS=0,LS=e):e+"."+NS(OS++)}for(;Wd<_2;Wd++)Ij[DR[Wd]]=Wd;let OR=!1;try{OR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $j=OR;function LR(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||$j))return new XMLHttpRequest}catch{}if(!t)try{return new Eo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Fj(){}const Uj=function(){return new LR({xdomain:!1}).responseType!=null}();class zj extends vy{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}const n=t&&t.forceBase64;this.supportsBinary=Uj&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Cj(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ej(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=PR()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ll(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Ll=class vp extends Ln{constructor(t,n){super(),n0(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=TR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new LR(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=vp.requestsCount++,vp.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Fj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete vp.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Ll.requestsCount=0;Ll.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",MS);else if(typeof addEventListener=="function"){const e="onpagehide"in Eo?"pagehide":"unload";addEventListener(e,MS,!1)}}function MS(){for(let e in Ll.requests)Ll.requests.hasOwnProperty(e)&&Ll.requests[e].abort()}const yy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),qd=Eo.WebSocket||Eo.MozWebSocket,BS=!0,jj="arraybuffer",IS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Vj extends vy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=IS?{}:TR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=BS&&!IS?n?new qd(t,n):new qd(t):new qd(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{BS&&this.ws.send(i)}catch{}o&&yy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=PR()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!qd}}class Wj extends vy{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Rj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Aj();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:u,value:c})=>{u||(this.onPacket(c),i())}).catch(u=>{})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&yy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const qj={websocket:Vj,webtransport:Wj,polling:zj},Hj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Gj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S2(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Hj.exec(e||""),i={},a=14;for(;a--;)i[Gj[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Kj(i,i.path),i.queryKey=Yj(i,i.query),i}function Kj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Yj(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let NR=class ol extends Ln{constructor(t,n={}){super(),this.binaryType=jj,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=S2(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=S2(n.host).host),n0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Mj(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=kR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new qj[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ol.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;ol.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ol.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=n.name,this.emitReserved("upgradeError",g)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const a=h=>{const g=new Error("probe error: "+h);g.transport=n.name,i(),this.emitReserved("upgradeError",g)};function u(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",a),n.once("close",u),this.once("close",c),this.once("upgrading",f),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",ol.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ol.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,MR=Object.prototype.toString,Jj=typeof Blob=="function"||typeof Blob<"u"&&MR.call(Blob)==="[object BlobConstructor]",eV=typeof File=="function"||typeof File<"u"&&MR.call(File)==="[object FileConstructor]";function wy(e){return Zj&&(e instanceof ArrayBuffer||Qj(e))||Jj&&e instanceof Blob||eV&&e instanceof File}function yp(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let u=0;u{this.io.clearTimeoutFn(i),n.apply(this,u)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(a,u)=>a?o(a):r(u);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case dt.EVENT:case dt.BINARY_EVENT:this.onevent(t);break;case dt.ACK:case dt.BINARY_ACK:this.onack(t);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:dt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}lu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};lu.prototype.reset=function(){this.attempts=0};lu.prototype.setMin=function(e){this.ms=e};lu.prototype.setMax=function(e){this.max=e};lu.prototype.setJitter=function(e){this.jitter=e};class A2 extends Ln{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,n0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new lu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||aV;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new NR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Go(n,"open",function(){r.onopen(),t&&t()}),i=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},a=Go(n,"error",i);if(this._timeout!==!1){const u=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Go(t,"ping",this.onping.bind(this)),Go(t,"data",this.ondata.bind(this)),Go(t,"error",this.onerror.bind(this)),Go(t,"close",this.onclose.bind(this)),Go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){yy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new BR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const qu={};function wp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Xj(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=qu[o]&&i in qu[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return u?c=new A2(r,t):(qu[o]||(qu[o]=new A2(r,t)),c=qu[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(wp,{Manager:A2,Socket:BR,io:wp,connect:wp});var uV=e=>{let t={},n=new Date,r=new Date;r.setDate(n.getDate()-1);let o=new Date;o.setDate(n.getDate()-7);let i=new Date;return i.setDate(n.getDate()-30),e.forEach(a=>{let u=new Date(a.createdAt),c=u.toDateString()===n.toDateString(),f=u.toDateString()===r.toDateString(),p=u>=o,h=u>=i,g;c?g="Today":f?g="Yesterday":p?g="Previous 7 days":h?g="Previous 30 days":g=u.toLocaleString("default",{month:"long",year:"numeric"}).split(" ").slice(0,1).join(" "),t[g]||(t[g]=[]),t[g].push(a)}),t},IR=_n({key:"ThreadIdToResume",default:void 0}),cV=_n({key:"ChatProfile",default:void 0}),FS=_n({key:"SessionId",default:py()}),R2=vR({key:"SessionIdSelector",get:({get:e})=>e(FS),set:({set:e},t)=>e(FS,t instanceof Bz?py():t)}),r0=_n({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),xy=_n({key:"Actions",default:[]}),_y=_n({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),$R=_n({key:"TokenCount",default:0}),Sy=_n({key:"Loading",default:!1}),Ey=_n({key:"AskUser",default:void 0}),FR=_n({key:"CallFn",default:void 0}),o0=_n({key:"ChatSettings",default:[]}),UR=vR({key:"ChatSettingsValue/Default",get:({get:e})=>e(o0).reduce((t,n)=>(t[n.id]=n.initial,t),{})}),Cy=_n({key:"ChatSettingsValue",default:UR}),Ay=_n({key:"DisplayElements",default:[]}),Ry=_n({key:"TasklistElements",default:[]}),ky=_n({key:"FirstUserInteraction",default:void 0}),fV=_n({key:"AccessToken",default:void 0});_n({key:"User",default:null});_n({key:"ChainlitConfig",default:void 0});_n({key:"ThreadHistory",default:{threads:void 0,currentThreadId:void 0,timeGroupedThreads:void 0,pageInfo:void 0},effects:[({setSelf:e,onSet:t})=>{t((n,r)=>{let o=n==null?void 0:n.timeGroupedThreads;n!=null&&n.threads&&!Da.isEqual(n.threads,r==null?void 0:r.timeGroupedThreads)&&(o=uV(n.threads)),e({...n,timeGroupedThreads:o})})}]});var dV=_n({key:"SideView",default:void 0}),Ty=_n({key:"CurrentThreadId",default:void 0}),pV=()=>{let e=Dn(Sy),t=Dn(Ay),n=Dn(Ry),r=Dn(xy),o=Dn(r0),i=Dn(Ey),a=Dn(FR),u=Dn(o0),c=Dn(Cy),f=Dn(UR),p=(o==null?void 0:o.socket.connected)&&!(o!=null&&o.error),h=!p||e||(i==null?void 0:i.spec.type)==="file"||(i==null?void 0:i.spec.type)==="action";return{actions:r,askUser:i,callFn:a,chatSettingsDefaultValue:f,chatSettingsInputs:u,chatSettingsValue:c,connected:p,disabled:h,elements:t,error:o==null?void 0:o.error,loading:e,tasklists:n}},_l=(e,t)=>{let n=["assistant_message","user_message"],r=[...n,"tool"],o=n.includes(t.type),i=r.includes(t.type),a=!t.parentId;if(a&&!i)return e;let u=a?void 0:Dy(e,t.parentId),c=(a||(u==null?void 0:u.type)!=="assistant_message")&&t.type==="tool";if(i0(e,t.id))return Py(e,t.id,t);if(c){let f=e.length>0?e[e.length-1]:void 0,p=(f==null?void 0:f.type)==="assistant_message"&&(f==null?void 0:f.id.startsWith("wrap_"));return f&&p?[...e.slice(0,e.length-1),{...f,steps:[...f.steps||[],t]}]:[...e,{...t,name:"",input:"",output:"",id:"wrap_"+t.id,type:"assistant_message",steps:[t]}]}else return!o&&"parentId"in t&&t.parentId?jR(e,t.parentId,t):"indent"in t&&t.indent&&t.indent>0?zR(e,t.indent,t):[...e,t]},zR=(e,t,n,r=0)=>{let o=[...e];if(o.length===0)return[...o,n];{let i=o.length-1,a=o[i];return a.steps=a.steps||[],r+1===t?(a.steps=[...a.steps,n],o[i]={...a},o):(a.steps=zR(a.steps,t,n,r+1),o[i]={...a},o)}},jR=(e,t,n)=>{let r=[...e];for(let o=0;o{for(let n of e){if(Da.isEqual(n.id,t))return n;if(n.steps&&n.steps.length>0){let r=Dy(n.steps,t);if(r)return r}}},i0=(e,t)=>Dy(e,t)!==void 0,Py=(e,t,n)=>{let r=[...e];for(let o=0;o{let n=[...e];for(let r=0;r{let i=[...e];for(let a=0;a{let c=new FormData;c.append("file",e),o.open("POST",this.buildEndpoint(`/project/file?session_id=${n}`),!0),r&&o.setRequestHeader("Authorization",this.checkToken(r)),o.upload.onprogress=function(f){if(f.lengthComputable){let p=f.loaded/f.total*100;t(p)}},o.onload=function(){if(o.status===200){let f=JSON.parse(o.responseText);a(f)}else u("Upload failed")},o.onerror=function(){u("Upload error")},o.send(c)});return{xhr:o,promise:i}}getElementUrl(e,t){let n=`?session_id=${t}`;return this.buildEndpoint(`/project/file/${e}${n}`)}getLogoEndpoint(e){return this.buildEndpoint(`/logo?theme=${e}`)}getOAuthEndpoint(e){return this.buildEndpoint(`/auth/oauth/${e}`)}},Oy=D.createContext(new qR("http://localhost:8000","webapp")),vV=()=>{let e=D.useContext(Oy),t=Dn(fV),n=Dn(r0),r=Dn(Ey),o=Dn(R2),i=mp(o0),a=mp(R2),u=mp(Cy),c=bn(ky),f=bn(Sy),p=bn(_y),h=bn(Ay),g=bn(Ry),b=bn(xy),v=bn($R),y=bn(IR),A=bn(dV),_=bn(Ty),w=D.useCallback(()=>{n==null||n.socket.emit("clear_session"),n==null||n.socket.disconnect(),y(void 0),a(),c(void 0),p([]),h([]),g([]),b([]),v(0),i(),u(),A(void 0),_(void 0)},[n]),S=D.useCallback(($,X=[])=>{$.id||($.id=py()),$.createdAt||($.createdAt=new Date().toISOString()),p(ae=>_l(ae,$)),n==null||n.socket.emit("client_message",{message:$,fileReferences:X})},[n==null?void 0:n.socket]),k=D.useCallback(($,X,ae,K)=>{n==null||n.socket.emit("audio_chunk",{isStart:$,mimeType:X,elapsedTime:ae,data:K})},[n==null?void 0:n.socket]),T=D.useCallback($=>{n==null||n.socket.emit("audio_end",{fileReferences:$})},[n==null?void 0:n.socket]),E=D.useCallback($=>{r&&(p(X=>_l(X,$)),r.callback($))},[r]),L=D.useCallback($=>{n==null||n.socket.emit("chat_settings_change",$)},[n==null?void 0:n.socket]),I=D.useCallback(()=>{p($=>$.map(X=>(X.streaming=!1,X))),f(!1),n==null||n.socket.emit("stop")},[n==null?void 0:n.socket]),q=D.useCallback($=>{let X=n==null?void 0:n.socket;if(!X)return;let ae=new Promise((K,H)=>{X.once("action_response",Q=>{Q.status?K(Q):H(Q)})});return X.emit("action_call",$),ae},[n==null?void 0:n.socket]);return{uploadFile:D.useCallback(($,X)=>e.uploadFile($,X,o,t),[o,t]),callAction:q,clear:w,replyMessage:E,sendMessage:S,sendAudioChunk:k,endAudioStream:T,stopTask:I,setIdToResume:y,updateChatSettings:L}},yV=()=>{let e=Dn(_y),t=Dn(ky);return{threadId:Dn(Ty),messages:e,firstInteraction:t}},wV=()=>{let e=D.useContext(Oy),t=Dn(R2),[n,r]=SS(r0),o=mp(Cy),i=bn(ky),a=bn(Sy),u=bn(_y),c=bn(Ey),f=bn(FR),p=bn(Ay),h=bn(Ry),g=bn(xy),b=bn(o0),v=bn($R),[y,A]=SS(cV),_=Dn(IR),w=bn(Ty),S=D.useCallback(({userEnv:E,accessToken:L})=>{let{protocol:I,host:q,pathname:$}=new URL(e.httpEndpoint),X=`${I}//${q}`,ae=$&&$!=="/"?`${$}/ws/socket.io`:"/ws/socket.io",K=wp(X,{path:ae,extraHeaders:{Authorization:L||"","X-Chainlit-Client-Type":e.type,"X-Chainlit-Session-Id":t,"X-Chainlit-Thread-Id":_||"","user-env":JSON.stringify(E),"X-Chainlit-Chat-Profile":y?encodeURIComponent(y):""}});r(H=>{var Q,re;return(Q=H==null?void 0:H.socket)==null||Q.removeAllListeners(),(re=H==null?void 0:H.socket)==null||re.close(),{socket:K}}),K.on("connect",()=>{K.emit("connection_successful"),r(H=>({...H,error:!1}))}),K.on("connect_error",H=>{r(Q=>({...Q,error:!0}))}),K.on("task_start",()=>{a(!0)}),K.on("task_end",()=>{a(!1)}),K.on("reload",()=>{K.emit("clear_session"),window.location.reload()}),K.on("resume_thread",H=>{var le,J;let Q=[];for(let pe of H.steps)Q=_l(Q,pe);(le=H.metadata)!=null&&le.chat_profile&&A((J=H.metadata)==null?void 0:J.chat_profile),u(Q);let re=H.elements||[];h(re.filter(pe=>pe.type==="tasklist")),p(re.filter(pe=>["avatar","tasklist"].indexOf(pe.type)===-1))}),K.on("new_message",H=>{u(Q=>_l(Q,H))}),K.on("first_interaction",H=>{i(H.interaction),w(H.thread_id)}),K.on("update_message",H=>{u(Q=>Py(Q,H.id,H))}),K.on("delete_message",H=>{u(Q=>VR(Q,H.id))}),K.on("stream_start",H=>{u(Q=>_l(Q,H))}),K.on("stream_token",({id:H,token:Q,isSequence:re,isInput:le})=>{u(J=>WR(J,H,Q,re,le))}),K.on("ask",({msg:H,spec:Q},re)=>{c({spec:Q,callback:re}),u(le=>_l(le,H)),a(!1)}),K.on("ask_timeout",()=>{c(void 0),a(!1)}),K.on("clear_ask",()=>{c(void 0)}),K.on("call_fn",({name:H,args:Q},re)=>{f({name:H,args:Q,callback:re})}),K.on("clear_call_fn",()=>{f(void 0)}),K.on("call_fn_timeout",()=>{f(void 0)}),K.on("chat_settings",H=>{b(H),o()}),K.on("element",H=>{!H.url&&H.chainlitKey&&(H.url=e.getElementUrl(H.chainlitKey,t)),H.type==="tasklist"?h(Q=>{let re=Q.findIndex(le=>le.id===H.id);return re===-1?[...Q,H]:[...Q.slice(0,re),H,...Q.slice(re+1)]}):p(Q=>{let re=Q.findIndex(le=>le.id===H.id);return re===-1?[...Q,H]:[...Q.slice(0,re),H,...Q.slice(re+1)]})}),K.on("remove_element",H=>{p(Q=>Q.filter(re=>re.id!==H.id)),h(Q=>Q.filter(re=>re.id!==H.id))}),K.on("action",H=>{g(Q=>[...Q,H])}),K.on("remove_action",H=>{g(Q=>{let re=Q.findIndex(le=>le.id===H.id);return re===-1?Q:[...Q.slice(0,re),...Q.slice(re+1)]})}),K.on("token_usage",H=>{v(Q=>Q+H)})},[r,t,y]),k=D.useCallback(Da.debounce(S,200),[S]),T=D.useCallback(()=>{n!=null&&n.socket&&(n.socket.removeAllListeners(),n.socket.close())},[n]);return{connect:k,disconnect:T,session:n,sessionId:t,chatProfile:y,idToResume:_,setChatProfile:A}};function HR(e,t){return function(){return e.apply(t,arguments)}}const{toString:bV}=Object.prototype,{getPrototypeOf:Ly}=Object,s0=(e=>t=>{const n=bV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>s0(t)===e),a0=e=>t=>typeof t===e,{isArray:uu}=Array,Vc=a0("undefined");function xV(e){return e!==null&&!Vc(e)&&e.constructor!==null&&!Vc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GR=ti("ArrayBuffer");function _V(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GR(e.buffer),t}const SV=a0("string"),Qr=a0("function"),KR=a0("number"),l0=e=>e!==null&&typeof e=="object",EV=e=>e===!0||e===!1,bp=e=>{if(s0(e)!=="object")return!1;const t=Ly(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CV=ti("Date"),AV=ti("File"),RV=ti("Blob"),kV=ti("FileList"),TV=e=>l0(e)&&Qr(e.pipe),DV=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=s0(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},PV=ti("URLSearchParams"),[OV,LV,NV,MV]=["ReadableStream","Request","Response","Headers"].map(ti),BV=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),uu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,XR=e=>!Vc(e)&&e!==aa;function k2(){const{caseless:e}=XR(this)&&this||{},t={},n=(r,o)=>{const i=e&&YR(t,o)||o;bp(t[i])&&bp(r)?t[i]=k2(t[i],r):bp(r)?t[i]=k2({},r):uu(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(mf(t,(o,i)=>{n&&Qr(o)?e[i]=HR(o,n):e[i]=o},{allOwnKeys:r}),e),$V=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FV=(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)},UV=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Ly(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zV=(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},jV=e=>{if(!e)return null;if(uu(e))return e;let t=e.length;if(!KR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ly(Uint8Array)),WV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qV=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HV=ti("HTMLFormElement"),GV=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KV=ti("RegExp"),ZR=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mf(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},YV=e=>{ZR(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(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+"'")})}})},XV=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return uu(e)?r(e):r(String(e).split(t)),n},ZV=()=>{},QV=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Kg="abcdefghijklmnopqrstuvwxyz",jS="0123456789",QR={DIGIT:jS,ALPHA:Kg,ALPHA_DIGIT:Kg+Kg.toUpperCase()+jS},JV=(e=16,t=QR.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eW(e){return!!(e&&Qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tW=e=>{const t=new Array(10),n=(r,o)=>{if(l0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=uu(r)?[]:{};return mf(r,(a,u)=>{const c=n(a,o+1);!Vc(c)&&(i[u]=c)}),t[o]=void 0,i}}return r};return n(e,0)},nW=ti("AsyncFunction"),rW=e=>e&&(l0(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),JR=((e,t)=>e?setImmediate:t?((n,r)=>(aa.addEventListener("message",({source:o,data:i})=>{o===aa&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),aa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(aa.postMessage)),oW=typeof queueMicrotask<"u"?queueMicrotask.bind(aa):typeof process<"u"&&process.nextTick||JR,Z={isArray:uu,isArrayBuffer:GR,isBuffer:xV,isFormData:DV,isArrayBufferView:_V,isString:SV,isNumber:KR,isBoolean:EV,isObject:l0,isPlainObject:bp,isReadableStream:OV,isRequest:LV,isResponse:NV,isHeaders:MV,isUndefined:Vc,isDate:CV,isFile:AV,isBlob:RV,isRegExp:KV,isFunction:Qr,isStream:TV,isURLSearchParams:PV,isTypedArray:VV,isFileList:kV,forEach:mf,merge:k2,extend:IV,trim:BV,stripBOM:$V,inherits:FV,toFlatObject:UV,kindOf:s0,kindOfTest:ti,endsWith:zV,toArray:jV,forEachEntry:WV,matchAll:qV,isHTMLForm:HV,hasOwnProperty:zS,hasOwnProp:zS,reduceDescriptors:ZR,freezeMethods:YV,toObjectSet:XV,toCamelCase:GV,noop:ZV,toFiniteNumber:QV,findKey:YR,global:aa,isContextDefined:XR,ALPHABET:QR,generateString:JV,isSpecCompliantForm:eW,toJSONObject:tW,isAsyncFn:nW,isThenable:rW,setImmediate:JR,asap:oW};function Ze(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Ze,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:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const ek=Ze.prototype,tk={};["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=>{tk[e]={value:e}});Object.defineProperties(Ze,tk);Object.defineProperty(ek,"isAxiosError",{value:!0});Ze.from=(e,t,n,r,o,i)=>{const a=Object.create(ek);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Ze.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const iW=null;function T2(e){return Z.isPlainObject(e)||Z.isArray(e)}function nk(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function VS(e,t,n){return e?e.concat(t).map(function(o,i){return o=nk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sW(e){return Z.isArray(e)&&!e.some(T2)}const aW=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function u0(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,A){return!Z.isUndefined(A[y])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(Z.isDate(v))return v.toISOString();if(!c&&Z.isBlob(v))throw new Ze("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(v)||Z.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,y,A){let _=v;if(v&&!A&&typeof v=="object"){if(Z.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(Z.isArray(v)&&sW(v)||(Z.isFileList(v)||Z.endsWith(y,"[]"))&&(_=Z.toArray(v)))return y=nk(y),_.forEach(function(S,k){!(Z.isUndefined(S)||S===null)&&t.append(a===!0?VS([y],k,i):a===null?y:y+"[]",f(S))}),!1}return T2(v)?!0:(t.append(VS(A,y,i),f(v)),!1)}const h=[],g=Object.assign(aW,{defaultVisitor:p,convertValue:f,isVisitable:T2});function b(v,y){if(!Z.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(v),Z.forEach(v,function(_,w){(!(Z.isUndefined(_)||_===null)&&o.call(t,_,Z.isString(w)?w.trim():w,y,g))===!0&&b(_,y?y.concat(w):[w])}),h.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function WS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ny(e,t){this._pairs=[],e&&u0(e,this,t)}const rk=Ny.prototype;rk.append=function(t,n){this._pairs.push([t,n])};rk.toString=function(t){const n=t?function(r){return t.call(this,r,WS)}:WS;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ok(e,t,n){if(!t)return e;const r=n&&n.encode||lW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Z.isURLSearchParams(t)?t.toString():new Ny(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qS{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){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ik={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uW=typeof URLSearchParams<"u"?URLSearchParams:Ny,cW=typeof FormData<"u"?FormData:null,fW=typeof Blob<"u"?Blob:null,dW={isBrowser:!0,classes:{URLSearchParams:uW,FormData:cW,Blob:fW},protocols:["http","https","file","blob","url","data"]},My=typeof window<"u"&&typeof document<"u",D2=typeof navigator=="object"&&navigator||void 0,pW=My&&(!D2||["ReactNative","NativeScript","NS"].indexOf(D2.product)<0),hW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mW=My&&window.location.href||"http://localhost",gW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:My,hasStandardBrowserEnv:pW,hasStandardBrowserWebWorkerEnv:hW,navigator:D2,origin:mW},Symbol.toStringTag,{value:"Module"})),Nr={...gW,...dW};function vW(e,t){return u0(e,new Nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Nr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yW(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wW(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Z.isArray(o[a])&&(o[a]=wW(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(yW(r),o,n,0)}),n}return null}function bW(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gf={transitional:ik,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(sk(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vW(t,this.formSerializer).toString();if((u=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return u0(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bW(t)):t}],transformResponse:[function(t){const n=this.transitional||gf.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Ze.from(u,Ze.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{gf.headers[e]={}});const xW=Z.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"]),_W=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&xW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},HS=Symbol("internals");function Hu(e){return e&&String(e).trim().toLowerCase()}function xp(e){return e===!1||e==null?e:Z.isArray(e)?e.map(xp):String(e)}function SW(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 EW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yg(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function CW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AW(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Mr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,c,f){const p=Hu(c);if(!p)throw new Error("header name must be a non-empty string");const h=Z.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=xp(u))}const a=(u,c)=>Z.forEach(u,(f,p)=>i(f,p,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Z.isString(t)&&(t=t.trim())&&!EW(t))a(_W(t),n);else if(Z.isHeaders(t))for(const[u,c]of t.entries())i(c,u,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Hu(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SW(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hu(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Yg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Hu(a),a){const u=Z.findKey(r,a);u&&(!n||Yg(r,r[u],u,n))&&(delete r[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Yg(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(r,i);if(a){n[a]=xp(o),delete n[i];return}const u=t?CW(i):String(i).trim();u!==i&&delete n[i],n[u]=xp(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.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(o=>r.set(o)),r}static accessor(t){const r=(this[HS]=this[HS]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Hu(a);r[u]||(AW(o,a),r[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Mr);function Xg(e,t){const n=this||gf,r=t||n,o=Mr.from(r.headers);let i=r.data;return Z.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ak(e){return!!(e&&e.__CANCEL__)}function cu(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(cu,Ze,{__CANCEL__:!0});function lk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[i];a||(a=f),n[o]=c,r[o]=f;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),h=p-n;h>=r?a(f,p):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const ah=(e,t,n=3)=>{let r=0;const o=kW(50,250);return TW(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-r,f=o(c),p=a<=u;r=a;const h={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},GS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},KS=e=>(...t)=>Z.asap(()=>e(...t)),DW=Nr.hasStandardBrowserEnv?function(){const t=Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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=o(window.location.href),function(a){const u=Z.isString(a)?o(a):a;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),PW=Nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&a.push("path="+r),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function OW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uk(e,t){return e&&!OW(t)?LW(e,t):t}const YS=e=>e instanceof Mr?{...e}:e;function Sa(e,t){t=t||{};const n={};function r(f,p,h){return Z.isPlainObject(f)&&Z.isPlainObject(p)?Z.merge.call({caseless:h},f,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}function o(f,p,h){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function i(f,p){if(!Z.isUndefined(p))return r(void 0,p)}function a(f,p){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,p)=>o(YS(f),YS(p),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,m=h(e[p],t[p],p);Z.isUndefined(m)&&h!==u||(n[p]=m)}),n}const ck=e=>{const t=Sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=Mr.from(a),t.url=ok(uk(t.baseURL,t.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(n)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Nr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&DW(t.url))){const f=o&&i&&PW.read(i);f&&a.set(o,f)}return t},NW=typeof XMLHttpRequest<"u",MW=NW&&function(e){return new Promise(function(n,r){const o=ck(e);let i=o.data;const a=Mr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,h,m,b,v;function y(){b&&b(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function _(){if(!A)return;const S=Mr.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),T={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};lk(function(L){n(L),y()},function(L){r(L),y()},T),A=null}"onloadend"in A?A.onloadend=_:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(_)},A.onabort=function(){A&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||ik;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new Ze(k,T.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(k,T){A.setRequestHeader(T,k)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),f&&([m,v]=ah(f,!0),A.addEventListener("progress",m)),c&&A.upload&&([h,b]=ah(c),A.upload.addEventListener("progress",h),A.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(p=S=>{A&&(r(!S||S.type?new cu(null,e,A):S),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=RW(o.url);if(w&&Nr.protocols.indexOf(w)===-1){r(new Ze("Unsupported protocol "+w+":",Ze.ERR_BAD_REQUEST,e));return}A.send(i||null)})},BW=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof Ze?p:new cu(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Z.asap(u),c}},IW=function*(e,t){let n=e.byteLength;if(!t||n{const o=$W(e,t);let i=0,a,u=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let h=p.byteLength;if(n){let m=i+=h;n(m)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},c0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fk=c0&&typeof ReadableStream=="function",UW=c0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zW=fk&&dk(()=>{let e=!1;const t=new Request(Nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ZS=64*1024,P2=fk&&dk(()=>Z.isReadableStream(new Response("").body)),lh={stream:P2&&(e=>e.body)};c0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!lh[t]&&(lh[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ze(`Response type '${t}' is not supported`,Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const jW=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(Nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await UW(e)).byteLength},VW=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??jW(t)},WW=c0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:m}=ck(e);f=f?(f+"").toLowerCase():"text";let b=BW([o,i&&i.toAbortSignal()],a),v;const y=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let A;try{if(c&&zW&&n!=="get"&&n!=="head"&&(A=await VW(p,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Z.isFormData(r)&&(E=T.headers.get("content-type"))&&p.setContentType(E),T.body){const[L,I]=GS(A,ah(KS(c)));r=XS(T.body,ZS,L,I)}}Z.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...m,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:_?h:void 0});let w=await fetch(v);const S=P2&&(f==="stream"||f==="response");if(P2&&(u||S&&y)){const T={};["status","statusText","headers"].forEach(q=>{T[q]=w[q]});const E=Z.toFiniteNumber(w.headers.get("content-length")),[L,I]=u&&GS(E,ah(KS(u),!0))||[];w=new Response(XS(w.body,ZS,L,()=>{I&&I(),y&&y()}),T)}f=f||"text";let k=await lh[Z.findKey(lh,f)||"text"](w,e);return!S&&y&&y(),await new Promise((T,E)=>{lk(T,E,{data:k,headers:Mr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:v})})}catch(_){throw y&&y(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,e,v),{cause:_.cause||_}):Ze.from(_,_&&_.code,e,v)}}),O2={http:iW,xhr:MW,fetch:WW};Z.forEach(O2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const QS=e=>`- ${e}`,qW=e=>Z.isFunction(e)||e===null||e===!1,pk={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`)}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(o=>r.set(o)),r}static accessor(t){const r=(this[HS]=this[HS]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Hu(a);r[u]||(AW(o,a),r[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Mr);function Xg(e,t){const n=this||gf,r=t||n,o=Mr.from(r.headers);let i=r.data;return Z.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ak(e){return!!(e&&e.__CANCEL__)}function cu(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(cu,Ze,{__CANCEL__:!0});function lk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[i];a||(a=f),n[o]=c,r[o]=f;let h=i,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),h=p-n;h>=r?a(f,p):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const ah=(e,t,n=3)=>{let r=0;const o=kW(50,250);return TW(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-r,f=o(c),p=a<=u;r=a;const h={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},GS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},KS=e=>(...t)=>Z.asap(()=>e(...t)),DW=Nr.hasStandardBrowserEnv?function(){const t=Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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=o(window.location.href),function(a){const u=Z.isString(a)?o(a):a;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),PW=Nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&a.push("path="+r),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function OW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uk(e,t){return e&&!OW(t)?LW(e,t):t}const YS=e=>e instanceof Mr?{...e}:e;function Sa(e,t){t=t||{};const n={};function r(f,p,h){return Z.isPlainObject(f)&&Z.isPlainObject(p)?Z.merge.call({caseless:h},f,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}function o(f,p,h){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function i(f,p){if(!Z.isUndefined(p))return r(void 0,p)}function a(f,p){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,p)=>o(YS(f),YS(p),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,g=h(e[p],t[p],p);Z.isUndefined(g)&&h!==u||(n[p]=g)}),n}const ck=e=>{const t=Sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=Mr.from(a),t.url=ok(uk(t.baseURL,t.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(n)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Nr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&DW(t.url))){const f=o&&i&&PW.read(i);f&&a.set(o,f)}return t},NW=typeof XMLHttpRequest<"u",MW=NW&&function(e){return new Promise(function(n,r){const o=ck(e);let i=o.data;const a=Mr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,h,g,b,v;function y(){b&&b(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function _(){if(!A)return;const S=Mr.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),T={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};lk(function(L){n(L),y()},function(L){r(L),y()},T),A=null}"onloadend"in A?A.onloadend=_:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(_)},A.onabort=function(){A&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||ik;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new Ze(k,T.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(k,T){A.setRequestHeader(T,k)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),f&&([g,v]=ah(f,!0),A.addEventListener("progress",g)),c&&A.upload&&([h,b]=ah(c),A.upload.addEventListener("progress",h),A.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(p=S=>{A&&(r(!S||S.type?new cu(null,e,A):S),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=RW(o.url);if(w&&Nr.protocols.indexOf(w)===-1){r(new Ze("Unsupported protocol "+w+":",Ze.ERR_BAD_REQUEST,e));return}A.send(i||null)})},BW=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof Ze?p:new cu(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Z.asap(u),c}},IW=function*(e,t){let n=e.byteLength;if(!t||n{const o=$W(e,t);let i=0,a,u=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let h=p.byteLength;if(n){let g=i+=h;n(g)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},c0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fk=c0&&typeof ReadableStream=="function",UW=c0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zW=fk&&dk(()=>{let e=!1;const t=new Request(Nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ZS=64*1024,P2=fk&&dk(()=>Z.isReadableStream(new Response("").body)),lh={stream:P2&&(e=>e.body)};c0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!lh[t]&&(lh[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ze(`Response type '${t}' is not supported`,Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const jW=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(Nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await UW(e)).byteLength},VW=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??jW(t)},WW=c0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:g}=ck(e);f=f?(f+"").toLowerCase():"text";let b=BW([o,i&&i.toAbortSignal()],a),v;const y=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let A;try{if(c&&zW&&n!=="get"&&n!=="head"&&(A=await VW(p,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Z.isFormData(r)&&(E=T.headers.get("content-type"))&&p.setContentType(E),T.body){const[L,I]=GS(A,ah(KS(c)));r=XS(T.body,ZS,L,I)}}Z.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...g,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:_?h:void 0});let w=await fetch(v);const S=P2&&(f==="stream"||f==="response");if(P2&&(u||S&&y)){const T={};["status","statusText","headers"].forEach(q=>{T[q]=w[q]});const E=Z.toFiniteNumber(w.headers.get("content-length")),[L,I]=u&&GS(E,ah(KS(u),!0))||[];w=new Response(XS(w.body,ZS,L,()=>{I&&I(),y&&y()}),T)}f=f||"text";let k=await lh[Z.findKey(lh,f)||"text"](w,e);return!S&&y&&y(),await new Promise((T,E)=>{lk(T,E,{data:k,headers:Mr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:v})})}catch(_){throw y&&y(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,e,v),{cause:_.cause||_}):Ze.from(_,_&&_.code,e,v)}}),O2={http:iW,xhr:MW,fetch:WW};Z.forEach(O2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const QS=e=>`- ${e}`,qW=e=>Z.isFunction(e)||e===null||e===!1,pk={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(QS).join(` `):" "+QS(i[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:O2};function Zg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cu(null,e)}function JS(e){return Zg(e),e.headers=Mr.from(e.headers),e.data=Xg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pk.getAdapter(e.adapter||gf.adapter)(e).then(function(r){return Zg(e),r.data=Xg.call(e,e.transformResponse,r),r.headers=Mr.from(r.headers),r},function(r){return ak(r)||(Zg(e),r&&r.response&&(r.response.data=Xg.call(e,e.transformResponse,r.response),r.response.headers=Mr.from(r.response.headers))),Promise.reject(r)})}const hk="1.7.7",By={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{By[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const eE={};By.transitional=function(t,n,r){function o(i,a){return"[Axios v"+hk+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,u)=>{if(t===!1)throw new Ze(o(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!eE[a]&&(eE[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,u):!0}};function HW(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new Ze("option "+i+" must be "+c,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+i,Ze.ERR_BAD_OPTION)}}const L2={assertOptions:HW,validators:By},is=L2.validators;class pa{constructor(t){this.defaults=t,this.interceptors={request:new qS,response:new qS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&L2.assertOptions(r,{silentJSONParsing:is.transitional(is.boolean),forcedJSONParsing:is.transitional(is.boolean),clarifyTimeoutError:is.transitional(is.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:L2.assertOptions(o,{encode:is.function,serialize:is.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Mr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let p,h=0,m;if(!c){const v=[JS.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,f),m=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new cu(i,a,u),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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Iy(function(o){t=o}),cancel:t}}}function GW(e){return function(n){return e.apply(null,n)}}function KW(e){return Z.isObject(e)&&e.isAxiosError===!0}const N2={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(N2).forEach(([e,t])=>{N2[t]=e});function mk(e){const t=new pa(e),n=HR(pa.prototype.request,t);return Z.extend(n,pa.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mk(Sa(e,o))},n}const Nn=mk(gf);Nn.Axios=pa;Nn.CanceledError=cu;Nn.CancelToken=Iy;Nn.isCancel=ak;Nn.VERSION=hk;Nn.toFormData=u0;Nn.AxiosError=Ze;Nn.Cancel=Nn.CanceledError;Nn.all=function(t){return Promise.all(t)};Nn.spread=GW;Nn.isAxiosError=KW;Nn.mergeConfig=Sa;Nn.AxiosHeaders=Mr;Nn.formToJSON=e=>sk(Z.isHTMLForm(e)?new FormData(e):e);Nn.getAdapter=pk.getAdapter;Nn.HttpStatusCode=N2;Nn.default=Nn;/** +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&L2.assertOptions(r,{silentJSONParsing:is.transitional(is.boolean),forcedJSONParsing:is.transitional(is.boolean),clarifyTimeoutError:is.transitional(is.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:L2.assertOptions(o,{encode:is.function,serialize:is.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Mr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let p,h=0,g;if(!c){const v=[JS.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,f),g=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new cu(i,a,u),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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Iy(function(o){t=o}),cancel:t}}}function GW(e){return function(n){return e.apply(null,n)}}function KW(e){return Z.isObject(e)&&e.isAxiosError===!0}const N2={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(N2).forEach(([e,t])=>{N2[t]=e});function mk(e){const t=new pa(e),n=HR(pa.prototype.request,t);return Z.extend(n,pa.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mk(Sa(e,o))},n}const Nn=mk(gf);Nn.Axios=pa;Nn.CanceledError=cu;Nn.CancelToken=Iy;Nn.isCancel=ak;Nn.VERSION=hk;Nn.toFormData=u0;Nn.AxiosError=Ze;Nn.Cancel=Nn.CanceledError;Nn.all=function(t){return Promise.all(t)};Nn.spread=GW;Nn.isAxiosError=KW;Nn.mergeConfig=Sa;Nn.AxiosHeaders=Mr;Nn.formToJSON=e=>sk(Z.isHTMLForm(e)?new FormData(e):e);Nn.getAdapter=pk.getAdapter;Nn.HttpStatusCode=N2;Nn.default=Nn;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. @@ -87,9 +87,9 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XW(){return Math.random().toString(36).substr(2,8)}function nE(e,t){return{usr:e.state,key:e.key,idx:t}}function Wc(e,t,n,r){return n===void 0&&(n=null),on({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bs(t):t,{state:n,key:t&&t.key||r||XW()})}function vf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZW(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Tn.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(on({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function h(){u=Tn.Pop;let A=p(),_=A==null?null:A-f;f=A,c&&c({action:u,location:y.location,delta:_})}function m(A,_){u=Tn.Push;let w=Wc(y.location,A,_);f=p()+1;let S=nE(w,f),k=y.createHref(w);try{a.pushState(S,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&c&&c({action:u,location:y.location,delta:1})}function b(A,_){u=Tn.Replace;let w=Wc(y.location,A,_);f=p();let S=nE(w,f),k=y.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:u,location:y.location,delta:0})}function v(A){let _=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof A=="string"?A:vf(A);return w=w.replace(/ $/,"%20"),pt(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let y={get action(){return u},get location(){return e(o,a)},listen(A){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(tE,h),c=A,()=>{o.removeEventListener(tE,h),c=null}},createHref(A){return t(o,A)},createURL:v,encodeLocation(A){let _=v(A);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:m,replace:b,go(A){return a.go(A)}};return y}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const QW=new Set(["lazy","caseSensitive","path","id","index","children"]);function JW(e){return e.index===!0}function qc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],u=typeof o.id=="string"?o.id:a.join("-");if(pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),pt(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),JW(o)){let c=on({},o,t(o),{id:u});return r[u]=c,c}else{let c=on({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=qc(o.children,t,a,r)),c}})}function ra(e,t,n){return n===void 0&&(n="/"),_p(e,t,n,!1)}function _p(e,t,n,r){let o=typeof t=="string"?Bs(t):t,i=yf(o.pathname||"/",n);if(i==null)return null;let a=gk(e);tq(a);let u=null;for(let c=0;u==null&&c{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(pt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=ha([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),gk(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:lq(f,i.index),routesMeta:p})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let c of vk(i.path))o(i,a,c)}),t}function vk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=vk(r.join("/")),u=[];return u.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&u.push(...a),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function tq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nq=/^:[\w-]+$/,rq=3,oq=2,iq=1,sq=10,aq=-2,rE=e=>e==="*";function lq(e,t){let n=e.split("/"),r=n.length;return n.some(rE)&&(r+=aq),t&&(r+=oq),n.filter(o=>!rE(o)).reduce((o,i)=>o+(nq.test(i)?rq:i===""?iq:sq),r)}function uq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:b}=p;if(m==="*"){let y=u[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[h];return b&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function fq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Bs(e):e;return{pathname:n?n.startsWith("/")?n:hq(n,t):t,search:yq(r),hash:wq(o)}}function hq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Qg(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function yk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mq(e,t){let n=yk(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function gq(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Bs(e):(o=on({},e),pt(!o.pathname||!o.pathname.includes("?"),Qg("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),Qg("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),Qg("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(a==null)u=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}u=h>=0?t[h]:"/"}let c=pq(o,u),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const ha=e=>e.join("/").replace(/\/\/+/g,"/"),vq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class $y{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function f0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wk=["post","put","patch","delete"],bq=new Set(wk),xq=["get",...wk],_q=new Set(xq),Sq=new Set([301,302,303,307,308]),Eq=new Set([307,308]),Jg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Fy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aq=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),bk="remix-router-transitions";function Rq(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=B=>({hasErrorBoundary:N(B)})}else o=Aq;let i={},a=qc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||Oq,p=e.unstable_patchRoutesOnMiss,h=on({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,b=new Set,v=null,y=null,A=null,_=e.hydrationData!=null,w=ra(a,e.history.location,c),S=null;if(w==null&&!p){let N=vr(404,{pathname:e.history.location.pathname}),{matches:B,route:G}=hE(a);w=B,S={[G.id]:N}}w&&p&&!e.hydrationData&&kn(w,a,e.history.location.pathname).active&&(w=null);let k;if(!w)k=!1,w=[];else if(w.some(N=>N.route.lazy))k=!1;else if(!w.some(N=>N.route.loader))k=!0;else if(h.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,B=e.hydrationData?e.hydrationData.errors:null,G=te=>te.route.loader?typeof te.route.loader=="function"&&te.route.loader.hydrate===!0?!1:N&&N[te.route.id]!==void 0||B&&B[te.route.id]!==void 0:!0;if(B){let te=w.findIndex(xe=>B[xe.route.id]!==void 0);k=w.slice(0,te+1).every(G)}else k=w.every(G)}else k=e.hydrationData!=null;let T,E={historyAction:e.history.action,location:e.history.location,matches:w,initialized:k,navigation:Jg,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},L=Tn.Pop,I=!1,q,$=!1,X=new Map,ae=null,K=!1,H=!1,Q=[],re=[],le=new Map,J=0,pe=-1,ie=new Map,he=new Set,z=new Map,ue=new Map,ne=new Set,ye=new Map,de=new Map,Me=new Map,Ae=!1;function ge(){if(m=e.history.listen(N=>{let{action:B,location:G,delta:te}=N;if(Ae){Ae=!1;return}Yl(de.size===0||te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let xe=Se({currentLocation:E.location,nextLocation:G,historyAction:B});if(xe&&te!=null){Ae=!0,e.history.go(te*-1),we(xe,{state:"blocked",location:G,proceed(){we(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),e.history.go(te)},reset(){let De=new Map(E.blockers);De.set(xe,Gu),Ce({blockers:De})}});return}return xt(B,G)}),n){qq(t,X);let N=()=>Hq(t,X);t.addEventListener("pagehide",N),ae=()=>t.removeEventListener("pagehide",N)}return E.initialized||xt(Tn.Pop,E.location,{initialHydration:!0}),T}function Je(){m&&m(),ae&&ae(),b.clear(),q&&q.abort(),E.fetchers.forEach((N,B)=>nr(B)),E.blockers.forEach((N,B)=>be(B))}function Le(N){return b.add(N),()=>b.delete(N)}function Ce(N,B){B===void 0&&(B={}),E=on({},E,N);let G=[],te=[];h.v7_fetcherPersist&&E.fetchers.forEach((xe,De)=>{xe.state==="idle"&&(ne.has(De)?te.push(De):G.push(De))}),[...b].forEach(xe=>xe(E,{deletedFetchers:te,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),h.v7_fetcherPersist&&(G.forEach(xe=>E.fetchers.delete(xe)),te.forEach(xe=>nr(xe)))}function Ge(N,B,G){var te,xe;let{flushSync:De}=G===void 0?{}:G,Ue=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((te=N.state)==null?void 0:te._isRedirect)!==!0,ve;B.actionData?Object.keys(B.actionData).length>0?ve=B.actionData:ve=null:Ue?ve=E.actionData:ve=null;let qe=B.loaderData?dE(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,Be=E.blockers;Be.size>0&&(Be=new Map(Be),Be.forEach((vt,At)=>Be.set(At,Gu)));let $e=I===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((xe=N.state)==null?void 0:xe._isRedirect)!==!0;u&&(a=u,u=void 0),K||L===Tn.Pop||(L===Tn.Push?e.history.push(N,N.state):L===Tn.Replace&&e.history.replace(N,N.state));let St;if(L===Tn.Pop){let vt=X.get(E.location.pathname);vt&&vt.has(N.pathname)?St={currentLocation:E.location,nextLocation:N}:X.has(N.pathname)&&(St={currentLocation:N,nextLocation:E.location})}else if($){let vt=X.get(E.location.pathname);vt?vt.add(N.pathname):(vt=new Set([N.pathname]),X.set(E.location.pathname,vt)),St={currentLocation:E.location,nextLocation:N}}Ce(on({},B,{actionData:ve,loaderData:qe,historyAction:L,location:N,initialized:!0,navigation:Jg,revalidation:"idle",restoreScrollPosition:zt(N,B.matches||E.matches),preventScrollReset:$e,blockers:Be}),{viewTransitionOpts:St,flushSync:De===!0}),L=Tn.Pop,I=!1,$=!1,K=!1,H=!1,Q=[],re=[]}async function st(N,B){if(typeof N=="number"){e.history.go(N);return}let G=M2(E.location,E.matches,c,h.v7_prependBasename,N,h.v7_relativeSplatPath,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:te,submission:xe,error:De}=iE(h.v7_normalizeFormMethod,!1,G,B),Ue=E.location,ve=Wc(E.location,te,B&&B.state);ve=on({},ve,e.history.encodeLocation(ve));let qe=B&&B.replace!=null?B.replace:void 0,Be=Tn.Push;qe===!0?Be=Tn.Replace:qe===!1||xe!=null&&Ko(xe.formMethod)&&xe.formAction===E.location.pathname+E.location.search&&(Be=Tn.Replace);let $e=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,St=(B&&B.unstable_flushSync)===!0,vt=Se({currentLocation:Ue,nextLocation:ve,historyAction:Be});if(vt){we(vt,{state:"blocked",location:ve,proceed(){we(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),st(N,B)},reset(){let At=new Map(E.blockers);At.set(vt,Gu),Ce({blockers:At})}});return}return await xt(Be,ve,{submission:xe,pendingError:De,preventScrollReset:$e,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:St})}function ht(){if(nn(),Ce({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){xt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}xt(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function xt(N,B,G){q&&q.abort(),q=null,L=N,K=(G&&G.startUninterruptedRevalidation)===!0,Rn(E.location,E.matches),I=(G&&G.preventScrollReset)===!0,$=(G&&G.enableViewTransition)===!0;let te=u||a,xe=G&&G.overrideNavigation,De=ra(te,B,c),Ue=(G&&G.flushSync)===!0,ve=kn(De,te,B.pathname);if(ve.active&&ve.matches&&(De=ve.matches),!De){let{error:Ee,notFoundMatches:yt,route:dn}=Fe(B.pathname);Ge(B,{matches:yt,loaderData:{},errors:{[dn.id]:Ee}},{flushSync:Ue});return}if(E.initialized&&!H&&$q(E.location,B)&&!(G&&G.submission&&Ko(G.submission.formMethod))){Ge(B,{matches:De},{flushSync:Ue});return}q=new AbortController;let qe=Xa(e.history,B,q.signal,G&&G.submission),Be;if(G&&G.pendingError)Be=[Sl(De).route.id,{type:Wt.error,error:G.pendingError}];else if(G&&G.submission&&Ko(G.submission.formMethod)){let Ee=await mt(qe,B,G.submission,De,ve.active,{replace:G.replace,flushSync:Ue});if(Ee.shortCircuited)return;if(Ee.pendingActionResult){let[yt,dn]=Ee.pendingActionResult;if(Kr(dn)&&f0(dn.error)&&dn.error.status===404){q=null,Ge(B,{matches:Ee.matches,loaderData:{},errors:{[yt]:dn.error}});return}}De=Ee.matches||De,Be=Ee.pendingActionResult,xe=ev(B,G.submission),Ue=!1,ve.active=!1,qe=Xa(e.history,qe.url,qe.signal)}let{shortCircuited:$e,matches:St,loaderData:vt,errors:At}=await Mn(qe,B,De,ve.active,xe,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Ue,Be);$e||(q=null,Ge(B,on({matches:St||De},pE(Be),{loaderData:vt,errors:At})))}async function mt(N,B,G,te,xe,De){De===void 0&&(De={}),nn();let Ue=Vq(B,G);if(Ce({navigation:Ue},{flushSync:De.flushSync===!0}),xe){let Be=await fn(te,B.pathname,N.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let{boundaryId:$e,error:St}=Ne(B.pathname,Be);return{matches:Be.partialMatches,pendingActionResult:[$e,{type:Wt.error,error:St}]}}else if(Be.matches)te=Be.matches;else{let{notFoundMatches:$e,error:St,route:vt}=Fe(B.pathname);return{matches:$e,pendingActionResult:[vt.id,{type:Wt.error,error:St}]}}}let ve,qe=sc(te,B);if(!qe.route.action&&!qe.route.lazy)ve={type:Wt.error,error:vr(405,{method:N.method,pathname:B.pathname,routeId:qe.route.id})};else if(ve=(await Ct("action",N,[qe],te))[0],N.signal.aborted)return{shortCircuited:!0};if(ua(ve)){let Be;return De&&De.replace!=null?Be=De.replace:Be=uE(ve.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,ve,{submission:G,replace:Be}),{shortCircuited:!0}}if(la(ve))throw vr(400,{type:"defer-action"});if(Kr(ve)){let Be=Sl(te,qe.route.id);return(De&&De.replace)!==!0&&(L=Tn.Push),{matches:te,pendingActionResult:[Be.route.id,ve]}}return{matches:te,pendingActionResult:[qe.route.id,ve]}}async function Mn(N,B,G,te,xe,De,Ue,ve,qe,Be,$e){let St=xe||ev(B,De),vt=De||Ue||vE(St),At=!K&&(!h.v7_partialHydration||!qe);if(te){if(At){let Zt=dr($e);Ce(on({navigation:St},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Be})}let Xe=await fn(G,B.pathname,N.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let{boundaryId:Zt,error:pr}=Ne(B.pathname,Xe);return{matches:Xe.partialMatches,loaderData:{},errors:{[Zt]:pr}}}else if(Xe.matches)G=Xe.matches;else{let{error:Zt,notFoundMatches:pr,route:jt}=Fe(B.pathname);return{matches:pr,loaderData:{},errors:{[jt.id]:Zt}}}}let Ee=u||a,[yt,dn]=sE(e.history,E,G,vt,B,h.v7_partialHydration&&qe===!0,h.v7_skipActionErrorRevalidation,H,Q,re,ne,z,he,Ee,c,$e);if(Ie(Xe=>!(G&&G.some(Zt=>Zt.route.id===Xe))||yt&&yt.some(Zt=>Zt.route.id===Xe)),pe=++J,yt.length===0&&dn.length===0){let Xe=W();return Ge(B,on({matches:G,loaderData:{},errors:$e&&Kr($e[1])?{[$e[0]]:$e[1].error}:null},pE($e),Xe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Be}),{shortCircuited:!0}}if(At){let Xe={};if(!te){Xe.navigation=St;let Zt=dr($e);Zt!==void 0&&(Xe.actionData=Zt)}dn.length>0&&(Xe.fetchers=Et(dn)),Ce(Xe,{flushSync:Be})}dn.forEach(Xe=>{le.has(Xe.key)&&An(Xe.key),Xe.controller&&le.set(Xe.key,Xe.controller)});let ni=()=>dn.forEach(Xe=>An(Xe.key));q&&q.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await Cn(E.matches,G,yt,dn,N);if(N.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",ni),dn.forEach(Xe=>le.delete(Xe.key));let Gi=mE([...ri,...$o]);if(Gi){if(Gi.idx>=yt.length){let Xe=dn[Gi.idx-yt.length].key;he.add(Xe)}return await Ut(N,Gi.result,{replace:ve}),{shortCircuited:!0}}let{loaderData:Ki,errors:ao}=fE(E,G,yt,ri,$e,dn,$o,ye);ye.forEach((Xe,Zt)=>{Xe.subscribe(pr=>{(pr||Xe.done)&&ye.delete(Zt)})}),h.v7_partialHydration&&qe&&E.errors&&Object.entries(E.errors).filter(Xe=>{let[Zt]=Xe;return!yt.some(pr=>pr.route.id===Zt)}).forEach(Xe=>{let[Zt,pr]=Xe;ao=Object.assign(ao||{},{[Zt]:pr})});let Fs=W(),Us=F(pe),zs=Fs||Us||dn.length>0;return on({matches:G,loaderData:Ki,errors:ao},zs?{fetchers:new Map(E.fetchers)}:{})}function dr(N){if(N&&!Kr(N[1]))return{[N[0]]:N[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Et(N){return N.forEach(B=>{let G=E.fetchers.get(B.key),te=Ku(void 0,G?G.data:void 0);E.fetchers.set(B.key,te)}),new Map(E.fetchers)}function at(N,B,G,te){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");le.has(N)&&An(N);let xe=(te&&te.unstable_flushSync)===!0,De=u||a,Ue=M2(E.location,E.matches,c,h.v7_prependBasename,G,h.v7_relativeSplatPath,B,te==null?void 0:te.relative),ve=ra(De,Ue,c),qe=kn(ve,De,Ue);if(qe.active&&qe.matches&&(ve=qe.matches),!ve){Pe(N,B,vr(404,{pathname:Ue}),{flushSync:xe});return}let{path:Be,submission:$e,error:St}=iE(h.v7_normalizeFormMethod,!0,Ue,te);if(St){Pe(N,B,St,{flushSync:xe});return}let vt=sc(ve,Be);if(I=(te&&te.preventScrollReset)===!0,$e&&Ko($e.formMethod)){un(N,B,Be,vt,ve,qe.active,xe,$e);return}z.set(N,{routeId:B,path:Be}),cn(N,B,Be,vt,ve,qe.active,xe,$e)}async function un(N,B,G,te,xe,De,Ue,ve){nn(),z.delete(N);function qe(jt){if(!jt.route.action&&!jt.route.lazy){let lo=vr(405,{method:ve.formMethod,pathname:G,routeId:B});return Pe(N,B,lo,{flushSync:Ue}),!0}return!1}if(!De&&qe(te))return;let Be=E.fetchers.get(N);We(N,Wq(ve,Be),{flushSync:Ue});let $e=new AbortController,St=Xa(e.history,G,$e.signal,ve);if(De){let jt=await fn(xe,G,St.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Ne(G,jt);Pe(N,B,lo,{flushSync:Ue});return}else if(jt.matches){if(xe=jt.matches,te=sc(xe,G),qe(te))return}else{Pe(N,B,vr(404,{pathname:G}),{flushSync:Ue});return}}le.set(N,$e);let vt=J,Ee=(await Ct("action",St,[te],xe))[0];if(St.signal.aborted){le.get(N)===$e&&le.delete(N);return}if(h.v7_fetcherPersist&&ne.has(N)){if(ua(Ee)||Kr(Ee)){We(N,as(void 0));return}}else{if(ua(Ee))if(le.delete(N),pe>vt){We(N,as(void 0));return}else return he.add(N),We(N,Ku(ve)),Ut(St,Ee,{fetcherSubmission:ve});if(Kr(Ee)){Pe(N,B,Ee.error);return}}if(la(Ee))throw vr(400,{type:"defer-action"});let yt=E.navigation.location||E.location,dn=Xa(e.history,yt,$e.signal),ni=u||a,ri=E.navigation.state!=="idle"?ra(ni,E.navigation.location,c):E.matches;pt(ri,"Didn't find any matches after fetcher action");let $o=++J;ie.set(N,$o);let Gi=Ku(ve,Ee.data);E.fetchers.set(N,Gi);let[Ki,ao]=sE(e.history,E,ri,ve,yt,!1,h.v7_skipActionErrorRevalidation,H,Q,re,ne,z,he,ni,c,[te.route.id,Ee]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,gu=E.fetchers.get(lo),Df=Ku(void 0,gu?gu.data:void 0);E.fetchers.set(lo,Df),le.has(lo)&&An(lo),jt.controller&&le.set(lo,jt.controller)}),Ce({fetchers:new Map(E.fetchers)});let Fs=()=>ao.forEach(jt=>An(jt.key));$e.signal.addEventListener("abort",Fs);let{loaderResults:Us,fetcherResults:zs}=await Cn(E.matches,ri,Ki,ao,dn);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",Fs),ie.delete(N),le.delete(N),ao.forEach(jt=>le.delete(jt.key));let Xe=mE([...Us,...zs]);if(Xe){if(Xe.idx>=Ki.length){let jt=ao[Xe.idx-Ki.length].key;he.add(jt)}return Ut(dn,Xe.result)}let{loaderData:Zt,errors:pr}=fE(E,E.matches,Ki,Us,void 0,ao,zs,ye);if(E.fetchers.has(N)){let jt=as(Ee.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>pe?(pt(L,"Expected pending action"),q&&q.abort(),Ge(E.navigation.location,{matches:ri,loaderData:Zt,errors:pr,fetchers:new Map(E.fetchers)})):(Ce({errors:pr,loaderData:dE(E.loaderData,Zt,ri,pr),fetchers:new Map(E.fetchers)}),H=!1)}async function cn(N,B,G,te,xe,De,Ue,ve){let qe=E.fetchers.get(N);We(N,Ku(ve,qe?qe.data:void 0),{flushSync:Ue});let Be=new AbortController,$e=Xa(e.history,G,Be.signal);if(De){let Ee=await fn(xe,G,$e.signal);if(Ee.type==="aborted")return;if(Ee.type==="error"){let{error:yt}=Ne(G,Ee);Pe(N,B,yt,{flushSync:Ue});return}else if(Ee.matches)xe=Ee.matches,te=sc(xe,G);else{Pe(N,B,vr(404,{pathname:G}),{flushSync:Ue});return}}le.set(N,Be);let St=J,At=(await Ct("loader",$e,[te],xe))[0];if(la(At)&&(At=await Ck(At,$e.signal,!0)||At),le.get(N)===Be&&le.delete(N),!$e.signal.aborted){if(ne.has(N)){We(N,as(void 0));return}if(ua(At))if(pe>St){We(N,as(void 0));return}else{he.add(N),await Ut($e,At);return}if(Kr(At)){Pe(N,B,At.error);return}pt(!la(At),"Unhandled fetcher deferred data"),We(N,as(At.data))}}async function Ut(N,B,G){let{submission:te,fetcherSubmission:xe,replace:De}=G===void 0?{}:G;B.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Ue=B.response.headers.get("Location");pt(Ue,"Expected a Location header on the redirect Response"),Ue=uE(Ue,new URL(N.url),c);let ve=Wc(E.location,Ue,{_isRedirect:!0});if(n){let At=!1;if(B.response.headers.has("X-Remix-Reload-Document"))At=!0;else if(Fy.test(Ue)){const Ee=e.history.createURL(Ue);At=Ee.origin!==t.location.origin||yf(Ee.pathname,c)==null}if(At){De?t.location.replace(Ue):t.location.assign(Ue);return}}q=null;let qe=De===!0?Tn.Replace:Tn.Push,{formMethod:Be,formAction:$e,formEncType:St}=E.navigation;!te&&!xe&&Be&&$e&&St&&(te=vE(E.navigation));let vt=te||xe;if(Eq.has(B.response.status)&&vt&&Ko(vt.formMethod))await xt(qe,ve,{submission:on({},vt,{formAction:Ue}),preventScrollReset:I});else{let At=ev(ve,te);await xt(qe,ve,{overrideNavigation:At,fetcherSubmission:xe,preventScrollReset:I})}}async function Ct(N,B,G,te){try{let xe=await Lq(f,N,B,G,te,i,o);return await Promise.all(xe.map((De,Ue)=>{if(Uq(De)){let ve=De.result;return{type:Wt.redirect,response:Bq(ve,B,G[Ue].route.id,te,c,h.v7_relativeSplatPath)}}return Mq(De)}))}catch(xe){return G.map(()=>({type:Wt.error,error:xe}))}}async function Cn(N,B,G,te,xe){let[De,...Ue]=await Promise.all([G.length?Ct("loader",xe,G,B):[],...te.map(ve=>{if(ve.matches&&ve.match&&ve.controller){let qe=Xa(e.history,ve.path,ve.controller.signal);return Ct("loader",qe,[ve.match],ve.matches).then(Be=>Be[0])}else return Promise.resolve({type:Wt.error,error:vr(404,{pathname:ve.path})})})]);return await Promise.all([gE(N,G,De,De.map(()=>xe.signal),!1,E.loaderData),gE(N,te.map(ve=>ve.match),Ue,te.map(ve=>ve.controller?ve.controller.signal:null),!0)]),{loaderResults:De,fetcherResults:Ue}}function nn(){H=!0,Q.push(...Ie()),z.forEach((N,B)=>{le.has(B)&&(re.push(B),An(B))})}function We(N,B,G){G===void 0&&(G={}),E.fetchers.set(N,B),Ce({fetchers:new Map(E.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Pe(N,B,G,te){te===void 0&&(te={});let xe=Sl(E.matches,B);nr(N),Ce({errors:{[xe.route.id]:G},fetchers:new Map(E.fetchers)},{flushSync:(te&&te.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ue.set(N,(ue.get(N)||0)+1),ne.has(N)&&ne.delete(N)),E.fetchers.get(N)||Cq}function nr(N){let B=E.fetchers.get(N);le.has(N)&&!(B&&B.state==="loading"&&ie.has(N))&&An(N),z.delete(N),ie.delete(N),he.delete(N),ne.delete(N),E.fetchers.delete(N)}function qn(N){if(h.v7_fetcherPersist){let B=(ue.get(N)||0)-1;B<=0?(ue.delete(N),ne.add(N)):ue.set(N,B)}else nr(N);Ce({fetchers:new Map(E.fetchers)})}function An(N){let B=le.get(N);pt(B,"Expected fetch controller: "+N),B.abort(),le.delete(N)}function Io(N){for(let B of N){let G=Xt(B),te=as(G.data);E.fetchers.set(B,te)}}function W(){let N=[],B=!1;for(let G of he){let te=E.fetchers.get(G);pt(te,"Expected fetcher: "+G),te.state==="loading"&&(he.delete(G),N.push(G),B=!0)}return Io(N),B}function F(N){let B=[];for(let[G,te]of ie)if(te0}function ce(N,B){let G=E.blockers.get(N)||Gu;return de.get(N)!==B&&de.set(N,B),G}function be(N){E.blockers.delete(N),de.delete(N)}function we(N,B){let G=E.blockers.get(N)||Gu;pt(G.state==="unblocked"&&B.state==="blocked"||G.state==="blocked"&&B.state==="blocked"||G.state==="blocked"&&B.state==="proceeding"||G.state==="blocked"&&B.state==="unblocked"||G.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+G.state+" -> "+B.state);let te=new Map(E.blockers);te.set(N,B),Ce({blockers:te})}function Se(N){let{currentLocation:B,nextLocation:G,historyAction:te}=N;if(de.size===0)return;de.size>1&&Yl(!1,"A router only supports one blocker at a time");let xe=Array.from(de.entries()),[De,Ue]=xe[xe.length-1],ve=E.blockers.get(De);if(!(ve&&ve.state==="proceeding")&&Ue({currentLocation:B,nextLocation:G,historyAction:te}))return De}function Fe(N){let B=vr(404,{pathname:N}),G=u||a,{matches:te,route:xe}=hE(G);return Ie(),{notFoundMatches:te,route:xe,error:B}}function Ne(N,B){return{boundaryId:Sl(B.partialMatches).route.id,error:vr(400,{type:"route-discovery",pathname:N,message:B.error!=null&&"message"in B.error?B.error:String(B.error)})}}function Ie(N){let B=[];return ye.forEach((G,te)=>{(!N||N(te))&&(G.cancel(),B.push(te),ye.delete(te))}),B}function He(N,B,G){if(v=N,A=B,y=G||null,!_&&E.navigation===Jg){_=!0;let te=zt(E.location,E.matches);te!=null&&Ce({restoreScrollPosition:te})}return()=>{v=null,A=null,y=null}}function _t(N,B){return y&&y(N,B.map(te=>eq(te,E.loaderData)))||N.key}function Rn(N,B){if(v&&A){let G=_t(N,B);v[G]=A()}}function zt(N,B){if(v){let G=_t(N,B),te=v[G];if(typeof te=="number")return te}return null}function kn(N,B,G){if(p)if(N){let te=N[N.length-1].route;if(te.path&&(te.path==="*"||te.path.endsWith("/*")))return{active:!0,matches:_p(B,G,c,!0)}}else return{active:!0,matches:_p(B,G,c,!0)||[]};return{active:!1,matches:null}}async function fn(N,B,G){let te=N,xe=te.length>0?te[te.length-1].route:null;for(;;){let De=u==null,Ue=u||a;try{await Pq(p,B,te,Ue,i,o,Me,G)}catch($e){return{type:"error",error:$e,partialMatches:te}}finally{De&&(a=[...a])}if(G.aborted)return{type:"aborted"};let ve=ra(Ue,B,c),qe=!1;if(ve){let $e=ve[ve.length-1].route;if($e.index)return{type:"success",matches:ve};if($e.path&&$e.path.length>0)if($e.path==="*")qe=!0;else return{type:"success",matches:ve}}let Be=_p(Ue,B,c,!0);if(!Be||te.map($e=>$e.route.id).join("-")===Be.map($e=>$e.route.id).join("-"))return{type:"success",matches:qe?ve:null};if(te=Be,xe=te[te.length-1].route,xe.path==="*")return{type:"success",matches:te}}}function so(N){i={},u=qc(N,o,void 0,i)}function rr(N,B){let G=u==null;_k(N,B,u||a,i,o),G&&(a=[...a],Ce({}))}return T={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:ge,subscribe:Le,enableScrollRestoration:He,navigate:st,fetch:at,revalidate:ht,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:qn,dispose:Je,getBlocker:ce,deleteBlocker:be,patchRoutes:rr,_internalFetchControllers:le,_internalActiveDeferreds:ye,_internalSetRoutes:so},T}function kq(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function M2(e,t,n,r,o,i,a,u){let c,f;if(a){c=[];for(let h of t)if(c.push(h),h.route.id===a){f=h;break}}else c=t,f=t[t.length-1];let p=gq(o||".",mq(c,i),yf(e.pathname,n)||e.pathname,u==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&f&&f.route.index&&!Uy(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:ha([n,p.pathname])),vf(p)}function iE(e,t,n,r){if(!r||!kq(r))return{path:n};if(r.formMethod&&!jq(r.formMethod))return{path:n,error:vr(405,{method:r.formMethod})};let o=()=>({path:n,error:vr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),u=Sk(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ko(a))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,v)=>{let[y,A]=v;return""+b+y+"="+A+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ko(a))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}pt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=B2(r.formData),f=r.formData;else if(r.body instanceof FormData)c=B2(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=cE(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=cE(c)}catch{return o()}let p={formMethod:a,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Ko(p.formMethod))return{path:n,submission:p};let h=Bs(n);return t&&h.search&&Uy(h.search)&&c.append("index",""),h.search="?"+c,{path:vf(h),submission:p}}function Tq(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function sE(e,t,n,r,o,i,a,u,c,f,p,h,m,b,v,y){let A=y?Kr(y[1])?y[1].error:y[1].data:void 0,_=e.createURL(t.location),w=e.createURL(o),S=y&&Kr(y[1])?y[0]:void 0,k=S?Tq(n,S):n,T=y?y[1].statusCode:void 0,E=a&&T&&T>=400,L=k.filter((q,$)=>{let{route:X}=q;if(X.lazy)return!0;if(X.loader==null)return!1;if(i)return typeof X.loader!="function"||X.loader.hydrate?!0:t.loaderData[X.id]===void 0&&(!t.errors||t.errors[X.id]===void 0);if(Dq(t.loaderData,t.matches[$],q)||c.some(H=>H===q.route.id))return!0;let ae=t.matches[$],K=q;return aE(q,on({currentUrl:_,currentParams:ae.params,nextUrl:w,nextParams:K.params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u||_.pathname+_.search===w.pathname+w.search||_.search!==w.search||xk(ae,K)}))}),I=[];return h.forEach((q,$)=>{if(i||!n.some(Q=>Q.route.id===q.routeId)||p.has($))return;let X=ra(b,q.path,v);if(!X){I.push({key:$,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let ae=t.fetchers.get($),K=sc(X,q.path),H=!1;m.has($)?H=!1:f.includes($)?H=!0:ae&&ae.state!=="idle"&&ae.data===void 0?H=u:H=aE(K,on({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u})),H&&I.push({key:$,routeId:q.routeId,path:q.path,matches:X,match:K,controller:new AbortController})}),[L,I]}function Dq(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function xk(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function aE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Pq(e,t,n,r,o,i,a,u){let c=[t,...n.map(f=>f.route.id)].join("-");try{let f=a.get(c);f||(f=e({path:t,matches:n,patch:(p,h)=>{u.aborted||_k(p,h,r,o,i)}}),a.set(c,f)),f&&Fq(f)&&await f}finally{a.delete(c)}}function _k(e,t,n,r,o){if(e){var i;let a=r[e];pt(a,"No route found to patch children into: routeId = "+e);let u=qc(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...u):a.children=u}else{let a=qc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function lE(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];pt(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";Yl(!c,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!QW.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,on({},t(o),{lazy:void 0}))}function Oq(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Lq(e,t,n,r,o,i,a,u){let c=r.reduce((h,m)=>h.add(m.route.id),new Set),f=new Set,p=await e({matches:o.map(h=>{let m=c.has(h.route.id);return on({},h,{shouldLoad:m,resolve:v=>(f.add(h.route.id),m?Nq(t,n,h,i,a,v,u):Promise.resolve({type:Wt.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(h=>pt(f.has(h.route.id),'`match.resolve()` was not called for route id "'+h.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((h,m)=>c.has(o[m].route.id))}async function Nq(e,t,n,r,o,i,a){let u,c,f=p=>{let h,m=new Promise((y,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let b=y=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:a},...y!==void 0?[y]:[]),v;return i?v=i(y=>b(y)):v=(async()=>{try{return{type:"data",result:await b()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,m])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[m]=await Promise.all([f(p).catch(b=>{h=b}),lE(n.route,o,r)]);if(h!==void 0)throw h;u=m}else if(await lE(n.route,o,r),p=n.route[e],p)u=await f(p);else if(e==="action"){let h=new URL(t.url),m=h.pathname+h.search;throw vr(405,{method:t.method,pathname:m,routeId:n.route.id})}else return{type:Wt.data,result:void 0};else if(p)u=await f(p);else{let h=new URL(t.url),m=h.pathname+h.search;throw vr(404,{pathname:m})}pt(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:Wt.error,result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function Mq(e){let{result:t,type:n,status:r}=e;if(Ek(t)){let a;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(u){return{type:Wt.error,error:u}}return n===Wt.error?{type:Wt.error,error:new $y(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Wt.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Wt.error)return{type:Wt.error,error:t,statusCode:f0(t)?t.status:r};if(zq(t)){var o,i;return{type:Wt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Wt.data,data:t,statusCode:r}}function Bq(e,t,n,r,o,i){let a=e.headers.get("Location");if(pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Fy.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=M2(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function uE(e,t,n){if(Fy.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=yf(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Xa(e,t,n,r){let o=e.createURL(Sk(t)).toString(),i={signal:n};if(r&&Ko(r.formMethod)){let{formMethod:a,formEncType:u}=r;i.method=a.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=B2(r.formData):i.body=r.formData}return new Request(o,i)}function B2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function cE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Iq(e,t,n,r,o,i){let a={},u=null,c,f=!1,p={},h=r&&Kr(r[1])?r[1].error:void 0;return n.forEach((m,b)=>{let v=t[b].route.id;if(pt(!ua(m),"Cannot handle redirect results in processLoaderData"),Kr(m)){let y=m.error;h!==void 0&&(y=h,h=void 0),u=u||{};{let A=Sl(e,v);u[A.route.id]==null&&(u[A.route.id]=y)}a[v]=void 0,f||(f=!0,c=f0(m.error)?m.error.status:500),m.headers&&(p[v]=m.headers)}else la(m)?(o.set(v,m.deferredData),a[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers)):(a[v]=m.data,m.statusCode&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers))}),h!==void 0&&r&&(u={[r[0]]:h},a[r[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:p}}function fE(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=Iq(t,n,r,o,u);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function hE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function vr(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="Bad Request",i==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: -`+a):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?c="defer() is not supported in actions":i==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",c='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new $y(e||500,u,new Error(c),!0)}function mE(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ua(n))return{result:n,idx:t}}}function Sk(e){let t=typeof e=="string"?Bs(e):e;return vf(on({},t,{hash:""}))}function $q(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Fq(e){return typeof e=="object"&&e!=null&&"then"in e}function Uq(e){return Ek(e.result)&&Sq.has(e.result.status)}function la(e){return e.type===Wt.deferred}function Kr(e){return e.type===Wt.error}function ua(e){return(e&&e.type)===Wt.redirect}function zq(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ek(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jq(e){return _q.has(e.toLowerCase())}function Ko(e){return bq.has(e.toLowerCase())}async function gE(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!xk(f,c)&&(i&&i[c.route.id])!==void 0;if(la(u)&&(o||p)){let h=r[a];pt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ck(u,h,o).then(m=>{m&&(n[a]=m||n[a])})}}}async function Ck(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Wt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Wt.error,error:o}}return{type:Wt.data,data:e.deferredData.data}}}function Uy(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sc(e,t){let n=typeof t=="string"?Bs(t).search:t.search;if(e[e.length-1].route.index&&Uy(n||""))return e[e.length-1];let r=yk(e);return r[r.length-1]}function vE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function ev(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vq(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ku(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Wq(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function as(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function qq(e,t){try{let n=e.sessionStorage.getItem(bk);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Hq(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(bk,JSON.stringify(n))}catch(r){Yl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XW(){return Math.random().toString(36).substr(2,8)}function nE(e,t){return{usr:e.state,key:e.key,idx:t}}function Wc(e,t,n,r){return n===void 0&&(n=null),on({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bs(t):t,{state:n,key:t&&t.key||r||XW()})}function vf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZW(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Tn.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(on({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function h(){u=Tn.Pop;let A=p(),_=A==null?null:A-f;f=A,c&&c({action:u,location:y.location,delta:_})}function g(A,_){u=Tn.Push;let w=Wc(y.location,A,_);f=p()+1;let S=nE(w,f),k=y.createHref(w);try{a.pushState(S,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&c&&c({action:u,location:y.location,delta:1})}function b(A,_){u=Tn.Replace;let w=Wc(y.location,A,_);f=p();let S=nE(w,f),k=y.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:u,location:y.location,delta:0})}function v(A){let _=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof A=="string"?A:vf(A);return w=w.replace(/ $/,"%20"),pt(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let y={get action(){return u},get location(){return e(o,a)},listen(A){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(tE,h),c=A,()=>{o.removeEventListener(tE,h),c=null}},createHref(A){return t(o,A)},createURL:v,encodeLocation(A){let _=v(A);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:g,replace:b,go(A){return a.go(A)}};return y}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const QW=new Set(["lazy","caseSensitive","path","id","index","children"]);function JW(e){return e.index===!0}function qc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],u=typeof o.id=="string"?o.id:a.join("-");if(pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),pt(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),JW(o)){let c=on({},o,t(o),{id:u});return r[u]=c,c}else{let c=on({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=qc(o.children,t,a,r)),c}})}function ra(e,t,n){return n===void 0&&(n="/"),_p(e,t,n,!1)}function _p(e,t,n,r){let o=typeof t=="string"?Bs(t):t,i=yf(o.pathname||"/",n);if(i==null)return null;let a=gk(e);tq(a);let u=null;for(let c=0;u==null&&c{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(pt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=ha([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),gk(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:lq(f,i.index),routesMeta:p})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let c of vk(i.path))o(i,a,c)}),t}function vk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=vk(r.join("/")),u=[];return u.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&u.push(...a),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function tq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nq=/^:[\w-]+$/,rq=3,oq=2,iq=1,sq=10,aq=-2,rE=e=>e==="*";function lq(e,t){let n=e.split("/"),r=n.length;return n.some(rE)&&(r+=aq),t&&(r+=oq),n.filter(o=>!rE(o)).reduce((o,i)=>o+(nq.test(i)?rq:i===""?iq:sq),r)}function uq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:g,isOptional:b}=p;if(g==="*"){let y=u[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[h];return b&&!v?f[g]=void 0:f[g]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function fq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Bs(e):e;return{pathname:n?n.startsWith("/")?n:hq(n,t):t,search:yq(r),hash:wq(o)}}function hq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Qg(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function yk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mq(e,t){let n=yk(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function gq(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Bs(e):(o=on({},e),pt(!o.pathname||!o.pathname.includes("?"),Qg("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),Qg("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),Qg("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(a==null)u=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),h-=1;o.pathname=g.join("/")}u=h>=0?t[h]:"/"}let c=pq(o,u),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const ha=e=>e.join("/").replace(/\/\/+/g,"/"),vq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class $y{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function f0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wk=["post","put","patch","delete"],bq=new Set(wk),xq=["get",...wk],_q=new Set(xq),Sq=new Set([301,302,303,307,308]),Eq=new Set([307,308]),Jg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Fy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aq=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),bk="remix-router-transitions";function Rq(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=B=>({hasErrorBoundary:N(B)})}else o=Aq;let i={},a=qc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||Oq,p=e.unstable_patchRoutesOnMiss,h=on({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),g=null,b=new Set,v=null,y=null,A=null,_=e.hydrationData!=null,w=ra(a,e.history.location,c),S=null;if(w==null&&!p){let N=vr(404,{pathname:e.history.location.pathname}),{matches:B,route:G}=hE(a);w=B,S={[G.id]:N}}w&&p&&!e.hydrationData&&kn(w,a,e.history.location.pathname).active&&(w=null);let k;if(!w)k=!1,w=[];else if(w.some(N=>N.route.lazy))k=!1;else if(!w.some(N=>N.route.loader))k=!0;else if(h.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,B=e.hydrationData?e.hydrationData.errors:null,G=te=>te.route.loader?typeof te.route.loader=="function"&&te.route.loader.hydrate===!0?!1:N&&N[te.route.id]!==void 0||B&&B[te.route.id]!==void 0:!0;if(B){let te=w.findIndex(xe=>B[xe.route.id]!==void 0);k=w.slice(0,te+1).every(G)}else k=w.every(G)}else k=e.hydrationData!=null;let T,E={historyAction:e.history.action,location:e.history.location,matches:w,initialized:k,navigation:Jg,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},L=Tn.Pop,I=!1,q,$=!1,X=new Map,ae=null,K=!1,H=!1,Q=[],re=[],le=new Map,J=0,pe=-1,ie=new Map,he=new Set,z=new Map,ue=new Map,ne=new Set,ye=new Map,de=new Map,Me=new Map,Ae=!1;function ge(){if(g=e.history.listen(N=>{let{action:B,location:G,delta:te}=N;if(Ae){Ae=!1;return}Yl(de.size===0||te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let xe=Se({currentLocation:E.location,nextLocation:G,historyAction:B});if(xe&&te!=null){Ae=!0,e.history.go(te*-1),we(xe,{state:"blocked",location:G,proceed(){we(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),e.history.go(te)},reset(){let De=new Map(E.blockers);De.set(xe,Gu),Ce({blockers:De})}});return}return xt(B,G)}),n){qq(t,X);let N=()=>Hq(t,X);t.addEventListener("pagehide",N),ae=()=>t.removeEventListener("pagehide",N)}return E.initialized||xt(Tn.Pop,E.location,{initialHydration:!0}),T}function Je(){g&&g(),ae&&ae(),b.clear(),q&&q.abort(),E.fetchers.forEach((N,B)=>nr(B)),E.blockers.forEach((N,B)=>be(B))}function Le(N){return b.add(N),()=>b.delete(N)}function Ce(N,B){B===void 0&&(B={}),E=on({},E,N);let G=[],te=[];h.v7_fetcherPersist&&E.fetchers.forEach((xe,De)=>{xe.state==="idle"&&(ne.has(De)?te.push(De):G.push(De))}),[...b].forEach(xe=>xe(E,{deletedFetchers:te,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),h.v7_fetcherPersist&&(G.forEach(xe=>E.fetchers.delete(xe)),te.forEach(xe=>nr(xe)))}function Ge(N,B,G){var te,xe;let{flushSync:De}=G===void 0?{}:G,Ue=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((te=N.state)==null?void 0:te._isRedirect)!==!0,ve;B.actionData?Object.keys(B.actionData).length>0?ve=B.actionData:ve=null:Ue?ve=E.actionData:ve=null;let qe=B.loaderData?dE(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,Be=E.blockers;Be.size>0&&(Be=new Map(Be),Be.forEach((vt,At)=>Be.set(At,Gu)));let $e=I===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((xe=N.state)==null?void 0:xe._isRedirect)!==!0;u&&(a=u,u=void 0),K||L===Tn.Pop||(L===Tn.Push?e.history.push(N,N.state):L===Tn.Replace&&e.history.replace(N,N.state));let St;if(L===Tn.Pop){let vt=X.get(E.location.pathname);vt&&vt.has(N.pathname)?St={currentLocation:E.location,nextLocation:N}:X.has(N.pathname)&&(St={currentLocation:N,nextLocation:E.location})}else if($){let vt=X.get(E.location.pathname);vt?vt.add(N.pathname):(vt=new Set([N.pathname]),X.set(E.location.pathname,vt)),St={currentLocation:E.location,nextLocation:N}}Ce(on({},B,{actionData:ve,loaderData:qe,historyAction:L,location:N,initialized:!0,navigation:Jg,revalidation:"idle",restoreScrollPosition:zt(N,B.matches||E.matches),preventScrollReset:$e,blockers:Be}),{viewTransitionOpts:St,flushSync:De===!0}),L=Tn.Pop,I=!1,$=!1,K=!1,H=!1,Q=[],re=[]}async function st(N,B){if(typeof N=="number"){e.history.go(N);return}let G=M2(E.location,E.matches,c,h.v7_prependBasename,N,h.v7_relativeSplatPath,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:te,submission:xe,error:De}=iE(h.v7_normalizeFormMethod,!1,G,B),Ue=E.location,ve=Wc(E.location,te,B&&B.state);ve=on({},ve,e.history.encodeLocation(ve));let qe=B&&B.replace!=null?B.replace:void 0,Be=Tn.Push;qe===!0?Be=Tn.Replace:qe===!1||xe!=null&&Ko(xe.formMethod)&&xe.formAction===E.location.pathname+E.location.search&&(Be=Tn.Replace);let $e=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,St=(B&&B.unstable_flushSync)===!0,vt=Se({currentLocation:Ue,nextLocation:ve,historyAction:Be});if(vt){we(vt,{state:"blocked",location:ve,proceed(){we(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),st(N,B)},reset(){let At=new Map(E.blockers);At.set(vt,Gu),Ce({blockers:At})}});return}return await xt(Be,ve,{submission:xe,pendingError:De,preventScrollReset:$e,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:St})}function ht(){if(nn(),Ce({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){xt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}xt(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function xt(N,B,G){q&&q.abort(),q=null,L=N,K=(G&&G.startUninterruptedRevalidation)===!0,Rn(E.location,E.matches),I=(G&&G.preventScrollReset)===!0,$=(G&&G.enableViewTransition)===!0;let te=u||a,xe=G&&G.overrideNavigation,De=ra(te,B,c),Ue=(G&&G.flushSync)===!0,ve=kn(De,te,B.pathname);if(ve.active&&ve.matches&&(De=ve.matches),!De){let{error:Ee,notFoundMatches:yt,route:dn}=Fe(B.pathname);Ge(B,{matches:yt,loaderData:{},errors:{[dn.id]:Ee}},{flushSync:Ue});return}if(E.initialized&&!H&&$q(E.location,B)&&!(G&&G.submission&&Ko(G.submission.formMethod))){Ge(B,{matches:De},{flushSync:Ue});return}q=new AbortController;let qe=Xa(e.history,B,q.signal,G&&G.submission),Be;if(G&&G.pendingError)Be=[Sl(De).route.id,{type:Wt.error,error:G.pendingError}];else if(G&&G.submission&&Ko(G.submission.formMethod)){let Ee=await mt(qe,B,G.submission,De,ve.active,{replace:G.replace,flushSync:Ue});if(Ee.shortCircuited)return;if(Ee.pendingActionResult){let[yt,dn]=Ee.pendingActionResult;if(Kr(dn)&&f0(dn.error)&&dn.error.status===404){q=null,Ge(B,{matches:Ee.matches,loaderData:{},errors:{[yt]:dn.error}});return}}De=Ee.matches||De,Be=Ee.pendingActionResult,xe=ev(B,G.submission),Ue=!1,ve.active=!1,qe=Xa(e.history,qe.url,qe.signal)}let{shortCircuited:$e,matches:St,loaderData:vt,errors:At}=await Mn(qe,B,De,ve.active,xe,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Ue,Be);$e||(q=null,Ge(B,on({matches:St||De},pE(Be),{loaderData:vt,errors:At})))}async function mt(N,B,G,te,xe,De){De===void 0&&(De={}),nn();let Ue=Vq(B,G);if(Ce({navigation:Ue},{flushSync:De.flushSync===!0}),xe){let Be=await fn(te,B.pathname,N.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let{boundaryId:$e,error:St}=Ne(B.pathname,Be);return{matches:Be.partialMatches,pendingActionResult:[$e,{type:Wt.error,error:St}]}}else if(Be.matches)te=Be.matches;else{let{notFoundMatches:$e,error:St,route:vt}=Fe(B.pathname);return{matches:$e,pendingActionResult:[vt.id,{type:Wt.error,error:St}]}}}let ve,qe=sc(te,B);if(!qe.route.action&&!qe.route.lazy)ve={type:Wt.error,error:vr(405,{method:N.method,pathname:B.pathname,routeId:qe.route.id})};else if(ve=(await Ct("action",N,[qe],te))[0],N.signal.aborted)return{shortCircuited:!0};if(ua(ve)){let Be;return De&&De.replace!=null?Be=De.replace:Be=uE(ve.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,ve,{submission:G,replace:Be}),{shortCircuited:!0}}if(la(ve))throw vr(400,{type:"defer-action"});if(Kr(ve)){let Be=Sl(te,qe.route.id);return(De&&De.replace)!==!0&&(L=Tn.Push),{matches:te,pendingActionResult:[Be.route.id,ve]}}return{matches:te,pendingActionResult:[qe.route.id,ve]}}async function Mn(N,B,G,te,xe,De,Ue,ve,qe,Be,$e){let St=xe||ev(B,De),vt=De||Ue||vE(St),At=!K&&(!h.v7_partialHydration||!qe);if(te){if(At){let Zt=dr($e);Ce(on({navigation:St},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Be})}let Xe=await fn(G,B.pathname,N.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let{boundaryId:Zt,error:pr}=Ne(B.pathname,Xe);return{matches:Xe.partialMatches,loaderData:{},errors:{[Zt]:pr}}}else if(Xe.matches)G=Xe.matches;else{let{error:Zt,notFoundMatches:pr,route:jt}=Fe(B.pathname);return{matches:pr,loaderData:{},errors:{[jt.id]:Zt}}}}let Ee=u||a,[yt,dn]=sE(e.history,E,G,vt,B,h.v7_partialHydration&&qe===!0,h.v7_skipActionErrorRevalidation,H,Q,re,ne,z,he,Ee,c,$e);if(Ie(Xe=>!(G&&G.some(Zt=>Zt.route.id===Xe))||yt&&yt.some(Zt=>Zt.route.id===Xe)),pe=++J,yt.length===0&&dn.length===0){let Xe=W();return Ge(B,on({matches:G,loaderData:{},errors:$e&&Kr($e[1])?{[$e[0]]:$e[1].error}:null},pE($e),Xe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Be}),{shortCircuited:!0}}if(At){let Xe={};if(!te){Xe.navigation=St;let Zt=dr($e);Zt!==void 0&&(Xe.actionData=Zt)}dn.length>0&&(Xe.fetchers=Et(dn)),Ce(Xe,{flushSync:Be})}dn.forEach(Xe=>{le.has(Xe.key)&&An(Xe.key),Xe.controller&&le.set(Xe.key,Xe.controller)});let ni=()=>dn.forEach(Xe=>An(Xe.key));q&&q.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await Cn(E.matches,G,yt,dn,N);if(N.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",ni),dn.forEach(Xe=>le.delete(Xe.key));let Gi=mE([...ri,...$o]);if(Gi){if(Gi.idx>=yt.length){let Xe=dn[Gi.idx-yt.length].key;he.add(Xe)}return await Ut(N,Gi.result,{replace:ve}),{shortCircuited:!0}}let{loaderData:Ki,errors:ao}=fE(E,G,yt,ri,$e,dn,$o,ye);ye.forEach((Xe,Zt)=>{Xe.subscribe(pr=>{(pr||Xe.done)&&ye.delete(Zt)})}),h.v7_partialHydration&&qe&&E.errors&&Object.entries(E.errors).filter(Xe=>{let[Zt]=Xe;return!yt.some(pr=>pr.route.id===Zt)}).forEach(Xe=>{let[Zt,pr]=Xe;ao=Object.assign(ao||{},{[Zt]:pr})});let Fs=W(),Us=F(pe),zs=Fs||Us||dn.length>0;return on({matches:G,loaderData:Ki,errors:ao},zs?{fetchers:new Map(E.fetchers)}:{})}function dr(N){if(N&&!Kr(N[1]))return{[N[0]]:N[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Et(N){return N.forEach(B=>{let G=E.fetchers.get(B.key),te=Ku(void 0,G?G.data:void 0);E.fetchers.set(B.key,te)}),new Map(E.fetchers)}function at(N,B,G,te){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");le.has(N)&&An(N);let xe=(te&&te.unstable_flushSync)===!0,De=u||a,Ue=M2(E.location,E.matches,c,h.v7_prependBasename,G,h.v7_relativeSplatPath,B,te==null?void 0:te.relative),ve=ra(De,Ue,c),qe=kn(ve,De,Ue);if(qe.active&&qe.matches&&(ve=qe.matches),!ve){Pe(N,B,vr(404,{pathname:Ue}),{flushSync:xe});return}let{path:Be,submission:$e,error:St}=iE(h.v7_normalizeFormMethod,!0,Ue,te);if(St){Pe(N,B,St,{flushSync:xe});return}let vt=sc(ve,Be);if(I=(te&&te.preventScrollReset)===!0,$e&&Ko($e.formMethod)){un(N,B,Be,vt,ve,qe.active,xe,$e);return}z.set(N,{routeId:B,path:Be}),cn(N,B,Be,vt,ve,qe.active,xe,$e)}async function un(N,B,G,te,xe,De,Ue,ve){nn(),z.delete(N);function qe(jt){if(!jt.route.action&&!jt.route.lazy){let lo=vr(405,{method:ve.formMethod,pathname:G,routeId:B});return Pe(N,B,lo,{flushSync:Ue}),!0}return!1}if(!De&&qe(te))return;let Be=E.fetchers.get(N);We(N,Wq(ve,Be),{flushSync:Ue});let $e=new AbortController,St=Xa(e.history,G,$e.signal,ve);if(De){let jt=await fn(xe,G,St.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Ne(G,jt);Pe(N,B,lo,{flushSync:Ue});return}else if(jt.matches){if(xe=jt.matches,te=sc(xe,G),qe(te))return}else{Pe(N,B,vr(404,{pathname:G}),{flushSync:Ue});return}}le.set(N,$e);let vt=J,Ee=(await Ct("action",St,[te],xe))[0];if(St.signal.aborted){le.get(N)===$e&&le.delete(N);return}if(h.v7_fetcherPersist&&ne.has(N)){if(ua(Ee)||Kr(Ee)){We(N,as(void 0));return}}else{if(ua(Ee))if(le.delete(N),pe>vt){We(N,as(void 0));return}else return he.add(N),We(N,Ku(ve)),Ut(St,Ee,{fetcherSubmission:ve});if(Kr(Ee)){Pe(N,B,Ee.error);return}}if(la(Ee))throw vr(400,{type:"defer-action"});let yt=E.navigation.location||E.location,dn=Xa(e.history,yt,$e.signal),ni=u||a,ri=E.navigation.state!=="idle"?ra(ni,E.navigation.location,c):E.matches;pt(ri,"Didn't find any matches after fetcher action");let $o=++J;ie.set(N,$o);let Gi=Ku(ve,Ee.data);E.fetchers.set(N,Gi);let[Ki,ao]=sE(e.history,E,ri,ve,yt,!1,h.v7_skipActionErrorRevalidation,H,Q,re,ne,z,he,ni,c,[te.route.id,Ee]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,gu=E.fetchers.get(lo),Df=Ku(void 0,gu?gu.data:void 0);E.fetchers.set(lo,Df),le.has(lo)&&An(lo),jt.controller&&le.set(lo,jt.controller)}),Ce({fetchers:new Map(E.fetchers)});let Fs=()=>ao.forEach(jt=>An(jt.key));$e.signal.addEventListener("abort",Fs);let{loaderResults:Us,fetcherResults:zs}=await Cn(E.matches,ri,Ki,ao,dn);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",Fs),ie.delete(N),le.delete(N),ao.forEach(jt=>le.delete(jt.key));let Xe=mE([...Us,...zs]);if(Xe){if(Xe.idx>=Ki.length){let jt=ao[Xe.idx-Ki.length].key;he.add(jt)}return Ut(dn,Xe.result)}let{loaderData:Zt,errors:pr}=fE(E,E.matches,Ki,Us,void 0,ao,zs,ye);if(E.fetchers.has(N)){let jt=as(Ee.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>pe?(pt(L,"Expected pending action"),q&&q.abort(),Ge(E.navigation.location,{matches:ri,loaderData:Zt,errors:pr,fetchers:new Map(E.fetchers)})):(Ce({errors:pr,loaderData:dE(E.loaderData,Zt,ri,pr),fetchers:new Map(E.fetchers)}),H=!1)}async function cn(N,B,G,te,xe,De,Ue,ve){let qe=E.fetchers.get(N);We(N,Ku(ve,qe?qe.data:void 0),{flushSync:Ue});let Be=new AbortController,$e=Xa(e.history,G,Be.signal);if(De){let Ee=await fn(xe,G,$e.signal);if(Ee.type==="aborted")return;if(Ee.type==="error"){let{error:yt}=Ne(G,Ee);Pe(N,B,yt,{flushSync:Ue});return}else if(Ee.matches)xe=Ee.matches,te=sc(xe,G);else{Pe(N,B,vr(404,{pathname:G}),{flushSync:Ue});return}}le.set(N,Be);let St=J,At=(await Ct("loader",$e,[te],xe))[0];if(la(At)&&(At=await Ck(At,$e.signal,!0)||At),le.get(N)===Be&&le.delete(N),!$e.signal.aborted){if(ne.has(N)){We(N,as(void 0));return}if(ua(At))if(pe>St){We(N,as(void 0));return}else{he.add(N),await Ut($e,At);return}if(Kr(At)){Pe(N,B,At.error);return}pt(!la(At),"Unhandled fetcher deferred data"),We(N,as(At.data))}}async function Ut(N,B,G){let{submission:te,fetcherSubmission:xe,replace:De}=G===void 0?{}:G;B.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Ue=B.response.headers.get("Location");pt(Ue,"Expected a Location header on the redirect Response"),Ue=uE(Ue,new URL(N.url),c);let ve=Wc(E.location,Ue,{_isRedirect:!0});if(n){let At=!1;if(B.response.headers.has("X-Remix-Reload-Document"))At=!0;else if(Fy.test(Ue)){const Ee=e.history.createURL(Ue);At=Ee.origin!==t.location.origin||yf(Ee.pathname,c)==null}if(At){De?t.location.replace(Ue):t.location.assign(Ue);return}}q=null;let qe=De===!0?Tn.Replace:Tn.Push,{formMethod:Be,formAction:$e,formEncType:St}=E.navigation;!te&&!xe&&Be&&$e&&St&&(te=vE(E.navigation));let vt=te||xe;if(Eq.has(B.response.status)&&vt&&Ko(vt.formMethod))await xt(qe,ve,{submission:on({},vt,{formAction:Ue}),preventScrollReset:I});else{let At=ev(ve,te);await xt(qe,ve,{overrideNavigation:At,fetcherSubmission:xe,preventScrollReset:I})}}async function Ct(N,B,G,te){try{let xe=await Lq(f,N,B,G,te,i,o);return await Promise.all(xe.map((De,Ue)=>{if(Uq(De)){let ve=De.result;return{type:Wt.redirect,response:Bq(ve,B,G[Ue].route.id,te,c,h.v7_relativeSplatPath)}}return Mq(De)}))}catch(xe){return G.map(()=>({type:Wt.error,error:xe}))}}async function Cn(N,B,G,te,xe){let[De,...Ue]=await Promise.all([G.length?Ct("loader",xe,G,B):[],...te.map(ve=>{if(ve.matches&&ve.match&&ve.controller){let qe=Xa(e.history,ve.path,ve.controller.signal);return Ct("loader",qe,[ve.match],ve.matches).then(Be=>Be[0])}else return Promise.resolve({type:Wt.error,error:vr(404,{pathname:ve.path})})})]);return await Promise.all([gE(N,G,De,De.map(()=>xe.signal),!1,E.loaderData),gE(N,te.map(ve=>ve.match),Ue,te.map(ve=>ve.controller?ve.controller.signal:null),!0)]),{loaderResults:De,fetcherResults:Ue}}function nn(){H=!0,Q.push(...Ie()),z.forEach((N,B)=>{le.has(B)&&(re.push(B),An(B))})}function We(N,B,G){G===void 0&&(G={}),E.fetchers.set(N,B),Ce({fetchers:new Map(E.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Pe(N,B,G,te){te===void 0&&(te={});let xe=Sl(E.matches,B);nr(N),Ce({errors:{[xe.route.id]:G},fetchers:new Map(E.fetchers)},{flushSync:(te&&te.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ue.set(N,(ue.get(N)||0)+1),ne.has(N)&&ne.delete(N)),E.fetchers.get(N)||Cq}function nr(N){let B=E.fetchers.get(N);le.has(N)&&!(B&&B.state==="loading"&&ie.has(N))&&An(N),z.delete(N),ie.delete(N),he.delete(N),ne.delete(N),E.fetchers.delete(N)}function qn(N){if(h.v7_fetcherPersist){let B=(ue.get(N)||0)-1;B<=0?(ue.delete(N),ne.add(N)):ue.set(N,B)}else nr(N);Ce({fetchers:new Map(E.fetchers)})}function An(N){let B=le.get(N);pt(B,"Expected fetch controller: "+N),B.abort(),le.delete(N)}function Io(N){for(let B of N){let G=Xt(B),te=as(G.data);E.fetchers.set(B,te)}}function W(){let N=[],B=!1;for(let G of he){let te=E.fetchers.get(G);pt(te,"Expected fetcher: "+G),te.state==="loading"&&(he.delete(G),N.push(G),B=!0)}return Io(N),B}function F(N){let B=[];for(let[G,te]of ie)if(te0}function ce(N,B){let G=E.blockers.get(N)||Gu;return de.get(N)!==B&&de.set(N,B),G}function be(N){E.blockers.delete(N),de.delete(N)}function we(N,B){let G=E.blockers.get(N)||Gu;pt(G.state==="unblocked"&&B.state==="blocked"||G.state==="blocked"&&B.state==="blocked"||G.state==="blocked"&&B.state==="proceeding"||G.state==="blocked"&&B.state==="unblocked"||G.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+G.state+" -> "+B.state);let te=new Map(E.blockers);te.set(N,B),Ce({blockers:te})}function Se(N){let{currentLocation:B,nextLocation:G,historyAction:te}=N;if(de.size===0)return;de.size>1&&Yl(!1,"A router only supports one blocker at a time");let xe=Array.from(de.entries()),[De,Ue]=xe[xe.length-1],ve=E.blockers.get(De);if(!(ve&&ve.state==="proceeding")&&Ue({currentLocation:B,nextLocation:G,historyAction:te}))return De}function Fe(N){let B=vr(404,{pathname:N}),G=u||a,{matches:te,route:xe}=hE(G);return Ie(),{notFoundMatches:te,route:xe,error:B}}function Ne(N,B){return{boundaryId:Sl(B.partialMatches).route.id,error:vr(400,{type:"route-discovery",pathname:N,message:B.error!=null&&"message"in B.error?B.error:String(B.error)})}}function Ie(N){let B=[];return ye.forEach((G,te)=>{(!N||N(te))&&(G.cancel(),B.push(te),ye.delete(te))}),B}function He(N,B,G){if(v=N,A=B,y=G||null,!_&&E.navigation===Jg){_=!0;let te=zt(E.location,E.matches);te!=null&&Ce({restoreScrollPosition:te})}return()=>{v=null,A=null,y=null}}function _t(N,B){return y&&y(N,B.map(te=>eq(te,E.loaderData)))||N.key}function Rn(N,B){if(v&&A){let G=_t(N,B);v[G]=A()}}function zt(N,B){if(v){let G=_t(N,B),te=v[G];if(typeof te=="number")return te}return null}function kn(N,B,G){if(p)if(N){let te=N[N.length-1].route;if(te.path&&(te.path==="*"||te.path.endsWith("/*")))return{active:!0,matches:_p(B,G,c,!0)}}else return{active:!0,matches:_p(B,G,c,!0)||[]};return{active:!1,matches:null}}async function fn(N,B,G){let te=N,xe=te.length>0?te[te.length-1].route:null;for(;;){let De=u==null,Ue=u||a;try{await Pq(p,B,te,Ue,i,o,Me,G)}catch($e){return{type:"error",error:$e,partialMatches:te}}finally{De&&(a=[...a])}if(G.aborted)return{type:"aborted"};let ve=ra(Ue,B,c),qe=!1;if(ve){let $e=ve[ve.length-1].route;if($e.index)return{type:"success",matches:ve};if($e.path&&$e.path.length>0)if($e.path==="*")qe=!0;else return{type:"success",matches:ve}}let Be=_p(Ue,B,c,!0);if(!Be||te.map($e=>$e.route.id).join("-")===Be.map($e=>$e.route.id).join("-"))return{type:"success",matches:qe?ve:null};if(te=Be,xe=te[te.length-1].route,xe.path==="*")return{type:"success",matches:te}}}function so(N){i={},u=qc(N,o,void 0,i)}function rr(N,B){let G=u==null;_k(N,B,u||a,i,o),G&&(a=[...a],Ce({}))}return T={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:ge,subscribe:Le,enableScrollRestoration:He,navigate:st,fetch:at,revalidate:ht,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:qn,dispose:Je,getBlocker:ce,deleteBlocker:be,patchRoutes:rr,_internalFetchControllers:le,_internalActiveDeferreds:ye,_internalSetRoutes:so},T}function kq(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function M2(e,t,n,r,o,i,a,u){let c,f;if(a){c=[];for(let h of t)if(c.push(h),h.route.id===a){f=h;break}}else c=t,f=t[t.length-1];let p=gq(o||".",mq(c,i),yf(e.pathname,n)||e.pathname,u==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&f&&f.route.index&&!Uy(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:ha([n,p.pathname])),vf(p)}function iE(e,t,n,r){if(!r||!kq(r))return{path:n};if(r.formMethod&&!jq(r.formMethod))return{path:n,error:vr(405,{method:r.formMethod})};let o=()=>({path:n,error:vr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),u=Sk(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ko(a))return o();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,v)=>{let[y,A]=v;return""+b+y+"="+A+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!Ko(a))return o();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return o()}}}pt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=B2(r.formData),f=r.formData;else if(r.body instanceof FormData)c=B2(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=cE(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=cE(c)}catch{return o()}let p={formMethod:a,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Ko(p.formMethod))return{path:n,submission:p};let h=Bs(n);return t&&h.search&&Uy(h.search)&&c.append("index",""),h.search="?"+c,{path:vf(h),submission:p}}function Tq(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function sE(e,t,n,r,o,i,a,u,c,f,p,h,g,b,v,y){let A=y?Kr(y[1])?y[1].error:y[1].data:void 0,_=e.createURL(t.location),w=e.createURL(o),S=y&&Kr(y[1])?y[0]:void 0,k=S?Tq(n,S):n,T=y?y[1].statusCode:void 0,E=a&&T&&T>=400,L=k.filter((q,$)=>{let{route:X}=q;if(X.lazy)return!0;if(X.loader==null)return!1;if(i)return typeof X.loader!="function"||X.loader.hydrate?!0:t.loaderData[X.id]===void 0&&(!t.errors||t.errors[X.id]===void 0);if(Dq(t.loaderData,t.matches[$],q)||c.some(H=>H===q.route.id))return!0;let ae=t.matches[$],K=q;return aE(q,on({currentUrl:_,currentParams:ae.params,nextUrl:w,nextParams:K.params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u||_.pathname+_.search===w.pathname+w.search||_.search!==w.search||xk(ae,K)}))}),I=[];return h.forEach((q,$)=>{if(i||!n.some(Q=>Q.route.id===q.routeId)||p.has($))return;let X=ra(b,q.path,v);if(!X){I.push({key:$,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let ae=t.fetchers.get($),K=sc(X,q.path),H=!1;g.has($)?H=!1:f.includes($)?H=!0:ae&&ae.state!=="idle"&&ae.data===void 0?H=u:H=aE(K,on({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u})),H&&I.push({key:$,routeId:q.routeId,path:q.path,matches:X,match:K,controller:new AbortController})}),[L,I]}function Dq(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function xk(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function aE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Pq(e,t,n,r,o,i,a,u){let c=[t,...n.map(f=>f.route.id)].join("-");try{let f=a.get(c);f||(f=e({path:t,matches:n,patch:(p,h)=>{u.aborted||_k(p,h,r,o,i)}}),a.set(c,f)),f&&Fq(f)&&await f}finally{a.delete(c)}}function _k(e,t,n,r,o){if(e){var i;let a=r[e];pt(a,"No route found to patch children into: routeId = "+e);let u=qc(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...u):a.children=u}else{let a=qc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function lE(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];pt(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";Yl(!c,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!QW.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,on({},t(o),{lazy:void 0}))}function Oq(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Lq(e,t,n,r,o,i,a,u){let c=r.reduce((h,g)=>h.add(g.route.id),new Set),f=new Set,p=await e({matches:o.map(h=>{let g=c.has(h.route.id);return on({},h,{shouldLoad:g,resolve:v=>(f.add(h.route.id),g?Nq(t,n,h,i,a,v,u):Promise.resolve({type:Wt.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(h=>pt(f.has(h.route.id),'`match.resolve()` was not called for route id "'+h.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((h,g)=>c.has(o[g].route.id))}async function Nq(e,t,n,r,o,i,a){let u,c,f=p=>{let h,g=new Promise((y,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let b=y=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:a},...y!==void 0?[y]:[]),v;return i?v=i(y=>b(y)):v=(async()=>{try{return{type:"data",result:await b()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,g])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[g]=await Promise.all([f(p).catch(b=>{h=b}),lE(n.route,o,r)]);if(h!==void 0)throw h;u=g}else if(await lE(n.route,o,r),p=n.route[e],p)u=await f(p);else if(e==="action"){let h=new URL(t.url),g=h.pathname+h.search;throw vr(405,{method:t.method,pathname:g,routeId:n.route.id})}else return{type:Wt.data,result:void 0};else if(p)u=await f(p);else{let h=new URL(t.url),g=h.pathname+h.search;throw vr(404,{pathname:g})}pt(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:Wt.error,result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function Mq(e){let{result:t,type:n,status:r}=e;if(Ek(t)){let a;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(u){return{type:Wt.error,error:u}}return n===Wt.error?{type:Wt.error,error:new $y(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Wt.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Wt.error)return{type:Wt.error,error:t,statusCode:f0(t)?t.status:r};if(zq(t)){var o,i;return{type:Wt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Wt.data,data:t,statusCode:r}}function Bq(e,t,n,r,o,i){let a=e.headers.get("Location");if(pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Fy.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=M2(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function uE(e,t,n){if(Fy.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=yf(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Xa(e,t,n,r){let o=e.createURL(Sk(t)).toString(),i={signal:n};if(r&&Ko(r.formMethod)){let{formMethod:a,formEncType:u}=r;i.method=a.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=B2(r.formData):i.body=r.formData}return new Request(o,i)}function B2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function cE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Iq(e,t,n,r,o,i){let a={},u=null,c,f=!1,p={},h=r&&Kr(r[1])?r[1].error:void 0;return n.forEach((g,b)=>{let v=t[b].route.id;if(pt(!ua(g),"Cannot handle redirect results in processLoaderData"),Kr(g)){let y=g.error;h!==void 0&&(y=h,h=void 0),u=u||{};{let A=Sl(e,v);u[A.route.id]==null&&(u[A.route.id]=y)}a[v]=void 0,f||(f=!0,c=f0(g.error)?g.error.status:500),g.headers&&(p[v]=g.headers)}else la(g)?(o.set(v,g.deferredData),a[v]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!f&&(c=g.statusCode),g.headers&&(p[v]=g.headers)):(a[v]=g.data,g.statusCode&&g.statusCode!==200&&!f&&(c=g.statusCode),g.headers&&(p[v]=g.headers))}),h!==void 0&&r&&(u={[r[0]]:h},a[r[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:p}}function fE(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=Iq(t,n,r,o,u);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function hE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function vr(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="Bad Request",i==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: +`+a):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?c="defer() is not supported in actions":i==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",c='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new $y(e||500,u,new Error(c),!0)}function mE(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ua(n))return{result:n,idx:t}}}function Sk(e){let t=typeof e=="string"?Bs(e):e;return vf(on({},t,{hash:""}))}function $q(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Fq(e){return typeof e=="object"&&e!=null&&"then"in e}function Uq(e){return Ek(e.result)&&Sq.has(e.result.status)}function la(e){return e.type===Wt.deferred}function Kr(e){return e.type===Wt.error}function ua(e){return(e&&e.type)===Wt.redirect}function zq(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ek(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jq(e){return _q.has(e.toLowerCase())}function Ko(e){return bq.has(e.toLowerCase())}async function gE(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!xk(f,c)&&(i&&i[c.route.id])!==void 0;if(la(u)&&(o||p)){let h=r[a];pt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ck(u,h,o).then(g=>{g&&(n[a]=g||n[a])})}}}async function Ck(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Wt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Wt.error,error:o}}return{type:Wt.data,data:e.deferredData.data}}}function Uy(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sc(e,t){let n=typeof t=="string"?Bs(t).search:t.search;if(e[e.length-1].route.index&&Uy(n||""))return e[e.length-1];let r=yk(e);return r[r.length-1]}function vE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function ev(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vq(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ku(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Wq(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function as(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function qq(e,t){try{let n=e.sessionStorage.getItem(bk);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Hq(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(bk,JSON.stringify(n))}catch(r){Yl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. @@ -98,7 +98,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},u,y.params),pathname:ha([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:ha([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function Yq(){let e=rH(),t=f0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,null)}const Xq=D.createElement(Yq,null);class Zq extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(d0.Provider,{value:this.props.routeContext},D.createElement(Tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qq(e){let{routeContext:t,match:n,children:r}=e,o=D.useContext(Ak);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(d0.Provider,{value:t},r)}function Jq(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=a.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||pt(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,h,m)=>{let b,v=!1,y=null,A=null;n&&(b=u&&h.route.id?u[h.route.id]:void 0,y=h.route.errorElement||Xq,c&&(f<0&&m===0?(v=!0,A=null):f===m&&(v=!0,A=h.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,m+1)),w=()=>{let S;return b?S=y:v?S=A:h.route.Component?S=D.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,D.createElement(Qq,{match:h,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?D.createElement(Zq,{location:n.location,revalidation:n.revalidation,component:y,error:b,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}var $2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($2||{});function eH(e){let t=D.useContext(Rk);return t||pt(!1),t}function tH(e){let t=D.useContext(d0);return t||pt(!1),t}function nH(e){let t=tH(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function rH(){var e;let t=D.useContext(Tk),n=eH($2.UseRouteError),r=nH($2.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function oH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Tn.Pop,navigator:i,static:a=!1,future:u}=e;jy()&&pt(!1);let c=t.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:c,navigator:i,static:a,future:I2({v7_relativeSplatPath:!1},u)}),[c,u,i,a]);typeof r=="string"&&(r=Bs(r));let{pathname:p="/",search:h="",hash:m="",state:b=null,key:v="default"}=r,y=D.useMemo(()=>{let A=yf(p,c);return A==null?null:{location:{pathname:A,search:h,hash:m,state:b,key:v},navigationType:o}},[c,p,h,m,b,v,o]);return y==null?null:D.createElement(kk.Provider,{value:f},D.createElement(zy.Provider,{children:n,value:y}))}new Promise(()=>{});function iH(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},u,y.params),pathname:ha([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:ha([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function Yq(){let e=rH(),t=f0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,null)}const Xq=D.createElement(Yq,null);class Zq extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(d0.Provider,{value:this.props.routeContext},D.createElement(Tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qq(e){let{routeContext:t,match:n,children:r}=e,o=D.useContext(Ak);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(d0.Provider,{value:t},r)}function Jq(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=a.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||pt(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,h,g)=>{let b,v=!1,y=null,A=null;n&&(b=u&&h.route.id?u[h.route.id]:void 0,y=h.route.errorElement||Xq,c&&(f<0&&g===0?(v=!0,A=null):f===g&&(v=!0,A=h.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,g+1)),w=()=>{let S;return b?S=y:v?S=A:h.route.Component?S=D.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,D.createElement(Qq,{match:h,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?D.createElement(Zq,{location:n.location,revalidation:n.revalidation,component:y,error:b,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}var $2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($2||{});function eH(e){let t=D.useContext(Rk);return t||pt(!1),t}function tH(e){let t=D.useContext(d0);return t||pt(!1),t}function nH(e){let t=tH(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function rH(){var e;let t=D.useContext(Tk),n=eH($2.UseRouteError),r=nH($2.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function oH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Tn.Pop,navigator:i,static:a=!1,future:u}=e;jy()&&pt(!1);let c=t.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:c,navigator:i,static:a,future:I2({v7_relativeSplatPath:!1},u)}),[c,u,i,a]);typeof r=="string"&&(r=Bs(r));let{pathname:p="/",search:h="",hash:g="",state:b=null,key:v="default"}=r,y=D.useMemo(()=>{let A=yf(p,c);return A==null?null:{location:{pathname:A,search:h,hash:g,state:b,key:v},navigationType:o}},[c,p,h,g,b,v,o]);return y==null?null:D.createElement(kk.Provider,{value:f},D.createElement(zy.Provider,{children:n,value:y}))}new Promise(()=>{});function iH(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. @@ -107,14 +107,14 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function uh(){return uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function gH(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=D.useState(n.state),[a,u]=D.useState(),[c,f]=D.useState({isTransitioning:!1}),[p,h]=D.useState(),[m,b]=D.useState(),[v,y]=D.useState(),A=D.useRef(new Map),{v7_startTransition:_}=r||{},w=D.useCallback(I=>{_?hH(I):I()},[_]),S=D.useCallback((I,q)=>{let{deletedFetchers:$,unstable_flushSync:X,unstable_viewTransitionOpts:ae}=q;$.forEach(H=>A.current.delete(H)),I.fetchers.forEach((H,Q)=>{H.data!==void 0&&A.current.set(Q,H.data)});let K=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ae||K){X?Yu(()=>i(I)):w(()=>i(I));return}if(X){Yu(()=>{m&&(p&&p.resolve(),m.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})});let H=n.window.document.startViewTransition(()=>{Yu(()=>i(I))});H.finished.finally(()=>{Yu(()=>{h(void 0),b(void 0),u(void 0),f({isTransitioning:!1})})}),Yu(()=>b(H));return}m?(p&&p.resolve(),m.skipTransition(),y({state:I,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})):(u(I),f({isTransitioning:!0,flushSync:!1,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation}))},[n.window,m,p,A,w]);D.useLayoutEffect(()=>n.subscribe(S),[n,S]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new mH)},[c]),D.useEffect(()=>{if(p&&a&&n.window){let I=a,q=p.promise,$=n.window.document.startViewTransition(async()=>{w(()=>i(I)),await q});$.finished.finally(()=>{h(void 0),b(void 0),u(void 0),f({isTransitioning:!1})}),b($)}},[w,a,p,n.window]),D.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,m,o.location,a]),D.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),D.useEffect(()=>{},[]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:I=>n.navigate(I),push:(I,q,$)=>n.navigate(I,{state:q,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(I,q,$)=>n.navigate(I,{replace:!0,state:q,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[n]),T=n.basename||"/",E=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:T}),[n,k,T]),L=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(Ak.Provider,{value:E},D.createElement(Rk.Provider,{value:o},D.createElement(fH.Provider,{value:A.current},D.createElement(cH.Provider,{value:c},D.createElement(oH,{basename:T,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?D.createElement(vH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const vH=D.memo(yH);function yH(e){let{routes:t,future:n,state:r}=e;return Kq(t,void 0,r,n)}var bE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bE||(bE={}));var xE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xE||(xE={}));const Hc={black:"#000",white:"#fff"},Za={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ja={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},el={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},tl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wH={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ts(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Zn(fu,--Fr):0,Zl--,Pn===10&&(Zl=1,h0--),Pn}function Jr(){return Pn=Fr2||Kc(Pn)>3?"":" "}function $H(e,t){for(;--t&&Jr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return wf(e,Sp()+(t<6&&hi()==32&&Jr()==32))}function U2(e){for(;Jr();)switch(Pn){case e:return Fr;case 34:case 39:e!==34&&e!==39&&U2(Pn);break;case 40:e===41&&U2(e);break;case 92:Jr();break}return Fr}function FH(e,t){for(;Jr()&&e+Pn!==57;)if(e+Pn===84&&hi()===47)break;return"/*"+wf(t,Fr-1)+"*"+p0(e===47?e:Jr())}function UH(e){for(;!Kc(hi());)Jr();return wf(e,Fr)}function zH(e){return Bk(Cp("",null,null,null,[""],e=Mk(e),0,[0],e))}function Cp(e,t,n,r,o,i,a,u,c){for(var f=0,p=0,h=a,m=0,b=0,v=0,y=1,A=1,_=1,w=0,S="",k=o,T=i,E=r,L=S;A;)switch(v=w,w=Jr()){case 40:if(v!=108&&Zn(L,h-1)==58){F2(L+=Tt(Ep(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:L+=Ep(w);break;case 9:case 10:case 13:case 32:L+=IH(v);break;case 92:L+=$H(Sp()-1,7);continue;case 47:switch(hi()){case 42:case 47:Hd(jH(FH(Jr(),Sp()),t,n),c);break;default:L+="/"}break;case 123*y:u[f++]=ui(L)*_;case 125*y:case 59:case 0:switch(w){case 0:case 125:A=0;case 59+p:_==-1&&(L=Tt(L,/\f/g,"")),b>0&&ui(L)-h&&Hd(b>32?SE(L+";",r,n,h-1):SE(Tt(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Hd(E=_E(L,t,n,f,p,o,u,S,k=[],T=[],h),i),w===123)if(p===0)Cp(L,t,E,E,k,i,h,u,T);else switch(m===99&&Zn(L,3)===110?100:m){case 100:case 108:case 109:case 115:Cp(e,E,E,r&&Hd(_E(e,E,E,0,0,o,u,S,o,k=[],h),T),o,T,h,u,r?k:T);break;default:Cp(L,E,E,E,[""],T,0,u,T)}}f=p=b=0,y=_=1,S=L="",h=a;break;case 58:h=1+ui(L),b=v;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&BH()==125)continue}switch(L+=p0(w),w*y){case 38:_=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(ui(L)-1)*_,_=1;break;case 64:hi()===45&&(L+=Ep(Jr())),m=hi(),p=h=ui(S=L+=UH(Sp())),w++;break;case 45:v===45&&ui(L)==2&&(y=0)}}return i}function _E(e,t,n,r,o,i,a,u,c,f,p){for(var h=o-1,m=o===0?i:[""],b=qy(m),v=0,y=0,A=0;v0?m[_]+" "+w:Tt(w,/&\f/g,m[_])))&&(c[A++]=S);return m0(e,t,n,o===0?Vy:u,c,f,p)}function jH(e,t,n){return m0(e,t,n,Pk,p0(MH()),Gc(e,2,-2),0)}function SE(e,t,n,r){return m0(e,t,n,Wy,Gc(e,0,r),Gc(e,r+1,-1),r)}function Nl(e,t){for(var n="",r=qy(e),o=0;o6)switch(Zn(e,t+1)){case 109:if(Zn(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+ch+(Zn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~F2(e,"stretch")?Ik(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zn(e,t+1)!==115)break;case 6444:switch(Zn(e,ui(e)-3-(~F2(e,"!important")&&10))){case 107:return Tt(e,":",":"+kt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(Zn(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+lr+"$2box$3")+e}break;case 5936:switch(Zn(e,t+11)){case 114:return kt+e+lr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+lr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+lr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+lr+e+e}return e}var ZH=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Wy:t.return=Ik(t.value,t.length);break;case Ok:return Nl([Zu(t,{value:Tt(t.value,"@","@"+kt)})],o);case Vy:if(t.length)return NH(t.props,function(i){switch(LH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nl([Zu(t,{props:[Tt(i,/:(read-\w+)/,":"+ch+"$1")]})],o);case"::placeholder":return Nl([Zu(t,{props:[Tt(i,/:(plac\w+)/,":"+kt+"input-$1")]}),Zu(t,{props:[Tt(i,/:(plac\w+)/,":"+ch+"$1")]}),Zu(t,{props:[Tt(i,/:(plac\w+)/,lr+"input-$1")]})],o)}return""})}},QH=[ZH],$k=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var A=y.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||QH,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var A=y.getAttribute("data-emotion").split(" "),_=1;_{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function gH(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=D.useState(n.state),[a,u]=D.useState(),[c,f]=D.useState({isTransitioning:!1}),[p,h]=D.useState(),[g,b]=D.useState(),[v,y]=D.useState(),A=D.useRef(new Map),{v7_startTransition:_}=r||{},w=D.useCallback(I=>{_?hH(I):I()},[_]),S=D.useCallback((I,q)=>{let{deletedFetchers:$,unstable_flushSync:X,unstable_viewTransitionOpts:ae}=q;$.forEach(H=>A.current.delete(H)),I.fetchers.forEach((H,Q)=>{H.data!==void 0&&A.current.set(Q,H.data)});let K=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ae||K){X?Yu(()=>i(I)):w(()=>i(I));return}if(X){Yu(()=>{g&&(p&&p.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})});let H=n.window.document.startViewTransition(()=>{Yu(()=>i(I))});H.finished.finally(()=>{Yu(()=>{h(void 0),b(void 0),u(void 0),f({isTransitioning:!1})})}),Yu(()=>b(H));return}g?(p&&p.resolve(),g.skipTransition(),y({state:I,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})):(u(I),f({isTransitioning:!0,flushSync:!1,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation}))},[n.window,g,p,A,w]);D.useLayoutEffect(()=>n.subscribe(S),[n,S]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new mH)},[c]),D.useEffect(()=>{if(p&&a&&n.window){let I=a,q=p.promise,$=n.window.document.startViewTransition(async()=>{w(()=>i(I)),await q});$.finished.finally(()=>{h(void 0),b(void 0),u(void 0),f({isTransitioning:!1})}),b($)}},[w,a,p,n.window]),D.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,g,o.location,a]),D.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),D.useEffect(()=>{},[]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:I=>n.navigate(I),push:(I,q,$)=>n.navigate(I,{state:q,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(I,q,$)=>n.navigate(I,{replace:!0,state:q,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[n]),T=n.basename||"/",E=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:T}),[n,k,T]),L=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(Ak.Provider,{value:E},D.createElement(Rk.Provider,{value:o},D.createElement(fH.Provider,{value:A.current},D.createElement(cH.Provider,{value:c},D.createElement(oH,{basename:T,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?D.createElement(vH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const vH=D.memo(yH);function yH(e){let{routes:t,future:n,state:r}=e;return Kq(t,void 0,r,n)}var bE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bE||(bE={}));var xE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xE||(xE={}));const Hc={black:"#000",white:"#fff"},Za={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ja={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},el={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},tl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wH={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ts(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Zn(fu,--Fr):0,Zl--,Pn===10&&(Zl=1,h0--),Pn}function Jr(){return Pn=Fr2||Kc(Pn)>3?"":" "}function $H(e,t){for(;--t&&Jr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return wf(e,Sp()+(t<6&&hi()==32&&Jr()==32))}function U2(e){for(;Jr();)switch(Pn){case e:return Fr;case 34:case 39:e!==34&&e!==39&&U2(Pn);break;case 40:e===41&&U2(e);break;case 92:Jr();break}return Fr}function FH(e,t){for(;Jr()&&e+Pn!==57;)if(e+Pn===84&&hi()===47)break;return"/*"+wf(t,Fr-1)+"*"+p0(e===47?e:Jr())}function UH(e){for(;!Kc(hi());)Jr();return wf(e,Fr)}function zH(e){return Bk(Cp("",null,null,null,[""],e=Mk(e),0,[0],e))}function Cp(e,t,n,r,o,i,a,u,c){for(var f=0,p=0,h=a,g=0,b=0,v=0,y=1,A=1,_=1,w=0,S="",k=o,T=i,E=r,L=S;A;)switch(v=w,w=Jr()){case 40:if(v!=108&&Zn(L,h-1)==58){F2(L+=Tt(Ep(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:L+=Ep(w);break;case 9:case 10:case 13:case 32:L+=IH(v);break;case 92:L+=$H(Sp()-1,7);continue;case 47:switch(hi()){case 42:case 47:Hd(jH(FH(Jr(),Sp()),t,n),c);break;default:L+="/"}break;case 123*y:u[f++]=ui(L)*_;case 125*y:case 59:case 0:switch(w){case 0:case 125:A=0;case 59+p:_==-1&&(L=Tt(L,/\f/g,"")),b>0&&ui(L)-h&&Hd(b>32?SE(L+";",r,n,h-1):SE(Tt(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Hd(E=_E(L,t,n,f,p,o,u,S,k=[],T=[],h),i),w===123)if(p===0)Cp(L,t,E,E,k,i,h,u,T);else switch(g===99&&Zn(L,3)===110?100:g){case 100:case 108:case 109:case 115:Cp(e,E,E,r&&Hd(_E(e,E,E,0,0,o,u,S,o,k=[],h),T),o,T,h,u,r?k:T);break;default:Cp(L,E,E,E,[""],T,0,u,T)}}f=p=b=0,y=_=1,S=L="",h=a;break;case 58:h=1+ui(L),b=v;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&BH()==125)continue}switch(L+=p0(w),w*y){case 38:_=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(ui(L)-1)*_,_=1;break;case 64:hi()===45&&(L+=Ep(Jr())),g=hi(),p=h=ui(S=L+=UH(Sp())),w++;break;case 45:v===45&&ui(L)==2&&(y=0)}}return i}function _E(e,t,n,r,o,i,a,u,c,f,p){for(var h=o-1,g=o===0?i:[""],b=qy(g),v=0,y=0,A=0;v0?g[_]+" "+w:Tt(w,/&\f/g,g[_])))&&(c[A++]=S);return m0(e,t,n,o===0?Vy:u,c,f,p)}function jH(e,t,n){return m0(e,t,n,Pk,p0(MH()),Gc(e,2,-2),0)}function SE(e,t,n,r){return m0(e,t,n,Wy,Gc(e,0,r),Gc(e,r+1,-1),r)}function Nl(e,t){for(var n="",r=qy(e),o=0;o6)switch(Zn(e,t+1)){case 109:if(Zn(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+ch+(Zn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~F2(e,"stretch")?Ik(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zn(e,t+1)!==115)break;case 6444:switch(Zn(e,ui(e)-3-(~F2(e,"!important")&&10))){case 107:return Tt(e,":",":"+kt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(Zn(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+lr+"$2box$3")+e}break;case 5936:switch(Zn(e,t+11)){case 114:return kt+e+lr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+lr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+lr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+lr+e+e}return e}var ZH=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Wy:t.return=Ik(t.value,t.length);break;case Ok:return Nl([Zu(t,{value:Tt(t.value,"@","@"+kt)})],o);case Vy:if(t.length)return NH(t.props,function(i){switch(LH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nl([Zu(t,{props:[Tt(i,/:(read-\w+)/,":"+ch+"$1")]})],o);case"::placeholder":return Nl([Zu(t,{props:[Tt(i,/:(plac\w+)/,":"+kt+"input-$1")]}),Zu(t,{props:[Tt(i,/:(plac\w+)/,":"+ch+"$1")]}),Zu(t,{props:[Tt(i,/:(plac\w+)/,lr+"input-$1")]})],o)}return""})}},QH=[ZH],$k=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var A=y.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||QH,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var A=y.getAttribute("data-emotion").split(" "),_=1;_=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fG=!1,dG=/[A-Z]|^ms/g,pG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qk=function(t){return t.charCodeAt(1)===45},CE=function(t){return t!=null&&typeof t!="boolean"},tv=Dk(function(e){return qk(e)?e:e.replace(dG,"-$&").toLowerCase()}),AE=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pG,function(r,o,i){return ci={name:o,styles:i,next:ci},o})}return cG[t]!==1&&!qk(t)&&typeof n=="number"&&n!==0?n+"px":n},hG="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Yc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ci={name:a.name,styles:a.styles,next:ci},a=a.next;var u=i.styles+";";return u}return mG(e,t,n)}case"function":{if(e!==void 0){var c=ci,f=n(e);return ci=c,Yc(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function mG(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?bG:xG},DE=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},_G=!1,SG=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Vk(n,r,o),vG(function(){return Wk(n,r,o)}),null},EG=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var u=DE(t,n,r),c=u||TE(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,b=1;bt(PG(o)?n:o):t;return O.jsx(wG,{styles:r})}function Xy(e,t){return z2(e,t)}const t4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},OG=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:e4,StyledEngineProvider:Jk,ThemeContext:bf,css:Yk,default:Xy,internal_processStyles:t4,keyframes:Pa},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function n4(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=n4(e[n])}),t}function ko(e,t,n={clone:!0}){const r=n.clone?V({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{Li(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Li(e[o])?r[o]=ko(e[o],t[o],n):n.clone?r[o]=Li(t[o])?n4(t[o]):t[o]:r[o]=t[o]}),r}const LG=Object.freeze(Object.defineProperty({__proto__:null,default:ko,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),NG=["values","unit","step"],MG=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>V({},n,{[r.key]:r.val}),{})};function r4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=it(e,NG),i=MG(t),a=Object.keys(i);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function p(m){return a.indexOf(m)+1`@media (min-width:${Zy[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||PE;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||PE;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||Zy).indexOf(u)!==-1){const c=i.up(u);a[c]=n(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return n(t)}function o4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function i4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function IG(e,...t){const n=o4(e),r=[n,...t].reduce((o,i)=>ko(o,i),{});return i4(Object.keys(n),r)}function $G(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function nv({values:e,breakpoints:t,base:n}){const r=n||$G(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function Mt(e){if(typeof e!="string")throw new Error(Ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}const FG=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));function Ql(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function fh(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ql(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=Ql(c,r)||{};return ei(a,u,h=>{let m=fh(f,o,h);return h===m&&typeof h=="string"&&(m=fh(f,o,`${t}${h==="default"?"":Mt(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function UG(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zG={m:"margin",p:"padding"},jG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VG=UG(e=>{if(e.length>2)if(OE[e])e=OE[e];else return[e];const[t,n]=e.split(""),r=zG[t],o=jG[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Qy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Qy,...Jy];function xf(e,t,n,r){var o;const i=(o=Ql(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function ew(e){return xf(e,"spacing",8)}function Ea(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function WG(e,t){return n=>e.reduce((r,o)=>(r[o]=Ea(t,n),r),{})}function qG(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=VG(n),i=WG(o,r),a=e[n];return ei(e,a,i)}function s4(e,t){const n=ew(e.theme);return Object.keys(e).map(r=>qG(e,t,r,n)).reduce(xc,{})}function hn(e){return s4(e,Qy)}hn.propTypes={};hn.filterProps=Qy;function mn(e){return s4(e,Jy)}mn.propTypes={};mn.filterProps=Jy;function HG(e=8){if(e.mui)return e;const t=ew({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function A0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?xc(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function Mo(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const GG=Mo("border",Co),KG=Mo("borderTop",Co),YG=Mo("borderRight",Co),XG=Mo("borderBottom",Co),ZG=Mo("borderLeft",Co),QG=Mo("borderColor"),JG=Mo("borderTopColor"),eK=Mo("borderRightColor"),tK=Mo("borderBottomColor"),nK=Mo("borderLeftColor"),rK=Mo("outline",Co),oK=Mo("outlineColor"),R0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ea(t,r)});return ei(e,e.borderRadius,n)}return null};R0.propTypes={};R0.filterProps=["borderRadius"];A0(GG,KG,YG,XG,ZG,QG,JG,eK,tK,nK,R0,rK,oK);const k0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xf(e.theme,"spacing",8),n=r=>({gap:Ea(t,r)});return ei(e,e.gap,n)}return null};k0.propTypes={};k0.filterProps=["gap"];const T0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xf(e.theme,"spacing",8),n=r=>({columnGap:Ea(t,r)});return ei(e,e.columnGap,n)}return null};T0.propTypes={};T0.filterProps=["columnGap"];const D0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xf(e.theme,"spacing",8),n=r=>({rowGap:Ea(t,r)});return ei(e,e.rowGap,n)}return null};D0.propTypes={};D0.filterProps=["rowGap"];const iK=Sn({prop:"gridColumn"}),sK=Sn({prop:"gridRow"}),aK=Sn({prop:"gridAutoFlow"}),lK=Sn({prop:"gridAutoColumns"}),uK=Sn({prop:"gridAutoRows"}),cK=Sn({prop:"gridTemplateColumns"}),fK=Sn({prop:"gridTemplateRows"}),dK=Sn({prop:"gridTemplateAreas"}),pK=Sn({prop:"gridArea"});A0(k0,T0,D0,iK,sK,aK,lK,uK,cK,fK,dK,pK);function Ml(e,t){return t==="grey"?t:e}const hK=Sn({prop:"color",themeKey:"palette",transform:Ml}),mK=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ml}),gK=Sn({prop:"backgroundColor",themeKey:"palette",transform:Ml});A0(hK,mK,gK);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const vK=Sn({prop:"width",transform:Yr}),tw=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Zy[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Yr(n)}};return ei(e,e.maxWidth,t)}return null};tw.filterProps=["maxWidth"];const yK=Sn({prop:"minWidth",transform:Yr}),wK=Sn({prop:"height",transform:Yr}),bK=Sn({prop:"maxHeight",transform:Yr}),xK=Sn({prop:"minHeight",transform:Yr});Sn({prop:"size",cssProperty:"width",transform:Yr});Sn({prop:"size",cssProperty:"height",transform:Yr});const _K=Sn({prop:"boxSizing"});A0(vK,tw,yK,wK,bK,xK,_K);const _f={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:R0},color:{themeKey:"palette",transform:Ml},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ml},backgroundColor:{themeKey:"palette",transform:Ml},p:{style:mn},pt:{style:mn},pr:{style:mn},pb:{style:mn},pl:{style:mn},px:{style:mn},py:{style:mn},padding:{style:mn},paddingTop:{style:mn},paddingRight:{style:mn},paddingBottom:{style:mn},paddingLeft:{style:mn},paddingX:{style:mn},paddingY:{style:mn},paddingInline:{style:mn},paddingInlineStart:{style:mn},paddingInlineEnd:{style:mn},paddingBlock:{style:mn},paddingBlockStart:{style:mn},paddingBlockEnd:{style:mn},m:{style:hn},mt:{style:hn},mr:{style:hn},mb:{style:hn},ml:{style:hn},mx:{style:hn},my:{style:hn},margin:{style:hn},marginTop:{style:hn},marginRight:{style:hn},marginBottom:{style:hn},marginLeft:{style:hn},marginX:{style:hn},marginY:{style:hn},marginInline:{style:hn},marginInlineStart:{style:hn},marginInlineEnd:{style:hn},marginBlock:{style:hn},marginBlockStart:{style:hn},marginBlockEnd:{style:hn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k0},rowGap:{style:D0},columnGap:{style:T0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:tw},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function SK(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function EK(e,t){return typeof e=="function"?e(t):e}function a4(){function e(n,r,o,i){const a={[n]:r,theme:o},u=i[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:h}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=Ql(o,f)||{};return h?h(a):ei(a,r,v=>{let y=fh(m,p,v);return v===y&&typeof v=="string"&&(y=fh(m,p,`${n}${v==="default"?"":Mt(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:_f;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const p=o4(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(b=>{const v=EK(f[b],i);if(v!=null)if(typeof v=="object")if(a[b])m=xc(m,e(b,v,i,a));else{const y=ei({theme:i},v,A=>({[b]:A}));SK(y,v)?m[b]=t({sx:v,theme:i}):m=xc(m,y)}else m=xc(m,e(b,v,i,a))}),i4(h,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const du=a4();du.filterProps=["sx"];function l4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const CK=["breakpoints","palette","spacing","shape"];function Sf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=it(e,CK),u=r4(n),c=HG(o);let f=ko({breakpoints:u,direction:"ltr",components:{},palette:V({mode:"light"},r),spacing:c,shape:V({},BG,i)},a);return f.applyStyles=l4,f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},_f,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const AK=Object.freeze(Object.defineProperty({__proto__:null,default:Sf,private_createBreakpoints:r4,unstable_applyStyles:l4},Symbol.toStringTag,{value:"Module"}));function RK(e){return Object.keys(e).length===0}function u4(e=null){const t=D.useContext(bf);return!t||RK(t)?e:t}const kK=Sf();function P0(e=kK){return u4(e)}function TK({styles:e,themeId:t,defaultTheme:n={}}){const r=P0(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(e4,{styles:o})}const DK=["sx"],PK=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_f;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function O0(e){const{sx:t}=e,n=it(e,DK),{systemProps:r,otherProps:o}=PK(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Li(u)?V({},r,u):r}:i=V({},r,t),V({},o,{sx:i})}const OK=Object.freeze(Object.defineProperty({__proto__:null,default:du,extendSxProp:O0,unstable_createStyleFunctionSx:a4,unstable_defaultSxConfig:_f},Symbol.toStringTag,{value:"Module"})),LE=e=>e,LK=()=>{let e=LE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=LE}}},c4=LK();function f4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(du);return D.forwardRef(function(c,f){const p=P0(n),h=O0(c),{className:m,component:b="div"}=h,v=it(h,NK);return O.jsx(i,V({as:b,ref:f,className:gt(m,o?o(r):r),theme:t&&p[t]||p},v))})}const BK={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function er(e,t,n="Mui"){const r=BK[t];return r?`${n}-${r}`:`${c4.generate(e)}-${t}`}function tr(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=er(e,o,n)}),r}var d4={exports:{}},Nt={};/** + */var Vn=typeof Symbol=="function"&&Symbol.for,Hy=Vn?Symbol.for("react.element"):60103,Gy=Vn?Symbol.for("react.portal"):60106,g0=Vn?Symbol.for("react.fragment"):60107,v0=Vn?Symbol.for("react.strict_mode"):60108,y0=Vn?Symbol.for("react.profiler"):60114,w0=Vn?Symbol.for("react.provider"):60109,b0=Vn?Symbol.for("react.context"):60110,Ky=Vn?Symbol.for("react.async_mode"):60111,x0=Vn?Symbol.for("react.concurrent_mode"):60111,_0=Vn?Symbol.for("react.forward_ref"):60112,S0=Vn?Symbol.for("react.suspense"):60113,JH=Vn?Symbol.for("react.suspense_list"):60120,E0=Vn?Symbol.for("react.memo"):60115,C0=Vn?Symbol.for("react.lazy"):60116,eG=Vn?Symbol.for("react.block"):60121,tG=Vn?Symbol.for("react.fundamental"):60117,nG=Vn?Symbol.for("react.responder"):60118,rG=Vn?Symbol.for("react.scope"):60119;function io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hy:switch(e=e.type,e){case Ky:case x0:case g0:case y0:case v0:case S0:return e;default:switch(e=e&&e.$$typeof,e){case b0:case _0:case C0:case E0:case w0:return e;default:return t}}case Gy:return t}}}function Uk(e){return io(e)===x0}Lt.AsyncMode=Ky;Lt.ConcurrentMode=x0;Lt.ContextConsumer=b0;Lt.ContextProvider=w0;Lt.Element=Hy;Lt.ForwardRef=_0;Lt.Fragment=g0;Lt.Lazy=C0;Lt.Memo=E0;Lt.Portal=Gy;Lt.Profiler=y0;Lt.StrictMode=v0;Lt.Suspense=S0;Lt.isAsyncMode=function(e){return Uk(e)||io(e)===Ky};Lt.isConcurrentMode=Uk;Lt.isContextConsumer=function(e){return io(e)===b0};Lt.isContextProvider=function(e){return io(e)===w0};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hy};Lt.isForwardRef=function(e){return io(e)===_0};Lt.isFragment=function(e){return io(e)===g0};Lt.isLazy=function(e){return io(e)===C0};Lt.isMemo=function(e){return io(e)===E0};Lt.isPortal=function(e){return io(e)===Gy};Lt.isProfiler=function(e){return io(e)===y0};Lt.isStrictMode=function(e){return io(e)===v0};Lt.isSuspense=function(e){return io(e)===S0};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===g0||e===x0||e===y0||e===v0||e===S0||e===JH||typeof e=="object"&&e!==null&&(e.$$typeof===C0||e.$$typeof===E0||e.$$typeof===w0||e.$$typeof===b0||e.$$typeof===_0||e.$$typeof===tG||e.$$typeof===nG||e.$$typeof===rG||e.$$typeof===eG)};Lt.typeOf=io;Fk.exports=Lt;var oG=Fk.exports,zk=oG,iG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jk={};jk[zk.ForwardRef]=iG;jk[zk.Memo]=sG;var aG=!0;function lG(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Vk=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||aG===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Wk=function(t,n,r){Vk(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function uG(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fG=!1,dG=/[A-Z]|^ms/g,pG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qk=function(t){return t.charCodeAt(1)===45},CE=function(t){return t!=null&&typeof t!="boolean"},tv=Dk(function(e){return qk(e)?e:e.replace(dG,"-$&").toLowerCase()}),AE=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pG,function(r,o,i){return ci={name:o,styles:i,next:ci},o})}return cG[t]!==1&&!qk(t)&&typeof n=="number"&&n!==0?n+"px":n},hG="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Yc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ci={name:a.name,styles:a.styles,next:ci},a=a.next;var u=i.styles+";";return u}return mG(e,t,n)}case"function":{if(e!==void 0){var c=ci,f=n(e);return ci=c,Yc(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function mG(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?bG:xG},DE=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},_G=!1,SG=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Vk(n,r,o),vG(function(){return Wk(n,r,o)}),null},EG=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var u=DE(t,n,r),c=u||TE(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var g=p.length,b=1;bt(PG(o)?n:o):t;return O.jsx(wG,{styles:r})}function Xy(e,t){return z2(e,t)}const t4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},OG=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:e4,StyledEngineProvider:Jk,ThemeContext:bf,css:Yk,default:Xy,internal_processStyles:t4,keyframes:Pa},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function n4(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=n4(e[n])}),t}function ko(e,t,n={clone:!0}){const r=n.clone?V({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{Li(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Li(e[o])?r[o]=ko(e[o],t[o],n):n.clone?r[o]=Li(t[o])?n4(t[o]):t[o]:r[o]=t[o]}),r}const LG=Object.freeze(Object.defineProperty({__proto__:null,default:ko,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),NG=["values","unit","step"],MG=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>V({},n,{[r.key]:r.val}),{})};function r4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=it(e,NG),i=MG(t),a=Object.keys(i);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function f(g,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function p(g){return a.indexOf(g)+1`@media (min-width:${Zy[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||PE;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||PE;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||Zy).indexOf(u)!==-1){const c=i.up(u);a[c]=n(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return n(t)}function o4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function i4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function IG(e,...t){const n=o4(e),r=[n,...t].reduce((o,i)=>ko(o,i),{});return i4(Object.keys(n),r)}function $G(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function nv({values:e,breakpoints:t,base:n}){const r=n||$G(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function Mt(e){if(typeof e!="string")throw new Error(Ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}const FG=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));function Ql(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function fh(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ql(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=Ql(c,r)||{};return ei(a,u,h=>{let g=fh(f,o,h);return h===g&&typeof h=="string"&&(g=fh(f,o,`${t}${h==="default"?"":Mt(h)}`,h)),n===!1?g:{[n]:g}})};return i.propTypes={},i.filterProps=[t],i}function UG(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zG={m:"margin",p:"padding"},jG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VG=UG(e=>{if(e.length>2)if(OE[e])e=OE[e];else return[e];const[t,n]=e.split(""),r=zG[t],o=jG[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Qy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Qy,...Jy];function xf(e,t,n,r){var o;const i=(o=Ql(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function ew(e){return xf(e,"spacing",8)}function Ea(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function WG(e,t){return n=>e.reduce((r,o)=>(r[o]=Ea(t,n),r),{})}function qG(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=VG(n),i=WG(o,r),a=e[n];return ei(e,a,i)}function s4(e,t){const n=ew(e.theme);return Object.keys(e).map(r=>qG(e,t,r,n)).reduce(xc,{})}function hn(e){return s4(e,Qy)}hn.propTypes={};hn.filterProps=Qy;function mn(e){return s4(e,Jy)}mn.propTypes={};mn.filterProps=Jy;function HG(e=8){if(e.mui)return e;const t=ew({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function A0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?xc(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function Mo(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const GG=Mo("border",Co),KG=Mo("borderTop",Co),YG=Mo("borderRight",Co),XG=Mo("borderBottom",Co),ZG=Mo("borderLeft",Co),QG=Mo("borderColor"),JG=Mo("borderTopColor"),eK=Mo("borderRightColor"),tK=Mo("borderBottomColor"),nK=Mo("borderLeftColor"),rK=Mo("outline",Co),oK=Mo("outlineColor"),R0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ea(t,r)});return ei(e,e.borderRadius,n)}return null};R0.propTypes={};R0.filterProps=["borderRadius"];A0(GG,KG,YG,XG,ZG,QG,JG,eK,tK,nK,R0,rK,oK);const k0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xf(e.theme,"spacing",8),n=r=>({gap:Ea(t,r)});return ei(e,e.gap,n)}return null};k0.propTypes={};k0.filterProps=["gap"];const T0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xf(e.theme,"spacing",8),n=r=>({columnGap:Ea(t,r)});return ei(e,e.columnGap,n)}return null};T0.propTypes={};T0.filterProps=["columnGap"];const D0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xf(e.theme,"spacing",8),n=r=>({rowGap:Ea(t,r)});return ei(e,e.rowGap,n)}return null};D0.propTypes={};D0.filterProps=["rowGap"];const iK=Sn({prop:"gridColumn"}),sK=Sn({prop:"gridRow"}),aK=Sn({prop:"gridAutoFlow"}),lK=Sn({prop:"gridAutoColumns"}),uK=Sn({prop:"gridAutoRows"}),cK=Sn({prop:"gridTemplateColumns"}),fK=Sn({prop:"gridTemplateRows"}),dK=Sn({prop:"gridTemplateAreas"}),pK=Sn({prop:"gridArea"});A0(k0,T0,D0,iK,sK,aK,lK,uK,cK,fK,dK,pK);function Ml(e,t){return t==="grey"?t:e}const hK=Sn({prop:"color",themeKey:"palette",transform:Ml}),mK=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ml}),gK=Sn({prop:"backgroundColor",themeKey:"palette",transform:Ml});A0(hK,mK,gK);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const vK=Sn({prop:"width",transform:Yr}),tw=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Zy[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Yr(n)}};return ei(e,e.maxWidth,t)}return null};tw.filterProps=["maxWidth"];const yK=Sn({prop:"minWidth",transform:Yr}),wK=Sn({prop:"height",transform:Yr}),bK=Sn({prop:"maxHeight",transform:Yr}),xK=Sn({prop:"minHeight",transform:Yr});Sn({prop:"size",cssProperty:"width",transform:Yr});Sn({prop:"size",cssProperty:"height",transform:Yr});const _K=Sn({prop:"boxSizing"});A0(vK,tw,yK,wK,bK,xK,_K);const _f={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:R0},color:{themeKey:"palette",transform:Ml},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ml},backgroundColor:{themeKey:"palette",transform:Ml},p:{style:mn},pt:{style:mn},pr:{style:mn},pb:{style:mn},pl:{style:mn},px:{style:mn},py:{style:mn},padding:{style:mn},paddingTop:{style:mn},paddingRight:{style:mn},paddingBottom:{style:mn},paddingLeft:{style:mn},paddingX:{style:mn},paddingY:{style:mn},paddingInline:{style:mn},paddingInlineStart:{style:mn},paddingInlineEnd:{style:mn},paddingBlock:{style:mn},paddingBlockStart:{style:mn},paddingBlockEnd:{style:mn},m:{style:hn},mt:{style:hn},mr:{style:hn},mb:{style:hn},ml:{style:hn},mx:{style:hn},my:{style:hn},margin:{style:hn},marginTop:{style:hn},marginRight:{style:hn},marginBottom:{style:hn},marginLeft:{style:hn},marginX:{style:hn},marginY:{style:hn},marginInline:{style:hn},marginInlineStart:{style:hn},marginInlineEnd:{style:hn},marginBlock:{style:hn},marginBlockStart:{style:hn},marginBlockEnd:{style:hn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k0},rowGap:{style:D0},columnGap:{style:T0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:tw},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function SK(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function EK(e,t){return typeof e=="function"?e(t):e}function a4(){function e(n,r,o,i){const a={[n]:r,theme:o},u=i[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:h}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const g=Ql(o,f)||{};return h?h(a):ei(a,r,v=>{let y=fh(g,p,v);return v===y&&typeof v=="string"&&(y=fh(g,p,`${n}${v==="default"?"":Mt(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:_f;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const p=o4(i.breakpoints),h=Object.keys(p);let g=p;return Object.keys(f).forEach(b=>{const v=EK(f[b],i);if(v!=null)if(typeof v=="object")if(a[b])g=xc(g,e(b,v,i,a));else{const y=ei({theme:i},v,A=>({[b]:A}));SK(y,v)?g[b]=t({sx:v,theme:i}):g=xc(g,y)}else g=xc(g,e(b,v,i,a))}),i4(h,g)}return Array.isArray(o)?o.map(u):u(o)}return t}const du=a4();du.filterProps=["sx"];function l4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const CK=["breakpoints","palette","spacing","shape"];function Sf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=it(e,CK),u=r4(n),c=HG(o);let f=ko({breakpoints:u,direction:"ltr",components:{},palette:V({mode:"light"},r),spacing:c,shape:V({},BG,i)},a);return f.applyStyles=l4,f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},_f,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const AK=Object.freeze(Object.defineProperty({__proto__:null,default:Sf,private_createBreakpoints:r4,unstable_applyStyles:l4},Symbol.toStringTag,{value:"Module"}));function RK(e){return Object.keys(e).length===0}function u4(e=null){const t=D.useContext(bf);return!t||RK(t)?e:t}const kK=Sf();function P0(e=kK){return u4(e)}function TK({styles:e,themeId:t,defaultTheme:n={}}){const r=P0(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(e4,{styles:o})}const DK=["sx"],PK=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_f;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function O0(e){const{sx:t}=e,n=it(e,DK),{systemProps:r,otherProps:o}=PK(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Li(u)?V({},r,u):r}:i=V({},r,t),V({},o,{sx:i})}const OK=Object.freeze(Object.defineProperty({__proto__:null,default:du,extendSxProp:O0,unstable_createStyleFunctionSx:a4,unstable_defaultSxConfig:_f},Symbol.toStringTag,{value:"Module"})),LE=e=>e,LK=()=>{let e=LE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=LE}}},c4=LK();function f4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(du);return D.forwardRef(function(c,f){const p=P0(n),h=O0(c),{className:g,component:b="div"}=h,v=it(h,NK);return O.jsx(i,V({as:b,ref:f,className:gt(g,o?o(r):r),theme:t&&p[t]||p},v))})}const BK={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function er(e,t,n="Mui"){const r=BK[t];return r?`${n}-${r}`:`${c4.generate(e)}-${t}`}function tr(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=er(e,o,n)}),r}var d4={exports:{}},Nt={};/** * @license React * react-is.production.min.js * @@ -122,7 +122,7 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var nw=Symbol.for("react.element"),rw=Symbol.for("react.portal"),L0=Symbol.for("react.fragment"),N0=Symbol.for("react.strict_mode"),M0=Symbol.for("react.profiler"),B0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),IK=Symbol.for("react.server_context"),$0=Symbol.for("react.forward_ref"),F0=Symbol.for("react.suspense"),U0=Symbol.for("react.suspense_list"),z0=Symbol.for("react.memo"),j0=Symbol.for("react.lazy"),$K=Symbol.for("react.offscreen"),p4;p4=Symbol.for("react.module.reference");function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nw:switch(e=e.type,e){case L0:case M0:case N0:case F0:case U0:return e;default:switch(e=e&&e.$$typeof,e){case IK:case I0:case $0:case j0:case z0:case B0:return e;default:return t}}case rw:return t}}}Nt.ContextConsumer=I0;Nt.ContextProvider=B0;Nt.Element=nw;Nt.ForwardRef=$0;Nt.Fragment=L0;Nt.Lazy=j0;Nt.Memo=z0;Nt.Portal=rw;Nt.Profiler=M0;Nt.StrictMode=N0;Nt.Suspense=F0;Nt.SuspenseList=U0;Nt.isAsyncMode=function(){return!1};Nt.isConcurrentMode=function(){return!1};Nt.isContextConsumer=function(e){return Bo(e)===I0};Nt.isContextProvider=function(e){return Bo(e)===B0};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nw};Nt.isForwardRef=function(e){return Bo(e)===$0};Nt.isFragment=function(e){return Bo(e)===L0};Nt.isLazy=function(e){return Bo(e)===j0};Nt.isMemo=function(e){return Bo(e)===z0};Nt.isPortal=function(e){return Bo(e)===rw};Nt.isProfiler=function(e){return Bo(e)===M0};Nt.isStrictMode=function(e){return Bo(e)===N0};Nt.isSuspense=function(e){return Bo(e)===F0};Nt.isSuspenseList=function(e){return Bo(e)===U0};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===L0||e===M0||e===N0||e===F0||e===U0||e===$K||typeof e=="object"&&e!==null&&(e.$$typeof===j0||e.$$typeof===z0||e.$$typeof===B0||e.$$typeof===I0||e.$$typeof===$0||e.$$typeof===p4||e.getModuleId!==void 0)};Nt.typeOf=Bo;d4.exports=Nt;var NE=d4.exports;const FK=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function h4(e){const t=`${e}`.match(FK);return t&&t[1]||""}function m4(e,t=""){return e.displayName||e.name||h4(e)||t}function ME(e,t,n){const r=m4(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function UK(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return m4(e,"Component");if(typeof e=="object")switch(e.$$typeof){case NE.ForwardRef:return ME(e,e.render,"ForwardRef");case NE.Memo:return ME(e,e.type,"memo");default:return}}}const zK=Object.freeze(Object.defineProperty({__proto__:null,default:UK,getFunctionName:h4},Symbol.toStringTag,{value:"Module"})),jK=["ownerState"],VK=["variants"],WK=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qK(e){return Object.keys(e).length===0}function HK(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GK=Sf(),KK=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gd({defaultTheme:e,theme:t,themeId:n}){return qK(t)?e:t[n]||t}function YK(e){return e?(t,n)=>n[e]:null}function Ap(e,t){let{ownerState:n}=t,r=it(t,jK);const o=typeof e=="function"?e(V({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ap(i,V({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=it(o,VK);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(V({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(V({ownerState:n},r,n)):c.style))}),u}return o}function XK(e={}){const{themeId:t,defaultTheme:n=GK,rootShouldForwardProp:r=rv,slotShouldForwardProp:o=rv}=e,i=a=>du(V({},a,{theme:Gd(V({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{t4(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=YK(KK(f))}=u,b=it(u,WK),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=rv;f==="Root"||f==="root"?_=r:f?_=o:HK(a)&&(_=void 0);const w=Xy(a,V({shouldForwardProp:_,label:A},b)),S=T=>typeof T=="function"&&T.__emotion_real!==T||Li(T)?E=>Ap(T,V({},E,{theme:Gd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const I=E?E.map(S):[];c&&m&&I.push(X=>{const ae=Gd(V({},X,{defaultTheme:n,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const K=ae.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,re])=>{H[Q]=Ap(re,V({},X,{theme:ae}))}),m(X,H)}),c&&!v&&I.push(X=>{var ae;const K=Gd(V({},X,{defaultTheme:n,themeId:t})),H=K==null||(ae=K.components)==null||(ae=ae[c])==null?void 0:ae.variants;return Ap({variants:H},V({},X,{theme:K}))}),y||I.push(i);const q=I.length-E.length;if(Array.isArray(T)&&q>0){const X=new Array(q).fill("");L=[...T,...X],L.raw=[...T.raw,...X]}const $=w(L,...I);return a.muiName&&($.muiName=a.muiName),$};return w.withConfig&&(k.withConfig=w.withConfig),k}}const ZK=XK();function Xc(e,t){const n=V({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=V({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=V({},i),Object.keys(o).forEach(a=>{n[r][a]=Xc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function QK(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xc(t.components[n].defaultProps,r)}function JK({props:e,name:t,defaultTheme:n,themeId:r}){let o=P0(n);return r&&(o=o[r]||o),QK({theme:o,name:t,props:e})}const vi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function g4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const eY=Object.freeze(Object.defineProperty({__proto__:null,default:g4},Symbol.toStringTag,{value:"Module"}));function tY(e,t=0,n=1){return g4(e,t,n)}function nY(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function v4(e){if(e.type)return e;if(e.charAt(0)==="#")return v4(nY(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ts(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ts(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function rY(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Yn(e,t){return e=v4(e),t=tY(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rY(e)}function oY(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Rp(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function V2(e){return e&&e.ownerDocument||document}function BE(e){return V2(e).defaultView||window}function W2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let IE=0;function iY(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(IE+=1,n(`mui-${IE}`))},[t]),r}const $E=Pp.useId;function sY(e){if($E!==void 0){const t=$E();return e??t}return iY(e)}function aY({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),u=o?e:i,c=D.useCallback(f=>{o||a(f)},[]);return[u,c]}function El(e){const t=D.useRef(e);return vi(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function to(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{W2(n,t)})},e)}const FE={};function lY(e,t){const n=D.useRef(FE);return n.current===FE&&(n.current=e(t)),n}const uY=[];function cY(e){D.useEffect(e,uY)}class Ef{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ef}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Cl(){const e=lY(Ef.create).current;return cY(e.disposeEffect),e}let V0=!0,q2=!1;const fY=new Ef,dY={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function pY(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&dY[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hY(e){e.metaKey||e.altKey||e.ctrlKey||(V0=!0)}function ov(){V0=!1}function mY(){this.visibilityState==="hidden"&&q2&&(V0=!0)}function gY(e){e.addEventListener("keydown",hY,!0),e.addEventListener("mousedown",ov,!0),e.addEventListener("pointerdown",ov,!0),e.addEventListener("touchstart",ov,!0),e.addEventListener("visibilitychange",mY,!0)}function vY(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return V0||pY(t)}function ow(){const e=D.useCallback(o=>{o!=null&&gY(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(q2=!0,fY.start(100,()=>{q2=!1}),t.current=!1,!0):!1}function r(o){return vY(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fr(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function Zc(e){return typeof e=="string"}function ac(e,t,n){return e===void 0||Zc(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function yY(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function UE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function wY(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=gt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=V({},n,o,r);return b.length>0&&(y.className=b),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=yY(V({},o,r)),u=UE(r),c=UE(o),f=t(a),p=gt(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=V({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=V({},f,n,c,u);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}function bY(e,t,n){return typeof e=="function"?e(t,n):e}const xY=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _Y(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=it(e,xY),u=i?{}:bY(r,o),{props:c,internalRef:f}=wY(V({},a,{externalSlotProps:u})),p=to(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return ac(n,V({},c,{ref:p}),o)}const y4=D.createContext(null);function w4(){return D.useContext(y4)}const SY=typeof Symbol=="function"&&Symbol.for,EY=SY?Symbol.for("mui.nested"):"__THEME_NESTED__";function CY(e,t){return typeof t=="function"?t(e):V({},e,t)}function AY(e){const{children:t,theme:n}=e,r=w4(),o=D.useMemo(()=>{const i=r===null?n:CY(r,n);return i!=null&&(i[EY]=r!==null),i},[n,r]);return O.jsx(y4.Provider,{value:o,children:t})}const RY=["value"],b4=D.createContext();function kY(e){let{value:t}=e,n=it(e,RY);return O.jsx(b4.Provider,V({value:t??!0},n))}const TY=()=>{const e=D.useContext(b4);return e??!1},x4=D.createContext(void 0);function DY({value:e,children:t}){return O.jsx(x4.Provider,{value:e,children:t})}function PY(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Xc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Xc(o,r):r}function OY({props:e,name:t}){const n=D.useContext(x4);return PY({props:e,name:t,theme:{components:n}})}const zE={};function jE(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?V({},t,{[e]:i}):i;return r?()=>a:a}return e?V({},t,{[e]:n}):V({},t,n)},[e,t,n,r])}function LY(e){const{children:t,theme:n,themeId:r}=e,o=u4(zE),i=w4()||zE,a=jE(r,o,n),u=jE(r,i,n,!0),c=a.direction==="rtl";return O.jsx(AY,{theme:u,children:O.jsx(bf.Provider,{value:a,children:O.jsx(kY,{value:c,children:O.jsx(DY,{value:a==null?void 0:a.components,children:t})})})})}const NY=["component","direction","spacing","divider","children","className","useFlexGap"],MY=Sf(),BY=ZK("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function IY(e){return JK({props:e,name:"MuiStack",defaultTheme:MY})}function $Y(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],UY=({ownerState:e,theme:t})=>{let n=V({display:"flex",flexDirection:"column"},ei({theme:t},nv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ew(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),i=nv({values:e.direction,base:o}),a=nv({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,f,p)=>{if(!i[c]){const m=f>0?i[p[f-1]]:"column";i[c]=m}}),n=ko(n,ei({theme:t},a,(c,f)=>e.useFlexGap?{gap:Ea(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${FY(f?i[f]:e.direction)}`]:Ea(r,c)}}))}return n=IG(t.breakpoints,n),n};function zY(e={}){const{createStyledComponent:t=BY,useThemeProps:n=IY,componentName:r="MuiStack"}=e,o=()=>fr({root:["root"]},c=>er(r,c),{}),i=t(UY);return D.forwardRef(function(c,f){const p=n(c),h=O0(p),{component:m="div",direction:b="column",spacing:v=0,divider:y,children:A,className:_,useFlexGap:w=!1}=h,S=it(h,NY),k={direction:b,spacing:v,useFlexGap:w},T=o();return O.jsx(i,V({as:m,ownerState:k,ref:f,className:gt(T.root,_)},S,{children:y?$Y(A,y):A}))})}function jY(e,t){return V({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var En={},_4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(_4);var S4=_4.exports;const VY=Vi(bH),WY=Vi(eY);var E4=S4;Object.defineProperty(En,"__esModule",{value:!0});var wr=En.alpha=k4;En.blend=rX;En.colorChannel=void 0;var qY=En.darken=sw;En.decomposeColor=Oo;En.emphasize=T4;var HY=En.getContrastRatio=QY;En.getLuminance=dh;En.hexToRgb=C4;En.hslToRgb=R4;var GY=En.lighten=aw;En.private_safeAlpha=JY;En.private_safeColorChannel=void 0;En.private_safeDarken=eX;En.private_safeEmphasize=nX;En.private_safeLighten=tX;En.recomposeColor=pu;En.rgbToHex=ZY;var VE=E4(VY),KY=E4(WY);function iw(e,t=0,n=1){return(0,KY.default)(e,t,n)}function C4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function YY(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Oo(e){if(e.type)return e;if(e.charAt(0)==="#")return Oo(C4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,VE.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,VE.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const A4=e=>{const t=Oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};En.colorChannel=A4;const XY=(e,t)=>{try{return A4(e)}catch{return e}};En.private_safeColorChannel=XY;function pu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZY(e){if(e.indexOf("#")===0)return e;const{values:t}=Oo(e);return`#${t.map((n,r)=>YY(r===3?Math.round(255*n):n)).join("")}`}function R4(e){e=Oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),pu({type:u,values:c})}function dh(e){e=Oo(e);let t=e.type==="hsl"||e.type==="hsla"?Oo(R4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function QY(e,t){const n=dh(e),r=dh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function k4(e,t){return e=Oo(e),t=iw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pu(e)}function JY(e,t,n){try{return k4(e,t)}catch{return e}}function sw(e,t){if(e=Oo(e),t=iw(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pu(e)}function eX(e,t,n){try{return sw(e,t)}catch{return e}}function aw(e,t){if(e=Oo(e),t=iw(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pu(e)}function tX(e,t,n){try{return aw(e,t)}catch{return e}}function T4(e,t=.15){return dh(e)>.5?sw(e,t):aw(e,t)}function nX(e,t,n){try{return T4(e,t)}catch{return e}}function rX(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),i=Oo(e),a=Oo(t),u=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return pu({type:"rgb",values:u})}const oX=["mode","contrastThreshold","tonalOffset"],WE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hc.white,default:Hc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},iv={text:{primary:Hc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function qE(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=GY(e.main,o):t==="dark"&&(e.dark=qY(e.main,i)))}function iX(e="light"){return e==="dark"?{main:Ja[200],light:Ja[50],dark:Ja[400]}:{main:Ja[700],light:Ja[400],dark:Ja[800]}}function sX(e="light"){return e==="dark"?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[500],light:Qa[300],dark:Qa[700]}}function aX(e="light"){return e==="dark"?{main:Za[500],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[400],dark:Za[800]}}function lX(e="light"){return e==="dark"?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}function uX(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}function cX(e="light"){return e==="dark"?{main:Xu[400],light:Xu[300],dark:Xu[700]}:{main:"#ed6c02",light:Xu[500],dark:Xu[900]}}function fX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=it(e,oX),i=e.primary||iX(t),a=e.secondary||sX(t),u=e.error||aX(t),c=e.info||lX(t),f=e.success||uX(t),p=e.warning||cX(t);function h(y){return HY(y,iv.text.primary)>=n?iv.text.primary:WE.text.primary}const m=({color:y,name:A,mainShade:_=500,lightShade:w=300,darkShade:S=700})=>{if(y=V({},y),!y.main&&y[_]&&(y.main=y[_]),!y.hasOwnProperty("main"))throw new Error(Ts(11,A?` (${A})`:"",_));if(typeof y.main!="string")throw new Error(Ts(12,A?` (${A})`:"",JSON.stringify(y.main)));return qE(y,"light",w,r),qE(y,"dark",S,r),y.contrastText||(y.contrastText=h(y.main)),y},b={dark:iv,light:WE};return ko(V({common:V({},Hc),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:wH,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},b[t]),o)}const dX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pX(e){return Math.round(e*1e5)/1e5}const HE={textTransform:"uppercase"},GE='"Roboto", "Helvetica", "Arial", sans-serif';function hX(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=GE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=it(n,dX),b=o/14,v=h||(_=>`${_/f*b}rem`),y=(_,w,S,k,T)=>V({fontFamily:r,fontWeight:_,fontSize:v(w),lineHeight:S},r===GE?{letterSpacing:`${pX(k/w)}em`}:{},T,p),A={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(u,14,1.75,.4,HE),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,HE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ko(V({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},A),m,{clone:!1})}const mX=.2,gX=.14,vX=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vX})`].join(",")}const yX=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],wX=["duration","easing","delay"],bX={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function KE(e){return`${Math.round(e)}ms`}function _X(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function SX(e){const t=V({},bX,e.easing),n=V({},xX,e.duration);return V({getAutoHeightDuration:_X,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:u=t.easeInOut,delay:c=0}=i;return it(i,wX),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:KE(a)} ${u} ${typeof c=="string"?c:KE(c)}`).join(",")}},e,{easing:t,duration:n})}const EX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},CX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function W0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=it(e,CX);if(e.vars)throw new Error(Ts(18));const u=fX(r),c=Sf(e);let f=ko(c,{mixins:jY(c.breakpoints,n),palette:u,shadows:yX.slice(),typography:hX(u,i),transitions:SX(o),zIndex:V({},EX)});return f=ko(f,a),f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},_f,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const lw=W0();function Cf(){const e=P0(lw);return e[Xl]||e}var Af={};const AX=Vi(xH);var sv={exports:{}},YE;function RX(){return YE||(YE=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sv)),sv.exports}const D4=Vi(OG),kX=Vi(LG),TX=Vi(FG),DX=Vi(zK),PX=Vi(AK),OX=Vi(OK);var hu=S4;Object.defineProperty(Af,"__esModule",{value:!0});var LX=Af.default=HX;Af.shouldForwardProp=kp;Af.systemDefaultTheme=void 0;var wo=hu(AX),H2=hu(RX()),XE=UX(D4),NX=kX;hu(TX);hu(DX);var MX=hu(PX),BX=hu(OX);const IX=["ownerState"],$X=["variants"],FX=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function P4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(P4=function(r){return r?n:t})(e)}function UX(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=P4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function zX(e){return Object.keys(e).length===0}function jX(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const VX=Af.systemDefaultTheme=(0,MX.default)(),WX=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kd({defaultTheme:e,theme:t,themeId:n}){return zX(t)?e:t[n]||t}function qX(e){return e?(t,n)=>n[e]:null}function Tp(e,t){let{ownerState:n}=t,r=(0,H2.default)(t,IX);const o=typeof e=="function"?e((0,wo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Tp(i,(0,wo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=(0,H2.default)(o,$X);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,wo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,wo.default)({ownerState:n},r,n)):c.style))}),u}return o}function HX(e={}){const{themeId:t,defaultTheme:n=VX,rootShouldForwardProp:r=kp,slotShouldForwardProp:o=kp}=e,i=a=>(0,BX.default)((0,wo.default)({},a,{theme:Kd((0,wo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{(0,XE.internal_processStyles)(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=qX(WX(f))}=u,b=(0,H2.default)(u,FX),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=kp;f==="Root"||f==="root"?_=r:f?_=o:jX(a)&&(_=void 0);const w=(0,XE.default)(a,(0,wo.default)({shouldForwardProp:_,label:A},b)),S=T=>typeof T=="function"&&T.__emotion_real!==T||(0,NX.isPlainObject)(T)?E=>Tp(T,(0,wo.default)({},E,{theme:Kd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const I=E?E.map(S):[];c&&m&&I.push(X=>{const ae=Kd((0,wo.default)({},X,{defaultTheme:n,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const K=ae.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,re])=>{H[Q]=Tp(re,(0,wo.default)({},X,{theme:ae}))}),m(X,H)}),c&&!v&&I.push(X=>{var ae;const K=Kd((0,wo.default)({},X,{defaultTheme:n,themeId:t})),H=K==null||(ae=K.components)==null||(ae=ae[c])==null?void 0:ae.variants;return Tp({variants:H},(0,wo.default)({},X,{theme:K}))}),y||I.push(i);const q=I.length-E.length;if(Array.isArray(T)&&q>0){const X=new Array(q).fill("");L=[...T,...X],L.raw=[...T.raw,...X]}const $=w(L,...I);return a.muiName&&($.muiName=a.muiName),$};return w.withConfig&&(k.withConfig=w.withConfig),k}}function GX(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mu=e=>GX(e)&&e!=="classes",Bt=LX({themeId:Xl,defaultTheme:lw,rootShouldForwardProp:mu}),KX=["theme"];function YX(e){let{theme:t}=e,n=it(e,KX);const r=t[Xl];return O.jsx(LY,V({},n,{themeId:r?Xl:void 0,theme:r||t}))}function Wn(e){return OY(e)}function G2(e,t){return G2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},G2(e,t)}function O4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G2(e,t)}const ZE={disabled:!1},ph=rt.createContext(null);var XX=function(t){return t.scrollTop},lc="unmounted",Js="exited",ea="entering",il="entered",K2="exiting",Hi=function(e){O4(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?u?(c=Js,i.appearStatus=ea):c=il:r.unmountOnExit||r.mountOnEnter?c=lc:c=Js,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===lc?{status:Js}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ea&&a!==il&&(i=ea):(a===ea||a===il)&&(i=K2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ea){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this);a&&XX(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Js&&this.setState({status:lc})},n.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[xl.findDOMNode(this),u],f=c[0],p=c[1],h=this.getTimeouts(),m=u?h.appear:h.enter;if(!o&&!a||ZE.disabled){this.safeSetState({status:il},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:ea},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:il},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:xl.findDOMNode(this);if(!i||ZE.disabled){this.safeSetState({status:Js},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:K2},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Js},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=it(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rt.createElement(ph.Provider,{value:null},typeof a=="function"?a(o,u):rt.cloneElement(rt.Children.only(a),u))},t}(rt.Component);Hi.contextType=ph;Hi.propTypes={};function nl(){}Hi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nl,onEntering:nl,onEntered:nl,onExit:nl,onExiting:nl,onExited:nl};Hi.UNMOUNTED=lc;Hi.EXITED=Js;Hi.ENTERING=ea;Hi.ENTERED=il;Hi.EXITING=K2;function ZX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function QX(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(r[c])for(a=0;ae.scrollTop;function QE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function oZ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:f}=e,[p,h]=D.useState(!1),m=gt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=gt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&h(!0),D.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),O.jsx("span",{className:m,style:b,children:O.jsx("span",{className:v})})}const bo=tr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),iZ=["center","classes","className"];let q0=e=>e,JE,e3,t3,n3;const Y2=550,sZ=80,aZ=Pa(JE||(JE=q0` + */var nw=Symbol.for("react.element"),rw=Symbol.for("react.portal"),L0=Symbol.for("react.fragment"),N0=Symbol.for("react.strict_mode"),M0=Symbol.for("react.profiler"),B0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),IK=Symbol.for("react.server_context"),$0=Symbol.for("react.forward_ref"),F0=Symbol.for("react.suspense"),U0=Symbol.for("react.suspense_list"),z0=Symbol.for("react.memo"),j0=Symbol.for("react.lazy"),$K=Symbol.for("react.offscreen"),p4;p4=Symbol.for("react.module.reference");function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nw:switch(e=e.type,e){case L0:case M0:case N0:case F0:case U0:return e;default:switch(e=e&&e.$$typeof,e){case IK:case I0:case $0:case j0:case z0:case B0:return e;default:return t}}case rw:return t}}}Nt.ContextConsumer=I0;Nt.ContextProvider=B0;Nt.Element=nw;Nt.ForwardRef=$0;Nt.Fragment=L0;Nt.Lazy=j0;Nt.Memo=z0;Nt.Portal=rw;Nt.Profiler=M0;Nt.StrictMode=N0;Nt.Suspense=F0;Nt.SuspenseList=U0;Nt.isAsyncMode=function(){return!1};Nt.isConcurrentMode=function(){return!1};Nt.isContextConsumer=function(e){return Bo(e)===I0};Nt.isContextProvider=function(e){return Bo(e)===B0};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nw};Nt.isForwardRef=function(e){return Bo(e)===$0};Nt.isFragment=function(e){return Bo(e)===L0};Nt.isLazy=function(e){return Bo(e)===j0};Nt.isMemo=function(e){return Bo(e)===z0};Nt.isPortal=function(e){return Bo(e)===rw};Nt.isProfiler=function(e){return Bo(e)===M0};Nt.isStrictMode=function(e){return Bo(e)===N0};Nt.isSuspense=function(e){return Bo(e)===F0};Nt.isSuspenseList=function(e){return Bo(e)===U0};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===L0||e===M0||e===N0||e===F0||e===U0||e===$K||typeof e=="object"&&e!==null&&(e.$$typeof===j0||e.$$typeof===z0||e.$$typeof===B0||e.$$typeof===I0||e.$$typeof===$0||e.$$typeof===p4||e.getModuleId!==void 0)};Nt.typeOf=Bo;d4.exports=Nt;var NE=d4.exports;const FK=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function h4(e){const t=`${e}`.match(FK);return t&&t[1]||""}function m4(e,t=""){return e.displayName||e.name||h4(e)||t}function ME(e,t,n){const r=m4(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function UK(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return m4(e,"Component");if(typeof e=="object")switch(e.$$typeof){case NE.ForwardRef:return ME(e,e.render,"ForwardRef");case NE.Memo:return ME(e,e.type,"memo");default:return}}}const zK=Object.freeze(Object.defineProperty({__proto__:null,default:UK,getFunctionName:h4},Symbol.toStringTag,{value:"Module"})),jK=["ownerState"],VK=["variants"],WK=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qK(e){return Object.keys(e).length===0}function HK(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GK=Sf(),KK=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gd({defaultTheme:e,theme:t,themeId:n}){return qK(t)?e:t[n]||t}function YK(e){return e?(t,n)=>n[e]:null}function Ap(e,t){let{ownerState:n}=t,r=it(t,jK);const o=typeof e=="function"?e(V({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ap(i,V({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=it(o,VK);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(V({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(V({ownerState:n},r,n)):c.style))}),u}return o}function XK(e={}){const{themeId:t,defaultTheme:n=GK,rootShouldForwardProp:r=rv,slotShouldForwardProp:o=rv}=e,i=a=>du(V({},a,{theme:Gd(V({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{t4(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:g=YK(KK(f))}=u,b=it(u,WK),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=rv;f==="Root"||f==="root"?_=r:f?_=o:HK(a)&&(_=void 0);const w=Xy(a,V({shouldForwardProp:_,label:A},b)),S=T=>typeof T=="function"&&T.__emotion_real!==T||Li(T)?E=>Ap(T,V({},E,{theme:Gd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const I=E?E.map(S):[];c&&g&&I.push(X=>{const ae=Gd(V({},X,{defaultTheme:n,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const K=ae.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,re])=>{H[Q]=Ap(re,V({},X,{theme:ae}))}),g(X,H)}),c&&!v&&I.push(X=>{var ae;const K=Gd(V({},X,{defaultTheme:n,themeId:t})),H=K==null||(ae=K.components)==null||(ae=ae[c])==null?void 0:ae.variants;return Ap({variants:H},V({},X,{theme:K}))}),y||I.push(i);const q=I.length-E.length;if(Array.isArray(T)&&q>0){const X=new Array(q).fill("");L=[...T,...X],L.raw=[...T.raw,...X]}const $=w(L,...I);return a.muiName&&($.muiName=a.muiName),$};return w.withConfig&&(k.withConfig=w.withConfig),k}}const ZK=XK();function Xc(e,t){const n=V({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=V({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=V({},i),Object.keys(o).forEach(a=>{n[r][a]=Xc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function QK(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xc(t.components[n].defaultProps,r)}function JK({props:e,name:t,defaultTheme:n,themeId:r}){let o=P0(n);return r&&(o=o[r]||o),QK({theme:o,name:t,props:e})}const vi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function g4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const eY=Object.freeze(Object.defineProperty({__proto__:null,default:g4},Symbol.toStringTag,{value:"Module"}));function tY(e,t=0,n=1){return g4(e,t,n)}function nY(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function v4(e){if(e.type)return e;if(e.charAt(0)==="#")return v4(nY(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ts(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ts(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function rY(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Yn(e,t){return e=v4(e),t=tY(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rY(e)}function oY(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Rp(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function V2(e){return e&&e.ownerDocument||document}function BE(e){return V2(e).defaultView||window}function W2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let IE=0;function iY(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(IE+=1,n(`mui-${IE}`))},[t]),r}const $E=Pp.useId;function sY(e){if($E!==void 0){const t=$E();return e??t}return iY(e)}function aY({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),u=o?e:i,c=D.useCallback(f=>{o||a(f)},[]);return[u,c]}function El(e){const t=D.useRef(e);return vi(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function to(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{W2(n,t)})},e)}const FE={};function lY(e,t){const n=D.useRef(FE);return n.current===FE&&(n.current=e(t)),n}const uY=[];function cY(e){D.useEffect(e,uY)}class Ef{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ef}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Cl(){const e=lY(Ef.create).current;return cY(e.disposeEffect),e}let V0=!0,q2=!1;const fY=new Ef,dY={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function pY(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&dY[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hY(e){e.metaKey||e.altKey||e.ctrlKey||(V0=!0)}function ov(){V0=!1}function mY(){this.visibilityState==="hidden"&&q2&&(V0=!0)}function gY(e){e.addEventListener("keydown",hY,!0),e.addEventListener("mousedown",ov,!0),e.addEventListener("pointerdown",ov,!0),e.addEventListener("touchstart",ov,!0),e.addEventListener("visibilitychange",mY,!0)}function vY(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return V0||pY(t)}function ow(){const e=D.useCallback(o=>{o!=null&&gY(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(q2=!0,fY.start(100,()=>{q2=!1}),t.current=!1,!0):!1}function r(o){return vY(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fr(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function Zc(e){return typeof e=="string"}function ac(e,t,n){return e===void 0||Zc(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function yY(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function UE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function wY(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=gt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=V({},n,o,r);return b.length>0&&(y.className=b),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=yY(V({},o,r)),u=UE(r),c=UE(o),f=t(a),p=gt(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=V({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=V({},f,n,c,u);return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:f.ref}}function bY(e,t,n){return typeof e=="function"?e(t,n):e}const xY=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _Y(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=it(e,xY),u=i?{}:bY(r,o),{props:c,internalRef:f}=wY(V({},a,{externalSlotProps:u})),p=to(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return ac(n,V({},c,{ref:p}),o)}const y4=D.createContext(null);function w4(){return D.useContext(y4)}const SY=typeof Symbol=="function"&&Symbol.for,EY=SY?Symbol.for("mui.nested"):"__THEME_NESTED__";function CY(e,t){return typeof t=="function"?t(e):V({},e,t)}function AY(e){const{children:t,theme:n}=e,r=w4(),o=D.useMemo(()=>{const i=r===null?n:CY(r,n);return i!=null&&(i[EY]=r!==null),i},[n,r]);return O.jsx(y4.Provider,{value:o,children:t})}const RY=["value"],b4=D.createContext();function kY(e){let{value:t}=e,n=it(e,RY);return O.jsx(b4.Provider,V({value:t??!0},n))}const TY=()=>{const e=D.useContext(b4);return e??!1},x4=D.createContext(void 0);function DY({value:e,children:t}){return O.jsx(x4.Provider,{value:e,children:t})}function PY(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Xc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Xc(o,r):r}function OY({props:e,name:t}){const n=D.useContext(x4);return PY({props:e,name:t,theme:{components:n}})}const zE={};function jE(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?V({},t,{[e]:i}):i;return r?()=>a:a}return e?V({},t,{[e]:n}):V({},t,n)},[e,t,n,r])}function LY(e){const{children:t,theme:n,themeId:r}=e,o=u4(zE),i=w4()||zE,a=jE(r,o,n),u=jE(r,i,n,!0),c=a.direction==="rtl";return O.jsx(AY,{theme:u,children:O.jsx(bf.Provider,{value:a,children:O.jsx(kY,{value:c,children:O.jsx(DY,{value:a==null?void 0:a.components,children:t})})})})}const NY=["component","direction","spacing","divider","children","className","useFlexGap"],MY=Sf(),BY=ZK("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function IY(e){return JK({props:e,name:"MuiStack",defaultTheme:MY})}function $Y(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],UY=({ownerState:e,theme:t})=>{let n=V({display:"flex",flexDirection:"column"},ei({theme:t},nv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ew(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),i=nv({values:e.direction,base:o}),a=nv({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,f,p)=>{if(!i[c]){const g=f>0?i[p[f-1]]:"column";i[c]=g}}),n=ko(n,ei({theme:t},a,(c,f)=>e.useFlexGap?{gap:Ea(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${FY(f?i[f]:e.direction)}`]:Ea(r,c)}}))}return n=IG(t.breakpoints,n),n};function zY(e={}){const{createStyledComponent:t=BY,useThemeProps:n=IY,componentName:r="MuiStack"}=e,o=()=>fr({root:["root"]},c=>er(r,c),{}),i=t(UY);return D.forwardRef(function(c,f){const p=n(c),h=O0(p),{component:g="div",direction:b="column",spacing:v=0,divider:y,children:A,className:_,useFlexGap:w=!1}=h,S=it(h,NY),k={direction:b,spacing:v,useFlexGap:w},T=o();return O.jsx(i,V({as:g,ownerState:k,ref:f,className:gt(T.root,_)},S,{children:y?$Y(A,y):A}))})}function jY(e,t){return V({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var En={},_4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(_4);var S4=_4.exports;const VY=Vi(bH),WY=Vi(eY);var E4=S4;Object.defineProperty(En,"__esModule",{value:!0});var wr=En.alpha=k4;En.blend=rX;En.colorChannel=void 0;var qY=En.darken=sw;En.decomposeColor=Oo;En.emphasize=T4;var HY=En.getContrastRatio=QY;En.getLuminance=dh;En.hexToRgb=C4;En.hslToRgb=R4;var GY=En.lighten=aw;En.private_safeAlpha=JY;En.private_safeColorChannel=void 0;En.private_safeDarken=eX;En.private_safeEmphasize=nX;En.private_safeLighten=tX;En.recomposeColor=pu;En.rgbToHex=ZY;var VE=E4(VY),KY=E4(WY);function iw(e,t=0,n=1){return(0,KY.default)(e,t,n)}function C4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function YY(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Oo(e){if(e.type)return e;if(e.charAt(0)==="#")return Oo(C4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,VE.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,VE.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const A4=e=>{const t=Oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};En.colorChannel=A4;const XY=(e,t)=>{try{return A4(e)}catch{return e}};En.private_safeColorChannel=XY;function pu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZY(e){if(e.indexOf("#")===0)return e;const{values:t}=Oo(e);return`#${t.map((n,r)=>YY(r===3?Math.round(255*n):n)).join("")}`}function R4(e){e=Oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),pu({type:u,values:c})}function dh(e){e=Oo(e);let t=e.type==="hsl"||e.type==="hsla"?Oo(R4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function QY(e,t){const n=dh(e),r=dh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function k4(e,t){return e=Oo(e),t=iw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pu(e)}function JY(e,t,n){try{return k4(e,t)}catch{return e}}function sw(e,t){if(e=Oo(e),t=iw(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pu(e)}function eX(e,t,n){try{return sw(e,t)}catch{return e}}function aw(e,t){if(e=Oo(e),t=iw(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pu(e)}function tX(e,t,n){try{return aw(e,t)}catch{return e}}function T4(e,t=.15){return dh(e)>.5?sw(e,t):aw(e,t)}function nX(e,t,n){try{return T4(e,t)}catch{return e}}function rX(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),i=Oo(e),a=Oo(t),u=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return pu({type:"rgb",values:u})}const oX=["mode","contrastThreshold","tonalOffset"],WE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hc.white,default:Hc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},iv={text:{primary:Hc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function qE(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=GY(e.main,o):t==="dark"&&(e.dark=qY(e.main,i)))}function iX(e="light"){return e==="dark"?{main:Ja[200],light:Ja[50],dark:Ja[400]}:{main:Ja[700],light:Ja[400],dark:Ja[800]}}function sX(e="light"){return e==="dark"?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[500],light:Qa[300],dark:Qa[700]}}function aX(e="light"){return e==="dark"?{main:Za[500],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[400],dark:Za[800]}}function lX(e="light"){return e==="dark"?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}function uX(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}function cX(e="light"){return e==="dark"?{main:Xu[400],light:Xu[300],dark:Xu[700]}:{main:"#ed6c02",light:Xu[500],dark:Xu[900]}}function fX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=it(e,oX),i=e.primary||iX(t),a=e.secondary||sX(t),u=e.error||aX(t),c=e.info||lX(t),f=e.success||uX(t),p=e.warning||cX(t);function h(y){return HY(y,iv.text.primary)>=n?iv.text.primary:WE.text.primary}const g=({color:y,name:A,mainShade:_=500,lightShade:w=300,darkShade:S=700})=>{if(y=V({},y),!y.main&&y[_]&&(y.main=y[_]),!y.hasOwnProperty("main"))throw new Error(Ts(11,A?` (${A})`:"",_));if(typeof y.main!="string")throw new Error(Ts(12,A?` (${A})`:"",JSON.stringify(y.main)));return qE(y,"light",w,r),qE(y,"dark",S,r),y.contrastText||(y.contrastText=h(y.main)),y},b={dark:iv,light:WE};return ko(V({common:V({},Hc),mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:f,name:"success"}),grey:wH,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r},b[t]),o)}const dX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pX(e){return Math.round(e*1e5)/1e5}const HE={textTransform:"uppercase"},GE='"Roboto", "Helvetica", "Arial", sans-serif';function hX(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=GE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,g=it(n,dX),b=o/14,v=h||(_=>`${_/f*b}rem`),y=(_,w,S,k,T)=>V({fontFamily:r,fontWeight:_,fontSize:v(w),lineHeight:S},r===GE?{letterSpacing:`${pX(k/w)}em`}:{},T,p),A={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(u,14,1.75,.4,HE),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,HE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ko(V({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},A),g,{clone:!1})}const mX=.2,gX=.14,vX=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vX})`].join(",")}const yX=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],wX=["duration","easing","delay"],bX={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function KE(e){return`${Math.round(e)}ms`}function _X(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function SX(e){const t=V({},bX,e.easing),n=V({},xX,e.duration);return V({getAutoHeightDuration:_X,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:u=t.easeInOut,delay:c=0}=i;return it(i,wX),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:KE(a)} ${u} ${typeof c=="string"?c:KE(c)}`).join(",")}},e,{easing:t,duration:n})}const EX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},CX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function W0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=it(e,CX);if(e.vars)throw new Error(Ts(18));const u=fX(r),c=Sf(e);let f=ko(c,{mixins:jY(c.breakpoints,n),palette:u,shadows:yX.slice(),typography:hX(u,i),transitions:SX(o),zIndex:V({},EX)});return f=ko(f,a),f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},_f,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const lw=W0();function Cf(){const e=P0(lw);return e[Xl]||e}var Af={};const AX=Vi(xH);var sv={exports:{}},YE;function RX(){return YE||(YE=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sv)),sv.exports}const D4=Vi(OG),kX=Vi(LG),TX=Vi(FG),DX=Vi(zK),PX=Vi(AK),OX=Vi(OK);var hu=S4;Object.defineProperty(Af,"__esModule",{value:!0});var LX=Af.default=HX;Af.shouldForwardProp=kp;Af.systemDefaultTheme=void 0;var wo=hu(AX),H2=hu(RX()),XE=UX(D4),NX=kX;hu(TX);hu(DX);var MX=hu(PX),BX=hu(OX);const IX=["ownerState"],$X=["variants"],FX=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function P4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(P4=function(r){return r?n:t})(e)}function UX(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=P4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function zX(e){return Object.keys(e).length===0}function jX(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const VX=Af.systemDefaultTheme=(0,MX.default)(),WX=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kd({defaultTheme:e,theme:t,themeId:n}){return zX(t)?e:t[n]||t}function qX(e){return e?(t,n)=>n[e]:null}function Tp(e,t){let{ownerState:n}=t,r=(0,H2.default)(t,IX);const o=typeof e=="function"?e((0,wo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Tp(i,(0,wo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=(0,H2.default)(o,$X);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,wo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,wo.default)({ownerState:n},r,n)):c.style))}),u}return o}function HX(e={}){const{themeId:t,defaultTheme:n=VX,rootShouldForwardProp:r=kp,slotShouldForwardProp:o=kp}=e,i=a=>(0,BX.default)((0,wo.default)({},a,{theme:Kd((0,wo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{(0,XE.internal_processStyles)(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:g=qX(WX(f))}=u,b=(0,H2.default)(u,FX),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=kp;f==="Root"||f==="root"?_=r:f?_=o:jX(a)&&(_=void 0);const w=(0,XE.default)(a,(0,wo.default)({shouldForwardProp:_,label:A},b)),S=T=>typeof T=="function"&&T.__emotion_real!==T||(0,NX.isPlainObject)(T)?E=>Tp(T,(0,wo.default)({},E,{theme:Kd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const I=E?E.map(S):[];c&&g&&I.push(X=>{const ae=Kd((0,wo.default)({},X,{defaultTheme:n,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const K=ae.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,re])=>{H[Q]=Tp(re,(0,wo.default)({},X,{theme:ae}))}),g(X,H)}),c&&!v&&I.push(X=>{var ae;const K=Kd((0,wo.default)({},X,{defaultTheme:n,themeId:t})),H=K==null||(ae=K.components)==null||(ae=ae[c])==null?void 0:ae.variants;return Tp({variants:H},(0,wo.default)({},X,{theme:K}))}),y||I.push(i);const q=I.length-E.length;if(Array.isArray(T)&&q>0){const X=new Array(q).fill("");L=[...T,...X],L.raw=[...T.raw,...X]}const $=w(L,...I);return a.muiName&&($.muiName=a.muiName),$};return w.withConfig&&(k.withConfig=w.withConfig),k}}function GX(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mu=e=>GX(e)&&e!=="classes",Bt=LX({themeId:Xl,defaultTheme:lw,rootShouldForwardProp:mu}),KX=["theme"];function YX(e){let{theme:t}=e,n=it(e,KX);const r=t[Xl];return O.jsx(LY,V({},n,{themeId:r?Xl:void 0,theme:r||t}))}function Wn(e){return OY(e)}function G2(e,t){return G2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},G2(e,t)}function O4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G2(e,t)}const ZE={disabled:!1},ph=rt.createContext(null);var XX=function(t){return t.scrollTop},lc="unmounted",Js="exited",ea="entering",il="entered",K2="exiting",Hi=function(e){O4(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?u?(c=Js,i.appearStatus=ea):c=il:r.unmountOnExit||r.mountOnEnter?c=lc:c=Js,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===lc?{status:Js}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ea&&a!==il&&(i=ea):(a===ea||a===il)&&(i=K2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ea){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this);a&&XX(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Js&&this.setState({status:lc})},n.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[xl.findDOMNode(this),u],f=c[0],p=c[1],h=this.getTimeouts(),g=u?h.appear:h.enter;if(!o&&!a||ZE.disabled){this.safeSetState({status:il},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:ea},function(){i.props.onEntering(f,p),i.onTransitionEnd(g,function(){i.safeSetState({status:il},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:xl.findDOMNode(this);if(!i||ZE.disabled){this.safeSetState({status:Js},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:K2},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Js},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=it(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rt.createElement(ph.Provider,{value:null},typeof a=="function"?a(o,u):rt.cloneElement(rt.Children.only(a),u))},t}(rt.Component);Hi.contextType=ph;Hi.propTypes={};function nl(){}Hi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nl,onEntering:nl,onEntered:nl,onExit:nl,onExiting:nl,onExited:nl};Hi.UNMOUNTED=lc;Hi.EXITED=Js;Hi.ENTERING=ea;Hi.ENTERED=il;Hi.EXITING=K2;function ZX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function QX(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(r[c])for(a=0;ae.scrollTop;function QE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function oZ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:f}=e,[p,h]=D.useState(!1),g=gt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=gt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&h(!0),D.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),O.jsx("span",{className:g,style:b,children:O.jsx("span",{className:v})})}const bo=tr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),iZ=["center","classes","className"];let q0=e=>e,JE,e3,t3,n3;const Y2=550,sZ=80,aZ=Pa(JE||(JE=q0` 0% { transform: scale(0); opacity: 0.1; @@ -195,15 +195,15 @@ function print() { __p += __j.call(arguments, '') } animation-iteration-count: infinite; animation-delay: 200ms; } -`),bo.rippleVisible,aZ,Y2,({theme:e})=>e.transitions.easing.easeInOut,bo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bo.child,bo.childLeaving,lZ,Y2,({theme:e})=>e.transitions.easing.easeInOut,bo.childPulsate,uZ,({theme:e})=>e.transitions.easing.easeInOut),dZ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=it(r,iZ),[c,f]=D.useState([]),p=D.useRef(0),h=D.useRef(null);D.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=D.useRef(!1),b=Cl(),v=D.useRef(null),y=D.useRef(null),A=D.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:L,rippleSize:I,cb:q}=k;f($=>[...$,O.jsx(fZ,{classes:{ripple:gt(i.ripple,bo.ripple),rippleVisible:gt(i.rippleVisible,bo.rippleVisible),ripplePulsate:gt(i.ripplePulsate,bo.ripplePulsate),child:gt(i.child,bo.child),childLeaving:gt(i.childLeaving,bo.childLeaving),childPulsate:gt(i.childPulsate,bo.childPulsate)},timeout:Y2,pulsate:T,rippleX:E,rippleY:L,rippleSize:I},p.current)]),p.current+=1,h.current=q},[i]),_=D.useCallback((k={},T={},E=()=>{})=>{const{pulsate:L=!1,center:I=o||T.pulsate,fakeElement:q=!1}=T;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const $=q?null:y.current,X=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ae,K,H;if(I||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)ae=Math.round(X.width/2),K=Math.round(X.height/2);else{const{clientX:Q,clientY:re}=k.touches&&k.touches.length>0?k.touches[0]:k;ae=Math.round(Q-X.left),K=Math.round(re-X.top)}if(I)H=Math.sqrt((2*X.width**2+X.height**2)/3),H%2===0&&(H+=1);else{const Q=Math.max(Math.abs(($?$.clientWidth:0)-ae),ae)*2+2,re=Math.max(Math.abs(($?$.clientHeight:0)-K),K)*2+2;H=Math.sqrt(Q**2+re**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{A({pulsate:L,rippleX:ae,rippleY:K,rippleSize:H,cb:E})},b.start(sZ,()=>{v.current&&(v.current(),v.current=null)})):A({pulsate:L,rippleX:ae,rippleY:K,rippleSize:H,cb:E})},[o,A,b]),w=D.useCallback(()=>{_({},{pulsate:!0})},[_]),S=D.useCallback((k,T)=>{if(b.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{S(k,T)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),h.current=T},[b]);return D.useImperativeHandle(n,()=>({pulsate:w,start:_,stop:S}),[w,_,S]),O.jsx(cZ,V({className:gt(bo.root,i.root,a),ref:y},u,{children:O.jsx(cw,{component:null,exit:!0,children:c})}))});function pZ(e){return er("MuiButtonBase",e)}const hZ=tr("MuiButtonBase",["root","disabled","focusVisible"]),mZ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],gZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=fr({root:["root",t&&"disabled",n&&"focusVisible"]},pZ,o);return n&&r&&(a.root+=` ${r}`),a},vZ=Bt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:b="a",onBlur:v,onClick:y,onContextMenu:A,onDragLeave:_,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:L,onMouseUp:I,onTouchEnd:q,onTouchMove:$,onTouchStart:X,tabIndex:ae=0,TouchRippleProps:K,touchRippleRef:H,type:Q}=r,re=it(r,mZ),le=D.useRef(null),J=D.useRef(null),pe=to(J,H),{isFocusVisibleRef:ie,onFocus:he,onBlur:z,ref:ue}=ow(),[ne,ye]=D.useState(!1);f&&ne&&ye(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{ye(!0),le.current.focus()}}),[]);const[de,Me]=D.useState(!1);D.useEffect(()=>{Me(!0)},[]);const Ae=de&&!p&&!f;D.useEffect(()=>{ne&&m&&!p&&de&&J.current.pulsate()},[p,m,ne,de]);function ge(Pe,Xt,nr=h){return El(qn=>(Xt&&Xt(qn),!nr&&J.current&&J.current[Pe](qn),!0))}const Je=ge("start",E),Le=ge("stop",A),Ce=ge("stop",_),Ge=ge("stop",I),st=ge("stop",Pe=>{ne&&Pe.preventDefault(),L&&L(Pe)}),ht=ge("start",X),xt=ge("stop",q),mt=ge("stop",$),Mn=ge("stop",Pe=>{z(Pe),ie.current===!1&&ye(!1),v&&v(Pe)},!1),dr=El(Pe=>{le.current||(le.current=Pe.currentTarget),he(Pe),ie.current===!0&&(ye(!0),S&&S(Pe)),w&&w(Pe)}),Et=()=>{const Pe=le.current;return c&&c!=="button"&&!(Pe.tagName==="A"&&Pe.href)},at=D.useRef(!1),un=El(Pe=>{m&&!at.current&&ne&&J.current&&Pe.key===" "&&(at.current=!0,J.current.stop(Pe,()=>{J.current.start(Pe)})),Pe.target===Pe.currentTarget&&Et()&&Pe.key===" "&&Pe.preventDefault(),k&&k(Pe),Pe.target===Pe.currentTarget&&Et()&&Pe.key==="Enter"&&!f&&(Pe.preventDefault(),y&&y(Pe))}),cn=El(Pe=>{m&&Pe.key===" "&&J.current&&ne&&!Pe.defaultPrevented&&(at.current=!1,J.current.stop(Pe,()=>{J.current.pulsate(Pe)})),T&&T(Pe),y&&Pe.target===Pe.currentTarget&&Et()&&Pe.key===" "&&!Pe.defaultPrevented&&y(Pe)});let Ut=c;Ut==="button"&&(re.href||re.to)&&(Ut=b);const Ct={};Ut==="button"?(Ct.type=Q===void 0?"button":Q,Ct.disabled=f):(!re.href&&!re.to&&(Ct.role="button"),f&&(Ct["aria-disabled"]=f));const Cn=to(n,ue,le),nn=V({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:ae,focusVisible:ne}),We=gZ(nn);return O.jsxs(vZ,V({as:Ut,className:gt(We.root,u),ownerState:nn,onBlur:Mn,onClick:y,onContextMenu:Le,onFocus:dr,onKeyDown:un,onKeyUp:cn,onMouseDown:Je,onMouseLeave:st,onMouseUp:Ge,onDragLeave:Ce,onTouchEnd:xt,onTouchMove:mt,onTouchStart:ht,ref:Cn,tabIndex:f?-1:ae,type:Q},Ct,re,{children:[a,Ae?O.jsx(dZ,V({ref:pe,center:i},K)):null]}))});function yZ(e){return er("MuiTypography",e)}tr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wZ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bZ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${Mt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return fr(u,yZ,a)},xZ=Bt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Mt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>V({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),r3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_Z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SZ=e=>_Z[e]||e,br=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTypography"}),o=SZ(r.color),i=O0(V({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:b=r3}=i,v=it(i,wZ),y=V({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:b}),A=c||(h?"p":b[m]||r3[m])||"span",_=bZ(y);return O.jsx(xZ,V({as:A,ref:n,ownerState:y,className:gt(_.root,u)},v))});var dw={};Object.defineProperty(dw,"__esModule",{value:!0});var L4=dw.default=void 0,EZ=AZ(D),CZ=D4;function N4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(N4=function(r){return r?n:t})(e)}function AZ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=N4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function RZ(e){return Object.keys(e).length===0}function kZ(e=null){const t=EZ.useContext(CZ.ThemeContext);return!t||RZ(t)?e:t}L4=dw.default=kZ;var Br="top",Lo="bottom",No="right",Ir="left",pw="auto",Rf=[Br,Lo,No,Ir],Jl="start",Qc="end",TZ="clippingParents",M4="viewport",Qu="popper",DZ="reference",o3=Rf.reduce(function(e,t){return e.concat([t+"-"+Jl,t+"-"+Qc])},[]),B4=[].concat(Rf,[pw]).reduce(function(e,t){return e.concat([t,t+"-"+Jl,t+"-"+Qc])},[]),PZ="beforeRead",OZ="read",LZ="afterRead",NZ="beforeMain",MZ="main",BZ="afterMain",IZ="beforeWrite",$Z="write",FZ="afterWrite",UZ=[PZ,OZ,LZ,NZ,MZ,BZ,IZ,$Z,FZ];function yi(e){return e?(e.nodeName||"").toLowerCase():null}function no(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ca(e){var t=no(e).Element;return e instanceof t||e instanceof Element}function To(e){var t=no(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hw(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zZ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!To(i)||!yi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var u=o[a];u===!1?i.removeAttribute(a):i.setAttribute(a,u===!0?"":u)}))})}function jZ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(c,f){return c[f]="",c},{});!To(o)||!yi(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const VZ={name:"applyStyles",enabled:!0,phase:"write",fn:zZ,effect:jZ,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ma=Math.max,hh=Math.min,eu=Math.round;function X2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function I4(){return!/^((?!chrome|android).)*safari/i.test(X2())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&To(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var a=Ca(e)?no(e):window,u=a.visualViewport,c=!I4()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function mw(e){var t=tu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ji(e){return no(e).getComputedStyle(e)}function WZ(e){return["table","td","th"].indexOf(yi(e))>=0}function Is(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function H0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(hw(e)?e.host:null)||Is(e)}function i3(e){return!To(e)||ji(e).position==="fixed"?null:e.offsetParent}function qZ(e){var t=/firefox/i.test(X2()),n=/Trident/i.test(X2());if(n&&To(e)){var r=ji(e);if(r.position==="fixed")return null}var o=H0(e);for(hw(o)&&(o=o.host);To(o)&&["html","body"].indexOf(yi(o))<0;){var i=ji(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function kf(e){for(var t=no(e),n=i3(e);n&&WZ(n)&&ji(n).position==="static";)n=i3(n);return n&&(yi(n)==="html"||yi(n)==="body"&&ji(n).position==="static")?t:n||qZ(e)||t}function gw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _c(e,t,n){return ma(e,hh(t,n))}function HZ(e,t,n){var r=_c(e,t,n);return r>n?n:r}function F4(){return{top:0,right:0,bottom:0,left:0}}function U4(e){return Object.assign({},F4(),e)}function z4(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var GZ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,U4(typeof t!="number"?t:z4(t,Rf))};function KZ(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=mi(n.placement),c=gw(u),f=[Ir,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=GZ(o.padding,n),m=mw(i),b=c==="y"?Br:Ir,v=c==="y"?Lo:No,y=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],_=kf(i),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-A/2,k=h[b],T=w-m[p]-h[v],E=w/2-m[p]/2+S,L=_c(k,E,T),I=c;n.modifiersData[r]=(t={},t[I]=L,t.centerOffset=L-E,t)}}function YZ(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||$4(t.elements.popper,o)&&(t.elements.arrow=o))}const XZ={name:"arrow",enabled:!0,phase:"main",fn:KZ,effect:YZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var ZZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QZ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}function s3(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=a.x,b=m===void 0?0:m,v=a.y,y=v===void 0?0:v,A=typeof p=="function"?p({x:b,y}):{x:b,y};b=A.x,y=A.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Ir,k=Br,T=window;if(f){var E=kf(n),L="clientHeight",I="clientWidth";if(E===no(n)&&(E=Is(n),ji(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",I="scrollWidth")),E=E,o===Br||(o===Ir||o===No)&&i===Qc){k=Lo;var q=h&&E===T&&T.visualViewport?T.visualViewport.height:E[L];y-=q-r.height,y*=c?1:-1}if(o===Ir||(o===Br||o===Lo)&&i===Qc){S=No;var $=h&&E===T&&T.visualViewport?T.visualViewport.width:E[I];b-=$-r.width,b*=c?1:-1}}var X=Object.assign({position:u},f&&ZZ),ae=p===!0?QZ({x:b,y},no(n)):{x:b,y};if(b=ae.x,y=ae.y,c){var K;return Object.assign({},X,(K={},K[k]=w?"0":"",K[S]=_?"0":"",K.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",K))}return Object.assign({},X,(t={},t[k]=w?y+"px":"",t[S]=_?b+"px":"",t.transform="",t))}function JZ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:mi(t.placement),variation:nu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s3(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s3(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JZ,data:{}};var Yd={passive:!0};function tQ(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,u=a===void 0?!0:a,c=no(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Yd)}),u&&c.addEventListener("resize",n.update,Yd),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Yd)}),u&&c.removeEventListener("resize",n.update,Yd)}}const nQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tQ,data:{}};var rQ={left:"right",right:"left",bottom:"top",top:"bottom"};function Dp(e){return e.replace(/left|right|bottom|top/g,function(t){return rQ[t]})}var oQ={start:"end",end:"start"};function a3(e){return e.replace(/start|end/g,function(t){return oQ[t]})}function vw(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yw(e){return tu(Is(e)).left+vw(e).scrollLeft}function iQ(e,t){var n=no(e),r=Is(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var f=I4();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+yw(e),y:c}}function sQ(e){var t,n=Is(e),r=vw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ma(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ma(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+yw(e),c=-r.scrollTop;return ji(o||n).direction==="rtl"&&(u+=ma(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}function ww(e){var t=ji(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function j4(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&ww(e)?e:j4(H0(e))}function Sc(e,t){var n;t===void 0&&(t=[]);var r=j4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],ww(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Sc(H0(a)))}function Z2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aQ(e,t){var n=tu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function l3(e,t,n){return t===M4?Z2(iQ(e,n)):Ca(t)?aQ(t,n):Z2(sQ(Is(e)))}function lQ(e){var t=Sc(H0(e)),n=["absolute","fixed"].indexOf(ji(e).position)>=0,r=n&&To(e)?kf(e):e;return Ca(r)?t.filter(function(o){return Ca(o)&&$4(o,r)&&yi(o)!=="body"}):[]}function uQ(e,t,n,r){var o=t==="clippingParents"?lQ(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=l3(e,f,r);return c.top=ma(p.top,c.top),c.right=hh(p.right,c.right),c.bottom=hh(p.bottom,c.bottom),c.left=ma(p.left,c.left),c},l3(e,a,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function V4(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?nu(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case Br:c={x:a,y:t.y-n.height};break;case Lo:c={x:a,y:t.y+t.height};break;case No:c={x:t.x+t.width,y:u};break;case Ir:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?gw(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Jl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Qc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Jc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?TZ:u,f=n.rootBoundary,p=f===void 0?M4:f,h=n.elementContext,m=h===void 0?Qu:h,b=n.altBoundary,v=b===void 0?!1:b,y=n.padding,A=y===void 0?0:y,_=U4(typeof A!="number"?A:z4(A,Rf)),w=m===Qu?DZ:Qu,S=e.rects.popper,k=e.elements[v?w:m],T=uQ(Ca(k)?k:k.contextElement||Is(e.elements.popper),c,p,a),E=tu(e.elements.reference),L=V4({reference:E,element:S,strategy:"absolute",placement:o}),I=Z2(Object.assign({},S,L)),q=m===Qu?I:E,$={top:T.top-q.top+_.top,bottom:q.bottom-T.bottom+_.bottom,left:T.left-q.left+_.left,right:q.right-T.right+_.right},X=e.modifiersData.offset;if(m===Qu&&X){var ae=X[o];Object.keys($).forEach(function(K){var H=[No,Lo].indexOf(K)>=0?1:-1,Q=[Br,Lo].indexOf(K)>=0?"y":"x";$[K]+=ae[Q]*H})}return $}function cQ(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?B4:c,p=nu(r),h=p?u?o3:o3.filter(function(v){return nu(v)===p}):Rf,m=h.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=h);var b=m.reduce(function(v,y){return v[y]=Jc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[mi(y)],v},{});return Object.keys(b).sort(function(v,y){return b[v]-b[y]})}function fQ(e){if(mi(e)===pw)return[];var t=Dp(e);return[a3(e),t,a3(t)]}function dQ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,y=n.allowedAutoPlacements,A=t.options.placement,_=mi(A),w=_===A,S=c||(w||!v?[Dp(A)]:fQ(A)),k=[A].concat(S).reduce(function(ne,ye){return ne.concat(mi(ye)===pw?cQ(t,{placement:ye,boundary:p,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),T=t.rects.reference,E=t.rects.popper,L=new Map,I=!0,q=k[0],$=0;$=0,Q=H?"width":"height",re=Jc(t,{placement:X,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),le=H?K?No:Ir:K?Lo:Br;T[Q]>E[Q]&&(le=Dp(le));var J=Dp(le),pe=[];if(i&&pe.push(re[ae]<=0),u&&pe.push(re[le]<=0,re[J]<=0),pe.every(function(ne){return ne})){q=X,I=!1;break}L.set(X,pe)}if(I)for(var ie=v?3:1,he=function(ye){var de=k.find(function(Me){var Ae=L.get(Me);if(Ae)return Ae.slice(0,ye).every(function(ge){return ge})});if(de)return q=de,"break"},z=ie;z>0;z--){var ue=he(z);if(ue==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}const pQ={name:"flip",enabled:!0,phase:"main",fn:dQ,requiresIfExists:["offset"],data:{_skip:!1}};function u3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function c3(e){return[Br,No,Lo,Ir].some(function(t){return e[t]>=0})}function hQ(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Jc(t,{elementContext:"reference"}),u=Jc(t,{altBoundary:!0}),c=u3(a,r),f=u3(u,o,i),p=c3(c),h=c3(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const mQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hQ};function gQ(e,t,n){var r=mi(e),o=[Ir,Br].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[Ir,No].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function vQ(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=B4.reduce(function(p,h){return p[h]=gQ(h,t.rects,i),p},{}),u=a[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const yQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vQ};function wQ(e){var t=e.state,n=e.name;t.modifiersData[n]=V4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bQ={name:"popperOffsets",enabled:!0,phase:"read",fn:wQ,data:{}};function xQ(e){return e==="x"?"y":"x"}function _Q(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,b=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,A=Jc(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),_=mi(t.placement),w=nu(t.placement),S=!w,k=gw(_),T=xQ(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ae={x:0,y:0};if(E){if(i){var K,H=k==="y"?Br:Ir,Q=k==="y"?Lo:No,re=k==="y"?"height":"width",le=E[k],J=le+A[H],pe=le-A[Q],ie=b?-I[re]/2:0,he=w===Jl?L[re]:I[re],z=w===Jl?-I[re]:-L[re],ue=t.elements.arrow,ne=b&&ue?mw(ue):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:F4(),de=ye[H],Me=ye[Q],Ae=_c(0,L[re],ne[re]),ge=S?L[re]/2-ie-Ae-de-$.mainAxis:he-Ae-de-$.mainAxis,Je=S?-L[re]/2+ie+Ae+Me+$.mainAxis:z+Ae+Me+$.mainAxis,Le=t.elements.arrow&&kf(t.elements.arrow),Ce=Le?k==="y"?Le.clientTop||0:Le.clientLeft||0:0,Ge=(K=X==null?void 0:X[k])!=null?K:0,st=le+ge-Ge-Ce,ht=le+Je-Ge,xt=_c(b?hh(J,st):J,le,b?ma(pe,ht):pe);E[k]=xt,ae[k]=xt-le}if(u){var mt,Mn=k==="x"?Br:Ir,dr=k==="x"?Lo:No,Et=E[T],at=T==="y"?"height":"width",un=Et+A[Mn],cn=Et-A[dr],Ut=[Br,Ir].indexOf(_)!==-1,Ct=(mt=X==null?void 0:X[T])!=null?mt:0,Cn=Ut?un:Et-L[at]-I[at]-Ct+$.altAxis,nn=Ut?Et+L[at]+I[at]-Ct-$.altAxis:cn,We=b&&Ut?HZ(Cn,Et,nn):_c(b?Cn:un,Et,b?nn:cn);E[T]=We,ae[T]=We-Et}t.modifiersData[r]=ae}}const SQ={name:"preventOverflow",enabled:!0,phase:"main",fn:_Q,requiresIfExists:["offset"]};function EQ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CQ(e){return e===no(e)||!To(e)?vw(e):EQ(e)}function AQ(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function RQ(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&AQ(t),i=Is(t),a=tu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||ww(i))&&(u=CQ(t)),To(t)?(c=tu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=yw(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function kQ(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function TQ(e){var t=kQ(e);return UZ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function DQ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PQ(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var f3={placement:"bottom",modifiers:[],strategy:"absolute"};function d3(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(MQ(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return W2(n,a),()=>{W2(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const f={ref:c};return D.cloneElement(r,f)}return O.jsx(D.Fragment,{children:r})}return O.jsx(D.Fragment,{children:a&&Nh.createPortal(r,a)})});function IQ(e){return er("MuiPopper",e)}tr("MuiPopper",["root"]);const $Q=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],FQ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function UQ(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Q2(e){return typeof e=="function"?e():e}function zQ(e){return e.nodeType!==void 0}const jQ=e=>{const{classes:t}=e;return fr({root:["root"]},IQ,t)},VQ={},WQ=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:b={},slots:v={},TransitionProps:y}=t,A=it(t,$Q),_=D.useRef(null),w=to(_,n),S=D.useRef(null),k=to(S,m),T=D.useRef(k);vi(()=>{T.current=k},[k]),D.useImperativeHandle(m,()=>S.current,[]);const E=UQ(p,a),[L,I]=D.useState(E),[q,$]=D.useState(Q2(o));D.useEffect(()=>{S.current&&S.current.forceUpdate()}),D.useEffect(()=>{o&&$(Q2(o))},[o]),vi(()=>{if(!q||!f)return;const Q=J=>{I(J.placement)};let re=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Q(J)}}];c!=null&&(re=re.concat(c)),h&&h.modifiers!=null&&(re=re.concat(h.modifiers));const le=NQ(q,_.current,V({placement:E},h,{modifiers:re}));return T.current(le),()=>{le.destroy(),T.current(null)}},[q,u,c,f,h,E]);const X={placement:L};y!==null&&(X.TransitionProps=y);const ae=jQ(t),K=(r=v.root)!=null?r:"div",H=_Y({elementType:K,externalSlotProps:b.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:ae.root});return O.jsx(K,V({},H,{children:typeof i=="function"?i(X):i}))}),qQ=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=VQ,popperRef:b,style:v,transition:y=!1,slotProps:A={},slots:_={}}=t,w=it(t,FQ),[S,k]=D.useState(!0),T=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!y||S))return null;let L;if(i)L=i;else if(r){const $=Q2(r);L=$&&zQ($)?V2($).body:V2(null).body}const I=!p&&c&&(!y||S)?"none":void 0,q=y?{in:p,onEnter:T,onExited:E}:void 0;return O.jsx(BQ,{disablePortal:u,container:L,children:O.jsx(WQ,V({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:y?!S:p,placement:h,popperOptions:m,popperRef:b,slotProps:A,slots:_},w,{style:V({position:"fixed",top:0,left:0,display:I},v),TransitionProps:q,children:o}))})}),HQ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],GQ=Bt(qQ,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W4=D.forwardRef(function(t,n){var r;const o=L4(),i=Wn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:b,open:v,placement:y,popperOptions:A,popperRef:_,transition:w,slots:S,slotProps:k}=i,T=it(i,HQ),E=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,L=V({anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:b,open:v,placement:y,popperOptions:A,popperRef:_,transition:w},T);return O.jsx(GQ,V({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),KQ=["onChange","maxRows","minRows","style","value"];function Xd(e){return parseInt(e,10)||0}const YQ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XQ(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const ZQ=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=it(t,KQ),{current:f}=D.useRef(u!=null),p=D.useRef(null),h=to(n,p),m=D.useRef(null),b=D.useRef(null),v=D.useCallback(()=>{const _=p.current,S=BE(_).getComputedStyle(_);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=b.current;k.style.width=S.width,k.value=_.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const T=S.boxSizing,E=Xd(S.paddingBottom)+Xd(S.paddingTop),L=Xd(S.borderBottomWidth)+Xd(S.borderTopWidth),I=k.scrollHeight;k.value="x";const q=k.scrollHeight;let $=I;i&&($=Math.max(Number(i)*q,$)),o&&($=Math.min(Number(o)*q,$)),$=Math.max($,q);const X=$+(T==="border-box"?E+L:0),ae=Math.abs($-I)<=1;return{outerHeightStyle:X,overflowing:ae}},[o,i,t.placeholder]),y=D.useCallback(()=>{const _=v();if(XQ(_))return;const w=_.outerHeightStyle,S=p.current;m.current!==w&&(m.current=w,S.style.height=`${w}px`),S.style.overflow=_.overflowing?"hidden":""},[v]);vi(()=>{const _=()=>{y()};let w;const S=oY(_),k=p.current,T=BE(k);T.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(_),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(w),T.removeEventListener("resize",S),E&&E.disconnect()}},[v,y]),vi(()=>{y()});const A=_=>{f||y(),r&&r(_)};return O.jsxs(D.Fragment,{children:[O.jsx("textarea",V({value:u,onChange:A,ref:h,rows:i,style:a},c)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:V({},YQ.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function q4({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const G0=D.createContext(void 0);function bw(){return D.useContext(G0)}function H4(e){return O.jsx(TK,V({},e,{defaultTheme:lw,themeId:Xl}))}function p3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function J2(e,t=!1){return e&&(p3(e.value)&&e.value!==""||t&&p3(e.defaultValue)&&e.defaultValue!=="")}function QQ(e){return e.startAdornment}function JQ(e){return er("MuiInputBase",e)}const mh=tr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),eJ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],G4=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Mt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},K4=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},tJ=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:b,type:v}=e,y={root:["root",`color${Mt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${Mt(m)}`,p&&"multiline",b&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return fr(y,JQ,t)},Y4=Bt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:G4})(({theme:e,ownerState:t})=>V({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&V({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),X4=Bt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:K4})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=V({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return V({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${mh.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${mh.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),nJ=O.jsx(H4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rJ=D.forwardRef(function(t,n){var r;const o=Wn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:b,endAdornment:v,fullWidth:y=!1,id:A,inputComponent:_="input",inputProps:w={},inputRef:S,maxRows:k,minRows:T,multiline:E=!1,name:L,onBlur:I,onChange:q,onClick:$,onFocus:X,onKeyDown:ae,onKeyUp:K,placeholder:H,readOnly:Q,renderSuffix:re,rows:le,slotProps:J={},slots:pe={},startAdornment:ie,type:he="text",value:z}=o,ue=it(o,eJ),ne=w.value!=null?w.value:z,{current:ye}=D.useRef(ne!=null),de=D.useRef(),Me=D.useCallback(We=>{},[]),Ae=to(de,S,w.ref,Me),[ge,Je]=D.useState(!1),Le=bw(),Ce=q4({props:o,muiFormControl:Le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ce.focused=Le?Le.focused:ge,D.useEffect(()=>{!Le&&m&&ge&&(Je(!1),I&&I())},[Le,m,ge,I]);const Ge=Le&&Le.onFilled,st=Le&&Le.onEmpty,ht=D.useCallback(We=>{J2(We)?Ge&&Ge():st&&st()},[Ge,st]);vi(()=>{ye&&ht({value:ne})},[ne,ht,ye]);const xt=We=>{if(Ce.disabled){We.stopPropagation();return}X&&X(We),w.onFocus&&w.onFocus(We),Le&&Le.onFocus?Le.onFocus(We):Je(!0)},mt=We=>{I&&I(We),w.onBlur&&w.onBlur(We),Le&&Le.onBlur?Le.onBlur(We):Je(!1)},Mn=(We,...Pe)=>{if(!ye){const Xt=We.target||de.current;if(Xt==null)throw new Error(Ts(1));ht({value:Xt.value})}w.onChange&&w.onChange(We,...Pe),q&&q(We,...Pe)};D.useEffect(()=>{ht(de.current)},[]);const dr=We=>{de.current&&We.currentTarget===We.target&&de.current.focus(),$&&$(We)};let Et=_,at=w;E&&Et==="input"&&(le?at=V({type:void 0,minRows:le,maxRows:le},at):at=V({type:void 0,maxRows:k,minRows:T},at),Et=ZQ);const un=We=>{ht(We.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};D.useEffect(()=>{Le&&Le.setAdornedStart(!!ie)},[Le,ie]);const cn=V({},o,{color:Ce.color||"primary",disabled:Ce.disabled,endAdornment:v,error:Ce.error,focused:Ce.focused,formControl:Le,fullWidth:y,hiddenLabel:Ce.hiddenLabel,multiline:E,size:Ce.size,startAdornment:ie,type:he}),Ut=tJ(cn),Ct=pe.root||f.Root||Y4,Cn=J.root||p.root||{},nn=pe.input||f.Input||X4;return at=V({},at,(r=J.input)!=null?r:p.input),O.jsxs(D.Fragment,{children:[!b&&nJ,O.jsxs(Ct,V({},Cn,!Zc(Ct)&&{ownerState:V({},cn,Cn.ownerState)},{ref:n,onClick:dr},ue,{className:gt(Ut.root,Cn.className,c,Q&&"MuiInputBase-readOnly"),children:[ie,O.jsx(G0.Provider,{value:null,children:O.jsx(nn,V({ownerState:cn,"aria-invalid":Ce.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:Ce.disabled,id:A,onAnimationStart:un,name:L,placeholder:H,readOnly:Q,required:Ce.required,rows:le,value:ne,onKeyDown:ae,onKeyUp:K,type:he},at,!Zc(nn)&&{as:Et,ownerState:V({},cn,at.ownerState)},{ref:Ae,className:gt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:mt,onChange:Mn,onFocus:xt}))}),v,re?re(V({},Ce,{startAdornment:ie})):null]}))]})}),oJ=rJ;function iJ(e){return er("MuiOutlinedInput",e)}const ss=V({},mh,tr("MuiOutlinedInput",["root","notchedOutline","input"])),sJ=tr("MuiBox",["root"]),aJ=W0(),Ii=MK({themeId:Xl,defaultTheme:aJ,defaultClassName:sJ.root,generateClassName:c4.generate});function lJ(e){return er("MuiButton",e)}const Zd=tr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uJ=D.createContext({}),cJ=D.createContext(void 0),fJ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dJ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${Mt(t)}`,`size${Mt(o)}`,`${i}Size${Mt(o)}`,`color${Mt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Mt(o)}`],endIcon:["icon","endIcon",`iconSize${Mt(o)}`]},c=fr(u,lJ,a);return V({},a,c)},Z4=e=>V({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),pJ=Bt(fw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Mt(n.color)}`],t[`size${Mt(n.size)}`],t[`${n.variant}Size${Mt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return V({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":V({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:V({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${wr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}}),hJ=Bt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Mt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Z4(e))),mJ=Bt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Mt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Z4(e))),sl=D.forwardRef(function(t,n){const r=D.useContext(uJ),o=D.useContext(cJ),i=Xc(r,t),a=Wn({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:y,fullWidth:A=!1,size:_="medium",startIcon:w,type:S,variant:k="text"}=a,T=it(a,fJ),E=V({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:b,fullWidth:A,size:_,type:S,variant:k}),L=dJ(E),I=w&&O.jsx(hJ,{className:L.startIcon,ownerState:E,children:w}),q=v&&O.jsx(mJ,{className:L.endIcon,ownerState:E,children:v}),$=o||"";return O.jsxs(pJ,V({ownerState:E,className:gt(r.className,L.root,p,$),component:f,disabled:h,focusRipple:!b,focusVisibleClassName:gt(L.focusVisible,y),ref:n,type:S},T,{classes:L,children:[I,u,q]}))}),gJ=(e,t)=>V({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),vJ=e=>V({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),yJ=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,u])=>{var c;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=V({html:gJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:V({margin:0},vJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function wJ(e){const t=Wn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return O.jsxs(D.Fragment,{children:[O.jsx(H4,{styles:o=>yJ(o,r)}),n]})}function bJ(e){return er("MuiFormControl",e)}tr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const xJ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_J=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Mt(n)}`,r&&"fullWidth"]};return fr(o,bJ,t)},SJ=Bt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>V({},t.root,t[`margin${Mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>V({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),EJ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:b="none",required:v=!1,size:y="medium",variant:A="outlined"}=r,_=it(r,xJ),w=V({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:b,required:v,size:y,variant:A}),S=_J(w),[k,T]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{if(!Rp(H,["Input","Select"]))return;const Q=Rp(H,["Select"])?H.props.input:H;Q&&QQ(Q.props)&&(K=!0)}),K}),[E,L]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{Rp(H,["Input","Select"])&&(J2(H.props,!0)||J2(H.props.inputProps,!0))&&(K=!0)}),K}),[I,q]=D.useState(!1);c&&I&&q(!1);const $=p!==void 0&&!c?p:I;let X;const ae=D.useMemo(()=>({adornedStart:k,setAdornedStart:T,color:a,disabled:c,error:f,filled:E,focused:$,fullWidth:h,hiddenLabel:m,size:y,onBlur:()=>{q(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{q(!0)},registerEffect:X,required:v,variant:A}),[k,a,c,f,E,$,h,m,X,v,y,A]);return O.jsx(G0.Provider,{value:ae,children:O.jsx(SJ,V({as:u,ownerState:w,className:gt(S.root,i),ref:n},_,{children:o}))})}),$t=zY({createStyledComponent:Bt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Wn({props:e,name:"MuiStack"})}),CJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e1(e){return`scale(${e}, ${e**2})`}const AJ={entering:{opacity:1,transform:e1(1)},entered:{opacity:1,transform:"none"}},av=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t1=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:b,style:v,timeout:y="auto",TransitionComponent:A=Hi}=t,_=it(t,CJ),w=Cl(),S=D.useRef(),k=Cf(),T=D.useRef(null),E=to(T,i.ref,n),L=Q=>re=>{if(Q){const le=T.current;re===void 0?Q(le):Q(le,re)}},I=L(p),q=L((Q,re)=>{rZ(Q);const{duration:le,delay:J,easing:pe}=QE({style:v,timeout:y,easing:a},{mode:"enter"});let ie;y==="auto"?(ie=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=ie):ie=le,Q.style.transition=[k.transitions.create("opacity",{duration:ie,delay:J}),k.transitions.create("transform",{duration:av?ie:ie*.666,delay:J,easing:pe})].join(","),c&&c(Q,re)}),$=L(f),X=L(b),ae=L(Q=>{const{duration:re,delay:le,easing:J}=QE({style:v,timeout:y,easing:a},{mode:"exit"});let pe;y==="auto"?(pe=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=pe):pe=re,Q.style.transition=[k.transitions.create("opacity",{duration:pe,delay:le}),k.transitions.create("transform",{duration:av?pe:pe*.666,delay:av?le:le||pe*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=e1(.75),h&&h(Q)}),K=L(m),H=Q=>{y==="auto"&&w.start(S.current||0,Q),r&&r(T.current,Q)};return O.jsx(A,V({appear:o,in:u,nodeRef:T,onEnter:q,onEntered:$,onEntering:I,onExit:ae,onExited:K,onExiting:X,addEndListener:H,timeout:y==="auto"?null:y},_,{children:(Q,re)=>D.cloneElement(i,V({style:V({opacity:0,transform:e1(.75),visibility:Q==="exited"&&!u?"hidden":void 0},AJ[Q],v,i.props.style),ref:E},re))}))});t1.muiSupportAuto=!0;function RJ(e){return er("MuiInputAdornment",e)}const h3=tr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m3;const kJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Mt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},DJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${Mt(o)}`,a,r&&"hiddenLabel",i&&`size${Mt(i)}`]};return fr(u,RJ,t)},PJ=Bt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:TJ})(({theme:e,ownerState:t})=>V({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${h3.positionStart}&:not(.${h3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),OJ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:p}=r,h=it(r,kJ),m=bw()||{};let b=p;p&&m.variant,m&&!b&&(b=m.variant);const v=V({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:b}),y=DJ(v);return O.jsx(G0.Provider,{value:null,children:O.jsx(PJ,V({as:a,ownerState:v,className:gt(y.root,i),ref:n},h,{children:typeof o=="string"&&!c?O.jsx(br,{color:"text.secondary",children:o}):O.jsxs(D.Fragment,{children:[f==="start"?m3||(m3=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function LJ(e){return er("MuiLink",e)}const NJ=tr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Q4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},MJ=e=>Q4[e]||e,BJ=({theme:e,ownerState:t})=>{const n=MJ(t.color),r=Ql(e,`palette.${n}`,!1)||t.color,o=Ql(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:wr(r,.4)},IJ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$J=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Mt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return fr(i,LJ,t)},FJ=Bt(br,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Mt(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>V({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&V({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:BJ({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NJ.focusVisible}`]:{outline:"auto"}})),gh=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,b=it(r,IJ),{isFocusVisibleRef:v,onBlur:y,onFocus:A,ref:_}=ow(),[w,S]=D.useState(!1),k=to(n,_),T=q=>{y(q),v.current===!1&&S(!1),u&&u(q)},E=q=>{A(q),v.current===!0&&S(!0),c&&c(q)},L=V({},r,{color:i,component:a,focusVisible:w,underline:p,variant:h}),I=$J(L);return O.jsx(FJ,V({color:i,className:gt(I.root,o),classes:f,component:a,onBlur:T,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(Q4).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},b))}),As=D.createContext({});function UJ(e){return er("MuiList",e)}tr("MuiList",["root","padding","dense","subheader"]);const zJ=["children","className","component","dense","disablePadding","subheader"],jJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},UJ,t)},VJ=Bt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>V({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),xw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=it(r,zJ),h=D.useMemo(()=>({dense:u}),[u]),m=V({},r,{component:a,dense:u,disablePadding:c}),b=jJ(m);return O.jsx(As.Provider,{value:h,children:O.jsxs(VJ,V({as:a,className:gt(b.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function WJ(e){return er("MuiListItem",e)}const al=tr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function qJ(e){return er("MuiListItemButton",e)}const ll=tr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),HJ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],GJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},KJ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=fr({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},qJ,n);return V({},n,f)},YJ=Bt(fw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:GJ})(({theme:e,ownerState:t})=>V({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ll.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ll.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ll.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),lv=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:b}=r,v=it(r,HJ),y=D.useContext(As),A=D.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:f}),[o,y.dense,c,f]),_=D.useRef(null);vi(()=>{i&&_.current&&_.current.focus()},[i]);const w=V({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=KJ(w),k=to(_,n);return O.jsx(As.Provider,{value:A,children:O.jsx(YJ,V({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:gt(S.focusVisible,h),ownerState:w,className:gt(S.root,b)},v,{classes:S,children:u}))})});function XJ(e){return er("MuiListItemSecondaryAction",e)}tr("MuiListItemSecondaryAction",["root","disableGutters"]);const ZJ=["className"],QJ=e=>{const{disableGutters:t,classes:n}=e;return fr({root:["root",t&&"disableGutters"]},XJ,n)},JJ=Bt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>V({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),J4=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=it(r,ZJ),a=D.useContext(As),u=V({},r,{disableGutters:a.disableGutters}),c=QJ(u);return O.jsx(JJ,V({className:gt(c.root,o),ownerState:u,ref:n},i))});J4.muiName="ListItemSecondaryAction";const eee=["className"],tee=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],nee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},ree=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return fr({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},WJ,r)},oee=Bt("div",{name:"MuiListItem",slot:"Root",overridesResolver:nee})(({theme:e,ownerState:t})=>V({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&V({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ll.root}`]:{paddingRight:48}},{[`&.${al.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${al.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${al.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${al.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${al.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),iee=Bt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ec=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:u,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:b}={},dense:v=!1,disabled:y=!1,disableGutters:A=!1,disablePadding:_=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:T=!1,slotProps:E={},slots:L={}}=r,I=it(r.ContainerProps,eee),q=it(r,tee),$=D.useContext(As),X=D.useMemo(()=>({dense:v||$.dense||!1,alignItems:o,disableGutters:A}),[o,$.dense,v,A]),ae=D.useRef(null);vi(()=>{i&&ae.current&&ae.current.focus()},[i]);const K=D.Children.toArray(u),H=K.length&&Rp(K[K.length-1],["ListItemSecondaryAction"]),Q=V({},r,{alignItems:o,autoFocus:i,button:a,dense:X.dense,disabled:y,disableGutters:A,disablePadding:_,divider:w,hasSecondaryAction:H,selected:T}),re=ree(Q),le=to(ae,n),J=L.root||p.Root||oee,pe=E.root||h.root||{},ie=V({className:gt(re.root,pe.className,c),disabled:y},q);let he=f||"li";return a&&(ie.component=f||"div",ie.focusVisibleClassName=gt(al.focusVisible,S),he=fw),H?(he=!ie.component&&!f?"div":he,m==="li"&&(he==="li"?he="div":ie.component==="li"&&(ie.component="div")),O.jsx(As.Provider,{value:X,children:O.jsxs(iee,V({as:m,className:gt(re.container,b),ref:le,ownerState:Q},I,{children:[O.jsx(J,V({},pe,!Zc(J)&&{as:he,ownerState:V({},Q,pe.ownerState)},ie,{children:K})),K.pop()]}))})):O.jsx(As.Provider,{value:X,children:O.jsxs(J,V({},pe,{as:he,ref:le},!Zc(J)&&{ownerState:V({},Q,pe.ownerState)},ie,{children:[K,k&&O.jsx(J4,{children:k})]}))})});function see(e){return er("MuiListItemText",e)}const g3=tr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aee=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],lee=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return fr({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},see,t)},uee=Bt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${g3.primary}`]:t.primary},{[`& .${g3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>V({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),uv=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=it(r,aee),{dense:b}=D.useContext(As);let v=c??o,y=p;const A=V({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:b}),_=lee(A);return v!=null&&v.type!==br&&!a&&(v=O.jsx(br,V({variant:b?"body2":"body1",className:_.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:v}))),y!=null&&y.type!==br&&!a&&(y=O.jsx(br,V({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:y}))),O.jsxs(uee,V({className:gt(_.root,i),ownerState:A,ref:n},m,{children:[v,y]}))});var v3;const cee=["children","classes","className","label","notched"],fee=Bt("fieldset",{shouldForwardProp:mu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dee=Bt("legend",{shouldForwardProp:mu})(({ownerState:e,theme:t})=>V({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&V({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function pee(e){const{className:t,label:n,notched:r}=e,o=it(e,cee),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return O.jsx(fee,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:O.jsx(dee,{ownerState:a,children:i?O.jsx("span",{children:n}):v3||(v3=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const hee=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mee=e=>{const{classes:t}=e,r=fr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iJ,t);return V({},t,r)},gee=Bt(Y4,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:G4})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return V({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ss.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ss.focused} .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ss.error} .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ss.disabled} .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&V({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vee=Bt(pee,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),yee=Bt(X4,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:K4})(({theme:e,ownerState:t})=>V({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),eT=D.forwardRef(function(t,n){var r,o,i,a,u;const c=Wn({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:b=!1,notched:v,slots:y={},type:A="text"}=c,_=it(c,hee),w=mee(c),S=bw(),k=q4({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=V({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:b,size:k.size,type:A}),E=(r=(o=y.root)!=null?o:f.Root)!=null?r:gee,L=(i=(a=y.input)!=null?a:f.Input)!=null?i:yee;return O.jsx(oJ,V({slots:{root:E,input:L},renderSuffix:I=>O.jsx(vee,{ownerState:T,className:w.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=O.jsxs(D.Fragment,{children:[m," ","*"]})):m,notched:typeof v<"u"?v:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:p,inputComponent:h,multiline:b,ref:n,type:A},_,{classes:V({},w,{notchedOutline:null})}))});eT.muiName="Input";function wee(e){return er("MuiTooltip",e)}const vs=tr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function xee(e){return Math.round(e*1e5)/1e5}const _ee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Mt(i.split("-")[0])}`],arrow:["arrow"]};return fr(a,wee,t)},See=Bt(W4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>V({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${vs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vs.arrow}`]:V({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${vs.arrow}`]:V({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Eee=Bt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Mt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${vs.popper}[data-popper-placement*="left"] &`]:V({transformOrigin:"right center"},t.isRtl?V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):V({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${vs.popper}[data-popper-placement*="right"] &`]:V({transformOrigin:"left center"},t.isRtl?V({marginRight:"14px"},t.touch&&{marginRight:"24px"}):V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${vs.popper}[data-popper-placement*="top"] &`]:V({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${vs.popper}[data-popper-placement*="bottom"] &`]:V({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Cee=Bt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Qd=!1;const y3=new Ef;let Ju={x:0,y:0};function Jd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const vh=D.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,b,v,y,A,_,w,S,k,T;const E=Wn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:I,components:q={},componentsProps:$={},describeChild:X=!1,disableFocusListener:ae=!1,disableHoverListener:K=!1,disableInteractive:H=!1,disableTouchListener:Q=!1,enterDelay:re=100,enterNextDelay:le=0,enterTouchDelay:J=700,followCursor:pe=!1,id:ie,leaveDelay:he=0,leaveTouchDelay:z=1500,onClose:ue,onOpen:ne,open:ye,placement:de="bottom",PopperComponent:Me,PopperProps:Ae={},slotProps:ge={},slots:Je={},title:Le,TransitionComponent:Ce=t1,TransitionProps:Ge}=E,st=it(E,bee),ht=D.isValidElement(I)?I:O.jsx("span",{children:I}),xt=Cf(),mt=TY(),[Mn,dr]=D.useState(),[Et,at]=D.useState(null),un=D.useRef(!1),cn=H||pe,Ut=Cl(),Ct=Cl(),Cn=Cl(),nn=Cl(),[We,Pe]=aY({controlled:ye,default:!1,name:"Tooltip",state:"open"});let Xt=We;const nr=sY(ie),qn=D.useRef(),An=El(()=>{qn.current!==void 0&&(document.body.style.WebkitUserSelect=qn.current,qn.current=void 0),nn.clear()});D.useEffect(()=>An,[An]);const Io=Ee=>{y3.clear(),Qd=!0,Pe(!0),ne&&!Xt&&ne(Ee)},W=El(Ee=>{y3.start(800+he,()=>{Qd=!1}),Pe(!1),ue&&Xt&&ue(Ee),Ut.start(xt.transitions.duration.shortest,()=>{un.current=!1})}),F=Ee=>{un.current&&Ee.type!=="touchstart"||(Mn&&Mn.removeAttribute("title"),Ct.clear(),Cn.clear(),re||Qd&&le?Ct.start(Qd?le:re,()=>{Io(Ee)}):Io(Ee))},ce=Ee=>{Ct.clear(),Cn.start(he,()=>{W(Ee)})},{isFocusVisibleRef:be,onBlur:we,onFocus:Se,ref:Fe}=ow(),[,Ne]=D.useState(!1),Ie=Ee=>{we(Ee),be.current===!1&&(Ne(!1),ce(Ee))},He=Ee=>{Mn||dr(Ee.currentTarget),Se(Ee),be.current===!0&&(Ne(!0),F(Ee))},_t=Ee=>{un.current=!0;const yt=ht.props;yt.onTouchStart&&yt.onTouchStart(Ee)},Rn=Ee=>{_t(Ee),Cn.clear(),Ut.clear(),An(),qn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=qn.current,F(Ee)})},zt=Ee=>{ht.props.onTouchEnd&&ht.props.onTouchEnd(Ee),An(),Cn.start(z,()=>{W(Ee)})};D.useEffect(()=>{if(!Xt)return;function Ee(yt){(yt.key==="Escape"||yt.key==="Esc")&&W(yt)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[W,Xt]);const kn=to(ht.ref,Fe,dr,n);!Le&&Le!==0&&(Xt=!1);const fn=D.useRef(),so=Ee=>{const yt=ht.props;yt.onMouseMove&&yt.onMouseMove(Ee),Ju={x:Ee.clientX,y:Ee.clientY},fn.current&&fn.current.update()},rr={},N=typeof Le=="string";X?(rr.title=!Xt&&N&&!K?Le:null,rr["aria-describedby"]=Xt?nr:null):(rr["aria-label"]=N?Le:null,rr["aria-labelledby"]=Xt&&!N?nr:null);const B=V({},rr,st,ht.props,{className:gt(st.className,ht.props.className),onTouchStart:_t,ref:kn},pe?{onMouseMove:so}:{}),G={};Q||(B.onTouchStart=Rn,B.onTouchEnd=zt),K||(B.onMouseOver=Jd(F,B.onMouseOver),B.onMouseLeave=Jd(ce,B.onMouseLeave),cn||(G.onMouseOver=F,G.onMouseLeave=ce)),ae||(B.onFocus=Jd(He,B.onFocus),B.onBlur=Jd(Ie,B.onBlur),cn||(G.onFocus=He,G.onBlur=Ie));const te=D.useMemo(()=>{var Ee;let yt=[{name:"arrow",enabled:!!Et,options:{element:Et,padding:4}}];return(Ee=Ae.popperOptions)!=null&&Ee.modifiers&&(yt=yt.concat(Ae.popperOptions.modifiers)),V({},Ae.popperOptions,{modifiers:yt})},[Et,Ae]),xe=V({},E,{isRtl:mt,arrow:L,disableInteractive:cn,placement:de,PopperComponentProp:Me,touch:un.current}),De=_ee(xe),Ue=(r=(o=Je.popper)!=null?o:q.Popper)!=null?r:See,ve=(i=(a=(u=Je.transition)!=null?u:q.Transition)!=null?a:Ce)!=null?i:t1,qe=(c=(f=Je.tooltip)!=null?f:q.Tooltip)!=null?c:Eee,Be=(p=(h=Je.arrow)!=null?h:q.Arrow)!=null?p:Cee,$e=ac(Ue,V({},Ae,(m=ge.popper)!=null?m:$.popper,{className:gt(De.popper,Ae==null?void 0:Ae.className,(b=(v=ge.popper)!=null?v:$.popper)==null?void 0:b.className)}),xe),St=ac(ve,V({},Ge,(y=ge.transition)!=null?y:$.transition),xe),vt=ac(qe,V({},(A=ge.tooltip)!=null?A:$.tooltip,{className:gt(De.tooltip,(_=(w=ge.tooltip)!=null?w:$.tooltip)==null?void 0:_.className)}),xe),At=ac(Be,V({},(S=ge.arrow)!=null?S:$.arrow,{className:gt(De.arrow,(k=(T=ge.arrow)!=null?T:$.arrow)==null?void 0:k.className)}),xe);return O.jsxs(D.Fragment,{children:[D.cloneElement(ht,B),O.jsx(Ue,V({as:Me??W4,placement:de,anchorEl:pe?{getBoundingClientRect:()=>({top:Ju.y,left:Ju.x,right:Ju.x,bottom:Ju.y,width:0,height:0})}:Mn,popperRef:fn,open:Mn?Xt:!1,id:nr,transition:!0},G,$e,{popperOptions:te,children:({TransitionProps:Ee})=>O.jsx(ve,V({timeout:xt.transitions.duration.shorter},Ee,St,{children:O.jsxs(qe,V({},vt,{children:[Le,L?O.jsx(Be,V({},At,{ref:at})):null]}))}))}))]})}),Aee=Pa` +`),bo.rippleVisible,aZ,Y2,({theme:e})=>e.transitions.easing.easeInOut,bo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bo.child,bo.childLeaving,lZ,Y2,({theme:e})=>e.transitions.easing.easeInOut,bo.childPulsate,uZ,({theme:e})=>e.transitions.easing.easeInOut),dZ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=it(r,iZ),[c,f]=D.useState([]),p=D.useRef(0),h=D.useRef(null);D.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const g=D.useRef(!1),b=Cl(),v=D.useRef(null),y=D.useRef(null),A=D.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:L,rippleSize:I,cb:q}=k;f($=>[...$,O.jsx(fZ,{classes:{ripple:gt(i.ripple,bo.ripple),rippleVisible:gt(i.rippleVisible,bo.rippleVisible),ripplePulsate:gt(i.ripplePulsate,bo.ripplePulsate),child:gt(i.child,bo.child),childLeaving:gt(i.childLeaving,bo.childLeaving),childPulsate:gt(i.childPulsate,bo.childPulsate)},timeout:Y2,pulsate:T,rippleX:E,rippleY:L,rippleSize:I},p.current)]),p.current+=1,h.current=q},[i]),_=D.useCallback((k={},T={},E=()=>{})=>{const{pulsate:L=!1,center:I=o||T.pulsate,fakeElement:q=!1}=T;if((k==null?void 0:k.type)==="mousedown"&&g.current){g.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(g.current=!0);const $=q?null:y.current,X=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ae,K,H;if(I||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)ae=Math.round(X.width/2),K=Math.round(X.height/2);else{const{clientX:Q,clientY:re}=k.touches&&k.touches.length>0?k.touches[0]:k;ae=Math.round(Q-X.left),K=Math.round(re-X.top)}if(I)H=Math.sqrt((2*X.width**2+X.height**2)/3),H%2===0&&(H+=1);else{const Q=Math.max(Math.abs(($?$.clientWidth:0)-ae),ae)*2+2,re=Math.max(Math.abs(($?$.clientHeight:0)-K),K)*2+2;H=Math.sqrt(Q**2+re**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{A({pulsate:L,rippleX:ae,rippleY:K,rippleSize:H,cb:E})},b.start(sZ,()=>{v.current&&(v.current(),v.current=null)})):A({pulsate:L,rippleX:ae,rippleY:K,rippleSize:H,cb:E})},[o,A,b]),w=D.useCallback(()=>{_({},{pulsate:!0})},[_]),S=D.useCallback((k,T)=>{if(b.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{S(k,T)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),h.current=T},[b]);return D.useImperativeHandle(n,()=>({pulsate:w,start:_,stop:S}),[w,_,S]),O.jsx(cZ,V({className:gt(bo.root,i.root,a),ref:y},u,{children:O.jsx(cw,{component:null,exit:!0,children:c})}))});function pZ(e){return er("MuiButtonBase",e)}const hZ=tr("MuiButtonBase",["root","disabled","focusVisible"]),mZ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],gZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=fr({root:["root",t&&"disabled",n&&"focusVisible"]},pZ,o);return n&&r&&(a.root+=` ${r}`),a},vZ=Bt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:g=!1,LinkComponent:b="a",onBlur:v,onClick:y,onContextMenu:A,onDragLeave:_,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:L,onMouseUp:I,onTouchEnd:q,onTouchMove:$,onTouchStart:X,tabIndex:ae=0,TouchRippleProps:K,touchRippleRef:H,type:Q}=r,re=it(r,mZ),le=D.useRef(null),J=D.useRef(null),pe=to(J,H),{isFocusVisibleRef:ie,onFocus:he,onBlur:z,ref:ue}=ow(),[ne,ye]=D.useState(!1);f&&ne&&ye(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{ye(!0),le.current.focus()}}),[]);const[de,Me]=D.useState(!1);D.useEffect(()=>{Me(!0)},[]);const Ae=de&&!p&&!f;D.useEffect(()=>{ne&&g&&!p&&de&&J.current.pulsate()},[p,g,ne,de]);function ge(Pe,Xt,nr=h){return El(qn=>(Xt&&Xt(qn),!nr&&J.current&&J.current[Pe](qn),!0))}const Je=ge("start",E),Le=ge("stop",A),Ce=ge("stop",_),Ge=ge("stop",I),st=ge("stop",Pe=>{ne&&Pe.preventDefault(),L&&L(Pe)}),ht=ge("start",X),xt=ge("stop",q),mt=ge("stop",$),Mn=ge("stop",Pe=>{z(Pe),ie.current===!1&&ye(!1),v&&v(Pe)},!1),dr=El(Pe=>{le.current||(le.current=Pe.currentTarget),he(Pe),ie.current===!0&&(ye(!0),S&&S(Pe)),w&&w(Pe)}),Et=()=>{const Pe=le.current;return c&&c!=="button"&&!(Pe.tagName==="A"&&Pe.href)},at=D.useRef(!1),un=El(Pe=>{g&&!at.current&&ne&&J.current&&Pe.key===" "&&(at.current=!0,J.current.stop(Pe,()=>{J.current.start(Pe)})),Pe.target===Pe.currentTarget&&Et()&&Pe.key===" "&&Pe.preventDefault(),k&&k(Pe),Pe.target===Pe.currentTarget&&Et()&&Pe.key==="Enter"&&!f&&(Pe.preventDefault(),y&&y(Pe))}),cn=El(Pe=>{g&&Pe.key===" "&&J.current&&ne&&!Pe.defaultPrevented&&(at.current=!1,J.current.stop(Pe,()=>{J.current.pulsate(Pe)})),T&&T(Pe),y&&Pe.target===Pe.currentTarget&&Et()&&Pe.key===" "&&!Pe.defaultPrevented&&y(Pe)});let Ut=c;Ut==="button"&&(re.href||re.to)&&(Ut=b);const Ct={};Ut==="button"?(Ct.type=Q===void 0?"button":Q,Ct.disabled=f):(!re.href&&!re.to&&(Ct.role="button"),f&&(Ct["aria-disabled"]=f));const Cn=to(n,ue,le),nn=V({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:g,tabIndex:ae,focusVisible:ne}),We=gZ(nn);return O.jsxs(vZ,V({as:Ut,className:gt(We.root,u),ownerState:nn,onBlur:Mn,onClick:y,onContextMenu:Le,onFocus:dr,onKeyDown:un,onKeyUp:cn,onMouseDown:Je,onMouseLeave:st,onMouseUp:Ge,onDragLeave:Ce,onTouchEnd:xt,onTouchMove:mt,onTouchStart:ht,ref:Cn,tabIndex:f?-1:ae,type:Q},Ct,re,{children:[a,Ae?O.jsx(dZ,V({ref:pe,center:i},K)):null]}))});function yZ(e){return er("MuiTypography",e)}tr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wZ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bZ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${Mt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return fr(u,yZ,a)},xZ=Bt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Mt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>V({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),r3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_Z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SZ=e=>_Z[e]||e,br=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTypography"}),o=SZ(r.color),i=O0(V({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:b=r3}=i,v=it(i,wZ),y=V({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:g,variantMapping:b}),A=c||(h?"p":b[g]||r3[g])||"span",_=bZ(y);return O.jsx(xZ,V({as:A,ref:n,ownerState:y,className:gt(_.root,u)},v))});var dw={};Object.defineProperty(dw,"__esModule",{value:!0});var L4=dw.default=void 0,EZ=AZ(D),CZ=D4;function N4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(N4=function(r){return r?n:t})(e)}function AZ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=N4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function RZ(e){return Object.keys(e).length===0}function kZ(e=null){const t=EZ.useContext(CZ.ThemeContext);return!t||RZ(t)?e:t}L4=dw.default=kZ;var Br="top",Lo="bottom",No="right",Ir="left",pw="auto",Rf=[Br,Lo,No,Ir],Jl="start",Qc="end",TZ="clippingParents",M4="viewport",Qu="popper",DZ="reference",o3=Rf.reduce(function(e,t){return e.concat([t+"-"+Jl,t+"-"+Qc])},[]),B4=[].concat(Rf,[pw]).reduce(function(e,t){return e.concat([t,t+"-"+Jl,t+"-"+Qc])},[]),PZ="beforeRead",OZ="read",LZ="afterRead",NZ="beforeMain",MZ="main",BZ="afterMain",IZ="beforeWrite",$Z="write",FZ="afterWrite",UZ=[PZ,OZ,LZ,NZ,MZ,BZ,IZ,$Z,FZ];function yi(e){return e?(e.nodeName||"").toLowerCase():null}function no(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ca(e){var t=no(e).Element;return e instanceof t||e instanceof Element}function To(e){var t=no(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hw(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zZ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!To(i)||!yi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var u=o[a];u===!1?i.removeAttribute(a):i.setAttribute(a,u===!0?"":u)}))})}function jZ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(c,f){return c[f]="",c},{});!To(o)||!yi(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const VZ={name:"applyStyles",enabled:!0,phase:"write",fn:zZ,effect:jZ,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ma=Math.max,hh=Math.min,eu=Math.round;function X2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function I4(){return!/^((?!chrome|android).)*safari/i.test(X2())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&To(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var a=Ca(e)?no(e):window,u=a.visualViewport,c=!I4()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,g=r.height/i;return{width:h,height:g,top:p,right:f+h,bottom:p+g,left:f,x:f,y:p}}function mw(e){var t=tu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ji(e){return no(e).getComputedStyle(e)}function WZ(e){return["table","td","th"].indexOf(yi(e))>=0}function Is(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function H0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(hw(e)?e.host:null)||Is(e)}function i3(e){return!To(e)||ji(e).position==="fixed"?null:e.offsetParent}function qZ(e){var t=/firefox/i.test(X2()),n=/Trident/i.test(X2());if(n&&To(e)){var r=ji(e);if(r.position==="fixed")return null}var o=H0(e);for(hw(o)&&(o=o.host);To(o)&&["html","body"].indexOf(yi(o))<0;){var i=ji(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function kf(e){for(var t=no(e),n=i3(e);n&&WZ(n)&&ji(n).position==="static";)n=i3(n);return n&&(yi(n)==="html"||yi(n)==="body"&&ji(n).position==="static")?t:n||qZ(e)||t}function gw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _c(e,t,n){return ma(e,hh(t,n))}function HZ(e,t,n){var r=_c(e,t,n);return r>n?n:r}function F4(){return{top:0,right:0,bottom:0,left:0}}function U4(e){return Object.assign({},F4(),e)}function z4(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var GZ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,U4(typeof t!="number"?t:z4(t,Rf))};function KZ(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=mi(n.placement),c=gw(u),f=[Ir,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=GZ(o.padding,n),g=mw(i),b=c==="y"?Br:Ir,v=c==="y"?Lo:No,y=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],_=kf(i),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-A/2,k=h[b],T=w-g[p]-h[v],E=w/2-g[p]/2+S,L=_c(k,E,T),I=c;n.modifiersData[r]=(t={},t[I]=L,t.centerOffset=L-E,t)}}function YZ(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||$4(t.elements.popper,o)&&(t.elements.arrow=o))}const XZ={name:"arrow",enabled:!0,phase:"main",fn:KZ,effect:YZ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var ZZ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QZ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}function s3(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=a.x,b=g===void 0?0:g,v=a.y,y=v===void 0?0:v,A=typeof p=="function"?p({x:b,y}):{x:b,y};b=A.x,y=A.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Ir,k=Br,T=window;if(f){var E=kf(n),L="clientHeight",I="clientWidth";if(E===no(n)&&(E=Is(n),ji(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",I="scrollWidth")),E=E,o===Br||(o===Ir||o===No)&&i===Qc){k=Lo;var q=h&&E===T&&T.visualViewport?T.visualViewport.height:E[L];y-=q-r.height,y*=c?1:-1}if(o===Ir||(o===Br||o===Lo)&&i===Qc){S=No;var $=h&&E===T&&T.visualViewport?T.visualViewport.width:E[I];b-=$-r.width,b*=c?1:-1}}var X=Object.assign({position:u},f&&ZZ),ae=p===!0?QZ({x:b,y},no(n)):{x:b,y};if(b=ae.x,y=ae.y,c){var K;return Object.assign({},X,(K={},K[k]=w?"0":"",K[S]=_?"0":"",K.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",K))}return Object.assign({},X,(t={},t[k]=w?y+"px":"",t[S]=_?b+"px":"",t.transform="",t))}function JZ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:mi(t.placement),variation:nu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s3(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s3(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JZ,data:{}};var Yd={passive:!0};function tQ(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,u=a===void 0?!0:a,c=no(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Yd)}),u&&c.addEventListener("resize",n.update,Yd),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Yd)}),u&&c.removeEventListener("resize",n.update,Yd)}}const nQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tQ,data:{}};var rQ={left:"right",right:"left",bottom:"top",top:"bottom"};function Dp(e){return e.replace(/left|right|bottom|top/g,function(t){return rQ[t]})}var oQ={start:"end",end:"start"};function a3(e){return e.replace(/start|end/g,function(t){return oQ[t]})}function vw(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yw(e){return tu(Is(e)).left+vw(e).scrollLeft}function iQ(e,t){var n=no(e),r=Is(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var f=I4();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+yw(e),y:c}}function sQ(e){var t,n=Is(e),r=vw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ma(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ma(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+yw(e),c=-r.scrollTop;return ji(o||n).direction==="rtl"&&(u+=ma(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}function ww(e){var t=ji(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function j4(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&ww(e)?e:j4(H0(e))}function Sc(e,t){var n;t===void 0&&(t=[]);var r=j4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],ww(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Sc(H0(a)))}function Z2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aQ(e,t){var n=tu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function l3(e,t,n){return t===M4?Z2(iQ(e,n)):Ca(t)?aQ(t,n):Z2(sQ(Is(e)))}function lQ(e){var t=Sc(H0(e)),n=["absolute","fixed"].indexOf(ji(e).position)>=0,r=n&&To(e)?kf(e):e;return Ca(r)?t.filter(function(o){return Ca(o)&&$4(o,r)&&yi(o)!=="body"}):[]}function uQ(e,t,n,r){var o=t==="clippingParents"?lQ(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=l3(e,f,r);return c.top=ma(p.top,c.top),c.right=hh(p.right,c.right),c.bottom=hh(p.bottom,c.bottom),c.left=ma(p.left,c.left),c},l3(e,a,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function V4(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?nu(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case Br:c={x:a,y:t.y-n.height};break;case Lo:c={x:a,y:t.y+t.height};break;case No:c={x:t.x+t.width,y:u};break;case Ir:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?gw(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Jl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Qc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Jc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?TZ:u,f=n.rootBoundary,p=f===void 0?M4:f,h=n.elementContext,g=h===void 0?Qu:h,b=n.altBoundary,v=b===void 0?!1:b,y=n.padding,A=y===void 0?0:y,_=U4(typeof A!="number"?A:z4(A,Rf)),w=g===Qu?DZ:Qu,S=e.rects.popper,k=e.elements[v?w:g],T=uQ(Ca(k)?k:k.contextElement||Is(e.elements.popper),c,p,a),E=tu(e.elements.reference),L=V4({reference:E,element:S,strategy:"absolute",placement:o}),I=Z2(Object.assign({},S,L)),q=g===Qu?I:E,$={top:T.top-q.top+_.top,bottom:q.bottom-T.bottom+_.bottom,left:T.left-q.left+_.left,right:q.right-T.right+_.right},X=e.modifiersData.offset;if(g===Qu&&X){var ae=X[o];Object.keys($).forEach(function(K){var H=[No,Lo].indexOf(K)>=0?1:-1,Q=[Br,Lo].indexOf(K)>=0?"y":"x";$[K]+=ae[Q]*H})}return $}function cQ(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?B4:c,p=nu(r),h=p?u?o3:o3.filter(function(v){return nu(v)===p}):Rf,g=h.filter(function(v){return f.indexOf(v)>=0});g.length===0&&(g=h);var b=g.reduce(function(v,y){return v[y]=Jc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[mi(y)],v},{});return Object.keys(b).sort(function(v,y){return b[v]-b[y]})}function fQ(e){if(mi(e)===pw)return[];var t=Dp(e);return[a3(e),t,a3(t)]}function dQ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,y=n.allowedAutoPlacements,A=t.options.placement,_=mi(A),w=_===A,S=c||(w||!v?[Dp(A)]:fQ(A)),k=[A].concat(S).reduce(function(ne,ye){return ne.concat(mi(ye)===pw?cQ(t,{placement:ye,boundary:p,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),T=t.rects.reference,E=t.rects.popper,L=new Map,I=!0,q=k[0],$=0;$=0,Q=H?"width":"height",re=Jc(t,{placement:X,boundary:p,rootBoundary:h,altBoundary:g,padding:f}),le=H?K?No:Ir:K?Lo:Br;T[Q]>E[Q]&&(le=Dp(le));var J=Dp(le),pe=[];if(i&&pe.push(re[ae]<=0),u&&pe.push(re[le]<=0,re[J]<=0),pe.every(function(ne){return ne})){q=X,I=!1;break}L.set(X,pe)}if(I)for(var ie=v?3:1,he=function(ye){var de=k.find(function(Me){var Ae=L.get(Me);if(Ae)return Ae.slice(0,ye).every(function(ge){return ge})});if(de)return q=de,"break"},z=ie;z>0;z--){var ue=he(z);if(ue==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}const pQ={name:"flip",enabled:!0,phase:"main",fn:dQ,requiresIfExists:["offset"],data:{_skip:!1}};function u3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function c3(e){return[Br,No,Lo,Ir].some(function(t){return e[t]>=0})}function hQ(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Jc(t,{elementContext:"reference"}),u=Jc(t,{altBoundary:!0}),c=u3(a,r),f=u3(u,o,i),p=c3(c),h=c3(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const mQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hQ};function gQ(e,t,n){var r=mi(e),o=[Ir,Br].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[Ir,No].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function vQ(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=B4.reduce(function(p,h){return p[h]=gQ(h,t.rects,i),p},{}),u=a[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const yQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vQ};function wQ(e){var t=e.state,n=e.name;t.modifiersData[n]=V4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bQ={name:"popperOffsets",enabled:!0,phase:"read",fn:wQ,data:{}};function xQ(e){return e==="x"?"y":"x"}function _Q(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,b=g===void 0?!0:g,v=n.tetherOffset,y=v===void 0?0:v,A=Jc(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),_=mi(t.placement),w=nu(t.placement),S=!w,k=gw(_),T=xQ(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ae={x:0,y:0};if(E){if(i){var K,H=k==="y"?Br:Ir,Q=k==="y"?Lo:No,re=k==="y"?"height":"width",le=E[k],J=le+A[H],pe=le-A[Q],ie=b?-I[re]/2:0,he=w===Jl?L[re]:I[re],z=w===Jl?-I[re]:-L[re],ue=t.elements.arrow,ne=b&&ue?mw(ue):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:F4(),de=ye[H],Me=ye[Q],Ae=_c(0,L[re],ne[re]),ge=S?L[re]/2-ie-Ae-de-$.mainAxis:he-Ae-de-$.mainAxis,Je=S?-L[re]/2+ie+Ae+Me+$.mainAxis:z+Ae+Me+$.mainAxis,Le=t.elements.arrow&&kf(t.elements.arrow),Ce=Le?k==="y"?Le.clientTop||0:Le.clientLeft||0:0,Ge=(K=X==null?void 0:X[k])!=null?K:0,st=le+ge-Ge-Ce,ht=le+Je-Ge,xt=_c(b?hh(J,st):J,le,b?ma(pe,ht):pe);E[k]=xt,ae[k]=xt-le}if(u){var mt,Mn=k==="x"?Br:Ir,dr=k==="x"?Lo:No,Et=E[T],at=T==="y"?"height":"width",un=Et+A[Mn],cn=Et-A[dr],Ut=[Br,Ir].indexOf(_)!==-1,Ct=(mt=X==null?void 0:X[T])!=null?mt:0,Cn=Ut?un:Et-L[at]-I[at]-Ct+$.altAxis,nn=Ut?Et+L[at]+I[at]-Ct-$.altAxis:cn,We=b&&Ut?HZ(Cn,Et,nn):_c(b?Cn:un,Et,b?nn:cn);E[T]=We,ae[T]=We-Et}t.modifiersData[r]=ae}}const SQ={name:"preventOverflow",enabled:!0,phase:"main",fn:_Q,requiresIfExists:["offset"]};function EQ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CQ(e){return e===no(e)||!To(e)?vw(e):EQ(e)}function AQ(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function RQ(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&AQ(t),i=Is(t),a=tu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||ww(i))&&(u=CQ(t)),To(t)?(c=tu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=yw(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function kQ(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function TQ(e){var t=kQ(e);return UZ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function DQ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PQ(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var f3={placement:"bottom",modifiers:[],strategy:"absolute"};function d3(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(MQ(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return W2(n,a),()=>{W2(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const f={ref:c};return D.cloneElement(r,f)}return O.jsx(D.Fragment,{children:r})}return O.jsx(D.Fragment,{children:a&&Nh.createPortal(r,a)})});function IQ(e){return er("MuiPopper",e)}tr("MuiPopper",["root"]);const $Q=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],FQ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function UQ(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Q2(e){return typeof e=="function"?e():e}function zQ(e){return e.nodeType!==void 0}const jQ=e=>{const{classes:t}=e;return fr({root:["root"]},IQ,t)},VQ={},WQ=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:g,slotProps:b={},slots:v={},TransitionProps:y}=t,A=it(t,$Q),_=D.useRef(null),w=to(_,n),S=D.useRef(null),k=to(S,g),T=D.useRef(k);vi(()=>{T.current=k},[k]),D.useImperativeHandle(g,()=>S.current,[]);const E=UQ(p,a),[L,I]=D.useState(E),[q,$]=D.useState(Q2(o));D.useEffect(()=>{S.current&&S.current.forceUpdate()}),D.useEffect(()=>{o&&$(Q2(o))},[o]),vi(()=>{if(!q||!f)return;const Q=J=>{I(J.placement)};let re=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Q(J)}}];c!=null&&(re=re.concat(c)),h&&h.modifiers!=null&&(re=re.concat(h.modifiers));const le=NQ(q,_.current,V({placement:E},h,{modifiers:re}));return T.current(le),()=>{le.destroy(),T.current(null)}},[q,u,c,f,h,E]);const X={placement:L};y!==null&&(X.TransitionProps=y);const ae=jQ(t),K=(r=v.root)!=null?r:"div",H=_Y({elementType:K,externalSlotProps:b.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:ae.root});return O.jsx(K,V({},H,{children:typeof i=="function"?i(X):i}))}),qQ=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:g=VQ,popperRef:b,style:v,transition:y=!1,slotProps:A={},slots:_={}}=t,w=it(t,FQ),[S,k]=D.useState(!0),T=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!y||S))return null;let L;if(i)L=i;else if(r){const $=Q2(r);L=$&&zQ($)?V2($).body:V2(null).body}const I=!p&&c&&(!y||S)?"none":void 0,q=y?{in:p,onEnter:T,onExited:E}:void 0;return O.jsx(BQ,{disablePortal:u,container:L,children:O.jsx(WQ,V({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:y?!S:p,placement:h,popperOptions:g,popperRef:b,slotProps:A,slots:_},w,{style:V({position:"fixed",top:0,left:0,display:I},v),TransitionProps:q,children:o}))})}),HQ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],GQ=Bt(qQ,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W4=D.forwardRef(function(t,n){var r;const o=L4(),i=Wn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:g,modifiers:b,open:v,placement:y,popperOptions:A,popperRef:_,transition:w,slots:S,slotProps:k}=i,T=it(i,HQ),E=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,L=V({anchorEl:a,container:p,disablePortal:h,keepMounted:g,modifiers:b,open:v,placement:y,popperOptions:A,popperRef:_,transition:w},T);return O.jsx(GQ,V({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),KQ=["onChange","maxRows","minRows","style","value"];function Xd(e){return parseInt(e,10)||0}const YQ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XQ(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const ZQ=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=it(t,KQ),{current:f}=D.useRef(u!=null),p=D.useRef(null),h=to(n,p),g=D.useRef(null),b=D.useRef(null),v=D.useCallback(()=>{const _=p.current,S=BE(_).getComputedStyle(_);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=b.current;k.style.width=S.width,k.value=_.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const T=S.boxSizing,E=Xd(S.paddingBottom)+Xd(S.paddingTop),L=Xd(S.borderBottomWidth)+Xd(S.borderTopWidth),I=k.scrollHeight;k.value="x";const q=k.scrollHeight;let $=I;i&&($=Math.max(Number(i)*q,$)),o&&($=Math.min(Number(o)*q,$)),$=Math.max($,q);const X=$+(T==="border-box"?E+L:0),ae=Math.abs($-I)<=1;return{outerHeightStyle:X,overflowing:ae}},[o,i,t.placeholder]),y=D.useCallback(()=>{const _=v();if(XQ(_))return;const w=_.outerHeightStyle,S=p.current;g.current!==w&&(g.current=w,S.style.height=`${w}px`),S.style.overflow=_.overflowing?"hidden":""},[v]);vi(()=>{const _=()=>{y()};let w;const S=oY(_),k=p.current,T=BE(k);T.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(_),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(w),T.removeEventListener("resize",S),E&&E.disconnect()}},[v,y]),vi(()=>{y()});const A=_=>{f||y(),r&&r(_)};return O.jsxs(D.Fragment,{children:[O.jsx("textarea",V({value:u,onChange:A,ref:h,rows:i,style:a},c)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:V({},YQ.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function q4({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const G0=D.createContext(void 0);function bw(){return D.useContext(G0)}function H4(e){return O.jsx(TK,V({},e,{defaultTheme:lw,themeId:Xl}))}function p3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function J2(e,t=!1){return e&&(p3(e.value)&&e.value!==""||t&&p3(e.defaultValue)&&e.defaultValue!=="")}function QQ(e){return e.startAdornment}function JQ(e){return er("MuiInputBase",e)}const mh=tr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),eJ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],G4=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Mt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},K4=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},tJ=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:g,startAdornment:b,type:v}=e,y={root:["root",`color${Mt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",g&&g!=="medium"&&`size${Mt(g)}`,p&&"multiline",b&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return fr(y,JQ,t)},Y4=Bt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:G4})(({theme:e,ownerState:t})=>V({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&V({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),X4=Bt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:K4})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=V({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return V({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${mh.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${mh.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),nJ=O.jsx(H4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rJ=D.forwardRef(function(t,n){var r;const o=Wn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:h,disabled:g,disableInjectingGlobalStyles:b,endAdornment:v,fullWidth:y=!1,id:A,inputComponent:_="input",inputProps:w={},inputRef:S,maxRows:k,minRows:T,multiline:E=!1,name:L,onBlur:I,onChange:q,onClick:$,onFocus:X,onKeyDown:ae,onKeyUp:K,placeholder:H,readOnly:Q,renderSuffix:re,rows:le,slotProps:J={},slots:pe={},startAdornment:ie,type:he="text",value:z}=o,ue=it(o,eJ),ne=w.value!=null?w.value:z,{current:ye}=D.useRef(ne!=null),de=D.useRef(),Me=D.useCallback(We=>{},[]),Ae=to(de,S,w.ref,Me),[ge,Je]=D.useState(!1),Le=bw(),Ce=q4({props:o,muiFormControl:Le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ce.focused=Le?Le.focused:ge,D.useEffect(()=>{!Le&&g&&ge&&(Je(!1),I&&I())},[Le,g,ge,I]);const Ge=Le&&Le.onFilled,st=Le&&Le.onEmpty,ht=D.useCallback(We=>{J2(We)?Ge&&Ge():st&&st()},[Ge,st]);vi(()=>{ye&&ht({value:ne})},[ne,ht,ye]);const xt=We=>{if(Ce.disabled){We.stopPropagation();return}X&&X(We),w.onFocus&&w.onFocus(We),Le&&Le.onFocus?Le.onFocus(We):Je(!0)},mt=We=>{I&&I(We),w.onBlur&&w.onBlur(We),Le&&Le.onBlur?Le.onBlur(We):Je(!1)},Mn=(We,...Pe)=>{if(!ye){const Xt=We.target||de.current;if(Xt==null)throw new Error(Ts(1));ht({value:Xt.value})}w.onChange&&w.onChange(We,...Pe),q&&q(We,...Pe)};D.useEffect(()=>{ht(de.current)},[]);const dr=We=>{de.current&&We.currentTarget===We.target&&de.current.focus(),$&&$(We)};let Et=_,at=w;E&&Et==="input"&&(le?at=V({type:void 0,minRows:le,maxRows:le},at):at=V({type:void 0,maxRows:k,minRows:T},at),Et=ZQ);const un=We=>{ht(We.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};D.useEffect(()=>{Le&&Le.setAdornedStart(!!ie)},[Le,ie]);const cn=V({},o,{color:Ce.color||"primary",disabled:Ce.disabled,endAdornment:v,error:Ce.error,focused:Ce.focused,formControl:Le,fullWidth:y,hiddenLabel:Ce.hiddenLabel,multiline:E,size:Ce.size,startAdornment:ie,type:he}),Ut=tJ(cn),Ct=pe.root||f.Root||Y4,Cn=J.root||p.root||{},nn=pe.input||f.Input||X4;return at=V({},at,(r=J.input)!=null?r:p.input),O.jsxs(D.Fragment,{children:[!b&&nJ,O.jsxs(Ct,V({},Cn,!Zc(Ct)&&{ownerState:V({},cn,Cn.ownerState)},{ref:n,onClick:dr},ue,{className:gt(Ut.root,Cn.className,c,Q&&"MuiInputBase-readOnly"),children:[ie,O.jsx(G0.Provider,{value:null,children:O.jsx(nn,V({ownerState:cn,"aria-invalid":Ce.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:Ce.disabled,id:A,onAnimationStart:un,name:L,placeholder:H,readOnly:Q,required:Ce.required,rows:le,value:ne,onKeyDown:ae,onKeyUp:K,type:he},at,!Zc(nn)&&{as:Et,ownerState:V({},cn,at.ownerState)},{ref:Ae,className:gt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:mt,onChange:Mn,onFocus:xt}))}),v,re?re(V({},Ce,{startAdornment:ie})):null]}))]})}),oJ=rJ;function iJ(e){return er("MuiOutlinedInput",e)}const ss=V({},mh,tr("MuiOutlinedInput",["root","notchedOutline","input"])),sJ=tr("MuiBox",["root"]),aJ=W0(),Ii=MK({themeId:Xl,defaultTheme:aJ,defaultClassName:sJ.root,generateClassName:c4.generate});function lJ(e){return er("MuiButton",e)}const Zd=tr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uJ=D.createContext({}),cJ=D.createContext(void 0),fJ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dJ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${Mt(t)}`,`size${Mt(o)}`,`${i}Size${Mt(o)}`,`color${Mt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Mt(o)}`],endIcon:["icon","endIcon",`iconSize${Mt(o)}`]},c=fr(u,lJ,a);return V({},a,c)},Z4=e=>V({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),pJ=Bt(fw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Mt(n.color)}`],t[`size${Mt(n.size)}`],t[`${n.variant}Size${Mt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return V({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":V({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:V({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${wr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}}),hJ=Bt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Mt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Z4(e))),mJ=Bt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Mt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Z4(e))),sl=D.forwardRef(function(t,n){const r=D.useContext(uJ),o=D.useContext(cJ),i=Xc(r,t),a=Wn({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:h=!1,disableElevation:g=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:y,fullWidth:A=!1,size:_="medium",startIcon:w,type:S,variant:k="text"}=a,T=it(a,fJ),E=V({},a,{color:c,component:f,disabled:h,disableElevation:g,disableFocusRipple:b,fullWidth:A,size:_,type:S,variant:k}),L=dJ(E),I=w&&O.jsx(hJ,{className:L.startIcon,ownerState:E,children:w}),q=v&&O.jsx(mJ,{className:L.endIcon,ownerState:E,children:v}),$=o||"";return O.jsxs(pJ,V({ownerState:E,className:gt(r.className,L.root,p,$),component:f,disabled:h,focusRipple:!b,focusVisibleClassName:gt(L.focusVisible,y),ref:n,type:S},T,{classes:L,children:[I,u,q]}))}),gJ=(e,t)=>V({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),vJ=e=>V({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),yJ=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,u])=>{var c;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=V({html:gJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:V({margin:0},vJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function wJ(e){const t=Wn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return O.jsxs(D.Fragment,{children:[O.jsx(H4,{styles:o=>yJ(o,r)}),n]})}function bJ(e){return er("MuiFormControl",e)}tr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const xJ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_J=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Mt(n)}`,r&&"fullWidth"]};return fr(o,bJ,t)},SJ=Bt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>V({},t.root,t[`margin${Mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>V({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),EJ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:g=!1,margin:b="none",required:v=!1,size:y="medium",variant:A="outlined"}=r,_=it(r,xJ),w=V({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:g,margin:b,required:v,size:y,variant:A}),S=_J(w),[k,T]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{if(!Rp(H,["Input","Select"]))return;const Q=Rp(H,["Select"])?H.props.input:H;Q&&QQ(Q.props)&&(K=!0)}),K}),[E,L]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{Rp(H,["Input","Select"])&&(J2(H.props,!0)||J2(H.props.inputProps,!0))&&(K=!0)}),K}),[I,q]=D.useState(!1);c&&I&&q(!1);const $=p!==void 0&&!c?p:I;let X;const ae=D.useMemo(()=>({adornedStart:k,setAdornedStart:T,color:a,disabled:c,error:f,filled:E,focused:$,fullWidth:h,hiddenLabel:g,size:y,onBlur:()=>{q(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{q(!0)},registerEffect:X,required:v,variant:A}),[k,a,c,f,E,$,h,g,X,v,y,A]);return O.jsx(G0.Provider,{value:ae,children:O.jsx(SJ,V({as:u,ownerState:w,className:gt(S.root,i),ref:n},_,{children:o}))})}),$t=zY({createStyledComponent:Bt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Wn({props:e,name:"MuiStack"})}),CJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e1(e){return`scale(${e}, ${e**2})`}const AJ={entering:{opacity:1,transform:e1(1)},entered:{opacity:1,transform:"none"}},av=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t1=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:g,onExiting:b,style:v,timeout:y="auto",TransitionComponent:A=Hi}=t,_=it(t,CJ),w=Cl(),S=D.useRef(),k=Cf(),T=D.useRef(null),E=to(T,i.ref,n),L=Q=>re=>{if(Q){const le=T.current;re===void 0?Q(le):Q(le,re)}},I=L(p),q=L((Q,re)=>{rZ(Q);const{duration:le,delay:J,easing:pe}=QE({style:v,timeout:y,easing:a},{mode:"enter"});let ie;y==="auto"?(ie=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=ie):ie=le,Q.style.transition=[k.transitions.create("opacity",{duration:ie,delay:J}),k.transitions.create("transform",{duration:av?ie:ie*.666,delay:J,easing:pe})].join(","),c&&c(Q,re)}),$=L(f),X=L(b),ae=L(Q=>{const{duration:re,delay:le,easing:J}=QE({style:v,timeout:y,easing:a},{mode:"exit"});let pe;y==="auto"?(pe=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=pe):pe=re,Q.style.transition=[k.transitions.create("opacity",{duration:pe,delay:le}),k.transitions.create("transform",{duration:av?pe:pe*.666,delay:av?le:le||pe*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=e1(.75),h&&h(Q)}),K=L(g),H=Q=>{y==="auto"&&w.start(S.current||0,Q),r&&r(T.current,Q)};return O.jsx(A,V({appear:o,in:u,nodeRef:T,onEnter:q,onEntered:$,onEntering:I,onExit:ae,onExited:K,onExiting:X,addEndListener:H,timeout:y==="auto"?null:y},_,{children:(Q,re)=>D.cloneElement(i,V({style:V({opacity:0,transform:e1(.75),visibility:Q==="exited"&&!u?"hidden":void 0},AJ[Q],v,i.props.style),ref:E},re))}))});t1.muiSupportAuto=!0;function RJ(e){return er("MuiInputAdornment",e)}const h3=tr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m3;const kJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Mt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},DJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${Mt(o)}`,a,r&&"hiddenLabel",i&&`size${Mt(i)}`]};return fr(u,RJ,t)},PJ=Bt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:TJ})(({theme:e,ownerState:t})=>V({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${h3.positionStart}&:not(.${h3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),OJ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:p}=r,h=it(r,kJ),g=bw()||{};let b=p;p&&g.variant,g&&!b&&(b=g.variant);const v=V({},r,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:u,position:f,variant:b}),y=DJ(v);return O.jsx(G0.Provider,{value:null,children:O.jsx(PJ,V({as:a,ownerState:v,className:gt(y.root,i),ref:n},h,{children:typeof o=="string"&&!c?O.jsx(br,{color:"text.secondary",children:o}):O.jsxs(D.Fragment,{children:[f==="start"?m3||(m3=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function LJ(e){return er("MuiLink",e)}const NJ=tr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Q4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},MJ=e=>Q4[e]||e,BJ=({theme:e,ownerState:t})=>{const n=MJ(t.color),r=Ql(e,`palette.${n}`,!1)||t.color,o=Ql(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:wr(r,.4)},IJ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$J=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Mt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return fr(i,LJ,t)},FJ=Bt(br,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Mt(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>V({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&V({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:BJ({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NJ.focusVisible}`]:{outline:"auto"}})),gh=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:g}=r,b=it(r,IJ),{isFocusVisibleRef:v,onBlur:y,onFocus:A,ref:_}=ow(),[w,S]=D.useState(!1),k=to(n,_),T=q=>{y(q),v.current===!1&&S(!1),u&&u(q)},E=q=>{A(q),v.current===!0&&S(!0),c&&c(q)},L=V({},r,{color:i,component:a,focusVisible:w,underline:p,variant:h}),I=$J(L);return O.jsx(FJ,V({color:i,className:gt(I.root,o),classes:f,component:a,onBlur:T,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(Q4).includes(i)?[]:[{color:i}],...Array.isArray(g)?g:[g]]},b))}),As=D.createContext({});function UJ(e){return er("MuiList",e)}tr("MuiList",["root","padding","dense","subheader"]);const zJ=["children","className","component","dense","disablePadding","subheader"],jJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},UJ,t)},VJ=Bt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>V({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),xw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=it(r,zJ),h=D.useMemo(()=>({dense:u}),[u]),g=V({},r,{component:a,dense:u,disablePadding:c}),b=jJ(g);return O.jsx(As.Provider,{value:h,children:O.jsxs(VJ,V({as:a,className:gt(b.root,i),ref:n,ownerState:g},p,{children:[f,o]}))})});function WJ(e){return er("MuiListItem",e)}const al=tr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function qJ(e){return er("MuiListItemButton",e)}const ll=tr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),HJ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],GJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},KJ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=fr({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},qJ,n);return V({},n,f)},YJ=Bt(fw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:GJ})(({theme:e,ownerState:t})=>V({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ll.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ll.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ll.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),lv=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:g=!1,className:b}=r,v=it(r,HJ),y=D.useContext(As),A=D.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:f}),[o,y.dense,c,f]),_=D.useRef(null);vi(()=>{i&&_.current&&_.current.focus()},[i]);const w=V({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:g}),S=KJ(w),k=to(_,n);return O.jsx(As.Provider,{value:A,children:O.jsx(YJ,V({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:gt(S.focusVisible,h),ownerState:w,className:gt(S.root,b)},v,{classes:S,children:u}))})});function XJ(e){return er("MuiListItemSecondaryAction",e)}tr("MuiListItemSecondaryAction",["root","disableGutters"]);const ZJ=["className"],QJ=e=>{const{disableGutters:t,classes:n}=e;return fr({root:["root",t&&"disableGutters"]},XJ,n)},JJ=Bt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>V({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),J4=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=it(r,ZJ),a=D.useContext(As),u=V({},r,{disableGutters:a.disableGutters}),c=QJ(u);return O.jsx(JJ,V({className:gt(c.root,o),ownerState:u,ref:n},i))});J4.muiName="ListItemSecondaryAction";const eee=["className"],tee=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],nee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},ree=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return fr({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},WJ,r)},oee=Bt("div",{name:"MuiListItem",slot:"Root",overridesResolver:nee})(({theme:e,ownerState:t})=>V({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&V({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ll.root}`]:{paddingRight:48}},{[`&.${al.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${al.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${al.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${al.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${al.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),iee=Bt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ec=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:u,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:g="li",ContainerProps:{className:b}={},dense:v=!1,disabled:y=!1,disableGutters:A=!1,disablePadding:_=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:T=!1,slotProps:E={},slots:L={}}=r,I=it(r.ContainerProps,eee),q=it(r,tee),$=D.useContext(As),X=D.useMemo(()=>({dense:v||$.dense||!1,alignItems:o,disableGutters:A}),[o,$.dense,v,A]),ae=D.useRef(null);vi(()=>{i&&ae.current&&ae.current.focus()},[i]);const K=D.Children.toArray(u),H=K.length&&Rp(K[K.length-1],["ListItemSecondaryAction"]),Q=V({},r,{alignItems:o,autoFocus:i,button:a,dense:X.dense,disabled:y,disableGutters:A,disablePadding:_,divider:w,hasSecondaryAction:H,selected:T}),re=ree(Q),le=to(ae,n),J=L.root||p.Root||oee,pe=E.root||h.root||{},ie=V({className:gt(re.root,pe.className,c),disabled:y},q);let he=f||"li";return a&&(ie.component=f||"div",ie.focusVisibleClassName=gt(al.focusVisible,S),he=fw),H?(he=!ie.component&&!f?"div":he,g==="li"&&(he==="li"?he="div":ie.component==="li"&&(ie.component="div")),O.jsx(As.Provider,{value:X,children:O.jsxs(iee,V({as:g,className:gt(re.container,b),ref:le,ownerState:Q},I,{children:[O.jsx(J,V({},pe,!Zc(J)&&{as:he,ownerState:V({},Q,pe.ownerState)},ie,{children:K})),K.pop()]}))})):O.jsx(As.Provider,{value:X,children:O.jsxs(J,V({},pe,{as:he,ref:le},!Zc(J)&&{ownerState:V({},Q,pe.ownerState)},ie,{children:[K,k&&O.jsx(J4,{children:k})]}))})});function see(e){return er("MuiListItemText",e)}const g3=tr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aee=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],lee=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return fr({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},see,t)},uee=Bt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${g3.primary}`]:t.primary},{[`& .${g3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>V({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),uv=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,g=it(r,aee),{dense:b}=D.useContext(As);let v=c??o,y=p;const A=V({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:b}),_=lee(A);return v!=null&&v.type!==br&&!a&&(v=O.jsx(br,V({variant:b?"body2":"body1",className:_.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:v}))),y!=null&&y.type!==br&&!a&&(y=O.jsx(br,V({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:y}))),O.jsxs(uee,V({className:gt(_.root,i),ownerState:A,ref:n},g,{children:[v,y]}))});var v3;const cee=["children","classes","className","label","notched"],fee=Bt("fieldset",{shouldForwardProp:mu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dee=Bt("legend",{shouldForwardProp:mu})(({ownerState:e,theme:t})=>V({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&V({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function pee(e){const{className:t,label:n,notched:r}=e,o=it(e,cee),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return O.jsx(fee,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:O.jsx(dee,{ownerState:a,children:i?O.jsx("span",{children:n}):v3||(v3=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const hee=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mee=e=>{const{classes:t}=e,r=fr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iJ,t);return V({},t,r)},gee=Bt(Y4,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:G4})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return V({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ss.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ss.focused} .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ss.error} .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ss.disabled} .${ss.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&V({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vee=Bt(pee,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),yee=Bt(X4,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:K4})(({theme:e,ownerState:t})=>V({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),eT=D.forwardRef(function(t,n){var r,o,i,a,u;const c=Wn({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:h="input",label:g,multiline:b=!1,notched:v,slots:y={},type:A="text"}=c,_=it(c,hee),w=mee(c),S=bw(),k=q4({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=V({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:b,size:k.size,type:A}),E=(r=(o=y.root)!=null?o:f.Root)!=null?r:gee,L=(i=(a=y.input)!=null?a:f.Input)!=null?i:yee;return O.jsx(oJ,V({slots:{root:E,input:L},renderSuffix:I=>O.jsx(vee,{ownerState:T,className:w.notchedOutline,label:g!=null&&g!==""&&k.required?u||(u=O.jsxs(D.Fragment,{children:[g," ","*"]})):g,notched:typeof v<"u"?v:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:p,inputComponent:h,multiline:b,ref:n,type:A},_,{classes:V({},w,{notchedOutline:null})}))});eT.muiName="Input";function wee(e){return er("MuiTooltip",e)}const vs=tr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function xee(e){return Math.round(e*1e5)/1e5}const _ee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Mt(i.split("-")[0])}`],arrow:["arrow"]};return fr(a,wee,t)},See=Bt(W4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>V({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${vs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vs.arrow}`]:V({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${vs.arrow}`]:V({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Eee=Bt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Mt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${vs.popper}[data-popper-placement*="left"] &`]:V({transformOrigin:"right center"},t.isRtl?V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):V({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${vs.popper}[data-popper-placement*="right"] &`]:V({transformOrigin:"left center"},t.isRtl?V({marginRight:"14px"},t.touch&&{marginRight:"24px"}):V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${vs.popper}[data-popper-placement*="top"] &`]:V({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${vs.popper}[data-popper-placement*="bottom"] &`]:V({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Cee=Bt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Qd=!1;const y3=new Ef;let Ju={x:0,y:0};function Jd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const vh=D.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,g,b,v,y,A,_,w,S,k,T;const E=Wn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:I,components:q={},componentsProps:$={},describeChild:X=!1,disableFocusListener:ae=!1,disableHoverListener:K=!1,disableInteractive:H=!1,disableTouchListener:Q=!1,enterDelay:re=100,enterNextDelay:le=0,enterTouchDelay:J=700,followCursor:pe=!1,id:ie,leaveDelay:he=0,leaveTouchDelay:z=1500,onClose:ue,onOpen:ne,open:ye,placement:de="bottom",PopperComponent:Me,PopperProps:Ae={},slotProps:ge={},slots:Je={},title:Le,TransitionComponent:Ce=t1,TransitionProps:Ge}=E,st=it(E,bee),ht=D.isValidElement(I)?I:O.jsx("span",{children:I}),xt=Cf(),mt=TY(),[Mn,dr]=D.useState(),[Et,at]=D.useState(null),un=D.useRef(!1),cn=H||pe,Ut=Cl(),Ct=Cl(),Cn=Cl(),nn=Cl(),[We,Pe]=aY({controlled:ye,default:!1,name:"Tooltip",state:"open"});let Xt=We;const nr=sY(ie),qn=D.useRef(),An=El(()=>{qn.current!==void 0&&(document.body.style.WebkitUserSelect=qn.current,qn.current=void 0),nn.clear()});D.useEffect(()=>An,[An]);const Io=Ee=>{y3.clear(),Qd=!0,Pe(!0),ne&&!Xt&&ne(Ee)},W=El(Ee=>{y3.start(800+he,()=>{Qd=!1}),Pe(!1),ue&&Xt&&ue(Ee),Ut.start(xt.transitions.duration.shortest,()=>{un.current=!1})}),F=Ee=>{un.current&&Ee.type!=="touchstart"||(Mn&&Mn.removeAttribute("title"),Ct.clear(),Cn.clear(),re||Qd&&le?Ct.start(Qd?le:re,()=>{Io(Ee)}):Io(Ee))},ce=Ee=>{Ct.clear(),Cn.start(he,()=>{W(Ee)})},{isFocusVisibleRef:be,onBlur:we,onFocus:Se,ref:Fe}=ow(),[,Ne]=D.useState(!1),Ie=Ee=>{we(Ee),be.current===!1&&(Ne(!1),ce(Ee))},He=Ee=>{Mn||dr(Ee.currentTarget),Se(Ee),be.current===!0&&(Ne(!0),F(Ee))},_t=Ee=>{un.current=!0;const yt=ht.props;yt.onTouchStart&&yt.onTouchStart(Ee)},Rn=Ee=>{_t(Ee),Cn.clear(),Ut.clear(),An(),qn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=qn.current,F(Ee)})},zt=Ee=>{ht.props.onTouchEnd&&ht.props.onTouchEnd(Ee),An(),Cn.start(z,()=>{W(Ee)})};D.useEffect(()=>{if(!Xt)return;function Ee(yt){(yt.key==="Escape"||yt.key==="Esc")&&W(yt)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[W,Xt]);const kn=to(ht.ref,Fe,dr,n);!Le&&Le!==0&&(Xt=!1);const fn=D.useRef(),so=Ee=>{const yt=ht.props;yt.onMouseMove&&yt.onMouseMove(Ee),Ju={x:Ee.clientX,y:Ee.clientY},fn.current&&fn.current.update()},rr={},N=typeof Le=="string";X?(rr.title=!Xt&&N&&!K?Le:null,rr["aria-describedby"]=Xt?nr:null):(rr["aria-label"]=N?Le:null,rr["aria-labelledby"]=Xt&&!N?nr:null);const B=V({},rr,st,ht.props,{className:gt(st.className,ht.props.className),onTouchStart:_t,ref:kn},pe?{onMouseMove:so}:{}),G={};Q||(B.onTouchStart=Rn,B.onTouchEnd=zt),K||(B.onMouseOver=Jd(F,B.onMouseOver),B.onMouseLeave=Jd(ce,B.onMouseLeave),cn||(G.onMouseOver=F,G.onMouseLeave=ce)),ae||(B.onFocus=Jd(He,B.onFocus),B.onBlur=Jd(Ie,B.onBlur),cn||(G.onFocus=He,G.onBlur=Ie));const te=D.useMemo(()=>{var Ee;let yt=[{name:"arrow",enabled:!!Et,options:{element:Et,padding:4}}];return(Ee=Ae.popperOptions)!=null&&Ee.modifiers&&(yt=yt.concat(Ae.popperOptions.modifiers)),V({},Ae.popperOptions,{modifiers:yt})},[Et,Ae]),xe=V({},E,{isRtl:mt,arrow:L,disableInteractive:cn,placement:de,PopperComponentProp:Me,touch:un.current}),De=_ee(xe),Ue=(r=(o=Je.popper)!=null?o:q.Popper)!=null?r:See,ve=(i=(a=(u=Je.transition)!=null?u:q.Transition)!=null?a:Ce)!=null?i:t1,qe=(c=(f=Je.tooltip)!=null?f:q.Tooltip)!=null?c:Eee,Be=(p=(h=Je.arrow)!=null?h:q.Arrow)!=null?p:Cee,$e=ac(Ue,V({},Ae,(g=ge.popper)!=null?g:$.popper,{className:gt(De.popper,Ae==null?void 0:Ae.className,(b=(v=ge.popper)!=null?v:$.popper)==null?void 0:b.className)}),xe),St=ac(ve,V({},Ge,(y=ge.transition)!=null?y:$.transition),xe),vt=ac(qe,V({},(A=ge.tooltip)!=null?A:$.tooltip,{className:gt(De.tooltip,(_=(w=ge.tooltip)!=null?w:$.tooltip)==null?void 0:_.className)}),xe),At=ac(Be,V({},(S=ge.arrow)!=null?S:$.arrow,{className:gt(De.arrow,(k=(T=ge.arrow)!=null?T:$.arrow)==null?void 0:k.className)}),xe);return O.jsxs(D.Fragment,{children:[D.cloneElement(ht,B),O.jsx(Ue,V({as:Me??W4,placement:de,anchorEl:pe?{getBoundingClientRect:()=>({top:Ju.y,left:Ju.x,right:Ju.x,bottom:Ju.y,width:0,height:0})}:Mn,popperRef:fn,open:Mn?Xt:!1,id:nr,transition:!0},G,$e,{popperOptions:te,children:({TransitionProps:Ee})=>O.jsx(ve,V({timeout:xt.transitions.duration.shorter},Ee,St,{children:O.jsxs(qe,V({},vt,{children:[Le,L?O.jsx(Be,V({},At,{ref:at})):null]}))}))}))]})}),Aee=Pa` 0% { opacity: 0.2; } 100% { opacity: 1; } -`,Ree=({visible:e})=>e&&O.jsxs($t,{spacing:"16px",direction:"row",sx:{display:"flex",px:"15px",alignItems:"center"},children:[O.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(Ii,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((t,n)=>O.jsx(Ii,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${Aee} 1s infinite`,animationDelay:`${n*.2}s`}},t))})]}),kee=({onClose:e,onDrawerOpen:t,onMinimize:n,...r})=>O.jsxs($t,{direction:"row",justifyContent:"space-between",px:"24px",height:"56px",...r,children:[O.jsxs($t,{direction:"row",spacing:"24px",alignItems:"center",children:[O.jsx("button",{style:{background:"none",border:"none",padding:0,height:"18px",cursor:"pointer"},"aria-label":"Open Chat Drawer",onClick:t,children:O.jsx("svg",{width:"4",height:"18",viewBox:"0 0 4 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:O.jsxs("g",{fill:"#DEDEDE",children:[O.jsx("circle",{cx:"2",cy:"2",r:"2"}),O.jsx("circle",{cx:"2",cy:"9",r:"2"}),O.jsx("circle",{cx:"2",cy:"16",r:"2"})]})})}),O.jsxs($t,{direction:"row",spacing:"8px",justifyContent:"center",alignItems:"center",sx:{cursor:"pointer"},children:[O.jsx(Ii,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(br,{sx:{fontWeight:500,fontSize:"16px"},children:"OWC Chatbot"})]})]}),O.jsxs($t,{direction:"row",spacing:"23px",alignItems:"center",position:"relative",children:[O.jsx(vh,{title:"Minimize Chat",children:O.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"14px",cursor:"pointer"},"aria-label":"Minimize Chat",onClick:()=>n(!1),children:O.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:O.jsxs("g",{fill:"none",children:[O.jsx("path",{d:"M0 0h14v14H0z"}),O.jsx("g",{mask:"url(#hr8sptrh4b)",stroke:"#1470D2",children:O.jsx("path",{d:"M.5 7h13"})})]})})})}),O.jsx(vh,{title:"End Chat",sx:{zIndex:9999},children:O.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:e,children:O.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("g",{stroke:"#1470D2",fill:"none",children:O.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})})]})]}),Tee=({onMessage:e,value:t,input:n,loading:r})=>{const o=D.useRef(null);return D.useEffect(()=>{o.current&&o.current.focus()},[]),O.jsx($t,{spacing:1,sx:{padding:"12px 15px"},children:O.jsxs($t,{spacing:1,children:[O.jsx(EJ,{variant:"outlined",sx:{width:"100%"},children:O.jsx(eT,{inputRef:o,value:t,onChange:i=>n(i.target.value),onKeyUp:i=>{i.key==="Enter"&&!r&&e()},endAdornment:O.jsx(OJ,{position:"end",sx:{cursor:r?"not-allowed":"pointer",opacity:r?.5:1},children:O.jsx("button",{onClick:()=>{r||e()},style:{background:"none",border:"none",padding:0,height:"28px",width:"28px",cursor:r?"not-allowed":"pointer",opacity:r?.5:1},"aria-label":"Send Message",children:O.jsx("svg",{"aria-hidden":"true",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",children:O.jsxs("g",{fill:"none",children:[O.jsx("circle",{fill:"#1470D2",cx:"14",cy:"14",r:"14"}),O.jsx("path",{d:"m20.385 14.677-5.658-6.593c-.005-.005-.012-.007-.017-.012a.69.69 0 0 0-.513-.232.693.693 0 0 0-.51.228c-.006.007-.015.01-.021.016l-5.658 6.593a.7.7 0 0 0 1.062.91l4.429-5.16V20.58a.698.698 0 1 0 1.398 0V10.429l4.428 5.158a.695.695 0 0 0 .986.075.698.698 0 0 0 .074-.985",fill:"#FFF"})]})})})}),placeholder:"Ask our Chatbot...",sx:{height:"45px",borderRadius:"16px","> input::placeholder":{color:"#222222",opacity:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})}),O.jsxs(br,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",O.jsx(gh,{href:"/support/site-terms",children:"Terms and Conditions"})," and ",O.jsx(gh,{href:"/support/privacy-policy",children:"Privacy Policy"}),"."]})]})})},Dee=()=>O.jsxs($t,{spacing:0,justifyContent:"center",alignItems:"center",py:5,marginBottom:"70px !important",children:[O.jsx(Ii,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"72px",height:"72px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"62",height:"34",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(br,{sx:{fontWeight:500,fontSize:"20px",mt:"19px"},children:"OWC Chatbot"}),O.jsx(br,{sx:{fontSize:"14px"},children:"Ask us anything or select a topic to get started."})]}),Pee=({drawer:e,onClose:t})=>{const n=Cf(),[r,o]=D.useState(""),[i,a]=D.useState(!1),u=D.useRef(null),c=D.useRef(null);D.useEffect(()=>{e?(a(!0),o("slideInBounce"),setTimeout(()=>{u.current&&u.current.focus()},320)):(o("slideOutBounce"),setTimeout(()=>a(!1),320))},[e]),D.useEffect(()=>{const p=h=>{e&&c.current&&!c.current.contains(h.target)&&(h.stopPropagation(),h.preventDefault(),u.current.focus())};return e?document.addEventListener("focus",p,!0):document.removeEventListener("focus",p,!0),()=>{document.removeEventListener("focus",p,!0)}},[e]);const f={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:i?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:n.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return i&&O.jsxs($t,{ref:c,...f,className:r,children:[O.jsxs($t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"12px"},children:[O.jsx(br,{fontSize:"17px",fontWeight:500,children:"Settings"}),O.jsx("button",{ref:u,style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>t(!1),children:O.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("g",{stroke:"#1470D2",fill:"none",children:O.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})]}),O.jsx($t,{sx:{height:"100%",paddingInline:"15px"},children:O.jsxs(xw,{sx:{".MuiListItemButton-root":{borderRadius:"8px"}},children:[O.jsx(Ec,{disablePadding:!0,children:O.jsx(lv,{children:O.jsx(uv,{primary:"Speak With a Live Agent"})})}),O.jsx(Ec,{disablePadding:!0,children:O.jsx(lv,{children:O.jsx(uv,{primary:"Other Option 2"})})}),O.jsx(Ec,{disablePadding:!0,children:O.jsx(lv,{children:O.jsx(uv,{primary:"Other Option 3"})})})]})}),O.jsx($t,{sx:{position:"relative",borderTop:"1px solid #dedede",display:"flex",alignItems:"center",paddingBlock:"12px",minHeight:"65px"},children:O.jsxs(br,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",O.jsx(gh,{href:"#",children:"Terms and Conditions"})," and ",O.jsx(gh,{href:"#",children:"Privacy Policy"}),"."]})})]})},Oee=({drawer:e,children:t,...n})=>{const r=Cf(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null),f=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce"),setTimeout(()=>{c.current&&c.current.focus()},320)):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const h=m=>{e&&f.current&&!f.current.contains(m.target)&&(m.stopPropagation(),m.preventDefault(),c.current.focus())};return e?document.addEventListener("focus",h,!0):document.removeEventListener("focus",h,!0),()=>{document.removeEventListener("focus",h,!0)}},[e]);const p={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return a&&O.jsx($t,{ref:f,...p,className:o,...n,children:t})},Lee=({drawer:e,onClick:t})=>O.jsx($t,{sx:{position:"absolute",top:0,bottom:0,width:"100%",height:"100%",border:0,padding:0,margin:0,opacity:e?1:0,visibility:e?"visible":"hidden",background:"rgba(0, 0, 0, 0.25)",transition:"opacity 320ms, visibility 320ms",animation:e?"fadeIn 320ms ease":"fadeOut 320ms ease","@keyframes fadeIn":{from:{opacity:0},to:{opacity:1}},"@keyframes fadeOut":{from:{opacity:1},to:{opacity:0}}},onClick:t}),Nee=({setDialog:e,drawer:t,children:n,buttonDialogStyles:r,setFeedbackInput:o,...i})=>{const a=Cf(),[u,c]=D.useState(""),[f,p]=D.useState(!1),h=D.useRef(null),m=D.useRef(null);D.useEffect(()=>{t?(p(!0),c("slideInBounce"),setTimeout(()=>{h.current&&h.current.focus()},320)):(c("slideOutBounce"),setTimeout(()=>p(!1),320))},[t]),D.useEffect(()=>{const v=y=>{t&&m.current&&!m.current.contains(y.target)&&(y.stopPropagation(),y.preventDefault(),h.current.focus())};return t?document.addEventListener("focus",v,!0):document.removeEventListener("focus",v,!0),()=>{document.removeEventListener("focus",v,!0)}},[t]);const b={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:f?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:a.palette.background.paper,opacity:t?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return f&&O.jsx($t,{ref:m,...b,className:u,...i,children:O.jsx(sl,{fullWidth:!0,variant:"contained",sx:r,onClick:()=>e(!1),children:"Submit Feedback"})})},w3=["Welcome to OWC! I am your OWC Virtual Assistant!","Feel free to ask me anything about our products, orders, or returns. Type your question or select a topic, and I’ll do my best to assist!"],Mee=Pa` +`,Ree=({visible:e})=>e&&O.jsxs($t,{spacing:"16px",direction:"row",sx:{display:"flex",px:"15px",alignItems:"center"},children:[O.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(Ii,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((t,n)=>O.jsx(Ii,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${Aee} 1s infinite`,animationDelay:`${n*.2}s`}},t))})]}),kee=({onClose:e,onDrawerOpen:t,onMinimize:n,...r})=>O.jsxs($t,{direction:"row",justifyContent:"space-between",px:"24px",height:"56px",...r,children:[O.jsxs($t,{direction:"row",spacing:"24px",alignItems:"center",children:[O.jsx("button",{style:{background:"none",border:"none",padding:0,height:"18px",cursor:"pointer"},"aria-label":"Open Chat Drawer",onClick:t,children:O.jsx("svg",{width:"4",height:"18",viewBox:"0 0 4 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:O.jsxs("g",{fill:"#DEDEDE",children:[O.jsx("circle",{cx:"2",cy:"2",r:"2"}),O.jsx("circle",{cx:"2",cy:"9",r:"2"}),O.jsx("circle",{cx:"2",cy:"16",r:"2"})]})})}),O.jsxs($t,{direction:"row",spacing:"8px",justifyContent:"center",alignItems:"center",sx:{cursor:"pointer"},children:[O.jsx(Ii,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(br,{sx:{fontWeight:500,fontSize:"16px"},children:"OWC Chatbot"})]})]}),O.jsxs($t,{direction:"row",spacing:"23px",alignItems:"center",position:"relative",children:[O.jsx(vh,{title:"Minimize Chat",children:O.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"14px",cursor:"pointer"},"aria-label":"Minimize Chat",onClick:()=>n(!1),children:O.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:O.jsxs("g",{fill:"none",children:[O.jsx("path",{d:"M0 0h14v14H0z"}),O.jsx("g",{mask:"url(#hr8sptrh4b)",stroke:"#1470D2",children:O.jsx("path",{d:"M.5 7h13"})})]})})})}),O.jsx(vh,{title:"End Chat",sx:{zIndex:9999},children:O.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:e,children:O.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("g",{stroke:"#1470D2",fill:"none",children:O.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})})]})]}),Tee=({onMessage:e,value:t,input:n,loading:r})=>{const o=D.useRef(null);return D.useEffect(()=>{o.current&&o.current.focus()},[]),O.jsx($t,{spacing:1,sx:{padding:"12px 15px"},children:O.jsxs($t,{spacing:1,children:[O.jsx(EJ,{variant:"outlined",sx:{width:"100%"},children:O.jsx(eT,{inputRef:o,value:t,onChange:i=>n(i.target.value),onKeyUp:i=>{i.key==="Enter"&&!r&&e()},endAdornment:O.jsx(OJ,{position:"end",sx:{cursor:r?"not-allowed":"pointer",opacity:r?.5:1},children:O.jsx("button",{onClick:()=>{r||e()},style:{background:"none",border:"none",padding:0,height:"28px",width:"28px",cursor:r?"not-allowed":"pointer",opacity:r?.5:1},"aria-label":"Send Message",children:O.jsx("svg",{"aria-hidden":"true",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",children:O.jsxs("g",{fill:"none",children:[O.jsx("circle",{fill:"#1470D2",cx:"14",cy:"14",r:"14"}),O.jsx("path",{d:"m20.385 14.677-5.658-6.593c-.005-.005-.012-.007-.017-.012a.69.69 0 0 0-.513-.232.693.693 0 0 0-.51.228c-.006.007-.015.01-.021.016l-5.658 6.593a.7.7 0 0 0 1.062.91l4.429-5.16V20.58a.698.698 0 1 0 1.398 0V10.429l4.428 5.158a.695.695 0 0 0 .986.075.698.698 0 0 0 .074-.985",fill:"#FFF"})]})})})}),placeholder:"Ask our Chatbot...",sx:{height:"45px",borderRadius:"16px","> input::placeholder":{color:"#222222",opacity:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})}),O.jsxs(br,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",O.jsx(gh,{href:"/support/site-terms",children:"Terms and Conditions"})," and ",O.jsx(gh,{href:"/support/privacy-policy",children:"Privacy Policy"}),"."]})]})})},Dee=()=>O.jsxs($t,{spacing:0,justifyContent:"center",alignItems:"center",py:5,marginBottom:"70px !important",children:[O.jsx(Ii,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"72px",height:"72px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"62",height:"34",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(br,{sx:{fontWeight:500,fontSize:"20px",mt:"19px"},children:"OWC Chatbot"}),O.jsx(br,{sx:{fontSize:"14px"},children:"Ask us anything or select a topic to get started."})]}),Pee=({drawer:e,onClose:t})=>{const n=Cf(),[r,o]=D.useState(""),[i,a]=D.useState(!1),u=D.useRef(null),c=D.useRef(null);D.useEffect(()=>{e?(a(!0),o("slideInBounce"),setTimeout(()=>{u.current&&u.current.focus()},320)):(o("slideOutBounce"),setTimeout(()=>a(!1),320))},[e]),D.useEffect(()=>{const p=h=>{e&&c.current&&!c.current.contains(h.target)&&(h.stopPropagation(),h.preventDefault(),u.current.focus())};return e?document.addEventListener("focus",p,!0):document.removeEventListener("focus",p,!0),()=>{document.removeEventListener("focus",p,!0)}},[e]);const f={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:i?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:n.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return i&&O.jsxs($t,{ref:c,...f,className:r,children:[O.jsxs($t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"12px"},children:[O.jsx(br,{fontSize:"17px",fontWeight:500,children:"Settings"}),O.jsx("button",{ref:u,style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>t(!1),children:O.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("g",{stroke:"#1470D2",fill:"none",children:O.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})]}),O.jsx($t,{sx:{height:"100%",paddingInline:"15px"},children:O.jsxs(xw,{sx:{".MuiListItemButton-root":{borderRadius:"8px"}},children:[O.jsx(Ec,{disablePadding:!0,children:O.jsx(lv,{children:O.jsx(uv,{primary:"Speak With a Live Agent"})})}),O.jsx(Ec,{disablePadding:!0,children:O.jsx(lv,{children:O.jsx(uv,{primary:"Other Option 2"})})}),O.jsx(Ec,{disablePadding:!0,children:O.jsx(lv,{children:O.jsx(uv,{primary:"Other Option 3"})})})]})}),O.jsx($t,{sx:{position:"relative",borderTop:"1px solid #dedede",display:"flex",alignItems:"center",paddingBlock:"12px",minHeight:"65px"},children:O.jsxs(br,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",O.jsx(gh,{href:"#",children:"Terms and Conditions"})," and ",O.jsx(gh,{href:"#",children:"Privacy Policy"}),"."]})})]})},Oee=({drawer:e,children:t,...n})=>{const r=Cf(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null),f=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce"),setTimeout(()=>{c.current&&c.current.focus()},320)):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const h=g=>{e&&f.current&&!f.current.contains(g.target)&&(g.stopPropagation(),g.preventDefault(),c.current.focus())};return e?document.addEventListener("focus",h,!0):document.removeEventListener("focus",h,!0),()=>{document.removeEventListener("focus",h,!0)}},[e]);const p={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return a&&O.jsx($t,{ref:f,...p,className:o,...n,children:t})},Lee=({drawer:e,onClick:t})=>O.jsx($t,{sx:{position:"absolute",top:0,bottom:0,width:"100%",height:"100%",border:0,padding:0,margin:0,opacity:e?1:0,visibility:e?"visible":"hidden",background:"rgba(0, 0, 0, 0.25)",transition:"opacity 320ms, visibility 320ms",animation:e?"fadeIn 320ms ease":"fadeOut 320ms ease","@keyframes fadeIn":{from:{opacity:0},to:{opacity:1}},"@keyframes fadeOut":{from:{opacity:1},to:{opacity:0}}},onClick:t}),Nee=({setDialog:e,drawer:t,children:n,buttonDialogStyles:r,setFeedbackInput:o,...i})=>{const a=Cf(),[u,c]=D.useState(""),[f,p]=D.useState(!1),h=D.useRef(null);D.useRef(null),D.useEffect(()=>{t?(p(!0),c("slideInBounce"),setTimeout(()=>{h.current&&h.current.focus()},320)):(c("slideOutBounce"),setTimeout(()=>p(!1),320))},[t]);const g={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:f?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:a.palette.background.paper,opacity:t?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return f&&O.jsx($t,{...g,className:u,...i,children:O.jsx(sl,{fullWidth:!0,variant:"contained",sx:r,onClick:()=>e(!1),children:"Submit Feedback"})})},w3=["Welcome to OWC! I am your OWC Virtual Assistant!","Feel free to ask me anything about our products, orders, or returns. Type your question or select a topic, and I’ll do my best to assist!"],Mee=Pa` 0% { opacity: 0.2; } @@ -249,8 +249,8 @@ function print() { __p += __j.call(arguments, '') } `};Te.dt_close=function(){return` `};Te.dd_close=function(){return` `};function aT(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?aT(e,t+2):t}var Oa=Te.getBreak=function(t,n){return n=aT(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var lte=function(t){var n=t.tokens,r,o,i,a;if(!t.inlineMode){for(r=1,o=n.length-1;r1)||r===41&&(o--,o<0))break;n++}return a===n||(i=S3(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},fte=vn.unescapeMd,cT=function(t,n){var r,o=n,i=t.posMax,a=t.src.charCodeAt(n);if(a!==34&&a!==39&&a!==40)return!1;for(n++,a===40&&(a=41);n"u"&&(r.references[m]={title:h,href:p}),a)}var yte=function(t){var n=t.tokens,r,o,i,a;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,o=n.length-1;r0?u[n].count:1,o=0;o=0;n--)if(a=i[n],a.type==="text"){for(f=0,u=a.content,h.lastIndex=0,p=a.level,c=[];m=h.exec(u);)h.lastIndex>f&&c.push({type:"text",content:u.slice(f,m.index+m[1].length),level:p}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+m[2]],level:p++}),c.push({type:"text",content:m[2],level:p}),c.push({type:"abbr_close",level:--p}),f=h.lastIndex-m[3].length;c.length&&(f=0;a--)if(t.tokens[a].type==="inline")for(i=t.tokens[a].children,n=i.length-1;n>=0;n--)r=i[n],r.type==="text"&&(o=r.content,o=Cte(o),_te.test(o)&&(o=o.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=o)}},Rte=/['"]/,C3=/['"]/g,kte=/[-\s()\[\]]/,A3="’";function R3(e,t){return t<0||t>=e.length?!1:!kte.test(e[t])}function rl(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var Tte=function(t){var n,r,o,i,a,u,c,f,p,h,m,b,v,y,A,_,w;if(t.options.typographer){for(w=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(_=t.tokens[A].children,w.length=0,n=0;n<_.length;n++)if(r=_[n],!(r.type!=="text"||Rte.test(r.text))){for(c=_[n].level,v=w.length-1;v>=0&&!(w[v].level<=c);v--);w.length=v+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=w[v],!(w[v].level"u"&&(r.abbreviations[":"+c]=f),a)}var lte=function(t){var n=t.tokens,r,o,i,a;if(!t.inlineMode){for(r=1,o=n.length-1;r1)||r===41&&(o--,o<0))break;n++}return a===n||(i=S3(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},fte=vn.unescapeMd,cT=function(t,n){var r,o=n,i=t.posMax,a=t.src.charCodeAt(n);if(a!==34&&a!==39&&a!==40)return!1;for(n++,a===40&&(a=41);n"u"&&(r.references[g]={title:h,href:p}),a)}var yte=function(t){var n=t.tokens,r,o,i,a;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,o=n.length-1;r0?u[n].count:1,o=0;o=0;n--)if(a=i[n],a.type==="text"){for(f=0,u=a.content,h.lastIndex=0,p=a.level,c=[];g=h.exec(u);)h.lastIndex>f&&c.push({type:"text",content:u.slice(f,g.index+g[1].length),level:p}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+g[2]],level:p++}),c.push({type:"text",content:g[2],level:p}),c.push({type:"abbr_close",level:--p}),f=h.lastIndex-g[3].length;c.length&&(f=0;a--)if(t.tokens[a].type==="inline")for(i=t.tokens[a].children,n=i.length-1;n>=0;n--)r=i[n],r.type==="text"&&(o=r.content,o=Cte(o),_te.test(o)&&(o=o.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=o)}},Rte=/['"]/,C3=/['"]/g,kte=/[-\s()\[\]]/,A3="’";function R3(e,t){return t<0||t>=e.length?!1:!kte.test(e[t])}function rl(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var Tte=function(t){var n,r,o,i,a,u,c,f,p,h,g,b,v,y,A,_,w;if(t.options.typographer){for(w=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(_=t.tokens[A].children,w.length=0,n=0;n<_.length;n++)if(r=_[n],!(r.type!=="text"||Rte.test(r.text))){for(c=_[n].level,v=w.length-1;v>=0&&!(w[v].level<=c);v--);w.length=v+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=w[v],!(w[v].levelo&&(i=i??"..",r=r.substring(0,o-i.length)+i),r},indexOf:function(r,o){if(Array.prototype.indexOf)return r.indexOf(o);for(var i=0,a=r.length;i=0;i--)o(r[i])===!0&&r.splice(i,1)},splitAndCapture:function(r,o){if(!o.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i=[],a=0,u;u=o.exec(r);)i.push(r.substring(a,u.index)),i.push(u[0]),a=u.index+u[0].length;return i.push(r.substring(a)),i},trim:function(r){return r.replace(this.trimRegex,"")}},n.HtmlTag=n.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(r){n.Util.assign(this,r),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(r){return this.tagName=r,this},getTagName:function(){return this.tagName||""},setAttr:function(r,o){var i=this.getAttrs();return i[r]=o,this},getAttr:function(r){return this.getAttrs()[r]},setAttrs:function(r){var o=this.getAttrs();return n.Util.assign(o,r),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(r){return this.setAttr("class",r)},addClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;f=c.shift();)a(u,f)===-1&&u.push(f);return this.getAttrs().class=u.join(" "),this},removeClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;u.length&&(f=c.shift());){var p=a(u,f);p!==-1&&u.splice(p,1)}return this.getAttrs().class=u.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(r){return(" "+this.getClass()+" ").indexOf(" "+r+" ")!==-1},setInnerHtml:function(r){return this.innerHtml=r,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var r=this.getTagName(),o=this.buildAttrsStr();return o=o?" "+o:"",["<",r,o,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var r=this.getAttrs(),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+'="'+r[i]+'"');return o.join(" ")}}),n.RegexLib=function(){var r="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",i=r+o,a=new RegExp("["+i+".\\-]*["+i+"\\-]"),u=/(?:travelersinsurance|sandvikcoromant|kerryproperties|cancerresearch|weatherchannel|kerrylogistics|spreadbetting|international|wolterskluwer|lifeinsurance|construction|pamperedchef|scholarships|versicherung|bridgestone|creditunion|kerryhotels|investments|productions|blackfriday|enterprises|lamborghini|photography|motorcycles|williamhill|playstation|contractors|barclaycard|accountants|redumbrella|engineering|management|telefonica|protection|consulting|tatamotors|creditcard|vlaanderen|schaeffler|associates|properties|foundation|republican|bnpparibas|boehringer|eurovision|extraspace|industries|immobilien|university|technology|volkswagen|healthcare|restaurant|cuisinella|vistaprint|apartments|accountant|travelers|homedepot|institute|vacations|furniture|fresenius|insurance|christmas|bloomberg|solutions|barcelona|firestone|financial|kuokgroup|fairwinds|community|passagens|goldpoint|equipment|lifestyle|yodobashi|aquarelle|marketing|analytics|education|amsterdam|statefarm|melbourne|allfinanz|directory|microsoft|stockholm|montblanc|accenture|lancaster|landrover|everbank|istanbul|graphics|grainger|ipiranga|softbank|attorney|pharmacy|saarland|catering|airforce|yokohama|mortgage|frontier|mutuelle|stcgroup|memorial|pictures|football|symantec|cipriani|ventures|telecity|cityeats|verisign|flsmidth|boutique|cleaning|firmdale|clinique|clothing|redstone|infiniti|deloitte|feedback|services|broadway|plumbing|commbank|training|barclays|exchange|computer|brussels|software|delivery|barefoot|builders|business|bargains|engineer|holdings|download|security|helsinki|lighting|movistar|discount|hdfcbank|supplies|marriott|property|diamonds|capetown|partners|democrat|jpmorgan|bradesco|budapest|rexroth|zuerich|shriram|academy|science|support|youtube|singles|surgery|alibaba|statoil|dentist|schwarz|android|cruises|cricket|digital|markets|starhub|systems|courses|coupons|netbank|country|domains|corsica|network|neustar|realtor|lincoln|limited|schmidt|yamaxun|cooking|contact|auction|spiegel|liaison|leclerc|latrobe|lasalle|abogado|compare|lanxess|exposed|express|company|cologne|college|avianca|lacaixa|fashion|recipes|ferrero|komatsu|storage|wanggou|clubmed|sandvik|fishing|fitness|bauhaus|kitchen|flights|florist|flowers|watches|weather|temasek|samsung|bentley|forsale|channel|theater|frogans|theatre|okinawa|website|tickets|jewelry|gallery|tiffany|iselect|shiksha|brother|organic|wedding|genting|toshiba|origins|philips|hyundai|hotmail|hoteles|hosting|rentals|windows|cartier|bugatti|holiday|careers|whoswho|hitachi|panerai|caravan|reviews|guitars|capital|trading|hamburg|hangout|finance|stream|family|abbott|health|review|travel|report|hermes|hiphop|gratis|career|toyota|hockey|dating|repair|google|social|soccer|reisen|global|otsuka|giving|unicom|casino|photos|center|broker|rocher|orange|bostik|garden|insure|ryukyu|bharti|safety|physio|sakura|oracle|online|jaguar|gallup|piaget|tienda|futbol|pictet|joburg|webcam|berlin|office|juegos|kaufen|chanel|chrome|xihuan|church|tennis|circle|kinder|flickr|bayern|claims|clinic|viajes|nowruz|xperia|norton|yachts|studio|coffee|camera|sanofi|nissan|author|expert|events|comsec|lawyer|tattoo|viking|estate|villas|condos|realty|yandex|energy|emerck|virgin|vision|durban|living|school|coupon|london|taobao|natura|taipei|nagoya|luxury|walter|aramco|sydney|madrid|credit|maison|makeup|schule|market|anquan|direct|design|swatch|suzuki|alsace|vuelos|dental|alipay|voyage|shouji|voting|airtel|mutual|degree|supply|agency|museum|mobily|dealer|monash|select|mormon|active|moscow|racing|datsun|quebec|nissay|rodeo|email|gifts|works|photo|chloe|edeka|cheap|earth|vista|tushu|koeln|glass|shoes|globo|tunes|gmail|nokia|space|kyoto|black|ricoh|seven|lamer|sener|epson|cisco|praxi|trust|citic|crown|shell|lease|green|legal|lexus|ninja|tatar|gripe|nikon|group|video|wales|autos|gucci|party|nexus|guide|linde|adult|parts|amica|lixil|boats|azure|loans|locus|cymru|lotte|lotto|stada|click|poker|quest|dabur|lupin|nadex|paris|faith|dance|canon|place|gives|trade|skype|rocks|mango|cloud|boots|smile|final|swiss|homes|honda|media|horse|cards|deals|watch|bosch|house|pizza|miami|osaka|tours|total|xerox|coach|sucks|style|delta|toray|iinet|tools|money|codes|beats|tokyo|salon|archi|movie|baidu|study|actor|yahoo|store|apple|world|forex|today|bible|tmall|tirol|irish|tires|forum|reise|vegas|vodka|sharp|omega|weber|jetzt|audio|promo|build|bingo|chase|gallo|drive|dubai|rehab|press|solar|sale|beer|bbva|bank|band|auto|sapo|sarl|saxo|audi|asia|arte|arpa|army|yoga|ally|zara|scor|scot|sexy|seat|zero|seek|aero|adac|zone|aarp|maif|meet|meme|menu|surf|mini|mobi|mtpc|porn|desi|star|ltda|name|talk|navy|love|loan|live|link|news|limo|like|spot|life|nico|lidl|lgbt|land|taxi|team|tech|kred|kpmg|sony|song|kiwi|kddi|jprs|jobs|sohu|java|itau|tips|info|immo|icbc|hsbc|town|host|page|toys|here|help|pars|haus|guru|guge|tube|goog|golf|gold|sncf|gmbh|gift|ggee|gent|gbiz|game|vana|pics|fund|ford|ping|pink|fish|film|fast|farm|play|fans|fail|plus|skin|pohl|fage|moda|post|erni|dvag|prod|doha|prof|docs|viva|diet|luxe|site|dell|sina|dclk|show|qpon|date|vote|cyou|voto|read|coop|cool|wang|club|city|chat|cern|cash|reit|rent|casa|cars|care|camp|rest|call|cafe|weir|wien|rich|wiki|buzz|wine|book|bond|room|work|rsvp|shia|ruhr|blue|bing|shaw|bike|safe|xbox|best|pwc|mtn|lds|aig|boo|fyi|nra|nrw|ntt|car|gal|obi|zip|aeg|vin|how|one|ong|onl|dad|ooo|bet|esq|org|htc|bar|uol|ibm|ovh|gdn|ice|icu|uno|gea|ifm|bot|top|wtf|lol|day|pet|eus|wtc|ubs|tvs|aco|ing|ltd|ink|tab|abb|afl|cat|int|pid|pin|bid|cba|gle|com|cbn|ads|man|wed|ceb|gmo|sky|ist|gmx|tui|mba|fan|ski|iwc|app|pro|med|ceo|jcb|jcp|goo|dev|men|aaa|meo|pub|jlc|bom|jll|gop|jmp|mil|got|gov|win|jot|mma|joy|trv|red|cfa|cfd|bio|moe|moi|mom|ren|biz|aws|xin|bbc|dnp|buy|kfh|mov|thd|xyz|fit|kia|rio|rip|kim|dog|vet|nyc|bcg|mtr|bcn|bms|bmw|run|bzh|rwe|tel|stc|axa|kpn|fly|krd|cab|bnl|foo|crs|eat|tci|sap|srl|nec|sas|net|cal|sbs|sfr|sca|scb|csc|edu|new|xxx|hiv|fox|wme|ngo|nhk|vip|sex|frl|lat|yun|law|you|tax|soy|sew|om|ac|hu|se|sc|sg|sh|sb|sa|rw|ru|rs|ro|re|qa|py|si|pw|pt|ps|sj|sk|pr|pn|pm|pl|sl|sm|pk|sn|ph|so|pg|pf|pe|pa|zw|nz|nu|nr|np|no|nl|ni|ng|nf|sr|ne|st|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|su|mn|mm|ml|mk|mh|mg|me|sv|md|mc|sx|sy|ma|ly|lv|sz|lu|lt|ls|lr|lk|li|lc|lb|la|tc|kz|td|ky|kw|kr|kp|kn|km|ki|kh|tf|tg|th|kg|ke|jp|jo|jm|je|it|is|ir|tj|tk|tl|tm|iq|tn|to|io|in|im|il|ie|ad|sd|ht|hr|hn|hm|tr|hk|gy|gw|gu|gt|gs|gr|gq|tt|gp|gn|gm|gl|tv|gi|tw|tz|ua|gh|ug|uk|gg|gf|ge|gd|us|uy|uz|va|gb|ga|vc|ve|fr|fo|fm|fk|fj|vg|vi|fi|eu|et|es|er|eg|ee|ec|dz|do|dm|dk|vn|dj|de|cz|cy|cx|cw|vu|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|wf|bz|by|bw|bv|bt|bs|br|bo|bn|bm|bj|bi|ws|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ye|ar|aq|ao|am|al|yt|ai|za|ag|af|ae|zm|id)\b/;return{alphaNumericCharsStr:i,domainNameRegex:a,tldRegex:u}}(),n.AnchorTagBuilder=n.Util.extend(Object,{constructor:function(r){n.Util.assign(this,r)},build:function(r){return new n.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())})},createAttrs:function(r,o){var i={href:o},a=this.createCssClass(r);return a&&(i.class=a),this.newWindow&&(i.target="_blank",i.rel="noopener noreferrer"),i},createCssClass:function(r){var o=this.className;return o?o+" "+o+"-"+r:""},processAnchorText:function(r){return r=this.doTruncate(r),r},doTruncate:function(r){var o=this.truncate;if(!o||!o.length)return r;var i=o.length,a=o.location;return a==="smart"?n.truncate.TruncateSmart(r,i,".."):a==="middle"?n.truncate.TruncateMiddle(r,i,".."):n.truncate.TruncateEnd(r,i,"..")}}),n.htmlParser.HtmlParser=n.Util.extend(Object,{htmlRegex:function(){var r=/!--([\s\S]+?)--/,o=/[0-9a-zA-Z][0-9a-zA-Z:]*/,i=/[^\s"'>\/=\x00-\x1F\x7F]+/,a=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,u=i.source+"(?:\\s*=\\s*"+a.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",u,"|",a.source+")",")*",">",")","|","(?:","<(/)?","(?:",r.source,"|","(?:","("+o.source+")","(?:","(?:\\s+|\\b)",u,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(r){for(var o=this.htmlRegex,i,a=0,u,c=[];(i=o.exec(r))!==null;){var f=i[0],p=i[3],h=i[1]||i[4],m=!!i[2],b=i.index,v=r.substring(a,b);v&&(u=this.parseTextAndEntityNodes(a,v),c.push.apply(c,u)),p?c.push(this.createCommentNode(b,f,p)):c.push(this.createElementNode(b,f,h,m)),a=b+f.length}if(a0&&A==="@")&&!(v>0&&y&&this.wordCharRegExp.test(A))){if(this.matchHasUnbalancedClosingParen(f))f=f.substr(0,f.length-1);else{var _=this.matchHasInvalidCharAfterTld(f,p);_>-1&&(f=f.substr(0,_))}var w=p?"scheme":h?"www":"tld",S=!!p;u.push(new n.match.Url({tagBuilder:a,matchedText:f,offset:v,urlMatchType:w,url:f,protocolUrlMatch:S,protocolRelativeMatch:!!y,stripPrefix:i}))}}return u},matchHasUnbalancedClosingParen:function(r){var o=r.charAt(r.length-1);if(o===")"){var i=r.match(this.openParensRe),a=r.match(this.closeParensRe),u=i&&i.length||0,c=a&&a.length||0;if(u0&&(u=r.substr(-1*Math.floor(a/2))),(r.substr(0,Math.ceil(a/2))+i+u).substr(0,o)},n.truncate.TruncateSmart=function(r,o,i){var a=function(S){var k={},T=S,E=T.match(/^([a-z]+):\/\//i);return E&&(k.scheme=E[1],T=T.substr(E[0].length)),E=T.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(k.host=E[1],T=T.substr(E[0].length)),E=T.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(k.path=E[1],T=T.substr(E[0].length)),E=T.match(/^\?(.*?)(?=(#|$))/i),E&&(k.query=E[1],T=T.substr(E[0].length)),E=T.match(/^#(.*?)$/i),E&&(k.fragment=E[1]),k},u=function(S){var k="";return S.scheme&&S.host&&(k+=S.scheme+"://"),S.host&&(k+=S.host),S.path&&(k+="/"+S.path),S.query&&(k+="?"+S.query),S.fragment&&(k+="#"+S.fragment),k},c=function(S,k){var T=k/2,E=Math.ceil(T),L=-1*Math.floor(T),I="";return L<0&&(I=S.substr(L)),S.substr(0,E)+i+I};if(r.length<=o)return r;var f=o-i.length,p=a(r);if(p.query){var h=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(p.query=p.query.substr(0,h[1].length),r=u(p))}if(r.length<=o||(p.host&&(p.host=p.host.replace(/^www\./,""),r=u(p)),r.length<=o))return r;var m="";if(p.host&&(m+=p.host),m.length>=f)return p.host.length==o?(p.host.substr(0,o-i.length)+i).substr(0,o):c(m,f).substr(0,o);var b="";if(p.path&&(b+="/"+p.path),p.query&&(b+="?"+p.query),b)if((m+b).length>=f){if((m+b).length==o)return(m+b).substr(0,o);var v=f-m.length;return(m+c(b,v)).substr(0,o)}else m+=b;if(p.fragment){var y="#"+p.fragment;if((m+y).length>=f){if((m+y).length==o)return(m+y).substr(0,o);var A=f-m.length;return(m+c(y,A)).substr(0,o)}else m+=y}if(p.scheme&&p.host){var _=p.scheme+"://";if((m+_).length0&&(w=m.substr(-1*Math.floor(f/2))),(m.substr(0,Math.ceil(f/2))+i+w).substr(0,o)},n})})(dT);var Dte=dT.exports,Pte=Dte,Ote=/www|@|\:\/\//;function Lte(e){return/^\s]/i.test(e)}function Nte(e){return/^<\/a\s*>/i.test(e)}function Mte(){var e=[],t=new Pte({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(n,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}var Bte=function(t){var n,r,o,i,a,u,c,f,p,h,m,b=t.tokens,v=null,y,A;if(t.options.linkify){for(r=0,o=b.length;r=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="htmltag"&&(Lte(a.content)&&m>0&&m--,Nte(a.content)&&m++),!(m>0)&&a.type==="text"&&Ote.test(a.content)){if(v||(v=Mte(),y=v.links,A=v.autolinker),u=a.content,y.length=0,A.link(u),!y.length)continue;for(c=[],h=a.level,f=0;f=this.eMarks[t]};La.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};La.prototype.getLines=function(t,n,r,o){var i,a,u,c,f,p=t;if(t>=n)return"";if(p+1===n)return a=this.bMarks[p]+Math.min(this.tShift[p],r),u=o?this.eMarks[p]+1:this.eMarks[p],this.src.slice(a,u);for(c=new Array(n-t),i=0;pr&&(f=r),f<0&&(f=0),a=this.bMarks[p]+f,p+1=4){o++,i=o;continue}break}return t.line=o,t.tokens.push({type:"code",content:t.getLines(n,i,4+t.blkIndent,!0),block:!0,lines:[n,t.line],level:t.level}),!0},zte=function(t,n,r,o){var i,a,u,c,f,p=!1,h=t.bMarks[n]+t.tShift[n],m=t.eMarks[n];if(h+3>m||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(f=h,h=t.skipChars(h,i),a=h-f,a<3)||(u=t.src.slice(h,m).trim(),u.indexOf("`")>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=f=t.bMarks[c]+t.tShift[c],m=t.eMarks[c],h=4)&&(h=t.skipChars(h,i),!(h-f_||t.src.charCodeAt(A++)!==62||t.level>=t.options.maxNesting)return!1;if(o)return!0;for(t.src.charCodeAt(A)===32&&A++,f=t.blkIndent,t.blkIndent=0,c=[t.bMarks[n]],t.bMarks[n]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u=[t.tShift[n]],t.tShift[n]=A-t.bMarks[n],m=t.parser.ruler.getRules("blockquote"),i=n+1;i=_));i++){if(t.src.charCodeAt(A++)===62){t.src.charCodeAt(A)===32&&A++,c.push(t.bMarks[i]),t.bMarks[i]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u.push(t.tShift[i]),t.tShift[i]=A-t.bMarks[i];continue}if(a)break;for(y=!1,b=0,v=m.length;bf||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=o||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r=o||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=o)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r=0)_=!0;else if((m=k3(t,n))>=0)_=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(A=t.src.charCodeAt(m-1),o)return!0;for(S=t.tokens.length,_?(h=t.bMarks[n]+t.tShift[n],y=Number(t.src.substr(h,m-h-1)),t.tokens.push({type:"ordered_list_open",order:y,lines:T=[n,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:T=[n,0],level:t.level++}),i=n,k=!1,I=t.parser.ruler.getRules("list");i=b?v=1:v=w-m,v>4&&(v=1),v<1&&(v=1),a=m-t.bMarks[i]+v,t.tokens.push({type:"list_item_open",lines:E=[n,0],level:t.level++}),c=t.blkIndent,f=t.tight,u=t.tShift[n],p=t.parentType,t.tShift[n]=w-t.bMarks[n],t.blkIndent=a,t.tight=!0,t.parentType="list",t.parser.tokenize(t,n,r,!0),(!t.tight||k)&&(L=!1),k=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[n]=u,t.tight=f,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),i=n=t.line,E[1]=i,w=t.bMarks[n],!(i>=r||t.isEmpty(i)||t.tShift[i]h||t.src.charCodeAt(p)!==91||t.src.charCodeAt(p+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=p+2;c=h||t.src.charCodeAt(++c)!==58?!1:(o||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),f=t.src.slice(p+2,c-2),t.env.footnotes.refs[":"+f]=-1,t.tokens.push({type:"footnote_reference_open",label:f,level:t.level++}),i=t.bMarks[n],a=t.tShift[n],u=t.parentType,t.tShift[n]=t.skipSpaces(c)-c,t.bMarks[n]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[n]=f||(i=t.src.charCodeAt(c),i!==35||c>=f))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&t.src.charCodeAt(u-1)===32&&(f=u),t.line=n+1,t.tokens.push({type:"heading_open",hLevel:a,lines:[n,t.line],level:t.level}),c=r||t.tShift[u]3||(i=t.bMarks[u]+t.tShift[u],a=t.eMarks[u],i>=a)||(o=t.src.charCodeAt(i),o!==45&&o!==61)||(i=t.skipChars(i,o),i=t.skipSpaces(i),i]/,Qte=/^<\/([a-zA-Z]{1,15})[\s>]/;function Jte(e){var t=e|32;return t>=97&&t<=122}var ene=function(t,n,r,o){var i,a,u,c=t.bMarks[n],f=t.eMarks[n],p=t.tShift[n];if(c+=p,!t.options.html||p>3||c+2>=f||t.src.charCodeAt(c)!==60)return!1;if(i=t.src.charCodeAt(c+1),i===33||i===63){if(o)return!0}else if(i===47||Jte(i)){if(i===47){if(a=t.src.slice(c,f).match(Qte),!a)return!1}else if(a=t.src.slice(c,f).match(Zte),!a)return!1;if(Xte[a[1].toLowerCase()]!==!0)return!1;if(o)return!0}else return!1;for(u=n+1;ur||(f=n+1,t.tShift[f]=t.eMarks[f])||(i=t.src.charCodeAt(u),i!==124&&i!==45&&i!==58)||(a=dv(t,n+1),!/^[-:| ]+$/.test(a))||(p=a.split("|"),p<=2))return!1;for(m=[],c=0;c=i||(r=e.src.charCodeAt(o++),r!==126&&r!==58)||(n=e.skipSpaces(o),o===n)||n>=i?-1:n}function nne(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(h=n+1,t.isEmpty(h)&&++h>r||t.tShift[h]=t.options.maxNesting)return!1;p=t.tokens.length,t.tokens.push({type:"dl_open",lines:f=[n,0],level:t.level++}),u=n,a=h;e:for(;;){for(w=!0,_=!1,t.tokens.push({type:"dt_open",lines:[u,u],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(u,u+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[u,u],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[h,0],level:t.level++}),A=t.tight,b=t.ddIndent,m=t.blkIndent,y=t.tShift[a],v=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=i-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||_)&&(w=!1),_=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=y,t.tight=A,t.parentType=v,t.blkIndent=m,t.ddIndent=b,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=h=t.line,h>=r||t.tShift[h]=r||(u=h,t.isEmpty(u))||t.tShift[u]=r)||(t.isEmpty(a)&&a++,a>=r)||t.tShift[a]3)){for(i=!1,a=0,u=f.length;a=n||e.tShift[i]=0&&(e=e.replace(ane,function(u,c){var f;return e.charCodeAt(c)===10?(i=c+1,a=0,u):(f=" ".slice((c-i-a)%4),a=c-i+1,f)})),o=new sne(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};var cne=Cw;function fne(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}var dne=function(t,n){for(var r=t.pos;r=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var a=r-2;a>=0;a--)if(t.pending.charCodeAt(a)!==32){t.pending=t.pending.substring(0,a+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){Aw[e.charCodeAt(0)]=1});var hne=function(t,n){var r,o=t.pos,i=t.posMax;if(t.src.charCodeAt(o)!==92)return!1;if(o++,o=a||t.src.charCodeAt(u+1)!==126||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===126)||f===126||f===32||f===10)return!1;for(o=u+2;ou+3)return t.pos+=o-u,n||(t.pending+=t.src.slice(u,o)),!0;for(t.pos=u+2,i=1;t.pos+1=a||t.src.charCodeAt(u+1)!==43||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===43)||f===43||f===32||f===10)return!1;for(o=u+2;o=a||t.src.charCodeAt(u+1)!==61||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===61)||f===61||f===32||f===10)return!1;for(o=u+2;o=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function O3(e,t){var n=t,r,o,i,a=!0,u=!0,c=e.posMax,f=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n=c&&(a=!1),i=n-t,i>=4?a=u=!1:(o=n=t.options.maxNesting)return!1;for(t.pos=h+r,c=[r];t.pos?@[\]^_`{|}~-])/g,xne=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==126||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos?@[\]^_`{|}~-])/g,Sne=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==94||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos=t.options.maxNesting||(r=v+1,o=L3(t,v),o<0))return!1;if(c=o+1,c=b)return!1;for(v=c,Ene(t,c)?(a=t.linkContent,c=t.pos):a="",v=c;c=b||t.src.charCodeAt(c)!==41)return t.pos=m,!1;c++}else{if(t.linkLevel>0)return!1;for(;c=0?i=t.src.slice(v,c++):c=v-1),i||(typeof i>"u"&&(c=o+1),i=t.src.slice(r,o)),f=t.env.references[Ane(i)],!f)return t.pos=m,!1;a=f.href,u=f.title}return n||(t.pos=r,t.posMax=o,h?t.push({type:"image",src:a,title:u,alt:t.src.substr(r,o-r),level:t.level}):(t.push({type:"link_open",href:a,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=b,!0},kne=Y0,Tne=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;return c+2>=u||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,o=kne(t,c+1),o<0)?!1:(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=o,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,a=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(a)},t.linkLevel--),t.pos=o+1,t.posMax=u,!0)},Dne=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;if(c+3>u||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=c+2;o=u||(o++,r=t.src.slice(c+2,o-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(n||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:a,level:t.level})),t.pos=o,t.posMax=u,!0)},Pne=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],One=Pne,N3=lT,Lne=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,Nne=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/,Mne=function(t,n){var r,o,i,a,u,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(o=r.match(Nne),o?One.indexOf(o[1].toLowerCase())<0||(a=o[0].slice(1,-1),u=N3(a),!t.parser.validateLink(a))?!1:(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0):(i=r.match(Lne),i?(a=i[0].slice(1,-1),u=N3("mailto:"+a),t.parser.validateLink(u)?(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))},mT={};function X0(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var Bne=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Ine=/[^"'=<>`\x00-\x20]+/,$ne=/'[^']*'/,Fne=/"[^"]*"/,Une=X0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Ine)("single_quoted",$ne)("double_quoted",Fne)(),zne=X0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Bne)("attr_value",Une)(),jne=X0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",zne)(),Vne=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Wne=/|/,qne=/<[?].*?[?]>/,Hne=/]*>/,Gne=//,Kne=X0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",jne)("close_tag",Vne)("comment",Wne)("processing",qne)("declaration",Hne)("cdata",Gne)();mT.HTML_TAG_RE=Kne;var Yne=mT.HTML_TAG_RE;function Xne(e){var t=e|32;return t>=97&&t<=122}var Zne=function(t,n){var r,o,i,a=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!Xne(r))||(o=t.src.slice(a).match(Yne),!o)?!1:(n||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)},M3=nT,Qne=vn.has,Jne=vn.isValidEntityCode,B3=vn.fromCodePoint,ere=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,tre=/^&([a-z][a-z0-9]{1,31});/i,nre=function(t,n){var r,o,i,a=t.pos,u=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+10){e.pos=i;return}for(o=0;o=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Z0.prototype.parse=function(e,t,n,r){var o=new ore(e,this,t,n,r);this.tokenize(o)};function sre(e){var t=["vbscript","javascript","file","data"],n=e.trim().toLowerCase();return n=ire.replaceEntities(n),!(n.indexOf(":")!==-1&&t.indexOf(n.split(":")[0])!==-1)}var are=Z0,lre={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},ure={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},cre={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},fre=vn.assign,dre=rte,pre=$te,hre=cne,mre=are,gre=K0,vre={default:lre,full:ure,commonmark:cre};function gT(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function $s(e,t){typeof e!="string"&&(t=e,e="default"),this.inline=new mre,this.block=new hre,this.core=new pre,this.renderer=new dre,this.ruler=new gre,this.options={},this.configure(vre[e]),this.set(t||{})}$s.prototype.set=function(e){fre(this.options,e)};$s.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})};$s.prototype.use=function(e,t){return e(this,t),this};$s.prototype.parse=function(e,t){var n=new gT(this,e,t);return this.core.process(n),n.tokens};$s.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};$s.prototype.parseInline=function(e,t){var n=new gT(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens};$s.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};_w.exports=$s;_w.exports.utils=vn;var yre=_w.exports,wre=yre;Object.defineProperty(tT,"__esModule",{value:!0});var bre=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var yT=function(t){var n=t.markdown,r=t.options;r=r===void 0?{}:r;var o=r.preset,i=I3(r,["preset"]),a=I3(t,["markdown","options"]),u=new Ere.default(o||"default",i),c=u.render(n);return _re.default.createElement("div",bre({},a,{dangerouslySetInnerHTML:{__html:c}}))};yT.propTypes={markdown:yo.string.isRequired,options:yo.shape({preset:yo.oneOf(["default","commonmark","full"]),html:yo.bool,xhtmlOut:yo.bool,breaks:yo.bool,langPrefix:yo.string,linkify:yo.bool,typographer:yo.bool,quotes:yo.string,highlight:yo.func})};var Cre=tT.default=yT;const Are=({message:e,index:t,feedback:n})=>{const r=()=>({width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px",...t%2===0&&{color:"#222",backgroundColor:"#edf5fa"}}),o={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"};return O.jsxs($t,{children:[O.jsxs($t,{spacing:"8px",px:"15px",direction:t%2===0?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[t%2!==0&&O.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(xw,{sx:{paddingBlock:0,height:"fit-content"},children:O.jsx(Ec,{sx:r,children:O.jsx(Cre,{markdown:e.output})})})]}),t%2===1&&O.jsxs($t,{direction:"row",spacing:"16.6px",marginTop:"8px",marginLeft:7,children:[O.jsx("button",{style:o,onClick:()=>n("like"),children:O.jsx(vh,{title:"Helpful",children:O.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[O.jsx("defs",{children:O.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),O.jsxs("g",{fill:"none",fillRule:"evenodd",children:[O.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:O.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),O.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#nl4n4evbwb)"})]})]})})}),O.jsx("button",{style:o,onClick:()=>n("dislike"),children:O.jsx(vh,{title:"Not Helpful",children:O.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[O.jsx("defs",{children:O.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),O.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[O.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:O.jsx("use",{xlinkHref:"#42svq9gc7a"})}),O.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#fna5jsjxab)"})]})]})})})]})]})},Rre=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,clear:o}=vV();let{messages:i}=yV();const a=D.useRef(null),{loading:u}=pV(),[c,f]=D.useState(!1),[p,h]=D.useState(""),[m,b]=D.useState(),[v,y]=D.useState(""),[A,_]=D.useState(!1),[w,S]=D.useState(!1),[k,T]=D.useState(""),E=()=>{var re;(re=a.current)==null||re.scrollIntoView({behavior:"smooth"})},L=()=>{var le;if(i.length===0)return!1;const re=(le=i[i.length-1])==null?void 0:le.output.trim();return re===""||re===k.trim()};D.useEffect(()=>{E(),L()},[i]);const I=()=>{S(!0),b(Q)},q=()=>{f(!0)},$=()=>{t(!1),S(!1),o()},X=async re=>{const le=re||v.trim();T(le),le&&(r({name:"User",type:"user_message",sender:"user",output:le,content:le},[]),y(""))},ae={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},H={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}},Q=()=>O.jsxs(rt.Fragment,{children:[O.jsxs($t,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[O.jsx(br,{fontSize:"17px",fontWeight:500,children:"End Chat"}),O.jsx(br,{children:"Are you sure you want to end chat?"})]}),O.jsxs($t,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[O.jsx(sl,{fullWidth:!0,variant:"contained",sx:ae,onClick:$,children:"End Chat"}),O.jsx(sl,{sx:ae,onClick:()=>{S(!1)},children:"Cancel"})]})]});return O.jsx($t,{position:"relative",children:O.jsxs($t,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"100%",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",zIndex:999,opacity:0,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-box__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-box__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"}},...n,children:[O.jsx(kee,{onClose:I,onMinimize:t,onDrawerOpen:()=>_(!0)}),O.jsxs($t,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[O.jsx(Dee,{}),O.jsx($ee,{}),i.filter(re=>re.output.trim()!=="").map((re,le)=>O.jsx(Are,{index:le,message:re,feedback:q},le)),O.jsx(Ree,{visible:L()}),i.length===0&&O.jsxs($t,{spacing:1,alignItems:"flex-end",px:"15px",children:[O.jsx(sl,{...H,onClick:()=>window.open("/support/order-status","_blank"),children:"Order Status and Tracking"}),O.jsx(sl,{...H,onClick:()=>window.open("/MyAccount/","_blank"),children:"Recent Orders"}),O.jsx(sl,{...H,onClick:()=>{X("I’m looking for OWC product and shopping advice")},children:"Shopping and Product Advice"})]}),O.jsx("div",{ref:a})]}),O.jsx(Tee,{onMessage:X,value:v,input:y,loading:u}),O.jsx(Lee,{drawer:A||w||c,onClick:()=>{_(!1),S(!1),f(!1)}}),O.jsx(Pee,{drawer:A,onClose:()=>_(!1)}),O.jsx(Oee,{drawer:w,children:m}),O.jsx(Nee,{drawer:c,setDialog:f,buttonDialogStyles:ae,setFeedbackInput:h})]})})},kre=({toggle:e,sx:t,...n})=>O.jsxs($t,{sx:{gap:"13px",bottom:24,left:24,width:"fit-content",height:"55px",zIndex:99999,paddingX:"24px",cursor:"pointer",position:"fixed",bgcolor:"#1470d2",borderRadius:27.5,flexDirection:"row",alignItems:"center",border:"solid 1px #1163bb",outline:"none",opacity:0,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-bubble__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-bubble__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"},...t},...n,onClick:e,children:[O.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:O.jsxs("g",{fill:"none",children:[O.jsxs("g",{children:[O.jsx("path",{d:"M0 0h28.906v35H0z"}),O.jsx("path",{d:"M26.98 24.4a2.89 2.89 0 0 1-2.891 2.891H14.32a.961.961 0 0 0-.634.239l-5.014 4.383v-3.659a.964.964 0 0 0-.964-.963h-2.89a2.89 2.89 0 0 1-2.892-2.89V10.91c0-.768.305-1.503.848-2.044a2.883 2.883 0 0 1 2.043-.847H24.09c.767 0 1.502.304 2.044.847.542.541.846 1.276.846 2.043V24.4zm.516-16.897a4.822 4.822 0 0 0-3.407-1.41h-8.605V3.638c.388-.24.699-.607.847-1.076a1.97 1.97 0 0 0-3.757-1.185 1.965 1.965 0 0 0 .848 2.264v2.452H4.817a4.825 4.825 0 0 0-3.407 1.41A4.825 4.825 0 0 0 0 10.91V24.4a4.818 4.818 0 0 0 4.817 4.819h1.928v4.817a.962.962 0 0 0 1.597.726l6.34-5.543h9.407a4.819 4.819 0 0 0 4.818-4.818V10.91a4.822 4.822 0 0 0-1.411-3.408z",fill:"#FFF",mask:"url(#xk5421jfwb)"})]}),O.jsx("path",{d:"M10.276 15.512a1.97 1.97 0 1 0-3.939 0 1.97 1.97 0 0 0 3.94 0M21.192 13.634a1.97 1.97 0 1 0-1.186 3.758 1.97 1.97 0 0 0 1.186-3.758M19.292 19.615c-4.809 3.165-9.59.134-9.798-.001A1.032 1.032 0 0 0 8.36 21.34c.162.106 2.767 1.78 6.232 1.78 1.789 0 3.806-.444 5.836-1.78a1.033 1.033 0 0 0-1.136-1.725",fill:"#FFF"})]})}),O.jsx(br,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Tre=()=>{const[e,t]=D.useState(!1);return O.jsxs(rt.Fragment,{children:[O.jsx(kre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),O.jsx(Rre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var Dre={VITE_APP_VERSION:"v1.0.0",VITE_APP_API_URL:"10.0.50.21:8888",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Pre=aH([{path:"*",element:O.jsx(Tre,{})}],{basename:Dre.VITE_APP_BASE_NAME});function Ore(){return W0({palette:{common:{black:"#000",white:"#fff"},text:{primary:"#000",secondary:"#333",disabled:"grey"},action:{disabled:"grey"},divider:"grey",background:{paper:"white",default:"white"},primary:{main:"#1470d2"}}})}function Lre(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,color:"#222222",h1:{fontWeight:800,fontSize:"3.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"2.575rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"initial"}}}let tf;(function(e){e.LIGHT="light",e.DARK="dark"})(tf||(tf={}));tf.LIGHT;function Nre(e){return{button:e.palette.mode===tf.DARK?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode===tf.DARK?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${Yn(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Yn(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Yn(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Yn(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Yn(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Yn(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Yn(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Yn(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Yn(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Yn(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Yn(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Yn(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Yn(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Yn(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Yn(e.palette.grey[500],.2)}`}}function Mre(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function Bre(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;default:return e.customShadows.primary}}function wt({variant:e,color:t,theme:n}){const r=Mre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Bre(n,f),h={"&::after":{boxShadow:`0 0 5px 5px ${Yn(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Yn(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...h};case"shadow":return{color:c,backgroundColor:i,boxShadow:p,"&:hover":{boxShadow:"none",backgroundColor:a},...h};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...h};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...h};case"text":default:return{color:a,"&:hover":{color:u,backgroundColor:o},...h}}}function Ire(e){const t=wt({variant:"dashed",color:"primary",theme:e}),n=wt({variant:"shadow",color:"primary",theme:e}),r=wt({variant:"contained",color:"#c00",theme:e}),o={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0},styleOverrides:{root:{borderRadius:7,fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...o,...r},outlined:{...o},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":wt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":wt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":wt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":wt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":wt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":wt({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":wt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":wt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":wt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":wt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":wt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":wt({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:wt({variant:"contained",color:"primary",theme:e}),containedSecondary:wt({variant:"contained",color:"secondary",theme:e}),containedError:wt({variant:"contained",color:"error",theme:e}),containedSuccess:wt({variant:"contained",color:"success",theme:e}),containedInfo:wt({variant:"contained",color:"info",theme:e}),containedWarning:wt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:wt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:wt({variant:"outlined",color:"secondary",theme:e}),outlinedError:wt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:wt({variant:"outlined",color:"success",theme:e}),outlinedInfo:wt({variant:"outlined",color:"info",theme:e}),outlinedWarning:wt({variant:"outlined",color:"warning",theme:e}),textPrimary:wt({variant:"text",color:"primary",theme:e}),textSecondary:wt({variant:"text",color:"secondary",theme:e}),textError:wt({variant:"text",color:"error",theme:e}),textSuccess:wt({variant:"text",color:"success",theme:e}),textInfo:wt({variant:"text",color:"info",theme:e}),textWarning:wt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function $re(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Fre(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function Ure(e){return Da.merge(Ire(e),$re(),Fre())}function wT({children:e}){const t=D.useMemo(()=>Ore(),["light","default"]),n=D.useMemo(()=>Lre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=D.useMemo(()=>Nre(t),[t]),o=D.useMemo(()=>({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:t.palette,customShadows:r,typography:n}),[t,n]),i=W0(o);return i.components=Ure(i),O.jsx(Jk,{injectFirst:!0,children:O.jsxs(YX,{theme:i,children:[O.jsx(wJ,{enableColorScheme:!0}),e]})})}wT.propTypes={children:DG.node};const zre=()=>{const{connect:e,disconnect:t}=wV(),n=Dn(r0);return D.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await Nn.post(`${o}//10.0.50.21:8888/login`,new URLSearchParams({username:"owc-user",password:"owc-user"}))).data.access_token;e({accessToken:`Bearer ${a}`})}catch(o){console.error("Login failed:",o)}})(),()=>{t()}),[e]),O.jsx(wT,{children:O.jsx(gH,{router:Pre})})},jre=window.location.protocol,Vre=`${jre}//10.0.50.21:8888`,Wre=new qR(Vre,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("root");e?hv.createRoot(e).render(O.jsx(rt.StrictMode,{children:O.jsx(Oy.Provider,{value:Wre,children:O.jsx(Iz,{children:O.jsx(zre,{})})})})):console.log("Root element for Chatbot not found")}); + */(function(e,t){(function(n,r){e.exports=r()})(F3,function(){var n=function(r){r=r||{},this.version=n.version,this.urls=this.normalizeUrlsCfg(r.urls),this.email=typeof r.email=="boolean"?r.email:!0,this.twitter=typeof r.twitter=="boolean"?r.twitter:!0,this.phone=typeof r.phone=="boolean"?r.phone:!0,this.hashtag=r.hashtag||!1,this.newWindow=typeof r.newWindow=="boolean"?r.newWindow:!0,this.stripPrefix=typeof r.stripPrefix=="boolean"?r.stripPrefix:!0;var o=this.hashtag;if(o!==!1&&o!=="twitter"&&o!=="facebook"&&o!=="instagram")throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(r.truncate),this.className=r.className||"",this.replaceFn=r.replaceFn||null,this.htmlParser=null,this.matchers=null,this.tagBuilder=null};return n.link=function(r,o){var i=new n(o);return i.link(r)},n.version="0.28.1",n.prototype={constructor:n,normalizeUrlsCfg:function(r){return r==null&&(r=!0),typeof r=="boolean"?{schemeMatches:r,wwwMatches:r,tldMatches:r}:{schemeMatches:typeof r.schemeMatches=="boolean"?r.schemeMatches:!0,wwwMatches:typeof r.wwwMatches=="boolean"?r.wwwMatches:!0,tldMatches:typeof r.tldMatches=="boolean"?r.tldMatches:!0}},normalizeTruncateCfg:function(r){return typeof r=="number"?{length:r,location:"end"}:n.Util.defaults(r||{},{length:Number.POSITIVE_INFINITY,location:"end"})},parse:function(r){for(var o=this.getHtmlParser(),i=o.parse(r),a=0,u=[],c=0,f=i.length;co&&(i=i??"..",r=r.substring(0,o-i.length)+i),r},indexOf:function(r,o){if(Array.prototype.indexOf)return r.indexOf(o);for(var i=0,a=r.length;i=0;i--)o(r[i])===!0&&r.splice(i,1)},splitAndCapture:function(r,o){if(!o.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i=[],a=0,u;u=o.exec(r);)i.push(r.substring(a,u.index)),i.push(u[0]),a=u.index+u[0].length;return i.push(r.substring(a)),i},trim:function(r){return r.replace(this.trimRegex,"")}},n.HtmlTag=n.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(r){n.Util.assign(this,r),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(r){return this.tagName=r,this},getTagName:function(){return this.tagName||""},setAttr:function(r,o){var i=this.getAttrs();return i[r]=o,this},getAttr:function(r){return this.getAttrs()[r]},setAttrs:function(r){var o=this.getAttrs();return n.Util.assign(o,r),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(r){return this.setAttr("class",r)},addClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;f=c.shift();)a(u,f)===-1&&u.push(f);return this.getAttrs().class=u.join(" "),this},removeClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;u.length&&(f=c.shift());){var p=a(u,f);p!==-1&&u.splice(p,1)}return this.getAttrs().class=u.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(r){return(" "+this.getClass()+" ").indexOf(" "+r+" ")!==-1},setInnerHtml:function(r){return this.innerHtml=r,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var r=this.getTagName(),o=this.buildAttrsStr();return o=o?" "+o:"",["<",r,o,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var r=this.getAttrs(),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+'="'+r[i]+'"');return o.join(" ")}}),n.RegexLib=function(){var r="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",i=r+o,a=new RegExp("["+i+".\\-]*["+i+"\\-]"),u=/(?:travelersinsurance|sandvikcoromant|kerryproperties|cancerresearch|weatherchannel|kerrylogistics|spreadbetting|international|wolterskluwer|lifeinsurance|construction|pamperedchef|scholarships|versicherung|bridgestone|creditunion|kerryhotels|investments|productions|blackfriday|enterprises|lamborghini|photography|motorcycles|williamhill|playstation|contractors|barclaycard|accountants|redumbrella|engineering|management|telefonica|protection|consulting|tatamotors|creditcard|vlaanderen|schaeffler|associates|properties|foundation|republican|bnpparibas|boehringer|eurovision|extraspace|industries|immobilien|university|technology|volkswagen|healthcare|restaurant|cuisinella|vistaprint|apartments|accountant|travelers|homedepot|institute|vacations|furniture|fresenius|insurance|christmas|bloomberg|solutions|barcelona|firestone|financial|kuokgroup|fairwinds|community|passagens|goldpoint|equipment|lifestyle|yodobashi|aquarelle|marketing|analytics|education|amsterdam|statefarm|melbourne|allfinanz|directory|microsoft|stockholm|montblanc|accenture|lancaster|landrover|everbank|istanbul|graphics|grainger|ipiranga|softbank|attorney|pharmacy|saarland|catering|airforce|yokohama|mortgage|frontier|mutuelle|stcgroup|memorial|pictures|football|symantec|cipriani|ventures|telecity|cityeats|verisign|flsmidth|boutique|cleaning|firmdale|clinique|clothing|redstone|infiniti|deloitte|feedback|services|broadway|plumbing|commbank|training|barclays|exchange|computer|brussels|software|delivery|barefoot|builders|business|bargains|engineer|holdings|download|security|helsinki|lighting|movistar|discount|hdfcbank|supplies|marriott|property|diamonds|capetown|partners|democrat|jpmorgan|bradesco|budapest|rexroth|zuerich|shriram|academy|science|support|youtube|singles|surgery|alibaba|statoil|dentist|schwarz|android|cruises|cricket|digital|markets|starhub|systems|courses|coupons|netbank|country|domains|corsica|network|neustar|realtor|lincoln|limited|schmidt|yamaxun|cooking|contact|auction|spiegel|liaison|leclerc|latrobe|lasalle|abogado|compare|lanxess|exposed|express|company|cologne|college|avianca|lacaixa|fashion|recipes|ferrero|komatsu|storage|wanggou|clubmed|sandvik|fishing|fitness|bauhaus|kitchen|flights|florist|flowers|watches|weather|temasek|samsung|bentley|forsale|channel|theater|frogans|theatre|okinawa|website|tickets|jewelry|gallery|tiffany|iselect|shiksha|brother|organic|wedding|genting|toshiba|origins|philips|hyundai|hotmail|hoteles|hosting|rentals|windows|cartier|bugatti|holiday|careers|whoswho|hitachi|panerai|caravan|reviews|guitars|capital|trading|hamburg|hangout|finance|stream|family|abbott|health|review|travel|report|hermes|hiphop|gratis|career|toyota|hockey|dating|repair|google|social|soccer|reisen|global|otsuka|giving|unicom|casino|photos|center|broker|rocher|orange|bostik|garden|insure|ryukyu|bharti|safety|physio|sakura|oracle|online|jaguar|gallup|piaget|tienda|futbol|pictet|joburg|webcam|berlin|office|juegos|kaufen|chanel|chrome|xihuan|church|tennis|circle|kinder|flickr|bayern|claims|clinic|viajes|nowruz|xperia|norton|yachts|studio|coffee|camera|sanofi|nissan|author|expert|events|comsec|lawyer|tattoo|viking|estate|villas|condos|realty|yandex|energy|emerck|virgin|vision|durban|living|school|coupon|london|taobao|natura|taipei|nagoya|luxury|walter|aramco|sydney|madrid|credit|maison|makeup|schule|market|anquan|direct|design|swatch|suzuki|alsace|vuelos|dental|alipay|voyage|shouji|voting|airtel|mutual|degree|supply|agency|museum|mobily|dealer|monash|select|mormon|active|moscow|racing|datsun|quebec|nissay|rodeo|email|gifts|works|photo|chloe|edeka|cheap|earth|vista|tushu|koeln|glass|shoes|globo|tunes|gmail|nokia|space|kyoto|black|ricoh|seven|lamer|sener|epson|cisco|praxi|trust|citic|crown|shell|lease|green|legal|lexus|ninja|tatar|gripe|nikon|group|video|wales|autos|gucci|party|nexus|guide|linde|adult|parts|amica|lixil|boats|azure|loans|locus|cymru|lotte|lotto|stada|click|poker|quest|dabur|lupin|nadex|paris|faith|dance|canon|place|gives|trade|skype|rocks|mango|cloud|boots|smile|final|swiss|homes|honda|media|horse|cards|deals|watch|bosch|house|pizza|miami|osaka|tours|total|xerox|coach|sucks|style|delta|toray|iinet|tools|money|codes|beats|tokyo|salon|archi|movie|baidu|study|actor|yahoo|store|apple|world|forex|today|bible|tmall|tirol|irish|tires|forum|reise|vegas|vodka|sharp|omega|weber|jetzt|audio|promo|build|bingo|chase|gallo|drive|dubai|rehab|press|solar|sale|beer|bbva|bank|band|auto|sapo|sarl|saxo|audi|asia|arte|arpa|army|yoga|ally|zara|scor|scot|sexy|seat|zero|seek|aero|adac|zone|aarp|maif|meet|meme|menu|surf|mini|mobi|mtpc|porn|desi|star|ltda|name|talk|navy|love|loan|live|link|news|limo|like|spot|life|nico|lidl|lgbt|land|taxi|team|tech|kred|kpmg|sony|song|kiwi|kddi|jprs|jobs|sohu|java|itau|tips|info|immo|icbc|hsbc|town|host|page|toys|here|help|pars|haus|guru|guge|tube|goog|golf|gold|sncf|gmbh|gift|ggee|gent|gbiz|game|vana|pics|fund|ford|ping|pink|fish|film|fast|farm|play|fans|fail|plus|skin|pohl|fage|moda|post|erni|dvag|prod|doha|prof|docs|viva|diet|luxe|site|dell|sina|dclk|show|qpon|date|vote|cyou|voto|read|coop|cool|wang|club|city|chat|cern|cash|reit|rent|casa|cars|care|camp|rest|call|cafe|weir|wien|rich|wiki|buzz|wine|book|bond|room|work|rsvp|shia|ruhr|blue|bing|shaw|bike|safe|xbox|best|pwc|mtn|lds|aig|boo|fyi|nra|nrw|ntt|car|gal|obi|zip|aeg|vin|how|one|ong|onl|dad|ooo|bet|esq|org|htc|bar|uol|ibm|ovh|gdn|ice|icu|uno|gea|ifm|bot|top|wtf|lol|day|pet|eus|wtc|ubs|tvs|aco|ing|ltd|ink|tab|abb|afl|cat|int|pid|pin|bid|cba|gle|com|cbn|ads|man|wed|ceb|gmo|sky|ist|gmx|tui|mba|fan|ski|iwc|app|pro|med|ceo|jcb|jcp|goo|dev|men|aaa|meo|pub|jlc|bom|jll|gop|jmp|mil|got|gov|win|jot|mma|joy|trv|red|cfa|cfd|bio|moe|moi|mom|ren|biz|aws|xin|bbc|dnp|buy|kfh|mov|thd|xyz|fit|kia|rio|rip|kim|dog|vet|nyc|bcg|mtr|bcn|bms|bmw|run|bzh|rwe|tel|stc|axa|kpn|fly|krd|cab|bnl|foo|crs|eat|tci|sap|srl|nec|sas|net|cal|sbs|sfr|sca|scb|csc|edu|new|xxx|hiv|fox|wme|ngo|nhk|vip|sex|frl|lat|yun|law|you|tax|soy|sew|om|ac|hu|se|sc|sg|sh|sb|sa|rw|ru|rs|ro|re|qa|py|si|pw|pt|ps|sj|sk|pr|pn|pm|pl|sl|sm|pk|sn|ph|so|pg|pf|pe|pa|zw|nz|nu|nr|np|no|nl|ni|ng|nf|sr|ne|st|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|su|mn|mm|ml|mk|mh|mg|me|sv|md|mc|sx|sy|ma|ly|lv|sz|lu|lt|ls|lr|lk|li|lc|lb|la|tc|kz|td|ky|kw|kr|kp|kn|km|ki|kh|tf|tg|th|kg|ke|jp|jo|jm|je|it|is|ir|tj|tk|tl|tm|iq|tn|to|io|in|im|il|ie|ad|sd|ht|hr|hn|hm|tr|hk|gy|gw|gu|gt|gs|gr|gq|tt|gp|gn|gm|gl|tv|gi|tw|tz|ua|gh|ug|uk|gg|gf|ge|gd|us|uy|uz|va|gb|ga|vc|ve|fr|fo|fm|fk|fj|vg|vi|fi|eu|et|es|er|eg|ee|ec|dz|do|dm|dk|vn|dj|de|cz|cy|cx|cw|vu|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|wf|bz|by|bw|bv|bt|bs|br|bo|bn|bm|bj|bi|ws|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ye|ar|aq|ao|am|al|yt|ai|za|ag|af|ae|zm|id)\b/;return{alphaNumericCharsStr:i,domainNameRegex:a,tldRegex:u}}(),n.AnchorTagBuilder=n.Util.extend(Object,{constructor:function(r){n.Util.assign(this,r)},build:function(r){return new n.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())})},createAttrs:function(r,o){var i={href:o},a=this.createCssClass(r);return a&&(i.class=a),this.newWindow&&(i.target="_blank",i.rel="noopener noreferrer"),i},createCssClass:function(r){var o=this.className;return o?o+" "+o+"-"+r:""},processAnchorText:function(r){return r=this.doTruncate(r),r},doTruncate:function(r){var o=this.truncate;if(!o||!o.length)return r;var i=o.length,a=o.location;return a==="smart"?n.truncate.TruncateSmart(r,i,".."):a==="middle"?n.truncate.TruncateMiddle(r,i,".."):n.truncate.TruncateEnd(r,i,"..")}}),n.htmlParser.HtmlParser=n.Util.extend(Object,{htmlRegex:function(){var r=/!--([\s\S]+?)--/,o=/[0-9a-zA-Z][0-9a-zA-Z:]*/,i=/[^\s"'>\/=\x00-\x1F\x7F]+/,a=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,u=i.source+"(?:\\s*=\\s*"+a.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",u,"|",a.source+")",")*",">",")","|","(?:","<(/)?","(?:",r.source,"|","(?:","("+o.source+")","(?:","(?:\\s+|\\b)",u,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(r){for(var o=this.htmlRegex,i,a=0,u,c=[];(i=o.exec(r))!==null;){var f=i[0],p=i[3],h=i[1]||i[4],g=!!i[2],b=i.index,v=r.substring(a,b);v&&(u=this.parseTextAndEntityNodes(a,v),c.push.apply(c,u)),p?c.push(this.createCommentNode(b,f,p)):c.push(this.createElementNode(b,f,h,g)),a=b+f.length}if(a0&&A==="@")&&!(v>0&&y&&this.wordCharRegExp.test(A))){if(this.matchHasUnbalancedClosingParen(f))f=f.substr(0,f.length-1);else{var _=this.matchHasInvalidCharAfterTld(f,p);_>-1&&(f=f.substr(0,_))}var w=p?"scheme":h?"www":"tld",S=!!p;u.push(new n.match.Url({tagBuilder:a,matchedText:f,offset:v,urlMatchType:w,url:f,protocolUrlMatch:S,protocolRelativeMatch:!!y,stripPrefix:i}))}}return u},matchHasUnbalancedClosingParen:function(r){var o=r.charAt(r.length-1);if(o===")"){var i=r.match(this.openParensRe),a=r.match(this.closeParensRe),u=i&&i.length||0,c=a&&a.length||0;if(u0&&(u=r.substr(-1*Math.floor(a/2))),(r.substr(0,Math.ceil(a/2))+i+u).substr(0,o)},n.truncate.TruncateSmart=function(r,o,i){var a=function(S){var k={},T=S,E=T.match(/^([a-z]+):\/\//i);return E&&(k.scheme=E[1],T=T.substr(E[0].length)),E=T.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(k.host=E[1],T=T.substr(E[0].length)),E=T.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(k.path=E[1],T=T.substr(E[0].length)),E=T.match(/^\?(.*?)(?=(#|$))/i),E&&(k.query=E[1],T=T.substr(E[0].length)),E=T.match(/^#(.*?)$/i),E&&(k.fragment=E[1]),k},u=function(S){var k="";return S.scheme&&S.host&&(k+=S.scheme+"://"),S.host&&(k+=S.host),S.path&&(k+="/"+S.path),S.query&&(k+="?"+S.query),S.fragment&&(k+="#"+S.fragment),k},c=function(S,k){var T=k/2,E=Math.ceil(T),L=-1*Math.floor(T),I="";return L<0&&(I=S.substr(L)),S.substr(0,E)+i+I};if(r.length<=o)return r;var f=o-i.length,p=a(r);if(p.query){var h=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(p.query=p.query.substr(0,h[1].length),r=u(p))}if(r.length<=o||(p.host&&(p.host=p.host.replace(/^www\./,""),r=u(p)),r.length<=o))return r;var g="";if(p.host&&(g+=p.host),g.length>=f)return p.host.length==o?(p.host.substr(0,o-i.length)+i).substr(0,o):c(g,f).substr(0,o);var b="";if(p.path&&(b+="/"+p.path),p.query&&(b+="?"+p.query),b)if((g+b).length>=f){if((g+b).length==o)return(g+b).substr(0,o);var v=f-g.length;return(g+c(b,v)).substr(0,o)}else g+=b;if(p.fragment){var y="#"+p.fragment;if((g+y).length>=f){if((g+y).length==o)return(g+y).substr(0,o);var A=f-g.length;return(g+c(y,A)).substr(0,o)}else g+=y}if(p.scheme&&p.host){var _=p.scheme+"://";if((g+_).length0&&(w=g.substr(-1*Math.floor(f/2))),(g.substr(0,Math.ceil(f/2))+i+w).substr(0,o)},n})})(dT);var Dte=dT.exports,Pte=Dte,Ote=/www|@|\:\/\//;function Lte(e){return/^\s]/i.test(e)}function Nte(e){return/^<\/a\s*>/i.test(e)}function Mte(){var e=[],t=new Pte({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(n,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}var Bte=function(t){var n,r,o,i,a,u,c,f,p,h,g,b=t.tokens,v=null,y,A;if(t.options.linkify){for(r=0,o=b.length;r=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="htmltag"&&(Lte(a.content)&&g>0&&g--,Nte(a.content)&&g++),!(g>0)&&a.type==="text"&&Ote.test(a.content)){if(v||(v=Mte(),y=v.links,A=v.autolinker),u=a.content,y.length=0,A.link(u),!y.length)continue;for(c=[],h=a.level,f=0;f=this.eMarks[t]};La.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};La.prototype.getLines=function(t,n,r,o){var i,a,u,c,f,p=t;if(t>=n)return"";if(p+1===n)return a=this.bMarks[p]+Math.min(this.tShift[p],r),u=o?this.eMarks[p]+1:this.eMarks[p],this.src.slice(a,u);for(c=new Array(n-t),i=0;pr&&(f=r),f<0&&(f=0),a=this.bMarks[p]+f,p+1=4){o++,i=o;continue}break}return t.line=o,t.tokens.push({type:"code",content:t.getLines(n,i,4+t.blkIndent,!0),block:!0,lines:[n,t.line],level:t.level}),!0},zte=function(t,n,r,o){var i,a,u,c,f,p=!1,h=t.bMarks[n]+t.tShift[n],g=t.eMarks[n];if(h+3>g||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(f=h,h=t.skipChars(h,i),a=h-f,a<3)||(u=t.src.slice(h,g).trim(),u.indexOf("`")>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=f=t.bMarks[c]+t.tShift[c],g=t.eMarks[c],h=4)&&(h=t.skipChars(h,i),!(h-f_||t.src.charCodeAt(A++)!==62||t.level>=t.options.maxNesting)return!1;if(o)return!0;for(t.src.charCodeAt(A)===32&&A++,f=t.blkIndent,t.blkIndent=0,c=[t.bMarks[n]],t.bMarks[n]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u=[t.tShift[n]],t.tShift[n]=A-t.bMarks[n],g=t.parser.ruler.getRules("blockquote"),i=n+1;i=_));i++){if(t.src.charCodeAt(A++)===62){t.src.charCodeAt(A)===32&&A++,c.push(t.bMarks[i]),t.bMarks[i]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u.push(t.tShift[i]),t.tShift[i]=A-t.bMarks[i];continue}if(a)break;for(y=!1,b=0,v=g.length;bf||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=o||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r=o||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=o)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r=0)_=!0;else if((g=k3(t,n))>=0)_=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(A=t.src.charCodeAt(g-1),o)return!0;for(S=t.tokens.length,_?(h=t.bMarks[n]+t.tShift[n],y=Number(t.src.substr(h,g-h-1)),t.tokens.push({type:"ordered_list_open",order:y,lines:T=[n,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:T=[n,0],level:t.level++}),i=n,k=!1,I=t.parser.ruler.getRules("list");i=b?v=1:v=w-g,v>4&&(v=1),v<1&&(v=1),a=g-t.bMarks[i]+v,t.tokens.push({type:"list_item_open",lines:E=[n,0],level:t.level++}),c=t.blkIndent,f=t.tight,u=t.tShift[n],p=t.parentType,t.tShift[n]=w-t.bMarks[n],t.blkIndent=a,t.tight=!0,t.parentType="list",t.parser.tokenize(t,n,r,!0),(!t.tight||k)&&(L=!1),k=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[n]=u,t.tight=f,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),i=n=t.line,E[1]=i,w=t.bMarks[n],!(i>=r||t.isEmpty(i)||t.tShift[i]h||t.src.charCodeAt(p)!==91||t.src.charCodeAt(p+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=p+2;c=h||t.src.charCodeAt(++c)!==58?!1:(o||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),f=t.src.slice(p+2,c-2),t.env.footnotes.refs[":"+f]=-1,t.tokens.push({type:"footnote_reference_open",label:f,level:t.level++}),i=t.bMarks[n],a=t.tShift[n],u=t.parentType,t.tShift[n]=t.skipSpaces(c)-c,t.bMarks[n]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[n]=f||(i=t.src.charCodeAt(c),i!==35||c>=f))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&t.src.charCodeAt(u-1)===32&&(f=u),t.line=n+1,t.tokens.push({type:"heading_open",hLevel:a,lines:[n,t.line],level:t.level}),c=r||t.tShift[u]3||(i=t.bMarks[u]+t.tShift[u],a=t.eMarks[u],i>=a)||(o=t.src.charCodeAt(i),o!==45&&o!==61)||(i=t.skipChars(i,o),i=t.skipSpaces(i),i]/,Qte=/^<\/([a-zA-Z]{1,15})[\s>]/;function Jte(e){var t=e|32;return t>=97&&t<=122}var ene=function(t,n,r,o){var i,a,u,c=t.bMarks[n],f=t.eMarks[n],p=t.tShift[n];if(c+=p,!t.options.html||p>3||c+2>=f||t.src.charCodeAt(c)!==60)return!1;if(i=t.src.charCodeAt(c+1),i===33||i===63){if(o)return!0}else if(i===47||Jte(i)){if(i===47){if(a=t.src.slice(c,f).match(Qte),!a)return!1}else if(a=t.src.slice(c,f).match(Zte),!a)return!1;if(Xte[a[1].toLowerCase()]!==!0)return!1;if(o)return!0}else return!1;for(u=n+1;ur||(f=n+1,t.tShift[f]=t.eMarks[f])||(i=t.src.charCodeAt(u),i!==124&&i!==45&&i!==58)||(a=dv(t,n+1),!/^[-:| ]+$/.test(a))||(p=a.split("|"),p<=2))return!1;for(g=[],c=0;c=i||(r=e.src.charCodeAt(o++),r!==126&&r!==58)||(n=e.skipSpaces(o),o===n)||n>=i?-1:n}function nne(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(h=n+1,t.isEmpty(h)&&++h>r||t.tShift[h]=t.options.maxNesting)return!1;p=t.tokens.length,t.tokens.push({type:"dl_open",lines:f=[n,0],level:t.level++}),u=n,a=h;e:for(;;){for(w=!0,_=!1,t.tokens.push({type:"dt_open",lines:[u,u],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(u,u+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[u,u],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[h,0],level:t.level++}),A=t.tight,b=t.ddIndent,g=t.blkIndent,y=t.tShift[a],v=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=i-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||_)&&(w=!1),_=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=y,t.tight=A,t.parentType=v,t.blkIndent=g,t.ddIndent=b,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=h=t.line,h>=r||t.tShift[h]=r||(u=h,t.isEmpty(u))||t.tShift[u]=r)||(t.isEmpty(a)&&a++,a>=r)||t.tShift[a]3)){for(i=!1,a=0,u=f.length;a=n||e.tShift[i]=0&&(e=e.replace(ane,function(u,c){var f;return e.charCodeAt(c)===10?(i=c+1,a=0,u):(f=" ".slice((c-i-a)%4),a=c-i+1,f)})),o=new sne(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};var cne=Cw;function fne(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}var dne=function(t,n){for(var r=t.pos;r=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var a=r-2;a>=0;a--)if(t.pending.charCodeAt(a)!==32){t.pending=t.pending.substring(0,a+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){Aw[e.charCodeAt(0)]=1});var hne=function(t,n){var r,o=t.pos,i=t.posMax;if(t.src.charCodeAt(o)!==92)return!1;if(o++,o=a||t.src.charCodeAt(u+1)!==126||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===126)||f===126||f===32||f===10)return!1;for(o=u+2;ou+3)return t.pos+=o-u,n||(t.pending+=t.src.slice(u,o)),!0;for(t.pos=u+2,i=1;t.pos+1=a||t.src.charCodeAt(u+1)!==43||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===43)||f===43||f===32||f===10)return!1;for(o=u+2;o=a||t.src.charCodeAt(u+1)!==61||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===61)||f===61||f===32||f===10)return!1;for(o=u+2;o=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function O3(e,t){var n=t,r,o,i,a=!0,u=!0,c=e.posMax,f=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n=c&&(a=!1),i=n-t,i>=4?a=u=!1:(o=n=t.options.maxNesting)return!1;for(t.pos=h+r,c=[r];t.pos?@[\]^_`{|}~-])/g,xne=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==126||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos?@[\]^_`{|}~-])/g,Sne=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==94||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos=t.options.maxNesting||(r=v+1,o=L3(t,v),o<0))return!1;if(c=o+1,c=b)return!1;for(v=c,Ene(t,c)?(a=t.linkContent,c=t.pos):a="",v=c;c=b||t.src.charCodeAt(c)!==41)return t.pos=g,!1;c++}else{if(t.linkLevel>0)return!1;for(;c=0?i=t.src.slice(v,c++):c=v-1),i||(typeof i>"u"&&(c=o+1),i=t.src.slice(r,o)),f=t.env.references[Ane(i)],!f)return t.pos=g,!1;a=f.href,u=f.title}return n||(t.pos=r,t.posMax=o,h?t.push({type:"image",src:a,title:u,alt:t.src.substr(r,o-r),level:t.level}):(t.push({type:"link_open",href:a,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=b,!0},kne=Y0,Tne=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;return c+2>=u||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,o=kne(t,c+1),o<0)?!1:(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=o,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,a=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(a)},t.linkLevel--),t.pos=o+1,t.posMax=u,!0)},Dne=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;if(c+3>u||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=c+2;o=u||(o++,r=t.src.slice(c+2,o-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(n||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:a,level:t.level})),t.pos=o,t.posMax=u,!0)},Pne=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],One=Pne,N3=lT,Lne=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,Nne=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/,Mne=function(t,n){var r,o,i,a,u,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(o=r.match(Nne),o?One.indexOf(o[1].toLowerCase())<0||(a=o[0].slice(1,-1),u=N3(a),!t.parser.validateLink(a))?!1:(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0):(i=r.match(Lne),i?(a=i[0].slice(1,-1),u=N3("mailto:"+a),t.parser.validateLink(u)?(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))},mT={};function X0(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var Bne=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Ine=/[^"'=<>`\x00-\x20]+/,$ne=/'[^']*'/,Fne=/"[^"]*"/,Une=X0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Ine)("single_quoted",$ne)("double_quoted",Fne)(),zne=X0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Bne)("attr_value",Une)(),jne=X0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",zne)(),Vne=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Wne=/|/,qne=/<[?].*?[?]>/,Hne=/]*>/,Gne=//,Kne=X0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",jne)("close_tag",Vne)("comment",Wne)("processing",qne)("declaration",Hne)("cdata",Gne)();mT.HTML_TAG_RE=Kne;var Yne=mT.HTML_TAG_RE;function Xne(e){var t=e|32;return t>=97&&t<=122}var Zne=function(t,n){var r,o,i,a=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!Xne(r))||(o=t.src.slice(a).match(Yne),!o)?!1:(n||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)},M3=nT,Qne=vn.has,Jne=vn.isValidEntityCode,B3=vn.fromCodePoint,ere=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,tre=/^&([a-z][a-z0-9]{1,31});/i,nre=function(t,n){var r,o,i,a=t.pos,u=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+10){e.pos=i;return}for(o=0;o=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Z0.prototype.parse=function(e,t,n,r){var o=new ore(e,this,t,n,r);this.tokenize(o)};function sre(e){var t=["vbscript","javascript","file","data"],n=e.trim().toLowerCase();return n=ire.replaceEntities(n),!(n.indexOf(":")!==-1&&t.indexOf(n.split(":")[0])!==-1)}var are=Z0,lre={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},ure={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},cre={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},fre=vn.assign,dre=rte,pre=$te,hre=cne,mre=are,gre=K0,vre={default:lre,full:ure,commonmark:cre};function gT(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function $s(e,t){typeof e!="string"&&(t=e,e="default"),this.inline=new mre,this.block=new hre,this.core=new pre,this.renderer=new dre,this.ruler=new gre,this.options={},this.configure(vre[e]),this.set(t||{})}$s.prototype.set=function(e){fre(this.options,e)};$s.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})};$s.prototype.use=function(e,t){return e(this,t),this};$s.prototype.parse=function(e,t){var n=new gT(this,e,t);return this.core.process(n),n.tokens};$s.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};$s.prototype.parseInline=function(e,t){var n=new gT(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens};$s.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};_w.exports=$s;_w.exports.utils=vn;var yre=_w.exports,wre=yre;Object.defineProperty(tT,"__esModule",{value:!0});var bre=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var yT=function(t){var n=t.markdown,r=t.options;r=r===void 0?{}:r;var o=r.preset,i=I3(r,["preset"]),a=I3(t,["markdown","options"]),u=new Ere.default(o||"default",i),c=u.render(n);return _re.default.createElement("div",bre({},a,{dangerouslySetInnerHTML:{__html:c}}))};yT.propTypes={markdown:yo.string.isRequired,options:yo.shape({preset:yo.oneOf(["default","commonmark","full"]),html:yo.bool,xhtmlOut:yo.bool,breaks:yo.bool,langPrefix:yo.string,linkify:yo.bool,typographer:yo.bool,quotes:yo.string,highlight:yo.func})};var Cre=tT.default=yT;const Are=({message:e,index:t,feedback:n})=>{const r=()=>({width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px",...t%2===0&&{color:"#222",backgroundColor:"#edf5fa"}}),o={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"};return O.jsxs($t,{children:[O.jsxs($t,{spacing:"8px",px:"15px",direction:t%2===0?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[t%2!==0&&O.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:O.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),O.jsx(xw,{sx:{paddingBlock:0,height:"fit-content"},children:O.jsx(Ec,{sx:r,children:O.jsx(Cre,{markdown:e.output})})})]}),t%2===1&&O.jsxs($t,{direction:"row",spacing:"16.6px",marginTop:"8px",marginLeft:7,children:[O.jsx("button",{style:o,onClick:()=>n("like"),children:O.jsx(vh,{title:"Helpful",children:O.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[O.jsx("defs",{children:O.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),O.jsxs("g",{fill:"none",fillRule:"evenodd",children:[O.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:O.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),O.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#nl4n4evbwb)"})]})]})})}),O.jsx("button",{style:o,onClick:()=>n("dislike"),children:O.jsx(vh,{title:"Not Helpful",children:O.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[O.jsx("defs",{children:O.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),O.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[O.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:O.jsx("use",{xlinkHref:"#42svq9gc7a"})}),O.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#fna5jsjxab)"})]})]})})})]})]})},Rre=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,clear:o}=vV();let{messages:i}=yV();const a=D.useRef(null),{loading:u}=pV(),[c,f]=D.useState(!1),[p,h]=D.useState(""),[g,b]=D.useState(),[v,y]=D.useState(""),[A,_]=D.useState(!1),[w,S]=D.useState(!1),[k,T]=D.useState(""),E=()=>{var re;(re=a.current)==null||re.scrollIntoView({behavior:"smooth"})},L=()=>{var le;if(i.length===0)return!1;const re=(le=i[i.length-1])==null?void 0:le.output.trim();return re===""||re===k.trim()};D.useEffect(()=>{E(),L()},[i]);const I=()=>{S(!0),b(Q)},q=()=>{f(!0)},$=()=>{t(!1),S(!1),o()},X=async re=>{const le=re||v.trim();T(le),le&&(r({name:"User",type:"user_message",sender:"user",output:le,content:le},[]),y(""))},ae={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},H={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}},Q=()=>O.jsxs(rt.Fragment,{children:[O.jsxs($t,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[O.jsx(br,{fontSize:"17px",fontWeight:500,children:"End Chat"}),O.jsx(br,{children:"Are you sure you want to end chat?"})]}),O.jsxs($t,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[O.jsx(sl,{fullWidth:!0,variant:"contained",sx:ae,onClick:$,children:"End Chat"}),O.jsx(sl,{sx:ae,onClick:()=>{S(!1)},children:"Cancel"})]})]});return O.jsx($t,{position:"relative",children:O.jsxs($t,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"100%",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",zIndex:999,opacity:0,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-box__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-box__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"}},...n,children:[O.jsx(kee,{onClose:I,onMinimize:t,onDrawerOpen:()=>_(!0)}),O.jsxs($t,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[O.jsx(Dee,{}),O.jsx($ee,{}),i.filter(re=>re.output.trim()!=="").map((re,le)=>O.jsx(Are,{index:le,message:re,feedback:q},le)),O.jsx(Ree,{visible:L()}),i.length===0&&O.jsxs($t,{spacing:1,alignItems:"flex-end",px:"15px",children:[O.jsx(sl,{...H,onClick:()=>window.open("/support/order-status","_blank"),children:"Order Status and Tracking"}),O.jsx(sl,{...H,onClick:()=>window.open("/MyAccount/","_blank"),children:"Recent Orders"}),O.jsx(sl,{...H,onClick:()=>{X("I’m looking for OWC product and shopping advice")},children:"Shopping and Product Advice"})]}),O.jsx("div",{ref:a})]}),O.jsx(Tee,{onMessage:X,value:v,input:y,loading:u}),O.jsx(Lee,{drawer:A||w||c,onClick:()=>{_(!1),S(!1),f(!1)}}),O.jsx(Pee,{drawer:A,onClose:()=>_(!1)}),O.jsx(Oee,{drawer:w,children:g}),O.jsx(Nee,{drawer:c,setDialog:f,buttonDialogStyles:ae,setFeedbackInput:h})]})})},kre=({toggle:e,sx:t,...n})=>O.jsxs($t,{sx:{gap:"13px",bottom:24,left:24,width:"fit-content",height:"55px",zIndex:99999,paddingX:"24px",cursor:"pointer",position:"fixed",bgcolor:"#1470d2",borderRadius:27.5,flexDirection:"row",alignItems:"center",border:"solid 1px #1163bb",outline:"none",opacity:0,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-bubble__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-bubble__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"},...t},...n,onClick:e,children:[O.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:O.jsxs("g",{fill:"none",children:[O.jsxs("g",{children:[O.jsx("path",{d:"M0 0h28.906v35H0z"}),O.jsx("path",{d:"M26.98 24.4a2.89 2.89 0 0 1-2.891 2.891H14.32a.961.961 0 0 0-.634.239l-5.014 4.383v-3.659a.964.964 0 0 0-.964-.963h-2.89a2.89 2.89 0 0 1-2.892-2.89V10.91c0-.768.305-1.503.848-2.044a2.883 2.883 0 0 1 2.043-.847H24.09c.767 0 1.502.304 2.044.847.542.541.846 1.276.846 2.043V24.4zm.516-16.897a4.822 4.822 0 0 0-3.407-1.41h-8.605V3.638c.388-.24.699-.607.847-1.076a1.97 1.97 0 0 0-3.757-1.185 1.965 1.965 0 0 0 .848 2.264v2.452H4.817a4.825 4.825 0 0 0-3.407 1.41A4.825 4.825 0 0 0 0 10.91V24.4a4.818 4.818 0 0 0 4.817 4.819h1.928v4.817a.962.962 0 0 0 1.597.726l6.34-5.543h9.407a4.819 4.819 0 0 0 4.818-4.818V10.91a4.822 4.822 0 0 0-1.411-3.408z",fill:"#FFF",mask:"url(#xk5421jfwb)"})]}),O.jsx("path",{d:"M10.276 15.512a1.97 1.97 0 1 0-3.939 0 1.97 1.97 0 0 0 3.94 0M21.192 13.634a1.97 1.97 0 1 0-1.186 3.758 1.97 1.97 0 0 0 1.186-3.758M19.292 19.615c-4.809 3.165-9.59.134-9.798-.001A1.032 1.032 0 0 0 8.36 21.34c.162.106 2.767 1.78 6.232 1.78 1.789 0 3.806-.444 5.836-1.78a1.033 1.033 0 0 0-1.136-1.725",fill:"#FFF"})]})}),O.jsx(br,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Tre=()=>{const[e,t]=D.useState(!1);return O.jsxs(rt.Fragment,{children:[O.jsx(kre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),O.jsx(Rre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var Dre={VITE_APP_VERSION:"v1.0.0",VITE_APP_API_URL:"10.0.50.21:8888",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Pre=aH([{path:"*",element:O.jsx(Tre,{})}],{basename:Dre.VITE_APP_BASE_NAME});function Ore(){return W0({palette:{common:{black:"#000",white:"#fff"},text:{primary:"#000",secondary:"#333",disabled:"grey"},action:{disabled:"grey"},divider:"grey",background:{paper:"white",default:"white"},primary:{main:"#1470d2"}}})}function Lre(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,color:"#222222",h1:{fontWeight:800,fontSize:"3.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"2.575rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"initial"}}}let tf;(function(e){e.LIGHT="light",e.DARK="dark"})(tf||(tf={}));tf.LIGHT;function Nre(e){return{button:e.palette.mode===tf.DARK?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode===tf.DARK?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${Yn(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Yn(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Yn(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Yn(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Yn(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Yn(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Yn(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Yn(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Yn(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Yn(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Yn(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Yn(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Yn(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Yn(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Yn(e.palette.grey[500],.2)}`}}function Mre(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function Bre(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;default:return e.customShadows.primary}}function wt({variant:e,color:t,theme:n}){const r=Mre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Bre(n,f),h={"&::after":{boxShadow:`0 0 5px 5px ${Yn(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Yn(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...h};case"shadow":return{color:c,backgroundColor:i,boxShadow:p,"&:hover":{boxShadow:"none",backgroundColor:a},...h};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...h};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...h};case"text":default:return{color:a,"&:hover":{color:u,backgroundColor:o},...h}}}function Ire(e){const t=wt({variant:"dashed",color:"primary",theme:e}),n=wt({variant:"shadow",color:"primary",theme:e}),r=wt({variant:"contained",color:"#c00",theme:e}),o={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0},styleOverrides:{root:{borderRadius:7,fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...o,...r},outlined:{...o},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":wt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":wt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":wt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":wt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":wt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":wt({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":wt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":wt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":wt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":wt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":wt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":wt({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:wt({variant:"contained",color:"primary",theme:e}),containedSecondary:wt({variant:"contained",color:"secondary",theme:e}),containedError:wt({variant:"contained",color:"error",theme:e}),containedSuccess:wt({variant:"contained",color:"success",theme:e}),containedInfo:wt({variant:"contained",color:"info",theme:e}),containedWarning:wt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:wt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:wt({variant:"outlined",color:"secondary",theme:e}),outlinedError:wt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:wt({variant:"outlined",color:"success",theme:e}),outlinedInfo:wt({variant:"outlined",color:"info",theme:e}),outlinedWarning:wt({variant:"outlined",color:"warning",theme:e}),textPrimary:wt({variant:"text",color:"primary",theme:e}),textSecondary:wt({variant:"text",color:"secondary",theme:e}),textError:wt({variant:"text",color:"error",theme:e}),textSuccess:wt({variant:"text",color:"success",theme:e}),textInfo:wt({variant:"text",color:"info",theme:e}),textWarning:wt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function $re(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Fre(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function Ure(e){return Da.merge(Ire(e),$re(),Fre())}function wT({children:e}){const t=D.useMemo(()=>Ore(),["light","default"]),n=D.useMemo(()=>Lre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=D.useMemo(()=>Nre(t),[t]),o=D.useMemo(()=>({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:t.palette,customShadows:r,typography:n}),[t,n]),i=W0(o);return i.components=Ure(i),O.jsx(Jk,{injectFirst:!0,children:O.jsxs(YX,{theme:i,children:[O.jsx(wJ,{enableColorScheme:!0}),e]})})}wT.propTypes={children:DG.node};const zre=()=>{const{connect:e,disconnect:t}=wV(),n=Dn(r0);return D.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await Nn.post(`${o}//10.0.50.21:8888/login`,new URLSearchParams({username:"owc-user",password:"owc-user"}))).data.access_token;e({accessToken:`Bearer ${a}`})}catch(o){console.error("Login failed:",o)}})(),()=>{t()}),[e]),O.jsx(wT,{children:O.jsx(gH,{router:Pre})})},jre=window.location.protocol,Vre=`${jre}//10.0.50.21:8888`,Wre=new qR(Vre,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("root");e?hv.createRoot(e).render(O.jsx(rt.StrictMode,{children:O.jsx(Oy.Provider,{value:Wre,children:O.jsx(Iz,{children:O.jsx(zre,{})})})})):console.log("Root element for Chatbot not found")});