From 56311b1be41814a6316f181f79e208469e04a75a Mon Sep 17 00:00:00 2001 From: Mark Stephen <168153708+smaduro-owc@users.noreply.github.com> Date: Fri, 22 Nov 2024 06:37:06 +0800 Subject: [PATCH] Update index-GBvC0EIR.js --- index-GBvC0EIR.js | 94 +++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/index-GBvC0EIR.js b/index-GBvC0EIR.js index c565f82..e143588 100644 --- a/index-GBvC0EIR.js +++ b/index-GBvC0EIR.js @@ -1,4 +1,4 @@ -function qE(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var HE=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function l2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ts(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var GE={exports:{}},bh={},KE={exports:{}},ft={};/** +function VE(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var WE=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function a2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ji(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var HE={exports:{}},bh={},qE={exports:{}},ft={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function qE(e,t){for(var n=0;n>>1,U=J[he];if(0>>1;heo(ye,re))ueo(Me,ye)?(J[he]=Me,J[ue]=re,he=ue):(J[he]=ye,J[te]=re,he=te);else if(ueo(Me,re))J[he]=Me,J[ue]=re,he=ue;else break e}}return de}function o(J,de){var re=J.sortIndex-de.sortIndex;return re!==0?re:J.id-de.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,w=!1,v=!1,y=!1,A=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=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 de=n(f);de!==null;){if(de.callback===null)r(f);else if(de.startTime<=J)r(f),de.sortIndex=de.expirationTime,t(c,de);else break;de=n(f)}}function k(J){if(y=!1,S(J),!v)if(n(c)!==null)v=!0,le(P);else{var de=n(f);de!==null&&pe(k,de.startTime-J)}}function P(J,de){v=!1,y&&(y=!1,b($),$=-1),w=!0;var re=m;try{for(S(de),h=n(c);h!==null&&(!(h.expirationTime>de)||J&&!X());){var he=h.callback;if(typeof he=="function"){h.callback=null,m=h.priorityLevel;var U=he(h.expirationTime<=de);de=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),S(de)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var te=n(f);te!==null&&pe(k,te.startTime-de),ae=!1}return ae}finally{h=null,m=re,w=!1}}var E=!1,L=null,$=-1,q=5,I=-1;function X(){return!(e.unstable_now()-IJ||125he?(J.sortIndex=re,t(f,J),n(c)===null&&J===n(f)&&(y?(b($),$=-1):y=!0,pe(k,re-he))):(J.sortIndex=U,t(c,J),v||w||(v=!0,le(P))),J},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(J){var de=m;return function(){var re=m;m=de;try{return J.apply(this,arguments)}finally{m=re}}}})(s5);i5.exports=s5;var QO=i5.exports;/** + */(function(e){function t(J,de){var re=J.length;J.push(de);e:for(;0>>1,U=J[he];if(0>>1;heo(ye,re))ueo(Ne,ye)?(J[he]=Ne,J[ue]=re,he=ue):(J[he]=ye,J[te]=re,he=te);else if(ueo(Ne,re))J[he]=Ne,J[ue]=re,he=ue;else break e}}return de}function o(J,de){var re=J.sortIndex-de.sortIndex;return re!==0?re:J.id-de.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,w=!1,v=!1,y=!1,A=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=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 de=n(f);de!==null;){if(de.callback===null)r(f);else if(de.startTime<=J)r(f),de.sortIndex=de.expirationTime,t(c,de);else break;de=n(f)}}function k(J){if(y=!1,S(J),!v)if(n(c)!==null)v=!0,le(P);else{var de=n(f);de!==null&&pe(k,de.startTime-J)}}function P(J,de){v=!1,y&&(y=!1,b($),$=-1),w=!0;var re=m;try{for(S(de),h=n(c);h!==null&&(!(h.expirationTime>de)||J&&!X());){var he=h.callback;if(typeof he=="function"){h.callback=null,m=h.priorityLevel;var U=he(h.expirationTime<=de);de=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),S(de)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var te=n(f);te!==null&&pe(k,te.startTime-de),ae=!1}return ae}finally{h=null,m=re,w=!1}}var E=!1,L=null,$=-1,H=5,I=-1;function X(){return!(e.unstable_now()-IJ||125he?(J.sortIndex=re,t(f,J),n(c)===null&&J===n(f)&&(y?(b($),$=-1):y=!0,pe(k,re-he))):(J.sortIndex=U,t(c,J),v||w||(v=!0,le(P))),J},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(J){var de=m;return function(){var re=m;m=de;try{return J.apply(this,arguments)}finally{m=re}}}})(o5);r5.exports=o5;var YO=r5.exports;/** * @license React * react-dom.production.min.js * @@ -30,42 +30,42 @@ function qE(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bv=Object.prototype.hasOwnProperty,eL=/^[: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]*$/,Jb={},e_={};function tL(e){return bv.call(e_,e)?!0:bv.call(Jb,e)?!1:eL.test(e)?e_[e]=!0:(Jb[e]=!0,!1)}function nL(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 rL(e,t,n,r){if(t===null||typeof t>"u"||nL(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 rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[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];rr[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[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){rr[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var p2=/[\-:]([a-z])/g;function h2(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(p2,h2);rr[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(p2,h2);rr[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(p2,h2);rr[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function m2(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wv=Object.prototype.hasOwnProperty,ZO=/^[: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]*$/,Qb={},Jb={};function QO(e){return wv.call(Jb,e)?!0:wv.call(Qb,e)?!1:ZO.test(e)?Jb[e]=!0:(Qb[e]=!0,!1)}function JO(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 eL(e,t,n,r){if(t===null||typeof t>"u"||JO(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 rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[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];rr[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[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){rr[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var d2=/[\-:]([a-z])/g;function p2(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(d2,p2);rr[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(d2,p2);rr[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(d2,p2);rr[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function h2(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[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{vg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nc(e):""}function oL(e){switch(e.tag){case 5:return nc(e.type);case 16:return nc("Lazy");case 13:return nc("Suspense");case 19:return nc("SuspenseList");case 0:case 2:case 15:return e=yg(e.type,!1),e;case 11:return e=yg(e.type.render,!1),e;case 1:return e=yg(e.type,!0),e;default:return""}}function Cv(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 fl:return"Fragment";case cl:return"Portal";case _v:return"Profiler";case g2:return"StrictMode";case Sv:return"Suspense";case Ev:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u5:return(e.displayName||"Context")+".Consumer";case l5:return(e._context.displayName||"Context")+".Provider";case v2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case y2:return t=e.displayName||null,t!==null?t:Cv(e.type)||"Memo";case as:t=e._payload,e=e._init;try{return Cv(e(t))}catch{}}return null}function iL(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 Cv(t);case 8:return t===g2?"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 As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function f5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sL(e){var t=f5(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 Sd(e){e._valueTracker||(e._valueTracker=sL(e))}function d5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=f5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bp(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 Av(e,t){var n=t.checked;return un({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function n_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=As(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 p5(e,t){t=t.checked,t!=null&&m2(e,"checked",t,!1)}function Rv(e,t){p5(e,t);var n=As(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")?kv(e,t.type,n):t.hasOwnProperty("defaultValue")&&kv(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function r_(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 kv(e,t,n){(t!=="number"||Bp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rc=Array.isArray;function Rl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ed.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fc={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},aL=["Webkit","ms","Moz","O"];Object.keys(fc).forEach(function(e){aL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fc[t]=fc[e]})});function v5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fc.hasOwnProperty(e)&&fc[e]?(""+t).trim():t+"px"}function y5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=v5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var lL=un({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 Pv(e,t){if(t){if(lL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function Ov(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 Lv=null;function x2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mv=null,kl=null,Tl=null;function s_(e){if(e=lf(e)){if(typeof Mv!="function")throw Error(me(280));var t=e.stateNode;t&&(t=Ah(t),Mv(e.stateNode,e.type,t))}}function x5(e){kl?Tl?Tl.push(e):Tl=[e]:kl=e}function w5(){if(kl){var e=kl,t=Tl;if(Tl=kl=null,s_(e),t)for(e=0;e>>=0,e===0?32:31-(xL(e)/wL|0)|0}var Cd=64,Ad=4194304;function oc(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 Up(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=oc(u):(i&=a,i!==0&&(r=oc(i)))}else a=n&~o,a!==0?r=oc(a):i!==0&&(r=oc(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 sf(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 EL(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=pc),m_=" ",g_=!1;function U5(e,t){switch(e){case"keyup":return QL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dl=!1;function eM(e,t){switch(e){case"compositionend":return z5(t);case"keypress":return t.which!==32?null:(g_=!0,m_);case"textInput":return e=t.data,e===m_&&g_?null:e;default:return null}}function tM(e,t){if(dl)return e==="compositionend"||!R2&&U5(e,t)?(e=$5(),up=E2=ps=null,dl=!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=w_(n)}}function q5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?q5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function H5(){for(var e=window,t=Bp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bp(e.document)}return t}function k2(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 cM(e){var t=H5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&q5(n.ownerDocument.documentElement,n)){if(r!==null&&k2(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=b_(n,i);var a=b_(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,pl=null,Uv=null,mc=null,zv=!1;function __(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zv||pl==null||pl!==Bp(r)||(r=pl,"selectionStart"in r&&k2(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}),mc&&Mc(mc,r)||(mc=r,r=Vp(Uv,"onSelect"),0gl||(e.current=Gv[gl],Gv[gl]=null,gl--)}function qt(e,t){gl++,Gv[gl]=e.current,e.current=t}var Rs={},pr=Ps(Rs),Dr=Ps(!1),ya=Rs;function Fl(e,t){var n=e.type.contextTypes;if(!n)return Rs;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 qp(){Yt(Dr),Yt(pr)}function T_(e,t,n){if(pr.current!==Rs)throw Error(me(168));qt(pr,t),qt(Dr,n)}function tC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(me(108,iL(e)||"Unknown",o));return un({},n,r)}function Hp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rs,ya=pr.current,qt(pr,e),qt(Dr,Dr.current),!0}function D_(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=tC(e,t,ya),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(pr),qt(pr,e)):Yt(Dr),qt(Dr,n)}var Oi=null,Rh=!1,Og=!1;function nC(e){Oi===null?Oi=[e]:Oi.push(e)}function _M(e){Rh=!0,nC(e)}function Os(){if(!Og&&Oi!==null){Og=!0;var e=0,t=Nt;try{var n=Oi;for(Nt=1;e>=a,o-=a,Mi=1<<32-Zo(t)+o|n<$?(q=L,L=null):q=L.sibling;var I=m(b,L,S[$],k);if(I===null){L===null&&(L=q);break}e&&L&&I.alternate===null&&t(b,L),x=i(I,x,$),E===null?P=I:E.sibling=I,E=I,L=q}if($===S.length)return n(b,L),en&&Qs(b,$),P;if(L===null){for(;$$?(q=L,L=null):q=L.sibling;var X=m(b,L,I.value,k);if(X===null){L===null&&(L=q);break}e&&L&&X.alternate===null&&t(b,L),x=i(X,x,$),E===null?P=X:E.sibling=X,E=X,L=q}if(I.done)return n(b,L),en&&Qs(b,$),P;if(L===null){for(;!I.done;$++,I=S.next())I=h(b,I.value,k),I!==null&&(x=i(I,x,$),E===null?P=I:E.sibling=I,E=I);return en&&Qs(b,$),P}for(L=r(b,L);!I.done;$++,I=S.next())I=w(L,b,$,I.value,k),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?$:I.key),x=i(I,x,$),E===null?P=I:E.sibling=I,E=I);return e&&L.forEach(function(se){return t(b,se)}),en&&Qs(b,$),P}function A(b,x,S,k){if(typeof S=="object"&&S!==null&&S.type===fl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case _d:e:{for(var P=S.key,E=x;E!==null;){if(E.key===P){if(P=S.type,P===fl){if(E.tag===7){n(b,E.sibling),x=o(E,S.props.children),x.return=b,b=x;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===as&&L_(P)===E.type){n(b,E.sibling),x=o(E,S.props),x.ref=Fu(b,E,S),x.return=b,b=x;break e}n(b,E);break}else t(b,E);E=E.sibling}S.type===fl?(x=pa(S.props.children,b.mode,k,S.key),x.return=b,b=x):(k=vp(S.type,S.key,S.props,null,b.mode,k),k.ref=Fu(b,x,S),k.return=b,b=k)}return a(b);case cl:e:{for(E=S.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(b,x.sibling),x=o(x,S.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=Ug(S,b.mode,k),x.return=b,b=x}return a(b);case as:return E=S._init,A(b,x,E(S._payload),k)}if(rc(S))return v(b,x,S,k);if(Mu(S))return y(b,x,S,k);Ld(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(b,x.sibling),x=o(x,S),x.return=b,b=x):(n(b,x),x=Fg(S,b.mode,k),x.return=b,b=x),a(b)):n(b,x)}return A}var zl=sC(!0),aC=sC(!1),Yp=Ps(null),Xp=null,xl=null,O2=null;function L2(){O2=xl=Xp=null}function M2(e){var t=Yp.current;Yt(Yp),e._currentValue=t}function Xv(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 Pl(e,t){Xp=e,O2=xl=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(O2!==e)if(e={context:e,memoizedValue:t,next:null},xl===null){if(Xp===null)throw Error(me(308));xl=e,Xp.dependencies={lanes:0,firstContext:e}}else xl=xl.next=e;return t}var sa=null;function N2(e){sa===null?sa=[e]:sa.push(e)}function lC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,N2(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(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 ls=!1;function B2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uC(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 bs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,St&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return o=r.interleaved,o===null?(t.next=t,N2(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function fp(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,b2(e,n)}}function M_(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 Zp(e,t,n,r){var o=e.updateQueue;ls=!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,w=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(m=t,w=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(w,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,m=typeof v=="function"?v.call(w,h,m):v,m==null)break e;h=un({},h,m);break e;case 2:ls=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=w,c=h):p=p.next=w,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);ba|=a,e.lanes=a,e.memoizedState=h}}function N_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Mg.transition;Mg.transition={};try{e(!1),t()}finally{Nt=n,Mg.transition=r}}function AC(){return Po().memoizedState}function AM(e,t,n){var r=Ss(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},RC(e))kC(t,n);else if(n=lC(e,t,n,r),n!==null){var o=br();Qo(n,e,r,o),TC(n,t,r)}}function RM(e,t,n){var r=Ss(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(RC(e))kC(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,N2(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=lC(e,t,o,r),n!==null&&(o=br(),Qo(n,e,r,o),TC(n,t,r))}}function RC(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function kC(e,t){gc=Jp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function TC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,b2(e,n)}}var eh={readContext:Do,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},kM={readContext:Do,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Do,useEffect:I_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pp(4194308,4,bC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pp(4194308,4,e,t)},useInsertionEffect:function(e,t){return pp(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=AM.bind(null,ln,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:B_,useDebugValue:W2,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=B_(!1),t=e[0];return e=CM.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ln,o=li();if(en){if(n===void 0)throw Error(me(407));n=n()}else{if(n=t(),Wn===null)throw Error(me(349));wa&30||pC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,I_(mC.bind(null,r,i,e),[e]),r.flags|=2048,jc(9,hC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=li(),t=Wn.identifierPrefix;if(en){var n=Ni,r=Mi;n=(r&~(1<<32-Zo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uc++,0")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=u);break}}}finally{vg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nc(e):""}function tL(e){switch(e.tag){case 5:return nc(e.type);case 16:return nc("Lazy");case 13:return nc("Suspense");case 19:return nc("SuspenseList");case 0:case 2:case 15:return e=yg(e.type,!1),e;case 11:return e=yg(e.type.render,!1),e;case 1:return e=yg(e.type,!0),e;default:return""}}function Ev(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 fl:return"Fragment";case cl:return"Portal";case bv:return"Profiler";case m2:return"StrictMode";case _v:return"Suspense";case Sv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case a5:return(e.displayName||"Context")+".Consumer";case s5:return(e._context.displayName||"Context")+".Provider";case g2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case v2:return t=e.displayName||null,t!==null?t:Ev(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return Ev(e(t))}catch{}}return null}function nL(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 Ev(t);case 8:return t===m2?"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 u5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rL(e){var t=u5(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 Sd(e){e._valueTracker||(e._valueTracker=rL(e))}function c5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=u5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bp(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 Cv(e,t){var n=t.checked;return un({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function t_(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 f5(e,t){t=t.checked,t!=null&&h2(e,"checked",t,!1)}function Av(e,t){f5(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")?Rv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rv(e,t.type,Rs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function n_(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 Rv(e,t,n){(t!=="number"||Bp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rc=Array.isArray;function Rl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ed.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fc={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},oL=["Webkit","ms","Moz","O"];Object.keys(fc).forEach(function(e){oL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fc[t]=fc[e]})});function m5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fc.hasOwnProperty(e)&&fc[e]?(""+t).trim():t+"px"}function g5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=m5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var iL=un({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 Dv(e,t){if(t){if(iL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function Pv(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 Ov=null;function y2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lv=null,kl=null,Tl=null;function i_(e){if(e=lf(e)){if(typeof Lv!="function")throw Error(me(280));var t=e.stateNode;t&&(t=Ah(t),Lv(e.stateNode,e.type,t))}}function v5(e){kl?Tl?Tl.push(e):Tl=[e]:kl=e}function y5(){if(kl){var e=kl,t=Tl;if(Tl=kl=null,i_(e),t)for(e=0;e>>=0,e===0?32:31-(gL(e)/vL|0)|0}var Cd=64,Ad=4194304;function oc(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 Up(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=oc(u):(i&=a,i!==0&&(r=oc(i)))}else a=n&~o,a!==0?r=oc(a):i!==0&&(r=oc(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 sf(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 bL(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=pc),h_=" ",m_=!1;function $5(e,t){switch(e){case"keyup":return YL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dl=!1;function ZL(e,t){switch(e){case"compositionend":return F5(t);case"keypress":return t.which!==32?null:(m_=!0,h_);case"textInput":return e=t.data,e===h_&&m_?null:e;default:return null}}function QL(e,t){if(dl)return e==="compositionend"||!A2&&$5(e,t)?(e=B5(),up=S2=hs=null,dl=!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=x_(n)}}function V5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function W5(){for(var e=window,t=Bp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bp(e.document)}return t}function R2(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 aN(e){var t=W5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&V5(n.ownerDocument.documentElement,n)){if(r!==null&&R2(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=w_(n,i);var a=w_(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,pl=null,Fv=null,mc=null,Uv=!1;function b_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uv||pl==null||pl!==Bp(r)||(r=pl,"selectionStart"in r&&R2(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}),mc&&Nc(mc,r)||(mc=r,r=Vp(Fv,"onSelect"),0gl||(e.current=qv[gl],qv[gl]=null,gl--)}function Ht(e,t){gl++,qv[gl]=e.current,e.current=t}var ks={},pr=Ps(ks),Dr=Ps(!1),ya=ks;function Fl(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 Hp(){Yt(Dr),Yt(pr)}function k_(e,t,n){if(pr.current!==ks)throw Error(me(168));Ht(pr,t),Ht(Dr,n)}function J5(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(me(108,nL(e)||"Unknown",o));return un({},n,r)}function qp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ks,ya=pr.current,Ht(pr,e),Ht(Dr,Dr.current),!0}function T_(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=J5(e,t,ya),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(pr),Ht(pr,e)):Yt(Dr),Ht(Dr,n)}var Oi=null,Rh=!1,Og=!1;function eC(e){Oi===null?Oi=[e]:Oi.push(e)}function xN(e){Rh=!0,eC(e)}function Os(){if(!Og&&Oi!==null){Og=!0;var e=0,t=Mt;try{var n=Oi;for(Mt=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<$?(H=L,L=null):H=L.sibling;var I=m(b,L,S[$],k);if(I===null){L===null&&(L=H);break}e&&L&&I.alternate===null&&t(b,L),x=i(I,x,$),E===null?P=I:E.sibling=I,E=I,L=H}if($===S.length)return n(b,L),en&&Qs(b,$),P;if(L===null){for(;$$?(H=L,L=null):H=L.sibling;var X=m(b,L,I.value,k);if(X===null){L===null&&(L=H);break}e&&L&&X.alternate===null&&t(b,L),x=i(X,x,$),E===null?P=X:E.sibling=X,E=X,L=H}if(I.done)return n(b,L),en&&Qs(b,$),P;if(L===null){for(;!I.done;$++,I=S.next())I=h(b,I.value,k),I!==null&&(x=i(I,x,$),E===null?P=I:E.sibling=I,E=I);return en&&Qs(b,$),P}for(L=r(b,L);!I.done;$++,I=S.next())I=w(L,b,$,I.value,k),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?$:I.key),x=i(I,x,$),E===null?P=I:E.sibling=I,E=I);return e&&L.forEach(function(se){return t(b,se)}),en&&Qs(b,$),P}function A(b,x,S,k){if(typeof S=="object"&&S!==null&&S.type===fl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case _d:e:{for(var P=S.key,E=x;E!==null;){if(E.key===P){if(P=S.type,P===fl){if(E.tag===7){n(b,E.sibling),x=o(E,S.props.children),x.return=b,b=x;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ls&&O_(P)===E.type){n(b,E.sibling),x=o(E,S.props),x.ref=Fu(b,E,S),x.return=b,b=x;break e}n(b,E);break}else t(b,E);E=E.sibling}S.type===fl?(x=pa(S.props.children,b.mode,k,S.key),x.return=b,b=x):(k=vp(S.type,S.key,S.props,null,b.mode,k),k.ref=Fu(b,x,S),k.return=b,b=k)}return a(b);case cl:e:{for(E=S.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(b,x.sibling),x=o(x,S.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=Ug(S,b.mode,k),x.return=b,b=x}return a(b);case ls:return E=S._init,A(b,x,E(S._payload),k)}if(rc(S))return v(b,x,S,k);if(Nu(S))return y(b,x,S,k);Ld(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(b,x.sibling),x=o(x,S),x.return=b,b=x):(n(b,x),x=Fg(S,b.mode,k),x.return=b,b=x),a(b)):n(b,x)}return A}var zl=oC(!0),iC=oC(!1),Yp=Ps(null),Xp=null,xl=null,P2=null;function O2(){P2=xl=Xp=null}function L2(e){var t=Yp.current;Yt(Yp),e._currentValue=t}function Yv(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 Pl(e,t){Xp=e,P2=xl=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(P2!==e)if(e={context:e,memoizedValue:t,next:null},xl===null){if(Xp===null)throw Error(me(308));xl=e,Xp.dependencies={lanes:0,firstContext:e}}else xl=xl.next=e;return t}var sa=null;function N2(e){sa===null?sa=[e]:sa.push(e)}function sC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,N2(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(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 M2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aC(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,St&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return o=r.interleaved,o===null?(t.next=t,N2(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function fp(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,w2(e,n)}}function L_(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 Zp(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,w=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(m=t,w=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(w,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,m=typeof v=="function"?v.call(w,h,m):v,m==null)break e;h=un({},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 w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=w,c=h):p=p.next=w,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);ba|=a,e.lanes=a,e.memoizedState=h}}function N_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ng.transition;Ng.transition={};try{e(!1),t()}finally{Mt=n,Ng.transition=r}}function EC(){return Po().memoizedState}function SN(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CC(e))AC(t,n);else if(n=sC(e,t,n,r),n!==null){var o=br();Qo(n,e,r,o),RC(n,t,r)}}function EN(e,t,n){var r=Es(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CC(e))AC(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,N2(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=sC(e,t,o,r),n!==null&&(o=br(),Qo(n,e,r,o),RC(n,t,r))}}function CC(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function AC(e,t){gc=Jp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w2(e,n)}}var eh={readContext:Do,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},CN={readContext:Do,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Do,useEffect:B_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pp(4194308,4,xC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pp(4194308,4,e,t)},useInsertionEffect:function(e,t){return pp(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=SN.bind(null,ln,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:M_,useDebugValue:V2,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=M_(!1),t=e[0];return e=_N.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ln,o=li();if(en){if(n===void 0)throw Error(me(407));n=n()}else{if(n=t(),Wn===null)throw Error(me(349));wa&30||fC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,B_(pC.bind(null,r,i,e),[e]),r.flags|=2048,jc(9,dC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=li(),t=Wn.identifierPrefix;if(en){var n=Mi,r=Ni;n=(r&~(1<<32-Zo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uc++,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[Ic]=r,FC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ov(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;oWl&&(t.flags|=128,r=!0,Uu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Qp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return cr(t),null}else 2*En()-i.renderingStartTime>Wl&&n!==1073741824&&(t.flags|=128,r=!0,Uu(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=En(),t.sibling=null,n=an.current,qt(an,r?n&1|2:n&1),t):(cr(t),null);case 22:case 23:return X2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(cr(t),t.subtreeFlags&6&&(t.flags|=8192)):cr(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function BM(e,t){switch(D2(t),t.tag){case 1:return Pr(t.type)&&qp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jl(),Yt(Dr),Yt(pr),F2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $2(t),null;case 13:if(Yt(an),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));Ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(an),null;case 4:return jl(),null;case 10:return M2(t.type._context),null;case 22:case 23:return X2(),null;case 24:return null;default:return null}}var Nd=!1,dr=!1,IM=typeof WeakSet=="function"?WeakSet:Set,De=null;function wl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){yn(e,t,r)}else n.current=null}function i1(e,t,n){try{n()}catch(r){yn(e,t,r)}}var K_=!1;function $M(e,t){if(jv=zp,e=H5(),k2(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 w;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),(w=h.firstChild)!==null;)m=h,h=w;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(w=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=w}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vv={focusedElem:e,selectionRange:n},zp=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,A=v.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:qo(t.type,y),A);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(k){yn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return v=K_,K_=!1,v}function vc(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&&i1(t,n,i)}o=o.next}while(o!==r)}}function Dh(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 s1(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 jC(e){var t=e.alternate;t!==null&&(e.alternate=null,jC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fi],delete t[Ic],delete t[Hv],delete t[wM],delete t[bM])),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 VC(e){return e.tag===5||e.tag===3||e.tag===4}function Y_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VC(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 a1(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=Wp));else if(r!==4&&(e=e.child,e!==null))for(a1(e,t,n),e=e.sibling;e!==null;)a1(e,t,n),e=e.sibling}function l1(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(l1(e,t,n),e=e.sibling;e!==null;)l1(e,t,n),e=e.sibling}var er=null,Ho=!1;function ns(e,t,n){for(n=n.child;n!==null;)WC(e,t,n),n=n.sibling}function WC(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(_h,n)}catch{}switch(n.tag){case 5:dr||wl(n,t);case 6:var r=er,o=Ho;er=null,ns(e,t,n),er=r,Ho=o,er!==null&&(Ho?(e=er,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):er.removeChild(n.stateNode));break;case 18:er!==null&&(Ho?(e=er,n=n.stateNode,e.nodeType===8?Pg(e.parentNode,n):e.nodeType===1&&Pg(e,n),Oc(e)):Pg(er,n.stateNode));break;case 4:r=er,o=Ho,er=n.stateNode.containerInfo,Ho=!0,ns(e,t,n),er=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!dr&&(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)&&i1(n,t,a),o=o.next}while(o!==r)}ns(e,t,n);break;case 1:if(!dr&&(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){yn(n,t,u)}ns(e,t,n);break;case 21:ns(e,t,n);break;case 22:n.mode&1?(dr=(r=dr)||n.memoizedState!==null,ns(e,t,n),dr=r):ns(e,t,n);break;default:ns(e,t,n)}}function X_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new IM),t.forEach(function(r){var o=GM.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=En()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UM(r/1960))-r,10e?16:e,hs===null)var r=!1;else{if(e=hs,hs=null,rh=0,St&6)throw Error(me(331));var o=St;for(St|=4,De=e.current;De!==null;){var i=De,a=i.child;if(De.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cEn()-K2?da(e,0):G2|=n),Or(e,t)}function QC(e,t){t===0&&(e.mode&1?(t=Ad,Ad<<=1,!(Ad&130023424)&&(Ad=4194304)):t=1);var n=br();e=Fi(e,t),e!==null&&(sf(e,t,n),Or(e,n))}function HM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QC(e,n)}function GM(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}r!==null&&r.delete(t),QC(e,n)}var JC;JC=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,MM(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&rC(t,Kp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hp(e,t),e=t.pendingProps;var o=Fl(t,pr.current);Pl(t,n),o=z2(null,t,r,e,o,n);var i=j2();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,Hp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,B2(t),o.updater=Th,t.stateNode=o,o._reactInternals=t,Qv(t,r,e,n),t=t1(null,t,r,!0,i,n)):(t.tag=0,en&&i&&T2(t),xr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hp(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=YM(r),e=qo(r,e),o){case 0:t=e1(null,t,r,e,n);break e;case 1:t=q_(null,t,r,e,n);break e;case 11:t=V_(null,t,r,e,n);break e;case 14:t=W_(null,t,r,qo(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),e1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),q_(e,t,r,o,n);case 3:e:{if(BC(t),e===null)throw Error(me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,uC(e,t),Zp(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=Vl(Error(me(423)),t),t=H_(e,t,r,n,o);break e}else if(r!==o){o=Vl(Error(me(424)),t),t=H_(e,t,r,n,o);break e}else for(Xr=ws(t.stateNode.containerInfo.firstChild),Zr=t,en=!0,Yo=null,n=aC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ul(),r===o){t=Ui(e,t,n);break e}xr(e,t,r,n)}t=t.child}return t;case 5:return cC(t),e===null&&Yv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Wv(r,o)?a=null:i!==null&&Wv(r,i)&&(t.flags|=32),NC(e,t),xr(e,t,a,n),t.child;case 6:return e===null&&Yv(t),null;case 13:return IC(e,t,n);case 4:return I2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zl(t,null,r,n):xr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),V_(e,t,r,o,n);case 7:return xr(e,t,t.pendingProps,n),t.child;case 8:return xr(e,t,t.pendingProps.children,n),t.child;case 12:return xr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,qt(Yp,r._currentValue),r._currentValue=a,i!==null)if(Jo(i.value,a)){if(i.children===o.children&&!Dr.current){t=Ui(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),Xv(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(me(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Xv(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}xr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pl(t,n),o=Do(o),r=r(o),t.flags|=1,xr(e,t,r,n),t.child;case 14:return r=t.type,o=qo(r,t.pendingProps),o=qo(r.type,o),W_(e,t,r,o,n);case 15:return LC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),hp(e,t),t.tag=1,Pr(r)?(e=!0,Hp(t)):e=!1,Pl(t,n),DC(t,r,o),Qv(t,r,o,n),t1(null,t,r,!0,e,n);case 19:return $C(e,t,n);case 22:return MC(e,t,n)}throw Error(me(156,t.tag))};function eA(e,t){return R5(e,t)}function KM(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 KM(e,t,n,r)}function Q2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YM(e){if(typeof e=="function")return Q2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===v2)return 11;if(e===y2)return 14}return 2}function Es(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 vp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Q2(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fl:return pa(n.children,o,i,t);case g2:a=8,o|=8;break;case _v:return e=Ao(12,n,t,o|2),e.elementType=_v,e.lanes=i,e;case Sv:return e=Ao(13,n,t,o),e.elementType=Sv,e.lanes=i,e;case Ev:return e=Ao(19,n,t,o),e.elementType=Ev,e.lanes=i,e;case c5:return Oh(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case l5:a=10;break e;case u5:a=9;break e;case v2:a=11;break e;case y2:a=14;break e;case as:a=16,r=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pa(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function Oh(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=c5,e.lanes=n,e.stateNode={isHidden:!1},e}function Fg(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Ug(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 XM(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=wg(0),this.expirationTimes=wg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function J2(e,t,n,r,o,i,a,u,c){return e=new XM(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},B2(i),e}function ZM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oA)}catch(e){console.error(e)}}oA(),o5.exports=ro;var Ih=o5.exports;const _l=l2(Ih),nN=qE({__proto__:null,default:_l},[Ih]);var oS=Ih;wv.createRoot=oS.createRoot,wv.hydrateRoot=oS.hydrateRoot;var iA={};function rN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var oN=rN,it=oN;function iN(e){return!!e&&typeof e.then=="function"}var Kt=iN;function sN(e,t){if(e!=null)return e;throw it(t??"Got unexpected null or undefined")}var tn=sN;function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class $h{getValue(){throw it("BaseLoadable")}toPromise(){throw it("BaseLoadable")}valueMaybe(){throw it("BaseLoadable")}valueOrThrow(){throw it(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw it("BaseLoadable")}promiseOrThrow(){throw it(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw it("BaseLoadable")}errorOrThrow(){throw it(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw it("BaseLoadable")}}class aN extends $h{constructor(t){super(),et(this,"state","hasValue"),et(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)?Sa(n):ql(n)?n:cf(n)}catch(n){return Kt(n)?Sa(n.next(()=>this.map(t))):Fh(n)}}}class lN extends $h{constructor(t){super(),et(this,"state","hasError"),et(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 sA extends $h{constructor(t){super(),et(this,"state","loading"),et(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 Sa(this.contents.then(n=>{const r=t(n);if(ql(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 cf(e){return Object.freeze(new aN(e))}function Fh(e){return Object.freeze(new lN(e))}function Sa(e){return Object.freeze(new sA(e))}function aA(){return Object.freeze(new sA(new Promise(()=>{})))}function uN(e){return e.every(t=>t.state==="hasValue")?cf(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Fh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Sa(Promise.all(e.map(t=>t.contents)))}function lA(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>ql(o)?o:Kt(o)?Sa(o):cf(o)),r=uN(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function ql(e){return e instanceof $h}const cN={of:e=>Kt(e)?Sa(e):ql(e)?e:cf(e),error:e=>Fh(e),loading:()=>aA(),all:lA,isLoadable:ql};var Da={loadableWithValue:cf,loadableWithError:Fh,loadableWithPromise:Sa,loadableLoading:aA,loadableAll:lA,isLoadable:ql,RecoilLoadable:cN},fN=Da.loadableWithValue,dN=Da.loadableWithError,pN=Da.loadableWithPromise,hN=Da.loadableLoading,mN=Da.loadableAll,gN=Da.isLoadable,vN=Da.RecoilLoadable,ff=Object.freeze({__proto__:null,loadableWithValue:fN,loadableWithError:dN,loadableWithPromise:pN,loadableLoading:hN,loadableAll:mN,isLoadable:gN,RecoilLoadable:vN});const p1={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 yN(e,t){var n,r;const o=(n=iA[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 it(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function xN(e,t){var n;const r=(n=iA[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function wN(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(yN("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{p1.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),xN("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{p1.RECOIL_GKS_ENABLED.add(n)})}))}wN();var lu=p1;function Uh(e){return lu.RECOIL_GKS_ENABLED.has(e)}Uh.setPass=e=>{lu.RECOIL_GKS_ENABLED.add(e)};Uh.setFail=e=>{lu.RECOIL_GKS_ENABLED.delete(e)};Uh.clear=()=>{lu.RECOIL_GKS_ENABLED.clear()};var Ft=Uh;function bN(e,t,{error:n}={}){return null}var _N=bN,ry=_N,zg,jg,Vg;const SN=(zg=Ze.createMutableSource)!==null&&zg!==void 0?zg:Ze.unstable_createMutableSource,uA=(jg=Ze.useMutableSource)!==null&&jg!==void 0?jg:Ze.unstable_useMutableSource,cA=(Vg=Ze.useSyncExternalStore)!==null&&Vg!==void 0?Vg:Ze.unstable_useSyncExternalStore;function EN(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=Ze.__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 CN(){return Ft("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ft("recoil_sync_external_store")&&cA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ft("recoil_mutable_source")&&uA!=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 AN(){return!1}var df={createMutableSource:SN,useMutableSource:uA,useSyncExternalStore:cA,currentRendererSupportsUseSyncExternalStore:EN,reactMode:CN,isFastRefreshEnabled:AN};class oy{constructor(t){et(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class fA extends oy{}class dA extends oy{}function RN(e){return e instanceof fA||e instanceof dA}var zh={AbstractRecoilValue:oy,RecoilState:fA,RecoilValueReadOnly:dA,isRecoilValue:RN},kN=zh.AbstractRecoilValue,TN=zh.RecoilState,DN=zh.RecoilValueReadOnly,PN=zh.isRecoilValue,Hl=Object.freeze({__proto__:null,AbstractRecoilValue:kN,RecoilState:TN,RecoilValueReadOnly:DN,isRecoilValue:PN});function ON(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var jh=ON;class pA{}const LN=new pA,Ea=new Map,iy=new Map;function MN(e){return jh(e,t=>tn(iy.get(t)))}function NN(e){if(Ea.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 Ig(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 kN=typeof WeakMap=="function"?WeakMap:Map;function TC(e,t,n){n=Bi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nh||(nh=!0,l1=r),Qv(e,t)},n}function DC(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 F_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kN;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=jN.bind(null,e,t,n),t.then(e,e))}function U_(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 z_(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 TN=Vi.ReactCurrentOwner,Tr=!1;function xr(e,t,n,r){t.child=e===null?iC(t,null,n,r):zl(t,e.child,n,r)}function j_(e,t,n,r,o){n=n.render;var i=t.ref;return Pl(t,o),r=U2(e,t,n,r,i,o),n=z2(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ui(e,t,o)):(en&&n&&k2(t),t.flags|=1,xr(e,t,r,o),t.child)}function V_(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Z2(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,PC(e,t,i,r,o)):(e=vp(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:Nc,n(a,r)&&e.ref===t.ref)return Ui(e,t,o)}return t.flags|=1,e=Cs(i,r),e.ref=t.ref,e.return=t,t.child=e}function PC(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Nc(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,Ui(e,t,o)}return Jv(e,t,n,r,o)}function OC(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(bl,Gr),Gr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ht(bl,Gr),Gr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ht(bl,Gr),Gr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ht(bl,Gr),Gr|=r;return xr(e,t,o,n),t.child}function LC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jv(e,t,n,r,o){var i=Pr(n)?ya:pr.current;return i=Fl(t,i),Pl(t,o),n=U2(e,t,n,r,i,o),r=z2(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ui(e,t,o)):(en&&r&&k2(t),t.flags|=1,xr(e,t,n,o),t.child)}function W_(e,t,n,r,o){if(Pr(n)){var i=!0;qp(t)}else i=!1;if(Pl(t,o),t.stateNode===null)hp(e,t),kC(t,n,r),Zv(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)?ya:pr.current,f=Fl(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)&&$_(t,a,r,f),us=!1;var m=t.memoizedState;a.state=m,Zp(t,r,a,o),c=t.memoizedState,u!==r||m!==c||Dr.current||us?(typeof p=="function"&&(Xv(t,n,p,r),c=t.memoizedState),(u=us||I_(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,aC(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)?ya:pr.current,c=Fl(t,c));var w=n.getDerivedStateFromProps;(p=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==h||m!==c)&&$_(t,a,r,c),us=!1,m=t.memoizedState,a.state=m,Zp(t,r,a,o);var v=t.memoizedState;u!==h||m!==v||Dr.current||us?(typeof w=="function"&&(Xv(t,n,w,r),v=t.memoizedState),(f=us||I_(t,n,f,r,m,v,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return e1(e,t,n,r,i,o)}function e1(e,t,n,r,o,i){LC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&T_(t,n,!1),Ui(e,t,i);r=t.stateNode,TN.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=zl(t,e.child,null,i),t.child=zl(t,null,u,i)):xr(e,t,u,i),t.memoizedState=r.state,o&&T_(t,n,!0),t.child}function NC(e){var t=e.stateNode;t.pendingContext?k_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&k_(e,t.context,!1),B2(e,t.containerInfo)}function H_(e,t,n,r,o){return Ul(),D2(o),t.flags|=256,xr(e,t,n,r),t.child}var t1={dehydrated:null,treeContext:null,retryLane:0};function n1(e){return{baseLanes:e,cachePool:null,transitions:null}}function MC(e,t,n){var r=t.pendingProps,o=an.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(an,o&1),e===null)return Kv(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=Oh(a,r,0,null),e=pa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=n1(n),t.memoizedState=t1,e):W2(t,a));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return DN(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=pa(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?n1(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=t1,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 W2(e,t){return t=Oh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nd(e,t,n,r){return r!==null&&D2(r),zl(t,e.child,null,n),e=W2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function DN(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Ig(Error(me(422))),Nd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Oh({mode:"visible",children:r.children},o,0,null),i=pa(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&zl(t,e.child,null,a),t.child.memoizedState=n1(a),t.memoizedState=t1,i);if(!(t.mode&1))return Nd(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(me(419)),r=Ig(i,r,void 0),Nd(e,t,a,r)}if(u=(a&e.childLanes)!==0,Tr||u){if(r=Wn,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,Fi(e,o),Qo(r,e,o,-1))}return X2(),r=Ig(Error(me(421))),Nd(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=VN.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++]=xa,Ni=e.id,Mi=e.overflow,xa=t),t=W2(t,r.children),t.flags|=4096,t)}function q_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yv(e.return,t,n)}function $g(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 BC(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xr(e,t,r.children,n),r=an.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&&q_(e,n,t);else if(e.tag===19)q_(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(an,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&&Qp(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$g(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&&Qp(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$g(t,!0,n,null,i);break;case"together":$g(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ba|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(me(153));if(t.child!==null){for(e=t.child,n=Cs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function PN(e,t,n){switch(t.tag){case 3:NC(t),Ul();break;case 5:lC(t);break;case 1:Pr(t.type)&&qp(t);break;case 4:B2(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ht(Yp,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ht(an,an.current&1),t.flags|=128,null):n&t.child.childLanes?MC(e,t,n):(Ht(an,an.current&1),e=Ui(e,t,n),e!==null?e.sibling:null);Ht(an,an.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return BC(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ht(an,an.current),r)break;return null;case 22:case 23:return t.lanes=0,OC(e,t,n)}return Ui(e,t,n)}var IC,r1,$C,FC;IC=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}};r1=function(){};$C=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,aa(pi.current);var i=null;switch(n){case"input":o=Cv(e,o),r=Cv(e,r),i=[];break;case"select":o=un({},o,{value:void 0}),r=un({},r,{value:void 0}),i=[];break;case"textarea":o=kv(e,o),r=kv(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wp)}Dv(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"&&(Rc.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"&&(Rc.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)}};FC=function(e,t,n,r){n!==r&&(t.flags|=4)};function Uu(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 cr(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 ON(e,t,n){var r=t.pendingProps;switch(T2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cr(t),null;case 1:return Pr(t.type)&&Hp(),cr(t),null;case 3:return r=t.stateNode,jl(),Yt(Dr),Yt(pr),$2(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Od(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yo!==null&&(f1(Yo),Yo=null))),r1(e,t),cr(t),null;case 5:I2(t);var o=aa(Fc.current);if(n=t.type,e!==null&&t.stateNode!=null)$C(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(me(166));return cr(t),null}if(e=aa(pi.current),Od(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fi]=t,r[Ic]=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[Ic]=r,IC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Pv(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;oWl&&(t.flags|=128,r=!0,Uu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Qp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return cr(t),null}else 2*En()-i.renderingStartTime>Wl&&n!==1073741824&&(t.flags|=128,r=!0,Uu(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=En(),t.sibling=null,n=an.current,Ht(an,r?n&1|2:n&1),t):(cr(t),null);case 22:case 23:return Y2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(cr(t),t.subtreeFlags&6&&(t.flags|=8192)):cr(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function LN(e,t){switch(T2(t),t.tag){case 1:return Pr(t.type)&&Hp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jl(),Yt(Dr),Yt(pr),$2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return I2(t),null;case 13:if(Yt(an),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));Ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(an),null;case 4:return jl(),null;case 10:return L2(t.type._context),null;case 22:case 23:return Y2(),null;case 24:return null;default:return null}}var Md=!1,dr=!1,NN=typeof WeakSet=="function"?WeakSet:Set,De=null;function wl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){yn(e,t,r)}else n.current=null}function o1(e,t,n){try{n()}catch(r){yn(e,t,r)}}var G_=!1;function MN(e,t){if(zv=zp,e=W5(),R2(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 w;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),(w=h.firstChild)!==null;)m=h,h=w;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(w=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=w}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(jv={focusedElem:e,selectionRange:n},zp=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,A=v.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ho(t.type,y),A);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(k){yn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return v=G_,G_=!1,v}function vc(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&&o1(t,n,i)}o=o.next}while(o!==r)}}function Dh(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 i1(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 UC(e){var t=e.alternate;t!==null&&(e.alternate=null,UC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fi],delete t[Ic],delete t[Hv],delete t[vN],delete t[yN])),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 zC(e){return e.tag===5||e.tag===3||e.tag===4}function K_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zC(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 s1(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=Wp));else if(r!==4&&(e=e.child,e!==null))for(s1(e,t,n),e=e.sibling;e!==null;)s1(e,t,n),e=e.sibling}function a1(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(a1(e,t,n),e=e.sibling;e!==null;)a1(e,t,n),e=e.sibling}var er=null,qo=!1;function rs(e,t,n){for(n=n.child;n!==null;)jC(e,t,n),n=n.sibling}function jC(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(_h,n)}catch{}switch(n.tag){case 5:dr||wl(n,t);case 6:var r=er,o=qo;er=null,rs(e,t,n),er=r,qo=o,er!==null&&(qo?(e=er,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):er.removeChild(n.stateNode));break;case 18:er!==null&&(qo?(e=er,n=n.stateNode,e.nodeType===8?Pg(e.parentNode,n):e.nodeType===1&&Pg(e,n),Oc(e)):Pg(er,n.stateNode));break;case 4:r=er,o=qo,er=n.stateNode.containerInfo,qo=!0,rs(e,t,n),er=r,qo=o;break;case 0:case 11:case 14:case 15:if(!dr&&(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)&&o1(n,t,a),o=o.next}while(o!==r)}rs(e,t,n);break;case 1:if(!dr&&(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){yn(n,t,u)}rs(e,t,n);break;case 21:rs(e,t,n);break;case 22:n.mode&1?(dr=(r=dr)||n.memoizedState!==null,rs(e,t,n),dr=r):rs(e,t,n);break;default:rs(e,t,n)}}function Y_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NN),t.forEach(function(r){var o=WN.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=En()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*IN(r/1960))-r,10e?16:e,ms===null)var r=!1;else{if(e=ms,ms=null,rh=0,St&6)throw Error(me(331));var o=St;for(St|=4,De=e.current;De!==null;){var i=De,a=i.child;if(De.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cEn()-G2?da(e,0):q2|=n),Or(e,t)}function XC(e,t){t===0&&(e.mode&1?(t=Ad,Ad<<=1,!(Ad&130023424)&&(Ad=4194304)):t=1);var n=br();e=Fi(e,t),e!==null&&(sf(e,t,n),Or(e,n))}function VN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),XC(e,n)}function WN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}r!==null&&r.delete(t),XC(e,n)}var ZC;ZC=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,PN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&tC(t,Kp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hp(e,t),e=t.pendingProps;var o=Fl(t,pr.current);Pl(t,n),o=U2(null,t,r,e,o,n);var i=z2();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,qp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,M2(t),o.updater=Th,t.stateNode=o,o._reactInternals=t,Zv(t,r,e,n),t=e1(null,t,r,!0,i,n)):(t.tag=0,en&&i&&k2(t),xr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hp(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=qN(r),e=Ho(r,e),o){case 0:t=Jv(null,t,r,e,n);break e;case 1:t=W_(null,t,r,e,n);break e;case 11:t=j_(null,t,r,e,n);break e;case 14:t=V_(null,t,r,Ho(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),Jv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),W_(e,t,r,o,n);case 3:e:{if(NC(t),e===null)throw Error(me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,aC(e,t),Zp(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=Vl(Error(me(423)),t),t=H_(e,t,r,n,o);break e}else if(r!==o){o=Vl(Error(me(424)),t),t=H_(e,t,r,n,o);break e}else for(Xr=bs(t.stateNode.containerInfo.firstChild),Zr=t,en=!0,Yo=null,n=iC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ul(),r===o){t=Ui(e,t,n);break e}xr(e,t,r,n)}t=t.child}return t;case 5:return lC(t),e===null&&Kv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Vv(r,o)?a=null:i!==null&&Vv(r,i)&&(t.flags|=32),LC(e,t),xr(e,t,a,n),t.child;case 6:return e===null&&Kv(t),null;case 13:return MC(e,t,n);case 4:return B2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zl(t,null,r,n):xr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),j_(e,t,r,o,n);case 7:return xr(e,t,t.pendingProps,n),t.child;case 8:return xr(e,t,t.pendingProps.children,n),t.child;case 12:return xr(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(Yp,r._currentValue),r._currentValue=a,i!==null)if(Jo(i.value,a)){if(i.children===o.children&&!Dr.current){t=Ui(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),Yv(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(me(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Yv(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}xr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pl(t,n),o=Do(o),r=r(o),t.flags|=1,xr(e,t,r,n),t.child;case 14:return r=t.type,o=Ho(r,t.pendingProps),o=Ho(r.type,o),V_(e,t,r,o,n);case 15:return PC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ho(r,o),hp(e,t),t.tag=1,Pr(r)?(e=!0,qp(t)):e=!1,Pl(t,n),kC(t,r,o),Zv(t,r,o,n),e1(null,t,r,!0,e,n);case 19:return BC(e,t,n);case 22:return OC(e,t,n)}throw Error(me(156,t.tag))};function QC(e,t){return C5(e,t)}function HN(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 HN(e,t,n,r)}function Z2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qN(e){if(typeof e=="function")return Z2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===g2)return 11;if(e===v2)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 vp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Z2(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fl:return pa(n.children,o,i,t);case m2:a=8,o|=8;break;case bv:return e=Ao(12,n,t,o|2),e.elementType=bv,e.lanes=i,e;case _v:return e=Ao(13,n,t,o),e.elementType=_v,e.lanes=i,e;case Sv:return e=Ao(19,n,t,o),e.elementType=Sv,e.lanes=i,e;case l5:return Oh(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case s5:a=10;break e;case a5:a=9;break e;case g2:a=11;break e;case v2:a=14;break e;case ls:a=16,r=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pa(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function Oh(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=l5,e.lanes=n,e.stateNode={isHidden:!1},e}function Fg(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Ug(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 GN(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=wg(0),this.expirationTimes=wg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Q2(e,t,n,r,o,i,a,u,c){return e=new GN(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},M2(i),e}function KN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nA)}catch(e){console.error(e)}}nA(),n5.exports=ro;var Ih=n5.exports;const _l=a2(Ih),JN=VE({__proto__:null,default:_l},[Ih]);var rS=Ih;xv.createRoot=rS.createRoot,xv.hydrateRoot=rS.hydrateRoot;var rA={};function eM(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var tM=eM,it=tM;function nM(e){return!!e&&typeof e.then=="function"}var Kt=nM;function rM(e,t){if(e!=null)return e;throw it(t??"Got unexpected null or undefined")}var tn=rM;function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class $h{getValue(){throw it("BaseLoadable")}toPromise(){throw it("BaseLoadable")}valueMaybe(){throw it("BaseLoadable")}valueOrThrow(){throw it(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw it("BaseLoadable")}promiseOrThrow(){throw it(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw it("BaseLoadable")}errorOrThrow(){throw it(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw it("BaseLoadable")}}class oM extends $h{constructor(t){super(),et(this,"state","hasValue"),et(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)?Sa(n):Hl(n)?n:cf(n)}catch(n){return Kt(n)?Sa(n.next(()=>this.map(t))):Fh(n)}}}class iM extends $h{constructor(t){super(),et(this,"state","hasError"),et(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 oA extends $h{constructor(t){super(),et(this,"state","loading"),et(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 Sa(this.contents.then(n=>{const r=t(n);if(Hl(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 cf(e){return Object.freeze(new oM(e))}function Fh(e){return Object.freeze(new iM(e))}function Sa(e){return Object.freeze(new oA(e))}function iA(){return Object.freeze(new oA(new Promise(()=>{})))}function sM(e){return e.every(t=>t.state==="hasValue")?cf(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Fh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Sa(Promise.all(e.map(t=>t.contents)))}function sA(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Hl(o)?o:Kt(o)?Sa(o):cf(o)),r=sM(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Hl(e){return e instanceof $h}const aM={of:e=>Kt(e)?Sa(e):Hl(e)?e:cf(e),error:e=>Fh(e),loading:()=>iA(),all:sA,isLoadable:Hl};var Da={loadableWithValue:cf,loadableWithError:Fh,loadableWithPromise:Sa,loadableLoading:iA,loadableAll:sA,isLoadable:Hl,RecoilLoadable:aM},lM=Da.loadableWithValue,uM=Da.loadableWithError,cM=Da.loadableWithPromise,fM=Da.loadableLoading,dM=Da.loadableAll,pM=Da.isLoadable,hM=Da.RecoilLoadable,ff=Object.freeze({__proto__:null,loadableWithValue:lM,loadableWithError:uM,loadableWithPromise:cM,loadableLoading:fM,loadableAll:dM,isLoadable:pM,RecoilLoadable:hM});const d1={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 mM(e,t){var n,r;const o=(n=rA[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 it(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function gM(e,t){var n;const r=(n=rA[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function vM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(mM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{d1.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),gM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{d1.RECOIL_GKS_ENABLED.add(n)})}))}vM();var lu=d1;function Uh(e){return lu.RECOIL_GKS_ENABLED.has(e)}Uh.setPass=e=>{lu.RECOIL_GKS_ENABLED.add(e)};Uh.setFail=e=>{lu.RECOIL_GKS_ENABLED.delete(e)};Uh.clear=()=>{lu.RECOIL_GKS_ENABLED.clear()};var Ft=Uh;function yM(e,t,{error:n}={}){return null}var xM=yM,ny=xM,zg,jg,Vg;const wM=(zg=Ze.createMutableSource)!==null&&zg!==void 0?zg:Ze.unstable_createMutableSource,aA=(jg=Ze.useMutableSource)!==null&&jg!==void 0?jg:Ze.unstable_useMutableSource,lA=(Vg=Ze.useSyncExternalStore)!==null&&Vg!==void 0?Vg:Ze.unstable_useSyncExternalStore;function bM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=Ze.__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 _M(){return Ft("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ft("recoil_sync_external_store")&&lA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ft("recoil_mutable_source")&&aA!=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 SM(){return!1}var df={createMutableSource:wM,useMutableSource:aA,useSyncExternalStore:lA,currentRendererSupportsUseSyncExternalStore:bM,reactMode:_M,isFastRefreshEnabled:SM};class ry{constructor(t){et(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class uA extends ry{}class cA extends ry{}function EM(e){return e instanceof uA||e instanceof cA}var zh={AbstractRecoilValue:ry,RecoilState:uA,RecoilValueReadOnly:cA,isRecoilValue:EM},CM=zh.AbstractRecoilValue,AM=zh.RecoilState,RM=zh.RecoilValueReadOnly,kM=zh.isRecoilValue,ql=Object.freeze({__proto__:null,AbstractRecoilValue:CM,RecoilState:AM,RecoilValueReadOnly:RM,isRecoilValue:kM});function TM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var jh=TM;class fA{}const DM=new fA,Ea=new Map,oy=new Map;function PM(e){return jh(e,t=>tn(oy.get(t)))}function OM(e){if(Ea.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 BN(e){lu.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&NN(e.key),Ea.set(e.key,e);const t=e.set==null?new Hl.RecoilValueReadOnly(e.key):new Hl.RecoilState(e.key);return iy.set(e.key,t),t}class hA extends Error{}function IN(e){const t=Ea.get(e);if(t==null)throw new hA(`Missing definition for RecoilValue: "${e}""`);return t}function $N(e){return Ea.get(e)}const sh=new Map;function FN(e){var t;if(!Ft("recoil_memory_managament_2020"))return;const n=Ea.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Ea.delete(e),(r=mA(e))===null||r===void 0||r(),sh.delete(e)}}function UN(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?sh.delete(e):sh.set(e,t))}function mA(e){return sh.get(e)}var Ur={nodes:Ea,recoilValues:iy,registerNode:BN,getNode:IN,getNodeMaybe:$N,deleteNodeConfigIfPossible:FN,setConfigDeletionHandler:UN,getConfigDeletionHandler:mA,recoilValuesForKeys:MN,NodeMissingError:hA,DefaultValue:pA,DEFAULT_VALUE:LN};function zN(e,t){t()}var jN={enqueueExecution:zN};function VN(e,t){return t={exports:{}},e(t,t.exports),t.exports}var WN=VN(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,u=o/4,c={},f=function(F){return function(){return F}},p=n.hash=function(W){var F=typeof W>"u"?"undefined":t(W);if(F==="number")return W;F!=="string"&&(W+="");for(var ce=0,be=0,we=W.length;be>1&1431655765,F=(F&858993459)+(F>>2&858993459),F=F+(F>>4)&252645135,F+=F>>8,F+=F>>16,F&127},m=function(F,ce){return ce>>>F&i},w=function(F){return 1<=ce;)we[Ue--]=we[Ue];return we[ce]=be,we}for(var Be=0,$e=0,Ke=new Array(Ae+1);Be>>=1;return Ue[ce]=be,X(F,$e+1,Ue)},G=function(F,ce,be,we){for(var Ae=new Array(ce-1),Ue=0,Be=0,$e=0,Ke=we.length;$e1?q(F,this.hash,Ke):Ke[0]}var Et=we();return Et===c?this:(++Be.value,Q(F,be,this.hash,this,Ae,$(F,Ae,Ue,Et)))},re=function(F,ce,be,we,Ae,Ue,Be){var $e=this.mask,Ke=this.children,Et=m(be,Ae),Pn=w(Et),zt=v($e,Pn),On=$e&Pn,pn=On?Ke[zt]:E,so=pn._modify(F,ce,be+r,we,Ae,Ue,Be);if(pn===so)return this;var sr=pe(F,this),M=$e,B=void 0;if(On&&L(so)){if(M&=~Pn,!M)return E;if(Ke.length<=2&&se(Ke[zt^1]))return Ke[zt^1];B=A(sr,zt,Ke)}else if(!On&&!L(so)){if(Ke.length>=a)return H(F,Et,so,$e,Ke);M|=Pn,B=b(sr,zt,so,Ke)}else B=y(sr,zt,so,Ke);return sr?(this.mask=M,this.children=B,this):I(F,M,B)},he=function(F,ce,be,we,Ae,Ue,Be){var $e=this.size,Ke=this.children,Et=m(be,Ae),Pn=Ke[Et],zt=(Pn||E)._modify(F,ce,be+r,we,Ae,Ue,Be);if(Pn===zt)return this;var On=pe(F,this),pn=void 0;if(L(Pn)&&!L(zt))++$e,pn=y(On,Et,zt,Ke);else if(!L(Pn)&&L(zt)){if(--$e,$e<=u)return G(F,$e,Et,Ke);pn=y(On,Et,E,Ke)}else pn=y(On,Et,zt,Ke);return On?(this.size=$e,this.children=pn,this):X(F,$e,pn)};E._modify=function(W,F,ce,be,we,Ae,Ue){var Be=be();return Be===c?E:(++Ue.value,$(W,we,Ae,Be))};function U(W,F,ce,be,we){this._editable=W,this._edit=F,this._config=ce,this._root=be,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 ae=n.tryGetHash=function(W,F,ce,be){for(var we=be._root,Ae=0,Ue=be._config.keyEq;;)switch(we.type){case x:return Ue(ce,we.key)?we.value:W;case S:{if(F===we.hash)for(var Be=we.children,$e=0,Ke=Be.length;$e{n.set(o,t(r,o))}),n}var ah=XN;function ZN(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function QN(e){return{nodeDeps:ah(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:ah(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Wg(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 JN(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(Wg(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);Wg(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);Wg(e,t,m,f)}}}var pf={cloneGraph:QN,graph:ZN,saveDepsToStore:JN};let eB=0;const tB=()=>eB++;let nB=0;const rB=()=>nB++;let oB=0;const iB=()=>oB++;var Vh={getNextTreeStateVersion:tB,getNextStoreID:rB,getNextComponentID:iB};const{persistentMap:iS}=KN,{graph:sB}=pf,{getNextTreeStateVersion:gA}=Vh;function vA(){const e=gA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:iS(),nonvalidatedAtoms:iS()}}function aB(){const e=vA();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,sB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var yA={makeEmptyTreeState:vA,makeEmptyStoreState:aB,getNextTreeStateVersion:gA};class xA{}function lB(){return new xA}var Wh={RetentionZone:xA,retentionZone:lB};function uB(e,t){const n=new Set(e);return n.add(t),n}function cB(e,t){const n=new Set(e);return n.delete(t),n}function fB(e,t,n){const r=new Map(e);return r.set(t,n),r}function dB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function pB(e,t){const n=new Map(e);return n.delete(t),n}function hB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var wA={setByAddingToSet:uB,setByDeletingFromSet:cB,mapBySettingInMap:fB,mapByUpdatingInMap:dB,mapByDeletingFromMap:pB,mapByDeletingMultipleFromMap:hB};function*mB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ly=mB;function gB(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 bA=gB;const{getNode:hf,getNodeMaybe:vB,recoilValuesForKeys:sS}=Ur,{RetentionZone:aS}=Wh,{setByAddingToSet:yB}=wA,xB=Object.freeze(new Set);class wB extends Error{}function bB(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 aS)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 aS)a(n);else if(Array.isArray(n))for(const u of n)a(u)}}function uy(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=hf(n),a=bB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function _B(e,t,n){uy(e,e.getState().currentTree,t,n)}function SB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function EB(e,t,n){return uy(e,t,n,"get"),hf(n).get(e,t)}function _A(e,t,n){return hf(n).peek(e,t)}function CB(e,t,n){var r;const o=vB(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:yB(e.dirtyAtoms,t)}}function AB(e,t,n,r){const o=hf(n);if(o.set==null)throw new wB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return uy(e,t,n,"set"),i(e,t,r)}function RB(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=hf(n).nodeType;return bA({type:i},{loadable:()=>_A(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 sS((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,u;return{nodes:sS(ly(SA(e,t,new Set([n])),c=>c!==n)),components:jh((a=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&a!==void 0?a:[],([c])=>({name:c}))}}})}function SA(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:xB;for(const f of c)r.has(f)||o.push(f)}return r}var Ls={getNodeLoadable:EB,peekNodeLoadable:_A,setNodeValue:AB,initializeNode:_B,cleanUpNode:SB,setUnvalidatedAtomValue_DEPRECATED:CB,peekNodeInfo:RB,getDownstreamNodes:SA};let EA=null;function kB(e){EA=e}function TB(){var e;(e=EA)===null||e===void 0||e()}var CA={setInvalidateMemoizedSnapshot:kB,invalidateMemoizedSnapshot:TB};const{getDownstreamNodes:DB,getNodeLoadable:AA,setNodeValue:PB}=Ls,{getNextComponentID:OB}=Vh,{getNode:LB,getNodeMaybe:RA}=Ur,{DefaultValue:cy}=Ur,{reactMode:MB}=df,{AbstractRecoilValue:NB,RecoilState:BB,RecoilValueReadOnly:IB,isRecoilValue:$B}=Hl,{invalidateMemoizedSnapshot:FB}=CA;function UB(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=AA(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function zB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof cy?n.delete(o):n.set(o,r)}),n}function jB(e,t,{key:n},r){if(typeof r=="function"){const o=AA(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 it(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function VB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=jB(e,t,o,i),u=PB(e,t,o.key,a);for(const[c,f]of u.entries())h1(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;h1(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=RA(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 ry(`Unknown action ${n.type}`)}function h1(e,t,n){n.state==="hasValue"&&n.contents instanceof cy?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function kA(e,t){e.replaceState(n=>{const r=TA(n);for(const o of t)VB(e,r,o);return DA(e,r),FB(),r})}function qh(e,t){if(bc.length){const n=bc[bc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else kA(e,[t])}const bc=[];function WB(){const e=new Map;return bc.push(e),()=>{for(const[t,n]of e)kA(t,n);bc.pop()}}function TA(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function DA(e,t){const n=DB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=RA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function PA(e,t,n){qh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function qB(e,t,n){if(n instanceof cy)return PA(e,t,n);qh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function HB(e,t){qh(e,{type:"markModified",recoilValue:t})}function GB(e,t,n){qh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function KB(e,{key:t},n,r=null){const o=OB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=MB();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 YB(e,t){var n;const{currentTree:r}=e.getState(),o=LB(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var xi={RecoilValueReadOnly:IB,AbstractRecoilValue:NB,RecoilState:BB,getRecoilValueAsLoadable:UB,setRecoilValue:PA,setRecoilValueLoadable:qB,markRecoilValueModified:HB,setUnvalidatedRecoilValue:GB,subscribeToRecoilValue:KB,isRecoilValue:$B,applyAtomValueWrites:zB,batchStart:WB,writeLoadableToTreeState:h1,invalidateDownstreams:DA,copyTreeState:TA,refreshRecoilValue:YB};function XB(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 ZB=XB;const{cleanUpNode:QB}=Ls,{deleteNodeConfigIfPossible:JB,getNode:OA}=Ur,{RetentionZone:LA}=Wh,eI=12e4,MA=new Set;function NA(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 LA)for(const u of oI(n,a))o.add(u);else o.add(a);const i=tI(e,o);for(const a of i)rI(e,r,a)}function tI(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=nI(e,r,c,i,a);for(const v of p){var h;if(OA(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((h=n.retention.referenceCounts.get(v))!==null&&h!==void 0?h:0)>0){a.add(v);continue}if(BA(v).some(A=>n.retention.referenceCounts.get(A))){a.add(v);continue}const y=o.nodeToNodeSubscriptions.get(v);if(y&&ZB(y,A=>a.has(A))){a.add(v);continue}i.add(v),f.add(v)}const m=new Set;for(const v of f)for(const y of(w=o.nodeDeps.get(v))!==null&&w!==void 0?w:MA){var w;i.has(y)||m.add(y)}m.size&&u(m)}}function nI(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 rI(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;QB(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=BA(n);for(const c of o){var i;(i=r.retention.nodesRetainedByZone.get(c))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const c=a.nodeDeps.get(n);if(c!==void 0){a.nodeDeps.delete(n);for(const f of c){var u;(u=a.nodeToNodeSubscriptions.get(f))===null||u===void 0||u.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}JB(n)}function oI(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:MA}function BA(e){const t=OA(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof LA?[t]:t}function iI(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):NA(e,new Set([t]))}function sI(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?IA(e,t):o.set(t,i)}function IA(e,t){if(!Ft("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),iI(e,t)}function aI(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();NA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function lI(e){return e===void 0?"recoilRoot":e}var Pa={SUSPENSE_TIMEOUT_MS:eI,updateRetainCount:sI,updateRetainCountToZero:IA,releaseScheduledRetainablesNow:aI,retainedByOptionWithDefault:lI};const{unstable_batchedUpdates:uI}=_l;var cI={unstable_batchedUpdates:uI};const{unstable_batchedUpdates:fI}=cI;var dI={unstable_batchedUpdates:fI};const{batchStart:pI}=xi,{unstable_batchedUpdates:hI}=dI;let fy=hI||(e=>e());const mI=e=>{fy=e},gI=()=>fy,vI=e=>{fy(()=>{let t=()=>{};try{t=pI(),e()}finally{t()}})};var Hh={getBatcher:gI,setBatcher:mI,batchUpdates:vI};function*yI(e){for(const t of e)for(const n of t)yield n}var $A=yI;const FA=typeof Window>"u"||typeof window>"u",xI=e=>!FA&&(e===window||e instanceof Window),wI=typeof navigator<"u"&&navigator.product==="ReactNative";var Gh={isSSR:FA,isReactNative:wI,isWindow:xI};function bI(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 _I(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function SI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var EI={memoizeWithArgsHash:bI,memoizeOneWithArgsHash:_I,memoizeOneWithArgsHashAndInvalidation:SI};const{batchUpdates:m1}=Hh,{initializeNode:CI,peekNodeInfo:AI}=Ls,{graph:RI}=pf,{getNextStoreID:kI}=Vh,{DEFAULT_VALUE:TI,recoilValues:lS,recoilValuesForKeys:uS}=Ur,{AbstractRecoilValue:DI,getRecoilValueAsLoadable:PI,setRecoilValue:cS,setUnvalidatedRecoilValue:OI}=xi,{updateRetainCount:yp}=Pa,{setInvalidateMemoizedSnapshot:LI}=CA,{getNextTreeStateVersion:MI,makeEmptyStoreState:NI}=yA,{isSSR:BI}=Gh,{memoizeOneWithArgsHashAndInvalidation:II}=EI;class Kh{constructor(t,n){et(this,"_store",void 0),et(this,"_refCount",1),et(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),PI(this._store,r))),et(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),et(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 uS(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?lS.values():r.isInitialized===!0?uS($A([o,i])):ly(lS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),et(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),AI(this._store,this._store.getState().currentTree,r))),et(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new g1(this,m1);return r(o),o}),et(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new g1(this,m1);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:kI(),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=RI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw it("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)CI(this._store,r,"get"),yp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){BI||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 UA(e,t,n=!1){const r=e.getState(),o=n?MI():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(jh(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function $I(e){const t=new Kh(NI());return e!=null?t.map(e):t}const[fS,zA]=II((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 Kh(UA(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)});LI(zA);function FI(e,t="latest"){const n=fS(e,t);return n.isRetained()?n:(zA(),fS(e,t))}class g1 extends Kh{constructor(t,n){super(UA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),et(this,"_batch",void 0),et(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{yp(i,r.key,1),cS(this.getStore_INTERNAL(),r,o)})}),et(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{yp(o,r.key,1),cS(this.getStore_INTERNAL(),r,TI)})}),et(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();m1(()=>{for(const[i,a]of r.entries())yp(o,i,1),OI(o,new DI(i),a)})}),this._batch=n}}var Yh={Snapshot:Kh,MutableSnapshot:g1,freshSnapshot:$I,cloneSnapshot:FI},UI=Yh.Snapshot,zI=Yh.MutableSnapshot,jI=Yh.freshSnapshot,VI=Yh.cloneSnapshot,Xh=Object.freeze({__proto__:null,Snapshot:UI,MutableSnapshot:zI,freshSnapshot:jI,cloneSnapshot:VI});function WI(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var qI=WI;const{useRef:HI}=Ze;function GI(e){const t=HI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var dS=GI;const{getNextTreeStateVersion:KI,makeEmptyStoreState:jA}=yA,{cleanUpNode:YI,getDownstreamNodes:XI,initializeNode:ZI,setNodeValue:QI,setUnvalidatedAtomValue_DEPRECATED:JI}=Ls,{graph:e$}=pf,{cloneGraph:t$}=pf,{getNextStoreID:VA}=Vh,{createMutableSource:qg,reactMode:WA}=df,{applyAtomValueWrites:n$}=xi,{releaseScheduledRetainablesNow:qA}=Pa,{freshSnapshot:r$}=Xh,{useCallback:o$,useContext:HA,useEffect:v1,useMemo:i$,useRef:s$,useState:a$}=Ze;function ju(){throw it("This component must be used inside a component.")}const GA=Object.freeze({storeID:VA(),getState:ju,replaceState:ju,getGraph:ju,subscribeToTransactions:ju,addTransactionMetadata:ju});let y1=!1;function pS(e){if(y1)throw it("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&&qA(e);const n=t.currentTree.version,r=KI();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,t$(tn(t.graphsByVersion.get(n))))}}const KA=Ze.createContext({current:GA}),Zh=()=>HA(KA),YA=Ze.createContext(null);function l$(){return HA(YA)}function dy(e,t,n){const r=XI(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 XA(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);(!WA().early||t.suspendedComponentResolvers.size>0)&&(dy(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 u$(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,XA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ry("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ft("recoil_memory_managament_2020")&&n==null&&qA(e)}finally{t.commitDepth--}}function c$({setNotifyBatcherOfChange:e}){const t=Zh(),[,n]=a$([]);return e(()=>n({})),v1(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),v1(()=>{jN.enqueueExecution("Batcher",()=>{u$(t.current)})}),null}function f$(e,t){const n=jA();return t({set:(r,o)=>{const i=n.currentTree,a=QI(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:qI(i.dirtyAtoms,u),atomValues:n$(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=JI(n.currentTree,i,o)})}}),n}function d$(e){const t=r$(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let hS=0;function p$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=w=>{const v=o.current.graphsByVersion;if(v.has(w))return tn(v.get(w));const y=e$();return v.set(w,y),y},a=(w,v)=>{if(v==null){const{transactionSubscriptions:y}=h.current.getState(),A=hS++;return y.set(A,w),{release:()=>{y.delete(A)}}}else{const{nodeTransactionSubscriptions:y}=h.current.getState();y.has(v)||y.set(v,new Map);const A=hS++;return tn(y.get(v)).set(A,w),{release:()=>{const b=y.get(v);b&&(b.delete(A),b.size===0&&y.delete(v))}}}},u=w=>{pS(h.current);for(const v of Object.keys(w))tn(h.current.getState().nextTree).transactionMetadata[v]=w[v]},c=w=>{pS(h.current);const v=tn(o.current.nextTree);let y;try{y1=!0,y=w(v)}finally{y1=!1}y!==v&&(o.current.nextTree=y,WA().early&&dy(h.current,o.current,y),tn(f.current)())},f=s$(null),p=o$(w=>{f.current=w},[f]),h=dS(()=>n??{storeID:VA(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:u});n!=null&&(h.current=n),o=dS(()=>e!=null?f$(h.current,e):t!=null?d$(t):jA());const m=i$(()=>qg==null?void 0:qg(o,()=>o.current.currentTree.version),[o]);return v1(()=>{const w=h.current;for(const v of new Set(w.getState().knownAtoms))ZI(w,v,"get");return()=>{for(const v of w.getState().knownAtoms)YI(w,v)}},[h]),Ze.createElement(KA.Provider,{value:h},Ze.createElement(YA.Provider,{value:m},Ze.createElement(c$,{setNotifyBatcherOfChange:p}),r))}function h$(e){const{override:t,...n}=e,r=Zh();return t===!1&&r.current!==GA?e.children:Ze.createElement(p$,n)}function m$(){return Zh().current.storeID}var Vi={RecoilRoot:h$,useStoreRef:Zh,useRecoilMutableSource:l$,useRecoilStoreID:m$,notifyComponents_FOR_TESTING:dy,sendEndOfBatchNotifications_FOR_TESTING:XA};function g$(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 ZA=w$;const{useStoreRef:b$}=Vi,{SUSPENSE_TIMEOUT_MS:_$}=Pa,{updateRetainCount:Vu}=Pa,{RetentionZone:S$}=Wh,{useEffect:E$,useRef:C$}=Ze,{isSSR:mS}=Gh;function A$(e){if(Ft("recoil_memory_managament_2020"))return R$(e)}function R$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof S$?a:a.key),r=b$();E$(()=>{if(!Ft("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!mS)window.clearTimeout(o.current),o.current=null;else for(const u of n)Vu(a,u,1);return()=>{for(const u of n)Vu(a,u,-1)}},[r,...n]);const o=C$(),i=ZA(n);if(!mS&&(i===void 0||!v$(i,n))){const a=r.current;for(const u of n)Vu(a,u,1);if(i)for(const u of i)Vu(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Vu(a,u,-1)},_$)}}var py=A$;function k$(){return""}var mf=k$;const{batchUpdates:T$}=Hh,{DEFAULT_VALUE:QA}=Ur,{currentRendererSupportsUseSyncExternalStore:D$,reactMode:uu,useMutableSource:P$,useSyncExternalStore:O$}=df,{useRecoilMutableSource:L$,useStoreRef:wi}=Vi,{AbstractRecoilValue:x1,getRecoilValueAsLoadable:gf,setRecoilValue:lh,setUnvalidatedRecoilValue:M$,subscribeToRecoilValue:Gl}=xi,{useCallback:Lr,useEffect:Kl,useMemo:JA,useRef:_c,useState:hy}=Ze,{setByAddingToSet:N$}=wA,{isSSR:B$}=Gh;function my(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),B$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:it(`Invalid value of loadable atom "${t.key}"`)}function I$(){const e=mf(),t=wi(),[,n]=hy([]),r=_c(new Set);r.current=new Set;const o=_c(new Set),i=_c(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 Kl(()=>{const c=t.current;wc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=Gl(c,new x1(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}),Kl(()=>{const c=i.current;return wc(r.current,new Set(c.keys())).forEach(f=>{const p=Gl(t.current,new x1(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),JA(()=>{function c(v){return y=>{lh(t.current,v,y)}}function f(v){return()=>lh(t.current,v,QA)}function p(v){var y;r.current.has(v.key)||(r.current=N$(r.current,v.key));const A=t.current.getState();return gf(t.current,v,uu().early&&(y=A.nextTree)!==null&&y!==void 0?y:A.currentTree)}function h(v){const y=p(v);return my(y,v,t)}function m(v){return[h(v),c(v)]}function w(v){return[p(v),c(v)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:w,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const $$={current:0};function F$(e){const t=wi(),n=mf(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=uu().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return{loadable:gf(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=JA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return Gl(c,e,u,n).release},[t,e,n]);return O$(a,i,i).loadable}function U$(e){const t=wi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=uu().early&&(f=h.nextTree)!==null&&f!==void 0?f:h.currentTree;return gf(p,e,m)},[t,e]),r=Lr(()=>n(),[n]),o=mf(),i=Lr((f,p)=>{const h=t.current;return Gl(h,e,()=>{if(!Ft("recoil_suppress_rerender_in_callback"))return p();const w=n();c.current.is(w)||p(),c.current=w},o).release},[t,e,o,n]),a=L$();if(a==null)throw it("Recoil hooks must be used in components contained within a component.");const u=P$(a,r,i),c=_c(u);return Kl(()=>{c.current=u}),u}function w1(e){const t=wi(),n=mf(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=uu().early&&(c=p.nextTree)!==null&&c!==void 0?c:p.currentTree;return gf(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]);Kl(()=>{const c=Gl(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=hy(o);return a.key!==e.key?o().loadable:a.loadable}function z$(e){const t=wi(),[,n]=hy([]),r=mf(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=uu().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return gf(c,e,p)},[t,e]),i=o(),a=_c(i);return Kl(()=>{a.current=i}),Kl(()=>{const u=t.current,c=u.getState(),f=Gl(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const w=o();(m=a.current)!==null&&m!==void 0&&m.is(w)||n(w),a.current=w},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 gy(e){return Ft("recoil_memory_managament_2020")&&py(e),{TRANSITION_SUPPORT:w1,SYNC_EXTERNAL_STORE:D$()?F$:w1,MUTABLE_SOURCE:U$,LEGACY:z$}[uu().mode](e)}function eR(e){const t=wi(),n=gy(e);return my(n,e,t)}function Qh(e){const t=wi();return Lr(n=>{lh(t.current,e,n)},[t,e])}function j$(e){const t=wi();return Lr(()=>{lh(t.current,e,QA)},[t,e])}function V$(e){return[eR(e),Qh(e)]}function W$(e){return[gy(e),Qh(e)]}function q$(){const e=wi();return(t,n={})=>{T$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>M$(e.current,new x1(o),r))})}}function tR(e){return Ft("recoil_memory_managament_2020")&&py(e),w1(e)}function nR(e){const t=wi(),n=tR(e);return my(n,e,t)}function H$(e){return[nR(e),Qh(e)]}var G$={recoilComponentGetRecoilValueCount_FOR_TESTING:$$,useRecoilInterface:I$,useRecoilState:V$,useRecoilStateLoadable:W$,useRecoilValue:eR,useRecoilValueLoadable:gy,useResetRecoilState:j$,useSetRecoilState:Qh,useSetUnvalidatedAtomValues:q$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:tR,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:nR,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:H$};function K$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var Y$=K$;function X$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var Z$=X$;function Q$(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function yS(e){const t=e.atomValues.toMap(),n=ah(Y$(t,(r,o)=>{const a=rR(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return J$(e.nonvalidatedAtoms.toMap(),n)}function aF(e){e0(Jh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=yS(r),i=yS(n),a=ah(nF,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=Z$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function lF(e){e0(Jh(t=>{const n=uh(t,"latest"),r=uh(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function uF(){const e=vy(),[t,n]=sF(()=>uh(e.current)),r=ZA(t),o=gS(),i=gS();if(e0(Jh(u=>n(uh(u)),[])),oR(()=>{const u=t.retain();if(o.current&&!vS){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&&!vS){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},iF)}return t}function iR(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;eF(()=>{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)&&rR(p).shouldRestoreFromSnapshots&&a.add(p)}a.forEach(f=>{oF(e,new rF(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):tF)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function cF(){const e=vy();return Jh(t=>iR(e.current,t),[e])}var sR={useRecoilSnapshot:uF,gotoSnapshot:iR,useGotoRecoilSnapshot:cF,useRecoilTransactionObserver:lF,useTransactionObservation_DEPRECATED:aF,useTransactionSubscription_DEPRECATED:e0};const{peekNodeInfo:fF}=Ls,{useStoreRef:dF}=Vi;function pF(){const e=dF();return({key:t})=>fF(e.current,e.current.getState().currentTree,t)}var hF=pF;const{reactMode:mF}=df,{RecoilRoot:gF,useStoreRef:vF}=Vi,{useMemo:yF}=Ze;function xF(){mF().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=vF().current;return yF(()=>{function t({children:n}){return Ze.createElement(gF,{store_INTERNAL:e},n)}return t},[e])}var wF=xF;const{loadableWithValue:bF}=ff,{initializeNode:_F}=Ls,{DEFAULT_VALUE:SF,getNode:EF}=Ur,{copyTreeState:CF,getRecoilValueAsLoadable:AF,invalidateDownstreams:RF,writeLoadableToTreeState:kF}=xi;function xS(e){return EF(e.key).nodeType==="atom"}class TF{constructor(t,n){et(this,"_store",void 0),et(this,"_treeState",void 0),et(this,"_changes",void 0),et(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!xS(r))throw it("Reading selectors within atomicUpdate is not supported");const o=AF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:it(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),et(this,"set",(r,o)=>{if(!xS(r))throw it("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else _F(this._store,r.key,"set"),this._changes.set(r.key,o)}),et(this,"reset",r=>{this.set(r,SF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=CF(this._treeState);for(const[n,r]of this._changes)kF(t,n,bF(r));return RF(this._store,t),t}}function DF(e){return t=>{e.replaceState(n=>{const r=new TF(e,n);return t(r),r.newTreeState_INTERNAL()})}}var PF={atomicUpdater:DF},OF=PF.atomicUpdater,aR=Object.freeze({__proto__:null,atomicUpdater:OF});function LF(e,t){if(!e)throw new Error(t)}var MF=LF,sc=MF;const{atomicUpdater:NF}=aR,{batchUpdates:BF}=Hh,{DEFAULT_VALUE:IF}=Ur,{useStoreRef:$F}=Vi,{refreshRecoilValue:FF,setRecoilValue:wS}=xi,{cloneSnapshot:UF}=Xh,{gotoSnapshot:zF}=sR,{useCallback:jF}=Ze;class lR{}const VF=new lR;function uR(e,t,n,r){let o=VF,i;if(BF(()=>{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 it(u);const c=bA({...r??{},set:(p,h)=>wS(e,p,h),reset:p=>wS(e,p,IF),refresh:p=>FF(e,p),gotoSnapshot:p=>zF(e,p),transact_UNSTABLE:p=>NF(e)(p)},{snapshot:()=>{const p=UF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw it(u);o=f(...n)}),o instanceof lR&&sc(!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 WF(e,t){const n=$F();return jF((...r)=>uR(n.current,e,r),t!=null?[...t,n]:void 0)}var cR={recoilCallback:uR,useRecoilCallback:WF};const{useStoreRef:qF}=Vi,{refreshRecoilValue:HF}=xi,{useCallback:GF}=Ze;function KF(e){const t=qF();return GF(()=>{const n=t.current;HF(n,e)},[e,t])}var YF=KF;const{atomicUpdater:XF}=aR,{useStoreRef:ZF}=Vi,{useMemo:QF}=Ze;function JF(e,t){const n=ZF();return QF(()=>(...r)=>{XF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var eU=JF;class tU{constructor(t){et(this,"value",void 0),this.value=t}}var nU={WrappedValue:tU},rU=nU.WrappedValue,fR=Object.freeze({__proto__:null,WrappedValue:rU});const{isFastRefreshEnabled:oU}=df;class bS extends Error{}class iU{constructor(t){var n,r,o;et(this,"_name",void 0),et(this,"_numLeafs",void 0),et(this,"_root",void 0),et(this,"_onHit",void 0),et(this,"_onSet",void 0),et(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,w;const x=this._root;if((x==null?void 0:x.type)==="leaf")throw this.invalidCacheError();const S=f;if(f=S?S.branches.get(p):x,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=(w=this._root)!==null&&w!==void 0?w:f}const v=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==p))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,y),this._root=(u=this._root)!==null&&u!==void 0?u:y,this._numLeafs++,this._onSet(y),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,y)};try{o()}catch(i){if(i instanceof bS)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=oU()?"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 ry(t+(this._name!=null?` - ${this._name}`:"")),new bS}}var sU={TreeCache:iU},aU=sU.TreeCache,dR=Object.freeze({__proto__:null,TreeCache:aU});class lU{constructor(t){var n;et(this,"_maxSize",void 0),et(this,"_size",void 0),et(this,"_head",void 0),et(this,"_tail",void 0),et(this,"_map",void 0),et(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 uU={LRUCache:lU},cU=uU.LRUCache,pR=Object.freeze({__proto__:null,LRUCache:cU});const{LRUCache:fU}=pR,{TreeCache:dU}=dR;function pU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new fU({maxSize:t}),o=new dU({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 _S=pU;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 it("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 hU(e,t={allowFunctions:!1}){return Wo(e,t)}var t0=hU;const{TreeCache:mU}=dR,$d={equality:"reference",eviction:"keep-all",maxSize:1/0};function gU({equality:e=$d.equality,eviction:t=$d.eviction,maxSize:n=$d.maxSize}=$d,r){const o=vU(e);return yU(t,n,o,r)}function vU(e){switch(e){case"reference":return t=>t;case"value":return t=>t0(t)}throw it(`Unrecognized equality policy ${e}`)}function yU(e,t,n,r){switch(e){case"keep-all":return new mU({name:r,mapNodeValue:n});case"lru":return _S({name:r,maxSize:tn(t),mapNodeValue:n});case"most-recent":return _S({name:r,maxSize:1,mapNodeValue:n})}throw it(`Unrecognized eviction policy ${e}`)}var xU=gU;function wU(e){return()=>null}var bU={startPerfBlock:wU};const{isLoadable:_U,loadableWithError:Fd,loadableWithPromise:SU,loadableWithValue:Hg}=ff,{WrappedValue:hR}=fR,{getNodeLoadable:Ud,peekNodeLoadable:EU,setNodeValue:CU}=Ls,{saveDepsToStore:AU}=pf,{DEFAULT_VALUE:RU,getConfigDeletionHandler:kU,getNode:TU,registerNode:SS}=Ur,{isRecoilValue:DU}=Hl,{markRecoilValueModified:ES}=xi,{retainedByOptionWithDefault:PU}=Pa,{recoilCallback:OU}=cR,{startPerfBlock:LU}=bU;class mR{}const Wu=new mR,qu=[],zd=new Map,MU=(()=>{let e=0;return()=>e++})();function gR(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=xU(o??{equality:"reference",eviction:"keep-all"},n),c=PU(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 w(){return kU(n)!==void 0&&!h()}function v(U,ae,te,ye,ue){le(ae,ye,ue),y(U,te)}function y(U,ae){G(U,ae)&&H(U),b(ae,!0)}function A(U,ae){G(U,ae)&&(tn(I(U)).stateVersions.clear(),b(ae,!1))}function b(U,ae){const te=zd.get(U);if(te!=null){for(const ye of te)ES(ye,tn(t));ae&&zd.delete(U)}}function x(U,ae){let te=zd.get(ae);te==null&&zd.set(ae,te=new Set),te.add(U)}function S(U,ae,te,ye,ue,Me){return ae.then(Re=>{if(!h())throw H(U),Wu;const ve=Hg(Re);return v(U,te,ue,ve,ye),Re}).catch(Re=>{if(!h())throw H(U),Wu;if(Kt(Re))return k(U,Re,te,ye,ue,Me);const ve=Fd(Re);throw v(U,te,ue,ve,ye),Re})}function k(U,ae,te,ye,ue,Me){return ae.then(Re=>{if(!h())throw H(U),Wu;Me.loadingDepKey!=null&&Me.loadingDepPromise===ae?te.atomValues.set(Me.loadingDepKey,Hg(Re)):U.getState().knownSelectors.forEach(_e=>{te.atomValues.delete(_e)});const ve=L(U,te);if(ve&&ve.state!=="loading"){if((G(U,ue)||I(U)==null)&&y(U,ue),ve.state==="hasValue")return ve.contents;throw ve.contents}if(!G(U,ue)){const _e=q(U,te);if(_e!=null)return _e.loadingLoadable.contents}const[Ce,ge]=E(U,te,ue);if(Ce.state!=="loading"&&v(U,te,ue,Ce,ge),Ce.state==="hasError")throw Ce.contents;return Ce.contents}).catch(Re=>{if(Re instanceof mR)throw Wu;if(!h())throw H(U),Wu;const ve=Fd(Re);throw v(U,te,ue,ve,ye),Re})}function P(U,ae,te,ye){var ue,Me,Re,ve;if(G(U,ye)||ae.version===((ue=U.getState())===null||ue===void 0||(Me=ue.currentTree)===null||Me===void 0?void 0:Me.version)||ae.version===((Re=U.getState())===null||Re===void 0||(ve=Re.nextTree)===null||ve===void 0?void 0:ve.version)){var Ce,ge,_e;AU(n,te,U,(Ce=(ge=U.getState())===null||ge===void 0||(_e=ge.nextTree)===null||_e===void 0?void 0:_e.version)!==null&&Ce!==void 0?Ce:U.getState().currentTree.version)}for(const je of te)a.add(je)}function E(U,ae,te){const ye=LU(n);let ue=!0,Me=!0;const Re=()=>{ye(),Me=!1};let ve,Ce=!1,ge;const _e={loadingDepKey:null,loadingDepPromise:null},je=new Map;function nt({key:yt}){const rt=Ud(U,ae,yt);switch(je.set(yt,rt),ue||(P(U,ae,new Set(je.keys()),te),A(U,te)),rt.state){case"hasValue":return rt.contents;case"hasError":throw rt.contents;case"loading":throw _e.loadingDepKey=yt,_e.loadingDepPromise=rt.contents,rt.contents}throw it("Invalid Loadable state")}const ut=yt=>(...rt)=>{if(Me)throw it("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&&sc(!1),OU(U,yt,rt,{node:t})};try{ve=r({get:nt,getCallback:ut}),ve=DU(ve)?nt(ve):ve,_U(ve)&&(ve.state==="hasError"&&(Ce=!0),ve=ve.contents),Kt(ve)?ve=S(U,ve,ae,je,te,_e).finally(Re):Re(),ve=ve instanceof hR?ve.value:ve}catch(yt){ve=yt,Kt(ve)?ve=k(U,ve,ae,je,te,_e).finally(Re):(Ce=!0,Re())}return Ce?ge=Fd(ve):Kt(ve)?ge=SU(ve):ge=Hg(ve),ue=!1,se(U,te,je),P(U,ae,new Set(je.keys()),te),[ge,je]}function L(U,ae){let te=ae.atomValues.get(n);if(te!=null)return te;const ye=new Set;try{te=u.get(Me=>(typeof Me!="string"&&sc(!1),Ud(U,ae,Me).contents),{onNodeVisit:Me=>{Me.type==="branch"&&Me.nodeKey!==n&&ye.add(Me.nodeKey)}})}catch(Me){throw it(`Problem with cache lookup for selector "${n}": ${Me.message}`)}if(te){var ue;ae.atomValues.set(n,te),P(U,ae,ye,(ue=I(U))===null||ue===void 0?void 0:ue.executionID)}return te}function $(U,ae){const te=L(U,ae);if(te!=null)return H(U),te;const ye=q(U,ae);if(ye!=null){var ue;return((ue=ye.loadingLoadable)===null||ue===void 0?void 0:ue.state)==="loading"&&x(U,ye.executionID),ye.loadingLoadable}const Me=MU(),[Re,ve]=E(U,ae,Me);return Re.state==="loading"?(X(U,Me,Re,ve,ae),x(U,Me)):(H(U),le(ae,Re,ve)),Re}function q(U,ae){const te=$A([f.has(U)?[tn(f.get(U))]:[],jh(ly(f,([ue])=>ue!==U),([,ue])=>ue)]);function ye(ue){for(const[Me,Re]of ue)if(!Ud(U,ae,Me).is(Re))return!0;return!1}for(const ue of te){if(ue.stateVersions.get(ae.version)||!ye(ue.depValuesDiscoveredSoFarDuringAsyncWork))return ue.stateVersions.set(ae.version,!0),ue;ue.stateVersions.set(ae.version,!1)}}function I(U){return f.get(U)}function X(U,ae,te,ye,ue){f.set(U,{depValuesDiscoveredSoFarDuringAsyncWork:ye,executionID:ae,loadingLoadable:te,stateVersions:new Map([[ue.version,!0]])})}function se(U,ae,te){if(G(U,ae)){const ye=I(U);ye!=null&&(ye.depValuesDiscoveredSoFarDuringAsyncWork=te)}}function H(U){f.delete(U)}function G(U,ae){var te;return ae===((te=I(U))===null||te===void 0?void 0:te.executionID)}function Q(U){return Array.from(U.entries()).map(([ae,te])=>[ae,te.contents])}function le(U,ae,te){U.atomValues.set(n,ae);try{u.set(Q(te),ae)}catch(ye){throw it(`Problem with setting cache for selector "${n}": ${ye.message}`)}}function pe(U){if(qu.includes(n)){const ae=`Recoil selector has circular dependencies: ${qu.slice(qu.indexOf(n)).join(" → ")}`;return Fd(it(ae))}qu.push(n);try{return U()}finally{qu.pop()}}function J(U,ae){const te=ae.atomValues.get(n);return te??u.get(ye=>{var ue;return typeof ye!="string"&&sc(!1),(ue=EU(U,ae,ye))===null||ue===void 0?void 0:ue.contents})}function de(U,ae){return pe(()=>$(U,ae))}function re(U){U.atomValues.delete(n)}function he(U,ae){t==null&&sc(!1);for(const ye of a){var te;const ue=TU(ye);(te=ue.clearCache)===null||te===void 0||te.call(ue,U,ae)}a.clear(),re(ae),u.clear(),ES(U,t)}return i!=null?t=SS({key:n,nodeType:"selector",peek:J,get:de,set:(ae,te,ye)=>{let ue=!1;const Me=new Map;function Re({key:_e}){if(ue)throw it("Recoil: Async selector sets are not currently supported.");const je=Ud(ae,te,_e);if(je.state==="hasValue")return je.contents;if(je.state==="loading"){const nt=`Getting value of asynchronous atom or selector "${_e}" in a pending state while setting selector "${n}" is not yet supported.`;throw it(nt)}else throw je.contents}function ve(_e,je){if(ue)throw it("Recoil: Async selector sets are not currently supported.");const nt=typeof je=="function"?je(Re(_e)):je;CU(ae,te,_e.key,nt).forEach((yt,rt)=>Me.set(rt,yt))}function Ce(_e){ve(_e,RU)}const ge=i({set:ve,get:Re,reset:Ce},ye);if(ge!==void 0)throw Kt(ge)?it("Recoil: Async selector sets are not currently supported."):it("Recoil: selector set should be a void function.");return ue=!0,Me},init:m,invalidate:re,clearCache:he,shouldDeleteConfigOnRelease:w,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=SS({key:n,nodeType:"selector",peek:J,get:de,init:m,invalidate:re,clearCache:he,shouldDeleteConfigOnRelease:w,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}gR.value=e=>new hR(e);var Yl=gR;const{isLoadable:NU,loadableWithError:Gg,loadableWithPromise:Kg,loadableWithValue:Za}=ff,{WrappedValue:vR}=fR,{peekNodeInfo:BU}=Ls,{DEFAULT_VALUE:na,DefaultValue:us,getConfigDeletionHandler:yR,registerNode:IU,setConfigDeletionHandler:$U}=Ur,{isRecoilValue:FU}=Hl,{getRecoilValueAsLoadable:UU,markRecoilValueModified:zU,setRecoilValue:CS,setRecoilValueLoadable:jU}=xi,{retainedByOptionWithDefault:VU}=Pa,Hu=e=>e instanceof vR?e.value:e;function WU(e){const{key:t,persistence_UNSTABLE:n}=e,r=VU(e.retainedBy_UNSTABLE);let o=0;function i(x){return Kg(x.then(S=>(a=Za(S),S)).catch(S=>{throw a=Gg(S),S}))}let a=Kt(e.default)?i(e.default):NU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Za(Hu(e.default));a.contents;let u;const c=new Map;function f(x){return x}function p(x,S){const k=S.then(P=>{var E,L;return((L=((E=x.getState().nextTree)!==null&&E!==void 0?E:x.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&CS(x,b,P),P}).catch(P=>{var E,L;throw((L=((E=x.getState().nextTree)!==null&&E!==void 0?E:x.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&jU(x,b,Gg(P)),P});return k}function h(x,S,k){var P;o++;const E=()=>{var I;o--,(I=c.get(x))===null||I===void 0||I.forEach(X=>X()),c.delete(x)};if(x.getState().knownAtoms.add(t),a.state==="loading"){const I=()=>{var X;((X=x.getState().nextTree)!==null&&X!==void 0?X:x.getState().currentTree).atomValues.has(t)||zU(x,b)};a.contents.finally(I)}const L=(P=e.effects)!==null&&P!==void 0?P:e.effects_UNSTABLE;if(L!=null){let I=function(re){if(G&&re.key===t){const he=H;return he instanceof us?m(x,S):Kt(he)?Kg(he.then(U=>U instanceof us?a.toPromise():U)):Za(he)}return UU(x,re)},X=function(re){return I(re).toPromise()},se=function(re){var he;const U=BU(x,(he=x.getState().nextTree)!==null&&he!==void 0?he:x.getState().currentTree,re.key);return G&&re.key===t&&!(H instanceof us)?{...U,isSet:!0,loadable:I(re)}:U},H=na,G=!0,Q=!1,le=null;const pe=re=>he=>{if(G){const U=I(b),ae=U.state==="hasValue"?U.contents:na;H=typeof he=="function"?he(ae):he,Kt(H)&&(H=H.then(te=>(le={effect:re,value:te},te)))}else{if(Kt(he))throw it("Setting atoms to async values is not implemented.");typeof he!="function"&&(le={effect:re,value:Hu(he)}),CS(x,b,typeof he=="function"?U=>{const ae=Hu(he(U));return le={effect:re,value:ae},ae}:Hu(he))}},J=re=>()=>pe(re)(na),de=re=>he=>{var U;const{release:ae}=x.subscribeToTransactions(te=>{var ye;let{currentTree:ue,previousTree:Me}=te.getState();Me||(Me=ue);const Re=(ye=ue.atomValues.get(t))!==null&&ye!==void 0?ye:a;if(Re.state==="hasValue"){var ve,Ce,ge,_e;const je=Re.contents,nt=(ve=Me.atomValues.get(t))!==null&&ve!==void 0?ve:a,ut=nt.state==="hasValue"?nt.contents:na;((Ce=le)===null||Ce===void 0?void 0:Ce.effect)!==re||((ge=le)===null||ge===void 0?void 0:ge.value)!==je?he(je,ut,!ue.atomValues.has(t)):((_e=le)===null||_e===void 0?void 0:_e.effect)===re&&(le=null)}},t);c.set(x,[...(U=c.get(x))!==null&&U!==void 0?U:[],ae])};for(const re of L)try{const he=re({node:b,storeID:x.storeID,parentStoreID_UNSTABLE:x.parentStoreID,trigger:k,setSelf:pe(re),resetSelf:J(re),onSet:de(re),getPromise:X,getLoadable:I,getInfo_UNSTABLE:se});if(he!=null){var $;c.set(x,[...($=c.get(x))!==null&&$!==void 0?$:[],he])}}catch(he){H=he,Q=!0}if(G=!1,!(H instanceof us)){var q;const re=Q?Gg(H):Kt(H)?Kg(p(x,H)):Za(Hu(H));re.contents,S.atomValues.set(t,re),(q=x.getState().nextTree)===null||q===void 0||q.atomValues.set(t,re)}}return E}function m(x,S){var k,P;return(k=(P=S.atomValues.get(t))!==null&&P!==void 0?P:u)!==null&&k!==void 0?k:a}function w(x,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),P=n.validator(k,na);return u=P instanceof us?a:Za(P),u}else return a}function v(){u=void 0}function y(x,S,k){if(S.atomValues.has(t)){const P=tn(S.atomValues.get(t));if(P.state==="hasValue"&&k===P.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof us)return new Map;return u=void 0,new Map().set(t,Za(k))}function A(){return yR(t)!==void 0&&o<=0}const b=IU({key:t,nodeType:"atom",peek:m,get:w,set:y,init:h,invalidate:v,shouldDeleteConfigOnRelease:A,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return b}function yy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return FU(n)?qU({...t,default:n}):WU({...t,default:n})}function qU(e){const t=yy({...e,default:na,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof us?r:tn(e.persistence_UNSTABLE).validator(r,na)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Yl({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof us?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return $U(n.key,yR(e.key)),n}yy.value=e=>new vR(e);var xR=yy;class HU{constructor(t){var n;et(this,"_map",void 0),et(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 GU={MapCache:HU},KU=GU.MapCache,YU=Object.freeze({__proto__:null,MapCache:KU});const{LRUCache:AS}=pR,{MapCache:XU}=YU,jd={equality:"reference",eviction:"none",maxSize:1/0};function ZU({equality:e=jd.equality,eviction:t=jd.eviction,maxSize:n=jd.maxSize}=jd){const r=QU(e);return JU(t,n,r)}function QU(e){switch(e){case"reference":return t=>t;case"value":return t=>t0(t)}throw it(`Unrecognized equality policy ${e}`)}function JU(e,t,n){switch(e){case"keep-all":return new XU({mapKey:n});case"lru":return new AS({mapKey:n,maxSize:tn(t)});case"most-recent":return new AS({mapKey:n,maxSize:1})}throw it(`Unrecognized eviction policy ${e}`)}var wR=ZU;const{setConfigDeletionHandler:ez}=Ur;function tz(e){var t,n;const r=wR({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=xR({...f,key:`${e.key}__${(i=t0(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),ez(h.key,()=>{r.delete(o)}),h}}var nz=tz;const{setConfigDeletionHandler:rz}=Ur;let oz=0;function iz(e){var t,n;const r=wR({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 it(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=t0(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${oz++}`,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=Yl({key:u,get:c,set:(v,y)=>m(o)(v,y),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Yl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),rz(h.key,()=>{r.delete(o)}),h}}var Ms=iz;const sz=Ms({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function az(e){return sz(e)}var lz=az;const uz=Ms({key:"__error",get:e=>()=>{throw it(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function cz(e){return uz(e)}var fz=cz;function dz(e){return e}var pz=dz;const{loadableWithError:bR,loadableWithPromise:_R,loadableWithValue:SR}=ff;function n0(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 hz(e){return e!=null&&!Kt(e)}function r0(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function b1(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function Ll(e,t,n){const r=n.map((o,i)=>o==null?SR(t[i]):Kt(o)?_R(o):bR(o));return b1(e,r)}function mz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const gz=Ms({key:"__waitForNone",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);return Ll(e,r,o)},dangerouslyAllowMutability:!0}),vz=Ms({key:"__waitForAny",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);return o.some(i=>!Kt(i))?Ll(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(Ll(e,r,o))}).catch(c=>{o[a]=c,i(Ll(e,r,o))})})},dangerouslyAllowMutability:!0}),yz=Ms({key:"__waitForAll",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);if(o.every(a=>a==null))return b1(e,r);const i=o.find(hz);if(i!=null)throw i;return Promise.all(o).then(a=>b1(e,mz(r,a)))},dangerouslyAllowMutability:!0}),xz=Ms({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);return o.every(i=>!Kt(i))?Ll(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(()=>Ll(e,r,o))},dangerouslyAllowMutability:!0}),wz=Ms({key:"__noWait",get:e=>({get:t})=>{try{return Yl.value(SR(t(e)))}catch(n){return Yl.value(Kt(n)?_R(n):bR(n))}},dangerouslyAllowMutability:!0});var bz={waitForNone:gz,waitForAny:vz,waitForAll:yz,waitForAllSettled:xz,noWait:wz};const{RecoilLoadable:_z}=ff,{DefaultValue:Sz}=Ur,{RecoilRoot:Ez,useRecoilStoreID:Cz}=Vi,{isRecoilValue:Az}=Hl,{retentionZone:Rz}=Wh,{freshSnapshot:kz}=Xh,{useRecoilState:Tz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Dz,useRecoilStateLoadable:Pz,useRecoilValue:Oz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Lz,useRecoilValueLoadable:Mz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Nz,useResetRecoilState:Bz,useSetRecoilState:Iz}=G$,{useGotoRecoilSnapshot:$z,useRecoilSnapshot:Fz,useRecoilTransactionObserver:Uz}=sR,{useRecoilCallback:zz}=cR,{noWait:jz,waitForAll:Vz,waitForAllSettled:Wz,waitForAny:qz,waitForNone:Hz}=bz;var Ns={DefaultValue:Sz,isRecoilValue:Az,RecoilLoadable:_z,RecoilEnv:lu,RecoilRoot:Ez,useRecoilStoreID:Cz,useRecoilBridgeAcrossReactRoots_UNSTABLE:wF,atom:xR,selector:Yl,atomFamily:nz,selectorFamily:Ms,constSelector:lz,errorSelector:fz,readOnlySelector:pz,noWait:jz,waitForNone:Hz,waitForAny:qz,waitForAll:Vz,waitForAllSettled:Wz,useRecoilValue:Oz,useRecoilValueLoadable:Mz,useRecoilState:Tz,useRecoilStateLoadable:Pz,useSetRecoilState:Iz,useResetRecoilState:Bz,useGetRecoilValueInfo_UNSTABLE:hF,useRecoilRefresher_UNSTABLE:YF,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Nz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Lz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Dz,useRecoilCallback:zz,useRecoilTransaction_UNSTABLE:eU,useGotoRecoilSnapshot:$z,useRecoilSnapshot:Fz,useRecoilTransactionObserver_UNSTABLE:Uz,snapshot_UNSTABLE:kz,useRetain:py,retentionZone:Rz},Gz=Ns.DefaultValue,Kz=Ns.RecoilRoot,An=Ns.atom,ER=Ns.selector,Sn=Ns.useRecoilValue,RS=Ns.useRecoilState,on=Ns.useSetRecoilState,xp=Ns.useResetRecoilState,ch={exports:{}};/** + hot module replacement.`;console.warn(t)}}function LM(e){lu.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&OM(e.key),Ea.set(e.key,e);const t=e.set==null?new ql.RecoilValueReadOnly(e.key):new ql.RecoilState(e.key);return oy.set(e.key,t),t}class dA extends Error{}function NM(e){const t=Ea.get(e);if(t==null)throw new dA(`Missing definition for RecoilValue: "${e}""`);return t}function MM(e){return Ea.get(e)}const sh=new Map;function BM(e){var t;if(!Ft("recoil_memory_managament_2020"))return;const n=Ea.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Ea.delete(e),(r=pA(e))===null||r===void 0||r(),sh.delete(e)}}function IM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?sh.delete(e):sh.set(e,t))}function pA(e){return sh.get(e)}var Ur={nodes:Ea,recoilValues:oy,registerNode:LM,getNode:NM,getNodeMaybe:MM,deleteNodeConfigIfPossible:BM,setConfigDeletionHandler:IM,getConfigDeletionHandler:pA,recoilValuesForKeys:PM,NodeMissingError:dA,DefaultValue:fA,DEFAULT_VALUE:DM};function $M(e,t){t()}var FM={enqueueExecution:$M};function UM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var zM=UM(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,u=o/4,c={},f=function(F){return function(){return F}},p=n.hash=function(W){var F=typeof W>"u"?"undefined":t(W);if(F==="number")return W;F!=="string"&&(W+="");for(var ce=0,be=0,we=W.length;be>1&1431655765,F=(F&858993459)+(F>>2&858993459),F=F+(F>>4)&252645135,F+=F>>8,F+=F>>16,F&127},m=function(F,ce){return ce>>>F&i},w=function(F){return 1<=ce;)we[Ue--]=we[Ue];return we[ce]=be,we}for(var Be=0,$e=0,Ke=new Array(Ae+1);Be>>=1;return Ue[ce]=be,X(F,$e+1,Ue)},G=function(F,ce,be,we){for(var Ae=new Array(ce-1),Ue=0,Be=0,$e=0,Ke=we.length;$e1?H(F,this.hash,Ke):Ke[0]}var Et=we();return Et===c?this:(++Be.value,Q(F,be,this.hash,this,Ae,$(F,Ae,Ue,Et)))},re=function(F,ce,be,we,Ae,Ue,Be){var $e=this.mask,Ke=this.children,Et=m(be,Ae),Pn=w(Et),zt=v($e,Pn),On=$e&Pn,pn=On?Ke[zt]:E,so=pn._modify(F,ce,be+r,we,Ae,Ue,Be);if(pn===so)return this;var sr=pe(F,this),N=$e,B=void 0;if(On&&L(so)){if(N&=~Pn,!N)return E;if(Ke.length<=2&&se(Ke[zt^1]))return Ke[zt^1];B=A(sr,zt,Ke)}else if(!On&&!L(so)){if(Ke.length>=a)return q(F,Et,so,$e,Ke);N|=Pn,B=b(sr,zt,so,Ke)}else B=y(sr,zt,so,Ke);return sr?(this.mask=N,this.children=B,this):I(F,N,B)},he=function(F,ce,be,we,Ae,Ue,Be){var $e=this.size,Ke=this.children,Et=m(be,Ae),Pn=Ke[Et],zt=(Pn||E)._modify(F,ce,be+r,we,Ae,Ue,Be);if(Pn===zt)return this;var On=pe(F,this),pn=void 0;if(L(Pn)&&!L(zt))++$e,pn=y(On,Et,zt,Ke);else if(!L(Pn)&&L(zt)){if(--$e,$e<=u)return G(F,$e,Et,Ke);pn=y(On,Et,E,Ke)}else pn=y(On,Et,zt,Ke);return On?(this.size=$e,this.children=pn,this):X(F,$e,pn)};E._modify=function(W,F,ce,be,we,Ae,Ue){var Be=be();return Be===c?E:(++Ue.value,$(W,we,Ae,Be))};function U(W,F,ce,be,we){this._editable=W,this._edit=F,this._config=ce,this._root=be,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 ae=n.tryGetHash=function(W,F,ce,be){for(var we=be._root,Ae=0,Ue=be._config.keyEq;;)switch(we.type){case x:return Ue(ce,we.key)?we.value:W;case S:{if(F===we.hash)for(var Be=we.children,$e=0,Ke=Be.length;$e{n.set(o,t(r,o))}),n}var ah=GM;function KM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function YM(e){return{nodeDeps:ah(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:ah(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Wg(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 XM(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(Wg(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);Wg(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);Wg(e,t,m,f)}}}var pf={cloneGraph:YM,graph:KM,saveDepsToStore:XM};let ZM=0;const QM=()=>ZM++;let JM=0;const eB=()=>JM++;let tB=0;const nB=()=>tB++;var Vh={getNextTreeStateVersion:QM,getNextStoreID:eB,getNextComponentID:nB};const{persistentMap:oS}=HM,{graph:rB}=pf,{getNextTreeStateVersion:hA}=Vh;function mA(){const e=hA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:oS(),nonvalidatedAtoms:oS()}}function oB(){const e=mA();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,rB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var gA={makeEmptyTreeState:mA,makeEmptyStoreState:oB,getNextTreeStateVersion:hA};class vA{}function iB(){return new vA}var Wh={RetentionZone:vA,retentionZone:iB};function sB(e,t){const n=new Set(e);return n.add(t),n}function aB(e,t){const n=new Set(e);return n.delete(t),n}function lB(e,t,n){const r=new Map(e);return r.set(t,n),r}function uB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function cB(e,t){const n=new Map(e);return n.delete(t),n}function fB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var yA={setByAddingToSet:sB,setByDeletingFromSet:aB,mapBySettingInMap:lB,mapByUpdatingInMap:uB,mapByDeletingFromMap:cB,mapByDeletingMultipleFromMap:fB};function*dB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ay=dB;function pB(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 xA=pB;const{getNode:hf,getNodeMaybe:hB,recoilValuesForKeys:iS}=Ur,{RetentionZone:sS}=Wh,{setByAddingToSet:mB}=yA,gB=Object.freeze(new Set);class vB extends Error{}function yB(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 sS)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 sS)a(n);else if(Array.isArray(n))for(const u of n)a(u)}}function ly(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=hf(n),a=yB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function xB(e,t,n){ly(e,e.getState().currentTree,t,n)}function wB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function bB(e,t,n){return ly(e,t,n,"get"),hf(n).get(e,t)}function wA(e,t,n){return hf(n).peek(e,t)}function _B(e,t,n){var r;const o=hB(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:mB(e.dirtyAtoms,t)}}function SB(e,t,n,r){const o=hf(n);if(o.set==null)throw new vB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return ly(e,t,n,"set"),i(e,t,r)}function EB(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=hf(n).nodeType;return xA({type:i},{loadable:()=>wA(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 iS((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,u;return{nodes:iS(ay(bA(e,t,new Set([n])),c=>c!==n)),components:jh((a=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&a!==void 0?a:[],([c])=>({name:c}))}}})}function bA(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:gB;for(const f of c)r.has(f)||o.push(f)}return r}var Ls={getNodeLoadable:bB,peekNodeLoadable:wA,setNodeValue:SB,initializeNode:xB,cleanUpNode:wB,setUnvalidatedAtomValue_DEPRECATED:_B,peekNodeInfo:EB,getDownstreamNodes:bA};let _A=null;function CB(e){_A=e}function AB(){var e;(e=_A)===null||e===void 0||e()}var SA={setInvalidateMemoizedSnapshot:CB,invalidateMemoizedSnapshot:AB};const{getDownstreamNodes:RB,getNodeLoadable:EA,setNodeValue:kB}=Ls,{getNextComponentID:TB}=Vh,{getNode:DB,getNodeMaybe:CA}=Ur,{DefaultValue:uy}=Ur,{reactMode:PB}=df,{AbstractRecoilValue:OB,RecoilState:LB,RecoilValueReadOnly:NB,isRecoilValue:MB}=ql,{invalidateMemoizedSnapshot:BB}=SA;function IB(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=EA(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function $B(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof uy?n.delete(o):n.set(o,r)}),n}function FB(e,t,{key:n},r){if(typeof r=="function"){const o=EA(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 it(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function UB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=FB(e,t,o,i),u=kB(e,t,o.key,a);for(const[c,f]of u.entries())p1(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;p1(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=CA(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 ny(`Unknown action ${n.type}`)}function p1(e,t,n){n.state==="hasValue"&&n.contents instanceof uy?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function AA(e,t){e.replaceState(n=>{const r=RA(n);for(const o of t)UB(e,r,o);return kA(e,r),BB(),r})}function Hh(e,t){if(bc.length){const n=bc[bc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else AA(e,[t])}const bc=[];function zB(){const e=new Map;return bc.push(e),()=>{for(const[t,n]of e)AA(t,n);bc.pop()}}function RA(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function kA(e,t){const n=RB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=CA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function TA(e,t,n){Hh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function jB(e,t,n){if(n instanceof uy)return TA(e,t,n);Hh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function VB(e,t){Hh(e,{type:"markModified",recoilValue:t})}function WB(e,t,n){Hh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function HB(e,{key:t},n,r=null){const o=TB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=PB();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 qB(e,t){var n;const{currentTree:r}=e.getState(),o=DB(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var xi={RecoilValueReadOnly:NB,AbstractRecoilValue:OB,RecoilState:LB,getRecoilValueAsLoadable:IB,setRecoilValue:TA,setRecoilValueLoadable:jB,markRecoilValueModified:VB,setUnvalidatedRecoilValue:WB,subscribeToRecoilValue:HB,isRecoilValue:MB,applyAtomValueWrites:$B,batchStart:zB,writeLoadableToTreeState:p1,invalidateDownstreams:kA,copyTreeState:RA,refreshRecoilValue:qB};function GB(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 KB=GB;const{cleanUpNode:YB}=Ls,{deleteNodeConfigIfPossible:XB,getNode:DA}=Ur,{RetentionZone:PA}=Wh,ZB=12e4,OA=new Set;function LA(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 PA)for(const u of tI(n,a))o.add(u);else o.add(a);const i=QB(e,o);for(const a of i)eI(e,r,a)}function QB(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=JB(e,r,c,i,a);for(const v of p){var h;if(DA(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((h=n.retention.referenceCounts.get(v))!==null&&h!==void 0?h:0)>0){a.add(v);continue}if(NA(v).some(A=>n.retention.referenceCounts.get(A))){a.add(v);continue}const y=o.nodeToNodeSubscriptions.get(v);if(y&&KB(y,A=>a.has(A))){a.add(v);continue}i.add(v),f.add(v)}const m=new Set;for(const v of f)for(const y of(w=o.nodeDeps.get(v))!==null&&w!==void 0?w:OA){var w;i.has(y)||m.add(y)}m.size&&u(m)}}function JB(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 eI(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;YB(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=NA(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)}XB(n)}function tI(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:OA}function NA(e){const t=DA(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof PA?[t]:t}function nI(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):LA(e,new Set([t]))}function rI(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?MA(e,t):o.set(t,i)}function MA(e,t){if(!Ft("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),nI(e,t)}function oI(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();LA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function iI(e){return e===void 0?"recoilRoot":e}var Pa={SUSPENSE_TIMEOUT_MS:ZB,updateRetainCount:rI,updateRetainCountToZero:MA,releaseScheduledRetainablesNow:oI,retainedByOptionWithDefault:iI};const{unstable_batchedUpdates:sI}=_l;var aI={unstable_batchedUpdates:sI};const{unstable_batchedUpdates:lI}=aI;var uI={unstable_batchedUpdates:lI};const{batchStart:cI}=xi,{unstable_batchedUpdates:fI}=uI;let cy=fI||(e=>e());const dI=e=>{cy=e},pI=()=>cy,hI=e=>{cy(()=>{let t=()=>{};try{t=cI(),e()}finally{t()}})};var qh={getBatcher:pI,setBatcher:dI,batchUpdates:hI};function*mI(e){for(const t of e)for(const n of t)yield n}var BA=mI;const IA=typeof Window>"u"||typeof window>"u",gI=e=>!IA&&(e===window||e instanceof Window),vI=typeof navigator<"u"&&navigator.product==="ReactNative";var Gh={isSSR:IA,isReactNative:vI,isWindow:gI};function yI(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 xI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function wI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var bI={memoizeWithArgsHash:yI,memoizeOneWithArgsHash:xI,memoizeOneWithArgsHashAndInvalidation:wI};const{batchUpdates:h1}=qh,{initializeNode:_I,peekNodeInfo:SI}=Ls,{graph:EI}=pf,{getNextStoreID:CI}=Vh,{DEFAULT_VALUE:AI,recoilValues:aS,recoilValuesForKeys:lS}=Ur,{AbstractRecoilValue:RI,getRecoilValueAsLoadable:kI,setRecoilValue:uS,setUnvalidatedRecoilValue:TI}=xi,{updateRetainCount:yp}=Pa,{setInvalidateMemoizedSnapshot:DI}=SA,{getNextTreeStateVersion:PI,makeEmptyStoreState:OI}=gA,{isSSR:LI}=Gh,{memoizeOneWithArgsHashAndInvalidation:NI}=bI;class Kh{constructor(t,n){et(this,"_store",void 0),et(this,"_refCount",1),et(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),kI(this._store,r))),et(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),et(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 lS(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?aS.values():r.isInitialized===!0?lS(BA([o,i])):ay(aS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),et(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),SI(this._store,this._store.getState().currentTree,r))),et(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new m1(this,h1);return r(o),o}),et(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new m1(this,h1);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:CI(),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=EI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw it("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)_I(this._store,r,"get"),yp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){LI||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 $A(e,t,n=!1){const r=e.getState(),o=n?PI():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(jh(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function MI(e){const t=new Kh(OI());return e!=null?t.map(e):t}const[cS,FA]=NI((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 Kh($A(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)});DI(FA);function BI(e,t="latest"){const n=cS(e,t);return n.isRetained()?n:(FA(),cS(e,t))}class m1 extends Kh{constructor(t,n){super($A(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),et(this,"_batch",void 0),et(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{yp(i,r.key,1),uS(this.getStore_INTERNAL(),r,o)})}),et(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{yp(o,r.key,1),uS(this.getStore_INTERNAL(),r,AI)})}),et(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();h1(()=>{for(const[i,a]of r.entries())yp(o,i,1),TI(o,new RI(i),a)})}),this._batch=n}}var Yh={Snapshot:Kh,MutableSnapshot:m1,freshSnapshot:MI,cloneSnapshot:BI},II=Yh.Snapshot,$I=Yh.MutableSnapshot,FI=Yh.freshSnapshot,UI=Yh.cloneSnapshot,Xh=Object.freeze({__proto__:null,Snapshot:II,MutableSnapshot:$I,freshSnapshot:FI,cloneSnapshot:UI});function zI(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var jI=zI;const{useRef:VI}=Ze;function WI(e){const t=VI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var fS=WI;const{getNextTreeStateVersion:HI,makeEmptyStoreState:UA}=gA,{cleanUpNode:qI,getDownstreamNodes:GI,initializeNode:KI,setNodeValue:YI,setUnvalidatedAtomValue_DEPRECATED:XI}=Ls,{graph:ZI}=pf,{cloneGraph:QI}=pf,{getNextStoreID:zA}=Vh,{createMutableSource:Hg,reactMode:jA}=df,{applyAtomValueWrites:JI}=xi,{releaseScheduledRetainablesNow:VA}=Pa,{freshSnapshot:e$}=Xh,{useCallback:t$,useContext:WA,useEffect:g1,useMemo:n$,useRef:r$,useState:o$}=Ze;function ju(){throw it("This component must be used inside a component.")}const HA=Object.freeze({storeID:zA(),getState:ju,replaceState:ju,getGraph:ju,subscribeToTransactions:ju,addTransactionMetadata:ju});let v1=!1;function dS(e){if(v1)throw it("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&&VA(e);const n=t.currentTree.version,r=HI();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,QI(tn(t.graphsByVersion.get(n))))}}const qA=Ze.createContext({current:HA}),Zh=()=>WA(qA),GA=Ze.createContext(null);function i$(){return WA(GA)}function fy(e,t,n){const r=GI(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 KA(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);(!jA().early||t.suspendedComponentResolvers.size>0)&&(fy(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 s$(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,KA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ny("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ft("recoil_memory_managament_2020")&&n==null&&VA(e)}finally{t.commitDepth--}}function a$({setNotifyBatcherOfChange:e}){const t=Zh(),[,n]=o$([]);return e(()=>n({})),g1(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),g1(()=>{FM.enqueueExecution("Batcher",()=>{s$(t.current)})}),null}function l$(e,t){const n=UA();return t({set:(r,o)=>{const i=n.currentTree,a=YI(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:jI(i.dirtyAtoms,u),atomValues:JI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=XI(n.currentTree,i,o)})}}),n}function u$(e){const t=e$(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let pS=0;function c$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=w=>{const v=o.current.graphsByVersion;if(v.has(w))return tn(v.get(w));const y=ZI();return v.set(w,y),y},a=(w,v)=>{if(v==null){const{transactionSubscriptions:y}=h.current.getState(),A=pS++;return y.set(A,w),{release:()=>{y.delete(A)}}}else{const{nodeTransactionSubscriptions:y}=h.current.getState();y.has(v)||y.set(v,new Map);const A=pS++;return tn(y.get(v)).set(A,w),{release:()=>{const b=y.get(v);b&&(b.delete(A),b.size===0&&y.delete(v))}}}},u=w=>{dS(h.current);for(const v of Object.keys(w))tn(h.current.getState().nextTree).transactionMetadata[v]=w[v]},c=w=>{dS(h.current);const v=tn(o.current.nextTree);let y;try{v1=!0,y=w(v)}finally{v1=!1}y!==v&&(o.current.nextTree=y,jA().early&&fy(h.current,o.current,y),tn(f.current)())},f=r$(null),p=t$(w=>{f.current=w},[f]),h=fS(()=>n??{storeID:zA(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:u});n!=null&&(h.current=n),o=fS(()=>e!=null?l$(h.current,e):t!=null?u$(t):UA());const m=n$(()=>Hg==null?void 0:Hg(o,()=>o.current.currentTree.version),[o]);return g1(()=>{const w=h.current;for(const v of new Set(w.getState().knownAtoms))KI(w,v,"get");return()=>{for(const v of w.getState().knownAtoms)qI(w,v)}},[h]),Ze.createElement(qA.Provider,{value:h},Ze.createElement(GA.Provider,{value:m},Ze.createElement(a$,{setNotifyBatcherOfChange:p}),r))}function f$(e){const{override:t,...n}=e,r=Zh();return t===!1&&r.current!==HA?e.children:Ze.createElement(c$,n)}function d$(){return Zh().current.storeID}var Wi={RecoilRoot:f$,useStoreRef:Zh,useRecoilMutableSource:i$,useRecoilStoreID:d$,notifyComponents_FOR_TESTING:fy,sendEndOfBatchNotifications_FOR_TESTING:KA};function p$(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 YA=v$;const{useStoreRef:y$}=Wi,{SUSPENSE_TIMEOUT_MS:x$}=Pa,{updateRetainCount:Vu}=Pa,{RetentionZone:w$}=Wh,{useEffect:b$,useRef:_$}=Ze,{isSSR:hS}=Gh;function S$(e){if(Ft("recoil_memory_managament_2020"))return E$(e)}function E$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof w$?a:a.key),r=y$();b$(()=>{if(!Ft("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!hS)window.clearTimeout(o.current),o.current=null;else for(const u of n)Vu(a,u,1);return()=>{for(const u of n)Vu(a,u,-1)}},[r,...n]);const o=_$(),i=YA(n);if(!hS&&(i===void 0||!h$(i,n))){const a=r.current;for(const u of n)Vu(a,u,1);if(i)for(const u of i)Vu(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Vu(a,u,-1)},x$)}}var dy=S$;function C$(){return""}var mf=C$;const{batchUpdates:A$}=qh,{DEFAULT_VALUE:XA}=Ur,{currentRendererSupportsUseSyncExternalStore:R$,reactMode:uu,useMutableSource:k$,useSyncExternalStore:T$}=df,{useRecoilMutableSource:D$,useStoreRef:wi}=Wi,{AbstractRecoilValue:y1,getRecoilValueAsLoadable:gf,setRecoilValue:lh,setUnvalidatedRecoilValue:P$,subscribeToRecoilValue:Gl}=xi,{useCallback:Lr,useEffect:Kl,useMemo:ZA,useRef:_c,useState:py}=Ze,{setByAddingToSet:O$}=yA,{isSSR:L$}=Gh;function hy(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),L$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:it(`Invalid value of loadable atom "${t.key}"`)}function N$(){const e=mf(),t=wi(),[,n]=py([]),r=_c(new Set);r.current=new Set;const o=_c(new Set),i=_c(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 Kl(()=>{const c=t.current;wc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=Gl(c,new y1(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}),Kl(()=>{const c=i.current;return wc(r.current,new Set(c.keys())).forEach(f=>{const p=Gl(t.current,new y1(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),ZA(()=>{function c(v){return y=>{lh(t.current,v,y)}}function f(v){return()=>lh(t.current,v,XA)}function p(v){var y;r.current.has(v.key)||(r.current=O$(r.current,v.key));const A=t.current.getState();return gf(t.current,v,uu().early&&(y=A.nextTree)!==null&&y!==void 0?y:A.currentTree)}function h(v){const y=p(v);return hy(y,v,t)}function m(v){return[h(v),c(v)]}function w(v){return[p(v),c(v)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:w,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const M$={current:0};function B$(e){const t=wi(),n=mf(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=uu().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return{loadable:gf(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=ZA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return Gl(c,e,u,n).release},[t,e,n]);return T$(a,i,i).loadable}function I$(e){const t=wi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=uu().early&&(f=h.nextTree)!==null&&f!==void 0?f:h.currentTree;return gf(p,e,m)},[t,e]),r=Lr(()=>n(),[n]),o=mf(),i=Lr((f,p)=>{const h=t.current;return Gl(h,e,()=>{if(!Ft("recoil_suppress_rerender_in_callback"))return p();const w=n();c.current.is(w)||p(),c.current=w},o).release},[t,e,o,n]),a=D$();if(a==null)throw it("Recoil hooks must be used in components contained within a component.");const u=k$(a,r,i),c=_c(u);return Kl(()=>{c.current=u}),u}function x1(e){const t=wi(),n=mf(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=uu().early&&(c=p.nextTree)!==null&&c!==void 0?c:p.currentTree;return gf(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]);Kl(()=>{const c=Gl(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=py(o);return a.key!==e.key?o().loadable:a.loadable}function $$(e){const t=wi(),[,n]=py([]),r=mf(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=uu().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return gf(c,e,p)},[t,e]),i=o(),a=_c(i);return Kl(()=>{a.current=i}),Kl(()=>{const u=t.current,c=u.getState(),f=Gl(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const w=o();(m=a.current)!==null&&m!==void 0&&m.is(w)||n(w),a.current=w},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 my(e){return Ft("recoil_memory_managament_2020")&&dy(e),{TRANSITION_SUPPORT:x1,SYNC_EXTERNAL_STORE:R$()?B$:x1,MUTABLE_SOURCE:I$,LEGACY:$$}[uu().mode](e)}function QA(e){const t=wi(),n=my(e);return hy(n,e,t)}function Qh(e){const t=wi();return Lr(n=>{lh(t.current,e,n)},[t,e])}function F$(e){const t=wi();return Lr(()=>{lh(t.current,e,XA)},[t,e])}function U$(e){return[QA(e),Qh(e)]}function z$(e){return[my(e),Qh(e)]}function j$(){const e=wi();return(t,n={})=>{A$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>P$(e.current,new y1(o),r))})}}function JA(e){return Ft("recoil_memory_managament_2020")&&dy(e),x1(e)}function eR(e){const t=wi(),n=JA(e);return hy(n,e,t)}function V$(e){return[eR(e),Qh(e)]}var W$={recoilComponentGetRecoilValueCount_FOR_TESTING:M$,useRecoilInterface:N$,useRecoilState:U$,useRecoilStateLoadable:z$,useRecoilValue:QA,useRecoilValueLoadable:my,useResetRecoilState:F$,useSetRecoilState:Qh,useSetUnvalidatedAtomValues:j$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:JA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:eR,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:V$};function H$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var q$=H$;function G$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var K$=G$;function Y$(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function vS(e){const t=e.atomValues.toMap(),n=ah(q$(t,(r,o)=>{const a=tR(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return X$(e.nonvalidatedAtoms.toMap(),n)}function oF(e){e0(Jh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=vS(r),i=vS(n),a=ah(J$,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=K$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function iF(e){e0(Jh(t=>{const n=uh(t,"latest"),r=uh(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function sF(){const e=gy(),[t,n]=rF(()=>uh(e.current)),r=YA(t),o=mS(),i=mS();if(e0(Jh(u=>n(uh(u)),[])),nR(()=>{const u=t.retain();if(o.current&&!gS){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&&!gS){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},nF)}return t}function rR(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;Z$(()=>{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)&&tR(p).shouldRestoreFromSnapshots&&a.add(p)}a.forEach(f=>{tF(e,new eF(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):Q$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function aF(){const e=gy();return Jh(t=>rR(e.current,t),[e])}var oR={useRecoilSnapshot:sF,gotoSnapshot:rR,useGotoRecoilSnapshot:aF,useRecoilTransactionObserver:iF,useTransactionObservation_DEPRECATED:oF,useTransactionSubscription_DEPRECATED:e0};const{peekNodeInfo:lF}=Ls,{useStoreRef:uF}=Wi;function cF(){const e=uF();return({key:t})=>lF(e.current,e.current.getState().currentTree,t)}var fF=cF;const{reactMode:dF}=df,{RecoilRoot:pF,useStoreRef:hF}=Wi,{useMemo:mF}=Ze;function gF(){dF().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=hF().current;return mF(()=>{function t({children:n}){return Ze.createElement(pF,{store_INTERNAL:e},n)}return t},[e])}var vF=gF;const{loadableWithValue:yF}=ff,{initializeNode:xF}=Ls,{DEFAULT_VALUE:wF,getNode:bF}=Ur,{copyTreeState:_F,getRecoilValueAsLoadable:SF,invalidateDownstreams:EF,writeLoadableToTreeState:CF}=xi;function yS(e){return bF(e.key).nodeType==="atom"}class AF{constructor(t,n){et(this,"_store",void 0),et(this,"_treeState",void 0),et(this,"_changes",void 0),et(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!yS(r))throw it("Reading selectors within atomicUpdate is not supported");const o=SF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:it(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),et(this,"set",(r,o)=>{if(!yS(r))throw it("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else xF(this._store,r.key,"set"),this._changes.set(r.key,o)}),et(this,"reset",r=>{this.set(r,wF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=_F(this._treeState);for(const[n,r]of this._changes)CF(t,n,yF(r));return EF(this._store,t),t}}function RF(e){return t=>{e.replaceState(n=>{const r=new AF(e,n);return t(r),r.newTreeState_INTERNAL()})}}var kF={atomicUpdater:RF},TF=kF.atomicUpdater,iR=Object.freeze({__proto__:null,atomicUpdater:TF});function DF(e,t){if(!e)throw new Error(t)}var PF=DF,sc=PF;const{atomicUpdater:OF}=iR,{batchUpdates:LF}=qh,{DEFAULT_VALUE:NF}=Ur,{useStoreRef:MF}=Wi,{refreshRecoilValue:BF,setRecoilValue:xS}=xi,{cloneSnapshot:IF}=Xh,{gotoSnapshot:$F}=oR,{useCallback:FF}=Ze;class sR{}const UF=new sR;function aR(e,t,n,r){let o=UF,i;if(LF(()=>{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 it(u);const c=xA({...r??{},set:(p,h)=>xS(e,p,h),reset:p=>xS(e,p,NF),refresh:p=>BF(e,p),gotoSnapshot:p=>$F(e,p),transact_UNSTABLE:p=>OF(e)(p)},{snapshot:()=>{const p=IF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw it(u);o=f(...n)}),o instanceof sR&&sc(!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 zF(e,t){const n=MF();return FF((...r)=>aR(n.current,e,r),t!=null?[...t,n]:void 0)}var lR={recoilCallback:aR,useRecoilCallback:zF};const{useStoreRef:jF}=Wi,{refreshRecoilValue:VF}=xi,{useCallback:WF}=Ze;function HF(e){const t=jF();return WF(()=>{const n=t.current;VF(n,e)},[e,t])}var qF=HF;const{atomicUpdater:GF}=iR,{useStoreRef:KF}=Wi,{useMemo:YF}=Ze;function XF(e,t){const n=KF();return YF(()=>(...r)=>{GF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var ZF=XF;class QF{constructor(t){et(this,"value",void 0),this.value=t}}var JF={WrappedValue:QF},eU=JF.WrappedValue,uR=Object.freeze({__proto__:null,WrappedValue:eU});const{isFastRefreshEnabled:tU}=df;class wS extends Error{}class nU{constructor(t){var n,r,o;et(this,"_name",void 0),et(this,"_numLeafs",void 0),et(this,"_root",void 0),et(this,"_onHit",void 0),et(this,"_onSet",void 0),et(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,w;const x=this._root;if((x==null?void 0:x.type)==="leaf")throw this.invalidCacheError();const S=f;if(f=S?S.branches.get(p):x,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=(w=this._root)!==null&&w!==void 0?w:f}const v=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==p))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,y),this._root=(u=this._root)!==null&&u!==void 0?u:y,this._numLeafs++,this._onSet(y),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,y)};try{o()}catch(i){if(i instanceof wS)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=tU()?"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 ny(t+(this._name!=null?` - ${this._name}`:"")),new wS}}var rU={TreeCache:nU},oU=rU.TreeCache,cR=Object.freeze({__proto__:null,TreeCache:oU});class iU{constructor(t){var n;et(this,"_maxSize",void 0),et(this,"_size",void 0),et(this,"_head",void 0),et(this,"_tail",void 0),et(this,"_map",void 0),et(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 sU={LRUCache:iU},aU=sU.LRUCache,fR=Object.freeze({__proto__:null,LRUCache:aU});const{LRUCache:lU}=fR,{TreeCache:uU}=cR;function cU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new lU({maxSize:t}),o=new uU({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 bS=cU;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 it("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 fU(e,t={allowFunctions:!1}){return Wo(e,t)}var t0=fU;const{TreeCache:dU}=cR,$d={equality:"reference",eviction:"keep-all",maxSize:1/0};function pU({equality:e=$d.equality,eviction:t=$d.eviction,maxSize:n=$d.maxSize}=$d,r){const o=hU(e);return mU(t,n,o,r)}function hU(e){switch(e){case"reference":return t=>t;case"value":return t=>t0(t)}throw it(`Unrecognized equality policy ${e}`)}function mU(e,t,n,r){switch(e){case"keep-all":return new dU({name:r,mapNodeValue:n});case"lru":return bS({name:r,maxSize:tn(t),mapNodeValue:n});case"most-recent":return bS({name:r,maxSize:1,mapNodeValue:n})}throw it(`Unrecognized eviction policy ${e}`)}var gU=pU;function vU(e){return()=>null}var yU={startPerfBlock:vU};const{isLoadable:xU,loadableWithError:Fd,loadableWithPromise:wU,loadableWithValue:qg}=ff,{WrappedValue:dR}=uR,{getNodeLoadable:Ud,peekNodeLoadable:bU,setNodeValue:_U}=Ls,{saveDepsToStore:SU}=pf,{DEFAULT_VALUE:EU,getConfigDeletionHandler:CU,getNode:AU,registerNode:_S}=Ur,{isRecoilValue:RU}=ql,{markRecoilValueModified:SS}=xi,{retainedByOptionWithDefault:kU}=Pa,{recoilCallback:TU}=lR,{startPerfBlock:DU}=yU;class pR{}const Wu=new pR,Hu=[],zd=new Map,PU=(()=>{let e=0;return()=>e++})();function hR(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=gU(o??{equality:"reference",eviction:"keep-all"},n),c=kU(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 w(){return CU(n)!==void 0&&!h()}function v(U,ae,te,ye,ue){le(ae,ye,ue),y(U,te)}function y(U,ae){G(U,ae)&&q(U),b(ae,!0)}function A(U,ae){G(U,ae)&&(tn(I(U)).stateVersions.clear(),b(ae,!1))}function b(U,ae){const te=zd.get(U);if(te!=null){for(const ye of te)SS(ye,tn(t));ae&&zd.delete(U)}}function x(U,ae){let te=zd.get(ae);te==null&&zd.set(ae,te=new Set),te.add(U)}function S(U,ae,te,ye,ue,Ne){return ae.then(Re=>{if(!h())throw q(U),Wu;const ve=qg(Re);return v(U,te,ue,ve,ye),Re}).catch(Re=>{if(!h())throw q(U),Wu;if(Kt(Re))return k(U,Re,te,ye,ue,Ne);const ve=Fd(Re);throw v(U,te,ue,ve,ye),Re})}function k(U,ae,te,ye,ue,Ne){return ae.then(Re=>{if(!h())throw q(U),Wu;Ne.loadingDepKey!=null&&Ne.loadingDepPromise===ae?te.atomValues.set(Ne.loadingDepKey,qg(Re)):U.getState().knownSelectors.forEach(_e=>{te.atomValues.delete(_e)});const ve=L(U,te);if(ve&&ve.state!=="loading"){if((G(U,ue)||I(U)==null)&&y(U,ue),ve.state==="hasValue")return ve.contents;throw ve.contents}if(!G(U,ue)){const _e=H(U,te);if(_e!=null)return _e.loadingLoadable.contents}const[Ce,ge]=E(U,te,ue);if(Ce.state!=="loading"&&v(U,te,ue,Ce,ge),Ce.state==="hasError")throw Ce.contents;return Ce.contents}).catch(Re=>{if(Re instanceof pR)throw Wu;if(!h())throw q(U),Wu;const ve=Fd(Re);throw v(U,te,ue,ve,ye),Re})}function P(U,ae,te,ye){var ue,Ne,Re,ve;if(G(U,ye)||ae.version===((ue=U.getState())===null||ue===void 0||(Ne=ue.currentTree)===null||Ne===void 0?void 0:Ne.version)||ae.version===((Re=U.getState())===null||Re===void 0||(ve=Re.nextTree)===null||ve===void 0?void 0:ve.version)){var Ce,ge,_e;SU(n,te,U,(Ce=(ge=U.getState())===null||ge===void 0||(_e=ge.nextTree)===null||_e===void 0?void 0:_e.version)!==null&&Ce!==void 0?Ce:U.getState().currentTree.version)}for(const je of te)a.add(je)}function E(U,ae,te){const ye=DU(n);let ue=!0,Ne=!0;const Re=()=>{ye(),Ne=!1};let ve,Ce=!1,ge;const _e={loadingDepKey:null,loadingDepPromise:null},je=new Map;function nt({key:yt}){const rt=Ud(U,ae,yt);switch(je.set(yt,rt),ue||(P(U,ae,new Set(je.keys()),te),A(U,te)),rt.state){case"hasValue":return rt.contents;case"hasError":throw rt.contents;case"loading":throw _e.loadingDepKey=yt,_e.loadingDepPromise=rt.contents,rt.contents}throw it("Invalid Loadable state")}const ut=yt=>(...rt)=>{if(Ne)throw it("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&&sc(!1),TU(U,yt,rt,{node:t})};try{ve=r({get:nt,getCallback:ut}),ve=RU(ve)?nt(ve):ve,xU(ve)&&(ve.state==="hasError"&&(Ce=!0),ve=ve.contents),Kt(ve)?ve=S(U,ve,ae,je,te,_e).finally(Re):Re(),ve=ve instanceof dR?ve.value:ve}catch(yt){ve=yt,Kt(ve)?ve=k(U,ve,ae,je,te,_e).finally(Re):(Ce=!0,Re())}return Ce?ge=Fd(ve):Kt(ve)?ge=wU(ve):ge=qg(ve),ue=!1,se(U,te,je),P(U,ae,new Set(je.keys()),te),[ge,je]}function L(U,ae){let te=ae.atomValues.get(n);if(te!=null)return te;const ye=new Set;try{te=u.get(Ne=>(typeof Ne!="string"&&sc(!1),Ud(U,ae,Ne).contents),{onNodeVisit:Ne=>{Ne.type==="branch"&&Ne.nodeKey!==n&&ye.add(Ne.nodeKey)}})}catch(Ne){throw it(`Problem with cache lookup for selector "${n}": ${Ne.message}`)}if(te){var ue;ae.atomValues.set(n,te),P(U,ae,ye,(ue=I(U))===null||ue===void 0?void 0:ue.executionID)}return te}function $(U,ae){const te=L(U,ae);if(te!=null)return q(U),te;const ye=H(U,ae);if(ye!=null){var ue;return((ue=ye.loadingLoadable)===null||ue===void 0?void 0:ue.state)==="loading"&&x(U,ye.executionID),ye.loadingLoadable}const Ne=PU(),[Re,ve]=E(U,ae,Ne);return Re.state==="loading"?(X(U,Ne,Re,ve,ae),x(U,Ne)):(q(U),le(ae,Re,ve)),Re}function H(U,ae){const te=BA([f.has(U)?[tn(f.get(U))]:[],jh(ay(f,([ue])=>ue!==U),([,ue])=>ue)]);function ye(ue){for(const[Ne,Re]of ue)if(!Ud(U,ae,Ne).is(Re))return!0;return!1}for(const ue of te){if(ue.stateVersions.get(ae.version)||!ye(ue.depValuesDiscoveredSoFarDuringAsyncWork))return ue.stateVersions.set(ae.version,!0),ue;ue.stateVersions.set(ae.version,!1)}}function I(U){return f.get(U)}function X(U,ae,te,ye,ue){f.set(U,{depValuesDiscoveredSoFarDuringAsyncWork:ye,executionID:ae,loadingLoadable:te,stateVersions:new Map([[ue.version,!0]])})}function se(U,ae,te){if(G(U,ae)){const ye=I(U);ye!=null&&(ye.depValuesDiscoveredSoFarDuringAsyncWork=te)}}function q(U){f.delete(U)}function G(U,ae){var te;return ae===((te=I(U))===null||te===void 0?void 0:te.executionID)}function Q(U){return Array.from(U.entries()).map(([ae,te])=>[ae,te.contents])}function le(U,ae,te){U.atomValues.set(n,ae);try{u.set(Q(te),ae)}catch(ye){throw it(`Problem with setting cache for selector "${n}": ${ye.message}`)}}function pe(U){if(Hu.includes(n)){const ae=`Recoil selector has circular dependencies: ${Hu.slice(Hu.indexOf(n)).join(" → ")}`;return Fd(it(ae))}Hu.push(n);try{return U()}finally{Hu.pop()}}function J(U,ae){const te=ae.atomValues.get(n);return te??u.get(ye=>{var ue;return typeof ye!="string"&&sc(!1),(ue=bU(U,ae,ye))===null||ue===void 0?void 0:ue.contents})}function de(U,ae){return pe(()=>$(U,ae))}function re(U){U.atomValues.delete(n)}function he(U,ae){t==null&&sc(!1);for(const ye of a){var te;const ue=AU(ye);(te=ue.clearCache)===null||te===void 0||te.call(ue,U,ae)}a.clear(),re(ae),u.clear(),SS(U,t)}return i!=null?t=_S({key:n,nodeType:"selector",peek:J,get:de,set:(ae,te,ye)=>{let ue=!1;const Ne=new Map;function Re({key:_e}){if(ue)throw it("Recoil: Async selector sets are not currently supported.");const je=Ud(ae,te,_e);if(je.state==="hasValue")return je.contents;if(je.state==="loading"){const nt=`Getting value of asynchronous atom or selector "${_e}" in a pending state while setting selector "${n}" is not yet supported.`;throw it(nt)}else throw je.contents}function ve(_e,je){if(ue)throw it("Recoil: Async selector sets are not currently supported.");const nt=typeof je=="function"?je(Re(_e)):je;_U(ae,te,_e.key,nt).forEach((yt,rt)=>Ne.set(rt,yt))}function Ce(_e){ve(_e,EU)}const ge=i({set:ve,get:Re,reset:Ce},ye);if(ge!==void 0)throw Kt(ge)?it("Recoil: Async selector sets are not currently supported."):it("Recoil: selector set should be a void function.");return ue=!0,Ne},init:m,invalidate:re,clearCache:he,shouldDeleteConfigOnRelease:w,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=_S({key:n,nodeType:"selector",peek:J,get:de,init:m,invalidate:re,clearCache:he,shouldDeleteConfigOnRelease:w,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}hR.value=e=>new dR(e);var Yl=hR;const{isLoadable:OU,loadableWithError:Gg,loadableWithPromise:Kg,loadableWithValue:Za}=ff,{WrappedValue:mR}=uR,{peekNodeInfo:LU}=Ls,{DEFAULT_VALUE:na,DefaultValue:cs,getConfigDeletionHandler:gR,registerNode:NU,setConfigDeletionHandler:MU}=Ur,{isRecoilValue:BU}=ql,{getRecoilValueAsLoadable:IU,markRecoilValueModified:$U,setRecoilValue:ES,setRecoilValueLoadable:FU}=xi,{retainedByOptionWithDefault:UU}=Pa,qu=e=>e instanceof mR?e.value:e;function zU(e){const{key:t,persistence_UNSTABLE:n}=e,r=UU(e.retainedBy_UNSTABLE);let o=0;function i(x){return Kg(x.then(S=>(a=Za(S),S)).catch(S=>{throw a=Gg(S),S}))}let a=Kt(e.default)?i(e.default):OU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Za(qu(e.default));a.contents;let u;const c=new Map;function f(x){return x}function p(x,S){const k=S.then(P=>{var E,L;return((L=((E=x.getState().nextTree)!==null&&E!==void 0?E:x.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&ES(x,b,P),P}).catch(P=>{var E,L;throw((L=((E=x.getState().nextTree)!==null&&E!==void 0?E:x.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&FU(x,b,Gg(P)),P});return k}function h(x,S,k){var P;o++;const E=()=>{var I;o--,(I=c.get(x))===null||I===void 0||I.forEach(X=>X()),c.delete(x)};if(x.getState().knownAtoms.add(t),a.state==="loading"){const I=()=>{var X;((X=x.getState().nextTree)!==null&&X!==void 0?X:x.getState().currentTree).atomValues.has(t)||$U(x,b)};a.contents.finally(I)}const L=(P=e.effects)!==null&&P!==void 0?P:e.effects_UNSTABLE;if(L!=null){let I=function(re){if(G&&re.key===t){const he=q;return he instanceof cs?m(x,S):Kt(he)?Kg(he.then(U=>U instanceof cs?a.toPromise():U)):Za(he)}return IU(x,re)},X=function(re){return I(re).toPromise()},se=function(re){var he;const U=LU(x,(he=x.getState().nextTree)!==null&&he!==void 0?he:x.getState().currentTree,re.key);return G&&re.key===t&&!(q instanceof cs)?{...U,isSet:!0,loadable:I(re)}:U},q=na,G=!0,Q=!1,le=null;const pe=re=>he=>{if(G){const U=I(b),ae=U.state==="hasValue"?U.contents:na;q=typeof he=="function"?he(ae):he,Kt(q)&&(q=q.then(te=>(le={effect:re,value:te},te)))}else{if(Kt(he))throw it("Setting atoms to async values is not implemented.");typeof he!="function"&&(le={effect:re,value:qu(he)}),ES(x,b,typeof he=="function"?U=>{const ae=qu(he(U));return le={effect:re,value:ae},ae}:qu(he))}},J=re=>()=>pe(re)(na),de=re=>he=>{var U;const{release:ae}=x.subscribeToTransactions(te=>{var ye;let{currentTree:ue,previousTree:Ne}=te.getState();Ne||(Ne=ue);const Re=(ye=ue.atomValues.get(t))!==null&&ye!==void 0?ye:a;if(Re.state==="hasValue"){var ve,Ce,ge,_e;const je=Re.contents,nt=(ve=Ne.atomValues.get(t))!==null&&ve!==void 0?ve:a,ut=nt.state==="hasValue"?nt.contents:na;((Ce=le)===null||Ce===void 0?void 0:Ce.effect)!==re||((ge=le)===null||ge===void 0?void 0:ge.value)!==je?he(je,ut,!ue.atomValues.has(t)):((_e=le)===null||_e===void 0?void 0:_e.effect)===re&&(le=null)}},t);c.set(x,[...(U=c.get(x))!==null&&U!==void 0?U:[],ae])};for(const re of L)try{const he=re({node:b,storeID:x.storeID,parentStoreID_UNSTABLE:x.parentStoreID,trigger:k,setSelf:pe(re),resetSelf:J(re),onSet:de(re),getPromise:X,getLoadable:I,getInfo_UNSTABLE:se});if(he!=null){var $;c.set(x,[...($=c.get(x))!==null&&$!==void 0?$:[],he])}}catch(he){q=he,Q=!0}if(G=!1,!(q instanceof cs)){var H;const re=Q?Gg(q):Kt(q)?Kg(p(x,q)):Za(qu(q));re.contents,S.atomValues.set(t,re),(H=x.getState().nextTree)===null||H===void 0||H.atomValues.set(t,re)}}return E}function m(x,S){var k,P;return(k=(P=S.atomValues.get(t))!==null&&P!==void 0?P:u)!==null&&k!==void 0?k:a}function w(x,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),P=n.validator(k,na);return u=P instanceof cs?a:Za(P),u}else return a}function v(){u=void 0}function y(x,S,k){if(S.atomValues.has(t)){const P=tn(S.atomValues.get(t));if(P.state==="hasValue"&&k===P.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof cs)return new Map;return u=void 0,new Map().set(t,Za(k))}function A(){return gR(t)!==void 0&&o<=0}const b=NU({key:t,nodeType:"atom",peek:m,get:w,set:y,init:h,invalidate:v,shouldDeleteConfigOnRelease:A,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return b}function vy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return BU(n)?jU({...t,default:n}):zU({...t,default:n})}function jU(e){const t=vy({...e,default:na,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof cs?r:tn(e.persistence_UNSTABLE).validator(r,na)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Yl({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 MU(n.key,gR(e.key)),n}vy.value=e=>new mR(e);var vR=vy;class VU{constructor(t){var n;et(this,"_map",void 0),et(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 WU={MapCache:VU},HU=WU.MapCache,qU=Object.freeze({__proto__:null,MapCache:HU});const{LRUCache:CS}=fR,{MapCache:GU}=qU,jd={equality:"reference",eviction:"none",maxSize:1/0};function KU({equality:e=jd.equality,eviction:t=jd.eviction,maxSize:n=jd.maxSize}=jd){const r=YU(e);return XU(t,n,r)}function YU(e){switch(e){case"reference":return t=>t;case"value":return t=>t0(t)}throw it(`Unrecognized equality policy ${e}`)}function XU(e,t,n){switch(e){case"keep-all":return new GU({mapKey:n});case"lru":return new CS({mapKey:n,maxSize:tn(t)});case"most-recent":return new CS({mapKey:n,maxSize:1})}throw it(`Unrecognized eviction policy ${e}`)}var yR=KU;const{setConfigDeletionHandler:ZU}=Ur;function QU(e){var t,n;const r=yR({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=vR({...f,key:`${e.key}__${(i=t0(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),ZU(h.key,()=>{r.delete(o)}),h}}var JU=QU;const{setConfigDeletionHandler:ez}=Ur;let tz=0;function nz(e){var t,n;const r=yR({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 it(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=t0(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${tz++}`,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=Yl({key:u,get:c,set:(v,y)=>m(o)(v,y),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Yl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),ez(h.key,()=>{r.delete(o)}),h}}var Ns=nz;const rz=Ns({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function oz(e){return rz(e)}var iz=oz;const sz=Ns({key:"__error",get:e=>()=>{throw it(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function az(e){return sz(e)}var lz=az;function uz(e){return e}var cz=uz;const{loadableWithError:xR,loadableWithPromise:wR,loadableWithValue:bR}=ff;function n0(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 fz(e){return e!=null&&!Kt(e)}function r0(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function w1(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function Ll(e,t,n){const r=n.map((o,i)=>o==null?bR(t[i]):Kt(o)?wR(o):xR(o));return w1(e,r)}function dz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const pz=Ns({key:"__waitForNone",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);return Ll(e,r,o)},dangerouslyAllowMutability:!0}),hz=Ns({key:"__waitForAny",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);return o.some(i=>!Kt(i))?Ll(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(Ll(e,r,o))}).catch(c=>{o[a]=c,i(Ll(e,r,o))})})},dangerouslyAllowMutability:!0}),mz=Ns({key:"__waitForAll",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);if(o.every(a=>a==null))return w1(e,r);const i=o.find(fz);if(i!=null)throw i;return Promise.all(o).then(a=>w1(e,dz(r,a)))},dangerouslyAllowMutability:!0}),gz=Ns({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=r0(e),[r,o]=n0(t,n);return o.every(i=>!Kt(i))?Ll(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(()=>Ll(e,r,o))},dangerouslyAllowMutability:!0}),vz=Ns({key:"__noWait",get:e=>({get:t})=>{try{return Yl.value(bR(t(e)))}catch(n){return Yl.value(Kt(n)?wR(n):xR(n))}},dangerouslyAllowMutability:!0});var yz={waitForNone:pz,waitForAny:hz,waitForAll:mz,waitForAllSettled:gz,noWait:vz};const{RecoilLoadable:xz}=ff,{DefaultValue:wz}=Ur,{RecoilRoot:bz,useRecoilStoreID:_z}=Wi,{isRecoilValue:Sz}=ql,{retentionZone:Ez}=Wh,{freshSnapshot:Cz}=Xh,{useRecoilState:Az,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Rz,useRecoilStateLoadable:kz,useRecoilValue:Tz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Dz,useRecoilValueLoadable:Pz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Oz,useResetRecoilState:Lz,useSetRecoilState:Nz}=W$,{useGotoRecoilSnapshot:Mz,useRecoilSnapshot:Bz,useRecoilTransactionObserver:Iz}=oR,{useRecoilCallback:$z}=lR,{noWait:Fz,waitForAll:Uz,waitForAllSettled:zz,waitForAny:jz,waitForNone:Vz}=yz;var Ms={DefaultValue:wz,isRecoilValue:Sz,RecoilLoadable:xz,RecoilEnv:lu,RecoilRoot:bz,useRecoilStoreID:_z,useRecoilBridgeAcrossReactRoots_UNSTABLE:vF,atom:vR,selector:Yl,atomFamily:JU,selectorFamily:Ns,constSelector:iz,errorSelector:lz,readOnlySelector:cz,noWait:Fz,waitForNone:Vz,waitForAny:jz,waitForAll:Uz,waitForAllSettled:zz,useRecoilValue:Tz,useRecoilValueLoadable:Pz,useRecoilState:Az,useRecoilStateLoadable:kz,useSetRecoilState:Nz,useResetRecoilState:Lz,useGetRecoilValueInfo_UNSTABLE:fF,useRecoilRefresher_UNSTABLE:qF,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Oz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Dz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Rz,useRecoilCallback:$z,useRecoilTransaction_UNSTABLE:ZF,useGotoRecoilSnapshot:Mz,useRecoilSnapshot:Bz,useRecoilTransactionObserver_UNSTABLE:Iz,snapshot_UNSTABLE:Cz,useRetain:dy,retentionZone:Ez},Wz=Ms.DefaultValue,Hz=Ms.RecoilRoot,An=Ms.atom,_R=Ms.selector,Sn=Ms.useRecoilValue,AS=Ms.useRecoilState,on=Ms.useSetRecoilState,xp=Ms.useResetRecoilState,ch={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 - */ch.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,w=4,v=1,y=2,A=1,b=2,x=4,S=8,k=16,P=32,E=64,L=128,$=256,q=512,I=30,X="...",se=800,H=16,G=1,Q=2,le=3,pe=1/0,J=9007199254740991,de=17976931348623157e292,re=NaN,he=4294967295,U=he-1,ae=he>>>1,te=[["ary",L],["bind",A],["bindKey",b],["curry",S],["curryRight",k],["flip",q],["partial",P],["partialRight",E],["rearg",$]],ye="[object Arguments]",ue="[object Array]",Me="[object AsyncFunction]",Re="[object Boolean]",ve="[object Date]",Ce="[object DOMException]",ge="[object Error]",_e="[object Function]",je="[object GeneratorFunction]",nt="[object Map]",ut="[object Number]",yt="[object Null]",rt="[object Object]",cn="[object Promise]",Kn="[object Proxy]",dt="[object RegExp]",at="[object Set]",fn="[object String]",dn="[object Symbol]",Ut="[object Undefined]",Rt="[object WeakMap]",Tn="[object WeakSet]",nn="[object ArrayBuffer]",He="[object DataView]",Le="[object Float32Array]",Xt="[object Float64Array]",ir="[object Int8Array]",Yn="[object Int16Array]",Dn="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ce="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ue=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,$e=RegExp(Ue.source),Ke=RegExp(Be.source),Et=/<%-([\s\S]+?)%>/g,Pn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,On=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sr=/[\\^$.*+?()[\]{}|]/g,M=RegExp(sr.source),B=/^\s+/,K=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Se=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ct=/^[-+]0x[0-9a-f]+$/i,xt=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,hn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ni=/($^)/,ri=/['\n\r\u2028\u2029\\]/g,$o="\\ud800-\\udfff",qi="\\u0300-\\u036f",Hi="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Fs=qi+Hi+ao,Us="\\u2700-\\u27bf",zs="a-z\\xdf-\\xf6\\xf8-\\xff",Qe="\\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",yu="\\ufe0e\\ufe0f",Mf=Qe+Zt+hr+jt,im="['’]",PT="["+$o+"]",Px="["+Mf+"]",Nf="["+Fs+"]",Ox="\\d+",OT="["+Us+"]",Lx="["+zs+"]",Mx="[^"+$o+Mf+Ox+Us+zs+lo+"]",sm="\\ud83c[\\udffb-\\udfff]",LT="(?:"+Nf+"|"+sm+")",Nx="[^"+$o+"]",am="(?:\\ud83c[\\udde6-\\uddff]){2}",lm="[\\ud800-\\udbff][\\udc00-\\udfff]",Ba="["+lo+"]",Bx="\\u200d",Ix="(?:"+Lx+"|"+Mx+")",MT="(?:"+Ba+"|"+Mx+")",$x="(?:"+im+"(?:d|ll|m|re|s|t|ve))?",Fx="(?:"+im+"(?:D|LL|M|RE|S|T|VE))?",Ux=LT+"?",zx="["+yu+"]?",NT="(?:"+Bx+"(?:"+[Nx,am,lm].join("|")+")"+zx+Ux+")*",BT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",IT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jx=zx+Ux+NT,$T="(?:"+[OT,am,lm].join("|")+")"+jx,FT="(?:"+[Nx+Nf+"?",Nf,am,lm,PT].join("|")+")",UT=RegExp(im,"g"),zT=RegExp(Nf,"g"),um=RegExp(sm+"(?="+sm+")|"+FT+jx,"g"),jT=RegExp([Ba+"?"+Lx+"+"+$x+"(?="+[Px,Ba,"$"].join("|")+")",MT+"+"+Fx+"(?="+[Px,Ba+Ix,"$"].join("|")+")",Ba+"?"+Ix+"+"+$x,Ba+"+"+Fx,IT,BT,Ox,$T].join("|"),"g"),VT=RegExp("["+Bx+$o+Fs+yu+"]"),WT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qT=["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"],HT=-1,Ht={};Ht[Le]=Ht[Xt]=Ht[ir]=Ht[Yn]=Ht[Dn]=Ht[Io]=Ht[W]=Ht[F]=Ht[ce]=!0,Ht[ye]=Ht[ue]=Ht[nn]=Ht[Re]=Ht[He]=Ht[ve]=Ht[ge]=Ht[_e]=Ht[nt]=Ht[ut]=Ht[rt]=Ht[dt]=Ht[at]=Ht[fn]=Ht[Rt]=!1;var Vt={};Vt[ye]=Vt[ue]=Vt[nn]=Vt[He]=Vt[Re]=Vt[ve]=Vt[Le]=Vt[Xt]=Vt[ir]=Vt[Yn]=Vt[Dn]=Vt[nt]=Vt[ut]=Vt[rt]=Vt[dt]=Vt[at]=Vt[fn]=Vt[dn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ce]=!0,Vt[ge]=Vt[_e]=Vt[Rt]=!1;var GT={À:"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"},KT={"&":"&","<":"<",">":">",'"':""","'":"'"},YT={"&":"&","<":"<",">":">",""":'"',"'":"'"},XT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ZT=parseFloat,QT=parseInt,Vx=typeof window=="object"&&window&&window.Object===Object&&window,JT=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Vx||JT||Function("return this")(),cm=t&&!t.nodeType&&t,js=cm&&!0&&e&&!e.nodeType&&e,Wx=js&&js.exports===cm,fm=Wx&&Vx.process,uo=function(){try{var z=js&&js.require&&js.require("util").types;return z||fm&&fm.binding&&fm.binding("util")}catch{}}(),qx=uo&&uo.isArrayBuffer,Hx=uo&&uo.isDate,Gx=uo&&uo.isMap,Kx=uo&&uo.isRegExp,Yx=uo&&uo.isSet,Xx=uo&&uo.isTypedArray;function zr(z,ee,Y){switch(Y.length){case 0:return z.call(ee);case 1:return z.call(ee,Y[0]);case 2:return z.call(ee,Y[0],Y[1]);case 3:return z.call(ee,Y[0],Y[1],Y[2])}return z.apply(ee,Y)}function e8(z,ee,Y,Te){for(var Ye=-1,Tt=z==null?0:z.length;++Ye-1}function dm(z,ee,Y){for(var Te=-1,Ye=z==null?0:z.length;++Te-1;);return Y}function ow(z,ee){for(var Y=z.length;Y--&&Ia(ee,z[Y],0)>-1;);return Y}function u8(z,ee){for(var Y=z.length,Te=0;Y--;)z[Y]===ee&&++Te;return Te}var c8=gm(GT),f8=gm(KT);function d8(z){return"\\"+XT[z]}function p8(z,ee){return z==null?n:z[ee]}function $a(z){return VT.test(z)}function h8(z){return WT.test(z)}function m8(z){for(var ee,Y=[];!(ee=z.next()).done;)Y.push(ee.value);return Y}function wm(z){var ee=-1,Y=Array(z.size);return z.forEach(function(Te,Ye){Y[++ee]=[Ye,Te]}),Y}function iw(z,ee){return function(Y){return z(ee(Y))}}function Yi(z,ee){for(var Y=-1,Te=z.length,Ye=0,Tt=[];++Y-1}function nD(s,l){var d=this.__data__,g=Jf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=Q8,_i.prototype.delete=J8,_i.prototype.get=eD,_i.prototype.has=tD,_i.prototype.set=nD;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,N=l&h,V=l&m,oe=l&w;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=s7(s),!N)return Er(s,O)}else{var fe=lr(s),Ee=fe==_e||fe==je;if(ts(s))return zw(s,N);if(fe==rt||fe==ye||Ee&&!_){if(O=V||Ee?{}:sb(s),!N)return V?YD(s,yD(O,s)):KD(s,vw(O,s))}else{if(!Vt[fe])return _?s:{};O=a7(s,fe,N)}}R||(R=new Uo);var Ne=R.get(s);if(Ne)return Ne;R.set(s,O),Nb(s)?s.forEach(function(qe){O.add(ho(qe,l,d,qe,s,R))}):Lb(s)&&s.forEach(function(qe,ct){O.set(ct,ho(qe,l,d,ct,s,R))});var We=oe?V?Hm:qm:V?Ar:jn,ot=ie?n:We(s);return co(ot||s,function(qe,ct){ot&&(ct=qe,qe=s[ct]),Cu(O,ct,ho(qe,l,d,ct,s,R))}),O}function xD(s){var l=jn(s);return function(d){return yw(d,s,l)}}function yw(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 xw(s,l,d){if(typeof s!="function")throw new fo(a);return Ou(function(){s.apply(n,d)},l)}function Au(s,l,d,g){var _=-1,R=Bf,O=!0,N=s.length,V=[],oe=l.length;if(!N)return V;d&&(l=Qt(l,jr(d))),g?(R=dm,O=!1):l.length>=o&&(R=xu,O=!1,l=new qs(l));e:for(;++__?0:_+d),g=g===n||g>_?_:tt(g),g<0&&(g+=_),g=d>g?0:Ib(g);d0&&d(N)?l>1?Zn(N,l-1,d,g,_):Ki(_,N):g||(_[_.length]=N)}return _}var Rm=Gw(),_w=Gw(!0);function oi(s,l){return s&&Rm(s,l,jn)}function km(s,l){return s&&_w(s,l,jn)}function td(s,l){return Gi(l,function(d){return ki(s[d])})}function Gs(s,l){l=Ji(l,s);for(var d=0,g=l.length;s!=null&&dl}function _D(s,l){return s!=null&&Mt.call(s,l)}function SD(s,l){return s!=null&&l in $t(s)}function ED(s,l,d){return s>=ar(l,d)&&s<$n(l,d)}function Dm(s,l,d){for(var g=d?dm:Bf,_=s[0].length,R=s.length,O=R,N=Y(R),V=1/0,oe=[];O--;){var ie=s[O];O&&l&&(ie=Qt(ie,jr(l))),V=ar(ie.length,V),N[O]=!d&&(l||_>=120&&ie.length>=120)?new qs(O&&ie):n}ie=s[0];var fe=-1,Ee=N[0];e:for(;++fe<_&&oe.length-1;)N!==s&&Hf.call(N,V,1),Hf.call(s,V,1);return s}function Lw(s,l){for(var d=s?l.length:0,g=d-1;d--;){var _=l[d];if(d==g||_!==R){var R=_;Ri(_)?Hf.call(s,_,1):$m(s,_)}}return s}function Nm(s,l){return s+Yf(pw()*(l-s+1))}function ID(s,l,d,g){for(var _=-1,R=$n(Kf((l-s)/(d||1)),0),O=Y(R);R--;)O[g?R:++_]=s,s+=d;return O}function Bm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=Yf(l/2),l&&(s+=s);while(l);return d}function lt(s,l){return Jm(ub(s,l,Rr),s+"")}function $D(s){return gw(Ya(s))}function FD(s,l){var d=Ya(s);return dd(d,Hs(l,0,d.length))}function Tu(s,l,d,g){if(!rn(s))return s;l=Ji(l,s);for(var _=-1,R=l.length,O=R-1,N=s;N!=null&&++__?0:_+l),d=d>_?_:d,d<0&&(d+=_),_=l>d?0:d-l>>>0,l>>>=0;for(var R=Y(_);++g<_;)R[g]=s[g+l];return R}function jD(s,l){var d;return Zi(s,function(g,_,R){return d=l(g,_,R),!d}),!!d}function rd(s,l,d){var g=0,_=s==null?g:s.length;if(typeof l=="number"&&l===l&&_<=ae){for(;g<_;){var R=g+_>>>1,O=s[R];O!==null&&!Wr(O)&&(d?O<=l:O=o){var oe=l?null:JD(s);if(oe)return $f(oe);O=!1,_=xu,V=new qs}else V=l?[]:N;e:for(;++g=g?s:mo(s,l,d)}var Uw=D8||function(s){return Xn.clearTimeout(s)};function zw(s,l){if(l)return s.slice();var d=s.length,g=lw?lw(d):new s.constructor(d);return s.copy(g),g}function jm(s){var l=new s.constructor(s.byteLength);return new Wf(l).set(new Wf(s)),l}function WD(s,l){var d=l?jm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function qD(s){var l=new s.constructor(s.source,Fe.exec(s));return l.lastIndex=s.lastIndex,l}function HD(s){return Eu?$t(Eu.call(s)):{}}function jw(s,l){var d=l?jm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Vw(s,l){if(s!==l){var d=s!==n,g=s===null,_=s===s,R=Wr(s),O=l!==n,N=l===null,V=l===l,oe=Wr(l);if(!N&&!oe&&!R&&s>l||R&&O&&V&&!N&&!oe||g&&O&&V||!d&&V||!_)return 1;if(!g&&!R&&!oe&&s=N)return V;var oe=d[g];return V*(oe=="desc"?-1:1)}}return s.index-l.index}function Ww(s,l,d,g){for(var _=-1,R=s.length,O=d.length,N=-1,V=l.length,oe=$n(R-O,0),ie=Y(V+oe),fe=!g;++N1?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 N=d[g];N&&s(l,N,g,R)}return l})}function Hw(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 Gw(s){return function(l,d,g){for(var _=-1,R=$t(l),O=g(l),N=O.length;N--;){var V=O[s?N:++_];if(d(R[V],V,R)===!1)break}return l}}function XD(s,l,d){var g=l&A,_=Du(s);function R(){var O=this&&this!==Xn&&this instanceof R?_:s;return O.apply(g?d:this,arguments)}return R}function Kw(s){return function(l){l=Lt(l);var d=$a(l)?Fo(l):n,g=d?d[0]:l.charAt(0),_=d?es(d,1).join(""):l.slice(1);return g[s]()+_}}function Ha(s){return function(l){return pm(Hb(qb(l).replace(UT,"")),s,"")}}function Du(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=Wa(s.prototype),g=s.apply(d,l);return rn(g)?g:d}}function ZD(s,l,d){var g=Du(s);function _(){for(var R=arguments.length,O=Y(R),N=R,V=Ga(_);N--;)O[N]=arguments[N];var oe=R<3&&O[0]!==V&&O[R-1]!==V?[]:Yi(O,V);if(R-=oe.length,R-1?_[R?l[O]:O]:n}}function Xw(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&&cd(R)=="wrapper")var O=new po([],!0)}for(g=O?g:d;++g1&&ht.reverse(),ie&&VN))return!1;var oe=R.get(s),ie=R.get(l);if(oe&&ie)return oe==l&&ie==s;var fe=-1,Ee=!0,Ne=d&y?new qs:n;for(R.set(s,l),R.set(l,s);++fe1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(ne,`{ + */ch.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,w=4,v=1,y=2,A=1,b=2,x=4,S=8,k=16,P=32,E=64,L=128,$=256,H=512,I=30,X="...",se=800,q=16,G=1,Q=2,le=3,pe=1/0,J=9007199254740991,de=17976931348623157e292,re=NaN,he=4294967295,U=he-1,ae=he>>>1,te=[["ary",L],["bind",A],["bindKey",b],["curry",S],["curryRight",k],["flip",H],["partial",P],["partialRight",E],["rearg",$]],ye="[object Arguments]",ue="[object Array]",Ne="[object AsyncFunction]",Re="[object Boolean]",ve="[object Date]",Ce="[object DOMException]",ge="[object Error]",_e="[object Function]",je="[object GeneratorFunction]",nt="[object Map]",ut="[object Number]",yt="[object Null]",rt="[object Object]",cn="[object Promise]",Kn="[object Proxy]",dt="[object RegExp]",at="[object Set]",fn="[object String]",dn="[object Symbol]",Ut="[object Undefined]",Rt="[object WeakMap]",Tn="[object WeakSet]",nn="[object ArrayBuffer]",qe="[object DataView]",Le="[object Float32Array]",Xt="[object Float64Array]",ir="[object Int8Array]",Yn="[object Int16Array]",Dn="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ce="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ue=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,$e=RegExp(Ue.source),Ke=RegExp(Be.source),Et=/<%-([\s\S]+?)%>/g,Pn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,On=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sr=/[\\^$.*+?()[\]{}|]/g,N=RegExp(sr.source),B=/^\s+/,K=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Se=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ct=/^[-+]0x[0-9a-f]+$/i,xt=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,hn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ni=/($^)/,ri=/['\n\r\u2028\u2029\\]/g,$o="\\ud800-\\udfff",qi="\\u0300-\\u036f",Gi="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",Fs=qi+Gi+ao,Us="\\u2700-\\u27bf",zs="a-z\\xdf-\\xf6\\xf8-\\xff",Qe="\\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",yu="\\ufe0e\\ufe0f",Nf=Qe+Zt+hr+jt,im="['’]",kT="["+$o+"]",Dx="["+Nf+"]",Mf="["+Fs+"]",Px="\\d+",TT="["+Us+"]",Ox="["+zs+"]",Lx="[^"+$o+Nf+Px+Us+zs+lo+"]",sm="\\ud83c[\\udffb-\\udfff]",DT="(?:"+Mf+"|"+sm+")",Nx="[^"+$o+"]",am="(?:\\ud83c[\\udde6-\\uddff]){2}",lm="[\\ud800-\\udbff][\\udc00-\\udfff]",Ba="["+lo+"]",Mx="\\u200d",Bx="(?:"+Ox+"|"+Lx+")",PT="(?:"+Ba+"|"+Lx+")",Ix="(?:"+im+"(?:d|ll|m|re|s|t|ve))?",$x="(?:"+im+"(?:D|LL|M|RE|S|T|VE))?",Fx=DT+"?",Ux="["+yu+"]?",OT="(?:"+Mx+"(?:"+[Nx,am,lm].join("|")+")"+Ux+Fx+")*",LT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",NT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zx=Ux+Fx+OT,MT="(?:"+[TT,am,lm].join("|")+")"+zx,BT="(?:"+[Nx+Mf+"?",Mf,am,lm,kT].join("|")+")",IT=RegExp(im,"g"),$T=RegExp(Mf,"g"),um=RegExp(sm+"(?="+sm+")|"+BT+zx,"g"),FT=RegExp([Ba+"?"+Ox+"+"+Ix+"(?="+[Dx,Ba,"$"].join("|")+")",PT+"+"+$x+"(?="+[Dx,Ba+Bx,"$"].join("|")+")",Ba+"?"+Bx+"+"+Ix,Ba+"+"+$x,NT,LT,Px,MT].join("|"),"g"),UT=RegExp("["+Mx+$o+Fs+yu+"]"),zT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jT=["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"],VT=-1,qt={};qt[Le]=qt[Xt]=qt[ir]=qt[Yn]=qt[Dn]=qt[Io]=qt[W]=qt[F]=qt[ce]=!0,qt[ye]=qt[ue]=qt[nn]=qt[Re]=qt[qe]=qt[ve]=qt[ge]=qt[_e]=qt[nt]=qt[ut]=qt[rt]=qt[dt]=qt[at]=qt[fn]=qt[Rt]=!1;var Vt={};Vt[ye]=Vt[ue]=Vt[nn]=Vt[qe]=Vt[Re]=Vt[ve]=Vt[Le]=Vt[Xt]=Vt[ir]=Vt[Yn]=Vt[Dn]=Vt[nt]=Vt[ut]=Vt[rt]=Vt[dt]=Vt[at]=Vt[fn]=Vt[dn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ce]=!0,Vt[ge]=Vt[_e]=Vt[Rt]=!1;var WT={À:"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"},HT={"&":"&","<":"<",">":">",'"':""","'":"'"},qT={"&":"&","<":"<",">":">",""":'"',"'":"'"},GT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},KT=parseFloat,YT=parseInt,jx=typeof window=="object"&&window&&window.Object===Object&&window,XT=typeof self=="object"&&self&&self.Object===Object&&self,Xn=jx||XT||Function("return this")(),cm=t&&!t.nodeType&&t,js=cm&&!0&&e&&!e.nodeType&&e,Vx=js&&js.exports===cm,fm=Vx&&jx.process,uo=function(){try{var z=js&&js.require&&js.require("util").types;return z||fm&&fm.binding&&fm.binding("util")}catch{}}(),Wx=uo&&uo.isArrayBuffer,Hx=uo&&uo.isDate,qx=uo&&uo.isMap,Gx=uo&&uo.isRegExp,Kx=uo&&uo.isSet,Yx=uo&&uo.isTypedArray;function zr(z,ee,Y){switch(Y.length){case 0:return z.call(ee);case 1:return z.call(ee,Y[0]);case 2:return z.call(ee,Y[0],Y[1]);case 3:return z.call(ee,Y[0],Y[1],Y[2])}return z.apply(ee,Y)}function ZT(z,ee,Y,Te){for(var Ye=-1,Tt=z==null?0:z.length;++Ye-1}function dm(z,ee,Y){for(var Te=-1,Ye=z==null?0:z.length;++Te-1;);return Y}function rw(z,ee){for(var Y=z.length;Y--&&Ia(ee,z[Y],0)>-1;);return Y}function s8(z,ee){for(var Y=z.length,Te=0;Y--;)z[Y]===ee&&++Te;return Te}var a8=gm(WT),l8=gm(HT);function u8(z){return"\\"+GT[z]}function c8(z,ee){return z==null?n:z[ee]}function $a(z){return UT.test(z)}function f8(z){return zT.test(z)}function d8(z){for(var ee,Y=[];!(ee=z.next()).done;)Y.push(ee.value);return Y}function wm(z){var ee=-1,Y=Array(z.size);return z.forEach(function(Te,Ye){Y[++ee]=[Ye,Te]}),Y}function ow(z,ee){return function(Y){return z(ee(Y))}}function Xi(z,ee){for(var Y=-1,Te=z.length,Ye=0,Tt=[];++Y-1}function J8(s,l){var d=this.__data__,g=Jf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=Y8,_i.prototype.delete=X8,_i.prototype.get=Z8,_i.prototype.has=Q8,_i.prototype.set=J8;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,V=l&m,oe=l&w;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=r7(s),!M)return Er(s,O)}else{var fe=lr(s),Ee=fe==_e||fe==je;if(ns(s))return Uw(s,M);if(fe==rt||fe==ye||Ee&&!_){if(O=V||Ee?{}:ib(s),!M)return V?qD(s,mD(O,s)):HD(s,gw(O,s))}else{if(!Vt[fe])return _?s:{};O=o7(s,fe,M)}}R||(R=new Uo);var Me=R.get(s);if(Me)return Me;R.set(s,O),Nb(s)?s.forEach(function(He){O.add(ho(He,l,d,He,s,R))}):Ob(s)&&s.forEach(function(He,ct){O.set(ct,ho(He,l,d,ct,s,R))});var We=oe?V?qm:Hm:V?Ar:jn,ot=ie?n:We(s);return co(ot||s,function(He,ct){ot&&(ct=He,He=s[ct]),Cu(O,ct,ho(He,l,d,ct,s,R))}),O}function gD(s){var l=jn(s);return function(d){return vw(d,s,l)}}function vw(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 yw(s,l,d){if(typeof s!="function")throw new fo(a);return Ou(function(){s.apply(n,d)},l)}function Au(s,l,d,g){var _=-1,R=Bf,O=!0,M=s.length,V=[],oe=l.length;if(!M)return V;d&&(l=Qt(l,jr(d))),g?(R=dm,O=!1):l.length>=o&&(R=xu,O=!1,l=new Hs(l));e:for(;++__?0:_+d),g=g===n||g>_?_:tt(g),g<0&&(g+=_),g=d>g?0:Bb(g);d0&&d(M)?l>1?Zn(M,l-1,d,g,_):Yi(_,M):g||(_[_.length]=M)}return _}var Rm=qw(),bw=qw(!0);function oi(s,l){return s&&Rm(s,l,jn)}function km(s,l){return s&&bw(s,l,jn)}function td(s,l){return Ki(l,function(d){return ki(s[d])})}function Gs(s,l){l=es(l,s);for(var d=0,g=l.length;s!=null&&dl}function xD(s,l){return s!=null&&Nt.call(s,l)}function wD(s,l){return s!=null&&l in $t(s)}function bD(s,l,d){return s>=ar(l,d)&&s<$n(l,d)}function Dm(s,l,d){for(var g=d?dm:Bf,_=s[0].length,R=s.length,O=R,M=Y(R),V=1/0,oe=[];O--;){var ie=s[O];O&&l&&(ie=Qt(ie,jr(l))),V=ar(ie.length,V),M[O]=!d&&(l||_>=120&&ie.length>=120)?new Hs(O&&ie):n}ie=s[0];var fe=-1,Ee=M[0];e:for(;++fe<_&&oe.length-1;)M!==s&&qf.call(M,V,1),qf.call(s,V,1);return s}function Ow(s,l){for(var d=s?l.length:0,g=d-1;d--;){var _=l[d];if(d==g||_!==R){var R=_;Ri(_)?qf.call(s,_,1):$m(s,_)}}return s}function Mm(s,l){return s+Yf(dw()*(l-s+1))}function ND(s,l,d,g){for(var _=-1,R=$n(Kf((l-s)/(d||1)),0),O=Y(R);R--;)O[g?R:++_]=s,s+=d;return O}function Bm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=Yf(l/2),l&&(s+=s);while(l);return d}function lt(s,l){return Jm(lb(s,l,Rr),s+"")}function MD(s){return mw(Ya(s))}function BD(s,l){var d=Ya(s);return dd(d,qs(l,0,d.length))}function Tu(s,l,d,g){if(!rn(s))return s;l=es(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=Y(_);++g<_;)R[g]=s[g+l];return R}function FD(s,l){var d;return Qi(s,function(g,_,R){return d=l(g,_,R),!d}),!!d}function rd(s,l,d){var g=0,_=s==null?g:s.length;if(typeof l=="number"&&l===l&&_<=ae){for(;g<_;){var R=g+_>>>1,O=s[R];O!==null&&!Wr(O)&&(d?O<=l:O=o){var oe=l?null:XD(s);if(oe)return $f(oe);O=!1,_=xu,V=new Hs}else V=l?[]:M;e:for(;++g=g?s:mo(s,l,d)}var Fw=R8||function(s){return Xn.clearTimeout(s)};function Uw(s,l){if(l)return s.slice();var d=s.length,g=aw?aw(d):new s.constructor(d);return s.copy(g),g}function jm(s){var l=new s.constructor(s.byteLength);return new Wf(l).set(new Wf(s)),l}function zD(s,l){var d=l?jm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function jD(s){var l=new s.constructor(s.source,Fe.exec(s));return l.lastIndex=s.lastIndex,l}function VD(s){return Eu?$t(Eu.call(s)):{}}function zw(s,l){var d=l?jm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function jw(s,l){if(s!==l){var d=s!==n,g=s===null,_=s===s,R=Wr(s),O=l!==n,M=l===null,V=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&O&&V&&!M&&!oe||g&&O&&V||!d&&V||!_)return 1;if(!g&&!R&&!oe&&s=M)return V;var oe=d[g];return V*(oe=="desc"?-1:1)}}return s.index-l.index}function Vw(s,l,d,g){for(var _=-1,R=s.length,O=d.length,M=-1,V=l.length,oe=$n(R-O,0),ie=Y(V+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 Hw(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 qw(s){return function(l,d,g){for(var _=-1,R=$t(l),O=g(l),M=O.length;M--;){var V=O[s?M:++_];if(d(R[V],V,R)===!1)break}return l}}function GD(s,l,d){var g=l&A,_=Du(s);function R(){var O=this&&this!==Xn&&this instanceof R?_:s;return O.apply(g?d:this,arguments)}return R}function Gw(s){return function(l){l=Lt(l);var d=$a(l)?Fo(l):n,g=d?d[0]:l.charAt(0),_=d?ts(d,1).join(""):l.slice(1);return g[s]()+_}}function qa(s){return function(l){return pm(Hb(Wb(l).replace(IT,"")),s,"")}}function Du(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=Wa(s.prototype),g=s.apply(d,l);return rn(g)?g:d}}function KD(s,l,d){var g=Du(s);function _(){for(var R=arguments.length,O=Y(R),M=R,V=Ga(_);M--;)O[M]=arguments[M];var oe=R<3&&O[0]!==V&&O[R-1]!==V?[]:Xi(O,V);if(R-=oe.length,R-1?_[R?l[O]:O]:n}}function Yw(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&&cd(R)=="wrapper")var O=new po([],!0)}for(g=O?g:d;++g1&&ht.reverse(),ie&&VM))return!1;var oe=R.get(s),ie=R.get(l);if(oe&&ie)return oe==l&&ie==s;var fe=-1,Ee=!0,Me=d&y?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 u7(s){return Xe(s)||Xs(s)||!!(fw&&s&&s[fw])}function Ri(s,l){var d=typeof s;return l=l??J,!!l&&(d=="number"||d!="symbol"&&wt.test(s))&&s>-1&&s%1==0&&s0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function dd(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,bb(s,d)});function _b(s){var l=C(s);return l.__chain__=!0,l}function w6(s,l){return l(s),s}function pd(s,l){return l(s)}var b6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,_=function(R){return Am(R,s)};return l>1||this.__actions__.length||!(g instanceof pt)||!Ri(d)?this.thru(_):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:pd,args:[_],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function _6(){return _b(this)}function S6(){return new po(this.value(),this.__chain__)}function E6(){this.__values__===n&&(this.__values__=Bb(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function C6(){return this}function A6(s){for(var l,d=this;d instanceof Qf;){var g=mb(d);g.__index__=0,g.__values__=n,l?_.__wrapped__=g:l=g;var _=g;d=d.__wrapped__}return _.__wrapped__=s,l}function R6(){var s=this.__wrapped__;if(s instanceof pt){var l=s;return this.__actions__.length&&(l=new pt(this)),l=l.reverse(),l.__actions__.push({func:pd,args:[eg],thisArg:n}),new po(l,this.__chain__)}return this.thru(eg)}function k6(){return $w(this.__wrapped__,this.__actions__)}var T6=id(function(s,l,d){Mt.call(s,d)?++s[d]:Ei(s,d,1)});function D6(s,l,d){var g=Xe(s)?Zx:wD;return d&&gr(s,l,d)&&(l=n),g(s,Ve(l,3))}function P6(s,l){var d=Xe(s)?Gi:bw;return d(s,Ve(l,3))}var O6=Yw(gb),L6=Yw(vb);function M6(s,l){return Zn(hd(s,l),1)}function N6(s,l){return Zn(hd(s,l),pe)}function B6(s,l,d){return d=d===n?1:tt(d),Zn(hd(s,l),d)}function Sb(s,l){var d=Xe(s)?co:Zi;return d(s,Ve(l,3))}function Eb(s,l){var d=Xe(s)?t8:ww;return d(s,Ve(l,3))}var I6=id(function(s,l,d){Mt.call(s,d)?s[d].push(l):Ei(s,d,[l])});function $6(s,l,d,g){s=Cr(s)?s:Ya(s),d=d&&!g?tt(d):0;var _=s.length;return d<0&&(d=$n(_+d,0)),xd(s)?d<=_&&s.indexOf(l,d)>-1:!!_&&Ia(s,l,d)>-1}var F6=lt(function(s,l,d){var g=-1,_=typeof l=="function",R=Cr(s)?Y(s.length):[];return Zi(s,function(O){R[++g]=_?zr(l,O,d):Ru(O,l,d)}),R}),U6=id(function(s,l,d){Ei(s,d,l)});function hd(s,l){var d=Xe(s)?Qt:Rw;return d(s,Ve(l,3))}function z6(s,l,d,g){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),d=g?n:d,Xe(d)||(d=d==null?[]:[d]),Pw(s,l,d))}var j6=id(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function V6(s,l,d){var g=Xe(s)?pm:tw,_=arguments.length<3;return g(s,Ve(l,4),d,_,Zi)}function W6(s,l,d){var g=Xe(s)?n8:tw,_=arguments.length<3;return g(s,Ve(l,4),d,_,ww)}function q6(s,l){var d=Xe(s)?Gi:bw;return d(s,vd(Ve(l,3)))}function H6(s){var l=Xe(s)?gw:$D;return l(s)}function G6(s,l,d){(d?gr(s,l,d):l===n)?l=1:l=tt(l);var g=Xe(s)?mD:FD;return g(s,l)}function K6(s){var l=Xe(s)?gD:zD;return l(s)}function Y6(s){if(s==null)return 0;if(Cr(s))return xd(s)?Fa(s):s.length;var l=lr(s);return l==nt||l==at?s.size:Om(s).length}function X6(s,l,d){var g=Xe(s)?hm:jD;return d&&gr(s,l,d)&&(l=n),g(s,Ve(l,3))}var Z6=lt(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]]),Pw(s,Zn(l,1),[])}),md=P8||function(){return Xn.Date.now()};function Q6(s,l){if(typeof l!="function")throw new fo(a);return s=tt(s),function(){if(--s<1)return l.apply(this,arguments)}}function Cb(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function Ab(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 ng=lt(function(s,l,d){var g=A;if(d.length){var _=Yi(d,Ga(ng));g|=P}return Ci(s,g,l,d,_)}),Rb=lt(function(s,l,d){var g=A|b;if(d.length){var _=Yi(d,Ga(Rb));g|=P}return Ci(l,g,s,d,_)});function kb(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=kb.placeholder,g}function Tb(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=Tb.placeholder,g}function Db(s,l,d){var g,_,R,O,N,V,oe=0,ie=!1,fe=!1,Ee=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(ie=!!d.leading,fe="maxWait"in d,R=fe?$n(vo(d.maxWait)||0,l):R,Ee="trailing"in d?!!d.trailing:Ee);function Ne(_n){var jo=g,Di=_;return g=_=n,oe=_n,O=s.apply(Di,jo),O}function We(_n){return oe=_n,N=Ou(ct,l),ie?Ne(_n):O}function ot(_n){var jo=_n-V,Di=_n-oe,Yb=l-jo;return fe?ar(Yb,R-Di):Yb}function qe(_n){var jo=_n-V,Di=_n-oe;return V===n||jo>=l||jo<0||fe&&Di>=R}function ct(){var _n=md();if(qe(_n))return ht(_n);N=Ou(ct,ot(_n))}function ht(_n){return N=n,Ee&&g?Ne(_n):(g=_=n,O)}function qr(){N!==n&&Uw(N),oe=0,g=V=_=N=n}function vr(){return N===n?O:ht(md())}function Hr(){var _n=md(),jo=qe(_n);if(g=arguments,_=this,V=_n,jo){if(N===n)return We(V);if(fe)return Uw(N),N=Ou(ct,l),Ne(V)}return N===n&&(N=Ou(ct,l)),O}return Hr.cancel=qr,Hr.flush=vr,Hr}var J6=lt(function(s,l){return xw(s,1,l)}),e9=lt(function(s,l,d){return xw(s,vo(l)||0,d)});function t9(s){return Ci(s,q)}function gd(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(gd.Cache||Si),d}gd.Cache=Si;function vd(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 n9(s){return Ab(2,s)}var r9=VD(function(s,l){l=l.length==1&&Xe(l[0])?Qt(l[0],jr(Ve())):Qt(Zn(l,1),jr(Ve()));var d=l.length;return lt(function(g){for(var _=-1,R=ar(g.length,d);++_=l}),Xs=Ew(function(){return arguments}())?Ew:function(s){return mn(s)&&Mt.call(s,"callee")&&!cw.call(s,"callee")},Xe=Y.isArray,y9=qx?jr(qx):AD;function Cr(s){return s!=null&&yd(s.length)&&!ki(s)}function bn(s){return mn(s)&&Cr(s)}function x9(s){return s===!0||s===!1||mn(s)&&mr(s)==Re}var ts=L8||hg,w9=Hx?jr(Hx):RD;function b9(s){return mn(s)&&s.nodeType===1&&!Lu(s)}function _9(s){if(s==null)return!0;if(Cr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||ts(s)||Ka(s)||Xs(s)))return!s.length;var l=lr(s);if(l==nt||l==at)return!s.size;if(Pu(s))return!Om(s).length;for(var d in s)if(Mt.call(s,d))return!1;return!0}function S9(s,l){return ku(s,l)}function E9(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?ku(s,l,n,d):!!g}function og(s){if(!mn(s))return!1;var l=mr(s);return l==ge||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Lu(s)}function C9(s){return typeof s=="number"&&dw(s)}function ki(s){if(!rn(s))return!1;var l=mr(s);return l==_e||l==je||l==Me||l==Kn}function Ob(s){return typeof s=="number"&&s==tt(s)}function yd(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 mn(s){return s!=null&&typeof s=="object"}var Lb=Gx?jr(Gx):TD;function A9(s,l){return s===l||Pm(s,l,Km(l))}function R9(s,l,d){return d=typeof d=="function"?d:n,Pm(s,l,Km(l),d)}function k9(s){return Mb(s)&&s!=+s}function T9(s){if(d7(s))throw new Ye(i);return Cw(s)}function D9(s){return s===null}function P9(s){return s==null}function Mb(s){return typeof s=="number"||mn(s)&&mr(s)==ut}function Lu(s){if(!mn(s)||mr(s)!=rt)return!1;var l=qf(s);if(l===null)return!0;var d=Mt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&zf.call(d)==R8}var ig=Kx?jr(Kx):DD;function O9(s){return Ob(s)&&s>=-J&&s<=J}var Nb=Yx?jr(Yx):PD;function xd(s){return typeof s=="string"||!Xe(s)&&mn(s)&&mr(s)==fn}function Wr(s){return typeof s=="symbol"||mn(s)&&mr(s)==dn}var Ka=Xx?jr(Xx):OD;function L9(s){return s===n}function M9(s){return mn(s)&&lr(s)==Rt}function N9(s){return mn(s)&&mr(s)==Tn}var B9=ud(Lm),I9=ud(function(s,l){return s<=l});function Bb(s){if(!s)return[];if(Cr(s))return xd(s)?Fo(s):Er(s);if(wu&&s[wu])return m8(s[wu]());var l=lr(s),d=l==nt?wm:l==at?$f:Ya;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*de}return s===s?s:0}function tt(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Ib(s){return s?Hs(tt(s),0,he):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=nw(s);var d=xt.test(s);return d||ke.test(s)?QT(s.slice(2),d?2:8):Ct.test(s)?re:+s}function $b(s){return ii(s,Ar(s))}function $9(s){return s?Hs(tt(s),-J,J):s===0?s:0}function Lt(s){return s==null?"":Vr(s)}var F9=qa(function(s,l){if(Pu(l)||Cr(l)){ii(l,jn(l),s);return}for(var d in l)Mt.call(l,d)&&Cu(s,d,l[d])}),Fb=qa(function(s,l){ii(l,Ar(l),s)}),wd=qa(function(s,l,d,g){ii(l,Ar(l),s,g)}),U9=qa(function(s,l,d,g){ii(l,jn(l),s,g)}),z9=Ai(Am);function j9(s,l){var d=Wa(s);return l==null?d:vw(d,l)}var V9=lt(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,Hm(s),d),g&&(d=ho(d,h|m|w,e7));for(var _=l.length;_--;)$m(d,l[_]);return d});function aP(s,l){return zb(s,vd(Ve(l)))}var lP=Ai(function(s,l){return s==null?{}:ND(s,l)});function zb(s,l){if(s==null)return{};var d=Qt(Hm(s),function(g){return[g]});return l=Ve(l),Ow(s,d,function(g,_){return l(g,_[0])})}function uP(s,l,d){l=Ji(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 cP(s,l,d){return s==null?s:Tu(s,l,d)}function fP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Tu(s,l,d,g)}var jb=eb(jn),Vb=eb(Ar);function dP(s,l,d){var g=Xe(s),_=g||ts(s)||Ka(s);if(l=Ve(l,4),d==null){var R=s&&s.constructor;_?d=g?new R:[]:rn(s)?d=ki(R)?Wa(qf(s)):{}:d={}}return(_?co:oi)(s,function(O,N,V){return l(d,O,N,V)}),d}function pP(s,l){return s==null?!0:$m(s,l)}function hP(s,l,d){return s==null?s:Iw(s,l,zm(d))}function mP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Iw(s,l,zm(d),g)}function Ya(s){return s==null?[]:xm(s,jn(s))}function gP(s){return s==null?[]:xm(s,Ar(s))}function vP(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),Hs(vo(s),l,d)}function yP(s,l,d){return l=Ti(l),d===n?(d=l,l=0):d=Ti(d),s=vo(s),ED(s,l,d)}function xP(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 _=pw();return ar(s+_*(l-s+ZT("1e-"+((_+"").length-1))),l)}return Nm(s,l)}var wP=Ha(function(s,l,d){return l=l.toLowerCase(),s+(d?Wb(l):l)});function Wb(s){return lg(Lt(s).toLowerCase())}function qb(s){return s=Lt(s),s&&s.replace(hn,c8).replace(zT,"")}function bP(s,l,d){s=Lt(s),l=Vr(l);var g=s.length;d=d===n?g:Hs(tt(d),0,g);var _=d;return d-=l.length,d>=0&&s.slice(d,_)==l}function _P(s){return s=Lt(s),s&&Ke.test(s)?s.replace(Be,f8):s}function SP(s){return s=Lt(s),s&&M.test(s)?s.replace(sr,"\\$&"):s}var EP=Ha(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),CP=Ha(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),AP=Kw("toLowerCase");function RP(s,l,d){s=Lt(s),l=tt(l);var g=l?Fa(s):0;if(!l||g>=l)return s;var _=(l-g)/2;return ld(Yf(_),d)+s+ld(Kf(_),d)}function kP(s,l,d){s=Lt(s),l=tt(l);var g=l?Fa(s):0;return l&&g>>0,d?(s=Lt(s),s&&(typeof l=="string"||l!=null&&!ig(l))&&(l=Vr(l),!l&&$a(s))?es(Fo(s),0,d):s.split(l,d)):[]}var NP=Ha(function(s,l,d){return s+(d?" ":"")+lg(l)});function BP(s,l,d){return s=Lt(s),d=d==null?0:Hs(tt(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function IP(s,l,d){var g=C.templateSettings;d&&gr(s,l,d)&&(l=n),s=Lt(s),l=wd({},l,g,tb);var _=wd({},l.imports,g.imports,tb),R=jn(_),O=xm(_,R),N,V,oe=0,ie=l.interpolate||ni,fe="__p += '",Ee=bm((l.escape||ni).source+"|"+ie.source+"|"+(ie===zt?Ie:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Ne="//# sourceURL="+(Mt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++HT+"]")+` -`;s.replace(Ee,function(qe,ct,ht,qr,vr,Hr){return ht||(ht=qr),fe+=s.slice(oe,Hr).replace(ri,d8),ct&&(N=!0,fe+=`' + +`)}function s7(s){return Xe(s)||Xs(s)||!!(cw&&s&&s[cw])}function Ri(s,l){var d=typeof s;return l=l??J,!!l&&(d=="number"||d!="symbol"&&wt.test(s))&&s>-1&&s%1==0&&s0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function dd(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,wb(s,d)});function bb(s){var l=C(s);return l.__chain__=!0,l}function v6(s,l){return l(s),s}function pd(s,l){return l(s)}var y6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,_=function(R){return Am(R,s)};return l>1||this.__actions__.length||!(g instanceof pt)||!Ri(d)?this.thru(_):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:pd,args:[_],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function x6(){return bb(this)}function w6(){return new po(this.value(),this.__chain__)}function b6(){this.__values__===n&&(this.__values__=Mb(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function _6(){return this}function S6(s){for(var l,d=this;d instanceof Qf;){var g=hb(d);g.__index__=0,g.__values__=n,l?_.__wrapped__=g:l=g;var _=g;d=d.__wrapped__}return _.__wrapped__=s,l}function E6(){var s=this.__wrapped__;if(s instanceof pt){var l=s;return this.__actions__.length&&(l=new pt(this)),l=l.reverse(),l.__actions__.push({func:pd,args:[eg],thisArg:n}),new po(l,this.__chain__)}return this.thru(eg)}function C6(){return Iw(this.__wrapped__,this.__actions__)}var A6=id(function(s,l,d){Nt.call(s,d)?++s[d]:Ei(s,d,1)});function R6(s,l,d){var g=Xe(s)?Xx:vD;return d&&gr(s,l,d)&&(l=n),g(s,Ve(l,3))}function k6(s,l){var d=Xe(s)?Ki:ww;return d(s,Ve(l,3))}var T6=Kw(mb),D6=Kw(gb);function P6(s,l){return Zn(hd(s,l),1)}function O6(s,l){return Zn(hd(s,l),pe)}function L6(s,l,d){return d=d===n?1:tt(d),Zn(hd(s,l),d)}function _b(s,l){var d=Xe(s)?co:Qi;return d(s,Ve(l,3))}function Sb(s,l){var d=Xe(s)?QT:xw;return d(s,Ve(l,3))}var N6=id(function(s,l,d){Nt.call(s,d)?s[d].push(l):Ei(s,d,[l])});function M6(s,l,d,g){s=Cr(s)?s:Ya(s),d=d&&!g?tt(d):0;var _=s.length;return d<0&&(d=$n(_+d,0)),xd(s)?d<=_&&s.indexOf(l,d)>-1:!!_&&Ia(s,l,d)>-1}var B6=lt(function(s,l,d){var g=-1,_=typeof l=="function",R=Cr(s)?Y(s.length):[];return Qi(s,function(O){R[++g]=_?zr(l,O,d):Ru(O,l,d)}),R}),I6=id(function(s,l,d){Ei(s,d,l)});function hd(s,l){var d=Xe(s)?Qt:Aw;return d(s,Ve(l,3))}function $6(s,l,d,g){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),d=g?n:d,Xe(d)||(d=d==null?[]:[d]),Dw(s,l,d))}var F6=id(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function U6(s,l,d){var g=Xe(s)?pm:ew,_=arguments.length<3;return g(s,Ve(l,4),d,_,Qi)}function z6(s,l,d){var g=Xe(s)?JT:ew,_=arguments.length<3;return g(s,Ve(l,4),d,_,xw)}function j6(s,l){var d=Xe(s)?Ki:ww;return d(s,vd(Ve(l,3)))}function V6(s){var l=Xe(s)?mw:MD;return l(s)}function W6(s,l,d){(d?gr(s,l,d):l===n)?l=1:l=tt(l);var g=Xe(s)?dD:BD;return g(s,l)}function H6(s){var l=Xe(s)?pD:$D;return l(s)}function q6(s){if(s==null)return 0;if(Cr(s))return xd(s)?Fa(s):s.length;var l=lr(s);return l==nt||l==at?s.size:Om(s).length}function G6(s,l,d){var g=Xe(s)?hm:FD;return d&&gr(s,l,d)&&(l=n),g(s,Ve(l,3))}var K6=lt(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]]),Dw(s,Zn(l,1),[])}),md=k8||function(){return Xn.Date.now()};function Y6(s,l){if(typeof l!="function")throw new fo(a);return s=tt(s),function(){if(--s<1)return l.apply(this,arguments)}}function Eb(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function Cb(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 ng=lt(function(s,l,d){var g=A;if(d.length){var _=Xi(d,Ga(ng));g|=P}return Ci(s,g,l,d,_)}),Ab=lt(function(s,l,d){var g=A|b;if(d.length){var _=Xi(d,Ga(Ab));g|=P}return Ci(l,g,s,d,_)});function Rb(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=Rb.placeholder,g}function kb(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=kb.placeholder,g}function Tb(s,l,d){var g,_,R,O,M,V,oe=0,ie=!1,fe=!1,Ee=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(ie=!!d.leading,fe="maxWait"in d,R=fe?$n(vo(d.maxWait)||0,l):R,Ee="trailing"in d?!!d.trailing:Ee);function Me(_n){var jo=g,Di=_;return g=_=n,oe=_n,O=s.apply(Di,jo),O}function We(_n){return oe=_n,M=Ou(ct,l),ie?Me(_n):O}function ot(_n){var jo=_n-V,Di=_n-oe,Kb=l-jo;return fe?ar(Kb,R-Di):Kb}function He(_n){var jo=_n-V,Di=_n-oe;return V===n||jo>=l||jo<0||fe&&Di>=R}function ct(){var _n=md();if(He(_n))return ht(_n);M=Ou(ct,ot(_n))}function ht(_n){return M=n,Ee&&g?Me(_n):(g=_=n,O)}function Hr(){M!==n&&Fw(M),oe=0,g=V=_=M=n}function vr(){return M===n?O:ht(md())}function qr(){var _n=md(),jo=He(_n);if(g=arguments,_=this,V=_n,jo){if(M===n)return We(V);if(fe)return Fw(M),M=Ou(ct,l),Me(V)}return M===n&&(M=Ou(ct,l)),O}return qr.cancel=Hr,qr.flush=vr,qr}var X6=lt(function(s,l){return yw(s,1,l)}),Z6=lt(function(s,l,d){return yw(s,vo(l)||0,d)});function Q6(s){return Ci(s,H)}function gd(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(gd.Cache||Si),d}gd.Cache=Si;function vd(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 J6(s){return Cb(2,s)}var e9=UD(function(s,l){l=l.length==1&&Xe(l[0])?Qt(l[0],jr(Ve())):Qt(Zn(l,1),jr(Ve()));var d=l.length;return lt(function(g){for(var _=-1,R=ar(g.length,d);++_=l}),Xs=Sw(function(){return arguments}())?Sw:function(s){return mn(s)&&Nt.call(s,"callee")&&!uw.call(s,"callee")},Xe=Y.isArray,m9=Wx?jr(Wx):SD;function Cr(s){return s!=null&&yd(s.length)&&!ki(s)}function bn(s){return mn(s)&&Cr(s)}function g9(s){return s===!0||s===!1||mn(s)&&mr(s)==Re}var ns=D8||hg,v9=Hx?jr(Hx):ED;function y9(s){return mn(s)&&s.nodeType===1&&!Lu(s)}function x9(s){if(s==null)return!0;if(Cr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||ns(s)||Ka(s)||Xs(s)))return!s.length;var l=lr(s);if(l==nt||l==at)return!s.size;if(Pu(s))return!Om(s).length;for(var d in s)if(Nt.call(s,d))return!1;return!0}function w9(s,l){return ku(s,l)}function b9(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?ku(s,l,n,d):!!g}function og(s){if(!mn(s))return!1;var l=mr(s);return l==ge||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Lu(s)}function _9(s){return typeof s=="number"&&fw(s)}function ki(s){if(!rn(s))return!1;var l=mr(s);return l==_e||l==je||l==Ne||l==Kn}function Pb(s){return typeof s=="number"&&s==tt(s)}function yd(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 mn(s){return s!=null&&typeof s=="object"}var Ob=qx?jr(qx):AD;function S9(s,l){return s===l||Pm(s,l,Km(l))}function E9(s,l,d){return d=typeof d=="function"?d:n,Pm(s,l,Km(l),d)}function C9(s){return Lb(s)&&s!=+s}function A9(s){if(u7(s))throw new Ye(i);return Ew(s)}function R9(s){return s===null}function k9(s){return s==null}function Lb(s){return typeof s=="number"||mn(s)&&mr(s)==ut}function Lu(s){if(!mn(s)||mr(s)!=rt)return!1;var l=Hf(s);if(l===null)return!0;var d=Nt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&zf.call(d)==E8}var ig=Gx?jr(Gx):RD;function T9(s){return Pb(s)&&s>=-J&&s<=J}var Nb=Kx?jr(Kx):kD;function xd(s){return typeof s=="string"||!Xe(s)&&mn(s)&&mr(s)==fn}function Wr(s){return typeof s=="symbol"||mn(s)&&mr(s)==dn}var Ka=Yx?jr(Yx):TD;function D9(s){return s===n}function P9(s){return mn(s)&&lr(s)==Rt}function O9(s){return mn(s)&&mr(s)==Tn}var L9=ud(Lm),N9=ud(function(s,l){return s<=l});function Mb(s){if(!s)return[];if(Cr(s))return xd(s)?Fo(s):Er(s);if(wu&&s[wu])return d8(s[wu]());var l=lr(s),d=l==nt?wm:l==at?$f:Ya;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*de}return s===s?s:0}function tt(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Bb(s){return s?qs(tt(s),0,he):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=tw(s);var d=xt.test(s);return d||ke.test(s)?YT(s.slice(2),d?2:8):Ct.test(s)?re:+s}function Ib(s){return ii(s,Ar(s))}function M9(s){return s?qs(tt(s),-J,J):s===0?s:0}function Lt(s){return s==null?"":Vr(s)}var B9=Ha(function(s,l){if(Pu(l)||Cr(l)){ii(l,jn(l),s);return}for(var d in l)Nt.call(l,d)&&Cu(s,d,l[d])}),$b=Ha(function(s,l){ii(l,Ar(l),s)}),wd=Ha(function(s,l,d,g){ii(l,Ar(l),s,g)}),I9=Ha(function(s,l,d,g){ii(l,jn(l),s,g)}),$9=Ai(Am);function F9(s,l){var d=Wa(s);return l==null?d:gw(d,l)}var U9=lt(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,qm(s),d),g&&(d=ho(d,h|m|w,ZD));for(var _=l.length;_--;)$m(d,l[_]);return d});function oP(s,l){return Ub(s,vd(Ve(l)))}var iP=Ai(function(s,l){return s==null?{}:OD(s,l)});function Ub(s,l){if(s==null)return{};var d=Qt(qm(s),function(g){return[g]});return l=Ve(l),Pw(s,d,function(g,_){return l(g,_[0])})}function sP(s,l,d){l=es(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 aP(s,l,d){return s==null?s:Tu(s,l,d)}function lP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Tu(s,l,d,g)}var zb=Jw(jn),jb=Jw(Ar);function uP(s,l,d){var g=Xe(s),_=g||ns(s)||Ka(s);if(l=Ve(l,4),d==null){var R=s&&s.constructor;_?d=g?new R:[]:rn(s)?d=ki(R)?Wa(Hf(s)):{}:d={}}return(_?co:oi)(s,function(O,M,V){return l(d,O,M,V)}),d}function cP(s,l){return s==null?!0:$m(s,l)}function fP(s,l,d){return s==null?s:Bw(s,l,zm(d))}function dP(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Bw(s,l,zm(d),g)}function Ya(s){return s==null?[]:xm(s,jn(s))}function pP(s){return s==null?[]:xm(s,Ar(s))}function hP(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 mP(s,l,d){return l=Ti(l),d===n?(d=l,l=0):d=Ti(d),s=vo(s),bD(s,l,d)}function gP(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 _=dw();return ar(s+_*(l-s+KT("1e-"+((_+"").length-1))),l)}return Mm(s,l)}var vP=qa(function(s,l,d){return l=l.toLowerCase(),s+(d?Vb(l):l)});function Vb(s){return lg(Lt(s).toLowerCase())}function Wb(s){return s=Lt(s),s&&s.replace(hn,a8).replace($T,"")}function yP(s,l,d){s=Lt(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 xP(s){return s=Lt(s),s&&Ke.test(s)?s.replace(Be,l8):s}function wP(s){return s=Lt(s),s&&N.test(s)?s.replace(sr,"\\$&"):s}var bP=qa(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),_P=qa(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),SP=Gw("toLowerCase");function EP(s,l,d){s=Lt(s),l=tt(l);var g=l?Fa(s):0;if(!l||g>=l)return s;var _=(l-g)/2;return ld(Yf(_),d)+s+ld(Kf(_),d)}function CP(s,l,d){s=Lt(s),l=tt(l);var g=l?Fa(s):0;return l&&g>>0,d?(s=Lt(s),s&&(typeof l=="string"||l!=null&&!ig(l))&&(l=Vr(l),!l&&$a(s))?ts(Fo(s),0,d):s.split(l,d)):[]}var OP=qa(function(s,l,d){return s+(d?" ":"")+lg(l)});function LP(s,l,d){return s=Lt(s),d=d==null?0:qs(tt(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function NP(s,l,d){var g=C.templateSettings;d&&gr(s,l,d)&&(l=n),s=Lt(s),l=wd({},l,g,eb);var _=wd({},l.imports,g.imports,eb),R=jn(_),O=xm(_,R),M,V,oe=0,ie=l.interpolate||ni,fe="__p += '",Ee=bm((l.escape||ni).source+"|"+ie.source+"|"+(ie===zt?Ie:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Me="//# sourceURL="+(Nt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VT+"]")+` +`;s.replace(Ee,function(He,ct,ht,Hr,vr,qr){return ht||(ht=Hr),fe+=s.slice(oe,qr).replace(ri,u8),ct&&(M=!0,fe+=`' + __e(`+ct+`) + '`),vr&&(V=!0,fe+=`'; `+vr+`; __p += '`),ht&&(fe+=`' + ((__t = (`+ht+`)) == null ? '' : __t) + -'`),oe=Hr+qe.length,qe}),fe+=`'; -`;var We=Mt.call(l,"variable")&&l.variable;if(!We)fe=`with (obj) { +'`),oe=qr+He.length,He}),fe+=`'; +`;var We=Nt.call(l,"variable")&&l.variable;if(!We)fe=`with (obj) { `+fe+` } `;else if(xe.test(We))throw new Ye(u);fe=(V?fe.replace(be,""):fe).replace(we,"$1").replace(Ae,"$1;"),fe="function("+(We||"obj")+`) { `+(We?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(V?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(V?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+fe+`return __p -}`;var ot=Gb(function(){return Tt(R,Ne+"return "+fe).apply(n,O)});if(ot.source=fe,og(ot))throw ot;return ot}function $P(s){return Lt(s).toLowerCase()}function FP(s){return Lt(s).toUpperCase()}function UP(s,l,d){if(s=Lt(s),s&&(d||l===n))return nw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=Fo(l),R=rw(g,_),O=ow(g,_)+1;return es(g,R,O).join("")}function zP(s,l,d){if(s=Lt(s),s&&(d||l===n))return s.slice(0,sw(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=ow(g,Fo(l))+1;return es(g,0,_).join("")}function jP(s,l,d){if(s=Lt(s),s&&(d||l===n))return s.replace(B,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=rw(g,Fo(l));return es(g,_).join("")}function VP(s,l){var d=I,g=X;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=Lt(s);var R=s.length;if($a(s)){var O=Fo(s);R=O.length}if(d>=R)return s;var N=d-Fa(g);if(N<1)return g;var V=O?es(O,0,N).join(""):s.slice(0,N);if(_===n)return V+g;if(O&&(N+=V.length-N),ig(_)){if(s.slice(N).search(_)){var oe,ie=V;for(_.global||(_=bm(_.source,Lt(Fe.exec(_))+"g")),_.lastIndex=0;oe=_.exec(ie);)var fe=oe.index;V=V.slice(0,fe===n?N:fe)}}else if(s.indexOf(Vr(_),N)!=N){var Ee=V.lastIndexOf(_);Ee>-1&&(V=V.slice(0,Ee))}return V+g}function WP(s){return s=Lt(s),s&&$e.test(s)?s.replace(Ue,x8):s}var qP=Ha(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),lg=Kw("toUpperCase");function Hb(s,l,d){return s=Lt(s),l=d?n:l,l===n?h8(s)?_8(s):i8(s):s.match(l)||[]}var Gb=lt(function(s,l){try{return zr(s,n,l)}catch(d){return og(d)?d:new Ye(d)}}),HP=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,ng(s[d],s))}),s});function GP(s){var l=s==null?0:s.length,d=Ve();return s=l?Qt(s,function(g){if(typeof g[1]!="function")throw new fo(a);return[d(g[0]),g[1]]}):[],lt(function(g){for(var _=-1;++_J)return[];var d=he,g=ar(s,he);l=Ve(l),s-=he;for(var _=ym(g,l);++d0||l<0)?new pt(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)},pt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},pt.prototype.toArray=function(){return this.take(he)},oi(pt.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__,N=g?[1]:arguments,V=O instanceof pt,oe=N[0],ie=V||Xe(O),fe=function(ct){var ht=_.apply(C,Ki([ct],N));return g&&Ee?ht[0]:ht};ie&&d&&typeof oe=="function"&&oe.length!=1&&(V=ie=!1);var Ee=this.__chain__,Ne=!!this.__actions__.length,We=R&&!Ee,ot=V&&!Ne;if(!R&&ie){O=ot?O:new pt(this);var qe=s.apply(O,N);return qe.__actions__.push({func:pd,args:[fe],thisArg:n}),new po(qe,Ee)}return We&&ot?s.apply(this,N):(qe=this.thru(fe),We?g?qe.value()[0]:qe.value():qe)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ff[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(pt.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Mt.call(Va,g)||(Va[g]=[]),Va[g].push({name:l,func:d})}}),Va[sd(n,b).name]=[{name:"wrapper",func:n}],pt.prototype.clone=W8,pt.prototype.reverse=q8,pt.prototype.value=H8,C.prototype.at=b6,C.prototype.chain=_6,C.prototype.commit=S6,C.prototype.next=E6,C.prototype.plant=A6,C.prototype.reverse=R6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=k6,C.prototype.first=C.prototype.head,wu&&(C.prototype[wu]=C6),C},Ua=S8();js?((js.exports=Ua)._=Ua,cm._=Ua):Xn._=Ua}).call(HE)})(ch,ch.exports);var Oa=ch.exports;let Vd;const Yz=new Uint8Array(16);function Xz(){if(!Vd&&(Vd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Vd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vd(Yz)}const Qn=[];for(let e=0;e<256;++e)Qn.push((e+256).toString(16).slice(1));function Zz(e,t=0){return Qn[e[t+0]]+Qn[e[t+1]]+Qn[e[t+2]]+Qn[e[t+3]]+"-"+Qn[e[t+4]]+Qn[e[t+5]]+"-"+Qn[e[t+6]]+Qn[e[t+7]]+"-"+Qn[e[t+8]]+Qn[e[t+9]]+"-"+Qn[e[t+10]]+Qn[e[t+11]]+Qn[e[t+12]]+Qn[e[t+13]]+Qn[e[t+14]]+Qn[e[t+15]]}const Qz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kS={randomUUID:Qz};function o0(e,t,n){if(kS.randomUUID&&!t&&!e)return kS.randomUUID();e=e||{};const r=e.random||(e.rng||Xz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Zz(r)}function _1(e){this.message=e}_1.prototype=new Error,_1.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function TS(e){this.message=e}TS.prototype=new Error,TS.prototype.name="InvalidTokenError";var Jz={};/** +}`;var ot=qb(function(){return Tt(R,Me+"return "+fe).apply(n,O)});if(ot.source=fe,og(ot))throw ot;return ot}function MP(s){return Lt(s).toLowerCase()}function BP(s){return Lt(s).toUpperCase()}function IP(s,l,d){if(s=Lt(s),s&&(d||l===n))return tw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=Fo(l),R=nw(g,_),O=rw(g,_)+1;return ts(g,R,O).join("")}function $P(s,l,d){if(s=Lt(s),s&&(d||l===n))return s.slice(0,iw(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=rw(g,Fo(l))+1;return ts(g,0,_).join("")}function FP(s,l,d){if(s=Lt(s),s&&(d||l===n))return s.replace(B,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),_=nw(g,Fo(l));return ts(g,_).join("")}function UP(s,l){var d=I,g=X;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=Lt(s);var R=s.length;if($a(s)){var O=Fo(s);R=O.length}if(d>=R)return s;var M=d-Fa(g);if(M<1)return g;var V=O?ts(O,0,M).join(""):s.slice(0,M);if(_===n)return V+g;if(O&&(M+=V.length-M),ig(_)){if(s.slice(M).search(_)){var oe,ie=V;for(_.global||(_=bm(_.source,Lt(Fe.exec(_))+"g")),_.lastIndex=0;oe=_.exec(ie);)var fe=oe.index;V=V.slice(0,fe===n?M:fe)}}else if(s.indexOf(Vr(_),M)!=M){var Ee=V.lastIndexOf(_);Ee>-1&&(V=V.slice(0,Ee))}return V+g}function zP(s){return s=Lt(s),s&&$e.test(s)?s.replace(Ue,g8):s}var jP=qa(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),lg=Gw("toUpperCase");function Hb(s,l,d){return s=Lt(s),l=d?n:l,l===n?f8(s)?x8(s):n8(s):s.match(l)||[]}var qb=lt(function(s,l){try{return zr(s,n,l)}catch(d){return og(d)?d:new Ye(d)}}),VP=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,ng(s[d],s))}),s});function WP(s){var l=s==null?0:s.length,d=Ve();return s=l?Qt(s,function(g){if(typeof g[1]!="function")throw new fo(a);return[d(g[0]),g[1]]}):[],lt(function(g){for(var _=-1;++_J)return[];var d=he,g=ar(s,he);l=Ve(l),s-=he;for(var _=ym(g,l);++d0||l<0)?new pt(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)},pt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},pt.prototype.toArray=function(){return this.take(he)},oi(pt.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,V=O instanceof pt,oe=M[0],ie=V||Xe(O),fe=function(ct){var ht=_.apply(C,Yi([ct],M));return g&&Ee?ht[0]:ht};ie&&d&&typeof oe=="function"&&oe.length!=1&&(V=ie=!1);var Ee=this.__chain__,Me=!!this.__actions__.length,We=R&&!Ee,ot=V&&!Me;if(!R&&ie){O=ot?O:new pt(this);var He=s.apply(O,M);return He.__actions__.push({func:pd,args:[fe],thisArg:n}),new po(He,Ee)}return We&&ot?s.apply(this,M):(He=this.thru(fe),We?g?He.value()[0]:He.value():He)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ff[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(pt.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Nt.call(Va,g)||(Va[g]=[]),Va[g].push({name:l,func:d})}}),Va[sd(n,b).name]=[{name:"wrapper",func:n}],pt.prototype.clone=z8,pt.prototype.reverse=j8,pt.prototype.value=V8,C.prototype.at=y6,C.prototype.chain=x6,C.prototype.commit=w6,C.prototype.next=b6,C.prototype.plant=S6,C.prototype.reverse=E6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=C6,C.prototype.first=C.prototype.head,wu&&(C.prototype[wu]=_6),C},Ua=w8();js?((js.exports=Ua)._=Ua,cm._=Ua):Xn._=Ua}).call(WE)})(ch,ch.exports);var Oa=ch.exports;let Vd;const qz=new Uint8Array(16);function Gz(){if(!Vd&&(Vd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Vd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vd(qz)}const Qn=[];for(let e=0;e<256;++e)Qn.push((e+256).toString(16).slice(1));function Kz(e,t=0){return Qn[e[t+0]]+Qn[e[t+1]]+Qn[e[t+2]]+Qn[e[t+3]]+"-"+Qn[e[t+4]]+Qn[e[t+5]]+"-"+Qn[e[t+6]]+Qn[e[t+7]]+"-"+Qn[e[t+8]]+Qn[e[t+9]]+"-"+Qn[e[t+10]]+Qn[e[t+11]]+Qn[e[t+12]]+Qn[e[t+13]]+Qn[e[t+14]]+Qn[e[t+15]]}const Yz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),RS={randomUUID:Yz};function o0(e,t,n){if(RS.randomUUID&&!t&&!e)return RS.randomUUID();e=e||{};const r=e.random||(e.rng||Gz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kz(r)}function b1(e){this.message=e}b1.prototype=new Error,b1.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function kS(e){this.message=e}kS.prototype=new Error,kS.prototype.name="InvalidTokenError";var Xz={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -73,12 +73,12 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xl=D;function ej(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tj=typeof Object.is=="function"?Object.is:ej,nj=Xl.useState,rj=Xl.useEffect,oj=Xl.useLayoutEffect,ij=Xl.useDebugValue;function sj(e,t){var n=t(),r=nj({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return oj(function(){o.value=n,o.getSnapshot=t,Yg(o)&&i({inst:o})},[e,n,t]),rj(function(){return Yg(o)&&i({inst:o}),e(function(){Yg(o)&&i({inst:o})})},[e]),ij(n),n}function Yg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tj(e,n)}catch{return!0}}function aj(e,t){return t()}var lj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?aj:sj;Jz.useSyncExternalStore=Xl.useSyncExternalStore!==void 0?Xl.useSyncExternalStore:lj;const ms=()=>{},So=ms(),Xg=Object,Xo=e=>e===So,ra=e=>typeof e=="function",i0=(e,t)=>({...e,...t}),uj=e=>ra(e.then),Wd=new WeakMap;let cj=0;const Wc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Xg(e)===e&&!r&&n!=RegExp){if(o=Wd.get(e),o)return o;if(o=++cj+"~",Wd.set(e,o),n==Array){for(o="@",i=0;i{const n=ds.get(e);return[()=>!Xo(t)&&e.get(t)||Zg,r=>{if(!Xo(t)){const o=e.get(t);t in qd||(qd[t]=o),n[5](t,i0(o,r),o||Zg)}},n[6],()=>!Xo(t)&&t in qd?qd[t]:!Xo(t)&&e.get(t)||Zg]};let E1=!0;const dj=()=>E1,[C1,A1]=xy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ms,ms],pj=()=>{const e=S1&&document.visibilityState;return Xo(e)||e!=="hidden"},hj=e=>(S1&&document.addEventListener("visibilitychange",e),C1("focus",e),()=>{S1&&document.removeEventListener("visibilitychange",e),A1("focus",e)}),mj=e=>{const t=()=>{E1=!0,e()},n=()=>{E1=!1};return C1("online",t),C1("offline",n),()=>{A1("online",t),A1("offline",n)}},gj={isOnline:dj,isVisible:pj},vj={initFocus:hj,initReconnect:mj};Ze.useId;const AR=!xy||"Deno"in window,Qg=typeof navigator<"u"&&navigator.connection,DS=!AR&&Qg&&(["slow-2g","2g"].includes(Qg.effectiveType)||Qg.saveData),RR=e=>{if(ra(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Wc(e):"",[e,t]};let yj=0;const PS=()=>++yj,xj=0,wj=1,bj=2;async function _j(...e){const[t,n,r,o]=e,i=i0({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const u=i.rollbackOnError;let c=i.optimisticData;const f=m=>typeof u=="function"?u(m):u!==!1,p=i.throwOnError;if(ra(n)){const m=n,w=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&m(t.get(y)._k)&&w.push(y);return Promise.all(w.map(h))}return h(n);async function h(m){const[w]=RR(m);if(!w)return;const[v,y]=fj(t,w),[A,b,x,S]=ds.get(t),k=()=>{const H=A[w];return(ra(i.revalidate)?i.revalidate(v().data,m):i.revalidate!==!1)&&(delete x[w],delete S[w],H&&H[0])?H[0](bj).then(()=>v().data):v().data};if(e.length<3)return k();let P=r,E;const L=PS();b[w]=[L,0];const $=!Xo(c),q=v(),I=q.data,X=q._c,se=Xo(X)?I:X;if($&&(c=ra(c)?c(se,I):c,y({data:c,_c:se})),ra(P))try{P=P(se)}catch(H){E=H}if(P&&uj(P))if(P=await P.catch(H=>{E=H}),L!==b[w][0]){if(E)throw E;return P}else E&&$&&f(E)&&(a=!0,y({data:se,_c:So}));if(a&&!E)if(ra(a)){const H=a(P,se);y({data:H,error:So,_c:So})}else y({data:P,error:So,_c:So});if(b[w][1]=PS(),Promise.resolve(k()).then(()=>{y({_c:So})}),E){if(p)throw E;return}return P}}const OS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Sj=(e,t)=>{if(!ds.has(e)){const n=i0(vj,t),r={},o=_j.bind(So,e);let i=ms;const a={},u=(p,h)=>{const m=a[p]||[];return a[p]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},c=(p,h,m)=>{e.set(p,h);const w=a[p];if(w)for(const v of w)v(h,m)},f=()=>{if(!ds.has(e)&&(ds.set(e,[r,{},{},{},o,c,u]),!AR)){const p=n.initFocus(setTimeout.bind(So,OS.bind(So,r,xj))),h=n.initReconnect(setTimeout.bind(So,OS.bind(So,r,wj)));i=()=>{p&&p(),h&&h(),ds.delete(e)}}};return f(),[e,o,f,i]}return[e,ds.get(e)[4]]},Ej=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Xo(i)&&a>i||setTimeout(r,u,o)},Cj=(e,t)=>Wc(e)==Wc(t),[kR,Aj]=Sj(new Map);i0({onLoadingSlow:ms,onSuccess:ms,onError:ms,onErrorRetry:Ej,onDiscarded:ms,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:DS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:DS?5e3:3e3,compare:Cj,isPaused:()=>!1,cache:kR,mutate:Aj,fallback:{}},gj);D.createContext({});const Rj="$inf$",TR=xy&&window.__SWR_DEVTOOLS_USE__,kj=TR?window.__SWR_DEVTOOLS_USE__:[],Tj=()=>{TR&&(window.__SWR_DEVTOOLS_REACT__=Ze)},Dj=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=RR(t),[,,,u]=ds.get(kR);if(a.startsWith(Rj))return n(...i);const c=u[a];return Xo(c)?n(...i):(delete u[a],c)}),r);kj.concat(Dj);Tj();Ze.use;const gi=Object.create(null);gi.open="0";gi.close="1";gi.ping="2";gi.pong="3";gi.message="4";gi.upgrade="5";gi.noop="6";const wp=Object.create(null);Object.keys(gi).forEach(e=>{wp[gi[e]]=e});const R1={type:"error",data:"parser error"},DR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",PR=typeof ArrayBuffer=="function",OR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,wy=({type:e,data:t},n,r)=>DR&&t instanceof Blob?n?r(t):LS(t,r):PR&&(t instanceof ArrayBuffer||OR(t))?n?r(t):LS(new Blob([t]),r):r(gi[e]+(t||"")),LS=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function MS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jg;function Pj(e,t){if(DR&&e.data instanceof Blob)return e.data.arrayBuffer().then(MS).then(t);if(PR&&(e.data instanceof ArrayBuffer||OR(e.data)))return t(MS(e.data));wy(e,!1,n=>{Jg||(Jg=new TextEncoder),t(Jg.encode(n))})}const NS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ac=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,a,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(a&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},Lj=typeof ArrayBuffer=="function",by=(e,t)=>{if(typeof e!="string")return{type:"message",data:LR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Mj(e.substring(1),t)}:wp[n]?e.length>1?{type:wp[n],data:e.substring(1)}:{type:wp[n]}:R1},Mj=(e,t)=>{if(Lj){const n=Oj(e);return LR(n,t)}else return{base64:!0,data:e}},LR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},MR="",Nj=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,a)=>{wy(i,!1,u=>{r[a]=u,++o===n&&t(r.join(MR))})})},Bj=(e,t)=>{const n=e.split(MR),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let ev;function Hd(e){return e.reduce((t,n)=>t+n.length,0)}function Gd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){u.enqueue(R1);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if(Hd(n)e){u.enqueue(R1);break}}}})}const NR=4;function Bn(e){if(e)return Fj(e)}function Fj(e){for(var t in Bn.prototype)e[t]=Bn.prototype[t];return e}Bn.prototype.on=Bn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Bn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Bn.prototype.off=Bn.prototype.removeListener=Bn.prototype.removeAllListeners=Bn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Uj=Eo.setTimeout,zj=Eo.clearTimeout;function s0(e,t){t.useNativeTimers?(e.setTimeoutFn=Uj.bind(Eo),e.clearTimeoutFn=zj.bind(Eo)):(e.setTimeoutFn=Eo.setTimeout.bind(Eo),e.clearTimeoutFn=Eo.clearTimeout.bind(Eo))}const jj=1.33;function Vj(e){return typeof e=="string"?Wj(e):Math.ceil((e.byteLength||e.size)*jj)}function Wj(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function qj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Hj(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function $R(){const e=$S(+new Date);return e!==IS?(BS=0,IS=e):e+"."+$S(BS++)}for(;Kd{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Bj(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Nj(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=$R()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ml(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Ml=class bp extends Bn{constructor(t,n){super(),s0(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=BR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new UR(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=bp.requestsCount++,bp.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Xj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete bp.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Ml.requestsCount=0;Ml.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",FS);else if(typeof addEventListener=="function"){const e="onpagehide"in Eo?"pagehide":"unload";addEventListener(e,FS,!1)}}function FS(){for(let e in Ml.requests)Ml.requests.hasOwnProperty(e)&&Ml.requests[e].abort()}const Sy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Yd=Eo.WebSocket||Eo.MozWebSocket,US=!0,Jj="arraybuffer",zS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class eV extends _y{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=zS?{}:BR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=US&&!zS?n?new Yd(t,n):new Yd(t):new Yd(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{US&&this.ws.send(i)}catch{}o&&Sy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=$R()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Yd}}class tV extends _y{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=$j(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Ij();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:u,value:c})=>{u||(this.onPacket(c),i())}).catch(u=>{})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Sy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const nV={websocket:eV,webtransport:tV,polling:Qj},rV=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oV=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function T1(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=rV.exec(e||""),i={},a=14;for(;a--;)i[oV[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=iV(i,i.path),i.queryKey=sV(i,i.query),i}function iV(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function sV(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let zR=class sl extends Bn{constructor(t,n={}){super(),this.binaryType=Jj,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=T1(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=T1(n.host).host),s0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Hj(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=NR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new nV[t](r)}open(){let t;if(this.opts.rememberUpgrade&&sl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;sl.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;sl.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const a=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",a),n.once("close",u),this.once("close",c),this.once("upgrading",f),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",sl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){sl.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,jR=Object.prototype.toString,cV=typeof Blob=="function"||typeof Blob<"u"&&jR.call(Blob)==="[object BlobConstructor]",fV=typeof File=="function"||typeof File<"u"&&jR.call(File)==="[object FileConstructor]";function Ey(e){return lV&&(e instanceof ArrayBuffer||uV(e))||cV&&e instanceof Blob||fV&&e instanceof File}function _p(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let u=0;u{this.io.clearTimeoutFn(i),n.apply(this,u)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(a,u)=>a?o(a):r(u);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:mt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case mt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case mt.EVENT:case mt.BINARY_EVENT:this.onevent(t);break;case mt.ACK:case mt.BINARY_ACK:this.onack(t);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:mt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:mt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}cu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};cu.prototype.reset=function(){this.attempts=0};cu.prototype.setMin=function(e){this.ms=e};cu.prototype.setMax=function(e){this.max=e};cu.prototype.setJitter=function(e){this.jitter=e};class O1 extends Bn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,s0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new cu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||yV;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new zR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Go(n,"open",function(){r.onopen(),t&&t()}),i=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},a=Go(n,"error",i);if(this._timeout!==!1){const u=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Go(t,"ping",this.onping.bind(this)),Go(t,"data",this.ondata.bind(this)),Go(t,"error",this.onerror.bind(this)),Go(t,"close",this.onclose.bind(this)),Go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Sy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new VR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Gu={};function Sp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=aV(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=Gu[o]&&i in Gu[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return u?c=new O1(r,t):(Gu[o]||(Gu[o]=new O1(r,t)),c=Gu[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Sp,{Manager:O1,Socket:VR,io:Sp,connect:Sp});var wV=e=>{let t={},n=new Date,r=new Date;r.setDate(n.getDate()-1);let o=new Date;o.setDate(n.getDate()-7);let i=new Date;return i.setDate(n.getDate()-30),e.forEach(a=>{let u=new Date(a.createdAt),c=u.toDateString()===n.toDateString(),f=u.toDateString()===r.toDateString(),p=u>=o,h=u>=i,m;c?m="Today":f?m="Yesterday":p?m="Previous 7 days":h?m="Previous 30 days":m=u.toLocaleString("default",{month:"long",year:"numeric"}).split(" ").slice(0,1).join(" "),t[m]||(t[m]=[]),t[m].push(a)}),t},WR=An({key:"ThreadIdToResume",default:void 0}),bV=An({key:"ChatProfile",default:void 0}),VS=An({key:"SessionId",default:o0()}),L1=ER({key:"SessionIdSelector",get:({get:e})=>e(VS),set:({set:e},t)=>e(VS,t instanceof Gz?o0():t)}),vf=An({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),Ay=An({key:"Actions",default:[]}),yf=An({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),qR=An({key:"TokenCount",default:0}),Ry=An({key:"Loading",default:!1}),ky=An({key:"AskUser",default:void 0}),HR=An({key:"CallFn",default:void 0}),a0=An({key:"ChatSettings",default:[]}),GR=ER({key:"ChatSettingsValue/Default",get:({get:e})=>e(a0).reduce((t,n)=>(t[n.id]=n.initial,t),{})}),Ty=An({key:"ChatSettingsValue",default:GR}),Dy=An({key:"DisplayElements",default:[]}),Py=An({key:"TasklistElements",default:[]}),Oy=An({key:"FirstUserInteraction",default:void 0}),_V=An({key:"AccessToken",default:void 0});An({key:"User",default:null});An({key:"ChainlitConfig",default:void 0});An({key:"ThreadHistory",default:{threads:void 0,currentThreadId:void 0,timeGroupedThreads:void 0,pageInfo:void 0},effects:[({setSelf:e,onSet:t})=>{t((n,r)=>{let o=n==null?void 0:n.timeGroupedThreads;n!=null&&n.threads&&!Oa.isEqual(n.threads,r==null?void 0:r.timeGroupedThreads)&&(o=wV(n.threads)),e({...n,timeGroupedThreads:o})})}]});var SV=An({key:"SideView",default:void 0}),Ly=An({key:"CurrentThreadId",default:void 0}),KR=()=>{let e=Sn(Ry),t=Sn(Dy),n=Sn(Py),r=Sn(Ay),o=Sn(vf),i=Sn(ky),a=Sn(HR),u=Sn(a0),c=Sn(Ty),f=Sn(GR),p=(o==null?void 0:o.socket.connected)&&!(o!=null&&o.error),h=!p||e||(i==null?void 0:i.spec.type)==="file"||(i==null?void 0:i.spec.type)==="action";return{actions:r,askUser:i,callFn:a,chatSettingsDefaultValue:f,chatSettingsInputs:u,chatSettingsValue:c,connected:p,disabled:h,elements:t,error:o==null?void 0:o.error,loading:e,tasklists:n}},Sl=(e,t)=>{let n=["assistant_message","user_message"],r=[...n,"tool"],o=n.includes(t.type),i=r.includes(t.type),a=!t.parentId;if(a&&!i)return e;let u=a?void 0:My(e,t.parentId),c=(a||(u==null?void 0:u.type)!=="assistant_message")&&t.type==="tool";if(l0(e,t.id))return u0(e,t.id,t);if(c){let f=e.length>0?e[e.length-1]:void 0,p=(f==null?void 0:f.type)==="assistant_message"&&(f==null?void 0:f.id.startsWith("wrap_"));return f&&p?[...e.slice(0,e.length-1),{...f,steps:[...f.steps||[],t]}]:[...e,{...t,name:"",input:"",output:"",id:"wrap_"+t.id,type:"assistant_message",steps:[t]}]}else return!o&&"parentId"in t&&t.parentId?XR(e,t.parentId,t):"indent"in t&&t.indent&&t.indent>0?YR(e,t.indent,t):[...e,t]},YR=(e,t,n,r=0)=>{let o=[...e];if(o.length===0)return[...o,n];{let i=o.length-1,a=o[i];return a.steps=a.steps||[],r+1===t?(a.steps=[...a.steps,n],o[i]={...a},o):(a.steps=YR(a.steps,t,n,r+1),o[i]={...a},o)}},XR=(e,t,n)=>{let r=[...e];for(let o=0;o{for(let n of e){if(Oa.isEqual(n.id,t))return n;if(n.steps&&n.steps.length>0){let r=My(n.steps,t);if(r)return r}}},l0=(e,t)=>My(e,t)!==void 0,u0=(e,t,n)=>{let r=[...e];for(let o=0;o{let n=[...e];for(let r=0;r{let i=[...e];for(let a=0;a{let c=new FormData;c.append("file",e),o.open("POST",this.buildEndpoint(`/project/file?session_id=${n}`),!0),r&&o.setRequestHeader("Authorization",this.checkToken(r)),o.upload.onprogress=function(f){if(f.lengthComputable){let p=f.loaded/f.total*100;t(p)}},o.onload=function(){if(o.status===200){let f=JSON.parse(o.responseText);a(f)}else u("Upload failed")},o.onerror=function(){u("Upload error")},o.send(c)});return{xhr:o,promise:i}}getElementUrl(e,t){let n=`?session_id=${t}`;return this.buildEndpoint(`/project/file/${e}${n}`)}getLogoEndpoint(e){return this.buildEndpoint(`/logo?theme=${e}`)}getOAuthEndpoint(e){return this.buildEndpoint(`/auth/oauth/${e}`)}},xf=D.createContext(new JR("http://localhost:8000","webapp")),e4=()=>{let e=D.useContext(xf),t=Sn(_V),n=Sn(vf),r=Sn(ky),o=Sn(L1),i=xp(a0),a=xp(L1),u=xp(Ty),c=on(Oy),f=on(Ry),p=on(yf),h=on(Dy),m=on(Py),w=on(Ay),v=on(qR),y=on(WR),A=on(SV),b=on(Ly),x=D.useCallback(()=>{n==null||n.socket.emit("clear_session"),n==null||n.socket.disconnect(),y(void 0),a(),c(void 0),p([]),h([]),m([]),w([]),v(0),i(),u(),A(void 0),b(void 0)},[n]),S=D.useCallback((I,X=[])=>{I.id||(I.id=o0()),I.createdAt||(I.createdAt=new Date().toISOString()),p(se=>Sl(se,I)),n==null||n.socket.emit("client_message",{message:I,fileReferences:X})},[n==null?void 0:n.socket]),k=D.useCallback((I,X,se,H)=>{n==null||n.socket.emit("audio_chunk",{isStart:I,mimeType:X,elapsedTime:se,data:H})},[n==null?void 0:n.socket]),P=D.useCallback(I=>{n==null||n.socket.emit("audio_end",{fileReferences:I})},[n==null?void 0:n.socket]),E=D.useCallback(I=>{r&&(p(X=>Sl(X,I)),r.callback(I))},[r]),L=D.useCallback(I=>{n==null||n.socket.emit("chat_settings_change",I)},[n==null?void 0:n.socket]),$=D.useCallback(()=>{p(I=>I.map(X=>(X.streaming=!1,X))),f(!1),n==null||n.socket.emit("stop")},[n==null?void 0:n.socket]),q=D.useCallback(I=>{let X=n==null?void 0:n.socket;if(!X)return;let se=new Promise((H,G)=>{X.once("action_response",Q=>{Q.status?H(Q):G(Q)})});return X.emit("action_call",I),se},[n==null?void 0:n.socket]);return{uploadFile:D.useCallback((I,X)=>e.uploadFile(I,X,o,t),[o,t]),callAction:q,clear:x,replyMessage:E,sendMessage:S,sendAudioChunk:k,endAudioStream:P,stopTask:$,setIdToResume:y,updateChatSettings:L}},RV=()=>{let e=Sn(yf),t=Sn(Oy);return{threadId:Sn(Ly),messages:e,firstInteraction:t}},kV=()=>{let e=D.useContext(xf),t=Sn(L1),[n,r]=RS(vf),o=xp(Ty),i=on(Oy),a=on(Ry),u=on(yf),c=on(ky),f=on(HR),p=on(Dy),h=on(Py),m=on(Ay),w=on(a0),v=on(qR),[y,A]=RS(bV),b=Sn(WR),x=on(Ly),S=D.useCallback(({userEnv:E,accessToken:L})=>{let{protocol:$,host:q,pathname:I}=new URL(e.httpEndpoint),X=`${$}//${q}`,se=I&&I!=="/"?`${I}/ws/socket.io`:"/ws/socket.io",H=Sp(X,{path:se,extraHeaders:{Authorization:L||"","X-Chainlit-Client-Type":e.type,"X-Chainlit-Session-Id":t,"X-Chainlit-Thread-Id":b||"","user-env":JSON.stringify(E),"X-Chainlit-Chat-Profile":y?encodeURIComponent(y):""}});r(G=>{var Q,le;return(Q=G==null?void 0:G.socket)==null||Q.removeAllListeners(),(le=G==null?void 0:G.socket)==null||le.close(),{socket:H}}),H.on("connect",()=>{H.emit("connection_successful"),r(G=>({...G,error:!1}))}),H.on("connect_error",G=>{r(Q=>({...Q,error:!0}))}),H.on("task_start",()=>{a(!0)}),H.on("task_end",()=>{a(!1)}),H.on("reload",()=>{H.emit("clear_session"),window.location.reload()}),H.on("resume_thread",G=>{var pe,J;let Q=[];for(let de of G.steps)Q=Sl(Q,de);(pe=G.metadata)!=null&&pe.chat_profile&&A((J=G.metadata)==null?void 0:J.chat_profile),u(Q);let le=G.elements||[];h(le.filter(de=>de.type==="tasklist")),p(le.filter(de=>["avatar","tasklist"].indexOf(de.type)===-1))}),H.on("new_message",G=>{u(Q=>Sl(Q,G))}),H.on("first_interaction",G=>{i(G.interaction),x(G.thread_id)}),H.on("update_message",G=>{u(Q=>u0(Q,G.id,G))}),H.on("delete_message",G=>{u(Q=>ZR(Q,G.id))}),H.on("stream_start",G=>{u(Q=>Sl(Q,G))}),H.on("stream_token",({id:G,token:Q,isSequence:le,isInput:pe})=>{u(J=>QR(J,G,Q,le,pe))}),H.on("ask",({msg:G,spec:Q},le)=>{c({spec:Q,callback:le}),u(pe=>Sl(pe,G)),a(!1)}),H.on("ask_timeout",()=>{c(void 0),a(!1)}),H.on("clear_ask",()=>{c(void 0)}),H.on("call_fn",({name:G,args:Q},le)=>{f({name:G,args:Q,callback:le})}),H.on("clear_call_fn",()=>{f(void 0)}),H.on("call_fn_timeout",()=>{f(void 0)}),H.on("chat_settings",G=>{w(G),o()}),H.on("element",G=>{!G.url&&G.chainlitKey&&(G.url=e.getElementUrl(G.chainlitKey,t)),G.type==="tasklist"?h(Q=>{let le=Q.findIndex(pe=>pe.id===G.id);return le===-1?[...Q,G]:[...Q.slice(0,le),G,...Q.slice(le+1)]}):p(Q=>{let le=Q.findIndex(pe=>pe.id===G.id);return le===-1?[...Q,G]:[...Q.slice(0,le),G,...Q.slice(le+1)]})}),H.on("remove_element",G=>{p(Q=>Q.filter(le=>le.id!==G.id)),h(Q=>Q.filter(le=>le.id!==G.id))}),H.on("action",G=>{m(Q=>[...Q,G])}),H.on("remove_action",G=>{m(Q=>{let le=Q.findIndex(pe=>pe.id===G.id);return le===-1?Q:[...Q.slice(0,le),...Q.slice(le+1)]})}),H.on("token_usage",G=>{v(Q=>Q+G)})},[r,t,y]),k=D.useCallback(Oa.debounce(S,200),[S]),P=D.useCallback(()=>{n!=null&&n.socket&&(n.socket.removeAllListeners(),n.socket.close())},[n]);return{connect:k,disconnect:P,session:n,sessionId:t,chatProfile:y,idToResume:b,setChatProfile:A}};function t4(e,t){return function(){return e.apply(t,arguments)}}const{toString:TV}=Object.prototype,{getPrototypeOf:Ny}=Object,c0=(e=>t=>{const n=TV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>c0(t)===e),f0=e=>t=>typeof t===e,{isArray:fu}=Array,qc=f0("undefined");function DV(e){return e!==null&&!qc(e)&&e.constructor!==null&&!qc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n4=ti("ArrayBuffer");function PV(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n4(e.buffer),t}const OV=f0("string"),Qr=f0("function"),r4=f0("number"),d0=e=>e!==null&&typeof e=="object",LV=e=>e===!0||e===!1,Ep=e=>{if(c0(e)!=="object")return!1;const t=Ny(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MV=ti("Date"),NV=ti("File"),BV=ti("Blob"),IV=ti("FileList"),$V=e=>d0(e)&&Qr(e.pipe),FV=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=c0(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},UV=ti("URLSearchParams"),[zV,jV,VV,WV]=["ReadableStream","Request","Response","Headers"].map(ti),qV=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),fu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const la=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,i4=e=>!qc(e)&&e!==la;function M1(){const{caseless:e}=i4(this)&&this||{},t={},n=(r,o)=>{const i=e&&o4(t,o)||o;Ep(t[i])&&Ep(r)?t[i]=M1(t[i],r):Ep(r)?t[i]=M1({},r):fu(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(wf(t,(o,i)=>{n&&Qr(o)?e[i]=t4(o,n):e[i]=o},{allOwnKeys:r}),e),GV=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KV=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},YV=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Ny(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},XV=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ZV=e=>{if(!e)return null;if(fu(e))return e;let t=e.length;if(!r4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},QV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ny(Uint8Array)),JV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},eW=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tW=ti("HTMLFormElement"),nW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),qS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rW=ti("RegExp"),s4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wf(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},oW=e=>{s4(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iW=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return fu(e)?r(e):r(String(e).split(t)),n},sW=()=>{},aW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,tv="abcdefghijklmnopqrstuvwxyz",HS="0123456789",a4={DIGIT:HS,ALPHA:tv,ALPHA_DIGIT:tv+tv.toUpperCase()+HS},lW=(e=16,t=a4.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uW(e){return!!(e&&Qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cW=e=>{const t=new Array(10),n=(r,o)=>{if(d0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=fu(r)?[]:{};return wf(r,(a,u)=>{const c=n(a,o+1);!qc(c)&&(i[u]=c)}),t[o]=void 0,i}}return r};return n(e,0)},fW=ti("AsyncFunction"),dW=e=>e&&(d0(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),l4=((e,t)=>e?setImmediate:t?((n,r)=>(la.addEventListener("message",({source:o,data:i})=>{o===la&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),la.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(la.postMessage)),pW=typeof queueMicrotask<"u"?queueMicrotask.bind(la):typeof process<"u"&&process.nextTick||l4,Z={isArray:fu,isArrayBuffer:n4,isBuffer:DV,isFormData:FV,isArrayBufferView:PV,isString:OV,isNumber:r4,isBoolean:LV,isObject:d0,isPlainObject:Ep,isReadableStream:zV,isRequest:jV,isResponse:VV,isHeaders:WV,isUndefined:qc,isDate:MV,isFile:NV,isBlob:BV,isRegExp:rW,isFunction:Qr,isStream:$V,isURLSearchParams:UV,isTypedArray:QV,isFileList:IV,forEach:wf,merge:M1,extend:HV,trim:qV,stripBOM:GV,inherits:KV,toFlatObject:YV,kindOf:c0,kindOfTest:ti,endsWith:XV,toArray:ZV,forEachEntry:JV,matchAll:eW,isHTMLForm:tW,hasOwnProperty:qS,hasOwnProp:qS,reduceDescriptors:s4,freezeMethods:oW,toObjectSet:iW,toCamelCase:nW,noop:sW,toFiniteNumber:aW,findKey:o4,global:la,isContextDefined:i4,ALPHABET:a4,generateString:lW,isSpecCompliantForm:uW,toJSONObject:cW,isAsyncFn:fW,isThenable:dW,setImmediate:l4,asap:pW};function Je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const u4=Je.prototype,c4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c4[e]={value:e}});Object.defineProperties(Je,c4);Object.defineProperty(u4,"isAxiosError",{value:!0});Je.from=(e,t,n,r,o,i)=>{const a=Object.create(u4);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const hW=null;function N1(e){return Z.isPlainObject(e)||Z.isArray(e)}function f4(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function GS(e,t,n){return e?e.concat(t).map(function(o,i){return o=f4(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function mW(e){return Z.isArray(e)&&!e.some(N1)}const gW=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function p0(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,A){return!Z.isUndefined(A[y])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(Z.isDate(v))return v.toISOString();if(!c&&Z.isBlob(v))throw new Je("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(v)||Z.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,y,A){let b=v;if(v&&!A&&typeof v=="object"){if(Z.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(Z.isArray(v)&&mW(v)||(Z.isFileList(v)||Z.endsWith(y,"[]"))&&(b=Z.toArray(v)))return y=f4(y),b.forEach(function(S,k){!(Z.isUndefined(S)||S===null)&&t.append(a===!0?GS([y],k,i):a===null?y:y+"[]",f(S))}),!1}return N1(v)?!0:(t.append(GS(A,y,i),f(v)),!1)}const h=[],m=Object.assign(gW,{defaultVisitor:p,convertValue:f,isVisitable:N1});function w(v,y){if(!Z.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(v),Z.forEach(v,function(b,x){(!(Z.isUndefined(b)||b===null)&&o.call(t,b,Z.isString(x)?x.trim():x,y,m))===!0&&w(b,y?y.concat(x):[x])}),h.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return w(e),t}function KS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function By(e,t){this._pairs=[],e&&p0(e,this,t)}const d4=By.prototype;d4.append=function(t,n){this._pairs.push([t,n])};d4.toString=function(t){const n=t?function(r){return t.call(this,r,KS)}:KS;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function vW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p4(e,t,n){if(!t)return e;const r=n&&n.encode||vW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Z.isURLSearchParams(t)?t.toString():new By(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class YS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const h4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yW=typeof URLSearchParams<"u"?URLSearchParams:By,xW=typeof FormData<"u"?FormData:null,wW=typeof Blob<"u"?Blob:null,bW={isBrowser:!0,classes:{URLSearchParams:yW,FormData:xW,Blob:wW},protocols:["http","https","file","blob","url","data"]},Iy=typeof window<"u"&&typeof document<"u",B1=typeof navigator=="object"&&navigator||void 0,_W=Iy&&(!B1||["ReactNative","NativeScript","NS"].indexOf(B1.product)<0),SW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",EW=Iy&&window.location.href||"http://localhost",CW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Iy,hasStandardBrowserEnv:_W,hasStandardBrowserWebWorkerEnv:SW,navigator:B1,origin:EW},Symbol.toStringTag,{value:"Module"})),Mr={...CW,...bW};function AW(e,t){return p0(e,new Mr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Mr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function RW(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kW(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Z.isArray(o[a])&&(o[a]=kW(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(RW(r),o,n,0)}),n}return null}function TW(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bf={transitional:h4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(m4(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return AW(t,this.formSerializer).toString();if((u=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return p0(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),TW(t)):t}],transformResponse:[function(t){const n=this.transitional||bf.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Je.from(u,Je.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mr.classes.FormData,Blob:Mr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{bf.headers[e]={}});const DW=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),PW=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&DW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},XS=Symbol("internals");function Ku(e){return e&&String(e).trim().toLowerCase()}function Cp(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Cp):String(e)}function OW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const LW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nv(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function MW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function NW(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Nr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,c,f){const p=Ku(c);if(!p)throw new Error("header name must be a non-empty string");const h=Z.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=Cp(u))}const a=(u,c)=>Z.forEach(u,(f,p)=>i(f,p,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Z.isString(t)&&(t=t.trim())&&!LW(t))a(PW(t),n);else if(Z.isHeaders(t))for(const[u,c]of t.entries())i(c,u,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ku(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return OW(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ku(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Ku(a),a){const u=Z.findKey(r,a);u&&(!n||nv(r,r[u],u,n))&&(delete r[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||nv(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(r,i);if(a){n[a]=Cp(o),delete n[i];return}const u=t?MW(i):String(i).trim();u!==i&&delete n[i],n[u]=Cp(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[XS]=this[XS]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Ku(a);r[u]||(NW(o,a),r[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Nr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Nr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Nr);function rv(e,t){const n=this||bf,r=t||n,o=Nr.from(r.headers);let i=r.data;return Z.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function g4(e){return!!(e&&e.__CANCEL__)}function du(e,t,n){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(du,Je,{__CANCEL__:!0});function v4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function BW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function IW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[i];a||(a=f),n[o]=c,r[o]=f;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),h=p-n;h>=r?a(f,p):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const fh=(e,t,n=3)=>{let r=0;const o=IW(50,250);return $W(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-r,f=o(c),p=a<=u;r=a;const h={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},ZS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},QS=e=>(...t)=>Z.asap(()=>e(...t)),FW=Mr.hasStandardBrowserEnv?function(){const t=Mr.navigator&&/(msie|trident)/i.test(Mr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const u=Z.isString(a)?o(a):a;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),UW=Mr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&a.push("path="+r),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function y4(e,t){return e&&!zW(t)?jW(e,t):t}const JS=e=>e instanceof Nr?{...e}:e;function Ca(e,t){t=t||{};const n={};function r(f,p,h){return Z.isPlainObject(f)&&Z.isPlainObject(p)?Z.merge.call({caseless:h},f,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}function o(f,p,h){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function i(f,p){if(!Z.isUndefined(p))return r(void 0,p)}function a(f,p){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,p)=>o(JS(f),JS(p),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,m=h(e[p],t[p],p);Z.isUndefined(m)&&h!==u||(n[p]=m)}),n}const x4=e=>{const t=Ca({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=Nr.from(a),t.url=p4(y4(t.baseURL,t.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(n)){if(Mr.hasStandardBrowserEnv||Mr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Mr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&FW(t.url))){const f=o&&i&&UW.read(i);f&&a.set(o,f)}return t},VW=typeof XMLHttpRequest<"u",WW=VW&&function(e){return new Promise(function(n,r){const o=x4(e);let i=o.data;const a=Nr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,h,m,w,v;function y(){w&&w(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function b(){if(!A)return;const S=Nr.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),P={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};v4(function(L){n(L),y()},function(L){r(L),y()},P),A=null}"onloadend"in A?A.onloadend=b:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(b)},A.onabort=function(){A&&(r(new Je("Request aborted",Je.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Je("Network Error",Je.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||h4;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new Je(k,P.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(k,P){A.setRequestHeader(P,k)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),f&&([m,v]=fh(f,!0),A.addEventListener("progress",m)),c&&A.upload&&([h,w]=fh(c),A.upload.addEventListener("progress",h),A.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=S=>{A&&(r(!S||S.type?new du(null,e,A):S),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const x=BW(o.url);if(x&&Mr.protocols.indexOf(x)===-1){r(new Je("Unsupported protocol "+x+":",Je.ERR_BAD_REQUEST,e));return}A.send(i||null)})},qW=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof Je?p:new du(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Z.asap(u),c}},HW=function*(e,t){let n=e.byteLength;if(!t||n{const o=GW(e,t);let i=0,a,u=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let h=p.byteLength;if(n){let m=i+=h;n(m)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},h0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",w4=h0&&typeof ReadableStream=="function",YW=h0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),b4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},XW=w4&&b4(()=>{let e=!1;const t=new Request(Mr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),t3=64*1024,I1=w4&&b4(()=>Z.isReadableStream(new Response("").body)),dh={stream:I1&&(e=>e.body)};h0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!dh[t]&&(dh[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const ZW=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(Mr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await YW(e)).byteLength},QW=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??ZW(t)},JW=h0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:m}=x4(e);f=f?(f+"").toLowerCase():"text";let w=qW([o,i&&i.toAbortSignal()],a),v;const y=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let A;try{if(c&&XW&&n!=="get"&&n!=="head"&&(A=await QW(p,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Z.isFormData(r)&&(E=P.headers.get("content-type"))&&p.setContentType(E),P.body){const[L,$]=ZS(A,fh(QS(c)));r=e3(P.body,t3,L,$)}}Z.isString(h)||(h=h?"include":"omit");const b="credentials"in Request.prototype;v=new Request(t,{...m,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:b?h:void 0});let x=await fetch(v);const S=I1&&(f==="stream"||f==="response");if(I1&&(u||S&&y)){const P={};["status","statusText","headers"].forEach(q=>{P[q]=x[q]});const E=Z.toFiniteNumber(x.headers.get("content-length")),[L,$]=u&&ZS(E,fh(QS(u),!0))||[];x=new Response(e3(x.body,t3,L,()=>{$&&$(),y&&y()}),P)}f=f||"text";let k=await dh[Z.findKey(dh,f)||"text"](x,e);return!S&&y&&y(),await new Promise((P,E)=>{v4(P,E,{data:k,headers:Nr.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:v})})}catch(b){throw y&&y(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,v),{cause:b.cause||b}):Je.from(b,b&&b.code,e,v)}}),$1={http:hW,xhr:WW,fetch:JW};Z.forEach($1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const n3=e=>`- ${e}`,eq=e=>Z.isFunction(e)||e===null||e===!1,_4={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : -`+i.map(n3).join(` -`):" "+n3(i[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:$1};function ov(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new du(null,e)}function r3(e){return ov(e),e.headers=Nr.from(e.headers),e.data=rv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_4.getAdapter(e.adapter||bf.adapter)(e).then(function(r){return ov(e),r.data=rv.call(e,e.transformResponse,r),r.headers=Nr.from(r.headers),r},function(r){return g4(r)||(ov(e),r&&r.response&&(r.response.data=rv.call(e,e.transformResponse,r.response),r.response.headers=Nr.from(r.response.headers))),Promise.reject(r)})}const S4="1.7.7",$y={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$y[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const o3={};$y.transitional=function(t,n,r){function o(i,a){return"[Axios v"+S4+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,u)=>{if(t===!1)throw new Je(o(a," has been removed"+(n?" in "+n:"")),Je.ERR_DEPRECATED);return n&&!o3[a]&&(o3[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,u):!0}};function tq(e,t,n){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new Je("option "+i+" must be "+c,Je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}}const F1={assertOptions:tq,validators:$y},rs=F1.validators;class ha{constructor(t){this.defaults=t,this.interceptors={request:new YS,response:new YS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ca(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&F1.assertOptions(r,{silentJSONParsing:rs.transitional(rs.boolean),forcedJSONParsing:rs.transitional(rs.boolean),clarifyTimeoutError:rs.transitional(rs.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:F1.assertOptions(o,{encode:rs.function,serialize:rs.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Nr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let p,h=0,m;if(!c){const v=[r3.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,f),m=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new du(i,a,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Fy(function(o){t=o}),cancel:t}}}function nq(e){return function(n){return e.apply(null,n)}}function rq(e){return Z.isObject(e)&&e.isAxiosError===!0}const U1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(U1).forEach(([e,t])=>{U1[t]=e});function E4(e){const t=new ha(e),n=t4(ha.prototype.request,t);return Z.extend(n,ha.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E4(Ca(e,o))},n}const Cn=E4(bf);Cn.Axios=ha;Cn.CanceledError=du;Cn.CancelToken=Fy;Cn.isCancel=g4;Cn.VERSION=S4;Cn.toFormData=p0;Cn.AxiosError=Je;Cn.Cancel=Cn.CanceledError;Cn.all=function(t){return Promise.all(t)};Cn.spread=nq;Cn.isAxiosError=rq;Cn.mergeConfig=Ca;Cn.AxiosHeaders=Nr;Cn.formToJSON=e=>m4(Z.isHTMLForm(e)?new FormData(e):e);Cn.getAdapter=_4.getAdapter;Cn.HttpStatusCode=U1;Cn.default=Cn;/** + */var Xl=D;function Zz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qz=typeof Object.is=="function"?Object.is:Zz,Jz=Xl.useState,ej=Xl.useEffect,tj=Xl.useLayoutEffect,nj=Xl.useDebugValue;function rj(e,t){var n=t(),r=Jz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return tj(function(){o.value=n,o.getSnapshot=t,Yg(o)&&i({inst:o})},[e,n,t]),ej(function(){return Yg(o)&&i({inst:o}),e(function(){Yg(o)&&i({inst:o})})},[e]),nj(n),n}function Yg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qz(e,n)}catch{return!0}}function oj(e,t){return t()}var ij=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oj:rj;Xz.useSyncExternalStore=Xl.useSyncExternalStore!==void 0?Xl.useSyncExternalStore:ij;const gs=()=>{},So=gs(),Xg=Object,Xo=e=>e===So,ra=e=>typeof e=="function",i0=(e,t)=>({...e,...t}),sj=e=>ra(e.then),Wd=new WeakMap;let aj=0;const Wc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Xg(e)===e&&!r&&n!=RegExp){if(o=Wd.get(e),o)return o;if(o=++aj+"~",Wd.set(e,o),n==Array){for(o="@",i=0;i{const n=ps.get(e);return[()=>!Xo(t)&&e.get(t)||Zg,r=>{if(!Xo(t)){const o=e.get(t);t in Hd||(Hd[t]=o),n[5](t,i0(o,r),o||Zg)}},n[6],()=>!Xo(t)&&t in Hd?Hd[t]:!Xo(t)&&e.get(t)||Zg]};let S1=!0;const uj=()=>S1,[E1,C1]=yy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[gs,gs],cj=()=>{const e=_1&&document.visibilityState;return Xo(e)||e!=="hidden"},fj=e=>(_1&&document.addEventListener("visibilitychange",e),E1("focus",e),()=>{_1&&document.removeEventListener("visibilitychange",e),C1("focus",e)}),dj=e=>{const t=()=>{S1=!0,e()},n=()=>{S1=!1};return E1("online",t),E1("offline",n),()=>{C1("online",t),C1("offline",n)}},pj={isOnline:uj,isVisible:cj},hj={initFocus:fj,initReconnect:dj};Ze.useId;const ER=!yy||"Deno"in window,Qg=typeof navigator<"u"&&navigator.connection,TS=!ER&&Qg&&(["slow-2g","2g"].includes(Qg.effectiveType)||Qg.saveData),CR=e=>{if(ra(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Wc(e):"",[e,t]};let mj=0;const DS=()=>++mj,gj=0,vj=1,yj=2;async function xj(...e){const[t,n,r,o]=e,i=i0({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const u=i.rollbackOnError;let c=i.optimisticData;const f=m=>typeof u=="function"?u(m):u!==!1,p=i.throwOnError;if(ra(n)){const m=n,w=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&m(t.get(y)._k)&&w.push(y);return Promise.all(w.map(h))}return h(n);async function h(m){const[w]=CR(m);if(!w)return;const[v,y]=lj(t,w),[A,b,x,S]=ps.get(t),k=()=>{const q=A[w];return(ra(i.revalidate)?i.revalidate(v().data,m):i.revalidate!==!1)&&(delete x[w],delete S[w],q&&q[0])?q[0](yj).then(()=>v().data):v().data};if(e.length<3)return k();let P=r,E;const L=DS();b[w]=[L,0];const $=!Xo(c),H=v(),I=H.data,X=H._c,se=Xo(X)?I:X;if($&&(c=ra(c)?c(se,I):c,y({data:c,_c:se})),ra(P))try{P=P(se)}catch(q){E=q}if(P&&sj(P))if(P=await P.catch(q=>{E=q}),L!==b[w][0]){if(E)throw E;return P}else E&&$&&f(E)&&(a=!0,y({data:se,_c:So}));if(a&&!E)if(ra(a)){const q=a(P,se);y({data:q,error:So,_c:So})}else y({data:P,error:So,_c:So});if(b[w][1]=DS(),Promise.resolve(k()).then(()=>{y({_c:So})}),E){if(p)throw E;return}return P}}const PS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},wj=(e,t)=>{if(!ps.has(e)){const n=i0(hj,t),r={},o=xj.bind(So,e);let i=gs;const a={},u=(p,h)=>{const m=a[p]||[];return a[p]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},c=(p,h,m)=>{e.set(p,h);const w=a[p];if(w)for(const v of w)v(h,m)},f=()=>{if(!ps.has(e)&&(ps.set(e,[r,{},{},{},o,c,u]),!ER)){const p=n.initFocus(setTimeout.bind(So,PS.bind(So,r,gj))),h=n.initReconnect(setTimeout.bind(So,PS.bind(So,r,vj)));i=()=>{p&&p(),h&&h(),ps.delete(e)}}};return f(),[e,o,f,i]}return[e,ps.get(e)[4]]},bj=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Xo(i)&&a>i||setTimeout(r,u,o)},_j=(e,t)=>Wc(e)==Wc(t),[AR,Sj]=wj(new Map);i0({onLoadingSlow:gs,onSuccess:gs,onError:gs,onErrorRetry:bj,onDiscarded:gs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:TS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:TS?5e3:3e3,compare:_j,isPaused:()=>!1,cache:AR,mutate:Sj,fallback:{}},pj);D.createContext({});const Ej="$inf$",RR=yy&&window.__SWR_DEVTOOLS_USE__,Cj=RR?window.__SWR_DEVTOOLS_USE__:[],Aj=()=>{RR&&(window.__SWR_DEVTOOLS_REACT__=Ze)},Rj=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=CR(t),[,,,u]=ps.get(AR);if(a.startsWith(Ej))return n(...i);const c=u[a];return Xo(c)?n(...i):(delete u[a],c)}),r);Cj.concat(Rj);Aj();Ze.use;const gi=Object.create(null);gi.open="0";gi.close="1";gi.ping="2";gi.pong="3";gi.message="4";gi.upgrade="5";gi.noop="6";const wp=Object.create(null);Object.keys(gi).forEach(e=>{wp[gi[e]]=e});const A1={type:"error",data:"parser error"},kR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",TR=typeof ArrayBuffer=="function",DR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,xy=({type:e,data:t},n,r)=>kR&&t instanceof Blob?n?r(t):OS(t,r):TR&&(t instanceof ArrayBuffer||DR(t))?n?r(t):OS(new Blob([t]),r):r(gi[e]+(t||"")),OS=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function LS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jg;function kj(e,t){if(kR&&e.data instanceof Blob)return e.data.arrayBuffer().then(LS).then(t);if(TR&&(e.data instanceof ArrayBuffer||DR(e.data)))return t(LS(e.data));xy(e,!1,n=>{Jg||(Jg=new TextEncoder),t(Jg.encode(n))})}const NS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ac=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,a,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(a&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},Dj=typeof ArrayBuffer=="function",wy=(e,t)=>{if(typeof e!="string")return{type:"message",data:PR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Pj(e.substring(1),t)}:wp[n]?e.length>1?{type:wp[n],data:e.substring(1)}:{type:wp[n]}:A1},Pj=(e,t)=>{if(Dj){const n=Tj(e);return PR(n,t)}else return{base64:!0,data:e}},PR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},OR="",Oj=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,a)=>{xy(i,!1,u=>{r[a]=u,++o===n&&t(r.join(OR))})})},Lj=(e,t)=>{const n=e.split(OR),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let ev;function qd(e){return e.reduce((t,n)=>t+n.length,0)}function Gd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){u.enqueue(A1);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if(qd(n)e){u.enqueue(A1);break}}}})}const LR=4;function Bn(e){if(e)return Bj(e)}function Bj(e){for(var t in Bn.prototype)e[t]=Bn.prototype[t];return e}Bn.prototype.on=Bn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Bn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Bn.prototype.off=Bn.prototype.removeListener=Bn.prototype.removeAllListeners=Bn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Ij=Eo.setTimeout,$j=Eo.clearTimeout;function s0(e,t){t.useNativeTimers?(e.setTimeoutFn=Ij.bind(Eo),e.clearTimeoutFn=$j.bind(Eo)):(e.setTimeoutFn=Eo.setTimeout.bind(Eo),e.clearTimeoutFn=Eo.clearTimeout.bind(Eo))}const Fj=1.33;function Uj(e){return typeof e=="string"?zj(e):Math.ceil((e.byteLength||e.size)*Fj)}function zj(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function jj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Vj(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function BR(){const e=IS(+new Date);return e!==BS?(MS=0,BS=e):e+"."+IS(MS++)}for(;Kd{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Lj(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Oj(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BR()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Nl(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Nl=class bp extends Bn{constructor(t,n){super(),s0(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=NR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $R(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=bp.requestsCount++,bp.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Gj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete bp.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Nl.requestsCount=0;Nl.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",$S);else if(typeof addEventListener=="function"){const e="onpagehide"in Eo?"pagehide":"unload";addEventListener(e,$S,!1)}}function $S(){for(let e in Nl.requests)Nl.requests.hasOwnProperty(e)&&Nl.requests[e].abort()}const _y=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Yd=Eo.WebSocket||Eo.MozWebSocket,FS=!0,Xj="arraybuffer",US=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Zj extends by{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=US?{}:NR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=FS&&!US?n?new Yd(t,n):new Yd(t):new Yd(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{FS&&this.ws.send(i)}catch{}o&&_y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BR()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Yd}}class Qj extends by{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Mj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Nj();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:u,value:c})=>{u||(this.onPacket(c),i())}).catch(u=>{})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&_y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const Jj={websocket:Zj,webtransport:Qj,polling:Yj},eV=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tV=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function k1(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=eV.exec(e||""),i={},a=14;for(;a--;)i[tV[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=nV(i,i.path),i.queryKey=rV(i,i.query),i}function nV(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function rV(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let FR=class sl extends Bn{constructor(t,n={}){super(),this.binaryType=Xj,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=k1(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=k1(n.host).host),s0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Vj(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=LR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new Jj[t](r)}open(){let t;if(this.opts.rememberUpgrade&&sl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;sl.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;sl.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const a=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",a),n.once("close",u),this.once("close",c),this.once("upgrading",f),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",sl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){sl.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,UR=Object.prototype.toString,aV=typeof Blob=="function"||typeof Blob<"u"&&UR.call(Blob)==="[object BlobConstructor]",lV=typeof File=="function"||typeof File<"u"&&UR.call(File)==="[object FileConstructor]";function Sy(e){return iV&&(e instanceof ArrayBuffer||sV(e))||aV&&e instanceof Blob||lV&&e instanceof File}function _p(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let u=0;u{this.io.clearTimeoutFn(i),n.apply(this,u)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(a,u)=>a?o(a):r(u);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:mt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case mt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case mt.EVENT:case mt.BINARY_EVENT:this.onevent(t);break;case mt.ACK:case mt.BINARY_ACK:this.onack(t);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:mt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:mt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}cu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};cu.prototype.reset=function(){this.attempts=0};cu.prototype.setMin=function(e){this.ms=e};cu.prototype.setMax=function(e){this.max=e};cu.prototype.setJitter=function(e){this.jitter=e};class P1 extends Bn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,s0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new cu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||mV;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new FR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Go(n,"open",function(){r.onopen(),t&&t()}),i=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},a=Go(n,"error",i);if(this._timeout!==!1){const u=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Go(t,"ping",this.onping.bind(this)),Go(t,"data",this.ondata.bind(this)),Go(t,"error",this.onerror.bind(this)),Go(t,"close",this.onclose.bind(this)),Go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){_y(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new zR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Gu={};function Sp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=oV(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=Gu[o]&&i in Gu[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return u?c=new P1(r,t):(Gu[o]||(Gu[o]=new P1(r,t)),c=Gu[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Sp,{Manager:P1,Socket:zR,io:Sp,connect:Sp});var vV=e=>{let t={},n=new Date,r=new Date;r.setDate(n.getDate()-1);let o=new Date;o.setDate(n.getDate()-7);let i=new Date;return i.setDate(n.getDate()-30),e.forEach(a=>{let u=new Date(a.createdAt),c=u.toDateString()===n.toDateString(),f=u.toDateString()===r.toDateString(),p=u>=o,h=u>=i,m;c?m="Today":f?m="Yesterday":p?m="Previous 7 days":h?m="Previous 30 days":m=u.toLocaleString("default",{month:"long",year:"numeric"}).split(" ").slice(0,1).join(" "),t[m]||(t[m]=[]),t[m].push(a)}),t},jR=An({key:"ThreadIdToResume",default:void 0}),yV=An({key:"ChatProfile",default:void 0}),jS=An({key:"SessionId",default:o0()}),O1=_R({key:"SessionIdSelector",get:({get:e})=>e(jS),set:({set:e},t)=>e(jS,t instanceof Wz?o0():t)}),vf=An({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),Cy=An({key:"Actions",default:[]}),yf=An({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),VR=An({key:"TokenCount",default:0}),Ay=An({key:"Loading",default:!1}),Ry=An({key:"AskUser",default:void 0}),WR=An({key:"CallFn",default:void 0}),a0=An({key:"ChatSettings",default:[]}),HR=_R({key:"ChatSettingsValue/Default",get:({get:e})=>e(a0).reduce((t,n)=>(t[n.id]=n.initial,t),{})}),ky=An({key:"ChatSettingsValue",default:HR}),Ty=An({key:"DisplayElements",default:[]}),Dy=An({key:"TasklistElements",default:[]}),Py=An({key:"FirstUserInteraction",default:void 0}),xV=An({key:"AccessToken",default:void 0});An({key:"User",default:null});An({key:"ChainlitConfig",default:void 0});An({key:"ThreadHistory",default:{threads:void 0,currentThreadId:void 0,timeGroupedThreads:void 0,pageInfo:void 0},effects:[({setSelf:e,onSet:t})=>{t((n,r)=>{let o=n==null?void 0:n.timeGroupedThreads;n!=null&&n.threads&&!Oa.isEqual(n.threads,r==null?void 0:r.timeGroupedThreads)&&(o=vV(n.threads)),e({...n,timeGroupedThreads:o})})}]});var wV=An({key:"SideView",default:void 0}),Oy=An({key:"CurrentThreadId",default:void 0}),qR=()=>{let e=Sn(Ay),t=Sn(Ty),n=Sn(Dy),r=Sn(Cy),o=Sn(vf),i=Sn(Ry),a=Sn(WR),u=Sn(a0),c=Sn(ky),f=Sn(HR),p=(o==null?void 0:o.socket.connected)&&!(o!=null&&o.error),h=!p||e||(i==null?void 0:i.spec.type)==="file"||(i==null?void 0:i.spec.type)==="action";return{actions:r,askUser:i,callFn:a,chatSettingsDefaultValue:f,chatSettingsInputs:u,chatSettingsValue:c,connected:p,disabled:h,elements:t,error:o==null?void 0:o.error,loading:e,tasklists:n}},Sl=(e,t)=>{let n=["assistant_message","user_message"],r=[...n,"tool"],o=n.includes(t.type),i=r.includes(t.type),a=!t.parentId;if(a&&!i)return e;let u=a?void 0:Ly(e,t.parentId),c=(a||(u==null?void 0:u.type)!=="assistant_message")&&t.type==="tool";if(l0(e,t.id))return u0(e,t.id,t);if(c){let f=e.length>0?e[e.length-1]:void 0,p=(f==null?void 0:f.type)==="assistant_message"&&(f==null?void 0:f.id.startsWith("wrap_"));return f&&p?[...e.slice(0,e.length-1),{...f,steps:[...f.steps||[],t]}]:[...e,{...t,name:"",input:"",output:"",id:"wrap_"+t.id,type:"assistant_message",steps:[t]}]}else return!o&&"parentId"in t&&t.parentId?KR(e,t.parentId,t):"indent"in t&&t.indent&&t.indent>0?GR(e,t.indent,t):[...e,t]},GR=(e,t,n,r=0)=>{let o=[...e];if(o.length===0)return[...o,n];{let i=o.length-1,a=o[i];return a.steps=a.steps||[],r+1===t?(a.steps=[...a.steps,n],o[i]={...a},o):(a.steps=GR(a.steps,t,n,r+1),o[i]={...a},o)}},KR=(e,t,n)=>{let r=[...e];for(let o=0;o{for(let n of e){if(Oa.isEqual(n.id,t))return n;if(n.steps&&n.steps.length>0){let r=Ly(n.steps,t);if(r)return r}}},l0=(e,t)=>Ly(e,t)!==void 0,u0=(e,t,n)=>{let r=[...e];for(let o=0;o{let n=[...e];for(let r=0;r{let i=[...e];for(let a=0;a{let c=new FormData;c.append("file",e),o.open("POST",this.buildEndpoint(`/project/file?session_id=${n}`),!0),r&&o.setRequestHeader("Authorization",this.checkToken(r)),o.upload.onprogress=function(f){if(f.lengthComputable){let p=f.loaded/f.total*100;t(p)}},o.onload=function(){if(o.status===200){let f=JSON.parse(o.responseText);a(f)}else u("Upload failed")},o.onerror=function(){u("Upload error")},o.send(c)});return{xhr:o,promise:i}}getElementUrl(e,t){let n=`?session_id=${t}`;return this.buildEndpoint(`/project/file/${e}${n}`)}getLogoEndpoint(e){return this.buildEndpoint(`/logo?theme=${e}`)}getOAuthEndpoint(e){return this.buildEndpoint(`/auth/oauth/${e}`)}},xf=D.createContext(new ZR("http://localhost:8000","webapp")),QR=()=>{let e=D.useContext(xf),t=Sn(xV),n=Sn(vf),r=Sn(Ry),o=Sn(O1),i=xp(a0),a=xp(O1),u=xp(ky),c=on(Py),f=on(Ay),p=on(yf),h=on(Ty),m=on(Dy),w=on(Cy),v=on(VR),y=on(jR),A=on(wV),b=on(Oy),x=D.useCallback(()=>{n==null||n.socket.emit("clear_session"),n==null||n.socket.disconnect(),y(void 0),a(),c(void 0),p([]),h([]),m([]),w([]),v(0),i(),u(),A(void 0),b(void 0)},[n]),S=D.useCallback((I,X=[])=>{I.id||(I.id=o0()),I.createdAt||(I.createdAt=new Date().toISOString()),p(se=>Sl(se,I)),n==null||n.socket.emit("client_message",{message:I,fileReferences:X})},[n==null?void 0:n.socket]),k=D.useCallback((I,X,se,q)=>{n==null||n.socket.emit("audio_chunk",{isStart:I,mimeType:X,elapsedTime:se,data:q})},[n==null?void 0:n.socket]),P=D.useCallback(I=>{n==null||n.socket.emit("audio_end",{fileReferences:I})},[n==null?void 0:n.socket]),E=D.useCallback(I=>{r&&(p(X=>Sl(X,I)),r.callback(I))},[r]),L=D.useCallback(I=>{n==null||n.socket.emit("chat_settings_change",I)},[n==null?void 0:n.socket]),$=D.useCallback(()=>{p(I=>I.map(X=>(X.streaming=!1,X))),f(!1),n==null||n.socket.emit("stop")},[n==null?void 0:n.socket]),H=D.useCallback(I=>{let X=n==null?void 0:n.socket;if(!X)return;let se=new Promise((q,G)=>{X.once("action_response",Q=>{Q.status?q(Q):G(Q)})});return X.emit("action_call",I),se},[n==null?void 0:n.socket]);return{uploadFile:D.useCallback((I,X)=>e.uploadFile(I,X,o,t),[o,t]),callAction:H,clear:x,replyMessage:E,sendMessage:S,sendAudioChunk:k,endAudioStream:P,stopTask:$,setIdToResume:y,updateChatSettings:L}},EV=()=>{let e=Sn(yf),t=Sn(Py);return{threadId:Sn(Oy),messages:e,firstInteraction:t}},CV=()=>{let e=D.useContext(xf),t=Sn(O1),[n,r]=AS(vf),o=xp(ky),i=on(Py),a=on(Ay),u=on(yf),c=on(Ry),f=on(WR),p=on(Ty),h=on(Dy),m=on(Cy),w=on(a0),v=on(VR),[y,A]=AS(yV),b=Sn(jR),x=on(Oy),S=D.useCallback(({userEnv:E,accessToken:L})=>{let{protocol:$,host:H,pathname:I}=new URL(e.httpEndpoint),X=`${$}//${H}`,se=I&&I!=="/"?`${I}/ws/socket.io`:"/ws/socket.io",q=Sp(X,{path:se,extraHeaders:{Authorization:L||"","X-Chainlit-Client-Type":e.type,"X-Chainlit-Session-Id":t,"X-Chainlit-Thread-Id":b||"","user-env":JSON.stringify(E),"X-Chainlit-Chat-Profile":y?encodeURIComponent(y):""}});r(G=>{var Q,le;return(Q=G==null?void 0:G.socket)==null||Q.removeAllListeners(),(le=G==null?void 0:G.socket)==null||le.close(),{socket:q}}),q.on("connect",()=>{q.emit("connection_successful"),r(G=>({...G,error:!1}))}),q.on("connect_error",G=>{r(Q=>({...Q,error:!0}))}),q.on("task_start",()=>{a(!0)}),q.on("task_end",()=>{a(!1)}),q.on("reload",()=>{q.emit("clear_session"),window.location.reload()}),q.on("resume_thread",G=>{var pe,J;let Q=[];for(let de of G.steps)Q=Sl(Q,de);(pe=G.metadata)!=null&&pe.chat_profile&&A((J=G.metadata)==null?void 0:J.chat_profile),u(Q);let le=G.elements||[];h(le.filter(de=>de.type==="tasklist")),p(le.filter(de=>["avatar","tasklist"].indexOf(de.type)===-1))}),q.on("new_message",G=>{u(Q=>Sl(Q,G))}),q.on("first_interaction",G=>{i(G.interaction),x(G.thread_id)}),q.on("update_message",G=>{u(Q=>u0(Q,G.id,G))}),q.on("delete_message",G=>{u(Q=>YR(Q,G.id))}),q.on("stream_start",G=>{u(Q=>Sl(Q,G))}),q.on("stream_token",({id:G,token:Q,isSequence:le,isInput:pe})=>{u(J=>XR(J,G,Q,le,pe))}),q.on("ask",({msg:G,spec:Q},le)=>{c({spec:Q,callback:le}),u(pe=>Sl(pe,G)),a(!1)}),q.on("ask_timeout",()=>{c(void 0),a(!1)}),q.on("clear_ask",()=>{c(void 0)}),q.on("call_fn",({name:G,args:Q},le)=>{f({name:G,args:Q,callback:le})}),q.on("clear_call_fn",()=>{f(void 0)}),q.on("call_fn_timeout",()=>{f(void 0)}),q.on("chat_settings",G=>{w(G),o()}),q.on("element",G=>{!G.url&&G.chainlitKey&&(G.url=e.getElementUrl(G.chainlitKey,t)),G.type==="tasklist"?h(Q=>{let le=Q.findIndex(pe=>pe.id===G.id);return le===-1?[...Q,G]:[...Q.slice(0,le),G,...Q.slice(le+1)]}):p(Q=>{let le=Q.findIndex(pe=>pe.id===G.id);return le===-1?[...Q,G]:[...Q.slice(0,le),G,...Q.slice(le+1)]})}),q.on("remove_element",G=>{p(Q=>Q.filter(le=>le.id!==G.id)),h(Q=>Q.filter(le=>le.id!==G.id))}),q.on("action",G=>{m(Q=>[...Q,G])}),q.on("remove_action",G=>{m(Q=>{let le=Q.findIndex(pe=>pe.id===G.id);return le===-1?Q:[...Q.slice(0,le),...Q.slice(le+1)]})}),q.on("token_usage",G=>{v(Q=>Q+G)})},[r,t,y]),k=D.useCallback(Oa.debounce(S,200),[S]),P=D.useCallback(()=>{n!=null&&n.socket&&(n.socket.removeAllListeners(),n.socket.close())},[n]);return{connect:k,disconnect:P,session:n,sessionId:t,chatProfile:y,idToResume:b,setChatProfile:A}};function JR(e,t){return function(){return e.apply(t,arguments)}}const{toString:AV}=Object.prototype,{getPrototypeOf:Ny}=Object,c0=(e=>t=>{const n=AV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>c0(t)===e),f0=e=>t=>typeof t===e,{isArray:fu}=Array,Hc=f0("undefined");function RV(e){return e!==null&&!Hc(e)&&e.constructor!==null&&!Hc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const e4=ti("ArrayBuffer");function kV(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e4(e.buffer),t}const TV=f0("string"),Qr=f0("function"),t4=f0("number"),d0=e=>e!==null&&typeof e=="object",DV=e=>e===!0||e===!1,Ep=e=>{if(c0(e)!=="object")return!1;const t=Ny(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},PV=ti("Date"),OV=ti("File"),LV=ti("Blob"),NV=ti("FileList"),MV=e=>d0(e)&&Qr(e.pipe),BV=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=c0(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},IV=ti("URLSearchParams"),[$V,FV,UV,zV]=["ReadableStream","Request","Response","Headers"].map(ti),jV=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),fu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const la=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,r4=e=>!Hc(e)&&e!==la;function L1(){const{caseless:e}=r4(this)&&this||{},t={},n=(r,o)=>{const i=e&&n4(t,o)||o;Ep(t[i])&&Ep(r)?t[i]=L1(t[i],r):Ep(r)?t[i]=L1({},r):fu(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(wf(t,(o,i)=>{n&&Qr(o)?e[i]=JR(o,n):e[i]=o},{allOwnKeys:r}),e),WV=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),HV=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qV=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Ny(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},GV=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},KV=e=>{if(!e)return null;if(fu(e))return e;let t=e.length;if(!t4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},YV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ny(Uint8Array)),XV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ZV=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},QV=ti("HTMLFormElement"),JV=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),WS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eW=ti("RegExp"),o4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wf(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},tW=e=>{o4(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nW=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return fu(e)?r(e):r(String(e).split(t)),n},rW=()=>{},oW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,tv="abcdefghijklmnopqrstuvwxyz",HS="0123456789",i4={DIGIT:HS,ALPHA:tv,ALPHA_DIGIT:tv+tv.toUpperCase()+HS},iW=(e=16,t=i4.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sW(e){return!!(e&&Qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const aW=e=>{const t=new Array(10),n=(r,o)=>{if(d0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=fu(r)?[]:{};return wf(r,(a,u)=>{const c=n(a,o+1);!Hc(c)&&(i[u]=c)}),t[o]=void 0,i}}return r};return n(e,0)},lW=ti("AsyncFunction"),uW=e=>e&&(d0(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),s4=((e,t)=>e?setImmediate:t?((n,r)=>(la.addEventListener("message",({source:o,data:i})=>{o===la&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),la.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(la.postMessage)),cW=typeof queueMicrotask<"u"?queueMicrotask.bind(la):typeof process<"u"&&process.nextTick||s4,Z={isArray:fu,isArrayBuffer:e4,isBuffer:RV,isFormData:BV,isArrayBufferView:kV,isString:TV,isNumber:t4,isBoolean:DV,isObject:d0,isPlainObject:Ep,isReadableStream:$V,isRequest:FV,isResponse:UV,isHeaders:zV,isUndefined:Hc,isDate:PV,isFile:OV,isBlob:LV,isRegExp:eW,isFunction:Qr,isStream:MV,isURLSearchParams:IV,isTypedArray:YV,isFileList:NV,forEach:wf,merge:L1,extend:VV,trim:jV,stripBOM:WV,inherits:HV,toFlatObject:qV,kindOf:c0,kindOfTest:ti,endsWith:GV,toArray:KV,forEachEntry:XV,matchAll:ZV,isHTMLForm:QV,hasOwnProperty:WS,hasOwnProp:WS,reduceDescriptors:o4,freezeMethods:tW,toObjectSet:nW,toCamelCase:JV,noop:rW,toFiniteNumber:oW,findKey:n4,global:la,isContextDefined:r4,ALPHABET:i4,generateString:iW,isSpecCompliantForm:sW,toJSONObject:aW,isAsyncFn:lW,isThenable:uW,setImmediate:s4,asap:cW};function Je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const a4=Je.prototype,l4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{l4[e]={value:e}});Object.defineProperties(Je,l4);Object.defineProperty(a4,"isAxiosError",{value:!0});Je.from=(e,t,n,r,o,i)=>{const a=Object.create(a4);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const fW=null;function N1(e){return Z.isPlainObject(e)||Z.isArray(e)}function u4(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function qS(e,t,n){return e?e.concat(t).map(function(o,i){return o=u4(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function dW(e){return Z.isArray(e)&&!e.some(N1)}const pW=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function p0(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,A){return!Z.isUndefined(A[y])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(Z.isDate(v))return v.toISOString();if(!c&&Z.isBlob(v))throw new Je("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(v)||Z.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,y,A){let b=v;if(v&&!A&&typeof v=="object"){if(Z.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(Z.isArray(v)&&dW(v)||(Z.isFileList(v)||Z.endsWith(y,"[]"))&&(b=Z.toArray(v)))return y=u4(y),b.forEach(function(S,k){!(Z.isUndefined(S)||S===null)&&t.append(a===!0?qS([y],k,i):a===null?y:y+"[]",f(S))}),!1}return N1(v)?!0:(t.append(qS(A,y,i),f(v)),!1)}const h=[],m=Object.assign(pW,{defaultVisitor:p,convertValue:f,isVisitable:N1});function w(v,y){if(!Z.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(v),Z.forEach(v,function(b,x){(!(Z.isUndefined(b)||b===null)&&o.call(t,b,Z.isString(x)?x.trim():x,y,m))===!0&&w(b,y?y.concat(x):[x])}),h.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return w(e),t}function GS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function My(e,t){this._pairs=[],e&&p0(e,this,t)}const c4=My.prototype;c4.append=function(t,n){this._pairs.push([t,n])};c4.toString=function(t){const n=t?function(r){return t.call(this,r,GS)}:GS;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function hW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f4(e,t,n){if(!t)return e;const r=n&&n.encode||hW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Z.isURLSearchParams(t)?t.toString():new My(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class KS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const d4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mW=typeof URLSearchParams<"u"?URLSearchParams:My,gW=typeof FormData<"u"?FormData:null,vW=typeof Blob<"u"?Blob:null,yW={isBrowser:!0,classes:{URLSearchParams:mW,FormData:gW,Blob:vW},protocols:["http","https","file","blob","url","data"]},By=typeof window<"u"&&typeof document<"u",M1=typeof navigator=="object"&&navigator||void 0,xW=By&&(!M1||["ReactNative","NativeScript","NS"].indexOf(M1.product)<0),wW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bW=By&&window.location.href||"http://localhost",_W=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:By,hasStandardBrowserEnv:xW,hasStandardBrowserWebWorkerEnv:wW,navigator:M1,origin:bW},Symbol.toStringTag,{value:"Module"})),Nr={..._W,...yW};function SW(e,t){return p0(e,new Nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Nr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function EW(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CW(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Z.isArray(o[a])&&(o[a]=CW(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(EW(r),o,n,0)}),n}return null}function AW(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bf={transitional:d4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(p4(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return SW(t,this.formSerializer).toString();if((u=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return p0(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),AW(t)):t}],transformResponse:[function(t){const n=this.transitional||bf.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Je.from(u,Je.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{bf.headers[e]={}});const RW=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kW=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&RW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},YS=Symbol("internals");function Ku(e){return e&&String(e).trim().toLowerCase()}function Cp(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Cp):String(e)}function TW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nv(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function PW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function OW(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Mr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,c,f){const p=Ku(c);if(!p)throw new Error("header name must be a non-empty string");const h=Z.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=Cp(u))}const a=(u,c)=>Z.forEach(u,(f,p)=>i(f,p,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Z.isString(t)&&(t=t.trim())&&!DW(t))a(kW(t),n);else if(Z.isHeaders(t))for(const[u,c]of t.entries())i(c,u,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ku(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return TW(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ku(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Ku(a),a){const u=Z.findKey(r,a);u&&(!n||nv(r,r[u],u,n))&&(delete r[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||nv(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(r,i);if(a){n[a]=Cp(o),delete n[i];return}const u=t?PW(i):String(i).trim();u!==i&&delete n[i],n[u]=Cp(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[YS]=this[YS]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Ku(a);r[u]||(OW(o,a),r[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Mr);function rv(e,t){const n=this||bf,r=t||n,o=Mr.from(r.headers);let i=r.data;return Z.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function h4(e){return!!(e&&e.__CANCEL__)}function du(e,t,n){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(du,Je,{__CANCEL__:!0});function m4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function LW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[i];a||(a=f),n[o]=c,r[o]=f;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),h=p-n;h>=r?a(f,p):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const fh=(e,t,n=3)=>{let r=0;const o=NW(50,250);return MW(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-r,f=o(c),p=a<=u;r=a;const h={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},XS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ZS=e=>(...t)=>Z.asap(()=>e(...t)),BW=Nr.hasStandardBrowserEnv?function(){const t=Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const u=Z.isString(a)?o(a):a;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),IW=Nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&a.push("path="+r),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $W(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function FW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function g4(e,t){return e&&!$W(t)?FW(e,t):t}const QS=e=>e instanceof Mr?{...e}:e;function Ca(e,t){t=t||{};const n={};function r(f,p,h){return Z.isPlainObject(f)&&Z.isPlainObject(p)?Z.merge.call({caseless:h},f,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}function o(f,p,h){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function i(f,p){if(!Z.isUndefined(p))return r(void 0,p)}function a(f,p){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,p)=>o(QS(f),QS(p),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,m=h(e[p],t[p],p);Z.isUndefined(m)&&h!==u||(n[p]=m)}),n}const v4=e=>{const t=Ca({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=Mr.from(a),t.url=f4(g4(t.baseURL,t.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(n)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Nr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&BW(t.url))){const f=o&&i&&IW.read(i);f&&a.set(o,f)}return t},UW=typeof XMLHttpRequest<"u",zW=UW&&function(e){return new Promise(function(n,r){const o=v4(e);let i=o.data;const a=Mr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,h,m,w,v;function y(){w&&w(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function b(){if(!A)return;const S=Mr.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),P={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};m4(function(L){n(L),y()},function(L){r(L),y()},P),A=null}"onloadend"in A?A.onloadend=b:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(b)},A.onabort=function(){A&&(r(new Je("Request aborted",Je.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Je("Network Error",Je.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||d4;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new Je(k,P.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(k,P){A.setRequestHeader(P,k)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),f&&([m,v]=fh(f,!0),A.addEventListener("progress",m)),c&&A.upload&&([h,w]=fh(c),A.upload.addEventListener("progress",h),A.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=S=>{A&&(r(!S||S.type?new du(null,e,A):S),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const x=LW(o.url);if(x&&Nr.protocols.indexOf(x)===-1){r(new Je("Unsupported protocol "+x+":",Je.ERR_BAD_REQUEST,e));return}A.send(i||null)})},jW=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof Je?p:new du(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Z.asap(u),c}},VW=function*(e,t){let n=e.byteLength;if(!t||n{const o=WW(e,t);let i=0,a,u=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let h=p.byteLength;if(n){let m=i+=h;n(m)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},h0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",y4=h0&&typeof ReadableStream=="function",qW=h0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),x4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},GW=y4&&x4(()=>{let e=!1;const t=new Request(Nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e3=64*1024,B1=y4&&x4(()=>Z.isReadableStream(new Response("").body)),dh={stream:B1&&(e=>e.body)};h0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!dh[t]&&(dh[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const KW=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(Nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await qW(e)).byteLength},YW=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??KW(t)},XW=h0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:m}=v4(e);f=f?(f+"").toLowerCase():"text";let w=jW([o,i&&i.toAbortSignal()],a),v;const y=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let A;try{if(c&&GW&&n!=="get"&&n!=="head"&&(A=await YW(p,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Z.isFormData(r)&&(E=P.headers.get("content-type"))&&p.setContentType(E),P.body){const[L,$]=XS(A,fh(ZS(c)));r=JS(P.body,e3,L,$)}}Z.isString(h)||(h=h?"include":"omit");const b="credentials"in Request.prototype;v=new Request(t,{...m,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:b?h:void 0});let x=await fetch(v);const S=B1&&(f==="stream"||f==="response");if(B1&&(u||S&&y)){const P={};["status","statusText","headers"].forEach(H=>{P[H]=x[H]});const E=Z.toFiniteNumber(x.headers.get("content-length")),[L,$]=u&&XS(E,fh(ZS(u),!0))||[];x=new Response(JS(x.body,e3,L,()=>{$&&$(),y&&y()}),P)}f=f||"text";let k=await dh[Z.findKey(dh,f)||"text"](x,e);return!S&&y&&y(),await new Promise((P,E)=>{m4(P,E,{data:k,headers:Mr.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:v})})}catch(b){throw y&&y(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,v),{cause:b.cause||b}):Je.from(b,b&&b.code,e,v)}}),I1={http:fW,xhr:zW,fetch:XW};Z.forEach(I1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const t3=e=>`- ${e}`,ZW=e=>Z.isFunction(e)||e===null||e===!1,w4={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(t3).join(` +`):" "+t3(i[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:I1};function ov(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new du(null,e)}function n3(e){return ov(e),e.headers=Mr.from(e.headers),e.data=rv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),w4.getAdapter(e.adapter||bf.adapter)(e).then(function(r){return ov(e),r.data=rv.call(e,e.transformResponse,r),r.headers=Mr.from(r.headers),r},function(r){return h4(r)||(ov(e),r&&r.response&&(r.response.data=rv.call(e,e.transformResponse,r.response),r.response.headers=Mr.from(r.response.headers))),Promise.reject(r)})}const b4="1.7.7",Iy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Iy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const r3={};Iy.transitional=function(t,n,r){function o(i,a){return"[Axios v"+b4+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,u)=>{if(t===!1)throw new Je(o(a," has been removed"+(n?" in "+n:"")),Je.ERR_DEPRECATED);return n&&!r3[a]&&(r3[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,u):!0}};function QW(e,t,n){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new Je("option "+i+" must be "+c,Je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}}const $1={assertOptions:QW,validators:Iy},os=$1.validators;class ha{constructor(t){this.defaults=t,this.interceptors={request:new KS,response:new KS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ca(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&$1.assertOptions(r,{silentJSONParsing:os.transitional(os.boolean),forcedJSONParsing:os.transitional(os.boolean),clarifyTimeoutError:os.transitional(os.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:$1.assertOptions(o,{encode:os.function,serialize:os.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Mr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let p,h=0,m;if(!c){const v=[n3.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,f),m=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new du(i,a,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $y(function(o){t=o}),cancel:t}}}function JW(e){return function(n){return e.apply(null,n)}}function eH(e){return Z.isObject(e)&&e.isAxiosError===!0}const F1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(F1).forEach(([e,t])=>{F1[t]=e});function _4(e){const t=new ha(e),n=JR(ha.prototype.request,t);return Z.extend(n,ha.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _4(Ca(e,o))},n}const Cn=_4(bf);Cn.Axios=ha;Cn.CanceledError=du;Cn.CancelToken=$y;Cn.isCancel=h4;Cn.VERSION=b4;Cn.toFormData=p0;Cn.AxiosError=Je;Cn.Cancel=Cn.CanceledError;Cn.all=function(t){return Promise.all(t)};Cn.spread=JW;Cn.isAxiosError=eH;Cn.mergeConfig=Ca;Cn.AxiosHeaders=Mr;Cn.formToJSON=e=>p4(Z.isHTMLForm(e)?new FormData(e):e);Cn.getAdapter=w4.getAdapter;Cn.HttpStatusCode=F1;Cn.default=Cn;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. @@ -87,9 +87,9 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Zl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iq(){return Math.random().toString(36).substr(2,8)}function s3(e,t){return{usr:e.state,key:e.key,idx:t}}function Hc(e,t,n,r){return n===void 0&&(n=null),sn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bs(t):t,{state:n,key:t&&t.key||r||iq()})}function _f(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 sq(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Ln.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(sn({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function h(){u=Ln.Pop;let A=p(),b=A==null?null:A-f;f=A,c&&c({action:u,location:y.location,delta:b})}function m(A,b){u=Ln.Push;let x=Hc(y.location,A,b);f=p()+1;let S=s3(x,f),k=y.createHref(x);try{a.pushState(S,"",k)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(k)}i&&c&&c({action:u,location:y.location,delta:1})}function w(A,b){u=Ln.Replace;let x=Hc(y.location,A,b);f=p();let S=s3(x,f),k=y.createHref(x);a.replaceState(S,"",k),i&&c&&c({action:u,location:y.location,delta:0})}function v(A){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof A=="string"?A:_f(A);return x=x.replace(/ $/,"%20"),gt(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let y={get action(){return u},get location(){return e(o,a)},listen(A){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(i3,h),c=A,()=>{o.removeEventListener(i3,h),c=null}},createHref(A){return t(o,A)},createURL:v,encodeLocation(A){let b=v(A);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:m,replace:w,go(A){return a.go(A)}};return y}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const aq=new Set(["lazy","caseSensitive","path","id","index","children"]);function lq(e){return e.index===!0}function Gc(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(gt(o.index!==!0||!o.children,"Cannot specify children on an index route"),gt(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),lq(o)){let c=sn({},o,t(o),{id:u});return r[u]=c,c}else{let c=sn({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=Gc(o.children,t,a,r)),c}})}function oa(e,t,n){return n===void 0&&(n="/"),Ap(e,t,n,!1)}function Ap(e,t,n,r){let o=typeof t=="string"?Bs(t):t,i=Sf(o.pathname||"/",n);if(i==null)return null;let a=C4(e);cq(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("/")&&(gt(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=ma([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(gt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),C4(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:vq(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 A4(i.path))o(i,a,c)}),t}function A4(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=A4(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 cq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fq=/^:[\w-]+$/,dq=3,pq=2,hq=1,mq=10,gq=-2,a3=e=>e==="*";function vq(e,t){let n=e.split("/"),r=n.length;return n.some(a3)&&(r+=gq),t&&(r+=pq),n.filter(o=>!a3(o)).reduce((o,i)=>o+(fq.test(i)?dq:i===""?hq:mq),r)}function yq(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 xq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:w}=p;if(m==="*"){let y=u[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[h];return w&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function wq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Zl(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 bq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zl(!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 Sf(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 _q(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:Sq(n,t):t,search:Rq(r),hash:kq(o)}}function Sq(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 iv(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 R4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eq(e,t){let n=R4(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cq(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Bs(e):(o=sn({},e),gt(!o.pathname||!o.pathname.includes("?"),iv("?","pathname","search",o)),gt(!o.pathname||!o.pathname.includes("#"),iv("#","pathname","hash",o)),gt(!o.search||!o.search.includes("#"),iv("#","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=_q(o,u),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const ma=e=>e.join("/").replace(/\/\/+/g,"/"),Aq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Rq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Uy{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 m0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const k4=["post","put","patch","delete"],Tq=new Set(k4),Dq=["get",...k4],Pq=new Set(Dq),Oq=new Set([301,302,303,307,308]),Lq=new Set([307,308]),sv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Mq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},zy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nq=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),T4="remix-router-transitions";function Bq(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;gt(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 M=e.detectErrorBoundary;o=B=>({hasErrorBoundary:M(B)})}else o=Nq;let i={},a=Gc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||zq,p=e.unstable_patchRoutesOnMiss,h=sn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,w=new Set,v=null,y=null,A=null,b=e.hydrationData!=null,x=oa(a,e.history.location,c),S=null;if(x==null&&!p){let M=yr(404,{pathname:e.history.location.pathname}),{matches:B,route:K}=y3(a);x=B,S={[K.id]:M}}x&&p&&!e.hydrationData&&On(x,a,e.history.location.pathname).active&&(x=null);let k;if(!x)k=!1,x=[];else if(x.some(M=>M.route.lazy))k=!1;else if(!x.some(M=>M.route.loader))k=!0;else if(h.v7_partialHydration){let M=e.hydrationData?e.hydrationData.loaderData:null,B=e.hydrationData?e.hydrationData.errors:null,K=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:M&&M[ne.route.id]!==void 0||B&&B[ne.route.id]!==void 0:!0;if(B){let ne=x.findIndex(Se=>B[Se.route.id]!==void 0);k=x.slice(0,ne+1).every(K)}else k=x.every(K)}else k=e.hydrationData!=null;let P,E={historyAction:e.history.action,location:e.history.location,matches:x,initialized:k,navigation:sv,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=Ln.Pop,$=!1,q,I=!1,X=new Map,se=null,H=!1,G=!1,Q=[],le=[],pe=new Map,J=0,de=-1,re=new Map,he=new Set,U=new Map,ae=new Map,te=new Set,ye=new Map,ue=new Map,Me=new Map,Re=!1;function ve(){if(m=e.history.listen(M=>{let{action:B,location:K,delta:ne}=M;if(Re){Re=!1;return}Zl(ue.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 Se=Ae({currentLocation:E.location,nextLocation:K,historyAction:B});if(Se&&ne!=null){Re=!0,e.history.go(ne*-1),we(Se,{state:"blocked",location:K,proceed(){we(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:K}),e.history.go(ne)},reset(){let Oe=new Map(E.blockers);Oe.set(Se,Yu),_e({blockers:Oe})}});return}return yt(B,K)}),n){eH(t,X);let M=()=>tH(t,X);t.addEventListener("pagehide",M),se=()=>t.removeEventListener("pagehide",M)}return E.initialized||yt(Ln.Pop,E.location,{initialHydration:!0}),P}function Ce(){m&&m(),se&&se(),w.clear(),q&&q.abort(),E.fetchers.forEach((M,B)=>ir(B)),E.blockers.forEach((M,B)=>be(B))}function ge(M){return w.add(M),()=>w.delete(M)}function _e(M,B){B===void 0&&(B={}),E=sn({},E,M);let K=[],ne=[];h.v7_fetcherPersist&&E.fetchers.forEach((Se,Oe)=>{Se.state==="idle"&&(te.has(Oe)?ne.push(Oe):K.push(Oe))}),[...w].forEach(Se=>Se(E,{deletedFetchers:ne,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),h.v7_fetcherPersist&&(K.forEach(Se=>E.fetchers.delete(Se)),ne.forEach(Se=>ir(Se)))}function je(M,B,K){var ne,Se;let{flushSync:Oe}=K===void 0?{}:K,ze=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((ne=M.state)==null?void 0:ne._isRedirect)!==!0,xe;B.actionData?Object.keys(B.actionData).length>0?xe=B.actionData:xe=null:ze?xe=E.actionData:xe=null;let Ge=B.loaderData?g3(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,Ie=E.blockers;Ie.size>0&&(Ie=new Map(Ie),Ie.forEach((xt,kt)=>Ie.set(kt,Yu)));let Fe=$===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((Se=M.state)==null?void 0:Se._isRedirect)!==!0;u&&(a=u,u=void 0),H||L===Ln.Pop||(L===Ln.Push?e.history.push(M,M.state):L===Ln.Replace&&e.history.replace(M,M.state));let Ct;if(L===Ln.Pop){let xt=X.get(E.location.pathname);xt&&xt.has(M.pathname)?Ct={currentLocation:E.location,nextLocation:M}:X.has(M.pathname)&&(Ct={currentLocation:M,nextLocation:E.location})}else if(I){let xt=X.get(E.location.pathname);xt?xt.add(M.pathname):(xt=new Set([M.pathname]),X.set(E.location.pathname,xt)),Ct={currentLocation:E.location,nextLocation:M}}_e(sn({},B,{actionData:xe,loaderData:Ge,historyAction:L,location:M,initialized:!0,navigation:sv,revalidation:"idle",restoreScrollPosition:zt(M,B.matches||E.matches),preventScrollReset:Fe,blockers:Ie}),{viewTransitionOpts:Ct,flushSync:Oe===!0}),L=Ln.Pop,$=!1,I=!1,H=!1,G=!1,Q=[],le=[]}async function nt(M,B){if(typeof M=="number"){e.history.go(M);return}let K=z1(E.location,E.matches,c,h.v7_prependBasename,M,h.v7_relativeSplatPath,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:ne,submission:Se,error:Oe}=u3(h.v7_normalizeFormMethod,!1,K,B),ze=E.location,xe=Hc(E.location,ne,B&&B.state);xe=sn({},xe,e.history.encodeLocation(xe));let Ge=B&&B.replace!=null?B.replace:void 0,Ie=Ln.Push;Ge===!0?Ie=Ln.Replace:Ge===!1||Se!=null&&Ko(Se.formMethod)&&Se.formAction===E.location.pathname+E.location.search&&(Ie=Ln.Replace);let Fe=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Ct=(B&&B.unstable_flushSync)===!0,xt=Ae({currentLocation:ze,nextLocation:xe,historyAction:Ie});if(xt){we(xt,{state:"blocked",location:xe,proceed(){we(xt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),nt(M,B)},reset(){let kt=new Map(E.blockers);kt.set(xt,Yu),_e({blockers:kt})}});return}return await yt(Ie,xe,{submission:Se,pendingError:Oe,preventScrollReset:Fe,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:Ct})}function ut(){if(nn(),_e({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){yt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}yt(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function yt(M,B,K){q&&q.abort(),q=null,L=M,H=(K&&K.startUninterruptedRevalidation)===!0,Pn(E.location,E.matches),$=(K&&K.preventScrollReset)===!0,I=(K&&K.enableViewTransition)===!0;let ne=u||a,Se=K&&K.overrideNavigation,Oe=oa(ne,B,c),ze=(K&&K.flushSync)===!0,xe=On(Oe,ne,B.pathname);if(xe.active&&xe.matches&&(Oe=xe.matches),!Oe){let{error:ke,notFoundMatches:wt,route:hn}=Ue(B.pathname);je(B,{matches:wt,loaderData:{},errors:{[hn.id]:ke}},{flushSync:ze});return}if(E.initialized&&!G&&Gq(E.location,B)&&!(K&&K.submission&&Ko(K.submission.formMethod))){je(B,{matches:Oe},{flushSync:ze});return}q=new AbortController;let Ge=Qa(e.history,B,q.signal,K&&K.submission),Ie;if(K&&K.pendingError)Ie=[El(Oe).route.id,{type:Wt.error,error:K.pendingError}];else if(K&&K.submission&&Ko(K.submission.formMethod)){let ke=await rt(Ge,B,K.submission,Oe,xe.active,{replace:K.replace,flushSync:ze});if(ke.shortCircuited)return;if(ke.pendingActionResult){let[wt,hn]=ke.pendingActionResult;if(Kr(hn)&&m0(hn.error)&&hn.error.status===404){q=null,je(B,{matches:ke.matches,loaderData:{},errors:{[wt]:hn.error}});return}}Oe=ke.matches||Oe,Ie=ke.pendingActionResult,Se=av(B,K.submission),ze=!1,xe.active=!1,Ge=Qa(e.history,Ge.url,Ge.signal)}let{shortCircuited:Fe,matches:Ct,loaderData:xt,errors:kt}=await cn(Ge,B,Oe,xe.active,Se,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,ze,Ie);Fe||(q=null,je(B,sn({matches:Ct||Oe},v3(Ie),{loaderData:xt,errors:kt})))}async function rt(M,B,K,ne,Se,Oe){Oe===void 0&&(Oe={}),nn();let ze=Qq(B,K);if(_e({navigation:ze},{flushSync:Oe.flushSync===!0}),Se){let Ie=await pn(ne,B.pathname,M.signal);if(Ie.type==="aborted")return{shortCircuited:!0};if(Ie.type==="error"){let{boundaryId:Fe,error:Ct}=Be(B.pathname,Ie);return{matches:Ie.partialMatches,pendingActionResult:[Fe,{type:Wt.error,error:Ct}]}}else if(Ie.matches)ne=Ie.matches;else{let{notFoundMatches:Fe,error:Ct,route:xt}=Ue(B.pathname);return{matches:Fe,pendingActionResult:[xt.id,{type:Wt.error,error:Ct}]}}}let xe,Ge=lc(ne,B);if(!Ge.route.action&&!Ge.route.lazy)xe={type:Wt.error,error:yr(405,{method:M.method,pathname:B.pathname,routeId:Ge.route.id})};else if(xe=(await Rt("action",M,[Ge],ne))[0],M.signal.aborted)return{shortCircuited:!0};if(ca(xe)){let Ie;return Oe&&Oe.replace!=null?Ie=Oe.replace:Ie=p3(xe.response.headers.get("Location"),new URL(M.url),c)===E.location.pathname+E.location.search,await Ut(M,xe,{submission:K,replace:Ie}),{shortCircuited:!0}}if(ua(xe))throw yr(400,{type:"defer-action"});if(Kr(xe)){let Ie=El(ne,Ge.route.id);return(Oe&&Oe.replace)!==!0&&(L=Ln.Push),{matches:ne,pendingActionResult:[Ie.route.id,xe]}}return{matches:ne,pendingActionResult:[Ge.route.id,xe]}}async function cn(M,B,K,ne,Se,Oe,ze,xe,Ge,Ie,Fe){let Ct=Se||av(B,Oe),xt=Oe||ze||b3(Ct),kt=!H&&(!h.v7_partialHydration||!Ge);if(ne){if(kt){let Zt=Kn(Fe);_e(sn({navigation:Ct},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Ie})}let Qe=await pn(K,B.pathname,M.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let{boundaryId:Zt,error:hr}=Be(B.pathname,Qe);return{matches:Qe.partialMatches,loaderData:{},errors:{[Zt]:hr}}}else if(Qe.matches)K=Qe.matches;else{let{error:Zt,notFoundMatches:hr,route:jt}=Ue(B.pathname);return{matches:hr,loaderData:{},errors:{[jt.id]:Zt}}}}let ke=u||a,[wt,hn]=c3(e.history,E,K,xt,B,h.v7_partialHydration&&Ge===!0,h.v7_skipActionErrorRevalidation,G,Q,le,te,U,he,ke,c,Fe);if($e(Qe=>!(K&&K.some(Zt=>Zt.route.id===Qe))||wt&&wt.some(Zt=>Zt.route.id===Qe)),de=++J,wt.length===0&&hn.length===0){let Qe=W();return je(B,sn({matches:K,loaderData:{},errors:Fe&&Kr(Fe[1])?{[Fe[0]]:Fe[1].error}:null},v3(Fe),Qe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Ie}),{shortCircuited:!0}}if(kt){let Qe={};if(!ne){Qe.navigation=Ct;let Zt=Kn(Fe);Zt!==void 0&&(Qe.actionData=Zt)}hn.length>0&&(Qe.fetchers=dt(hn)),_e(Qe,{flushSync:Ie})}hn.forEach(Qe=>{pe.has(Qe.key)&&Dn(Qe.key),Qe.controller&&pe.set(Qe.key,Qe.controller)});let ni=()=>hn.forEach(Qe=>Dn(Qe.key));q&&q.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await Tn(E.matches,K,wt,hn,M);if(M.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",ni),hn.forEach(Qe=>pe.delete(Qe.key));let qi=x3([...ri,...$o]);if(qi){if(qi.idx>=wt.length){let Qe=hn[qi.idx-wt.length].key;he.add(Qe)}return await Ut(M,qi.result,{replace:xe}),{shortCircuited:!0}}let{loaderData:Hi,errors:ao}=m3(E,K,wt,ri,Fe,hn,$o,ye);ye.forEach((Qe,Zt)=>{Qe.subscribe(hr=>{(hr||Qe.done)&&ye.delete(Zt)})}),h.v7_partialHydration&&Ge&&E.errors&&Object.entries(E.errors).filter(Qe=>{let[Zt]=Qe;return!wt.some(hr=>hr.route.id===Zt)}).forEach(Qe=>{let[Zt,hr]=Qe;ao=Object.assign(ao||{},{[Zt]:hr})});let Fs=W(),Us=F(de),zs=Fs||Us||hn.length>0;return sn({matches:K,loaderData:Hi,errors:ao},zs?{fetchers:new Map(E.fetchers)}:{})}function Kn(M){if(M&&!Kr(M[1]))return{[M[0]]:M[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function dt(M){return M.forEach(B=>{let K=E.fetchers.get(B.key),ne=Xu(void 0,K?K.data:void 0);E.fetchers.set(B.key,ne)}),new Map(E.fetchers)}function at(M,B,K,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(M)&&Dn(M);let Se=(ne&&ne.unstable_flushSync)===!0,Oe=u||a,ze=z1(E.location,E.matches,c,h.v7_prependBasename,K,h.v7_relativeSplatPath,B,ne==null?void 0:ne.relative),xe=oa(Oe,ze,c),Ge=On(xe,Oe,ze);if(Ge.active&&Ge.matches&&(xe=Ge.matches),!xe){Le(M,B,yr(404,{pathname:ze}),{flushSync:Se});return}let{path:Ie,submission:Fe,error:Ct}=u3(h.v7_normalizeFormMethod,!0,ze,ne);if(Ct){Le(M,B,Ct,{flushSync:Se});return}let xt=lc(xe,Ie);if($=(ne&&ne.preventScrollReset)===!0,Fe&&Ko(Fe.formMethod)){fn(M,B,Ie,xt,xe,Ge.active,Se,Fe);return}U.set(M,{routeId:B,path:Ie}),dn(M,B,Ie,xt,xe,Ge.active,Se,Fe)}async function fn(M,B,K,ne,Se,Oe,ze,xe){nn(),U.delete(M);function Ge(jt){if(!jt.route.action&&!jt.route.lazy){let lo=yr(405,{method:xe.formMethod,pathname:K,routeId:B});return Le(M,B,lo,{flushSync:ze}),!0}return!1}if(!Oe&&Ge(ne))return;let Ie=E.fetchers.get(M);He(M,Jq(xe,Ie),{flushSync:ze});let Fe=new AbortController,Ct=Qa(e.history,K,Fe.signal,xe);if(Oe){let jt=await pn(Se,K,Ct.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Be(K,jt);Le(M,B,lo,{flushSync:ze});return}else if(jt.matches){if(Se=jt.matches,ne=lc(Se,K),Ge(ne))return}else{Le(M,B,yr(404,{pathname:K}),{flushSync:ze});return}}pe.set(M,Fe);let xt=J,ke=(await Rt("action",Ct,[ne],Se))[0];if(Ct.signal.aborted){pe.get(M)===Fe&&pe.delete(M);return}if(h.v7_fetcherPersist&&te.has(M)){if(ca(ke)||Kr(ke)){He(M,ss(void 0));return}}else{if(ca(ke))if(pe.delete(M),de>xt){He(M,ss(void 0));return}else return he.add(M),He(M,Xu(xe)),Ut(Ct,ke,{fetcherSubmission:xe});if(Kr(ke)){Le(M,B,ke.error);return}}if(ua(ke))throw yr(400,{type:"defer-action"});let wt=E.navigation.location||E.location,hn=Qa(e.history,wt,Fe.signal),ni=u||a,ri=E.navigation.state!=="idle"?oa(ni,E.navigation.location,c):E.matches;gt(ri,"Didn't find any matches after fetcher action");let $o=++J;re.set(M,$o);let qi=Xu(xe,ke.data);E.fetchers.set(M,qi);let[Hi,ao]=c3(e.history,E,ri,xe,wt,!1,h.v7_skipActionErrorRevalidation,G,Q,le,te,U,he,ni,c,[ne.route.id,ke]);ao.filter(jt=>jt.key!==M).forEach(jt=>{let lo=jt.key,yu=E.fetchers.get(lo),Mf=Xu(void 0,yu?yu.data:void 0);E.fetchers.set(lo,Mf),pe.has(lo)&&Dn(lo),jt.controller&&pe.set(lo,jt.controller)}),_e({fetchers:new Map(E.fetchers)});let Fs=()=>ao.forEach(jt=>Dn(jt.key));Fe.signal.addEventListener("abort",Fs);let{loaderResults:Us,fetcherResults:zs}=await Tn(E.matches,ri,Hi,ao,hn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Fs),re.delete(M),pe.delete(M),ao.forEach(jt=>pe.delete(jt.key));let Qe=x3([...Us,...zs]);if(Qe){if(Qe.idx>=Hi.length){let jt=ao[Qe.idx-Hi.length].key;he.add(jt)}return Ut(hn,Qe.result)}let{loaderData:Zt,errors:hr}=m3(E,E.matches,Hi,Us,void 0,ao,zs,ye);if(E.fetchers.has(M)){let jt=ss(ke.data);E.fetchers.set(M,jt)}F($o),E.navigation.state==="loading"&&$o>de?(gt(L,"Expected pending action"),q&&q.abort(),je(E.navigation.location,{matches:ri,loaderData:Zt,errors:hr,fetchers:new Map(E.fetchers)})):(_e({errors:hr,loaderData:g3(E.loaderData,Zt,ri,hr),fetchers:new Map(E.fetchers)}),G=!1)}async function dn(M,B,K,ne,Se,Oe,ze,xe){let Ge=E.fetchers.get(M);He(M,Xu(xe,Ge?Ge.data:void 0),{flushSync:ze});let Ie=new AbortController,Fe=Qa(e.history,K,Ie.signal);if(Oe){let ke=await pn(Se,K,Fe.signal);if(ke.type==="aborted")return;if(ke.type==="error"){let{error:wt}=Be(K,ke);Le(M,B,wt,{flushSync:ze});return}else if(ke.matches)Se=ke.matches,ne=lc(Se,K);else{Le(M,B,yr(404,{pathname:K}),{flushSync:ze});return}}pe.set(M,Ie);let Ct=J,kt=(await Rt("loader",Fe,[ne],Se))[0];if(ua(kt)&&(kt=await M4(kt,Fe.signal,!0)||kt),pe.get(M)===Ie&&pe.delete(M),!Fe.signal.aborted){if(te.has(M)){He(M,ss(void 0));return}if(ca(kt))if(de>Ct){He(M,ss(void 0));return}else{he.add(M),await Ut(Fe,kt);return}if(Kr(kt)){Le(M,B,kt.error);return}gt(!ua(kt),"Unhandled fetcher deferred data"),He(M,ss(kt.data))}}async function Ut(M,B,K){let{submission:ne,fetcherSubmission:Se,replace:Oe}=K===void 0?{}:K;B.response.headers.has("X-Remix-Revalidate")&&(G=!0);let ze=B.response.headers.get("Location");gt(ze,"Expected a Location header on the redirect Response"),ze=p3(ze,new URL(M.url),c);let xe=Hc(E.location,ze,{_isRedirect:!0});if(n){let kt=!1;if(B.response.headers.has("X-Remix-Reload-Document"))kt=!0;else if(zy.test(ze)){const ke=e.history.createURL(ze);kt=ke.origin!==t.location.origin||Sf(ke.pathname,c)==null}if(kt){Oe?t.location.replace(ze):t.location.assign(ze);return}}q=null;let Ge=Oe===!0?Ln.Replace:Ln.Push,{formMethod:Ie,formAction:Fe,formEncType:Ct}=E.navigation;!ne&&!Se&&Ie&&Fe&&Ct&&(ne=b3(E.navigation));let xt=ne||Se;if(Lq.has(B.response.status)&&xt&&Ko(xt.formMethod))await yt(Ge,xe,{submission:sn({},xt,{formAction:ze}),preventScrollReset:$});else{let kt=av(xe,ne);await yt(Ge,xe,{overrideNavigation:kt,fetcherSubmission:Se,preventScrollReset:$})}}async function Rt(M,B,K,ne){try{let Se=await jq(f,M,B,K,ne,i,o);return await Promise.all(Se.map((Oe,ze)=>{if(Yq(Oe)){let xe=Oe.result;return{type:Wt.redirect,response:qq(xe,B,K[ze].route.id,ne,c,h.v7_relativeSplatPath)}}return Wq(Oe)}))}catch(Se){return K.map(()=>({type:Wt.error,error:Se}))}}async function Tn(M,B,K,ne,Se){let[Oe,...ze]=await Promise.all([K.length?Rt("loader",Se,K,B):[],...ne.map(xe=>{if(xe.matches&&xe.match&&xe.controller){let Ge=Qa(e.history,xe.path,xe.controller.signal);return Rt("loader",Ge,[xe.match],xe.matches).then(Ie=>Ie[0])}else return Promise.resolve({type:Wt.error,error:yr(404,{pathname:xe.path})})})]);return await Promise.all([w3(M,K,Oe,Oe.map(()=>Se.signal),!1,E.loaderData),w3(M,ne.map(xe=>xe.match),ze,ne.map(xe=>xe.controller?xe.controller.signal:null),!0)]),{loaderResults:Oe,fetcherResults:ze}}function nn(){G=!0,Q.push(...$e()),U.forEach((M,B)=>{pe.has(B)&&(le.push(B),Dn(B))})}function He(M,B,K){K===void 0&&(K={}),E.fetchers.set(M,B),_e({fetchers:new Map(E.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Le(M,B,K,ne){ne===void 0&&(ne={});let Se=El(E.matches,B);ir(M),_e({errors:{[Se.route.id]:K},fetchers:new Map(E.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Xt(M){return h.v7_fetcherPersist&&(ae.set(M,(ae.get(M)||0)+1),te.has(M)&&te.delete(M)),E.fetchers.get(M)||Mq}function ir(M){let B=E.fetchers.get(M);pe.has(M)&&!(B&&B.state==="loading"&&re.has(M))&&Dn(M),U.delete(M),re.delete(M),he.delete(M),te.delete(M),E.fetchers.delete(M)}function Yn(M){if(h.v7_fetcherPersist){let B=(ae.get(M)||0)-1;B<=0?(ae.delete(M),te.add(M)):ae.set(M,B)}else ir(M);_e({fetchers:new Map(E.fetchers)})}function Dn(M){let B=pe.get(M);gt(B,"Expected fetch controller: "+M),B.abort(),pe.delete(M)}function Io(M){for(let B of M){let K=Xt(B),ne=ss(K.data);E.fetchers.set(B,ne)}}function W(){let M=[],B=!1;for(let K of he){let ne=E.fetchers.get(K);gt(ne,"Expected fetcher: "+K),ne.state==="loading"&&(he.delete(K),M.push(K),B=!0)}return Io(M),B}function F(M){let B=[];for(let[K,ne]of re)if(ne0}function ce(M,B){let K=E.blockers.get(M)||Yu;return ue.get(M)!==B&&ue.set(M,B),K}function be(M){E.blockers.delete(M),ue.delete(M)}function we(M,B){let K=E.blockers.get(M)||Yu;gt(K.state==="unblocked"&&B.state==="blocked"||K.state==="blocked"&&B.state==="blocked"||K.state==="blocked"&&B.state==="proceeding"||K.state==="blocked"&&B.state==="unblocked"||K.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+K.state+" -> "+B.state);let ne=new Map(E.blockers);ne.set(M,B),_e({blockers:ne})}function Ae(M){let{currentLocation:B,nextLocation:K,historyAction:ne}=M;if(ue.size===0)return;ue.size>1&&Zl(!1,"A router only supports one blocker at a time");let Se=Array.from(ue.entries()),[Oe,ze]=Se[Se.length-1],xe=E.blockers.get(Oe);if(!(xe&&xe.state==="proceeding")&&ze({currentLocation:B,nextLocation:K,historyAction:ne}))return Oe}function Ue(M){let B=yr(404,{pathname:M}),K=u||a,{matches:ne,route:Se}=y3(K);return $e(),{notFoundMatches:ne,route:Se,error:B}}function Be(M,B){return{boundaryId:El(B.partialMatches).route.id,error:yr(400,{type:"route-discovery",pathname:M,message:B.error!=null&&"message"in B.error?B.error:String(B.error)})}}function $e(M){let B=[];return ye.forEach((K,ne)=>{(!M||M(ne))&&(K.cancel(),B.push(ne),ye.delete(ne))}),B}function Ke(M,B,K){if(v=M,A=B,y=K||null,!b&&E.navigation===sv){b=!0;let ne=zt(E.location,E.matches);ne!=null&&_e({restoreScrollPosition:ne})}return()=>{v=null,A=null,y=null}}function Et(M,B){return y&&y(M,B.map(ne=>uq(ne,E.loaderData)))||M.key}function Pn(M,B){if(v&&A){let K=Et(M,B);v[K]=A()}}function zt(M,B){if(v){let K=Et(M,B),ne=v[K];if(typeof ne=="number")return ne}return null}function On(M,B,K){if(p)if(M){let ne=M[M.length-1].route;if(ne.path&&(ne.path==="*"||ne.path.endsWith("/*")))return{active:!0,matches:Ap(B,K,c,!0)}}else return{active:!0,matches:Ap(B,K,c,!0)||[]};return{active:!1,matches:null}}async function pn(M,B,K){let ne=M,Se=ne.length>0?ne[ne.length-1].route:null;for(;;){let Oe=u==null,ze=u||a;try{await Uq(p,B,ne,ze,i,o,Me,K)}catch(Fe){return{type:"error",error:Fe,partialMatches:ne}}finally{Oe&&(a=[...a])}if(K.aborted)return{type:"aborted"};let xe=oa(ze,B,c),Ge=!1;if(xe){let Fe=xe[xe.length-1].route;if(Fe.index)return{type:"success",matches:xe};if(Fe.path&&Fe.path.length>0)if(Fe.path==="*")Ge=!0;else return{type:"success",matches:xe}}let Ie=Ap(ze,B,c,!0);if(!Ie||ne.map(Fe=>Fe.route.id).join("-")===Ie.map(Fe=>Fe.route.id).join("-"))return{type:"success",matches:Ge?xe:null};if(ne=Ie,Se=ne[ne.length-1].route,Se.path==="*")return{type:"success",matches:ne}}}function so(M){i={},u=Gc(M,o,void 0,i)}function sr(M,B){let K=u==null;P4(M,B,u||a,i,o),K&&(a=[...a],_e({}))}return P={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:ve,subscribe:ge,enableScrollRestoration:Ke,navigate:nt,fetch:at,revalidate:ut,createHref:M=>e.history.createHref(M),encodeLocation:M=>e.history.encodeLocation(M),getFetcher:Xt,deleteFetcher:Yn,dispose:Ce,getBlocker:ce,deleteBlocker:be,patchRoutes:sr,_internalFetchControllers:pe,_internalActiveDeferreds:ye,_internalSetRoutes:so},P}function Iq(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function z1(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=Cq(o||".",Eq(c,i),Sf(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&&!jy(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:ma([n,p.pathname])),_f(p)}function u3(e,t,n,r){if(!r||!Iq(r))return{path:n};if(r.formMethod&&!Zq(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=O4(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((w,v)=>{let[y,A]=v;return""+w+y+"="+A+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ko(a))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}gt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=j1(r.formData),f=r.formData;else if(r.body instanceof FormData)c=j1(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=h3(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=h3(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&&jy(h.search)&&c.append("index",""),h.search="?"+c,{path:_f(h),submission:p}}function $q(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 c3(e,t,n,r,o,i,a,u,c,f,p,h,m,w,v,y){let A=y?Kr(y[1])?y[1].error:y[1].data:void 0,b=e.createURL(t.location),x=e.createURL(o),S=y&&Kr(y[1])?y[0]:void 0,k=S?$q(n,S):n,P=y?y[1].statusCode:void 0,E=a&&P&&P>=400,L=k.filter((q,I)=>{let{route:X}=q;if(X.lazy)return!0;if(X.loader==null)return!1;if(i)return typeof X.loader!="function"||X.loader.hydrate?!0:t.loaderData[X.id]===void 0&&(!t.errors||t.errors[X.id]===void 0);if(Fq(t.loaderData,t.matches[I],q)||c.some(G=>G===q.route.id))return!0;let se=t.matches[I],H=q;return f3(q,sn({currentUrl:b,currentParams:se.params,nextUrl:x,nextParams:H.params},r,{actionResult:A,actionStatus:P,defaultShouldRevalidate:E?!1:u||b.pathname+b.search===x.pathname+x.search||b.search!==x.search||D4(se,H)}))}),$=[];return h.forEach((q,I)=>{if(i||!n.some(Q=>Q.route.id===q.routeId)||p.has(I))return;let X=oa(w,q.path,v);if(!X){$.push({key:I,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let se=t.fetchers.get(I),H=lc(X,q.path),G=!1;m.has(I)?G=!1:f.includes(I)?G=!0:se&&se.state!=="idle"&&se.data===void 0?G=u:G=f3(H,sn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:P,defaultShouldRevalidate:E?!1:u})),G&&$.push({key:I,routeId:q.routeId,path:q.path,matches:X,match:H,controller:new AbortController})}),[L,$]}function Fq(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function D4(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function f3(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Uq(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||P4(p,h,r,o,i)}}),a.set(c,f)),f&&Kq(f)&&await f}finally{a.delete(c)}}function P4(e,t,n,r,o){if(e){var i;let a=r[e];gt(a,"No route found to patch children into: routeId = "+e);let u=Gc(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=Gc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function d3(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];gt(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";Zl(!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&&!aq.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,sn({},t(o),{lazy:void 0}))}function zq(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function jq(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 sn({},h,{shouldLoad:m,resolve:v=>(f.add(h.route.id),m?Vq(t,n,h,i,a,v,u):Promise.resolve({type:Wt.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(h=>gt(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 Vq(e,t,n,r,o,i,a){let u,c,f=p=>{let h,m=new Promise((y,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let w=y=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:a},...y!==void 0?[y]:[]),v;return i?v=i(y=>w(y)):v=(async()=>{try{return{type:"data",result:await w()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,m])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[m]=await Promise.all([f(p).catch(w=>{h=w}),d3(n.route,o,r)]);if(h!==void 0)throw h;u=m}else if(await d3(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})}gt(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 Wq(e){let{result:t,type:n,status:r}=e;if(L4(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 Uy(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:m0(t)?t.status:r};if(Xq(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 qq(e,t,n,r,o,i){let a=e.headers.get("Location");if(gt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!zy.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=z1(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function p3(e,t,n){if(zy.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Sf(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Qa(e,t,n,r){let o=e.createURL(O4(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=j1(r.formData):i.body=r.formData}return new Request(o,i)}function j1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function h3(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Hq(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,w)=>{let v=t[w].route.id;if(gt(!ca(m),"Cannot handle redirect results in processLoaderData"),Kr(m)){let y=m.error;h!==void 0&&(y=h,h=void 0),u=u||{};{let A=El(e,v);u[A.route.id]==null&&(u[A.route.id]=y)}a[v]=void 0,f||(f=!0,c=m0(m.error)?m.error.status:500),m.headers&&(p[v]=m.headers)}else ua(m)?(o.set(v,m.deferredData),a[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers)):(a[v]=m.data,m.statusCode&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers))}),h!==void 0&&r&&(u={[r[0]]:h},a[r[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:p}}function m3(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=Hq(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 y3(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 Uy(e||500,u,new Error(c),!0)}function x3(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ca(n))return{result:n,idx:t}}}function O4(e){let t=typeof e=="string"?Bs(e):e;return _f(sn({},t,{hash:""}))}function Gq(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Kq(e){return typeof e=="object"&&e!=null&&"then"in e}function Yq(e){return L4(e.result)&&Oq.has(e.result.status)}function ua(e){return e.type===Wt.deferred}function Kr(e){return e.type===Wt.error}function ca(e){return(e&&e.type)===Wt.redirect}function Xq(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 L4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Zq(e){return Pq.has(e.toLowerCase())}function Ko(e){return Tq.has(e.toLowerCase())}async function w3(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!D4(f,c)&&(i&&i[c.route.id])!==void 0;if(ua(u)&&(o||p)){let h=r[a];gt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await M4(u,h,o).then(m=>{m&&(n[a]=m||n[a])})}}}async function M4(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 jy(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function lc(e,t){let n=typeof t=="string"?Bs(t).search:t.search;if(e[e.length-1].route.index&&jy(n||""))return e[e.length-1];let r=R4(e);return r[r.length-1]}function b3(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 av(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 Qq(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 Xu(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 Jq(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 ss(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 eH(e,t){try{let n=e.sessionStorage.getItem(T4);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 tH(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(T4,JSON.stringify(n))}catch(r){Zl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Zl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nH(){return Math.random().toString(36).substr(2,8)}function i3(e,t){return{usr:e.state,key:e.key,idx:t}}function qc(e,t,n,r){return n===void 0&&(n=null),sn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bs(t):t,{state:n,key:t&&t.key||r||nH()})}function _f(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 rH(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Ln.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(sn({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function h(){u=Ln.Pop;let A=p(),b=A==null?null:A-f;f=A,c&&c({action:u,location:y.location,delta:b})}function m(A,b){u=Ln.Push;let x=qc(y.location,A,b);f=p()+1;let S=i3(x,f),k=y.createHref(x);try{a.pushState(S,"",k)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(k)}i&&c&&c({action:u,location:y.location,delta:1})}function w(A,b){u=Ln.Replace;let x=qc(y.location,A,b);f=p();let S=i3(x,f),k=y.createHref(x);a.replaceState(S,"",k),i&&c&&c({action:u,location:y.location,delta:0})}function v(A){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof A=="string"?A:_f(A);return x=x.replace(/ $/,"%20"),gt(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let y={get action(){return u},get location(){return e(o,a)},listen(A){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(o3,h),c=A,()=>{o.removeEventListener(o3,h),c=null}},createHref(A){return t(o,A)},createURL:v,encodeLocation(A){let b=v(A);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:m,replace:w,go(A){return a.go(A)}};return y}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const oH=new Set(["lazy","caseSensitive","path","id","index","children"]);function iH(e){return e.index===!0}function Gc(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(gt(o.index!==!0||!o.children,"Cannot specify children on an index route"),gt(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),iH(o)){let c=sn({},o,t(o),{id:u});return r[u]=c,c}else{let c=sn({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=Gc(o.children,t,a,r)),c}})}function oa(e,t,n){return n===void 0&&(n="/"),Ap(e,t,n,!1)}function Ap(e,t,n,r){let o=typeof t=="string"?Bs(t):t,i=Sf(o.pathname||"/",n);if(i==null)return null;let a=S4(e);aH(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("/")&&(gt(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=ma([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(gt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),S4(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:hH(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 E4(i.path))o(i,a,c)}),t}function E4(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=E4(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 aH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lH=/^:[\w-]+$/,uH=3,cH=2,fH=1,dH=10,pH=-2,s3=e=>e==="*";function hH(e,t){let n=e.split("/"),r=n.length;return n.some(s3)&&(r+=pH),t&&(r+=cH),n.filter(o=>!s3(o)).reduce((o,i)=>o+(lH.test(i)?uH:i===""?fH:dH),r)}function mH(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 gH(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:w}=p;if(m==="*"){let y=u[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[h];return w&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function vH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Zl(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 yH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zl(!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 Sf(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 xH(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:wH(n,t):t,search:EH(r),hash:CH(o)}}function wH(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 iv(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 C4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function bH(e,t){let n=C4(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _H(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Bs(e):(o=sn({},e),gt(!o.pathname||!o.pathname.includes("?"),iv("?","pathname","search",o)),gt(!o.pathname||!o.pathname.includes("#"),iv("#","pathname","hash",o)),gt(!o.search||!o.search.includes("#"),iv("#","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=xH(o,u),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const ma=e=>e.join("/").replace(/\/\/+/g,"/"),SH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Fy{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 m0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const A4=["post","put","patch","delete"],AH=new Set(A4),RH=["get",...A4],kH=new Set(RH),TH=new Set([301,302,303,307,308]),DH=new Set([307,308]),sv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},PH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Uy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),R4="remix-router-transitions";function LH(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;gt(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=OH;let i={},a=Gc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||$H,p=e.unstable_patchRoutesOnMiss,h=sn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,w=new Set,v=null,y=null,A=null,b=e.hydrationData!=null,x=oa(a,e.history.location,c),S=null;if(x==null&&!p){let N=yr(404,{pathname:e.history.location.pathname}),{matches:B,route:K}=v3(a);x=B,S={[K.id]:N}}x&&p&&!e.hydrationData&&On(x,a,e.history.location.pathname).active&&(x=null);let k;if(!x)k=!1,x=[];else if(x.some(N=>N.route.lazy))k=!1;else if(!x.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,K=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=x.findIndex(Se=>B[Se.route.id]!==void 0);k=x.slice(0,ne+1).every(K)}else k=x.every(K)}else k=e.hydrationData!=null;let P,E={historyAction:e.history.action,location:e.history.location,matches:x,initialized:k,navigation:sv,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=Ln.Pop,$=!1,H,I=!1,X=new Map,se=null,q=!1,G=!1,Q=[],le=[],pe=new Map,J=0,de=-1,re=new Map,he=new Set,U=new Map,ae=new Map,te=new Set,ye=new Map,ue=new Map,Ne=new Map,Re=!1;function ve(){if(m=e.history.listen(N=>{let{action:B,location:K,delta:ne}=N;if(Re){Re=!1;return}Zl(ue.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 Se=Ae({currentLocation:E.location,nextLocation:K,historyAction:B});if(Se&&ne!=null){Re=!0,e.history.go(ne*-1),we(Se,{state:"blocked",location:K,proceed(){we(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:K}),e.history.go(ne)},reset(){let Oe=new Map(E.blockers);Oe.set(Se,Yu),_e({blockers:Oe})}});return}return yt(B,K)}),n){ZH(t,X);let N=()=>QH(t,X);t.addEventListener("pagehide",N),se=()=>t.removeEventListener("pagehide",N)}return E.initialized||yt(Ln.Pop,E.location,{initialHydration:!0}),P}function Ce(){m&&m(),se&&se(),w.clear(),H&&H.abort(),E.fetchers.forEach((N,B)=>ir(B)),E.blockers.forEach((N,B)=>be(B))}function ge(N){return w.add(N),()=>w.delete(N)}function _e(N,B){B===void 0&&(B={}),E=sn({},E,N);let K=[],ne=[];h.v7_fetcherPersist&&E.fetchers.forEach((Se,Oe)=>{Se.state==="idle"&&(te.has(Oe)?ne.push(Oe):K.push(Oe))}),[...w].forEach(Se=>Se(E,{deletedFetchers:ne,unstable_viewTransitionOpts:B.viewTransitionOpts,unstable_flushSync:B.flushSync===!0})),h.v7_fetcherPersist&&(K.forEach(Se=>E.fetchers.delete(Se)),ne.forEach(Se=>ir(Se)))}function je(N,B,K){var ne,Se;let{flushSync:Oe}=K===void 0?{}:K,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,xe;B.actionData?Object.keys(B.actionData).length>0?xe=B.actionData:xe=null:ze?xe=E.actionData:xe=null;let Ge=B.loaderData?m3(E.loaderData,B.loaderData,B.matches||[],B.errors):E.loaderData,Ie=E.blockers;Ie.size>0&&(Ie=new Map(Ie),Ie.forEach((xt,kt)=>Ie.set(kt,Yu)));let Fe=$===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((Se=N.state)==null?void 0:Se._isRedirect)!==!0;u&&(a=u,u=void 0),q||L===Ln.Pop||(L===Ln.Push?e.history.push(N,N.state):L===Ln.Replace&&e.history.replace(N,N.state));let Ct;if(L===Ln.Pop){let xt=X.get(E.location.pathname);xt&&xt.has(N.pathname)?Ct={currentLocation:E.location,nextLocation:N}:X.has(N.pathname)&&(Ct={currentLocation:N,nextLocation:E.location})}else if(I){let xt=X.get(E.location.pathname);xt?xt.add(N.pathname):(xt=new Set([N.pathname]),X.set(E.location.pathname,xt)),Ct={currentLocation:E.location,nextLocation:N}}_e(sn({},B,{actionData:xe,loaderData:Ge,historyAction:L,location:N,initialized:!0,navigation:sv,revalidation:"idle",restoreScrollPosition:zt(N,B.matches||E.matches),preventScrollReset:Fe,blockers:Ie}),{viewTransitionOpts:Ct,flushSync:Oe===!0}),L=Ln.Pop,$=!1,I=!1,q=!1,G=!1,Q=[],le=[]}async function nt(N,B){if(typeof N=="number"){e.history.go(N);return}let K=U1(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:Se,error:Oe}=l3(h.v7_normalizeFormMethod,!1,K,B),ze=E.location,xe=qc(E.location,ne,B&&B.state);xe=sn({},xe,e.history.encodeLocation(xe));let Ge=B&&B.replace!=null?B.replace:void 0,Ie=Ln.Push;Ge===!0?Ie=Ln.Replace:Ge===!1||Se!=null&&Ko(Se.formMethod)&&Se.formAction===E.location.pathname+E.location.search&&(Ie=Ln.Replace);let Fe=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Ct=(B&&B.unstable_flushSync)===!0,xt=Ae({currentLocation:ze,nextLocation:xe,historyAction:Ie});if(xt){we(xt,{state:"blocked",location:xe,proceed(){we(xt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),nt(N,B)},reset(){let kt=new Map(E.blockers);kt.set(xt,Yu),_e({blockers:kt})}});return}return await yt(Ie,xe,{submission:Se,pendingError:Oe,preventScrollReset:Fe,replace:B&&B.replace,enableViewTransition:B&&B.unstable_viewTransition,flushSync:Ct})}function ut(){if(nn(),_e({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){yt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}yt(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function yt(N,B,K){H&&H.abort(),H=null,L=N,q=(K&&K.startUninterruptedRevalidation)===!0,Pn(E.location,E.matches),$=(K&&K.preventScrollReset)===!0,I=(K&&K.enableViewTransition)===!0;let ne=u||a,Se=K&&K.overrideNavigation,Oe=oa(ne,B,c),ze=(K&&K.flushSync)===!0,xe=On(Oe,ne,B.pathname);if(xe.active&&xe.matches&&(Oe=xe.matches),!Oe){let{error:ke,notFoundMatches:wt,route:hn}=Ue(B.pathname);je(B,{matches:wt,loaderData:{},errors:{[hn.id]:ke}},{flushSync:ze});return}if(E.initialized&&!G&&WH(E.location,B)&&!(K&&K.submission&&Ko(K.submission.formMethod))){je(B,{matches:Oe},{flushSync:ze});return}H=new AbortController;let Ge=Qa(e.history,B,H.signal,K&&K.submission),Ie;if(K&&K.pendingError)Ie=[El(Oe).route.id,{type:Wt.error,error:K.pendingError}];else if(K&&K.submission&&Ko(K.submission.formMethod)){let ke=await rt(Ge,B,K.submission,Oe,xe.active,{replace:K.replace,flushSync:ze});if(ke.shortCircuited)return;if(ke.pendingActionResult){let[wt,hn]=ke.pendingActionResult;if(Kr(hn)&&m0(hn.error)&&hn.error.status===404){H=null,je(B,{matches:ke.matches,loaderData:{},errors:{[wt]:hn.error}});return}}Oe=ke.matches||Oe,Ie=ke.pendingActionResult,Se=av(B,K.submission),ze=!1,xe.active=!1,Ge=Qa(e.history,Ge.url,Ge.signal)}let{shortCircuited:Fe,matches:Ct,loaderData:xt,errors:kt}=await cn(Ge,B,Oe,xe.active,Se,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,ze,Ie);Fe||(H=null,je(B,sn({matches:Ct||Oe},g3(Ie),{loaderData:xt,errors:kt})))}async function rt(N,B,K,ne,Se,Oe){Oe===void 0&&(Oe={}),nn();let ze=YH(B,K);if(_e({navigation:ze},{flushSync:Oe.flushSync===!0}),Se){let Ie=await pn(ne,B.pathname,N.signal);if(Ie.type==="aborted")return{shortCircuited:!0};if(Ie.type==="error"){let{boundaryId:Fe,error:Ct}=Be(B.pathname,Ie);return{matches:Ie.partialMatches,pendingActionResult:[Fe,{type:Wt.error,error:Ct}]}}else if(Ie.matches)ne=Ie.matches;else{let{notFoundMatches:Fe,error:Ct,route:xt}=Ue(B.pathname);return{matches:Fe,pendingActionResult:[xt.id,{type:Wt.error,error:Ct}]}}}let xe,Ge=lc(ne,B);if(!Ge.route.action&&!Ge.route.lazy)xe={type:Wt.error,error:yr(405,{method:N.method,pathname:B.pathname,routeId:Ge.route.id})};else if(xe=(await Rt("action",N,[Ge],ne))[0],N.signal.aborted)return{shortCircuited:!0};if(ca(xe)){let Ie;return Oe&&Oe.replace!=null?Ie=Oe.replace:Ie=d3(xe.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,xe,{submission:K,replace:Ie}),{shortCircuited:!0}}if(ua(xe))throw yr(400,{type:"defer-action"});if(Kr(xe)){let Ie=El(ne,Ge.route.id);return(Oe&&Oe.replace)!==!0&&(L=Ln.Push),{matches:ne,pendingActionResult:[Ie.route.id,xe]}}return{matches:ne,pendingActionResult:[Ge.route.id,xe]}}async function cn(N,B,K,ne,Se,Oe,ze,xe,Ge,Ie,Fe){let Ct=Se||av(B,Oe),xt=Oe||ze||w3(Ct),kt=!q&&(!h.v7_partialHydration||!Ge);if(ne){if(kt){let Zt=Kn(Fe);_e(sn({navigation:Ct},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Ie})}let Qe=await pn(K,B.pathname,N.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let{boundaryId:Zt,error:hr}=Be(B.pathname,Qe);return{matches:Qe.partialMatches,loaderData:{},errors:{[Zt]:hr}}}else if(Qe.matches)K=Qe.matches;else{let{error:Zt,notFoundMatches:hr,route:jt}=Ue(B.pathname);return{matches:hr,loaderData:{},errors:{[jt.id]:Zt}}}}let ke=u||a,[wt,hn]=u3(e.history,E,K,xt,B,h.v7_partialHydration&&Ge===!0,h.v7_skipActionErrorRevalidation,G,Q,le,te,U,he,ke,c,Fe);if($e(Qe=>!(K&&K.some(Zt=>Zt.route.id===Qe))||wt&&wt.some(Zt=>Zt.route.id===Qe)),de=++J,wt.length===0&&hn.length===0){let Qe=W();return je(B,sn({matches:K,loaderData:{},errors:Fe&&Kr(Fe[1])?{[Fe[0]]:Fe[1].error}:null},g3(Fe),Qe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Ie}),{shortCircuited:!0}}if(kt){let Qe={};if(!ne){Qe.navigation=Ct;let Zt=Kn(Fe);Zt!==void 0&&(Qe.actionData=Zt)}hn.length>0&&(Qe.fetchers=dt(hn)),_e(Qe,{flushSync:Ie})}hn.forEach(Qe=>{pe.has(Qe.key)&&Dn(Qe.key),Qe.controller&&pe.set(Qe.key,Qe.controller)});let ni=()=>hn.forEach(Qe=>Dn(Qe.key));H&&H.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await Tn(E.matches,K,wt,hn,N);if(N.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",ni),hn.forEach(Qe=>pe.delete(Qe.key));let qi=y3([...ri,...$o]);if(qi){if(qi.idx>=wt.length){let Qe=hn[qi.idx-wt.length].key;he.add(Qe)}return await Ut(N,qi.result,{replace:xe}),{shortCircuited:!0}}let{loaderData:Gi,errors:ao}=h3(E,K,wt,ri,Fe,hn,$o,ye);ye.forEach((Qe,Zt)=>{Qe.subscribe(hr=>{(hr||Qe.done)&&ye.delete(Zt)})}),h.v7_partialHydration&&Ge&&E.errors&&Object.entries(E.errors).filter(Qe=>{let[Zt]=Qe;return!wt.some(hr=>hr.route.id===Zt)}).forEach(Qe=>{let[Zt,hr]=Qe;ao=Object.assign(ao||{},{[Zt]:hr})});let Fs=W(),Us=F(de),zs=Fs||Us||hn.length>0;return sn({matches:K,loaderData:Gi,errors:ao},zs?{fetchers:new Map(E.fetchers)}:{})}function Kn(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 dt(N){return N.forEach(B=>{let K=E.fetchers.get(B.key),ne=Xu(void 0,K?K.data:void 0);E.fetchers.set(B.key,ne)}),new Map(E.fetchers)}function at(N,B,K,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)&&Dn(N);let Se=(ne&&ne.unstable_flushSync)===!0,Oe=u||a,ze=U1(E.location,E.matches,c,h.v7_prependBasename,K,h.v7_relativeSplatPath,B,ne==null?void 0:ne.relative),xe=oa(Oe,ze,c),Ge=On(xe,Oe,ze);if(Ge.active&&Ge.matches&&(xe=Ge.matches),!xe){Le(N,B,yr(404,{pathname:ze}),{flushSync:Se});return}let{path:Ie,submission:Fe,error:Ct}=l3(h.v7_normalizeFormMethod,!0,ze,ne);if(Ct){Le(N,B,Ct,{flushSync:Se});return}let xt=lc(xe,Ie);if($=(ne&&ne.preventScrollReset)===!0,Fe&&Ko(Fe.formMethod)){fn(N,B,Ie,xt,xe,Ge.active,Se,Fe);return}U.set(N,{routeId:B,path:Ie}),dn(N,B,Ie,xt,xe,Ge.active,Se,Fe)}async function fn(N,B,K,ne,Se,Oe,ze,xe){nn(),U.delete(N);function Ge(jt){if(!jt.route.action&&!jt.route.lazy){let lo=yr(405,{method:xe.formMethod,pathname:K,routeId:B});return Le(N,B,lo,{flushSync:ze}),!0}return!1}if(!Oe&&Ge(ne))return;let Ie=E.fetchers.get(N);qe(N,XH(xe,Ie),{flushSync:ze});let Fe=new AbortController,Ct=Qa(e.history,K,Fe.signal,xe);if(Oe){let jt=await pn(Se,K,Ct.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Be(K,jt);Le(N,B,lo,{flushSync:ze});return}else if(jt.matches){if(Se=jt.matches,ne=lc(Se,K),Ge(ne))return}else{Le(N,B,yr(404,{pathname:K}),{flushSync:ze});return}}pe.set(N,Fe);let xt=J,ke=(await Rt("action",Ct,[ne],Se))[0];if(Ct.signal.aborted){pe.get(N)===Fe&&pe.delete(N);return}if(h.v7_fetcherPersist&&te.has(N)){if(ca(ke)||Kr(ke)){qe(N,as(void 0));return}}else{if(ca(ke))if(pe.delete(N),de>xt){qe(N,as(void 0));return}else return he.add(N),qe(N,Xu(xe)),Ut(Ct,ke,{fetcherSubmission:xe});if(Kr(ke)){Le(N,B,ke.error);return}}if(ua(ke))throw yr(400,{type:"defer-action"});let wt=E.navigation.location||E.location,hn=Qa(e.history,wt,Fe.signal),ni=u||a,ri=E.navigation.state!=="idle"?oa(ni,E.navigation.location,c):E.matches;gt(ri,"Didn't find any matches after fetcher action");let $o=++J;re.set(N,$o);let qi=Xu(xe,ke.data);E.fetchers.set(N,qi);let[Gi,ao]=u3(e.history,E,ri,xe,wt,!1,h.v7_skipActionErrorRevalidation,G,Q,le,te,U,he,ni,c,[ne.route.id,ke]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,yu=E.fetchers.get(lo),Nf=Xu(void 0,yu?yu.data:void 0);E.fetchers.set(lo,Nf),pe.has(lo)&&Dn(lo),jt.controller&&pe.set(lo,jt.controller)}),_e({fetchers:new Map(E.fetchers)});let Fs=()=>ao.forEach(jt=>Dn(jt.key));Fe.signal.addEventListener("abort",Fs);let{loaderResults:Us,fetcherResults:zs}=await Tn(E.matches,ri,Gi,ao,hn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Fs),re.delete(N),pe.delete(N),ao.forEach(jt=>pe.delete(jt.key));let Qe=y3([...Us,...zs]);if(Qe){if(Qe.idx>=Gi.length){let jt=ao[Qe.idx-Gi.length].key;he.add(jt)}return Ut(hn,Qe.result)}let{loaderData:Zt,errors:hr}=h3(E,E.matches,Gi,Us,void 0,ao,zs,ye);if(E.fetchers.has(N)){let jt=as(ke.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>de?(gt(L,"Expected pending action"),H&&H.abort(),je(E.navigation.location,{matches:ri,loaderData:Zt,errors:hr,fetchers:new Map(E.fetchers)})):(_e({errors:hr,loaderData:m3(E.loaderData,Zt,ri,hr),fetchers:new Map(E.fetchers)}),G=!1)}async function dn(N,B,K,ne,Se,Oe,ze,xe){let Ge=E.fetchers.get(N);qe(N,Xu(xe,Ge?Ge.data:void 0),{flushSync:ze});let Ie=new AbortController,Fe=Qa(e.history,K,Ie.signal);if(Oe){let ke=await pn(Se,K,Fe.signal);if(ke.type==="aborted")return;if(ke.type==="error"){let{error:wt}=Be(K,ke);Le(N,B,wt,{flushSync:ze});return}else if(ke.matches)Se=ke.matches,ne=lc(Se,K);else{Le(N,B,yr(404,{pathname:K}),{flushSync:ze});return}}pe.set(N,Ie);let Ct=J,kt=(await Rt("loader",Fe,[ne],Se))[0];if(ua(kt)&&(kt=await O4(kt,Fe.signal,!0)||kt),pe.get(N)===Ie&&pe.delete(N),!Fe.signal.aborted){if(te.has(N)){qe(N,as(void 0));return}if(ca(kt))if(de>Ct){qe(N,as(void 0));return}else{he.add(N),await Ut(Fe,kt);return}if(Kr(kt)){Le(N,B,kt.error);return}gt(!ua(kt),"Unhandled fetcher deferred data"),qe(N,as(kt.data))}}async function Ut(N,B,K){let{submission:ne,fetcherSubmission:Se,replace:Oe}=K===void 0?{}:K;B.response.headers.has("X-Remix-Revalidate")&&(G=!0);let ze=B.response.headers.get("Location");gt(ze,"Expected a Location header on the redirect Response"),ze=d3(ze,new URL(N.url),c);let xe=qc(E.location,ze,{_isRedirect:!0});if(n){let kt=!1;if(B.response.headers.has("X-Remix-Reload-Document"))kt=!0;else if(Uy.test(ze)){const ke=e.history.createURL(ze);kt=ke.origin!==t.location.origin||Sf(ke.pathname,c)==null}if(kt){Oe?t.location.replace(ze):t.location.assign(ze);return}}H=null;let Ge=Oe===!0?Ln.Replace:Ln.Push,{formMethod:Ie,formAction:Fe,formEncType:Ct}=E.navigation;!ne&&!Se&&Ie&&Fe&&Ct&&(ne=w3(E.navigation));let xt=ne||Se;if(DH.has(B.response.status)&&xt&&Ko(xt.formMethod))await yt(Ge,xe,{submission:sn({},xt,{formAction:ze}),preventScrollReset:$});else{let kt=av(xe,ne);await yt(Ge,xe,{overrideNavigation:kt,fetcherSubmission:Se,preventScrollReset:$})}}async function Rt(N,B,K,ne){try{let Se=await FH(f,N,B,K,ne,i,o);return await Promise.all(Se.map((Oe,ze)=>{if(qH(Oe)){let xe=Oe.result;return{type:Wt.redirect,response:jH(xe,B,K[ze].route.id,ne,c,h.v7_relativeSplatPath)}}return zH(Oe)}))}catch(Se){return K.map(()=>({type:Wt.error,error:Se}))}}async function Tn(N,B,K,ne,Se){let[Oe,...ze]=await Promise.all([K.length?Rt("loader",Se,K,B):[],...ne.map(xe=>{if(xe.matches&&xe.match&&xe.controller){let Ge=Qa(e.history,xe.path,xe.controller.signal);return Rt("loader",Ge,[xe.match],xe.matches).then(Ie=>Ie[0])}else return Promise.resolve({type:Wt.error,error:yr(404,{pathname:xe.path})})})]);return await Promise.all([x3(N,K,Oe,Oe.map(()=>Se.signal),!1,E.loaderData),x3(N,ne.map(xe=>xe.match),ze,ne.map(xe=>xe.controller?xe.controller.signal:null),!0)]),{loaderResults:Oe,fetcherResults:ze}}function nn(){G=!0,Q.push(...$e()),U.forEach((N,B)=>{pe.has(B)&&(le.push(B),Dn(B))})}function qe(N,B,K){K===void 0&&(K={}),E.fetchers.set(N,B),_e({fetchers:new Map(E.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Le(N,B,K,ne){ne===void 0&&(ne={});let Se=El(E.matches,B);ir(N),_e({errors:{[Se.route.id]:K},fetchers:new Map(E.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ae.set(N,(ae.get(N)||0)+1),te.has(N)&&te.delete(N)),E.fetchers.get(N)||PH}function ir(N){let B=E.fetchers.get(N);pe.has(N)&&!(B&&B.state==="loading"&&re.has(N))&&Dn(N),U.delete(N),re.delete(N),he.delete(N),te.delete(N),E.fetchers.delete(N)}function Yn(N){if(h.v7_fetcherPersist){let B=(ae.get(N)||0)-1;B<=0?(ae.delete(N),te.add(N)):ae.set(N,B)}else ir(N);_e({fetchers:new Map(E.fetchers)})}function Dn(N){let B=pe.get(N);gt(B,"Expected fetch controller: "+N),B.abort(),pe.delete(N)}function Io(N){for(let B of N){let K=Xt(B),ne=as(K.data);E.fetchers.set(B,ne)}}function W(){let N=[],B=!1;for(let K of he){let ne=E.fetchers.get(K);gt(ne,"Expected fetcher: "+K),ne.state==="loading"&&(he.delete(K),N.push(K),B=!0)}return Io(N),B}function F(N){let B=[];for(let[K,ne]of re)if(ne0}function ce(N,B){let K=E.blockers.get(N)||Yu;return ue.get(N)!==B&&ue.set(N,B),K}function be(N){E.blockers.delete(N),ue.delete(N)}function we(N,B){let K=E.blockers.get(N)||Yu;gt(K.state==="unblocked"&&B.state==="blocked"||K.state==="blocked"&&B.state==="blocked"||K.state==="blocked"&&B.state==="proceeding"||K.state==="blocked"&&B.state==="unblocked"||K.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+K.state+" -> "+B.state);let ne=new Map(E.blockers);ne.set(N,B),_e({blockers:ne})}function Ae(N){let{currentLocation:B,nextLocation:K,historyAction:ne}=N;if(ue.size===0)return;ue.size>1&&Zl(!1,"A router only supports one blocker at a time");let Se=Array.from(ue.entries()),[Oe,ze]=Se[Se.length-1],xe=E.blockers.get(Oe);if(!(xe&&xe.state==="proceeding")&&ze({currentLocation:B,nextLocation:K,historyAction:ne}))return Oe}function Ue(N){let B=yr(404,{pathname:N}),K=u||a,{matches:ne,route:Se}=v3(K);return $e(),{notFoundMatches:ne,route:Se,error:B}}function Be(N,B){return{boundaryId:El(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 ye.forEach((K,ne)=>{(!N||N(ne))&&(K.cancel(),B.push(ne),ye.delete(ne))}),B}function Ke(N,B,K){if(v=N,A=B,y=K||null,!b&&E.navigation===sv){b=!0;let ne=zt(E.location,E.matches);ne!=null&&_e({restoreScrollPosition:ne})}return()=>{v=null,A=null,y=null}}function Et(N,B){return y&&y(N,B.map(ne=>sH(ne,E.loaderData)))||N.key}function Pn(N,B){if(v&&A){let K=Et(N,B);v[K]=A()}}function zt(N,B){if(v){let K=Et(N,B),ne=v[K];if(typeof ne=="number")return ne}return null}function On(N,B,K){if(p)if(N){let ne=N[N.length-1].route;if(ne.path&&(ne.path==="*"||ne.path.endsWith("/*")))return{active:!0,matches:Ap(B,K,c,!0)}}else return{active:!0,matches:Ap(B,K,c,!0)||[]};return{active:!1,matches:null}}async function pn(N,B,K){let ne=N,Se=ne.length>0?ne[ne.length-1].route:null;for(;;){let Oe=u==null,ze=u||a;try{await IH(p,B,ne,ze,i,o,Ne,K)}catch(Fe){return{type:"error",error:Fe,partialMatches:ne}}finally{Oe&&(a=[...a])}if(K.aborted)return{type:"aborted"};let xe=oa(ze,B,c),Ge=!1;if(xe){let Fe=xe[xe.length-1].route;if(Fe.index)return{type:"success",matches:xe};if(Fe.path&&Fe.path.length>0)if(Fe.path==="*")Ge=!0;else return{type:"success",matches:xe}}let Ie=Ap(ze,B,c,!0);if(!Ie||ne.map(Fe=>Fe.route.id).join("-")===Ie.map(Fe=>Fe.route.id).join("-"))return{type:"success",matches:Ge?xe:null};if(ne=Ie,Se=ne[ne.length-1].route,Se.path==="*")return{type:"success",matches:ne}}}function so(N){i={},u=Gc(N,o,void 0,i)}function sr(N,B){let K=u==null;T4(N,B,u||a,i,o),K&&(a=[...a],_e({}))}return P={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:ve,subscribe:ge,enableScrollRestoration:Ke,navigate:nt,fetch:at,revalidate:ut,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:Yn,dispose:Ce,getBlocker:ce,deleteBlocker:be,patchRoutes:sr,_internalFetchControllers:pe,_internalActiveDeferreds:ye,_internalSetRoutes:so},P}function NH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function U1(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=_H(o||".",bH(c,i),Sf(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&&!zy(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:ma([n,p.pathname])),_f(p)}function l3(e,t,n,r){if(!r||!NH(r))return{path:n};if(r.formMethod&&!KH(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=D4(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((w,v)=>{let[y,A]=v;return""+w+y+"="+A+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ko(a))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}gt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=z1(r.formData),f=r.formData;else if(r.body instanceof FormData)c=z1(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=p3(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=p3(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&&zy(h.search)&&c.append("index",""),h.search="?"+c,{path:_f(h),submission:p}}function MH(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 u3(e,t,n,r,o,i,a,u,c,f,p,h,m,w,v,y){let A=y?Kr(y[1])?y[1].error:y[1].data:void 0,b=e.createURL(t.location),x=e.createURL(o),S=y&&Kr(y[1])?y[0]:void 0,k=S?MH(n,S):n,P=y?y[1].statusCode:void 0,E=a&&P&&P>=400,L=k.filter((H,I)=>{let{route:X}=H;if(X.lazy)return!0;if(X.loader==null)return!1;if(i)return typeof X.loader!="function"||X.loader.hydrate?!0:t.loaderData[X.id]===void 0&&(!t.errors||t.errors[X.id]===void 0);if(BH(t.loaderData,t.matches[I],H)||c.some(G=>G===H.route.id))return!0;let se=t.matches[I],q=H;return c3(H,sn({currentUrl:b,currentParams:se.params,nextUrl:x,nextParams:q.params},r,{actionResult:A,actionStatus:P,defaultShouldRevalidate:E?!1:u||b.pathname+b.search===x.pathname+x.search||b.search!==x.search||k4(se,q)}))}),$=[];return h.forEach((H,I)=>{if(i||!n.some(Q=>Q.route.id===H.routeId)||p.has(I))return;let X=oa(w,H.path,v);if(!X){$.push({key:I,routeId:H.routeId,path:H.path,matches:null,match:null,controller:null});return}let se=t.fetchers.get(I),q=lc(X,H.path),G=!1;m.has(I)?G=!1:f.includes(I)?G=!0:se&&se.state!=="idle"&&se.data===void 0?G=u:G=c3(q,sn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:P,defaultShouldRevalidate:E?!1:u})),G&&$.push({key:I,routeId:H.routeId,path:H.path,matches:X,match:q,controller:new AbortController})}),[L,$]}function BH(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function k4(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function c3(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function IH(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||T4(p,h,r,o,i)}}),a.set(c,f)),f&&HH(f)&&await f}finally{a.delete(c)}}function T4(e,t,n,r,o){if(e){var i;let a=r[e];gt(a,"No route found to patch children into: routeId = "+e);let u=Gc(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=Gc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function f3(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];gt(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";Zl(!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&&!oH.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,sn({},t(o),{lazy:void 0}))}function $H(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function FH(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 sn({},h,{shouldLoad:m,resolve:v=>(f.add(h.route.id),m?UH(t,n,h,i,a,v,u):Promise.resolve({type:Wt.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(h=>gt(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 UH(e,t,n,r,o,i,a){let u,c,f=p=>{let h,m=new Promise((y,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let w=y=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:a},...y!==void 0?[y]:[]),v;return i?v=i(y=>w(y)):v=(async()=>{try{return{type:"data",result:await w()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,m])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[m]=await Promise.all([f(p).catch(w=>{h=w}),f3(n.route,o,r)]);if(h!==void 0)throw h;u=m}else if(await f3(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})}gt(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 zH(e){let{result:t,type:n,status:r}=e;if(P4(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 Fy(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:m0(t)?t.status:r};if(GH(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 jH(e,t,n,r,o,i){let a=e.headers.get("Location");if(gt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Uy.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=U1(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function d3(e,t,n){if(Uy.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Sf(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Qa(e,t,n,r){let o=e.createURL(D4(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=z1(r.formData):i.body=r.formData}return new Request(o,i)}function z1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function p3(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function VH(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,w)=>{let v=t[w].route.id;if(gt(!ca(m),"Cannot handle redirect results in processLoaderData"),Kr(m)){let y=m.error;h!==void 0&&(y=h,h=void 0),u=u||{};{let A=El(e,v);u[A.route.id]==null&&(u[A.route.id]=y)}a[v]=void 0,f||(f=!0,c=m0(m.error)?m.error.status:500),m.headers&&(p[v]=m.headers)}else ua(m)?(o.set(v,m.deferredData),a[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers)):(a[v]=m.data,m.statusCode&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers))}),h!==void 0&&r&&(u={[r[0]]:h},a[r[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:p}}function h3(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=VH(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 v3(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 Fy(e||500,u,new Error(c),!0)}function y3(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ca(n))return{result:n,idx:t}}}function D4(e){let t=typeof e=="string"?Bs(e):e;return _f(sn({},t,{hash:""}))}function WH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function HH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return P4(e.result)&&TH.has(e.result.status)}function ua(e){return e.type===Wt.deferred}function Kr(e){return e.type===Wt.error}function ca(e){return(e&&e.type)===Wt.redirect}function GH(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 P4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function KH(e){return kH.has(e.toLowerCase())}function Ko(e){return AH.has(e.toLowerCase())}async function x3(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!k4(f,c)&&(i&&i[c.route.id])!==void 0;if(ua(u)&&(o||p)){let h=r[a];gt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await O4(u,h,o).then(m=>{m&&(n[a]=m||n[a])})}}}async function O4(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 zy(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function lc(e,t){let n=typeof t=="string"?Bs(t).search:t.search;if(e[e.length-1].route.index&&zy(n||""))return e[e.length-1];let r=C4(e);return r[r.length-1]}function w3(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 av(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 YH(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 Xu(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 XH(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 ZH(e,t){try{let n=e.sessionStorage.getItem(R4);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 QH(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(R4,JSON.stringify(n))}catch(r){Zl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. @@ -98,7 +98,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function V1(){return V1=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},u,y.params),pathname:ma([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:ma([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function oH(){let e=dH(),t=m0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,null)}const iH=D.createElement(oH,null);class sH extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(g0.Provider,{value:this.props.routeContext},D.createElement($4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aH(e){let{routeContext:t,match:n,children:r}=e,o=D.useContext(N4);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(g0.Provider,{value:t},r)}function lH(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=a.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||gt(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,h,m)=>{let w,v=!1,y=null,A=null;n&&(w=u&&h.route.id?u[h.route.id]:void 0,y=h.route.errorElement||iH,c&&(f<0&&m===0?(v=!0,A=null):f===m&&(v=!0,A=h.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,m+1)),x=()=>{let S;return w?S=y:v?S=A:h.route.Component?S=D.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,D.createElement(aH,{match:h,routeContext:{outlet:p,matches:b,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?D.createElement(sH,{location:n.location,revalidation:n.revalidation,component:y,error:w,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var W1=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(W1||{});function uH(e){let t=D.useContext(B4);return t||gt(!1),t}function cH(e){let t=D.useContext(g0);return t||gt(!1),t}function fH(e){let t=cH(),n=t.matches[t.matches.length-1];return n.route.id||gt(!1),n.route.id}function dH(){var e;let t=D.useContext($4),n=uH(W1.UseRouteError),r=fH(W1.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function pH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ln.Pop,navigator:i,static:a=!1,future:u}=e;Wy()&>(!1);let c=t.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:c,navigator:i,static:a,future:V1({v7_relativeSplatPath:!1},u)}),[c,u,i,a]);typeof r=="string"&&(r=Bs(r));let{pathname:p="/",search:h="",hash:m="",state:w=null,key:v="default"}=r,y=D.useMemo(()=>{let A=Sf(p,c);return A==null?null:{location:{pathname:A,search:h,hash:m,state:w,key:v},navigationType:o}},[c,p,h,m,w,v,o]);return y==null?null:D.createElement(I4.Provider,{value:f},D.createElement(Vy.Provider,{children:n,value:y}))}new Promise(()=>{});function hH(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function j1(){return j1=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},u,y.params),pathname:ma([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:ma([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function tq(){let e=uq(),t=m0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,null)}const nq=D.createElement(tq,null);class rq extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(g0.Provider,{value:this.props.routeContext},D.createElement(B4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oq(e){let{routeContext:t,match:n,children:r}=e,o=D.useContext(L4);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(g0.Provider,{value:t},r)}function iq(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=a.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||gt(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,h,m)=>{let w,v=!1,y=null,A=null;n&&(w=u&&h.route.id?u[h.route.id]:void 0,y=h.route.errorElement||nq,c&&(f<0&&m===0?(v=!0,A=null):f===m&&(v=!0,A=h.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,m+1)),x=()=>{let S;return w?S=y:v?S=A:h.route.Component?S=D.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,D.createElement(oq,{match:h,routeContext:{outlet:p,matches:b,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?D.createElement(rq,{location:n.location,revalidation:n.revalidation,component:y,error:w,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var V1=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(V1||{});function sq(e){let t=D.useContext(N4);return t||gt(!1),t}function aq(e){let t=D.useContext(g0);return t||gt(!1),t}function lq(e){let t=aq(),n=t.matches[t.matches.length-1];return n.route.id||gt(!1),n.route.id}function uq(){var e;let t=D.useContext(B4),n=sq(V1.UseRouteError),r=lq(V1.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cq(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ln.Pop,navigator:i,static:a=!1,future:u}=e;Vy()&>(!1);let c=t.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:c,navigator:i,static:a,future:j1({v7_relativeSplatPath:!1},u)}),[c,u,i,a]);typeof r=="string"&&(r=Bs(r));let{pathname:p="/",search:h="",hash:m="",state:w=null,key:v="default"}=r,y=D.useMemo(()=>{let A=Sf(p,c);return A==null?null:{location:{pathname:A,search:h,hash:m,state:w,key:v},navigationType:o}},[c,p,h,m,w,v,o]);return y==null?null:D.createElement(M4.Provider,{value:f},D.createElement(jy.Provider,{children:n,value:y}))}new Promise(()=>{});function fq(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. @@ -107,13 +107,13 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ph(){return ph=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 CH(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=D.useState(n.state),[a,u]=D.useState(),[c,f]=D.useState({isTransitioning:!1}),[p,h]=D.useState(),[m,w]=D.useState(),[v,y]=D.useState(),A=D.useRef(new Map),{v7_startTransition:b}=r||{},x=D.useCallback($=>{b?SH($):$()},[b]),S=D.useCallback(($,q)=>{let{deletedFetchers:I,unstable_flushSync:X,unstable_viewTransitionOpts:se}=q;I.forEach(G=>A.current.delete(G)),$.fetchers.forEach((G,Q)=>{G.data!==void 0&&A.current.set(Q,G.data)});let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!se||H){X?Zu(()=>i($)):x(()=>i($));return}if(X){Zu(()=>{m&&(p&&p.resolve(),m.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let G=n.window.document.startViewTransition(()=>{Zu(()=>i($))});G.finished.finally(()=>{Zu(()=>{h(void 0),w(void 0),u(void 0),f({isTransitioning:!1})})}),Zu(()=>w(G));return}m?(p&&p.resolve(),m.skipTransition(),y({state:$,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(u($),f({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[n.window,m,p,A,x]);D.useLayoutEffect(()=>n.subscribe(S),[n,S]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new EH)},[c]),D.useEffect(()=>{if(p&&a&&n.window){let $=a,q=p.promise,I=n.window.document.startViewTransition(async()=>{x(()=>i($)),await q});I.finished.finally(()=>{h(void 0),w(void 0),u(void 0),f({isTransitioning:!1})}),w(I)}},[x,a,p,n.window]),D.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,m,o.location,a]),D.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),D.useEffect(()=>{},[]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,q,I)=>n.navigate($,{state:q,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:($,q,I)=>n.navigate($,{replace:!0,state:q,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),P=n.basename||"/",E=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:P}),[n,k,P]),L=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(N4.Provider,{value:E},D.createElement(B4.Provider,{value:o},D.createElement(wH.Provider,{value:A.current},D.createElement(xH.Provider,{value:c},D.createElement(pH,{basename:P,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?D.createElement(AH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const AH=D.memo(RH);function RH(e){let{routes:t,future:n,state:r}=e;return rH(t,void 0,r,n)}var E3;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(E3||(E3={}));var C3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(C3||(C3={}));var F4={},qy={exports:{}},wn={},U4={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 kH(e){return Object.prototype.toString.call(e)}function TH(e){return kH(e)==="[object String]"}var DH=Object.prototype.hasOwnProperty;function z4(e,t){return e?DH.call(e,t):!1}function PH(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 OH=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function LH(e){return e.indexOf("\\")<0?e:e.replace(OH,"$1")}function j4(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 V4(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 MH=/&([a-z#][a-z0-9]{1,31});/gi,NH=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,A3=U4;function BH(e,t){var n=0;return z4(A3,t)?A3[t]:t.charCodeAt(0)===35&&NH.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),j4(n))?V4(n):e}function IH(e){return e.indexOf("&")<0?e:e.replace(MH,BH)}var $H=/[&<>"]/,FH=/[&<>"]/g,UH={"&":"&","<":"<",">":">",'"':"""};function zH(e){return UH[e]}function jH(e){return $H.test(e)?e.replace(FH,zH):e}wn.assign=PH;wn.isString=TH;wn.has=z4;wn.unescapeMd=LH;wn.isValidEntityCode=j4;wn.fromCodePoint=V4;wn.replaceEntities=IH;wn.escapeHtml=jH;var VH=wn.has,W4=wn.unescapeMd,Kc=wn.replaceEntities,Br=wn.escapeHtml,Pe={};Pe.blockquote_open=function(){return`
-`};Pe.blockquote_close=function(e,t){return"
"+La(e,t)};Pe.code=function(e,t){return e[t].block?"
"+Br(e[t].content)+"
"+La(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(" "),VH(o.rules.fence_custom,f[0]))return o.rules.fence_custom[f[0]](e,t,n,r,o);c=Br(Kc(W4(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+"
"+La(e,t)};Pe.fence_custom={};Pe.heading_open=function(e,t){return""};Pe.heading_close=function(e,t){return" + */function ph(){return ph=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 _q(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=D.useState(n.state),[a,u]=D.useState(),[c,f]=D.useState({isTransitioning:!1}),[p,h]=D.useState(),[m,w]=D.useState(),[v,y]=D.useState(),A=D.useRef(new Map),{v7_startTransition:b}=r||{},x=D.useCallback($=>{b?wq($):$()},[b]),S=D.useCallback(($,H)=>{let{deletedFetchers:I,unstable_flushSync:X,unstable_viewTransitionOpts:se}=H;I.forEach(G=>A.current.delete(G)),$.fetchers.forEach((G,Q)=>{G.data!==void 0&&A.current.set(Q,G.data)});let q=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!se||q){X?Zu(()=>i($)):x(()=>i($));return}if(X){Zu(()=>{m&&(p&&p.resolve(),m.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let G=n.window.document.startViewTransition(()=>{Zu(()=>i($))});G.finished.finally(()=>{Zu(()=>{h(void 0),w(void 0),u(void 0),f({isTransitioning:!1})})}),Zu(()=>w(G));return}m?(p&&p.resolve(),m.skipTransition(),y({state:$,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(u($),f({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[n.window,m,p,A,x]);D.useLayoutEffect(()=>n.subscribe(S),[n,S]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new bq)},[c]),D.useEffect(()=>{if(p&&a&&n.window){let $=a,H=p.promise,I=n.window.document.startViewTransition(async()=>{x(()=>i($)),await H});I.finished.finally(()=>{h(void 0),w(void 0),u(void 0),f({isTransitioning:!1})}),w(I)}},[x,a,p,n.window]),D.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,m,o.location,a]),D.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),D.useEffect(()=>{},[]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,H,I)=>n.navigate($,{state:H,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:($,H,I)=>n.navigate($,{replace:!0,state:H,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),P=n.basename||"/",E=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:P}),[n,k,P]),L=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(L4.Provider,{value:E},D.createElement(N4.Provider,{value:o},D.createElement(vq.Provider,{value:A.current},D.createElement(gq.Provider,{value:c},D.createElement(cq,{basename:P,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?D.createElement(Sq,{routes:n.routes,future:n.future,state:o}):t))))),null)}const Sq=D.memo(Eq);function Eq(e){let{routes:t,future:n,state:r}=e;return eq(t,void 0,r,n)}var S3;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(S3||(S3={}));var E3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(E3||(E3={}));var I4={},Wy={exports:{}},wn={},$4={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 Cq(e){return Object.prototype.toString.call(e)}function Aq(e){return Cq(e)==="[object String]"}var Rq=Object.prototype.hasOwnProperty;function F4(e,t){return e?Rq.call(e,t):!1}function kq(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 Tq=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Dq(e){return e.indexOf("\\")<0?e:e.replace(Tq,"$1")}function U4(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 z4(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 Pq=/&([a-z#][a-z0-9]{1,31});/gi,Oq=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,C3=$4;function Lq(e,t){var n=0;return F4(C3,t)?C3[t]:t.charCodeAt(0)===35&&Oq.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),U4(n))?z4(n):e}function Nq(e){return e.indexOf("&")<0?e:e.replace(Pq,Lq)}var Mq=/[&<>"]/,Bq=/[&<>"]/g,Iq={"&":"&","<":"<",">":">",'"':"""};function $q(e){return Iq[e]}function Fq(e){return Mq.test(e)?e.replace(Bq,$q):e}wn.assign=kq;wn.isString=Aq;wn.has=F4;wn.unescapeMd=Dq;wn.isValidEntityCode=U4;wn.fromCodePoint=z4;wn.replaceEntities=Nq;wn.escapeHtml=Fq;var Uq=wn.has,j4=wn.unescapeMd,Kc=wn.replaceEntities,Br=wn.escapeHtml,Pe={};Pe.blockquote_open=function(){return`
+`};Pe.blockquote_close=function(e,t){return"
"+La(e,t)};Pe.code=function(e,t){return e[t].block?"
"+Br(e[t].content)+"
"+La(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(" "),Uq(o.rules.fence_custom,f[0]))return o.rules.fence_custom[f[0]](e,t,n,r,o);c=Br(Kc(j4(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+"
"+La(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?"
":"
")+La(e,t)};Pe.bullet_list_open=function(){return`
    `};Pe.bullet_list_close=function(e,t){return"
"+La(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""+La(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?La(e,t):"")};Pe.link_open=function(e,t,n){var r=e[t].title?' title="'+Br(Kc(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(Kc(e[t].title))+'"':"",i=' alt="'+(e[t].alt?Br(Kc(W4(e[t].alt))):"")+'"',a=n.xhtmlOut?" /":"";return""};Pe.table_open=function(){return` +`};Pe.ordered_list_close=function(e,t){return""+La(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?La(e,t):"")};Pe.link_open=function(e,t,n){var r=e[t].title?' title="'+Br(Kc(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(Kc(e[t].title))+'"':"",i=' alt="'+(e[t].alt?Br(Kc(j4(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` @@ -136,9 +136,9 @@ function print() { __p += __j.call(arguments, '') } `};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 q4(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?q4(e,t+2):t}var La=Pe.getBreak=function(t,n){return n=q4(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var ZH=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=k3(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},eG=wn.unescapeMd,K4=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 aG=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=hG(o),fG.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)}},gG=/['"]/,D3=/['"]/g,vG=/[-\s()\[\]]/,P3="’";function O3(e,t){return t<0||t>=e.length?!1:!vG.test(e[t])}function Ja(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var yG=function(t){var n,r,o,i,a,u,c,f,p,h,m,w,v,y,A,b,x;if(t.options.typographer){for(x=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(b=t.tokens[A].children,x.length=0,n=0;n=0&&!(x[v].level<=c);v--);x.length=v+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=x[v],!(x[v].level=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?V4(e,t+2):t}var La=Pe.getBreak=function(t,n){return n=V4(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var Kq=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=R3(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},Zq=wn.unescapeMd,q4=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 oG=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=fG(o),lG.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)}},pG=/['"]/,T3=/['"]/g,hG=/[-\s()\[\]]/,D3="’";function P3(e,t){return t<0||t>=e.length?!1:!hG.test(e[t])}function Ja(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var mG=function(t){var n,r,o,i,a,u,c,f,p,h,m,w,v,y,A,b,x;if(t.options.typographer){for(x=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(b=t.tokens[A].children,x.length=0,n=0;n=0&&!(x[v].level<=c);v--);x.length=v+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=x[v],!(x[v].levelo&&(i=i??"..",r=r.substring(0,o-i.length)+i),r},indexOf:function(r,o){if(Array.prototype.indexOf)return r.indexOf(o);for(var i=0,a=r.length;i=0;i--)o(r[i])===!0&&r.splice(i,1)},splitAndCapture:function(r,o){if(!o.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i=[],a=0,u;u=o.exec(r);)i.push(r.substring(a,u.index)),i.push(u[0]),a=u.index+u[0].length;return i.push(r.substring(a)),i},trim:function(r){return r.replace(this.trimRegex,"")}},n.HtmlTag=n.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(r){n.Util.assign(this,r),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(r){return this.tagName=r,this},getTagName:function(){return this.tagName||""},setAttr:function(r,o){var i=this.getAttrs();return i[r]=o,this},getAttr:function(r){return this.getAttrs()[r]},setAttrs:function(r){var o=this.getAttrs();return n.Util.assign(o,r),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(r){return this.setAttr("class",r)},addClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;f=c.shift();)a(u,f)===-1&&u.push(f);return this.getAttrs().class=u.join(" "),this},removeClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;u.length&&(f=c.shift());){var p=a(u,f);p!==-1&&u.splice(p,1)}return this.getAttrs().class=u.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(r){return(" "+this.getClass()+" ").indexOf(" "+r+" ")!==-1},setInnerHtml:function(r){return this.innerHtml=r,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var r=this.getTagName(),o=this.buildAttrsStr();return o=o?" "+o:"",["<",r,o,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var r=this.getAttrs(),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+'="'+r[i]+'"');return o.join(" ")}}),n.RegexLib=function(){var r="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",i=r+o,a=new RegExp("["+i+".\\-]*["+i+"\\-]"),u=/(?:travelersinsurance|sandvikcoromant|kerryproperties|cancerresearch|weatherchannel|kerrylogistics|spreadbetting|international|wolterskluwer|lifeinsurance|construction|pamperedchef|scholarships|versicherung|bridgestone|creditunion|kerryhotels|investments|productions|blackfriday|enterprises|lamborghini|photography|motorcycles|williamhill|playstation|contractors|barclaycard|accountants|redumbrella|engineering|management|telefonica|protection|consulting|tatamotors|creditcard|vlaanderen|schaeffler|associates|properties|foundation|republican|bnpparibas|boehringer|eurovision|extraspace|industries|immobilien|university|technology|volkswagen|healthcare|restaurant|cuisinella|vistaprint|apartments|accountant|travelers|homedepot|institute|vacations|furniture|fresenius|insurance|christmas|bloomberg|solutions|barcelona|firestone|financial|kuokgroup|fairwinds|community|passagens|goldpoint|equipment|lifestyle|yodobashi|aquarelle|marketing|analytics|education|amsterdam|statefarm|melbourne|allfinanz|directory|microsoft|stockholm|montblanc|accenture|lancaster|landrover|everbank|istanbul|graphics|grainger|ipiranga|softbank|attorney|pharmacy|saarland|catering|airforce|yokohama|mortgage|frontier|mutuelle|stcgroup|memorial|pictures|football|symantec|cipriani|ventures|telecity|cityeats|verisign|flsmidth|boutique|cleaning|firmdale|clinique|clothing|redstone|infiniti|deloitte|feedback|services|broadway|plumbing|commbank|training|barclays|exchange|computer|brussels|software|delivery|barefoot|builders|business|bargains|engineer|holdings|download|security|helsinki|lighting|movistar|discount|hdfcbank|supplies|marriott|property|diamonds|capetown|partners|democrat|jpmorgan|bradesco|budapest|rexroth|zuerich|shriram|academy|science|support|youtube|singles|surgery|alibaba|statoil|dentist|schwarz|android|cruises|cricket|digital|markets|starhub|systems|courses|coupons|netbank|country|domains|corsica|network|neustar|realtor|lincoln|limited|schmidt|yamaxun|cooking|contact|auction|spiegel|liaison|leclerc|latrobe|lasalle|abogado|compare|lanxess|exposed|express|company|cologne|college|avianca|lacaixa|fashion|recipes|ferrero|komatsu|storage|wanggou|clubmed|sandvik|fishing|fitness|bauhaus|kitchen|flights|florist|flowers|watches|weather|temasek|samsung|bentley|forsale|channel|theater|frogans|theatre|okinawa|website|tickets|jewelry|gallery|tiffany|iselect|shiksha|brother|organic|wedding|genting|toshiba|origins|philips|hyundai|hotmail|hoteles|hosting|rentals|windows|cartier|bugatti|holiday|careers|whoswho|hitachi|panerai|caravan|reviews|guitars|capital|trading|hamburg|hangout|finance|stream|family|abbott|health|review|travel|report|hermes|hiphop|gratis|career|toyota|hockey|dating|repair|google|social|soccer|reisen|global|otsuka|giving|unicom|casino|photos|center|broker|rocher|orange|bostik|garden|insure|ryukyu|bharti|safety|physio|sakura|oracle|online|jaguar|gallup|piaget|tienda|futbol|pictet|joburg|webcam|berlin|office|juegos|kaufen|chanel|chrome|xihuan|church|tennis|circle|kinder|flickr|bayern|claims|clinic|viajes|nowruz|xperia|norton|yachts|studio|coffee|camera|sanofi|nissan|author|expert|events|comsec|lawyer|tattoo|viking|estate|villas|condos|realty|yandex|energy|emerck|virgin|vision|durban|living|school|coupon|london|taobao|natura|taipei|nagoya|luxury|walter|aramco|sydney|madrid|credit|maison|makeup|schule|market|anquan|direct|design|swatch|suzuki|alsace|vuelos|dental|alipay|voyage|shouji|voting|airtel|mutual|degree|supply|agency|museum|mobily|dealer|monash|select|mormon|active|moscow|racing|datsun|quebec|nissay|rodeo|email|gifts|works|photo|chloe|edeka|cheap|earth|vista|tushu|koeln|glass|shoes|globo|tunes|gmail|nokia|space|kyoto|black|ricoh|seven|lamer|sener|epson|cisco|praxi|trust|citic|crown|shell|lease|green|legal|lexus|ninja|tatar|gripe|nikon|group|video|wales|autos|gucci|party|nexus|guide|linde|adult|parts|amica|lixil|boats|azure|loans|locus|cymru|lotte|lotto|stada|click|poker|quest|dabur|lupin|nadex|paris|faith|dance|canon|place|gives|trade|skype|rocks|mango|cloud|boots|smile|final|swiss|homes|honda|media|horse|cards|deals|watch|bosch|house|pizza|miami|osaka|tours|total|xerox|coach|sucks|style|delta|toray|iinet|tools|money|codes|beats|tokyo|salon|archi|movie|baidu|study|actor|yahoo|store|apple|world|forex|today|bible|tmall|tirol|irish|tires|forum|reise|vegas|vodka|sharp|omega|weber|jetzt|audio|promo|build|bingo|chase|gallo|drive|dubai|rehab|press|solar|sale|beer|bbva|bank|band|auto|sapo|sarl|saxo|audi|asia|arte|arpa|army|yoga|ally|zara|scor|scot|sexy|seat|zero|seek|aero|adac|zone|aarp|maif|meet|meme|menu|surf|mini|mobi|mtpc|porn|desi|star|ltda|name|talk|navy|love|loan|live|link|news|limo|like|spot|life|nico|lidl|lgbt|land|taxi|team|tech|kred|kpmg|sony|song|kiwi|kddi|jprs|jobs|sohu|java|itau|tips|info|immo|icbc|hsbc|town|host|page|toys|here|help|pars|haus|guru|guge|tube|goog|golf|gold|sncf|gmbh|gift|ggee|gent|gbiz|game|vana|pics|fund|ford|ping|pink|fish|film|fast|farm|play|fans|fail|plus|skin|pohl|fage|moda|post|erni|dvag|prod|doha|prof|docs|viva|diet|luxe|site|dell|sina|dclk|show|qpon|date|vote|cyou|voto|read|coop|cool|wang|club|city|chat|cern|cash|reit|rent|casa|cars|care|camp|rest|call|cafe|weir|wien|rich|wiki|buzz|wine|book|bond|room|work|rsvp|shia|ruhr|blue|bing|shaw|bike|safe|xbox|best|pwc|mtn|lds|aig|boo|fyi|nra|nrw|ntt|car|gal|obi|zip|aeg|vin|how|one|ong|onl|dad|ooo|bet|esq|org|htc|bar|uol|ibm|ovh|gdn|ice|icu|uno|gea|ifm|bot|top|wtf|lol|day|pet|eus|wtc|ubs|tvs|aco|ing|ltd|ink|tab|abb|afl|cat|int|pid|pin|bid|cba|gle|com|cbn|ads|man|wed|ceb|gmo|sky|ist|gmx|tui|mba|fan|ski|iwc|app|pro|med|ceo|jcb|jcp|goo|dev|men|aaa|meo|pub|jlc|bom|jll|gop|jmp|mil|got|gov|win|jot|mma|joy|trv|red|cfa|cfd|bio|moe|moi|mom|ren|biz|aws|xin|bbc|dnp|buy|kfh|mov|thd|xyz|fit|kia|rio|rip|kim|dog|vet|nyc|bcg|mtr|bcn|bms|bmw|run|bzh|rwe|tel|stc|axa|kpn|fly|krd|cab|bnl|foo|crs|eat|tci|sap|srl|nec|sas|net|cal|sbs|sfr|sca|scb|csc|edu|new|xxx|hiv|fox|wme|ngo|nhk|vip|sex|frl|lat|yun|law|you|tax|soy|sew|om|ac|hu|se|sc|sg|sh|sb|sa|rw|ru|rs|ro|re|qa|py|si|pw|pt|ps|sj|sk|pr|pn|pm|pl|sl|sm|pk|sn|ph|so|pg|pf|pe|pa|zw|nz|nu|nr|np|no|nl|ni|ng|nf|sr|ne|st|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|su|mn|mm|ml|mk|mh|mg|me|sv|md|mc|sx|sy|ma|ly|lv|sz|lu|lt|ls|lr|lk|li|lc|lb|la|tc|kz|td|ky|kw|kr|kp|kn|km|ki|kh|tf|tg|th|kg|ke|jp|jo|jm|je|it|is|ir|tj|tk|tl|tm|iq|tn|to|io|in|im|il|ie|ad|sd|ht|hr|hn|hm|tr|hk|gy|gw|gu|gt|gs|gr|gq|tt|gp|gn|gm|gl|tv|gi|tw|tz|ua|gh|ug|uk|gg|gf|ge|gd|us|uy|uz|va|gb|ga|vc|ve|fr|fo|fm|fk|fj|vg|vi|fi|eu|et|es|er|eg|ee|ec|dz|do|dm|dk|vn|dj|de|cz|cy|cx|cw|vu|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|wf|bz|by|bw|bv|bt|bs|br|bo|bn|bm|bj|bi|ws|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ye|ar|aq|ao|am|al|yt|ai|za|ag|af|ae|zm|id)\b/;return{alphaNumericCharsStr:i,domainNameRegex:a,tldRegex:u}}(),n.AnchorTagBuilder=n.Util.extend(Object,{constructor:function(r){n.Util.assign(this,r)},build:function(r){return new n.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())})},createAttrs:function(r,o){var i={href:o},a=this.createCssClass(r);return a&&(i.class=a),this.newWindow&&(i.target="_blank",i.rel="noopener noreferrer"),i},createCssClass:function(r){var o=this.className;return o?o+" "+o+"-"+r:""},processAnchorText:function(r){return r=this.doTruncate(r),r},doTruncate:function(r){var o=this.truncate;if(!o||!o.length)return r;var i=o.length,a=o.location;return a==="smart"?n.truncate.TruncateSmart(r,i,".."):a==="middle"?n.truncate.TruncateMiddle(r,i,".."):n.truncate.TruncateEnd(r,i,"..")}}),n.htmlParser.HtmlParser=n.Util.extend(Object,{htmlRegex:function(){var r=/!--([\s\S]+?)--/,o=/[0-9a-zA-Z][0-9a-zA-Z:]*/,i=/[^\s"'>\/=\x00-\x1F\x7F]+/,a=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,u=i.source+"(?:\\s*=\\s*"+a.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",u,"|",a.source+")",")*",">",")","|","(?:","<(/)?","(?:",r.source,"|","(?:","("+o.source+")","(?:","(?:\\s+|\\b)",u,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(r){for(var o=this.htmlRegex,i,a=0,u,c=[];(i=o.exec(r))!==null;){var f=i[0],p=i[3],h=i[1]||i[4],m=!!i[2],w=i.index,v=r.substring(a,w);v&&(u=this.parseTextAndEntityNodes(a,v),c.push.apply(c,u)),p?c.push(this.createCommentNode(w,f,p)):c.push(this.createElementNode(w,f,h,m)),a=w+f.length}if(a0&&A==="@")&&!(v>0&&y&&this.wordCharRegExp.test(A))){if(this.matchHasUnbalancedClosingParen(f))f=f.substr(0,f.length-1);else{var b=this.matchHasInvalidCharAfterTld(f,p);b>-1&&(f=f.substr(0,b))}var x=p?"scheme":h?"www":"tld",S=!!p;u.push(new n.match.Url({tagBuilder:a,matchedText:f,offset:v,urlMatchType:x,url:f,protocolUrlMatch:S,protocolRelativeMatch:!!y,stripPrefix:i}))}}return u},matchHasUnbalancedClosingParen:function(r){var o=r.charAt(r.length-1);if(o===")"){var i=r.match(this.openParensRe),a=r.match(this.closeParensRe),u=i&&i.length||0,c=a&&a.length||0;if(u0&&(u=r.substr(-1*Math.floor(a/2))),(r.substr(0,Math.ceil(a/2))+i+u).substr(0,o)},n.truncate.TruncateSmart=function(r,o,i){var a=function(S){var k={},P=S,E=P.match(/^([a-z]+):\/\//i);return E&&(k.scheme=E[1],P=P.substr(E[0].length)),E=P.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(k.host=E[1],P=P.substr(E[0].length)),E=P.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(k.path=E[1],P=P.substr(E[0].length)),E=P.match(/^\?(.*?)(?=(#|$))/i),E&&(k.query=E[1],P=P.substr(E[0].length)),E=P.match(/^#(.*?)$/i),E&&(k.fragment=E[1]),k},u=function(S){var k="";return S.scheme&&S.host&&(k+=S.scheme+"://"),S.host&&(k+=S.host),S.path&&(k+="/"+S.path),S.query&&(k+="?"+S.query),S.fragment&&(k+="#"+S.fragment),k},c=function(S,k){var P=k/2,E=Math.ceil(P),L=-1*Math.floor(P),$="";return L<0&&($=S.substr(L)),S.substr(0,E)+i+$};if(r.length<=o)return r;var f=o-i.length,p=a(r);if(p.query){var h=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(p.query=p.query.substr(0,h[1].length),r=u(p))}if(r.length<=o||(p.host&&(p.host=p.host.replace(/^www\./,""),r=u(p)),r.length<=o))return r;var m="";if(p.host&&(m+=p.host),m.length>=f)return p.host.length==o?(p.host.substr(0,o-i.length)+i).substr(0,o):c(m,f).substr(0,o);var w="";if(p.path&&(w+="/"+p.path),p.query&&(w+="?"+p.query),w)if((m+w).length>=f){if((m+w).length==o)return(m+w).substr(0,o);var v=f-m.length;return(m+c(w,v)).substr(0,o)}else m+=w;if(p.fragment){var y="#"+p.fragment;if((m+y).length>=f){if((m+y).length==o)return(m+y).substr(0,o);var A=f-m.length;return(m+c(y,A)).substr(0,o)}else m+=y}if(p.scheme&&p.host){var b=p.scheme+"://";if((m+b).length0&&(x=m.substr(-1*Math.floor(f/2))),(m.substr(0,Math.ceil(f/2))+i+x).substr(0,o)},n})})(X4);var xG=X4.exports,wG=xG,bG=/www|@|\:\/\//;function _G(e){return/^\s]/i.test(e)}function SG(e){return/^<\/a\s*>/i.test(e)}function EG(){var e=[],t=new wG({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(n,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}var CG=function(t){var n,r,o,i,a,u,c,f,p,h,m,w=t.tokens,v=null,y,A;if(t.options.linkify){for(r=0,o=w.length;r=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="htmltag"&&(_G(a.content)&&m>0&&m--,SG(a.content)&&m++),!(m>0)&&a.type==="text"&&bG.test(a.content)){if(v||(v=EG(),y=v.links,A=v.autolinker),u=a.content,y.length=0,A.link(u),!y.length)continue;for(c=[],h=a.level,f=0;f=this.eMarks[t]};Ma.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Ma.prototype.getLines=function(t,n,r,o){var i,a,u,c,f,p=t;if(t>=n)return"";if(p+1===n)return a=this.bMarks[p]+Math.min(this.tShift[p],r),u=o?this.eMarks[p]+1:this.eMarks[p],this.src.slice(a,u);for(c=new Array(n-t),i=0;pr&&(f=r),f<0&&(f=0),a=this.bMarks[p]+f,p+1=4){o++,i=o;continue}break}return t.line=o,t.tokens.push({type:"code",content:t.getLines(n,i,4+t.blkIndent,!0),block:!0,lines:[n,t.line],level:t.level}),!0},DG=function(t,n,r,o){var i,a,u,c,f,p=!1,h=t.bMarks[n]+t.tShift[n],m=t.eMarks[n];if(h+3>m||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(f=h,h=t.skipChars(h,i),a=h-f,a<3)||(u=t.src.slice(h,m).trim(),u.indexOf("`")>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=f=t.bMarks[c]+t.tShift[c],m=t.eMarks[c],h=4)&&(h=t.skipChars(h,i),!(h-fb||t.src.charCodeAt(A++)!==62||t.level>=t.options.maxNesting)return!1;if(o)return!0;for(t.src.charCodeAt(A)===32&&A++,f=t.blkIndent,t.blkIndent=0,c=[t.bMarks[n]],t.bMarks[n]=A,A=A=b,u=[t.tShift[n]],t.tShift[n]=A-t.bMarks[n],m=t.parser.ruler.getRules("blockquote"),i=n+1;i=b));i++){if(t.src.charCodeAt(A++)===62){t.src.charCodeAt(A)===32&&A++,c.push(t.bMarks[i]),t.bMarks[i]=A,A=A=b,u.push(t.tShift[i]),t.tShift[i]=A-t.bMarks[i];continue}if(a)break;for(y=!1,w=0,v=m.length;wf||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=o||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r=o||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=o)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r=0)b=!0;else if((m=L3(t,n))>=0)b=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(A=t.src.charCodeAt(m-1),o)return!0;for(S=t.tokens.length,b?(h=t.bMarks[n]+t.tShift[n],y=Number(t.src.substr(h,m-h-1)),t.tokens.push({type:"ordered_list_open",order:y,lines:P=[n,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:P=[n,0],level:t.level++}),i=n,k=!1,$=t.parser.ruler.getRules("list");i=w?v=1:v=x-m,v>4&&(v=1),v<1&&(v=1),a=m-t.bMarks[i]+v,t.tokens.push({type:"list_item_open",lines:E=[n,0],level:t.level++}),c=t.blkIndent,f=t.tight,u=t.tShift[n],p=t.parentType,t.tShift[n]=x-t.bMarks[n],t.blkIndent=a,t.tight=!0,t.parentType="list",t.parser.tokenize(t,n,r,!0),(!t.tight||k)&&(L=!1),k=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[n]=u,t.tight=f,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),i=n=t.line,E[1]=i,x=t.bMarks[n],!(i>=r||t.isEmpty(i)||t.tShift[i]h||t.src.charCodeAt(p)!==91||t.src.charCodeAt(p+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=p+2;c=h||t.src.charCodeAt(++c)!==58?!1:(o||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),f=t.src.slice(p+2,c-2),t.env.footnotes.refs[":"+f]=-1,t.tokens.push({type:"footnote_reference_open",label:f,level:t.level++}),i=t.bMarks[n],a=t.tShift[n],u=t.parentType,t.tShift[n]=t.skipSpaces(c)-c,t.bMarks[n]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[n]=f||(i=t.src.charCodeAt(c),i!==35||c>=f))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&t.src.charCodeAt(u-1)===32&&(f=u),t.line=n+1,t.tokens.push({type:"heading_open",hLevel:a,lines:[n,t.line],level:t.level}),c=r||t.tShift[u]3||(i=t.bMarks[u]+t.tShift[u],a=t.eMarks[u],i>=a)||(o=t.src.charCodeAt(i),o!==45&&o!==61)||(i=t.skipChars(i,o),i=t.skipSpaces(i),i]/,zG=/^<\/([a-zA-Z]{1,15})[\s>]/;function jG(e){var t=e|32;return t>=97&&t<=122}var VG=function(t,n,r,o){var i,a,u,c=t.bMarks[n],f=t.eMarks[n],p=t.tShift[n];if(c+=p,!t.options.html||p>3||c+2>=f||t.src.charCodeAt(c)!==60)return!1;if(i=t.src.charCodeAt(c+1),i===33||i===63){if(o)return!0}else if(i===47||jG(i)){if(i===47){if(a=t.src.slice(c,f).match(zG),!a)return!1}else if(a=t.src.slice(c,f).match(UG),!a)return!1;if(FG[a[1].toLowerCase()]!==!0)return!1;if(o)return!0}else return!1;for(u=n+1;ur||(f=n+1,t.tShift[f]=t.eMarks[f])||(i=t.src.charCodeAt(u),i!==124&&i!==45&&i!==58)||(a=cv(t,n+1),!/^[-:| ]+$/.test(a))||(p=a.split("|"),p<=2))return!1;for(m=[],c=0;c=i||(r=e.src.charCodeAt(o++),r!==126&&r!==58)||(n=e.skipSpaces(o),o===n)||n>=i?-1:n}function qG(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(h=n+1,t.isEmpty(h)&&++h>r||t.tShift[h]=t.options.maxNesting)return!1;p=t.tokens.length,t.tokens.push({type:"dl_open",lines:f=[n,0],level:t.level++}),u=n,a=h;e:for(;;){for(x=!0,b=!1,t.tokens.push({type:"dt_open",lines:[u,u],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(u,u+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[u,u],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[h,0],level:t.level++}),A=t.tight,w=t.ddIndent,m=t.blkIndent,y=t.tShift[a],v=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=i-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||b)&&(x=!1),b=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=y,t.tight=A,t.parentType=v,t.blkIndent=m,t.ddIndent=w,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=h=t.line,h>=r||t.tShift[h]=r||(u=h,t.isEmpty(u))||t.tShift[u]=r)||(t.isEmpty(a)&&a++,a>=r)||t.tShift[a]3)){for(i=!1,a=0,u=f.length;a=n||e.tShift[i]=0&&(e=e.replace(XG,function(u,c){var f;return e.charCodeAt(c)===10?(i=c+1,a=0,u):(f=" ".slice((c-i-a)%4),a=c-i+1,f)})),o=new YG(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};var JG=Ky;function eK(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}var tK=function(t,n){for(var r=t.pos;r=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var a=r-2;a>=0;a--)if(t.pending.charCodeAt(a)!==32){t.pending=t.pending.substring(0,a+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){Yy[e.charCodeAt(0)]=1});var rK=function(t,n){var r,o=t.pos,i=t.posMax;if(t.src.charCodeAt(o)!==92)return!1;if(o++,o=a||t.src.charCodeAt(u+1)!==126||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===126)||f===126||f===32||f===10)return!1;for(o=u+2;ou+3)return t.pos+=o-u,n||(t.pending+=t.src.slice(u,o)),!0;for(t.pos=u+2,i=1;t.pos+1=a||t.src.charCodeAt(u+1)!==43||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===43)||f===43||f===32||f===10)return!1;for(o=u+2;o=a||t.src.charCodeAt(u+1)!==61||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===61)||f===61||f===32||f===10)return!1;for(o=u+2;o=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function I3(e,t){var n=t,r,o,i,a=!0,u=!0,c=e.posMax,f=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n=c&&(a=!1),i=n-t,i>=4?a=u=!1:(o=n=t.options.maxNesting)return!1;for(t.pos=h+r,c=[r];t.pos?@[\]^_`{|}~-])/g,cK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==126||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos?@[\]^_`{|}~-])/g,dK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==94||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos=t.options.maxNesting||(r=v+1,o=$3(t,v),o<0))return!1;if(c=o+1,c=w)return!1;for(v=c,pK(t,c)?(a=t.linkContent,c=t.pos):a="",v=c;c=w||t.src.charCodeAt(c)!==41)return t.pos=m,!1;c++}else{if(t.linkLevel>0)return!1;for(;c=0?i=t.src.slice(v,c++):c=v-1),i||(typeof i>"u"&&(c=o+1),i=t.src.slice(r,o)),f=t.env.references[mK(i)],!f)return t.pos=m,!1;a=f.href,u=f.title}return n||(t.pos=r,t.posMax=o,h?t.push({type:"image",src:a,title:u,alt:t.src.substr(r,o-r),level:t.level}):(t.push({type:"link_open",href:a,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=w,!0},vK=y0,yK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;return c+2>=u||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,o=vK(t,c+1),o<0)?!1:(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=o,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,a=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(a)},t.linkLevel--),t.pos=o+1,t.posMax=u,!0)},xK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;if(c+3>u||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=c+2;o=u||(o++,r=t.src.slice(c+2,o-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(n||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:a,level:t.level})),t.pos=o,t.posMax=u,!0)},wK=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],bK=wK,F3=H4,_K=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,SK=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/,EK=function(t,n){var r,o,i,a,u,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(o=r.match(SK),o?bK.indexOf(o[1].toLowerCase())<0||(a=o[0].slice(1,-1),u=F3(a),!t.parser.validateLink(a))?!1:(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0):(i=r.match(_K),i?(a=i[0].slice(1,-1),u=F3("mailto:"+a),t.parser.validateLink(u)?(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))},J4={};function x0(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var CK=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,AK=/[^"'=<>`\x00-\x20]+/,RK=/'[^']*'/,kK=/"[^"]*"/,TK=x0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",AK)("single_quoted",RK)("double_quoted",kK)(),DK=x0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",CK)("attr_value",TK)(),PK=x0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",DK)(),OK=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,LK=/|/,MK=/<[?].*?[?]>/,NK=/]*>/,BK=//,IK=x0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",PK)("close_tag",OK)("comment",LK)("processing",MK)("declaration",NK)("cdata",BK)();J4.HTML_TAG_RE=IK;var $K=J4.HTML_TAG_RE;function FK(e){var t=e|32;return t>=97&&t<=122}var UK=function(t,n){var r,o,i,a=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!FK(r))||(o=t.src.slice(a).match($K),!o)?!1:(n||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)},U3=U4,zK=wn.has,jK=wn.isValidEntityCode,z3=wn.fromCodePoint,VK=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,WK=/^&([a-z][a-z0-9]{1,31});/i,qK=function(t,n){var r,o,i,a=t.pos,u=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+10){e.pos=i;return}for(o=0;o=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};w0.prototype.parse=function(e,t,n,r){var o=new GK(e,this,t,n,r);this.tokenize(o)};function YK(e){var t=["vbscript","javascript","file","data"],n=e.trim().toLowerCase();return n=KK.replaceEntities(n),!(n.indexOf(":")!==-1&&t.indexOf(n.split(":")[0])!==-1)}var XK=w0,ZK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},QK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},JK={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},eY=wn.assign,tY=HH,nY=RG,rY=JG,oY=XK,iY=v0,sY={default:ZK,full:QK,commonmark:JK};function ek(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Is(e,t){typeof e!="string"&&(t=e,e="default"),this.inline=new oY,this.block=new rY,this.core=new nY,this.renderer=new tY,this.ruler=new iY,this.options={},this.configure(sY[e]),this.set(t||{})}Is.prototype.set=function(e){eY(this.options,e)};Is.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})};Is.prototype.use=function(e,t){return e(this,t),this};Is.prototype.parse=function(e,t){var n=new ek(this,e,t);return this.core.process(n),n.tokens};Is.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Is.prototype.parseInline=function(e,t){var n=new ek(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Is.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};qy.exports=Is;qy.exports.utils=wn;var aY=qy.exports,lY=aY,tk={exports:{}},uY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cY=uY,fY=cY;function nk(){}function rk(){}rk.resetWarningCache=nk;var dY=function(){function e(r,o,i,a,u,c){if(c!==fY){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rk,resetWarningCache:nk};return n.PropTypes=n,n};tk.exports=dY();var yo=tk.exports;const pY=l2(yo);Object.defineProperty(F4,"__esModule",{value:!0});var hY=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var ik=function(t){var n=t.markdown,r=t.options;r=r===void 0?{}:r;var o=r.preset,i=j3(r,["preset"]),a=j3(t,["markdown","options"]),u=new yY.default(o||"default",i),c=u.render(n);return gY.default.createElement("div",hY({},a,{dangerouslySetInnerHTML:{__html:c}}))};ik.propTypes={markdown:yo.string.isRequired,options:yo.shape({preset:yo.oneOf(["default","commonmark","full"]),html:yo.bool,xhtmlOut:yo.bool,breaks:yo.bool,langPrefix:yo.string,linkify:yo.bool,typographer:yo.bool,quotes:yo.string,highlight:yo.func})};var sk=F4.default=ik;const Yc={black:"#000",white:"#fff"},el={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},tl={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},nl={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},rl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ol={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xY={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ks(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?tr(pu,--Fr):0,Jl--,Mn===10&&(Jl=1,_0--),Mn}function Jr(){return Mn=Fr2||Zc(Mn)>3?"":" "}function IY(e,t){for(;--t&&Jr()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return Cf(e,Rp()+(t<6&&hi()==32&&Jr()==32))}function H1(e){for(;Jr();)switch(Mn){case e:return Fr;case 34:case 39:e!==34&&e!==39&&H1(Mn);break;case 40:e===41&&H1(e);break;case 92:Jr();break}return Fr}function $Y(e,t){for(;Jr()&&e+Mn!==57;)if(e+Mn===84&&hi()===47)break;return"/*"+Cf(t,Fr-1)+"*"+b0(e===47?e:Jr())}function FY(e){for(;!Zc(hi());)Jr();return Cf(e,Fr)}function UY(e){return pk(Tp("",null,null,null,[""],e=dk(e),0,[0],e))}function Tp(e,t,n,r,o,i,a,u,c){for(var f=0,p=0,h=a,m=0,w=0,v=0,y=1,A=1,b=1,x=0,S="",k=o,P=i,E=r,L=S;A;)switch(v=x,x=Jr()){case 40:if(v!=108&&tr(L,h-1)==58){q1(L+=Pt(kp(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:L+=kp(x);break;case 9:case 10:case 13:case 32:L+=BY(v);break;case 92:L+=IY(Rp()-1,7);continue;case 47:switch(hi()){case 42:case 47:Qd(zY($Y(Jr(),Rp()),t,n),c);break;default:L+="/"}break;case 123*y:u[f++]=ui(L)*b;case 125*y:case 59:case 0:switch(x){case 0:case 125:A=0;case 59+p:b==-1&&(L=Pt(L,/\f/g,"")),w>0&&ui(L)-h&&Qd(w>32?W3(L+";",r,n,h-1):W3(Pt(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Qd(E=V3(L,t,n,f,p,o,u,S,k=[],P=[],h),i),x===123)if(p===0)Tp(L,t,E,E,k,i,h,u,P);else switch(m===99&&tr(L,3)===110?100:m){case 100:case 108:case 109:case 115:Tp(e,E,E,r&&Qd(V3(e,E,E,0,0,o,u,S,o,k=[],h),P),o,P,h,u,r?k:P);break;default:Tp(L,E,E,E,[""],P,0,u,P)}}f=p=w=0,y=b=1,S=L="",h=a;break;case 58:h=1+ui(L),w=v;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&NY()==125)continue}switch(L+=b0(x),x*y){case 38:b=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(ui(L)-1)*b,b=1;break;case 64:hi()===45&&(L+=kp(Jr())),m=hi(),p=h=ui(S=L+=FY(Rp())),x++;break;case 45:v===45&&ui(L)==2&&(y=0)}}return i}function V3(e,t,n,r,o,i,a,u,c,f,p){for(var h=o-1,m=o===0?i:[""],w=Qy(m),v=0,y=0,A=0;v0?m[b]+" "+x:Pt(x,/&\f/g,m[b])))&&(c[A++]=S);return S0(e,t,n,o===0?Xy:u,c,f,p)}function zY(e,t,n){return S0(e,t,n,lk,b0(MY()),Xc(e,2,-2),0)}function W3(e,t,n,r){return S0(e,t,n,Zy,Xc(e,0,r),Xc(e,r+1,-1),r)}function Nl(e,t){for(var n="",r=Qy(e),o=0;o6)switch(tr(e,t+1)){case 109:if(tr(e,t+4)!==45)break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+Dt+"$2-$3$1"+hh+(tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~q1(e,"stretch")?hk(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tr(e,t+1)!==115)break;case 6444:switch(tr(e,ui(e)-3-(~q1(e,"!important")&&10))){case 107:return Pt(e,":",":"+Dt)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Dt+(tr(e,14)===45?"inline-":"")+"box$3$1"+Dt+"$2$3$1"+fr+"$2box$3")+e}break;case 5936:switch(tr(e,t+11)){case 114:return Dt+e+fr+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dt+e+fr+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dt+e+fr+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Dt+e+fr+e+e}return e}var XY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Zy:t.return=hk(t.value,t.length);break;case uk:return Nl([Ju(t,{value:Pt(t.value,"@","@"+Dt)})],o);case Xy:if(t.length)return LY(t.props,function(i){switch(OY(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nl([Ju(t,{props:[Pt(i,/:(read-\w+)/,":"+hh+"$1")]})],o);case"::placeholder":return Nl([Ju(t,{props:[Pt(i,/:(plac\w+)/,":"+Dt+"input-$1")]}),Ju(t,{props:[Pt(i,/:(plac\w+)/,":"+hh+"$1")]}),Ju(t,{props:[Pt(i,/:(plac\w+)/,fr+"input-$1")]})],o)}return""})}},ZY=[XY],mk=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var A=y.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||ZY,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var A=y.getAttribute("data-emotion").split(" "),b=1;bo&&(i=i??"..",r=r.substring(0,o-i.length)+i),r},indexOf:function(r,o){if(Array.prototype.indexOf)return r.indexOf(o);for(var i=0,a=r.length;i=0;i--)o(r[i])===!0&&r.splice(i,1)},splitAndCapture:function(r,o){if(!o.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i=[],a=0,u;u=o.exec(r);)i.push(r.substring(a,u.index)),i.push(u[0]),a=u.index+u[0].length;return i.push(r.substring(a)),i},trim:function(r){return r.replace(this.trimRegex,"")}},n.HtmlTag=n.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(r){n.Util.assign(this,r),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(r){return this.tagName=r,this},getTagName:function(){return this.tagName||""},setAttr:function(r,o){var i=this.getAttrs();return i[r]=o,this},getAttr:function(r){return this.getAttrs()[r]},setAttrs:function(r){var o=this.getAttrs();return n.Util.assign(o,r),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(r){return this.setAttr("class",r)},addClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;f=c.shift();)a(u,f)===-1&&u.push(f);return this.getAttrs().class=u.join(" "),this},removeClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;u.length&&(f=c.shift());){var p=a(u,f);p!==-1&&u.splice(p,1)}return this.getAttrs().class=u.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(r){return(" "+this.getClass()+" ").indexOf(" "+r+" ")!==-1},setInnerHtml:function(r){return this.innerHtml=r,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var r=this.getTagName(),o=this.buildAttrsStr();return o=o?" "+o:"",["<",r,o,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var r=this.getAttrs(),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+'="'+r[i]+'"');return o.join(" ")}}),n.RegexLib=function(){var r="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",i=r+o,a=new RegExp("["+i+".\\-]*["+i+"\\-]"),u=/(?:travelersinsurance|sandvikcoromant|kerryproperties|cancerresearch|weatherchannel|kerrylogistics|spreadbetting|international|wolterskluwer|lifeinsurance|construction|pamperedchef|scholarships|versicherung|bridgestone|creditunion|kerryhotels|investments|productions|blackfriday|enterprises|lamborghini|photography|motorcycles|williamhill|playstation|contractors|barclaycard|accountants|redumbrella|engineering|management|telefonica|protection|consulting|tatamotors|creditcard|vlaanderen|schaeffler|associates|properties|foundation|republican|bnpparibas|boehringer|eurovision|extraspace|industries|immobilien|university|technology|volkswagen|healthcare|restaurant|cuisinella|vistaprint|apartments|accountant|travelers|homedepot|institute|vacations|furniture|fresenius|insurance|christmas|bloomberg|solutions|barcelona|firestone|financial|kuokgroup|fairwinds|community|passagens|goldpoint|equipment|lifestyle|yodobashi|aquarelle|marketing|analytics|education|amsterdam|statefarm|melbourne|allfinanz|directory|microsoft|stockholm|montblanc|accenture|lancaster|landrover|everbank|istanbul|graphics|grainger|ipiranga|softbank|attorney|pharmacy|saarland|catering|airforce|yokohama|mortgage|frontier|mutuelle|stcgroup|memorial|pictures|football|symantec|cipriani|ventures|telecity|cityeats|verisign|flsmidth|boutique|cleaning|firmdale|clinique|clothing|redstone|infiniti|deloitte|feedback|services|broadway|plumbing|commbank|training|barclays|exchange|computer|brussels|software|delivery|barefoot|builders|business|bargains|engineer|holdings|download|security|helsinki|lighting|movistar|discount|hdfcbank|supplies|marriott|property|diamonds|capetown|partners|democrat|jpmorgan|bradesco|budapest|rexroth|zuerich|shriram|academy|science|support|youtube|singles|surgery|alibaba|statoil|dentist|schwarz|android|cruises|cricket|digital|markets|starhub|systems|courses|coupons|netbank|country|domains|corsica|network|neustar|realtor|lincoln|limited|schmidt|yamaxun|cooking|contact|auction|spiegel|liaison|leclerc|latrobe|lasalle|abogado|compare|lanxess|exposed|express|company|cologne|college|avianca|lacaixa|fashion|recipes|ferrero|komatsu|storage|wanggou|clubmed|sandvik|fishing|fitness|bauhaus|kitchen|flights|florist|flowers|watches|weather|temasek|samsung|bentley|forsale|channel|theater|frogans|theatre|okinawa|website|tickets|jewelry|gallery|tiffany|iselect|shiksha|brother|organic|wedding|genting|toshiba|origins|philips|hyundai|hotmail|hoteles|hosting|rentals|windows|cartier|bugatti|holiday|careers|whoswho|hitachi|panerai|caravan|reviews|guitars|capital|trading|hamburg|hangout|finance|stream|family|abbott|health|review|travel|report|hermes|hiphop|gratis|career|toyota|hockey|dating|repair|google|social|soccer|reisen|global|otsuka|giving|unicom|casino|photos|center|broker|rocher|orange|bostik|garden|insure|ryukyu|bharti|safety|physio|sakura|oracle|online|jaguar|gallup|piaget|tienda|futbol|pictet|joburg|webcam|berlin|office|juegos|kaufen|chanel|chrome|xihuan|church|tennis|circle|kinder|flickr|bayern|claims|clinic|viajes|nowruz|xperia|norton|yachts|studio|coffee|camera|sanofi|nissan|author|expert|events|comsec|lawyer|tattoo|viking|estate|villas|condos|realty|yandex|energy|emerck|virgin|vision|durban|living|school|coupon|london|taobao|natura|taipei|nagoya|luxury|walter|aramco|sydney|madrid|credit|maison|makeup|schule|market|anquan|direct|design|swatch|suzuki|alsace|vuelos|dental|alipay|voyage|shouji|voting|airtel|mutual|degree|supply|agency|museum|mobily|dealer|monash|select|mormon|active|moscow|racing|datsun|quebec|nissay|rodeo|email|gifts|works|photo|chloe|edeka|cheap|earth|vista|tushu|koeln|glass|shoes|globo|tunes|gmail|nokia|space|kyoto|black|ricoh|seven|lamer|sener|epson|cisco|praxi|trust|citic|crown|shell|lease|green|legal|lexus|ninja|tatar|gripe|nikon|group|video|wales|autos|gucci|party|nexus|guide|linde|adult|parts|amica|lixil|boats|azure|loans|locus|cymru|lotte|lotto|stada|click|poker|quest|dabur|lupin|nadex|paris|faith|dance|canon|place|gives|trade|skype|rocks|mango|cloud|boots|smile|final|swiss|homes|honda|media|horse|cards|deals|watch|bosch|house|pizza|miami|osaka|tours|total|xerox|coach|sucks|style|delta|toray|iinet|tools|money|codes|beats|tokyo|salon|archi|movie|baidu|study|actor|yahoo|store|apple|world|forex|today|bible|tmall|tirol|irish|tires|forum|reise|vegas|vodka|sharp|omega|weber|jetzt|audio|promo|build|bingo|chase|gallo|drive|dubai|rehab|press|solar|sale|beer|bbva|bank|band|auto|sapo|sarl|saxo|audi|asia|arte|arpa|army|yoga|ally|zara|scor|scot|sexy|seat|zero|seek|aero|adac|zone|aarp|maif|meet|meme|menu|surf|mini|mobi|mtpc|porn|desi|star|ltda|name|talk|navy|love|loan|live|link|news|limo|like|spot|life|nico|lidl|lgbt|land|taxi|team|tech|kred|kpmg|sony|song|kiwi|kddi|jprs|jobs|sohu|java|itau|tips|info|immo|icbc|hsbc|town|host|page|toys|here|help|pars|haus|guru|guge|tube|goog|golf|gold|sncf|gmbh|gift|ggee|gent|gbiz|game|vana|pics|fund|ford|ping|pink|fish|film|fast|farm|play|fans|fail|plus|skin|pohl|fage|moda|post|erni|dvag|prod|doha|prof|docs|viva|diet|luxe|site|dell|sina|dclk|show|qpon|date|vote|cyou|voto|read|coop|cool|wang|club|city|chat|cern|cash|reit|rent|casa|cars|care|camp|rest|call|cafe|weir|wien|rich|wiki|buzz|wine|book|bond|room|work|rsvp|shia|ruhr|blue|bing|shaw|bike|safe|xbox|best|pwc|mtn|lds|aig|boo|fyi|nra|nrw|ntt|car|gal|obi|zip|aeg|vin|how|one|ong|onl|dad|ooo|bet|esq|org|htc|bar|uol|ibm|ovh|gdn|ice|icu|uno|gea|ifm|bot|top|wtf|lol|day|pet|eus|wtc|ubs|tvs|aco|ing|ltd|ink|tab|abb|afl|cat|int|pid|pin|bid|cba|gle|com|cbn|ads|man|wed|ceb|gmo|sky|ist|gmx|tui|mba|fan|ski|iwc|app|pro|med|ceo|jcb|jcp|goo|dev|men|aaa|meo|pub|jlc|bom|jll|gop|jmp|mil|got|gov|win|jot|mma|joy|trv|red|cfa|cfd|bio|moe|moi|mom|ren|biz|aws|xin|bbc|dnp|buy|kfh|mov|thd|xyz|fit|kia|rio|rip|kim|dog|vet|nyc|bcg|mtr|bcn|bms|bmw|run|bzh|rwe|tel|stc|axa|kpn|fly|krd|cab|bnl|foo|crs|eat|tci|sap|srl|nec|sas|net|cal|sbs|sfr|sca|scb|csc|edu|new|xxx|hiv|fox|wme|ngo|nhk|vip|sex|frl|lat|yun|law|you|tax|soy|sew|om|ac|hu|se|sc|sg|sh|sb|sa|rw|ru|rs|ro|re|qa|py|si|pw|pt|ps|sj|sk|pr|pn|pm|pl|sl|sm|pk|sn|ph|so|pg|pf|pe|pa|zw|nz|nu|nr|np|no|nl|ni|ng|nf|sr|ne|st|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|su|mn|mm|ml|mk|mh|mg|me|sv|md|mc|sx|sy|ma|ly|lv|sz|lu|lt|ls|lr|lk|li|lc|lb|la|tc|kz|td|ky|kw|kr|kp|kn|km|ki|kh|tf|tg|th|kg|ke|jp|jo|jm|je|it|is|ir|tj|tk|tl|tm|iq|tn|to|io|in|im|il|ie|ad|sd|ht|hr|hn|hm|tr|hk|gy|gw|gu|gt|gs|gr|gq|tt|gp|gn|gm|gl|tv|gi|tw|tz|ua|gh|ug|uk|gg|gf|ge|gd|us|uy|uz|va|gb|ga|vc|ve|fr|fo|fm|fk|fj|vg|vi|fi|eu|et|es|er|eg|ee|ec|dz|do|dm|dk|vn|dj|de|cz|cy|cx|cw|vu|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|wf|bz|by|bw|bv|bt|bs|br|bo|bn|bm|bj|bi|ws|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ye|ar|aq|ao|am|al|yt|ai|za|ag|af|ae|zm|id)\b/;return{alphaNumericCharsStr:i,domainNameRegex:a,tldRegex:u}}(),n.AnchorTagBuilder=n.Util.extend(Object,{constructor:function(r){n.Util.assign(this,r)},build:function(r){return new n.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())})},createAttrs:function(r,o){var i={href:o},a=this.createCssClass(r);return a&&(i.class=a),this.newWindow&&(i.target="_blank",i.rel="noopener noreferrer"),i},createCssClass:function(r){var o=this.className;return o?o+" "+o+"-"+r:""},processAnchorText:function(r){return r=this.doTruncate(r),r},doTruncate:function(r){var o=this.truncate;if(!o||!o.length)return r;var i=o.length,a=o.location;return a==="smart"?n.truncate.TruncateSmart(r,i,".."):a==="middle"?n.truncate.TruncateMiddle(r,i,".."):n.truncate.TruncateEnd(r,i,"..")}}),n.htmlParser.HtmlParser=n.Util.extend(Object,{htmlRegex:function(){var r=/!--([\s\S]+?)--/,o=/[0-9a-zA-Z][0-9a-zA-Z:]*/,i=/[^\s"'>\/=\x00-\x1F\x7F]+/,a=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,u=i.source+"(?:\\s*=\\s*"+a.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",u,"|",a.source+")",")*",">",")","|","(?:","<(/)?","(?:",r.source,"|","(?:","("+o.source+")","(?:","(?:\\s+|\\b)",u,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(r){for(var o=this.htmlRegex,i,a=0,u,c=[];(i=o.exec(r))!==null;){var f=i[0],p=i[3],h=i[1]||i[4],m=!!i[2],w=i.index,v=r.substring(a,w);v&&(u=this.parseTextAndEntityNodes(a,v),c.push.apply(c,u)),p?c.push(this.createCommentNode(w,f,p)):c.push(this.createElementNode(w,f,h,m)),a=w+f.length}if(a0&&A==="@")&&!(v>0&&y&&this.wordCharRegExp.test(A))){if(this.matchHasUnbalancedClosingParen(f))f=f.substr(0,f.length-1);else{var b=this.matchHasInvalidCharAfterTld(f,p);b>-1&&(f=f.substr(0,b))}var x=p?"scheme":h?"www":"tld",S=!!p;u.push(new n.match.Url({tagBuilder:a,matchedText:f,offset:v,urlMatchType:x,url:f,protocolUrlMatch:S,protocolRelativeMatch:!!y,stripPrefix:i}))}}return u},matchHasUnbalancedClosingParen:function(r){var o=r.charAt(r.length-1);if(o===")"){var i=r.match(this.openParensRe),a=r.match(this.closeParensRe),u=i&&i.length||0,c=a&&a.length||0;if(u0&&(u=r.substr(-1*Math.floor(a/2))),(r.substr(0,Math.ceil(a/2))+i+u).substr(0,o)},n.truncate.TruncateSmart=function(r,o,i){var a=function(S){var k={},P=S,E=P.match(/^([a-z]+):\/\//i);return E&&(k.scheme=E[1],P=P.substr(E[0].length)),E=P.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(k.host=E[1],P=P.substr(E[0].length)),E=P.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(k.path=E[1],P=P.substr(E[0].length)),E=P.match(/^\?(.*?)(?=(#|$))/i),E&&(k.query=E[1],P=P.substr(E[0].length)),E=P.match(/^#(.*?)$/i),E&&(k.fragment=E[1]),k},u=function(S){var k="";return S.scheme&&S.host&&(k+=S.scheme+"://"),S.host&&(k+=S.host),S.path&&(k+="/"+S.path),S.query&&(k+="?"+S.query),S.fragment&&(k+="#"+S.fragment),k},c=function(S,k){var P=k/2,E=Math.ceil(P),L=-1*Math.floor(P),$="";return L<0&&($=S.substr(L)),S.substr(0,E)+i+$};if(r.length<=o)return r;var f=o-i.length,p=a(r);if(p.query){var h=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(p.query=p.query.substr(0,h[1].length),r=u(p))}if(r.length<=o||(p.host&&(p.host=p.host.replace(/^www\./,""),r=u(p)),r.length<=o))return r;var m="";if(p.host&&(m+=p.host),m.length>=f)return p.host.length==o?(p.host.substr(0,o-i.length)+i).substr(0,o):c(m,f).substr(0,o);var w="";if(p.path&&(w+="/"+p.path),p.query&&(w+="?"+p.query),w)if((m+w).length>=f){if((m+w).length==o)return(m+w).substr(0,o);var v=f-m.length;return(m+c(w,v)).substr(0,o)}else m+=w;if(p.fragment){var y="#"+p.fragment;if((m+y).length>=f){if((m+y).length==o)return(m+y).substr(0,o);var A=f-m.length;return(m+c(y,A)).substr(0,o)}else m+=y}if(p.scheme&&p.host){var b=p.scheme+"://";if((m+b).length0&&(x=m.substr(-1*Math.floor(f/2))),(m.substr(0,Math.ceil(f/2))+i+x).substr(0,o)},n})})(K4);var gG=K4.exports,vG=gG,yG=/www|@|\:\/\//;function xG(e){return/^\s]/i.test(e)}function wG(e){return/^<\/a\s*>/i.test(e)}function bG(){var e=[],t=new vG({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(n,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}var _G=function(t){var n,r,o,i,a,u,c,f,p,h,m,w=t.tokens,v=null,y,A;if(t.options.linkify){for(r=0,o=w.length;r=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="htmltag"&&(xG(a.content)&&m>0&&m--,wG(a.content)&&m++),!(m>0)&&a.type==="text"&&yG.test(a.content)){if(v||(v=bG(),y=v.links,A=v.autolinker),u=a.content,y.length=0,A.link(u),!y.length)continue;for(c=[],h=a.level,f=0;f=this.eMarks[t]};Na.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Na.prototype.getLines=function(t,n,r,o){var i,a,u,c,f,p=t;if(t>=n)return"";if(p+1===n)return a=this.bMarks[p]+Math.min(this.tShift[p],r),u=o?this.eMarks[p]+1:this.eMarks[p],this.src.slice(a,u);for(c=new Array(n-t),i=0;pr&&(f=r),f<0&&(f=0),a=this.bMarks[p]+f,p+1=4){o++,i=o;continue}break}return t.line=o,t.tokens.push({type:"code",content:t.getLines(n,i,4+t.blkIndent,!0),block:!0,lines:[n,t.line],level:t.level}),!0},RG=function(t,n,r,o){var i,a,u,c,f,p=!1,h=t.bMarks[n]+t.tShift[n],m=t.eMarks[n];if(h+3>m||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(f=h,h=t.skipChars(h,i),a=h-f,a<3)||(u=t.src.slice(h,m).trim(),u.indexOf("`")>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=f=t.bMarks[c]+t.tShift[c],m=t.eMarks[c],h=4)&&(h=t.skipChars(h,i),!(h-fb||t.src.charCodeAt(A++)!==62||t.level>=t.options.maxNesting)return!1;if(o)return!0;for(t.src.charCodeAt(A)===32&&A++,f=t.blkIndent,t.blkIndent=0,c=[t.bMarks[n]],t.bMarks[n]=A,A=A=b,u=[t.tShift[n]],t.tShift[n]=A-t.bMarks[n],m=t.parser.ruler.getRules("blockquote"),i=n+1;i=b));i++){if(t.src.charCodeAt(A++)===62){t.src.charCodeAt(A)===32&&A++,c.push(t.bMarks[i]),t.bMarks[i]=A,A=A=b,u.push(t.tShift[i]),t.tShift[i]=A-t.bMarks[i];continue}if(a)break;for(y=!1,w=0,v=m.length;wf||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=o||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r=o||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=o)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r=0)b=!0;else if((m=O3(t,n))>=0)b=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(A=t.src.charCodeAt(m-1),o)return!0;for(S=t.tokens.length,b?(h=t.bMarks[n]+t.tShift[n],y=Number(t.src.substr(h,m-h-1)),t.tokens.push({type:"ordered_list_open",order:y,lines:P=[n,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:P=[n,0],level:t.level++}),i=n,k=!1,$=t.parser.ruler.getRules("list");i=w?v=1:v=x-m,v>4&&(v=1),v<1&&(v=1),a=m-t.bMarks[i]+v,t.tokens.push({type:"list_item_open",lines:E=[n,0],level:t.level++}),c=t.blkIndent,f=t.tight,u=t.tShift[n],p=t.parentType,t.tShift[n]=x-t.bMarks[n],t.blkIndent=a,t.tight=!0,t.parentType="list",t.parser.tokenize(t,n,r,!0),(!t.tight||k)&&(L=!1),k=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[n]=u,t.tight=f,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),i=n=t.line,E[1]=i,x=t.bMarks[n],!(i>=r||t.isEmpty(i)||t.tShift[i]h||t.src.charCodeAt(p)!==91||t.src.charCodeAt(p+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=p+2;c=h||t.src.charCodeAt(++c)!==58?!1:(o||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),f=t.src.slice(p+2,c-2),t.env.footnotes.refs[":"+f]=-1,t.tokens.push({type:"footnote_reference_open",label:f,level:t.level++}),i=t.bMarks[n],a=t.tShift[n],u=t.parentType,t.tShift[n]=t.skipSpaces(c)-c,t.bMarks[n]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[n]=f||(i=t.src.charCodeAt(c),i!==35||c>=f))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&t.src.charCodeAt(u-1)===32&&(f=u),t.line=n+1,t.tokens.push({type:"heading_open",hLevel:a,lines:[n,t.line],level:t.level}),c=r||t.tShift[u]3||(i=t.bMarks[u]+t.tShift[u],a=t.eMarks[u],i>=a)||(o=t.src.charCodeAt(i),o!==45&&o!==61)||(i=t.skipChars(i,o),i=t.skipSpaces(i),i]/,$G=/^<\/([a-zA-Z]{1,15})[\s>]/;function FG(e){var t=e|32;return t>=97&&t<=122}var UG=function(t,n,r,o){var i,a,u,c=t.bMarks[n],f=t.eMarks[n],p=t.tShift[n];if(c+=p,!t.options.html||p>3||c+2>=f||t.src.charCodeAt(c)!==60)return!1;if(i=t.src.charCodeAt(c+1),i===33||i===63){if(o)return!0}else if(i===47||FG(i)){if(i===47){if(a=t.src.slice(c,f).match($G),!a)return!1}else if(a=t.src.slice(c,f).match(IG),!a)return!1;if(BG[a[1].toLowerCase()]!==!0)return!1;if(o)return!0}else return!1;for(u=n+1;ur||(f=n+1,t.tShift[f]=t.eMarks[f])||(i=t.src.charCodeAt(u),i!==124&&i!==45&&i!==58)||(a=cv(t,n+1),!/^[-:| ]+$/.test(a))||(p=a.split("|"),p<=2))return!1;for(m=[],c=0;c=i||(r=e.src.charCodeAt(o++),r!==126&&r!==58)||(n=e.skipSpaces(o),o===n)||n>=i?-1:n}function jG(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(h=n+1,t.isEmpty(h)&&++h>r||t.tShift[h]=t.options.maxNesting)return!1;p=t.tokens.length,t.tokens.push({type:"dl_open",lines:f=[n,0],level:t.level++}),u=n,a=h;e:for(;;){for(x=!0,b=!1,t.tokens.push({type:"dt_open",lines:[u,u],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(u,u+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[u,u],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[h,0],level:t.level++}),A=t.tight,w=t.ddIndent,m=t.blkIndent,y=t.tShift[a],v=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=i-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||b)&&(x=!1),b=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=y,t.tight=A,t.parentType=v,t.blkIndent=m,t.ddIndent=w,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=h=t.line,h>=r||t.tShift[h]=r||(u=h,t.isEmpty(u))||t.tShift[u]=r)||(t.isEmpty(a)&&a++,a>=r)||t.tShift[a]3)){for(i=!1,a=0,u=f.length;a=n||e.tShift[i]=0&&(e=e.replace(GG,function(u,c){var f;return e.charCodeAt(c)===10?(i=c+1,a=0,u):(f=" ".slice((c-i-a)%4),a=c-i+1,f)})),o=new qG(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};var XG=Gy;function ZG(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}var QG=function(t,n){for(var r=t.pos;r=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var a=r-2;a>=0;a--)if(t.pending.charCodeAt(a)!==32){t.pending=t.pending.substring(0,a+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){Ky[e.charCodeAt(0)]=1});var eK=function(t,n){var r,o=t.pos,i=t.posMax;if(t.src.charCodeAt(o)!==92)return!1;if(o++,o=a||t.src.charCodeAt(u+1)!==126||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===126)||f===126||f===32||f===10)return!1;for(o=u+2;ou+3)return t.pos+=o-u,n||(t.pending+=t.src.slice(u,o)),!0;for(t.pos=u+2,i=1;t.pos+1=a||t.src.charCodeAt(u+1)!==43||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===43)||f===43||f===32||f===10)return!1;for(o=u+2;o=a||t.src.charCodeAt(u+1)!==61||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===61)||f===61||f===32||f===10)return!1;for(o=u+2;o=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function B3(e,t){var n=t,r,o,i,a=!0,u=!0,c=e.posMax,f=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n=c&&(a=!1),i=n-t,i>=4?a=u=!1:(o=n=t.options.maxNesting)return!1;for(t.pos=h+r,c=[r];t.pos?@[\]^_`{|}~-])/g,aK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==126||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos?@[\]^_`{|}~-])/g,uK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==94||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos=t.options.maxNesting||(r=v+1,o=I3(t,v),o<0))return!1;if(c=o+1,c=w)return!1;for(v=c,cK(t,c)?(a=t.linkContent,c=t.pos):a="",v=c;c=w||t.src.charCodeAt(c)!==41)return t.pos=m,!1;c++}else{if(t.linkLevel>0)return!1;for(;c=0?i=t.src.slice(v,c++):c=v-1),i||(typeof i>"u"&&(c=o+1),i=t.src.slice(r,o)),f=t.env.references[dK(i)],!f)return t.pos=m,!1;a=f.href,u=f.title}return n||(t.pos=r,t.posMax=o,h?t.push({type:"image",src:a,title:u,alt:t.src.substr(r,o-r),level:t.level}):(t.push({type:"link_open",href:a,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=w,!0},hK=y0,mK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;return c+2>=u||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,o=hK(t,c+1),o<0)?!1:(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=o,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,a=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(a)},t.linkLevel--),t.pos=o+1,t.posMax=u,!0)},gK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;if(c+3>u||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=c+2;o=u||(o++,r=t.src.slice(c+2,o-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(n||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:a,level:t.level})),t.pos=o,t.posMax=u,!0)},vK=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],yK=vK,$3=W4,xK=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,wK=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/,bK=function(t,n){var r,o,i,a,u,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(o=r.match(wK),o?yK.indexOf(o[1].toLowerCase())<0||(a=o[0].slice(1,-1),u=$3(a),!t.parser.validateLink(a))?!1:(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0):(i=r.match(xK),i?(a=i[0].slice(1,-1),u=$3("mailto:"+a),t.parser.validateLink(u)?(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))},Z4={};function x0(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var _K=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,SK=/[^"'=<>`\x00-\x20]+/,EK=/'[^']*'/,CK=/"[^"]*"/,AK=x0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",SK)("single_quoted",EK)("double_quoted",CK)(),RK=x0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",_K)("attr_value",AK)(),kK=x0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",RK)(),TK=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,DK=/|/,PK=/<[?].*?[?]>/,OK=/]*>/,LK=//,NK=x0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",kK)("close_tag",TK)("comment",DK)("processing",PK)("declaration",OK)("cdata",LK)();Z4.HTML_TAG_RE=NK;var MK=Z4.HTML_TAG_RE;function BK(e){var t=e|32;return t>=97&&t<=122}var IK=function(t,n){var r,o,i,a=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!BK(r))||(o=t.src.slice(a).match(MK),!o)?!1:(n||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)},F3=$4,$K=wn.has,FK=wn.isValidEntityCode,U3=wn.fromCodePoint,UK=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,zK=/^&([a-z][a-z0-9]{1,31});/i,jK=function(t,n){var r,o,i,a=t.pos,u=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+10){e.pos=i;return}for(o=0;o=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};w0.prototype.parse=function(e,t,n,r){var o=new WK(e,this,t,n,r);this.tokenize(o)};function qK(e){var t=["vbscript","javascript","file","data"],n=e.trim().toLowerCase();return n=HK.replaceEntities(n),!(n.indexOf(":")!==-1&&t.indexOf(n.split(":")[0])!==-1)}var GK=w0,KK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},YK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},XK={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},ZK=wn.assign,QK=Vq,JK=EG,eY=XG,tY=GK,nY=v0,rY={default:KK,full:YK,commonmark:XK};function Q4(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Is(e,t){typeof e!="string"&&(t=e,e="default"),this.inline=new tY,this.block=new eY,this.core=new JK,this.renderer=new QK,this.ruler=new nY,this.options={},this.configure(rY[e]),this.set(t||{})}Is.prototype.set=function(e){ZK(this.options,e)};Is.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})};Is.prototype.use=function(e,t){return e(this,t),this};Is.prototype.parse=function(e,t){var n=new Q4(this,e,t);return this.core.process(n),n.tokens};Is.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Is.prototype.parseInline=function(e,t){var n=new Q4(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Is.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};Wy.exports=Is;Wy.exports.utils=wn;var oY=Wy.exports,iY=oY,J4={exports:{}},sY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aY=sY,lY=aY;function ek(){}function tk(){}tk.resetWarningCache=ek;var uY=function(){function e(r,o,i,a,u,c){if(c!==lY){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tk,resetWarningCache:ek};return n.PropTypes=n,n};J4.exports=uY();var yo=J4.exports;const cY=a2(yo);Object.defineProperty(I4,"__esModule",{value:!0});var fY=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var rk=function(t){var n=t.markdown,r=t.options;r=r===void 0?{}:r;var o=r.preset,i=z3(r,["preset"]),a=z3(t,["markdown","options"]),u=new mY.default(o||"default",i),c=u.render(n);return pY.default.createElement("div",fY({},a,{dangerouslySetInnerHTML:{__html:c}}))};rk.propTypes={markdown:yo.string.isRequired,options:yo.shape({preset:yo.oneOf(["default","commonmark","full"]),html:yo.bool,xhtmlOut:yo.bool,breaks:yo.bool,langPrefix:yo.string,linkify:yo.bool,typographer:yo.bool,quotes:yo.string,highlight:yo.func})};var ok=I4.default=rk;const Yc={black:"#000",white:"#fff"},el={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},tl={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},nl={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},rl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ol={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Qu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},gY={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ts(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?tr(pu,--Fr):0,Jl--,Nn===10&&(Jl=1,_0--),Nn}function Jr(){return Nn=Fr2||Zc(Nn)>3?"":" "}function MY(e,t){for(;--t&&Jr()&&!(Nn<48||Nn>102||Nn>57&&Nn<65||Nn>70&&Nn<97););return Cf(e,Rp()+(t<6&&hi()==32&&Jr()==32))}function H1(e){for(;Jr();)switch(Nn){case e:return Fr;case 34:case 39:e!==34&&e!==39&&H1(Nn);break;case 40:e===41&&H1(e);break;case 92:Jr();break}return Fr}function BY(e,t){for(;Jr()&&e+Nn!==57;)if(e+Nn===84&&hi()===47)break;return"/*"+Cf(t,Fr-1)+"*"+b0(e===47?e:Jr())}function IY(e){for(;!Zc(hi());)Jr();return Cf(e,Fr)}function $Y(e){return fk(Tp("",null,null,null,[""],e=ck(e),0,[0],e))}function Tp(e,t,n,r,o,i,a,u,c){for(var f=0,p=0,h=a,m=0,w=0,v=0,y=1,A=1,b=1,x=0,S="",k=o,P=i,E=r,L=S;A;)switch(v=x,x=Jr()){case 40:if(v!=108&&tr(L,h-1)==58){W1(L+=Pt(kp(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:L+=kp(x);break;case 9:case 10:case 13:case 32:L+=NY(v);break;case 92:L+=MY(Rp()-1,7);continue;case 47:switch(hi()){case 42:case 47:Qd(FY(BY(Jr(),Rp()),t,n),c);break;default:L+="/"}break;case 123*y:u[f++]=ui(L)*b;case 125*y:case 59:case 0:switch(x){case 0:case 125:A=0;case 59+p:b==-1&&(L=Pt(L,/\f/g,"")),w>0&&ui(L)-h&&Qd(w>32?V3(L+";",r,n,h-1):V3(Pt(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Qd(E=j3(L,t,n,f,p,o,u,S,k=[],P=[],h),i),x===123)if(p===0)Tp(L,t,E,E,k,i,h,u,P);else switch(m===99&&tr(L,3)===110?100:m){case 100:case 108:case 109:case 115:Tp(e,E,E,r&&Qd(j3(e,E,E,0,0,o,u,S,o,k=[],h),P),o,P,h,u,r?k:P);break;default:Tp(L,E,E,E,[""],P,0,u,P)}}f=p=w=0,y=b=1,S=L="",h=a;break;case 58:h=1+ui(L),w=v;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&LY()==125)continue}switch(L+=b0(x),x*y){case 38:b=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(ui(L)-1)*b,b=1;break;case 64:hi()===45&&(L+=kp(Jr())),m=hi(),p=h=ui(S=L+=IY(Rp())),x++;break;case 45:v===45&&ui(L)==2&&(y=0)}}return i}function j3(e,t,n,r,o,i,a,u,c,f,p){for(var h=o-1,m=o===0?i:[""],w=Zy(m),v=0,y=0,A=0;v0?m[b]+" "+x:Pt(x,/&\f/g,m[b])))&&(c[A++]=S);return S0(e,t,n,o===0?Yy:u,c,f,p)}function FY(e,t,n){return S0(e,t,n,sk,b0(OY()),Xc(e,2,-2),0)}function V3(e,t,n,r){return S0(e,t,n,Xy,Xc(e,0,r),Xc(e,r+1,-1),r)}function Ml(e,t){for(var n="",r=Zy(e),o=0;o6)switch(tr(e,t+1)){case 109:if(tr(e,t+4)!==45)break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+Dt+"$2-$3$1"+hh+(tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~W1(e,"stretch")?dk(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tr(e,t+1)!==115)break;case 6444:switch(tr(e,ui(e)-3-(~W1(e,"!important")&&10))){case 107:return Pt(e,":",":"+Dt)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Dt+(tr(e,14)===45?"inline-":"")+"box$3$1"+Dt+"$2$3$1"+fr+"$2box$3")+e}break;case 5936:switch(tr(e,t+11)){case 114:return Dt+e+fr+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dt+e+fr+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dt+e+fr+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Dt+e+fr+e+e}return e}var KY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Xy:t.return=dk(t.value,t.length);break;case ak:return Ml([Ju(t,{value:Pt(t.value,"@","@"+Dt)})],o);case Yy:if(t.length)return PY(t.props,function(i){switch(DY(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ml([Ju(t,{props:[Pt(i,/:(read-\w+)/,":"+hh+"$1")]})],o);case"::placeholder":return Ml([Ju(t,{props:[Pt(i,/:(plac\w+)/,":"+Dt+"input-$1")]}),Ju(t,{props:[Pt(i,/:(plac\w+)/,":"+hh+"$1")]}),Ju(t,{props:[Pt(i,/:(plac\w+)/,fr+"input-$1")]})],o)}return""})}},YY=[KY],pk=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var A=y.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||YY,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var A=y.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uX={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cX=!1,fX=/[A-Z]|^ms/g,dX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_k=function(t){return t.charCodeAt(1)===45},H3=function(t){return t!=null&&typeof t!="boolean"},dv=ak(function(e){return _k(e)?e:e.replace(fX,"-$&").toLowerCase()}),G3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dX,function(r,o,i){return ci={name:o,styles:i,next:ci},o})}return uX[t]!==1&&!_k(t)&&typeof n=="number"&&n!==0?n+"px":n},pX="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ci={name:a.name,styles:a.styles,next:ci},a=a.next;var u=i.styles+";";return u}return hX(e,t,n)}case"function":{if(e!==void 0){var c=ci,f=n(e);return ci=c,Qc(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function hX(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?xX:wX},Q3=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},bX=!1,_X=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return wk(n,r,o),gX(function(){return bk(n,r,o)}),null},SX=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var u=Q3(t,n,r),c=u||Z3(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,w=1;wt(CX(o)?n:o):t;return T.jsx(yX,{styles:r})}function rx(e,t){return G1(e,t)}const Tk=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},AX=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:kk,StyledEngineProvider:Rk,ThemeContext:Af,css:M0,default:rx,internal_processStyles:Tk,keyframes:Na},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dk(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Dk(e[n])}),t}function ko(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{Li(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Li(e[o])?r[o]=ko(e[o],t[o],n):n.clone?r[o]=Li(t[o])?Dk(t[o]):t[o]:r[o]=t[o]}),r}const RX=Object.freeze(Object.defineProperty({__proto__:null,default:ko,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),kX=["values","unit","step"],TX=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Pk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=st(e,kX),i=TX(t),a=Object.keys(i);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,w){const v=a.indexOf(w);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:w)-r/100}${n})`}function p(m){return a.indexOf(m)+1`@media (min-width:${ox[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||J3;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||J3;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||ox).indexOf(u)!==-1){const c=i.up(u);a[c]=n(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return n(t)}function Ok(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Lk(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function PX(e,...t){const n=Ok(e),r=[n,...t].reduce((o,i)=>ko(o,i),{});return Lk(Object.keys(n),r)}function OX(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function hv({values:e,breakpoints:t,base:n}){const r=n||OX(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function At(e){if(typeof e!="string")throw new Error(ks(7));return e.charAt(0).toUpperCase()+e.slice(1)}const LX=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));function eu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function mh(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=eu(e,n)||r,t&&(o=t(o,r,e)),o}function Rn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=eu(c,r)||{};return ei(a,u,h=>{let m=mh(f,o,h);return h===m&&typeof h=="string"&&(m=mh(f,o,`${t}${h==="default"?"":At(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function MX(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const NX={m:"margin",p:"padding"},BX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IX=MX(e=>{if(e.length>2)if(eE[e])e=eE[e];else return[e];const[t,n]=e.split(""),r=NX[t],o=BX[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),ix=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ix,...sx];function Rf(e,t,n,r){var o;const i=(o=eu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function ax(e){return Rf(e,"spacing",8)}function Aa(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function $X(e,t){return n=>e.reduce((r,o)=>(r[o]=Aa(t,n),r),{})}function FX(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=IX(n),i=$X(o,r),a=e[n];return ei(e,a,i)}function Mk(e,t){const n=ax(e.theme);return Object.keys(e).map(r=>FX(e,t,r,n)).reduce(Sc,{})}function gn(e){return Mk(e,ix)}gn.propTypes={};gn.filterProps=ix;function vn(e){return Mk(e,sx)}vn.propTypes={};vn.filterProps=sx;function UX(e=8){if(e.mui)return e;const t=ax({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function N0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Sc(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function No(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const zX=No("border",Co),jX=No("borderTop",Co),VX=No("borderRight",Co),WX=No("borderBottom",Co),qX=No("borderLeft",Co),HX=No("borderColor"),GX=No("borderTopColor"),KX=No("borderRightColor"),YX=No("borderBottomColor"),XX=No("borderLeftColor"),ZX=No("outline",Co),QX=No("outlineColor"),B0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Aa(t,r)});return ei(e,e.borderRadius,n)}return null};B0.propTypes={};B0.filterProps=["borderRadius"];N0(zX,jX,VX,WX,qX,HX,GX,KX,YX,XX,B0,ZX,QX);const I0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rf(e.theme,"spacing",8),n=r=>({gap:Aa(t,r)});return ei(e,e.gap,n)}return null};I0.propTypes={};I0.filterProps=["gap"];const $0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rf(e.theme,"spacing",8),n=r=>({columnGap:Aa(t,r)});return ei(e,e.columnGap,n)}return null};$0.propTypes={};$0.filterProps=["columnGap"];const F0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rf(e.theme,"spacing",8),n=r=>({rowGap:Aa(t,r)});return ei(e,e.rowGap,n)}return null};F0.propTypes={};F0.filterProps=["rowGap"];const JX=Rn({prop:"gridColumn"}),eZ=Rn({prop:"gridRow"}),tZ=Rn({prop:"gridAutoFlow"}),nZ=Rn({prop:"gridAutoColumns"}),rZ=Rn({prop:"gridAutoRows"}),oZ=Rn({prop:"gridTemplateColumns"}),iZ=Rn({prop:"gridTemplateRows"}),sZ=Rn({prop:"gridTemplateAreas"}),aZ=Rn({prop:"gridArea"});N0(I0,$0,F0,JX,eZ,tZ,nZ,rZ,oZ,iZ,sZ,aZ);function Bl(e,t){return t==="grey"?t:e}const lZ=Rn({prop:"color",themeKey:"palette",transform:Bl}),uZ=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bl}),cZ=Rn({prop:"backgroundColor",themeKey:"palette",transform:Bl});N0(lZ,uZ,cZ);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const fZ=Rn({prop:"width",transform:Yr}),lx=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ox[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Yr(n)}};return ei(e,e.maxWidth,t)}return null};lx.filterProps=["maxWidth"];const dZ=Rn({prop:"minWidth",transform:Yr}),pZ=Rn({prop:"height",transform:Yr}),hZ=Rn({prop:"maxHeight",transform:Yr}),mZ=Rn({prop:"minHeight",transform:Yr});Rn({prop:"size",cssProperty:"width",transform:Yr});Rn({prop:"size",cssProperty:"height",transform:Yr});const gZ=Rn({prop:"boxSizing"});N0(fZ,lx,dZ,pZ,hZ,mZ,gZ);const kf={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:B0},color:{themeKey:"palette",transform:Bl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bl},backgroundColor:{themeKey:"palette",transform:Bl},p:{style:vn},pt:{style:vn},pr:{style:vn},pb:{style:vn},pl:{style:vn},px:{style:vn},py:{style:vn},padding:{style:vn},paddingTop:{style:vn},paddingRight:{style:vn},paddingBottom:{style:vn},paddingLeft:{style:vn},paddingX:{style:vn},paddingY:{style:vn},paddingInline:{style:vn},paddingInlineStart:{style:vn},paddingInlineEnd:{style:vn},paddingBlock:{style:vn},paddingBlockStart:{style:vn},paddingBlockEnd:{style:vn},m:{style:gn},mt:{style:gn},mr:{style:gn},mb:{style:gn},ml:{style:gn},mx:{style:gn},my:{style:gn},margin:{style:gn},marginTop:{style:gn},marginRight:{style:gn},marginBottom:{style:gn},marginLeft:{style:gn},marginX:{style:gn},marginY:{style:gn},marginInline:{style:gn},marginInlineStart:{style:gn},marginInlineEnd:{style:gn},marginBlock:{style:gn},marginBlockStart:{style:gn},marginBlockEnd:{style:gn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:I0},rowGap:{style:F0},columnGap:{style:$0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:lx},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vZ(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function yZ(e,t){return typeof e=="function"?e(t):e}function Nk(){function e(n,r,o,i){const a={[n]:r,theme:o},u=i[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:h}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=eu(o,f)||{};return h?h(a):ei(a,r,v=>{let y=mh(m,p,v);return v===y&&typeof v=="string"&&(y=mh(m,p,`${n}${v==="default"?"":At(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:kf;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const p=Ok(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(w=>{const v=yZ(f[w],i);if(v!=null)if(typeof v=="object")if(a[w])m=Sc(m,e(w,v,i,a));else{const y=ei({theme:i},v,A=>({[w]:A}));vZ(y,v)?m[w]=t({sx:v,theme:i}):m=Sc(m,y)}else m=Sc(m,e(w,v,i,a))}),Lk(h,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const hu=Nk();hu.filterProps=["sx"];function Bk(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const xZ=["breakpoints","palette","spacing","shape"];function Tf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=st(e,xZ),u=Pk(n),c=UX(o);let f=ko({breakpoints:u,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:c,shape:j({},DX,i)},a);return f.applyStyles=Bk,f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=j({},kf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return hu({sx:h,theme:this})},f}const wZ=Object.freeze(Object.defineProperty({__proto__:null,default:Tf,private_createBreakpoints:Pk,unstable_applyStyles:Bk},Symbol.toStringTag,{value:"Module"}));function bZ(e){return Object.keys(e).length===0}function Ik(e=null){const t=D.useContext(Af);return!t||bZ(t)?e:t}const _Z=Tf();function U0(e=_Z){return Ik(e)}function SZ({styles:e,themeId:t,defaultTheme:n={}}){const r=U0(n),o=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(kk,{styles:o})}const EZ=["sx"],CZ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:kf;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function z0(e){const{sx:t}=e,n=st(e,EZ),{systemProps:r,otherProps:o}=CZ(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Li(u)?j({},r,u):r}:i=j({},r,t),j({},o,{sx:i})}const AZ=Object.freeze(Object.defineProperty({__proto__:null,default:hu,extendSxProp:z0,unstable_createStyleFunctionSx:Nk,unstable_defaultSxConfig:kf},Symbol.toStringTag,{value:"Module"})),tE=e=>e,RZ=()=>{let e=tE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tE}}},$k=RZ();function Fk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(hu);return D.forwardRef(function(c,f){const p=U0(n),h=z0(c),{className:m,component:w="div"}=h,v=st(h,kZ);return T.jsx(i,j({as:w,ref:f,className:vt(m,o?o(r):r),theme:t&&p[t]||p},v))})}const DZ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Hn(e,t,n="Mui"){const r=DZ[t];return r?`${n}-${r}`:`${$k.generate(e)}-${t}`}function Gn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Hn(e,o,n)}),r}var Uk={exports:{}},It={};/** + */var Hn=typeof Symbol=="function"&&Symbol.for,Qy=Hn?Symbol.for("react.element"):60103,Jy=Hn?Symbol.for("react.portal"):60106,E0=Hn?Symbol.for("react.fragment"):60107,C0=Hn?Symbol.for("react.strict_mode"):60108,A0=Hn?Symbol.for("react.profiler"):60114,R0=Hn?Symbol.for("react.provider"):60109,k0=Hn?Symbol.for("react.context"):60110,ex=Hn?Symbol.for("react.async_mode"):60111,T0=Hn?Symbol.for("react.concurrent_mode"):60111,D0=Hn?Symbol.for("react.forward_ref"):60112,P0=Hn?Symbol.for("react.suspense"):60113,XY=Hn?Symbol.for("react.suspense_list"):60120,O0=Hn?Symbol.for("react.memo"):60115,L0=Hn?Symbol.for("react.lazy"):60116,ZY=Hn?Symbol.for("react.block"):60121,QY=Hn?Symbol.for("react.fundamental"):60117,JY=Hn?Symbol.for("react.responder"):60118,eX=Hn?Symbol.for("react.scope"):60119;function io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qy:switch(e=e.type,e){case ex:case T0:case E0:case A0:case C0:case P0:return e;default:switch(e=e&&e.$$typeof,e){case k0:case D0:case L0:case O0:case R0:return e;default:return t}}case Jy:return t}}}function mk(e){return io(e)===T0}Bt.AsyncMode=ex;Bt.ConcurrentMode=T0;Bt.ContextConsumer=k0;Bt.ContextProvider=R0;Bt.Element=Qy;Bt.ForwardRef=D0;Bt.Fragment=E0;Bt.Lazy=L0;Bt.Memo=O0;Bt.Portal=Jy;Bt.Profiler=A0;Bt.StrictMode=C0;Bt.Suspense=P0;Bt.isAsyncMode=function(e){return mk(e)||io(e)===ex};Bt.isConcurrentMode=mk;Bt.isContextConsumer=function(e){return io(e)===k0};Bt.isContextProvider=function(e){return io(e)===R0};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qy};Bt.isForwardRef=function(e){return io(e)===D0};Bt.isFragment=function(e){return io(e)===E0};Bt.isLazy=function(e){return io(e)===L0};Bt.isMemo=function(e){return io(e)===O0};Bt.isPortal=function(e){return io(e)===Jy};Bt.isProfiler=function(e){return io(e)===A0};Bt.isStrictMode=function(e){return io(e)===C0};Bt.isSuspense=function(e){return io(e)===P0};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===E0||e===T0||e===A0||e===C0||e===P0||e===XY||typeof e=="object"&&e!==null&&(e.$$typeof===L0||e.$$typeof===O0||e.$$typeof===R0||e.$$typeof===k0||e.$$typeof===D0||e.$$typeof===QY||e.$$typeof===JY||e.$$typeof===eX||e.$$typeof===ZY)};Bt.typeOf=io;hk.exports=Bt;var tX=hk.exports,gk=tX,nX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vk={};vk[gk.ForwardRef]=nX;vk[gk.Memo]=rX;var oX=!0;function iX(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var yk=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||oX===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},xk=function(t,n,r){yk(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function sX(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aX={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lX=!1,uX=/[A-Z]|^ms/g,cX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wk=function(t){return t.charCodeAt(1)===45},H3=function(t){return t!=null&&typeof t!="boolean"},dv=ik(function(e){return wk(e)?e:e.replace(uX,"-$&").toLowerCase()}),q3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cX,function(r,o,i){return ci={name:o,styles:i,next:ci},o})}return aX[t]!==1&&!wk(t)&&typeof n=="number"&&n!==0?n+"px":n},fX="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ci={name:a.name,styles:a.styles,next:ci},a=a.next;var u=i.styles+";";return u}return dX(e,t,n)}case"function":{if(e!==void 0){var c=ci,f=n(e);return ci=c,Qc(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function dX(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?vX:yX},X3=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},xX=!1,wX=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return yk(n,r,o),hX(function(){return xk(n,r,o)}),null},bX=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var u=X3(t,n,r),c=u||Y3(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,w=1;wt(SX(o)?n:o):t;return T.jsx(gX,{styles:r})}function nx(e,t){return q1(e,t)}const Ak=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},EX=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ck,StyledEngineProvider:Ek,ThemeContext:Af,css:N0,default:nx,internal_processStyles:Ak,keyframes:Ma},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rk(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Rk(e[n])}),t}function ko(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{Li(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Li(e[o])?r[o]=ko(e[o],t[o],n):n.clone?r[o]=Li(t[o])?Rk(t[o]):t[o]:r[o]=t[o]}),r}const CX=Object.freeze(Object.defineProperty({__proto__:null,default:ko,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),AX=["values","unit","step"],RX=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function kk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=st(e,AX),i=RX(t),a=Object.keys(i);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,w){const v=a.indexOf(w);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:w)-r/100}${n})`}function p(m){return a.indexOf(m)+1`@media (min-width:${rx[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Z3;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Z3;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||rx).indexOf(u)!==-1){const c=i.up(u);a[c]=n(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return n(t)}function Tk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Dk(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function TX(e,...t){const n=Tk(e),r=[n,...t].reduce((o,i)=>ko(o,i),{});return Dk(Object.keys(n),r)}function DX(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function pv({values:e,breakpoints:t,base:n}){const r=n||DX(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function At(e){if(typeof e!="string")throw new Error(Ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}const PX=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));function eu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function mh(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=eu(e,n)||r,t&&(o=t(o,r,e)),o}function Rn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=eu(c,r)||{};return ei(a,u,h=>{let m=mh(f,o,h);return h===m&&typeof h=="string"&&(m=mh(f,o,`${t}${h==="default"?"":At(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function OX(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const LX={m:"margin",p:"padding"},NX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Q3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},MX=OX(e=>{if(e.length>2)if(Q3[e])e=Q3[e];else return[e];const[t,n]=e.split(""),r=LX[t],o=NX[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),ox=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ix=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ox,...ix];function Rf(e,t,n,r){var o;const i=(o=eu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function sx(e){return Rf(e,"spacing",8)}function Aa(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function BX(e,t){return n=>e.reduce((r,o)=>(r[o]=Aa(t,n),r),{})}function IX(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=MX(n),i=BX(o,r),a=e[n];return ei(e,a,i)}function Pk(e,t){const n=sx(e.theme);return Object.keys(e).map(r=>IX(e,t,r,n)).reduce(Sc,{})}function gn(e){return Pk(e,ox)}gn.propTypes={};gn.filterProps=ox;function vn(e){return Pk(e,ix)}vn.propTypes={};vn.filterProps=ix;function $X(e=8){if(e.mui)return e;const t=sx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function M0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Sc(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function Mo(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const FX=Mo("border",Co),UX=Mo("borderTop",Co),zX=Mo("borderRight",Co),jX=Mo("borderBottom",Co),VX=Mo("borderLeft",Co),WX=Mo("borderColor"),HX=Mo("borderTopColor"),qX=Mo("borderRightColor"),GX=Mo("borderBottomColor"),KX=Mo("borderLeftColor"),YX=Mo("outline",Co),XX=Mo("outlineColor"),B0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Aa(t,r)});return ei(e,e.borderRadius,n)}return null};B0.propTypes={};B0.filterProps=["borderRadius"];M0(FX,UX,zX,jX,VX,WX,HX,qX,GX,KX,B0,YX,XX);const I0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rf(e.theme,"spacing",8),n=r=>({gap:Aa(t,r)});return ei(e,e.gap,n)}return null};I0.propTypes={};I0.filterProps=["gap"];const $0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rf(e.theme,"spacing",8),n=r=>({columnGap:Aa(t,r)});return ei(e,e.columnGap,n)}return null};$0.propTypes={};$0.filterProps=["columnGap"];const F0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rf(e.theme,"spacing",8),n=r=>({rowGap:Aa(t,r)});return ei(e,e.rowGap,n)}return null};F0.propTypes={};F0.filterProps=["rowGap"];const ZX=Rn({prop:"gridColumn"}),QX=Rn({prop:"gridRow"}),JX=Rn({prop:"gridAutoFlow"}),eZ=Rn({prop:"gridAutoColumns"}),tZ=Rn({prop:"gridAutoRows"}),nZ=Rn({prop:"gridTemplateColumns"}),rZ=Rn({prop:"gridTemplateRows"}),oZ=Rn({prop:"gridTemplateAreas"}),iZ=Rn({prop:"gridArea"});M0(I0,$0,F0,ZX,QX,JX,eZ,tZ,nZ,rZ,oZ,iZ);function Bl(e,t){return t==="grey"?t:e}const sZ=Rn({prop:"color",themeKey:"palette",transform:Bl}),aZ=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bl}),lZ=Rn({prop:"backgroundColor",themeKey:"palette",transform:Bl});M0(sZ,aZ,lZ);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const uZ=Rn({prop:"width",transform:Yr}),ax=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||rx[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Yr(n)}};return ei(e,e.maxWidth,t)}return null};ax.filterProps=["maxWidth"];const cZ=Rn({prop:"minWidth",transform:Yr}),fZ=Rn({prop:"height",transform:Yr}),dZ=Rn({prop:"maxHeight",transform:Yr}),pZ=Rn({prop:"minHeight",transform:Yr});Rn({prop:"size",cssProperty:"width",transform:Yr});Rn({prop:"size",cssProperty:"height",transform:Yr});const hZ=Rn({prop:"boxSizing"});M0(uZ,ax,cZ,fZ,dZ,pZ,hZ);const kf={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:B0},color:{themeKey:"palette",transform:Bl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bl},backgroundColor:{themeKey:"palette",transform:Bl},p:{style:vn},pt:{style:vn},pr:{style:vn},pb:{style:vn},pl:{style:vn},px:{style:vn},py:{style:vn},padding:{style:vn},paddingTop:{style:vn},paddingRight:{style:vn},paddingBottom:{style:vn},paddingLeft:{style:vn},paddingX:{style:vn},paddingY:{style:vn},paddingInline:{style:vn},paddingInlineStart:{style:vn},paddingInlineEnd:{style:vn},paddingBlock:{style:vn},paddingBlockStart:{style:vn},paddingBlockEnd:{style:vn},m:{style:gn},mt:{style:gn},mr:{style:gn},mb:{style:gn},ml:{style:gn},mx:{style:gn},my:{style:gn},margin:{style:gn},marginTop:{style:gn},marginRight:{style:gn},marginBottom:{style:gn},marginLeft:{style:gn},marginX:{style:gn},marginY:{style:gn},marginInline:{style:gn},marginInlineStart:{style:gn},marginInlineEnd:{style:gn},marginBlock:{style:gn},marginBlockStart:{style:gn},marginBlockEnd:{style:gn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:I0},rowGap:{style:F0},columnGap:{style:$0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:ax},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mZ(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function gZ(e,t){return typeof e=="function"?e(t):e}function Ok(){function e(n,r,o,i){const a={[n]:r,theme:o},u=i[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:h}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=eu(o,f)||{};return h?h(a):ei(a,r,v=>{let y=mh(m,p,v);return v===y&&typeof v=="string"&&(y=mh(m,p,`${n}${v==="default"?"":At(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:kf;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const p=Tk(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(w=>{const v=gZ(f[w],i);if(v!=null)if(typeof v=="object")if(a[w])m=Sc(m,e(w,v,i,a));else{const y=ei({theme:i},v,A=>({[w]:A}));mZ(y,v)?m[w]=t({sx:v,theme:i}):m=Sc(m,y)}else m=Sc(m,e(w,v,i,a))}),Dk(h,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const hu=Ok();hu.filterProps=["sx"];function Lk(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const vZ=["breakpoints","palette","spacing","shape"];function Tf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=st(e,vZ),u=kk(n),c=$X(o);let f=ko({breakpoints:u,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:c,shape:j({},kX,i)},a);return f.applyStyles=Lk,f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=j({},kf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return hu({sx:h,theme:this})},f}const yZ=Object.freeze(Object.defineProperty({__proto__:null,default:Tf,private_createBreakpoints:kk,unstable_applyStyles:Lk},Symbol.toStringTag,{value:"Module"}));function xZ(e){return Object.keys(e).length===0}function Nk(e=null){const t=D.useContext(Af);return!t||xZ(t)?e:t}const wZ=Tf();function U0(e=wZ){return Nk(e)}function bZ({styles:e,themeId:t,defaultTheme:n={}}){const r=U0(n),o=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(Ck,{styles:o})}const _Z=["sx"],SZ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:kf;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function z0(e){const{sx:t}=e,n=st(e,_Z),{systemProps:r,otherProps:o}=SZ(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Li(u)?j({},r,u):r}:i=j({},r,t),j({},o,{sx:i})}const EZ=Object.freeze(Object.defineProperty({__proto__:null,default:hu,extendSxProp:z0,unstable_createStyleFunctionSx:Ok,unstable_defaultSxConfig:kf},Symbol.toStringTag,{value:"Module"})),J3=e=>e,CZ=()=>{let e=J3;return{configure(t){e=t},generate(t){return e(t)},reset(){e=J3}}},Mk=CZ();function Bk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(hu);return D.forwardRef(function(c,f){const p=U0(n),h=z0(c),{className:m,component:w="div"}=h,v=st(h,AZ);return T.jsx(i,j({as:w,ref:f,className:vt(m,o?o(r):r),theme:t&&p[t]||p},v))})}const kZ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qn(e,t,n="Mui"){const r=kZ[t];return r?`${n}-${r}`:`${Mk.generate(e)}-${t}`}function Gn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=qn(e,o,n)}),r}var Ik={exports:{}},It={};/** * @license React * react-is.production.min.js * @@ -162,7 +162,7 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ux=Symbol.for("react.element"),cx=Symbol.for("react.portal"),j0=Symbol.for("react.fragment"),V0=Symbol.for("react.strict_mode"),W0=Symbol.for("react.profiler"),q0=Symbol.for("react.provider"),H0=Symbol.for("react.context"),PZ=Symbol.for("react.server_context"),G0=Symbol.for("react.forward_ref"),K0=Symbol.for("react.suspense"),Y0=Symbol.for("react.suspense_list"),X0=Symbol.for("react.memo"),Z0=Symbol.for("react.lazy"),OZ=Symbol.for("react.offscreen"),zk;zk=Symbol.for("react.module.reference");function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ux:switch(e=e.type,e){case j0:case W0:case V0:case K0:case Y0:return e;default:switch(e=e&&e.$$typeof,e){case PZ:case H0:case G0:case Z0:case X0:case q0:return e;default:return t}}case cx:return t}}}It.ContextConsumer=H0;It.ContextProvider=q0;It.Element=ux;It.ForwardRef=G0;It.Fragment=j0;It.Lazy=Z0;It.Memo=X0;It.Portal=cx;It.Profiler=W0;It.StrictMode=V0;It.Suspense=K0;It.SuspenseList=Y0;It.isAsyncMode=function(){return!1};It.isConcurrentMode=function(){return!1};It.isContextConsumer=function(e){return Bo(e)===H0};It.isContextProvider=function(e){return Bo(e)===q0};It.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ux};It.isForwardRef=function(e){return Bo(e)===G0};It.isFragment=function(e){return Bo(e)===j0};It.isLazy=function(e){return Bo(e)===Z0};It.isMemo=function(e){return Bo(e)===X0};It.isPortal=function(e){return Bo(e)===cx};It.isProfiler=function(e){return Bo(e)===W0};It.isStrictMode=function(e){return Bo(e)===V0};It.isSuspense=function(e){return Bo(e)===K0};It.isSuspenseList=function(e){return Bo(e)===Y0};It.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===j0||e===W0||e===V0||e===K0||e===Y0||e===OZ||typeof e=="object"&&e!==null&&(e.$$typeof===Z0||e.$$typeof===X0||e.$$typeof===q0||e.$$typeof===H0||e.$$typeof===G0||e.$$typeof===zk||e.getModuleId!==void 0)};It.typeOf=Bo;Uk.exports=It;var nE=Uk.exports;const LZ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jk(e){const t=`${e}`.match(LZ);return t&&t[1]||""}function Vk(e,t=""){return e.displayName||e.name||jk(e)||t}function rE(e,t,n){const r=Vk(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function MZ(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vk(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nE.ForwardRef:return rE(e,e.render,"ForwardRef");case nE.Memo:return rE(e,e.type,"memo");default:return}}}const NZ=Object.freeze(Object.defineProperty({__proto__:null,default:MZ,getFunctionName:jk},Symbol.toStringTag,{value:"Module"})),BZ=["ownerState"],IZ=["variants"],$Z=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function FZ(e){return Object.keys(e).length===0}function UZ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zZ=Tf(),jZ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jd({defaultTheme:e,theme:t,themeId:n}){return FZ(t)?e:t[n]||t}function VZ(e){return e?(t,n)=>n[e]:null}function Dp(e,t){let{ownerState:n}=t,r=st(t,BZ);const o=typeof e=="function"?e(j({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Dp(i,j({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=st(o,IZ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(j({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(j({ownerState:n},r,n)):c.style))}),u}return o}function WZ(e={}){const{themeId:t,defaultTheme:n=zZ,rootShouldForwardProp:r=mv,slotShouldForwardProp:o=mv}=e,i=a=>hu(j({},a,{theme:Jd(j({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{Tk(a,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=VZ(jZ(f))}=u,w=st(u,$Z),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,b=mv;f==="Root"||f==="root"?b=r:f?b=o:UZ(a)&&(b=void 0);const x=rx(a,j({shouldForwardProp:b,label:A},w)),S=P=>typeof P=="function"&&P.__emotion_real!==P||Li(P)?E=>Dp(P,j({},E,{theme:Jd({theme:E.theme,defaultTheme:n,themeId:t})})):P,k=(P,...E)=>{let L=S(P);const $=E?E.map(S):[];c&&m&&$.push(X=>{const se=Jd(j({},X,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const H=se.components[c].styleOverrides,G={};return Object.entries(H).forEach(([Q,le])=>{G[Q]=Dp(le,j({},X,{theme:se}))}),m(X,G)}),c&&!v&&$.push(X=>{var se;const H=Jd(j({},X,{defaultTheme:n,themeId:t})),G=H==null||(se=H.components)==null||(se=se[c])==null?void 0:se.variants;return Dp({variants:G},j({},X,{theme:H}))}),y||$.push(i);const q=$.length-E.length;if(Array.isArray(P)&&q>0){const X=new Array(q).fill("");L=[...P,...X],L.raw=[...P.raw,...X]}const I=x(L,...$);return a.muiName&&(I.muiName=a.muiName),I};return x.withConfig&&(k.withConfig=x.withConfig),k}}const qZ=WZ();function Jc(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(a=>{n[r][a]=Jc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function HZ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Jc(t.components[n].defaultProps,r)}function GZ({props:e,name:t,defaultTheme:n,themeId:r}){let o=U0(n);return r&&(o=o[r]||o),HZ({theme:o,name:t,props:e})}const vi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Wk(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const KZ=Object.freeze(Object.defineProperty({__proto__:null,default:Wk},Symbol.toStringTag,{value:"Module"}));function YZ(e,t=0,n=1){return Wk(e,t,n)}function XZ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qk(e){if(e.type)return e;if(e.charAt(0)==="#")return qk(XZ(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ks(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ks(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function ZZ(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Jn(e,t){return e=qk(e),t=YZ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ZZ(e)}function QZ(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Pp(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Y1(e){return e&&e.ownerDocument||document}function oE(e){return Y1(e).defaultView||window}function X1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let iE=0;function JZ(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(iE+=1,n(`mui-${iE}`))},[t]),r}const sE=Np.useId;function eQ(e){if(sE!==void 0){const t=sE();return e??t}return JZ(e)}function tQ({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),u=o?e:i,c=D.useCallback(f=>{o||a(f)},[]);return[u,c]}function Cl(e){const t=D.useRef(e);return vi(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function to(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{X1(n,t)})},e)}const aE={};function nQ(e,t){const n=D.useRef(aE);return n.current===aE&&(n.current=e(t)),n}const rQ=[];function oQ(e){D.useEffect(e,rQ)}class Df{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Df}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Al(){const e=nQ(Df.create).current;return oQ(e.disposeEffect),e}let Q0=!0,Z1=!1;const iQ=new Df,sQ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function aQ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&sQ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function lQ(e){e.metaKey||e.altKey||e.ctrlKey||(Q0=!0)}function gv(){Q0=!1}function uQ(){this.visibilityState==="hidden"&&Z1&&(Q0=!0)}function cQ(e){e.addEventListener("keydown",lQ,!0),e.addEventListener("mousedown",gv,!0),e.addEventListener("pointerdown",gv,!0),e.addEventListener("touchstart",gv,!0),e.addEventListener("visibilitychange",uQ,!0)}function fQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Q0||aQ(t)}function fx(){const e=D.useCallback(o=>{o!=null&&cQ(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(Z1=!0,iQ.start(100,()=>{Z1=!1}),t.current=!1,!0):!1}function r(o){return fQ(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function or(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function ef(e){return typeof e=="string"}function uc(e,t,n){return e===void 0||ef(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function dQ(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function lE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function pQ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=vt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=j({},n,o,r);return w.length>0&&(y.className=w),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=dQ(j({},o,r)),u=lE(r),c=lE(o),f=t(a),p=vt(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=j({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=j({},f,n,c,u);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}function hQ(e,t,n){return typeof e=="function"?e(t,n):e}const mQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gQ(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=st(e,mQ),u=i?{}:hQ(r,o),{props:c,internalRef:f}=pQ(j({},a,{externalSlotProps:u})),p=to(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return uc(n,j({},c,{ref:p}),o)}const Hk=D.createContext(null);function Gk(){return D.useContext(Hk)}const vQ=typeof Symbol=="function"&&Symbol.for,yQ=vQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function xQ(e,t){return typeof t=="function"?t(e):j({},e,t)}function wQ(e){const{children:t,theme:n}=e,r=Gk(),o=D.useMemo(()=>{const i=r===null?n:xQ(r,n);return i!=null&&(i[yQ]=r!==null),i},[n,r]);return T.jsx(Hk.Provider,{value:o,children:t})}const bQ=["value"],Kk=D.createContext();function _Q(e){let{value:t}=e,n=st(e,bQ);return T.jsx(Kk.Provider,j({value:t??!0},n))}const SQ=()=>{const e=D.useContext(Kk);return e??!1},Yk=D.createContext(void 0);function EQ({value:e,children:t}){return T.jsx(Yk.Provider,{value:e,children:t})}function CQ(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Jc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Jc(o,r):r}function AQ({props:e,name:t}){const n=D.useContext(Yk);return CQ({props:e,name:t,theme:{components:n}})}const uE={};function cE(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?j({},t,{[e]:i}):i;return r?()=>a:a}return e?j({},t,{[e]:n}):j({},t,n)},[e,t,n,r])}function RQ(e){const{children:t,theme:n,themeId:r}=e,o=Ik(uE),i=Gk()||uE,a=cE(r,o,n),u=cE(r,i,n,!0),c=a.direction==="rtl";return T.jsx(wQ,{theme:u,children:T.jsx(Af.Provider,{value:a,children:T.jsx(_Q,{value:c,children:T.jsx(EQ,{value:a==null?void 0:a.components,children:t})})})})}const kQ=["component","direction","spacing","divider","children","className","useFlexGap"],TQ=Tf(),DQ=qZ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function PQ(e){return GZ({props:e,name:"MuiStack",defaultTheme:TQ})}function OQ(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],MQ=({ownerState:e,theme:t})=>{let n=j({display:"flex",flexDirection:"column"},ei({theme:t},hv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ax(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),i=hv({values:e.direction,base:o}),a=hv({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,f,p)=>{if(!i[c]){const m=f>0?i[p[f-1]]:"column";i[c]=m}}),n=ko(n,ei({theme:t},a,(c,f)=>e.useFlexGap?{gap:Aa(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${LQ(f?i[f]:e.direction)}`]:Aa(r,c)}}))}return n=PX(t.breakpoints,n),n};function NQ(e={}){const{createStyledComponent:t=DQ,useThemeProps:n=PQ,componentName:r="MuiStack"}=e,o=()=>or({root:["root"]},c=>Hn(r,c),{}),i=t(MQ);return D.forwardRef(function(c,f){const p=n(c),h=z0(p),{component:m="div",direction:w="column",spacing:v=0,divider:y,children:A,className:b,useFlexGap:x=!1}=h,S=st(h,kQ),k={direction:w,spacing:v,useFlexGap:x},P=o();return T.jsx(i,j({as:m,ownerState:k,ref:f,className:vt(P.root,b)},S,{children:y?OQ(A,y):A}))})}function BQ(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var kn={},Xk={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Xk);var Zk=Xk.exports;const IQ=Ts(wY),$Q=Ts(KZ);var Qk=Zk;Object.defineProperty(kn,"__esModule",{value:!0});var wr=kn.alpha=nT;kn.blend=ZQ;kn.colorChannel=void 0;var FQ=kn.darken=px;kn.decomposeColor=Oo;kn.emphasize=rT;var UQ=kn.getContrastRatio=HQ;kn.getLuminance=gh;kn.hexToRgb=Jk;kn.hslToRgb=tT;var zQ=kn.lighten=hx;kn.private_safeAlpha=GQ;kn.private_safeColorChannel=void 0;kn.private_safeDarken=KQ;kn.private_safeEmphasize=XQ;kn.private_safeLighten=YQ;kn.recomposeColor=mu;kn.rgbToHex=qQ;var fE=Qk(IQ),jQ=Qk($Q);function dx(e,t=0,n=1){return(0,jQ.default)(e,t,n)}function Jk(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function VQ(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Oo(e){if(e.type)return e;if(e.charAt(0)==="#")return Oo(Jk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,fE.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,fE.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const eT=e=>{const t=Oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};kn.colorChannel=eT;const WQ=(e,t)=>{try{return eT(e)}catch{return e}};kn.private_safeColorChannel=WQ;function mu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function qQ(e){if(e.indexOf("#")===0)return e;const{values:t}=Oo(e);return`#${t.map((n,r)=>VQ(r===3?Math.round(255*n):n)).join("")}`}function tT(e){e=Oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),mu({type:u,values:c})}function gh(e){e=Oo(e);let t=e.type==="hsl"||e.type==="hsla"?Oo(tT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function HQ(e,t){const n=gh(e),r=gh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function nT(e,t){return e=Oo(e),t=dx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mu(e)}function GQ(e,t,n){try{return nT(e,t)}catch{return e}}function px(e,t){if(e=Oo(e),t=dx(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mu(e)}function KQ(e,t,n){try{return px(e,t)}catch{return e}}function hx(e,t){if(e=Oo(e),t=dx(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mu(e)}function YQ(e,t,n){try{return hx(e,t)}catch{return e}}function rT(e,t=.15){return gh(e)>.5?px(e,t):hx(e,t)}function XQ(e,t,n){try{return rT(e,t)}catch{return e}}function ZQ(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),i=Oo(e),a=Oo(t),u=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return mu({type:"rgb",values:u})}const QQ=["mode","contrastThreshold","tonalOffset"],dE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yc.white,default:Yc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vv={text:{primary:Yc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function pE(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=zQ(e.main,o):t==="dark"&&(e.dark=FQ(e.main,i)))}function JQ(e="light"){return e==="dark"?{main:nl[200],light:nl[50],dark:nl[400]}:{main:nl[700],light:nl[400],dark:nl[800]}}function eJ(e="light"){return e==="dark"?{main:tl[200],light:tl[50],dark:tl[400]}:{main:tl[500],light:tl[300],dark:tl[700]}}function tJ(e="light"){return e==="dark"?{main:el[500],light:el[300],dark:el[700]}:{main:el[700],light:el[400],dark:el[800]}}function nJ(e="light"){return e==="dark"?{main:rl[400],light:rl[300],dark:rl[700]}:{main:rl[700],light:rl[500],dark:rl[900]}}function rJ(e="light"){return e==="dark"?{main:ol[400],light:ol[300],dark:ol[700]}:{main:ol[800],light:ol[500],dark:ol[900]}}function oJ(e="light"){return e==="dark"?{main:Qu[400],light:Qu[300],dark:Qu[700]}:{main:"#ed6c02",light:Qu[500],dark:Qu[900]}}function iJ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=st(e,QQ),i=e.primary||JQ(t),a=e.secondary||eJ(t),u=e.error||tJ(t),c=e.info||nJ(t),f=e.success||rJ(t),p=e.warning||oJ(t);function h(y){return UQ(y,vv.text.primary)>=n?vv.text.primary:dE.text.primary}const m=({color:y,name:A,mainShade:b=500,lightShade:x=300,darkShade:S=700})=>{if(y=j({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(ks(11,A?` (${A})`:"",b));if(typeof y.main!="string")throw new Error(ks(12,A?` (${A})`:"",JSON.stringify(y.main)));return pE(y,"light",x,r),pE(y,"dark",S,r),y.contrastText||(y.contrastText=h(y.main)),y},w={dark:vv,light:dE};return ko(j({common:j({},Yc),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:xY,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},w[t]),o)}const sJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function aJ(e){return Math.round(e*1e5)/1e5}const hE={textTransform:"uppercase"},mE='"Roboto", "Helvetica", "Arial", sans-serif';function lJ(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=mE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=st(n,sJ),w=o/14,v=h||(b=>`${b/f*w}rem`),y=(b,x,S,k,P)=>j({fontFamily:r,fontWeight:b,fontSize:v(x),lineHeight:S},r===mE?{letterSpacing:`${aJ(k/x)}em`}:{},P,p),A={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(u,14,1.75,.4,hE),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,hE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ko(j({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},A),m,{clone:!1})}const uJ=.2,cJ=.14,fJ=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${uJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fJ})`].join(",")}const dJ=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],pJ=["duration","easing","delay"],hJ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mJ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gE(e){return`${Math.round(e)}ms`}function gJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function vJ(e){const t=j({},hJ,e.easing),n=j({},mJ,e.duration);return j({getAutoHeightDuration:gJ,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:u=t.easeInOut,delay:c=0}=i;return st(i,pJ),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:gE(a)} ${u} ${typeof c=="string"?c:gE(c)}`).join(",")}},e,{easing:t,duration:n})}const yJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},xJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function J0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=st(e,xJ);if(e.vars)throw new Error(ks(18));const u=iJ(r),c=Tf(e);let f=ko(c,{mixins:BQ(c.breakpoints,n),palette:u,shadows:dJ.slice(),typography:lJ(u,i),transitions:vJ(o),zIndex:j({},yJ)});return f=ko(f,a),f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=j({},kf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return hu({sx:h,theme:this})},f}const mx=J0();function em(){const e=U0(mx);return e[Ql]||e}var Pf={},yv={exports:{}},vE;function wJ(){return vE||(vE=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yv)),yv.exports}const oT=Ts(AX),bJ=Ts(RX),_J=Ts(LX),SJ=Ts(NZ),EJ=Ts(wZ),CJ=Ts(AZ);var gu=Zk;Object.defineProperty(Pf,"__esModule",{value:!0});var AJ=Pf.default=FJ;Pf.shouldForwardProp=Op;Pf.systemDefaultTheme=void 0;var xo=gu(Ak()),Q1=gu(wJ()),yE=LJ(oT),RJ=bJ;gu(_J);gu(SJ);var kJ=gu(EJ),TJ=gu(CJ);const DJ=["ownerState"],PJ=["variants"],OJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iT=function(r){return r?n:t})(e)}function LJ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iT(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 MJ(e){return Object.keys(e).length===0}function NJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Op(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BJ=Pf.systemDefaultTheme=(0,kJ.default)(),IJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ep({defaultTheme:e,theme:t,themeId:n}){return MJ(t)?e:t[n]||t}function $J(e){return e?(t,n)=>n[e]:null}function Lp(e,t){let{ownerState:n}=t,r=(0,Q1.default)(t,DJ);const o=typeof e=="function"?e((0,xo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Lp(i,(0,xo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=(0,Q1.default)(o,PJ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,xo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,xo.default)({ownerState:n},r,n)):c.style))}),u}return o}function FJ(e={}){const{themeId:t,defaultTheme:n=BJ,rootShouldForwardProp:r=Op,slotShouldForwardProp:o=Op}=e,i=a=>(0,TJ.default)((0,xo.default)({},a,{theme:ep((0,xo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{(0,yE.internal_processStyles)(a,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=$J(IJ(f))}=u,w=(0,Q1.default)(u,OJ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,b=Op;f==="Root"||f==="root"?b=r:f?b=o:NJ(a)&&(b=void 0);const x=(0,yE.default)(a,(0,xo.default)({shouldForwardProp:b,label:A},w)),S=P=>typeof P=="function"&&P.__emotion_real!==P||(0,RJ.isPlainObject)(P)?E=>Lp(P,(0,xo.default)({},E,{theme:ep({theme:E.theme,defaultTheme:n,themeId:t})})):P,k=(P,...E)=>{let L=S(P);const $=E?E.map(S):[];c&&m&&$.push(X=>{const se=ep((0,xo.default)({},X,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const H=se.components[c].styleOverrides,G={};return Object.entries(H).forEach(([Q,le])=>{G[Q]=Lp(le,(0,xo.default)({},X,{theme:se}))}),m(X,G)}),c&&!v&&$.push(X=>{var se;const H=ep((0,xo.default)({},X,{defaultTheme:n,themeId:t})),G=H==null||(se=H.components)==null||(se=se[c])==null?void 0:se.variants;return Lp({variants:G},(0,xo.default)({},X,{theme:H}))}),y||$.push(i);const q=$.length-E.length;if(Array.isArray(P)&&q>0){const X=new Array(q).fill("");L=[...P,...X],L.raw=[...P.raw,...X]}const I=x(L,...$);return a.muiName&&(I.muiName=a.muiName),I};return x.withConfig&&(k.withConfig=x.withConfig),k}}function UJ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vu=e=>UJ(e)&&e!=="classes",Ot=AJ({themeId:Ql,defaultTheme:mx,rootShouldForwardProp:vu}),zJ=["theme"];function jJ(e){let{theme:t}=e,n=st(e,zJ);const r=t[Ql];return T.jsx(RQ,j({},n,{themeId:r?Ql:void 0,theme:r||t}))}function zn(e){return AQ(e)}function J1(e,t){return J1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},J1(e,t)}function sT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,J1(e,t)}const xE={disabled:!1},vh=Ze.createContext(null);var VJ=function(t){return t.scrollTop},cc="unmounted",ea="exited",ta="entering",al="entered",e2="exiting",Wi=function(e){sT(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?u?(c=ea,i.appearStatus=ta):c=al:r.unmountOnExit||r.mountOnEnter?c=cc:c=ea,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===cc?{status:ea}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ta&&a!==al&&(i=ta):(a===ta||a===al)&&(i=e2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ta){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:_l.findDOMNode(this);a&&VJ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ea&&this.setState({status:cc})},n.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[_l.findDOMNode(this),u],f=c[0],p=c[1],h=this.getTimeouts(),m=u?h.appear:h.enter;if(!o&&!a||xE.disabled){this.safeSetState({status:al},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:ta},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:al},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:_l.findDOMNode(this);if(!i||xE.disabled){this.safeSetState({status:ea},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:e2},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ea},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:_l.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===cc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=st(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(vh.Provider,{value:null},typeof a=="function"?a(o,u):Ze.cloneElement(Ze.Children.only(a),u))},t}(Ze.Component);Wi.contextType=vh;Wi.propTypes={};function il(){}Wi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:il,onEntering:il,onEntered:il,onExit:il,onExiting:il,onExited:il};Wi.UNMOUNTED=cc;Wi.EXITED=ea;Wi.ENTERING=ta;Wi.ENTERED=al;Wi.EXITING=e2;function WJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gx(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function qJ(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(r[c])for(a=0;ae.scrollTop;function wE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function ZJ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:f}=e,[p,h]=D.useState(!1),m=vt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=vt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&h(!0),D.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),T.jsx("span",{className:m,style:w,children:T.jsx("span",{className:v})})}const wo=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),QJ=["center","classes","className"];let tm=e=>e,bE,_E,SE,EE;const t2=550,JJ=80,eee=Na(bE||(bE=tm` + */var lx=Symbol.for("react.element"),ux=Symbol.for("react.portal"),j0=Symbol.for("react.fragment"),V0=Symbol.for("react.strict_mode"),W0=Symbol.for("react.profiler"),H0=Symbol.for("react.provider"),q0=Symbol.for("react.context"),TZ=Symbol.for("react.server_context"),G0=Symbol.for("react.forward_ref"),K0=Symbol.for("react.suspense"),Y0=Symbol.for("react.suspense_list"),X0=Symbol.for("react.memo"),Z0=Symbol.for("react.lazy"),DZ=Symbol.for("react.offscreen"),$k;$k=Symbol.for("react.module.reference");function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lx:switch(e=e.type,e){case j0:case W0:case V0:case K0:case Y0:return e;default:switch(e=e&&e.$$typeof,e){case TZ:case q0:case G0:case Z0:case X0:case H0:return e;default:return t}}case ux:return t}}}It.ContextConsumer=q0;It.ContextProvider=H0;It.Element=lx;It.ForwardRef=G0;It.Fragment=j0;It.Lazy=Z0;It.Memo=X0;It.Portal=ux;It.Profiler=W0;It.StrictMode=V0;It.Suspense=K0;It.SuspenseList=Y0;It.isAsyncMode=function(){return!1};It.isConcurrentMode=function(){return!1};It.isContextConsumer=function(e){return Bo(e)===q0};It.isContextProvider=function(e){return Bo(e)===H0};It.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lx};It.isForwardRef=function(e){return Bo(e)===G0};It.isFragment=function(e){return Bo(e)===j0};It.isLazy=function(e){return Bo(e)===Z0};It.isMemo=function(e){return Bo(e)===X0};It.isPortal=function(e){return Bo(e)===ux};It.isProfiler=function(e){return Bo(e)===W0};It.isStrictMode=function(e){return Bo(e)===V0};It.isSuspense=function(e){return Bo(e)===K0};It.isSuspenseList=function(e){return Bo(e)===Y0};It.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===j0||e===W0||e===V0||e===K0||e===Y0||e===DZ||typeof e=="object"&&e!==null&&(e.$$typeof===Z0||e.$$typeof===X0||e.$$typeof===H0||e.$$typeof===q0||e.$$typeof===G0||e.$$typeof===$k||e.getModuleId!==void 0)};It.typeOf=Bo;Ik.exports=It;var eE=Ik.exports;const PZ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Fk(e){const t=`${e}`.match(PZ);return t&&t[1]||""}function Uk(e,t=""){return e.displayName||e.name||Fk(e)||t}function tE(e,t,n){const r=Uk(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function OZ(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Uk(e,"Component");if(typeof e=="object")switch(e.$$typeof){case eE.ForwardRef:return tE(e,e.render,"ForwardRef");case eE.Memo:return tE(e,e.type,"memo");default:return}}}const LZ=Object.freeze(Object.defineProperty({__proto__:null,default:OZ,getFunctionName:Fk},Symbol.toStringTag,{value:"Module"})),NZ=["ownerState"],MZ=["variants"],BZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function IZ(e){return Object.keys(e).length===0}function $Z(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const FZ=Tf(),UZ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jd({defaultTheme:e,theme:t,themeId:n}){return IZ(t)?e:t[n]||t}function zZ(e){return e?(t,n)=>n[e]:null}function Dp(e,t){let{ownerState:n}=t,r=st(t,NZ);const o=typeof e=="function"?e(j({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Dp(i,j({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=st(o,MZ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(j({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(j({ownerState:n},r,n)):c.style))}),u}return o}function jZ(e={}){const{themeId:t,defaultTheme:n=FZ,rootShouldForwardProp:r=hv,slotShouldForwardProp:o=hv}=e,i=a=>hu(j({},a,{theme:Jd(j({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{Ak(a,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=zZ(UZ(f))}=u,w=st(u,BZ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,b=hv;f==="Root"||f==="root"?b=r:f?b=o:$Z(a)&&(b=void 0);const x=nx(a,j({shouldForwardProp:b,label:A},w)),S=P=>typeof P=="function"&&P.__emotion_real!==P||Li(P)?E=>Dp(P,j({},E,{theme:Jd({theme:E.theme,defaultTheme:n,themeId:t})})):P,k=(P,...E)=>{let L=S(P);const $=E?E.map(S):[];c&&m&&$.push(X=>{const se=Jd(j({},X,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const q=se.components[c].styleOverrides,G={};return Object.entries(q).forEach(([Q,le])=>{G[Q]=Dp(le,j({},X,{theme:se}))}),m(X,G)}),c&&!v&&$.push(X=>{var se;const q=Jd(j({},X,{defaultTheme:n,themeId:t})),G=q==null||(se=q.components)==null||(se=se[c])==null?void 0:se.variants;return Dp({variants:G},j({},X,{theme:q}))}),y||$.push(i);const H=$.length-E.length;if(Array.isArray(P)&&H>0){const X=new Array(H).fill("");L=[...P,...X],L.raw=[...P.raw,...X]}const I=x(L,...$);return a.muiName&&(I.muiName=a.muiName),I};return x.withConfig&&(k.withConfig=x.withConfig),k}}const VZ=jZ();function Jc(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(a=>{n[r][a]=Jc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function WZ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Jc(t.components[n].defaultProps,r)}function HZ({props:e,name:t,defaultTheme:n,themeId:r}){let o=U0(n);return r&&(o=o[r]||o),WZ({theme:o,name:t,props:e})}const vi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function zk(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const qZ=Object.freeze(Object.defineProperty({__proto__:null,default:zk},Symbol.toStringTag,{value:"Module"}));function GZ(e,t=0,n=1){return zk(e,t,n)}function KZ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jk(e){if(e.type)return e;if(e.charAt(0)==="#")return jk(KZ(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ts(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ts(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function YZ(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Jn(e,t){return e=jk(e),t=GZ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,YZ(e)}function XZ(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Pp(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function K1(e){return e&&e.ownerDocument||document}function nE(e){return K1(e).defaultView||window}function Y1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rE=0;function ZZ(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(rE+=1,n(`mui-${rE}`))},[t]),r}const oE=Mp.useId;function QZ(e){if(oE!==void 0){const t=oE();return e??t}return ZZ(e)}function JZ({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),u=o?e:i,c=D.useCallback(f=>{o||a(f)},[]);return[u,c]}function Cl(e){const t=D.useRef(e);return vi(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function to(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Y1(n,t)})},e)}const iE={};function eQ(e,t){const n=D.useRef(iE);return n.current===iE&&(n.current=e(t)),n}const tQ=[];function nQ(e){D.useEffect(e,tQ)}class Df{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Df}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Al(){const e=eQ(Df.create).current;return nQ(e.disposeEffect),e}let Q0=!0,X1=!1;const rQ=new Df,oQ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function iQ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&oQ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function sQ(e){e.metaKey||e.altKey||e.ctrlKey||(Q0=!0)}function mv(){Q0=!1}function aQ(){this.visibilityState==="hidden"&&X1&&(Q0=!0)}function lQ(e){e.addEventListener("keydown",sQ,!0),e.addEventListener("mousedown",mv,!0),e.addEventListener("pointerdown",mv,!0),e.addEventListener("touchstart",mv,!0),e.addEventListener("visibilitychange",aQ,!0)}function uQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Q0||iQ(t)}function cx(){const e=D.useCallback(o=>{o!=null&&lQ(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(X1=!0,rQ.start(100,()=>{X1=!1}),t.current=!1,!0):!1}function r(o){return uQ(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function or(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function ef(e){return typeof e=="string"}function uc(e,t,n){return e===void 0||ef(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function cQ(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function sE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fQ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=vt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=j({},n,o,r);return w.length>0&&(y.className=w),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=cQ(j({},o,r)),u=sE(r),c=sE(o),f=t(a),p=vt(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=j({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=j({},f,n,c,u);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}function dQ(e,t,n){return typeof e=="function"?e(t,n):e}const pQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hQ(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=st(e,pQ),u=i?{}:dQ(r,o),{props:c,internalRef:f}=fQ(j({},a,{externalSlotProps:u})),p=to(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return uc(n,j({},c,{ref:p}),o)}const Vk=D.createContext(null);function Wk(){return D.useContext(Vk)}const mQ=typeof Symbol=="function"&&Symbol.for,gQ=mQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function vQ(e,t){return typeof t=="function"?t(e):j({},e,t)}function yQ(e){const{children:t,theme:n}=e,r=Wk(),o=D.useMemo(()=>{const i=r===null?n:vQ(r,n);return i!=null&&(i[gQ]=r!==null),i},[n,r]);return T.jsx(Vk.Provider,{value:o,children:t})}const xQ=["value"],Hk=D.createContext();function wQ(e){let{value:t}=e,n=st(e,xQ);return T.jsx(Hk.Provider,j({value:t??!0},n))}const bQ=()=>{const e=D.useContext(Hk);return e??!1},qk=D.createContext(void 0);function _Q({value:e,children:t}){return T.jsx(qk.Provider,{value:e,children:t})}function SQ(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Jc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Jc(o,r):r}function EQ({props:e,name:t}){const n=D.useContext(qk);return SQ({props:e,name:t,theme:{components:n}})}const aE={};function lE(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?j({},t,{[e]:i}):i;return r?()=>a:a}return e?j({},t,{[e]:n}):j({},t,n)},[e,t,n,r])}function CQ(e){const{children:t,theme:n,themeId:r}=e,o=Nk(aE),i=Wk()||aE,a=lE(r,o,n),u=lE(r,i,n,!0),c=a.direction==="rtl";return T.jsx(yQ,{theme:u,children:T.jsx(Af.Provider,{value:a,children:T.jsx(wQ,{value:c,children:T.jsx(_Q,{value:a==null?void 0:a.components,children:t})})})})}const AQ=["component","direction","spacing","divider","children","className","useFlexGap"],RQ=Tf(),kQ=VZ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function TQ(e){return HZ({props:e,name:"MuiStack",defaultTheme:RQ})}function DQ(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],OQ=({ownerState:e,theme:t})=>{let n=j({display:"flex",flexDirection:"column"},ei({theme:t},pv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=sx(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),i=pv({values:e.direction,base:o}),a=pv({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,f,p)=>{if(!i[c]){const m=f>0?i[p[f-1]]:"column";i[c]=m}}),n=ko(n,ei({theme:t},a,(c,f)=>e.useFlexGap?{gap:Aa(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${PQ(f?i[f]:e.direction)}`]:Aa(r,c)}}))}return n=TX(t.breakpoints,n),n};function LQ(e={}){const{createStyledComponent:t=kQ,useThemeProps:n=TQ,componentName:r="MuiStack"}=e,o=()=>or({root:["root"]},c=>qn(r,c),{}),i=t(OQ);return D.forwardRef(function(c,f){const p=n(c),h=z0(p),{component:m="div",direction:w="column",spacing:v=0,divider:y,children:A,className:b,useFlexGap:x=!1}=h,S=st(h,AQ),k={direction:w,spacing:v,useFlexGap:x},P=o();return T.jsx(i,j({as:m,ownerState:k,ref:f,className:vt(P.root,b)},S,{children:y?DQ(A,y):A}))})}function NQ(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var kn={},Gk={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gk);var Kk=Gk.exports;const MQ=ji(vY),BQ=ji(qZ);var Yk=Kk;Object.defineProperty(kn,"__esModule",{value:!0});var wr=kn.alpha=Jk;kn.blend=YQ;kn.colorChannel=void 0;var IQ=kn.darken=dx;kn.decomposeColor=Oo;kn.emphasize=eT;var $Q=kn.getContrastRatio=WQ;kn.getLuminance=gh;kn.hexToRgb=Xk;kn.hslToRgb=Qk;var FQ=kn.lighten=px;kn.private_safeAlpha=HQ;kn.private_safeColorChannel=void 0;kn.private_safeDarken=qQ;kn.private_safeEmphasize=KQ;kn.private_safeLighten=GQ;kn.recomposeColor=mu;kn.rgbToHex=VQ;var uE=Yk(MQ),UQ=Yk(BQ);function fx(e,t=0,n=1){return(0,UQ.default)(e,t,n)}function Xk(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zQ(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Oo(e){if(e.type)return e;if(e.charAt(0)==="#")return Oo(Xk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,uE.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,uE.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Zk=e=>{const t=Oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};kn.colorChannel=Zk;const jQ=(e,t)=>{try{return Zk(e)}catch{return e}};kn.private_safeColorChannel=jQ;function mu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function VQ(e){if(e.indexOf("#")===0)return e;const{values:t}=Oo(e);return`#${t.map((n,r)=>zQ(r===3?Math.round(255*n):n)).join("")}`}function Qk(e){e=Oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),mu({type:u,values:c})}function gh(e){e=Oo(e);let t=e.type==="hsl"||e.type==="hsla"?Oo(Qk(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function WQ(e,t){const n=gh(e),r=gh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Jk(e,t){return e=Oo(e),t=fx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mu(e)}function HQ(e,t,n){try{return Jk(e,t)}catch{return e}}function dx(e,t){if(e=Oo(e),t=fx(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mu(e)}function qQ(e,t,n){try{return dx(e,t)}catch{return e}}function px(e,t){if(e=Oo(e),t=fx(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mu(e)}function GQ(e,t,n){try{return px(e,t)}catch{return e}}function eT(e,t=.15){return gh(e)>.5?dx(e,t):px(e,t)}function KQ(e,t,n){try{return eT(e,t)}catch{return e}}function YQ(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),i=Oo(e),a=Oo(t),u=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return mu({type:"rgb",values:u})}const XQ=["mode","contrastThreshold","tonalOffset"],cE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yc.white,default:Yc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},gv={text:{primary:Yc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function fE(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=FQ(e.main,o):t==="dark"&&(e.dark=IQ(e.main,i)))}function ZQ(e="light"){return e==="dark"?{main:nl[200],light:nl[50],dark:nl[400]}:{main:nl[700],light:nl[400],dark:nl[800]}}function QQ(e="light"){return e==="dark"?{main:tl[200],light:tl[50],dark:tl[400]}:{main:tl[500],light:tl[300],dark:tl[700]}}function JQ(e="light"){return e==="dark"?{main:el[500],light:el[300],dark:el[700]}:{main:el[700],light:el[400],dark:el[800]}}function eJ(e="light"){return e==="dark"?{main:rl[400],light:rl[300],dark:rl[700]}:{main:rl[700],light:rl[500],dark:rl[900]}}function tJ(e="light"){return e==="dark"?{main:ol[400],light:ol[300],dark:ol[700]}:{main:ol[800],light:ol[500],dark:ol[900]}}function nJ(e="light"){return e==="dark"?{main:Qu[400],light:Qu[300],dark:Qu[700]}:{main:"#ed6c02",light:Qu[500],dark:Qu[900]}}function rJ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=st(e,XQ),i=e.primary||ZQ(t),a=e.secondary||QQ(t),u=e.error||JQ(t),c=e.info||eJ(t),f=e.success||tJ(t),p=e.warning||nJ(t);function h(y){return $Q(y,gv.text.primary)>=n?gv.text.primary:cE.text.primary}const m=({color:y,name:A,mainShade:b=500,lightShade:x=300,darkShade:S=700})=>{if(y=j({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Ts(11,A?` (${A})`:"",b));if(typeof y.main!="string")throw new Error(Ts(12,A?` (${A})`:"",JSON.stringify(y.main)));return fE(y,"light",x,r),fE(y,"dark",S,r),y.contrastText||(y.contrastText=h(y.main)),y},w={dark:gv,light:cE};return ko(j({common:j({},Yc),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:gY,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},w[t]),o)}const oJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function iJ(e){return Math.round(e*1e5)/1e5}const dE={textTransform:"uppercase"},pE='"Roboto", "Helvetica", "Arial", sans-serif';function sJ(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=pE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=st(n,oJ),w=o/14,v=h||(b=>`${b/f*w}rem`),y=(b,x,S,k,P)=>j({fontFamily:r,fontWeight:b,fontSize:v(x),lineHeight:S},r===pE?{letterSpacing:`${iJ(k/x)}em`}:{},P,p),A={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(u,14,1.75,.4,dE),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,dE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ko(j({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},A),m,{clone:!1})}const aJ=.2,lJ=.14,uJ=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${aJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${lJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uJ})`].join(",")}const cJ=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],fJ=["duration","easing","delay"],dJ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},pJ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hE(e){return`${Math.round(e)}ms`}function hJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function mJ(e){const t=j({},dJ,e.easing),n=j({},pJ,e.duration);return j({getAutoHeightDuration:hJ,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:u=t.easeInOut,delay:c=0}=i;return st(i,fJ),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:hE(a)} ${u} ${typeof c=="string"?c:hE(c)}`).join(",")}},e,{easing:t,duration:n})}const gJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function J0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=st(e,vJ);if(e.vars)throw new Error(Ts(18));const u=rJ(r),c=Tf(e);let f=ko(c,{mixins:NQ(c.breakpoints,n),palette:u,shadows:cJ.slice(),typography:sJ(u,i),transitions:mJ(o),zIndex:j({},gJ)});return f=ko(f,a),f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=j({},kf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return hu({sx:h,theme:this})},f}const hx=J0();function em(){const e=U0(hx);return e[Ql]||e}var Pf={};const yJ=ji(yY);var vv={exports:{}},mE;function xJ(){return mE||(mE=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vv)),vv.exports}const tT=ji(EX),wJ=ji(CX),bJ=ji(PX),_J=ji(LZ),SJ=ji(yZ),EJ=ji(EZ);var gu=Kk;Object.defineProperty(Pf,"__esModule",{value:!0});var CJ=Pf.default=$J;Pf.shouldForwardProp=Op;Pf.systemDefaultTheme=void 0;var xo=gu(yJ),Z1=gu(xJ()),gE=OJ(tT),AJ=wJ;gu(bJ);gu(_J);var RJ=gu(SJ),kJ=gu(EJ);const TJ=["ownerState"],DJ=["variants"],PJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nT=function(r){return r?n:t})(e)}function OJ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nT(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 LJ(e){return Object.keys(e).length===0}function NJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Op(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const MJ=Pf.systemDefaultTheme=(0,RJ.default)(),BJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ep({defaultTheme:e,theme:t,themeId:n}){return LJ(t)?e:t[n]||t}function IJ(e){return e?(t,n)=>n[e]:null}function Lp(e,t){let{ownerState:n}=t,r=(0,Z1.default)(t,TJ);const o=typeof e=="function"?e((0,xo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Lp(i,(0,xo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=(0,Z1.default)(o,DJ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,xo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,xo.default)({ownerState:n},r,n)):c.style))}),u}return o}function $J(e={}){const{themeId:t,defaultTheme:n=MJ,rootShouldForwardProp:r=Op,slotShouldForwardProp:o=Op}=e,i=a=>(0,kJ.default)((0,xo.default)({},a,{theme:ep((0,xo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{(0,gE.internal_processStyles)(a,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=IJ(BJ(f))}=u,w=(0,Z1.default)(u,PJ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,b=Op;f==="Root"||f==="root"?b=r:f?b=o:NJ(a)&&(b=void 0);const x=(0,gE.default)(a,(0,xo.default)({shouldForwardProp:b,label:A},w)),S=P=>typeof P=="function"&&P.__emotion_real!==P||(0,AJ.isPlainObject)(P)?E=>Lp(P,(0,xo.default)({},E,{theme:ep({theme:E.theme,defaultTheme:n,themeId:t})})):P,k=(P,...E)=>{let L=S(P);const $=E?E.map(S):[];c&&m&&$.push(X=>{const se=ep((0,xo.default)({},X,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const q=se.components[c].styleOverrides,G={};return Object.entries(q).forEach(([Q,le])=>{G[Q]=Lp(le,(0,xo.default)({},X,{theme:se}))}),m(X,G)}),c&&!v&&$.push(X=>{var se;const q=ep((0,xo.default)({},X,{defaultTheme:n,themeId:t})),G=q==null||(se=q.components)==null||(se=se[c])==null?void 0:se.variants;return Lp({variants:G},(0,xo.default)({},X,{theme:q}))}),y||$.push(i);const H=$.length-E.length;if(Array.isArray(P)&&H>0){const X=new Array(H).fill("");L=[...P,...X],L.raw=[...P.raw,...X]}const I=x(L,...$);return a.muiName&&(I.muiName=a.muiName),I};return x.withConfig&&(k.withConfig=x.withConfig),k}}function FJ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vu=e=>FJ(e)&&e!=="classes",Ot=CJ({themeId:Ql,defaultTheme:hx,rootShouldForwardProp:vu}),UJ=["theme"];function zJ(e){let{theme:t}=e,n=st(e,UJ);const r=t[Ql];return T.jsx(CQ,j({},n,{themeId:r?Ql:void 0,theme:r||t}))}function zn(e){return EQ(e)}function Q1(e,t){return Q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Q1(e,t)}function rT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Q1(e,t)}const vE={disabled:!1},vh=Ze.createContext(null);var jJ=function(t){return t.scrollTop},cc="unmounted",ea="exited",ta="entering",al="entered",J1="exiting",Hi=function(e){rT(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?u?(c=ea,i.appearStatus=ta):c=al:r.unmountOnExit||r.mountOnEnter?c=cc:c=ea,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===cc?{status:ea}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ta&&a!==al&&(i=ta):(a===ta||a===al)&&(i=J1)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ta){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:_l.findDOMNode(this);a&&jJ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ea&&this.setState({status:cc})},n.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[_l.findDOMNode(this),u],f=c[0],p=c[1],h=this.getTimeouts(),m=u?h.appear:h.enter;if(!o&&!a||vE.disabled){this.safeSetState({status:al},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:ta},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:al},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:_l.findDOMNode(this);if(!i||vE.disabled){this.safeSetState({status:ea},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:J1},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ea},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:_l.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===cc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=st(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(vh.Provider,{value:null},typeof a=="function"?a(o,u):Ze.cloneElement(Ze.Children.only(a),u))},t}(Ze.Component);Hi.contextType=vh;Hi.propTypes={};function il(){}Hi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:il,onEntering:il,onEntered:il,onExit:il,onExiting:il,onExited:il};Hi.UNMOUNTED=cc;Hi.EXITED=ea;Hi.ENTERING=ta;Hi.ENTERED=al;Hi.EXITING=J1;function VJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mx(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function WJ(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(r[c])for(a=0;ae.scrollTop;function yE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function XJ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:f}=e,[p,h]=D.useState(!1),m=vt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=vt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&h(!0),D.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),T.jsx("span",{className:m,style:w,children:T.jsx("span",{className:v})})}const wo=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ZJ=["center","classes","className"];let tm=e=>e,xE,wE,bE,_E;const e2=550,QJ=80,JJ=Ma(xE||(xE=tm` 0% { transform: scale(0); opacity: 0.1; @@ -172,7 +172,7 @@ function print() { __p += __j.call(arguments, '') } transform: scale(1); opacity: 0.3; } -`)),tee=Na(_E||(_E=tm` +`)),eee=Ma(wE||(wE=tm` 0% { opacity: 1; } @@ -180,7 +180,7 @@ function print() { __p += __j.call(arguments, '') } 100% { opacity: 0; } -`)),nee=Na(SE||(SE=tm` +`)),tee=Ma(bE||(bE=tm` 0% { transform: scale(1); } @@ -192,7 +192,7 @@ function print() { __p += __j.call(arguments, '') } 100% { transform: scale(1); } -`)),ree=Ot("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),oee=Ot(ZJ,{name:"MuiTouchRipple",slot:"Ripple"})(EE||(EE=tm` +`)),nee=Ot("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ree=Ot(XJ,{name:"MuiTouchRipple",slot:"Ripple"})(_E||(_E=tm` opacity: 0; position: absolute; @@ -235,8 +235,8 @@ function print() { __p += __j.call(arguments, '') } animation-iteration-count: infinite; animation-delay: 200ms; } -`),wo.rippleVisible,eee,t2,({theme:e})=>e.transitions.easing.easeInOut,wo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wo.child,wo.childLeaving,tee,t2,({theme:e})=>e.transitions.easing.easeInOut,wo.childPulsate,nee,({theme:e})=>e.transitions.easing.easeInOut),iee=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=st(r,QJ),[c,f]=D.useState([]),p=D.useRef(0),h=D.useRef(null);D.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=D.useRef(!1),w=Al(),v=D.useRef(null),y=D.useRef(null),A=D.useCallback(k=>{const{pulsate:P,rippleX:E,rippleY:L,rippleSize:$,cb:q}=k;f(I=>[...I,T.jsx(oee,{classes:{ripple:vt(i.ripple,wo.ripple),rippleVisible:vt(i.rippleVisible,wo.rippleVisible),ripplePulsate:vt(i.ripplePulsate,wo.ripplePulsate),child:vt(i.child,wo.child),childLeaving:vt(i.childLeaving,wo.childLeaving),childPulsate:vt(i.childPulsate,wo.childPulsate)},timeout:t2,pulsate:P,rippleX:E,rippleY:L,rippleSize:$},p.current)]),p.current+=1,h.current=q},[i]),b=D.useCallback((k={},P={},E=()=>{})=>{const{pulsate:L=!1,center:$=o||P.pulsate,fakeElement:q=!1}=P;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 I=q?null:y.current,X=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,H,G;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)se=Math.round(X.width/2),H=Math.round(X.height/2);else{const{clientX:Q,clientY:le}=k.touches&&k.touches.length>0?k.touches[0]:k;se=Math.round(Q-X.left),H=Math.round(le-X.top)}if($)G=Math.sqrt((2*X.width**2+X.height**2)/3),G%2===0&&(G+=1);else{const Q=Math.max(Math.abs((I?I.clientWidth:0)-se),se)*2+2,le=Math.max(Math.abs((I?I.clientHeight:0)-H),H)*2+2;G=Math.sqrt(Q**2+le**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{A({pulsate:L,rippleX:se,rippleY:H,rippleSize:G,cb:E})},w.start(JJ,()=>{v.current&&(v.current(),v.current=null)})):A({pulsate:L,rippleX:se,rippleY:H,rippleSize:G,cb:E})},[o,A,w]),x=D.useCallback(()=>{b({},{pulsate:!0})},[b]),S=D.useCallback((k,P)=>{if(w.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,w.start(0,()=>{S(k,P)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),h.current=P},[w]);return D.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:S}),[x,b,S]),T.jsx(ree,j({className:vt(wo.root,i.root,a),ref:y},u,{children:T.jsx(vx,{component:null,exit:!0,children:c})}))});function see(e){return Hn("MuiButtonBase",e)}const aee=Gn("MuiButtonBase",["root","disabled","focusVisible"]),lee=["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"],uee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=or({root:["root",t&&"disabled",n&&"focusVisible"]},see,o);return n&&r&&(a.root+=` ${r}`),a},cee=Ot("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"},[`&.${aee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yx=D.forwardRef(function(t,n){const r=zn({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:w="a",onBlur:v,onClick:y,onContextMenu:A,onDragLeave:b,onFocus:x,onFocusVisible:S,onKeyDown:k,onKeyUp:P,onMouseDown:E,onMouseLeave:L,onMouseUp:$,onTouchEnd:q,onTouchMove:I,onTouchStart:X,tabIndex:se=0,TouchRippleProps:H,touchRippleRef:G,type:Q}=r,le=st(r,lee),pe=D.useRef(null),J=D.useRef(null),de=to(J,G),{isFocusVisibleRef:re,onFocus:he,onBlur:U,ref:ae}=fx(),[te,ye]=D.useState(!1);f&&te&&ye(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{ye(!0),pe.current.focus()}}),[]);const[ue,Me]=D.useState(!1);D.useEffect(()=>{Me(!0)},[]);const Re=ue&&!p&&!f;D.useEffect(()=>{te&&m&&!p&&ue&&J.current.pulsate()},[p,m,te,ue]);function ve(Le,Xt,ir=h){return Cl(Yn=>(Xt&&Xt(Yn),!ir&&J.current&&J.current[Le](Yn),!0))}const Ce=ve("start",E),ge=ve("stop",A),_e=ve("stop",b),je=ve("stop",$),nt=ve("stop",Le=>{te&&Le.preventDefault(),L&&L(Le)}),ut=ve("start",X),yt=ve("stop",q),rt=ve("stop",I),cn=ve("stop",Le=>{U(Le),re.current===!1&&ye(!1),v&&v(Le)},!1),Kn=Cl(Le=>{pe.current||(pe.current=Le.currentTarget),he(Le),re.current===!0&&(ye(!0),S&&S(Le)),x&&x(Le)}),dt=()=>{const Le=pe.current;return c&&c!=="button"&&!(Le.tagName==="A"&&Le.href)},at=D.useRef(!1),fn=Cl(Le=>{m&&!at.current&&te&&J.current&&Le.key===" "&&(at.current=!0,J.current.stop(Le,()=>{J.current.start(Le)})),Le.target===Le.currentTarget&&dt()&&Le.key===" "&&Le.preventDefault(),k&&k(Le),Le.target===Le.currentTarget&&dt()&&Le.key==="Enter"&&!f&&(Le.preventDefault(),y&&y(Le))}),dn=Cl(Le=>{m&&Le.key===" "&&J.current&&te&&!Le.defaultPrevented&&(at.current=!1,J.current.stop(Le,()=>{J.current.pulsate(Le)})),P&&P(Le),y&&Le.target===Le.currentTarget&&dt()&&Le.key===" "&&!Le.defaultPrevented&&y(Le)});let Ut=c;Ut==="button"&&(le.href||le.to)&&(Ut=w);const Rt={};Ut==="button"?(Rt.type=Q===void 0?"button":Q,Rt.disabled=f):(!le.href&&!le.to&&(Rt.role="button"),f&&(Rt["aria-disabled"]=f));const Tn=to(n,ae,pe),nn=j({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:se,focusVisible:te}),He=uee(nn);return T.jsxs(cee,j({as:Ut,className:vt(He.root,u),ownerState:nn,onBlur:cn,onClick:y,onContextMenu:ge,onFocus:Kn,onKeyDown:fn,onKeyUp:dn,onMouseDown:Ce,onMouseLeave:nt,onMouseUp:je,onDragLeave:_e,onTouchEnd:yt,onTouchMove:rt,onTouchStart:ut,ref:Tn,tabIndex:f?-1:se,type:Q},Rt,le,{children:[a,Re?T.jsx(iee,j({ref:de,center:i},H)):null]}))});function fee(e){return Hn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pee=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${At(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return or(u,fee,a)},hee=Ot("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${At(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({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})),CE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gee=e=>mee[e]||e,xn=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiTypography"}),o=gee(r.color),i=z0(j({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:w=CE}=i,v=st(i,dee),y=j({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:w}),A=c||(h?"p":w[m]||CE[m])||"span",b=pee(y);return T.jsx(hee,j({as:A,ref:n,ownerState:y,className:vt(b.root,u)},v))});var xx={};Object.defineProperty(xx,"__esModule",{value:!0});var aT=xx.default=void 0,vee=xee(D),yee=oT;function lT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(lT=function(r){return r?n:t})(e)}function xee(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=lT(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 wee(e){return Object.keys(e).length===0}function bee(e=null){const t=vee.useContext(yee.ThemeContext);return!t||wee(t)?e:t}aT=xx.default=bee;var Ir="top",Lo="bottom",Mo="right",$r="left",wx="auto",Of=[Ir,Lo,Mo,$r],tu="start",tf="end",_ee="clippingParents",uT="viewport",ec="popper",See="reference",AE=Of.reduce(function(e,t){return e.concat([t+"-"+tu,t+"-"+tf])},[]),cT=[].concat(Of,[wx]).reduce(function(e,t){return e.concat([t,t+"-"+tu,t+"-"+tf])},[]),Eee="beforeRead",Cee="read",Aee="afterRead",Ree="beforeMain",kee="main",Tee="afterMain",Dee="beforeWrite",Pee="write",Oee="afterWrite",Lee=[Eee,Cee,Aee,Ree,kee,Tee,Dee,Pee,Oee];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 Ra(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 bx(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mee(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 Nee(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 Bee={name:"applyStyles",enabled:!0,phase:"write",fn:Mee,effect:Nee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ga=Math.max,yh=Math.min,nu=Math.round;function n2(){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 fT(){return!/^((?!chrome|android).)*safari/i.test(n2())}function ru(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&&nu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&nu(r.height)/e.offsetHeight||1);var a=Ra(e)?no(e):window,u=a.visualViewport,c=!fT()&&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 _x(e){var t=ru(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 dT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return no(e).getComputedStyle(e)}function Iee(e){return["table","td","th"].indexOf(yi(e))>=0}function $s(e){return((Ra(e)?e.ownerDocument:e.document)||window.document).documentElement}function nm(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(bx(e)?e.host:null)||$s(e)}function RE(e){return!To(e)||zi(e).position==="fixed"?null:e.offsetParent}function $ee(e){var t=/firefox/i.test(n2()),n=/Trident/i.test(n2());if(n&&To(e)){var r=zi(e);if(r.position==="fixed")return null}var o=nm(e);for(bx(o)&&(o=o.host);To(o)&&["html","body"].indexOf(yi(o))<0;){var i=zi(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 Lf(e){for(var t=no(e),n=RE(e);n&&Iee(n)&&zi(n).position==="static";)n=RE(n);return n&&(yi(n)==="html"||yi(n)==="body"&&zi(n).position==="static")?t:n||$ee(e)||t}function Sx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ec(e,t,n){return ga(e,yh(t,n))}function Fee(e,t,n){var r=Ec(e,t,n);return r>n?n:r}function pT(){return{top:0,right:0,bottom:0,left:0}}function hT(e){return Object.assign({},pT(),e)}function mT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Uee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hT(typeof t!="number"?t:mT(t,Of))};function zee(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=Sx(u),f=[$r,Mo].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=Uee(o.padding,n),m=_x(i),w=c==="y"?Ir:$r,v=c==="y"?Lo:Mo,y=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],b=Lf(i),x=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-A/2,k=h[w],P=x-m[p]-h[v],E=x/2-m[p]/2+S,L=Ec(k,E,P),$=c;n.modifiersData[r]=(t={},t[$]=L,t.centerOffset=L-E,t)}}function jee(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)||dT(t.elements.popper,o)&&(t.elements.arrow=o))}const Vee={name:"arrow",enabled:!0,phase:"main",fn:zee,effect:jee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ou(e){return e.split("-")[1]}var Wee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:nu(n*o)/o||0,y:nu(r*o)/o||0}}function kE(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,w=m===void 0?0:m,v=a.y,y=v===void 0?0:v,A=typeof p=="function"?p({x:w,y}):{x:w,y};w=A.x,y=A.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),S=$r,k=Ir,P=window;if(f){var E=Lf(n),L="clientHeight",$="clientWidth";if(E===no(n)&&(E=$s(n),zi(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",$="scrollWidth")),E=E,o===Ir||(o===$r||o===Mo)&&i===tf){k=Lo;var q=h&&E===P&&P.visualViewport?P.visualViewport.height:E[L];y-=q-r.height,y*=c?1:-1}if(o===$r||(o===Ir||o===Lo)&&i===tf){S=Mo;var I=h&&E===P&&P.visualViewport?P.visualViewport.width:E[$];w-=I-r.width,w*=c?1:-1}}var X=Object.assign({position:u},f&&Wee),se=p===!0?qee({x:w,y},no(n)):{x:w,y};if(w=se.x,y=se.y,c){var H;return Object.assign({},X,(H={},H[k]=x?"0":"",H[S]=b?"0":"",H.transform=(P.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",H))}return Object.assign({},X,(t={},t[k]=x?y+"px":"",t[S]=b?w+"px":"",t.transform="",t))}function Hee(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:ou(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,kE(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,kE(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 Gee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hee,data:{}};var tp={passive:!0};function Kee(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,tp)}),u&&c.addEventListener("resize",n.update,tp),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,tp)}),u&&c.removeEventListener("resize",n.update,tp)}}const Yee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kee,data:{}};var Xee={left:"right",right:"left",bottom:"top",top:"bottom"};function Mp(e){return e.replace(/left|right|bottom|top/g,function(t){return Xee[t]})}var Zee={start:"end",end:"start"};function TE(e){return e.replace(/start|end/g,function(t){return Zee[t]})}function Ex(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cx(e){return ru($s(e)).left+Ex(e).scrollLeft}function Qee(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=fT();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+Cx(e),y:c}}function Jee(e){var t,n=$s(e),r=Ex(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ga(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ga(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Cx(e),c=-r.scrollTop;return zi(o||n).direction==="rtl"&&(u+=ga(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}function Ax(e){var t=zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gT(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&Ax(e)?e:gT(nm(e))}function Cc(e,t){var n;t===void 0&&(t=[]);var r=gT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],Ax(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Cc(nm(a)))}function r2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ete(e,t){var n=ru(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 DE(e,t,n){return t===uT?r2(Qee(e,n)):Ra(t)?ete(t,n):r2(Jee($s(e)))}function tte(e){var t=Cc(nm(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&To(e)?Lf(e):e;return Ra(r)?t.filter(function(o){return Ra(o)&&dT(o,r)&&yi(o)!=="body"}):[]}function nte(e,t,n,r){var o=t==="clippingParents"?tte(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=DE(e,f,r);return c.top=ga(p.top,c.top),c.right=yh(p.right,c.right),c.bottom=yh(p.bottom,c.bottom),c.left=ga(p.left,c.left),c},DE(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 vT(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?ou(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 Mo: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?Sx(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case tu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case tf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function nf(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?_ee:u,f=n.rootBoundary,p=f===void 0?uT:f,h=n.elementContext,m=h===void 0?ec:h,w=n.altBoundary,v=w===void 0?!1:w,y=n.padding,A=y===void 0?0:y,b=hT(typeof A!="number"?A:mT(A,Of)),x=m===ec?See:ec,S=e.rects.popper,k=e.elements[v?x:m],P=nte(Ra(k)?k:k.contextElement||$s(e.elements.popper),c,p,a),E=ru(e.elements.reference),L=vT({reference:E,element:S,strategy:"absolute",placement:o}),$=r2(Object.assign({},S,L)),q=m===ec?$:E,I={top:P.top-q.top+b.top,bottom:q.bottom-P.bottom+b.bottom,left:P.left-q.left+b.left,right:q.right-P.right+b.right},X=e.modifiersData.offset;if(m===ec&&X){var se=X[o];Object.keys(I).forEach(function(H){var G=[Mo,Lo].indexOf(H)>=0?1:-1,Q=[Ir,Lo].indexOf(H)>=0?"y":"x";I[H]+=se[Q]*G})}return I}function rte(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?cT:c,p=ou(r),h=p?u?AE:AE.filter(function(v){return ou(v)===p}):Of,m=h.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=h);var w=m.reduce(function(v,y){return v[y]=nf(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[mi(y)],v},{});return Object.keys(w).sort(function(v,y){return w[v]-w[y]})}function ote(e){if(mi(e)===wx)return[];var t=Mp(e);return[TE(e),t,TE(t)]}function ite(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,w=n.flipVariations,v=w===void 0?!0:w,y=n.allowedAutoPlacements,A=t.options.placement,b=mi(A),x=b===A,S=c||(x||!v?[Mp(A)]:ote(A)),k=[A].concat(S).reduce(function(te,ye){return te.concat(mi(ye)===wx?rte(t,{placement:ye,boundary:p,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),P=t.rects.reference,E=t.rects.popper,L=new Map,$=!0,q=k[0],I=0;I=0,Q=G?"width":"height",le=nf(t,{placement:X,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),pe=G?H?Mo:$r:H?Lo:Ir;P[Q]>E[Q]&&(pe=Mp(pe));var J=Mp(pe),de=[];if(i&&de.push(le[se]<=0),u&&de.push(le[pe]<=0,le[J]<=0),de.every(function(te){return te})){q=X,$=!1;break}L.set(X,de)}if($)for(var re=v?3:1,he=function(ye){var ue=k.find(function(Me){var Re=L.get(Me);if(Re)return Re.slice(0,ye).every(function(ve){return ve})});if(ue)return q=ue,"break"},U=re;U>0;U--){var ae=he(U);if(ae==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}const ste={name:"flip",enabled:!0,phase:"main",fn:ite,requiresIfExists:["offset"],data:{_skip:!1}};function PE(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 OE(e){return[Ir,Mo,Lo,$r].some(function(t){return e[t]>=0})}function ate(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=nf(t,{elementContext:"reference"}),u=nf(t,{altBoundary:!0}),c=PE(a,r),f=PE(u,o,i),p=OE(c),h=OE(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 lte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ate};function ute(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,Mo].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function cte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=cT.reduce(function(p,h){return p[h]=ute(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 fte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cte};function dte(e){var t=e.state,n=e.name;t.modifiersData[n]=vT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const pte={name:"popperOffsets",enabled:!0,phase:"read",fn:dte,data:{}};function hte(e){return e==="x"?"y":"x"}function mte(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,w=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,A=nf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),b=mi(t.placement),x=ou(t.placement),S=!x,k=Sx(b),P=hte(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,$=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(E){if(i){var H,G=k==="y"?Ir:$r,Q=k==="y"?Lo:Mo,le=k==="y"?"height":"width",pe=E[k],J=pe+A[G],de=pe-A[Q],re=w?-$[le]/2:0,he=x===tu?L[le]:$[le],U=x===tu?-$[le]:-L[le],ae=t.elements.arrow,te=w&&ae?_x(ae):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pT(),ue=ye[G],Me=ye[Q],Re=Ec(0,L[le],te[le]),ve=S?L[le]/2-re-Re-ue-I.mainAxis:he-Re-ue-I.mainAxis,Ce=S?-L[le]/2+re+Re+Me+I.mainAxis:U+Re+Me+I.mainAxis,ge=t.elements.arrow&&Lf(t.elements.arrow),_e=ge?k==="y"?ge.clientTop||0:ge.clientLeft||0:0,je=(H=X==null?void 0:X[k])!=null?H:0,nt=pe+ve-je-_e,ut=pe+Ce-je,yt=Ec(w?yh(J,nt):J,pe,w?ga(de,ut):de);E[k]=yt,se[k]=yt-pe}if(u){var rt,cn=k==="x"?Ir:$r,Kn=k==="x"?Lo:Mo,dt=E[P],at=P==="y"?"height":"width",fn=dt+A[cn],dn=dt-A[Kn],Ut=[Ir,$r].indexOf(b)!==-1,Rt=(rt=X==null?void 0:X[P])!=null?rt:0,Tn=Ut?fn:dt-L[at]-$[at]-Rt+I.altAxis,nn=Ut?dt+L[at]+$[at]-Rt-I.altAxis:dn,He=w&&Ut?Fee(Tn,dt,nn):Ec(w?Tn:fn,dt,w?nn:dn);E[P]=He,se[P]=He-dt}t.modifiersData[r]=se}}const gte={name:"preventOverflow",enabled:!0,phase:"main",fn:mte,requiresIfExists:["offset"]};function vte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yte(e){return e===no(e)||!To(e)?Ex(e):vte(e)}function xte(e){var t=e.getBoundingClientRect(),n=nu(t.width)/e.offsetWidth||1,r=nu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wte(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&xte(t),i=$s(t),a=ru(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||Ax(i))&&(u=yte(t)),To(t)?(c=ru(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Cx(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function bte(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 _te(e){var t=bte(e);return Lee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ste(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ete(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 LE={placement:"bottom",modifiers:[],strategy:"absolute"};function ME(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(kte(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return X1(n,a),()=>{X1(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const f={ref:c};return D.cloneElement(r,f)}return T.jsx(D.Fragment,{children:r})}return T.jsx(D.Fragment,{children:a&&Ih.createPortal(r,a)})});function Dte(e){return Hn("MuiPopper",e)}Gn("MuiPopper",["root"]);const Pte=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ote=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Lte(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 o2(e){return typeof e=="function"?e():e}function Mte(e){return e.nodeType!==void 0}const Nte=e=>{const{classes:t}=e;return or({root:["root"]},Dte,t)},Bte={},Ite=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:w={},slots:v={},TransitionProps:y}=t,A=st(t,Pte),b=D.useRef(null),x=to(b,n),S=D.useRef(null),k=to(S,m),P=D.useRef(k);vi(()=>{P.current=k},[k]),D.useImperativeHandle(m,()=>S.current,[]);const E=Lte(p,a),[L,$]=D.useState(E),[q,I]=D.useState(o2(o));D.useEffect(()=>{S.current&&S.current.forceUpdate()}),D.useEffect(()=>{o&&I(o2(o))},[o]),vi(()=>{if(!q||!f)return;const Q=J=>{$(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=Rte(q,b.current,j({placement:E},h,{modifiers:le}));return P.current(pe),()=>{pe.destroy(),P.current(null)}},[q,u,c,f,h,E]);const X={placement:L};y!==null&&(X.TransitionProps=y);const se=Nte(t),H=(r=v.root)!=null?r:"div",G=gQ({elementType:H,externalSlotProps:w.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:se.root});return T.jsx(H,j({},G,{children:typeof i=="function"?i(X):i}))}),$te=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=Bte,popperRef:w,style:v,transition:y=!1,slotProps:A={},slots:b={}}=t,x=st(t,Ote),[S,k]=D.useState(!0),P=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!y||S))return null;let L;if(i)L=i;else if(r){const I=o2(r);L=I&&Mte(I)?Y1(I).body:Y1(null).body}const $=!p&&c&&(!y||S)?"none":void 0,q=y?{in:p,onEnter:P,onExited:E}:void 0;return T.jsx(Tte,{disablePortal:u,container:L,children:T.jsx(Ite,j({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:y?!S:p,placement:h,popperOptions:m,popperRef:w,slotProps:A,slots:b},x,{style:j({position:"fixed",top:0,left:0,display:$},v),TransitionProps:q,children:o}))})}),Fte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ute=Ot($te,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yT=D.forwardRef(function(t,n){var r;const o=aT(),i=zn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:w,open:v,placement:y,popperOptions:A,popperRef:b,transition:x,slots:S,slotProps:k}=i,P=st(i,Fte),E=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,L=j({anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:w,open:v,placement:y,popperOptions:A,popperRef:b,transition:x},P);return T.jsx(Ute,j({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),zte=["onChange","maxRows","minRows","style","value"];function np(e){return parseInt(e,10)||0}const jte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Vte(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Wte=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=st(t,zte),{current:f}=D.useRef(u!=null),p=D.useRef(null),h=to(n,p),m=D.useRef(null),w=D.useRef(null),v=D.useCallback(()=>{const b=p.current,S=oE(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=w.current;k.style.width=S.width,k.value=b.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const P=S.boxSizing,E=np(S.paddingBottom)+np(S.paddingTop),L=np(S.borderBottomWidth)+np(S.borderTopWidth),$=k.scrollHeight;k.value="x";const q=k.scrollHeight;let I=$;i&&(I=Math.max(Number(i)*q,I)),o&&(I=Math.min(Number(o)*q,I)),I=Math.max(I,q);const X=I+(P==="border-box"?E+L:0),se=Math.abs(I-$)<=1;return{outerHeightStyle:X,overflowing:se}},[o,i,t.placeholder]),y=D.useCallback(()=>{const b=v();if(Vte(b))return;const x=b.outerHeightStyle,S=p.current;m.current!==x&&(m.current=x,S.style.height=`${x}px`),S.style.overflow=b.overflowing?"hidden":""},[v]);vi(()=>{const b=()=>{y()};let x;const S=QZ(b),k=p.current,P=oE(k);P.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(b),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(x),P.removeEventListener("resize",S),E&&E.disconnect()}},[v,y]),vi(()=>{y()});const A=b=>{f||y(),r&&r(b)};return T.jsxs(D.Fragment,{children:[T.jsx("textarea",j({value:u,onChange:A,ref:h,rows:i,style:a},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:j({},jte.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function xT({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 rm=D.createContext(void 0);function Rx(){return D.useContext(rm)}function wT(e){return T.jsx(SZ,j({},e,{defaultTheme:mx,themeId:Ql}))}function NE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function i2(e,t=!1){return e&&(NE(e.value)&&e.value!==""||t&&NE(e.defaultValue)&&e.defaultValue!=="")}function qte(e){return e.startAdornment}function Hte(e){return Hn("MuiInputBase",e)}const xh=Gn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Gte=["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"],bT=(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${At(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_T=(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]},Kte=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:w,type:v}=e,y={root:["root",`color${At(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${At(m)}`,p&&"multiline",w&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return or(y,Hte,t)},ST=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bT})(({theme:e,ownerState:t})=>j({},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",[`&.${xh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&j({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ET=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_T})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=j({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 j({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] + .${xh.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},[`&.${xh.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"})}),Yte=T.jsx(wT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xte=D.forwardRef(function(t,n){var r;const o=zn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:w,endAdornment:v,fullWidth:y=!1,id:A,inputComponent:b="input",inputProps:x={},inputRef:S,maxRows:k,minRows:P,multiline:E=!1,name:L,onBlur:$,onChange:q,onClick:I,onFocus:X,onKeyDown:se,onKeyUp:H,placeholder:G,readOnly:Q,renderSuffix:le,rows:pe,slotProps:J={},slots:de={},startAdornment:re,type:he="text",value:U}=o,ae=st(o,Gte),te=x.value!=null?x.value:U,{current:ye}=D.useRef(te!=null),ue=D.useRef(),Me=D.useCallback(He=>{},[]),Re=to(ue,S,x.ref,Me),[ve,Ce]=D.useState(!1),ge=Rx(),_e=xT({props:o,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=ge?ge.focused:ve,D.useEffect(()=>{!ge&&m&&ve&&(Ce(!1),$&&$())},[ge,m,ve,$]);const je=ge&&ge.onFilled,nt=ge&&ge.onEmpty,ut=D.useCallback(He=>{i2(He)?je&&je():nt&&nt()},[je,nt]);vi(()=>{ye&&ut({value:te})},[te,ut,ye]);const yt=He=>{if(_e.disabled){He.stopPropagation();return}X&&X(He),x.onFocus&&x.onFocus(He),ge&&ge.onFocus?ge.onFocus(He):Ce(!0)},rt=He=>{$&&$(He),x.onBlur&&x.onBlur(He),ge&&ge.onBlur?ge.onBlur(He):Ce(!1)},cn=(He,...Le)=>{if(!ye){const Xt=He.target||ue.current;if(Xt==null)throw new Error(ks(1));ut({value:Xt.value})}x.onChange&&x.onChange(He,...Le),q&&q(He,...Le)};D.useEffect(()=>{ut(ue.current)},[]);const Kn=He=>{ue.current&&He.currentTarget===He.target&&ue.current.focus(),I&&I(He)};let dt=b,at=x;E&&dt==="input"&&(pe?at=j({type:void 0,minRows:pe,maxRows:pe},at):at=j({type:void 0,maxRows:k,minRows:P},at),dt=Wte);const fn=He=>{ut(He.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};D.useEffect(()=>{ge&&ge.setAdornedStart(!!re)},[ge,re]);const dn=j({},o,{color:_e.color||"primary",disabled:_e.disabled,endAdornment:v,error:_e.error,focused:_e.focused,formControl:ge,fullWidth:y,hiddenLabel:_e.hiddenLabel,multiline:E,size:_e.size,startAdornment:re,type:he}),Ut=Kte(dn),Rt=de.root||f.Root||ST,Tn=J.root||p.root||{},nn=de.input||f.Input||ET;return at=j({},at,(r=J.input)!=null?r:p.input),T.jsxs(D.Fragment,{children:[!w&&Yte,T.jsxs(Rt,j({},Tn,!ef(Rt)&&{ownerState:j({},dn,Tn.ownerState)},{ref:n,onClick:Kn},ae,{className:vt(Ut.root,Tn.className,c,Q&&"MuiInputBase-readOnly"),children:[re,T.jsx(rm.Provider,{value:null,children:T.jsx(nn,j({ownerState:dn,"aria-invalid":_e.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:_e.disabled,id:A,onAnimationStart:fn,name:L,placeholder:G,readOnly:Q,required:_e.required,rows:pe,value:te,onKeyDown:se,onKeyUp:H,type:he},at,!ef(nn)&&{as:dt,ownerState:j({},dn,at.ownerState)},{ref:Re,className:vt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:rt,onChange:cn,onFocus:yt}))}),v,le?le(j({},_e,{startAdornment:re})):null]}))]})}),Zte=Xte;function Qte(e){return Hn("MuiOutlinedInput",e)}const os=j({},xh,Gn("MuiOutlinedInput",["root","notchedOutline","input"])),Jte=Gn("MuiBox",["root"]),ene=J0(),va=TZ({themeId:Ql,defaultTheme:ene,defaultClassName:Jte.root,generateClassName:$k.generate});function tne(e){return Hn("MuiButton",e)}const rp=Gn("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"]),nne=D.createContext({}),rne=D.createContext(void 0),one=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ine=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${At(t)}`,`size${At(o)}`,`${i}Size${At(o)}`,`color${At(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${At(o)}`],endIcon:["icon","endIcon",`iconSize${At(o)}`]},c=or(u,tne,a);return j({},a,c)},CT=e=>j({},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}}),sne=Ot(yx,{shouldForwardProp:e=>vu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${At(n.color)}`],t[`size${At(n.size)}`],t[`${n.variant}Size${At(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 j({},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":j({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rp.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rp.disabled}`]:j({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${wr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rp.disabled}`]:{boxShadow:"none"}}),ane=Ot("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${At(n.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},CT(e))),lne=Ot("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${At(n.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},CT(e))),Ac=D.forwardRef(function(t,n){const r=D.useContext(nne),o=D.useContext(rne),i=Jc(r,t),a=zn({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:w=!1,endIcon:v,focusVisibleClassName:y,fullWidth:A=!1,size:b="medium",startIcon:x,type:S,variant:k="text"}=a,P=st(a,one),E=j({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:w,fullWidth:A,size:b,type:S,variant:k}),L=ine(E),$=x&&T.jsx(ane,{className:L.startIcon,ownerState:E,children:x}),q=v&&T.jsx(lne,{className:L.endIcon,ownerState:E,children:v}),I=o||"";return T.jsxs(sne,j({ownerState:E,className:vt(r.className,L.root,p,I),component:f,disabled:h,focusRipple:!w,focusVisibleClassName:vt(L.focusVisible,y),ref:n,type:S},P,{classes:L,children:[$,u,q]}))});function une(e){return Hn("MuiCircularProgress",e)}Gn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const cne=["className","color","disableShrink","size","style","thickness","value","variant"];let om=e=>e,BE,IE,$E,FE;const is=44,fne=Na(BE||(BE=om` +`),wo.rippleVisible,JJ,e2,({theme:e})=>e.transitions.easing.easeInOut,wo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wo.child,wo.childLeaving,eee,e2,({theme:e})=>e.transitions.easing.easeInOut,wo.childPulsate,tee,({theme:e})=>e.transitions.easing.easeInOut),oee=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=st(r,ZJ),[c,f]=D.useState([]),p=D.useRef(0),h=D.useRef(null);D.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=D.useRef(!1),w=Al(),v=D.useRef(null),y=D.useRef(null),A=D.useCallback(k=>{const{pulsate:P,rippleX:E,rippleY:L,rippleSize:$,cb:H}=k;f(I=>[...I,T.jsx(ree,{classes:{ripple:vt(i.ripple,wo.ripple),rippleVisible:vt(i.rippleVisible,wo.rippleVisible),ripplePulsate:vt(i.ripplePulsate,wo.ripplePulsate),child:vt(i.child,wo.child),childLeaving:vt(i.childLeaving,wo.childLeaving),childPulsate:vt(i.childPulsate,wo.childPulsate)},timeout:e2,pulsate:P,rippleX:E,rippleY:L,rippleSize:$},p.current)]),p.current+=1,h.current=H},[i]),b=D.useCallback((k={},P={},E=()=>{})=>{const{pulsate:L=!1,center:$=o||P.pulsate,fakeElement:H=!1}=P;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 I=H?null:y.current,X=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,q,G;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)se=Math.round(X.width/2),q=Math.round(X.height/2);else{const{clientX:Q,clientY:le}=k.touches&&k.touches.length>0?k.touches[0]:k;se=Math.round(Q-X.left),q=Math.round(le-X.top)}if($)G=Math.sqrt((2*X.width**2+X.height**2)/3),G%2===0&&(G+=1);else{const Q=Math.max(Math.abs((I?I.clientWidth:0)-se),se)*2+2,le=Math.max(Math.abs((I?I.clientHeight:0)-q),q)*2+2;G=Math.sqrt(Q**2+le**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{A({pulsate:L,rippleX:se,rippleY:q,rippleSize:G,cb:E})},w.start(QJ,()=>{v.current&&(v.current(),v.current=null)})):A({pulsate:L,rippleX:se,rippleY:q,rippleSize:G,cb:E})},[o,A,w]),x=D.useCallback(()=>{b({},{pulsate:!0})},[b]),S=D.useCallback((k,P)=>{if(w.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,w.start(0,()=>{S(k,P)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),h.current=P},[w]);return D.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:S}),[x,b,S]),T.jsx(nee,j({className:vt(wo.root,i.root,a),ref:y},u,{children:T.jsx(gx,{component:null,exit:!0,children:c})}))});function iee(e){return qn("MuiButtonBase",e)}const see=Gn("MuiButtonBase",["root","disabled","focusVisible"]),aee=["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"],lee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=or({root:["root",t&&"disabled",n&&"focusVisible"]},iee,o);return n&&r&&(a.root+=` ${r}`),a},uee=Ot("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"},[`&.${see.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vx=D.forwardRef(function(t,n){const r=zn({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:w="a",onBlur:v,onClick:y,onContextMenu:A,onDragLeave:b,onFocus:x,onFocusVisible:S,onKeyDown:k,onKeyUp:P,onMouseDown:E,onMouseLeave:L,onMouseUp:$,onTouchEnd:H,onTouchMove:I,onTouchStart:X,tabIndex:se=0,TouchRippleProps:q,touchRippleRef:G,type:Q}=r,le=st(r,aee),pe=D.useRef(null),J=D.useRef(null),de=to(J,G),{isFocusVisibleRef:re,onFocus:he,onBlur:U,ref:ae}=cx(),[te,ye]=D.useState(!1);f&&te&&ye(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{ye(!0),pe.current.focus()}}),[]);const[ue,Ne]=D.useState(!1);D.useEffect(()=>{Ne(!0)},[]);const Re=ue&&!p&&!f;D.useEffect(()=>{te&&m&&!p&&ue&&J.current.pulsate()},[p,m,te,ue]);function ve(Le,Xt,ir=h){return Cl(Yn=>(Xt&&Xt(Yn),!ir&&J.current&&J.current[Le](Yn),!0))}const Ce=ve("start",E),ge=ve("stop",A),_e=ve("stop",b),je=ve("stop",$),nt=ve("stop",Le=>{te&&Le.preventDefault(),L&&L(Le)}),ut=ve("start",X),yt=ve("stop",H),rt=ve("stop",I),cn=ve("stop",Le=>{U(Le),re.current===!1&&ye(!1),v&&v(Le)},!1),Kn=Cl(Le=>{pe.current||(pe.current=Le.currentTarget),he(Le),re.current===!0&&(ye(!0),S&&S(Le)),x&&x(Le)}),dt=()=>{const Le=pe.current;return c&&c!=="button"&&!(Le.tagName==="A"&&Le.href)},at=D.useRef(!1),fn=Cl(Le=>{m&&!at.current&&te&&J.current&&Le.key===" "&&(at.current=!0,J.current.stop(Le,()=>{J.current.start(Le)})),Le.target===Le.currentTarget&&dt()&&Le.key===" "&&Le.preventDefault(),k&&k(Le),Le.target===Le.currentTarget&&dt()&&Le.key==="Enter"&&!f&&(Le.preventDefault(),y&&y(Le))}),dn=Cl(Le=>{m&&Le.key===" "&&J.current&&te&&!Le.defaultPrevented&&(at.current=!1,J.current.stop(Le,()=>{J.current.pulsate(Le)})),P&&P(Le),y&&Le.target===Le.currentTarget&&dt()&&Le.key===" "&&!Le.defaultPrevented&&y(Le)});let Ut=c;Ut==="button"&&(le.href||le.to)&&(Ut=w);const Rt={};Ut==="button"?(Rt.type=Q===void 0?"button":Q,Rt.disabled=f):(!le.href&&!le.to&&(Rt.role="button"),f&&(Rt["aria-disabled"]=f));const Tn=to(n,ae,pe),nn=j({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:se,focusVisible:te}),qe=lee(nn);return T.jsxs(uee,j({as:Ut,className:vt(qe.root,u),ownerState:nn,onBlur:cn,onClick:y,onContextMenu:ge,onFocus:Kn,onKeyDown:fn,onKeyUp:dn,onMouseDown:Ce,onMouseLeave:nt,onMouseUp:je,onDragLeave:_e,onTouchEnd:yt,onTouchMove:rt,onTouchStart:ut,ref:Tn,tabIndex:f?-1:se,type:Q},Rt,le,{children:[a,Re?T.jsx(oee,j({ref:de,center:i},q)):null]}))});function cee(e){return qn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dee=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${At(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return or(u,cee,a)},pee=Ot("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${At(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({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})),SE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mee=e=>hee[e]||e,xn=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiTypography"}),o=mee(r.color),i=z0(j({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:w=SE}=i,v=st(i,fee),y=j({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:w}),A=c||(h?"p":w[m]||SE[m])||"span",b=dee(y);return T.jsx(pee,j({as:A,ref:n,ownerState:y,className:vt(b.root,u)},v))});var yx={};Object.defineProperty(yx,"__esModule",{value:!0});var oT=yx.default=void 0,gee=yee(D),vee=tT;function iT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iT=function(r){return r?n:t})(e)}function yee(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iT(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 xee(e){return Object.keys(e).length===0}function wee(e=null){const t=gee.useContext(vee.ThemeContext);return!t||xee(t)?e:t}oT=yx.default=wee;var Ir="top",Lo="bottom",No="right",$r="left",xx="auto",Of=[Ir,Lo,No,$r],tu="start",tf="end",bee="clippingParents",sT="viewport",ec="popper",_ee="reference",EE=Of.reduce(function(e,t){return e.concat([t+"-"+tu,t+"-"+tf])},[]),aT=[].concat(Of,[xx]).reduce(function(e,t){return e.concat([t,t+"-"+tu,t+"-"+tf])},[]),See="beforeRead",Eee="read",Cee="afterRead",Aee="beforeMain",Ree="main",kee="afterMain",Tee="beforeWrite",Dee="write",Pee="afterWrite",Oee=[See,Eee,Cee,Aee,Ree,kee,Tee,Dee,Pee];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 Ra(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 wx(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lee(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 Nee(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 Mee={name:"applyStyles",enabled:!0,phase:"write",fn:Lee,effect:Nee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ga=Math.max,yh=Math.min,nu=Math.round;function t2(){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 lT(){return!/^((?!chrome|android).)*safari/i.test(t2())}function ru(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&&nu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&nu(r.height)/e.offsetHeight||1);var a=Ra(e)?no(e):window,u=a.visualViewport,c=!lT()&&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 bx(e){var t=ru(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 uT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return no(e).getComputedStyle(e)}function Bee(e){return["table","td","th"].indexOf(yi(e))>=0}function $s(e){return((Ra(e)?e.ownerDocument:e.document)||window.document).documentElement}function nm(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(wx(e)?e.host:null)||$s(e)}function CE(e){return!To(e)||zi(e).position==="fixed"?null:e.offsetParent}function Iee(e){var t=/firefox/i.test(t2()),n=/Trident/i.test(t2());if(n&&To(e)){var r=zi(e);if(r.position==="fixed")return null}var o=nm(e);for(wx(o)&&(o=o.host);To(o)&&["html","body"].indexOf(yi(o))<0;){var i=zi(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 Lf(e){for(var t=no(e),n=CE(e);n&&Bee(n)&&zi(n).position==="static";)n=CE(n);return n&&(yi(n)==="html"||yi(n)==="body"&&zi(n).position==="static")?t:n||Iee(e)||t}function _x(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ec(e,t,n){return ga(e,yh(t,n))}function $ee(e,t,n){var r=Ec(e,t,n);return r>n?n:r}function cT(){return{top:0,right:0,bottom:0,left:0}}function fT(e){return Object.assign({},cT(),e)}function dT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Fee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,fT(typeof t!="number"?t:dT(t,Of))};function Uee(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=_x(u),f=[$r,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=Fee(o.padding,n),m=bx(i),w=c==="y"?Ir:$r,v=c==="y"?Lo:No,y=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],b=Lf(i),x=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-A/2,k=h[w],P=x-m[p]-h[v],E=x/2-m[p]/2+S,L=Ec(k,E,P),$=c;n.modifiersData[r]=(t={},t[$]=L,t.centerOffset=L-E,t)}}function zee(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)||uT(t.elements.popper,o)&&(t.elements.arrow=o))}const jee={name:"arrow",enabled:!0,phase:"main",fn:Uee,effect:zee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ou(e){return e.split("-")[1]}var Vee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:nu(n*o)/o||0,y:nu(r*o)/o||0}}function AE(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,w=m===void 0?0:m,v=a.y,y=v===void 0?0:v,A=typeof p=="function"?p({x:w,y}):{x:w,y};w=A.x,y=A.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),S=$r,k=Ir,P=window;if(f){var E=Lf(n),L="clientHeight",$="clientWidth";if(E===no(n)&&(E=$s(n),zi(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",$="scrollWidth")),E=E,o===Ir||(o===$r||o===No)&&i===tf){k=Lo;var H=h&&E===P&&P.visualViewport?P.visualViewport.height:E[L];y-=H-r.height,y*=c?1:-1}if(o===$r||(o===Ir||o===Lo)&&i===tf){S=No;var I=h&&E===P&&P.visualViewport?P.visualViewport.width:E[$];w-=I-r.width,w*=c?1:-1}}var X=Object.assign({position:u},f&&Vee),se=p===!0?Wee({x:w,y},no(n)):{x:w,y};if(w=se.x,y=se.y,c){var q;return Object.assign({},X,(q={},q[k]=x?"0":"",q[S]=b?"0":"",q.transform=(P.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",q))}return Object.assign({},X,(t={},t[k]=x?y+"px":"",t[S]=b?w+"px":"",t.transform="",t))}function Hee(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:ou(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,AE(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,AE(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 qee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hee,data:{}};var tp={passive:!0};function Gee(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,tp)}),u&&c.addEventListener("resize",n.update,tp),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,tp)}),u&&c.removeEventListener("resize",n.update,tp)}}const Kee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gee,data:{}};var Yee={left:"right",right:"left",bottom:"top",top:"bottom"};function Np(e){return e.replace(/left|right|bottom|top/g,function(t){return Yee[t]})}var Xee={start:"end",end:"start"};function RE(e){return e.replace(/start|end/g,function(t){return Xee[t]})}function Sx(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ex(e){return ru($s(e)).left+Sx(e).scrollLeft}function Zee(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=lT();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+Ex(e),y:c}}function Qee(e){var t,n=$s(e),r=Sx(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ga(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ga(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Ex(e),c=-r.scrollTop;return zi(o||n).direction==="rtl"&&(u+=ga(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}function Cx(e){var t=zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function pT(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&Cx(e)?e:pT(nm(e))}function Cc(e,t){var n;t===void 0&&(t=[]);var r=pT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],Cx(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Cc(nm(a)))}function n2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jee(e,t){var n=ru(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 kE(e,t,n){return t===sT?n2(Zee(e,n)):Ra(t)?Jee(t,n):n2(Qee($s(e)))}function ete(e){var t=Cc(nm(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&To(e)?Lf(e):e;return Ra(r)?t.filter(function(o){return Ra(o)&&uT(o,r)&&yi(o)!=="body"}):[]}function tte(e,t,n,r){var o=t==="clippingParents"?ete(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=kE(e,f,r);return c.top=ga(p.top,c.top),c.right=yh(p.right,c.right),c.bottom=yh(p.bottom,c.bottom),c.left=ga(p.left,c.left),c},kE(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 hT(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?ou(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?_x(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case tu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case tf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function nf(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?bee:u,f=n.rootBoundary,p=f===void 0?sT:f,h=n.elementContext,m=h===void 0?ec:h,w=n.altBoundary,v=w===void 0?!1:w,y=n.padding,A=y===void 0?0:y,b=fT(typeof A!="number"?A:dT(A,Of)),x=m===ec?_ee:ec,S=e.rects.popper,k=e.elements[v?x:m],P=tte(Ra(k)?k:k.contextElement||$s(e.elements.popper),c,p,a),E=ru(e.elements.reference),L=hT({reference:E,element:S,strategy:"absolute",placement:o}),$=n2(Object.assign({},S,L)),H=m===ec?$:E,I={top:P.top-H.top+b.top,bottom:H.bottom-P.bottom+b.bottom,left:P.left-H.left+b.left,right:H.right-P.right+b.right},X=e.modifiersData.offset;if(m===ec&&X){var se=X[o];Object.keys(I).forEach(function(q){var G=[No,Lo].indexOf(q)>=0?1:-1,Q=[Ir,Lo].indexOf(q)>=0?"y":"x";I[q]+=se[Q]*G})}return I}function nte(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?aT:c,p=ou(r),h=p?u?EE:EE.filter(function(v){return ou(v)===p}):Of,m=h.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=h);var w=m.reduce(function(v,y){return v[y]=nf(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[mi(y)],v},{});return Object.keys(w).sort(function(v,y){return w[v]-w[y]})}function rte(e){if(mi(e)===xx)return[];var t=Np(e);return[RE(e),t,RE(t)]}function ote(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,w=n.flipVariations,v=w===void 0?!0:w,y=n.allowedAutoPlacements,A=t.options.placement,b=mi(A),x=b===A,S=c||(x||!v?[Np(A)]:rte(A)),k=[A].concat(S).reduce(function(te,ye){return te.concat(mi(ye)===xx?nte(t,{placement:ye,boundary:p,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),P=t.rects.reference,E=t.rects.popper,L=new Map,$=!0,H=k[0],I=0;I=0,Q=G?"width":"height",le=nf(t,{placement:X,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),pe=G?q?No:$r:q?Lo:Ir;P[Q]>E[Q]&&(pe=Np(pe));var J=Np(pe),de=[];if(i&&de.push(le[se]<=0),u&&de.push(le[pe]<=0,le[J]<=0),de.every(function(te){return te})){H=X,$=!1;break}L.set(X,de)}if($)for(var re=v?3:1,he=function(ye){var ue=k.find(function(Ne){var Re=L.get(Ne);if(Re)return Re.slice(0,ye).every(function(ve){return ve})});if(ue)return H=ue,"break"},U=re;U>0;U--){var ae=he(U);if(ae==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const ite={name:"flip",enabled:!0,phase:"main",fn:ote,requiresIfExists:["offset"],data:{_skip:!1}};function TE(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 DE(e){return[Ir,No,Lo,$r].some(function(t){return e[t]>=0})}function ste(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=nf(t,{elementContext:"reference"}),u=nf(t,{altBoundary:!0}),c=TE(a,r),f=TE(u,o,i),p=DE(c),h=DE(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 ate={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ste};function lte(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 ute(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=aT.reduce(function(p,h){return p[h]=lte(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 cte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ute};function fte(e){var t=e.state,n=e.name;t.modifiersData[n]=hT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const dte={name:"popperOffsets",enabled:!0,phase:"read",fn:fte,data:{}};function pte(e){return e==="x"?"y":"x"}function hte(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,w=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,A=nf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),b=mi(t.placement),x=ou(t.placement),S=!x,k=_x(b),P=pte(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,$=t.rects.popper,H=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(E){if(i){var q,G=k==="y"?Ir:$r,Q=k==="y"?Lo:No,le=k==="y"?"height":"width",pe=E[k],J=pe+A[G],de=pe-A[Q],re=w?-$[le]/2:0,he=x===tu?L[le]:$[le],U=x===tu?-$[le]:-L[le],ae=t.elements.arrow,te=w&&ae?bx(ae):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cT(),ue=ye[G],Ne=ye[Q],Re=Ec(0,L[le],te[le]),ve=S?L[le]/2-re-Re-ue-I.mainAxis:he-Re-ue-I.mainAxis,Ce=S?-L[le]/2+re+Re+Ne+I.mainAxis:U+Re+Ne+I.mainAxis,ge=t.elements.arrow&&Lf(t.elements.arrow),_e=ge?k==="y"?ge.clientTop||0:ge.clientLeft||0:0,je=(q=X==null?void 0:X[k])!=null?q:0,nt=pe+ve-je-_e,ut=pe+Ce-je,yt=Ec(w?yh(J,nt):J,pe,w?ga(de,ut):de);E[k]=yt,se[k]=yt-pe}if(u){var rt,cn=k==="x"?Ir:$r,Kn=k==="x"?Lo:No,dt=E[P],at=P==="y"?"height":"width",fn=dt+A[cn],dn=dt-A[Kn],Ut=[Ir,$r].indexOf(b)!==-1,Rt=(rt=X==null?void 0:X[P])!=null?rt:0,Tn=Ut?fn:dt-L[at]-$[at]-Rt+I.altAxis,nn=Ut?dt+L[at]+$[at]-Rt-I.altAxis:dn,qe=w&&Ut?$ee(Tn,dt,nn):Ec(w?Tn:fn,dt,w?nn:dn);E[P]=qe,se[P]=qe-dt}t.modifiersData[r]=se}}const mte={name:"preventOverflow",enabled:!0,phase:"main",fn:hte,requiresIfExists:["offset"]};function gte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vte(e){return e===no(e)||!To(e)?Sx(e):gte(e)}function yte(e){var t=e.getBoundingClientRect(),n=nu(t.width)/e.offsetWidth||1,r=nu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xte(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&yte(t),i=$s(t),a=ru(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||Cx(i))&&(u=vte(t)),To(t)?(c=ru(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Ex(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function wte(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 bte(e){var t=wte(e);return Oee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function _te(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ste(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 PE={placement:"bottom",modifiers:[],strategy:"absolute"};function OE(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(Rte(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return Y1(n,a),()=>{Y1(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const f={ref:c};return D.cloneElement(r,f)}return T.jsx(D.Fragment,{children:r})}return T.jsx(D.Fragment,{children:a&&Ih.createPortal(r,a)})});function Tte(e){return qn("MuiPopper",e)}Gn("MuiPopper",["root"]);const Dte=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Pte=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ote(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 r2(e){return typeof e=="function"?e():e}function Lte(e){return e.nodeType!==void 0}const Nte=e=>{const{classes:t}=e;return or({root:["root"]},Tte,t)},Mte={},Bte=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:w={},slots:v={},TransitionProps:y}=t,A=st(t,Dte),b=D.useRef(null),x=to(b,n),S=D.useRef(null),k=to(S,m),P=D.useRef(k);vi(()=>{P.current=k},[k]),D.useImperativeHandle(m,()=>S.current,[]);const E=Ote(p,a),[L,$]=D.useState(E),[H,I]=D.useState(r2(o));D.useEffect(()=>{S.current&&S.current.forceUpdate()}),D.useEffect(()=>{o&&I(r2(o))},[o]),vi(()=>{if(!H||!f)return;const Q=J=>{$(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=Ate(H,b.current,j({placement:E},h,{modifiers:le}));return P.current(pe),()=>{pe.destroy(),P.current(null)}},[H,u,c,f,h,E]);const X={placement:L};y!==null&&(X.TransitionProps=y);const se=Nte(t),q=(r=v.root)!=null?r:"div",G=hQ({elementType:q,externalSlotProps:w.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:se.root});return T.jsx(q,j({},G,{children:typeof i=="function"?i(X):i}))}),Ite=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=Mte,popperRef:w,style:v,transition:y=!1,slotProps:A={},slots:b={}}=t,x=st(t,Pte),[S,k]=D.useState(!0),P=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!y||S))return null;let L;if(i)L=i;else if(r){const I=r2(r);L=I&&Lte(I)?K1(I).body:K1(null).body}const $=!p&&c&&(!y||S)?"none":void 0,H=y?{in:p,onEnter:P,onExited:E}:void 0;return T.jsx(kte,{disablePortal:u,container:L,children:T.jsx(Bte,j({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:y?!S:p,placement:h,popperOptions:m,popperRef:w,slotProps:A,slots:b},x,{style:j({position:"fixed",top:0,left:0,display:$},v),TransitionProps:H,children:o}))})}),$te=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Fte=Ot(Ite,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mT=D.forwardRef(function(t,n){var r;const o=oT(),i=zn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:w,open:v,placement:y,popperOptions:A,popperRef:b,transition:x,slots:S,slotProps:k}=i,P=st(i,$te),E=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,L=j({anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:w,open:v,placement:y,popperOptions:A,popperRef:b,transition:x},P);return T.jsx(Fte,j({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),Ute=["onChange","maxRows","minRows","style","value"];function np(e){return parseInt(e,10)||0}const zte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function jte(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Vte=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=st(t,Ute),{current:f}=D.useRef(u!=null),p=D.useRef(null),h=to(n,p),m=D.useRef(null),w=D.useRef(null),v=D.useCallback(()=>{const b=p.current,S=nE(b).getComputedStyle(b);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=w.current;k.style.width=S.width,k.value=b.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const P=S.boxSizing,E=np(S.paddingBottom)+np(S.paddingTop),L=np(S.borderBottomWidth)+np(S.borderTopWidth),$=k.scrollHeight;k.value="x";const H=k.scrollHeight;let I=$;i&&(I=Math.max(Number(i)*H,I)),o&&(I=Math.min(Number(o)*H,I)),I=Math.max(I,H);const X=I+(P==="border-box"?E+L:0),se=Math.abs(I-$)<=1;return{outerHeightStyle:X,overflowing:se}},[o,i,t.placeholder]),y=D.useCallback(()=>{const b=v();if(jte(b))return;const x=b.outerHeightStyle,S=p.current;m.current!==x&&(m.current=x,S.style.height=`${x}px`),S.style.overflow=b.overflowing?"hidden":""},[v]);vi(()=>{const b=()=>{y()};let x;const S=XZ(b),k=p.current,P=nE(k);P.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(b),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(x),P.removeEventListener("resize",S),E&&E.disconnect()}},[v,y]),vi(()=>{y()});const A=b=>{f||y(),r&&r(b)};return T.jsxs(D.Fragment,{children:[T.jsx("textarea",j({value:u,onChange:A,ref:h,rows:i,style:a},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:j({},zte.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function gT({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 rm=D.createContext(void 0);function Ax(){return D.useContext(rm)}function vT(e){return T.jsx(bZ,j({},e,{defaultTheme:hx,themeId:Ql}))}function LE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function o2(e,t=!1){return e&&(LE(e.value)&&e.value!==""||t&&LE(e.defaultValue)&&e.defaultValue!=="")}function Wte(e){return e.startAdornment}function Hte(e){return qn("MuiInputBase",e)}const xh=Gn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qte=["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"],yT=(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${At(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},xT=(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]},Gte=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:w,type:v}=e,y={root:["root",`color${At(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${At(m)}`,p&&"multiline",w&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return or(y,Hte,t)},wT=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yT})(({theme:e,ownerState:t})=>j({},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",[`&.${xh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&j({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),bT=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=j({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 j({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] + .${xh.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},[`&.${xh.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"})}),Kte=T.jsx(vT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Yte=D.forwardRef(function(t,n){var r;const o=zn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:w,endAdornment:v,fullWidth:y=!1,id:A,inputComponent:b="input",inputProps:x={},inputRef:S,maxRows:k,minRows:P,multiline:E=!1,name:L,onBlur:$,onChange:H,onClick:I,onFocus:X,onKeyDown:se,onKeyUp:q,placeholder:G,readOnly:Q,renderSuffix:le,rows:pe,slotProps:J={},slots:de={},startAdornment:re,type:he="text",value:U}=o,ae=st(o,qte),te=x.value!=null?x.value:U,{current:ye}=D.useRef(te!=null),ue=D.useRef(),Ne=D.useCallback(qe=>{},[]),Re=to(ue,S,x.ref,Ne),[ve,Ce]=D.useState(!1),ge=Ax(),_e=gT({props:o,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=ge?ge.focused:ve,D.useEffect(()=>{!ge&&m&&ve&&(Ce(!1),$&&$())},[ge,m,ve,$]);const je=ge&&ge.onFilled,nt=ge&&ge.onEmpty,ut=D.useCallback(qe=>{o2(qe)?je&&je():nt&&nt()},[je,nt]);vi(()=>{ye&&ut({value:te})},[te,ut,ye]);const yt=qe=>{if(_e.disabled){qe.stopPropagation();return}X&&X(qe),x.onFocus&&x.onFocus(qe),ge&&ge.onFocus?ge.onFocus(qe):Ce(!0)},rt=qe=>{$&&$(qe),x.onBlur&&x.onBlur(qe),ge&&ge.onBlur?ge.onBlur(qe):Ce(!1)},cn=(qe,...Le)=>{if(!ye){const Xt=qe.target||ue.current;if(Xt==null)throw new Error(Ts(1));ut({value:Xt.value})}x.onChange&&x.onChange(qe,...Le),H&&H(qe,...Le)};D.useEffect(()=>{ut(ue.current)},[]);const Kn=qe=>{ue.current&&qe.currentTarget===qe.target&&ue.current.focus(),I&&I(qe)};let dt=b,at=x;E&&dt==="input"&&(pe?at=j({type:void 0,minRows:pe,maxRows:pe},at):at=j({type:void 0,maxRows:k,minRows:P},at),dt=Vte);const fn=qe=>{ut(qe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};D.useEffect(()=>{ge&&ge.setAdornedStart(!!re)},[ge,re]);const dn=j({},o,{color:_e.color||"primary",disabled:_e.disabled,endAdornment:v,error:_e.error,focused:_e.focused,formControl:ge,fullWidth:y,hiddenLabel:_e.hiddenLabel,multiline:E,size:_e.size,startAdornment:re,type:he}),Ut=Gte(dn),Rt=de.root||f.Root||wT,Tn=J.root||p.root||{},nn=de.input||f.Input||bT;return at=j({},at,(r=J.input)!=null?r:p.input),T.jsxs(D.Fragment,{children:[!w&&Kte,T.jsxs(Rt,j({},Tn,!ef(Rt)&&{ownerState:j({},dn,Tn.ownerState)},{ref:n,onClick:Kn},ae,{className:vt(Ut.root,Tn.className,c,Q&&"MuiInputBase-readOnly"),children:[re,T.jsx(rm.Provider,{value:null,children:T.jsx(nn,j({ownerState:dn,"aria-invalid":_e.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:_e.disabled,id:A,onAnimationStart:fn,name:L,placeholder:G,readOnly:Q,required:_e.required,rows:pe,value:te,onKeyDown:se,onKeyUp:q,type:he},at,!ef(nn)&&{as:dt,ownerState:j({},dn,at.ownerState)},{ref:Re,className:vt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:rt,onChange:cn,onFocus:yt}))}),v,le?le(j({},_e,{startAdornment:re})):null]}))]})}),Xte=Yte;function Zte(e){return qn("MuiOutlinedInput",e)}const is=j({},xh,Gn("MuiOutlinedInput",["root","notchedOutline","input"])),Qte=Gn("MuiBox",["root"]),Jte=J0(),va=RZ({themeId:Ql,defaultTheme:Jte,defaultClassName:Qte.root,generateClassName:Mk.generate});function ene(e){return qn("MuiButton",e)}const rp=Gn("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"]),tne=D.createContext({}),nne=D.createContext(void 0),rne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],one=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${At(t)}`,`size${At(o)}`,`${i}Size${At(o)}`,`color${At(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${At(o)}`],endIcon:["icon","endIcon",`iconSize${At(o)}`]},c=or(u,ene,a);return j({},a,c)},_T=e=>j({},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}}),ine=Ot(vx,{shouldForwardProp:e=>vu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${At(n.color)}`],t[`size${At(n.size)}`],t[`${n.variant}Size${At(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 j({},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":j({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rp.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rp.disabled}`]:j({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${wr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rp.disabled}`]:{boxShadow:"none"}}),sne=Ot("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${At(n.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},_T(e))),ane=Ot("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${At(n.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},_T(e))),Ac=D.forwardRef(function(t,n){const r=D.useContext(tne),o=D.useContext(nne),i=Jc(r,t),a=zn({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:w=!1,endIcon:v,focusVisibleClassName:y,fullWidth:A=!1,size:b="medium",startIcon:x,type:S,variant:k="text"}=a,P=st(a,rne),E=j({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:w,fullWidth:A,size:b,type:S,variant:k}),L=one(E),$=x&&T.jsx(sne,{className:L.startIcon,ownerState:E,children:x}),H=v&&T.jsx(ane,{className:L.endIcon,ownerState:E,children:v}),I=o||"";return T.jsxs(ine,j({ownerState:E,className:vt(r.className,L.root,p,I),component:f,disabled:h,focusRipple:!w,focusVisibleClassName:vt(L.focusVisible,y),ref:n,type:S},P,{classes:L,children:[$,u,H]}))});function lne(e){return qn("MuiCircularProgress",e)}Gn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const une=["className","color","disableShrink","size","style","thickness","value","variant"];let om=e=>e,NE,ME,BE,IE;const ss=44,cne=Ma(NE||(NE=om` 0% { transform: rotate(0deg); } @@ -244,7 +244,7 @@ function print() { __p += __j.call(arguments, '') } 100% { transform: rotate(360deg); } -`)),dne=Na(IE||(IE=om` +`)),fne=Ma(ME||(ME=om` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -259,15 +259,15 @@ function print() { __p += __j.call(arguments, '') } stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),pne=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${At(r)}`],svg:["svg"],circle:["circle",`circle${At(n)}`,o&&"circleDisableShrink"]};return or(i,une,t)},hne=Ot("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${At(n.color)}`]]}})(({ownerState:e,theme:t})=>j({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&M0($E||($E=om` +`)),dne=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${At(r)}`],svg:["svg"],circle:["circle",`circle${At(n)}`,o&&"circleDisableShrink"]};return or(i,lne,t)},pne=Ot("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${At(n.color)}`]]}})(({ownerState:e,theme:t})=>j({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&N0(BE||(BE=om` animation: ${0} 1.4s linear infinite; - `),fne)),mne=Ot("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),gne=Ot("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${At(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>j({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&M0(FE||(FE=om` + `),cne)),hne=Ot("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),mne=Ot("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${At(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>j({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&N0(IE||(IE=om` animation: ${0} 1.4s ease-in-out infinite; - `),dne)),vne=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:u=40,style:c,thickness:f=3.6,value:p=0,variant:h="indeterminate"}=r,m=st(r,cne),w=j({},r,{color:i,disableShrink:a,size:u,thickness:f,value:p,variant:h}),v=pne(w),y={},A={},b={};if(h==="determinate"){const x=2*Math.PI*((is-f)/2);y.strokeDasharray=x.toFixed(3),b["aria-valuenow"]=Math.round(p),y.strokeDashoffset=`${((100-p)/100*x).toFixed(3)}px`,A.transform="rotate(-90deg)"}return T.jsx(hne,j({className:vt(v.root,o),style:j({width:u,height:u},A,c),ownerState:w,ref:n,role:"progressbar"},b,m,{children:T.jsx(mne,{className:v.svg,ownerState:w,viewBox:`${is/2} ${is/2} ${is} ${is}`,children:T.jsx(gne,{className:v.circle,style:y,ownerState:w,cx:is,cy:is,r:(is-f)/2,fill:"none",strokeWidth:f})})}))}),yne=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),xne=e=>j({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}}),wne=(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=j({html:yne(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:j({margin:0},xne(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 bne(e){const t=zn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return T.jsxs(D.Fragment,{children:[T.jsx(wT,{styles:o=>wne(o,r)}),n]})}function _ne(e){return Hn("MuiFormControl",e)}Gn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Sne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ene=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${At(n)}`,r&&"fullWidth"]};return or(o,_ne,t)},Cne=Ot("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,t[`margin${At(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>j({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%"})),AT=D.forwardRef(function(t,n){const r=zn({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:w="none",required:v=!1,size:y="medium",variant:A="outlined"}=r,b=st(r,Sne),x=j({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:w,required:v,size:y,variant:A}),S=Ene(x),[k,P]=D.useState(()=>{let H=!1;return o&&D.Children.forEach(o,G=>{if(!Pp(G,["Input","Select"]))return;const Q=Pp(G,["Select"])?G.props.input:G;Q&&qte(Q.props)&&(H=!0)}),H}),[E,L]=D.useState(()=>{let H=!1;return o&&D.Children.forEach(o,G=>{Pp(G,["Input","Select"])&&(i2(G.props,!0)||i2(G.props.inputProps,!0))&&(H=!0)}),H}),[$,q]=D.useState(!1);c&&$&&q(!1);const I=p!==void 0&&!c?p:$;let X;const se=D.useMemo(()=>({adornedStart:k,setAdornedStart:P,color:a,disabled:c,error:f,filled:E,focused:I,fullWidth:h,hiddenLabel:m,size:y,onBlur:()=>{q(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{q(!0)},registerEffect:X,required:v,variant:A}),[k,a,c,f,E,I,h,m,X,v,y,A]);return T.jsx(rm.Provider,{value:se,children:T.jsx(Cne,j({as:u,ownerState:x,className:vt(S.root,i),ref:n},b,{children:o}))})}),_t=NQ({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>zn({props:e,name:"MuiStack"})}),Ane=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function s2(e){return`scale(${e}, ${e**2})`}const Rne={entering:{opacity:1,transform:s2(1)},entered:{opacity:1,transform:"none"}},xv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),a2=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:w,style:v,timeout:y="auto",TransitionComponent:A=Wi}=t,b=st(t,Ane),x=Al(),S=D.useRef(),k=em(),P=D.useRef(null),E=to(P,i.ref,n),L=Q=>le=>{if(Q){const pe=P.current;le===void 0?Q(pe):Q(pe,le)}},$=L(p),q=L((Q,le)=>{XJ(Q);const{duration:pe,delay:J,easing:de}=wE({style:v,timeout:y,easing:a},{mode:"enter"});let re;y==="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:xv?re:re*.666,delay:J,easing:de})].join(","),c&&c(Q,le)}),I=L(f),X=L(w),se=L(Q=>{const{duration:le,delay:pe,easing:J}=wE({style:v,timeout:y,easing:a},{mode:"exit"});let de;y==="auto"?(de=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=de):de=le,Q.style.transition=[k.transitions.create("opacity",{duration:de,delay:pe}),k.transitions.create("transform",{duration:xv?de:de*.666,delay:xv?pe:pe||de*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=s2(.75),h&&h(Q)}),H=L(m),G=Q=>{y==="auto"&&x.start(S.current||0,Q),r&&r(P.current,Q)};return T.jsx(A,j({appear:o,in:u,nodeRef:P,onEnter:q,onEntered:I,onEntering:$,onExit:se,onExited:H,onExiting:X,addEndListener:G,timeout:y==="auto"?null:y},b,{children:(Q,le)=>D.cloneElement(i,j({style:j({opacity:0,transform:s2(.75),visibility:Q==="exited"&&!u?"hidden":void 0},Rne[Q],v,i.props.style),ref:E},le))}))});a2.muiSupportAuto=!0;function kne(e){return Hn("MuiInputAdornment",e)}const UE=Gn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var zE;const Tne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Dne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${At(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Pne=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${At(o)}`,a,r&&"hiddenLabel",i&&`size${At(i)}`]};return or(u,kne,t)},One=Ot("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Dne})(({theme:e,ownerState:t})=>j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${UE.positionStart}&:not(.${UE.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Lne=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:p}=r,h=st(r,Tne),m=Rx()||{};let w=p;p&&m.variant,m&&!w&&(w=m.variant);const v=j({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:w}),y=Pne(v);return T.jsx(rm.Provider,{value:null,children:T.jsx(One,j({as:a,ownerState:v,className:vt(y.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(xn,{color:"text.secondary",children:o}):T.jsxs(D.Fragment,{children:[f==="start"?zE||(zE=T.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function Mne(e){return Hn("MuiLink",e)}const Nne=Gn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),RT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Bne=e=>RT[e]||e,Ine=({theme:e,ownerState:t})=>{const n=Bne(t.color),r=eu(e,`palette.${n}`,!1)||t.color,o=eu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:wr(r,.4)},$ne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fne=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${At(o)}`,n==="button"&&"button",r&&"focusVisible"]};return or(i,Mne,t)},Une=Ot(xn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${At(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>j({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&j({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Ine({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"},[`&.${Nne.focusVisible}`]:{outline:"auto"}})),wh=D.forwardRef(function(t,n){const r=zn({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,w=st(r,$ne),{isFocusVisibleRef:v,onBlur:y,onFocus:A,ref:b}=fx(),[x,S]=D.useState(!1),k=to(n,b),P=q=>{y(q),v.current===!1&&S(!1),u&&u(q)},E=q=>{A(q),v.current===!0&&S(!0),c&&c(q)},L=j({},r,{color:i,component:a,focusVisible:x,underline:p,variant:h}),$=Fne(L);return T.jsx(Une,j({color:i,className:vt($.root,o),classes:f,component:a,onBlur:P,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(RT).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},w))}),Cs=D.createContext({});function zne(e){return Hn("MuiList",e)}Gn("MuiList",["root","padding","dense","subheader"]);const jne=["children","className","component","dense","disablePadding","subheader"],Vne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return or({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},zne,t)},Wne=Ot("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})=>j({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),kx=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=st(r,jne),h=D.useMemo(()=>({dense:u}),[u]),m=j({},r,{component:a,dense:u,disablePadding:c}),w=Vne(m);return T.jsx(Cs.Provider,{value:h,children:T.jsxs(Wne,j({as:a,className:vt(w.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function qne(e){return Hn("MuiListItem",e)}const ll=Gn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Hne(e){return Hn("MuiListItemButton",e)}const ul=Gn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Gne=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Kne=(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]},Yne=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=or({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},Hne,n);return j({},n,f)},Xne=Ot(yx,{shouldForwardProp:e=>vu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Kne})(({theme:e,ownerState:t})=>j({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"}},[`&.${ul.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ul.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ul.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ul.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ul.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})),Zne=D.forwardRef(function(t,n){const r=zn({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:w}=r,v=st(r,Gne),y=D.useContext(Cs),A=D.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:f}),[o,y.dense,c,f]),b=D.useRef(null);vi(()=>{i&&b.current&&b.current.focus()},[i]);const x=j({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=Yne(x),k=to(b,n);return T.jsx(Cs.Provider,{value:A,children:T.jsx(Xne,j({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:vt(S.focusVisible,h),ownerState:x,className:vt(S.root,w)},v,{classes:S,children:u}))})});function Qne(e){return Hn("MuiListItemSecondaryAction",e)}Gn("MuiListItemSecondaryAction",["root","disableGutters"]);const Jne=["className"],ere=e=>{const{disableGutters:t,classes:n}=e;return or({root:["root",t&&"disableGutters"]},Qne,n)},tre=Ot("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>j({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),kT=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=st(r,Jne),a=D.useContext(Cs),u=j({},r,{disableGutters:a.disableGutters}),c=ere(u);return T.jsx(tre,j({className:vt(c.root,o),ownerState:u,ref:n},i))});kT.muiName="ListItemSecondaryAction";const nre=["className"],rre=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ore=(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]},ire=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return or({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},qne,r)},sre=Ot("div",{name:"MuiListItem",slot:"Root",overridesResolver:ore})(({theme:e,ownerState:t})=>j({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&j({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ul.root}`]:{paddingRight:48}},{[`&.${ll.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ll.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ll.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"}},[`&.${ll.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),are=Ot("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Tx=D.forwardRef(function(t,n){const r=zn({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:w}={},dense:v=!1,disabled:y=!1,disableGutters:A=!1,disablePadding:b=!1,divider:x=!1,focusVisibleClassName:S,secondaryAction:k,selected:P=!1,slotProps:E={},slots:L={}}=r,$=st(r.ContainerProps,nre),q=st(r,rre),I=D.useContext(Cs),X=D.useMemo(()=>({dense:v||I.dense||!1,alignItems:o,disableGutters:A}),[o,I.dense,v,A]),se=D.useRef(null);vi(()=>{i&&se.current&&se.current.focus()},[i]);const H=D.Children.toArray(u),G=H.length&&Pp(H[H.length-1],["ListItemSecondaryAction"]),Q=j({},r,{alignItems:o,autoFocus:i,button:a,dense:X.dense,disabled:y,disableGutters:A,disablePadding:b,divider:x,hasSecondaryAction:G,selected:P}),le=ire(Q),pe=to(se,n),J=L.root||p.Root||sre,de=E.root||h.root||{},re=j({className:vt(le.root,de.className,c),disabled:y},q);let he=f||"li";return a&&(re.component=f||"div",re.focusVisibleClassName=vt(ll.focusVisible,S),he=yx),G?(he=!re.component&&!f?"div":he,m==="li"&&(he==="li"?he="div":re.component==="li"&&(re.component="div")),T.jsx(Cs.Provider,{value:X,children:T.jsxs(are,j({as:m,className:vt(le.container,w),ref:pe,ownerState:Q},$,{children:[T.jsx(J,j({},de,!ef(J)&&{as:he,ownerState:j({},Q,de.ownerState)},re,{children:H})),H.pop()]}))})):T.jsx(Cs.Provider,{value:X,children:T.jsxs(J,j({},de,{as:he,ref:pe},!ef(J)&&{ownerState:j({},Q,de.ownerState)},re,{children:[H,k&&T.jsx(kT,{children:k})]}))})});function lre(e){return Hn("MuiListItemText",e)}const jE=Gn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ure=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],cre=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return or({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},lre,t)},fre=Ot("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jE.primary}`]:t.primary},{[`& .${jE.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),dre=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=st(r,ure),{dense:w}=D.useContext(Cs);let v=c??o,y=p;const A=j({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:w}),b=cre(A);return v!=null&&v.type!==xn&&!a&&(v=T.jsx(xn,j({variant:w?"body2":"body1",className:b.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:v}))),y!=null&&y.type!==xn&&!a&&(y=T.jsx(xn,j({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},h,{children:y}))),T.jsxs(fre,j({className:vt(b.root,i),ownerState:A,ref:n},m,{children:[v,y]}))});var VE;const pre=["children","classes","className","label","notched"],hre=Ot("fieldset",{shouldForwardProp:vu})({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%"}),mre=Ot("legend",{shouldForwardProp:vu})(({ownerState:e,theme:t})=>j({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&&j({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 gre(e){const{className:t,label:n,notched:r}=e,o=st(e,pre),i=n!=null&&n!=="",a=j({},e,{notched:r,withLabel:i});return T.jsx(hre,j({"aria-hidden":!0,className:t,ownerState:a},o,{children:T.jsx(mre,{ownerState:a,children:i?T.jsx("span",{children:n}):VE||(VE=T.jsx("span",{className:"notranslate",children:"​"}))})}))}const vre=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yre=e=>{const{classes:t}=e,r=or({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Qte,t);return j({},t,r)},xre=Ot(ST,{shouldForwardProp:e=>vu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:bT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${os.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${os.focused} .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${os.error} .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${os.disabled} .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),wre=Ot(gre,{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}}),bre=Ot(ET,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_T})(({theme:e,ownerState:t})=>j({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})),Dx=D.forwardRef(function(t,n){var r,o,i,a,u;const c=zn({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:w=!1,notched:v,slots:y={},type:A="text"}=c,b=st(c,vre),x=yre(c),S=Rx(),k=xT({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=j({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:w,size:k.size,type:A}),E=(r=(o=y.root)!=null?o:f.Root)!=null?r:xre,L=(i=(a=y.input)!=null?a:f.Input)!=null?i:bre;return T.jsx(Zte,j({slots:{root:E,input:L},renderSuffix:$=>T.jsx(wre,{ownerState:P,className:x.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=T.jsxs(D.Fragment,{children:[m," ","*"]})):m,notched:typeof v<"u"?v:!!($.startAdornment||$.filled||$.focused)}),fullWidth:p,inputComponent:h,multiline:w,ref:n,type:A},b,{classes:j({},x,{notchedOutline:null})}))});Dx.muiName="Input";function _re(e){return Hn("MuiTooltip",e)}const gs=Gn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Sre=["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 Ere(e){return Math.round(e*1e5)/1e5}const Cre=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${At(i.split("-")[0])}`],arrow:["arrow"]};return or(a,_re,t)},Are=Ot(yT,{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})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${gs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gs.arrow}`]:j({},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"] .${gs.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Rre=Ot("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${At(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Ere(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${gs.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${gs.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${gs.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${gs.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kre=Ot("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let op=!1;const WE=new Df;let tc={x:0,y:0};function ip(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Il=D.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,w,v,y,A,b,x,S,k,P;const E=zn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:$,components:q={},componentsProps:I={},describeChild:X=!1,disableFocusListener:se=!1,disableHoverListener:H=!1,disableInteractive:G=!1,disableTouchListener:Q=!1,enterDelay:le=100,enterNextDelay:pe=0,enterTouchDelay:J=700,followCursor:de=!1,id:re,leaveDelay:he=0,leaveTouchDelay:U=1500,onClose:ae,onOpen:te,open:ye,placement:ue="bottom",PopperComponent:Me,PopperProps:Re={},slotProps:ve={},slots:Ce={},title:ge,TransitionComponent:_e=a2,TransitionProps:je}=E,nt=st(E,Sre),ut=D.isValidElement($)?$:T.jsx("span",{children:$}),yt=em(),rt=SQ(),[cn,Kn]=D.useState(),[dt,at]=D.useState(null),fn=D.useRef(!1),dn=G||de,Ut=Al(),Rt=Al(),Tn=Al(),nn=Al(),[He,Le]=tQ({controlled:ye,default:!1,name:"Tooltip",state:"open"});let Xt=He;const ir=eQ(re),Yn=D.useRef(),Dn=Cl(()=>{Yn.current!==void 0&&(document.body.style.WebkitUserSelect=Yn.current,Yn.current=void 0),nn.clear()});D.useEffect(()=>Dn,[Dn]);const Io=ke=>{WE.clear(),op=!0,Le(!0),te&&!Xt&&te(ke)},W=Cl(ke=>{WE.start(800+he,()=>{op=!1}),Le(!1),ae&&Xt&&ae(ke),Ut.start(yt.transitions.duration.shortest,()=>{fn.current=!1})}),F=ke=>{fn.current&&ke.type!=="touchstart"||(cn&&cn.removeAttribute("title"),Rt.clear(),Tn.clear(),le||op&&pe?Rt.start(op?pe:le,()=>{Io(ke)}):Io(ke))},ce=ke=>{Rt.clear(),Tn.start(he,()=>{W(ke)})},{isFocusVisibleRef:be,onBlur:we,onFocus:Ae,ref:Ue}=fx(),[,Be]=D.useState(!1),$e=ke=>{we(ke),be.current===!1&&(Be(!1),ce(ke))},Ke=ke=>{cn||Kn(ke.currentTarget),Ae(ke),be.current===!0&&(Be(!0),F(ke))},Et=ke=>{fn.current=!0;const wt=ut.props;wt.onTouchStart&&wt.onTouchStart(ke)},Pn=ke=>{Et(ke),Tn.clear(),Ut.clear(),Dn(),Yn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=Yn.current,F(ke)})},zt=ke=>{ut.props.onTouchEnd&&ut.props.onTouchEnd(ke),Dn(),Tn.start(U,()=>{W(ke)})};D.useEffect(()=>{if(!Xt)return;function ke(wt){(wt.key==="Escape"||wt.key==="Esc")&&W(wt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[W,Xt]);const On=to(ut.ref,Ue,Kn,n);!ge&&ge!==0&&(Xt=!1);const pn=D.useRef(),so=ke=>{const wt=ut.props;wt.onMouseMove&&wt.onMouseMove(ke),tc={x:ke.clientX,y:ke.clientY},pn.current&&pn.current.update()},sr={},M=typeof ge=="string";X?(sr.title=!Xt&&M&&!H?ge:null,sr["aria-describedby"]=Xt?ir:null):(sr["aria-label"]=M?ge:null,sr["aria-labelledby"]=Xt&&!M?ir:null);const B=j({},sr,nt,ut.props,{className:vt(nt.className,ut.props.className),onTouchStart:Et,ref:On},de?{onMouseMove:so}:{}),K={};Q||(B.onTouchStart=Pn,B.onTouchEnd=zt),H||(B.onMouseOver=ip(F,B.onMouseOver),B.onMouseLeave=ip(ce,B.onMouseLeave),dn||(K.onMouseOver=F,K.onMouseLeave=ce)),se||(B.onFocus=ip(Ke,B.onFocus),B.onBlur=ip($e,B.onBlur),dn||(K.onFocus=Ke,K.onBlur=$e));const ne=D.useMemo(()=>{var ke;let wt=[{name:"arrow",enabled:!!dt,options:{element:dt,padding:4}}];return(ke=Re.popperOptions)!=null&&ke.modifiers&&(wt=wt.concat(Re.popperOptions.modifiers)),j({},Re.popperOptions,{modifiers:wt})},[dt,Re]),Se=j({},E,{isRtl:rt,arrow:L,disableInteractive:dn,placement:ue,PopperComponentProp:Me,touch:fn.current}),Oe=Cre(Se),ze=(r=(o=Ce.popper)!=null?o:q.Popper)!=null?r:Are,xe=(i=(a=(u=Ce.transition)!=null?u:q.Transition)!=null?a:_e)!=null?i:a2,Ge=(c=(f=Ce.tooltip)!=null?f:q.Tooltip)!=null?c:Rre,Ie=(p=(h=Ce.arrow)!=null?h:q.Arrow)!=null?p:kre,Fe=uc(ze,j({},Re,(m=ve.popper)!=null?m:I.popper,{className:vt(Oe.popper,Re==null?void 0:Re.className,(w=(v=ve.popper)!=null?v:I.popper)==null?void 0:w.className)}),Se),Ct=uc(xe,j({},je,(y=ve.transition)!=null?y:I.transition),Se),xt=uc(Ge,j({},(A=ve.tooltip)!=null?A:I.tooltip,{className:vt(Oe.tooltip,(b=(x=ve.tooltip)!=null?x:I.tooltip)==null?void 0:b.className)}),Se),kt=uc(Ie,j({},(S=ve.arrow)!=null?S:I.arrow,{className:vt(Oe.arrow,(k=(P=ve.arrow)!=null?P:I.arrow)==null?void 0:k.className)}),Se);return T.jsxs(D.Fragment,{children:[D.cloneElement(ut,B),T.jsx(ze,j({as:Me??yT,placement:ue,anchorEl:de?{getBoundingClientRect:()=>({top:tc.y,left:tc.x,right:tc.x,bottom:tc.y,width:0,height:0})}:cn,popperRef:pn,open:cn?Xt:!1,id:ir,transition:!0},K,Fe,{popperOptions:ne,children:({TransitionProps:ke})=>T.jsx(xe,j({timeout:yt.transitions.duration.shorter},ke,Ct,{children:T.jsxs(Ge,j({},xt,{children:[ge,L?T.jsx(Ie,j({},kt,{ref:at})):null]}))}))}))]})}),Tre=Na` + `),fne)),gne=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:u=40,style:c,thickness:f=3.6,value:p=0,variant:h="indeterminate"}=r,m=st(r,une),w=j({},r,{color:i,disableShrink:a,size:u,thickness:f,value:p,variant:h}),v=dne(w),y={},A={},b={};if(h==="determinate"){const x=2*Math.PI*((ss-f)/2);y.strokeDasharray=x.toFixed(3),b["aria-valuenow"]=Math.round(p),y.strokeDashoffset=`${((100-p)/100*x).toFixed(3)}px`,A.transform="rotate(-90deg)"}return T.jsx(pne,j({className:vt(v.root,o),style:j({width:u,height:u},A,c),ownerState:w,ref:n,role:"progressbar"},b,m,{children:T.jsx(hne,{className:v.svg,ownerState:w,viewBox:`${ss/2} ${ss/2} ${ss} ${ss}`,children:T.jsx(mne,{className:v.circle,style:y,ownerState:w,cx:ss,cy:ss,r:(ss-f)/2,fill:"none",strokeWidth:f})})}))}),vne=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),yne=e=>j({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}}),xne=(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=j({html:vne(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:j({margin:0},yne(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 wne(e){const t=zn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return T.jsxs(D.Fragment,{children:[T.jsx(vT,{styles:o=>xne(o,r)}),n]})}function bne(e){return qn("MuiFormControl",e)}Gn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _ne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Sne=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${At(n)}`,r&&"fullWidth"]};return or(o,bne,t)},Ene=Ot("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,t[`margin${At(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>j({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%"})),ST=D.forwardRef(function(t,n){const r=zn({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:w="none",required:v=!1,size:y="medium",variant:A="outlined"}=r,b=st(r,_ne),x=j({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:w,required:v,size:y,variant:A}),S=Sne(x),[k,P]=D.useState(()=>{let q=!1;return o&&D.Children.forEach(o,G=>{if(!Pp(G,["Input","Select"]))return;const Q=Pp(G,["Select"])?G.props.input:G;Q&&Wte(Q.props)&&(q=!0)}),q}),[E,L]=D.useState(()=>{let q=!1;return o&&D.Children.forEach(o,G=>{Pp(G,["Input","Select"])&&(o2(G.props,!0)||o2(G.props.inputProps,!0))&&(q=!0)}),q}),[$,H]=D.useState(!1);c&&$&&H(!1);const I=p!==void 0&&!c?p:$;let X;const se=D.useMemo(()=>({adornedStart:k,setAdornedStart:P,color:a,disabled:c,error:f,filled:E,focused:I,fullWidth:h,hiddenLabel:m,size:y,onBlur:()=>{H(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{H(!0)},registerEffect:X,required:v,variant:A}),[k,a,c,f,E,I,h,m,X,v,y,A]);return T.jsx(rm.Provider,{value:se,children:T.jsx(Ene,j({as:u,ownerState:x,className:vt(S.root,i),ref:n},b,{children:o}))})}),_t=LQ({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>zn({props:e,name:"MuiStack"})}),Cne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function i2(e){return`scale(${e}, ${e**2})`}const Ane={entering:{opacity:1,transform:i2(1)},entered:{opacity:1,transform:"none"}},yv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),s2=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:w,style:v,timeout:y="auto",TransitionComponent:A=Hi}=t,b=st(t,Cne),x=Al(),S=D.useRef(),k=em(),P=D.useRef(null),E=to(P,i.ref,n),L=Q=>le=>{if(Q){const pe=P.current;le===void 0?Q(pe):Q(pe,le)}},$=L(p),H=L((Q,le)=>{YJ(Q);const{duration:pe,delay:J,easing:de}=yE({style:v,timeout:y,easing:a},{mode:"enter"});let re;y==="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:yv?re:re*.666,delay:J,easing:de})].join(","),c&&c(Q,le)}),I=L(f),X=L(w),se=L(Q=>{const{duration:le,delay:pe,easing:J}=yE({style:v,timeout:y,easing:a},{mode:"exit"});let de;y==="auto"?(de=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=de):de=le,Q.style.transition=[k.transitions.create("opacity",{duration:de,delay:pe}),k.transitions.create("transform",{duration:yv?de:de*.666,delay:yv?pe:pe||de*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=i2(.75),h&&h(Q)}),q=L(m),G=Q=>{y==="auto"&&x.start(S.current||0,Q),r&&r(P.current,Q)};return T.jsx(A,j({appear:o,in:u,nodeRef:P,onEnter:H,onEntered:I,onEntering:$,onExit:se,onExited:q,onExiting:X,addEndListener:G,timeout:y==="auto"?null:y},b,{children:(Q,le)=>D.cloneElement(i,j({style:j({opacity:0,transform:i2(.75),visibility:Q==="exited"&&!u?"hidden":void 0},Ane[Q],v,i.props.style),ref:E},le))}))});s2.muiSupportAuto=!0;function Rne(e){return qn("MuiInputAdornment",e)}const $E=Gn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var FE;const kne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Tne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${At(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Dne=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${At(o)}`,a,r&&"hiddenLabel",i&&`size${At(i)}`]};return or(u,Rne,t)},Pne=Ot("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Tne})(({theme:e,ownerState:t})=>j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${$E.positionStart}&:not(.${$E.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),One=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:p}=r,h=st(r,kne),m=Ax()||{};let w=p;p&&m.variant,m&&!w&&(w=m.variant);const v=j({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:w}),y=Dne(v);return T.jsx(rm.Provider,{value:null,children:T.jsx(Pne,j({as:a,ownerState:v,className:vt(y.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(xn,{color:"text.secondary",children:o}):T.jsxs(D.Fragment,{children:[f==="start"?FE||(FE=T.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function Lne(e){return qn("MuiLink",e)}const Nne=Gn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ET={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mne=e=>ET[e]||e,Bne=({theme:e,ownerState:t})=>{const n=Mne(t.color),r=eu(e,`palette.${n}`,!1)||t.color,o=eu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:wr(r,.4)},Ine=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$ne=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${At(o)}`,n==="button"&&"button",r&&"focusVisible"]};return or(i,Lne,t)},Fne=Ot(xn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${At(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>j({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&j({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Bne({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"},[`&.${Nne.focusVisible}`]:{outline:"auto"}})),wh=D.forwardRef(function(t,n){const r=zn({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,w=st(r,Ine),{isFocusVisibleRef:v,onBlur:y,onFocus:A,ref:b}=cx(),[x,S]=D.useState(!1),k=to(n,b),P=H=>{y(H),v.current===!1&&S(!1),u&&u(H)},E=H=>{A(H),v.current===!0&&S(!0),c&&c(H)},L=j({},r,{color:i,component:a,focusVisible:x,underline:p,variant:h}),$=$ne(L);return T.jsx(Fne,j({color:i,className:vt($.root,o),classes:f,component:a,onBlur:P,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(ET).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},w))}),As=D.createContext({});function Une(e){return qn("MuiList",e)}Gn("MuiList",["root","padding","dense","subheader"]);const zne=["children","className","component","dense","disablePadding","subheader"],jne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return or({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Une,t)},Vne=Ot("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})=>j({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Rx=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=st(r,zne),h=D.useMemo(()=>({dense:u}),[u]),m=j({},r,{component:a,dense:u,disablePadding:c}),w=jne(m);return T.jsx(As.Provider,{value:h,children:T.jsxs(Vne,j({as:a,className:vt(w.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function Wne(e){return qn("MuiListItem",e)}const ll=Gn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Hne(e){return qn("MuiListItemButton",e)}const ul=Gn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),qne=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Gne=(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]},Kne=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=or({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},Hne,n);return j({},n,f)},Yne=Ot(vx,{shouldForwardProp:e=>vu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Gne})(({theme:e,ownerState:t})=>j({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"}},[`&.${ul.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ul.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ul.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ul.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ul.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})),Xne=D.forwardRef(function(t,n){const r=zn({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:w}=r,v=st(r,qne),y=D.useContext(As),A=D.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:f}),[o,y.dense,c,f]),b=D.useRef(null);vi(()=>{i&&b.current&&b.current.focus()},[i]);const x=j({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=Kne(x),k=to(b,n);return T.jsx(As.Provider,{value:A,children:T.jsx(Yne,j({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:vt(S.focusVisible,h),ownerState:x,className:vt(S.root,w)},v,{classes:S,children:u}))})});function Zne(e){return qn("MuiListItemSecondaryAction",e)}Gn("MuiListItemSecondaryAction",["root","disableGutters"]);const Qne=["className"],Jne=e=>{const{disableGutters:t,classes:n}=e;return or({root:["root",t&&"disableGutters"]},Zne,n)},ere=Ot("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>j({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),CT=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=st(r,Qne),a=D.useContext(As),u=j({},r,{disableGutters:a.disableGutters}),c=Jne(u);return T.jsx(ere,j({className:vt(c.root,o),ownerState:u,ref:n},i))});CT.muiName="ListItemSecondaryAction";const tre=["className"],nre=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],rre=(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]},ore=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return or({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},Wne,r)},ire=Ot("div",{name:"MuiListItem",slot:"Root",overridesResolver:rre})(({theme:e,ownerState:t})=>j({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&j({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ul.root}`]:{paddingRight:48}},{[`&.${ll.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ll.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ll.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"}},[`&.${ll.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),sre=Ot("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kx=D.forwardRef(function(t,n){const r=zn({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:w}={},dense:v=!1,disabled:y=!1,disableGutters:A=!1,disablePadding:b=!1,divider:x=!1,focusVisibleClassName:S,secondaryAction:k,selected:P=!1,slotProps:E={},slots:L={}}=r,$=st(r.ContainerProps,tre),H=st(r,nre),I=D.useContext(As),X=D.useMemo(()=>({dense:v||I.dense||!1,alignItems:o,disableGutters:A}),[o,I.dense,v,A]),se=D.useRef(null);vi(()=>{i&&se.current&&se.current.focus()},[i]);const q=D.Children.toArray(u),G=q.length&&Pp(q[q.length-1],["ListItemSecondaryAction"]),Q=j({},r,{alignItems:o,autoFocus:i,button:a,dense:X.dense,disabled:y,disableGutters:A,disablePadding:b,divider:x,hasSecondaryAction:G,selected:P}),le=ore(Q),pe=to(se,n),J=L.root||p.Root||ire,de=E.root||h.root||{},re=j({className:vt(le.root,de.className,c),disabled:y},H);let he=f||"li";return a&&(re.component=f||"div",re.focusVisibleClassName=vt(ll.focusVisible,S),he=vx),G?(he=!re.component&&!f?"div":he,m==="li"&&(he==="li"?he="div":re.component==="li"&&(re.component="div")),T.jsx(As.Provider,{value:X,children:T.jsxs(sre,j({as:m,className:vt(le.container,w),ref:pe,ownerState:Q},$,{children:[T.jsx(J,j({},de,!ef(J)&&{as:he,ownerState:j({},Q,de.ownerState)},re,{children:q})),q.pop()]}))})):T.jsx(As.Provider,{value:X,children:T.jsxs(J,j({},de,{as:he,ref:pe},!ef(J)&&{ownerState:j({},Q,de.ownerState)},re,{children:[q,k&&T.jsx(CT,{children:k})]}))})});function are(e){return qn("MuiListItemText",e)}const UE=Gn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),lre=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ure=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return or({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},are,t)},cre=Ot("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${UE.primary}`]:t.primary},{[`& .${UE.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),fre=D.forwardRef(function(t,n){const r=zn({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=st(r,lre),{dense:w}=D.useContext(As);let v=c??o,y=p;const A=j({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:w}),b=ure(A);return v!=null&&v.type!==xn&&!a&&(v=T.jsx(xn,j({variant:w?"body2":"body1",className:b.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:v}))),y!=null&&y.type!==xn&&!a&&(y=T.jsx(xn,j({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},h,{children:y}))),T.jsxs(cre,j({className:vt(b.root,i),ownerState:A,ref:n},m,{children:[v,y]}))});var zE;const dre=["children","classes","className","label","notched"],pre=Ot("fieldset",{shouldForwardProp:vu})({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%"}),hre=Ot("legend",{shouldForwardProp:vu})(({ownerState:e,theme:t})=>j({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&&j({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 mre(e){const{className:t,label:n,notched:r}=e,o=st(e,dre),i=n!=null&&n!=="",a=j({},e,{notched:r,withLabel:i});return T.jsx(pre,j({"aria-hidden":!0,className:t,ownerState:a},o,{children:T.jsx(hre,{ownerState:a,children:i?T.jsx("span",{children:n}):zE||(zE=T.jsx("span",{className:"notranslate",children:"​"}))})}))}const gre=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vre=e=>{const{classes:t}=e,r=or({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zte,t);return j({},t,r)},yre=Ot(wT,{shouldForwardProp:e=>vu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:yT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${is.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${is.focused} .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${is.error} .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${is.disabled} .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),xre=Ot(mre,{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}}),wre=Ot(bT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xT})(({theme:e,ownerState:t})=>j({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})),Tx=D.forwardRef(function(t,n){var r,o,i,a,u;const c=zn({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:w=!1,notched:v,slots:y={},type:A="text"}=c,b=st(c,gre),x=vre(c),S=Ax(),k=gT({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=j({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:w,size:k.size,type:A}),E=(r=(o=y.root)!=null?o:f.Root)!=null?r:yre,L=(i=(a=y.input)!=null?a:f.Input)!=null?i:wre;return T.jsx(Xte,j({slots:{root:E,input:L},renderSuffix:$=>T.jsx(xre,{ownerState:P,className:x.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=T.jsxs(D.Fragment,{children:[m," ","*"]})):m,notched:typeof v<"u"?v:!!($.startAdornment||$.filled||$.focused)}),fullWidth:p,inputComponent:h,multiline:w,ref:n,type:A},b,{classes:j({},x,{notchedOutline:null})}))});Tx.muiName="Input";function bre(e){return qn("MuiTooltip",e)}const vs=Gn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_re=["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 Sre(e){return Math.round(e*1e5)/1e5}const Ere=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${At(i.split("-")[0])}`],arrow:["arrow"]};return or(a,bre,t)},Cre=Ot(mT,{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})=>j({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}`]:j({},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}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Are=Ot("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${At(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Sre(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${vs.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${vs.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${vs.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${vs.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Rre=Ot("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:wr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let op=!1;const jE=new Df;let tc={x:0,y:0};function ip(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Il=D.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,w,v,y,A,b,x,S,k,P;const E=zn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:$,components:H={},componentsProps:I={},describeChild:X=!1,disableFocusListener:se=!1,disableHoverListener:q=!1,disableInteractive:G=!1,disableTouchListener:Q=!1,enterDelay:le=100,enterNextDelay:pe=0,enterTouchDelay:J=700,followCursor:de=!1,id:re,leaveDelay:he=0,leaveTouchDelay:U=1500,onClose:ae,onOpen:te,open:ye,placement:ue="bottom",PopperComponent:Ne,PopperProps:Re={},slotProps:ve={},slots:Ce={},title:ge,TransitionComponent:_e=s2,TransitionProps:je}=E,nt=st(E,_re),ut=D.isValidElement($)?$:T.jsx("span",{children:$}),yt=em(),rt=bQ(),[cn,Kn]=D.useState(),[dt,at]=D.useState(null),fn=D.useRef(!1),dn=G||de,Ut=Al(),Rt=Al(),Tn=Al(),nn=Al(),[qe,Le]=JZ({controlled:ye,default:!1,name:"Tooltip",state:"open"});let Xt=qe;const ir=QZ(re),Yn=D.useRef(),Dn=Cl(()=>{Yn.current!==void 0&&(document.body.style.WebkitUserSelect=Yn.current,Yn.current=void 0),nn.clear()});D.useEffect(()=>Dn,[Dn]);const Io=ke=>{jE.clear(),op=!0,Le(!0),te&&!Xt&&te(ke)},W=Cl(ke=>{jE.start(800+he,()=>{op=!1}),Le(!1),ae&&Xt&&ae(ke),Ut.start(yt.transitions.duration.shortest,()=>{fn.current=!1})}),F=ke=>{fn.current&&ke.type!=="touchstart"||(cn&&cn.removeAttribute("title"),Rt.clear(),Tn.clear(),le||op&&pe?Rt.start(op?pe:le,()=>{Io(ke)}):Io(ke))},ce=ke=>{Rt.clear(),Tn.start(he,()=>{W(ke)})},{isFocusVisibleRef:be,onBlur:we,onFocus:Ae,ref:Ue}=cx(),[,Be]=D.useState(!1),$e=ke=>{we(ke),be.current===!1&&(Be(!1),ce(ke))},Ke=ke=>{cn||Kn(ke.currentTarget),Ae(ke),be.current===!0&&(Be(!0),F(ke))},Et=ke=>{fn.current=!0;const wt=ut.props;wt.onTouchStart&&wt.onTouchStart(ke)},Pn=ke=>{Et(ke),Tn.clear(),Ut.clear(),Dn(),Yn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=Yn.current,F(ke)})},zt=ke=>{ut.props.onTouchEnd&&ut.props.onTouchEnd(ke),Dn(),Tn.start(U,()=>{W(ke)})};D.useEffect(()=>{if(!Xt)return;function ke(wt){(wt.key==="Escape"||wt.key==="Esc")&&W(wt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[W,Xt]);const On=to(ut.ref,Ue,Kn,n);!ge&&ge!==0&&(Xt=!1);const pn=D.useRef(),so=ke=>{const wt=ut.props;wt.onMouseMove&&wt.onMouseMove(ke),tc={x:ke.clientX,y:ke.clientY},pn.current&&pn.current.update()},sr={},N=typeof ge=="string";X?(sr.title=!Xt&&N&&!q?ge:null,sr["aria-describedby"]=Xt?ir:null):(sr["aria-label"]=N?ge:null,sr["aria-labelledby"]=Xt&&!N?ir:null);const B=j({},sr,nt,ut.props,{className:vt(nt.className,ut.props.className),onTouchStart:Et,ref:On},de?{onMouseMove:so}:{}),K={};Q||(B.onTouchStart=Pn,B.onTouchEnd=zt),q||(B.onMouseOver=ip(F,B.onMouseOver),B.onMouseLeave=ip(ce,B.onMouseLeave),dn||(K.onMouseOver=F,K.onMouseLeave=ce)),se||(B.onFocus=ip(Ke,B.onFocus),B.onBlur=ip($e,B.onBlur),dn||(K.onFocus=Ke,K.onBlur=$e));const ne=D.useMemo(()=>{var ke;let wt=[{name:"arrow",enabled:!!dt,options:{element:dt,padding:4}}];return(ke=Re.popperOptions)!=null&&ke.modifiers&&(wt=wt.concat(Re.popperOptions.modifiers)),j({},Re.popperOptions,{modifiers:wt})},[dt,Re]),Se=j({},E,{isRtl:rt,arrow:L,disableInteractive:dn,placement:ue,PopperComponentProp:Ne,touch:fn.current}),Oe=Ere(Se),ze=(r=(o=Ce.popper)!=null?o:H.Popper)!=null?r:Cre,xe=(i=(a=(u=Ce.transition)!=null?u:H.Transition)!=null?a:_e)!=null?i:s2,Ge=(c=(f=Ce.tooltip)!=null?f:H.Tooltip)!=null?c:Are,Ie=(p=(h=Ce.arrow)!=null?h:H.Arrow)!=null?p:Rre,Fe=uc(ze,j({},Re,(m=ve.popper)!=null?m:I.popper,{className:vt(Oe.popper,Re==null?void 0:Re.className,(w=(v=ve.popper)!=null?v:I.popper)==null?void 0:w.className)}),Se),Ct=uc(xe,j({},je,(y=ve.transition)!=null?y:I.transition),Se),xt=uc(Ge,j({},(A=ve.tooltip)!=null?A:I.tooltip,{className:vt(Oe.tooltip,(b=(x=ve.tooltip)!=null?x:I.tooltip)==null?void 0:b.className)}),Se),kt=uc(Ie,j({},(S=ve.arrow)!=null?S:I.arrow,{className:vt(Oe.arrow,(k=(P=ve.arrow)!=null?P:I.arrow)==null?void 0:k.className)}),Se);return T.jsxs(D.Fragment,{children:[D.cloneElement(ut,B),T.jsx(ze,j({as:Ne??mT,placement:ue,anchorEl:de?{getBoundingClientRect:()=>({top:tc.y,left:tc.x,right:tc.x,bottom:tc.y,width:0,height:0})}:cn,popperRef:pn,open:cn?Xt:!1,id:ir,transition:!0},K,Fe,{popperOptions:ne,children:({TransitionProps:ke})=>T.jsx(xe,j({timeout:yt.transitions.duration.shorter},ke,Ct,{children:T.jsxs(Ge,j({},xt,{children:[ge,L?T.jsx(Ie,j({},kt,{ref:at})):null]}))}))}))]})}),kre=Ma` 0% { opacity: 0.2; } 100% { opacity: 1; } -`,Dre=({visible:e})=>e&&T.jsxs(_t,{spacing:"16px",direction:"row",sx:{display:"flex",px:"15px",alignItems:"center"},children:[T.jsx(va,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsx(va,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((t,n)=>T.jsx(va,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${Tre} 1s infinite`,animationDelay:`${n*.2}s`}},t))})]}),Pre=({onClose:e,onDrawerOpen:t,onMinimize:n,...r})=>T.jsxs(_t,{direction:"row",justifyContent:"space-between",paddingRight:"24px",paddingLeft:"14px",height:"56px",...r,children:[T.jsxs(_t,{direction:"row",spacing:"24px",alignItems:"center",children:[T.jsx(Il,{title:"Settings",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{background:"none",border:"none",height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Open Chat Drawer",onClick:t,children:T.jsx("svg",{width:"4",height:"18",viewBox:"0 0 4 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T.jsxs("g",{fill:"#DEDEDE",children:[T.jsx("circle",{cx:"2",cy:"2",r:"2"}),T.jsx("circle",{cx:"2",cy:"9",r:"2"}),T.jsx("circle",{cx:"2",cy:"16",r:"2"})]})})})}),T.jsxs(_t,{direction:"row",spacing:"8px",justifyContent:"center",alignItems:"center",sx:{marginLeft:"5px !important"},children:[T.jsx(va,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsx(xn,{sx:{fontWeight:500,fontSize:"16px"},children:"OWC Chatbot"})]})]}),T.jsxs(_t,{direction:"row",spacing:"5px",alignItems:"center",position:"relative",children:[T.jsx(Il,{title:"Minimize Chat",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Minimize Chat",onClick:()=>n(!1),children:T.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T.jsxs("g",{fill:"none",children:[T.jsx("path",{d:"M0 0h14v14H0z"}),T.jsx("g",{mask:"url(#hr8sptrh4b)",stroke:"#1470D2",children:T.jsx("path",{d:"M.5 7h13"})})]})})})}),T.jsx(Il,{title:"End Chat",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:e,children:T.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("g",{stroke:"#1470D2",fill:"none",children:T.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})})]})]}),Ore=({onMessage:e,value:t,input:n,loading:r})=>{const o=Sn(vf),i=D.useRef(null);return D.useEffect(()=>{i.current&&i.current.focus()},[]),T.jsx(_t,{spacing:1,sx:{padding:"12px 15px"},children:T.jsxs(_t,{spacing:1,children:[T.jsx(AT,{variant:"outlined",sx:{width:"100%"},children:T.jsx(Dx,{inputRef:i,value:t,onChange:a=>n(a.target.value),onKeyUp:a=>{a.key==="Enter"&&!r&&(o!=null&&o.socket.connected)&&e()},endAdornment:(o==null?void 0:o.socket.connected)&&T.jsx(Lne,{position:"end",sx:{cursor:r?"not-allowed":"pointer",opacity:r?.5:1},children:T.jsx("button",{onClick:()=>{r||e()},style:{background:"none",border:"none",padding:0,height:"28px",width:"28px",cursor:r?"not-allowed":"pointer",opacity:r?.5:1},"aria-label":"Send Message",children:T.jsx("svg",{"aria-hidden":"true",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"none",children:[T.jsx("circle",{fill:"#1470D2",cx:"14",cy:"14",r:"14"}),T.jsx("path",{d:"m20.385 14.677-5.658-6.593c-.005-.005-.012-.007-.017-.012a.69.69 0 0 0-.513-.232.693.693 0 0 0-.51.228c-.006.007-.015.01-.021.016l-5.658 6.593a.7.7 0 0 0 1.062.91l4.429-5.16V20.58a.698.698 0 1 0 1.398 0V10.429l4.428 5.158a.695.695 0 0 0 .986.075.698.698 0 0 0 .074-.985",fill:"#FFF"})]})})})}),placeholder:"Ask our Chatbot...",sx:{height:"45px",borderRadius:"16px","> input::placeholder":{color:"#222222",opacity:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})}),T.jsxs(xn,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",T.jsx(wh,{href:"/support/site-terms",children:"Terms and Conditions"})," and ",T.jsx(wh,{href:"/support/privacy-policy",children:"Privacy Policy"}),"."]})]})})},Lre=()=>T.jsxs(_t,{spacing:0,justifyContent:"center",alignItems:"center",py:5,marginBottom:"70px !important",children:[T.jsx(va,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"72px",height:"72px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"62",height:"34",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsx(xn,{sx:{fontWeight:500,fontSize:"20px",mt:"19px"},children:"OWC Chatbot"}),T.jsx(xn,{sx:{fontSize:"14px"},children:"Ask us anything or select a topic to get started."})]}),Mre=({drawer:e,onClose:t,updateChatSettings:n})=>{const r=em(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null),f=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce"),setTimeout(()=>{c.current&&c.current.focus()},320)):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const m=w=>{e&&f.current&&!f.current.contains(w.target)&&(w.stopPropagation(),w.preventDefault(),c.current.focus())};return e?document.addEventListener("focus",m,!0):document.removeEventListener("focus",m,!0),()=>{document.removeEventListener("focus",m,!0)}},[e]);const p={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}},h=()=>{n({agent:"Live Agent"}),t(!1)};return a&&T.jsxs(_t,{ref:f,...p,className:o,children:[T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"12px"},children:[T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"Settings"}),T.jsx("button",{ref:c,style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>t(!1),children:T.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("g",{stroke:"#1470D2",fill:"none",children:T.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})]}),T.jsx(_t,{sx:{height:"100%",paddingInline:"15px"},children:T.jsx(kx,{sx:{".MuiListItemButton-root":{borderRadius:"8px"}},children:T.jsx(Tx,{disablePadding:!0,children:T.jsx(Zne,{onClick:h,children:T.jsx(dre,{primary:"Speak With a Live Agent"})})})})}),T.jsx(_t,{sx:{position:"relative",borderTop:"1px solid #dedede",display:"flex",alignItems:"center",paddingBlock:"12px",minHeight:"65px"},children:T.jsxs(xn,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",T.jsx(wh,{href:"#",children:"Terms and Conditions"})," and ",T.jsx(wh,{href:"#",children:"Privacy Policy"}),"."]})})]})},Nre=({drawer:e,children:t,...n})=>{const r=em(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce")):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const p=h=>{e&&c.current&&!c.current.contains(h.target)&&(h.stopPropagation(),h.preventDefault())};return e?document.addEventListener("focus",p,!0):document.removeEventListener("focus",p,!0),()=>{document.removeEventListener("focus",p,!0)}},[e]);const f={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return a&&T.jsx(_t,{ref:c,...f,className:o,...n,children:t})},Bre=({drawer:e,dialog:t,onClick:n})=>T.jsx(_t,{sx:{position:"absolute",top:0,bottom:0,width:"100%",height:"100%",border:0,padding:0,margin:0,opacity:e||t?1:0,visibility:e||t?"visible":"hidden",background:"rgba(0, 0, 0, 0.25)",transition:"opacity 320ms, visibility 320ms",animation:e||t?"fadeIn 320ms ease":"fadeOut 320ms ease","@keyframes fadeIn":{from:{opacity:0},to:{opacity:1}},"@keyframes fadeOut":{from:{opacity:1},to:{opacity:0}}},onClick:n}),Ire=["Welcome to OWC! I am your OWC Virtual Assistant!","Feel free to ask me anything about our products, orders, or returns. Type your question or select a topic, and I’ll do my best to assist!"],$re=({isMessageEmpty:e})=>T.jsxs(_t,{spacing:"8px",px:"15px",direction:"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease",...e?{marginBottom:"-16px !important"}:""},children:[T.jsx(va,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",...e?"":{backgroundColor:"#005ea4"},borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsxs(kx,{sx:{paddingBlock:0,height:"fit-content"},children:[T.jsx(xn,{sx:{marginLeft:"14.5px",marginBottom:"8px",color:"#595959",fontSize:"14px",fontFamily:"Roboto"},children:"OWC Chatbot"}),Ire.map((t,n)=>T.jsx(Tx,{sx:{width:"fit-content",minHeight:"48px",marginTop:n===0?"0":"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"13px 14.5px"},children:t},n))]})]}),Fre=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),T.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[T.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:T.jsx("use",{xlinkHref:"#42svq9gc7a"})}),T.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)"})]})]}),Ure=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),T.jsxs("g",{fill:"none",fillRule:"evenodd",children:[T.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:T.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),T.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)"})]})]}),zre=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"1qtkxvb2wa",d:"M0 0h10.443v15H0z"})}),T.jsxs("g",{fill:"none",fillRule:"evenodd",children:[T.jsxs("g",{transform:"rotate(-180 5.222 7.5)",children:[T.jsx("mask",{id:"8snl3q94rb",fill:"#fff",children:T.jsx("use",{xlinkHref:"#1qtkxvb2wa"})}),T.jsx("path",{d:"M10.435 7.233c-.099-.83-.79-1.482-1.64-1.482H5.058l.79-2.49c.12-.395.198-.81.198-1.225C6.047.909 5.138 0 4.012 0 3.34 0 2.787.553 2.787 1.225v.751c0 .198-.06.396-.159.554L.534 5.85A1.319 1.319 0 0 1 0 6.304v8.64L7.036 15c.75 0 1.403-.514 1.6-1.225l.1-.396c.019-.079.039-.138.098-.197l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.633.633 0 0 1 .1-.494l.177-.277c.237-.356.336-.79.257-1.205l-.04-.159a.633.633 0 0 1 .1-.494l.197-.316c.217-.296.316-.692.277-1.087",fill:"#005EA4",mask:"url(#8snl3q94rb)"})]}),T.jsx("path",{d:"M14.89 9.21a.49.49 0 0 0 .494-.495V.553A.49.49 0 0 0 14.89.06H11.41v9.15h3.479z",fill:"#005EA4"})]})]}),jre=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"ucm0xocfoa",d:"M0 0h10.443v15H0z"})}),T.jsxs("g",{fill:"none",fillRule:"evenodd",children:[T.jsxs("g",{transform:"translate(4.94)",children:[T.jsx("mask",{id:"ppd6d7kr9b",fill:"#fff",children:T.jsx("use",{xlinkHref:"#ucm0xocfoa"})}),T.jsx("path",{d:"M10.435 7.233c-.099-.83-.79-1.482-1.64-1.482H5.058l.79-2.49c.12-.395.198-.81.198-1.225C6.047.909 5.138 0 4.012 0 3.34 0 2.787.553 2.787 1.225v.751c0 .198-.06.396-.159.554L.534 5.85A1.319 1.319 0 0 1 0 6.304v8.64L7.036 15c.75 0 1.403-.514 1.6-1.225l.1-.396c.019-.079.039-.138.098-.197l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.633.633 0 0 1 .1-.494l.177-.277c.237-.356.336-.79.257-1.205l-.04-.159a.633.633 0 0 1 .1-.494l.197-.316c.217-.296.316-.692.277-1.087",fill:"#005EA4",mask:"url(#ppd6d7kr9b)"})]}),T.jsx("path",{d:"M.494 5.79A.49.49 0 0 0 0 6.286v8.162a.49.49 0 0 0 .494.494h3.479V5.79H.494z",fill:"#005EA4"})]})]}),Zs="assistant_message",Vre=({message:e,sources:t,feedback:n,handleSources:r})=>{const{actions:o,chatSettingsValue:i,askUser:a}=KR();on(yf);const{replyMessage:u,callAction:c,updateChatSettings:f}=e4();D.useContext(xf);const p={width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px"},h={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},m={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}};return T.jsxs(_t,{children:[T.jsxs(_t,{spacing:"8px",px:"15px",direction:e.type!==Zs?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[e.type===Zs&&T.jsx(va,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsxs(kx,{sx:{paddingBlock:0,height:"fit-content"},children:[e.type===Zs&&T.jsx(xn,{sx:{marginLeft:"14.5px",marginBottom:"8px",color:"#595959",fontSize:"14px",fontFamily:"Roboto, sans-serif"},children:e.metadata.author||"OWC Chatbot"}),T.jsx(Tx,{sx:{...p,...e.type!==Zs&&{color:"#222",backgroundColor:"#edf5fa"},"div p":{marginBlock:"1em !important"}},children:e.isError||e.steps&&e.steps[0].isError?T.jsx("div",{children:T.jsx(xn,{fontStyle:"italic",children:"We’re having trouble connecting to the chatbot. Please check your internet connection or try again later."})}):T.jsx(sk,{markdown:e.output})})]})]}),e.type===Zs&&T.jsxs(_t,{direction:"row",gap:"16.6px",marginTop:"8px",marginLeft:7,children:[T.jsx(Il,{title:"Helpful",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{...h,display:e.feedback&&e.feedback.value===0?"none":"inline-block"},onClick:()=>n(e,1),children:e.feedback&&e.feedback.value===1?T.jsx(jre,{}):T.jsx(Ure,{})})}),T.jsx(Il,{title:"Not Helpful",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{...h,display:e.feedback&&e.feedback.value===1?"none":"inline-block"},onClick:()=>n(e,0),children:e.feedback&&e.feedback.value===0?T.jsx(zre,{}):T.jsx(Fre,{})})}),t.length>0&&!e.waitForAnswer&&i.agent!=="Live Agent"&&T.jsx("button",{style:h,onClick:()=>r(e.id),children:T.jsx(Il,{title:"View Sources",children:T.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"#989898",stroke:"#989898",strokeWidth:".35",fillRule:"evenodd",children:[T.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"}),T.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"})]})})})})]}),T.jsxs(_t,{direction:"row",spacing:1,justifyContent:"flex-end",paddingRight:"15px",sx:{...e.type===Zs&&e.waitForAnswer&&{marginLeft:7}},children:[o.length>0&&o.map((w,v)=>w.forId===e.id&&T.jsx(Ac,{...m,onClick:()=>{const y={name:w.name,value:w.value,label:w.label,description:w.description,forId:w.forId,id:w.id,collapsed:w.collapsed};a&&u(y),c(w)},children:w.label},v)),e.type===Zs&&!e.waitForAnswer&&i.agent!=="Live Agent"&&T.jsx(Ac,{...m,onClick:()=>{f({agent:"Live Agent"})},children:"Speak With a Live Agent"})]})]})},Wre=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,replyMessage:o,clear:i,updateChatSettings:a}=e4(),{elements:u,loading:c,askUser:f}=KR(),p=on(yf);let{messages:h}=RV();const[m,w]=D.useState([]),v=D.useRef(null),y=D.useContext(xf),[A,b]=D.useState([]),[x,S]=D.useState(()=>T.jsx(T.Fragment,{})),[k,P]=D.useState(""),[E,L]=D.useState(""),[$,q]=D.useState(null),[I,X]=D.useState(!1),[se,H]=D.useState(!1),[G,Q]=D.useState([]),[le,pe]=D.useState(""),J=D.useRef([]),de=()=>{var Ce;(Ce=v.current)==null||Ce.scrollIntoView({behavior:"smooth"})},re=()=>{var ge;if(h.length===0)return!1;const Ce=(ge=h[h.length-1])==null?void 0:ge.output.trim();return Ce===""||Ce===le.trim()};D.useEffect(()=>{de()},[m]),D.useEffect(()=>{p(Ce=>[...Ce])},[$]),D.useEffect(()=>{if(de(),re(),h.length>0){const Ce=h.filter(ge=>ge.name);w([...J.current,...Ce])}},[h]),D.useEffect(()=>{const Ce=JSON.parse(sessionStorage.getItem("chatState"));Ce&&(J.current=Ce,w(Ce))},[]),D.useEffect(()=>{m.length>0&&sessionStorage.setItem("chatState",JSON.stringify(m))},[m]),D.useEffect(()=>{const Ce=async()=>{if(u.length!==0)try{const ge=await Promise.all(u.filter(_e=>h.some(je=>je.id===_e.forId)).map(async _e=>({sources:(await Cn.get(_e.url)).data,id:_e.forId})));b(ge)}catch(ge){console.error(ge)}};h.length>0&&Ce()},[u]),D.useEffect(()=>{Q(A)},[A]),D.useEffect(()=>{de()},[G]),D.useEffect(()=>{E&&S(ve)},[E]);const he=()=>{H(!0),S(Me)},U=async(Ce,ge)=>{H(!0),S(T.jsx(Re,{action:ge,topic:Ce,feedback:q}))},ae=()=>{t(!1),H(!1),i(),sessionStorage.removeItem("chatState"),J.current=[],w([])},te=Ce=>{L(Ce),H(!0)},ye=async Ce=>{const ge=Ce||k.trim();pe(ge);const _e=o0();if(ge){const je={name:"User",type:"user_message",sender:"user",output:ge,content:ge,createdAt:new Date().toISOString(),id:_e};f?o(je):r(je,[]),P("")}},ue={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},Me=()=>T.jsxs(Ze.Fragment,{children:[T.jsxs(_t,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"End Chat"}),T.jsx(xn,{children:"Are you sure you want to end chat?"})]}),T.jsxs(_t,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[T.jsx(Ac,{fullWidth:!0,variant:"contained",sx:ue,onClick:ae,children:"End Chat"}),T.jsx(Ac,{sx:ue,onClick:()=>{H(!1)},children:"Cancel"})]})]}),Re=({action:Ce,topic:ge,feedback:_e})=>{const[je,nt]=D.useState(!1),[ut,yt]=Ze.useState(""),[rt,cn]=D.useState(!1),Kn=async()=>{cn(!0);const dt=await y.setFeedback({forId:ge.id,threadId:ge.threadId,value:Ce,comment:ut},localStorage.getItem("accessToken"));p(at=>u0(at,ge.id,{...ge,feedback:{forId:ge.id,threadId:ge.threadId,value:Ce,comment:ut,id:dt.feedbackId}})),_e({forId:ge.id,threadId:ge.threadId,value:Ce,comment:ut,id:dt.feedbackId}),cn(!1),nt(!0)};return je?T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",height:"318px"},children:[T.jsx("button",{style:{position:"absolute",top:15,right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>H(!1),children:T.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[T.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),T.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})}),T.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm7.717-19.002a1.216 1.216 0 0 0-.156-1.716 1.222 1.222 0 0 0-1.719.156L14.08 17.54c-.424.507-.661.788-.851.96l-.008.007-.007-.006c-.205-.155-.468-.413-.935-.879l-3.195-3.189a1.222 1.222 0 0 0-1.726 0 1.216 1.216 0 0 0 0 1.723l3.195 3.189.05.05c.399.397.782.78 1.139 1.05.4.3.922.584 1.593.554.67-.03 1.165-.36 1.536-.697.33-.3.678-.716 1.038-1.148l.045-.054 6.764-8.101z",fill:"#036805",fillRule:"evenodd"})}),T.jsx(xn,{fontSize:"16px",fontWeight:500,marginTop:"16px",marginBottom:"32px",textAlign:"center",children:"Thanks for your feedback!"}),T.jsxs(xn,{fontSize:"12px",lineHeight:"12px",textAlign:"center",children:["Would you like to submit more feedback?",T.jsx("span",{tabIndex:"0",style:{color:"#1470d2",display:"block",marginTop:"10px",cursor:"pointer"},onClick:()=>nt(!1),children:"Yes, I do"})]})]}):T.jsxs(Ze.Fragment,{children:[T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[T.jsx(_t,{direction:"row",spacing:1,children:T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"Add a Comment"})}),T.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:()=>H(!1),children:T.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[T.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),T.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),T.jsx(_t,{sx:{paddingInline:"15px",paddingBlock:"24px"},children:T.jsx(AT,{variant:"outlined",sx:{width:"100%"},children:T.jsx(Dx,{multiline:!0,rows:5,onInput:dt=>yt(dt.target.value),sx:{borderRadius:"16px","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})})}),T.jsx(_t,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",marginBottom:4},children:T.jsx(Ac,{disabled:rt,sx:{...ue,color:"#fff",background:rt?"#ccc":"#1470D2",fontFamily:"Exo",fontWeight:600,border:"none",width:"100%",borderRadius:0,cursor:rt?"not-allowed":"pointer","&:hover":{background:rt?"#ccc":"#1470D2"}},onClick:Kn,startIcon:rt&&T.jsx(vne,{size:"18px"}),children:"Submit Feedback"})})]})},ve=D.useCallback(()=>{const Ce=G.filter(ge=>ge.id===E);if(Ce.length!==0)return T.jsxs(Ze.Fragment,{children:[T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[T.jsxs(_t,{direction:"row",spacing:1,children:[T.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"#222",stroke:"#222",strokeWidth:".35",fillRule:"evenodd",children:[T.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"}),T.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"})]})}),T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"Sources"})]}),T.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:()=>H(!1),children:T.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[T.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),T.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),T.jsx(_t,{sx:{paddingInline:"15px",paddingTop:"10px",paddingBottom:"20px",maxHeight:"350px",overflow:"auto",a:{color:"#1470d2",fontFamily:"Roboto",fontSize:"13px",lineHeight:"18px",fontWeight:"normal"}},children:Ce.map((ge,_e)=>T.jsx(sk,{markdown:ge.sources},_e))})]})},[E,G]);return T.jsx(_t,{position:"relative",children:T.jsxs(_t,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"calc(100% - 64px)",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",boxShadow:"0 2px 4px 0 rgba(12, 62, 91, 0.16)",opacity:0,zIndex:99999,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:[T.jsx(Pre,{onClose:he,onMinimize:t,onDrawerOpen:()=>X(!0)}),T.jsxs(_t,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[T.jsx(Lre,{}),T.jsx($re,{isMessageEmpty:h.length}),m.filter(Ce=>Ce.output.trim()!=="").map((Ce,ge)=>T.jsx(Vre,{message:Ce,sources:G,feedback:U,handleSources:te},ge)),T.jsx(Dre,{visible:re()}),T.jsx("div",{ref:v})]}),T.jsx(Ore,{onMessage:ye,value:k,input:P,loading:c}),T.jsx(Bre,{drawer:I,dialog:se,onClick:()=>{X(!1),H(!1)}}),T.jsx(Mre,{drawer:I,onClose:()=>X(!1),updateChatSettings:a}),T.jsx(Nre,{drawer:se,children:x})]})})},qre=({toggle:e,sx:t,...n})=>T.jsxs(_t,{sx:{gap:"13px",bottom:24,left:24,width:"fit-content",height:"55px",zIndex:99999,paddingX:"24px",cursor:"pointer",position:"fixed",bgcolor:"#1470d2",borderRadius:27.5,flexDirection:"row",alignItems:"center",outline:"none",opacity:0,visibility:"hidden",boxShadow:"0 0 0 1px #fff, inset 0 0 0 1px #fff, inset 0 0 0 1px #1163bb, 0 2px 4px 0 rgba(0, 0, 0, 0.5)",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:[T.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"none",children:[T.jsxs("g",{children:[T.jsx("path",{d:"M0 0h28.906v35H0z"}),T.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)"})]}),T.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"})]})}),T.jsx(xn,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Hre=()=>{const[e,t]=D.useState(!1);return T.jsxs(Ze.Fragment,{children:[T.jsx(qre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),T.jsx(Wre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var Gre={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 Kre=gH([{path:"*",element:T.jsx(Hre,{})}],{basename:Gre.VITE_APP_BASE_NAME});function Yre(){return J0({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 Xre(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 rf;(function(e){e.LIGHT="light",e.DARK="dark"})(rf||(rf={}));rf.LIGHT;function Zre(e){return{button:e.palette.mode===rf.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===rf.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 ${Jn(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Jn(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Jn(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Jn(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Jn(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Jn(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Jn(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Jn(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Jn(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Jn(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Jn(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Jn(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Jn(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Jn(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Jn(e.palette.grey[500],.2)}`}}function Qre(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 Jre(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 bt({variant:e,color:t,theme:n}){const r=Qre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Jre(n,f),h={"&::after":{boxShadow:`0 0 5px 5px ${Jn(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Jn(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 eoe(e){const t=bt({variant:"dashed",color:"primary",theme:e}),n=bt({variant:"shadow",color:"primary",theme:e}),r=bt({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":bt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":bt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":bt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":bt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":bt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":bt({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":bt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":bt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":bt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":bt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":bt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":bt({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:bt({variant:"contained",color:"primary",theme:e}),containedSecondary:bt({variant:"contained",color:"secondary",theme:e}),containedError:bt({variant:"contained",color:"error",theme:e}),containedSuccess:bt({variant:"contained",color:"success",theme:e}),containedInfo:bt({variant:"contained",color:"info",theme:e}),containedWarning:bt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:bt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:bt({variant:"outlined",color:"secondary",theme:e}),outlinedError:bt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:bt({variant:"outlined",color:"success",theme:e}),outlinedInfo:bt({variant:"outlined",color:"info",theme:e}),outlinedWarning:bt({variant:"outlined",color:"warning",theme:e}),textPrimary:bt({variant:"text",color:"primary",theme:e}),textSecondary:bt({variant:"text",color:"secondary",theme:e}),textError:bt({variant:"text",color:"error",theme:e}),textSuccess:bt({variant:"text",color:"success",theme:e}),textInfo:bt({variant:"text",color:"info",theme:e}),textWarning:bt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function toe(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function noe(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function roe(e){return Oa.merge(eoe(e),toe(),noe())}function TT({children:e}){const t=D.useMemo(()=>Yre(),["light","default"]),n=D.useMemo(()=>Xre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=D.useMemo(()=>Zre(t),[t]),o=D.useMemo(()=>({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:t.palette,customShadows:r,typography:n}),[t,n]),i=J0(o);return i.components=roe(i),T.jsx(Rk,{injectFirst:!0,children:T.jsxs(jJ,{theme:i,children:[T.jsx(bne,{enableColorScheme:!0}),e]})})}TT.propTypes={children:pY.node};const DT=D.createContext(),ooe=({children:e})=>{const t=kV();return T.jsx(DT.Provider,{value:t,children:e})},ioe=()=>D.useContext(DT),soe=()=>{const{connect:e,disconnect:t}=ioe(),n=Sn(vf);return D.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await Cn.post("https://owcbot.macsales.com/login",new URLSearchParams({username:"owc-user",password:"owc-user"}))).data.access_token;localStorage.setItem("accessToken",`Bearer ${a}`),e({accessToken:`Bearer ${a}`})}catch(o){console.error("Login failed:",o)}})(),()=>{t()}),[e]),T.jsx(TT,{children:T.jsx(CH,{router:Kre})})},aoe=()=>T.jsx(ooe,{children:T.jsx(soe,{})}),loe="https://owcbot.macsales.com",uoe=new JR(loe,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("aibotroot");e?wv.createRoot(e).render(T.jsx(Ze.StrictMode,{children:T.jsx(xf.Provider,{value:uoe,children:T.jsx(Kz,{children:T.jsx(aoe,{})})})})):console.log("Root element for Chatbot not found")}); +`,Tre=({visible:e})=>e&&T.jsxs(_t,{spacing:"16px",direction:"row",sx:{display:"flex",px:"15px",alignItems:"center"},children:[T.jsx(va,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsx(va,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((t,n)=>T.jsx(va,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${kre} 1s infinite`,animationDelay:`${n*.2}s`}},t))})]}),Dre=({onClose:e,onDrawerOpen:t,onMinimize:n,...r})=>T.jsxs(_t,{direction:"row",justifyContent:"space-between",paddingRight:"24px",paddingLeft:"14px",height:"56px",...r,children:[T.jsxs(_t,{direction:"row",spacing:"24px",alignItems:"center",children:[T.jsx(Il,{title:"Settings",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{background:"none",border:"none",height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Open Chat Drawer",onClick:t,children:T.jsx("svg",{width:"4",height:"18",viewBox:"0 0 4 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T.jsxs("g",{fill:"#DEDEDE",children:[T.jsx("circle",{cx:"2",cy:"2",r:"2"}),T.jsx("circle",{cx:"2",cy:"9",r:"2"}),T.jsx("circle",{cx:"2",cy:"16",r:"2"})]})})})}),T.jsxs(_t,{direction:"row",spacing:"8px",justifyContent:"center",alignItems:"center",sx:{marginLeft:"5px !important"},children:[T.jsx(va,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsx(xn,{sx:{fontWeight:500,fontSize:"16px"},children:"OWC Chatbot"})]})]}),T.jsxs(_t,{direction:"row",spacing:"5px",alignItems:"center",position:"relative",children:[T.jsx(Il,{title:"Minimize Chat",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Minimize Chat",onClick:()=>n(!1),children:T.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T.jsxs("g",{fill:"none",children:[T.jsx("path",{d:"M0 0h14v14H0z"}),T.jsx("g",{mask:"url(#hr8sptrh4b)",stroke:"#1470D2",children:T.jsx("path",{d:"M.5 7h13"})})]})})})}),T.jsx(Il,{title:"End Chat",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:e,children:T.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("g",{stroke:"#1470D2",fill:"none",children:T.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})})]})]}),Pre=({onMessage:e,value:t,input:n,loading:r})=>{const o=Sn(vf),i=D.useRef(null);return D.useEffect(()=>{i.current&&i.current.focus()},[]),T.jsx(_t,{spacing:1,sx:{padding:"12px 15px"},children:T.jsxs(_t,{spacing:1,children:[T.jsx(ST,{variant:"outlined",sx:{width:"100%"},children:T.jsx(Tx,{inputRef:i,value:t,onChange:a=>n(a.target.value),onKeyUp:a=>{a.key==="Enter"&&!r&&(o!=null&&o.socket.connected)&&e()},endAdornment:(o==null?void 0:o.socket.connected)&&T.jsx(One,{position:"end",sx:{cursor:r?"not-allowed":"pointer",opacity:r?.5:1},children:T.jsx("button",{onClick:()=>{r||e()},style:{background:"none",border:"none",padding:0,height:"28px",width:"28px",cursor:r?"not-allowed":"pointer",opacity:r?.5:1},"aria-label":"Send Message",children:T.jsx("svg",{"aria-hidden":"true",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"none",children:[T.jsx("circle",{fill:"#1470D2",cx:"14",cy:"14",r:"14"}),T.jsx("path",{d:"m20.385 14.677-5.658-6.593c-.005-.005-.012-.007-.017-.012a.69.69 0 0 0-.513-.232.693.693 0 0 0-.51.228c-.006.007-.015.01-.021.016l-5.658 6.593a.7.7 0 0 0 1.062.91l4.429-5.16V20.58a.698.698 0 1 0 1.398 0V10.429l4.428 5.158a.695.695 0 0 0 .986.075.698.698 0 0 0 .074-.985",fill:"#FFF"})]})})})}),placeholder:"Ask our Chatbot...",sx:{height:"45px",borderRadius:"16px","> input::placeholder":{color:"#222222",opacity:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})}),T.jsxs(xn,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",T.jsx(wh,{href:"/support/site-terms",children:"Terms and Conditions"})," and ",T.jsx(wh,{href:"/support/privacy-policy",children:"Privacy Policy"}),"."]})]})})},Ore=()=>T.jsxs(_t,{spacing:0,justifyContent:"center",alignItems:"center",py:5,marginBottom:"70px !important",children:[T.jsx(va,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"72px",height:"72px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"62",height:"34",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsx(xn,{sx:{fontWeight:500,fontSize:"20px",mt:"19px"},children:"OWC Chatbot"}),T.jsx(xn,{sx:{fontSize:"14px"},children:"Ask us anything or select a topic to get started."})]}),Lre=({drawer:e,onClose:t,updateChatSettings:n})=>{const r=em(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null),f=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce"),setTimeout(()=>{c.current&&c.current.focus()},320)):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const m=w=>{e&&f.current&&!f.current.contains(w.target)&&(w.stopPropagation(),w.preventDefault(),c.current.focus())};return e?document.addEventListener("focus",m,!0):document.removeEventListener("focus",m,!0),()=>{document.removeEventListener("focus",m,!0)}},[e]);const p={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}},h=()=>{n({agent:"Live Agent"}),t(!1)};return a&&T.jsxs(_t,{ref:f,...p,className:o,children:[T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"12px"},children:[T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"Settings"}),T.jsx("button",{ref:c,style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>t(!1),children:T.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("g",{stroke:"#1470D2",fill:"none",children:T.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})]}),T.jsx(_t,{sx:{height:"100%",paddingInline:"15px"},children:T.jsx(Rx,{sx:{".MuiListItemButton-root":{borderRadius:"8px"}},children:T.jsx(kx,{disablePadding:!0,children:T.jsx(Xne,{onClick:h,children:T.jsx(fre,{primary:"Speak With a Live Agent"})})})})}),T.jsx(_t,{sx:{position:"relative",borderTop:"1px solid #dedede",display:"flex",alignItems:"center",paddingBlock:"12px",minHeight:"65px"},children:T.jsxs(xn,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",T.jsx(wh,{href:"#",children:"Terms and Conditions"})," and ",T.jsx(wh,{href:"#",children:"Privacy Policy"}),"."]})})]})},Nre=({drawer:e,children:t,...n})=>{const r=em(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce")):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const p=h=>{e&&c.current&&!c.current.contains(h.target)&&(h.stopPropagation(),h.preventDefault())};return e?document.addEventListener("focus",p,!0):document.removeEventListener("focus",p,!0),()=>{document.removeEventListener("focus",p,!0)}},[e]);const f={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return a&&T.jsx(_t,{ref:c,...f,className:o,...n,children:t})},Mre=({drawer:e,dialog:t,onClick:n})=>T.jsx(_t,{sx:{position:"absolute",top:0,bottom:0,width:"100%",height:"100%",border:0,padding:0,margin:0,opacity:e||t?1:0,visibility:e||t?"visible":"hidden",background:"rgba(0, 0, 0, 0.25)",transition:"opacity 320ms, visibility 320ms",animation:e||t?"fadeIn 320ms ease":"fadeOut 320ms ease","@keyframes fadeIn":{from:{opacity:0},to:{opacity:1}},"@keyframes fadeOut":{from:{opacity:1},to:{opacity:0}}},onClick:n}),Bre=["Welcome to OWC! I am your OWC Virtual Assistant!","Feel free to ask me anything about our products, orders, or returns. Type your question or select a topic, and I’ll do my best to assist!"],Ire=({isMessageEmpty:e})=>T.jsxs(_t,{spacing:"8px",px:"15px",direction:"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease",...e?{marginBottom:"-16px !important"}:""},children:[T.jsx(va,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",...e?"":{backgroundColor:"#005ea4"},borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsxs(Rx,{sx:{paddingBlock:0,height:"fit-content"},children:[T.jsx(xn,{sx:{marginLeft:"14.5px",marginBottom:"8px",color:"#595959",fontSize:"14px",fontFamily:"Roboto"},children:"OWC Chatbot"}),Bre.map((t,n)=>T.jsx(kx,{sx:{width:"fit-content",minHeight:"48px",marginTop:n===0?"0":"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"13px 14.5px"},children:t},n))]})]}),$re=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),T.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[T.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:T.jsx("use",{xlinkHref:"#42svq9gc7a"})}),T.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)"})]})]}),Fre=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),T.jsxs("g",{fill:"none",fillRule:"evenodd",children:[T.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:T.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),T.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)"})]})]}),Ure=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"1qtkxvb2wa",d:"M0 0h10.443v15H0z"})}),T.jsxs("g",{fill:"none",fillRule:"evenodd",children:[T.jsxs("g",{transform:"rotate(-180 5.222 7.5)",children:[T.jsx("mask",{id:"8snl3q94rb",fill:"#fff",children:T.jsx("use",{xlinkHref:"#1qtkxvb2wa"})}),T.jsx("path",{d:"M10.435 7.233c-.099-.83-.79-1.482-1.64-1.482H5.058l.79-2.49c.12-.395.198-.81.198-1.225C6.047.909 5.138 0 4.012 0 3.34 0 2.787.553 2.787 1.225v.751c0 .198-.06.396-.159.554L.534 5.85A1.319 1.319 0 0 1 0 6.304v8.64L7.036 15c.75 0 1.403-.514 1.6-1.225l.1-.396c.019-.079.039-.138.098-.197l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.633.633 0 0 1 .1-.494l.177-.277c.237-.356.336-.79.257-1.205l-.04-.159a.633.633 0 0 1 .1-.494l.197-.316c.217-.296.316-.692.277-1.087",fill:"#005EA4",mask:"url(#8snl3q94rb)"})]}),T.jsx("path",{d:"M14.89 9.21a.49.49 0 0 0 .494-.495V.553A.49.49 0 0 0 14.89.06H11.41v9.15h3.479z",fill:"#005EA4"})]})]}),zre=()=>T.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:[T.jsx("defs",{children:T.jsx("path",{id:"ucm0xocfoa",d:"M0 0h10.443v15H0z"})}),T.jsxs("g",{fill:"none",fillRule:"evenodd",children:[T.jsxs("g",{transform:"translate(4.94)",children:[T.jsx("mask",{id:"ppd6d7kr9b",fill:"#fff",children:T.jsx("use",{xlinkHref:"#ucm0xocfoa"})}),T.jsx("path",{d:"M10.435 7.233c-.099-.83-.79-1.482-1.64-1.482H5.058l.79-2.49c.12-.395.198-.81.198-1.225C6.047.909 5.138 0 4.012 0 3.34 0 2.787.553 2.787 1.225v.751c0 .198-.06.396-.159.554L.534 5.85A1.319 1.319 0 0 1 0 6.304v8.64L7.036 15c.75 0 1.403-.514 1.6-1.225l.1-.396c.019-.079.039-.138.098-.197l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.633.633 0 0 1 .1-.494l.177-.277c.237-.356.336-.79.257-1.205l-.04-.159a.633.633 0 0 1 .1-.494l.197-.316c.217-.296.316-.692.277-1.087",fill:"#005EA4",mask:"url(#ppd6d7kr9b)"})]}),T.jsx("path",{d:"M.494 5.79A.49.49 0 0 0 0 6.286v8.162a.49.49 0 0 0 .494.494h3.479V5.79H.494z",fill:"#005EA4"})]})]}),Zs="assistant_message",jre=({message:e,sources:t,feedback:n,handleSources:r})=>{const{actions:o,chatSettingsValue:i,askUser:a}=qR();on(yf);const{replyMessage:u,callAction:c,updateChatSettings:f}=QR();D.useContext(xf);const p={width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px"},h={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},m={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}};return T.jsxs(_t,{children:[T.jsxs(_t,{spacing:"8px",px:"15px",direction:e.type!==Zs?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[e.type===Zs&&T.jsx(va,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:T.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:T.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"})})}),T.jsxs(Rx,{sx:{paddingBlock:0,height:"fit-content"},children:[e.type===Zs&&T.jsx(xn,{sx:{marginLeft:"14.5px",marginBottom:"8px",color:"#595959",fontSize:"14px",fontFamily:"Roboto, sans-serif"},children:e.metadata.author||"OWC Chatbot"}),T.jsx(kx,{sx:{...p,...e.type!==Zs&&{color:"#222",backgroundColor:"#edf5fa"},"div p":{marginBlock:"1em !important"}},children:e.isError||e.steps&&e.steps[0].isError?T.jsx("div",{children:T.jsx(xn,{fontStyle:"italic",children:"We’re having trouble connecting to the chatbot. Please check your internet connection or try again later."})}):T.jsx(ok,{markdown:e.output})})]})]}),e.type===Zs&&T.jsxs(_t,{direction:"row",gap:"16.6px",marginTop:"8px",marginLeft:7,children:[T.jsx(Il,{title:"Helpful",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{...h,display:e.feedback&&e.feedback.value===0?"none":"inline-block"},onClick:()=>n(e,1),children:e.feedback&&e.feedback.value===1?T.jsx(zre,{}):T.jsx(Fre,{})})}),T.jsx(Il,{title:"Not Helpful",PopperProps:{sx:{zIndex:999999}},children:T.jsx("button",{style:{...h,display:e.feedback&&e.feedback.value===1?"none":"inline-block"},onClick:()=>n(e,0),children:e.feedback&&e.feedback.value===0?T.jsx(Ure,{}):T.jsx($re,{})})}),t.length>0&&!e.waitForAnswer&&i.agent!=="Live Agent"&&T.jsx("button",{style:h,onClick:()=>r(e.id),children:T.jsx(Il,{title:"View Sources",PopperProps:{sx:{zIndex:999999}},children:T.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"#989898",stroke:"#989898",strokeWidth:".35",fillRule:"evenodd",children:[T.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"}),T.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"})]})})})})]}),T.jsxs(_t,{direction:"row",spacing:1,justifyContent:"flex-end",paddingRight:"15px",sx:{...e.type===Zs&&e.waitForAnswer&&{marginLeft:7}},children:[o.length>0&&o.map((w,v)=>w.forId===e.id&&T.jsx(Ac,{...m,onClick:()=>{const y={name:w.name,value:w.value,label:w.label,description:w.description,forId:w.forId,id:w.id,collapsed:w.collapsed};a&&u(y),c(w)},children:w.label},v)),e.type===Zs&&!e.waitForAnswer&&i.agent!=="Live Agent"&&T.jsx(Ac,{...m,onClick:()=>{f({agent:"Live Agent"})},children:"Speak With a Live Agent"})]})]})},Vre=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,replyMessage:o,clear:i,updateChatSettings:a}=QR(),{elements:u,loading:c,askUser:f}=qR(),p=on(yf);let{messages:h}=EV();const[m,w]=D.useState([]),v=D.useRef(null),y=D.useContext(xf),[A,b]=D.useState([]),[x,S]=D.useState(()=>T.jsx(T.Fragment,{})),[k,P]=D.useState(""),[E,L]=D.useState(""),[$,H]=D.useState(null),[I,X]=D.useState(!1),[se,q]=D.useState(!1),[G,Q]=D.useState([]),[le,pe]=D.useState(""),J=D.useRef([]),de=()=>{var Ce;(Ce=v.current)==null||Ce.scrollIntoView({behavior:"smooth"})},re=()=>{var ge;if(h.length===0)return!1;const Ce=(ge=h[h.length-1])==null?void 0:ge.output.trim();return Ce===""||Ce===le.trim()};D.useEffect(()=>{de()},[m]),D.useEffect(()=>{p(Ce=>[...Ce])},[$]),D.useEffect(()=>{if(de(),re(),h.length>0){const Ce=h.filter(ge=>ge.name);w([...J.current,...Ce])}},[h]),D.useEffect(()=>{const Ce=JSON.parse(sessionStorage.getItem("chatState"));Ce&&(J.current=Ce,w(Ce))},[]),D.useEffect(()=>{m.length>0&&sessionStorage.setItem("chatState",JSON.stringify(m))},[m]),D.useEffect(()=>{const Ce=async()=>{if(u.length!==0)try{const ge=await Promise.all(u.filter(_e=>h.some(je=>je.id===_e.forId)).map(async _e=>({sources:(await Cn.get(_e.url)).data,id:_e.forId})));b(ge)}catch(ge){console.error(ge)}};h.length>0&&Ce()},[u]),D.useEffect(()=>{Q(A)},[A]),D.useEffect(()=>{de()},[G]),D.useEffect(()=>{E&&S(ve)},[E]);const he=()=>{q(!0),S(Ne)},U=async(Ce,ge)=>{q(!0),S(T.jsx(Re,{action:ge,topic:Ce,feedback:H}))},ae=()=>{t(!1),q(!1),i(),sessionStorage.removeItem("chatState"),J.current=[],w([])},te=Ce=>{L(Ce),q(!0)},ye=async Ce=>{const ge=Ce||k.trim();pe(ge);const _e=o0();if(ge){const je={name:"User",type:"user_message",sender:"user",output:ge,content:ge,createdAt:new Date().toISOString(),id:_e};f?o(je):r(je,[]),P("")}},ue={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},Ne=()=>T.jsxs(Ze.Fragment,{children:[T.jsxs(_t,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"End Chat"}),T.jsx(xn,{children:"Are you sure you want to end chat?"})]}),T.jsxs(_t,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[T.jsx(Ac,{fullWidth:!0,variant:"contained",sx:ue,onClick:ae,children:"End Chat"}),T.jsx(Ac,{sx:ue,onClick:()=>{q(!1)},children:"Cancel"})]})]}),Re=({action:Ce,topic:ge,feedback:_e})=>{const[je,nt]=D.useState(!1),[ut,yt]=Ze.useState(""),[rt,cn]=D.useState(!1),Kn=async()=>{cn(!0);const dt=await y.setFeedback({forId:ge.id,threadId:ge.threadId,value:Ce,comment:ut},localStorage.getItem("accessToken"));p(at=>u0(at,ge.id,{...ge,feedback:{forId:ge.id,threadId:ge.threadId,value:Ce,comment:ut,id:dt.feedbackId}})),_e({forId:ge.id,threadId:ge.threadId,value:Ce,comment:ut,id:dt.feedbackId}),cn(!1),nt(!0)};return je?T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",height:"318px"},children:[T.jsx("button",{style:{position:"absolute",top:15,right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>q(!1),children:T.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[T.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),T.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})}),T.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm7.717-19.002a1.216 1.216 0 0 0-.156-1.716 1.222 1.222 0 0 0-1.719.156L14.08 17.54c-.424.507-.661.788-.851.96l-.008.007-.007-.006c-.205-.155-.468-.413-.935-.879l-3.195-3.189a1.222 1.222 0 0 0-1.726 0 1.216 1.216 0 0 0 0 1.723l3.195 3.189.05.05c.399.397.782.78 1.139 1.05.4.3.922.584 1.593.554.67-.03 1.165-.36 1.536-.697.33-.3.678-.716 1.038-1.148l.045-.054 6.764-8.101z",fill:"#036805",fillRule:"evenodd"})}),T.jsx(xn,{fontSize:"16px",fontWeight:500,marginTop:"16px",marginBottom:"32px",textAlign:"center",children:"Thanks for your feedback!"}),T.jsxs(xn,{fontSize:"12px",lineHeight:"12px",textAlign:"center",children:["Would you like to submit more feedback?",T.jsx("span",{tabIndex:"0",style:{color:"#1470d2",display:"block",marginTop:"10px",cursor:"pointer"},onClick:()=>nt(!1),children:"Yes, I do"})]})]}):T.jsxs(Ze.Fragment,{children:[T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[T.jsx(_t,{direction:"row",spacing:1,children:T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"Add a Comment"})}),T.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:()=>q(!1),children:T.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[T.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),T.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),T.jsx(_t,{sx:{paddingInline:"15px",paddingBlock:"24px"},children:T.jsx(ST,{variant:"outlined",sx:{width:"100%"},children:T.jsx(Tx,{multiline:!0,rows:5,onInput:dt=>yt(dt.target.value),sx:{borderRadius:"16px","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})})}),T.jsx(_t,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",marginBottom:4},children:T.jsx(Ac,{disabled:rt,sx:{...ue,color:"#fff",background:rt?"#ccc":"#1470D2",fontFamily:"Exo",fontWeight:600,border:"none",width:"100%",borderRadius:0,cursor:rt?"not-allowed":"pointer","&:hover":{background:rt?"#ccc":"#1470D2"}},onClick:Kn,startIcon:rt&&T.jsx(gne,{size:"18px"}),children:"Submit Feedback"})})]})},ve=D.useCallback(()=>{const Ce=G.filter(ge=>ge.id===E);if(Ce.length!==0)return T.jsxs(Ze.Fragment,{children:[T.jsxs(_t,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[T.jsxs(_t,{direction:"row",spacing:1,children:[T.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"#222",stroke:"#222",strokeWidth:".35",fillRule:"evenodd",children:[T.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"}),T.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"})]})}),T.jsx(xn,{fontSize:"17px",fontWeight:500,children:"Sources"})]}),T.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:()=>q(!1),children:T.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[T.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),T.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),T.jsx(_t,{sx:{paddingInline:"15px",paddingTop:"10px",paddingBottom:"20px",maxHeight:"350px",overflow:"auto",a:{color:"#1470d2",fontFamily:"Roboto",fontSize:"13px",lineHeight:"18px",fontWeight:"normal"}},children:Ce.map((ge,_e)=>T.jsx(ok,{markdown:ge.sources},_e))})]})},[E,G]);return T.jsx(_t,{position:"relative",children:T.jsxs(_t,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"calc(100% - 64px)",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",boxShadow:"0 2px 4px 0 rgba(12, 62, 91, 0.16)",opacity:0,zIndex:99999,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:[T.jsx(Dre,{onClose:he,onMinimize:t,onDrawerOpen:()=>X(!0)}),T.jsxs(_t,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[T.jsx(Ore,{}),T.jsx(Ire,{isMessageEmpty:h.length}),m.filter(Ce=>Ce.output.trim()!=="").map((Ce,ge)=>T.jsx(jre,{message:Ce,sources:G,feedback:U,handleSources:te},ge)),T.jsx(Tre,{visible:re()}),T.jsx("div",{ref:v})]}),T.jsx(Pre,{onMessage:ye,value:k,input:P,loading:c}),T.jsx(Mre,{drawer:I,dialog:se,onClick:()=>{X(!1),q(!1)}}),T.jsx(Lre,{drawer:I,onClose:()=>X(!1),updateChatSettings:a}),T.jsx(Nre,{drawer:se,children:x})]})})},Wre=({toggle:e,sx:t,...n})=>T.jsxs(_t,{sx:{gap:"13px",bottom:24,left:24,width:"fit-content",height:"55px",zIndex:99999,paddingX:"24px",cursor:"pointer",position:"fixed",bgcolor:"#1470d2",borderRadius:27.5,flexDirection:"row",alignItems:"center",outline:"none",opacity:0,visibility:"hidden",boxShadow:"0 0 0 1px #fff, inset 0 0 0 1px #fff, inset 0 0 0 1px #1163bb, 0 2px 4px 0 rgba(0, 0, 0, 0.5)",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:[T.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:T.jsxs("g",{fill:"none",children:[T.jsxs("g",{children:[T.jsx("path",{d:"M0 0h28.906v35H0z"}),T.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)"})]}),T.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"})]})}),T.jsx(xn,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Hre=()=>{const[e,t]=D.useState(!1);return T.jsxs(Ze.Fragment,{children:[T.jsx(Wre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),T.jsx(Vre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var qre={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 Gre=pq([{path:"*",element:T.jsx(Hre,{})}],{basename:qre.VITE_APP_BASE_NAME});function Kre(){return J0({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 Yre(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 rf;(function(e){e.LIGHT="light",e.DARK="dark"})(rf||(rf={}));rf.LIGHT;function Xre(e){return{button:e.palette.mode===rf.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===rf.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 ${Jn(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Jn(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Jn(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Jn(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Jn(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Jn(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Jn(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Jn(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Jn(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Jn(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Jn(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Jn(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Jn(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Jn(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Jn(e.palette.grey[500],.2)}`}}function Zre(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 Qre(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 bt({variant:e,color:t,theme:n}){const r=Zre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Qre(n,f),h={"&::after":{boxShadow:`0 0 5px 5px ${Jn(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Jn(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 Jre(e){const t=bt({variant:"dashed",color:"primary",theme:e}),n=bt({variant:"shadow",color:"primary",theme:e}),r=bt({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":bt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":bt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":bt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":bt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":bt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":bt({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":bt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":bt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":bt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":bt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":bt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":bt({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:bt({variant:"contained",color:"primary",theme:e}),containedSecondary:bt({variant:"contained",color:"secondary",theme:e}),containedError:bt({variant:"contained",color:"error",theme:e}),containedSuccess:bt({variant:"contained",color:"success",theme:e}),containedInfo:bt({variant:"contained",color:"info",theme:e}),containedWarning:bt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:bt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:bt({variant:"outlined",color:"secondary",theme:e}),outlinedError:bt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:bt({variant:"outlined",color:"success",theme:e}),outlinedInfo:bt({variant:"outlined",color:"info",theme:e}),outlinedWarning:bt({variant:"outlined",color:"warning",theme:e}),textPrimary:bt({variant:"text",color:"primary",theme:e}),textSecondary:bt({variant:"text",color:"secondary",theme:e}),textError:bt({variant:"text",color:"error",theme:e}),textSuccess:bt({variant:"text",color:"success",theme:e}),textInfo:bt({variant:"text",color:"info",theme:e}),textWarning:bt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function eoe(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function toe(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function noe(e){return Oa.merge(Jre(e),eoe(),toe())}function AT({children:e}){const t=D.useMemo(()=>Kre(),["light","default"]),n=D.useMemo(()=>Yre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=D.useMemo(()=>Xre(t),[t]),o=D.useMemo(()=>({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:t.palette,customShadows:r,typography:n}),[t,n]),i=J0(o);return i.components=noe(i),T.jsx(Ek,{injectFirst:!0,children:T.jsxs(zJ,{theme:i,children:[T.jsx(wne,{enableColorScheme:!0}),e]})})}AT.propTypes={children:cY.node};const RT=D.createContext(),roe=({children:e})=>{const t=CV();return T.jsx(RT.Provider,{value:t,children:e})},ooe=()=>D.useContext(RT),ioe=()=>{const{connect:e,disconnect:t}=ooe(),n=Sn(vf);return D.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await Cn.post("https://owcbot.macsales.com/login",new URLSearchParams({username:"owc-user",password:"owc-user"}))).data.access_token;localStorage.setItem("accessToken",`Bearer ${a}`),e({accessToken:`Bearer ${a}`})}catch(o){console.error("Login failed:",o)}})(),()=>{t()}),[e]),T.jsx(AT,{children:T.jsx(_q,{router:Gre})})},soe=()=>T.jsx(roe,{children:T.jsx(ioe,{})}),aoe="https://owcbot.macsales.com",loe=new ZR(aoe,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("aibotroot");e?xv.createRoot(e).render(T.jsx(Ze.StrictMode,{children:T.jsx(xf.Provider,{value:loe,children:T.jsx(Hz,{children:T.jsx(soe,{})})})})):console.log("Root element for Chatbot not found")});