From ef7133d0f33af0a873720be743ab13343fbfb111 Mon Sep 17 00:00:00 2001 From: Mark Stephen <168153708+smaduro-owc@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:28:34 +0800 Subject: [PATCH] Update index-GBvC0EIR.js --- index-GBvC0EIR.js | 76 +++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/index-GBvC0EIR.js b/index-GBvC0EIR.js index 84b9f4c..3900315 100644 --- a/index-GBvC0EIR.js +++ b/index-GBvC0EIR.js @@ -22,7 +22,7 @@ function $E(e,t){for(var n=0;n>>1,U=J[me];if(0>>1;meo(ve,re))deo(Ne,ve)?(J[me]=Ne,J[de]=re,me=de):(J[me]=ve,J[te]=re,me=te);else if(deo(Ne,re))J[me]=Ne,J[de]=re,me=de;else break e}}return he}function o(J,he){var re=J.sortIndex-he.sortIndex;return re!==0?re:J.id-he.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,x=!1,y=!1,v=!1,A=typeof setTimeout=="function"?setTimeout:null,b=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 he=n(f);he!==null;){if(he.callback===null)r(f);else if(he.startTime<=J)r(f),he.sortIndex=he.expirationTime,t(c,he);else break;he=n(f)}}function k(J){if(v=!1,S(J),!y)if(n(c)!==null)y=!0,le(D);else{var he=n(f);he!==null&&pe(k,he.startTime-J)}}function D(J,he){y=!1,v&&(v=!1,b(I),I=-1),x=!0;var re=m;try{for(S(he),h=n(c);h!==null&&(!(h.expirationTime>he)||J&&!Y());){var me=h.callback;if(typeof me=="function"){h.callback=null,m=h.priorityLevel;var U=me(h.expirationTime<=he);he=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),S(he)}else r(c);h=n(c)}if(h!==null)var ue=!0;else{var te=n(f);te!==null&&pe(k,te.startTime-he),ue=!1}return ue}finally{h=null,m=re,x=!1}}var E=!1,L=null,I=-1,H=5,$=-1;function Y(){return!(e.unstable_now()-$J||125me?(J.sortIndex=re,t(f,J),n(c)===null&&J===n(f)&&(v?(b(I),I=-1):v=!0,pe(k,re-me))):(J.sortIndex=U,t(c,J),y||x||(y=!0,le(D))),J},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(J){var he=m;return function(){var re=m;m=he;try{return J.apply(this,arguments)}finally{m=re}}}})(JE);QE.exports=JE;var HO=QE.exports;/** + */(function(e){function t(J,he){var re=J.length;J.push(he);e:for(;0>>1,U=J[me];if(0>>1;meo(ye,re))deo(Le,ye)?(J[me]=Le,J[de]=re,me=de):(J[me]=ye,J[te]=re,me=te);else if(deo(Le,re))J[me]=Le,J[de]=re,me=de;else break e}}return he}function o(J,he){var re=J.sortIndex-he.sortIndex;return re!==0?re:J.id-he.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,x=!1,y=!1,v=!1,A=typeof setTimeout=="function"?setTimeout:null,b=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 he=n(f);he!==null;){if(he.callback===null)r(f);else if(he.startTime<=J)r(f),he.sortIndex=he.expirationTime,t(c,he);else break;he=n(f)}}function k(J){if(v=!1,S(J),!y)if(n(c)!==null)y=!0,le(D);else{var he=n(f);he!==null&&pe(k,he.startTime-J)}}function D(J,he){y=!1,v&&(v=!1,b(I),I=-1),x=!0;var re=m;try{for(S(he),h=n(c);h!==null&&(!(h.expirationTime>he)||J&&!Y());){var me=h.callback;if(typeof me=="function"){h.callback=null,m=h.priorityLevel;var U=me(h.expirationTime<=he);he=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),S(he)}else r(c);h=n(c)}if(h!==null)var ue=!0;else{var te=n(f);te!==null&&pe(k,te.startTime-he),ue=!1}return ue}finally{h=null,m=re,x=!1}}var E=!1,L=null,I=-1,H=5,$=-1;function Y(){return!(e.unstable_now()-$J||125me?(J.sortIndex=re,t(f,J),n(c)===null&&J===n(f)&&(v?(b(I),I=-1):v=!0,pe(k,re-me))):(J.sortIndex=U,t(c,J),y||x||(y=!0,le(D))),J},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(J){var he=m;return function(){var re=m;m=he;try{return J.apply(this,arguments)}finally{m=re}}}})(JE);QE.exports=JE;var HO=QE.exports;/** * @license React * react-dom.production.min.js * @@ -30,26 +30,26 @@ function $E(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hv=Object.prototype.hasOwnProperty,GO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yb={},Xb={};function KO(e){return hv.call(Xb,e)?!0:hv.call(Yb,e)?!1:GO.test(e)?Xb[e]=!0:(Yb[e]=!0,!1)}function YO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XO(e,t,n,r){if(t===null||typeof t>"u"||YO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){er[e]=new Sr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];er[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){er[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){er[e]=new Sr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){er[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){er[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){er[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){er[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){er[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var s1=/[\-:]([a-z])/g;function a1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(s1,a1);er[t]=new Sr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(s1,a1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s1,a1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});er.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function l1(e,t,n,r){var o=er.hasOwnProperty(t)?er[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hv=Object.prototype.hasOwnProperty,GO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yb={},Xb={};function KO(e){return hv.call(Xb,e)?!0:hv.call(Yb,e)?!1:GO.test(e)?Xb[e]=!0:(Yb[e]=!0,!1)}function YO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XO(e,t,n,r){if(t===null||typeof t>"u"||YO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){er[e]=new Sr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];er[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){er[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){er[e]=new Sr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){er[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){er[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){er[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){er[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){er[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var s1=/[\-:]([a-z])/g;function a1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(s1,a1);er[t]=new Sr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(s1,a1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s1,a1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});er.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function l1(e,t,n,r){var o=er.hasOwnProperty(t)?er[t]:null;(o!==null?o.type!==0:r||!(2u||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{fg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tc(e):""}function ZO(e){switch(e.tag){case 5:return tc(e.type);case 16:return tc("Lazy");case 13:return tc("Suspense");case 19:return tc("SuspenseList");case 0:case 2:case 15:return e=dg(e.type,!1),e;case 11:return e=dg(e.type.render,!1),e;case 1:return e=dg(e.type,!0),e;default:return""}}function yv(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 mv:return"Profiler";case u1:return"StrictMode";case gv:return"Suspense";case vv: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 c1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case f1:return t=e.displayName||null,t!==null?t:yv(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return yv(e(t))}catch{}}return null}function QO(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 yv(t);case 8:return t===u1?"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 JO(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 yd(e){e._valueTracker||(e._valueTracker=JO(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 Pp(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 wv(e,t){var n=t.checked;return ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qb(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&&l1(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")?bv(e,t.type,n):t.hasOwnProperty("defaultValue")&&bv(e,t.type,Rs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jb(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 bv(e,t,n){(t!=="number"||Pp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nc=Array.isArray;function Al(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wd.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 cc={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},eL=["Webkit","ms","Moz","O"];Object.keys(cc).forEach(function(e){eL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cc[t]=cc[e]})});function cC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cc.hasOwnProperty(e)&&cc[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 tL=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 Ev(e,t){if(t){if(tL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function Cv(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 Av=null;function d1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rv=null,Rl=null,kl=null;function n_(e){if(e=sf(e)){if(typeof Rv!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=_h(t),Rv(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-(dL(e)/pL|0)|0}var xd=64,bd=4194304;function rc(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 Mp(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=rc(u):(i&=a,i!==0&&(r=rc(i)))}else a=n&~o,a!==0?r=rc(a):i!==0&&(r=rc(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 vL(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=dc),f_=" ",d_=!1;function LC(e,t){switch(e){case"keyup":return HL.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 GL(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 KL(e,t){if(fl)return e==="compositionend"||!x1&&LC(e,t)?(e=PC(),op=v1=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=Pp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pp(e.document)}return t}function b1(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 rN(e){var t=FC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$C(n.ownerDocument.documentElement,n)){if(r!==null&&b1(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,Lv=null,hc=null,Nv=!1;function y_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nv||dl==null||dl!==Pp(r)||(r=dl,"selectionStart"in r&&b1(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}),hc&&Oc(hc,r)||(hc=r,r=$p(Lv,"onSelect"),0ml||(e.current=Uv[ml],Uv[ml]=null,ml--)}function Ht(e,t){ml++,Uv[ml]=e.current,e.current=t}var ks={},fr=Ps(ks),Dr=Ps(!1),ga=ks;function $l(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 Up(){Yt(Dr),Yt(fr)}function C_(e,t,n){if(fr.current!==ks)throw Error(ge(168));Ht(fr,t),Ht(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(ge(108,QO(e)||"Unknown",o));return ln({},n,r)}function zp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ks,ga=fr.current,Ht(fr,e),Ht(Dr,Dr.current),!0}function A_(e,t,n){var r=e.stateNode;if(!r)throw Error(ge(169));n?(e=KC(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(fr),Ht(fr,e)):Yt(Dr),Ht(Dr,n)}var Oi=null,Sh=!1,Ag=!1;function YC(e){Oi===null?Oi=[e]:Oi.push(e)}function mN(e){Sh=!0,YC(e)}function Os(){if(!Ag&&Oi!==null){Ag=!0;var e=0,t=Lt;try{var n=Oi;for(Lt=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<I?(H=L,L=null):H=L.sibling;var $=m(b,L,S[I],k);if($===null){L===null&&(L=H);break}e&&L&&$.alternate===null&&t(b,L),w=i($,w,I),E===null?D=$:E.sibling=$,E=$,L=H}if(I===S.length)return n(b,L),en&&Zs(b,I),D;if(L===null){for(;II?(H=L,L=null):H=L.sibling;var Y=m(b,L,$.value,k);if(Y===null){L===null&&(L=H);break}e&&L&&Y.alternate===null&&t(b,L),w=i(Y,w,I),E===null?D=Y:E.sibling=Y,E=Y,L=H}if($.done)return n(b,L),en&&Zs(b,I),D;if(L===null){for(;!$.done;I++,$=S.next())$=h(b,$.value,k),$!==null&&(w=i($,w,I),E===null?D=$:E.sibling=$,E=$);return en&&Zs(b,I),D}for(L=r(b,L);!$.done;I++,$=S.next())$=x(L,b,I,$.value,k),$!==null&&(e&&$.alternate!==null&&L.delete($.key===null?I:$.key),w=i($,w,I),E===null?D=$:E.sibling=$,E=$);return e&&L.forEach(function(se){return t(b,se)}),en&&Zs(b,I),D}function A(b,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 vd:e:{for(var D=S.key,E=w;E!==null;){if(E.key===D){if(D=S.type,D===cl){if(E.tag===7){n(b,E.sibling),w=o(E,S.props.children),w.return=b,b=w;break e}}else if(E.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===ls&&T_(D)===E.type){n(b,E.sibling),w=o(E,S.props),w.ref=$u(b,E,S),w.return=b,b=w;break e}n(b,E);break}else t(b,E);E=E.sibling}S.type===cl?(w=da(S.props.children,b.mode,k,S.key),w.return=b,b=w):(k=dp(S.type,S.key,S.props,null,b.mode,k),k.ref=$u(b,w,S),k.return=b,b=k)}return a(b);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(b,w.sibling),w=o(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=Ng(S,b.mode,k),w.return=b,b=w}return a(b);case ls:return E=S._init,A(b,w,E(S._payload),k)}if(nc(S))return y(b,w,S,k);if(Lu(S))return v(b,w,S,k);kd(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=o(w,S),w.return=b,b=w):(n(b,w),w=Lg(S,b.mode,k),w.return=b,b=w),a(b)):n(b,w)}return A}var Ul=JC(!0),e5=JC(!1),Wp=Ps(null),Hp=null,yl=null,C1=null;function A1(){C1=yl=Hp=null}function R1(e){var t=Wp.current;Yt(Wp),e._currentValue=t}function Vv(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,C1=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(C1!==e)if(e={context:e,memoizedValue:t,next:null},yl===null){if(Hp===null)throw Error(ge(308));yl=e,Hp.dependencies={lanes:0,firstContext:e}}else yl=yl.next=e;return t}var ia=null;function k1(e){ia===null?ia=[e]:ia.push(e)}function t5(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,k1(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 T1(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,k1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ui(e,n)}function sp(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,h1(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 qp(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,x=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,v=u;switch(m=t,x=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(x,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(x,h,m):y,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 x={eventTime:x,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=x,c=h):p=p.next=x,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=kg.transition;kg.transition={};try{e(!1),t()}finally{Lt=n,kg.transition=r}}function w5(){return Po().memoizedState}function wN(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x5(e))b5(t,n);else if(n=t5(e,t,n,r),n!==null){var o=br();Qo(n,e,r,o),_5(n,t,r)}}function xN(e,t,n){var r=Es(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x5(e))b5(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,k1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=t5(e,t,o,r),n!==null&&(o=br(),Qo(n,e,r,o),_5(n,t,r))}}function x5(e){var t=e.alternate;return e===an||t!==null&&t===an}function b5(e,t){mc=Kp=!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,h1(e,n)}}var Yp={readContext:Do,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},bN={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,lp(4194308,4,h5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lp(4194308,4,e,t)},useInsertionEffect:function(e,t){return lp(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=wN.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:O_,useDebugValue:I1,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=O_(!1),t=e[0];return e=yN.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(ge(407));n=n()}else{if(n=t(),jn===null)throw Error(ge(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{fg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tc(e):""}function ZO(e){switch(e.tag){case 5:return tc(e.type);case 16:return tc("Lazy");case 13:return tc("Suspense");case 19:return tc("SuspenseList");case 0:case 2:case 15:return e=dg(e.type,!1),e;case 11:return e=dg(e.type.render,!1),e;case 1:return e=dg(e.type,!0),e;default:return""}}function yv(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 mv:return"Profiler";case u1:return"StrictMode";case gv:return"Suspense";case vv: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 c1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case f1:return t=e.displayName||null,t!==null?t:yv(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return yv(e(t))}catch{}}return null}function QO(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 yv(t);case 8:return t===u1?"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 JO(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 yd(e){e._valueTracker||(e._valueTracker=JO(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 Pp(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 wv(e,t){var n=t.checked;return ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qb(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&&l1(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")?bv(e,t.type,n):t.hasOwnProperty("defaultValue")&&bv(e,t.type,Rs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jb(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 bv(e,t,n){(t!=="number"||Pp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nc=Array.isArray;function Al(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wd.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 cc={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},eL=["Webkit","ms","Moz","O"];Object.keys(cc).forEach(function(e){eL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cc[t]=cc[e]})});function cC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cc.hasOwnProperty(e)&&cc[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 tL=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 Ev(e,t){if(t){if(tL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ve(62))}}function Cv(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 Av=null;function d1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rv=null,Rl=null,kl=null;function n_(e){if(e=sf(e)){if(typeof Rv!="function")throw Error(ve(280));var t=e.stateNode;t&&(t=_h(t),Rv(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-(dL(e)/pL|0)|0}var xd=64,bd=4194304;function rc(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 Mp(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=rc(u):(i&=a,i!==0&&(r=rc(i)))}else a=n&~o,a!==0?r=rc(a):i!==0&&(r=rc(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 vL(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=dc),f_=" ",d_=!1;function LC(e,t){switch(e){case"keyup":return HL.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 GL(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 KL(e,t){if(fl)return e==="compositionend"||!x1&&LC(e,t)?(e=PC(),op=v1=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=Pp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pp(e.document)}return t}function b1(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 rN(e){var t=FC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$C(n.ownerDocument.documentElement,n)){if(r!==null&&b1(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,Lv=null,hc=null,Nv=!1;function y_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nv||dl==null||dl!==Pp(r)||(r=dl,"selectionStart"in r&&b1(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}),hc&&Oc(hc,r)||(hc=r,r=$p(Lv,"onSelect"),0ml||(e.current=Uv[ml],Uv[ml]=null,ml--)}function Ht(e,t){ml++,Uv[ml]=e.current,e.current=t}var ks={},fr=Ps(ks),Dr=Ps(!1),ga=ks;function $l(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 Up(){Yt(Dr),Yt(fr)}function C_(e,t,n){if(fr.current!==ks)throw Error(ve(168));Ht(fr,t),Ht(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(ve(108,QO(e)||"Unknown",o));return ln({},n,r)}function zp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ks,ga=fr.current,Ht(fr,e),Ht(Dr,Dr.current),!0}function A_(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=KC(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(fr),Ht(fr,e)):Yt(Dr),Ht(Dr,n)}var Oi=null,Sh=!1,Ag=!1;function YC(e){Oi===null?Oi=[e]:Oi.push(e)}function mN(e){Sh=!0,YC(e)}function Os(){if(!Ag&&Oi!==null){Ag=!0;var e=0,t=Lt;try{var n=Oi;for(Lt=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<I?(H=L,L=null):H=L.sibling;var $=m(b,L,S[I],k);if($===null){L===null&&(L=H);break}e&&L&&$.alternate===null&&t(b,L),w=i($,w,I),E===null?D=$:E.sibling=$,E=$,L=H}if(I===S.length)return n(b,L),en&&Zs(b,I),D;if(L===null){for(;II?(H=L,L=null):H=L.sibling;var Y=m(b,L,$.value,k);if(Y===null){L===null&&(L=H);break}e&&L&&Y.alternate===null&&t(b,L),w=i(Y,w,I),E===null?D=Y:E.sibling=Y,E=Y,L=H}if($.done)return n(b,L),en&&Zs(b,I),D;if(L===null){for(;!$.done;I++,$=S.next())$=h(b,$.value,k),$!==null&&(w=i($,w,I),E===null?D=$:E.sibling=$,E=$);return en&&Zs(b,I),D}for(L=r(b,L);!$.done;I++,$=S.next())$=x(L,b,I,$.value,k),$!==null&&(e&&$.alternate!==null&&L.delete($.key===null?I:$.key),w=i($,w,I),E===null?D=$:E.sibling=$,E=$);return e&&L.forEach(function(se){return t(b,se)}),en&&Zs(b,I),D}function A(b,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 vd:e:{for(var D=S.key,E=w;E!==null;){if(E.key===D){if(D=S.type,D===cl){if(E.tag===7){n(b,E.sibling),w=o(E,S.props.children),w.return=b,b=w;break e}}else if(E.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===ls&&T_(D)===E.type){n(b,E.sibling),w=o(E,S.props),w.ref=$u(b,E,S),w.return=b,b=w;break e}n(b,E);break}else t(b,E);E=E.sibling}S.type===cl?(w=da(S.props.children,b.mode,k,S.key),w.return=b,b=w):(k=dp(S.type,S.key,S.props,null,b.mode,k),k.ref=$u(b,w,S),k.return=b,b=k)}return a(b);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(b,w.sibling),w=o(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=Ng(S,b.mode,k),w.return=b,b=w}return a(b);case ls:return E=S._init,A(b,w,E(S._payload),k)}if(nc(S))return y(b,w,S,k);if(Lu(S))return v(b,w,S,k);kd(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=o(w,S),w.return=b,b=w):(n(b,w),w=Lg(S,b.mode,k),w.return=b,b=w),a(b)):n(b,w)}return A}var Ul=JC(!0),e5=JC(!1),Wp=Ps(null),Hp=null,yl=null,C1=null;function A1(){C1=yl=Hp=null}function R1(e){var t=Wp.current;Yt(Wp),e._currentValue=t}function Vv(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,C1=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(C1!==e)if(e={context:e,memoizedValue:t,next:null},yl===null){if(Hp===null)throw Error(ve(308));yl=e,Hp.dependencies={lanes:0,firstContext:e}}else yl=yl.next=e;return t}var ia=null;function k1(e){ia===null?ia=[e]:ia.push(e)}function t5(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,k1(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 T1(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,k1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ui(e,n)}function sp(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,h1(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 qp(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,x=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,v=u;switch(m=t,x=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(x,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(x,h,m):y,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 x={eventTime:x,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=x,c=h):p=p.next=x,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=kg.transition;kg.transition={};try{e(!1),t()}finally{Lt=n,kg.transition=r}}function w5(){return Po().memoizedState}function wN(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x5(e))b5(t,n);else if(n=t5(e,t,n,r),n!==null){var o=br();Qo(n,e,r,o),_5(n,t,r)}}function xN(e,t,n){var r=Es(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x5(e))b5(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,k1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=t5(e,t,o,r),n!==null&&(o=br(),Qo(n,e,r,o),_5(n,t,r))}}function x5(e){var t=e.alternate;return e===an||t!==null&&t===an}function b5(e,t){mc=Kp=!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,h1(e,n)}}var Yp={readContext:Do,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},bN={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,lp(4194308,4,h5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lp(4194308,4,e,t)},useInsertionEffect:function(e,t){return lp(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=wN.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:O_,useDebugValue:I1,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=O_(!1),t=e[0];return e=yN.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(ve(407));n=n()}else{if(n=t(),jn===null)throw Error(ve(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=Cv(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;oVl&&(t.flags|=128,r=!0,Fu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return lr(t),null}else 2*bn()-i.renderingStartTime>Vl&&n!==1073741824&&(t.flags|=128,r=!0,Fu(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=bn(),t.sibling=null,n=sn.current,Ht(sn,r?n&1|2:n&1),t):(lr(t),null);case 22:case 23:return V1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(lr(t),t.subtreeFlags&6&&(t.flags|=8192)):lr(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function TN(e,t){switch(S1(t),t.tag){case 1:return Pr(t.type)&&Up(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zl(),Yt(Dr),Yt(fr),O1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return P1(t),null;case 13:if(Yt(sn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(sn),null;case 4:return zl(),null;case 10:return R1(t.type._context),null;case 22:case 23:return V1(),null;case 24:return null;default:return null}}var Dd=!1,cr=!1,DN=typeof WeakSet=="function"?WeakSet:Set,Te=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 Qv(e,t,n){try{n()}catch(r){gn(e,t,r)}}var W_=!1;function PN(e,t){if(Mv=Bp,e=FC(),b1(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 x;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),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bv={focusedElem:e,selectionRange:n},Bp=!1,Te=t;Te!==null;)if(t=Te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Te=e;else for(;Te!==null;){t=Te;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,A=y.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ho(t.type,v),A);b.__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(ge(163))}}catch(k){gn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Te=e;break}Te=t.return}return y=W_,W_=!1,y}function gc(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&&Qv(t,n,i)}o=o.next}while(o!==r)}}function Ah(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 Jv(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[Fv],delete t[pN],delete t[hN])),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 H_(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 e2(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=Fp));else if(r!==4&&(e=e.child,e!==null))for(e2(e,t,n),e=e.sibling;e!==null;)e2(e,t,n),e=e.sibling}function t2(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(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}var Xn=null,qo=!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(yh,n)}catch{}switch(n.tag){case 5:cr||wl(n,t);case 6:var r=Xn,o=qo;Xn=null,os(e,t,n),Xn=r,qo=o,Xn!==null&&(qo?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(qo?(e=Xn,n=n.stateNode,e.nodeType===8?Cg(e.parentNode,n):e.nodeType===1&&Cg(e,n),Dc(e)):Cg(Xn,n.stateNode));break;case 4:r=Xn,o=qo,Xn=n.stateNode.containerInfo,qo=!0,os(e,t,n),Xn=r,qo=o;break;case 0:case 11:case 14:case 15:if(!cr&&(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)&&Qv(n,t,a),o=o.next}while(o!==r)}os(e,t,n);break;case 1:if(!cr&&(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?(cr=(r=cr)||n.memoizedState!==null,os(e,t,n),cr=r):os(e,t,n);break;default:os(e,t,n)}}function q_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DN),t.forEach(function(r){var o=UN.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=bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LN(r/1960))-r,10e?16:e,ms===null)var r=!1;else{if(e=ms,ms=null,Qp=0,bt&6)throw Error(ge(331));var o=bt;for(bt|=4,Te=e.current;Te!==null;){var i=Te,a=i.child;if(Te.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cbn()-z1?fa(e,0):U1|=n),Or(e,t)}function H5(e,t){t===0&&(e.mode&1?(t=bd,bd<<=1,!(bd&130023424)&&(bd=4194304)):t=1);var n=br();e=Ui(e,t),e!==null&&(rf(e,t,n),Or(e,n))}function FN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H5(e,n)}function UN(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(ge(314))}r!==null&&r.delete(t),H5(e,n)}var q5;q5=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,RN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&XC(t,Vp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;up(e,t),e=t.pendingProps;var o=$l(t,fr.current);Dl(t,n),o=N1(null,t,r,e,o,n);var i=M1();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,zp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,T1(t),o.updater=Ch,t.stateNode=o,o._reactInternals=t,Hv(t,r,e,n),t=Kv(null,t,r,!0,i,n)):(t.tag=0,en&&i&&_1(t),wr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(up(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=jN(r),e=Ho(r,e),o){case 0:t=Gv(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,Ho(r.type,e),n);break e}throw Error(ge(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),Gv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),z_(e,t,r,o,n);case 3:e:{if(T5(t),e===null)throw Error(ge(387));r=t.pendingProps,i=t.memoizedState,o=i.element,n5(e,t),qp(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=jl(Error(ge(423)),t),t=j_(e,t,r,n,o);break e}else if(r!==o){o=jl(Error(ge(424)),t),t=j_(e,t,r,n,o);break e}else for(Xr=bs(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(Fl(),r===o){t=zi(e,t,n);break e}wr(e,t,r,n)}t=t.child}return t;case 5:return r5(t),e===null&&jv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Iv(r,o)?a=null:i!==null&&Iv(r,i)&&(t.flags|=32),k5(e,t),wr(e,t,a,n),t.child;case 6:return e===null&&jv(t),null;case 13:return D5(e,t,n);case 4:return D1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ul(t,null,r,n):wr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),F_(e,t,r,o,n);case 7:return wr(e,t,t.pendingProps,n),t.child;case 8:return wr(e,t,t.pendingProps.children,n),t.child;case 12:return wr(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,Ht(Wp,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),Vv(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(ge(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Vv(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}wr(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,wr(e,t,r,n),t.child;case 14:return r=t.type,o=Ho(r,t.pendingProps),o=Ho(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:Ho(r,o),up(e,t),t.tag=1,Pr(r)?(e=!0,zp(t)):e=!1,Dl(t,n),S5(t,r,o),Hv(t,r,o,n),Kv(null,t,r,!0,e,n);case 19:return P5(e,t,n);case 22:return R5(e,t,n)}throw Error(ge(156,t.tag))};function G5(e,t){return xC(e,t)}function zN(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 zN(e,t,n,r)}function H1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jN(e){if(typeof e=="function")return H1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c1)return 11;if(e===f1)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 dp(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 u1:a=8,o|=8;break;case mv:return e=Ao(12,n,t,o|2),e.elementType=mv,e.lanes=i,e;case gv:return e=Ao(13,n,t,o),e.elementType=gv,e.lanes=i,e;case vv:return e=Ao(19,n,t,o),e.elementType=vv,e.lanes=i,e;case rC:return kh(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 c1:a=11;break e;case f1:a=14;break e;case ls:a=16,r=null;break e}throw Error(ge(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 kh(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=rC,e.lanes=n,e.stateNode={isHidden:!1},e}function Lg(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Ng(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 VN(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=hg(0),this.expirationTimes=hg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function q1(e,t,n,r,o,i,a,u,c){return e=new VN(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},T1(i),e}function WN(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(),ZE.exports=ro;var Lh=ZE.exports;const bl=t1(Lh),YN=$E({__proto__:null,default:bl},[Lh]);var eS=Lh;pv.createRoot=eS.createRoot,pv.hydrateRoot=eS.hydrateRoot;var Q5={};function XN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var ZN=XN,rt=ZN;function QN(e){return!!e&&typeof e.then=="function"}var Kt=QN;function JN(e,t){if(e!=null)return e;throw rt(t??"Got unexpected null or undefined")}var tn=JN;function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nh{getValue(){throw rt("BaseLoadable")}toPromise(){throw rt("BaseLoadable")}valueMaybe(){throw rt("BaseLoadable")}valueOrThrow(){throw rt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw rt("BaseLoadable")}promiseOrThrow(){throw rt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw rt("BaseLoadable")}errorOrThrow(){throw rt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw rt("BaseLoadable")}}class eM extends Nh{constructor(t){super(),Je(this,"state","hasValue"),Je(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)?ba(n):Wl(n)?n:lf(n)}catch(n){return Kt(n)?ba(n.next(()=>this.map(t))):Mh(n)}}}class tM extends Nh{constructor(t){super(),Je(this,"state","hasError"),Je(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 Nh{constructor(t){super(),Je(this,"state","loading"),Je(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 ba(this.contents.then(n=>{const r=t(n);if(Wl(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 eM(e))}function Mh(e){return Object.freeze(new tM(e))}function ba(e){return Object.freeze(new J5(e))}function eA(){return Object.freeze(new J5(new Promise(()=>{})))}function nM(e){return e.every(t=>t.state==="hasValue")?lf(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Mh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):ba(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=>Wl(o)?o:Kt(o)?ba(o):lf(o)),r=nM(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Wl(e){return e instanceof Nh}const rM={of:e=>Kt(e)?ba(e):Wl(e)?e:lf(e),error:e=>Mh(e),loading:()=>eA(),all:tA,isLoadable:Wl};var ka={loadableWithValue:lf,loadableWithError:Mh,loadableWithPromise:ba,loadableLoading:eA,loadableAll:tA,isLoadable:Wl,RecoilLoadable:rM},oM=ka.loadableWithValue,iM=ka.loadableWithError,sM=ka.loadableWithPromise,aM=ka.loadableLoading,lM=ka.loadableAll,uM=ka.isLoadable,cM=ka.RecoilLoadable,uf=Object.freeze({__proto__:null,loadableWithValue:oM,loadableWithError:iM,loadableWithPromise:sM,loadableLoading:aM,loadableAll:lM,isLoadable:uM,RecoilLoadable:cM});const s2={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 fM(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 rt(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function dM(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 pM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(fM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{s2.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),dM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{s2.RECOIL_GKS_ENABLED.add(n)})}))}pM();var au=s2;function Bh(e){return au.RECOIL_GKS_ENABLED.has(e)}Bh.setPass=e=>{au.RECOIL_GKS_ENABLED.add(e)};Bh.setFail=e=>{au.RECOIL_GKS_ENABLED.delete(e)};Bh.clear=()=>{au.RECOIL_GKS_ENABLED.clear()};var Ft=Bh;function hM(e,t,{error:n}={}){return null}var mM=hM,X1=mM,Mg,Bg,Ig;const gM=(Mg=et.createMutableSource)!==null&&Mg!==void 0?Mg:et.unstable_createMutableSource,nA=(Bg=et.useMutableSource)!==null&&Bg!==void 0?Bg:et.unstable_useMutableSource,rA=(Ig=et.useSyncExternalStore)!==null&&Ig!==void 0?Ig:et.unstable_useSyncExternalStore;function vM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=et.__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 yM(){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 wM(){return!1}var cf={createMutableSource:gM,useMutableSource:nA,useSyncExternalStore:rA,currentRendererSupportsUseSyncExternalStore:vM,reactMode:yM,isFastRefreshEnabled:wM};class Z1{constructor(t){Je(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class oA extends Z1{}class iA extends Z1{}function xM(e){return e instanceof oA||e instanceof iA}var Ih={AbstractRecoilValue:Z1,RecoilState:oA,RecoilValueReadOnly:iA,isRecoilValue:xM},bM=Ih.AbstractRecoilValue,_M=Ih.RecoilState,SM=Ih.RecoilValueReadOnly,EM=Ih.isRecoilValue,Hl=Object.freeze({__proto__:null,AbstractRecoilValue:bM,RecoilState:_M,RecoilValueReadOnly:SM,isRecoilValue:EM});function CM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var $h=CM;class sA{}const AM=new sA,_a=new Map,Q1=new Map;function RM(e){return $h(e,t=>tn(Q1.get(t)))}function kM(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 Pg(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var EN=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(){Zp||(Zp=!0,n2=r),qv(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(){qv(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){qv(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 EN;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=$N.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 CN=Wi.ReactCurrentOwner,Tr=!1;function wr(e,t,n,r){t.child=e===null?e5(t,null,n,r):Ul(t,e.child,n,r)}function F_(e,t,n,r,o){n=n.render;var i=t.ref;return Dl(t,o),r=N1(e,t,n,r,i,o),n=M1(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zi(e,t,o)):(en&&n&&_1(t),t.flags|=1,wr(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=dp(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 Gv(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},Ht(xl,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,Ht(xl,Gr),Gr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ht(xl,Gr),Gr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ht(xl,Gr),Gr|=r;return wr(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 Gv(e,t,n,r,o){var i=Pr(n)?ga:fr.current;return i=$l(t,i),Dl(t,o),n=N1(e,t,n,r,i,o),r=M1(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zi(e,t,o)):(en&&r&&_1(t),t.flags|=1,wr(e,t,n,o),t.child)}function z_(e,t,n,r,o){if(Pr(n)){var i=!0;zp(t)}else i=!1;if(Dl(t,o),t.stateNode===null)up(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:fr.current,f=$l(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 m=t.memoizedState;a.state=m,qp(t,r,a,o),c=t.memoizedState,u!==r||m!==c||Dr.current||us?(typeof p=="function"&&(Wv(t,n,p,r),c=t.memoizedState),(u=us||N_(t,n,u,r,m,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:Ho(t.type,u),a.props=f,h=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Do(c):(c=Pr(n)?ga:fr.current,c=$l(t,c));var x=n.getDerivedStateFromProps;(p=typeof x=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==h||m!==c)&&M_(t,a,r,c),us=!1,m=t.memoizedState,a.state=m,qp(t,r,a,o);var y=t.memoizedState;u!==h||m!==y||Dr.current||us?(typeof x=="function"&&(Wv(t,n,x,r),y=t.memoizedState),(f=us||N_(t,n,f,r,m,y,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Kv(e,t,n,r,i,o)}function Kv(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,CN.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ul(t,e.child,null,i),t.child=Ul(t,null,u,i)):wr(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),D1(e,t.containerInfo)}function j_(e,t,n,r,o){return Fl(),E1(o),t.flags|=256,wr(e,t,n,r),t.child}var Yv={dehydrated:null,treeContext:null,retryLane:0};function Xv(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),Ht(sn,o&1),e===null)return jv(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=kh(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=Xv(n),t.memoizedState=Yv,e):$1(t,a));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return AN(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?Xv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Yv,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 $1(e,t){return t=kh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Td(e,t,n,r){return r!==null&&E1(r),Ul(t,e.child,null,n),e=$1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AN(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Pg(Error(ve(422))),Td(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kh({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&&Ul(t,e.child,null,a),t.child.memoizedState=Xv(a),t.memoizedState=Yv,i);if(!(t.mode&1))return Td(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(ve(419)),r=Pg(i,r,void 0),Td(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 W1(),r=Pg(Error(ve(421))),Td(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=FN.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Xr=bs(o.nextSibling),Zr=t,en=!0,Yo=null,e!==null&&(bo[_o++]=Ni,bo[_o++]=Mi,bo[_o++]=va,Ni=e.id,Mi=e.overflow,va=t),t=$1(t,r.children),t.flags|=4096,t)}function V_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vv(e.return,t,n)}function Og(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(wr(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(Ht(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&&Gp(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Og(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&&Gp(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Og(t,!0,n,null,i);break;case"together":Og(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function up(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(ve(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 RN(e,t,n){switch(t.tag){case 3:T5(t),Fl();break;case 5:r5(t);break;case 1:Pr(t.type)&&zp(t);break;case 4:D1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ht(Wp,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ht(sn,sn.current&1),t.flags|=128,null):n&t.child.childLanes?D5(e,t,n):(Ht(sn,sn.current&1),e=zi(e,t,n),e!==null?e.sibling:null);Ht(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),Ht(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,Zv,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}};Zv=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=wv(e,o),r=wv(e,r),i=[];break;case"select":o=ln({},o,{value:void 0}),r=ln({},r,{value:void 0}),i=[];break;case"textarea":o=_v(e,o),r=_v(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fp)}Ev(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 Fu(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 lr(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 kN(e,t,n){var r=t.pendingProps;switch(S1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lr(t),null;case 1:return Pr(t.type)&&Up(),lr(t),null;case 3:return r=t.stateNode,zl(),Yt(Dr),Yt(fr),O1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yo!==null&&(i2(Yo),Yo=null))),Zv(e,t),lr(t),null;case 5:P1(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(ve(166));return lr(t),null}if(e=sa(pi.current),Rd(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=Cv(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;oVl&&(t.flags|=128,r=!0,Fu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return lr(t),null}else 2*bn()-i.renderingStartTime>Vl&&n!==1073741824&&(t.flags|=128,r=!0,Fu(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=bn(),t.sibling=null,n=sn.current,Ht(sn,r?n&1|2:n&1),t):(lr(t),null);case 22:case 23:return V1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(lr(t),t.subtreeFlags&6&&(t.flags|=8192)):lr(t),null;case 24:return null;case 25:return null}throw Error(ve(156,t.tag))}function TN(e,t){switch(S1(t),t.tag){case 1:return Pr(t.type)&&Up(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zl(),Yt(Dr),Yt(fr),O1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return P1(t),null;case 13:if(Yt(sn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ve(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(sn),null;case 4:return zl(),null;case 10:return R1(t.type._context),null;case 22:case 23:return V1(),null;case 24:return null;default:return null}}var Dd=!1,cr=!1,DN=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 Qv(e,t,n){try{n()}catch(r){gn(e,t,r)}}var W_=!1;function PN(e,t){if(Mv=Bp,e=FC(),b1(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 x;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),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bv={focusedElem:e,selectionRange:n},Bp=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,A=y.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ho(t.type,v),A);b.__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(ve(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 y=W_,W_=!1,y}function gc(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&&Qv(t,n,i)}o=o.next}while(o!==r)}}function Ah(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 Jv(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[Fv],delete t[pN],delete t[hN])),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 H_(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 e2(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=Fp));else if(r!==4&&(e=e.child,e!==null))for(e2(e,t,n),e=e.sibling;e!==null;)e2(e,t,n),e=e.sibling}function t2(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(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}var Xn=null,qo=!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(yh,n)}catch{}switch(n.tag){case 5:cr||wl(n,t);case 6:var r=Xn,o=qo;Xn=null,os(e,t,n),Xn=r,qo=o,Xn!==null&&(qo?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(qo?(e=Xn,n=n.stateNode,e.nodeType===8?Cg(e.parentNode,n):e.nodeType===1&&Cg(e,n),Dc(e)):Cg(Xn,n.stateNode));break;case 4:r=Xn,o=qo,Xn=n.stateNode.containerInfo,qo=!0,os(e,t,n),Xn=r,qo=o;break;case 0:case 11:case 14:case 15:if(!cr&&(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)&&Qv(n,t,a),o=o.next}while(o!==r)}os(e,t,n);break;case 1:if(!cr&&(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?(cr=(r=cr)||n.memoizedState!==null,os(e,t,n),cr=r):os(e,t,n);break;default:os(e,t,n)}}function q_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DN),t.forEach(function(r){var o=UN.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=bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LN(r/1960))-r,10e?16:e,ms===null)var r=!1;else{if(e=ms,ms=null,Qp=0,bt&6)throw Error(ve(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;cbn()-z1?fa(e,0):U1|=n),Or(e,t)}function H5(e,t){t===0&&(e.mode&1?(t=bd,bd<<=1,!(bd&130023424)&&(bd=4194304)):t=1);var n=br();e=Ui(e,t),e!==null&&(rf(e,t,n),Or(e,n))}function FN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H5(e,n)}function UN(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(ve(314))}r!==null&&r.delete(t),H5(e,n)}var q5;q5=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,RN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&XC(t,Vp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;up(e,t),e=t.pendingProps;var o=$l(t,fr.current);Dl(t,n),o=N1(null,t,r,e,o,n);var i=M1();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,zp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,T1(t),o.updater=Ch,t.stateNode=o,o._reactInternals=t,Hv(t,r,e,n),t=Kv(null,t,r,!0,i,n)):(t.tag=0,en&&i&&_1(t),wr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(up(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=jN(r),e=Ho(r,e),o){case 0:t=Gv(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,Ho(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),Gv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),z_(e,t,r,o,n);case 3:e:{if(T5(t),e===null)throw Error(ve(387));r=t.pendingProps,i=t.memoizedState,o=i.element,n5(e,t),qp(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=jl(Error(ve(423)),t),t=j_(e,t,r,n,o);break e}else if(r!==o){o=jl(Error(ve(424)),t),t=j_(e,t,r,n,o);break e}else for(Xr=bs(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(Fl(),r===o){t=zi(e,t,n);break e}wr(e,t,r,n)}t=t.child}return t;case 5:return r5(t),e===null&&jv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Iv(r,o)?a=null:i!==null&&Iv(r,i)&&(t.flags|=32),k5(e,t),wr(e,t,a,n),t.child;case 6:return e===null&&jv(t),null;case 13:return D5(e,t,n);case 4:return D1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ul(t,null,r,n):wr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),F_(e,t,r,o,n);case 7:return wr(e,t,t.pendingProps,n),t.child;case 8:return wr(e,t,t.pendingProps.children,n),t.child;case 12:return wr(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,Ht(Wp,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),Vv(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(ve(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Vv(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}wr(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,wr(e,t,r,n),t.child;case 14:return r=t.type,o=Ho(r,t.pendingProps),o=Ho(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:Ho(r,o),up(e,t),t.tag=1,Pr(r)?(e=!0,zp(t)):e=!1,Dl(t,n),S5(t,r,o),Hv(t,r,o,n),Kv(null,t,r,!0,e,n);case 19:return P5(e,t,n);case 22:return R5(e,t,n)}throw Error(ve(156,t.tag))};function G5(e,t){return xC(e,t)}function zN(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 zN(e,t,n,r)}function H1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jN(e){if(typeof e=="function")return H1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c1)return 11;if(e===f1)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 dp(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 u1:a=8,o|=8;break;case mv:return e=Ao(12,n,t,o|2),e.elementType=mv,e.lanes=i,e;case gv:return e=Ao(13,n,t,o),e.elementType=gv,e.lanes=i,e;case vv:return e=Ao(19,n,t,o),e.elementType=vv,e.lanes=i,e;case rC:return kh(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 c1:a=11;break e;case f1:a=14;break e;case ls:a=16,r=null;break e}throw Error(ve(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 kh(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=rC,e.lanes=n,e.stateNode={isHidden:!1},e}function Lg(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Ng(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 VN(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=hg(0),this.expirationTimes=hg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function q1(e,t,n,r,o,i,a,u,c){return e=new VN(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},T1(i),e}function WN(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(),ZE.exports=ro;var Lh=ZE.exports;const bl=t1(Lh),YN=$E({__proto__:null,default:bl},[Lh]);var eS=Lh;pv.createRoot=eS.createRoot,pv.hydrateRoot=eS.hydrateRoot;var Q5={};function XN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var ZN=XN,rt=ZN;function QN(e){return!!e&&typeof e.then=="function"}var Kt=QN;function JN(e,t){if(e!=null)return e;throw rt(t??"Got unexpected null or undefined")}var tn=JN;function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nh{getValue(){throw rt("BaseLoadable")}toPromise(){throw rt("BaseLoadable")}valueMaybe(){throw rt("BaseLoadable")}valueOrThrow(){throw rt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw rt("BaseLoadable")}promiseOrThrow(){throw rt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw rt("BaseLoadable")}errorOrThrow(){throw rt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw rt("BaseLoadable")}}class eM extends Nh{constructor(t){super(),Je(this,"state","hasValue"),Je(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)?ba(n):Wl(n)?n:lf(n)}catch(n){return Kt(n)?ba(n.next(()=>this.map(t))):Mh(n)}}}class tM extends Nh{constructor(t){super(),Je(this,"state","hasError"),Je(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 Nh{constructor(t){super(),Je(this,"state","loading"),Je(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 ba(this.contents.then(n=>{const r=t(n);if(Wl(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 eM(e))}function Mh(e){return Object.freeze(new tM(e))}function ba(e){return Object.freeze(new J5(e))}function eA(){return Object.freeze(new J5(new Promise(()=>{})))}function nM(e){return e.every(t=>t.state==="hasValue")?lf(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Mh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):ba(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=>Wl(o)?o:Kt(o)?ba(o):lf(o)),r=nM(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Wl(e){return e instanceof Nh}const rM={of:e=>Kt(e)?ba(e):Wl(e)?e:lf(e),error:e=>Mh(e),loading:()=>eA(),all:tA,isLoadable:Wl};var ka={loadableWithValue:lf,loadableWithError:Mh,loadableWithPromise:ba,loadableLoading:eA,loadableAll:tA,isLoadable:Wl,RecoilLoadable:rM},oM=ka.loadableWithValue,iM=ka.loadableWithError,sM=ka.loadableWithPromise,aM=ka.loadableLoading,lM=ka.loadableAll,uM=ka.isLoadable,cM=ka.RecoilLoadable,uf=Object.freeze({__proto__:null,loadableWithValue:oM,loadableWithError:iM,loadableWithPromise:sM,loadableLoading:aM,loadableAll:lM,isLoadable:uM,RecoilLoadable:cM});const s2={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 fM(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 rt(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function dM(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 pM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(fM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{s2.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),dM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{s2.RECOIL_GKS_ENABLED.add(n)})}))}pM();var au=s2;function Bh(e){return au.RECOIL_GKS_ENABLED.has(e)}Bh.setPass=e=>{au.RECOIL_GKS_ENABLED.add(e)};Bh.setFail=e=>{au.RECOIL_GKS_ENABLED.delete(e)};Bh.clear=()=>{au.RECOIL_GKS_ENABLED.clear()};var Ft=Bh;function hM(e,t,{error:n}={}){return null}var mM=hM,X1=mM,Mg,Bg,Ig;const gM=(Mg=et.createMutableSource)!==null&&Mg!==void 0?Mg:et.unstable_createMutableSource,nA=(Bg=et.useMutableSource)!==null&&Bg!==void 0?Bg:et.unstable_useMutableSource,rA=(Ig=et.useSyncExternalStore)!==null&&Ig!==void 0?Ig:et.unstable_useSyncExternalStore;function vM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=et.__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 yM(){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 wM(){return!1}var cf={createMutableSource:gM,useMutableSource:nA,useSyncExternalStore:rA,currentRendererSupportsUseSyncExternalStore:vM,reactMode:yM,isFastRefreshEnabled:wM};class Z1{constructor(t){Je(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class oA extends Z1{}class iA extends Z1{}function xM(e){return e instanceof oA||e instanceof iA}var Ih={AbstractRecoilValue:Z1,RecoilState:oA,RecoilValueReadOnly:iA,isRecoilValue:xM},bM=Ih.AbstractRecoilValue,_M=Ih.RecoilState,SM=Ih.RecoilValueReadOnly,EM=Ih.isRecoilValue,Hl=Object.freeze({__proto__:null,AbstractRecoilValue:bM,RecoilState:_M,RecoilValueReadOnly:SM,isRecoilValue:EM});function CM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var $h=CM;class sA{}const AM=new sA,_a=new Map,Q1=new Map;function RM(e){return $h(e,t=>tn(Q1.get(t)))}function kM(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 TM(e){au.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&kM(e.key),_a.set(e.key,e);const t=e.set==null?new Hl.RecoilValueReadOnly(e.key):new Hl.RecoilState(e.key);return Q1.set(e.key,t),t}class aA extends Error{}function DM(e){const t=_a.get(e);if(t==null)throw new aA(`Missing definition for RecoilValue: "${e}""`);return t}function PM(e){return _a.get(e)}const th=new Map;function OM(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(),th.delete(e)}}function LM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?th.delete(e):th.set(e,t))}function lA(e){return th.get(e)}var Ur={nodes:_a,recoilValues:Q1,registerNode:TM,getNode:DM,getNodeMaybe:PM,deleteNodeConfigIfPossible:OM,setConfigDeletionHandler:LM,getConfigDeletionHandler:lA,recoilValuesForKeys:RM,NodeMissingError:aA,DefaultValue:sA,DEFAULT_VALUE:AM};function NM(e,t){t()}var MM={enqueueExecution:NM};function BM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var IM=BM(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,xe=0,we=W.length;xe>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},x=function(F){return 1<=ce;)we[Ue--]=we[Ue];return we[ce]=xe,we}for(var Be=0,$e=0,Ge=new Array(Ee+1);Be>>=1;return Ue[ce]=xe,Y(F,$e+1,Ue)},q=function(F,ce,xe,we){for(var Ee=new Array(ce-1),Ue=0,Be=0,$e=0,Ge=we.length;$e1?H(F,this.hash,Ge):Ge[0]}var St=we();return St===c?this:(++Be.value,Q(F,xe,this.hash,this,Ee,I(F,Ee,Ue,St)))},re=function(F,ce,xe,we,Ee,Ue,Be){var $e=this.mask,Ge=this.children,St=m(xe,Ee),kn=x(St),zt=y($e,kn),Tn=$e&kn,fn=Tn?Ge[zt]:E,so=fn._modify(F,ce,xe+r,we,Ee,Ue,Be);if(fn===so)return this;var or=pe(F,this),N=$e,B=void 0;if(Tn&&L(so)){if(N&=~kn,!N)return E;if(Ge.length<=2&&se(Ge[zt^1]))return Ge[zt^1];B=A(or,zt,Ge)}else if(!Tn&&!L(so)){if(Ge.length>=a)return K(F,St,so,$e,Ge);N|=kn,B=b(or,zt,so,Ge)}else B=v(or,zt,so,Ge);return or?(this.mask=N,this.children=B,this):$(F,N,B)},me=function(F,ce,xe,we,Ee,Ue,Be){var $e=this.size,Ge=this.children,St=m(xe,Ee),kn=Ge[St],zt=(kn||E)._modify(F,ce,xe+r,we,Ee,Ue,Be);if(kn===zt)return this;var Tn=pe(F,this),fn=void 0;if(L(kn)&&!L(zt))++$e,fn=v(Tn,St,zt,Ge);else if(!L(kn)&&L(zt)){if(--$e,$e<=u)return q(F,$e,St,Ge);fn=v(Tn,St,E,Ge)}else fn=v(Tn,St,zt,Ge);return Tn?(this.size=$e,this.children=fn,this):Y(F,$e,fn)};E._modify=function(W,F,ce,xe,we,Ee,Ue){var Be=xe();return Be===c?E:(++Ue.value,I(W,we,Ee,Be))};function U(W,F,ce,xe,we){this._editable=W,this._edit=F,this._config=ce,this._root=xe,this._size=we}U.prototype.setTree=function(W,F){return this._editable?(this._root=W,this._size=F,this):W===this._root?this:new U(this._editable,this._edit,this._config,W,F)};var ue=n.tryGetHash=function(W,F,ce,xe){for(var we=xe._root,Ee=0,Ue=xe._config.keyEq;;)switch(we.type){case w:return Ue(ce,we.key)?we.value:W;case S:{if(F===we.hash)for(var Be=we.children,$e=0,Ge=Be.length;$e{n.set(o,t(r,o))}),n}var nh=VM;function WM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function HM(e){return{nodeDeps:nh(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:nh(e.nodeToNodeSubscriptions,t=>new Set(t))}}function $g(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:wc(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=wc(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 qM(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($g(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);$g(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);$g(e,t,m,f)}}}var ff={cloneGraph:HM,graph:WM,saveDepsToStore:qM};let GM=0;const KM=()=>GM++;let YM=0;const XM=()=>YM++;let ZM=0;const QM=()=>ZM++;var Fh={getNextTreeStateVersion:KM,getNextStoreID:XM,getNextComponentID:QM};const{persistentMap:tS}=zM,{graph:JM}=ff,{getNextTreeStateVersion:uA}=Fh;function cA(){const e=uA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:tS(),nonvalidatedAtoms:tS()}}function eB(){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,JM()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var fA={makeEmptyTreeState:cA,makeEmptyStoreState:eB,getNextTreeStateVersion:uA};class dA{}function tB(){return new dA}var Uh={RetentionZone:dA,retentionZone:tB};function nB(e,t){const n=new Set(e);return n.add(t),n}function rB(e,t){const n=new Set(e);return n.delete(t),n}function oB(e,t,n){const r=new Map(e);return r.set(t,n),r}function iB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function sB(e,t){const n=new Map(e);return n.delete(t),n}function aB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var pA={setByAddingToSet:nB,setByDeletingFromSet:rB,mapBySettingInMap:oB,mapByUpdatingInMap:iB,mapByDeletingFromMap:sB,mapByDeletingMultipleFromMap:aB};function*lB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ty=lB;function uB(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=uB;const{getNode:df,getNodeMaybe:cB,recoilValuesForKeys:nS}=Ur,{RetentionZone:rS}=Uh,{setByAddingToSet:fB}=pA,dB=Object.freeze(new Set);class pB extends Error{}function hB(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 ny(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=df(n),a=hB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function mB(e,t,n){ny(e,e.getState().currentTree,t,n)}function gB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function vB(e,t,n){return ny(e,t,n,"get"),df(n).get(e,t)}function mA(e,t,n){return df(n).peek(e,t)}function yB(e,t,n){var r;const o=cB(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:fB(e.dirtyAtoms,t)}}function wB(e,t,n,r){const o=df(n);if(o.set==null)throw new pB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return ny(e,t,n,"set"),i(e,t,r)}function xB(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(ty(gA(e,t,new Set([n])),c=>c!==n)),components:$h((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:dB;for(const f of c)r.has(f)||o.push(f)}return r}var Ls={getNodeLoadable:vB,peekNodeLoadable:mA,setNodeValue:wB,initializeNode:mB,cleanUpNode:gB,setUnvalidatedAtomValue_DEPRECATED:yB,peekNodeInfo:xB,getDownstreamNodes:gA};let vA=null;function bB(e){vA=e}function _B(){var e;(e=vA)===null||e===void 0||e()}var yA={setInvalidateMemoizedSnapshot:bB,invalidateMemoizedSnapshot:_B};const{getDownstreamNodes:SB,getNodeLoadable:wA,setNodeValue:EB}=Ls,{getNextComponentID:CB}=Fh,{getNode:AB,getNodeMaybe:xA}=Ur,{DefaultValue:ry}=Ur,{reactMode:RB}=cf,{AbstractRecoilValue:kB,RecoilState:TB,RecoilValueReadOnly:DB,isRecoilValue:PB}=Hl,{invalidateMemoizedSnapshot:OB}=yA;function LB(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 NB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof ry?n.delete(o):n.set(o,r)}),n}function MB(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 rt(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function BB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=MB(e,t,o,i),u=EB(e,t,o.key,a);for(const[c,f]of u.entries())a2(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;a2(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=xA(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 X1(`Unknown action ${n.type}`)}function a2(e,t,n){n.state==="hasValue"&&n.contents instanceof ry?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function bA(e,t){e.replaceState(n=>{const r=_A(n);for(const o of t)BB(e,r,o);return SA(e,r),OB(),r})}function zh(e,t){if(xc.length){const n=xc[xc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else bA(e,[t])}const xc=[];function IB(){const e=new Map;return xc.push(e),()=>{for(const[t,n]of e)bA(t,n);xc.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=SB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=xA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function EA(e,t,n){zh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function $B(e,t,n){if(n instanceof ry)return EA(e,t,n);zh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function FB(e,t){zh(e,{type:"markModified",recoilValue:t})}function UB(e,t,n){zh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function zB(e,{key:t},n,r=null){const o=CB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=RB();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 jB(e,t){var n;const{currentTree:r}=e.getState(),o=AB(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var wi={RecoilValueReadOnly:DB,AbstractRecoilValue:kB,RecoilState:TB,getRecoilValueAsLoadable:LB,setRecoilValue:EA,setRecoilValueLoadable:$B,markRecoilValueModified:FB,setUnvalidatedRecoilValue:UB,subscribeToRecoilValue:zB,isRecoilValue:PB,applyAtomValueWrites:NB,batchStart:IB,writeLoadableToTreeState:a2,invalidateDownstreams:SA,copyTreeState:_A,refreshRecoilValue:jB};function VB(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 WB=VB;const{cleanUpNode:HB}=Ls,{deleteNodeConfigIfPossible:qB,getNode:CA}=Ur,{RetentionZone:AA}=Uh,GB=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 ZB(n,a))o.add(u);else o.add(a);const i=KB(e,o);for(const a of i)XB(e,r,a)}function KB(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=YB(e,r,c,i,a);for(const y of p){var h;if(CA(y).retainedBy==="recoilRoot"){a.add(y);continue}if(((h=n.retention.referenceCounts.get(y))!==null&&h!==void 0?h:0)>0){a.add(y);continue}if(TA(y).some(A=>n.retention.referenceCounts.get(A))){a.add(y);continue}const v=o.nodeToNodeSubscriptions.get(y);if(v&&WB(v,A=>a.has(A))){a.add(y);continue}i.add(y),f.add(y)}const m=new Set;for(const y of f)for(const v of(x=o.nodeDeps.get(y))!==null&&x!==void 0?x:RA){var x;i.has(v)||m.add(v)}m.size&&u(m)}}function YB(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 XB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;HB(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)}qB(n)}function ZB(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 QB(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):kA(e,new Set([t]))}function JB(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),QB(e,t)}function eI(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();kA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function tI(e){return e===void 0?"recoilRoot":e}var Ta={SUSPENSE_TIMEOUT_MS:GB,updateRetainCount:JB,updateRetainCountToZero:DA,releaseScheduledRetainablesNow:eI,retainedByOptionWithDefault:tI};const{unstable_batchedUpdates:nI}=bl;var rI={unstable_batchedUpdates:nI};const{unstable_batchedUpdates:oI}=rI;var iI={unstable_batchedUpdates:oI};const{batchStart:sI}=wi,{unstable_batchedUpdates:aI}=iI;let oy=aI||(e=>e());const lI=e=>{oy=e},uI=()=>oy,cI=e=>{oy(()=>{let t=()=>{};try{t=sI(),e()}finally{t()}})};var jh={getBatcher:uI,setBatcher:lI,batchUpdates:cI};function*fI(e){for(const t of e)for(const n of t)yield n}var PA=fI;const OA=typeof Window>"u"||typeof window>"u",dI=e=>!OA&&(e===window||e instanceof Window),pI=typeof navigator<"u"&&navigator.product==="ReactNative";var Vh={isSSR:OA,isReactNative:pI,isWindow:dI};function hI(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 mI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function gI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var vI={memoizeWithArgsHash:hI,memoizeOneWithArgsHash:mI,memoizeOneWithArgsHashAndInvalidation:gI};const{batchUpdates:l2}=jh,{initializeNode:yI,peekNodeInfo:wI}=Ls,{graph:xI}=ff,{getNextStoreID:bI}=Fh,{DEFAULT_VALUE:_I,recoilValues:oS,recoilValuesForKeys:iS}=Ur,{AbstractRecoilValue:SI,getRecoilValueAsLoadable:EI,setRecoilValue:sS,setUnvalidatedRecoilValue:CI}=wi,{updateRetainCount:pp}=Ta,{setInvalidateMemoizedSnapshot:AI}=yA,{getNextTreeStateVersion:RI,makeEmptyStoreState:kI}=fA,{isSSR:TI}=Vh,{memoizeOneWithArgsHashAndInvalidation:DI}=vI;class Wh{constructor(t,n){Je(this,"_store",void 0),Je(this,"_refCount",1),Je(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),EI(this._store,r))),Je(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Je(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])):ty(oS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),Je(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),wI(this._store,this._store.getState().currentTree,r))),Je(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new u2(this,l2);return r(o),o}),Je(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new u2(this,l2);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:bI(),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=xI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw rt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)yI(this._store,r,"get"),pp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){TI||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?RI():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($h(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function PI(e){const t=new Wh(kI());return e!=null?t.map(e):t}const[aS,NA]=DI((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 Wh(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)});AI(NA);function OI(e,t="latest"){const n=aS(e,t);return n.isRetained()?n:(NA(),aS(e,t))}class u2 extends Wh{constructor(t,n){super(LA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Je(this,"_batch",void 0),Je(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{pp(i,r.key,1),sS(this.getStore_INTERNAL(),r,o)})}),Je(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pp(o,r.key,1),sS(this.getStore_INTERNAL(),r,_I)})}),Je(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();l2(()=>{for(const[i,a]of r.entries())pp(o,i,1),CI(o,new SI(i),a)})}),this._batch=n}}var Hh={Snapshot:Wh,MutableSnapshot:u2,freshSnapshot:PI,cloneSnapshot:OI},LI=Hh.Snapshot,NI=Hh.MutableSnapshot,MI=Hh.freshSnapshot,BI=Hh.cloneSnapshot,qh=Object.freeze({__proto__:null,Snapshot:LI,MutableSnapshot:NI,freshSnapshot:MI,cloneSnapshot:BI});function II(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var $I=II;const{useRef:FI}=et;function UI(e){const t=FI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var lS=UI;const{getNextTreeStateVersion:zI,makeEmptyStoreState:MA}=fA,{cleanUpNode:jI,getDownstreamNodes:VI,initializeNode:WI,setNodeValue:HI,setUnvalidatedAtomValue_DEPRECATED:qI}=Ls,{graph:GI}=ff,{cloneGraph:KI}=ff,{getNextStoreID:BA}=Fh,{createMutableSource:Fg,reactMode:IA}=cf,{applyAtomValueWrites:YI}=wi,{releaseScheduledRetainablesNow:$A}=Ta,{freshSnapshot:XI}=qh,{useCallback:ZI,useContext:FA,useEffect:c2,useMemo:QI,useRef:JI,useState:e$}=et;function zu(){throw rt("This component must be used inside a component.")}const UA=Object.freeze({storeID:BA(),getState:zu,replaceState:zu,getGraph:zu,subscribeToTransactions:zu,addTransactionMetadata:zu});let f2=!1;function uS(e){if(f2)throw rt("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=zI();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,KI(tn(t.graphsByVersion.get(n))))}}const zA=et.createContext({current:UA}),Gh=()=>FA(zA),jA=et.createContext(null);function t$(){return FA(jA)}function iy(e,t,n){const r=VI(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)&&(iy(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 n$(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):X1("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 r$({setNotifyBatcherOfChange:e}){const t=Gh(),[,n]=e$([]);return e(()=>n({})),c2(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),c2(()=>{MM.enqueueExecution("Batcher",()=>{n$(t.current)})}),null}function o$(e,t){const n=MA();return t({set:(r,o)=>{const i=n.currentTree,a=HI(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:$I(i.dirtyAtoms,u),atomValues:YI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=qI(n.currentTree,i,o)})}}),n}function i$(e){const t=XI(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let cS=0;function s$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=x=>{const y=o.current.graphsByVersion;if(y.has(x))return tn(y.get(x));const v=GI();return y.set(x,v),v},a=(x,y)=>{if(y==null){const{transactionSubscriptions:v}=h.current.getState(),A=cS++;return v.set(A,x),{release:()=>{v.delete(A)}}}else{const{nodeTransactionSubscriptions:v}=h.current.getState();v.has(y)||v.set(y,new Map);const A=cS++;return tn(v.get(y)).set(A,x),{release:()=>{const b=v.get(y);b&&(b.delete(A),b.size===0&&v.delete(y))}}}},u=x=>{uS(h.current);for(const y of Object.keys(x))tn(h.current.getState().nextTree).transactionMetadata[y]=x[y]},c=x=>{uS(h.current);const y=tn(o.current.nextTree);let v;try{f2=!0,v=x(y)}finally{f2=!1}v!==y&&(o.current.nextTree=v,IA().early&&iy(h.current,o.current,v),tn(f.current)())},f=JI(null),p=ZI(x=>{f.current=x},[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?o$(h.current,e):t!=null?i$(t):MA());const m=QI(()=>Fg==null?void 0:Fg(o,()=>o.current.currentTree.version),[o]);return c2(()=>{const x=h.current;for(const y of new Set(x.getState().knownAtoms))WI(x,y,"get");return()=>{for(const y of x.getState().knownAtoms)jI(x,y)}},[h]),et.createElement(zA.Provider,{value:h},et.createElement(jA.Provider,{value:m},et.createElement(r$,{setNotifyBatcherOfChange:p}),r))}function a$(e){const{override:t,...n}=e,r=Gh();return t===!1&&r.current!==UA?e.children:et.createElement(s$,n)}function l$(){return Gh().current.storeID}var Hi={RecoilRoot:a$,useStoreRef:Gh,useRecoilMutableSource:t$,useRecoilStoreID:l$,notifyComponents_FOR_TESTING:iy,sendEndOfBatchNotifications_FOR_TESTING:VA};function u$(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=p$;const{useStoreRef:h$}=Hi,{SUSPENSE_TIMEOUT_MS:m$}=Ta,{updateRetainCount:ju}=Ta,{RetentionZone:g$}=Uh,{useEffect:v$,useRef:y$}=et,{isSSR:fS}=Vh;function w$(e){if(Ft("recoil_memory_managament_2020"))return x$(e)}function x$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof g$?a:a.key),r=h$();v$(()=>{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)ju(a,u,1);return()=>{for(const u of n)ju(a,u,-1)}},[r,...n]);const o=y$(),i=WA(n);if(!fS&&(i===void 0||!c$(i,n))){const a=r.current;for(const u of n)ju(a,u,1);if(i)for(const u of i)ju(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)ju(a,u,-1)},m$)}}var sy=w$;function b$(){return""}var pf=b$;const{batchUpdates:_$}=jh,{DEFAULT_VALUE:HA}=Ur,{currentRendererSupportsUseSyncExternalStore:S$,reactMode:lu,useMutableSource:E$,useSyncExternalStore:C$}=cf,{useRecoilMutableSource:A$,useStoreRef:xi}=Hi,{AbstractRecoilValue:d2,getRecoilValueAsLoadable:hf,setRecoilValue:rh,setUnvalidatedRecoilValue:R$,subscribeToRecoilValue:ql}=wi,{useCallback:Lr,useEffect:Gl,useMemo:qA,useRef:bc,useState:ay}=et,{setByAddingToSet:k$}=pA,{isSSR:T$}=Vh;function ly(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),T$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:rt(`Invalid value of loadable atom "${t.key}"`)}function D$(){const e=pf(),t=xi(),[,n]=ay([]),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 Gl(()=>{const c=t.current;wc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=ql(c,new d2(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)}),wc(o.current,r.current).forEach(f=>{a(f)}),o.current=r.current}),Gl(()=>{const c=i.current;return wc(r.current,new Set(c.keys())).forEach(f=>{const p=ql(t.current,new d2(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),qA(()=>{function c(y){return v=>{rh(t.current,y,v)}}function f(y){return()=>rh(t.current,y,HA)}function p(y){var v;r.current.has(y.key)||(r.current=k$(r.current,y.key));const A=t.current.getState();return hf(t.current,y,lu().early&&(v=A.nextTree)!==null&&v!==void 0?v:A.currentTree)}function h(y){const v=p(y);return ly(v,y,t)}function m(y){return[h(y),c(y)]}function x(y){return[p(y),c(y)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:x,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const P$={current:0};function O$(e){const t=xi(),n=pf(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=lu().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=qA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return ql(c,e,u,n).release},[t,e,n]);return C$(a,i,i).loadable}function L$(e){const t=xi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=lu().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 x=n();c.current.is(x)||p(),c.current=x},o).release},[t,e,o,n]),a=A$();if(a==null)throw rt("Recoil hooks must be used in components contained within a component.");const u=E$(a,r,i),c=bc(u);return Gl(()=>{c.current=u}),u}function p2(e){const t=xi(),n=pf(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=lu().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]);Gl(()=>{const c=ql(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=ay(o);return a.key!==e.key?o().loadable:a.loadable}function N$(e){const t=xi(),[,n]=ay([]),r=pf(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=lu().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return hf(c,e,p)},[t,e]),i=o(),a=bc(i);return Gl(()=>{a.current=i}),Gl(()=>{const u=t.current,c=u.getState(),f=ql(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const x=o();(m=a.current)!==null&&m!==void 0&&m.is(x)||n(x),a.current=x},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 uy(e){return Ft("recoil_memory_managament_2020")&&sy(e),{TRANSITION_SUPPORT:p2,SYNC_EXTERNAL_STORE:S$()?O$:p2,MUTABLE_SOURCE:L$,LEGACY:N$}[lu().mode](e)}function GA(e){const t=xi(),n=uy(e);return ly(n,e,t)}function Kh(e){const t=xi();return Lr(n=>{rh(t.current,e,n)},[t,e])}function M$(e){const t=xi();return Lr(()=>{rh(t.current,e,HA)},[t,e])}function B$(e){return[GA(e),Kh(e)]}function I$(e){return[uy(e),Kh(e)]}function $$(){const e=xi();return(t,n={})=>{_$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>R$(e.current,new d2(o),r))})}}function KA(e){return Ft("recoil_memory_managament_2020")&&sy(e),p2(e)}function YA(e){const t=xi(),n=KA(e);return ly(n,e,t)}function F$(e){return[YA(e),Kh(e)]}var U$={recoilComponentGetRecoilValueCount_FOR_TESTING:P$,useRecoilInterface:D$,useRecoilState:B$,useRecoilStateLoadable:I$,useRecoilValue:GA,useRecoilValueLoadable:uy,useResetRecoilState:M$,useSetRecoilState:Kh,useSetUnvalidatedAtomValues:$$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:KA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:YA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:F$};function z$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var j$=z$;function V$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var W$=V$;function H$(...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=nh(j$(t,(r,o)=>{const a=XA(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return q$(e.nonvalidatedAtoms.toMap(),n)}function eF(e){Xh(Yh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=hS(r),i=hS(n),a=nh(Y$,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=W$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function tF(e){Xh(Yh(t=>{const n=oh(t,"latest"),r=oh(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function nF(){const e=cy(),[t,n]=J$(()=>oh(e.current)),r=WA(t),o=dS(),i=dS();if(Xh(Yh(u=>n(oh(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},Q$)}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;G$(()=>{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=>{Z$(e,new X$(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):K$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function rF(){const e=cy();return Yh(t=>QA(e.current,t),[e])}var JA={useRecoilSnapshot:nF,gotoSnapshot:QA,useGotoRecoilSnapshot:rF,useRecoilTransactionObserver:tF,useTransactionObservation_DEPRECATED:eF,useTransactionSubscription_DEPRECATED:Xh};const{peekNodeInfo:oF}=Ls,{useStoreRef:iF}=Hi;function sF(){const e=iF();return({key:t})=>oF(e.current,e.current.getState().currentTree,t)}var aF=sF;const{reactMode:lF}=cf,{RecoilRoot:uF,useStoreRef:cF}=Hi,{useMemo:fF}=et;function dF(){lF().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=cF().current;return fF(()=>{function t({children:n}){return et.createElement(uF,{store_INTERNAL:e},n)}return t},[e])}var pF=dF;const{loadableWithValue:hF}=uf,{initializeNode:mF}=Ls,{DEFAULT_VALUE:gF,getNode:vF}=Ur,{copyTreeState:yF,getRecoilValueAsLoadable:wF,invalidateDownstreams:xF,writeLoadableToTreeState:bF}=wi;function mS(e){return vF(e.key).nodeType==="atom"}class _F{constructor(t,n){Je(this,"_store",void 0),Je(this,"_treeState",void 0),Je(this,"_changes",void 0),Je(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!mS(r))throw rt("Reading selectors within atomicUpdate is not supported");const o=wF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:rt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Je(this,"set",(r,o)=>{if(!mS(r))throw rt("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else mF(this._store,r.key,"set"),this._changes.set(r.key,o)}),Je(this,"reset",r=>{this.set(r,gF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=yF(this._treeState);for(const[n,r]of this._changes)bF(t,n,hF(r));return xF(this._store,t),t}}function SF(e){return t=>{e.replaceState(n=>{const r=new _F(e,n);return t(r),r.newTreeState_INTERNAL()})}}var EF={atomicUpdater:SF},CF=EF.atomicUpdater,eR=Object.freeze({__proto__:null,atomicUpdater:CF});function AF(e,t){if(!e)throw new Error(t)}var RF=AF,ic=RF;const{atomicUpdater:kF}=eR,{batchUpdates:TF}=jh,{DEFAULT_VALUE:DF}=Ur,{useStoreRef:PF}=Hi,{refreshRecoilValue:OF,setRecoilValue:gS}=wi,{cloneSnapshot:LF}=qh,{gotoSnapshot:NF}=JA,{useCallback:MF}=et;class tR{}const BF=new tR;function nR(e,t,n,r){let o=BF,i;if(TF(()=>{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 rt(u);const c=hA({...r??{},set:(p,h)=>gS(e,p,h),reset:p=>gS(e,p,DF),refresh:p=>OF(e,p),gotoSnapshot:p=>NF(e,p),transact_UNSTABLE:p=>kF(e)(p)},{snapshot:()=>{const p=LF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw rt(u);o=f(...n)}),o instanceof tR&&ic(!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 IF(e,t){const n=PF();return MF((...r)=>nR(n.current,e,r),t!=null?[...t,n]:void 0)}var rR={recoilCallback:nR,useRecoilCallback:IF};const{useStoreRef:$F}=Hi,{refreshRecoilValue:FF}=wi,{useCallback:UF}=et;function zF(e){const t=$F();return UF(()=>{const n=t.current;FF(n,e)},[e,t])}var jF=zF;const{atomicUpdater:VF}=eR,{useStoreRef:WF}=Hi,{useMemo:HF}=et;function qF(e,t){const n=WF();return HF(()=>(...r)=>{VF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var GF=qF;class KF{constructor(t){Je(this,"value",void 0),this.value=t}}var YF={WrappedValue:KF},XF=YF.WrappedValue,oR=Object.freeze({__proto__:null,WrappedValue:XF});const{isFastRefreshEnabled:ZF}=cf;class vS extends Error{}class QF{constructor(t){var n,r,o;Je(this,"_name",void 0),Je(this,"_numLeafs",void 0),Je(this,"_root",void 0),Je(this,"_onHit",void 0),Je(this,"_onSet",void 0),Je(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,b]of t){var h,m,x;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(b),this._root=(x=this._root)!==null&&x!==void 0?x:f}const y=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(y!=null&&(y.type!=="leaf"||y.branchKey!==p))throw this.invalidCacheError();const v={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,v),this._root=(u=this._root)!==null&&u!==void 0?u:v,this._numLeafs++,this._onSet(v),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,v)};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=ZF()?"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 X1(t+(this._name!=null?` - ${this._name}`:"")),new vS}}var JF={TreeCache:QF},eU=JF.TreeCache,iR=Object.freeze({__proto__:null,TreeCache:eU});class tU{constructor(t){var n;Je(this,"_maxSize",void 0),Je(this,"_size",void 0),Je(this,"_head",void 0),Je(this,"_tail",void 0),Je(this,"_map",void 0),Je(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 nU={LRUCache:tU},rU=nU.LRUCache,sR=Object.freeze({__proto__:null,LRUCache:rU});const{LRUCache:oU}=sR,{TreeCache:iU}=iR;function sU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new oU({maxSize:t}),o=new iU({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=sU;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 rt("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 aU(e,t={allowFunctions:!1}){return Wo(e,t)}var Zh=aU;const{TreeCache:lU}=iR,Ld={equality:"reference",eviction:"keep-all",maxSize:1/0};function uU({equality:e=Ld.equality,eviction:t=Ld.eviction,maxSize:n=Ld.maxSize}=Ld,r){const o=cU(e);return fU(t,n,o,r)}function cU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function fU(e,t,n,r){switch(e){case"keep-all":return new lU({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 rt(`Unrecognized eviction policy ${e}`)}var dU=uU;function pU(e){return()=>null}var hU={startPerfBlock:pU};const{isLoadable:mU,loadableWithError:Nd,loadableWithPromise:gU,loadableWithValue:Ug}=uf,{WrappedValue:aR}=oR,{getNodeLoadable:Md,peekNodeLoadable:vU,setNodeValue:yU}=Ls,{saveDepsToStore:wU}=ff,{DEFAULT_VALUE:xU,getConfigDeletionHandler:bU,getNode:_U,registerNode:wS}=Ur,{isRecoilValue:SU}=Hl,{markRecoilValueModified:xS}=wi,{retainedByOptionWithDefault:EU}=Ta,{recoilCallback:CU}=rR,{startPerfBlock:AU}=hU;class lR{}const Vu=new lR,Wu=[],Bd=new Map,RU=(()=>{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=dU(o??{equality:"reference",eviction:"keep-all"},n),c=EU(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!Ft("recoil_memory_managament_2020")||p>0}function m(U){return U.getState().knownSelectors.add(n),p++,()=>{p--}}function x(){return bU(n)!==void 0&&!h()}function y(U,ue,te,ve,de){le(ue,ve,de),v(U,te)}function v(U,ue){q(U,ue)&&K(U),b(ue,!0)}function A(U,ue){q(U,ue)&&(tn($(U)).stateVersions.clear(),b(ue,!1))}function b(U,ue){const te=Bd.get(U);if(te!=null){for(const ve of te)xS(ve,tn(t));ue&&Bd.delete(U)}}function w(U,ue){let te=Bd.get(ue);te==null&&Bd.set(ue,te=new Set),te.add(U)}function S(U,ue,te,ve,de,Ne){return ue.then(Ce=>{if(!h())throw K(U),Vu;const ae=Ug(Ce);return y(U,te,de,ae,ve),Ce}).catch(Ce=>{if(!h())throw K(U),Vu;if(Kt(Ce))return k(U,Ce,te,ve,de,Ne);const ae=Nd(Ce);throw y(U,te,de,ae,ve),Ce})}function k(U,ue,te,ve,de,Ne){return ue.then(Ce=>{if(!h())throw K(U),Vu;Ne.loadingDepKey!=null&&Ne.loadingDepPromise===ue?te.atomValues.set(Ne.loadingDepKey,Ug(Ce)):U.getState().knownSelectors.forEach(Se=>{te.atomValues.delete(Se)});const ae=L(U,te);if(ae&&ae.state!=="loading"){if((q(U,de)||$(U)==null)&&v(U,de),ae.state==="hasValue")return ae.contents;throw ae.contents}if(!q(U,de)){const Se=H(U,te);if(Se!=null)return Se.loadingLoadable.contents}const[De,Re]=E(U,te,de);if(De.state!=="loading"&&y(U,te,de,De,Re),De.state==="hasError")throw De.contents;return De.contents}).catch(Ce=>{if(Ce instanceof lR)throw Vu;if(!h())throw K(U),Vu;const ae=Nd(Ce);throw y(U,te,de,ae,ve),Ce})}function D(U,ue,te,ve){var de,Ne,Ce,ae;if(q(U,ve)||ue.version===((de=U.getState())===null||de===void 0||(Ne=de.currentTree)===null||Ne===void 0?void 0:Ne.version)||ue.version===((Ce=U.getState())===null||Ce===void 0||(ae=Ce.nextTree)===null||ae===void 0?void 0:ae.version)){var De,Re,Se;wU(n,te,U,(De=(Re=U.getState())===null||Re===void 0||(Se=Re.nextTree)===null||Se===void 0?void 0:Se.version)!==null&&De!==void 0?De:U.getState().currentTree.version)}for(const Ke of te)a.add(Ke)}function E(U,ue,te){const ve=AU(n);let de=!0,Ne=!0;const Ce=()=>{ve(),Ne=!1};let ae,De=!1,Re;const Se={loadingDepKey:null,loadingDepPromise:null},Ke=new Map;function st({key:_t}){const mt=Md(U,ue,_t);switch(Ke.set(_t,mt),de||(D(U,ue,new Set(Ke.keys()),te),A(U,te)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw Se.loadingDepKey=_t,Se.loadingDepPromise=mt.contents,mt.contents}throw rt("Invalid Loadable state")}const ht=_t=>(...mt)=>{if(Ne)throw rt("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&&ic(!1),CU(U,_t,mt,{node:t})};try{ae=r({get:st,getCallback:ht}),ae=SU(ae)?st(ae):ae,mU(ae)&&(ae.state==="hasError"&&(De=!0),ae=ae.contents),Kt(ae)?ae=S(U,ae,ue,Ke,te,Se).finally(Ce):Ce(),ae=ae instanceof aR?ae.value:ae}catch(_t){ae=_t,Kt(ae)?ae=k(U,ae,ue,Ke,te,Se).finally(Ce):(De=!0,Ce())}return De?Re=Nd(ae):Kt(ae)?Re=gU(ae):Re=Ug(ae),de=!1,se(U,te,Ke),D(U,ue,new Set(Ke.keys()),te),[Re,Ke]}function L(U,ue){let te=ue.atomValues.get(n);if(te!=null)return te;const ve=new Set;try{te=u.get(Ne=>(typeof Ne!="string"&&ic(!1),Md(U,ue,Ne).contents),{onNodeVisit:Ne=>{Ne.type==="branch"&&Ne.nodeKey!==n&&ve.add(Ne.nodeKey)}})}catch(Ne){throw rt(`Problem with cache lookup for selector "${n}": ${Ne.message}`)}if(te){var de;ue.atomValues.set(n,te),D(U,ue,ve,(de=$(U))===null||de===void 0?void 0:de.executionID)}return te}function I(U,ue){const te=L(U,ue);if(te!=null)return K(U),te;const ve=H(U,ue);if(ve!=null){var de;return((de=ve.loadingLoadable)===null||de===void 0?void 0:de.state)==="loading"&&w(U,ve.executionID),ve.loadingLoadable}const Ne=RU(),[Ce,ae]=E(U,ue,Ne);return Ce.state==="loading"?(Y(U,Ne,Ce,ae,ue),w(U,Ne)):(K(U),le(ue,Ce,ae)),Ce}function H(U,ue){const te=PA([f.has(U)?[tn(f.get(U))]:[],$h(ty(f,([de])=>de!==U),([,de])=>de)]);function ve(de){for(const[Ne,Ce]of de)if(!Md(U,ue,Ne).is(Ce))return!0;return!1}for(const de of te){if(de.stateVersions.get(ue.version)||!ve(de.depValuesDiscoveredSoFarDuringAsyncWork))return de.stateVersions.set(ue.version,!0),de;de.stateVersions.set(ue.version,!1)}}function $(U){return f.get(U)}function Y(U,ue,te,ve,de){f.set(U,{depValuesDiscoveredSoFarDuringAsyncWork:ve,executionID:ue,loadingLoadable:te,stateVersions:new Map([[de.version,!0]])})}function se(U,ue,te){if(q(U,ue)){const ve=$(U);ve!=null&&(ve.depValuesDiscoveredSoFarDuringAsyncWork=te)}}function K(U){f.delete(U)}function q(U,ue){var te;return ue===((te=$(U))===null||te===void 0?void 0:te.executionID)}function Q(U){return Array.from(U.entries()).map(([ue,te])=>[ue,te.contents])}function le(U,ue,te){U.atomValues.set(n,ue);try{u.set(Q(te),ue)}catch(ve){throw rt(`Problem with setting cache for selector "${n}": ${ve.message}`)}}function pe(U){if(Wu.includes(n)){const ue=`Recoil selector has circular dependencies: ${Wu.slice(Wu.indexOf(n)).join(" → ")}`;return Nd(rt(ue))}Wu.push(n);try{return U()}finally{Wu.pop()}}function J(U,ue){const te=ue.atomValues.get(n);return te??u.get(ve=>{var de;return typeof ve!="string"&&ic(!1),(de=vU(U,ue,ve))===null||de===void 0?void 0:de.contents})}function he(U,ue){return pe(()=>I(U,ue))}function re(U){U.atomValues.delete(n)}function me(U,ue){t==null&&ic(!1);for(const ve of a){var te;const de=_U(ve);(te=de.clearCache)===null||te===void 0||te.call(de,U,ue)}a.clear(),re(ue),u.clear(),xS(U,t)}return i!=null?t=wS({key:n,nodeType:"selector",peek:J,get:he,set:(ue,te,ve)=>{let de=!1;const Ne=new Map;function Ce({key:Se}){if(de)throw rt("Recoil: Async selector sets are not currently supported.");const Ke=Md(ue,te,Se);if(Ke.state==="hasValue")return Ke.contents;if(Ke.state==="loading"){const st=`Getting value of asynchronous atom or selector "${Se}" in a pending state while setting selector "${n}" is not yet supported.`;throw rt(st)}else throw Ke.contents}function ae(Se,Ke){if(de)throw rt("Recoil: Async selector sets are not currently supported.");const st=typeof Ke=="function"?Ke(Ce(Se)):Ke;yU(ue,te,Se.key,st).forEach((_t,mt)=>Ne.set(mt,_t))}function De(Se){ae(Se,xU)}const Re=i({set:ae,get:Ce,reset:De},ve);if(Re!==void 0)throw Kt(Re)?rt("Recoil: Async selector sets are not currently supported."):rt("Recoil: selector set should be a void function.");return de=!0,Ne},init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=wS({key:n,nodeType:"selector",peek:J,get:he,init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}uR.value=e=>new aR(e);var Kl=uR;const{isLoadable:kU,loadableWithError:zg,loadableWithPromise:jg,loadableWithValue:Ya}=uf,{WrappedValue:cR}=oR,{peekNodeInfo:TU}=Ls,{DEFAULT_VALUE:ta,DefaultValue:cs,getConfigDeletionHandler:fR,registerNode:DU,setConfigDeletionHandler:PU}=Ur,{isRecoilValue:OU}=Hl,{getRecoilValueAsLoadable:LU,markRecoilValueModified:NU,setRecoilValue:bS,setRecoilValueLoadable:MU}=wi,{retainedByOptionWithDefault:BU}=Ta,Hu=e=>e instanceof cR?e.value:e;function IU(e){const{key:t,persistence_UNSTABLE:n}=e,r=BU(e.retainedBy_UNSTABLE);let o=0;function i(w){return jg(w.then(S=>(a=Ya(S),S)).catch(S=>{throw a=zg(S),S}))}let a=Kt(e.default)?i(e.default):kU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Ya(Hu(e.default));a.contents;let u;const c=new Map;function f(w){return w}function p(w,S){const k=S.then(D=>{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&&bS(w,b,D),D}).catch(D=>{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&&MU(w,b,zg(D)),D});return k}function h(w,S,k){var D;o++;const E=()=>{var $;o--,($=c.get(w))===null||$===void 0||$.forEach(Y=>Y()),c.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const $=()=>{var Y;((Y=w.getState().nextTree)!==null&&Y!==void 0?Y:w.getState().currentTree).atomValues.has(t)||NU(w,b)};a.contents.finally($)}const L=(D=e.effects)!==null&&D!==void 0?D:e.effects_UNSTABLE;if(L!=null){let $=function(re){if(q&&re.key===t){const me=K;return me instanceof cs?m(w,S):Kt(me)?jg(me.then(U=>U instanceof cs?a.toPromise():U)):Ya(me)}return LU(w,re)},Y=function(re){return $(re).toPromise()},se=function(re){var me;const U=TU(w,(me=w.getState().nextTree)!==null&&me!==void 0?me:w.getState().currentTree,re.key);return q&&re.key===t&&!(K instanceof cs)?{...U,isSet:!0,loadable:$(re)}:U},K=ta,q=!0,Q=!1,le=null;const pe=re=>me=>{if(q){const U=$(b),ue=U.state==="hasValue"?U.contents:ta;K=typeof me=="function"?me(ue):me,Kt(K)&&(K=K.then(te=>(le={effect:re,value:te},te)))}else{if(Kt(me))throw rt("Setting atoms to async values is not implemented.");typeof me!="function"&&(le={effect:re,value:Hu(me)}),bS(w,b,typeof me=="function"?U=>{const ue=Hu(me(U));return le={effect:re,value:ue},ue}:Hu(me))}},J=re=>()=>pe(re)(ta),he=re=>me=>{var U;const{release:ue}=w.subscribeToTransactions(te=>{var ve;let{currentTree:de,previousTree:Ne}=te.getState();Ne||(Ne=de);const Ce=(ve=de.atomValues.get(t))!==null&&ve!==void 0?ve:a;if(Ce.state==="hasValue"){var ae,De,Re,Se;const Ke=Ce.contents,st=(ae=Ne.atomValues.get(t))!==null&&ae!==void 0?ae:a,ht=st.state==="hasValue"?st.contents:ta;((De=le)===null||De===void 0?void 0:De.effect)!==re||((Re=le)===null||Re===void 0?void 0:Re.value)!==Ke?me(Ke,ht,!de.atomValues.has(t)):((Se=le)===null||Se===void 0?void 0:Se.effect)===re&&(le=null)}},t);c.set(w,[...(U=c.get(w))!==null&&U!==void 0?U:[],ue])};for(const re of L)try{const me=re({node:b,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:k,setSelf:pe(re),resetSelf:J(re),onSet:he(re),getPromise:Y,getLoadable:$,getInfo_UNSTABLE:se});if(me!=null){var I;c.set(w,[...(I=c.get(w))!==null&&I!==void 0?I:[],me])}}catch(me){K=me,Q=!0}if(q=!1,!(K instanceof cs)){var H;const re=Q?zg(K):Kt(K)?jg(p(w,K)):Ya(Hu(K));re.contents,S.atomValues.set(t,re),(H=w.getState().nextTree)===null||H===void 0||H.atomValues.set(t,re)}}return E}function m(w,S){var k,D;return(k=(D=S.atomValues.get(t))!==null&&D!==void 0?D:u)!==null&&k!==void 0?k:a}function x(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),D=n.validator(k,ta);return u=D instanceof cs?a:Ya(D),u}else return a}function y(){u=void 0}function v(w,S,k){if(S.atomValues.has(t)){const D=tn(S.atomValues.get(t));if(D.state==="hasValue"&&k===D.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 b=DU({key:t,nodeType:"atom",peek:m,get:x,set:v,init:h,invalidate:y,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 b}function fy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return OU(n)?$U({...t,default:n}):IU({...t,default:n})}function $U(e){const t=fy({...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=Kl({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 PU(n.key,fR(e.key)),n}fy.value=e=>new cR(e);var dR=fy;class FU{constructor(t){var n;Je(this,"_map",void 0),Je(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 UU={MapCache:FU},zU=UU.MapCache,jU=Object.freeze({__proto__:null,MapCache:zU});const{LRUCache:_S}=sR,{MapCache:VU}=jU,Id={equality:"reference",eviction:"none",maxSize:1/0};function WU({equality:e=Id.equality,eviction:t=Id.eviction,maxSize:n=Id.maxSize}=Id){const r=HU(e);return qU(t,n,r)}function HU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function qU(e,t,n){switch(e){case"keep-all":return new VU({mapKey:n});case"lru":return new _S({mapKey:n,maxSize:tn(t)});case"most-recent":return new _S({mapKey:n,maxSize:1})}throw rt(`Unrecognized eviction policy ${e}`)}var pR=WU;const{setConfigDeletionHandler:GU}=Ur;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,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=Zh(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),GU(h.key,()=>{r.delete(o)}),h}}var YU=KU;const{setConfigDeletionHandler:XU}=Ur;let ZU=0;function QU(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 rt(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=Zh(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${ZU++}`,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=Kl({key:u,get:c,set:(y,v)=>m(o)(y,v),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Kl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),XU(h.key,()=>{r.delete(o)}),h}}var Ns=QU;const JU=Ns({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function ez(e){return JU(e)}var tz=ez;const nz=Ns({key:"__error",get:e=>()=>{throw rt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function rz(e){return nz(e)}var oz=rz;function iz(e){return e}var sz=iz;const{loadableWithError:hR,loadableWithPromise:mR,loadableWithValue:gR}=uf;function Qh(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 az(e){return e!=null&&!Kt(e)}function Jh(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function h2(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 h2(e,r)}function lz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const uz=Ns({key:"__waitForNone",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return Ol(e,r,o)},dangerouslyAllowMutability:!0}),cz=Ns({key:"__waitForAny",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(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}),fz=Ns({key:"__waitForAll",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);if(o.every(a=>a==null))return h2(e,r);const i=o.find(az);if(i!=null)throw i;return Promise.all(o).then(a=>h2(e,lz(r,a)))},dangerouslyAllowMutability:!0}),dz=Ns({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(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}),pz=Ns({key:"__noWait",get:e=>({get:t})=>{try{return Kl.value(gR(t(e)))}catch(n){return Kl.value(Kt(n)?mR(n):hR(n))}},dangerouslyAllowMutability:!0});var hz={waitForNone:uz,waitForAny:cz,waitForAll:fz,waitForAllSettled:dz,noWait:pz};const{RecoilLoadable:mz}=uf,{DefaultValue:gz}=Ur,{RecoilRoot:vz,useRecoilStoreID:yz}=Hi,{isRecoilValue:wz}=Hl,{retentionZone:xz}=Uh,{freshSnapshot:bz}=qh,{useRecoilState:_z,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Sz,useRecoilStateLoadable:Ez,useRecoilValue:Cz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Az,useRecoilValueLoadable:Rz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:kz,useResetRecoilState:Tz,useSetRecoilState:Dz}=U$,{useGotoRecoilSnapshot:Pz,useRecoilSnapshot:Oz,useRecoilTransactionObserver:Lz}=JA,{useRecoilCallback:Nz}=rR,{noWait:Mz,waitForAll:Bz,waitForAllSettled:Iz,waitForAny:$z,waitForNone:Fz}=hz;var Ms={DefaultValue:gz,isRecoilValue:wz,RecoilLoadable:mz,RecoilEnv:au,RecoilRoot:vz,useRecoilStoreID:yz,useRecoilBridgeAcrossReactRoots_UNSTABLE:pF,atom:dR,selector:Kl,atomFamily:YU,selectorFamily:Ns,constSelector:tz,errorSelector:oz,readOnlySelector:sz,noWait:Mz,waitForNone:Fz,waitForAny:$z,waitForAll:Bz,waitForAllSettled:Iz,useRecoilValue:Cz,useRecoilValueLoadable:Rz,useRecoilState:_z,useRecoilStateLoadable:Ez,useSetRecoilState:Dz,useResetRecoilState:Tz,useGetRecoilValueInfo_UNSTABLE:aF,useRecoilRefresher_UNSTABLE:jF,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:kz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Az,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Sz,useRecoilCallback:Nz,useRecoilTransaction_UNSTABLE:GF,useGotoRecoilSnapshot:Pz,useRecoilSnapshot:Oz,useRecoilTransactionObserver_UNSTABLE:Lz,snapshot_UNSTABLE:bz,useRetain:sy,retentionZone:xz},Uz=Ms.DefaultValue,zz=Ms.RecoilRoot,Sn=Ms.atom,vR=Ms.selector,Pn=Ms.useRecoilValue,SS=Ms.useRecoilState,xn=Ms.useSetRecoilState,hp=Ms.useResetRecoilState,ih={exports:{}};/** + hot module replacement.`;console.warn(t)}}function TM(e){au.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&kM(e.key),_a.set(e.key,e);const t=e.set==null?new Hl.RecoilValueReadOnly(e.key):new Hl.RecoilState(e.key);return Q1.set(e.key,t),t}class aA extends Error{}function DM(e){const t=_a.get(e);if(t==null)throw new aA(`Missing definition for RecoilValue: "${e}""`);return t}function PM(e){return _a.get(e)}const th=new Map;function OM(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(),th.delete(e)}}function LM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?th.delete(e):th.set(e,t))}function lA(e){return th.get(e)}var Ur={nodes:_a,recoilValues:Q1,registerNode:TM,getNode:DM,getNodeMaybe:PM,deleteNodeConfigIfPossible:OM,setConfigDeletionHandler:LM,getConfigDeletionHandler:lA,recoilValuesForKeys:RM,NodeMissingError:aA,DefaultValue:sA,DEFAULT_VALUE:AM};function NM(e,t){t()}var MM={enqueueExecution:NM};function BM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var IM=BM(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,xe=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},x=function(F){return 1<=ce;)xe[Fe--]=xe[Fe];return xe[ce]=be,xe}for(var Me=0,Ie=0,Ge=new Array(Ee+1);Me>>=1;return Fe[ce]=be,Y(F,Ie+1,Fe)},q=function(F,ce,be,xe){for(var Ee=new Array(ce-1),Fe=0,Me=0,Ie=0,Ge=xe.length;Ie1?H(F,this.hash,Ge):Ge[0]}var St=xe();return St===c?this:(++Me.value,Q(F,be,this.hash,this,Ee,I(F,Ee,Fe,St)))},re=function(F,ce,be,xe,Ee,Fe,Me){var Ie=this.mask,Ge=this.children,St=m(be,Ee),kn=x(St),zt=y(Ie,kn),Tn=Ie&kn,fn=Tn?Ge[zt]:E,so=fn._modify(F,ce,be+r,xe,Ee,Fe,Me);if(fn===so)return this;var or=pe(F,this),N=Ie,B=void 0;if(Tn&&L(so)){if(N&=~kn,!N)return E;if(Ge.length<=2&&se(Ge[zt^1]))return Ge[zt^1];B=A(or,zt,Ge)}else if(!Tn&&!L(so)){if(Ge.length>=a)return K(F,St,so,Ie,Ge);N|=kn,B=b(or,zt,so,Ge)}else B=v(or,zt,so,Ge);return or?(this.mask=N,this.children=B,this):$(F,N,B)},me=function(F,ce,be,xe,Ee,Fe,Me){var Ie=this.size,Ge=this.children,St=m(be,Ee),kn=Ge[St],zt=(kn||E)._modify(F,ce,be+r,xe,Ee,Fe,Me);if(kn===zt)return this;var Tn=pe(F,this),fn=void 0;if(L(kn)&&!L(zt))++Ie,fn=v(Tn,St,zt,Ge);else if(!L(kn)&&L(zt)){if(--Ie,Ie<=u)return q(F,Ie,St,Ge);fn=v(Tn,St,E,Ge)}else fn=v(Tn,St,zt,Ge);return Tn?(this.size=Ie,this.children=fn,this):Y(F,Ie,fn)};E._modify=function(W,F,ce,be,xe,Ee,Fe){var Me=be();return Me===c?E:(++Fe.value,I(W,xe,Ee,Me))};function U(W,F,ce,be,xe){this._editable=W,this._edit=F,this._config=ce,this._root=be,this._size=xe}U.prototype.setTree=function(W,F){return this._editable?(this._root=W,this._size=F,this):W===this._root?this:new U(this._editable,this._edit,this._config,W,F)};var ue=n.tryGetHash=function(W,F,ce,be){for(var xe=be._root,Ee=0,Fe=be._config.keyEq;;)switch(xe.type){case w:return Fe(ce,xe.key)?xe.value:W;case S:{if(F===xe.hash)for(var Me=xe.children,Ie=0,Ge=Me.length;Ie{n.set(o,t(r,o))}),n}var nh=VM;function WM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function HM(e){return{nodeDeps:nh(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:nh(e.nodeToNodeSubscriptions,t=>new Set(t))}}function $g(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:wc(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=wc(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 qM(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($g(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);$g(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);$g(e,t,m,f)}}}var ff={cloneGraph:HM,graph:WM,saveDepsToStore:qM};let GM=0;const KM=()=>GM++;let YM=0;const XM=()=>YM++;let ZM=0;const QM=()=>ZM++;var Fh={getNextTreeStateVersion:KM,getNextStoreID:XM,getNextComponentID:QM};const{persistentMap:tS}=zM,{graph:JM}=ff,{getNextTreeStateVersion:uA}=Fh;function cA(){const e=uA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:tS(),nonvalidatedAtoms:tS()}}function eB(){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,JM()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var fA={makeEmptyTreeState:cA,makeEmptyStoreState:eB,getNextTreeStateVersion:uA};class dA{}function tB(){return new dA}var Uh={RetentionZone:dA,retentionZone:tB};function nB(e,t){const n=new Set(e);return n.add(t),n}function rB(e,t){const n=new Set(e);return n.delete(t),n}function oB(e,t,n){const r=new Map(e);return r.set(t,n),r}function iB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function sB(e,t){const n=new Map(e);return n.delete(t),n}function aB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var pA={setByAddingToSet:nB,setByDeletingFromSet:rB,mapBySettingInMap:oB,mapByUpdatingInMap:iB,mapByDeletingFromMap:sB,mapByDeletingMultipleFromMap:aB};function*lB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ty=lB;function uB(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=uB;const{getNode:df,getNodeMaybe:cB,recoilValuesForKeys:nS}=Ur,{RetentionZone:rS}=Uh,{setByAddingToSet:fB}=pA,dB=Object.freeze(new Set);class pB extends Error{}function hB(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 ny(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=df(n),a=hB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function mB(e,t,n){ny(e,e.getState().currentTree,t,n)}function gB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function vB(e,t,n){return ny(e,t,n,"get"),df(n).get(e,t)}function mA(e,t,n){return df(n).peek(e,t)}function yB(e,t,n){var r;const o=cB(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:fB(e.dirtyAtoms,t)}}function wB(e,t,n,r){const o=df(n);if(o.set==null)throw new pB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return ny(e,t,n,"set"),i(e,t,r)}function xB(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(ty(gA(e,t,new Set([n])),c=>c!==n)),components:$h((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:dB;for(const f of c)r.has(f)||o.push(f)}return r}var Ls={getNodeLoadable:vB,peekNodeLoadable:mA,setNodeValue:wB,initializeNode:mB,cleanUpNode:gB,setUnvalidatedAtomValue_DEPRECATED:yB,peekNodeInfo:xB,getDownstreamNodes:gA};let vA=null;function bB(e){vA=e}function _B(){var e;(e=vA)===null||e===void 0||e()}var yA={setInvalidateMemoizedSnapshot:bB,invalidateMemoizedSnapshot:_B};const{getDownstreamNodes:SB,getNodeLoadable:wA,setNodeValue:EB}=Ls,{getNextComponentID:CB}=Fh,{getNode:AB,getNodeMaybe:xA}=Ur,{DefaultValue:ry}=Ur,{reactMode:RB}=cf,{AbstractRecoilValue:kB,RecoilState:TB,RecoilValueReadOnly:DB,isRecoilValue:PB}=Hl,{invalidateMemoizedSnapshot:OB}=yA;function LB(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 NB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof ry?n.delete(o):n.set(o,r)}),n}function MB(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 rt(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function BB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=MB(e,t,o,i),u=EB(e,t,o.key,a);for(const[c,f]of u.entries())a2(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;a2(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=xA(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 X1(`Unknown action ${n.type}`)}function a2(e,t,n){n.state==="hasValue"&&n.contents instanceof ry?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function bA(e,t){e.replaceState(n=>{const r=_A(n);for(const o of t)BB(e,r,o);return SA(e,r),OB(),r})}function zh(e,t){if(xc.length){const n=xc[xc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else bA(e,[t])}const xc=[];function IB(){const e=new Map;return xc.push(e),()=>{for(const[t,n]of e)bA(t,n);xc.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=SB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=xA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function EA(e,t,n){zh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function $B(e,t,n){if(n instanceof ry)return EA(e,t,n);zh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function FB(e,t){zh(e,{type:"markModified",recoilValue:t})}function UB(e,t,n){zh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function zB(e,{key:t},n,r=null){const o=CB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=RB();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 jB(e,t){var n;const{currentTree:r}=e.getState(),o=AB(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var wi={RecoilValueReadOnly:DB,AbstractRecoilValue:kB,RecoilState:TB,getRecoilValueAsLoadable:LB,setRecoilValue:EA,setRecoilValueLoadable:$B,markRecoilValueModified:FB,setUnvalidatedRecoilValue:UB,subscribeToRecoilValue:zB,isRecoilValue:PB,applyAtomValueWrites:NB,batchStart:IB,writeLoadableToTreeState:a2,invalidateDownstreams:SA,copyTreeState:_A,refreshRecoilValue:jB};function VB(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 WB=VB;const{cleanUpNode:HB}=Ls,{deleteNodeConfigIfPossible:qB,getNode:CA}=Ur,{RetentionZone:AA}=Uh,GB=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 ZB(n,a))o.add(u);else o.add(a);const i=KB(e,o);for(const a of i)XB(e,r,a)}function KB(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=YB(e,r,c,i,a);for(const y of p){var h;if(CA(y).retainedBy==="recoilRoot"){a.add(y);continue}if(((h=n.retention.referenceCounts.get(y))!==null&&h!==void 0?h:0)>0){a.add(y);continue}if(TA(y).some(A=>n.retention.referenceCounts.get(A))){a.add(y);continue}const v=o.nodeToNodeSubscriptions.get(y);if(v&&WB(v,A=>a.has(A))){a.add(y);continue}i.add(y),f.add(y)}const m=new Set;for(const y of f)for(const v of(x=o.nodeDeps.get(y))!==null&&x!==void 0?x:RA){var x;i.has(v)||m.add(v)}m.size&&u(m)}}function YB(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 XB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;HB(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)}qB(n)}function ZB(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 QB(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):kA(e,new Set([t]))}function JB(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),QB(e,t)}function eI(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();kA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function tI(e){return e===void 0?"recoilRoot":e}var Ta={SUSPENSE_TIMEOUT_MS:GB,updateRetainCount:JB,updateRetainCountToZero:DA,releaseScheduledRetainablesNow:eI,retainedByOptionWithDefault:tI};const{unstable_batchedUpdates:nI}=bl;var rI={unstable_batchedUpdates:nI};const{unstable_batchedUpdates:oI}=rI;var iI={unstable_batchedUpdates:oI};const{batchStart:sI}=wi,{unstable_batchedUpdates:aI}=iI;let oy=aI||(e=>e());const lI=e=>{oy=e},uI=()=>oy,cI=e=>{oy(()=>{let t=()=>{};try{t=sI(),e()}finally{t()}})};var jh={getBatcher:uI,setBatcher:lI,batchUpdates:cI};function*fI(e){for(const t of e)for(const n of t)yield n}var PA=fI;const OA=typeof Window>"u"||typeof window>"u",dI=e=>!OA&&(e===window||e instanceof Window),pI=typeof navigator<"u"&&navigator.product==="ReactNative";var Vh={isSSR:OA,isReactNative:pI,isWindow:dI};function hI(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 mI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function gI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var vI={memoizeWithArgsHash:hI,memoizeOneWithArgsHash:mI,memoizeOneWithArgsHashAndInvalidation:gI};const{batchUpdates:l2}=jh,{initializeNode:yI,peekNodeInfo:wI}=Ls,{graph:xI}=ff,{getNextStoreID:bI}=Fh,{DEFAULT_VALUE:_I,recoilValues:oS,recoilValuesForKeys:iS}=Ur,{AbstractRecoilValue:SI,getRecoilValueAsLoadable:EI,setRecoilValue:sS,setUnvalidatedRecoilValue:CI}=wi,{updateRetainCount:pp}=Ta,{setInvalidateMemoizedSnapshot:AI}=yA,{getNextTreeStateVersion:RI,makeEmptyStoreState:kI}=fA,{isSSR:TI}=Vh,{memoizeOneWithArgsHashAndInvalidation:DI}=vI;class Wh{constructor(t,n){Je(this,"_store",void 0),Je(this,"_refCount",1),Je(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),EI(this._store,r))),Je(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Je(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])):ty(oS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),Je(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),wI(this._store,this._store.getState().currentTree,r))),Je(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new u2(this,l2);return r(o),o}),Je(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new u2(this,l2);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:bI(),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=xI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw rt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)yI(this._store,r,"get"),pp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){TI||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?RI():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($h(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function PI(e){const t=new Wh(kI());return e!=null?t.map(e):t}const[aS,NA]=DI((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 Wh(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)});AI(NA);function OI(e,t="latest"){const n=aS(e,t);return n.isRetained()?n:(NA(),aS(e,t))}class u2 extends Wh{constructor(t,n){super(LA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Je(this,"_batch",void 0),Je(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{pp(i,r.key,1),sS(this.getStore_INTERNAL(),r,o)})}),Je(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pp(o,r.key,1),sS(this.getStore_INTERNAL(),r,_I)})}),Je(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();l2(()=>{for(const[i,a]of r.entries())pp(o,i,1),CI(o,new SI(i),a)})}),this._batch=n}}var Hh={Snapshot:Wh,MutableSnapshot:u2,freshSnapshot:PI,cloneSnapshot:OI},LI=Hh.Snapshot,NI=Hh.MutableSnapshot,MI=Hh.freshSnapshot,BI=Hh.cloneSnapshot,qh=Object.freeze({__proto__:null,Snapshot:LI,MutableSnapshot:NI,freshSnapshot:MI,cloneSnapshot:BI});function II(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var $I=II;const{useRef:FI}=et;function UI(e){const t=FI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var lS=UI;const{getNextTreeStateVersion:zI,makeEmptyStoreState:MA}=fA,{cleanUpNode:jI,getDownstreamNodes:VI,initializeNode:WI,setNodeValue:HI,setUnvalidatedAtomValue_DEPRECATED:qI}=Ls,{graph:GI}=ff,{cloneGraph:KI}=ff,{getNextStoreID:BA}=Fh,{createMutableSource:Fg,reactMode:IA}=cf,{applyAtomValueWrites:YI}=wi,{releaseScheduledRetainablesNow:$A}=Ta,{freshSnapshot:XI}=qh,{useCallback:ZI,useContext:FA,useEffect:c2,useMemo:QI,useRef:JI,useState:e$}=et;function zu(){throw rt("This component must be used inside a component.")}const UA=Object.freeze({storeID:BA(),getState:zu,replaceState:zu,getGraph:zu,subscribeToTransactions:zu,addTransactionMetadata:zu});let f2=!1;function uS(e){if(f2)throw rt("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=zI();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,KI(tn(t.graphsByVersion.get(n))))}}const zA=et.createContext({current:UA}),Gh=()=>FA(zA),jA=et.createContext(null);function t$(){return FA(jA)}function iy(e,t,n){const r=VI(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)&&(iy(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 n$(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):X1("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 r$({setNotifyBatcherOfChange:e}){const t=Gh(),[,n]=e$([]);return e(()=>n({})),c2(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),c2(()=>{MM.enqueueExecution("Batcher",()=>{n$(t.current)})}),null}function o$(e,t){const n=MA();return t({set:(r,o)=>{const i=n.currentTree,a=HI(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:$I(i.dirtyAtoms,u),atomValues:YI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=qI(n.currentTree,i,o)})}}),n}function i$(e){const t=XI(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let cS=0;function s$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=x=>{const y=o.current.graphsByVersion;if(y.has(x))return tn(y.get(x));const v=GI();return y.set(x,v),v},a=(x,y)=>{if(y==null){const{transactionSubscriptions:v}=h.current.getState(),A=cS++;return v.set(A,x),{release:()=>{v.delete(A)}}}else{const{nodeTransactionSubscriptions:v}=h.current.getState();v.has(y)||v.set(y,new Map);const A=cS++;return tn(v.get(y)).set(A,x),{release:()=>{const b=v.get(y);b&&(b.delete(A),b.size===0&&v.delete(y))}}}},u=x=>{uS(h.current);for(const y of Object.keys(x))tn(h.current.getState().nextTree).transactionMetadata[y]=x[y]},c=x=>{uS(h.current);const y=tn(o.current.nextTree);let v;try{f2=!0,v=x(y)}finally{f2=!1}v!==y&&(o.current.nextTree=v,IA().early&&iy(h.current,o.current,v),tn(f.current)())},f=JI(null),p=ZI(x=>{f.current=x},[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?o$(h.current,e):t!=null?i$(t):MA());const m=QI(()=>Fg==null?void 0:Fg(o,()=>o.current.currentTree.version),[o]);return c2(()=>{const x=h.current;for(const y of new Set(x.getState().knownAtoms))WI(x,y,"get");return()=>{for(const y of x.getState().knownAtoms)jI(x,y)}},[h]),et.createElement(zA.Provider,{value:h},et.createElement(jA.Provider,{value:m},et.createElement(r$,{setNotifyBatcherOfChange:p}),r))}function a$(e){const{override:t,...n}=e,r=Gh();return t===!1&&r.current!==UA?e.children:et.createElement(s$,n)}function l$(){return Gh().current.storeID}var Hi={RecoilRoot:a$,useStoreRef:Gh,useRecoilMutableSource:t$,useRecoilStoreID:l$,notifyComponents_FOR_TESTING:iy,sendEndOfBatchNotifications_FOR_TESTING:VA};function u$(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=p$;const{useStoreRef:h$}=Hi,{SUSPENSE_TIMEOUT_MS:m$}=Ta,{updateRetainCount:ju}=Ta,{RetentionZone:g$}=Uh,{useEffect:v$,useRef:y$}=et,{isSSR:fS}=Vh;function w$(e){if(Ft("recoil_memory_managament_2020"))return x$(e)}function x$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof g$?a:a.key),r=h$();v$(()=>{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)ju(a,u,1);return()=>{for(const u of n)ju(a,u,-1)}},[r,...n]);const o=y$(),i=WA(n);if(!fS&&(i===void 0||!c$(i,n))){const a=r.current;for(const u of n)ju(a,u,1);if(i)for(const u of i)ju(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)ju(a,u,-1)},m$)}}var sy=w$;function b$(){return""}var pf=b$;const{batchUpdates:_$}=jh,{DEFAULT_VALUE:HA}=Ur,{currentRendererSupportsUseSyncExternalStore:S$,reactMode:lu,useMutableSource:E$,useSyncExternalStore:C$}=cf,{useRecoilMutableSource:A$,useStoreRef:xi}=Hi,{AbstractRecoilValue:d2,getRecoilValueAsLoadable:hf,setRecoilValue:rh,setUnvalidatedRecoilValue:R$,subscribeToRecoilValue:ql}=wi,{useCallback:Lr,useEffect:Gl,useMemo:qA,useRef:bc,useState:ay}=et,{setByAddingToSet:k$}=pA,{isSSR:T$}=Vh;function ly(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),T$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:rt(`Invalid value of loadable atom "${t.key}"`)}function D$(){const e=pf(),t=xi(),[,n]=ay([]),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 Gl(()=>{const c=t.current;wc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=ql(c,new d2(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)}),wc(o.current,r.current).forEach(f=>{a(f)}),o.current=r.current}),Gl(()=>{const c=i.current;return wc(r.current,new Set(c.keys())).forEach(f=>{const p=ql(t.current,new d2(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),qA(()=>{function c(y){return v=>{rh(t.current,y,v)}}function f(y){return()=>rh(t.current,y,HA)}function p(y){var v;r.current.has(y.key)||(r.current=k$(r.current,y.key));const A=t.current.getState();return hf(t.current,y,lu().early&&(v=A.nextTree)!==null&&v!==void 0?v:A.currentTree)}function h(y){const v=p(y);return ly(v,y,t)}function m(y){return[h(y),c(y)]}function x(y){return[p(y),c(y)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:x,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const P$={current:0};function O$(e){const t=xi(),n=pf(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=lu().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=qA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return ql(c,e,u,n).release},[t,e,n]);return C$(a,i,i).loadable}function L$(e){const t=xi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=lu().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 x=n();c.current.is(x)||p(),c.current=x},o).release},[t,e,o,n]),a=A$();if(a==null)throw rt("Recoil hooks must be used in components contained within a component.");const u=E$(a,r,i),c=bc(u);return Gl(()=>{c.current=u}),u}function p2(e){const t=xi(),n=pf(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=lu().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]);Gl(()=>{const c=ql(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=ay(o);return a.key!==e.key?o().loadable:a.loadable}function N$(e){const t=xi(),[,n]=ay([]),r=pf(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=lu().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return hf(c,e,p)},[t,e]),i=o(),a=bc(i);return Gl(()=>{a.current=i}),Gl(()=>{const u=t.current,c=u.getState(),f=ql(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const x=o();(m=a.current)!==null&&m!==void 0&&m.is(x)||n(x),a.current=x},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 uy(e){return Ft("recoil_memory_managament_2020")&&sy(e),{TRANSITION_SUPPORT:p2,SYNC_EXTERNAL_STORE:S$()?O$:p2,MUTABLE_SOURCE:L$,LEGACY:N$}[lu().mode](e)}function GA(e){const t=xi(),n=uy(e);return ly(n,e,t)}function Kh(e){const t=xi();return Lr(n=>{rh(t.current,e,n)},[t,e])}function M$(e){const t=xi();return Lr(()=>{rh(t.current,e,HA)},[t,e])}function B$(e){return[GA(e),Kh(e)]}function I$(e){return[uy(e),Kh(e)]}function $$(){const e=xi();return(t,n={})=>{_$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>R$(e.current,new d2(o),r))})}}function KA(e){return Ft("recoil_memory_managament_2020")&&sy(e),p2(e)}function YA(e){const t=xi(),n=KA(e);return ly(n,e,t)}function F$(e){return[YA(e),Kh(e)]}var U$={recoilComponentGetRecoilValueCount_FOR_TESTING:P$,useRecoilInterface:D$,useRecoilState:B$,useRecoilStateLoadable:I$,useRecoilValue:GA,useRecoilValueLoadable:uy,useResetRecoilState:M$,useSetRecoilState:Kh,useSetUnvalidatedAtomValues:$$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:KA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:YA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:F$};function z$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var j$=z$;function V$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var W$=V$;function H$(...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=nh(j$(t,(r,o)=>{const a=XA(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return q$(e.nonvalidatedAtoms.toMap(),n)}function eF(e){Xh(Yh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=hS(r),i=hS(n),a=nh(Y$,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=W$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function tF(e){Xh(Yh(t=>{const n=oh(t,"latest"),r=oh(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function nF(){const e=cy(),[t,n]=J$(()=>oh(e.current)),r=WA(t),o=dS(),i=dS();if(Xh(Yh(u=>n(oh(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},Q$)}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;G$(()=>{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=>{Z$(e,new X$(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):K$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function rF(){const e=cy();return Yh(t=>QA(e.current,t),[e])}var JA={useRecoilSnapshot:nF,gotoSnapshot:QA,useGotoRecoilSnapshot:rF,useRecoilTransactionObserver:tF,useTransactionObservation_DEPRECATED:eF,useTransactionSubscription_DEPRECATED:Xh};const{peekNodeInfo:oF}=Ls,{useStoreRef:iF}=Hi;function sF(){const e=iF();return({key:t})=>oF(e.current,e.current.getState().currentTree,t)}var aF=sF;const{reactMode:lF}=cf,{RecoilRoot:uF,useStoreRef:cF}=Hi,{useMemo:fF}=et;function dF(){lF().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=cF().current;return fF(()=>{function t({children:n}){return et.createElement(uF,{store_INTERNAL:e},n)}return t},[e])}var pF=dF;const{loadableWithValue:hF}=uf,{initializeNode:mF}=Ls,{DEFAULT_VALUE:gF,getNode:vF}=Ur,{copyTreeState:yF,getRecoilValueAsLoadable:wF,invalidateDownstreams:xF,writeLoadableToTreeState:bF}=wi;function mS(e){return vF(e.key).nodeType==="atom"}class _F{constructor(t,n){Je(this,"_store",void 0),Je(this,"_treeState",void 0),Je(this,"_changes",void 0),Je(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!mS(r))throw rt("Reading selectors within atomicUpdate is not supported");const o=wF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:rt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Je(this,"set",(r,o)=>{if(!mS(r))throw rt("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else mF(this._store,r.key,"set"),this._changes.set(r.key,o)}),Je(this,"reset",r=>{this.set(r,gF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=yF(this._treeState);for(const[n,r]of this._changes)bF(t,n,hF(r));return xF(this._store,t),t}}function SF(e){return t=>{e.replaceState(n=>{const r=new _F(e,n);return t(r),r.newTreeState_INTERNAL()})}}var EF={atomicUpdater:SF},CF=EF.atomicUpdater,eR=Object.freeze({__proto__:null,atomicUpdater:CF});function AF(e,t){if(!e)throw new Error(t)}var RF=AF,ic=RF;const{atomicUpdater:kF}=eR,{batchUpdates:TF}=jh,{DEFAULT_VALUE:DF}=Ur,{useStoreRef:PF}=Hi,{refreshRecoilValue:OF,setRecoilValue:gS}=wi,{cloneSnapshot:LF}=qh,{gotoSnapshot:NF}=JA,{useCallback:MF}=et;class tR{}const BF=new tR;function nR(e,t,n,r){let o=BF,i;if(TF(()=>{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 rt(u);const c=hA({...r??{},set:(p,h)=>gS(e,p,h),reset:p=>gS(e,p,DF),refresh:p=>OF(e,p),gotoSnapshot:p=>NF(e,p),transact_UNSTABLE:p=>kF(e)(p)},{snapshot:()=>{const p=LF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw rt(u);o=f(...n)}),o instanceof tR&&ic(!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 IF(e,t){const n=PF();return MF((...r)=>nR(n.current,e,r),t!=null?[...t,n]:void 0)}var rR={recoilCallback:nR,useRecoilCallback:IF};const{useStoreRef:$F}=Hi,{refreshRecoilValue:FF}=wi,{useCallback:UF}=et;function zF(e){const t=$F();return UF(()=>{const n=t.current;FF(n,e)},[e,t])}var jF=zF;const{atomicUpdater:VF}=eR,{useStoreRef:WF}=Hi,{useMemo:HF}=et;function qF(e,t){const n=WF();return HF(()=>(...r)=>{VF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var GF=qF;class KF{constructor(t){Je(this,"value",void 0),this.value=t}}var YF={WrappedValue:KF},XF=YF.WrappedValue,oR=Object.freeze({__proto__:null,WrappedValue:XF});const{isFastRefreshEnabled:ZF}=cf;class vS extends Error{}class QF{constructor(t){var n,r,o;Je(this,"_name",void 0),Je(this,"_numLeafs",void 0),Je(this,"_root",void 0),Je(this,"_onHit",void 0),Je(this,"_onSet",void 0),Je(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,b]of t){var h,m,x;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(b),this._root=(x=this._root)!==null&&x!==void 0?x:f}const y=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(y!=null&&(y.type!=="leaf"||y.branchKey!==p))throw this.invalidCacheError();const v={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,v),this._root=(u=this._root)!==null&&u!==void 0?u:v,this._numLeafs++,this._onSet(v),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,v)};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=ZF()?"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 X1(t+(this._name!=null?` - ${this._name}`:"")),new vS}}var JF={TreeCache:QF},eU=JF.TreeCache,iR=Object.freeze({__proto__:null,TreeCache:eU});class tU{constructor(t){var n;Je(this,"_maxSize",void 0),Je(this,"_size",void 0),Je(this,"_head",void 0),Je(this,"_tail",void 0),Je(this,"_map",void 0),Je(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 nU={LRUCache:tU},rU=nU.LRUCache,sR=Object.freeze({__proto__:null,LRUCache:rU});const{LRUCache:oU}=sR,{TreeCache:iU}=iR;function sU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new oU({maxSize:t}),o=new iU({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=sU;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 rt("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 aU(e,t={allowFunctions:!1}){return Wo(e,t)}var Zh=aU;const{TreeCache:lU}=iR,Ld={equality:"reference",eviction:"keep-all",maxSize:1/0};function uU({equality:e=Ld.equality,eviction:t=Ld.eviction,maxSize:n=Ld.maxSize}=Ld,r){const o=cU(e);return fU(t,n,o,r)}function cU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function fU(e,t,n,r){switch(e){case"keep-all":return new lU({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 rt(`Unrecognized eviction policy ${e}`)}var dU=uU;function pU(e){return()=>null}var hU={startPerfBlock:pU};const{isLoadable:mU,loadableWithError:Nd,loadableWithPromise:gU,loadableWithValue:Ug}=uf,{WrappedValue:aR}=oR,{getNodeLoadable:Md,peekNodeLoadable:vU,setNodeValue:yU}=Ls,{saveDepsToStore:wU}=ff,{DEFAULT_VALUE:xU,getConfigDeletionHandler:bU,getNode:_U,registerNode:wS}=Ur,{isRecoilValue:SU}=Hl,{markRecoilValueModified:xS}=wi,{retainedByOptionWithDefault:EU}=Ta,{recoilCallback:CU}=rR,{startPerfBlock:AU}=hU;class lR{}const Vu=new lR,Wu=[],Bd=new Map,RU=(()=>{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=dU(o??{equality:"reference",eviction:"keep-all"},n),c=EU(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!Ft("recoil_memory_managament_2020")||p>0}function m(U){return U.getState().knownSelectors.add(n),p++,()=>{p--}}function x(){return bU(n)!==void 0&&!h()}function y(U,ue,te,ye,de){le(ue,ye,de),v(U,te)}function v(U,ue){q(U,ue)&&K(U),b(ue,!0)}function A(U,ue){q(U,ue)&&(tn($(U)).stateVersions.clear(),b(ue,!1))}function b(U,ue){const te=Bd.get(U);if(te!=null){for(const ye of te)xS(ye,tn(t));ue&&Bd.delete(U)}}function w(U,ue){let te=Bd.get(ue);te==null&&Bd.set(ue,te=new Set),te.add(U)}function S(U,ue,te,ye,de,Le){return ue.then(ge=>{if(!h())throw K(U),Vu;const ae=Ug(ge);return y(U,te,de,ae,ye),ge}).catch(ge=>{if(!h())throw K(U),Vu;if(Kt(ge))return k(U,ge,te,ye,de,Le);const ae=Nd(ge);throw y(U,te,de,ae,ye),ge})}function k(U,ue,te,ye,de,Le){return ue.then(ge=>{if(!h())throw K(U),Vu;Le.loadingDepKey!=null&&Le.loadingDepPromise===ue?te.atomValues.set(Le.loadingDepKey,Ug(ge)):U.getState().knownSelectors.forEach(Ae=>{te.atomValues.delete(Ae)});const ae=L(U,te);if(ae&&ae.state!=="loading"){if((q(U,de)||$(U)==null)&&v(U,de),ae.state==="hasValue")return ae.contents;throw ae.contents}if(!q(U,de)){const Ae=H(U,te);if(Ae!=null)return Ae.loadingLoadable.contents}const[je,Te]=E(U,te,de);if(je.state!=="loading"&&y(U,te,de,je,Te),je.state==="hasError")throw je.contents;return je.contents}).catch(ge=>{if(ge instanceof lR)throw Vu;if(!h())throw K(U),Vu;const ae=Nd(ge);throw y(U,te,de,ae,ye),ge})}function D(U,ue,te,ye){var de,Le,ge,ae;if(q(U,ye)||ue.version===((de=U.getState())===null||de===void 0||(Le=de.currentTree)===null||Le===void 0?void 0:Le.version)||ue.version===((ge=U.getState())===null||ge===void 0||(ae=ge.nextTree)===null||ae===void 0?void 0:ae.version)){var je,Te,Ae;wU(n,te,U,(je=(Te=U.getState())===null||Te===void 0||(Ae=Te.nextTree)===null||Ae===void 0?void 0:Ae.version)!==null&&je!==void 0?je:U.getState().currentTree.version)}for(const Ke of te)a.add(Ke)}function E(U,ue,te){const ye=AU(n);let de=!0,Le=!0;const ge=()=>{ye(),Le=!1};let ae,je=!1,Te;const Ae={loadingDepKey:null,loadingDepPromise:null},Ke=new Map;function st({key:_t}){const mt=Md(U,ue,_t);switch(Ke.set(_t,mt),de||(D(U,ue,new Set(Ke.keys()),te),A(U,te)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw Ae.loadingDepKey=_t,Ae.loadingDepPromise=mt.contents,mt.contents}throw rt("Invalid Loadable state")}const ht=_t=>(...mt)=>{if(Le)throw rt("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&&ic(!1),CU(U,_t,mt,{node:t})};try{ae=r({get:st,getCallback:ht}),ae=SU(ae)?st(ae):ae,mU(ae)&&(ae.state==="hasError"&&(je=!0),ae=ae.contents),Kt(ae)?ae=S(U,ae,ue,Ke,te,Ae).finally(ge):ge(),ae=ae instanceof aR?ae.value:ae}catch(_t){ae=_t,Kt(ae)?ae=k(U,ae,ue,Ke,te,Ae).finally(ge):(je=!0,ge())}return je?Te=Nd(ae):Kt(ae)?Te=gU(ae):Te=Ug(ae),de=!1,se(U,te,Ke),D(U,ue,new Set(Ke.keys()),te),[Te,Ke]}function L(U,ue){let te=ue.atomValues.get(n);if(te!=null)return te;const ye=new Set;try{te=u.get(Le=>(typeof Le!="string"&&ic(!1),Md(U,ue,Le).contents),{onNodeVisit:Le=>{Le.type==="branch"&&Le.nodeKey!==n&&ye.add(Le.nodeKey)}})}catch(Le){throw rt(`Problem with cache lookup for selector "${n}": ${Le.message}`)}if(te){var de;ue.atomValues.set(n,te),D(U,ue,ye,(de=$(U))===null||de===void 0?void 0:de.executionID)}return te}function I(U,ue){const te=L(U,ue);if(te!=null)return K(U),te;const ye=H(U,ue);if(ye!=null){var de;return((de=ye.loadingLoadable)===null||de===void 0?void 0:de.state)==="loading"&&w(U,ye.executionID),ye.loadingLoadable}const Le=RU(),[ge,ae]=E(U,ue,Le);return ge.state==="loading"?(Y(U,Le,ge,ae,ue),w(U,Le)):(K(U),le(ue,ge,ae)),ge}function H(U,ue){const te=PA([f.has(U)?[tn(f.get(U))]:[],$h(ty(f,([de])=>de!==U),([,de])=>de)]);function ye(de){for(const[Le,ge]of de)if(!Md(U,ue,Le).is(ge))return!0;return!1}for(const de of te){if(de.stateVersions.get(ue.version)||!ye(de.depValuesDiscoveredSoFarDuringAsyncWork))return de.stateVersions.set(ue.version,!0),de;de.stateVersions.set(ue.version,!1)}}function $(U){return f.get(U)}function Y(U,ue,te,ye,de){f.set(U,{depValuesDiscoveredSoFarDuringAsyncWork:ye,executionID:ue,loadingLoadable:te,stateVersions:new Map([[de.version,!0]])})}function se(U,ue,te){if(q(U,ue)){const ye=$(U);ye!=null&&(ye.depValuesDiscoveredSoFarDuringAsyncWork=te)}}function K(U){f.delete(U)}function q(U,ue){var te;return ue===((te=$(U))===null||te===void 0?void 0:te.executionID)}function Q(U){return Array.from(U.entries()).map(([ue,te])=>[ue,te.contents])}function le(U,ue,te){U.atomValues.set(n,ue);try{u.set(Q(te),ue)}catch(ye){throw rt(`Problem with setting cache for selector "${n}": ${ye.message}`)}}function pe(U){if(Wu.includes(n)){const ue=`Recoil selector has circular dependencies: ${Wu.slice(Wu.indexOf(n)).join(" → ")}`;return Nd(rt(ue))}Wu.push(n);try{return U()}finally{Wu.pop()}}function J(U,ue){const te=ue.atomValues.get(n);return te??u.get(ye=>{var de;return typeof ye!="string"&&ic(!1),(de=vU(U,ue,ye))===null||de===void 0?void 0:de.contents})}function he(U,ue){return pe(()=>I(U,ue))}function re(U){U.atomValues.delete(n)}function me(U,ue){t==null&&ic(!1);for(const ye of a){var te;const de=_U(ye);(te=de.clearCache)===null||te===void 0||te.call(de,U,ue)}a.clear(),re(ue),u.clear(),xS(U,t)}return i!=null?t=wS({key:n,nodeType:"selector",peek:J,get:he,set:(ue,te,ye)=>{let de=!1;const Le=new Map;function ge({key:Ae}){if(de)throw rt("Recoil: Async selector sets are not currently supported.");const Ke=Md(ue,te,Ae);if(Ke.state==="hasValue")return Ke.contents;if(Ke.state==="loading"){const st=`Getting value of asynchronous atom or selector "${Ae}" in a pending state while setting selector "${n}" is not yet supported.`;throw rt(st)}else throw Ke.contents}function ae(Ae,Ke){if(de)throw rt("Recoil: Async selector sets are not currently supported.");const st=typeof Ke=="function"?Ke(ge(Ae)):Ke;yU(ue,te,Ae.key,st).forEach((_t,mt)=>Le.set(mt,_t))}function je(Ae){ae(Ae,xU)}const Te=i({set:ae,get:ge,reset:je},ye);if(Te!==void 0)throw Kt(Te)?rt("Recoil: Async selector sets are not currently supported."):rt("Recoil: selector set should be a void function.");return de=!0,Le},init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=wS({key:n,nodeType:"selector",peek:J,get:he,init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}uR.value=e=>new aR(e);var Kl=uR;const{isLoadable:kU,loadableWithError:zg,loadableWithPromise:jg,loadableWithValue:Ya}=uf,{WrappedValue:cR}=oR,{peekNodeInfo:TU}=Ls,{DEFAULT_VALUE:ta,DefaultValue:cs,getConfigDeletionHandler:fR,registerNode:DU,setConfigDeletionHandler:PU}=Ur,{isRecoilValue:OU}=Hl,{getRecoilValueAsLoadable:LU,markRecoilValueModified:NU,setRecoilValue:bS,setRecoilValueLoadable:MU}=wi,{retainedByOptionWithDefault:BU}=Ta,Hu=e=>e instanceof cR?e.value:e;function IU(e){const{key:t,persistence_UNSTABLE:n}=e,r=BU(e.retainedBy_UNSTABLE);let o=0;function i(w){return jg(w.then(S=>(a=Ya(S),S)).catch(S=>{throw a=zg(S),S}))}let a=Kt(e.default)?i(e.default):kU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Ya(Hu(e.default));a.contents;let u;const c=new Map;function f(w){return w}function p(w,S){const k=S.then(D=>{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&&bS(w,b,D),D}).catch(D=>{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&&MU(w,b,zg(D)),D});return k}function h(w,S,k){var D;o++;const E=()=>{var $;o--,($=c.get(w))===null||$===void 0||$.forEach(Y=>Y()),c.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const $=()=>{var Y;((Y=w.getState().nextTree)!==null&&Y!==void 0?Y:w.getState().currentTree).atomValues.has(t)||NU(w,b)};a.contents.finally($)}const L=(D=e.effects)!==null&&D!==void 0?D:e.effects_UNSTABLE;if(L!=null){let $=function(re){if(q&&re.key===t){const me=K;return me instanceof cs?m(w,S):Kt(me)?jg(me.then(U=>U instanceof cs?a.toPromise():U)):Ya(me)}return LU(w,re)},Y=function(re){return $(re).toPromise()},se=function(re){var me;const U=TU(w,(me=w.getState().nextTree)!==null&&me!==void 0?me:w.getState().currentTree,re.key);return q&&re.key===t&&!(K instanceof cs)?{...U,isSet:!0,loadable:$(re)}:U},K=ta,q=!0,Q=!1,le=null;const pe=re=>me=>{if(q){const U=$(b),ue=U.state==="hasValue"?U.contents:ta;K=typeof me=="function"?me(ue):me,Kt(K)&&(K=K.then(te=>(le={effect:re,value:te},te)))}else{if(Kt(me))throw rt("Setting atoms to async values is not implemented.");typeof me!="function"&&(le={effect:re,value:Hu(me)}),bS(w,b,typeof me=="function"?U=>{const ue=Hu(me(U));return le={effect:re,value:ue},ue}:Hu(me))}},J=re=>()=>pe(re)(ta),he=re=>me=>{var U;const{release:ue}=w.subscribeToTransactions(te=>{var ye;let{currentTree:de,previousTree:Le}=te.getState();Le||(Le=de);const ge=(ye=de.atomValues.get(t))!==null&&ye!==void 0?ye:a;if(ge.state==="hasValue"){var ae,je,Te,Ae;const Ke=ge.contents,st=(ae=Le.atomValues.get(t))!==null&&ae!==void 0?ae:a,ht=st.state==="hasValue"?st.contents:ta;((je=le)===null||je===void 0?void 0:je.effect)!==re||((Te=le)===null||Te===void 0?void 0:Te.value)!==Ke?me(Ke,ht,!de.atomValues.has(t)):((Ae=le)===null||Ae===void 0?void 0:Ae.effect)===re&&(le=null)}},t);c.set(w,[...(U=c.get(w))!==null&&U!==void 0?U:[],ue])};for(const re of L)try{const me=re({node:b,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:k,setSelf:pe(re),resetSelf:J(re),onSet:he(re),getPromise:Y,getLoadable:$,getInfo_UNSTABLE:se});if(me!=null){var I;c.set(w,[...(I=c.get(w))!==null&&I!==void 0?I:[],me])}}catch(me){K=me,Q=!0}if(q=!1,!(K instanceof cs)){var H;const re=Q?zg(K):Kt(K)?jg(p(w,K)):Ya(Hu(K));re.contents,S.atomValues.set(t,re),(H=w.getState().nextTree)===null||H===void 0||H.atomValues.set(t,re)}}return E}function m(w,S){var k,D;return(k=(D=S.atomValues.get(t))!==null&&D!==void 0?D:u)!==null&&k!==void 0?k:a}function x(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),D=n.validator(k,ta);return u=D instanceof cs?a:Ya(D),u}else return a}function y(){u=void 0}function v(w,S,k){if(S.atomValues.has(t)){const D=tn(S.atomValues.get(t));if(D.state==="hasValue"&&k===D.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 b=DU({key:t,nodeType:"atom",peek:m,get:x,set:v,init:h,invalidate:y,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 b}function fy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return OU(n)?$U({...t,default:n}):IU({...t,default:n})}function $U(e){const t=fy({...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=Kl({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 PU(n.key,fR(e.key)),n}fy.value=e=>new cR(e);var dR=fy;class FU{constructor(t){var n;Je(this,"_map",void 0),Je(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 UU={MapCache:FU},zU=UU.MapCache,jU=Object.freeze({__proto__:null,MapCache:zU});const{LRUCache:_S}=sR,{MapCache:VU}=jU,Id={equality:"reference",eviction:"none",maxSize:1/0};function WU({equality:e=Id.equality,eviction:t=Id.eviction,maxSize:n=Id.maxSize}=Id){const r=HU(e);return qU(t,n,r)}function HU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function qU(e,t,n){switch(e){case"keep-all":return new VU({mapKey:n});case"lru":return new _S({mapKey:n,maxSize:tn(t)});case"most-recent":return new _S({mapKey:n,maxSize:1})}throw rt(`Unrecognized eviction policy ${e}`)}var pR=WU;const{setConfigDeletionHandler:GU}=Ur;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,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=Zh(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),GU(h.key,()=>{r.delete(o)}),h}}var YU=KU;const{setConfigDeletionHandler:XU}=Ur;let ZU=0;function QU(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 rt(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=Zh(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${ZU++}`,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=Kl({key:u,get:c,set:(y,v)=>m(o)(y,v),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Kl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),XU(h.key,()=>{r.delete(o)}),h}}var Ns=QU;const JU=Ns({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function ez(e){return JU(e)}var tz=ez;const nz=Ns({key:"__error",get:e=>()=>{throw rt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function rz(e){return nz(e)}var oz=rz;function iz(e){return e}var sz=iz;const{loadableWithError:hR,loadableWithPromise:mR,loadableWithValue:gR}=uf;function Qh(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 az(e){return e!=null&&!Kt(e)}function Jh(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function h2(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 h2(e,r)}function lz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const uz=Ns({key:"__waitForNone",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return Ol(e,r,o)},dangerouslyAllowMutability:!0}),cz=Ns({key:"__waitForAny",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(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}),fz=Ns({key:"__waitForAll",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);if(o.every(a=>a==null))return h2(e,r);const i=o.find(az);if(i!=null)throw i;return Promise.all(o).then(a=>h2(e,lz(r,a)))},dangerouslyAllowMutability:!0}),dz=Ns({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(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}),pz=Ns({key:"__noWait",get:e=>({get:t})=>{try{return Kl.value(gR(t(e)))}catch(n){return Kl.value(Kt(n)?mR(n):hR(n))}},dangerouslyAllowMutability:!0});var hz={waitForNone:uz,waitForAny:cz,waitForAll:fz,waitForAllSettled:dz,noWait:pz};const{RecoilLoadable:mz}=uf,{DefaultValue:gz}=Ur,{RecoilRoot:vz,useRecoilStoreID:yz}=Hi,{isRecoilValue:wz}=Hl,{retentionZone:xz}=Uh,{freshSnapshot:bz}=qh,{useRecoilState:_z,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Sz,useRecoilStateLoadable:Ez,useRecoilValue:Cz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Az,useRecoilValueLoadable:Rz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:kz,useResetRecoilState:Tz,useSetRecoilState:Dz}=U$,{useGotoRecoilSnapshot:Pz,useRecoilSnapshot:Oz,useRecoilTransactionObserver:Lz}=JA,{useRecoilCallback:Nz}=rR,{noWait:Mz,waitForAll:Bz,waitForAllSettled:Iz,waitForAny:$z,waitForNone:Fz}=hz;var Ms={DefaultValue:gz,isRecoilValue:wz,RecoilLoadable:mz,RecoilEnv:au,RecoilRoot:vz,useRecoilStoreID:yz,useRecoilBridgeAcrossReactRoots_UNSTABLE:pF,atom:dR,selector:Kl,atomFamily:YU,selectorFamily:Ns,constSelector:tz,errorSelector:oz,readOnlySelector:sz,noWait:Mz,waitForNone:Fz,waitForAny:$z,waitForAll:Bz,waitForAllSettled:Iz,useRecoilValue:Cz,useRecoilValueLoadable:Rz,useRecoilState:_z,useRecoilStateLoadable:Ez,useSetRecoilState:Dz,useResetRecoilState:Tz,useGetRecoilValueInfo_UNSTABLE:aF,useRecoilRefresher_UNSTABLE:jF,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:kz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Az,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Sz,useRecoilCallback:Nz,useRecoilTransaction_UNSTABLE:GF,useGotoRecoilSnapshot:Pz,useRecoilSnapshot:Oz,useRecoilTransactionObserver_UNSTABLE:Lz,snapshot_UNSTABLE:bz,useRetain:sy,retentionZone:xz},Uz=Ms.DefaultValue,zz=Ms.RecoilRoot,Sn=Ms.atom,vR=Ms.selector,Pn=Ms.useRecoilValue,SS=Ms.useRecoilState,xn=Ms.useSetRecoilState,hp=Ms.useResetRecoilState,ih={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 - */ih.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,x=4,y=1,v=2,A=1,b=2,w=4,S=8,k=16,D=32,E=64,L=128,I=256,H=512,$=30,Y="...",se=800,K=16,q=1,Q=2,le=3,pe=1/0,J=9007199254740991,he=17976931348623157e292,re=NaN,me=4294967295,U=me-1,ue=me>>>1,te=[["ary",L],["bind",A],["bindKey",b],["curry",S],["curryRight",k],["flip",H],["partial",D],["partialRight",E],["rearg",I]],ve="[object Arguments]",de="[object Array]",Ne="[object AsyncFunction]",Ce="[object Boolean]",ae="[object Date]",De="[object DOMException]",Re="[object Error]",Se="[object Function]",Ke="[object GeneratorFunction]",st="[object Map]",ht="[object Number]",_t="[object Null]",mt="[object Object]",Mn="[object Promise]",pr="[object Proxy]",Ct="[object RegExp]",at="[object Set]",un="[object String]",cn="[object Symbol]",Ut="[object Undefined]",At="[object WeakMap]",An="[object WeakSet]",nn="[object ArrayBuffer]",He="[object DataView]",Le="[object Float32Array]",Xt="[object Float64Array]",rr="[object Int8Array]",Hn="[object Int16Array]",Rn="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ce="[object Uint32Array]",xe=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ue=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,$e=RegExp(Ue.source),Ge=RegExp(Be.source),St=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,N=RegExp(or.source),B=/^\s+/,G=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,be=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Et=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,Rt=/^\[object .+?Constructor\]$/,Ae=/^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",Ze="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hr="\\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",vu="\\ufe0e\\ufe0f",Tf=Ze+Zt+hr+jt,J0="['’]",ET="["+$o+"]",Rw="["+Tf+"]",Df="["+Fs+"]",kw="\\d+",CT="["+Us+"]",Tw="["+zs+"]",Dw="[^"+$o+Tf+kw+Us+zs+lo+"]",em="\\ud83c[\\udffb-\\udfff]",AT="(?:"+Df+"|"+em+")",Pw="[^"+$o+"]",tm="(?:\\ud83c[\\udde6-\\uddff]){2}",nm="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="["+lo+"]",Ow="\\u200d",Lw="(?:"+Tw+"|"+Dw+")",RT="(?:"+Na+"|"+Dw+")",Nw="(?:"+J0+"(?:d|ll|m|re|s|t|ve))?",Mw="(?:"+J0+"(?:D|LL|M|RE|S|T|VE))?",Bw=AT+"?",Iw="["+vu+"]?",kT="(?:"+Ow+"(?:"+[Pw,tm,nm].join("|")+")"+Iw+Bw+")*",TT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",DT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$w=Iw+Bw+kT,PT="(?:"+[CT,tm,nm].join("|")+")"+$w,OT="(?:"+[Pw+Df+"?",Df,tm,nm,ET].join("|")+")",LT=RegExp(J0,"g"),NT=RegExp(Df,"g"),rm=RegExp(em+"(?="+em+")|"+OT+$w,"g"),MT=RegExp([Na+"?"+Tw+"+"+Nw+"(?="+[Rw,Na,"$"].join("|")+")",RT+"+"+Mw+"(?="+[Rw,Na+Lw,"$"].join("|")+")",Na+"?"+Lw+"+"+Nw,Na+"+"+Mw,DT,TT,kw,PT].join("|"),"g"),BT=RegExp("["+Ow+$o+Fs+vu+"]"),IT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$T=["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"],FT=-1,qt={};qt[Le]=qt[Xt]=qt[rr]=qt[Hn]=qt[Rn]=qt[Io]=qt[W]=qt[F]=qt[ce]=!0,qt[ve]=qt[de]=qt[nn]=qt[Ce]=qt[He]=qt[ae]=qt[Re]=qt[Se]=qt[st]=qt[ht]=qt[mt]=qt[Ct]=qt[at]=qt[un]=qt[At]=!1;var Vt={};Vt[ve]=Vt[de]=Vt[nn]=Vt[He]=Vt[Ce]=Vt[ae]=Vt[Le]=Vt[Xt]=Vt[rr]=Vt[Hn]=Vt[Rn]=Vt[st]=Vt[ht]=Vt[mt]=Vt[Ct]=Vt[at]=Vt[un]=Vt[cn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ce]=!0,Vt[Re]=Vt[Se]=Vt[At]=!1;var UT={À:"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"},zT={"&":"&","<":"<",">":">",'"':""","'":"'"},jT={"&":"&","<":"<",">":">",""":'"',"'":"'"},VT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WT=parseFloat,HT=parseInt,Fw=typeof window=="object"&&window&&window.Object===Object&&window,qT=typeof self=="object"&&self&&self.Object===Object&&self,qn=Fw||qT||Function("return this")(),om=t&&!t.nodeType&&t,js=om&&!0&&e&&!e.nodeType&&e,Uw=js&&js.exports===om,im=Uw&&Fw.process,uo=function(){try{var z=js&&js.require&&js.require("util").types;return z||im&&im.binding&&im.binding("util")}catch{}}(),zw=uo&&uo.isArrayBuffer,jw=uo&&uo.isDate,Vw=uo&&uo.isMap,Ww=uo&&uo.isRegExp,Hw=uo&&uo.isSet,qw=uo&&uo.isTypedArray;function zr(z,ee,X){switch(X.length){case 0:return z.call(ee);case 1:return z.call(ee,X[0]);case 2:return z.call(ee,X[0],X[1]);case 3:return z.call(ee,X[0],X[1],X[2])}return z.apply(ee,X)}function GT(z,ee,X,ke){for(var Ye=-1,kt=z==null?0:z.length;++Ye-1}function sm(z,ee,X){for(var ke=-1,Ye=z==null?0:z.length;++ke-1;);return X}function ex(z,ee){for(var X=z.length;X--&&Ma(ee,z[X],0)>-1;);return X}function n8(z,ee){for(var X=z.length,ke=0;X--;)z[X]===ee&&++ke;return ke}var r8=cm(UT),o8=cm(zT);function i8(z){return"\\"+VT[z]}function s8(z,ee){return z==null?n:z[ee]}function Ba(z){return BT.test(z)}function a8(z){return IT.test(z)}function l8(z){for(var ee,X=[];!(ee=z.next()).done;)X.push(ee.value);return X}function hm(z){var ee=-1,X=Array(z.size);return z.forEach(function(ke,Ye){X[++ee]=[Ye,ke]}),X}function tx(z,ee){return function(X){return z(ee(X))}}function Zi(z,ee){for(var X=-1,ke=z.length,Ye=0,kt=[];++X-1}function Y8(s,l){var d=this.__data__,g=Kf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=H8,_i.prototype.delete=q8,_i.prototype.get=G8,_i.prototype.has=K8,_i.prototype.set=Y8;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,_,R){var O,M=l&h,j=l&m,oe=l&x;if(d&&(O=_?d(s,g,_,R):d(s)),O!==n)return O;if(!rn(s))return s;var ie=Xe(s);if(ie){if(O=JD(s),!M)return Er(s,O)}else{var fe=sr(s),_e=fe==Se||fe==Ke;if(rs(s))return Ix(s,M);if(fe==mt||fe==ve||_e&&!_){if(O=j||_e?{}:nb(s),!M)return j?jD(s,fD(O,s)):zD(s,px(O,s))}else{if(!Vt[fe])return _?s:{};O=e7(s,fe,M)}}R||(R=new Uo);var Me=R.get(s);if(Me)return Me;R.set(s,O),Pb(s)?s.forEach(function(We){O.add(ho(We,l,d,We,s,R))}):Tb(s)&&s.forEach(function(We,lt){O.set(lt,ho(We,l,d,lt,s,R))});var Ve=oe?j?Um:Fm:j?Ar:Un,nt=ie?n:Ve(s);return co(nt||s,function(We,lt){nt&&(lt=We,We=s[lt]),Eu(O,lt,ho(We,l,d,lt,s,R))}),O}function dD(s){var l=Un(s);return function(d){return hx(d,s,l)}}function hx(s,l,d){var g=d.length;if(s==null)return!g;for(s=$t(s);g--;){var _=d[g],R=l[_],O=s[_];if(O===n&&!(_ in s)||!R(O))return!1}return!0}function mx(s,l,d){if(typeof s!="function")throw new fo(a);return Pu(function(){s.apply(n,d)},l)}function Cu(s,l,d,g){var _=-1,R=Pf,O=!0,M=s.length,j=[],oe=l.length;if(!M)return j;d&&(l=Qt(l,jr(d))),g?(R=sm,O=!1):l.length>=o&&(R=yu,O=!1,l=new Hs(l));e:for(;++__?0:_+d),g=g===n||g>_?_:tt(g),g<0&&(g+=_),g=d>g?0:Lb(g);d0&&d(M)?l>1?Gn(M,l-1,d,g,_):Xi(_,M):g||(_[_.length]=M)}return _}var bm=Vx(),yx=Vx(!0);function oi(s,l){return s&&bm(s,l,Un)}function _m(s,l){return s&&yx(s,l,Un)}function Xf(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 mD(s,l){return s!=null&&Ot.call(s,l)}function gD(s,l){return s!=null&&l in $t(s)}function vD(s,l,d){return s>=ir(l,d)&&s=120&&ie.length>=120)?new Hs(O&&ie):n}ie=s[0];var fe=-1,_e=M[0];e:for(;++fe<_&&oe.length-1;)M!==s&&zf.call(M,j,1),zf.call(s,j,1);return s}function Tx(s,l){for(var d=s?l.length:0,g=d-1;d--;){var _=l[d];if(d==g||_!==R){var R=_;Ri(_)?zf.call(s,_,1):Om(s,_)}}return s}function Tm(s,l){return s+Wf(ux()*(l-s+1))}function DD(s,l,d,g){for(var _=-1,R=In(Vf((l-s)/(d||1)),0),O=X(R);R--;)O[g?R:++_]=s,s+=d;return O}function Dm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=Wf(l/2),l&&(s+=s);while(l);return d}function ot(s,l){return Gm(ib(s,l,Rr),s+"")}function PD(s){return dx(Ga(s))}function OD(s,l){var d=Ga(s);return ad(d,qs(l,0,d.length))}function ku(s,l,d,g){if(!rn(s))return s;l=ts(l,s);for(var _=-1,R=l.length,O=R-1,M=s;M!=null&&++__?0:_+l),d=d>_?_:d,d<0&&(d+=_),_=l>d?0:d-l>>>0,l>>>=0;for(var R=X(_);++g<_;)R[g]=s[g+l];return R}function MD(s,l){var d;return Ji(s,function(g,_,R){return d=l(g,_,R),!d}),!!d}function Qf(s,l,d){var g=0,_=s==null?g:s.length;if(typeof l=="number"&&l===l&&_<=ue){for(;g<_;){var R=g+_>>>1,O=s[R];O!==null&&!Wr(O)&&(d?O<=l:O=o){var oe=l?null:qD(s);if(oe)return Lf(oe);O=!1,_=yu,j=new Hs}else j=l?[]:M;e:for(;++g=g?s:mo(s,l,d)}var Bx=S8||function(s){return qn.clearTimeout(s)};function Ix(s,l){if(l)return s.slice();var d=s.length,g=ox?ox(d):new s.constructor(d);return s.copy(g),g}function Bm(s){var l=new s.constructor(s.byteLength);return new Ff(l).set(new Ff(s)),l}function ID(s,l){var d=l?Bm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function $D(s){var l=new s.constructor(s.source,Fe.exec(s));return l.lastIndex=s.lastIndex,l}function FD(s){return Su?$t(Su.call(s)):{}}function $x(s,l){var d=l?Bm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Fx(s,l){if(s!==l){var d=s!==n,g=s===null,_=s===s,R=Wr(s),O=l!==n,M=l===null,j=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&O&&j&&!M&&!oe||g&&O&&j||!d&&j||!_)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 Ux(s,l,d,g){for(var _=-1,R=s.length,O=d.length,M=-1,j=l.length,oe=In(R-O,0),ie=X(j+oe),fe=!g;++M1?d[_-1]:n,O=_>2?d[2]:n;for(R=s.length>3&&typeof R=="function"?(_--,R):n,O&&gr(d[0],d[1],O)&&(R=_<3?n:R,_=1),l=$t(l);++g<_;){var M=d[g];M&&s(l,M,g,R)}return l})}function jx(s,l){return function(d,g){if(d==null)return d;if(!Cr(d))return s(d,g);for(var _=d.length,R=l?_:-1,O=$t(d);(l?R--:++R<_)&&g(O[R],R,O)!==!1;);return d}}function Vx(s){return function(l,d,g){for(var _=-1,R=$t(l),O=g(l),M=O.length;M--;){var j=O[s?M:++_];if(d(R[j],j,R)===!1)break}return l}}function VD(s,l,d){var g=l&A,_=Tu(s);function R(){var O=this&&this!==qn&&this instanceof R?_:s;return O.apply(g?d:this,arguments)}return R}function Wx(s){return function(l){l=Pt(l);var d=Ba(l)?Fo(l):n,g=d?d[0]:l.charAt(0),_=d?ns(d,1).join(""):l.slice(1);return g[s]()+_}}function Wa(s){return function(l){return am(jb(zb(l).replace(LT,"")),s,"")}}function Tu(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ja(s.prototype),g=s.apply(d,l);return rn(g)?g:d}}function WD(s,l,d){var g=Tu(s);function _(){for(var R=arguments.length,O=X(R),M=R,j=Ha(_);M--;)O[M]=arguments[M];var oe=R<3&&O[0]!==j&&O[R-1]!==j?[]:Zi(O,j);if(R-=oe.length,R-1?_[R?l[O]:O]:n}}function qx(s){return Ai(function(l){var d=l.length,g=d,_=po.prototype.thru;for(s&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new fo(a);if(_&&!O&&id(R)=="wrapper")var O=new po([],!0)}for(g=O?g:d;++g1&&ft.reverse(),ie&&jM))return!1;var oe=R.get(s),ie=R.get(l);if(oe&&ie)return oe==l&&ie==s;var fe=-1,_e=!0,Me=d&v?new Hs:n;for(R.set(s,l),R.set(l,s);++fe1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(ne,`{ + */ih.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,x=4,y=1,v=2,A=1,b=2,w=4,S=8,k=16,D=32,E=64,L=128,I=256,H=512,$=30,Y="...",se=800,K=16,q=1,Q=2,le=3,pe=1/0,J=9007199254740991,he=17976931348623157e292,re=NaN,me=4294967295,U=me-1,ue=me>>>1,te=[["ary",L],["bind",A],["bindKey",b],["curry",S],["curryRight",k],["flip",H],["partial",D],["partialRight",E],["rearg",I]],ye="[object Arguments]",de="[object Array]",Le="[object AsyncFunction]",ge="[object Boolean]",ae="[object Date]",je="[object DOMException]",Te="[object Error]",Ae="[object Function]",Ke="[object GeneratorFunction]",st="[object Map]",ht="[object Number]",_t="[object Null]",mt="[object Object]",Mn="[object Promise]",pr="[object Proxy]",Ct="[object RegExp]",at="[object Set]",un="[object String]",cn="[object Symbol]",Ut="[object Undefined]",At="[object WeakMap]",An="[object WeakSet]",nn="[object ArrayBuffer]",He="[object DataView]",Oe="[object Float32Array]",Xt="[object Float64Array]",rr="[object Int8Array]",Hn="[object Int16Array]",Rn="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ce="[object Uint32Array]",be=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fe=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ie=RegExp(Fe.source),Ge=RegExp(Me.source),St=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,N=RegExp(or.source),B=/^\s+/,G=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_e=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Et=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,Rt=/^\[object .+?Constructor\]$/,Ce=/^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",Ze="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hr="\\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",vu="\\ufe0e\\ufe0f",Tf=Ze+Zt+hr+jt,J0="['’]",ET="["+$o+"]",Rw="["+Tf+"]",Df="["+Fs+"]",kw="\\d+",CT="["+Us+"]",Tw="["+zs+"]",Dw="[^"+$o+Tf+kw+Us+zs+lo+"]",em="\\ud83c[\\udffb-\\udfff]",AT="(?:"+Df+"|"+em+")",Pw="[^"+$o+"]",tm="(?:\\ud83c[\\udde6-\\uddff]){2}",nm="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="["+lo+"]",Ow="\\u200d",Lw="(?:"+Tw+"|"+Dw+")",RT="(?:"+Na+"|"+Dw+")",Nw="(?:"+J0+"(?:d|ll|m|re|s|t|ve))?",Mw="(?:"+J0+"(?:D|LL|M|RE|S|T|VE))?",Bw=AT+"?",Iw="["+vu+"]?",kT="(?:"+Ow+"(?:"+[Pw,tm,nm].join("|")+")"+Iw+Bw+")*",TT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",DT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$w=Iw+Bw+kT,PT="(?:"+[CT,tm,nm].join("|")+")"+$w,OT="(?:"+[Pw+Df+"?",Df,tm,nm,ET].join("|")+")",LT=RegExp(J0,"g"),NT=RegExp(Df,"g"),rm=RegExp(em+"(?="+em+")|"+OT+$w,"g"),MT=RegExp([Na+"?"+Tw+"+"+Nw+"(?="+[Rw,Na,"$"].join("|")+")",RT+"+"+Mw+"(?="+[Rw,Na+Lw,"$"].join("|")+")",Na+"?"+Lw+"+"+Nw,Na+"+"+Mw,DT,TT,kw,PT].join("|"),"g"),BT=RegExp("["+Ow+$o+Fs+vu+"]"),IT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$T=["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"],FT=-1,qt={};qt[Oe]=qt[Xt]=qt[rr]=qt[Hn]=qt[Rn]=qt[Io]=qt[W]=qt[F]=qt[ce]=!0,qt[ye]=qt[de]=qt[nn]=qt[ge]=qt[He]=qt[ae]=qt[Te]=qt[Ae]=qt[st]=qt[ht]=qt[mt]=qt[Ct]=qt[at]=qt[un]=qt[At]=!1;var Vt={};Vt[ye]=Vt[de]=Vt[nn]=Vt[He]=Vt[ge]=Vt[ae]=Vt[Oe]=Vt[Xt]=Vt[rr]=Vt[Hn]=Vt[Rn]=Vt[st]=Vt[ht]=Vt[mt]=Vt[Ct]=Vt[at]=Vt[un]=Vt[cn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ce]=!0,Vt[Te]=Vt[Ae]=Vt[At]=!1;var UT={À:"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"},zT={"&":"&","<":"<",">":">",'"':""","'":"'"},jT={"&":"&","<":"<",">":">",""":'"',"'":"'"},VT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WT=parseFloat,HT=parseInt,Fw=typeof window=="object"&&window&&window.Object===Object&&window,qT=typeof self=="object"&&self&&self.Object===Object&&self,qn=Fw||qT||Function("return this")(),om=t&&!t.nodeType&&t,js=om&&!0&&e&&!e.nodeType&&e,Uw=js&&js.exports===om,im=Uw&&Fw.process,uo=function(){try{var z=js&&js.require&&js.require("util").types;return z||im&&im.binding&&im.binding("util")}catch{}}(),zw=uo&&uo.isArrayBuffer,jw=uo&&uo.isDate,Vw=uo&&uo.isMap,Ww=uo&&uo.isRegExp,Hw=uo&&uo.isSet,qw=uo&&uo.isTypedArray;function zr(z,ee,X){switch(X.length){case 0:return z.call(ee);case 1:return z.call(ee,X[0]);case 2:return z.call(ee,X[0],X[1]);case 3:return z.call(ee,X[0],X[1],X[2])}return z.apply(ee,X)}function GT(z,ee,X,Re){for(var Ye=-1,kt=z==null?0:z.length;++Ye-1}function sm(z,ee,X){for(var Re=-1,Ye=z==null?0:z.length;++Re-1;);return X}function ex(z,ee){for(var X=z.length;X--&&Ma(ee,z[X],0)>-1;);return X}function n8(z,ee){for(var X=z.length,Re=0;X--;)z[X]===ee&&++Re;return Re}var r8=cm(UT),o8=cm(zT);function i8(z){return"\\"+VT[z]}function s8(z,ee){return z==null?n:z[ee]}function Ba(z){return BT.test(z)}function a8(z){return IT.test(z)}function l8(z){for(var ee,X=[];!(ee=z.next()).done;)X.push(ee.value);return X}function hm(z){var ee=-1,X=Array(z.size);return z.forEach(function(Re,Ye){X[++ee]=[Ye,Re]}),X}function tx(z,ee){return function(X){return z(ee(X))}}function Zi(z,ee){for(var X=-1,Re=z.length,Ye=0,kt=[];++X-1}function Y8(s,l){var d=this.__data__,g=Kf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=H8,_i.prototype.delete=q8,_i.prototype.get=G8,_i.prototype.has=K8,_i.prototype.set=Y8;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,_,R){var O,M=l&h,j=l&m,oe=l&x;if(d&&(O=_?d(s,g,_,R):d(s)),O!==n)return O;if(!rn(s))return s;var ie=Xe(s);if(ie){if(O=JD(s),!M)return Er(s,O)}else{var fe=sr(s),Se=fe==Ae||fe==Ke;if(rs(s))return Ix(s,M);if(fe==mt||fe==ye||Se&&!_){if(O=j||Se?{}:nb(s),!M)return j?jD(s,fD(O,s)):zD(s,px(O,s))}else{if(!Vt[fe])return _?s:{};O=e7(s,fe,M)}}R||(R=new Uo);var Ne=R.get(s);if(Ne)return Ne;R.set(s,O),Pb(s)?s.forEach(function(We){O.add(ho(We,l,d,We,s,R))}):Tb(s)&&s.forEach(function(We,lt){O.set(lt,ho(We,l,d,lt,s,R))});var Ve=oe?j?Um:Fm:j?Ar:Un,nt=ie?n:Ve(s);return co(nt||s,function(We,lt){nt&&(lt=We,We=s[lt]),Eu(O,lt,ho(We,l,d,lt,s,R))}),O}function dD(s){var l=Un(s);return function(d){return hx(d,s,l)}}function hx(s,l,d){var g=d.length;if(s==null)return!g;for(s=$t(s);g--;){var _=d[g],R=l[_],O=s[_];if(O===n&&!(_ in s)||!R(O))return!1}return!0}function mx(s,l,d){if(typeof s!="function")throw new fo(a);return Pu(function(){s.apply(n,d)},l)}function Cu(s,l,d,g){var _=-1,R=Pf,O=!0,M=s.length,j=[],oe=l.length;if(!M)return j;d&&(l=Qt(l,jr(d))),g?(R=sm,O=!1):l.length>=o&&(R=yu,O=!1,l=new Hs(l));e:for(;++__?0:_+d),g=g===n||g>_?_:tt(g),g<0&&(g+=_),g=d>g?0:Lb(g);d0&&d(M)?l>1?Gn(M,l-1,d,g,_):Xi(_,M):g||(_[_.length]=M)}return _}var bm=Vx(),yx=Vx(!0);function oi(s,l){return s&&bm(s,l,Un)}function _m(s,l){return s&&yx(s,l,Un)}function Xf(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 mD(s,l){return s!=null&&Ot.call(s,l)}function gD(s,l){return s!=null&&l in $t(s)}function vD(s,l,d){return s>=ir(l,d)&&s=120&&ie.length>=120)?new Hs(O&&ie):n}ie=s[0];var fe=-1,Se=M[0];e:for(;++fe<_&&oe.length-1;)M!==s&&zf.call(M,j,1),zf.call(s,j,1);return s}function Tx(s,l){for(var d=s?l.length:0,g=d-1;d--;){var _=l[d];if(d==g||_!==R){var R=_;Ri(_)?zf.call(s,_,1):Om(s,_)}}return s}function Tm(s,l){return s+Wf(ux()*(l-s+1))}function DD(s,l,d,g){for(var _=-1,R=In(Vf((l-s)/(d||1)),0),O=X(R);R--;)O[g?R:++_]=s,s+=d;return O}function Dm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=Wf(l/2),l&&(s+=s);while(l);return d}function ot(s,l){return Gm(ib(s,l,Rr),s+"")}function PD(s){return dx(Ga(s))}function OD(s,l){var d=Ga(s);return ad(d,qs(l,0,d.length))}function ku(s,l,d,g){if(!rn(s))return s;l=ts(l,s);for(var _=-1,R=l.length,O=R-1,M=s;M!=null&&++__?0:_+l),d=d>_?_:d,d<0&&(d+=_),_=l>d?0:d-l>>>0,l>>>=0;for(var R=X(_);++g<_;)R[g]=s[g+l];return R}function MD(s,l){var d;return Ji(s,function(g,_,R){return d=l(g,_,R),!d}),!!d}function Qf(s,l,d){var g=0,_=s==null?g:s.length;if(typeof l=="number"&&l===l&&_<=ue){for(;g<_;){var R=g+_>>>1,O=s[R];O!==null&&!Wr(O)&&(d?O<=l:O=o){var oe=l?null:qD(s);if(oe)return Lf(oe);O=!1,_=yu,j=new Hs}else j=l?[]:M;e:for(;++g=g?s:mo(s,l,d)}var Bx=S8||function(s){return qn.clearTimeout(s)};function Ix(s,l){if(l)return s.slice();var d=s.length,g=ox?ox(d):new s.constructor(d);return s.copy(g),g}function Bm(s){var l=new s.constructor(s.byteLength);return new Ff(l).set(new Ff(s)),l}function ID(s,l){var d=l?Bm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function $D(s){var l=new s.constructor(s.source,$e.exec(s));return l.lastIndex=s.lastIndex,l}function FD(s){return Su?$t(Su.call(s)):{}}function $x(s,l){var d=l?Bm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Fx(s,l){if(s!==l){var d=s!==n,g=s===null,_=s===s,R=Wr(s),O=l!==n,M=l===null,j=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&O&&j&&!M&&!oe||g&&O&&j||!d&&j||!_)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 Ux(s,l,d,g){for(var _=-1,R=s.length,O=d.length,M=-1,j=l.length,oe=In(R-O,0),ie=X(j+oe),fe=!g;++M1?d[_-1]:n,O=_>2?d[2]:n;for(R=s.length>3&&typeof R=="function"?(_--,R):n,O&&gr(d[0],d[1],O)&&(R=_<3?n:R,_=1),l=$t(l);++g<_;){var M=d[g];M&&s(l,M,g,R)}return l})}function jx(s,l){return function(d,g){if(d==null)return d;if(!Cr(d))return s(d,g);for(var _=d.length,R=l?_:-1,O=$t(d);(l?R--:++R<_)&&g(O[R],R,O)!==!1;);return d}}function Vx(s){return function(l,d,g){for(var _=-1,R=$t(l),O=g(l),M=O.length;M--;){var j=O[s?M:++_];if(d(R[j],j,R)===!1)break}return l}}function VD(s,l,d){var g=l&A,_=Tu(s);function R(){var O=this&&this!==qn&&this instanceof R?_:s;return O.apply(g?d:this,arguments)}return R}function Wx(s){return function(l){l=Pt(l);var d=Ba(l)?Fo(l):n,g=d?d[0]:l.charAt(0),_=d?ns(d,1).join(""):l.slice(1);return g[s]()+_}}function Wa(s){return function(l){return am(jb(zb(l).replace(LT,"")),s,"")}}function Tu(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ja(s.prototype),g=s.apply(d,l);return rn(g)?g:d}}function WD(s,l,d){var g=Tu(s);function _(){for(var R=arguments.length,O=X(R),M=R,j=Ha(_);M--;)O[M]=arguments[M];var oe=R<3&&O[0]!==j&&O[R-1]!==j?[]:Zi(O,j);if(R-=oe.length,R-1?_[R?l[O]:O]:n}}function qx(s){return Ai(function(l){var d=l.length,g=d,_=po.prototype.thru;for(s&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new fo(a);if(_&&!O&&id(R)=="wrapper")var O=new po([],!0)}for(g=O?g:d;++g1&&ft.reverse(),ie&&jM))return!1;var oe=R.get(s),ie=R.get(l);if(oe&&ie)return oe==l&&ie==s;var fe=-1,Se=!0,Ne=d&v?new Hs:n;for(R.set(s,l),R.set(l,s);++fe1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(ne,`{ /* [wrapped with `+l+`] */ -`)}function n7(s){return Xe(s)||Xs(s)||!!(ax&&s&&s[ax])}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>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function ad(s,l){var d=-1,g=s.length,_=g-1;for(l=l===n?g:l;++d1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,vb(s,d)});function yb(s){var l=C(s);return l.__chain__=!0,l}function p6(s,l){return l(s),s}function ld(s,l){return l(s)}var h6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,_=function(R){return xm(R,s)};return l>1||this.__actions__.length||!(g instanceof ct)||!Ri(d)?this.thru(_):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ld,args:[_],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function m6(){return yb(this)}function g6(){return new po(this.value(),this.__chain__)}function v6(){this.__values__===n&&(this.__values__=Ob(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function y6(){return this}function w6(s){for(var l,d=this;d instanceof Gf;){var g=fb(d);g.__index__=0,g.__values__=n,l?_.__wrapped__=g:l=g;var _=g;d=d.__wrapped__}return _.__wrapped__=s,l}function x6(){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:ld,args:[Km],thisArg:n}),new po(l,this.__chain__)}return this.thru(Km)}function b6(){return Nx(this.__wrapped__,this.__actions__)}var _6=ed(function(s,l,d){Ot.call(s,d)?++s[d]:Ei(s,d,1)});function S6(s,l,d){var g=Xe(s)?Gw:pD;return d&&gr(s,l,d)&&(l=n),g(s,je(l,3))}function E6(s,l){var d=Xe(s)?Yi:vx;return d(s,je(l,3))}var C6=Hx(db),A6=Hx(pb);function R6(s,l){return Gn(ud(s,l),1)}function k6(s,l){return Gn(ud(s,l),pe)}function T6(s,l,d){return d=d===n?1:tt(d),Gn(ud(s,l),d)}function wb(s,l){var d=Xe(s)?co:Ji;return d(s,je(l,3))}function xb(s,l){var d=Xe(s)?KT:gx;return d(s,je(l,3))}var D6=ed(function(s,l,d){Ot.call(s,d)?s[d].push(l):Ei(s,d,[l])});function P6(s,l,d,g){s=Cr(s)?s:Ga(s),d=d&&!g?tt(d):0;var _=s.length;return d<0&&(d=In(_+d,0)),hd(s)?d<=_&&s.indexOf(l,d)>-1:!!_&&Ma(s,l,d)>-1}var O6=ot(function(s,l,d){var g=-1,_=typeof l=="function",R=Cr(s)?X(s.length):[];return Ji(s,function(O){R[++g]=_?zr(l,O,d):Au(O,l,d)}),R}),L6=ed(function(s,l,d){Ei(s,d,l)});function ud(s,l){var d=Xe(s)?Qt:Sx;return d(s,je(l,3))}function N6(s,l,d,g){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),d=g?n:d,Xe(d)||(d=d==null?[]:[d]),Rx(s,l,d))}var M6=ed(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function B6(s,l,d){var g=Xe(s)?am:Zw,_=arguments.length<3;return g(s,je(l,4),d,_,Ji)}function I6(s,l,d){var g=Xe(s)?YT:Zw,_=arguments.length<3;return g(s,je(l,4),d,_,gx)}function $6(s,l){var d=Xe(s)?Yi:vx;return d(s,dd(je(l,3)))}function F6(s){var l=Xe(s)?dx:PD;return l(s)}function U6(s,l,d){(d?gr(s,l,d):l===n)?l=1:l=tt(l);var g=Xe(s)?lD:OD;return g(s,l)}function z6(s){var l=Xe(s)?uD:ND;return l(s)}function j6(s){if(s==null)return 0;if(Cr(s))return hd(s)?Ia(s):s.length;var l=sr(s);return l==st||l==at?s.size:Am(s).length}function V6(s,l,d){var g=Xe(s)?lm:MD;return d&&gr(s,l,d)&&(l=n),g(s,je(l,3))}var W6=ot(function(s,l){if(s==null)return[];var d=l.length;return d>1&&gr(s,l[0],l[1])?l=[]:d>2&&gr(l[0],l[1],l[2])&&(l=[l[0]]),Rx(s,Gn(l,1),[])}),cd=E8||function(){return qn.Date.now()};function H6(s,l){if(typeof l!="function")throw new fo(a);return s=tt(s),function(){if(--s<1)return l.apply(this,arguments)}}function bb(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function _b(s,l){var d;if(typeof l!="function")throw new fo(a);return s=tt(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var Xm=ot(function(s,l,d){var g=A;if(d.length){var _=Zi(d,Ha(Xm));g|=D}return Ci(s,g,l,d,_)}),Sb=ot(function(s,l,d){var g=A|b;if(d.length){var _=Zi(d,Ha(Sb));g|=D}return Ci(l,g,s,d,_)});function Eb(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=Eb.placeholder,g}function Cb(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=Cb.placeholder,g}function Ab(s,l,d){var g,_,R,O,M,j,oe=0,ie=!1,fe=!1,_e=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(ie=!!d.leading,fe="maxWait"in d,R=fe?In(vo(d.maxWait)||0,l):R,_e="trailing"in d?!!d.trailing:_e);function Me(wn){var jo=g,Di=_;return g=_=n,oe=wn,O=s.apply(Di,jo),O}function Ve(wn){return oe=wn,M=Pu(lt,l),ie?Me(wn):O}function nt(wn){var jo=wn-j,Di=wn-oe,Hb=l-jo;return fe?ir(Hb,R-Di):Hb}function We(wn){var jo=wn-j,Di=wn-oe;return j===n||jo>=l||jo<0||fe&&Di>=R}function lt(){var wn=cd();if(We(wn))return ft(wn);M=Pu(lt,nt(wn))}function ft(wn){return M=n,_e&&g?Me(wn):(g=_=n,O)}function Hr(){M!==n&&Bx(M),oe=0,g=j=_=M=n}function vr(){return M===n?O:ft(cd())}function qr(){var wn=cd(),jo=We(wn);if(g=arguments,_=this,j=wn,jo){if(M===n)return Ve(j);if(fe)return Bx(M),M=Pu(lt,l),Me(j)}return M===n&&(M=Pu(lt,l)),O}return qr.cancel=Hr,qr.flush=vr,qr}var q6=ot(function(s,l){return mx(s,1,l)}),G6=ot(function(s,l,d){return mx(s,vo(l)||0,d)});function K6(s){return Ci(s,H)}function fd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fo(a);var d=function(){var g=arguments,_=l?l.apply(this,g):g[0],R=d.cache;if(R.has(_))return R.get(_);var O=s.apply(this,g);return d.cache=R.set(_,O)||R,O};return d.cache=new(fd.Cache||Si),d}fd.Cache=Si;function dd(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 Y6(s){return _b(2,s)}var X6=BD(function(s,l){l=l.length==1&&Xe(l[0])?Qt(l[0],jr(je())):Qt(Gn(l,1),jr(je()));var d=l.length;return ot(function(g){for(var _=-1,R=ir(g.length,d);++_=l}),Xs=xx(function(){return arguments}())?xx:function(s){return pn(s)&&Ot.call(s,"callee")&&!sx.call(s,"callee")},Xe=X.isArray,f9=zw?jr(zw):wD;function Cr(s){return s!=null&&pd(s.length)&&!ki(s)}function yn(s){return pn(s)&&Cr(s)}function d9(s){return s===!0||s===!1||pn(s)&&mr(s)==Ce}var rs=A8||lg,p9=jw?jr(jw):xD;function h9(s){return pn(s)&&s.nodeType===1&&!Ou(s)}function m9(s){if(s==null)return!0;if(Cr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||rs(s)||qa(s)||Xs(s)))return!s.length;var l=sr(s);if(l==st||l==at)return!s.size;if(Du(s))return!Am(s).length;for(var d in s)if(Ot.call(s,d))return!1;return!0}function g9(s,l){return Ru(s,l)}function v9(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?Ru(s,l,n,d):!!g}function Qm(s){if(!pn(s))return!1;var l=mr(s);return l==Re||l==De||typeof s.message=="string"&&typeof s.name=="string"&&!Ou(s)}function y9(s){return typeof s=="number"&&lx(s)}function ki(s){if(!rn(s))return!1;var l=mr(s);return l==Se||l==Ke||l==Ne||l==pr}function kb(s){return typeof s=="number"&&s==tt(s)}function pd(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 Tb=Vw?jr(Vw):_D;function w9(s,l){return s===l||Cm(s,l,jm(l))}function x9(s,l,d){return d=typeof d=="function"?d:n,Cm(s,l,jm(l),d)}function b9(s){return Db(s)&&s!=+s}function _9(s){if(i7(s))throw new Ye(i);return bx(s)}function S9(s){return s===null}function E9(s){return s==null}function Db(s){return typeof s=="number"||pn(s)&&mr(s)==ht}function Ou(s){if(!pn(s)||mr(s)!=mt)return!1;var l=Uf(s);if(l===null)return!0;var d=Ot.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Bf.call(d)==x8}var Jm=Ww?jr(Ww):SD;function C9(s){return kb(s)&&s>=-J&&s<=J}var Pb=Hw?jr(Hw):ED;function hd(s){return typeof s=="string"||!Xe(s)&&pn(s)&&mr(s)==un}function Wr(s){return typeof s=="symbol"||pn(s)&&mr(s)==cn}var qa=qw?jr(qw):CD;function A9(s){return s===n}function R9(s){return pn(s)&&sr(s)==At}function k9(s){return pn(s)&&mr(s)==An}var T9=od(Rm),D9=od(function(s,l){return s<=l});function Ob(s){if(!s)return[];if(Cr(s))return hd(s)?Fo(s):Er(s);if(wu&&s[wu])return l8(s[wu]());var l=sr(s),d=l==st?hm:l==at?Lf:Ga;return d(s)}function Ti(s){if(!s)return s===0?s:0;if(s=vo(s),s===pe||s===-pe){var l=s<0?-1:1;return l*he}return s===s?s:0}function tt(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Lb(s){return s?qs(tt(s),0,me):0}function vo(s){if(typeof s=="number")return s;if(Wr(s))return re;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||Ae.test(s)?HT(s.slice(2),d?2:8):Et.test(s)?re:+s}function Nb(s){return ii(s,Ar(s))}function P9(s){return s?qs(tt(s),-J,J):s===0?s:0}function Pt(s){return s==null?"":Vr(s)}var O9=Va(function(s,l){if(Du(l)||Cr(l)){ii(l,Un(l),s);return}for(var d in l)Ot.call(l,d)&&Eu(s,d,l[d])}),Mb=Va(function(s,l){ii(l,Ar(l),s)}),md=Va(function(s,l,d,g){ii(l,Ar(l),s,g)}),L9=Va(function(s,l,d,g){ii(l,Un(l),s,g)}),N9=Ai(xm);function M9(s,l){var d=ja(s);return l==null?d:px(d,l)}var B9=ot(function(s,l){s=$t(s);var d=-1,g=l.length,_=g>2?l[2]:n;for(_&&gr(l[0],l[1],_)&&(g=1);++d1),R}),ii(s,Um(s),d),g&&(d=ho(d,h|m|x,GD));for(var _=l.length;_--;)Om(d,l[_]);return d});function eP(s,l){return Ib(s,dd(je(l)))}var tP=Ai(function(s,l){return s==null?{}:kD(s,l)});function Ib(s,l){if(s==null)return{};var d=Qt(Um(s),function(g){return[g]});return l=je(l),kx(s,d,function(g,_){return l(g,_[0])})}function nP(s,l,d){l=ts(l,s);var g=-1,_=l.length;for(_||(_=1,s=n);++g<_;){var R=s==null?n:s[si(l[g])];R===n&&(g=_,R=d),s=ki(R)?R.call(s):R}return s}function rP(s,l,d){return s==null?s:ku(s,l,d)}function oP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:ku(s,l,d,g)}var $b=Xx(Un),Fb=Xx(Ar);function iP(s,l,d){var g=Xe(s),_=g||rs(s)||qa(s);if(l=je(l,4),d==null){var R=s&&s.constructor;_?d=g?new R:[]:rn(s)?d=ki(R)?ja(Uf(s)):{}:d={}}return(_?co:oi)(s,function(O,M,j){return l(d,O,M,j)}),d}function sP(s,l){return s==null?!0:Om(s,l)}function aP(s,l,d){return s==null?s:Lx(s,l,Mm(d))}function lP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Lx(s,l,Mm(d),g)}function Ga(s){return s==null?[]:pm(s,Un(s))}function uP(s){return s==null?[]:pm(s,Ar(s))}function cP(s,l,d){return d===n&&(d=l,l=n),d!==n&&(d=vo(d),d=d===d?d:0),l!==n&&(l=vo(l),l=l===l?l:0),qs(vo(s),l,d)}function fP(s,l,d){return l=Ti(l),d===n?(d=l,l=0):d=Ti(d),s=vo(s),vD(s,l,d)}function dP(s,l,d){if(d&&typeof d!="boolean"&&gr(s,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof s=="boolean"&&(d=s,s=n)),s===n&&l===n?(s=0,l=1):(s=Ti(s),l===n?(l=s,s=0):l=Ti(l)),s>l){var g=s;s=l,l=g}if(d||s%1||l%1){var _=ux();return ir(s+_*(l-s+WT("1e-"+((_+"").length-1))),l)}return Tm(s,l)}var pP=Wa(function(s,l,d){return l=l.toLowerCase(),s+(d?Ub(l):l)});function Ub(s){return ng(Pt(s).toLowerCase())}function zb(s){return s=Pt(s),s&&s.replace(dn,r8).replace(NT,"")}function hP(s,l,d){s=Pt(s),l=Vr(l);var g=s.length;d=d===n?g:qs(tt(d),0,g);var _=d;return d-=l.length,d>=0&&s.slice(d,_)==l}function mP(s){return s=Pt(s),s&&Ge.test(s)?s.replace(Be,o8):s}function gP(s){return s=Pt(s),s&&N.test(s)?s.replace(or,"\\$&"):s}var vP=Wa(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),yP=Wa(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),wP=Wx("toLowerCase");function xP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ia(s):0;if(!l||g>=l)return s;var _=(l-g)/2;return rd(Wf(_),d)+s+rd(Vf(_),d)}function bP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ia(s):0;return l&&g>>0,d?(s=Pt(s),s&&(typeof l=="string"||l!=null&&!Jm(l))&&(l=Vr(l),!l&&Ba(s))?ns(Fo(s),0,d):s.split(l,d)):[]}var kP=Wa(function(s,l,d){return s+(d?" ":"")+ng(l)});function TP(s,l,d){return s=Pt(s),d=d==null?0:qs(tt(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function DP(s,l,d){var g=C.templateSettings;d&&gr(s,l,d)&&(l=n),s=Pt(s),l=md({},l,g,Zx);var _=md({},l.imports,g.imports,Zx),R=Un(_),O=pm(_,R),M,j,oe=0,ie=l.interpolate||ni,fe="__p += '",_e=mm((l.escape||ni).source+"|"+ie.source+"|"+(ie===zt?Ie:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Me="//# sourceURL="+(Ot.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++FT+"]")+` -`;s.replace(_e,function(We,lt,ft,Hr,vr,qr){return ft||(ft=Hr),fe+=s.slice(oe,qr).replace(ri,i8),lt&&(M=!0,fe+=`' + +`)}function n7(s){return Xe(s)||Xs(s)||!!(ax&&s&&s[ax])}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>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function ad(s,l){var d=-1,g=s.length,_=g-1;for(l=l===n?g:l;++d1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,vb(s,d)});function yb(s){var l=C(s);return l.__chain__=!0,l}function p6(s,l){return l(s),s}function ld(s,l){return l(s)}var h6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,_=function(R){return xm(R,s)};return l>1||this.__actions__.length||!(g instanceof ct)||!Ri(d)?this.thru(_):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ld,args:[_],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function m6(){return yb(this)}function g6(){return new po(this.value(),this.__chain__)}function v6(){this.__values__===n&&(this.__values__=Ob(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function y6(){return this}function w6(s){for(var l,d=this;d instanceof Gf;){var g=fb(d);g.__index__=0,g.__values__=n,l?_.__wrapped__=g:l=g;var _=g;d=d.__wrapped__}return _.__wrapped__=s,l}function x6(){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:ld,args:[Km],thisArg:n}),new po(l,this.__chain__)}return this.thru(Km)}function b6(){return Nx(this.__wrapped__,this.__actions__)}var _6=ed(function(s,l,d){Ot.call(s,d)?++s[d]:Ei(s,d,1)});function S6(s,l,d){var g=Xe(s)?Gw:pD;return d&&gr(s,l,d)&&(l=n),g(s,ze(l,3))}function E6(s,l){var d=Xe(s)?Yi:vx;return d(s,ze(l,3))}var C6=Hx(db),A6=Hx(pb);function R6(s,l){return Gn(ud(s,l),1)}function k6(s,l){return Gn(ud(s,l),pe)}function T6(s,l,d){return d=d===n?1:tt(d),Gn(ud(s,l),d)}function wb(s,l){var d=Xe(s)?co:Ji;return d(s,ze(l,3))}function xb(s,l){var d=Xe(s)?KT:gx;return d(s,ze(l,3))}var D6=ed(function(s,l,d){Ot.call(s,d)?s[d].push(l):Ei(s,d,[l])});function P6(s,l,d,g){s=Cr(s)?s:Ga(s),d=d&&!g?tt(d):0;var _=s.length;return d<0&&(d=In(_+d,0)),hd(s)?d<=_&&s.indexOf(l,d)>-1:!!_&&Ma(s,l,d)>-1}var O6=ot(function(s,l,d){var g=-1,_=typeof l=="function",R=Cr(s)?X(s.length):[];return Ji(s,function(O){R[++g]=_?zr(l,O,d):Au(O,l,d)}),R}),L6=ed(function(s,l,d){Ei(s,d,l)});function ud(s,l){var d=Xe(s)?Qt:Sx;return d(s,ze(l,3))}function N6(s,l,d,g){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),d=g?n:d,Xe(d)||(d=d==null?[]:[d]),Rx(s,l,d))}var M6=ed(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function B6(s,l,d){var g=Xe(s)?am:Zw,_=arguments.length<3;return g(s,ze(l,4),d,_,Ji)}function I6(s,l,d){var g=Xe(s)?YT:Zw,_=arguments.length<3;return g(s,ze(l,4),d,_,gx)}function $6(s,l){var d=Xe(s)?Yi:vx;return d(s,dd(ze(l,3)))}function F6(s){var l=Xe(s)?dx:PD;return l(s)}function U6(s,l,d){(d?gr(s,l,d):l===n)?l=1:l=tt(l);var g=Xe(s)?lD:OD;return g(s,l)}function z6(s){var l=Xe(s)?uD:ND;return l(s)}function j6(s){if(s==null)return 0;if(Cr(s))return hd(s)?Ia(s):s.length;var l=sr(s);return l==st||l==at?s.size:Am(s).length}function V6(s,l,d){var g=Xe(s)?lm:MD;return d&&gr(s,l,d)&&(l=n),g(s,ze(l,3))}var W6=ot(function(s,l){if(s==null)return[];var d=l.length;return d>1&&gr(s,l[0],l[1])?l=[]:d>2&&gr(l[0],l[1],l[2])&&(l=[l[0]]),Rx(s,Gn(l,1),[])}),cd=E8||function(){return qn.Date.now()};function H6(s,l){if(typeof l!="function")throw new fo(a);return s=tt(s),function(){if(--s<1)return l.apply(this,arguments)}}function bb(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function _b(s,l){var d;if(typeof l!="function")throw new fo(a);return s=tt(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var Xm=ot(function(s,l,d){var g=A;if(d.length){var _=Zi(d,Ha(Xm));g|=D}return Ci(s,g,l,d,_)}),Sb=ot(function(s,l,d){var g=A|b;if(d.length){var _=Zi(d,Ha(Sb));g|=D}return Ci(l,g,s,d,_)});function Eb(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=Eb.placeholder,g}function Cb(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=Cb.placeholder,g}function Ab(s,l,d){var g,_,R,O,M,j,oe=0,ie=!1,fe=!1,Se=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(ie=!!d.leading,fe="maxWait"in d,R=fe?In(vo(d.maxWait)||0,l):R,Se="trailing"in d?!!d.trailing:Se);function Ne(wn){var jo=g,Di=_;return g=_=n,oe=wn,O=s.apply(Di,jo),O}function Ve(wn){return oe=wn,M=Pu(lt,l),ie?Ne(wn):O}function nt(wn){var jo=wn-j,Di=wn-oe,Hb=l-jo;return fe?ir(Hb,R-Di):Hb}function We(wn){var jo=wn-j,Di=wn-oe;return j===n||jo>=l||jo<0||fe&&Di>=R}function lt(){var wn=cd();if(We(wn))return ft(wn);M=Pu(lt,nt(wn))}function ft(wn){return M=n,Se&&g?Ne(wn):(g=_=n,O)}function Hr(){M!==n&&Bx(M),oe=0,g=j=_=M=n}function vr(){return M===n?O:ft(cd())}function qr(){var wn=cd(),jo=We(wn);if(g=arguments,_=this,j=wn,jo){if(M===n)return Ve(j);if(fe)return Bx(M),M=Pu(lt,l),Ne(j)}return M===n&&(M=Pu(lt,l)),O}return qr.cancel=Hr,qr.flush=vr,qr}var q6=ot(function(s,l){return mx(s,1,l)}),G6=ot(function(s,l,d){return mx(s,vo(l)||0,d)});function K6(s){return Ci(s,H)}function fd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fo(a);var d=function(){var g=arguments,_=l?l.apply(this,g):g[0],R=d.cache;if(R.has(_))return R.get(_);var O=s.apply(this,g);return d.cache=R.set(_,O)||R,O};return d.cache=new(fd.Cache||Si),d}fd.Cache=Si;function dd(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 Y6(s){return _b(2,s)}var X6=BD(function(s,l){l=l.length==1&&Xe(l[0])?Qt(l[0],jr(ze())):Qt(Gn(l,1),jr(ze()));var d=l.length;return ot(function(g){for(var _=-1,R=ir(g.length,d);++_=l}),Xs=xx(function(){return arguments}())?xx:function(s){return pn(s)&&Ot.call(s,"callee")&&!sx.call(s,"callee")},Xe=X.isArray,f9=zw?jr(zw):wD;function Cr(s){return s!=null&&pd(s.length)&&!ki(s)}function yn(s){return pn(s)&&Cr(s)}function d9(s){return s===!0||s===!1||pn(s)&&mr(s)==ge}var rs=A8||lg,p9=jw?jr(jw):xD;function h9(s){return pn(s)&&s.nodeType===1&&!Ou(s)}function m9(s){if(s==null)return!0;if(Cr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||rs(s)||qa(s)||Xs(s)))return!s.length;var l=sr(s);if(l==st||l==at)return!s.size;if(Du(s))return!Am(s).length;for(var d in s)if(Ot.call(s,d))return!1;return!0}function g9(s,l){return Ru(s,l)}function v9(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?Ru(s,l,n,d):!!g}function Qm(s){if(!pn(s))return!1;var l=mr(s);return l==Te||l==je||typeof s.message=="string"&&typeof s.name=="string"&&!Ou(s)}function y9(s){return typeof s=="number"&&lx(s)}function ki(s){if(!rn(s))return!1;var l=mr(s);return l==Ae||l==Ke||l==Le||l==pr}function kb(s){return typeof s=="number"&&s==tt(s)}function pd(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 Tb=Vw?jr(Vw):_D;function w9(s,l){return s===l||Cm(s,l,jm(l))}function x9(s,l,d){return d=typeof d=="function"?d:n,Cm(s,l,jm(l),d)}function b9(s){return Db(s)&&s!=+s}function _9(s){if(i7(s))throw new Ye(i);return bx(s)}function S9(s){return s===null}function E9(s){return s==null}function Db(s){return typeof s=="number"||pn(s)&&mr(s)==ht}function Ou(s){if(!pn(s)||mr(s)!=mt)return!1;var l=Uf(s);if(l===null)return!0;var d=Ot.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Bf.call(d)==x8}var Jm=Ww?jr(Ww):SD;function C9(s){return kb(s)&&s>=-J&&s<=J}var Pb=Hw?jr(Hw):ED;function hd(s){return typeof s=="string"||!Xe(s)&&pn(s)&&mr(s)==un}function Wr(s){return typeof s=="symbol"||pn(s)&&mr(s)==cn}var qa=qw?jr(qw):CD;function A9(s){return s===n}function R9(s){return pn(s)&&sr(s)==At}function k9(s){return pn(s)&&mr(s)==An}var T9=od(Rm),D9=od(function(s,l){return s<=l});function Ob(s){if(!s)return[];if(Cr(s))return hd(s)?Fo(s):Er(s);if(wu&&s[wu])return l8(s[wu]());var l=sr(s),d=l==st?hm:l==at?Lf:Ga;return d(s)}function Ti(s){if(!s)return s===0?s:0;if(s=vo(s),s===pe||s===-pe){var l=s<0?-1:1;return l*he}return s===s?s:0}function tt(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Lb(s){return s?qs(tt(s),0,me):0}function vo(s){if(typeof s=="number")return s;if(Wr(s))return re;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||Ce.test(s)?HT(s.slice(2),d?2:8):Et.test(s)?re:+s}function Nb(s){return ii(s,Ar(s))}function P9(s){return s?qs(tt(s),-J,J):s===0?s:0}function Pt(s){return s==null?"":Vr(s)}var O9=Va(function(s,l){if(Du(l)||Cr(l)){ii(l,Un(l),s);return}for(var d in l)Ot.call(l,d)&&Eu(s,d,l[d])}),Mb=Va(function(s,l){ii(l,Ar(l),s)}),md=Va(function(s,l,d,g){ii(l,Ar(l),s,g)}),L9=Va(function(s,l,d,g){ii(l,Un(l),s,g)}),N9=Ai(xm);function M9(s,l){var d=ja(s);return l==null?d:px(d,l)}var B9=ot(function(s,l){s=$t(s);var d=-1,g=l.length,_=g>2?l[2]:n;for(_&&gr(l[0],l[1],_)&&(g=1);++d1),R}),ii(s,Um(s),d),g&&(d=ho(d,h|m|x,GD));for(var _=l.length;_--;)Om(d,l[_]);return d});function eP(s,l){return Ib(s,dd(ze(l)))}var tP=Ai(function(s,l){return s==null?{}:kD(s,l)});function Ib(s,l){if(s==null)return{};var d=Qt(Um(s),function(g){return[g]});return l=ze(l),kx(s,d,function(g,_){return l(g,_[0])})}function nP(s,l,d){l=ts(l,s);var g=-1,_=l.length;for(_||(_=1,s=n);++g<_;){var R=s==null?n:s[si(l[g])];R===n&&(g=_,R=d),s=ki(R)?R.call(s):R}return s}function rP(s,l,d){return s==null?s:ku(s,l,d)}function oP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:ku(s,l,d,g)}var $b=Xx(Un),Fb=Xx(Ar);function iP(s,l,d){var g=Xe(s),_=g||rs(s)||qa(s);if(l=ze(l,4),d==null){var R=s&&s.constructor;_?d=g?new R:[]:rn(s)?d=ki(R)?ja(Uf(s)):{}:d={}}return(_?co:oi)(s,function(O,M,j){return l(d,O,M,j)}),d}function sP(s,l){return s==null?!0:Om(s,l)}function aP(s,l,d){return s==null?s:Lx(s,l,Mm(d))}function lP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Lx(s,l,Mm(d),g)}function Ga(s){return s==null?[]:pm(s,Un(s))}function uP(s){return s==null?[]:pm(s,Ar(s))}function cP(s,l,d){return d===n&&(d=l,l=n),d!==n&&(d=vo(d),d=d===d?d:0),l!==n&&(l=vo(l),l=l===l?l:0),qs(vo(s),l,d)}function fP(s,l,d){return l=Ti(l),d===n?(d=l,l=0):d=Ti(d),s=vo(s),vD(s,l,d)}function dP(s,l,d){if(d&&typeof d!="boolean"&&gr(s,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof s=="boolean"&&(d=s,s=n)),s===n&&l===n?(s=0,l=1):(s=Ti(s),l===n?(l=s,s=0):l=Ti(l)),s>l){var g=s;s=l,l=g}if(d||s%1||l%1){var _=ux();return ir(s+_*(l-s+WT("1e-"+((_+"").length-1))),l)}return Tm(s,l)}var pP=Wa(function(s,l,d){return l=l.toLowerCase(),s+(d?Ub(l):l)});function Ub(s){return ng(Pt(s).toLowerCase())}function zb(s){return s=Pt(s),s&&s.replace(dn,r8).replace(NT,"")}function hP(s,l,d){s=Pt(s),l=Vr(l);var g=s.length;d=d===n?g:qs(tt(d),0,g);var _=d;return d-=l.length,d>=0&&s.slice(d,_)==l}function mP(s){return s=Pt(s),s&&Ge.test(s)?s.replace(Me,o8):s}function gP(s){return s=Pt(s),s&&N.test(s)?s.replace(or,"\\$&"):s}var vP=Wa(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),yP=Wa(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),wP=Wx("toLowerCase");function xP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ia(s):0;if(!l||g>=l)return s;var _=(l-g)/2;return rd(Wf(_),d)+s+rd(Vf(_),d)}function bP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ia(s):0;return l&&g>>0,d?(s=Pt(s),s&&(typeof l=="string"||l!=null&&!Jm(l))&&(l=Vr(l),!l&&Ba(s))?ns(Fo(s),0,d):s.split(l,d)):[]}var kP=Wa(function(s,l,d){return s+(d?" ":"")+ng(l)});function TP(s,l,d){return s=Pt(s),d=d==null?0:qs(tt(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function DP(s,l,d){var g=C.templateSettings;d&&gr(s,l,d)&&(l=n),s=Pt(s),l=md({},l,g,Zx);var _=md({},l.imports,g.imports,Zx),R=Un(_),O=pm(_,R),M,j,oe=0,ie=l.interpolate||ni,fe="__p += '",Se=mm((l.escape||ni).source+"|"+ie.source+"|"+(ie===zt?Be:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++FT+"]")+` +`;s.replace(Se,function(We,lt,ft,Hr,vr,qr){return ft||(ft=Hr),fe+=s.slice(oe,qr).replace(ri,i8),lt&&(M=!0,fe+=`' + __e(`+lt+`) + '`),vr&&(j=!0,fe+=`'; `+vr+`; @@ -59,13 +59,13 @@ __p += '`),ft&&(fe+=`' + `;var Ve=Ot.call(l,"variable")&&l.variable;if(!Ve)fe=`with (obj) { `+fe+` } -`;else if(ye.test(Ve))throw new Ye(u);fe=(j?fe.replace(xe,""):fe).replace(we,"$1").replace(Ee,"$1;"),fe="function("+(Ve||"obj")+`) { +`;else if(we.test(Ve))throw new Ye(u);fe=(j?fe.replace(be,""):fe).replace(xe,"$1").replace(Ee,"$1;"),fe="function("+(Ve||"obj")+`) { `+(Ve?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(j?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+fe+`return __p -}`;var nt=Vb(function(){return kt(R,Me+"return "+fe).apply(n,O)});if(nt.source=fe,Qm(nt))throw nt;return nt}function PP(s){return Pt(s).toLowerCase()}function OP(s){return Pt(s).toUpperCase()}function LP(s,l,d){if(s=Pt(s),s&&(d||l===n))return Qw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=Fo(l),R=Jw(g,_),O=ex(g,_)+1;return ns(g,R,O).join("")}function NP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.slice(0,nx(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=ex(g,Fo(l))+1;return ns(g,0,_).join("")}function MP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.replace(B,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=Jw(g,Fo(l));return ns(g,_).join("")}function BP(s,l){var d=$,g=Y;if(rn(l)){var _="separator"in l?l.separator:_;d="length"in l?tt(l.length):d,g="omission"in l?Vr(l.omission):g}s=Pt(s);var R=s.length;if(Ba(s)){var O=Fo(s);R=O.length}if(d>=R)return s;var M=d-Ia(g);if(M<1)return g;var j=O?ns(O,0,M).join(""):s.slice(0,M);if(_===n)return j+g;if(O&&(M+=j.length-M),Jm(_)){if(s.slice(M).search(_)){var oe,ie=j;for(_.global||(_=mm(_.source,Pt(Fe.exec(_))+"g")),_.lastIndex=0;oe=_.exec(ie);)var fe=oe.index;j=j.slice(0,fe===n?M:fe)}}else if(s.indexOf(Vr(_),M)!=M){var _e=j.lastIndexOf(_);_e>-1&&(j=j.slice(0,_e))}return j+g}function IP(s){return s=Pt(s),s&&$e.test(s)?s.replace(Ue,d8):s}var $P=Wa(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),ng=Wx("toUpperCase");function jb(s,l,d){return s=Pt(s),l=d?n:l,l===n?a8(s)?m8(s):QT(s):s.match(l)||[]}var Vb=ot(function(s,l){try{return zr(s,n,l)}catch(d){return Qm(d)?d:new Ye(d)}}),FP=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,Xm(s[d],s))}),s});function UP(s){var l=s==null?0:s.length,d=je();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 _=-1;++_J)return[];var d=me,g=ir(s,me);l=je(l),s-=me;for(var _=dm(g,l);++d0||l<0)?new ct(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=tt(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(me)},oi(ct.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),_=C[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);_&&(C.prototype[l]=function(){var O=this.__wrapped__,M=g?[1]:arguments,j=O instanceof ct,oe=M[0],ie=j||Xe(O),fe=function(lt){var ft=_.apply(C,Xi([lt],M));return g&&_e?ft[0]:ft};ie&&d&&typeof oe=="function"&&oe.length!=1&&(j=ie=!1);var _e=this.__chain__,Me=!!this.__actions__.length,Ve=R&&!_e,nt=j&&!Me;if(!R&&ie){O=nt?O:new ct(this);var We=s.apply(O,M);return We.__actions__.push({func:ld,args:[fe],thisArg:n}),new po(We,_e)}return Ve&&nt?s.apply(this,M):(We=this.thru(fe),Ve?g?We.value()[0]:We.value():We)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Nf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(Xe(R)?R:[],_)}return this[d](function(O){return l.apply(Xe(O)?O:[],_)})}}),oi(ct.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Ot.call(za,g)||(za[g]=[]),za[g].push({name:l,func:d})}}),za[td(n,b).name]=[{name:"wrapper",func:n}],ct.prototype.clone=I8,ct.prototype.reverse=$8,ct.prototype.value=F8,C.prototype.at=h6,C.prototype.chain=m6,C.prototype.commit=g6,C.prototype.next=v6,C.prototype.plant=w6,C.prototype.reverse=x6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=b6,C.prototype.first=C.prototype.head,wu&&(C.prototype[wu]=y6),C},$a=g8();js?((js.exports=$a)._=$a,om._=$a):qn._=$a}).call(FE)})(ih,ih.exports);var Da=ih.exports;let $d;const jz=new Uint8Array(16);function Vz(){if(!$d&&($d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $d(jz)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function Wz(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 Hz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ES={randomUUID:Hz};function e0(e,t,n){if(ES.randomUUID&&!t&&!e)return ES.randomUUID();e=e||{};const r=e.random||(e.rng||Vz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Wz(r)}function m2(e){this.message=e}m2.prototype=new Error,m2.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 qz={};/** +}`;var nt=Vb(function(){return kt(R,Ne+"return "+fe).apply(n,O)});if(nt.source=fe,Qm(nt))throw nt;return nt}function PP(s){return Pt(s).toLowerCase()}function OP(s){return Pt(s).toUpperCase()}function LP(s,l,d){if(s=Pt(s),s&&(d||l===n))return Qw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=Fo(l),R=Jw(g,_),O=ex(g,_)+1;return ns(g,R,O).join("")}function NP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.slice(0,nx(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=ex(g,Fo(l))+1;return ns(g,0,_).join("")}function MP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.replace(B,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=Jw(g,Fo(l));return ns(g,_).join("")}function BP(s,l){var d=$,g=Y;if(rn(l)){var _="separator"in l?l.separator:_;d="length"in l?tt(l.length):d,g="omission"in l?Vr(l.omission):g}s=Pt(s);var R=s.length;if(Ba(s)){var O=Fo(s);R=O.length}if(d>=R)return s;var M=d-Ia(g);if(M<1)return g;var j=O?ns(O,0,M).join(""):s.slice(0,M);if(_===n)return j+g;if(O&&(M+=j.length-M),Jm(_)){if(s.slice(M).search(_)){var oe,ie=j;for(_.global||(_=mm(_.source,Pt($e.exec(_))+"g")),_.lastIndex=0;oe=_.exec(ie);)var fe=oe.index;j=j.slice(0,fe===n?M:fe)}}else if(s.indexOf(Vr(_),M)!=M){var Se=j.lastIndexOf(_);Se>-1&&(j=j.slice(0,Se))}return j+g}function IP(s){return s=Pt(s),s&&Ie.test(s)?s.replace(Fe,d8):s}var $P=Wa(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),ng=Wx("toUpperCase");function jb(s,l,d){return s=Pt(s),l=d?n:l,l===n?a8(s)?m8(s):QT(s):s.match(l)||[]}var Vb=ot(function(s,l){try{return zr(s,n,l)}catch(d){return Qm(d)?d:new Ye(d)}}),FP=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,Xm(s[d],s))}),s});function UP(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 _=-1;++_J)return[];var d=me,g=ir(s,me);l=ze(l),s-=me;for(var _=dm(g,l);++d0||l<0)?new ct(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=tt(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(me)},oi(ct.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),_=C[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);_&&(C.prototype[l]=function(){var O=this.__wrapped__,M=g?[1]:arguments,j=O instanceof ct,oe=M[0],ie=j||Xe(O),fe=function(lt){var ft=_.apply(C,Xi([lt],M));return g&&Se?ft[0]:ft};ie&&d&&typeof oe=="function"&&oe.length!=1&&(j=ie=!1);var Se=this.__chain__,Ne=!!this.__actions__.length,Ve=R&&!Se,nt=j&&!Ne;if(!R&&ie){O=nt?O:new ct(this);var We=s.apply(O,M);return We.__actions__.push({func:ld,args:[fe],thisArg:n}),new po(We,Se)}return Ve&&nt?s.apply(this,M):(We=this.thru(fe),Ve?g?We.value()[0]:We.value():We)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Nf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(Xe(R)?R:[],_)}return this[d](function(O){return l.apply(Xe(O)?O:[],_)})}}),oi(ct.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Ot.call(za,g)||(za[g]=[]),za[g].push({name:l,func:d})}}),za[td(n,b).name]=[{name:"wrapper",func:n}],ct.prototype.clone=I8,ct.prototype.reverse=$8,ct.prototype.value=F8,C.prototype.at=h6,C.prototype.chain=m6,C.prototype.commit=g6,C.prototype.next=v6,C.prototype.plant=w6,C.prototype.reverse=x6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=b6,C.prototype.first=C.prototype.head,wu&&(C.prototype[wu]=y6),C},$a=g8();js?((js.exports=$a)._=$a,om._=$a):qn._=$a}).call(FE)})(ih,ih.exports);var Da=ih.exports;let $d;const jz=new Uint8Array(16);function Vz(){if(!$d&&($d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $d(jz)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function Wz(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 Hz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ES={randomUUID:Hz};function e0(e,t,n){if(ES.randomUUID&&!t&&!e)return ES.randomUUID();e=e||{};const r=e.random||(e.rng||Vz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Wz(r)}function m2(e){this.message=e}m2.prototype=new Error,m2.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 qz={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -87,7 +87,7 @@ 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 Xl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QW(){return Math.random().toString(36).substr(2,8)}function n3(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||QW()})}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 JW(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Dn.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=Dn.Pop;let A=p(),b=A==null?null:A-f;f=A,c&&c({action:u,location:v.location,delta:b})}function m(A,b){u=Dn.Push;let w=Wc(v.location,A,b);f=p()+1;let S=n3(w,f),k=v.createHref(w);try{a.pushState(S,"",k)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;o.location.assign(k)}i&&c&&c({action:u,location:v.location,delta:1})}function x(A,b){u=Dn.Replace;let w=Wc(v.location,A,b);f=p();let S=n3(w,f),k=v.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:u,location:v.location,delta:0})}function y(A){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof A=="string"?A:vf(A);return w=w.replace(/ $/,"%20"),pt(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let v={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(t3,h),c=A,()=>{o.removeEventListener(t3,h),c=null}},createHref(A){return t(o,A)},createURL:y,encodeLocation(A){let b=y(A);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:m,replace:x,go(A){return a.go(A)}};return v}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const eH=new Set(["lazy","caseSensitive","path","id","index","children"]);function tH(e){return e.index===!0}function Hc(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`),tH(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=Hc(o.children,t,a,r)),c}})}function ra(e,t,n){return n===void 0&&(n="/"),bp(e,t,n,!1)}function bp(e,t,n,r){let o=typeof t=="string"?Bs(t):t,i=yf(o.pathname||"/",n);if(i==null)return null;let a=y4(e);rH(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+'".')),y4(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:cH(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 w4(i.path))o(i,a,c)}),t}function w4(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=w4(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 rH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oH=/^:[\w-]+$/,iH=3,sH=2,aH=1,lH=10,uH=-2,r3=e=>e==="*";function cH(e,t){let n=e.split("/"),r=n.length;return n.some(r3)&&(r+=uH),t&&(r+=sH),n.filter(o=>!r3(o)).reduce((o,i)=>o+(oH.test(i)?iH:i===""?aH:lH),r)}function fH(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 dH(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:x}=p;if(m==="*"){let v=u[h]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=u[h];return x&&!y?f[m]=void 0:f[m]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function pH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xl(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 hH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xl(!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 mH(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:gH(n,t):t,search:xH(r),hash:bH(o)}}function gH(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 Jg(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 x4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vH(e,t){let n=x4(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yH(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("?"),Jg("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),Jg("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),Jg("#","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=mH(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,"/"),wH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class By{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 b4=["post","put","patch","delete"],_H=new Set(b4),SH=["get",...b4],EH=new Set(SH),CH=new Set([301,302,303,307,308]),AH=new Set([307,308]),ev={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},RH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ku={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),_4="remix-router-transitions";function TH(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=kH;let i={},a=Hc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||NH,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,x=new Set,y=null,v=null,A=null,b=e.hydrationData!=null,w=ra(a,e.history.location,c),S=null;if(w==null&&!p){let N=yr(404,{pathname:e.history.location.pathname}),{matches:B,route:G}=h3(a);w=B,S={[G.id]:N}}w&&p&&!e.hydrationData&&Tn(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=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:N&&N[ne.route.id]!==void 0||B&&B[ne.route.id]!==void 0:!0;if(B){let ne=w.findIndex(be=>B[be.route.id]!==void 0);k=w.slice(0,ne+1).every(G)}else k=w.every(G)}else k=e.hydrationData!=null;let D,E={historyAction:e.history.action,location:e.history.location,matches:w,initialized:k,navigation:ev,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=Dn.Pop,I=!1,H,$=!1,Y=new Map,se=null,K=!1,q=!1,Q=[],le=[],pe=new Map,J=0,he=-1,re=new Map,me=new Set,U=new Map,ue=new Map,te=new Set,ve=new Map,de=new Map,Ne=new Map,Ce=!1;function ae(){if(m=e.history.listen(N=>{let{action:B,location:G,delta:ne}=N;if(Ce){Ce=!1;return}Xl(de.size===0||ne!=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 be=Ee({currentLocation:E.location,nextLocation:G,historyAction:B});if(be&&ne!=null){Ce=!0,e.history.go(ne*-1),we(be,{state:"blocked",location:G,proceed(){we(be,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),e.history.go(ne)},reset(){let Oe=new Map(E.blockers);Oe.set(be,Ku),Se({blockers:Oe})}});return}return _t(B,G)}),n){GH(t,Y);let N=()=>KH(t,Y);t.addEventListener("pagehide",N),se=()=>t.removeEventListener("pagehide",N)}return E.initialized||_t(Dn.Pop,E.location,{initialHydration:!0}),D}function De(){m&&m(),se&&se(),x.clear(),H&&H.abort(),E.fetchers.forEach((N,B)=>rr(B)),E.blockers.forEach((N,B)=>xe(B))}function Re(N){return x.add(N),()=>x.delete(N)}function Se(N,B){B===void 0&&(B={}),E=on({},E,N);let G=[],ne=[];h.v7_fetcherPersist&&E.fetchers.forEach((be,Oe)=>{be.state==="idle"&&(te.has(Oe)?ne.push(Oe):G.push(Oe))}),[...x].forEach(be=>be(E,{deletedFetchers:ne,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),h.v7_fetcherPersist&&(G.forEach(be=>E.fetchers.delete(be)),ne.forEach(be=>rr(be)))}function Ke(N,B,G){var ne,be;let{flushSync:Oe}=G===void 0?{}:G,ze=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((ne=N.state)==null?void 0:ne._isRedirect)!==!0,ye;B.actionData?Object.keys(B.actionData).length>0?ye=B.actionData:ye=null:ze?ye=E.actionData:ye=null;let qe=B.loaderData?d3(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,Ie=E.blockers;Ie.size>0&&(Ie=new Map(Ie),Ie.forEach((vt,Rt)=>Ie.set(Rt,Ku)));let Fe=I===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((be=N.state)==null?void 0:be._isRedirect)!==!0;u&&(a=u,u=void 0),K||L===Dn.Pop||(L===Dn.Push?e.history.push(N,N.state):L===Dn.Replace&&e.history.replace(N,N.state));let Et;if(L===Dn.Pop){let vt=Y.get(E.location.pathname);vt&&vt.has(N.pathname)?Et={currentLocation:E.location,nextLocation:N}:Y.has(N.pathname)&&(Et={currentLocation:N,nextLocation:E.location})}else if($){let vt=Y.get(E.location.pathname);vt?vt.add(N.pathname):(vt=new Set([N.pathname]),Y.set(E.location.pathname,vt)),Et={currentLocation:E.location,nextLocation:N}}Se(on({},B,{actionData:ye,loaderData:qe,historyAction:L,location:N,initialized:!0,navigation:ev,revalidation:"idle",restoreScrollPosition:zt(N,B.matches||E.matches),preventScrollReset:Fe,blockers:Ie}),{viewTransitionOpts:Et,flushSync:Oe===!0}),L=Dn.Pop,I=!1,$=!1,K=!1,q=!1,Q=[],le=[]}async function st(N,B){if(typeof N=="number"){e.history.go(N);return}let G=N2(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:ne,submission:be,error:Oe}=i3(h.v7_normalizeFormMethod,!1,G,B),ze=E.location,ye=Wc(E.location,ne,B&&B.state);ye=on({},ye,e.history.encodeLocation(ye));let qe=B&&B.replace!=null?B.replace:void 0,Ie=Dn.Push;qe===!0?Ie=Dn.Replace:qe===!1||be!=null&&Ko(be.formMethod)&&be.formAction===E.location.pathname+E.location.search&&(Ie=Dn.Replace);let Fe=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Et=(B&&B.unstable_flushSync)===!0,vt=Ee({currentLocation:ze,nextLocation:ye,historyAction:Ie});if(vt){we(vt,{state:"blocked",location:ye,proceed(){we(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),st(N,B)},reset(){let Rt=new Map(E.blockers);Rt.set(vt,Ku),Se({blockers:Rt})}});return}return await _t(Ie,ye,{submission:be,pendingError:Oe,preventScrollReset:Fe,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:Et})}function ht(){if(nn(),Se({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){_t(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}_t(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function _t(N,B,G){H&&H.abort(),H=null,L=N,K=(G&&G.startUninterruptedRevalidation)===!0,kn(E.location,E.matches),I=(G&&G.preventScrollReset)===!0,$=(G&&G.enableViewTransition)===!0;let ne=u||a,be=G&&G.overrideNavigation,Oe=ra(ne,B,c),ze=(G&&G.flushSync)===!0,ye=Tn(Oe,ne,B.pathname);if(ye.active&&ye.matches&&(Oe=ye.matches),!Oe){let{error:Ae,notFoundMatches:yt,route:dn}=Ue(B.pathname);Ke(B,{matches:yt,loaderData:{},errors:{[dn.id]:Ae}},{flushSync:ze});return}if(E.initialized&&!q&&UH(E.location,B)&&!(G&&G.submission&&Ko(G.submission.formMethod))){Ke(B,{matches:Oe},{flushSync:ze});return}H=new AbortController;let qe=Xa(e.history,B,H.signal,G&&G.submission),Ie;if(G&&G.pendingError)Ie=[Sl(Oe).route.id,{type:Wt.error,error:G.pendingError}];else if(G&&G.submission&&Ko(G.submission.formMethod)){let Ae=await mt(qe,B,G.submission,Oe,ye.active,{replace:G.replace,flushSync:ze});if(Ae.shortCircuited)return;if(Ae.pendingActionResult){let[yt,dn]=Ae.pendingActionResult;if(Kr(dn)&&f0(dn.error)&&dn.error.status===404){H=null,Ke(B,{matches:Ae.matches,loaderData:{},errors:{[yt]:dn.error}});return}}Oe=Ae.matches||Oe,Ie=Ae.pendingActionResult,be=tv(B,G.submission),ze=!1,ye.active=!1,qe=Xa(e.history,qe.url,qe.signal)}let{shortCircuited:Fe,matches:Et,loaderData:vt,errors:Rt}=await Mn(qe,B,Oe,ye.active,be,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,ze,Ie);Fe||(H=null,Ke(B,on({matches:Et||Oe},p3(Ie),{loaderData:vt,errors:Rt})))}async function mt(N,B,G,ne,be,Oe){Oe===void 0&&(Oe={}),nn();let ze=HH(B,G);if(Se({navigation:ze},{flushSync:Oe.flushSync===!0}),be){let Ie=await fn(ne,B.pathname,N.signal);if(Ie.type==="aborted")return{shortCircuited:!0};if(Ie.type==="error"){let{boundaryId:Fe,error:Et}=Be(B.pathname,Ie);return{matches:Ie.partialMatches,pendingActionResult:[Fe,{type:Wt.error,error:Et}]}}else if(Ie.matches)ne=Ie.matches;else{let{notFoundMatches:Fe,error:Et,route:vt}=Ue(B.pathname);return{matches:Fe,pendingActionResult:[vt.id,{type:Wt.error,error:Et}]}}}let ye,qe=ac(ne,B);if(!qe.route.action&&!qe.route.lazy)ye={type:Wt.error,error:yr(405,{method:N.method,pathname:B.pathname,routeId:qe.route.id})};else if(ye=(await At("action",N,[qe],ne))[0],N.signal.aborted)return{shortCircuited:!0};if(ua(ye)){let Ie;return Oe&&Oe.replace!=null?Ie=Oe.replace:Ie=u3(ye.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,ye,{submission:G,replace:Ie}),{shortCircuited:!0}}if(la(ye))throw yr(400,{type:"defer-action"});if(Kr(ye)){let Ie=Sl(ne,qe.route.id);return(Oe&&Oe.replace)!==!0&&(L=Dn.Push),{matches:ne,pendingActionResult:[Ie.route.id,ye]}}return{matches:ne,pendingActionResult:[qe.route.id,ye]}}async function Mn(N,B,G,ne,be,Oe,ze,ye,qe,Ie,Fe){let Et=be||tv(B,Oe),vt=Oe||ze||v3(Et),Rt=!K&&(!h.v7_partialHydration||!qe);if(ne){if(Rt){let Zt=pr(Fe);Se(on({navigation:Et},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Ie})}let Ze=await fn(G,B.pathname,N.signal);if(Ze.type==="aborted")return{shortCircuited:!0};if(Ze.type==="error"){let{boundaryId:Zt,error:hr}=Be(B.pathname,Ze);return{matches:Ze.partialMatches,loaderData:{},errors:{[Zt]:hr}}}else if(Ze.matches)G=Ze.matches;else{let{error:Zt,notFoundMatches:hr,route:jt}=Ue(B.pathname);return{matches:hr,loaderData:{},errors:{[jt.id]:Zt}}}}let Ae=u||a,[yt,dn]=s3(e.history,E,G,vt,B,h.v7_partialHydration&&qe===!0,h.v7_skipActionErrorRevalidation,q,Q,le,te,U,me,Ae,c,Fe);if($e(Ze=>!(G&&G.some(Zt=>Zt.route.id===Ze))||yt&&yt.some(Zt=>Zt.route.id===Ze)),he=++J,yt.length===0&&dn.length===0){let Ze=W();return Ke(B,on({matches:G,loaderData:{},errors:Fe&&Kr(Fe[1])?{[Fe[0]]:Fe[1].error}:null},p3(Fe),Ze?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Ie}),{shortCircuited:!0}}if(Rt){let Ze={};if(!ne){Ze.navigation=Et;let Zt=pr(Fe);Zt!==void 0&&(Ze.actionData=Zt)}dn.length>0&&(Ze.fetchers=Ct(dn)),Se(Ze,{flushSync:Ie})}dn.forEach(Ze=>{pe.has(Ze.key)&&Rn(Ze.key),Ze.controller&&pe.set(Ze.key,Ze.controller)});let ni=()=>dn.forEach(Ze=>Rn(Ze.key));H&&H.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await An(E.matches,G,yt,dn,N);if(N.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",ni),dn.forEach(Ze=>pe.delete(Ze.key));let Gi=m3([...ri,...$o]);if(Gi){if(Gi.idx>=yt.length){let Ze=dn[Gi.idx-yt.length].key;me.add(Ze)}return await Ut(N,Gi.result,{replace:ye}),{shortCircuited:!0}}let{loaderData:Ki,errors:ao}=f3(E,G,yt,ri,Fe,dn,$o,ve);ve.forEach((Ze,Zt)=>{Ze.subscribe(hr=>{(hr||Ze.done)&&ve.delete(Zt)})}),h.v7_partialHydration&&qe&&E.errors&&Object.entries(E.errors).filter(Ze=>{let[Zt]=Ze;return!yt.some(hr=>hr.route.id===Zt)}).forEach(Ze=>{let[Zt,hr]=Ze;ao=Object.assign(ao||{},{[Zt]:hr})});let Fs=W(),Us=F(he),zs=Fs||Us||dn.length>0;return on({matches:G,loaderData:Ki,errors:ao},zs?{fetchers:new Map(E.fetchers)}:{})}function pr(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 Ct(N){return N.forEach(B=>{let G=E.fetchers.get(B.key),ne=Yu(void 0,G?G.data:void 0);E.fetchers.set(B.key,ne)}),new Map(E.fetchers)}function at(N,B,G,ne){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.");pe.has(N)&&Rn(N);let be=(ne&&ne.unstable_flushSync)===!0,Oe=u||a,ze=N2(E.location,E.matches,c,h.v7_prependBasename,G,h.v7_relativeSplatPath,B,ne==null?void 0:ne.relative),ye=ra(Oe,ze,c),qe=Tn(ye,Oe,ze);if(qe.active&&qe.matches&&(ye=qe.matches),!ye){Le(N,B,yr(404,{pathname:ze}),{flushSync:be});return}let{path:Ie,submission:Fe,error:Et}=i3(h.v7_normalizeFormMethod,!0,ze,ne);if(Et){Le(N,B,Et,{flushSync:be});return}let vt=ac(ye,Ie);if(I=(ne&&ne.preventScrollReset)===!0,Fe&&Ko(Fe.formMethod)){un(N,B,Ie,vt,ye,qe.active,be,Fe);return}U.set(N,{routeId:B,path:Ie}),cn(N,B,Ie,vt,ye,qe.active,be,Fe)}async function un(N,B,G,ne,be,Oe,ze,ye){nn(),U.delete(N);function qe(jt){if(!jt.route.action&&!jt.route.lazy){let lo=yr(405,{method:ye.formMethod,pathname:G,routeId:B});return Le(N,B,lo,{flushSync:ze}),!0}return!1}if(!Oe&&qe(ne))return;let Ie=E.fetchers.get(N);He(N,qH(ye,Ie),{flushSync:ze});let Fe=new AbortController,Et=Xa(e.history,G,Fe.signal,ye);if(Oe){let jt=await fn(be,G,Et.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Be(G,jt);Le(N,B,lo,{flushSync:ze});return}else if(jt.matches){if(be=jt.matches,ne=ac(be,G),qe(ne))return}else{Le(N,B,yr(404,{pathname:G}),{flushSync:ze});return}}pe.set(N,Fe);let vt=J,Ae=(await At("action",Et,[ne],be))[0];if(Et.signal.aborted){pe.get(N)===Fe&&pe.delete(N);return}if(h.v7_fetcherPersist&&te.has(N)){if(ua(Ae)||Kr(Ae)){He(N,as(void 0));return}}else{if(ua(Ae))if(pe.delete(N),he>vt){He(N,as(void 0));return}else return me.add(N),He(N,Yu(ye)),Ut(Et,Ae,{fetcherSubmission:ye});if(Kr(Ae)){Le(N,B,Ae.error);return}}if(la(Ae))throw yr(400,{type:"defer-action"});let yt=E.navigation.location||E.location,dn=Xa(e.history,yt,Fe.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;re.set(N,$o);let Gi=Yu(ye,Ae.data);E.fetchers.set(N,Gi);let[Ki,ao]=s3(e.history,E,ri,ye,yt,!1,h.v7_skipActionErrorRevalidation,q,Q,le,te,U,me,ni,c,[ne.route.id,Ae]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,vu=E.fetchers.get(lo),Tf=Yu(void 0,vu?vu.data:void 0);E.fetchers.set(lo,Tf),pe.has(lo)&&Rn(lo),jt.controller&&pe.set(lo,jt.controller)}),Se({fetchers:new Map(E.fetchers)});let Fs=()=>ao.forEach(jt=>Rn(jt.key));Fe.signal.addEventListener("abort",Fs);let{loaderResults:Us,fetcherResults:zs}=await An(E.matches,ri,Ki,ao,dn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Fs),re.delete(N),pe.delete(N),ao.forEach(jt=>pe.delete(jt.key));let Ze=m3([...Us,...zs]);if(Ze){if(Ze.idx>=Ki.length){let jt=ao[Ze.idx-Ki.length].key;me.add(jt)}return Ut(dn,Ze.result)}let{loaderData:Zt,errors:hr}=f3(E,E.matches,Ki,Us,void 0,ao,zs,ve);if(E.fetchers.has(N)){let jt=as(Ae.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>he?(pt(L,"Expected pending action"),H&&H.abort(),Ke(E.navigation.location,{matches:ri,loaderData:Zt,errors:hr,fetchers:new Map(E.fetchers)})):(Se({errors:hr,loaderData:d3(E.loaderData,Zt,ri,hr),fetchers:new Map(E.fetchers)}),q=!1)}async function cn(N,B,G,ne,be,Oe,ze,ye){let qe=E.fetchers.get(N);He(N,Yu(ye,qe?qe.data:void 0),{flushSync:ze});let Ie=new AbortController,Fe=Xa(e.history,G,Ie.signal);if(Oe){let Ae=await fn(be,G,Fe.signal);if(Ae.type==="aborted")return;if(Ae.type==="error"){let{error:yt}=Be(G,Ae);Le(N,B,yt,{flushSync:ze});return}else if(Ae.matches)be=Ae.matches,ne=ac(be,G);else{Le(N,B,yr(404,{pathname:G}),{flushSync:ze});return}}pe.set(N,Ie);let Et=J,Rt=(await At("loader",Fe,[ne],be))[0];if(la(Rt)&&(Rt=await R4(Rt,Fe.signal,!0)||Rt),pe.get(N)===Ie&&pe.delete(N),!Fe.signal.aborted){if(te.has(N)){He(N,as(void 0));return}if(ua(Rt))if(he>Et){He(N,as(void 0));return}else{me.add(N),await Ut(Fe,Rt);return}if(Kr(Rt)){Le(N,B,Rt.error);return}pt(!la(Rt),"Unhandled fetcher deferred data"),He(N,as(Rt.data))}}async function Ut(N,B,G){let{submission:ne,fetcherSubmission:be,replace:Oe}=G===void 0?{}:G;B.response.headers.has("X-Remix-Revalidate")&&(q=!0);let ze=B.response.headers.get("Location");pt(ze,"Expected a Location header on the redirect Response"),ze=u3(ze,new URL(N.url),c);let ye=Wc(E.location,ze,{_isRedirect:!0});if(n){let Rt=!1;if(B.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(Iy.test(ze)){const Ae=e.history.createURL(ze);Rt=Ae.origin!==t.location.origin||yf(Ae.pathname,c)==null}if(Rt){Oe?t.location.replace(ze):t.location.assign(ze);return}}H=null;let qe=Oe===!0?Dn.Replace:Dn.Push,{formMethod:Ie,formAction:Fe,formEncType:Et}=E.navigation;!ne&&!be&&Ie&&Fe&&Et&&(ne=v3(E.navigation));let vt=ne||be;if(AH.has(B.response.status)&&vt&&Ko(vt.formMethod))await _t(qe,ye,{submission:on({},vt,{formAction:ze}),preventScrollReset:I});else{let Rt=tv(ye,ne);await _t(qe,ye,{overrideNavigation:Rt,fetcherSubmission:be,preventScrollReset:I})}}async function At(N,B,G,ne){try{let be=await MH(f,N,B,G,ne,i,o);return await Promise.all(be.map((Oe,ze)=>{if(jH(Oe)){let ye=Oe.result;return{type:Wt.redirect,response:$H(ye,B,G[ze].route.id,ne,c,h.v7_relativeSplatPath)}}return IH(Oe)}))}catch(be){return G.map(()=>({type:Wt.error,error:be}))}}async function An(N,B,G,ne,be){let[Oe,...ze]=await Promise.all([G.length?At("loader",be,G,B):[],...ne.map(ye=>{if(ye.matches&&ye.match&&ye.controller){let qe=Xa(e.history,ye.path,ye.controller.signal);return At("loader",qe,[ye.match],ye.matches).then(Ie=>Ie[0])}else return Promise.resolve({type:Wt.error,error:yr(404,{pathname:ye.path})})})]);return await Promise.all([g3(N,G,Oe,Oe.map(()=>be.signal),!1,E.loaderData),g3(N,ne.map(ye=>ye.match),ze,ne.map(ye=>ye.controller?ye.controller.signal:null),!0)]),{loaderResults:Oe,fetcherResults:ze}}function nn(){q=!0,Q.push(...$e()),U.forEach((N,B)=>{pe.has(B)&&(le.push(B),Rn(B))})}function He(N,B,G){G===void 0&&(G={}),E.fetchers.set(N,B),Se({fetchers:new Map(E.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Le(N,B,G,ne){ne===void 0&&(ne={});let be=Sl(E.matches,B);rr(N),Se({errors:{[be.route.id]:G},fetchers:new Map(E.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ue.set(N,(ue.get(N)||0)+1),te.has(N)&&te.delete(N)),E.fetchers.get(N)||RH}function rr(N){let B=E.fetchers.get(N);pe.has(N)&&!(B&&B.state==="loading"&&re.has(N))&&Rn(N),U.delete(N),re.delete(N),me.delete(N),te.delete(N),E.fetchers.delete(N)}function Hn(N){if(h.v7_fetcherPersist){let B=(ue.get(N)||0)-1;B<=0?(ue.delete(N),te.add(N)):ue.set(N,B)}else rr(N);Se({fetchers:new Map(E.fetchers)})}function Rn(N){let B=pe.get(N);pt(B,"Expected fetch controller: "+N),B.abort(),pe.delete(N)}function Io(N){for(let B of N){let G=Xt(B),ne=as(G.data);E.fetchers.set(B,ne)}}function W(){let N=[],B=!1;for(let G of me){let ne=E.fetchers.get(G);pt(ne,"Expected fetcher: "+G),ne.state==="loading"&&(me.delete(G),N.push(G),B=!0)}return Io(N),B}function F(N){let B=[];for(let[G,ne]of re)if(ne0}function ce(N,B){let G=E.blockers.get(N)||Ku;return de.get(N)!==B&&de.set(N,B),G}function xe(N){E.blockers.delete(N),de.delete(N)}function we(N,B){let G=E.blockers.get(N)||Ku;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 ne=new Map(E.blockers);ne.set(N,B),Se({blockers:ne})}function Ee(N){let{currentLocation:B,nextLocation:G,historyAction:ne}=N;if(de.size===0)return;de.size>1&&Xl(!1,"A router only supports one blocker at a time");let be=Array.from(de.entries()),[Oe,ze]=be[be.length-1],ye=E.blockers.get(Oe);if(!(ye&&ye.state==="proceeding")&&ze({currentLocation:B,nextLocation:G,historyAction:ne}))return Oe}function Ue(N){let B=yr(404,{pathname:N}),G=u||a,{matches:ne,route:be}=h3(G);return $e(),{notFoundMatches:ne,route:be,error:B}}function Be(N,B){return{boundaryId:Sl(B.partialMatches).route.id,error:yr(400,{type:"route-discovery",pathname:N,message:B.error!=null&&"message"in B.error?B.error:String(B.error)})}}function $e(N){let B=[];return ve.forEach((G,ne)=>{(!N||N(ne))&&(G.cancel(),B.push(ne),ve.delete(ne))}),B}function Ge(N,B,G){if(y=N,A=B,v=G||null,!b&&E.navigation===ev){b=!0;let ne=zt(E.location,E.matches);ne!=null&&Se({restoreScrollPosition:ne})}return()=>{y=null,A=null,v=null}}function St(N,B){return v&&v(N,B.map(ne=>nH(ne,E.loaderData)))||N.key}function kn(N,B){if(y&&A){let G=St(N,B);y[G]=A()}}function zt(N,B){if(y){let G=St(N,B),ne=y[G];if(typeof ne=="number")return ne}return null}function Tn(N,B,G){if(p)if(N){let ne=N[N.length-1].route;if(ne.path&&(ne.path==="*"||ne.path.endsWith("/*")))return{active:!0,matches:bp(B,G,c,!0)}}else return{active:!0,matches:bp(B,G,c,!0)||[]};return{active:!1,matches:null}}async function fn(N,B,G){let ne=N,be=ne.length>0?ne[ne.length-1].route:null;for(;;){let Oe=u==null,ze=u||a;try{await LH(p,B,ne,ze,i,o,Ne,G)}catch(Fe){return{type:"error",error:Fe,partialMatches:ne}}finally{Oe&&(a=[...a])}if(G.aborted)return{type:"aborted"};let ye=ra(ze,B,c),qe=!1;if(ye){let Fe=ye[ye.length-1].route;if(Fe.index)return{type:"success",matches:ye};if(Fe.path&&Fe.path.length>0)if(Fe.path==="*")qe=!0;else return{type:"success",matches:ye}}let Ie=bp(ze,B,c,!0);if(!Ie||ne.map(Fe=>Fe.route.id).join("-")===Ie.map(Fe=>Fe.route.id).join("-"))return{type:"success",matches:qe?ye:null};if(ne=Ie,be=ne[ne.length-1].route,be.path==="*")return{type:"success",matches:ne}}}function so(N){i={},u=Hc(N,o,void 0,i)}function or(N,B){let G=u==null;E4(N,B,u||a,i,o),G&&(a=[...a],Se({}))}return D={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:ae,subscribe:Re,enableScrollRestoration:Ge,navigate:st,fetch:at,revalidate:ht,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:Hn,dispose:De,getBlocker:ce,deleteBlocker:xe,patchRoutes:or,_internalFetchControllers:pe,_internalActiveDeferreds:ve,_internalSetRoutes:so},D}function DH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function N2(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=yH(o||".",vH(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&&!$y(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 i3(e,t,n,r){if(!r||!DH(r))return{path:n};if(r.formMethod&&!WH(r.formMethod))return{path:n,error:yr(405,{method:r.formMethod})};let o=()=>({path:n,error:yr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),u=C4(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((x,y)=>{let[v,A]=y;return""+x+v+"="+A+` + */function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Xl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QW(){return Math.random().toString(36).substr(2,8)}function n3(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||QW()})}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 JW(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Dn.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=Dn.Pop;let A=p(),b=A==null?null:A-f;f=A,c&&c({action:u,location:v.location,delta:b})}function m(A,b){u=Dn.Push;let w=Wc(v.location,A,b);f=p()+1;let S=n3(w,f),k=v.createHref(w);try{a.pushState(S,"",k)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;o.location.assign(k)}i&&c&&c({action:u,location:v.location,delta:1})}function x(A,b){u=Dn.Replace;let w=Wc(v.location,A,b);f=p();let S=n3(w,f),k=v.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:u,location:v.location,delta:0})}function y(A){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof A=="string"?A:vf(A);return w=w.replace(/ $/,"%20"),pt(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let v={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(t3,h),c=A,()=>{o.removeEventListener(t3,h),c=null}},createHref(A){return t(o,A)},createURL:y,encodeLocation(A){let b=y(A);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:m,replace:x,go(A){return a.go(A)}};return v}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const eH=new Set(["lazy","caseSensitive","path","id","index","children"]);function tH(e){return e.index===!0}function Hc(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`),tH(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=Hc(o.children,t,a,r)),c}})}function ra(e,t,n){return n===void 0&&(n="/"),bp(e,t,n,!1)}function bp(e,t,n,r){let o=typeof t=="string"?Bs(t):t,i=yf(o.pathname||"/",n);if(i==null)return null;let a=y4(e);rH(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+'".')),y4(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:cH(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 w4(i.path))o(i,a,c)}),t}function w4(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=w4(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 rH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oH=/^:[\w-]+$/,iH=3,sH=2,aH=1,lH=10,uH=-2,r3=e=>e==="*";function cH(e,t){let n=e.split("/"),r=n.length;return n.some(r3)&&(r+=uH),t&&(r+=sH),n.filter(o=>!r3(o)).reduce((o,i)=>o+(oH.test(i)?iH:i===""?aH:lH),r)}function fH(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 dH(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:x}=p;if(m==="*"){let v=u[h]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=u[h];return x&&!y?f[m]=void 0:f[m]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function pH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xl(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 hH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xl(!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 mH(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:gH(n,t):t,search:xH(r),hash:bH(o)}}function gH(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 Jg(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 x4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vH(e,t){let n=x4(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yH(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("?"),Jg("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),Jg("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),Jg("#","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=mH(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,"/"),wH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class By{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 b4=["post","put","patch","delete"],_H=new Set(b4),SH=["get",...b4],EH=new Set(SH),CH=new Set([301,302,303,307,308]),AH=new Set([307,308]),ev={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},RH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ku={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),_4="remix-router-transitions";function TH(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=kH;let i={},a=Hc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||NH,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,x=new Set,y=null,v=null,A=null,b=e.hydrationData!=null,w=ra(a,e.history.location,c),S=null;if(w==null&&!p){let N=yr(404,{pathname:e.history.location.pathname}),{matches:B,route:G}=h3(a);w=B,S={[G.id]:N}}w&&p&&!e.hydrationData&&Tn(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=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:N&&N[ne.route.id]!==void 0||B&&B[ne.route.id]!==void 0:!0;if(B){let ne=w.findIndex(_e=>B[_e.route.id]!==void 0);k=w.slice(0,ne+1).every(G)}else k=w.every(G)}else k=e.hydrationData!=null;let D,E={historyAction:e.history.action,location:e.history.location,matches:w,initialized:k,navigation:ev,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=Dn.Pop,I=!1,H,$=!1,Y=new Map,se=null,K=!1,q=!1,Q=[],le=[],pe=new Map,J=0,he=-1,re=new Map,me=new Set,U=new Map,ue=new Map,te=new Set,ye=new Map,de=new Map,Le=new Map,ge=!1;function ae(){if(m=e.history.listen(N=>{let{action:B,location:G,delta:ne}=N;if(ge){ge=!1;return}Xl(de.size===0||ne!=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 _e=Ee({currentLocation:E.location,nextLocation:G,historyAction:B});if(_e&&ne!=null){ge=!0,e.history.go(ne*-1),xe(_e,{state:"blocked",location:G,proceed(){xe(_e,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),e.history.go(ne)},reset(){let Pe=new Map(E.blockers);Pe.set(_e,Ku),Ae({blockers:Pe})}});return}return _t(B,G)}),n){GH(t,Y);let N=()=>KH(t,Y);t.addEventListener("pagehide",N),se=()=>t.removeEventListener("pagehide",N)}return E.initialized||_t(Dn.Pop,E.location,{initialHydration:!0}),D}function je(){m&&m(),se&&se(),x.clear(),H&&H.abort(),E.fetchers.forEach((N,B)=>rr(B)),E.blockers.forEach((N,B)=>be(B))}function Te(N){return x.add(N),()=>x.delete(N)}function Ae(N,B){B===void 0&&(B={}),E=on({},E,N);let G=[],ne=[];h.v7_fetcherPersist&&E.fetchers.forEach((_e,Pe)=>{_e.state==="idle"&&(te.has(Pe)?ne.push(Pe):G.push(Pe))}),[...x].forEach(_e=>_e(E,{deletedFetchers:ne,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),h.v7_fetcherPersist&&(G.forEach(_e=>E.fetchers.delete(_e)),ne.forEach(_e=>rr(_e)))}function Ke(N,B,G){var ne,_e;let{flushSync:Pe}=G===void 0?{}:G,Ue=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((ne=N.state)==null?void 0:ne._isRedirect)!==!0,we;B.actionData?Object.keys(B.actionData).length>0?we=B.actionData:we=null:Ue?we=E.actionData:we=null;let qe=B.loaderData?d3(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,Be=E.blockers;Be.size>0&&(Be=new Map(Be),Be.forEach((vt,Rt)=>Be.set(Rt,Ku)));let $e=I===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((_e=N.state)==null?void 0:_e._isRedirect)!==!0;u&&(a=u,u=void 0),K||L===Dn.Pop||(L===Dn.Push?e.history.push(N,N.state):L===Dn.Replace&&e.history.replace(N,N.state));let Et;if(L===Dn.Pop){let vt=Y.get(E.location.pathname);vt&&vt.has(N.pathname)?Et={currentLocation:E.location,nextLocation:N}:Y.has(N.pathname)&&(Et={currentLocation:N,nextLocation:E.location})}else if($){let vt=Y.get(E.location.pathname);vt?vt.add(N.pathname):(vt=new Set([N.pathname]),Y.set(E.location.pathname,vt)),Et={currentLocation:E.location,nextLocation:N}}Ae(on({},B,{actionData:we,loaderData:qe,historyAction:L,location:N,initialized:!0,navigation:ev,revalidation:"idle",restoreScrollPosition:zt(N,B.matches||E.matches),preventScrollReset:$e,blockers:Be}),{viewTransitionOpts:Et,flushSync:Pe===!0}),L=Dn.Pop,I=!1,$=!1,K=!1,q=!1,Q=[],le=[]}async function st(N,B){if(typeof N=="number"){e.history.go(N);return}let G=N2(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:ne,submission:_e,error:Pe}=i3(h.v7_normalizeFormMethod,!1,G,B),Ue=E.location,we=Wc(E.location,ne,B&&B.state);we=on({},we,e.history.encodeLocation(we));let qe=B&&B.replace!=null?B.replace:void 0,Be=Dn.Push;qe===!0?Be=Dn.Replace:qe===!1||_e!=null&&Ko(_e.formMethod)&&_e.formAction===E.location.pathname+E.location.search&&(Be=Dn.Replace);let $e=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Et=(B&&B.unstable_flushSync)===!0,vt=Ee({currentLocation:Ue,nextLocation:we,historyAction:Be});if(vt){xe(vt,{state:"blocked",location:we,proceed(){xe(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:we}),st(N,B)},reset(){let Rt=new Map(E.blockers);Rt.set(vt,Ku),Ae({blockers:Rt})}});return}return await _t(Be,we,{submission:_e,pendingError:Pe,preventScrollReset:$e,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:Et})}function ht(){if(nn(),Ae({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){_t(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}_t(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function _t(N,B,G){H&&H.abort(),H=null,L=N,K=(G&&G.startUninterruptedRevalidation)===!0,kn(E.location,E.matches),I=(G&&G.preventScrollReset)===!0,$=(G&&G.enableViewTransition)===!0;let ne=u||a,_e=G&&G.overrideNavigation,Pe=ra(ne,B,c),Ue=(G&&G.flushSync)===!0,we=Tn(Pe,ne,B.pathname);if(we.active&&we.matches&&(Pe=we.matches),!Pe){let{error:Ce,notFoundMatches:yt,route:dn}=Fe(B.pathname);Ke(B,{matches:yt,loaderData:{},errors:{[dn.id]:Ce}},{flushSync:Ue});return}if(E.initialized&&!q&&UH(E.location,B)&&!(G&&G.submission&&Ko(G.submission.formMethod))){Ke(B,{matches:Pe},{flushSync:Ue});return}H=new AbortController;let qe=Xa(e.history,B,H.signal,G&&G.submission),Be;if(G&&G.pendingError)Be=[Sl(Pe).route.id,{type:Wt.error,error:G.pendingError}];else if(G&&G.submission&&Ko(G.submission.formMethod)){let Ce=await mt(qe,B,G.submission,Pe,we.active,{replace:G.replace,flushSync:Ue});if(Ce.shortCircuited)return;if(Ce.pendingActionResult){let[yt,dn]=Ce.pendingActionResult;if(Kr(dn)&&f0(dn.error)&&dn.error.status===404){H=null,Ke(B,{matches:Ce.matches,loaderData:{},errors:{[yt]:dn.error}});return}}Pe=Ce.matches||Pe,Be=Ce.pendingActionResult,_e=tv(B,G.submission),Ue=!1,we.active=!1,qe=Xa(e.history,qe.url,qe.signal)}let{shortCircuited:$e,matches:Et,loaderData:vt,errors:Rt}=await Mn(qe,B,Pe,we.active,_e,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Ue,Be);$e||(H=null,Ke(B,on({matches:Et||Pe},p3(Be),{loaderData:vt,errors:Rt})))}async function mt(N,B,G,ne,_e,Pe){Pe===void 0&&(Pe={}),nn();let Ue=HH(B,G);if(Ae({navigation:Ue},{flushSync:Pe.flushSync===!0}),_e){let Be=await fn(ne,B.pathname,N.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let{boundaryId:$e,error:Et}=Me(B.pathname,Be);return{matches:Be.partialMatches,pendingActionResult:[$e,{type:Wt.error,error:Et}]}}else if(Be.matches)ne=Be.matches;else{let{notFoundMatches:$e,error:Et,route:vt}=Fe(B.pathname);return{matches:$e,pendingActionResult:[vt.id,{type:Wt.error,error:Et}]}}}let we,qe=ac(ne,B);if(!qe.route.action&&!qe.route.lazy)we={type:Wt.error,error:yr(405,{method:N.method,pathname:B.pathname,routeId:qe.route.id})};else if(we=(await At("action",N,[qe],ne))[0],N.signal.aborted)return{shortCircuited:!0};if(ua(we)){let Be;return Pe&&Pe.replace!=null?Be=Pe.replace:Be=u3(we.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,we,{submission:G,replace:Be}),{shortCircuited:!0}}if(la(we))throw yr(400,{type:"defer-action"});if(Kr(we)){let Be=Sl(ne,qe.route.id);return(Pe&&Pe.replace)!==!0&&(L=Dn.Push),{matches:ne,pendingActionResult:[Be.route.id,we]}}return{matches:ne,pendingActionResult:[qe.route.id,we]}}async function Mn(N,B,G,ne,_e,Pe,Ue,we,qe,Be,$e){let Et=_e||tv(B,Pe),vt=Pe||Ue||v3(Et),Rt=!K&&(!h.v7_partialHydration||!qe);if(ne){if(Rt){let Zt=pr($e);Ae(on({navigation:Et},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Be})}let Ze=await fn(G,B.pathname,N.signal);if(Ze.type==="aborted")return{shortCircuited:!0};if(Ze.type==="error"){let{boundaryId:Zt,error:hr}=Me(B.pathname,Ze);return{matches:Ze.partialMatches,loaderData:{},errors:{[Zt]:hr}}}else if(Ze.matches)G=Ze.matches;else{let{error:Zt,notFoundMatches:hr,route:jt}=Fe(B.pathname);return{matches:hr,loaderData:{},errors:{[jt.id]:Zt}}}}let Ce=u||a,[yt,dn]=s3(e.history,E,G,vt,B,h.v7_partialHydration&&qe===!0,h.v7_skipActionErrorRevalidation,q,Q,le,te,U,me,Ce,c,$e);if(Ie(Ze=>!(G&&G.some(Zt=>Zt.route.id===Ze))||yt&&yt.some(Zt=>Zt.route.id===Ze)),he=++J,yt.length===0&&dn.length===0){let Ze=W();return Ke(B,on({matches:G,loaderData:{},errors:$e&&Kr($e[1])?{[$e[0]]:$e[1].error}:null},p3($e),Ze?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Be}),{shortCircuited:!0}}if(Rt){let Ze={};if(!ne){Ze.navigation=Et;let Zt=pr($e);Zt!==void 0&&(Ze.actionData=Zt)}dn.length>0&&(Ze.fetchers=Ct(dn)),Ae(Ze,{flushSync:Be})}dn.forEach(Ze=>{pe.has(Ze.key)&&Rn(Ze.key),Ze.controller&&pe.set(Ze.key,Ze.controller)});let ni=()=>dn.forEach(Ze=>Rn(Ze.key));H&&H.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await An(E.matches,G,yt,dn,N);if(N.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",ni),dn.forEach(Ze=>pe.delete(Ze.key));let Gi=m3([...ri,...$o]);if(Gi){if(Gi.idx>=yt.length){let Ze=dn[Gi.idx-yt.length].key;me.add(Ze)}return await Ut(N,Gi.result,{replace:we}),{shortCircuited:!0}}let{loaderData:Ki,errors:ao}=f3(E,G,yt,ri,$e,dn,$o,ye);ye.forEach((Ze,Zt)=>{Ze.subscribe(hr=>{(hr||Ze.done)&&ye.delete(Zt)})}),h.v7_partialHydration&&qe&&E.errors&&Object.entries(E.errors).filter(Ze=>{let[Zt]=Ze;return!yt.some(hr=>hr.route.id===Zt)}).forEach(Ze=>{let[Zt,hr]=Ze;ao=Object.assign(ao||{},{[Zt]:hr})});let Fs=W(),Us=F(he),zs=Fs||Us||dn.length>0;return on({matches:G,loaderData:Ki,errors:ao},zs?{fetchers:new Map(E.fetchers)}:{})}function pr(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 Ct(N){return N.forEach(B=>{let G=E.fetchers.get(B.key),ne=Yu(void 0,G?G.data:void 0);E.fetchers.set(B.key,ne)}),new Map(E.fetchers)}function at(N,B,G,ne){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.");pe.has(N)&&Rn(N);let _e=(ne&&ne.unstable_flushSync)===!0,Pe=u||a,Ue=N2(E.location,E.matches,c,h.v7_prependBasename,G,h.v7_relativeSplatPath,B,ne==null?void 0:ne.relative),we=ra(Pe,Ue,c),qe=Tn(we,Pe,Ue);if(qe.active&&qe.matches&&(we=qe.matches),!we){Oe(N,B,yr(404,{pathname:Ue}),{flushSync:_e});return}let{path:Be,submission:$e,error:Et}=i3(h.v7_normalizeFormMethod,!0,Ue,ne);if(Et){Oe(N,B,Et,{flushSync:_e});return}let vt=ac(we,Be);if(I=(ne&&ne.preventScrollReset)===!0,$e&&Ko($e.formMethod)){un(N,B,Be,vt,we,qe.active,_e,$e);return}U.set(N,{routeId:B,path:Be}),cn(N,B,Be,vt,we,qe.active,_e,$e)}async function un(N,B,G,ne,_e,Pe,Ue,we){nn(),U.delete(N);function qe(jt){if(!jt.route.action&&!jt.route.lazy){let lo=yr(405,{method:we.formMethod,pathname:G,routeId:B});return Oe(N,B,lo,{flushSync:Ue}),!0}return!1}if(!Pe&&qe(ne))return;let Be=E.fetchers.get(N);He(N,qH(we,Be),{flushSync:Ue});let $e=new AbortController,Et=Xa(e.history,G,$e.signal,we);if(Pe){let jt=await fn(_e,G,Et.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Me(G,jt);Oe(N,B,lo,{flushSync:Ue});return}else if(jt.matches){if(_e=jt.matches,ne=ac(_e,G),qe(ne))return}else{Oe(N,B,yr(404,{pathname:G}),{flushSync:Ue});return}}pe.set(N,$e);let vt=J,Ce=(await At("action",Et,[ne],_e))[0];if(Et.signal.aborted){pe.get(N)===$e&&pe.delete(N);return}if(h.v7_fetcherPersist&&te.has(N)){if(ua(Ce)||Kr(Ce)){He(N,as(void 0));return}}else{if(ua(Ce))if(pe.delete(N),he>vt){He(N,as(void 0));return}else return me.add(N),He(N,Yu(we)),Ut(Et,Ce,{fetcherSubmission:we});if(Kr(Ce)){Oe(N,B,Ce.error);return}}if(la(Ce))throw yr(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;re.set(N,$o);let Gi=Yu(we,Ce.data);E.fetchers.set(N,Gi);let[Ki,ao]=s3(e.history,E,ri,we,yt,!1,h.v7_skipActionErrorRevalidation,q,Q,le,te,U,me,ni,c,[ne.route.id,Ce]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,vu=E.fetchers.get(lo),Tf=Yu(void 0,vu?vu.data:void 0);E.fetchers.set(lo,Tf),pe.has(lo)&&Rn(lo),jt.controller&&pe.set(lo,jt.controller)}),Ae({fetchers:new Map(E.fetchers)});let Fs=()=>ao.forEach(jt=>Rn(jt.key));$e.signal.addEventListener("abort",Fs);let{loaderResults:Us,fetcherResults:zs}=await An(E.matches,ri,Ki,ao,dn);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",Fs),re.delete(N),pe.delete(N),ao.forEach(jt=>pe.delete(jt.key));let Ze=m3([...Us,...zs]);if(Ze){if(Ze.idx>=Ki.length){let jt=ao[Ze.idx-Ki.length].key;me.add(jt)}return Ut(dn,Ze.result)}let{loaderData:Zt,errors:hr}=f3(E,E.matches,Ki,Us,void 0,ao,zs,ye);if(E.fetchers.has(N)){let jt=as(Ce.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>he?(pt(L,"Expected pending action"),H&&H.abort(),Ke(E.navigation.location,{matches:ri,loaderData:Zt,errors:hr,fetchers:new Map(E.fetchers)})):(Ae({errors:hr,loaderData:d3(E.loaderData,Zt,ri,hr),fetchers:new Map(E.fetchers)}),q=!1)}async function cn(N,B,G,ne,_e,Pe,Ue,we){let qe=E.fetchers.get(N);He(N,Yu(we,qe?qe.data:void 0),{flushSync:Ue});let Be=new AbortController,$e=Xa(e.history,G,Be.signal);if(Pe){let Ce=await fn(_e,G,$e.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){let{error:yt}=Me(G,Ce);Oe(N,B,yt,{flushSync:Ue});return}else if(Ce.matches)_e=Ce.matches,ne=ac(_e,G);else{Oe(N,B,yr(404,{pathname:G}),{flushSync:Ue});return}}pe.set(N,Be);let Et=J,Rt=(await At("loader",$e,[ne],_e))[0];if(la(Rt)&&(Rt=await R4(Rt,$e.signal,!0)||Rt),pe.get(N)===Be&&pe.delete(N),!$e.signal.aborted){if(te.has(N)){He(N,as(void 0));return}if(ua(Rt))if(he>Et){He(N,as(void 0));return}else{me.add(N),await Ut($e,Rt);return}if(Kr(Rt)){Oe(N,B,Rt.error);return}pt(!la(Rt),"Unhandled fetcher deferred data"),He(N,as(Rt.data))}}async function Ut(N,B,G){let{submission:ne,fetcherSubmission:_e,replace:Pe}=G===void 0?{}:G;B.response.headers.has("X-Remix-Revalidate")&&(q=!0);let Ue=B.response.headers.get("Location");pt(Ue,"Expected a Location header on the redirect Response"),Ue=u3(Ue,new URL(N.url),c);let we=Wc(E.location,Ue,{_isRedirect:!0});if(n){let Rt=!1;if(B.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(Iy.test(Ue)){const Ce=e.history.createURL(Ue);Rt=Ce.origin!==t.location.origin||yf(Ce.pathname,c)==null}if(Rt){Pe?t.location.replace(Ue):t.location.assign(Ue);return}}H=null;let qe=Pe===!0?Dn.Replace:Dn.Push,{formMethod:Be,formAction:$e,formEncType:Et}=E.navigation;!ne&&!_e&&Be&&$e&&Et&&(ne=v3(E.navigation));let vt=ne||_e;if(AH.has(B.response.status)&&vt&&Ko(vt.formMethod))await _t(qe,we,{submission:on({},vt,{formAction:Ue}),preventScrollReset:I});else{let Rt=tv(we,ne);await _t(qe,we,{overrideNavigation:Rt,fetcherSubmission:_e,preventScrollReset:I})}}async function At(N,B,G,ne){try{let _e=await MH(f,N,B,G,ne,i,o);return await Promise.all(_e.map((Pe,Ue)=>{if(jH(Pe)){let we=Pe.result;return{type:Wt.redirect,response:$H(we,B,G[Ue].route.id,ne,c,h.v7_relativeSplatPath)}}return IH(Pe)}))}catch(_e){return G.map(()=>({type:Wt.error,error:_e}))}}async function An(N,B,G,ne,_e){let[Pe,...Ue]=await Promise.all([G.length?At("loader",_e,G,B):[],...ne.map(we=>{if(we.matches&&we.match&&we.controller){let qe=Xa(e.history,we.path,we.controller.signal);return At("loader",qe,[we.match],we.matches).then(Be=>Be[0])}else return Promise.resolve({type:Wt.error,error:yr(404,{pathname:we.path})})})]);return await Promise.all([g3(N,G,Pe,Pe.map(()=>_e.signal),!1,E.loaderData),g3(N,ne.map(we=>we.match),Ue,ne.map(we=>we.controller?we.controller.signal:null),!0)]),{loaderResults:Pe,fetcherResults:Ue}}function nn(){q=!0,Q.push(...Ie()),U.forEach((N,B)=>{pe.has(B)&&(le.push(B),Rn(B))})}function He(N,B,G){G===void 0&&(G={}),E.fetchers.set(N,B),Ae({fetchers:new Map(E.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Oe(N,B,G,ne){ne===void 0&&(ne={});let _e=Sl(E.matches,B);rr(N),Ae({errors:{[_e.route.id]:G},fetchers:new Map(E.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ue.set(N,(ue.get(N)||0)+1),te.has(N)&&te.delete(N)),E.fetchers.get(N)||RH}function rr(N){let B=E.fetchers.get(N);pe.has(N)&&!(B&&B.state==="loading"&&re.has(N))&&Rn(N),U.delete(N),re.delete(N),me.delete(N),te.delete(N),E.fetchers.delete(N)}function Hn(N){if(h.v7_fetcherPersist){let B=(ue.get(N)||0)-1;B<=0?(ue.delete(N),te.add(N)):ue.set(N,B)}else rr(N);Ae({fetchers:new Map(E.fetchers)})}function Rn(N){let B=pe.get(N);pt(B,"Expected fetch controller: "+N),B.abort(),pe.delete(N)}function Io(N){for(let B of N){let G=Xt(B),ne=as(G.data);E.fetchers.set(B,ne)}}function W(){let N=[],B=!1;for(let G of me){let ne=E.fetchers.get(G);pt(ne,"Expected fetcher: "+G),ne.state==="loading"&&(me.delete(G),N.push(G),B=!0)}return Io(N),B}function F(N){let B=[];for(let[G,ne]of re)if(ne0}function ce(N,B){let G=E.blockers.get(N)||Ku;return de.get(N)!==B&&de.set(N,B),G}function be(N){E.blockers.delete(N),de.delete(N)}function xe(N,B){let G=E.blockers.get(N)||Ku;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 ne=new Map(E.blockers);ne.set(N,B),Ae({blockers:ne})}function Ee(N){let{currentLocation:B,nextLocation:G,historyAction:ne}=N;if(de.size===0)return;de.size>1&&Xl(!1,"A router only supports one blocker at a time");let _e=Array.from(de.entries()),[Pe,Ue]=_e[_e.length-1],we=E.blockers.get(Pe);if(!(we&&we.state==="proceeding")&&Ue({currentLocation:B,nextLocation:G,historyAction:ne}))return Pe}function Fe(N){let B=yr(404,{pathname:N}),G=u||a,{matches:ne,route:_e}=h3(G);return Ie(),{notFoundMatches:ne,route:_e,error:B}}function Me(N,B){return{boundaryId:Sl(B.partialMatches).route.id,error:yr(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,ne)=>{(!N||N(ne))&&(G.cancel(),B.push(ne),ye.delete(ne))}),B}function Ge(N,B,G){if(y=N,A=B,v=G||null,!b&&E.navigation===ev){b=!0;let ne=zt(E.location,E.matches);ne!=null&&Ae({restoreScrollPosition:ne})}return()=>{y=null,A=null,v=null}}function St(N,B){return v&&v(N,B.map(ne=>nH(ne,E.loaderData)))||N.key}function kn(N,B){if(y&&A){let G=St(N,B);y[G]=A()}}function zt(N,B){if(y){let G=St(N,B),ne=y[G];if(typeof ne=="number")return ne}return null}function Tn(N,B,G){if(p)if(N){let ne=N[N.length-1].route;if(ne.path&&(ne.path==="*"||ne.path.endsWith("/*")))return{active:!0,matches:bp(B,G,c,!0)}}else return{active:!0,matches:bp(B,G,c,!0)||[]};return{active:!1,matches:null}}async function fn(N,B,G){let ne=N,_e=ne.length>0?ne[ne.length-1].route:null;for(;;){let Pe=u==null,Ue=u||a;try{await LH(p,B,ne,Ue,i,o,Le,G)}catch($e){return{type:"error",error:$e,partialMatches:ne}}finally{Pe&&(a=[...a])}if(G.aborted)return{type:"aborted"};let we=ra(Ue,B,c),qe=!1;if(we){let $e=we[we.length-1].route;if($e.index)return{type:"success",matches:we};if($e.path&&$e.path.length>0)if($e.path==="*")qe=!0;else return{type:"success",matches:we}}let Be=bp(Ue,B,c,!0);if(!Be||ne.map($e=>$e.route.id).join("-")===Be.map($e=>$e.route.id).join("-"))return{type:"success",matches:qe?we:null};if(ne=Be,_e=ne[ne.length-1].route,_e.path==="*")return{type:"success",matches:ne}}}function so(N){i={},u=Hc(N,o,void 0,i)}function or(N,B){let G=u==null;E4(N,B,u||a,i,o),G&&(a=[...a],Ae({}))}return D={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:ae,subscribe:Te,enableScrollRestoration:Ge,navigate:st,fetch:at,revalidate:ht,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:Hn,dispose:je,getBlocker:ce,deleteBlocker:be,patchRoutes:or,_internalFetchControllers:pe,_internalActiveDeferreds:ye,_internalSetRoutes:so},D}function DH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function N2(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=yH(o||".",vH(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&&!$y(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 i3(e,t,n,r){if(!r||!DH(r))return{path:n};if(r.formMethod&&!WH(r.formMethod))return{path:n,error:yr(405,{method:r.formMethod})};let o=()=>({path:n,error:yr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),u=C4(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((x,y)=>{let[v,A]=y;return""+x+v+"="+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=M2(r.formData),f=r.formData;else if(r.body instanceof FormData)c=M2(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=c3(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=c3(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&&$y(h.search)&&c.append("index",""),h.search="?"+c,{path:vf(h),submission:p}}function PH(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 s3(e,t,n,r,o,i,a,u,c,f,p,h,m,x,y,v){let A=v?Kr(v[1])?v[1].error:v[1].data:void 0,b=e.createURL(t.location),w=e.createURL(o),S=v&&Kr(v[1])?v[0]:void 0,k=S?PH(n,S):n,D=v?v[1].statusCode:void 0,E=a&&D&&D>=400,L=k.filter((H,$)=>{let{route:Y}=H;if(Y.lazy)return!0;if(Y.loader==null)return!1;if(i)return typeof Y.loader!="function"||Y.loader.hydrate?!0:t.loaderData[Y.id]===void 0&&(!t.errors||t.errors[Y.id]===void 0);if(OH(t.loaderData,t.matches[$],H)||c.some(q=>q===H.route.id))return!0;let se=t.matches[$],K=H;return a3(H,on({currentUrl:b,currentParams:se.params,nextUrl:w,nextParams:K.params},r,{actionResult:A,actionStatus:D,defaultShouldRevalidate:E?!1:u||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||S4(se,K)}))}),I=[];return h.forEach((H,$)=>{if(i||!n.some(Q=>Q.route.id===H.routeId)||p.has($))return;let Y=ra(x,H.path,y);if(!Y){I.push({key:$,routeId:H.routeId,path:H.path,matches:null,match:null,controller:null});return}let se=t.fetchers.get($),K=ac(Y,H.path),q=!1;m.has($)?q=!1:f.includes($)?q=!0:se&&se.state!=="idle"&&se.data===void 0?q=u:q=a3(K,on({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:D,defaultShouldRevalidate:E?!1:u})),q&&I.push({key:$,routeId:H.routeId,path:H.path,matches:Y,match:K,controller:new AbortController})}),[L,I]}function OH(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function S4(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function a3(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function LH(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||E4(p,h,r,o,i)}}),a.set(c,f)),f&&zH(f)&&await f}finally{a.delete(c)}}function E4(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=Hc(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=Hc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function l3(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";Xl(!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&&!eH.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,on({},t(o),{lazy:void 0}))}function NH(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function MH(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:y=>(f.add(h.route.id),m?BH(t,n,h,i,a,y,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 BH(e,t,n,r,o,i,a){let u,c,f=p=>{let h,m=new Promise((v,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let x=v=>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},...v!==void 0?[v]:[]),y;return i?y=i(v=>x(v)):y=(async()=>{try{return{type:"data",result:await x()}}catch(v){return{type:"error",result:v}}})(),Promise.race([y,m])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[m]=await Promise.all([f(p).catch(x=>{h=x}),l3(n.route,o,r)]);if(h!==void 0)throw h;u=m}else if(await l3(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 yr(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 yr(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 IH(e){let{result:t,type:n,status:r}=e;if(A4(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 By(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(VH(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 $H(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"),!Iy.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=N2(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function u3(e,t,n){if(Iy.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(C4(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=M2(r.formData):i.body=r.formData}return new Request(o,i)}function M2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function c3(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function FH(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,x)=>{let y=t[x].route.id;if(pt(!ua(m),"Cannot handle redirect results in processLoaderData"),Kr(m)){let v=m.error;h!==void 0&&(v=h,h=void 0),u=u||{};{let A=Sl(e,y);u[A.route.id]==null&&(u[A.route.id]=v)}a[y]=void 0,f||(f=!0,c=f0(m.error)?m.error.status:500),m.headers&&(p[y]=m.headers)}else la(m)?(o.set(y,m.deferredData),a[y]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[y]=m.headers)):(a[y]=m.data,m.statusCode&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[y]=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 f3(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=FH(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 h3(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 yr(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 By(e||500,u,new Error(c),!0)}function m3(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ua(n))return{result:n,idx:t}}}function C4(e){let t=typeof e=="string"?Bs(e):e;return vf(on({},t,{hash:""}))}function UH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function zH(e){return typeof e=="object"&&e!=null&&"then"in e}function jH(e){return A4(e.result)&&CH.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 VH(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 A4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function WH(e){return EH.has(e.toLowerCase())}function Ko(e){return _H.has(e.toLowerCase())}async function g3(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!S4(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 R4(u,h,o).then(m=>{m&&(n[a]=m||n[a])})}}}async function R4(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 $y(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ac(e,t){let n=typeof t=="string"?Bs(t).search:t.search;if(e[e.length-1].route.index&&$y(n||""))return e[e.length-1];let r=x4(e);return r[r.length-1]}function v3(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 tv(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 HH(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 Yu(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 qH(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 GH(e,t){try{let n=e.sessionStorage.getItem(_4);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 KH(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(_4,JSON.stringify(n))}catch(r){Xl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.25.1 @@ -108,36 +108,36 @@ function print() { __p += __j.call(arguments, '') } * * @license MIT */function lh(){return lh=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 yq(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=T.useState(n.state),[a,u]=T.useState(),[c,f]=T.useState({isTransitioning:!1}),[p,h]=T.useState(),[m,x]=T.useState(),[y,v]=T.useState(),A=T.useRef(new Map),{v7_startTransition:b}=r||{},w=T.useCallback(I=>{b?gq(I):I()},[b]),S=T.useCallback((I,H)=>{let{deletedFetchers:$,unstable_flushSync:Y,unstable_viewTransitionOpts:se}=H;$.forEach(q=>A.current.delete(q)),I.fetchers.forEach((q,Q)=>{q.data!==void 0&&A.current.set(Q,q.data)});let K=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!se||K){Y?Xu(()=>i(I)):w(()=>i(I));return}if(Y){Xu(()=>{m&&(p&&p.resolve(),m.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let q=n.window.document.startViewTransition(()=>{Xu(()=>i(I))});q.finished.finally(()=>{Xu(()=>{h(void 0),x(void 0),u(void 0),f({isTransitioning:!1})})}),Xu(()=>x(q));return}m?(p&&p.resolve(),m.skipTransition(),v({state:I,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(u(I),f({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[n.window,m,p,A,w]);T.useLayoutEffect(()=>n.subscribe(S),[n,S]),T.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new vq)},[c]),T.useEffect(()=>{if(p&&a&&n.window){let I=a,H=p.promise,$=n.window.document.startViewTransition(async()=>{w(()=>i(I)),await H});$.finished.finally(()=>{h(void 0),x(void 0),u(void 0),f({isTransitioning:!1})}),x($)}},[w,a,p,n.window]),T.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,m,o.location,a]),T.useEffect(()=>{!c.isTransitioning&&y&&(u(y.state),f({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[c.isTransitioning,y]),T.useEffect(()=>{},[]);let k=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:I=>n.navigate(I),push:(I,H,$)=>n.navigate(I,{state:H,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(I,H,$)=>n.navigate(I,{replace:!0,state:H,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[n]),D=n.basename||"/",E=T.useMemo(()=>({router:n,navigator:k,static:!1,basename:D}),[n,k,D]),L=T.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return T.createElement(T.Fragment,null,T.createElement(k4.Provider,{value:E},T.createElement(T4.Provider,{value:o},T.createElement(pq.Provider,{value:A.current},T.createElement(dq.Provider,{value:c},T.createElement(sq,{basename:D,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?T.createElement(wq,{routes:n.routes,future:n.future,state:o}):t))))),null)}const wq=T.memo(xq);function xq(e){let{routes:t,future:n,state:r}=e;return XH(t,void 0,r,n)}var x3;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(x3||(x3={}));var b3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(b3||(b3={}));var O4={},zy={exports:{}},vn={},L4={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` -`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};function bq(e){return Object.prototype.toString.call(e)}function _q(e){return bq(e)==="[object String]"}var Sq=Object.prototype.hasOwnProperty;function N4(e,t){return e?Sq.call(e,t):!1}function Eq(e){var t=[].slice.call(arguments,1);return t.forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}var Cq=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Aq(e){return e.indexOf("\\")<0?e:e.replace(Cq,"$1")}function M4(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function B4(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Rq=/&([a-z#][a-z0-9]{1,31});/gi,kq=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_3=L4;function Tq(e,t){var n=0;return N4(_3,t)?_3[t]:t.charCodeAt(0)===35&&kq.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),M4(n))?B4(n):e}function Dq(e){return e.indexOf("&")<0?e:e.replace(Rq,Tq)}var Pq=/[&<>"]/,Oq=/[&<>"]/g,Lq={"&":"&","<":"<",">":">",'"':"""};function Nq(e){return Lq[e]}function Mq(e){return Pq.test(e)?e.replace(Oq,Nq):e}vn.assign=Eq;vn.isString=_q;vn.has=N4;vn.unescapeMd=Aq;vn.isValidEntityCode=M4;vn.fromCodePoint=B4;vn.replaceEntities=Dq;vn.escapeHtml=Mq;var Bq=vn.has,I4=vn.unescapeMd,qc=vn.replaceEntities,Br=vn.escapeHtml,Pe={};Pe.blockquote_open=function(){return`
-`};Pe.blockquote_close=function(e,t){return"
"+Pa(e,t)};Pe.code=function(e,t){return e[t].block?"
"+Br(e[t].content)+"
"+Pa(e,t):""+Br(e[t].content)+""};Pe.fence=function(e,t,n,r,o){var i=e[t],a="",u=n.langPrefix,c="",f,p,h;if(i.params){if(f=i.params.split(/\s+/g),p=f.join(" "),Bq(o.rules.fence_custom,f[0]))return o.rules.fence_custom[f[0]](e,t,n,r,o);c=Br(qc(I4(p))),a=' class="'+u+c+'"'}return n.highlight?h=n.highlight.apply(n.highlight,[i.content].concat(f))||Br(i.content):h=Br(i.content),"
"+h+"
"+Pa(e,t)};Pe.fence_custom={};Pe.heading_open=function(e,t){return""};Pe.heading_close=function(e,t){return" -`};Pe.hr=function(e,t,n){return(n.xhtmlOut?"
":"
")+Pa(e,t)};Pe.bullet_list_open=function(){return`
    -`};Pe.bullet_list_close=function(e,t){return"
"+Pa(e,t)};Pe.list_item_open=function(){return"
  • "};Pe.list_item_close=function(){return`
  • -`};Pe.ordered_list_open=function(e,t){var n=e[t],r=n.order>1?' start="'+n.order+'"':"";return" -`};Pe.ordered_list_close=function(e,t){return""+Pa(e,t)};Pe.paragraph_open=function(e,t){return e[t].tight?"":"

    "};Pe.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"

    ")+(n?Pa(e,t):"")};Pe.link_open=function(e,t,n){var r=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'"};Pe.link_close=function(){return""};Pe.image=function(e,t,n){var r=' src="'+Br(e[t].src)+'"',o=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",i=' alt="'+(e[t].alt?Br(qc(I4(e[t].alt))):"")+'"',a=n.xhtmlOut?" /":"";return""};Pe.table_open=function(){return` -`};Pe.table_close=function(){return`
    -`};Pe.thead_open=function(){return` -`};Pe.thead_close=function(){return` -`};Pe.tbody_open=function(){return` -`};Pe.tbody_close=function(){return` -`};Pe.tr_open=function(){return""};Pe.tr_close=function(){return` -`};Pe.th_open=function(e,t){var n=e[t];return""};Pe.th_close=function(){return""};Pe.td_open=function(e,t){var n=e[t];return""};Pe.td_close=function(){return""};Pe.strong_open=function(){return""};Pe.strong_close=function(){return""};Pe.em_open=function(){return""};Pe.em_close=function(){return""};Pe.del_open=function(){return""};Pe.del_close=function(){return""};Pe.ins_open=function(){return""};Pe.ins_close=function(){return""};Pe.mark_open=function(){return""};Pe.mark_close=function(){return""};Pe.sub=function(e,t){return""+Br(e[t].content)+""};Pe.sup=function(e,t){return""+Br(e[t].content)+""};Pe.hardbreak=function(e,t,n){return n.xhtmlOut?`
    +`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};function bq(e){return Object.prototype.toString.call(e)}function _q(e){return bq(e)==="[object String]"}var Sq=Object.prototype.hasOwnProperty;function N4(e,t){return e?Sq.call(e,t):!1}function Eq(e){var t=[].slice.call(arguments,1);return t.forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}var Cq=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Aq(e){return e.indexOf("\\")<0?e:e.replace(Cq,"$1")}function M4(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function B4(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Rq=/&([a-z#][a-z0-9]{1,31});/gi,kq=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_3=L4;function Tq(e,t){var n=0;return N4(_3,t)?_3[t]:t.charCodeAt(0)===35&&kq.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),M4(n))?B4(n):e}function Dq(e){return e.indexOf("&")<0?e:e.replace(Rq,Tq)}var Pq=/[&<>"]/,Oq=/[&<>"]/g,Lq={"&":"&","<":"<",">":">",'"':"""};function Nq(e){return Lq[e]}function Mq(e){return Pq.test(e)?e.replace(Oq,Nq):e}vn.assign=Eq;vn.isString=_q;vn.has=N4;vn.unescapeMd=Aq;vn.isValidEntityCode=M4;vn.fromCodePoint=B4;vn.replaceEntities=Dq;vn.escapeHtml=Mq;var Bq=vn.has,I4=vn.unescapeMd,qc=vn.replaceEntities,Br=vn.escapeHtml,De={};De.blockquote_open=function(){return`
    +`};De.blockquote_close=function(e,t){return"
    "+Pa(e,t)};De.code=function(e,t){return e[t].block?"
    "+Br(e[t].content)+"
    "+Pa(e,t):""+Br(e[t].content)+""};De.fence=function(e,t,n,r,o){var i=e[t],a="",u=n.langPrefix,c="",f,p,h;if(i.params){if(f=i.params.split(/\s+/g),p=f.join(" "),Bq(o.rules.fence_custom,f[0]))return o.rules.fence_custom[f[0]](e,t,n,r,o);c=Br(qc(I4(p))),a=' class="'+u+c+'"'}return n.highlight?h=n.highlight.apply(n.highlight,[i.content].concat(f))||Br(i.content):h=Br(i.content),"
    "+h+"
    "+Pa(e,t)};De.fence_custom={};De.heading_open=function(e,t){return""};De.heading_close=function(e,t){return" +`};De.hr=function(e,t,n){return(n.xhtmlOut?"
    ":"
    ")+Pa(e,t)};De.bullet_list_open=function(){return`
      +`};De.bullet_list_close=function(e,t){return"
    "+Pa(e,t)};De.list_item_open=function(){return"
  • "};De.list_item_close=function(){return`
  • +`};De.ordered_list_open=function(e,t){var n=e[t],r=n.order>1?' start="'+n.order+'"':"";return" +`};De.ordered_list_close=function(e,t){return""+Pa(e,t)};De.paragraph_open=function(e,t){return e[t].tight?"":"

    "};De.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"

    ")+(n?Pa(e,t):"")};De.link_open=function(e,t,n){var r=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'"};De.link_close=function(){return""};De.image=function(e,t,n){var r=' src="'+Br(e[t].src)+'"',o=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",i=' alt="'+(e[t].alt?Br(qc(I4(e[t].alt))):"")+'"',a=n.xhtmlOut?" /":"";return""};De.table_open=function(){return` +`};De.table_close=function(){return`
    +`};De.thead_open=function(){return` +`};De.thead_close=function(){return` +`};De.tbody_open=function(){return` +`};De.tbody_close=function(){return` +`};De.tr_open=function(){return""};De.tr_close=function(){return` +`};De.th_open=function(e,t){var n=e[t];return""};De.th_close=function(){return""};De.td_open=function(e,t){var n=e[t];return""};De.td_close=function(){return""};De.strong_open=function(){return""};De.strong_close=function(){return""};De.em_open=function(){return""};De.em_close=function(){return""};De.del_open=function(){return""};De.del_close=function(){return""};De.ins_open=function(){return""};De.ins_close=function(){return""};De.mark_open=function(){return""};De.mark_close=function(){return""};De.sub=function(e,t){return""+Br(e[t].content)+""};De.sup=function(e,t){return""+Br(e[t].content)+""};De.hardbreak=function(e,t,n){return n.xhtmlOut?`
    `:`
    -`};Pe.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
    +`};De.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
    `:`
    `:` -`};Pe.text=function(e,t){return Br(e[t].content)};Pe.htmlblock=function(e,t){return e[t].content};Pe.htmltag=function(e,t){return e[t].content};Pe.abbr_open=function(e,t){return''};Pe.abbr_close=function(){return""};Pe.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),'['+n+"]"};Pe.footnote_block_open=function(e,t,n){var r=n.xhtmlOut?`
    +`};De.text=function(e,t){return Br(e[t].content)};De.htmlblock=function(e,t){return e[t].content};De.htmltag=function(e,t){return e[t].content};De.abbr_open=function(e,t){return''};De.abbr_close=function(){return""};De.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),'['+n+"]"};De.footnote_block_open=function(e,t,n){var r=n.xhtmlOut?`
    `:`
    `;return r+`
      -`};Pe.footnote_block_close=function(){return`
    +`};De.footnote_block_close=function(){return`
    -`};Pe.footnote_open=function(e,t){var n=Number(e[t].id+1).toString();return'
  • '};Pe.footnote_close=function(){return`
  • -`};Pe.footnote_anchor=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),' '};Pe.dl_open=function(){return`
    -`};Pe.dt_open=function(){return"
    "};Pe.dd_open=function(){return"
    "};Pe.dl_close=function(){return`
    -`};Pe.dt_close=function(){return` -`};Pe.dd_close=function(){return` -`};function $4(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?$4(e,t+2):t}var Pa=Pe.getBreak=function(t,n){return n=$4(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var Wq=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=E3(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},Gq=vn.unescapeMd,z4=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 eG=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'};De.footnote_close=function(){return` +`};De.footnote_anchor=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),' '};De.dl_open=function(){return`
    +`};De.dt_open=function(){return"
    "};De.dd_open=function(){return"
    "};De.dl_close=function(){return`
    +`};De.dt_close=function(){return` +`};De.dd_close=function(){return` +`};function $4(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?$4(e,t+2):t}var Pa=De.getBreak=function(t,n){return n=$4(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var Wq=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=E3(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},Gq=vn.unescapeMd,z4=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 eG=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=aG(o),oG.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)}},uG=/['"]/,A3=/['"]/g,cG=/[-\s()\[\]]/,R3="’";function k3(e,t){return t<0||t>=e.length?!1:!cG.test(e[t])}function Za(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var fG=function(t){var n,r,o,i,a,u,c,f,p,h,m,x,y,v,A,b,w;if(t.options.typographer){for(w=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(b=t.tokens[A].children,w.length=0,n=0;n=0&&!(w[y].level<=c);y--);w.length=y+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=w[y],!(w[y].levele.transitions.easing.easeInOut,xo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xo.child,xo.childLeaving,XJ,K2,({theme:e})=>e.transitions.easing.easeInOut,xo.childPulsate,ZJ,({theme:e})=>e.transitions.easing.easeInOut),eee=T.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=it(r,GJ),[c,f]=T.useState([]),p=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=T.useRef(!1),x=Cl(),y=T.useRef(null),v=T.useRef(null),A=T.useCallback(k=>{const{pulsate:D,rippleX:E,rippleY:L,rippleSize:I,cb:H}=k;f($=>[...$,P.jsx(JJ,{classes:{ripple:gt(i.ripple,xo.ripple),rippleVisible:gt(i.rippleVisible,xo.rippleVisible),ripplePulsate:gt(i.ripplePulsate,xo.ripplePulsate),child:gt(i.child,xo.child),childLeaving:gt(i.childLeaving,xo.childLeaving),childPulsate:gt(i.childPulsate,xo.childPulsate)},timeout:K2,pulsate:D,rippleX:E,rippleY:L,rippleSize:I},p.current)]),p.current+=1,h.current=H},[i]),b=T.useCallback((k={},D={},E=()=>{})=>{const{pulsate:L=!1,center:I=o||D.pulsate,fakeElement:H=!1}=D;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 $=H?null:v.current,Y=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,K,q;if(I||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)se=Math.round(Y.width/2),K=Math.round(Y.height/2);else{const{clientX:Q,clientY:le}=k.touches&&k.touches.length>0?k.touches[0]:k;se=Math.round(Q-Y.left),K=Math.round(le-Y.top)}if(I)q=Math.sqrt((2*Y.width**2+Y.height**2)/3),q%2===0&&(q+=1);else{const Q=Math.max(Math.abs(($?$.clientWidth:0)-se),se)*2+2,le=Math.max(Math.abs(($?$.clientHeight:0)-K),K)*2+2;q=Math.sqrt(Q**2+le**2)}k!=null&&k.touches?y.current===null&&(y.current=()=>{A({pulsate:L,rippleX:se,rippleY:K,rippleSize:q,cb:E})},x.start(KJ,()=>{y.current&&(y.current(),y.current=null)})):A({pulsate:L,rippleX:se,rippleY:K,rippleSize:q,cb:E})},[o,A,x]),w=T.useCallback(()=>{b({},{pulsate:!0})},[b]),S=T.useCallback((k,D)=>{if(x.clear(),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,x.start(0,()=>{S(k,D)});return}y.current=null,f(E=>E.length>0?E.slice(1):E),h.current=D},[x]);return T.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),P.jsx(QJ,V({className:gt(xo.root,i.root,a),ref:v},u,{children:P.jsx(pw,{component:null,exit:!0,children:c})}))});function tee(e){return tr("MuiButtonBase",e)}const nee=nr("MuiButtonBase",["root","disabled","focusVisible"]),ree=["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"],oee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=dr({root:["root",t&&"disabled",n&&"focusVisible"]},tee,o);return n&&r&&(a.root+=` ${r}`),a},iee=It("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"},[`&.${nee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hw=T.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:x="a",onBlur:y,onClick:v,onContextMenu:A,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:D,onMouseDown:E,onMouseLeave:L,onMouseUp:I,onTouchEnd:H,onTouchMove:$,onTouchStart:Y,tabIndex:se=0,TouchRippleProps:K,touchRippleRef:q,type:Q}=r,le=it(r,ree),pe=T.useRef(null),J=T.useRef(null),he=to(J,q),{isFocusVisibleRef:re,onFocus:me,onBlur:U,ref:ue}=aw(),[te,ve]=T.useState(!1);f&&te&&ve(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{ve(!0),pe.current.focus()}}),[]);const[de,Ne]=T.useState(!1);T.useEffect(()=>{Ne(!0)},[]);const Ce=de&&!p&&!f;T.useEffect(()=>{te&&m&&!p&&de&&J.current.pulsate()},[p,m,te,de]);function ae(Le,Xt,rr=h){return El(Hn=>(Xt&&Xt(Hn),!rr&&J.current&&J.current[Le](Hn),!0))}const De=ae("start",E),Re=ae("stop",A),Se=ae("stop",b),Ke=ae("stop",I),st=ae("stop",Le=>{te&&Le.preventDefault(),L&&L(Le)}),ht=ae("start",Y),_t=ae("stop",H),mt=ae("stop",$),Mn=ae("stop",Le=>{U(Le),re.current===!1&&ve(!1),y&&y(Le)},!1),pr=El(Le=>{pe.current||(pe.current=Le.currentTarget),me(Le),re.current===!0&&(ve(!0),S&&S(Le)),w&&w(Le)}),Ct=()=>{const Le=pe.current;return c&&c!=="button"&&!(Le.tagName==="A"&&Le.href)},at=T.useRef(!1),un=El(Le=>{m&&!at.current&&te&&J.current&&Le.key===" "&&(at.current=!0,J.current.stop(Le,()=>{J.current.start(Le)})),Le.target===Le.currentTarget&&Ct()&&Le.key===" "&&Le.preventDefault(),k&&k(Le),Le.target===Le.currentTarget&&Ct()&&Le.key==="Enter"&&!f&&(Le.preventDefault(),v&&v(Le))}),cn=El(Le=>{m&&Le.key===" "&&J.current&&te&&!Le.defaultPrevented&&(at.current=!1,J.current.stop(Le,()=>{J.current.pulsate(Le)})),D&&D(Le),v&&Le.target===Le.currentTarget&&Ct()&&Le.key===" "&&!Le.defaultPrevented&&v(Le)});let Ut=c;Ut==="button"&&(le.href||le.to)&&(Ut=x);const At={};Ut==="button"?(At.type=Q===void 0?"button":Q,At.disabled=f):(!le.href&&!le.to&&(At.role="button"),f&&(At["aria-disabled"]=f));const An=to(n,ue,pe),nn=V({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:se,focusVisible:te}),He=oee(nn);return P.jsxs(iee,V({as:Ut,className:gt(He.root,u),ownerState:nn,onBlur:Mn,onClick:v,onContextMenu:Re,onFocus:pr,onKeyDown:un,onKeyUp:cn,onMouseDown:De,onMouseLeave:st,onMouseUp:Ke,onDragLeave:Se,onTouchEnd:_t,onTouchMove:mt,onTouchStart:ht,ref:An,tabIndex:f?-1:se,type:Q},At,le,{children:[a,Ce?P.jsx(eee,V({ref:he,center:i},K)):null]}))});function see(e){return tr("MuiTypography",e)}nr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lee=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${Bt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return dr(u,see,a)},uee=It("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${Bt(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})),xE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fee=e=>cee[e]||e,Qn=T.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTypography"}),o=fee(r.color),i=B0(V({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:x=xE}=i,y=it(i,aee),v=V({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:x}),A=c||(h?"p":x[m]||xE[m])||"span",b=lee(v);return P.jsx(uee,V({as:A,ref:n,ownerState:v,className:gt(b.root,u)},y))});var mw={};Object.defineProperty(mw,"__esModule",{value:!0});var eT=mw.default=void 0,dee=hee(T),pee=Zk;function tT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tT=function(r){return r?n:t})(e)}function hee(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tT(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 mee(e){return Object.keys(e).length===0}function gee(e=null){const t=dee.useContext(pee.ThemeContext);return!t||mee(t)?e:t}eT=mw.default=gee;var Ir="top",Lo="bottom",No="right",$r="left",gw="auto",Rf=[Ir,Lo,No,$r],eu="start",Jc="end",vee="clippingParents",nT="viewport",Ju="popper",yee="reference",bE=Rf.reduce(function(e,t){return e.concat([t+"-"+eu,t+"-"+Jc])},[]),rT=[].concat(Rf,[gw]).reduce(function(e,t){return e.concat([t,t+"-"+eu,t+"-"+Jc])},[]),wee="beforeRead",xee="read",bee="afterRead",_ee="beforeMain",See="main",Eee="afterMain",Cee="beforeWrite",Aee="write",Ree="afterWrite",kee=[wee,xee,bee,_ee,See,Eee,Cee,Aee,Ree];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 vw(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tee(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 Dee(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 Pee={name:"applyStyles",enabled:!0,phase:"write",fn:Tee,effect:Dee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ma=Math.max,ph=Math.min,tu=Math.round;function Y2(){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 oT(){return!/^((?!chrome|android).)*safari/i.test(Y2())}function nu(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&&tu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&tu(r.height)/e.offsetHeight||1);var a=Ca(e)?no(e):window,u=a.visualViewport,c=!oT()&&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 yw(e){var t=nu(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 iT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vw(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 Oee(e){return["table","td","th"].indexOf(yi(e))>=0}function $s(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Z0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(vw(e)?e.host:null)||$s(e)}function _E(e){return!To(e)||ji(e).position==="fixed"?null:e.offsetParent}function Lee(e){var t=/firefox/i.test(Y2()),n=/Trident/i.test(Y2());if(n&&To(e)){var r=ji(e);if(r.position==="fixed")return null}var o=Z0(e);for(vw(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=_E(e);n&&Oee(n)&&ji(n).position==="static";)n=_E(n);return n&&(yi(n)==="html"||yi(n)==="body"&&ji(n).position==="static")?t:n||Lee(e)||t}function ww(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sc(e,t,n){return ma(e,ph(t,n))}function Nee(e,t,n){var r=Sc(e,t,n);return r>n?n:r}function sT(){return{top:0,right:0,bottom:0,left:0}}function aT(e){return Object.assign({},sT(),e)}function lT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Mee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aT(typeof t!="number"?t:lT(t,Rf))};function Bee(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=ww(u),f=[$r,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=Mee(o.padding,n),m=yw(i),x=c==="y"?Ir:$r,y=c==="y"?Lo:No,v=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],b=kf(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,S=v/2-A/2,k=h[x],D=w-m[p]-h[y],E=w/2-m[p]/2+S,L=Sc(k,E,D),I=c;n.modifiersData[r]=(t={},t[I]=L,t.centerOffset=L-E,t)}}function Iee(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)||iT(t.elements.popper,o)&&(t.elements.arrow=o))}const $ee={name:"arrow",enabled:!0,phase:"main",fn:Bee,effect:Iee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ru(e){return e.split("-")[1]}var Fee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:tu(n*o)/o||0,y:tu(r*o)/o||0}}function SE(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,x=m===void 0?0:m,y=a.y,v=y===void 0?0:y,A=typeof p=="function"?p({x,y:v}):{x,y:v};x=A.x,v=A.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=$r,k=Ir,D=window;if(f){var E=kf(n),L="clientHeight",I="clientWidth";if(E===no(n)&&(E=$s(n),ji(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",I="scrollWidth")),E=E,o===Ir||(o===$r||o===No)&&i===Jc){k=Lo;var H=h&&E===D&&D.visualViewport?D.visualViewport.height:E[L];v-=H-r.height,v*=c?1:-1}if(o===$r||(o===Ir||o===Lo)&&i===Jc){S=No;var $=h&&E===D&&D.visualViewport?D.visualViewport.width:E[I];x-=$-r.width,x*=c?1:-1}}var Y=Object.assign({position:u},f&&Fee),se=p===!0?Uee({x,y:v},no(n)):{x,y:v};if(x=se.x,v=se.y,c){var K;return Object.assign({},Y,(K={},K[k]=w?"0":"",K[S]=b?"0":"",K.transform=(D.devicePixelRatio||1)<=1?"translate("+x+"px, "+v+"px)":"translate3d("+x+"px, "+v+"px, 0)",K))}return Object.assign({},Y,(t={},t[k]=w?v+"px":"",t[S]=b?x+"px":"",t.transform="",t))}function zee(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:ru(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,SE(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,SE(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 jee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zee,data:{}};var Xd={passive:!0};function Vee(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,Xd)}),u&&c.addEventListener("resize",n.update,Xd),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xd)}),u&&c.removeEventListener("resize",n.update,Xd)}}const Wee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vee,data:{}};var Hee={left:"right",right:"left",bottom:"top",top:"bottom"};function Tp(e){return e.replace(/left|right|bottom|top/g,function(t){return Hee[t]})}var qee={start:"end",end:"start"};function EE(e){return e.replace(/start|end/g,function(t){return qee[t]})}function xw(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function bw(e){return nu($s(e)).left+xw(e).scrollLeft}function Gee(e,t){var n=no(e),r=$s(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var f=oT();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+bw(e),y:c}}function Kee(e){var t,n=$s(e),r=xw(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+bw(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 _w(e){var t=ji(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uT(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&_w(e)?e:uT(Z0(e))}function Ec(e,t){var n;t===void 0&&(t=[]);var r=uT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],_w(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Ec(Z0(a)))}function X2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yee(e,t){var n=nu(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 CE(e,t,n){return t===nT?X2(Gee(e,n)):Ca(t)?Yee(t,n):X2(Kee($s(e)))}function Xee(e){var t=Ec(Z0(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)&&iT(o,r)&&yi(o)!=="body"}):[]}function Zee(e,t,n,r){var o=t==="clippingParents"?Xee(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=CE(e,f,r);return c.top=ma(p.top,c.top),c.right=ph(p.right,c.right),c.bottom=ph(p.bottom,c.bottom),c.left=ma(p.left,c.left),c},CE(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 cT(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?ru(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case Ir: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 $r:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?ww(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case eu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Jc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function ef(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?vee:u,f=n.rootBoundary,p=f===void 0?nT:f,h=n.elementContext,m=h===void 0?Ju:h,x=n.altBoundary,y=x===void 0?!1:x,v=n.padding,A=v===void 0?0:v,b=aT(typeof A!="number"?A:lT(A,Rf)),w=m===Ju?yee:Ju,S=e.rects.popper,k=e.elements[y?w:m],D=Zee(Ca(k)?k:k.contextElement||$s(e.elements.popper),c,p,a),E=nu(e.elements.reference),L=cT({reference:E,element:S,strategy:"absolute",placement:o}),I=X2(Object.assign({},S,L)),H=m===Ju?I:E,$={top:D.top-H.top+b.top,bottom:H.bottom-D.bottom+b.bottom,left:D.left-H.left+b.left,right:H.right-D.right+b.right},Y=e.modifiersData.offset;if(m===Ju&&Y){var se=Y[o];Object.keys($).forEach(function(K){var q=[No,Lo].indexOf(K)>=0?1:-1,Q=[Ir,Lo].indexOf(K)>=0?"y":"x";$[K]+=se[Q]*q})}return $}function Qee(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?rT:c,p=ru(r),h=p?u?bE:bE.filter(function(y){return ru(y)===p}):Rf,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var x=m.reduce(function(y,v){return y[v]=ef(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[mi(v)],y},{});return Object.keys(x).sort(function(y,v){return x[y]-x[v]})}function Jee(e){if(mi(e)===gw)return[];var t=Tp(e);return[EE(e),t,EE(t)]}function ete(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,x=n.flipVariations,y=x===void 0?!0:x,v=n.allowedAutoPlacements,A=t.options.placement,b=mi(A),w=b===A,S=c||(w||!y?[Tp(A)]:Jee(A)),k=[A].concat(S).reduce(function(te,ve){return te.concat(mi(ve)===gw?Qee(t,{placement:ve,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:v}):ve)},[]),D=t.rects.reference,E=t.rects.popper,L=new Map,I=!0,H=k[0],$=0;$=0,Q=q?"width":"height",le=ef(t,{placement:Y,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),pe=q?K?No:$r:K?Lo:Ir;D[Q]>E[Q]&&(pe=Tp(pe));var J=Tp(pe),he=[];if(i&&he.push(le[se]<=0),u&&he.push(le[pe]<=0,le[J]<=0),he.every(function(te){return te})){H=Y,I=!1;break}L.set(Y,he)}if(I)for(var re=y?3:1,me=function(ve){var de=k.find(function(Ne){var Ce=L.get(Ne);if(Ce)return Ce.slice(0,ve).every(function(ae){return ae})});if(de)return H=de,"break"},U=re;U>0;U--){var ue=me(U);if(ue==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const tte={name:"flip",enabled:!0,phase:"main",fn:ete,requiresIfExists:["offset"],data:{_skip:!1}};function AE(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 RE(e){return[Ir,No,Lo,$r].some(function(t){return e[t]>=0})}function nte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ef(t,{elementContext:"reference"}),u=ef(t,{altBoundary:!0}),c=AE(a,r),f=AE(u,o,i),p=RE(c),h=RE(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 rte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nte};function ote(e,t,n){var r=mi(e),o=[$r,Ir].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,[$r,No].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function ite(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=rT.reduce(function(p,h){return p[h]=ote(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 ste={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ite};function ate(e){var t=e.state,n=e.name;t.modifiersData[n]=cT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lte={name:"popperOffsets",enabled:!0,phase:"read",fn:ate,data:{}};function ute(e){return e==="x"?"y":"x"}function cte(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,x=m===void 0?!0:m,y=n.tetherOffset,v=y===void 0?0:y,A=ef(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),b=mi(t.placement),w=ru(t.placement),S=!w,k=ww(b),D=ute(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,H=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(E){if(i){var K,q=k==="y"?Ir:$r,Q=k==="y"?Lo:No,le=k==="y"?"height":"width",pe=E[k],J=pe+A[q],he=pe-A[Q],re=x?-I[le]/2:0,me=w===eu?L[le]:I[le],U=w===eu?-I[le]:-L[le],ue=t.elements.arrow,te=x&&ue?yw(ue):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sT(),de=ve[q],Ne=ve[Q],Ce=Sc(0,L[le],te[le]),ae=S?L[le]/2-re-Ce-de-$.mainAxis:me-Ce-de-$.mainAxis,De=S?-L[le]/2+re+Ce+Ne+$.mainAxis:U+Ce+Ne+$.mainAxis,Re=t.elements.arrow&&kf(t.elements.arrow),Se=Re?k==="y"?Re.clientTop||0:Re.clientLeft||0:0,Ke=(K=Y==null?void 0:Y[k])!=null?K:0,st=pe+ae-Ke-Se,ht=pe+De-Ke,_t=Sc(x?ph(J,st):J,pe,x?ma(he,ht):he);E[k]=_t,se[k]=_t-pe}if(u){var mt,Mn=k==="x"?Ir:$r,pr=k==="x"?Lo:No,Ct=E[D],at=D==="y"?"height":"width",un=Ct+A[Mn],cn=Ct-A[pr],Ut=[Ir,$r].indexOf(b)!==-1,At=(mt=Y==null?void 0:Y[D])!=null?mt:0,An=Ut?un:Ct-L[at]-I[at]-At+$.altAxis,nn=Ut?Ct+L[at]+I[at]-At-$.altAxis:cn,He=x&&Ut?Nee(An,Ct,nn):Sc(x?An:un,Ct,x?nn:cn);E[D]=He,se[D]=He-Ct}t.modifiersData[r]=se}}const fte={name:"preventOverflow",enabled:!0,phase:"main",fn:cte,requiresIfExists:["offset"]};function dte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pte(e){return e===no(e)||!To(e)?xw(e):dte(e)}function hte(e){var t=e.getBoundingClientRect(),n=tu(t.width)/e.offsetWidth||1,r=tu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mte(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&hte(t),i=$s(t),a=nu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||_w(i))&&(u=pte(t)),To(t)?(c=nu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=bw(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function gte(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 vte(e){var t=gte(e);return kee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wte(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 kE={placement:"bottom",modifiers:[],strategy:"absolute"};function TE(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(Ste(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return V2(n,a),()=>{V2(n,null)}},[n,a,i]),i){if(T.isValidElement(r)){const f={ref:c};return T.cloneElement(r,f)}return P.jsx(T.Fragment,{children:r})}return P.jsx(T.Fragment,{children:a&&Lh.createPortal(r,a)})});function Cte(e){return tr("MuiPopper",e)}nr("MuiPopper",["root"]);const Ate=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Rte=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kte(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 Z2(e){return typeof e=="function"?e():e}function Tte(e){return e.nodeType!==void 0}const Dte=e=>{const{classes:t}=e;return dr({root:["root"]},Cte,t)},Pte={},Ote=T.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:x={},slots:y={},TransitionProps:v}=t,A=it(t,Ate),b=T.useRef(null),w=to(b,n),S=T.useRef(null),k=to(S,m),D=T.useRef(k);vi(()=>{D.current=k},[k]),T.useImperativeHandle(m,()=>S.current,[]);const E=kte(p,a),[L,I]=T.useState(E),[H,$]=T.useState(Z2(o));T.useEffect(()=>{S.current&&S.current.forceUpdate()}),T.useEffect(()=>{o&&$(Z2(o))},[o]),vi(()=>{if(!H||!f)return;const Q=J=>{I(J.placement)};let le=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Q(J)}}];c!=null&&(le=le.concat(c)),h&&h.modifiers!=null&&(le=le.concat(h.modifiers));const pe=_te(H,b.current,V({placement:E},h,{modifiers:le}));return D.current(pe),()=>{pe.destroy(),D.current(null)}},[H,u,c,f,h,E]);const Y={placement:L};v!==null&&(Y.TransitionProps=v);const se=Dte(t),K=(r=y.root)!=null?r:"div",q=cQ({elementType:K,externalSlotProps:x.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:se.root});return P.jsx(K,V({},q,{children:typeof i=="function"?i(Y):i}))}),Lte=T.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=Pte,popperRef:x,style:y,transition:v=!1,slotProps:A={},slots:b={}}=t,w=it(t,Rte),[S,k]=T.useState(!0),D=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!v||S))return null;let L;if(i)L=i;else if(r){const $=Z2(r);L=$&&Tte($)?j2($).body:j2(null).body}const I=!p&&c&&(!v||S)?"none":void 0,H=v?{in:p,onEnter:D,onExited:E}:void 0;return P.jsx(Ete,{disablePortal:u,container:L,children:P.jsx(Ote,V({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:v?!S:p,placement:h,popperOptions:m,popperRef:x,slotProps:A,slots:b},w,{style:V({position:"fixed",top:0,left:0,display:I},y),TransitionProps:H,children:o}))})}),Nte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Mte=It(Lte,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fT=T.forwardRef(function(t,n){var r;const o=eT(),i=Wn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:x,open:y,placement:v,popperOptions:A,popperRef:b,transition:w,slots:S,slotProps:k}=i,D=it(i,Nte),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:x,open:y,placement:v,popperOptions:A,popperRef:b,transition:w},D);return P.jsx(Mte,V({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),Bte=["onChange","maxRows","minRows","style","value"];function Zd(e){return parseInt(e,10)||0}const Ite={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $te(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Fte=T.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=it(t,Bte),{current:f}=T.useRef(u!=null),p=T.useRef(null),h=to(n,p),m=T.useRef(null),x=T.useRef(null),y=T.useCallback(()=>{const b=p.current,S=J3(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=x.current;k.style.width=S.width,k.value=b.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const D=S.boxSizing,E=Zd(S.paddingBottom)+Zd(S.paddingTop),L=Zd(S.borderBottomWidth)+Zd(S.borderTopWidth),I=k.scrollHeight;k.value="x";const H=k.scrollHeight;let $=I;i&&($=Math.max(Number(i)*H,$)),o&&($=Math.min(Number(o)*H,$)),$=Math.max($,H);const Y=$+(D==="border-box"?E+L:0),se=Math.abs($-I)<=1;return{outerHeightStyle:Y,overflowing:se}},[o,i,t.placeholder]),v=T.useCallback(()=>{const b=y();if($te(b))return;const w=b.outerHeightStyle,S=p.current;m.current!==w&&(m.current=w,S.style.height=`${w}px`),S.style.overflow=b.overflowing?"hidden":""},[y]);vi(()=>{const b=()=>{v()};let w;const S=qZ(b),k=p.current,D=J3(k);D.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(b),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(w),D.removeEventListener("resize",S),E&&E.disconnect()}},[y,v]),vi(()=>{v()});const A=b=>{f||v(),r&&r(b)};return P.jsxs(T.Fragment,{children:[P.jsx("textarea",V({value:u,onChange:A,ref:h,rows:i,style:a},c)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:V({},Ite.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function dT({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 Q0=T.createContext(void 0);function Sw(){return T.useContext(Q0)}function pT(e){return P.jsx(vZ,V({},e,{defaultTheme:fw,themeId:Zl}))}function DE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Q2(e,t=!1){return e&&(DE(e.value)&&e.value!==""||t&&DE(e.defaultValue)&&e.defaultValue!=="")}function Ute(e){return e.startAdornment}function zte(e){return tr("MuiInputBase",e)}const hh=nr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jte=["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"],hT=(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${Bt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},mT=(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]},Vte=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:x,type:y}=e,v={root:["root",`color${Bt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${Bt(m)}`,p&&"multiline",x&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return dr(v,zte,t)},gT=It("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hT})(({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",[`&.${hh.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%"})),vT=It("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mT})(({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] + .${hh.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},[`&.${hh.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"})}),Wte=P.jsx(pT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Hte=T.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:x,endAdornment:y,fullWidth:v=!1,id:A,inputComponent:b="input",inputProps:w={},inputRef:S,maxRows:k,minRows:D,multiline:E=!1,name:L,onBlur:I,onChange:H,onClick:$,onFocus:Y,onKeyDown:se,onKeyUp:K,placeholder:q,readOnly:Q,renderSuffix:le,rows:pe,slotProps:J={},slots:he={},startAdornment:re,type:me="text",value:U}=o,ue=it(o,jte),te=w.value!=null?w.value:U,{current:ve}=T.useRef(te!=null),de=T.useRef(),Ne=T.useCallback(He=>{},[]),Ce=to(de,S,w.ref,Ne),[ae,De]=T.useState(!1),Re=Sw(),Se=dT({props:o,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Se.focused=Re?Re.focused:ae,T.useEffect(()=>{!Re&&m&&ae&&(De(!1),I&&I())},[Re,m,ae,I]);const Ke=Re&&Re.onFilled,st=Re&&Re.onEmpty,ht=T.useCallback(He=>{Q2(He)?Ke&&Ke():st&&st()},[Ke,st]);vi(()=>{ve&&ht({value:te})},[te,ht,ve]);const _t=He=>{if(Se.disabled){He.stopPropagation();return}Y&&Y(He),w.onFocus&&w.onFocus(He),Re&&Re.onFocus?Re.onFocus(He):De(!0)},mt=He=>{I&&I(He),w.onBlur&&w.onBlur(He),Re&&Re.onBlur?Re.onBlur(He):De(!1)},Mn=(He,...Le)=>{if(!ve){const Xt=He.target||de.current;if(Xt==null)throw new Error(Ts(1));ht({value:Xt.value})}w.onChange&&w.onChange(He,...Le),H&&H(He,...Le)};T.useEffect(()=>{ht(de.current)},[]);const pr=He=>{de.current&&He.currentTarget===He.target&&de.current.focus(),$&&$(He)};let Ct=b,at=w;E&&Ct==="input"&&(pe?at=V({type:void 0,minRows:pe,maxRows:pe},at):at=V({type:void 0,maxRows:k,minRows:D},at),Ct=Fte);const un=He=>{ht(He.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};T.useEffect(()=>{Re&&Re.setAdornedStart(!!re)},[Re,re]);const cn=V({},o,{color:Se.color||"primary",disabled:Se.disabled,endAdornment:y,error:Se.error,focused:Se.focused,formControl:Re,fullWidth:v,hiddenLabel:Se.hiddenLabel,multiline:E,size:Se.size,startAdornment:re,type:me}),Ut=Vte(cn),At=he.root||f.Root||gT,An=J.root||p.root||{},nn=he.input||f.Input||vT;return at=V({},at,(r=J.input)!=null?r:p.input),P.jsxs(T.Fragment,{children:[!x&&Wte,P.jsxs(At,V({},An,!Qc(At)&&{ownerState:V({},cn,An.ownerState)},{ref:n,onClick:pr},ue,{className:gt(Ut.root,An.className,c,Q&&"MuiInputBase-readOnly"),children:[re,P.jsx(Q0.Provider,{value:null,children:P.jsx(nn,V({ownerState:cn,"aria-invalid":Se.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:Se.disabled,id:A,onAnimationStart:un,name:L,placeholder:q,readOnly:Q,required:Se.required,rows:pe,value:te,onKeyDown:se,onKeyUp:K,type:me},at,!Qc(nn)&&{as:Ct,ownerState:V({},cn,at.ownerState)},{ref:Ce,className:gt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:mt,onChange:Mn,onFocus:_t}))}),y,le?le(V({},Se,{startAdornment:re})):null]}))]})}),qte=Hte;function Gte(e){return tr("MuiOutlinedInput",e)}const ss=V({},hh,nr("MuiOutlinedInput",["root","notchedOutline","input"])),Kte=nr("MuiBox",["root"]),Yte=K0(),Ii=SZ({themeId:Zl,defaultTheme:Yte,defaultClassName:Kte.root,generateClassName:Pk.generate});function Xte(e){return tr("MuiButton",e)}const Qd=nr("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"]),Zte=T.createContext({}),Qte=T.createContext(void 0),Jte=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ene=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${Bt(t)}`,`size${Bt(o)}`,`${i}Size${Bt(o)}`,`color${Bt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Bt(o)}`],endIcon:["icon","endIcon",`iconSize${Bt(o)}`]},c=dr(u,Xte,a);return V({},a,c)},yT=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}}),tne=It(hw,{shouldForwardProp:e=>gu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Bt(n.color)}`],t[`size${Bt(n.size)}`],t[`${n.variant}Size${Bt(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})`:xr(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})`:xr(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})`:xr(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]}),[`&.${Qd.focusVisible}`]:V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qd.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 ${xr(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"},[`&.${Qd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qd.disabled}`]:{boxShadow:"none"}}),nne=It("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},yT(e))),rne=It("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},yT(e))),mh=T.forwardRef(function(t,n){const r=T.useContext(Zte),o=T.useContext(Qte),i=Zc(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:x=!1,endIcon:y,focusVisibleClassName:v,fullWidth:A=!1,size:b="medium",startIcon:w,type:S,variant:k="text"}=a,D=it(a,Jte),E=V({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:x,fullWidth:A,size:b,type:S,variant:k}),L=ene(E),I=w&&P.jsx(nne,{className:L.startIcon,ownerState:E,children:w}),H=y&&P.jsx(rne,{className:L.endIcon,ownerState:E,children:y}),$=o||"";return P.jsxs(tne,V({ownerState:E,className:gt(r.className,L.root,p,$),component:f,disabled:h,focusRipple:!x,focusVisibleClassName:gt(L.focusVisible,v),ref:n,type:S},D,{classes:L,children:[I,u,H]}))}),one=(e,t)=>V({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),ine=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}}),sne=(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:one(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:V({margin:0},ine(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 ane(e){const t=Wn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(T.Fragment,{children:[P.jsx(pT,{styles:o=>sne(o,r)}),n]})}function lne(e){return tr("MuiFormControl",e)}nr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const une=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],cne=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Bt(n)}`,r&&"fullWidth"]};return dr(o,lne,t)},fne=It("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>V({},t.root,t[`margin${Bt(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%"})),wT=T.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:x="none",required:y=!1,size:v="medium",variant:A="outlined"}=r,b=it(r,une),w=V({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:x,required:y,size:v,variant:A}),S=cne(w),[k,D]=T.useState(()=>{let K=!1;return o&&T.Children.forEach(o,q=>{if(!Ap(q,["Input","Select"]))return;const Q=Ap(q,["Select"])?q.props.input:q;Q&&Ute(Q.props)&&(K=!0)}),K}),[E,L]=T.useState(()=>{let K=!1;return o&&T.Children.forEach(o,q=>{Ap(q,["Input","Select"])&&(Q2(q.props,!0)||Q2(q.props.inputProps,!0))&&(K=!0)}),K}),[I,H]=T.useState(!1);c&&I&&H(!1);const $=p!==void 0&&!c?p:I;let Y;const se=T.useMemo(()=>({adornedStart:k,setAdornedStart:D,color:a,disabled:c,error:f,filled:E,focused:$,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{H(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{H(!0)},registerEffect:Y,required:y,variant:A}),[k,a,c,f,E,$,h,m,Y,y,v,A]);return P.jsx(Q0.Provider,{value:se,children:P.jsx(fne,V({as:u,ownerState:w,className:gt(S.root,i),ref:n},b,{children:o}))})}),xt=TQ({createStyledComponent:It("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Wn({props:e,name:"MuiStack"})}),dne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function J2(e){return`scale(${e}, ${e**2})`}const pne={entering:{opacity:1,transform:J2(1)},entered:{opacity:1,transform:"none"}},dv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),e1=T.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:x,style:y,timeout:v="auto",TransitionComponent:A=qi}=t,b=it(t,dne),w=Cl(),S=T.useRef(),k=Y0(),D=T.useRef(null),E=to(D,i.ref,n),L=Q=>le=>{if(Q){const pe=D.current;le===void 0?Q(pe):Q(pe,le)}},I=L(p),H=L((Q,le)=>{HJ(Q);const{duration:pe,delay:J,easing:he}=mE({style:y,timeout:v,easing:a},{mode:"enter"});let re;v==="auto"?(re=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=re):re=pe,Q.style.transition=[k.transitions.create("opacity",{duration:re,delay:J}),k.transitions.create("transform",{duration:dv?re:re*.666,delay:J,easing:he})].join(","),c&&c(Q,le)}),$=L(f),Y=L(x),se=L(Q=>{const{duration:le,delay:pe,easing:J}=mE({style:y,timeout:v,easing:a},{mode:"exit"});let he;v==="auto"?(he=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=he):he=le,Q.style.transition=[k.transitions.create("opacity",{duration:he,delay:pe}),k.transitions.create("transform",{duration:dv?he:he*.666,delay:dv?pe:pe||he*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=J2(.75),h&&h(Q)}),K=L(m),q=Q=>{v==="auto"&&w.start(S.current||0,Q),r&&r(D.current,Q)};return P.jsx(A,V({appear:o,in:u,nodeRef:D,onEnter:H,onEntered:$,onEntering:I,onExit:se,onExited:K,onExiting:Y,addEndListener:q,timeout:v==="auto"?null:v},b,{children:(Q,le)=>T.cloneElement(i,V({style:V({opacity:0,transform:J2(.75),visibility:Q==="exited"&&!u?"hidden":void 0},pne[Q],y,i.props.style),ref:E},le))}))});e1.muiSupportAuto=!0;function hne(e){return tr("MuiInputAdornment",e)}const PE=nr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var OE;const mne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Bt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vne=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${Bt(o)}`,a,r&&"hiddenLabel",i&&`size${Bt(i)}`]};return dr(u,hne,t)},yne=It("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gne})(({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"&&{[`&.${PE.positionStart}&:not(.${PE.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),wne=T.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,mne),m=Sw()||{};let x=p;p&&m.variant,m&&!x&&(x=m.variant);const y=V({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:x}),v=vne(y);return P.jsx(Q0.Provider,{value:null,children:P.jsx(yne,V({as:a,ownerState:y,className:gt(v.root,i),ref:n},h,{children:typeof o=="string"&&!c?P.jsx(Qn,{color:"text.secondary",children:o}):P.jsxs(T.Fragment,{children:[f==="start"?OE||(OE=P.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function xne(e){return tr("MuiLink",e)}const bne=nr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),xT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_ne=e=>xT[e]||e,Sne=({theme:e,ownerState:t})=>{const n=_ne(t.color),r=Jl(e,`palette.${n}`,!1)||t.color,o=Jl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xr(r,.4)},Ene=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Cne=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Bt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return dr(i,xne,t)},Ane=It(Qn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Bt(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:Sne({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"},[`&.${bne.focusVisible}`]:{outline:"auto"}})),gh=T.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,x=it(r,Ene),{isFocusVisibleRef:y,onBlur:v,onFocus:A,ref:b}=aw(),[w,S]=T.useState(!1),k=to(n,b),D=H=>{v(H),y.current===!1&&S(!1),u&&u(H)},E=H=>{A(H),y.current===!0&&S(!0),c&&c(H)},L=V({},r,{color:i,component:a,focusVisible:w,underline:p,variant:h}),I=Cne(L);return P.jsx(Ane,V({color:i,className:gt(I.root,o),classes:f,component:a,onBlur:D,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(xT).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},x))}),As=T.createContext({});function Rne(e){return tr("MuiList",e)}nr("MuiList",["root","padding","dense","subheader"]);const kne=["children","className","component","dense","disablePadding","subheader"],Tne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return dr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Rne,t)},Dne=It("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})),Ew=T.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,kne),h=T.useMemo(()=>({dense:u}),[u]),m=V({},r,{component:a,dense:u,disablePadding:c}),x=Tne(m);return P.jsx(As.Provider,{value:h,children:P.jsxs(Dne,V({as:a,className:gt(x.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function Pne(e){return tr("MuiListItem",e)}const al=nr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function One(e){return tr("MuiListItemButton",e)}const ll=nr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Lne=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Nne=(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]},Mne=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=dr({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},One,n);return V({},n,f)},Bne=It(hw,{shouldForwardProp:e=>gu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Nne})(({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})`:xr(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}))`:xr(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}))`:xr(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})`:xr(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})),Ine=T.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:x}=r,y=it(r,Lne),v=T.useContext(As),A=T.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:f}),[o,v.dense,c,f]),b=T.useRef(null);vi(()=>{i&&b.current&&b.current.focus()},[i]);const w=V({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=Mne(w),k=to(b,n);return P.jsx(As.Provider,{value:A,children:P.jsx(Bne,V({ref:k,href:y.href||y.to,component:(y.href||y.to)&&a==="div"?"button":a,focusVisibleClassName:gt(S.focusVisible,h),ownerState:w,className:gt(S.root,x)},y,{classes:S,children:u}))})});function $ne(e){return tr("MuiListItemSecondaryAction",e)}nr("MuiListItemSecondaryAction",["root","disableGutters"]);const Fne=["className"],Une=e=>{const{disableGutters:t,classes:n}=e;return dr({root:["root",t&&"disableGutters"]},$ne,n)},zne=It("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})),bT=T.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=it(r,Fne),a=T.useContext(As),u=V({},r,{disableGutters:a.disableGutters}),c=Une(u);return P.jsx(zne,V({className:gt(c.root,o),ownerState:u,ref:n},i))});bT.muiName="ListItemSecondaryAction";const jne=["className"],Vne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Wne=(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]},Hne=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return dr({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},Pne,r)},qne=It("div",{name:"MuiListItem",slot:"Root",overridesResolver:Wne})(({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})`:xr(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}))`:xr(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}))`:xr(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})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Gne=It("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Cw=T.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:x}={},dense:y=!1,disabled:v=!1,disableGutters:A=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:D=!1,slotProps:E={},slots:L={}}=r,I=it(r.ContainerProps,jne),H=it(r,Vne),$=T.useContext(As),Y=T.useMemo(()=>({dense:y||$.dense||!1,alignItems:o,disableGutters:A}),[o,$.dense,y,A]),se=T.useRef(null);vi(()=>{i&&se.current&&se.current.focus()},[i]);const K=T.Children.toArray(u),q=K.length&&Ap(K[K.length-1],["ListItemSecondaryAction"]),Q=V({},r,{alignItems:o,autoFocus:i,button:a,dense:Y.dense,disabled:v,disableGutters:A,disablePadding:b,divider:w,hasSecondaryAction:q,selected:D}),le=Hne(Q),pe=to(se,n),J=L.root||p.Root||qne,he=E.root||h.root||{},re=V({className:gt(le.root,he.className,c),disabled:v},H);let me=f||"li";return a&&(re.component=f||"div",re.focusVisibleClassName=gt(al.focusVisible,S),me=hw),q?(me=!re.component&&!f?"div":me,m==="li"&&(me==="li"?me="div":re.component==="li"&&(re.component="div")),P.jsx(As.Provider,{value:Y,children:P.jsxs(Gne,V({as:m,className:gt(le.container,x),ref:pe,ownerState:Q},I,{children:[P.jsx(J,V({},he,!Qc(J)&&{as:me,ownerState:V({},Q,he.ownerState)},re,{children:K})),K.pop()]}))})):P.jsx(As.Provider,{value:Y,children:P.jsxs(J,V({},he,{as:me,ref:pe},!Qc(J)&&{ownerState:V({},Q,he.ownerState)},re,{children:[K,k&&P.jsx(bT,{children:k})]}))})});function Kne(e){return tr("MuiListItemText",e)}const LE=nr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Yne=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Xne=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return dr({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Kne,t)},Zne=It("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${LE.primary}`]:t.primary},{[`& .${LE.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})),Qne=T.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,Yne),{dense:x}=T.useContext(As);let y=c??o,v=p;const A=V({},r,{disableTypography:a,inset:u,primary:!!y,secondary:!!v,dense:x}),b=Xne(A);return y!=null&&y.type!==Qn&&!a&&(y=P.jsx(Qn,V({variant:x?"body2":"body1",className:b.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:y}))),v!=null&&v.type!==Qn&&!a&&(v=P.jsx(Qn,V({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},h,{children:v}))),P.jsxs(Zne,V({className:gt(b.root,i),ownerState:A,ref:n},m,{children:[y,v]}))});var NE;const Jne=["children","classes","className","label","notched"],ere=It("fieldset",{shouldForwardProp:gu})({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%"}),tre=It("legend",{shouldForwardProp:gu})(({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 nre(e){const{className:t,label:n,notched:r}=e,o=it(e,Jne),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return P.jsx(ere,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:P.jsx(tre,{ownerState:a,children:i?P.jsx("span",{children:n}):NE||(NE=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const rre=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ore=e=>{const{classes:t}=e,r=dr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Gte,t);return V({},t,r)},ire=It(gT,{shouldForwardProp:e=>gu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:hT})(({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"}))}),sre=It(nre,{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}}),are=It(vT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:mT})(({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})),Aw=T.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:x=!1,notched:y,slots:v={},type:A="text"}=c,b=it(c,rre),w=ore(c),S=Sw(),k=dT({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=V({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:x,size:k.size,type:A}),E=(r=(o=v.root)!=null?o:f.Root)!=null?r:ire,L=(i=(a=v.input)!=null?a:f.Input)!=null?i:are;return P.jsx(qte,V({slots:{root:E,input:L},renderSuffix:I=>P.jsx(sre,{ownerState:D,className:w.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=P.jsxs(T.Fragment,{children:[m," ","*"]})):m,notched:typeof y<"u"?y:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:p,inputComponent:h,multiline:x,ref:n,type:A},b,{classes:V({},w,{notchedOutline:null})}))});Aw.muiName="Input";function lre(e){return tr("MuiTooltip",e)}const vs=nr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ure=["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 cre(e){return Math.round(e*1e5)/1e5}const fre=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${Bt(i.split("-")[0])}`],arrow:["arrow"]};return dr(a,lre,t)},dre=It(fT,{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"}})})),pre=It("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${Bt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xr(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:`${cre(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"})})),hre=It("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:xr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Jd=!1;const ME=new Cf;let ec={x:0,y:0};function ep(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Bl=T.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,x,y,v,A,b,w,S,k,D;const E=Wn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:I,components:H={},componentsProps:$={},describeChild:Y=!1,disableFocusListener:se=!1,disableHoverListener:K=!1,disableInteractive:q=!1,disableTouchListener:Q=!1,enterDelay:le=100,enterNextDelay:pe=0,enterTouchDelay:J=700,followCursor:he=!1,id:re,leaveDelay:me=0,leaveTouchDelay:U=1500,onClose:ue,onOpen:te,open:ve,placement:de="bottom",PopperComponent:Ne,PopperProps:Ce={},slotProps:ae={},slots:De={},title:Re,TransitionComponent:Se=e1,TransitionProps:Ke}=E,st=it(E,ure),ht=T.isValidElement(I)?I:P.jsx("span",{children:I}),_t=Y0(),mt=vQ(),[Mn,pr]=T.useState(),[Ct,at]=T.useState(null),un=T.useRef(!1),cn=q||he,Ut=Cl(),At=Cl(),An=Cl(),nn=Cl(),[He,Le]=YZ({controlled:ve,default:!1,name:"Tooltip",state:"open"});let Xt=He;const rr=KZ(re),Hn=T.useRef(),Rn=El(()=>{Hn.current!==void 0&&(document.body.style.WebkitUserSelect=Hn.current,Hn.current=void 0),nn.clear()});T.useEffect(()=>Rn,[Rn]);const Io=Ae=>{ME.clear(),Jd=!0,Le(!0),te&&!Xt&&te(Ae)},W=El(Ae=>{ME.start(800+me,()=>{Jd=!1}),Le(!1),ue&&Xt&&ue(Ae),Ut.start(_t.transitions.duration.shortest,()=>{un.current=!1})}),F=Ae=>{un.current&&Ae.type!=="touchstart"||(Mn&&Mn.removeAttribute("title"),At.clear(),An.clear(),le||Jd&&pe?At.start(Jd?pe:le,()=>{Io(Ae)}):Io(Ae))},ce=Ae=>{At.clear(),An.start(me,()=>{W(Ae)})},{isFocusVisibleRef:xe,onBlur:we,onFocus:Ee,ref:Ue}=aw(),[,Be]=T.useState(!1),$e=Ae=>{we(Ae),xe.current===!1&&(Be(!1),ce(Ae))},Ge=Ae=>{Mn||pr(Ae.currentTarget),Ee(Ae),xe.current===!0&&(Be(!0),F(Ae))},St=Ae=>{un.current=!0;const yt=ht.props;yt.onTouchStart&&yt.onTouchStart(Ae)},kn=Ae=>{St(Ae),An.clear(),Ut.clear(),Rn(),Hn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=Hn.current,F(Ae)})},zt=Ae=>{ht.props.onTouchEnd&&ht.props.onTouchEnd(Ae),Rn(),An.start(U,()=>{W(Ae)})};T.useEffect(()=>{if(!Xt)return;function Ae(yt){(yt.key==="Escape"||yt.key==="Esc")&&W(yt)}return document.addEventListener("keydown",Ae),()=>{document.removeEventListener("keydown",Ae)}},[W,Xt]);const Tn=to(ht.ref,Ue,pr,n);!Re&&Re!==0&&(Xt=!1);const fn=T.useRef(),so=Ae=>{const yt=ht.props;yt.onMouseMove&&yt.onMouseMove(Ae),ec={x:Ae.clientX,y:Ae.clientY},fn.current&&fn.current.update()},or={},N=typeof Re=="string";Y?(or.title=!Xt&&N&&!K?Re:null,or["aria-describedby"]=Xt?rr:null):(or["aria-label"]=N?Re:null,or["aria-labelledby"]=Xt&&!N?rr:null);const B=V({},or,st,ht.props,{className:gt(st.className,ht.props.className),onTouchStart:St,ref:Tn},he?{onMouseMove:so}:{}),G={};Q||(B.onTouchStart=kn,B.onTouchEnd=zt),K||(B.onMouseOver=ep(F,B.onMouseOver),B.onMouseLeave=ep(ce,B.onMouseLeave),cn||(G.onMouseOver=F,G.onMouseLeave=ce)),se||(B.onFocus=ep(Ge,B.onFocus),B.onBlur=ep($e,B.onBlur),cn||(G.onFocus=Ge,G.onBlur=$e));const ne=T.useMemo(()=>{var Ae;let yt=[{name:"arrow",enabled:!!Ct,options:{element:Ct,padding:4}}];return(Ae=Ce.popperOptions)!=null&&Ae.modifiers&&(yt=yt.concat(Ce.popperOptions.modifiers)),V({},Ce.popperOptions,{modifiers:yt})},[Ct,Ce]),be=V({},E,{isRtl:mt,arrow:L,disableInteractive:cn,placement:de,PopperComponentProp:Ne,touch:un.current}),Oe=fre(be),ze=(r=(o=De.popper)!=null?o:H.Popper)!=null?r:dre,ye=(i=(a=(u=De.transition)!=null?u:H.Transition)!=null?a:Se)!=null?i:e1,qe=(c=(f=De.tooltip)!=null?f:H.Tooltip)!=null?c:pre,Ie=(p=(h=De.arrow)!=null?h:H.Arrow)!=null?p:hre,Fe=lc(ze,V({},Ce,(m=ae.popper)!=null?m:$.popper,{className:gt(Oe.popper,Ce==null?void 0:Ce.className,(x=(y=ae.popper)!=null?y:$.popper)==null?void 0:x.className)}),be),Et=lc(ye,V({},Ke,(v=ae.transition)!=null?v:$.transition),be),vt=lc(qe,V({},(A=ae.tooltip)!=null?A:$.tooltip,{className:gt(Oe.tooltip,(b=(w=ae.tooltip)!=null?w:$.tooltip)==null?void 0:b.className)}),be),Rt=lc(Ie,V({},(S=ae.arrow)!=null?S:$.arrow,{className:gt(Oe.arrow,(k=(D=ae.arrow)!=null?D:$.arrow)==null?void 0:k.className)}),be);return P.jsxs(T.Fragment,{children:[T.cloneElement(ht,B),P.jsx(ze,V({as:Ne??fT,placement:de,anchorEl:he?{getBoundingClientRect:()=>({top:ec.y,left:ec.x,right:ec.x,bottom:ec.y,width:0,height:0})}:Mn,popperRef:fn,open:Mn?Xt:!1,id:rr,transition:!0},G,Fe,{popperOptions:ne,children:({TransitionProps:Ae})=>P.jsx(ye,V({timeout:_t.transitions.duration.shorter},Ae,Et,{children:P.jsxs(qe,V({},vt,{children:[Re,L?P.jsx(Ie,V({},Rt,{ref:at})):null]}))}))}))]})}),mre=La` +`),xo.rippleVisible,YJ,K2,({theme:e})=>e.transitions.easing.easeInOut,xo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xo.child,xo.childLeaving,XJ,K2,({theme:e})=>e.transitions.easing.easeInOut,xo.childPulsate,ZJ,({theme:e})=>e.transitions.easing.easeInOut),eee=T.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=it(r,GJ),[c,f]=T.useState([]),p=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=T.useRef(!1),x=Cl(),y=T.useRef(null),v=T.useRef(null),A=T.useCallback(k=>{const{pulsate:D,rippleX:E,rippleY:L,rippleSize:I,cb:H}=k;f($=>[...$,P.jsx(JJ,{classes:{ripple:gt(i.ripple,xo.ripple),rippleVisible:gt(i.rippleVisible,xo.rippleVisible),ripplePulsate:gt(i.ripplePulsate,xo.ripplePulsate),child:gt(i.child,xo.child),childLeaving:gt(i.childLeaving,xo.childLeaving),childPulsate:gt(i.childPulsate,xo.childPulsate)},timeout:K2,pulsate:D,rippleX:E,rippleY:L,rippleSize:I},p.current)]),p.current+=1,h.current=H},[i]),b=T.useCallback((k={},D={},E=()=>{})=>{const{pulsate:L=!1,center:I=o||D.pulsate,fakeElement:H=!1}=D;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 $=H?null:v.current,Y=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,K,q;if(I||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)se=Math.round(Y.width/2),K=Math.round(Y.height/2);else{const{clientX:Q,clientY:le}=k.touches&&k.touches.length>0?k.touches[0]:k;se=Math.round(Q-Y.left),K=Math.round(le-Y.top)}if(I)q=Math.sqrt((2*Y.width**2+Y.height**2)/3),q%2===0&&(q+=1);else{const Q=Math.max(Math.abs(($?$.clientWidth:0)-se),se)*2+2,le=Math.max(Math.abs(($?$.clientHeight:0)-K),K)*2+2;q=Math.sqrt(Q**2+le**2)}k!=null&&k.touches?y.current===null&&(y.current=()=>{A({pulsate:L,rippleX:se,rippleY:K,rippleSize:q,cb:E})},x.start(KJ,()=>{y.current&&(y.current(),y.current=null)})):A({pulsate:L,rippleX:se,rippleY:K,rippleSize:q,cb:E})},[o,A,x]),w=T.useCallback(()=>{b({},{pulsate:!0})},[b]),S=T.useCallback((k,D)=>{if(x.clear(),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,x.start(0,()=>{S(k,D)});return}y.current=null,f(E=>E.length>0?E.slice(1):E),h.current=D},[x]);return T.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),P.jsx(QJ,V({className:gt(xo.root,i.root,a),ref:v},u,{children:P.jsx(pw,{component:null,exit:!0,children:c})}))});function tee(e){return tr("MuiButtonBase",e)}const nee=nr("MuiButtonBase",["root","disabled","focusVisible"]),ree=["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"],oee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=dr({root:["root",t&&"disabled",n&&"focusVisible"]},tee,o);return n&&r&&(a.root+=` ${r}`),a},iee=It("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"},[`&.${nee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hw=T.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:x="a",onBlur:y,onClick:v,onContextMenu:A,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:D,onMouseDown:E,onMouseLeave:L,onMouseUp:I,onTouchEnd:H,onTouchMove:$,onTouchStart:Y,tabIndex:se=0,TouchRippleProps:K,touchRippleRef:q,type:Q}=r,le=it(r,ree),pe=T.useRef(null),J=T.useRef(null),he=to(J,q),{isFocusVisibleRef:re,onFocus:me,onBlur:U,ref:ue}=aw(),[te,ye]=T.useState(!1);f&&te&&ye(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{ye(!0),pe.current.focus()}}),[]);const[de,Le]=T.useState(!1);T.useEffect(()=>{Le(!0)},[]);const ge=de&&!p&&!f;T.useEffect(()=>{te&&m&&!p&&de&&J.current.pulsate()},[p,m,te,de]);function ae(Oe,Xt,rr=h){return El(Hn=>(Xt&&Xt(Hn),!rr&&J.current&&J.current[Oe](Hn),!0))}const je=ae("start",E),Te=ae("stop",A),Ae=ae("stop",b),Ke=ae("stop",I),st=ae("stop",Oe=>{te&&Oe.preventDefault(),L&&L(Oe)}),ht=ae("start",Y),_t=ae("stop",H),mt=ae("stop",$),Mn=ae("stop",Oe=>{U(Oe),re.current===!1&&ye(!1),y&&y(Oe)},!1),pr=El(Oe=>{pe.current||(pe.current=Oe.currentTarget),me(Oe),re.current===!0&&(ye(!0),S&&S(Oe)),w&&w(Oe)}),Ct=()=>{const Oe=pe.current;return c&&c!=="button"&&!(Oe.tagName==="A"&&Oe.href)},at=T.useRef(!1),un=El(Oe=>{m&&!at.current&&te&&J.current&&Oe.key===" "&&(at.current=!0,J.current.stop(Oe,()=>{J.current.start(Oe)})),Oe.target===Oe.currentTarget&&Ct()&&Oe.key===" "&&Oe.preventDefault(),k&&k(Oe),Oe.target===Oe.currentTarget&&Ct()&&Oe.key==="Enter"&&!f&&(Oe.preventDefault(),v&&v(Oe))}),cn=El(Oe=>{m&&Oe.key===" "&&J.current&&te&&!Oe.defaultPrevented&&(at.current=!1,J.current.stop(Oe,()=>{J.current.pulsate(Oe)})),D&&D(Oe),v&&Oe.target===Oe.currentTarget&&Ct()&&Oe.key===" "&&!Oe.defaultPrevented&&v(Oe)});let Ut=c;Ut==="button"&&(le.href||le.to)&&(Ut=x);const At={};Ut==="button"?(At.type=Q===void 0?"button":Q,At.disabled=f):(!le.href&&!le.to&&(At.role="button"),f&&(At["aria-disabled"]=f));const An=to(n,ue,pe),nn=V({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:se,focusVisible:te}),He=oee(nn);return P.jsxs(iee,V({as:Ut,className:gt(He.root,u),ownerState:nn,onBlur:Mn,onClick:v,onContextMenu:Te,onFocus:pr,onKeyDown:un,onKeyUp:cn,onMouseDown:je,onMouseLeave:st,onMouseUp:Ke,onDragLeave:Ae,onTouchEnd:_t,onTouchMove:mt,onTouchStart:ht,ref:An,tabIndex:f?-1:se,type:Q},At,le,{children:[a,ge?P.jsx(eee,V({ref:he,center:i},K)):null]}))});function see(e){return tr("MuiTypography",e)}nr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lee=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${Bt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return dr(u,see,a)},uee=It("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${Bt(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})),xE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fee=e=>cee[e]||e,Qn=T.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTypography"}),o=fee(r.color),i=B0(V({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:x=xE}=i,y=it(i,aee),v=V({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:x}),A=c||(h?"p":x[m]||xE[m])||"span",b=lee(v);return P.jsx(uee,V({as:A,ref:n,ownerState:v,className:gt(b.root,u)},y))});var mw={};Object.defineProperty(mw,"__esModule",{value:!0});var eT=mw.default=void 0,dee=hee(T),pee=Zk;function tT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tT=function(r){return r?n:t})(e)}function hee(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tT(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 mee(e){return Object.keys(e).length===0}function gee(e=null){const t=dee.useContext(pee.ThemeContext);return!t||mee(t)?e:t}eT=mw.default=gee;var Ir="top",Lo="bottom",No="right",$r="left",gw="auto",Rf=[Ir,Lo,No,$r],eu="start",Jc="end",vee="clippingParents",nT="viewport",Ju="popper",yee="reference",bE=Rf.reduce(function(e,t){return e.concat([t+"-"+eu,t+"-"+Jc])},[]),rT=[].concat(Rf,[gw]).reduce(function(e,t){return e.concat([t,t+"-"+eu,t+"-"+Jc])},[]),wee="beforeRead",xee="read",bee="afterRead",_ee="beforeMain",See="main",Eee="afterMain",Cee="beforeWrite",Aee="write",Ree="afterWrite",kee=[wee,xee,bee,_ee,See,Eee,Cee,Aee,Ree];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 vw(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tee(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 Dee(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 Pee={name:"applyStyles",enabled:!0,phase:"write",fn:Tee,effect:Dee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ma=Math.max,ph=Math.min,tu=Math.round;function Y2(){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 oT(){return!/^((?!chrome|android).)*safari/i.test(Y2())}function nu(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&&tu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&tu(r.height)/e.offsetHeight||1);var a=Ca(e)?no(e):window,u=a.visualViewport,c=!oT()&&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 yw(e){var t=nu(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 iT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vw(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 Oee(e){return["table","td","th"].indexOf(yi(e))>=0}function $s(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Z0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(vw(e)?e.host:null)||$s(e)}function _E(e){return!To(e)||ji(e).position==="fixed"?null:e.offsetParent}function Lee(e){var t=/firefox/i.test(Y2()),n=/Trident/i.test(Y2());if(n&&To(e)){var r=ji(e);if(r.position==="fixed")return null}var o=Z0(e);for(vw(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=_E(e);n&&Oee(n)&&ji(n).position==="static";)n=_E(n);return n&&(yi(n)==="html"||yi(n)==="body"&&ji(n).position==="static")?t:n||Lee(e)||t}function ww(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sc(e,t,n){return ma(e,ph(t,n))}function Nee(e,t,n){var r=Sc(e,t,n);return r>n?n:r}function sT(){return{top:0,right:0,bottom:0,left:0}}function aT(e){return Object.assign({},sT(),e)}function lT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Mee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aT(typeof t!="number"?t:lT(t,Rf))};function Bee(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=ww(u),f=[$r,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=Mee(o.padding,n),m=yw(i),x=c==="y"?Ir:$r,y=c==="y"?Lo:No,v=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],b=kf(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,S=v/2-A/2,k=h[x],D=w-m[p]-h[y],E=w/2-m[p]/2+S,L=Sc(k,E,D),I=c;n.modifiersData[r]=(t={},t[I]=L,t.centerOffset=L-E,t)}}function Iee(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)||iT(t.elements.popper,o)&&(t.elements.arrow=o))}const $ee={name:"arrow",enabled:!0,phase:"main",fn:Bee,effect:Iee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ru(e){return e.split("-")[1]}var Fee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:tu(n*o)/o||0,y:tu(r*o)/o||0}}function SE(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,x=m===void 0?0:m,y=a.y,v=y===void 0?0:y,A=typeof p=="function"?p({x,y:v}):{x,y:v};x=A.x,v=A.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=$r,k=Ir,D=window;if(f){var E=kf(n),L="clientHeight",I="clientWidth";if(E===no(n)&&(E=$s(n),ji(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",I="scrollWidth")),E=E,o===Ir||(o===$r||o===No)&&i===Jc){k=Lo;var H=h&&E===D&&D.visualViewport?D.visualViewport.height:E[L];v-=H-r.height,v*=c?1:-1}if(o===$r||(o===Ir||o===Lo)&&i===Jc){S=No;var $=h&&E===D&&D.visualViewport?D.visualViewport.width:E[I];x-=$-r.width,x*=c?1:-1}}var Y=Object.assign({position:u},f&&Fee),se=p===!0?Uee({x,y:v},no(n)):{x,y:v};if(x=se.x,v=se.y,c){var K;return Object.assign({},Y,(K={},K[k]=w?"0":"",K[S]=b?"0":"",K.transform=(D.devicePixelRatio||1)<=1?"translate("+x+"px, "+v+"px)":"translate3d("+x+"px, "+v+"px, 0)",K))}return Object.assign({},Y,(t={},t[k]=w?v+"px":"",t[S]=b?x+"px":"",t.transform="",t))}function zee(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:ru(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,SE(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,SE(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 jee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zee,data:{}};var Xd={passive:!0};function Vee(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,Xd)}),u&&c.addEventListener("resize",n.update,Xd),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xd)}),u&&c.removeEventListener("resize",n.update,Xd)}}const Wee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vee,data:{}};var Hee={left:"right",right:"left",bottom:"top",top:"bottom"};function Tp(e){return e.replace(/left|right|bottom|top/g,function(t){return Hee[t]})}var qee={start:"end",end:"start"};function EE(e){return e.replace(/start|end/g,function(t){return qee[t]})}function xw(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function bw(e){return nu($s(e)).left+xw(e).scrollLeft}function Gee(e,t){var n=no(e),r=$s(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var f=oT();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+bw(e),y:c}}function Kee(e){var t,n=$s(e),r=xw(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+bw(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 _w(e){var t=ji(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uT(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&_w(e)?e:uT(Z0(e))}function Ec(e,t){var n;t===void 0&&(t=[]);var r=uT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],_w(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Ec(Z0(a)))}function X2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yee(e,t){var n=nu(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 CE(e,t,n){return t===nT?X2(Gee(e,n)):Ca(t)?Yee(t,n):X2(Kee($s(e)))}function Xee(e){var t=Ec(Z0(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)&&iT(o,r)&&yi(o)!=="body"}):[]}function Zee(e,t,n,r){var o=t==="clippingParents"?Xee(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=CE(e,f,r);return c.top=ma(p.top,c.top),c.right=ph(p.right,c.right),c.bottom=ph(p.bottom,c.bottom),c.left=ma(p.left,c.left),c},CE(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 cT(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?ru(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case Ir: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 $r:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?ww(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case eu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Jc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function ef(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?vee:u,f=n.rootBoundary,p=f===void 0?nT:f,h=n.elementContext,m=h===void 0?Ju:h,x=n.altBoundary,y=x===void 0?!1:x,v=n.padding,A=v===void 0?0:v,b=aT(typeof A!="number"?A:lT(A,Rf)),w=m===Ju?yee:Ju,S=e.rects.popper,k=e.elements[y?w:m],D=Zee(Ca(k)?k:k.contextElement||$s(e.elements.popper),c,p,a),E=nu(e.elements.reference),L=cT({reference:E,element:S,strategy:"absolute",placement:o}),I=X2(Object.assign({},S,L)),H=m===Ju?I:E,$={top:D.top-H.top+b.top,bottom:H.bottom-D.bottom+b.bottom,left:D.left-H.left+b.left,right:H.right-D.right+b.right},Y=e.modifiersData.offset;if(m===Ju&&Y){var se=Y[o];Object.keys($).forEach(function(K){var q=[No,Lo].indexOf(K)>=0?1:-1,Q=[Ir,Lo].indexOf(K)>=0?"y":"x";$[K]+=se[Q]*q})}return $}function Qee(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?rT:c,p=ru(r),h=p?u?bE:bE.filter(function(y){return ru(y)===p}):Rf,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var x=m.reduce(function(y,v){return y[v]=ef(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[mi(v)],y},{});return Object.keys(x).sort(function(y,v){return x[y]-x[v]})}function Jee(e){if(mi(e)===gw)return[];var t=Tp(e);return[EE(e),t,EE(t)]}function ete(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,x=n.flipVariations,y=x===void 0?!0:x,v=n.allowedAutoPlacements,A=t.options.placement,b=mi(A),w=b===A,S=c||(w||!y?[Tp(A)]:Jee(A)),k=[A].concat(S).reduce(function(te,ye){return te.concat(mi(ye)===gw?Qee(t,{placement:ye,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:v}):ye)},[]),D=t.rects.reference,E=t.rects.popper,L=new Map,I=!0,H=k[0],$=0;$=0,Q=q?"width":"height",le=ef(t,{placement:Y,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),pe=q?K?No:$r:K?Lo:Ir;D[Q]>E[Q]&&(pe=Tp(pe));var J=Tp(pe),he=[];if(i&&he.push(le[se]<=0),u&&he.push(le[pe]<=0,le[J]<=0),he.every(function(te){return te})){H=Y,I=!1;break}L.set(Y,he)}if(I)for(var re=y?3:1,me=function(ye){var de=k.find(function(Le){var ge=L.get(Le);if(ge)return ge.slice(0,ye).every(function(ae){return ae})});if(de)return H=de,"break"},U=re;U>0;U--){var ue=me(U);if(ue==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const tte={name:"flip",enabled:!0,phase:"main",fn:ete,requiresIfExists:["offset"],data:{_skip:!1}};function AE(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 RE(e){return[Ir,No,Lo,$r].some(function(t){return e[t]>=0})}function nte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ef(t,{elementContext:"reference"}),u=ef(t,{altBoundary:!0}),c=AE(a,r),f=AE(u,o,i),p=RE(c),h=RE(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 rte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nte};function ote(e,t,n){var r=mi(e),o=[$r,Ir].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,[$r,No].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function ite(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=rT.reduce(function(p,h){return p[h]=ote(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 ste={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ite};function ate(e){var t=e.state,n=e.name;t.modifiersData[n]=cT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lte={name:"popperOffsets",enabled:!0,phase:"read",fn:ate,data:{}};function ute(e){return e==="x"?"y":"x"}function cte(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,x=m===void 0?!0:m,y=n.tetherOffset,v=y===void 0?0:y,A=ef(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),b=mi(t.placement),w=ru(t.placement),S=!w,k=ww(b),D=ute(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,H=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(E){if(i){var K,q=k==="y"?Ir:$r,Q=k==="y"?Lo:No,le=k==="y"?"height":"width",pe=E[k],J=pe+A[q],he=pe-A[Q],re=x?-I[le]/2:0,me=w===eu?L[le]:I[le],U=w===eu?-I[le]:-L[le],ue=t.elements.arrow,te=x&&ue?yw(ue):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sT(),de=ye[q],Le=ye[Q],ge=Sc(0,L[le],te[le]),ae=S?L[le]/2-re-ge-de-$.mainAxis:me-ge-de-$.mainAxis,je=S?-L[le]/2+re+ge+Le+$.mainAxis:U+ge+Le+$.mainAxis,Te=t.elements.arrow&&kf(t.elements.arrow),Ae=Te?k==="y"?Te.clientTop||0:Te.clientLeft||0:0,Ke=(K=Y==null?void 0:Y[k])!=null?K:0,st=pe+ae-Ke-Ae,ht=pe+je-Ke,_t=Sc(x?ph(J,st):J,pe,x?ma(he,ht):he);E[k]=_t,se[k]=_t-pe}if(u){var mt,Mn=k==="x"?Ir:$r,pr=k==="x"?Lo:No,Ct=E[D],at=D==="y"?"height":"width",un=Ct+A[Mn],cn=Ct-A[pr],Ut=[Ir,$r].indexOf(b)!==-1,At=(mt=Y==null?void 0:Y[D])!=null?mt:0,An=Ut?un:Ct-L[at]-I[at]-At+$.altAxis,nn=Ut?Ct+L[at]+I[at]-At-$.altAxis:cn,He=x&&Ut?Nee(An,Ct,nn):Sc(x?An:un,Ct,x?nn:cn);E[D]=He,se[D]=He-Ct}t.modifiersData[r]=se}}const fte={name:"preventOverflow",enabled:!0,phase:"main",fn:cte,requiresIfExists:["offset"]};function dte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pte(e){return e===no(e)||!To(e)?xw(e):dte(e)}function hte(e){var t=e.getBoundingClientRect(),n=tu(t.width)/e.offsetWidth||1,r=tu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mte(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&hte(t),i=$s(t),a=nu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||_w(i))&&(u=pte(t)),To(t)?(c=nu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=bw(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function gte(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 vte(e){var t=gte(e);return kee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wte(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 kE={placement:"bottom",modifiers:[],strategy:"absolute"};function TE(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(Ste(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return V2(n,a),()=>{V2(n,null)}},[n,a,i]),i){if(T.isValidElement(r)){const f={ref:c};return T.cloneElement(r,f)}return P.jsx(T.Fragment,{children:r})}return P.jsx(T.Fragment,{children:a&&Lh.createPortal(r,a)})});function Cte(e){return tr("MuiPopper",e)}nr("MuiPopper",["root"]);const Ate=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Rte=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kte(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 Z2(e){return typeof e=="function"?e():e}function Tte(e){return e.nodeType!==void 0}const Dte=e=>{const{classes:t}=e;return dr({root:["root"]},Cte,t)},Pte={},Ote=T.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:x={},slots:y={},TransitionProps:v}=t,A=it(t,Ate),b=T.useRef(null),w=to(b,n),S=T.useRef(null),k=to(S,m),D=T.useRef(k);vi(()=>{D.current=k},[k]),T.useImperativeHandle(m,()=>S.current,[]);const E=kte(p,a),[L,I]=T.useState(E),[H,$]=T.useState(Z2(o));T.useEffect(()=>{S.current&&S.current.forceUpdate()}),T.useEffect(()=>{o&&$(Z2(o))},[o]),vi(()=>{if(!H||!f)return;const Q=J=>{I(J.placement)};let le=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Q(J)}}];c!=null&&(le=le.concat(c)),h&&h.modifiers!=null&&(le=le.concat(h.modifiers));const pe=_te(H,b.current,V({placement:E},h,{modifiers:le}));return D.current(pe),()=>{pe.destroy(),D.current(null)}},[H,u,c,f,h,E]);const Y={placement:L};v!==null&&(Y.TransitionProps=v);const se=Dte(t),K=(r=y.root)!=null?r:"div",q=cQ({elementType:K,externalSlotProps:x.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:se.root});return P.jsx(K,V({},q,{children:typeof i=="function"?i(Y):i}))}),Lte=T.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=Pte,popperRef:x,style:y,transition:v=!1,slotProps:A={},slots:b={}}=t,w=it(t,Rte),[S,k]=T.useState(!0),D=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!v||S))return null;let L;if(i)L=i;else if(r){const $=Z2(r);L=$&&Tte($)?j2($).body:j2(null).body}const I=!p&&c&&(!v||S)?"none":void 0,H=v?{in:p,onEnter:D,onExited:E}:void 0;return P.jsx(Ete,{disablePortal:u,container:L,children:P.jsx(Ote,V({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:v?!S:p,placement:h,popperOptions:m,popperRef:x,slotProps:A,slots:b},w,{style:V({position:"fixed",top:0,left:0,display:I},y),TransitionProps:H,children:o}))})}),Nte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Mte=It(Lte,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fT=T.forwardRef(function(t,n){var r;const o=eT(),i=Wn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:x,open:y,placement:v,popperOptions:A,popperRef:b,transition:w,slots:S,slotProps:k}=i,D=it(i,Nte),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:x,open:y,placement:v,popperOptions:A,popperRef:b,transition:w},D);return P.jsx(Mte,V({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),Bte=["onChange","maxRows","minRows","style","value"];function Zd(e){return parseInt(e,10)||0}const Ite={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $te(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Fte=T.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=it(t,Bte),{current:f}=T.useRef(u!=null),p=T.useRef(null),h=to(n,p),m=T.useRef(null),x=T.useRef(null),y=T.useCallback(()=>{const b=p.current,S=J3(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=x.current;k.style.width=S.width,k.value=b.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const D=S.boxSizing,E=Zd(S.paddingBottom)+Zd(S.paddingTop),L=Zd(S.borderBottomWidth)+Zd(S.borderTopWidth),I=k.scrollHeight;k.value="x";const H=k.scrollHeight;let $=I;i&&($=Math.max(Number(i)*H,$)),o&&($=Math.min(Number(o)*H,$)),$=Math.max($,H);const Y=$+(D==="border-box"?E+L:0),se=Math.abs($-I)<=1;return{outerHeightStyle:Y,overflowing:se}},[o,i,t.placeholder]),v=T.useCallback(()=>{const b=y();if($te(b))return;const w=b.outerHeightStyle,S=p.current;m.current!==w&&(m.current=w,S.style.height=`${w}px`),S.style.overflow=b.overflowing?"hidden":""},[y]);vi(()=>{const b=()=>{v()};let w;const S=qZ(b),k=p.current,D=J3(k);D.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(b),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(w),D.removeEventListener("resize",S),E&&E.disconnect()}},[y,v]),vi(()=>{v()});const A=b=>{f||v(),r&&r(b)};return P.jsxs(T.Fragment,{children:[P.jsx("textarea",V({value:u,onChange:A,ref:h,rows:i,style:a},c)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:V({},Ite.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function dT({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 Q0=T.createContext(void 0);function Sw(){return T.useContext(Q0)}function pT(e){return P.jsx(vZ,V({},e,{defaultTheme:fw,themeId:Zl}))}function DE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Q2(e,t=!1){return e&&(DE(e.value)&&e.value!==""||t&&DE(e.defaultValue)&&e.defaultValue!=="")}function Ute(e){return e.startAdornment}function zte(e){return tr("MuiInputBase",e)}const hh=nr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jte=["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"],hT=(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${Bt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},mT=(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]},Vte=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:x,type:y}=e,v={root:["root",`color${Bt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${Bt(m)}`,p&&"multiline",x&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return dr(v,zte,t)},gT=It("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hT})(({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",[`&.${hh.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%"})),vT=It("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mT})(({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] + .${hh.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},[`&.${hh.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"})}),Wte=P.jsx(pT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Hte=T.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:x,endAdornment:y,fullWidth:v=!1,id:A,inputComponent:b="input",inputProps:w={},inputRef:S,maxRows:k,minRows:D,multiline:E=!1,name:L,onBlur:I,onChange:H,onClick:$,onFocus:Y,onKeyDown:se,onKeyUp:K,placeholder:q,readOnly:Q,renderSuffix:le,rows:pe,slotProps:J={},slots:he={},startAdornment:re,type:me="text",value:U}=o,ue=it(o,jte),te=w.value!=null?w.value:U,{current:ye}=T.useRef(te!=null),de=T.useRef(),Le=T.useCallback(He=>{},[]),ge=to(de,S,w.ref,Le),[ae,je]=T.useState(!1),Te=Sw(),Ae=dT({props:o,muiFormControl:Te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ae.focused=Te?Te.focused:ae,T.useEffect(()=>{!Te&&m&&ae&&(je(!1),I&&I())},[Te,m,ae,I]);const Ke=Te&&Te.onFilled,st=Te&&Te.onEmpty,ht=T.useCallback(He=>{Q2(He)?Ke&&Ke():st&&st()},[Ke,st]);vi(()=>{ye&&ht({value:te})},[te,ht,ye]);const _t=He=>{if(Ae.disabled){He.stopPropagation();return}Y&&Y(He),w.onFocus&&w.onFocus(He),Te&&Te.onFocus?Te.onFocus(He):je(!0)},mt=He=>{I&&I(He),w.onBlur&&w.onBlur(He),Te&&Te.onBlur?Te.onBlur(He):je(!1)},Mn=(He,...Oe)=>{if(!ye){const Xt=He.target||de.current;if(Xt==null)throw new Error(Ts(1));ht({value:Xt.value})}w.onChange&&w.onChange(He,...Oe),H&&H(He,...Oe)};T.useEffect(()=>{ht(de.current)},[]);const pr=He=>{de.current&&He.currentTarget===He.target&&de.current.focus(),$&&$(He)};let Ct=b,at=w;E&&Ct==="input"&&(pe?at=V({type:void 0,minRows:pe,maxRows:pe},at):at=V({type:void 0,maxRows:k,minRows:D},at),Ct=Fte);const un=He=>{ht(He.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};T.useEffect(()=>{Te&&Te.setAdornedStart(!!re)},[Te,re]);const cn=V({},o,{color:Ae.color||"primary",disabled:Ae.disabled,endAdornment:y,error:Ae.error,focused:Ae.focused,formControl:Te,fullWidth:v,hiddenLabel:Ae.hiddenLabel,multiline:E,size:Ae.size,startAdornment:re,type:me}),Ut=Vte(cn),At=he.root||f.Root||gT,An=J.root||p.root||{},nn=he.input||f.Input||vT;return at=V({},at,(r=J.input)!=null?r:p.input),P.jsxs(T.Fragment,{children:[!x&&Wte,P.jsxs(At,V({},An,!Qc(At)&&{ownerState:V({},cn,An.ownerState)},{ref:n,onClick:pr},ue,{className:gt(Ut.root,An.className,c,Q&&"MuiInputBase-readOnly"),children:[re,P.jsx(Q0.Provider,{value:null,children:P.jsx(nn,V({ownerState:cn,"aria-invalid":Ae.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:Ae.disabled,id:A,onAnimationStart:un,name:L,placeholder:q,readOnly:Q,required:Ae.required,rows:pe,value:te,onKeyDown:se,onKeyUp:K,type:me},at,!Qc(nn)&&{as:Ct,ownerState:V({},cn,at.ownerState)},{ref:ge,className:gt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:mt,onChange:Mn,onFocus:_t}))}),y,le?le(V({},Ae,{startAdornment:re})):null]}))]})}),qte=Hte;function Gte(e){return tr("MuiOutlinedInput",e)}const ss=V({},hh,nr("MuiOutlinedInput",["root","notchedOutline","input"])),Kte=nr("MuiBox",["root"]),Yte=K0(),Ii=SZ({themeId:Zl,defaultTheme:Yte,defaultClassName:Kte.root,generateClassName:Pk.generate});function Xte(e){return tr("MuiButton",e)}const Qd=nr("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"]),Zte=T.createContext({}),Qte=T.createContext(void 0),Jte=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ene=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${Bt(t)}`,`size${Bt(o)}`,`${i}Size${Bt(o)}`,`color${Bt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Bt(o)}`],endIcon:["icon","endIcon",`iconSize${Bt(o)}`]},c=dr(u,Xte,a);return V({},a,c)},yT=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}}),tne=It(hw,{shouldForwardProp:e=>gu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Bt(n.color)}`],t[`size${Bt(n.size)}`],t[`${n.variant}Size${Bt(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})`:xr(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})`:xr(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})`:xr(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]}),[`&.${Qd.focusVisible}`]:V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qd.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 ${xr(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"},[`&.${Qd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qd.disabled}`]:{boxShadow:"none"}}),nne=It("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},yT(e))),rne=It("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},yT(e))),mh=T.forwardRef(function(t,n){const r=T.useContext(Zte),o=T.useContext(Qte),i=Zc(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:x=!1,endIcon:y,focusVisibleClassName:v,fullWidth:A=!1,size:b="medium",startIcon:w,type:S,variant:k="text"}=a,D=it(a,Jte),E=V({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:x,fullWidth:A,size:b,type:S,variant:k}),L=ene(E),I=w&&P.jsx(nne,{className:L.startIcon,ownerState:E,children:w}),H=y&&P.jsx(rne,{className:L.endIcon,ownerState:E,children:y}),$=o||"";return P.jsxs(tne,V({ownerState:E,className:gt(r.className,L.root,p,$),component:f,disabled:h,focusRipple:!x,focusVisibleClassName:gt(L.focusVisible,v),ref:n,type:S},D,{classes:L,children:[I,u,H]}))}),one=(e,t)=>V({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),ine=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}}),sne=(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:one(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:V({margin:0},ine(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 ane(e){const t=Wn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(T.Fragment,{children:[P.jsx(pT,{styles:o=>sne(o,r)}),n]})}function lne(e){return tr("MuiFormControl",e)}nr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const une=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],cne=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Bt(n)}`,r&&"fullWidth"]};return dr(o,lne,t)},fne=It("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>V({},t.root,t[`margin${Bt(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%"})),wT=T.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:x="none",required:y=!1,size:v="medium",variant:A="outlined"}=r,b=it(r,une),w=V({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:x,required:y,size:v,variant:A}),S=cne(w),[k,D]=T.useState(()=>{let K=!1;return o&&T.Children.forEach(o,q=>{if(!Ap(q,["Input","Select"]))return;const Q=Ap(q,["Select"])?q.props.input:q;Q&&Ute(Q.props)&&(K=!0)}),K}),[E,L]=T.useState(()=>{let K=!1;return o&&T.Children.forEach(o,q=>{Ap(q,["Input","Select"])&&(Q2(q.props,!0)||Q2(q.props.inputProps,!0))&&(K=!0)}),K}),[I,H]=T.useState(!1);c&&I&&H(!1);const $=p!==void 0&&!c?p:I;let Y;const se=T.useMemo(()=>({adornedStart:k,setAdornedStart:D,color:a,disabled:c,error:f,filled:E,focused:$,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{H(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{H(!0)},registerEffect:Y,required:y,variant:A}),[k,a,c,f,E,$,h,m,Y,y,v,A]);return P.jsx(Q0.Provider,{value:se,children:P.jsx(fne,V({as:u,ownerState:w,className:gt(S.root,i),ref:n},b,{children:o}))})}),xt=TQ({createStyledComponent:It("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Wn({props:e,name:"MuiStack"})}),dne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function J2(e){return`scale(${e}, ${e**2})`}const pne={entering:{opacity:1,transform:J2(1)},entered:{opacity:1,transform:"none"}},dv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),e1=T.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:x,style:y,timeout:v="auto",TransitionComponent:A=qi}=t,b=it(t,dne),w=Cl(),S=T.useRef(),k=Y0(),D=T.useRef(null),E=to(D,i.ref,n),L=Q=>le=>{if(Q){const pe=D.current;le===void 0?Q(pe):Q(pe,le)}},I=L(p),H=L((Q,le)=>{HJ(Q);const{duration:pe,delay:J,easing:he}=mE({style:y,timeout:v,easing:a},{mode:"enter"});let re;v==="auto"?(re=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=re):re=pe,Q.style.transition=[k.transitions.create("opacity",{duration:re,delay:J}),k.transitions.create("transform",{duration:dv?re:re*.666,delay:J,easing:he})].join(","),c&&c(Q,le)}),$=L(f),Y=L(x),se=L(Q=>{const{duration:le,delay:pe,easing:J}=mE({style:y,timeout:v,easing:a},{mode:"exit"});let he;v==="auto"?(he=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=he):he=le,Q.style.transition=[k.transitions.create("opacity",{duration:he,delay:pe}),k.transitions.create("transform",{duration:dv?he:he*.666,delay:dv?pe:pe||he*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=J2(.75),h&&h(Q)}),K=L(m),q=Q=>{v==="auto"&&w.start(S.current||0,Q),r&&r(D.current,Q)};return P.jsx(A,V({appear:o,in:u,nodeRef:D,onEnter:H,onEntered:$,onEntering:I,onExit:se,onExited:K,onExiting:Y,addEndListener:q,timeout:v==="auto"?null:v},b,{children:(Q,le)=>T.cloneElement(i,V({style:V({opacity:0,transform:J2(.75),visibility:Q==="exited"&&!u?"hidden":void 0},pne[Q],y,i.props.style),ref:E},le))}))});e1.muiSupportAuto=!0;function hne(e){return tr("MuiInputAdornment",e)}const PE=nr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var OE;const mne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Bt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vne=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${Bt(o)}`,a,r&&"hiddenLabel",i&&`size${Bt(i)}`]};return dr(u,hne,t)},yne=It("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gne})(({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"&&{[`&.${PE.positionStart}&:not(.${PE.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),wne=T.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,mne),m=Sw()||{};let x=p;p&&m.variant,m&&!x&&(x=m.variant);const y=V({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:x}),v=vne(y);return P.jsx(Q0.Provider,{value:null,children:P.jsx(yne,V({as:a,ownerState:y,className:gt(v.root,i),ref:n},h,{children:typeof o=="string"&&!c?P.jsx(Qn,{color:"text.secondary",children:o}):P.jsxs(T.Fragment,{children:[f==="start"?OE||(OE=P.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function xne(e){return tr("MuiLink",e)}const bne=nr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),xT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_ne=e=>xT[e]||e,Sne=({theme:e,ownerState:t})=>{const n=_ne(t.color),r=Jl(e,`palette.${n}`,!1)||t.color,o=Jl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xr(r,.4)},Ene=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Cne=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Bt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return dr(i,xne,t)},Ane=It(Qn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Bt(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:Sne({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"},[`&.${bne.focusVisible}`]:{outline:"auto"}})),gh=T.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,x=it(r,Ene),{isFocusVisibleRef:y,onBlur:v,onFocus:A,ref:b}=aw(),[w,S]=T.useState(!1),k=to(n,b),D=H=>{v(H),y.current===!1&&S(!1),u&&u(H)},E=H=>{A(H),y.current===!0&&S(!0),c&&c(H)},L=V({},r,{color:i,component:a,focusVisible:w,underline:p,variant:h}),I=Cne(L);return P.jsx(Ane,V({color:i,className:gt(I.root,o),classes:f,component:a,onBlur:D,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(xT).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},x))}),As=T.createContext({});function Rne(e){return tr("MuiList",e)}nr("MuiList",["root","padding","dense","subheader"]);const kne=["children","className","component","dense","disablePadding","subheader"],Tne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return dr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Rne,t)},Dne=It("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})),Ew=T.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,kne),h=T.useMemo(()=>({dense:u}),[u]),m=V({},r,{component:a,dense:u,disablePadding:c}),x=Tne(m);return P.jsx(As.Provider,{value:h,children:P.jsxs(Dne,V({as:a,className:gt(x.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function Pne(e){return tr("MuiListItem",e)}const al=nr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function One(e){return tr("MuiListItemButton",e)}const ll=nr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Lne=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Nne=(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]},Mne=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=dr({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},One,n);return V({},n,f)},Bne=It(hw,{shouldForwardProp:e=>gu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Nne})(({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})`:xr(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}))`:xr(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}))`:xr(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})`:xr(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})),Ine=T.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:x}=r,y=it(r,Lne),v=T.useContext(As),A=T.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:f}),[o,v.dense,c,f]),b=T.useRef(null);vi(()=>{i&&b.current&&b.current.focus()},[i]);const w=V({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=Mne(w),k=to(b,n);return P.jsx(As.Provider,{value:A,children:P.jsx(Bne,V({ref:k,href:y.href||y.to,component:(y.href||y.to)&&a==="div"?"button":a,focusVisibleClassName:gt(S.focusVisible,h),ownerState:w,className:gt(S.root,x)},y,{classes:S,children:u}))})});function $ne(e){return tr("MuiListItemSecondaryAction",e)}nr("MuiListItemSecondaryAction",["root","disableGutters"]);const Fne=["className"],Une=e=>{const{disableGutters:t,classes:n}=e;return dr({root:["root",t&&"disableGutters"]},$ne,n)},zne=It("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})),bT=T.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=it(r,Fne),a=T.useContext(As),u=V({},r,{disableGutters:a.disableGutters}),c=Une(u);return P.jsx(zne,V({className:gt(c.root,o),ownerState:u,ref:n},i))});bT.muiName="ListItemSecondaryAction";const jne=["className"],Vne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Wne=(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]},Hne=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return dr({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},Pne,r)},qne=It("div",{name:"MuiListItem",slot:"Root",overridesResolver:Wne})(({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})`:xr(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}))`:xr(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}))`:xr(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})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Gne=It("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Cw=T.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:x}={},dense:y=!1,disabled:v=!1,disableGutters:A=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:D=!1,slotProps:E={},slots:L={}}=r,I=it(r.ContainerProps,jne),H=it(r,Vne),$=T.useContext(As),Y=T.useMemo(()=>({dense:y||$.dense||!1,alignItems:o,disableGutters:A}),[o,$.dense,y,A]),se=T.useRef(null);vi(()=>{i&&se.current&&se.current.focus()},[i]);const K=T.Children.toArray(u),q=K.length&&Ap(K[K.length-1],["ListItemSecondaryAction"]),Q=V({},r,{alignItems:o,autoFocus:i,button:a,dense:Y.dense,disabled:v,disableGutters:A,disablePadding:b,divider:w,hasSecondaryAction:q,selected:D}),le=Hne(Q),pe=to(se,n),J=L.root||p.Root||qne,he=E.root||h.root||{},re=V({className:gt(le.root,he.className,c),disabled:v},H);let me=f||"li";return a&&(re.component=f||"div",re.focusVisibleClassName=gt(al.focusVisible,S),me=hw),q?(me=!re.component&&!f?"div":me,m==="li"&&(me==="li"?me="div":re.component==="li"&&(re.component="div")),P.jsx(As.Provider,{value:Y,children:P.jsxs(Gne,V({as:m,className:gt(le.container,x),ref:pe,ownerState:Q},I,{children:[P.jsx(J,V({},he,!Qc(J)&&{as:me,ownerState:V({},Q,he.ownerState)},re,{children:K})),K.pop()]}))})):P.jsx(As.Provider,{value:Y,children:P.jsxs(J,V({},he,{as:me,ref:pe},!Qc(J)&&{ownerState:V({},Q,he.ownerState)},re,{children:[K,k&&P.jsx(bT,{children:k})]}))})});function Kne(e){return tr("MuiListItemText",e)}const LE=nr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Yne=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Xne=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return dr({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Kne,t)},Zne=It("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${LE.primary}`]:t.primary},{[`& .${LE.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})),Qne=T.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,Yne),{dense:x}=T.useContext(As);let y=c??o,v=p;const A=V({},r,{disableTypography:a,inset:u,primary:!!y,secondary:!!v,dense:x}),b=Xne(A);return y!=null&&y.type!==Qn&&!a&&(y=P.jsx(Qn,V({variant:x?"body2":"body1",className:b.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:y}))),v!=null&&v.type!==Qn&&!a&&(v=P.jsx(Qn,V({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},h,{children:v}))),P.jsxs(Zne,V({className:gt(b.root,i),ownerState:A,ref:n},m,{children:[y,v]}))});var NE;const Jne=["children","classes","className","label","notched"],ere=It("fieldset",{shouldForwardProp:gu})({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%"}),tre=It("legend",{shouldForwardProp:gu})(({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 nre(e){const{className:t,label:n,notched:r}=e,o=it(e,Jne),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return P.jsx(ere,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:P.jsx(tre,{ownerState:a,children:i?P.jsx("span",{children:n}):NE||(NE=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const rre=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ore=e=>{const{classes:t}=e,r=dr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Gte,t);return V({},t,r)},ire=It(gT,{shouldForwardProp:e=>gu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:hT})(({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"}))}),sre=It(nre,{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}}),are=It(vT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:mT})(({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})),Aw=T.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:x=!1,notched:y,slots:v={},type:A="text"}=c,b=it(c,rre),w=ore(c),S=Sw(),k=dT({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=V({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:x,size:k.size,type:A}),E=(r=(o=v.root)!=null?o:f.Root)!=null?r:ire,L=(i=(a=v.input)!=null?a:f.Input)!=null?i:are;return P.jsx(qte,V({slots:{root:E,input:L},renderSuffix:I=>P.jsx(sre,{ownerState:D,className:w.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=P.jsxs(T.Fragment,{children:[m," ","*"]})):m,notched:typeof y<"u"?y:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:p,inputComponent:h,multiline:x,ref:n,type:A},b,{classes:V({},w,{notchedOutline:null})}))});Aw.muiName="Input";function lre(e){return tr("MuiTooltip",e)}const vs=nr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ure=["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 cre(e){return Math.round(e*1e5)/1e5}const fre=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${Bt(i.split("-")[0])}`],arrow:["arrow"]};return dr(a,lre,t)},dre=It(fT,{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"}})})),pre=It("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${Bt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xr(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:`${cre(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"})})),hre=It("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:xr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Jd=!1;const ME=new Cf;let ec={x:0,y:0};function ep(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Bl=T.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,x,y,v,A,b,w,S,k,D;const E=Wn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:I,components:H={},componentsProps:$={},describeChild:Y=!1,disableFocusListener:se=!1,disableHoverListener:K=!1,disableInteractive:q=!1,disableTouchListener:Q=!1,enterDelay:le=100,enterNextDelay:pe=0,enterTouchDelay:J=700,followCursor:he=!1,id:re,leaveDelay:me=0,leaveTouchDelay:U=1500,onClose:ue,onOpen:te,open:ye,placement:de="bottom",PopperComponent:Le,PopperProps:ge={},slotProps:ae={},slots:je={},title:Te,TransitionComponent:Ae=e1,TransitionProps:Ke}=E,st=it(E,ure),ht=T.isValidElement(I)?I:P.jsx("span",{children:I}),_t=Y0(),mt=vQ(),[Mn,pr]=T.useState(),[Ct,at]=T.useState(null),un=T.useRef(!1),cn=q||he,Ut=Cl(),At=Cl(),An=Cl(),nn=Cl(),[He,Oe]=YZ({controlled:ye,default:!1,name:"Tooltip",state:"open"});let Xt=He;const rr=KZ(re),Hn=T.useRef(),Rn=El(()=>{Hn.current!==void 0&&(document.body.style.WebkitUserSelect=Hn.current,Hn.current=void 0),nn.clear()});T.useEffect(()=>Rn,[Rn]);const Io=Ce=>{ME.clear(),Jd=!0,Oe(!0),te&&!Xt&&te(Ce)},W=El(Ce=>{ME.start(800+me,()=>{Jd=!1}),Oe(!1),ue&&Xt&&ue(Ce),Ut.start(_t.transitions.duration.shortest,()=>{un.current=!1})}),F=Ce=>{un.current&&Ce.type!=="touchstart"||(Mn&&Mn.removeAttribute("title"),At.clear(),An.clear(),le||Jd&&pe?At.start(Jd?pe:le,()=>{Io(Ce)}):Io(Ce))},ce=Ce=>{At.clear(),An.start(me,()=>{W(Ce)})},{isFocusVisibleRef:be,onBlur:xe,onFocus:Ee,ref:Fe}=aw(),[,Me]=T.useState(!1),Ie=Ce=>{xe(Ce),be.current===!1&&(Me(!1),ce(Ce))},Ge=Ce=>{Mn||pr(Ce.currentTarget),Ee(Ce),be.current===!0&&(Me(!0),F(Ce))},St=Ce=>{un.current=!0;const yt=ht.props;yt.onTouchStart&&yt.onTouchStart(Ce)},kn=Ce=>{St(Ce),An.clear(),Ut.clear(),Rn(),Hn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=Hn.current,F(Ce)})},zt=Ce=>{ht.props.onTouchEnd&&ht.props.onTouchEnd(Ce),Rn(),An.start(U,()=>{W(Ce)})};T.useEffect(()=>{if(!Xt)return;function Ce(yt){(yt.key==="Escape"||yt.key==="Esc")&&W(yt)}return document.addEventListener("keydown",Ce),()=>{document.removeEventListener("keydown",Ce)}},[W,Xt]);const Tn=to(ht.ref,Fe,pr,n);!Te&&Te!==0&&(Xt=!1);const fn=T.useRef(),so=Ce=>{const yt=ht.props;yt.onMouseMove&&yt.onMouseMove(Ce),ec={x:Ce.clientX,y:Ce.clientY},fn.current&&fn.current.update()},or={},N=typeof Te=="string";Y?(or.title=!Xt&&N&&!K?Te:null,or["aria-describedby"]=Xt?rr:null):(or["aria-label"]=N?Te:null,or["aria-labelledby"]=Xt&&!N?rr:null);const B=V({},or,st,ht.props,{className:gt(st.className,ht.props.className),onTouchStart:St,ref:Tn},he?{onMouseMove:so}:{}),G={};Q||(B.onTouchStart=kn,B.onTouchEnd=zt),K||(B.onMouseOver=ep(F,B.onMouseOver),B.onMouseLeave=ep(ce,B.onMouseLeave),cn||(G.onMouseOver=F,G.onMouseLeave=ce)),se||(B.onFocus=ep(Ge,B.onFocus),B.onBlur=ep(Ie,B.onBlur),cn||(G.onFocus=Ge,G.onBlur=Ie));const ne=T.useMemo(()=>{var Ce;let yt=[{name:"arrow",enabled:!!Ct,options:{element:Ct,padding:4}}];return(Ce=ge.popperOptions)!=null&&Ce.modifiers&&(yt=yt.concat(ge.popperOptions.modifiers)),V({},ge.popperOptions,{modifiers:yt})},[Ct,ge]),_e=V({},E,{isRtl:mt,arrow:L,disableInteractive:cn,placement:de,PopperComponentProp:Le,touch:un.current}),Pe=fre(_e),Ue=(r=(o=je.popper)!=null?o:H.Popper)!=null?r:dre,we=(i=(a=(u=je.transition)!=null?u:H.Transition)!=null?a:Ae)!=null?i:e1,qe=(c=(f=je.tooltip)!=null?f:H.Tooltip)!=null?c:pre,Be=(p=(h=je.arrow)!=null?h:H.Arrow)!=null?p:hre,$e=lc(Ue,V({},ge,(m=ae.popper)!=null?m:$.popper,{className:gt(Pe.popper,ge==null?void 0:ge.className,(x=(y=ae.popper)!=null?y:$.popper)==null?void 0:x.className)}),_e),Et=lc(we,V({},Ke,(v=ae.transition)!=null?v:$.transition),_e),vt=lc(qe,V({},(A=ae.tooltip)!=null?A:$.tooltip,{className:gt(Pe.tooltip,(b=(w=ae.tooltip)!=null?w:$.tooltip)==null?void 0:b.className)}),_e),Rt=lc(Be,V({},(S=ae.arrow)!=null?S:$.arrow,{className:gt(Pe.arrow,(k=(D=ae.arrow)!=null?D:$.arrow)==null?void 0:k.className)}),_e);return P.jsxs(T.Fragment,{children:[T.cloneElement(ht,B),P.jsx(Ue,V({as:Le??fT,placement:de,anchorEl:he?{getBoundingClientRect:()=>({top:ec.y,left:ec.x,right:ec.x,bottom:ec.y,width:0,height:0})}:Mn,popperRef:fn,open:Mn?Xt:!1,id:rr,transition:!0},G,$e,{popperOptions:ne,children:({TransitionProps:Ce})=>P.jsx(we,V({timeout:_t.transitions.duration.shorter},Ce,Et,{children:P.jsxs(qe,V({},vt,{children:[Te,L?P.jsx(Be,V({},Rt,{ref:at})):null]}))}))}))]})}),mre=La` 0% { opacity: 0.2; } @@ -259,4 +259,4 @@ function print() { __p += __j.call(arguments, '') } opacity: 1; //transform: translateY(0); } -`,Ere=()=>P.jsx(xt,{spacing:"16px",direction:"row",sx:{display:"flex",alignItems:"center",height:"14px"},children:P.jsx(Ii,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((e,t)=>P.jsx(Ii,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${Sre} 1s infinite`,animationDelay:`${t*.2}s`}},e))})}),Cre=({message:e})=>{const[t,n]=T.useState("");return T.useEffect(()=>{let r=0;const o=setInterval(()=>{n(e.slice(0,r+1)),r++,r>=e.length&&clearInterval(o)},15);return()=>{clearInterval(o)}},[e]),t},Are=({isMessageEmpty:e})=>{const[t,n]=T.useState(0),[r,o]=T.useState(!0);T.useEffect(()=>{if(t{o(!1)},t===0?2e3:1e3),c=setTimeout(()=>{o(!0),n(f=>f+1)},t===0?3e3:2e3);return()=>{clearTimeout(u),clearTimeout(c)}}},[t]);const i=u=>({opacity:0,width:"fit-content",minHeight:"48px",marginTop:u===0?"0":"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"13px 14.5px",animation:`${IE} 0.5s ease forwards`,animationDelay:`${u===0?2e3:1e3}ms`}),a={opacity:0,width:"fit-content",marginTop:"8px",borderRadius:"22px",padding:"13px 14.5px",animation:`${IE} 0.5s ease forwards`};return P.jsxs(xt,{spacing:"8px",px:"15px",direction:"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease",...e?{marginBottom:"-16px !important"}:""},children:[P.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",...e?"":{backgroundColor:"#005ea4"},borderRadius:"100%"},children:!e&&P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.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"})})}),P.jsx(Ew,{sx:{paddingBlock:0,height:"fit-content"},children:BE.slice(0,t+1).map((u,c)=>P.jsx(Cw,{sx:r&&t==c?a:i(c),children:r&&t==c?P.jsx(Ere,{}):P.jsx(Cre,{message:u},c)},c))})]})},ol="assistant_message",Rre=({message:e,index:t,sources:n,feedback:r,handleSources:o,chatData:i})=>{const{actions:a,chatSettingsValue:u,askUser:c}=zR(),{replyMessage:f,callAction:p,updateChatSettings:h}=GR(),m={width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px"},x={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},y={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}};return P.jsxs(xt,{children:[P.jsxs(xt,{spacing:"8px",px:"15px",direction:e.type!==ol?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[e.type===ol&&P.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.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"})})}),P.jsx(Ew,{sx:{paddingBlock:0,height:"fit-content"},children:P.jsx(Cw,{sx:{...m,...e.type!==ol&&{color:"#222",backgroundColor:"#edf5fa"}},children:P.jsx(J4,{markdown:e.output})})})]}),e.type===ol&&P.jsxs(xt,{direction:"row",spacing:"16.6px",marginTop:"8px",marginLeft:7,children:[P.jsx("button",{style:x,onClick:()=>r("like"),children:P.jsx(Bl,{title:"Helpful",children:P.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:[P.jsx("defs",{children:P.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:P.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),P.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)"})]})]})})}),P.jsx("button",{style:x,onClick:()=>r("dislike"),children:P.jsx(Bl,{title:"Not Helpful",children:P.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:[P.jsx("defs",{children:P.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:P.jsx("use",{xlinkHref:"#42svq9gc7a"})}),P.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)"})]})]})})}),n.length>0&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx("button",{style:x,onClick:()=>o(e.id),children:P.jsx(Bl,{title:"View Sources",children:P.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#989898",stroke:"#989898",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M15.226 15.42H1.774a.196.196 0 0 1-.194-.194V4.796h13.84v10.43a.196.196 0 0 1-.194.194M1.774 1.58h13.452c.105 0 .194.089.194.194v2.442H1.58V1.774c0-.105.089-.194.194-.194M15.226 1H1.774A.775.775 0 0 0 1 1.774v13.452c0 .427.347.774.774.774h13.452a.775.775 0 0 0 .774-.774V1.774A.775.775 0 0 0 15.226 1"}),P.jsx("path",{d:"M13.124 12.58H3.84a.29.29 0 1 0 0 .58h9.285a.29.29 0 1 0 0-.58M4.058 10.801a.29.29 0 0 0 .205-.085L5.94 9.038a.289.289 0 0 0 .085-.209.289.289 0 0 0-.085-.21L4.263 6.943a.29.29 0 0 0-.41.41L5.328 8.83l-1.477 1.477a.29.29 0 0 0 .206.495z"})]})})})})]}),P.jsxs(xt,{direction:"row",spacing:1,justifyContent:"flex-end",paddingRight:"15px",sx:{...e.type===ol&&e.waitForAnswer&&{marginLeft:7}},children:[a.length>0&&a.map((v,A)=>v.forId===e.id&&P.jsx(mh,{...y,onClick:()=>{const b={name:v.name,value:v.value,label:v.label,description:v.description,forId:v.forId,id:v.id,collapsed:v.collapsed};c&&f(b),p(v)},children:v.label},A)),e.type===ol&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx(mh,{...y,onClick:()=>{h({agent:"Live Agent"})},children:"Speak With a Live Agent"})]})]})},kre=({show:e,onMinimize:t,...n})=>{var Ce;const{sendMessage:r,replyMessage:o,clear:i,updateChatSettings:a}=GR(),{elements:u,loading:c,askUser:f}=zR();let{messages:p}=xV();const[h,m]=T.useState([]),x=T.useRef(null),[y,v]=T.useState([]),[A,b]=T.useState(()=>P.jsx(P.Fragment,{})),[w,S]=T.useState(""),[k,D]=T.useState(""),[E,L]=T.useState(""),[I,H]=T.useState(!1),[$,Y]=T.useState(!1),[se,K]=T.useState([]),[q,Q]=T.useState(""),le=T.useRef([]),pe=()=>{var ae;(ae=x.current)==null||ae.scrollIntoView({behavior:"smooth"})},J=()=>{var De;if(p.length===0)return!1;const ae=(De=p[p.length-1])==null?void 0:De.output.trim();return ae===""||ae===q.trim()};T.useEffect(()=>{pe()},[h]),T.useEffect(()=>{if(pe(),J(),p.length>0){const ae=p.filter(De=>De.name);m([...le.current,...ae])}},[p]),T.useEffect(()=>{const ae=JSON.parse(sessionStorage.getItem("chatState"));ae&&(le.current=ae,m(ae))},[]),T.useEffect(()=>{h.length>0&&sessionStorage.setItem("chatState",JSON.stringify(h))},[h]),T.useEffect(()=>{const ae=async()=>{if(u.length!==0)try{const De=await Promise.all(u.filter(Re=>p.some(Se=>Se.id===Re.forId)).map(async Re=>({sources:(await _n.get(Re.url)).data,id:Re.forId})));v(De)}catch(De){console.error(De)}};p.length>0&&ae()},[u]),T.useEffect(()=>{K(y)},[y]),T.useEffect(()=>{pe()},[se]),T.useEffect(()=>{E&&b(Ne)},[E]);const he=()=>{Y(!0),b(ve)},re=()=>{Y(!0),b(de)},me=()=>{t(!1),Y(!1),i(),sessionStorage.removeItem("chatState"),le.current=[],m([])},U=ae=>{L(ae),Y(!0)},ue=async ae=>{const De=ae||k.trim();Q(De);const Re=e0();if(De){const Se={name:"User",type:"user_message",sender:"user",output:De,content:De,createdAt:new Date().toISOString(),id:Re};f?o(Se):r(Se,[]),D("")}},te={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},ve=()=>P.jsxs(et.Fragment,{children:[P.jsxs(xt,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"End Chat"}),P.jsx(Qn,{children:"Are you sure you want to end chat?"})]}),P.jsxs(xt,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[P.jsx(mh,{fullWidth:!0,variant:"contained",sx:te,onClick:me,children:"End Chat"}),P.jsx(mh,{sx:te,onClick:()=>{Y(!1)},children:"Cancel"})]})]}),de=ae=>P.jsxs(et.Fragment,{children:[P.jsxs(xt,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsxs(xt,{direction:"row",spacing:1,children:[P.jsxs("svg",{width:"22",height:"21",viewBox:"0 0 22 21",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("defs",{children:P.jsx("path",{id:"izo0eho0ia",d:"M0 0h22v21H0z"})}),P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"msr3mhxcnb",fill:"#fff",children:P.jsx("use",{xlinkHref:"#izo0eho0ia"})}),P.jsx("path",{d:"m20.433 10.9-.283.444a2.255 2.255 0 0 0-.368 1.688l.057.249c.056.248 0 .47-.142.691l-.253.387a2.255 2.255 0 0 0-.368 1.688l.056.249c.056.248 0 .47-.141.663l-.48.692a2.213 2.213 0 0 0-.312.692l-.141.553a.93.93 0 0 1-.904.692H7.094V10.266A3.122 3.122 0 0 0 9.042 8.91l2.996-4.62c.283-.443.453-.969.453-1.522V1.716a.34.34 0 0 1 .339-.332c.82 0 1.498.664 1.498 1.467 0 .443-.056.885-.198 1.3l-1.413 4.372c-.056.222-.029.443.113.608.141.167.339.277.565.277h6.303c.48 0 .877.36.933.83-.029.276-.085.497-.199.663zm-19.02 8.634h4.268V9.49H1.413v10.044zm20.574-9.408a2.364 2.364 0 0 0-2.346-2.074h-5.34l1.13-3.487a5.88 5.88 0 0 0 .282-1.715c0-1.577-1.3-2.85-2.911-2.85-.96 0-1.752.775-1.752 1.715v1.052c0 .276-.085.553-.226.775L7.828 8.19a1.878 1.878 0 0 1-.762.636v-.028a.693.693 0 0 0-.707-.691H.707A.693.693 0 0 0 0 8.798v11.427c0 .387.311.692.707.692h5.68l10.74.083c1.075 0 2.008-.72 2.29-1.715l.142-.553a.527.527 0 0 1 .14-.277l.481-.692c.34-.498.48-1.106.368-1.688l-.086-.305c-.057-.248 0-.47.14-.691l.255-.387c.339-.499.48-1.107.368-1.688l-.057-.222c-.056-.249 0-.47.141-.692l.283-.443c.312-.414.453-.967.395-1.52z",fill:"#222",mask:"url(#msr3mhxcnb)"})]})]}),P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Add a Comment"})]}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>Y(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(xt,{sx:{paddingInline:"15px",paddingBlock:"24px"},children:P.jsx(wT,{variant:"outlined",sx:{width:"100%"},children:P.jsx(Aw,{multiline:!0,rows:5,onInput:De=>S(De.target.value),sx:{borderRadius:"16px","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})})}),P.jsx(xt,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",marginBottom:4},children:P.jsx("button",{style:{...te,color:"#fff",background:"#1470D2",fontFamily:"Exo",fontWeight:600,border:"none",width:"100%",borderRadius:0,cursor:"pointer"},onClick:()=>Y(!1),children:"Submit Feedback"})})]}),Ne=T.useCallback(()=>{const ae=se.filter(De=>De.id===E);if(ae.length!==0)return P.jsxs(et.Fragment,{children:[P.jsxs(xt,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsxs(xt,{direction:"row",spacing:1,children:[P.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#222",stroke:"#222",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M20.917 21.188H2.083a.274.274 0 0 1-.27-.271V6.314h19.374v14.603c0 .146-.124.27-.27.27M2.083 1.813h18.834c.146 0 .27.125.27.271v3.419H1.812V2.083c0-.146.125-.27.271-.27M20.917 1H2.083C1.486 1 1 1.486 1 2.083v18.834C1 21.514 1.486 22 2.083 22h18.834c.597 0 1.083-.486 1.083-1.083V2.083C22 1.486 21.514 1 20.917 1"}),P.jsx("path",{d:"M17.974 17.211h-13a.406.406 0 1 0 0 .813h13a.406.406 0 1 0 0-.813M5.28 14.722c.105 0 .208-.04.288-.12l2.349-2.348c.08-.081.12-.187.118-.293a.404.404 0 0 0-.118-.293l-2.35-2.35a.406.406 0 0 0-.574.575l2.068 2.068-2.068 2.067a.406.406 0 0 0 .288.694z"})]})}),P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Sources"})]}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>Y(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(xt,{sx:{paddingInline:"15px",paddingTop:"10px",paddingBottom:"20px",maxHeight:"350px",overflow:"auto",a:{color:"#1470d2",fontFamily:"Roboto",fontSize:"13px",lineHeight:"18px",fontWeight:"normal"}},children:ae.map((De,Re)=>P.jsx(J4,{markdown:De.sources},Re))})]})},[E,se]);return P.jsx(xt,{position:"relative",children:P.jsxs(xt,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"calc(100% - 24px)",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",opacity:0,zIndex:999,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:[P.jsx(vre,{onClose:he,onMinimize:t,onDrawerOpen:()=>H(!0)}),P.jsxs(xt,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[P.jsx(wre,{}),P.jsx(Are,{isMessageEmpty:p.length,animate:!((Ce=JSON.parse(sessionStorage.getItem("chatState")))!=null&&Ce.length)}),h.filter(ae=>ae.output.trim()!=="").map((ae,De)=>P.jsx(Rre,{index:De,message:ae,sources:se,feedback:re,handleSources:U},De)),P.jsx(gre,{visible:J()}),P.jsx("div",{ref:x})]}),P.jsx(yre,{onMessage:ue,value:k,input:D,loading:c}),P.jsx(_re,{drawer:I,dialog:$,onClick:()=>{H(!1),Y(!1)}}),P.jsx(xre,{drawer:I,onClose:()=>H(!1),updateChatSettings:a}),P.jsx(bre,{drawer:$,children:A})]})})},Tre=({toggle:e,sx:t,...n})=>P.jsxs(xt,{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:[P.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"none",children:[P.jsxs("g",{children:[P.jsx("path",{d:"M0 0h28.906v35H0z"}),P.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)"})]}),P.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"})]})}),P.jsx(Qn,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Dre=()=>{const[e,t]=T.useState(!1);return P.jsxs(et.Fragment,{children:[P.jsx(Tre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),P.jsx(kre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var Pre={VITE_APP_VERSION:"v1.0.0",VITE_APP_SSL_URL:"https://owcbot.macsales.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ore=uq([{path:"*",element:P.jsx(Dre,{})}],{basename:Pre.VITE_APP_BASE_NAME});function Lre(){return K0({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 Nre(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 Mre(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 Bre(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 Ire(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=Bre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Ire(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 $re(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 Fre(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Ure(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function zre(e){return Da.merge($re(e),Fre(),Ure())}function _T({children:e}){const t=T.useMemo(()=>Lre(),["light","default"]),n=T.useMemo(()=>Nre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=T.useMemo(()=>Mre(t),[t]),o=T.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=K0(o);return i.components=zre(i),P.jsx(xk,{injectFirst:!0,children:P.jsxs(IJ,{theme:i,children:[P.jsx(ane,{enableColorScheme:!0}),e]})})}_T.propTypes={children:sY.node};const ST=T.createContext(),jre=({children:e})=>{const t=bV();return P.jsx(ST.Provider,{value:t,children:e})},Vre=()=>T.useContext(ST),Wre=()=>{const{connect:e,disconnect:t}=Vre(),n=Pn(r0);return T.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await _n.post("https://owcbot.macsales.com/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]),P.jsx(_T,{children:P.jsx(yq,{router:Ore})})},Hre=()=>P.jsx(jre,{children:P.jsx(Wre,{})}),qre="https://owcbot.macsales.com",Gre=new qR(qre,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("aibotroot");e?pv.createRoot(e).render(P.jsx(et.StrictMode,{children:P.jsx(Dy.Provider,{value:Gre,children:P.jsx(zz,{children:P.jsx(Hre,{})})})})):console.log("Root element for Chatbot not found")}); +`,Ere=()=>P.jsx(xt,{spacing:"16px",direction:"row",sx:{display:"flex",alignItems:"center",height:"14px"},children:P.jsx(Ii,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((e,t)=>P.jsx(Ii,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${Sre} 1s infinite`,animationDelay:`${t*.2}s`}},e))})}),Cre=({message:e})=>{const[t,n]=T.useState("");return T.useEffect(()=>{let r=0;const o=setInterval(()=>{n(e.slice(0,r+1)),r++,r>=e.length&&clearInterval(o)},15);return()=>{clearInterval(o)}},[e]),t},Are=({isMessageEmpty:e})=>{const[t,n]=T.useState(0),[r,o]=T.useState(!0);T.useEffect(()=>{if(t{o(!1)},t===0?2e3:1e3),c=setTimeout(()=>{o(!0),n(f=>f+1)},t===0?3e3:2e3);return()=>{clearTimeout(u),clearTimeout(c)}}},[t]);const i=u=>({opacity:0,width:"fit-content",minHeight:"48px",marginTop:u===0?"0":"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"13px 14.5px",animation:`${IE} 0.5s ease forwards`,animationDelay:`${u===0?2e3:1e3}ms`}),a={opacity:0,width:"fit-content",marginTop:"8px",borderRadius:"22px",padding:"13px 14.5px",animation:`${IE} 0.5s ease forwards`};return P.jsxs(xt,{spacing:"8px",px:"15px",direction:"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease",...e?{marginBottom:"-16px !important"}:""},children:[P.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",...e?"":{backgroundColor:"#005ea4"},borderRadius:"100%"},children:!e&&P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.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"})})}),P.jsx(Ew,{sx:{paddingBlock:0,height:"fit-content"},children:BE.slice(0,t+1).map((u,c)=>P.jsx(Cw,{sx:r&&t==c?a:i(c),children:r&&t==c?P.jsx(Ere,{}):P.jsx(Cre,{message:u},c)},c))})]})},ol="assistant_message",Rre=({message:e,index:t,sources:n,feedback:r,handleSources:o,chatData:i})=>{const{actions:a,chatSettingsValue:u,askUser:c}=zR(),{replyMessage:f,callAction:p,updateChatSettings:h}=GR(),m={width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px"},x={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},y={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}};return P.jsxs(xt,{children:[P.jsxs(xt,{spacing:"8px",px:"15px",direction:e.type!==ol?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[e.type===ol&&P.jsx(Ii,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.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"})})}),P.jsx(Ew,{sx:{paddingBlock:0,height:"fit-content"},children:P.jsx(Cw,{sx:{...m,...e.type!==ol&&{color:"#222",backgroundColor:"#edf5fa"}},children:P.jsx(J4,{markdown:e.output})})})]}),e.type===ol&&P.jsxs(xt,{direction:"row",spacing:"16.6px",marginTop:"8px",marginLeft:7,children:[P.jsx("button",{style:x,onClick:()=>r("like"),children:P.jsx(Bl,{title:"Helpful",children:P.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:[P.jsx("defs",{children:P.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:P.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),P.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)"})]})]})})}),P.jsx("button",{style:x,onClick:()=>r("dislike"),children:P.jsx(Bl,{title:"Not Helpful",children:P.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:[P.jsx("defs",{children:P.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:P.jsx("use",{xlinkHref:"#42svq9gc7a"})}),P.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)"})]})]})})}),n.length>0&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx("button",{style:x,onClick:()=>o(e.id),children:P.jsx(Bl,{title:"View Sources",children:P.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#989898",stroke:"#989898",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M15.226 15.42H1.774a.196.196 0 0 1-.194-.194V4.796h13.84v10.43a.196.196 0 0 1-.194.194M1.774 1.58h13.452c.105 0 .194.089.194.194v2.442H1.58V1.774c0-.105.089-.194.194-.194M15.226 1H1.774A.775.775 0 0 0 1 1.774v13.452c0 .427.347.774.774.774h13.452a.775.775 0 0 0 .774-.774V1.774A.775.775 0 0 0 15.226 1"}),P.jsx("path",{d:"M13.124 12.58H3.84a.29.29 0 1 0 0 .58h9.285a.29.29 0 1 0 0-.58M4.058 10.801a.29.29 0 0 0 .205-.085L5.94 9.038a.289.289 0 0 0 .085-.209.289.289 0 0 0-.085-.21L4.263 6.943a.29.29 0 0 0-.41.41L5.328 8.83l-1.477 1.477a.29.29 0 0 0 .206.495z"})]})})})})]}),P.jsxs(xt,{direction:"row",spacing:1,justifyContent:"flex-end",paddingRight:"15px",sx:{...e.type===ol&&e.waitForAnswer&&{marginLeft:7}},children:[a.length>0&&a.map((v,A)=>v.forId===e.id&&P.jsx(mh,{...y,onClick:()=>{const b={name:v.name,value:v.value,label:v.label,description:v.description,forId:v.forId,id:v.id,collapsed:v.collapsed};c&&f(b),p(v)},children:v.label},A)),e.type===ol&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx(mh,{...y,onClick:()=>{h({agent:"Live Agent"})},children:"Speak With a Live Agent"})]})]})},kre=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,replyMessage:o,clear:i,updateChatSettings:a}=GR(),{elements:u,loading:c,askUser:f}=zR();let{messages:p}=xV();const[h,m]=T.useState([]),x=T.useRef(null),[y,v]=T.useState([]),[A,b]=T.useState(()=>P.jsx(P.Fragment,{})),[w,S]=T.useState(""),[k,D]=T.useState(""),[E,L]=T.useState(""),[I,H]=T.useState(!1),[$,Y]=T.useState(!1),[se,K]=T.useState([]),[q,Q]=T.useState(""),le=T.useRef([]),pe=()=>{var ge;(ge=x.current)==null||ge.scrollIntoView({behavior:"smooth"})},J=()=>{var ae;if(p.length===0)return!1;const ge=(ae=p[p.length-1])==null?void 0:ae.output.trim();return ge===""||ge===q.trim()};T.useEffect(()=>{pe()},[h]),T.useEffect(()=>{if(pe(),J(),p.length>0){const ge=p.filter(ae=>ae.name);m([...le.current,...ge])}},[p]),T.useEffect(()=>{const ge=JSON.parse(sessionStorage.getItem("chatState"));ge&&(le.current=ge,m(ge))},[]),T.useEffect(()=>{h.length>0&&sessionStorage.setItem("chatState",JSON.stringify(h))},[h]),T.useEffect(()=>{const ge=async()=>{if(u.length!==0)try{const ae=await Promise.all(u.filter(je=>p.some(Te=>Te.id===je.forId)).map(async je=>({sources:(await _n.get(je.url)).data,id:je.forId})));v(ae)}catch(ae){console.error(ae)}};p.length>0&&ge()},[u]),T.useEffect(()=>{K(y)},[y]),T.useEffect(()=>{pe()},[se]),T.useEffect(()=>{E&&b(Le)},[E]);const he=()=>{Y(!0),b(ye)},re=()=>{Y(!0),b(de)},me=()=>{t(!1),Y(!1),i(),sessionStorage.removeItem("chatState"),le.current=[],m([])},U=ge=>{L(ge),Y(!0)},ue=async ge=>{const ae=ge||k.trim();Q(ae);const je=e0();if(ae){const Te={name:"User",type:"user_message",sender:"user",output:ae,content:ae,createdAt:new Date().toISOString(),id:je};f?o(Te):r(Te,[]),D("")}},te={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},ye=()=>P.jsxs(et.Fragment,{children:[P.jsxs(xt,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"End Chat"}),P.jsx(Qn,{children:"Are you sure you want to end chat?"})]}),P.jsxs(xt,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[P.jsx(mh,{fullWidth:!0,variant:"contained",sx:te,onClick:me,children:"End Chat"}),P.jsx(mh,{sx:te,onClick:()=>{Y(!1)},children:"Cancel"})]})]}),de=ge=>P.jsxs(et.Fragment,{children:[P.jsxs(xt,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsxs(xt,{direction:"row",spacing:1,children:[P.jsxs("svg",{width:"22",height:"21",viewBox:"0 0 22 21",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("defs",{children:P.jsx("path",{id:"izo0eho0ia",d:"M0 0h22v21H0z"})}),P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"msr3mhxcnb",fill:"#fff",children:P.jsx("use",{xlinkHref:"#izo0eho0ia"})}),P.jsx("path",{d:"m20.433 10.9-.283.444a2.255 2.255 0 0 0-.368 1.688l.057.249c.056.248 0 .47-.142.691l-.253.387a2.255 2.255 0 0 0-.368 1.688l.056.249c.056.248 0 .47-.141.663l-.48.692a2.213 2.213 0 0 0-.312.692l-.141.553a.93.93 0 0 1-.904.692H7.094V10.266A3.122 3.122 0 0 0 9.042 8.91l2.996-4.62c.283-.443.453-.969.453-1.522V1.716a.34.34 0 0 1 .339-.332c.82 0 1.498.664 1.498 1.467 0 .443-.056.885-.198 1.3l-1.413 4.372c-.056.222-.029.443.113.608.141.167.339.277.565.277h6.303c.48 0 .877.36.933.83-.029.276-.085.497-.199.663zm-19.02 8.634h4.268V9.49H1.413v10.044zm20.574-9.408a2.364 2.364 0 0 0-2.346-2.074h-5.34l1.13-3.487a5.88 5.88 0 0 0 .282-1.715c0-1.577-1.3-2.85-2.911-2.85-.96 0-1.752.775-1.752 1.715v1.052c0 .276-.085.553-.226.775L7.828 8.19a1.878 1.878 0 0 1-.762.636v-.028a.693.693 0 0 0-.707-.691H.707A.693.693 0 0 0 0 8.798v11.427c0 .387.311.692.707.692h5.68l10.74.083c1.075 0 2.008-.72 2.29-1.715l.142-.553a.527.527 0 0 1 .14-.277l.481-.692c.34-.498.48-1.106.368-1.688l-.086-.305c-.057-.248 0-.47.14-.691l.255-.387c.339-.499.48-1.107.368-1.688l-.057-.222c-.056-.249 0-.47.141-.692l.283-.443c.312-.414.453-.967.395-1.52z",fill:"#222",mask:"url(#msr3mhxcnb)"})]})]}),P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Add a Comment"})]}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>Y(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(xt,{sx:{paddingInline:"15px",paddingBlock:"24px"},children:P.jsx(wT,{variant:"outlined",sx:{width:"100%"},children:P.jsx(Aw,{multiline:!0,rows:5,onInput:ae=>S(ae.target.value),sx:{borderRadius:"16px","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})})}),P.jsx(xt,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",marginBottom:4},children:P.jsx("button",{style:{...te,color:"#fff",background:"#1470D2",fontFamily:"Exo",fontWeight:600,border:"none",width:"100%",borderRadius:0,cursor:"pointer"},onClick:()=>Y(!1),children:"Submit Feedback"})})]}),Le=T.useCallback(()=>{const ge=se.filter(ae=>ae.id===E);if(ge.length!==0)return P.jsxs(et.Fragment,{children:[P.jsxs(xt,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsxs(xt,{direction:"row",spacing:1,children:[P.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#222",stroke:"#222",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M20.917 21.188H2.083a.274.274 0 0 1-.27-.271V6.314h19.374v14.603c0 .146-.124.27-.27.27M2.083 1.813h18.834c.146 0 .27.125.27.271v3.419H1.812V2.083c0-.146.125-.27.271-.27M20.917 1H2.083C1.486 1 1 1.486 1 2.083v18.834C1 21.514 1.486 22 2.083 22h18.834c.597 0 1.083-.486 1.083-1.083V2.083C22 1.486 21.514 1 20.917 1"}),P.jsx("path",{d:"M17.974 17.211h-13a.406.406 0 1 0 0 .813h13a.406.406 0 1 0 0-.813M5.28 14.722c.105 0 .208-.04.288-.12l2.349-2.348c.08-.081.12-.187.118-.293a.404.404 0 0 0-.118-.293l-2.35-2.35a.406.406 0 0 0-.574.575l2.068 2.068-2.068 2.067a.406.406 0 0 0 .288.694z"})]})}),P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Sources"})]}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>Y(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(xt,{sx:{paddingInline:"15px",paddingTop:"10px",paddingBottom:"20px",maxHeight:"350px",overflow:"auto",a:{color:"#1470d2",fontFamily:"Roboto",fontSize:"13px",lineHeight:"18px",fontWeight:"normal"}},children:ge.map((ae,je)=>P.jsx(J4,{markdown:ae.sources},je))})]})},[E,se]);return P.jsx(xt,{position:"relative",children:P.jsxs(xt,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"calc(100% - 24px)",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",opacity:0,zIndex:999,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:[P.jsx(vre,{onClose:he,onMinimize:t,onDrawerOpen:()=>H(!0)}),P.jsxs(xt,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[P.jsx(wre,{}),console.log("test"),e&&P.jsx(Are,{isMessageEmpty:p.length}),h.filter(ge=>ge.output.trim()!=="").map((ge,ae)=>P.jsx(Rre,{index:ae,message:ge,sources:se,feedback:re,handleSources:U},ae)),P.jsx(gre,{visible:J()}),P.jsx("div",{ref:x})]}),P.jsx(yre,{onMessage:ue,value:k,input:D,loading:c}),P.jsx(_re,{drawer:I,dialog:$,onClick:()=>{H(!1),Y(!1)}}),P.jsx(xre,{drawer:I,onClose:()=>H(!1),updateChatSettings:a}),P.jsx(bre,{drawer:$,children:A})]})})},Tre=({toggle:e,sx:t,...n})=>P.jsxs(xt,{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:[P.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"none",children:[P.jsxs("g",{children:[P.jsx("path",{d:"M0 0h28.906v35H0z"}),P.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)"})]}),P.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"})]})}),P.jsx(Qn,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Dre=()=>{const[e,t]=T.useState(!1);return P.jsxs(et.Fragment,{children:[P.jsx(Tre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),P.jsx(kre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var Pre={VITE_APP_VERSION:"v1.0.0",VITE_APP_SSL_URL:"https://owcbot.macsales.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ore=uq([{path:"*",element:P.jsx(Dre,{})}],{basename:Pre.VITE_APP_BASE_NAME});function Lre(){return K0({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 Nre(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 Mre(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 Bre(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 Ire(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=Bre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Ire(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 $re(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 Fre(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Ure(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function zre(e){return Da.merge($re(e),Fre(),Ure())}function _T({children:e}){const t=T.useMemo(()=>Lre(),["light","default"]),n=T.useMemo(()=>Nre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=T.useMemo(()=>Mre(t),[t]),o=T.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=K0(o);return i.components=zre(i),P.jsx(xk,{injectFirst:!0,children:P.jsxs(IJ,{theme:i,children:[P.jsx(ane,{enableColorScheme:!0}),e]})})}_T.propTypes={children:sY.node};const ST=T.createContext(),jre=({children:e})=>{const t=bV();return P.jsx(ST.Provider,{value:t,children:e})},Vre=()=>T.useContext(ST),Wre=()=>{const{connect:e,disconnect:t}=Vre(),n=Pn(r0);return T.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await _n.post("https://owcbot.macsales.com/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]),P.jsx(_T,{children:P.jsx(yq,{router:Ore})})},Hre=()=>P.jsx(jre,{children:P.jsx(Wre,{})}),qre="https://owcbot.macsales.com",Gre=new qR(qre,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("aibotroot");e?pv.createRoot(e).render(P.jsx(et.StrictMode,{children:P.jsx(Dy.Provider,{value:Gre,children:P.jsx(zz,{children:P.jsx(Hre,{})})})})):console.log("Root element for Chatbot not found")});