@home-cinema/app 0.0.2 → 0.0.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,749 +0,0 @@
1
- var _C=Object.defineProperty;var OC=(e,t,n)=>t in e?_C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qa=(e,t,n)=>OC(e,typeof t!="symbol"?t+"":t,n);function jC(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(o,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function h1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yf={exports:{}},Za={},xf={exports:{}},_e={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var jv;function AC(){if(jv)return _e;jv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function w(z,K,me){this.props=z,this.context=K,this.refs=S,this.updater=me||k}w.prototype.isReactComponent={},w.prototype.setState=function(z,K){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,K,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function I(){}I.prototype=w.prototype;function T(z,K,me){this.props=z,this.context=K,this.refs=S,this.updater=me||k}var E=T.prototype=new I;E.constructor=T,C(E,w.prototype),E.isPureReactComponent=!0;var N=Array.isArray,$=Object.prototype.hasOwnProperty,j={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function F(z,K,me){var he,de={},ve=null,oe=null;if(K!=null)for(he in K.ref!==void 0&&(oe=K.ref),K.key!==void 0&&(ve=""+K.key),K)$.call(K,he)&&!A.hasOwnProperty(he)&&(de[he]=K[he]);var Z=arguments.length-2;if(Z===1)de.children=me;else if(1<Z){for(var ce=Array(Z),xe=0;xe<Z;xe++)ce[xe]=arguments[xe+2];de.children=ce}if(z&&z.defaultProps)for(he in Z=z.defaultProps,Z)de[he]===void 0&&(de[he]=Z[he]);return{$$typeof:e,type:z,key:ve,ref:oe,props:de,_owner:j.current}}function J(z,K){return{$$typeof:e,type:z.type,key:K,ref:z.ref,props:z.props,_owner:z._owner}}function R(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function M(z){var K={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(me){return K[me]})}var q=/\/+/g;function G(z,K){return typeof z=="object"&&z!==null&&z.key!=null?M(""+z.key):K.toString(36)}function ne(z,K,me,he,de){var ve=typeof z;(ve==="undefined"||ve==="boolean")&&(z=null);var oe=!1;if(z===null)oe=!0;else switch(ve){case"string":case"number":oe=!0;break;case"object":switch(z.$$typeof){case e:case t:oe=!0}}if(oe)return oe=z,de=de(oe),z=he===""?"."+G(oe,0):he,N(de)?(me="",z!=null&&(me=z.replace(q,"$&/")+"/"),ne(de,K,me,"",function(xe){return xe})):de!=null&&(R(de)&&(de=J(de,me+(!de.key||oe&&oe.key===de.key?"":(""+de.key).replace(q,"$&/")+"/")+z)),K.push(de)),1;if(oe=0,he=he===""?".":he+":",N(z))for(var Z=0;Z<z.length;Z++){ve=z[Z];var ce=he+G(ve,Z);oe+=ne(ve,K,me,ce,de)}else if(ce=x(z),typeof ce=="function")for(z=ce.call(z),Z=0;!(ve=z.next()).done;)ve=ve.value,ce=he+G(ve,Z++),oe+=ne(ve,K,me,ce,de);else if(ve==="object")throw K=String(z),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return oe}function Q(z,K,me){if(z==null)return z;var he=[],de=0;return ne(z,he,"","",function(ve){return K.call(me,ve,de++)}),he}function B(z){if(z._status===-1){var K=z._result;K=K(),K.then(function(me){(z._status===0||z._status===-1)&&(z._status=1,z._result=me)},function(me){(z._status===0||z._status===-1)&&(z._status=2,z._result=me)}),z._status===-1&&(z._status=0,z._result=K)}if(z._status===1)return z._result.default;throw z._result}var V={current:null},U={transition:null},te={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:U,ReactCurrentOwner:j};function ae(){throw Error("act(...) is not supported in production builds of React.")}return _e.Children={map:Q,forEach:function(z,K,me){Q(z,function(){K.apply(this,arguments)},me)},count:function(z){var K=0;return Q(z,function(){K++}),K},toArray:function(z){return Q(z,function(K){return K})||[]},only:function(z){if(!R(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},_e.Component=w,_e.Fragment=n,_e.Profiler=a,_e.PureComponent=T,_e.StrictMode=o,_e.Suspense=f,_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,_e.act=ae,_e.cloneElement=function(z,K,me){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var he=C({},z.props),de=z.key,ve=z.ref,oe=z._owner;if(K!=null){if(K.ref!==void 0&&(ve=K.ref,oe=j.current),K.key!==void 0&&(de=""+K.key),z.type&&z.type.defaultProps)var Z=z.type.defaultProps;for(ce in K)$.call(K,ce)&&!A.hasOwnProperty(ce)&&(he[ce]=K[ce]===void 0&&Z!==void 0?Z[ce]:K[ce])}var ce=arguments.length-2;if(ce===1)he.children=me;else if(1<ce){Z=Array(ce);for(var xe=0;xe<ce;xe++)Z[xe]=arguments[xe+2];he.children=Z}return{$$typeof:e,type:z.type,key:de,ref:ve,props:he,_owner:oe}},_e.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:s,_context:z},z.Consumer=z},_e.createElement=F,_e.createFactory=function(z){var K=F.bind(null,z);return K.type=z,K},_e.createRef=function(){return{current:null}},_e.forwardRef=function(z){return{$$typeof:d,render:z}},_e.isValidElement=R,_e.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:B}},_e.memo=function(z,K){return{$$typeof:p,type:z,compare:K===void 0?null:K}},_e.startTransition=function(z){var K=U.transition;U.transition={};try{z()}finally{U.transition=K}},_e.unstable_act=ae,_e.useCallback=function(z,K){return V.current.useCallback(z,K)},_e.useContext=function(z){return V.current.useContext(z)},_e.useDebugValue=function(){},_e.useDeferredValue=function(z){return V.current.useDeferredValue(z)},_e.useEffect=function(z,K){return V.current.useEffect(z,K)},_e.useId=function(){return V.current.useId()},_e.useImperativeHandle=function(z,K,me){return V.current.useImperativeHandle(z,K,me)},_e.useInsertionEffect=function(z,K){return V.current.useInsertionEffect(z,K)},_e.useLayoutEffect=function(z,K){return V.current.useLayoutEffect(z,K)},_e.useMemo=function(z,K){return V.current.useMemo(z,K)},_e.useReducer=function(z,K,me){return V.current.useReducer(z,K,me)},_e.useRef=function(z){return V.current.useRef(z)},_e.useState=function(z){return V.current.useState(z)},_e.useSyncExternalStore=function(z,K,me){return V.current.useSyncExternalStore(z,K,me)},_e.useTransition=function(){return V.current.useTransition()},_e.version="18.3.1",_e}var Av;function em(){return Av||(Av=1,xf.exports=AC()),xf.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Lv;function LC(){if(Lv)return Za;Lv=1;var e=em(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var h,y={},x=null,k=null;p!==void 0&&(x=""+p),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(k=f.ref);for(h in f)o.call(f,h)&&!s.hasOwnProperty(h)&&(y[h]=f[h]);if(d&&d.defaultProps)for(h in f=d.defaultProps,f)y[h]===void 0&&(y[h]=f[h]);return{$$typeof:t,type:d,key:x,ref:k,props:y,_owner:a.current}}return Za.Fragment=n,Za.jsx=u,Za.jsxs=u,Za}var zv;function zC(){return zv||(zv=1,yf.exports=LC()),yf.exports}var g=zC(),b=em();const xo=h1(b),Cs=jC({__proto__:null,default:xo},[b]);var au={},bf={exports:{}},tn={},Sf={exports:{}},Cf={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Dv;function DC(){return Dv||(Dv=1,function(e){function t(U,te){var ae=U.length;U.push(te);e:for(;0<ae;){var z=ae-1>>>1,K=U[z];if(0<a(K,te))U[z]=te,U[ae]=K,ae=z;else break e}}function n(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var te=U[0],ae=U.pop();if(ae!==te){U[0]=ae;e:for(var z=0,K=U.length,me=K>>>1;z<me;){var he=2*(z+1)-1,de=U[he],ve=he+1,oe=U[ve];if(0>a(de,ae))ve<K&&0>a(oe,de)?(U[z]=oe,U[ve]=ae,z=ve):(U[z]=de,U[he]=ae,z=he);else if(ve<K&&0>a(oe,ae))U[z]=oe,U[ve]=ae,z=ve;else break e}}return te}function a(U,te){var ae=U.sortIndex-te.sortIndex;return ae!==0?ae:U.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],h=1,y=null,x=3,k=!1,C=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(U){for(var te=n(p);te!==null;){if(te.callback===null)o(p);else if(te.startTime<=U)o(p),te.sortIndex=te.expirationTime,t(f,te);else break;te=n(p)}}function N(U){if(S=!1,E(U),!C)if(n(f)!==null)C=!0,B($);else{var te=n(p);te!==null&&V(N,te.startTime-U)}}function $(U,te){C=!1,S&&(S=!1,I(F),F=-1),k=!0;var ae=x;try{for(E(te),y=n(f);y!==null&&(!(y.expirationTime>te)||U&&!M());){var z=y.callback;if(typeof z=="function"){y.callback=null,x=y.priorityLevel;var K=z(y.expirationTime<=te);te=e.unstable_now(),typeof K=="function"?y.callback=K:y===n(f)&&o(f),E(te)}else o(f);y=n(f)}if(y!==null)var me=!0;else{var he=n(p);he!==null&&V(N,he.startTime-te),me=!1}return me}finally{y=null,x=ae,k=!1}}var j=!1,A=null,F=-1,J=5,R=-1;function M(){return!(e.unstable_now()-R<J)}function q(){if(A!==null){var U=e.unstable_now();R=U;var te=!0;try{te=A(!0,U)}finally{te?G():(j=!1,A=null)}}else j=!1}var G;if(typeof T=="function")G=function(){T(q)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,Q=ne.port2;ne.port1.onmessage=q,G=function(){Q.postMessage(null)}}else G=function(){w(q,0)};function B(U){A=U,j||(j=!0,G())}function V(U,te){F=w(function(){U(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){C||k||(C=!0,B($))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(U){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var ae=x;x=te;try{return U()}finally{x=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,te){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ae=x;x=U;try{return te()}finally{x=ae}},e.unstable_scheduleCallback=function(U,te,ae){var z=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?z+ae:z):ae=z,U){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ae+K,U={id:h++,callback:te,priorityLevel:U,startTime:ae,expirationTime:K,sortIndex:-1},ae>z?(U.sortIndex=ae,t(p,U),n(f)===null&&U===n(p)&&(S?(I(F),F=-1):S=!0,V(N,ae-z))):(U.sortIndex=K,t(f,U),C||k||(C=!0,B($))),U},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(U){var te=x;return function(){var ae=x;x=te;try{return U.apply(this,arguments)}finally{x=ae}}}}(Cf)),Cf}var Bv;function BC(){return Bv||(Bv=1,Sf.exports=DC()),Sf.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Mv;function MC(){if(Mv)return tn;Mv=1;var e=em(),t=BC();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function s(r,i){u(r,i),u(r+"Capture",i)}function u(r,i){for(a[r]=i,r=0;r<i.length;r++)o.add(i[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},y={};function x(r){return f.call(y,r)?!0:f.call(h,r)?!1:p.test(r)?y[r]=!0:(h[r]=!0,!1)}function k(r,i,l,c){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function C(r,i,l,c){if(i===null||typeof i>"u"||k(r,i,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(r,i,l,c,m,v,P){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=m,this.mustUseProperty=l,this.propertyName=r,this.type=i,this.sanitizeURL=v,this.removeEmptyString=P}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){w[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];w[i]=new S(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){w[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){w[r]=new S(r,2,!1,r,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(r){w[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){w[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){w[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){w[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){w[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function T(r){return r[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(r){var i=r.replace(I,T);w[i]=new S(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(I,T);w[i]=new S(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(I,T);w[i]=new S(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){w[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),w.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){w[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function E(r,i,l,c){var m=w.hasOwnProperty(i)?w[i]:null;(m!==null?m.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(C(i,l,m,c)&&(l=null),c||m===null?x(i)&&(l===null?r.removeAttribute(i):r.setAttribute(i,""+l)):m.mustUseProperty?r[m.propertyName]=l===null?m.type===3?!1:"":l:(i=m.attributeName,c=m.attributeNamespace,l===null?r.removeAttribute(i):(m=m.type,l=m===3||m===4&&l===!0?"":""+l,c?r.setAttributeNS(c,i,l):r.setAttribute(i,l))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),j=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),U=Symbol.iterator;function te(r){return r===null||typeof r!="object"?null:(r=U&&r[U]||r["@@iterator"],typeof r=="function"?r:null)}var ae=Object.assign,z;function K(r){if(z===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);z=i&&i[1]||""}return`
34
- `+z+r}var me=!1;function he(r,i){if(!r||me)return"";me=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(Y){var c=Y}Reflect.construct(r,[],i)}else{try{i.call()}catch(Y){c=Y}r.call(i.prototype)}else{try{throw Error()}catch(Y){c=Y}r()}}catch(Y){if(Y&&c&&typeof Y.stack=="string"){for(var m=Y.stack.split(`
35
- `),v=c.stack.split(`
36
- `),P=m.length-1,_=v.length-1;1<=P&&0<=_&&m[P]!==v[_];)_--;for(;1<=P&&0<=_;P--,_--)if(m[P]!==v[_]){if(P!==1||_!==1)do if(P--,_--,0>_||m[P]!==v[_]){var L=`
37
- `+m[P].replace(" at new "," at ");return r.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",r.displayName)),L}while(1<=P&&0<=_);break}}}finally{me=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?K(r):""}function de(r){switch(r.tag){case 5:return K(r.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return r=he(r.type,!1),r;case 11:return r=he(r.type.render,!1),r;case 1:return r=he(r.type,!0),r;default:return""}}function ve(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case j:return"Portal";case J:return"Profiler";case F:return"StrictMode";case G:return"Suspense";case ne:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case M:return(r.displayName||"Context")+".Consumer";case R:return(r._context.displayName||"Context")+".Provider";case q:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Q:return i=r.displayName||null,i!==null?i:ve(r.type)||"Memo";case B:i=r._payload,r=r._init;try{return ve(r(i))}catch{}}return null}function oe(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(i);case 8:return i===F?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Z(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ce(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function xe(r){var i=ce(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),c=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var m=l.get,v=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return m.call(this)},set:function(P){c=""+P,v.call(this,P)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(P){c=""+P},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Ne(r){r._valueTracker||(r._valueTracker=xe(r))}function at(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),c="";return r&&(c=ce(r)?r.checked?"true":"false":r.value),r=c,r!==l?(i.setValue(r),!0):!1}function vt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function It(r,i){var l=i.checked;return ae({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function kn(r,i){var l=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;l=Z(i.value!=null?i.value:l),r._wrapperState={initialChecked:c,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Un(r,i){i=i.checked,i!=null&&E(r,"checked",i,!1)}function Tt(r,i){Un(r,i);var l=Z(i.value),c=i.type;if(l!=null)c==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?Wn(r,i.type,l):i.hasOwnProperty("defaultValue")&&Wn(r,i.type,Z(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Yt(r,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,l||i===r.value||(r.value=i),r.defaultValue=i}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function Wn(r,i,l){(i!=="number"||vt(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var yt=Array.isArray;function Nt(r,i,l,c){if(r=r.options,i){i={};for(var m=0;m<l.length;m++)i["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=i.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&c&&(r[l].defaultSelected=!0)}else{for(l=""+Z(l),i=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}i!==null||r[m].disabled||(i=r[m])}i!==null&&(i.selected=!0)}}function Pe(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return ae({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Rr(r,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(n(92));if(yt(l)){if(1<l.length)throw Error(n(93));l=l[0]}i=l}i==null&&(i=""),l=i}r._wrapperState={initialValue:Z(l)}}function ir(r,i){var l=Z(i.value),c=Z(i.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),i.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),c!=null&&(r.defaultValue=""+c)}function Kn(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function ar(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _t(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?ar(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var St,En=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,c,m){MSApp.execUnsafeLocalFunction(function(){return r(i,l,c,m)})}:r}(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(St=St||document.createElement("div"),St.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=St.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Gt(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var Pn={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},fe=["Webkit","ms","Moz","O"];Object.keys(Pn).forEach(function(r){fe.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Pn[i]=Pn[r]})});function be(r,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||Pn.hasOwnProperty(r)&&Pn[r]?(""+i).trim():i+"px"}function Te(r,i){r=r.style;for(var l in i)if(i.hasOwnProperty(l)){var c=l.indexOf("--")===0,m=be(l,i[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,m):r[l]=m}}var Ct=ae({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 ca(r,i){if(i){if(Ct[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Ir(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 da=null;function fa(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var pa=null,Yr=null,Gr=null;function Js(r){if(r=za(r)){if(typeof pa!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Sl(i),pa(r.stateNode,r.type,i))}}function Qs(r){Yr?Gr?Gr.push(r):Gr=[r]:Yr=r}function ma(){if(Yr){var r=Yr,i=Gr;if(Gr=Yr=null,Js(r),i)for(r=0;r<i.length;r++)Js(i[r])}}function Et(r,i){return r(i)}function ha(){}var Io=!1;function nh(r,i,l){if(Io)return r(i,l);Io=!0;try{return Et(r,i,l)}finally{Io=!1,(Yr!==null||Gr!==null)&&(ha(),ma())}}function ga(r,i){var l=r.stateNode;if(l===null)return null;var c=Sl(l);if(c===null)return null;l=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,i,typeof l));return l}var Ac=!1;if(d)try{var va={};Object.defineProperty(va,"passive",{get:function(){Ac=!0}}),window.addEventListener("test",va,va),window.removeEventListener("test",va,va)}catch{Ac=!1}function D2(r,i,l,c,m,v,P,_,L){var Y=Array.prototype.slice.call(arguments,3);try{i.apply(l,Y)}catch(ie){this.onError(ie)}}var ya=!1,Zs=null,el=!1,Lc=null,B2={onError:function(r){ya=!0,Zs=r}};function M2(r,i,l,c,m,v,P,_,L){ya=!1,Zs=null,D2.apply(B2,arguments)}function F2(r,i,l,c,m,v,P,_,L){if(M2.apply(this,arguments),ya){if(ya){var Y=Zs;ya=!1,Zs=null}else throw Error(n(198));el||(el=!0,Lc=Y)}}function To(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,i.flags&4098&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function rh(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function oh(r){if(To(r)!==r)throw Error(n(188))}function H2(r){var i=r.alternate;if(!i){if(i=To(r),i===null)throw Error(n(188));return i!==r?null:r}for(var l=r,c=i;;){var m=l.return;if(m===null)break;var v=m.alternate;if(v===null){if(c=m.return,c!==null){l=c;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===l)return oh(m),r;if(v===c)return oh(m),i;v=v.sibling}throw Error(n(188))}if(l.return!==c.return)l=m,c=v;else{for(var P=!1,_=m.child;_;){if(_===l){P=!0,l=m,c=v;break}if(_===c){P=!0,c=m,l=v;break}_=_.sibling}if(!P){for(_=v.child;_;){if(_===l){P=!0,l=v,c=m;break}if(_===c){P=!0,c=v,l=m;break}_=_.sibling}if(!P)throw Error(n(189))}}if(l.alternate!==c)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:i}function ih(r){return r=H2(r),r!==null?ah(r):null}function ah(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=ah(r);if(i!==null)return i;r=r.sibling}return null}var sh=t.unstable_scheduleCallback,lh=t.unstable_cancelCallback,V2=t.unstable_shouldYield,U2=t.unstable_requestPaint,pt=t.unstable_now,W2=t.unstable_getCurrentPriorityLevel,zc=t.unstable_ImmediatePriority,uh=t.unstable_UserBlockingPriority,tl=t.unstable_NormalPriority,K2=t.unstable_LowPriority,ch=t.unstable_IdlePriority,nl=null,sr=null;function q2(r){if(sr&&typeof sr.onCommitFiberRoot=="function")try{sr.onCommitFiberRoot(nl,r,void 0,(r.current.flags&128)===128)}catch{}}var qn=Math.clz32?Math.clz32:X2,Y2=Math.log,G2=Math.LN2;function X2(r){return r>>>=0,r===0?32:31-(Y2(r)/G2|0)|0}var rl=64,ol=4194304;function xa(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function il(r,i){var l=r.pendingLanes;if(l===0)return 0;var c=0,m=r.suspendedLanes,v=r.pingedLanes,P=l&268435455;if(P!==0){var _=P&~m;_!==0?c=xa(_):(v&=P,v!==0&&(c=xa(v)))}else P=l&~m,P!==0?c=xa(P):v!==0&&(c=xa(v));if(c===0)return 0;if(i!==0&&i!==c&&!(i&m)&&(m=c&-c,v=i&-i,m>=v||m===16&&(v&4194240)!==0))return i;if(c&4&&(c|=l&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=c;0<i;)l=31-qn(i),m=1<<l,c|=r[l],i&=~m;return c}function J2(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Q2(r,i){for(var l=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,v=r.pendingLanes;0<v;){var P=31-qn(v),_=1<<P,L=m[P];L===-1?(!(_&l)||_&c)&&(m[P]=J2(_,i)):L<=i&&(r.expiredLanes|=_),v&=~_}}function Dc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function dh(){var r=rl;return rl<<=1,!(rl&4194240)&&(rl=64),r}function Bc(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function ba(r,i,l){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-qn(i),r[i]=l}function Z2(r,i){var l=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<l;){var m=31-qn(l),v=1<<m;i[m]=0,c[m]=-1,r[m]=-1,l&=~v}}function Mc(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var c=31-qn(l),m=1<<c;m&i|r[c]&i&&(r[c]|=i),l&=~m}}var We=0;function fh(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var ph,Fc,mh,hh,gh,Hc=!1,al=[],Xr=null,Jr=null,Qr=null,Sa=new Map,Ca=new Map,Zr=[],eS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vh(r,i){switch(r){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":Qr=null;break;case"pointerover":case"pointerout":Sa.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ca.delete(i.pointerId)}}function wa(r,i,l,c,m,v){return r===null||r.nativeEvent!==v?(r={blockedOn:i,domEventName:l,eventSystemFlags:c,nativeEvent:v,targetContainers:[m]},i!==null&&(i=za(i),i!==null&&Fc(i)),r):(r.eventSystemFlags|=c,i=r.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),r)}function tS(r,i,l,c,m){switch(i){case"focusin":return Xr=wa(Xr,r,i,l,c,m),!0;case"dragenter":return Jr=wa(Jr,r,i,l,c,m),!0;case"mouseover":return Qr=wa(Qr,r,i,l,c,m),!0;case"pointerover":var v=m.pointerId;return Sa.set(v,wa(Sa.get(v)||null,r,i,l,c,m)),!0;case"gotpointercapture":return v=m.pointerId,Ca.set(v,wa(Ca.get(v)||null,r,i,l,c,m)),!0}return!1}function yh(r){var i=No(r.target);if(i!==null){var l=To(i);if(l!==null){if(i=l.tag,i===13){if(i=rh(l),i!==null){r.blockedOn=i,gh(r.priority,function(){mh(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function sl(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=Uc(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);da=c,l.target.dispatchEvent(c),da=null}else return i=za(l),i!==null&&Fc(i),r.blockedOn=l,!1;i.shift()}return!0}function xh(r,i,l){sl(r)&&l.delete(i)}function nS(){Hc=!1,Xr!==null&&sl(Xr)&&(Xr=null),Jr!==null&&sl(Jr)&&(Jr=null),Qr!==null&&sl(Qr)&&(Qr=null),Sa.forEach(xh),Ca.forEach(xh)}function ka(r,i){r.blockedOn===i&&(r.blockedOn=null,Hc||(Hc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,nS)))}function Ea(r){function i(m){return ka(m,r)}if(0<al.length){ka(al[0],r);for(var l=1;l<al.length;l++){var c=al[l];c.blockedOn===r&&(c.blockedOn=null)}}for(Xr!==null&&ka(Xr,r),Jr!==null&&ka(Jr,r),Qr!==null&&ka(Qr,r),Sa.forEach(i),Ca.forEach(i),l=0;l<Zr.length;l++)c=Zr[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<Zr.length&&(l=Zr[0],l.blockedOn===null);)yh(l),l.blockedOn===null&&Zr.shift()}var si=N.ReactCurrentBatchConfig,ll=!0;function rS(r,i,l,c){var m=We,v=si.transition;si.transition=null;try{We=1,Vc(r,i,l,c)}finally{We=m,si.transition=v}}function oS(r,i,l,c){var m=We,v=si.transition;si.transition=null;try{We=4,Vc(r,i,l,c)}finally{We=m,si.transition=v}}function Vc(r,i,l,c){if(ll){var m=Uc(r,i,l,c);if(m===null)sd(r,i,c,ul,l),vh(r,c);else if(tS(m,r,i,l,c))c.stopPropagation();else if(vh(r,c),i&4&&-1<eS.indexOf(r)){for(;m!==null;){var v=za(m);if(v!==null&&ph(v),v=Uc(r,i,l,c),v===null&&sd(r,i,c,ul,l),v===m)break;m=v}m!==null&&c.stopPropagation()}else sd(r,i,c,null,l)}}var ul=null;function Uc(r,i,l,c){if(ul=null,r=fa(c),r=No(r),r!==null)if(i=To(r),i===null)r=null;else if(l=i.tag,l===13){if(r=rh(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return ul=r,null}function bh(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(W2()){case zc:return 1;case uh:return 4;case tl:case K2:return 16;case ch:return 536870912;default:return 16}default:return 16}}var eo=null,Wc=null,cl=null;function Sh(){if(cl)return cl;var r,i=Wc,l=i.length,c,m="value"in eo?eo.value:eo.textContent,v=m.length;for(r=0;r<l&&i[r]===m[r];r++);var P=l-r;for(c=1;c<=P&&i[l-c]===m[v-c];c++);return cl=m.slice(r,1<c?1-c:void 0)}function dl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function fl(){return!0}function Ch(){return!1}function cn(r){function i(l,c,m,v,P){this._reactName=l,this._targetInst=m,this.type=c,this.nativeEvent=v,this.target=P,this.currentTarget=null;for(var _ in r)r.hasOwnProperty(_)&&(l=r[_],this[_]=l?l(v):v[_]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?fl:Ch,this.isPropagationStopped=Ch,this}return ae(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),i}var li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kc=cn(li),Pa=ae({},li,{view:0,detail:0}),iS=cn(Pa),qc,Yc,$a,pl=ae({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xc,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==$a&&($a&&r.type==="mousemove"?(qc=r.screenX-$a.screenX,Yc=r.screenY-$a.screenY):Yc=qc=0,$a=r),qc)},movementY:function(r){return"movementY"in r?r.movementY:Yc}}),wh=cn(pl),aS=ae({},pl,{dataTransfer:0}),sS=cn(aS),lS=ae({},Pa,{relatedTarget:0}),Gc=cn(lS),uS=ae({},li,{animationName:0,elapsedTime:0,pseudoElement:0}),cS=cn(uS),dS=ae({},li,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),fS=cn(dS),pS=ae({},li,{data:0}),kh=cn(pS),mS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vS(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=gS[r])?!!i[r]:!1}function Xc(){return vS}var yS=ae({},Pa,{key:function(r){if(r.key){var i=mS[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=dl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?hS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xc,charCode:function(r){return r.type==="keypress"?dl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?dl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),xS=cn(yS),bS=ae({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=cn(bS),SS=ae({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xc}),CS=cn(SS),wS=ae({},li,{propertyName:0,elapsedTime:0,pseudoElement:0}),kS=cn(wS),ES=ae({},pl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),PS=cn(ES),$S=[9,13,27,32],Jc=d&&"CompositionEvent"in window,Ra=null;d&&"documentMode"in document&&(Ra=document.documentMode);var RS=d&&"TextEvent"in window&&!Ra,Ph=d&&(!Jc||Ra&&8<Ra&&11>=Ra),$h=" ",Rh=!1;function Ih(r,i){switch(r){case"keyup":return $S.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ui=!1;function IS(r,i){switch(r){case"compositionend":return Th(i);case"keypress":return i.which!==32?null:(Rh=!0,$h);case"textInput":return r=i.data,r===$h&&Rh?null:r;default:return null}}function TS(r,i){if(ui)return r==="compositionend"||!Jc&&Ih(r,i)?(r=Sh(),cl=Wc=eo=null,ui=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ph&&i.locale!=="ko"?null:i.data;default:return null}}var NS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nh(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!NS[r.type]:i==="textarea"}function _h(r,i,l,c){Qs(c),i=yl(i,"onChange"),0<i.length&&(l=new Kc("onChange","change",null,l,c),r.push({event:l,listeners:i}))}var Ia=null,Ta=null;function _S(r){Xh(r,0)}function ml(r){var i=mi(r);if(at(i))return r}function OS(r,i){if(r==="change")return i}var Oh=!1;if(d){var Qc;if(d){var Zc="oninput"in document;if(!Zc){var jh=document.createElement("div");jh.setAttribute("oninput","return;"),Zc=typeof jh.oninput=="function"}Qc=Zc}else Qc=!1;Oh=Qc&&(!document.documentMode||9<document.documentMode)}function Ah(){Ia&&(Ia.detachEvent("onpropertychange",Lh),Ta=Ia=null)}function Lh(r){if(r.propertyName==="value"&&ml(Ta)){var i=[];_h(i,Ta,r,fa(r)),nh(_S,i)}}function jS(r,i,l){r==="focusin"?(Ah(),Ia=i,Ta=l,Ia.attachEvent("onpropertychange",Lh)):r==="focusout"&&Ah()}function AS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ml(Ta)}function LS(r,i){if(r==="click")return ml(i)}function zS(r,i){if(r==="input"||r==="change")return ml(i)}function DS(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Yn=typeof Object.is=="function"?Object.is:DS;function Na(r,i){if(Yn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),c=Object.keys(i);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var m=l[c];if(!f.call(i,m)||!Yn(r[m],i[m]))return!1}return!0}function zh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Dh(r,i){var l=zh(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=i&&c>=i)return{node:l,offset:i-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=zh(l)}}function Bh(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Bh(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Mh(){for(var r=window,i=vt();i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=vt(r.document)}return i}function ed(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function BS(r){var i=Mh(),l=r.focusedElem,c=r.selectionRange;if(i!==l&&l&&l.ownerDocument&&Bh(l.ownerDocument.documentElement,l)){if(c!==null&&ed(l)){if(i=c.start,r=c.end,r===void 0&&(r=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(r,l.value.length);else if(r=(i=l.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var m=l.textContent.length,v=Math.min(c.start,m);c=c.end===void 0?v:Math.min(c.end,m),!r.extend&&v>c&&(m=c,c=v,v=m),m=Dh(l,v);var P=Dh(l,c);m&&P&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==P.node||r.focusOffset!==P.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),r.removeAllRanges(),v>c?(r.addRange(i),r.extend(P.node,P.offset)):(i.setEnd(P.node,P.offset),r.addRange(i)))}}for(i=[],r=l;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)r=i[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var MS=d&&"documentMode"in document&&11>=document.documentMode,ci=null,td=null,_a=null,nd=!1;function Fh(r,i,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nd||ci==null||ci!==vt(c)||(c=ci,"selectionStart"in c&&ed(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),_a&&Na(_a,c)||(_a=c,c=yl(td,"onSelect"),0<c.length&&(i=new Kc("onSelect","select",null,i,l),r.push({event:i,listeners:c}),i.target=ci)))}function hl(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var di={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionend:hl("Transition","TransitionEnd")},rd={},Hh={};d&&(Hh=document.createElement("div").style,"AnimationEvent"in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),"TransitionEvent"in window||delete di.transitionend.transition);function gl(r){if(rd[r])return rd[r];if(!di[r])return r;var i=di[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in Hh)return rd[r]=i[l];return r}var Vh=gl("animationend"),Uh=gl("animationiteration"),Wh=gl("animationstart"),Kh=gl("transitionend"),qh=new Map,Yh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function to(r,i){qh.set(r,i),s(i,[r])}for(var od=0;od<Yh.length;od++){var id=Yh[od],FS=id.toLowerCase(),HS=id[0].toUpperCase()+id.slice(1);to(FS,"on"+HS)}to(Vh,"onAnimationEnd"),to(Uh,"onAnimationIteration"),to(Wh,"onAnimationStart"),to("dblclick","onDoubleClick"),to("focusin","onFocus"),to("focusout","onBlur"),to(Kh,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),VS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oa));function Gh(r,i,l){var c=r.type||"unknown-event";r.currentTarget=l,F2(c,i,void 0,r),r.currentTarget=null}function Xh(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],m=c.event;c=c.listeners;e:{var v=void 0;if(i)for(var P=c.length-1;0<=P;P--){var _=c[P],L=_.instance,Y=_.currentTarget;if(_=_.listener,L!==v&&m.isPropagationStopped())break e;Gh(m,_,Y),v=L}else for(P=0;P<c.length;P++){if(_=c[P],L=_.instance,Y=_.currentTarget,_=_.listener,L!==v&&m.isPropagationStopped())break e;Gh(m,_,Y),v=L}}}if(el)throw r=Lc,el=!1,Lc=null,r}function Je(r,i){var l=i[pd];l===void 0&&(l=i[pd]=new Set);var c=r+"__bubble";l.has(c)||(Jh(i,r,2,!1),l.add(c))}function ad(r,i,l){var c=0;i&&(c|=4),Jh(l,r,c,i)}var vl="_reactListening"+Math.random().toString(36).slice(2);function ja(r){if(!r[vl]){r[vl]=!0,o.forEach(function(l){l!=="selectionchange"&&(VS.has(l)||ad(l,!1,r),ad(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[vl]||(i[vl]=!0,ad("selectionchange",!1,i))}}function Jh(r,i,l,c){switch(bh(i)){case 1:var m=rS;break;case 4:m=oS;break;default:m=Vc}l=m.bind(null,i,l,r),m=void 0,!Ac||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(i,l,{capture:!0,passive:m}):r.addEventListener(i,l,!0):m!==void 0?r.addEventListener(i,l,{passive:m}):r.addEventListener(i,l,!1)}function sd(r,i,l,c,m){var v=c;if(!(i&1)&&!(i&2)&&c!==null)e:for(;;){if(c===null)return;var P=c.tag;if(P===3||P===4){var _=c.stateNode.containerInfo;if(_===m||_.nodeType===8&&_.parentNode===m)break;if(P===4)for(P=c.return;P!==null;){var L=P.tag;if((L===3||L===4)&&(L=P.stateNode.containerInfo,L===m||L.nodeType===8&&L.parentNode===m))return;P=P.return}for(;_!==null;){if(P=No(_),P===null)return;if(L=P.tag,L===5||L===6){c=v=P;continue e}_=_.parentNode}}c=c.return}nh(function(){var Y=v,ie=fa(l),se=[];e:{var re=qh.get(r);if(re!==void 0){var pe=Kc,ye=r;switch(r){case"keypress":if(dl(l)===0)break e;case"keydown":case"keyup":pe=xS;break;case"focusin":ye="focus",pe=Gc;break;case"focusout":ye="blur",pe=Gc;break;case"beforeblur":case"afterblur":pe=Gc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=sS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=CS;break;case Vh:case Uh:case Wh:pe=cS;break;case Kh:pe=kS;break;case"scroll":pe=iS;break;case"wheel":pe=PS;break;case"copy":case"cut":case"paste":pe=fS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Eh}var Se=(i&4)!==0,mt=!Se&&r==="scroll",H=Se?re!==null?re+"Capture":null:re;Se=[];for(var D=Y,W;D!==null;){W=D;var ue=W.stateNode;if(W.tag===5&&ue!==null&&(W=ue,H!==null&&(ue=ga(D,H),ue!=null&&Se.push(Aa(D,ue,W)))),mt)break;D=D.return}0<Se.length&&(re=new pe(re,ye,null,l,ie),se.push({event:re,listeners:Se}))}}if(!(i&7)){e:{if(re=r==="mouseover"||r==="pointerover",pe=r==="mouseout"||r==="pointerout",re&&l!==da&&(ye=l.relatedTarget||l.fromElement)&&(No(ye)||ye[Tr]))break e;if((pe||re)&&(re=ie.window===ie?ie:(re=ie.ownerDocument)?re.defaultView||re.parentWindow:window,pe?(ye=l.relatedTarget||l.toElement,pe=Y,ye=ye?No(ye):null,ye!==null&&(mt=To(ye),ye!==mt||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(pe=null,ye=Y),pe!==ye)){if(Se=wh,ue="onMouseLeave",H="onMouseEnter",D="mouse",(r==="pointerout"||r==="pointerover")&&(Se=Eh,ue="onPointerLeave",H="onPointerEnter",D="pointer"),mt=pe==null?re:mi(pe),W=ye==null?re:mi(ye),re=new Se(ue,D+"leave",pe,l,ie),re.target=mt,re.relatedTarget=W,ue=null,No(ie)===Y&&(Se=new Se(H,D+"enter",ye,l,ie),Se.target=W,Se.relatedTarget=mt,ue=Se),mt=ue,pe&&ye)t:{for(Se=pe,H=ye,D=0,W=Se;W;W=fi(W))D++;for(W=0,ue=H;ue;ue=fi(ue))W++;for(;0<D-W;)Se=fi(Se),D--;for(;0<W-D;)H=fi(H),W--;for(;D--;){if(Se===H||H!==null&&Se===H.alternate)break t;Se=fi(Se),H=fi(H)}Se=null}else Se=null;pe!==null&&Qh(se,re,pe,Se,!1),ye!==null&&mt!==null&&Qh(se,mt,ye,Se,!0)}}e:{if(re=Y?mi(Y):window,pe=re.nodeName&&re.nodeName.toLowerCase(),pe==="select"||pe==="input"&&re.type==="file")var Ce=OS;else if(Nh(re))if(Oh)Ce=zS;else{Ce=AS;var ke=jS}else(pe=re.nodeName)&&pe.toLowerCase()==="input"&&(re.type==="checkbox"||re.type==="radio")&&(Ce=LS);if(Ce&&(Ce=Ce(r,Y))){_h(se,Ce,l,ie);break e}ke&&ke(r,re,Y),r==="focusout"&&(ke=re._wrapperState)&&ke.controlled&&re.type==="number"&&Wn(re,"number",re.value)}switch(ke=Y?mi(Y):window,r){case"focusin":(Nh(ke)||ke.contentEditable==="true")&&(ci=ke,td=Y,_a=null);break;case"focusout":_a=td=ci=null;break;case"mousedown":nd=!0;break;case"contextmenu":case"mouseup":case"dragend":nd=!1,Fh(se,l,ie);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":Fh(se,l,ie)}var Ee;if(Jc)e:{switch(r){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else ui?Ih(r,l)&&($e="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&($e="onCompositionStart");$e&&(Ph&&l.locale!=="ko"&&(ui||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&ui&&(Ee=Sh()):(eo=ie,Wc="value"in eo?eo.value:eo.textContent,ui=!0)),ke=yl(Y,$e),0<ke.length&&($e=new kh($e,r,null,l,ie),se.push({event:$e,listeners:ke}),Ee?$e.data=Ee:(Ee=Th(l),Ee!==null&&($e.data=Ee)))),(Ee=RS?IS(r,l):TS(r,l))&&(Y=yl(Y,"onBeforeInput"),0<Y.length&&(ie=new kh("onBeforeInput","beforeinput",null,l,ie),se.push({event:ie,listeners:Y}),ie.data=Ee))}Xh(se,i)})}function Aa(r,i,l){return{instance:r,listener:i,currentTarget:l}}function yl(r,i){for(var l=i+"Capture",c=[];r!==null;){var m=r,v=m.stateNode;m.tag===5&&v!==null&&(m=v,v=ga(r,l),v!=null&&c.unshift(Aa(r,v,m)),v=ga(r,i),v!=null&&c.push(Aa(r,v,m))),r=r.return}return c}function fi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Qh(r,i,l,c,m){for(var v=i._reactName,P=[];l!==null&&l!==c;){var _=l,L=_.alternate,Y=_.stateNode;if(L!==null&&L===c)break;_.tag===5&&Y!==null&&(_=Y,m?(L=ga(l,v),L!=null&&P.unshift(Aa(l,L,_))):m||(L=ga(l,v),L!=null&&P.push(Aa(l,L,_)))),l=l.return}P.length!==0&&r.push({event:i,listeners:P})}var US=/\r\n?/g,WS=/\u0000|\uFFFD/g;function Zh(r){return(typeof r=="string"?r:""+r).replace(US,`
38
- `).replace(WS,"")}function xl(r,i,l){if(i=Zh(i),Zh(r)!==i&&l)throw Error(n(425))}function bl(){}var ld=null,ud=null;function cd(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var dd=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,eg=typeof Promise=="function"?Promise:void 0,qS=typeof queueMicrotask=="function"?queueMicrotask:typeof eg<"u"?function(r){return eg.resolve(null).then(r).catch(YS)}:dd;function YS(r){setTimeout(function(){throw r})}function fd(r,i){var l=i,c=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"){if(c===0){r.removeChild(m),Ea(i);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=m}while(l);Ea(i)}function no(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function tg(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return r;i--}else l==="/$"&&i++}r=r.previousSibling}return null}var pi=Math.random().toString(36).slice(2),lr="__reactFiber$"+pi,La="__reactProps$"+pi,Tr="__reactContainer$"+pi,pd="__reactEvents$"+pi,GS="__reactListeners$"+pi,XS="__reactHandles$"+pi;function No(r){var i=r[lr];if(i)return i;for(var l=r.parentNode;l;){if(i=l[Tr]||l[lr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=tg(r);r!==null;){if(l=r[lr])return l;r=tg(r)}return i}r=l,l=r.parentNode}return null}function za(r){return r=r[lr]||r[Tr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function mi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Sl(r){return r[La]||null}var md=[],hi=-1;function ro(r){return{current:r}}function Qe(r){0>hi||(r.current=md[hi],md[hi]=null,hi--)}function Xe(r,i){hi++,md[hi]=r.current,r.current=i}var oo={},zt=ro(oo),Xt=ro(!1),_o=oo;function gi(r,i){var l=r.type.contextTypes;if(!l)return oo;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var m={},v;for(v in l)m[v]=i[v];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=m),m}function Jt(r){return r=r.childContextTypes,r!=null}function Cl(){Qe(Xt),Qe(zt)}function ng(r,i,l){if(zt.current!==oo)throw Error(n(168));Xe(zt,i),Xe(Xt,l)}function rg(r,i,l){var c=r.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var m in c)if(!(m in i))throw Error(n(108,oe(r)||"Unknown",m));return ae({},l,c)}function wl(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||oo,_o=zt.current,Xe(zt,r),Xe(Xt,Xt.current),!0}function og(r,i,l){var c=r.stateNode;if(!c)throw Error(n(169));l?(r=rg(r,i,_o),c.__reactInternalMemoizedMergedChildContext=r,Qe(Xt),Qe(zt),Xe(zt,r)):Qe(Xt),Xe(Xt,l)}var Nr=null,kl=!1,hd=!1;function ig(r){Nr===null?Nr=[r]:Nr.push(r)}function JS(r){kl=!0,ig(r)}function io(){if(!hd&&Nr!==null){hd=!0;var r=0,i=We;try{var l=Nr;for(We=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}Nr=null,kl=!1}catch(m){throw Nr!==null&&(Nr=Nr.slice(r+1)),sh(zc,io),m}finally{We=i,hd=!1}}return null}var vi=[],yi=0,El=null,Pl=0,$n=[],Rn=0,Oo=null,_r=1,Or="";function jo(r,i){vi[yi++]=Pl,vi[yi++]=El,El=r,Pl=i}function ag(r,i,l){$n[Rn++]=_r,$n[Rn++]=Or,$n[Rn++]=Oo,Oo=r;var c=_r;r=Or;var m=32-qn(c)-1;c&=~(1<<m),l+=1;var v=32-qn(i)+m;if(30<v){var P=m-m%5;v=(c&(1<<P)-1).toString(32),c>>=P,m-=P,_r=1<<32-qn(i)+m|l<<m|c,Or=v+r}else _r=1<<v|l<<m|c,Or=r}function gd(r){r.return!==null&&(jo(r,1),ag(r,1,0))}function vd(r){for(;r===El;)El=vi[--yi],vi[yi]=null,Pl=vi[--yi],vi[yi]=null;for(;r===Oo;)Oo=$n[--Rn],$n[Rn]=null,Or=$n[--Rn],$n[Rn]=null,_r=$n[--Rn],$n[Rn]=null}var dn=null,fn=null,et=!1,Gn=null;function sg(r,i){var l=_n(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=r,i=r.deletions,i===null?(r.deletions=[l],r.flags|=16):i.push(l)}function lg(r,i){switch(r.tag){case 5:var l=r.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,dn=r,fn=no(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,dn=r,fn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=Oo!==null?{id:_r,overflow:Or}:null,r.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=_n(18,null,null,0),l.stateNode=i,l.return=r,r.child=l,dn=r,fn=null,!0):!1;default:return!1}}function yd(r){return(r.mode&1)!==0&&(r.flags&128)===0}function xd(r){if(et){var i=fn;if(i){var l=i;if(!lg(r,i)){if(yd(r))throw Error(n(418));i=no(l.nextSibling);var c=dn;i&&lg(r,i)?sg(c,l):(r.flags=r.flags&-4097|2,et=!1,dn=r)}}else{if(yd(r))throw Error(n(418));r.flags=r.flags&-4097|2,et=!1,dn=r}}}function ug(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;dn=r}function $l(r){if(r!==dn)return!1;if(!et)return ug(r),et=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!cd(r.type,r.memoizedProps)),i&&(i=fn)){if(yd(r))throw cg(),Error(n(418));for(;i;)sg(r,i),i=no(i.nextSibling)}if(ug(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(i===0){fn=no(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}r=r.nextSibling}fn=null}}else fn=dn?no(r.stateNode.nextSibling):null;return!0}function cg(){for(var r=fn;r;)r=no(r.nextSibling)}function xi(){fn=dn=null,et=!1}function bd(r){Gn===null?Gn=[r]:Gn.push(r)}var QS=N.ReactCurrentBatchConfig;function Da(r,i,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var c=l.stateNode}if(!c)throw Error(n(147,r));var m=c,v=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===v?i.ref:(i=function(P){var _=m.refs;P===null?delete _[v]:_[v]=P},i._stringRef=v,i)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function Rl(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function dg(r){var i=r._init;return i(r._payload)}function fg(r){function i(H,D){if(r){var W=H.deletions;W===null?(H.deletions=[D],H.flags|=16):W.push(D)}}function l(H,D){if(!r)return null;for(;D!==null;)i(H,D),D=D.sibling;return null}function c(H,D){for(H=new Map;D!==null;)D.key!==null?H.set(D.key,D):H.set(D.index,D),D=D.sibling;return H}function m(H,D){return H=mo(H,D),H.index=0,H.sibling=null,H}function v(H,D,W){return H.index=W,r?(W=H.alternate,W!==null?(W=W.index,W<D?(H.flags|=2,D):W):(H.flags|=2,D)):(H.flags|=1048576,D)}function P(H){return r&&H.alternate===null&&(H.flags|=2),H}function _(H,D,W,ue){return D===null||D.tag!==6?(D=ff(W,H.mode,ue),D.return=H,D):(D=m(D,W),D.return=H,D)}function L(H,D,W,ue){var Ce=W.type;return Ce===A?ie(H,D,W.props.children,ue,W.key):D!==null&&(D.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===B&&dg(Ce)===D.type)?(ue=m(D,W.props),ue.ref=Da(H,D,W),ue.return=H,ue):(ue=Ql(W.type,W.key,W.props,null,H.mode,ue),ue.ref=Da(H,D,W),ue.return=H,ue)}function Y(H,D,W,ue){return D===null||D.tag!==4||D.stateNode.containerInfo!==W.containerInfo||D.stateNode.implementation!==W.implementation?(D=pf(W,H.mode,ue),D.return=H,D):(D=m(D,W.children||[]),D.return=H,D)}function ie(H,D,W,ue,Ce){return D===null||D.tag!==7?(D=Ho(W,H.mode,ue,Ce),D.return=H,D):(D=m(D,W),D.return=H,D)}function se(H,D,W){if(typeof D=="string"&&D!==""||typeof D=="number")return D=ff(""+D,H.mode,W),D.return=H,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case $:return W=Ql(D.type,D.key,D.props,null,H.mode,W),W.ref=Da(H,null,D),W.return=H,W;case j:return D=pf(D,H.mode,W),D.return=H,D;case B:var ue=D._init;return se(H,ue(D._payload),W)}if(yt(D)||te(D))return D=Ho(D,H.mode,W,null),D.return=H,D;Rl(H,D)}return null}function re(H,D,W,ue){var Ce=D!==null?D.key:null;if(typeof W=="string"&&W!==""||typeof W=="number")return Ce!==null?null:_(H,D,""+W,ue);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case $:return W.key===Ce?L(H,D,W,ue):null;case j:return W.key===Ce?Y(H,D,W,ue):null;case B:return Ce=W._init,re(H,D,Ce(W._payload),ue)}if(yt(W)||te(W))return Ce!==null?null:ie(H,D,W,ue,null);Rl(H,W)}return null}function pe(H,D,W,ue,Ce){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return H=H.get(W)||null,_(D,H,""+ue,Ce);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case $:return H=H.get(ue.key===null?W:ue.key)||null,L(D,H,ue,Ce);case j:return H=H.get(ue.key===null?W:ue.key)||null,Y(D,H,ue,Ce);case B:var ke=ue._init;return pe(H,D,W,ke(ue._payload),Ce)}if(yt(ue)||te(ue))return H=H.get(W)||null,ie(D,H,ue,Ce,null);Rl(D,ue)}return null}function ye(H,D,W,ue){for(var Ce=null,ke=null,Ee=D,$e=D=0,Rt=null;Ee!==null&&$e<W.length;$e++){Ee.index>$e?(Rt=Ee,Ee=null):Rt=Ee.sibling;var ze=re(H,Ee,W[$e],ue);if(ze===null){Ee===null&&(Ee=Rt);break}r&&Ee&&ze.alternate===null&&i(H,Ee),D=v(ze,D,$e),ke===null?Ce=ze:ke.sibling=ze,ke=ze,Ee=Rt}if($e===W.length)return l(H,Ee),et&&jo(H,$e),Ce;if(Ee===null){for(;$e<W.length;$e++)Ee=se(H,W[$e],ue),Ee!==null&&(D=v(Ee,D,$e),ke===null?Ce=Ee:ke.sibling=Ee,ke=Ee);return et&&jo(H,$e),Ce}for(Ee=c(H,Ee);$e<W.length;$e++)Rt=pe(Ee,H,$e,W[$e],ue),Rt!==null&&(r&&Rt.alternate!==null&&Ee.delete(Rt.key===null?$e:Rt.key),D=v(Rt,D,$e),ke===null?Ce=Rt:ke.sibling=Rt,ke=Rt);return r&&Ee.forEach(function(ho){return i(H,ho)}),et&&jo(H,$e),Ce}function Se(H,D,W,ue){var Ce=te(W);if(typeof Ce!="function")throw Error(n(150));if(W=Ce.call(W),W==null)throw Error(n(151));for(var ke=Ce=null,Ee=D,$e=D=0,Rt=null,ze=W.next();Ee!==null&&!ze.done;$e++,ze=W.next()){Ee.index>$e?(Rt=Ee,Ee=null):Rt=Ee.sibling;var ho=re(H,Ee,ze.value,ue);if(ho===null){Ee===null&&(Ee=Rt);break}r&&Ee&&ho.alternate===null&&i(H,Ee),D=v(ho,D,$e),ke===null?Ce=ho:ke.sibling=ho,ke=ho,Ee=Rt}if(ze.done)return l(H,Ee),et&&jo(H,$e),Ce;if(Ee===null){for(;!ze.done;$e++,ze=W.next())ze=se(H,ze.value,ue),ze!==null&&(D=v(ze,D,$e),ke===null?Ce=ze:ke.sibling=ze,ke=ze);return et&&jo(H,$e),Ce}for(Ee=c(H,Ee);!ze.done;$e++,ze=W.next())ze=pe(Ee,H,$e,ze.value,ue),ze!==null&&(r&&ze.alternate!==null&&Ee.delete(ze.key===null?$e:ze.key),D=v(ze,D,$e),ke===null?Ce=ze:ke.sibling=ze,ke=ze);return r&&Ee.forEach(function(NC){return i(H,NC)}),et&&jo(H,$e),Ce}function mt(H,D,W,ue){if(typeof W=="object"&&W!==null&&W.type===A&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case $:e:{for(var Ce=W.key,ke=D;ke!==null;){if(ke.key===Ce){if(Ce=W.type,Ce===A){if(ke.tag===7){l(H,ke.sibling),D=m(ke,W.props.children),D.return=H,H=D;break e}}else if(ke.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===B&&dg(Ce)===ke.type){l(H,ke.sibling),D=m(ke,W.props),D.ref=Da(H,ke,W),D.return=H,H=D;break e}l(H,ke);break}else i(H,ke);ke=ke.sibling}W.type===A?(D=Ho(W.props.children,H.mode,ue,W.key),D.return=H,H=D):(ue=Ql(W.type,W.key,W.props,null,H.mode,ue),ue.ref=Da(H,D,W),ue.return=H,H=ue)}return P(H);case j:e:{for(ke=W.key;D!==null;){if(D.key===ke)if(D.tag===4&&D.stateNode.containerInfo===W.containerInfo&&D.stateNode.implementation===W.implementation){l(H,D.sibling),D=m(D,W.children||[]),D.return=H,H=D;break e}else{l(H,D);break}else i(H,D);D=D.sibling}D=pf(W,H.mode,ue),D.return=H,H=D}return P(H);case B:return ke=W._init,mt(H,D,ke(W._payload),ue)}if(yt(W))return ye(H,D,W,ue);if(te(W))return Se(H,D,W,ue);Rl(H,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,D!==null&&D.tag===6?(l(H,D.sibling),D=m(D,W),D.return=H,H=D):(l(H,D),D=ff(W,H.mode,ue),D.return=H,H=D),P(H)):l(H,D)}return mt}var bi=fg(!0),pg=fg(!1),Il=ro(null),Tl=null,Si=null,Sd=null;function Cd(){Sd=Si=Tl=null}function wd(r){var i=Il.current;Qe(Il),r._currentValue=i}function kd(r,i,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),r===l)break;r=r.return}}function Ci(r,i){Tl=r,Sd=Si=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&i&&(Qt=!0),r.firstContext=null)}function In(r){var i=r._currentValue;if(Sd!==r)if(r={context:r,memoizedValue:i,next:null},Si===null){if(Tl===null)throw Error(n(308));Si=r,Tl.dependencies={lanes:0,firstContext:r}}else Si=Si.next=r;return i}var Ao=null;function Ed(r){Ao===null?Ao=[r]:Ao.push(r)}function mg(r,i,l,c){var m=i.interleaved;return m===null?(l.next=l,Ed(i)):(l.next=m.next,m.next=l),i.interleaved=l,jr(r,c)}function jr(r,i){r.lanes|=i;var l=r.alternate;for(l!==null&&(l.lanes|=i),l=r,r=r.return;r!==null;)r.childLanes|=i,l=r.alternate,l!==null&&(l.childLanes|=i),l=r,r=r.return;return l.tag===3?l.stateNode:null}var ao=!1;function Pd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Ar(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function so(r,i,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,Ae&2){var m=c.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),c.pending=i,jr(r,l)}return m=c.interleaved,m===null?(i.next=i,Ed(c)):(i.next=m.next,m.next=i),c.interleaved=i,jr(r,l)}function Nl(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var c=i.lanes;c&=r.pendingLanes,l|=c,i.lanes=l,Mc(r,l)}}function gg(r,i){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var m=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var P={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};v===null?m=v=P:v=v.next=P,l=l.next}while(l!==null);v===null?m=v=i:v=v.next=i}else m=v=i;l={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:c.shared,effects:c.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}function _l(r,i,l,c){var m=r.updateQueue;ao=!1;var v=m.firstBaseUpdate,P=m.lastBaseUpdate,_=m.shared.pending;if(_!==null){m.shared.pending=null;var L=_,Y=L.next;L.next=null,P===null?v=Y:P.next=Y,P=L;var ie=r.alternate;ie!==null&&(ie=ie.updateQueue,_=ie.lastBaseUpdate,_!==P&&(_===null?ie.firstBaseUpdate=Y:_.next=Y,ie.lastBaseUpdate=L))}if(v!==null){var se=m.baseState;P=0,ie=Y=L=null,_=v;do{var re=_.lane,pe=_.eventTime;if((c&re)===re){ie!==null&&(ie=ie.next={eventTime:pe,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var ye=r,Se=_;switch(re=i,pe=l,Se.tag){case 1:if(ye=Se.payload,typeof ye=="function"){se=ye.call(pe,se,re);break e}se=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Se.payload,re=typeof ye=="function"?ye.call(pe,se,re):ye,re==null)break e;se=ae({},se,re);break e;case 2:ao=!0}}_.callback!==null&&_.lane!==0&&(r.flags|=64,re=m.effects,re===null?m.effects=[_]:re.push(_))}else pe={eventTime:pe,lane:re,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ie===null?(Y=ie=pe,L=se):ie=ie.next=pe,P|=re;if(_=_.next,_===null){if(_=m.shared.pending,_===null)break;re=_,_=re.next,re.next=null,m.lastBaseUpdate=re,m.shared.pending=null}}while(!0);if(ie===null&&(L=se),m.baseState=L,m.firstBaseUpdate=Y,m.lastBaseUpdate=ie,i=m.shared.interleaved,i!==null){m=i;do P|=m.lane,m=m.next;while(m!==i)}else v===null&&(m.shared.lanes=0);Do|=P,r.lanes=P,r.memoizedState=se}}function vg(r,i,l){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var c=r[i],m=c.callback;if(m!==null){if(c.callback=null,c=l,typeof m!="function")throw Error(n(191,m));m.call(c)}}}var Ba={},ur=ro(Ba),Ma=ro(Ba),Fa=ro(Ba);function Lo(r){if(r===Ba)throw Error(n(174));return r}function $d(r,i){switch(Xe(Fa,i),Xe(Ma,r),Xe(ur,Ba),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:_t(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=_t(i,r)}Qe(ur),Xe(ur,i)}function wi(){Qe(ur),Qe(Ma),Qe(Fa)}function yg(r){Lo(Fa.current);var i=Lo(ur.current),l=_t(i,r.type);i!==l&&(Xe(Ma,r),Xe(ur,l))}function Rd(r){Ma.current===r&&(Qe(ur),Qe(Ma))}var nt=ro(0);function Ol(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Id=[];function Td(){for(var r=0;r<Id.length;r++)Id[r]._workInProgressVersionPrimary=null;Id.length=0}var jl=N.ReactCurrentDispatcher,Nd=N.ReactCurrentBatchConfig,zo=0,rt=null,wt=null,Pt=null,Al=!1,Ha=!1,Va=0,ZS=0;function Dt(){throw Error(n(321))}function _d(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!Yn(r[l],i[l]))return!1;return!0}function Od(r,i,l,c,m,v){if(zo=v,rt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,jl.current=r===null||r.memoizedState===null?rC:oC,r=l(c,m),Ha){v=0;do{if(Ha=!1,Va=0,25<=v)throw Error(n(301));v+=1,Pt=wt=null,i.updateQueue=null,jl.current=iC,r=l(c,m)}while(Ha)}if(jl.current=Dl,i=wt!==null&&wt.next!==null,zo=0,Pt=wt=rt=null,Al=!1,i)throw Error(n(300));return r}function jd(){var r=Va!==0;return Va=0,r}function cr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?rt.memoizedState=Pt=r:Pt=Pt.next=r,Pt}function Tn(){if(wt===null){var r=rt.alternate;r=r!==null?r.memoizedState:null}else r=wt.next;var i=Pt===null?rt.memoizedState:Pt.next;if(i!==null)Pt=i,wt=r;else{if(r===null)throw Error(n(310));wt=r,r={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Pt===null?rt.memoizedState=Pt=r:Pt=Pt.next=r}return Pt}function Ua(r,i){return typeof i=="function"?i(r):i}function Ad(r){var i=Tn(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var c=wt,m=c.baseQueue,v=l.pending;if(v!==null){if(m!==null){var P=m.next;m.next=v.next,v.next=P}c.baseQueue=m=v,l.pending=null}if(m!==null){v=m.next,c=c.baseState;var _=P=null,L=null,Y=v;do{var ie=Y.lane;if((zo&ie)===ie)L!==null&&(L=L.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),c=Y.hasEagerState?Y.eagerState:r(c,Y.action);else{var se={lane:ie,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};L===null?(_=L=se,P=c):L=L.next=se,rt.lanes|=ie,Do|=ie}Y=Y.next}while(Y!==null&&Y!==v);L===null?P=c:L.next=_,Yn(c,i.memoizedState)||(Qt=!0),i.memoizedState=c,i.baseState=P,i.baseQueue=L,l.lastRenderedState=c}if(r=l.interleaved,r!==null){m=r;do v=m.lane,rt.lanes|=v,Do|=v,m=m.next;while(m!==r)}else m===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function Ld(r){var i=Tn(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var c=l.dispatch,m=l.pending,v=i.memoizedState;if(m!==null){l.pending=null;var P=m=m.next;do v=r(v,P.action),P=P.next;while(P!==m);Yn(v,i.memoizedState)||(Qt=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,c]}function xg(){}function bg(r,i){var l=rt,c=Tn(),m=i(),v=!Yn(c.memoizedState,m);if(v&&(c.memoizedState=m,Qt=!0),c=c.queue,zd(wg.bind(null,l,c,r),[r]),c.getSnapshot!==i||v||Pt!==null&&Pt.memoizedState.tag&1){if(l.flags|=2048,Wa(9,Cg.bind(null,l,c,m,i),void 0,null),$t===null)throw Error(n(349));zo&30||Sg(l,i,m)}return m}function Sg(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=rt.updateQueue,i===null?(i={lastEffect:null,stores:null},rt.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function Cg(r,i,l,c){i.value=l,i.getSnapshot=c,kg(i)&&Eg(r)}function wg(r,i,l){return l(function(){kg(i)&&Eg(r)})}function kg(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!Yn(r,l)}catch{return!0}}function Eg(r){var i=jr(r,1);i!==null&&Zn(i,r,1,-1)}function Pg(r){var i=cr();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:r},i.queue=r,r=r.dispatch=nC.bind(null,rt,r),[i.memoizedState,r]}function Wa(r,i,l,c){return r={tag:r,create:i,destroy:l,deps:c,next:null},i=rt.updateQueue,i===null?(i={lastEffect:null,stores:null},rt.updateQueue=i,i.lastEffect=r.next=r):(l=i.lastEffect,l===null?i.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,i.lastEffect=r)),r}function $g(){return Tn().memoizedState}function Ll(r,i,l,c){var m=cr();rt.flags|=r,m.memoizedState=Wa(1|i,l,void 0,c===void 0?null:c)}function zl(r,i,l,c){var m=Tn();c=c===void 0?null:c;var v=void 0;if(wt!==null){var P=wt.memoizedState;if(v=P.destroy,c!==null&&_d(c,P.deps)){m.memoizedState=Wa(i,l,v,c);return}}rt.flags|=r,m.memoizedState=Wa(1|i,l,v,c)}function Rg(r,i){return Ll(8390656,8,r,i)}function zd(r,i){return zl(2048,8,r,i)}function Ig(r,i){return zl(4,2,r,i)}function Tg(r,i){return zl(4,4,r,i)}function Ng(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function _g(r,i,l){return l=l!=null?l.concat([r]):null,zl(4,4,Ng.bind(null,i,r),l)}function Dd(){}function Og(r,i){var l=Tn();i=i===void 0?null:i;var c=l.memoizedState;return c!==null&&i!==null&&_d(i,c[1])?c[0]:(l.memoizedState=[r,i],r)}function jg(r,i){var l=Tn();i=i===void 0?null:i;var c=l.memoizedState;return c!==null&&i!==null&&_d(i,c[1])?c[0]:(r=r(),l.memoizedState=[r,i],r)}function Ag(r,i,l){return zo&21?(Yn(l,i)||(l=dh(),rt.lanes|=l,Do|=l,r.baseState=!0),i):(r.baseState&&(r.baseState=!1,Qt=!0),r.memoizedState=l)}function eC(r,i){var l=We;We=l!==0&&4>l?l:4,r(!0);var c=Nd.transition;Nd.transition={};try{r(!1),i()}finally{We=l,Nd.transition=c}}function Lg(){return Tn().memoizedState}function tC(r,i,l){var c=fo(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},zg(r))Dg(i,l);else if(l=mg(r,i,l,c),l!==null){var m=Kt();Zn(l,r,c,m),Bg(l,i,c)}}function nC(r,i,l){var c=fo(r),m={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(zg(r))Dg(i,m);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var P=i.lastRenderedState,_=v(P,l);if(m.hasEagerState=!0,m.eagerState=_,Yn(_,P)){var L=i.interleaved;L===null?(m.next=m,Ed(i)):(m.next=L.next,L.next=m),i.interleaved=m;return}}catch{}finally{}l=mg(r,i,m,c),l!==null&&(m=Kt(),Zn(l,r,c,m),Bg(l,i,c))}}function zg(r){var i=r.alternate;return r===rt||i!==null&&i===rt}function Dg(r,i){Ha=Al=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function Bg(r,i,l){if(l&4194240){var c=i.lanes;c&=r.pendingLanes,l|=c,i.lanes=l,Mc(r,l)}}var Dl={readContext:In,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},rC={readContext:In,useCallback:function(r,i){return cr().memoizedState=[r,i===void 0?null:i],r},useContext:In,useEffect:Rg,useImperativeHandle:function(r,i,l){return l=l!=null?l.concat([r]):null,Ll(4194308,4,Ng.bind(null,i,r),l)},useLayoutEffect:function(r,i){return Ll(4194308,4,r,i)},useInsertionEffect:function(r,i){return Ll(4,2,r,i)},useMemo:function(r,i){var l=cr();return i=i===void 0?null:i,r=r(),l.memoizedState=[r,i],r},useReducer:function(r,i,l){var c=cr();return i=l!==void 0?l(i):i,c.memoizedState=c.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},c.queue=r,r=r.dispatch=tC.bind(null,rt,r),[c.memoizedState,r]},useRef:function(r){var i=cr();return r={current:r},i.memoizedState=r},useState:Pg,useDebugValue:Dd,useDeferredValue:function(r){return cr().memoizedState=r},useTransition:function(){var r=Pg(!1),i=r[0];return r=eC.bind(null,r[1]),cr().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,l){var c=rt,m=cr();if(et){if(l===void 0)throw Error(n(407));l=l()}else{if(l=i(),$t===null)throw Error(n(349));zo&30||Sg(c,i,l)}m.memoizedState=l;var v={value:l,getSnapshot:i};return m.queue=v,Rg(wg.bind(null,c,v,r),[r]),c.flags|=2048,Wa(9,Cg.bind(null,c,v,l,i),void 0,null),l},useId:function(){var r=cr(),i=$t.identifierPrefix;if(et){var l=Or,c=_r;l=(c&~(1<<32-qn(c)-1)).toString(32)+l,i=":"+i+"R"+l,l=Va++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=ZS++,i=":"+i+"r"+l.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},oC={readContext:In,useCallback:Og,useContext:In,useEffect:zd,useImperativeHandle:_g,useInsertionEffect:Ig,useLayoutEffect:Tg,useMemo:jg,useReducer:Ad,useRef:$g,useState:function(){return Ad(Ua)},useDebugValue:Dd,useDeferredValue:function(r){var i=Tn();return Ag(i,wt.memoizedState,r)},useTransition:function(){var r=Ad(Ua)[0],i=Tn().memoizedState;return[r,i]},useMutableSource:xg,useSyncExternalStore:bg,useId:Lg,unstable_isNewReconciler:!1},iC={readContext:In,useCallback:Og,useContext:In,useEffect:zd,useImperativeHandle:_g,useInsertionEffect:Ig,useLayoutEffect:Tg,useMemo:jg,useReducer:Ld,useRef:$g,useState:function(){return Ld(Ua)},useDebugValue:Dd,useDeferredValue:function(r){var i=Tn();return wt===null?i.memoizedState=r:Ag(i,wt.memoizedState,r)},useTransition:function(){var r=Ld(Ua)[0],i=Tn().memoizedState;return[r,i]},useMutableSource:xg,useSyncExternalStore:bg,useId:Lg,unstable_isNewReconciler:!1};function Xn(r,i){if(r&&r.defaultProps){i=ae({},i),r=r.defaultProps;for(var l in r)i[l]===void 0&&(i[l]=r[l]);return i}return i}function Bd(r,i,l,c){i=r.memoizedState,l=l(c,i),l=l==null?i:ae({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Bl={isMounted:function(r){return(r=r._reactInternals)?To(r)===r:!1},enqueueSetState:function(r,i,l){r=r._reactInternals;var c=Kt(),m=fo(r),v=Ar(c,m);v.payload=i,l!=null&&(v.callback=l),i=so(r,v,m),i!==null&&(Zn(i,r,m,c),Nl(i,r,m))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var c=Kt(),m=fo(r),v=Ar(c,m);v.tag=1,v.payload=i,l!=null&&(v.callback=l),i=so(r,v,m),i!==null&&(Zn(i,r,m,c),Nl(i,r,m))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=Kt(),c=fo(r),m=Ar(l,c);m.tag=2,i!=null&&(m.callback=i),i=so(r,m,c),i!==null&&(Zn(i,r,c,l),Nl(i,r,c))}};function Mg(r,i,l,c,m,v,P){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,v,P):i.prototype&&i.prototype.isPureReactComponent?!Na(l,c)||!Na(m,v):!0}function Fg(r,i,l){var c=!1,m=oo,v=i.contextType;return typeof v=="object"&&v!==null?v=In(v):(m=Jt(i)?_o:zt.current,c=i.contextTypes,v=(c=c!=null)?gi(r,m):oo),i=new i(l,v),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Bl,r.stateNode=i,i._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=m,r.__reactInternalMemoizedMaskedChildContext=v),i}function Hg(r,i,l,c){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,c),i.state!==r&&Bl.enqueueReplaceState(i,i.state,null)}function Md(r,i,l,c){var m=r.stateNode;m.props=l,m.state=r.memoizedState,m.refs={},Pd(r);var v=i.contextType;typeof v=="object"&&v!==null?m.context=In(v):(v=Jt(i)?_o:zt.current,m.context=gi(r,v)),m.state=r.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(Bd(r,i,v,l),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(i=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),i!==m.state&&Bl.enqueueReplaceState(m,m.state,null),_l(r,l,m,c),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function ki(r,i){try{var l="",c=i;do l+=de(c),c=c.return;while(c);var m=l}catch(v){m=`
39
- Error generating stack: `+v.message+`
40
- `+v.stack}return{value:r,source:i,stack:m,digest:null}}function Fd(r,i,l){return{value:r,source:null,stack:l??null,digest:i??null}}function Hd(r,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var aC=typeof WeakMap=="function"?WeakMap:Map;function Vg(r,i,l){l=Ar(-1,l),l.tag=3,l.payload={element:null};var c=i.value;return l.callback=function(){Kl||(Kl=!0,rf=c),Hd(r,i)},l}function Ug(r,i,l){l=Ar(-1,l),l.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var m=i.value;l.payload=function(){return c(m)},l.callback=function(){Hd(r,i)}}var v=r.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(l.callback=function(){Hd(r,i),typeof c!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var P=i.stack;this.componentDidCatch(i.value,{componentStack:P!==null?P:""})}),l}function Wg(r,i,l){var c=r.pingCache;if(c===null){c=r.pingCache=new aC;var m=new Set;c.set(i,m)}else m=c.get(i),m===void 0&&(m=new Set,c.set(i,m));m.has(l)||(m.add(l),r=bC.bind(null,r,i,l),i.then(r,r))}function Kg(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function qg(r,i,l,c,m){return r.mode&1?(r.flags|=65536,r.lanes=m,r):(r===i?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=Ar(-1,1),i.tag=2,so(l,i,1))),l.lanes|=1),r)}var sC=N.ReactCurrentOwner,Qt=!1;function Wt(r,i,l,c){i.child=r===null?pg(i,null,l,c):bi(i,r.child,l,c)}function Yg(r,i,l,c,m){l=l.render;var v=i.ref;return Ci(i,m),c=Od(r,i,l,c,v,m),l=jd(),r!==null&&!Qt?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,Lr(r,i,m)):(et&&l&&gd(i),i.flags|=1,Wt(r,i,c,m),i.child)}function Gg(r,i,l,c,m){if(r===null){var v=l.type;return typeof v=="function"&&!df(v)&&v.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=v,Xg(r,i,v,c,m)):(r=Ql(l.type,null,c,i,i.mode,m),r.ref=i.ref,r.return=i,i.child=r)}if(v=r.child,!(r.lanes&m)){var P=v.memoizedProps;if(l=l.compare,l=l!==null?l:Na,l(P,c)&&r.ref===i.ref)return Lr(r,i,m)}return i.flags|=1,r=mo(v,c),r.ref=i.ref,r.return=i,i.child=r}function Xg(r,i,l,c,m){if(r!==null){var v=r.memoizedProps;if(Na(v,c)&&r.ref===i.ref)if(Qt=!1,i.pendingProps=c=v,(r.lanes&m)!==0)r.flags&131072&&(Qt=!0);else return i.lanes=r.lanes,Lr(r,i,m)}return Vd(r,i,l,c,m)}function Jg(r,i,l){var c=i.pendingProps,m=c.children,v=r!==null?r.memoizedState:null;if(c.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Pi,pn),pn|=l;else{if(!(l&1073741824))return r=v!==null?v.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,Xe(Pi,pn),pn|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=v!==null?v.baseLanes:l,Xe(Pi,pn),pn|=c}else v!==null?(c=v.baseLanes|l,i.memoizedState=null):c=l,Xe(Pi,pn),pn|=c;return Wt(r,i,m,l),i.child}function Qg(r,i){var l=i.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function Vd(r,i,l,c,m){var v=Jt(l)?_o:zt.current;return v=gi(i,v),Ci(i,m),l=Od(r,i,l,c,v,m),c=jd(),r!==null&&!Qt?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,Lr(r,i,m)):(et&&c&&gd(i),i.flags|=1,Wt(r,i,l,m),i.child)}function Zg(r,i,l,c,m){if(Jt(l)){var v=!0;wl(i)}else v=!1;if(Ci(i,m),i.stateNode===null)Fl(r,i),Fg(i,l,c),Md(i,l,c,m),c=!0;else if(r===null){var P=i.stateNode,_=i.memoizedProps;P.props=_;var L=P.context,Y=l.contextType;typeof Y=="object"&&Y!==null?Y=In(Y):(Y=Jt(l)?_o:zt.current,Y=gi(i,Y));var ie=l.getDerivedStateFromProps,se=typeof ie=="function"||typeof P.getSnapshotBeforeUpdate=="function";se||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(_!==c||L!==Y)&&Hg(i,P,c,Y),ao=!1;var re=i.memoizedState;P.state=re,_l(i,c,P,m),L=i.memoizedState,_!==c||re!==L||Xt.current||ao?(typeof ie=="function"&&(Bd(i,l,ie,c),L=i.memoizedState),(_=ao||Mg(i,l,_,c,re,L,Y))?(se||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(i.flags|=4194308)):(typeof P.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=L),P.props=c,P.state=L,P.context=Y,c=_):(typeof P.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{P=i.stateNode,hg(r,i),_=i.memoizedProps,Y=i.type===i.elementType?_:Xn(i.type,_),P.props=Y,se=i.pendingProps,re=P.context,L=l.contextType,typeof L=="object"&&L!==null?L=In(L):(L=Jt(l)?_o:zt.current,L=gi(i,L));var pe=l.getDerivedStateFromProps;(ie=typeof pe=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(_!==se||re!==L)&&Hg(i,P,c,L),ao=!1,re=i.memoizedState,P.state=re,_l(i,c,P,m);var ye=i.memoizedState;_!==se||re!==ye||Xt.current||ao?(typeof pe=="function"&&(Bd(i,l,pe,c),ye=i.memoizedState),(Y=ao||Mg(i,l,Y,c,re,ye,L)||!1)?(ie||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(c,ye,L),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(c,ye,L)),typeof P.componentDidUpdate=="function"&&(i.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof P.componentDidUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(i.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=ye),P.props=c,P.state=ye,P.context=L,c=Y):(typeof P.componentDidUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(i.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(i.flags|=1024),c=!1)}return Ud(r,i,l,c,v,m)}function Ud(r,i,l,c,m,v){Qg(r,i);var P=(i.flags&128)!==0;if(!c&&!P)return m&&og(i,l,!1),Lr(r,i,v);c=i.stateNode,sC.current=i;var _=P&&typeof l.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,r!==null&&P?(i.child=bi(i,r.child,null,v),i.child=bi(i,null,_,v)):Wt(r,i,_,v),i.memoizedState=c.state,m&&og(i,l,!0),i.child}function ev(r){var i=r.stateNode;i.pendingContext?ng(r,i.pendingContext,i.pendingContext!==i.context):i.context&&ng(r,i.context,!1),$d(r,i.containerInfo)}function tv(r,i,l,c,m){return xi(),bd(m),i.flags|=256,Wt(r,i,l,c),i.child}var Wd={dehydrated:null,treeContext:null,retryLane:0};function Kd(r){return{baseLanes:r,cachePool:null,transitions:null}}function nv(r,i,l){var c=i.pendingProps,m=nt.current,v=!1,P=(i.flags&128)!==0,_;if((_=P)||(_=r!==null&&r.memoizedState===null?!1:(m&2)!==0),_?(v=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(m|=1),Xe(nt,m&1),r===null)return xd(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(i.mode&1?r.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(P=c.children,r=c.fallback,v?(c=i.mode,v=i.child,P={mode:"hidden",children:P},!(c&1)&&v!==null?(v.childLanes=0,v.pendingProps=P):v=Zl(P,c,0,null),r=Ho(r,c,l,null),v.return=i,r.return=i,v.sibling=r,i.child=v,i.child.memoizedState=Kd(l),i.memoizedState=Wd,r):qd(i,P));if(m=r.memoizedState,m!==null&&(_=m.dehydrated,_!==null))return lC(r,i,P,c,_,m,l);if(v){v=c.fallback,P=i.mode,m=r.child,_=m.sibling;var L={mode:"hidden",children:c.children};return!(P&1)&&i.child!==m?(c=i.child,c.childLanes=0,c.pendingProps=L,i.deletions=null):(c=mo(m,L),c.subtreeFlags=m.subtreeFlags&14680064),_!==null?v=mo(_,v):(v=Ho(v,P,l,null),v.flags|=2),v.return=i,c.return=i,c.sibling=v,i.child=c,c=v,v=i.child,P=r.child.memoizedState,P=P===null?Kd(l):{baseLanes:P.baseLanes|l,cachePool:null,transitions:P.transitions},v.memoizedState=P,v.childLanes=r.childLanes&~l,i.memoizedState=Wd,c}return v=r.child,r=v.sibling,c=mo(v,{mode:"visible",children:c.children}),!(i.mode&1)&&(c.lanes=l),c.return=i,c.sibling=null,r!==null&&(l=i.deletions,l===null?(i.deletions=[r],i.flags|=16):l.push(r)),i.child=c,i.memoizedState=null,c}function qd(r,i){return i=Zl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Ml(r,i,l,c){return c!==null&&bd(c),bi(i,r.child,null,l),r=qd(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function lC(r,i,l,c,m,v,P){if(l)return i.flags&256?(i.flags&=-257,c=Fd(Error(n(422))),Ml(r,i,P,c)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(v=c.fallback,m=i.mode,c=Zl({mode:"visible",children:c.children},m,0,null),v=Ho(v,m,P,null),v.flags|=2,c.return=i,v.return=i,c.sibling=v,i.child=c,i.mode&1&&bi(i,r.child,null,P),i.child.memoizedState=Kd(P),i.memoizedState=Wd,v);if(!(i.mode&1))return Ml(r,i,P,null);if(m.data==="$!"){if(c=m.nextSibling&&m.nextSibling.dataset,c)var _=c.dgst;return c=_,v=Error(n(419)),c=Fd(v,c,void 0),Ml(r,i,P,c)}if(_=(P&r.childLanes)!==0,Qt||_){if(c=$t,c!==null){switch(P&-P){case 4:m=2;break;case 16:m=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:m=32;break;case 536870912:m=268435456;break;default:m=0}m=m&(c.suspendedLanes|P)?0:m,m!==0&&m!==v.retryLane&&(v.retryLane=m,jr(r,m),Zn(c,r,m,-1))}return cf(),c=Fd(Error(n(421))),Ml(r,i,P,c)}return m.data==="$?"?(i.flags|=128,i.child=r.child,i=SC.bind(null,r),m._reactRetry=i,null):(r=v.treeContext,fn=no(m.nextSibling),dn=i,et=!0,Gn=null,r!==null&&($n[Rn++]=_r,$n[Rn++]=Or,$n[Rn++]=Oo,_r=r.id,Or=r.overflow,Oo=i),i=qd(i,c.children),i.flags|=4096,i)}function rv(r,i,l){r.lanes|=i;var c=r.alternate;c!==null&&(c.lanes|=i),kd(r.return,i,l)}function Yd(r,i,l,c,m){var v=r.memoizedState;v===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:m}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=c,v.tail=l,v.tailMode=m)}function ov(r,i,l){var c=i.pendingProps,m=c.revealOrder,v=c.tail;if(Wt(r,i,c.children,l),c=nt.current,c&2)c=c&1|2,i.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&rv(r,l,i);else if(r.tag===19)rv(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Xe(nt,c),!(i.mode&1))i.memoizedState=null;else switch(m){case"forwards":for(l=i.child,m=null;l!==null;)r=l.alternate,r!==null&&Ol(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=i.child,i.child=null):(m=l.sibling,l.sibling=null),Yd(i,!1,m,l,v);break;case"backwards":for(l=null,m=i.child,i.child=null;m!==null;){if(r=m.alternate,r!==null&&Ol(r)===null){i.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}Yd(i,!0,l,null,v);break;case"together":Yd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Fl(r,i){!(i.mode&1)&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function Lr(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),Do|=i.lanes,!(l&i.childLanes))return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,l=mo(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=mo(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function uC(r,i,l){switch(i.tag){case 3:ev(i),xi();break;case 5:yg(i);break;case 1:Jt(i.type)&&wl(i);break;case 4:$d(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,m=i.memoizedProps.value;Xe(Il,c._currentValue),c._currentValue=m;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(Xe(nt,nt.current&1),i.flags|=128,null):l&i.child.childLanes?nv(r,i,l):(Xe(nt,nt.current&1),r=Lr(r,i,l),r!==null?r.sibling:null);Xe(nt,nt.current&1);break;case 19:if(c=(l&i.childLanes)!==0,r.flags&128){if(c)return ov(r,i,l);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Xe(nt,nt.current),c)break;return null;case 22:case 23:return i.lanes=0,Jg(r,i,l)}return Lr(r,i,l)}var iv,Gd,av,sv;iv=function(r,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Gd=function(){},av=function(r,i,l,c){var m=r.memoizedProps;if(m!==c){r=i.stateNode,Lo(ur.current);var v=null;switch(l){case"input":m=It(r,m),c=It(r,c),v=[];break;case"select":m=ae({},m,{value:void 0}),c=ae({},c,{value:void 0}),v=[];break;case"textarea":m=Pe(r,m),c=Pe(r,c),v=[];break;default:typeof m.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=bl)}ca(l,c);var P;l=null;for(Y in m)if(!c.hasOwnProperty(Y)&&m.hasOwnProperty(Y)&&m[Y]!=null)if(Y==="style"){var _=m[Y];for(P in _)_.hasOwnProperty(P)&&(l||(l={}),l[P]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(a.hasOwnProperty(Y)?v||(v=[]):(v=v||[]).push(Y,null));for(Y in c){var L=c[Y];if(_=m!=null?m[Y]:void 0,c.hasOwnProperty(Y)&&L!==_&&(L!=null||_!=null))if(Y==="style")if(_){for(P in _)!_.hasOwnProperty(P)||L&&L.hasOwnProperty(P)||(l||(l={}),l[P]="");for(P in L)L.hasOwnProperty(P)&&_[P]!==L[P]&&(l||(l={}),l[P]=L[P])}else l||(v||(v=[]),v.push(Y,l)),l=L;else Y==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,_=_?_.__html:void 0,L!=null&&_!==L&&(v=v||[]).push(Y,L)):Y==="children"?typeof L!="string"&&typeof L!="number"||(v=v||[]).push(Y,""+L):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(a.hasOwnProperty(Y)?(L!=null&&Y==="onScroll"&&Je("scroll",r),v||_===L||(v=[])):(v=v||[]).push(Y,L))}l&&(v=v||[]).push("style",l);var Y=v;(i.updateQueue=Y)&&(i.flags|=4)}},sv=function(r,i,l,c){l!==c&&(i.flags|=4)};function Ka(r,i){if(!et)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function Bt(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(i)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags&14680064,c|=m.flags&14680064,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=l,i}function cC(r,i,l){var c=i.pendingProps;switch(vd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(i),null;case 1:return Jt(i.type)&&Cl(),Bt(i),null;case 3:return c=i.stateNode,wi(),Qe(Xt),Qe(zt),Td(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&($l(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,Gn!==null&&(sf(Gn),Gn=null))),Gd(r,i),Bt(i),null;case 5:Rd(i);var m=Lo(Fa.current);if(l=i.type,r!==null&&i.stateNode!=null)av(r,i,l,c,m),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(n(166));return Bt(i),null}if(r=Lo(ur.current),$l(i)){c=i.stateNode,l=i.type;var v=i.memoizedProps;switch(c[lr]=i,c[La]=v,r=(i.mode&1)!==0,l){case"dialog":Je("cancel",c),Je("close",c);break;case"iframe":case"object":case"embed":Je("load",c);break;case"video":case"audio":for(m=0;m<Oa.length;m++)Je(Oa[m],c);break;case"source":Je("error",c);break;case"img":case"image":case"link":Je("error",c),Je("load",c);break;case"details":Je("toggle",c);break;case"input":kn(c,v),Je("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!v.multiple},Je("invalid",c);break;case"textarea":Rr(c,v),Je("invalid",c)}ca(l,v),m=null;for(var P in v)if(v.hasOwnProperty(P)){var _=v[P];P==="children"?typeof _=="string"?c.textContent!==_&&(v.suppressHydrationWarning!==!0&&xl(c.textContent,_,r),m=["children",_]):typeof _=="number"&&c.textContent!==""+_&&(v.suppressHydrationWarning!==!0&&xl(c.textContent,_,r),m=["children",""+_]):a.hasOwnProperty(P)&&_!=null&&P==="onScroll"&&Je("scroll",c)}switch(l){case"input":Ne(c),Yt(c,v,!0);break;case"textarea":Ne(c),Kn(c);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(c.onclick=bl)}c=m,i.updateQueue=c,c!==null&&(i.flags|=4)}else{P=m.nodeType===9?m:m.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ar(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=P.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=P.createElement(l,{is:c.is}):(r=P.createElement(l),l==="select"&&(P=r,c.multiple?P.multiple=!0:c.size&&(P.size=c.size))):r=P.createElementNS(r,l),r[lr]=i,r[La]=c,iv(r,i,!1,!1),i.stateNode=r;e:{switch(P=Ir(l,c),l){case"dialog":Je("cancel",r),Je("close",r),m=c;break;case"iframe":case"object":case"embed":Je("load",r),m=c;break;case"video":case"audio":for(m=0;m<Oa.length;m++)Je(Oa[m],r);m=c;break;case"source":Je("error",r),m=c;break;case"img":case"image":case"link":Je("error",r),Je("load",r),m=c;break;case"details":Je("toggle",r),m=c;break;case"input":kn(r,c),m=It(r,c),Je("invalid",r);break;case"option":m=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},m=ae({},c,{value:void 0}),Je("invalid",r);break;case"textarea":Rr(r,c),m=Pe(r,c),Je("invalid",r);break;default:m=c}ca(l,m),_=m;for(v in _)if(_.hasOwnProperty(v)){var L=_[v];v==="style"?Te(r,L):v==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,L!=null&&En(r,L)):v==="children"?typeof L=="string"?(l!=="textarea"||L!=="")&&Gt(r,L):typeof L=="number"&&Gt(r,""+L):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(a.hasOwnProperty(v)?L!=null&&v==="onScroll"&&Je("scroll",r):L!=null&&E(r,v,L,P))}switch(l){case"input":Ne(r),Yt(r,c,!1);break;case"textarea":Ne(r),Kn(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Z(c.value));break;case"select":r.multiple=!!c.multiple,v=c.value,v!=null?Nt(r,!!c.multiple,v,!1):c.defaultValue!=null&&Nt(r,!!c.multiple,c.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=bl)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Bt(i),null;case 6:if(r&&i.stateNode!=null)sv(r,i,r.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(n(166));if(l=Lo(Fa.current),Lo(ur.current),$l(i)){if(c=i.stateNode,l=i.memoizedProps,c[lr]=i,(v=c.nodeValue!==l)&&(r=dn,r!==null))switch(r.tag){case 3:xl(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&xl(c.nodeValue,l,(r.mode&1)!==0)}v&&(i.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[lr]=i,i.stateNode=c}return Bt(i),null;case 13:if(Qe(nt),c=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(et&&fn!==null&&i.mode&1&&!(i.flags&128))cg(),xi(),i.flags|=98560,v=!1;else if(v=$l(i),c!==null&&c.dehydrated!==null){if(r===null){if(!v)throw Error(n(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(n(317));v[lr]=i}else xi(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;Bt(i),v=!1}else Gn!==null&&(sf(Gn),Gn=null),v=!0;if(!v)return i.flags&65536?i:null}return i.flags&128?(i.lanes=l,i):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(i.child.flags|=8192,i.mode&1&&(r===null||nt.current&1?kt===0&&(kt=3):cf())),i.updateQueue!==null&&(i.flags|=4),Bt(i),null);case 4:return wi(),Gd(r,i),r===null&&ja(i.stateNode.containerInfo),Bt(i),null;case 10:return wd(i.type._context),Bt(i),null;case 17:return Jt(i.type)&&Cl(),Bt(i),null;case 19:if(Qe(nt),v=i.memoizedState,v===null)return Bt(i),null;if(c=(i.flags&128)!==0,P=v.rendering,P===null)if(c)Ka(v,!1);else{if(kt!==0||r!==null&&r.flags&128)for(r=i.child;r!==null;){if(P=Ol(r),P!==null){for(i.flags|=128,Ka(v,!1),c=P.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=l,l=i.child;l!==null;)v=l,r=c,v.flags&=14680066,P=v.alternate,P===null?(v.childLanes=0,v.lanes=r,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=P.childLanes,v.lanes=P.lanes,v.child=P.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=P.memoizedProps,v.memoizedState=P.memoizedState,v.updateQueue=P.updateQueue,v.type=P.type,r=P.dependencies,v.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Xe(nt,nt.current&1|2),i.child}r=r.sibling}v.tail!==null&&pt()>$i&&(i.flags|=128,c=!0,Ka(v,!1),i.lanes=4194304)}else{if(!c)if(r=Ol(P),r!==null){if(i.flags|=128,c=!0,l=r.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),Ka(v,!0),v.tail===null&&v.tailMode==="hidden"&&!P.alternate&&!et)return Bt(i),null}else 2*pt()-v.renderingStartTime>$i&&l!==1073741824&&(i.flags|=128,c=!0,Ka(v,!1),i.lanes=4194304);v.isBackwards?(P.sibling=i.child,i.child=P):(l=v.last,l!==null?l.sibling=P:i.child=P,v.last=P)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=pt(),i.sibling=null,l=nt.current,Xe(nt,c?l&1|2:l&1),i):(Bt(i),null);case 22:case 23:return uf(),c=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(i.flags|=8192),c&&i.mode&1?pn&1073741824&&(Bt(i),i.subtreeFlags&6&&(i.flags|=8192)):Bt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function dC(r,i){switch(vd(i),i.tag){case 1:return Jt(i.type)&&Cl(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return wi(),Qe(Xt),Qe(zt),Td(),r=i.flags,r&65536&&!(r&128)?(i.flags=r&-65537|128,i):null;case 5:return Rd(i),null;case 13:if(Qe(nt),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));xi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Qe(nt),null;case 4:return wi(),null;case 10:return wd(i.type._context),null;case 22:case 23:return uf(),null;case 24:return null;default:return null}}var Hl=!1,Mt=!1,fC=typeof WeakSet=="function"?WeakSet:Set,ge=null;function Ei(r,i){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){st(r,i,c)}else l.current=null}function Xd(r,i,l){try{l()}catch(c){st(r,i,c)}}var lv=!1;function pC(r,i){if(ld=ll,r=Mh(),ed(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var m=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var P=0,_=-1,L=-1,Y=0,ie=0,se=r,re=null;t:for(;;){for(var pe;se!==l||m!==0&&se.nodeType!==3||(_=P+m),se!==v||c!==0&&se.nodeType!==3||(L=P+c),se.nodeType===3&&(P+=se.nodeValue.length),(pe=se.firstChild)!==null;)re=se,se=pe;for(;;){if(se===r)break t;if(re===l&&++Y===m&&(_=P),re===v&&++ie===c&&(L=P),(pe=se.nextSibling)!==null)break;se=re,re=se.parentNode}se=pe}l=_===-1||L===-1?null:{start:_,end:L}}else l=null}l=l||{start:0,end:0}}else l=null;for(ud={focusedElem:r,selectionRange:l},ll=!1,ge=i;ge!==null;)if(i=ge,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ge=r;else for(;ge!==null;){i=ge;try{var ye=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var Se=ye.memoizedProps,mt=ye.memoizedState,H=i.stateNode,D=H.getSnapshotBeforeUpdate(i.elementType===i.type?Se:Xn(i.type,Se),mt);H.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var W=i.stateNode.containerInfo;W.nodeType===1?W.textContent="":W.nodeType===9&&W.documentElement&&W.removeChild(W.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ue){st(i,i.return,ue)}if(r=i.sibling,r!==null){r.return=i.return,ge=r;break}ge=i.return}return ye=lv,lv=!1,ye}function qa(r,i,l){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var m=c=c.next;do{if((m.tag&r)===r){var v=m.destroy;m.destroy=void 0,v!==void 0&&Xd(i,l,v)}m=m.next}while(m!==c)}}function Vl(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&r)===r){var c=l.create;l.destroy=c()}l=l.next}while(l!==i)}}function Jd(r){var i=r.ref;if(i!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof i=="function"?i(r):i.current=r}}function uv(r){var i=r.alternate;i!==null&&(r.alternate=null,uv(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[lr],delete i[La],delete i[pd],delete i[GS],delete i[XS])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function cv(r){return r.tag===5||r.tag===3||r.tag===4}function dv(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||cv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Qd(r,i,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(r,i):l.insertBefore(r,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(r,l)):(i=l,i.appendChild(r)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=bl));else if(c!==4&&(r=r.child,r!==null))for(Qd(r,i,l),r=r.sibling;r!==null;)Qd(r,i,l),r=r.sibling}function Zd(r,i,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Zd(r,i,l),r=r.sibling;r!==null;)Zd(r,i,l),r=r.sibling}var Ot=null,Jn=!1;function lo(r,i,l){for(l=l.child;l!==null;)fv(r,i,l),l=l.sibling}function fv(r,i,l){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(nl,l)}catch{}switch(l.tag){case 5:Mt||Ei(l,i);case 6:var c=Ot,m=Jn;Ot=null,lo(r,i,l),Ot=c,Jn=m,Ot!==null&&(Jn?(r=Ot,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Ot.removeChild(l.stateNode));break;case 18:Ot!==null&&(Jn?(r=Ot,l=l.stateNode,r.nodeType===8?fd(r.parentNode,l):r.nodeType===1&&fd(r,l),Ea(r)):fd(Ot,l.stateNode));break;case 4:c=Ot,m=Jn,Ot=l.stateNode.containerInfo,Jn=!0,lo(r,i,l),Ot=c,Jn=m;break;case 0:case 11:case 14:case 15:if(!Mt&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){m=c=c.next;do{var v=m,P=v.destroy;v=v.tag,P!==void 0&&(v&2||v&4)&&Xd(l,i,P),m=m.next}while(m!==c)}lo(r,i,l);break;case 1:if(!Mt&&(Ei(l,i),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(_){st(l,i,_)}lo(r,i,l);break;case 21:lo(r,i,l);break;case 22:l.mode&1?(Mt=(c=Mt)||l.memoizedState!==null,lo(r,i,l),Mt=c):lo(r,i,l);break;default:lo(r,i,l)}}function pv(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new fC),i.forEach(function(c){var m=CC.bind(null,r,c);l.has(c)||(l.add(c),c.then(m,m))})}}function Qn(r,i){var l=i.deletions;if(l!==null)for(var c=0;c<l.length;c++){var m=l[c];try{var v=r,P=i,_=P;e:for(;_!==null;){switch(_.tag){case 5:Ot=_.stateNode,Jn=!1;break e;case 3:Ot=_.stateNode.containerInfo,Jn=!0;break e;case 4:Ot=_.stateNode.containerInfo,Jn=!0;break e}_=_.return}if(Ot===null)throw Error(n(160));fv(v,P,m),Ot=null,Jn=!1;var L=m.alternate;L!==null&&(L.return=null),m.return=null}catch(Y){st(m,i,Y)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)mv(i,r),i=i.sibling}function mv(r,i){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Qn(i,r),dr(r),c&4){try{qa(3,r,r.return),Vl(3,r)}catch(Se){st(r,r.return,Se)}try{qa(5,r,r.return)}catch(Se){st(r,r.return,Se)}}break;case 1:Qn(i,r),dr(r),c&512&&l!==null&&Ei(l,l.return);break;case 5:if(Qn(i,r),dr(r),c&512&&l!==null&&Ei(l,l.return),r.flags&32){var m=r.stateNode;try{Gt(m,"")}catch(Se){st(r,r.return,Se)}}if(c&4&&(m=r.stateNode,m!=null)){var v=r.memoizedProps,P=l!==null?l.memoizedProps:v,_=r.type,L=r.updateQueue;if(r.updateQueue=null,L!==null)try{_==="input"&&v.type==="radio"&&v.name!=null&&Un(m,v),Ir(_,P);var Y=Ir(_,v);for(P=0;P<L.length;P+=2){var ie=L[P],se=L[P+1];ie==="style"?Te(m,se):ie==="dangerouslySetInnerHTML"?En(m,se):ie==="children"?Gt(m,se):E(m,ie,se,Y)}switch(_){case"input":Tt(m,v);break;case"textarea":ir(m,v);break;case"select":var re=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!v.multiple;var pe=v.value;pe!=null?Nt(m,!!v.multiple,pe,!1):re!==!!v.multiple&&(v.defaultValue!=null?Nt(m,!!v.multiple,v.defaultValue,!0):Nt(m,!!v.multiple,v.multiple?[]:"",!1))}m[La]=v}catch(Se){st(r,r.return,Se)}}break;case 6:if(Qn(i,r),dr(r),c&4){if(r.stateNode===null)throw Error(n(162));m=r.stateNode,v=r.memoizedProps;try{m.nodeValue=v}catch(Se){st(r,r.return,Se)}}break;case 3:if(Qn(i,r),dr(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{Ea(i.containerInfo)}catch(Se){st(r,r.return,Se)}break;case 4:Qn(i,r),dr(r);break;case 13:Qn(i,r),dr(r),m=r.child,m.flags&8192&&(v=m.memoizedState!==null,m.stateNode.isHidden=v,!v||m.alternate!==null&&m.alternate.memoizedState!==null||(nf=pt())),c&4&&pv(r);break;case 22:if(ie=l!==null&&l.memoizedState!==null,r.mode&1?(Mt=(Y=Mt)||ie,Qn(i,r),Mt=Y):Qn(i,r),dr(r),c&8192){if(Y=r.memoizedState!==null,(r.stateNode.isHidden=Y)&&!ie&&r.mode&1)for(ge=r,ie=r.child;ie!==null;){for(se=ge=ie;ge!==null;){switch(re=ge,pe=re.child,re.tag){case 0:case 11:case 14:case 15:qa(4,re,re.return);break;case 1:Ei(re,re.return);var ye=re.stateNode;if(typeof ye.componentWillUnmount=="function"){c=re,l=re.return;try{i=c,ye.props=i.memoizedProps,ye.state=i.memoizedState,ye.componentWillUnmount()}catch(Se){st(c,l,Se)}}break;case 5:Ei(re,re.return);break;case 22:if(re.memoizedState!==null){vv(se);continue}}pe!==null?(pe.return=re,ge=pe):vv(se)}ie=ie.sibling}e:for(ie=null,se=r;;){if(se.tag===5){if(ie===null){ie=se;try{m=se.stateNode,Y?(v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(_=se.stateNode,L=se.memoizedProps.style,P=L!=null&&L.hasOwnProperty("display")?L.display:null,_.style.display=be("display",P))}catch(Se){st(r,r.return,Se)}}}else if(se.tag===6){if(ie===null)try{se.stateNode.nodeValue=Y?"":se.memoizedProps}catch(Se){st(r,r.return,Se)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===r)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===r)break e;for(;se.sibling===null;){if(se.return===null||se.return===r)break e;ie===se&&(ie=null),se=se.return}ie===se&&(ie=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:Qn(i,r),dr(r),c&4&&pv(r);break;case 21:break;default:Qn(i,r),dr(r)}}function dr(r){var i=r.flags;if(i&2){try{e:{for(var l=r.return;l!==null;){if(cv(l)){var c=l;break e}l=l.return}throw Error(n(160))}switch(c.tag){case 5:var m=c.stateNode;c.flags&32&&(Gt(m,""),c.flags&=-33);var v=dv(r);Zd(r,v,m);break;case 3:case 4:var P=c.stateNode.containerInfo,_=dv(r);Qd(r,_,P);break;default:throw Error(n(161))}}catch(L){st(r,r.return,L)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function mC(r,i,l){ge=r,hv(r)}function hv(r,i,l){for(var c=(r.mode&1)!==0;ge!==null;){var m=ge,v=m.child;if(m.tag===22&&c){var P=m.memoizedState!==null||Hl;if(!P){var _=m.alternate,L=_!==null&&_.memoizedState!==null||Mt;_=Hl;var Y=Mt;if(Hl=P,(Mt=L)&&!Y)for(ge=m;ge!==null;)P=ge,L=P.child,P.tag===22&&P.memoizedState!==null?yv(m):L!==null?(L.return=P,ge=L):yv(m);for(;v!==null;)ge=v,hv(v),v=v.sibling;ge=m,Hl=_,Mt=Y}gv(r)}else m.subtreeFlags&8772&&v!==null?(v.return=m,ge=v):gv(r)}}function gv(r){for(;ge!==null;){var i=ge;if(i.flags&8772){var l=i.alternate;try{if(i.flags&8772)switch(i.tag){case 0:case 11:case 15:Mt||Vl(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Mt)if(l===null)c.componentDidMount();else{var m=i.elementType===i.type?l.memoizedProps:Xn(i.type,l.memoizedProps);c.componentDidUpdate(m,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var v=i.updateQueue;v!==null&&vg(i,v,c);break;case 3:var P=i.updateQueue;if(P!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}vg(i,P,l)}break;case 5:var _=i.stateNode;if(l===null&&i.flags&4){l=_;var L=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":L.autoFocus&&l.focus();break;case"img":L.src&&(l.src=L.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var Y=i.alternate;if(Y!==null){var ie=Y.memoizedState;if(ie!==null){var se=ie.dehydrated;se!==null&&Ea(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Mt||i.flags&512&&Jd(i)}catch(re){st(i,i.return,re)}}if(i===r){ge=null;break}if(l=i.sibling,l!==null){l.return=i.return,ge=l;break}ge=i.return}}function vv(r){for(;ge!==null;){var i=ge;if(i===r){ge=null;break}var l=i.sibling;if(l!==null){l.return=i.return,ge=l;break}ge=i.return}}function yv(r){for(;ge!==null;){var i=ge;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{Vl(4,i)}catch(L){st(i,l,L)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var m=i.return;try{c.componentDidMount()}catch(L){st(i,m,L)}}var v=i.return;try{Jd(i)}catch(L){st(i,v,L)}break;case 5:var P=i.return;try{Jd(i)}catch(L){st(i,P,L)}}}catch(L){st(i,i.return,L)}if(i===r){ge=null;break}var _=i.sibling;if(_!==null){_.return=i.return,ge=_;break}ge=i.return}}var hC=Math.ceil,Ul=N.ReactCurrentDispatcher,ef=N.ReactCurrentOwner,Nn=N.ReactCurrentBatchConfig,Ae=0,$t=null,xt=null,jt=0,pn=0,Pi=ro(0),kt=0,Ya=null,Do=0,Wl=0,tf=0,Ga=null,Zt=null,nf=0,$i=1/0,zr=null,Kl=!1,rf=null,uo=null,ql=!1,co=null,Yl=0,Xa=0,of=null,Gl=-1,Xl=0;function Kt(){return Ae&6?pt():Gl!==-1?Gl:Gl=pt()}function fo(r){return r.mode&1?Ae&2&&jt!==0?jt&-jt:QS.transition!==null?(Xl===0&&(Xl=dh()),Xl):(r=We,r!==0||(r=window.event,r=r===void 0?16:bh(r.type)),r):1}function Zn(r,i,l,c){if(50<Xa)throw Xa=0,of=null,Error(n(185));ba(r,l,c),(!(Ae&2)||r!==$t)&&(r===$t&&(!(Ae&2)&&(Wl|=l),kt===4&&po(r,jt)),en(r,c),l===1&&Ae===0&&!(i.mode&1)&&($i=pt()+500,kl&&io()))}function en(r,i){var l=r.callbackNode;Q2(r,i);var c=il(r,r===$t?jt:0);if(c===0)l!==null&&lh(l),r.callbackNode=null,r.callbackPriority=0;else if(i=c&-c,r.callbackPriority!==i){if(l!=null&&lh(l),i===1)r.tag===0?JS(bv.bind(null,r)):ig(bv.bind(null,r)),qS(function(){!(Ae&6)&&io()}),l=null;else{switch(fh(c)){case 1:l=zc;break;case 4:l=uh;break;case 16:l=tl;break;case 536870912:l=ch;break;default:l=tl}l=Rv(l,xv.bind(null,r))}r.callbackPriority=i,r.callbackNode=l}}function xv(r,i){if(Gl=-1,Xl=0,Ae&6)throw Error(n(327));var l=r.callbackNode;if(Ri()&&r.callbackNode!==l)return null;var c=il(r,r===$t?jt:0);if(c===0)return null;if(c&30||c&r.expiredLanes||i)i=Jl(r,c);else{i=c;var m=Ae;Ae|=2;var v=Cv();($t!==r||jt!==i)&&(zr=null,$i=pt()+500,Mo(r,i));do try{yC();break}catch(_){Sv(r,_)}while(!0);Cd(),Ul.current=v,Ae=m,xt!==null?i=0:($t=null,jt=0,i=kt)}if(i!==0){if(i===2&&(m=Dc(r),m!==0&&(c=m,i=af(r,m))),i===1)throw l=Ya,Mo(r,0),po(r,c),en(r,pt()),l;if(i===6)po(r,c);else{if(m=r.current.alternate,!(c&30)&&!gC(m)&&(i=Jl(r,c),i===2&&(v=Dc(r),v!==0&&(c=v,i=af(r,v))),i===1))throw l=Ya,Mo(r,0),po(r,c),en(r,pt()),l;switch(r.finishedWork=m,r.finishedLanes=c,i){case 0:case 1:throw Error(n(345));case 2:Fo(r,Zt,zr);break;case 3:if(po(r,c),(c&130023424)===c&&(i=nf+500-pt(),10<i)){if(il(r,0)!==0)break;if(m=r.suspendedLanes,(m&c)!==c){Kt(),r.pingedLanes|=r.suspendedLanes&m;break}r.timeoutHandle=dd(Fo.bind(null,r,Zt,zr),i);break}Fo(r,Zt,zr);break;case 4:if(po(r,c),(c&4194240)===c)break;for(i=r.eventTimes,m=-1;0<c;){var P=31-qn(c);v=1<<P,P=i[P],P>m&&(m=P),c&=~v}if(c=m,c=pt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*hC(c/1960))-c,10<c){r.timeoutHandle=dd(Fo.bind(null,r,Zt,zr),c);break}Fo(r,Zt,zr);break;case 5:Fo(r,Zt,zr);break;default:throw Error(n(329))}}}return en(r,pt()),r.callbackNode===l?xv.bind(null,r):null}function af(r,i){var l=Ga;return r.current.memoizedState.isDehydrated&&(Mo(r,i).flags|=256),r=Jl(r,i),r!==2&&(i=Zt,Zt=l,i!==null&&sf(i)),r}function sf(r){Zt===null?Zt=r:Zt.push.apply(Zt,r)}function gC(r){for(var i=r;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var m=l[c],v=m.getSnapshot;m=m.value;try{if(!Yn(v(),m))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function po(r,i){for(i&=~tf,i&=~Wl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var l=31-qn(i),c=1<<l;r[l]=-1,i&=~c}}function bv(r){if(Ae&6)throw Error(n(327));Ri();var i=il(r,0);if(!(i&1))return en(r,pt()),null;var l=Jl(r,i);if(r.tag!==0&&l===2){var c=Dc(r);c!==0&&(i=c,l=af(r,c))}if(l===1)throw l=Ya,Mo(r,0),po(r,i),en(r,pt()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,Fo(r,Zt,zr),en(r,pt()),null}function lf(r,i){var l=Ae;Ae|=1;try{return r(i)}finally{Ae=l,Ae===0&&($i=pt()+500,kl&&io())}}function Bo(r){co!==null&&co.tag===0&&!(Ae&6)&&Ri();var i=Ae;Ae|=1;var l=Nn.transition,c=We;try{if(Nn.transition=null,We=1,r)return r()}finally{We=c,Nn.transition=l,Ae=i,!(Ae&6)&&io()}}function uf(){pn=Pi.current,Qe(Pi)}function Mo(r,i){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,KS(l)),xt!==null)for(l=xt.return;l!==null;){var c=l;switch(vd(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Cl();break;case 3:wi(),Qe(Xt),Qe(zt),Td();break;case 5:Rd(c);break;case 4:wi();break;case 13:Qe(nt);break;case 19:Qe(nt);break;case 10:wd(c.type._context);break;case 22:case 23:uf()}l=l.return}if($t=r,xt=r=mo(r.current,null),jt=pn=i,kt=0,Ya=null,tf=Wl=Do=0,Zt=Ga=null,Ao!==null){for(i=0;i<Ao.length;i++)if(l=Ao[i],c=l.interleaved,c!==null){l.interleaved=null;var m=c.next,v=l.pending;if(v!==null){var P=v.next;v.next=m,c.next=P}l.pending=c}Ao=null}return r}function Sv(r,i){do{var l=xt;try{if(Cd(),jl.current=Dl,Al){for(var c=rt.memoizedState;c!==null;){var m=c.queue;m!==null&&(m.pending=null),c=c.next}Al=!1}if(zo=0,Pt=wt=rt=null,Ha=!1,Va=0,ef.current=null,l===null||l.return===null){kt=1,Ya=i,xt=null;break}e:{var v=r,P=l.return,_=l,L=i;if(i=jt,_.flags|=32768,L!==null&&typeof L=="object"&&typeof L.then=="function"){var Y=L,ie=_,se=ie.tag;if(!(ie.mode&1)&&(se===0||se===11||se===15)){var re=ie.alternate;re?(ie.updateQueue=re.updateQueue,ie.memoizedState=re.memoizedState,ie.lanes=re.lanes):(ie.updateQueue=null,ie.memoizedState=null)}var pe=Kg(P);if(pe!==null){pe.flags&=-257,qg(pe,P,_,v,i),pe.mode&1&&Wg(v,Y,i),i=pe,L=Y;var ye=i.updateQueue;if(ye===null){var Se=new Set;Se.add(L),i.updateQueue=Se}else ye.add(L);break e}else{if(!(i&1)){Wg(v,Y,i),cf();break e}L=Error(n(426))}}else if(et&&_.mode&1){var mt=Kg(P);if(mt!==null){!(mt.flags&65536)&&(mt.flags|=256),qg(mt,P,_,v,i),bd(ki(L,_));break e}}v=L=ki(L,_),kt!==4&&(kt=2),Ga===null?Ga=[v]:Ga.push(v),v=P;do{switch(v.tag){case 3:v.flags|=65536,i&=-i,v.lanes|=i;var H=Vg(v,L,i);gg(v,H);break e;case 1:_=L;var D=v.type,W=v.stateNode;if(!(v.flags&128)&&(typeof D.getDerivedStateFromError=="function"||W!==null&&typeof W.componentDidCatch=="function"&&(uo===null||!uo.has(W)))){v.flags|=65536,i&=-i,v.lanes|=i;var ue=Ug(v,_,i);gg(v,ue);break e}}v=v.return}while(v!==null)}kv(l)}catch(Ce){i=Ce,xt===l&&l!==null&&(xt=l=l.return);continue}break}while(!0)}function Cv(){var r=Ul.current;return Ul.current=Dl,r===null?Dl:r}function cf(){(kt===0||kt===3||kt===2)&&(kt=4),$t===null||!(Do&268435455)&&!(Wl&268435455)||po($t,jt)}function Jl(r,i){var l=Ae;Ae|=2;var c=Cv();($t!==r||jt!==i)&&(zr=null,Mo(r,i));do try{vC();break}catch(m){Sv(r,m)}while(!0);if(Cd(),Ae=l,Ul.current=c,xt!==null)throw Error(n(261));return $t=null,jt=0,kt}function vC(){for(;xt!==null;)wv(xt)}function yC(){for(;xt!==null&&!V2();)wv(xt)}function wv(r){var i=$v(r.alternate,r,pn);r.memoizedProps=r.pendingProps,i===null?kv(r):xt=i,ef.current=null}function kv(r){var i=r;do{var l=i.alternate;if(r=i.return,i.flags&32768){if(l=dC(l,i),l!==null){l.flags&=32767,xt=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{kt=6,xt=null;return}}else if(l=cC(l,i,pn),l!==null){xt=l;return}if(i=i.sibling,i!==null){xt=i;return}xt=i=r}while(i!==null);kt===0&&(kt=5)}function Fo(r,i,l){var c=We,m=Nn.transition;try{Nn.transition=null,We=1,xC(r,i,l,c)}finally{Nn.transition=m,We=c}return null}function xC(r,i,l,c){do Ri();while(co!==null);if(Ae&6)throw Error(n(327));l=r.finishedWork;var m=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var v=l.lanes|l.childLanes;if(Z2(r,v),r===$t&&(xt=$t=null,jt=0),!(l.subtreeFlags&2064)&&!(l.flags&2064)||ql||(ql=!0,Rv(tl,function(){return Ri(),null})),v=(l.flags&15990)!==0,l.subtreeFlags&15990||v){v=Nn.transition,Nn.transition=null;var P=We;We=1;var _=Ae;Ae|=4,ef.current=null,pC(r,l),mv(l,r),BS(ud),ll=!!ld,ud=ld=null,r.current=l,mC(l),U2(),Ae=_,We=P,Nn.transition=v}else r.current=l;if(ql&&(ql=!1,co=r,Yl=m),v=r.pendingLanes,v===0&&(uo=null),q2(l.stateNode),en(r,pt()),i!==null)for(c=r.onRecoverableError,l=0;l<i.length;l++)m=i[l],c(m.value,{componentStack:m.stack,digest:m.digest});if(Kl)throw Kl=!1,r=rf,rf=null,r;return Yl&1&&r.tag!==0&&Ri(),v=r.pendingLanes,v&1?r===of?Xa++:(Xa=0,of=r):Xa=0,io(),null}function Ri(){if(co!==null){var r=fh(Yl),i=Nn.transition,l=We;try{if(Nn.transition=null,We=16>r?16:r,co===null)var c=!1;else{if(r=co,co=null,Yl=0,Ae&6)throw Error(n(331));var m=Ae;for(Ae|=4,ge=r.current;ge!==null;){var v=ge,P=v.child;if(ge.flags&16){var _=v.deletions;if(_!==null){for(var L=0;L<_.length;L++){var Y=_[L];for(ge=Y;ge!==null;){var ie=ge;switch(ie.tag){case 0:case 11:case 15:qa(8,ie,v)}var se=ie.child;if(se!==null)se.return=ie,ge=se;else for(;ge!==null;){ie=ge;var re=ie.sibling,pe=ie.return;if(uv(ie),ie===Y){ge=null;break}if(re!==null){re.return=pe,ge=re;break}ge=pe}}}var ye=v.alternate;if(ye!==null){var Se=ye.child;if(Se!==null){ye.child=null;do{var mt=Se.sibling;Se.sibling=null,Se=mt}while(Se!==null)}}ge=v}}if(v.subtreeFlags&2064&&P!==null)P.return=v,ge=P;else e:for(;ge!==null;){if(v=ge,v.flags&2048)switch(v.tag){case 0:case 11:case 15:qa(9,v,v.return)}var H=v.sibling;if(H!==null){H.return=v.return,ge=H;break e}ge=v.return}}var D=r.current;for(ge=D;ge!==null;){P=ge;var W=P.child;if(P.subtreeFlags&2064&&W!==null)W.return=P,ge=W;else e:for(P=D;ge!==null;){if(_=ge,_.flags&2048)try{switch(_.tag){case 0:case 11:case 15:Vl(9,_)}}catch(Ce){st(_,_.return,Ce)}if(_===P){ge=null;break e}var ue=_.sibling;if(ue!==null){ue.return=_.return,ge=ue;break e}ge=_.return}}if(Ae=m,io(),sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(nl,r)}catch{}c=!0}return c}finally{We=l,Nn.transition=i}}return!1}function Ev(r,i,l){i=ki(l,i),i=Vg(r,i,1),r=so(r,i,1),i=Kt(),r!==null&&(ba(r,1,i),en(r,i))}function st(r,i,l){if(r.tag===3)Ev(r,r,l);else for(;i!==null;){if(i.tag===3){Ev(i,r,l);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(uo===null||!uo.has(c))){r=ki(l,r),r=Ug(i,r,1),i=so(i,r,1),r=Kt(),i!==null&&(ba(i,1,r),en(i,r));break}}i=i.return}}function bC(r,i,l){var c=r.pingCache;c!==null&&c.delete(i),i=Kt(),r.pingedLanes|=r.suspendedLanes&l,$t===r&&(jt&l)===l&&(kt===4||kt===3&&(jt&130023424)===jt&&500>pt()-nf?Mo(r,0):tf|=l),en(r,i)}function Pv(r,i){i===0&&(r.mode&1?(i=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):i=1);var l=Kt();r=jr(r,i),r!==null&&(ba(r,i,l),en(r,l))}function SC(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),Pv(r,l)}function CC(r,i){var l=0;switch(r.tag){case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(i),Pv(r,l)}var $v;$v=function(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps||Xt.current)Qt=!0;else{if(!(r.lanes&l)&&!(i.flags&128))return Qt=!1,uC(r,i,l);Qt=!!(r.flags&131072)}else Qt=!1,et&&i.flags&1048576&&ag(i,Pl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;Fl(r,i),r=i.pendingProps;var m=gi(i,zt.current);Ci(i,l),m=Od(null,i,c,r,m,l);var v=jd();return i.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Jt(c)?(v=!0,wl(i)):v=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Pd(i),m.updater=Bl,i.stateNode=m,m._reactInternals=i,Md(i,c,r,l),i=Ud(null,i,c,!0,v,l)):(i.tag=0,et&&v&&gd(i),Wt(null,i,m,l),i=i.child),i;case 16:c=i.elementType;e:{switch(Fl(r,i),r=i.pendingProps,m=c._init,c=m(c._payload),i.type=c,m=i.tag=kC(c),r=Xn(c,r),m){case 0:i=Vd(null,i,c,r,l);break e;case 1:i=Zg(null,i,c,r,l);break e;case 11:i=Yg(null,i,c,r,l);break e;case 14:i=Gg(null,i,c,Xn(c.type,r),l);break e}throw Error(n(306,c,""))}return i;case 0:return c=i.type,m=i.pendingProps,m=i.elementType===c?m:Xn(c,m),Vd(r,i,c,m,l);case 1:return c=i.type,m=i.pendingProps,m=i.elementType===c?m:Xn(c,m),Zg(r,i,c,m,l);case 3:e:{if(ev(i),r===null)throw Error(n(387));c=i.pendingProps,v=i.memoizedState,m=v.element,hg(r,i),_l(i,c,null,l);var P=i.memoizedState;if(c=P.element,v.isDehydrated)if(v={element:c,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){m=ki(Error(n(423)),i),i=tv(r,i,c,l,m);break e}else if(c!==m){m=ki(Error(n(424)),i),i=tv(r,i,c,l,m);break e}else for(fn=no(i.stateNode.containerInfo.firstChild),dn=i,et=!0,Gn=null,l=pg(i,null,c,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(xi(),c===m){i=Lr(r,i,l);break e}Wt(r,i,c,l)}i=i.child}return i;case 5:return yg(i),r===null&&xd(i),c=i.type,m=i.pendingProps,v=r!==null?r.memoizedProps:null,P=m.children,cd(c,m)?P=null:v!==null&&cd(c,v)&&(i.flags|=32),Qg(r,i),Wt(r,i,P,l),i.child;case 6:return r===null&&xd(i),null;case 13:return nv(r,i,l);case 4:return $d(i,i.stateNode.containerInfo),c=i.pendingProps,r===null?i.child=bi(i,null,c,l):Wt(r,i,c,l),i.child;case 11:return c=i.type,m=i.pendingProps,m=i.elementType===c?m:Xn(c,m),Yg(r,i,c,m,l);case 7:return Wt(r,i,i.pendingProps,l),i.child;case 8:return Wt(r,i,i.pendingProps.children,l),i.child;case 12:return Wt(r,i,i.pendingProps.children,l),i.child;case 10:e:{if(c=i.type._context,m=i.pendingProps,v=i.memoizedProps,P=m.value,Xe(Il,c._currentValue),c._currentValue=P,v!==null)if(Yn(v.value,P)){if(v.children===m.children&&!Xt.current){i=Lr(r,i,l);break e}}else for(v=i.child,v!==null&&(v.return=i);v!==null;){var _=v.dependencies;if(_!==null){P=v.child;for(var L=_.firstContext;L!==null;){if(L.context===c){if(v.tag===1){L=Ar(-1,l&-l),L.tag=2;var Y=v.updateQueue;if(Y!==null){Y=Y.shared;var ie=Y.pending;ie===null?L.next=L:(L.next=ie.next,ie.next=L),Y.pending=L}}v.lanes|=l,L=v.alternate,L!==null&&(L.lanes|=l),kd(v.return,l,i),_.lanes|=l;break}L=L.next}}else if(v.tag===10)P=v.type===i.type?null:v.child;else if(v.tag===18){if(P=v.return,P===null)throw Error(n(341));P.lanes|=l,_=P.alternate,_!==null&&(_.lanes|=l),kd(P,l,i),P=v.sibling}else P=v.child;if(P!==null)P.return=v;else for(P=v;P!==null;){if(P===i){P=null;break}if(v=P.sibling,v!==null){v.return=P.return,P=v;break}P=P.return}v=P}Wt(r,i,m.children,l),i=i.child}return i;case 9:return m=i.type,c=i.pendingProps.children,Ci(i,l),m=In(m),c=c(m),i.flags|=1,Wt(r,i,c,l),i.child;case 14:return c=i.type,m=Xn(c,i.pendingProps),m=Xn(c.type,m),Gg(r,i,c,m,l);case 15:return Xg(r,i,i.type,i.pendingProps,l);case 17:return c=i.type,m=i.pendingProps,m=i.elementType===c?m:Xn(c,m),Fl(r,i),i.tag=1,Jt(c)?(r=!0,wl(i)):r=!1,Ci(i,l),Fg(i,c,m),Md(i,c,m,l),Ud(null,i,c,!0,r,l);case 19:return ov(r,i,l);case 22:return Jg(r,i,l)}throw Error(n(156,i.tag))};function Rv(r,i){return sh(r,i)}function wC(r,i,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _n(r,i,l,c){return new wC(r,i,l,c)}function df(r){return r=r.prototype,!(!r||!r.isReactComponent)}function kC(r){if(typeof r=="function")return df(r)?1:0;if(r!=null){if(r=r.$$typeof,r===q)return 11;if(r===Q)return 14}return 2}function mo(r,i){var l=r.alternate;return l===null?(l=_n(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function Ql(r,i,l,c,m,v){var P=2;if(c=r,typeof r=="function")df(r)&&(P=1);else if(typeof r=="string")P=5;else e:switch(r){case A:return Ho(l.children,m,v,i);case F:P=8,m|=8;break;case J:return r=_n(12,l,i,m|2),r.elementType=J,r.lanes=v,r;case G:return r=_n(13,l,i,m),r.elementType=G,r.lanes=v,r;case ne:return r=_n(19,l,i,m),r.elementType=ne,r.lanes=v,r;case V:return Zl(l,m,v,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:P=10;break e;case M:P=9;break e;case q:P=11;break e;case Q:P=14;break e;case B:P=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=_n(P,l,i,m),i.elementType=r,i.type=c,i.lanes=v,i}function Ho(r,i,l,c){return r=_n(7,r,c,i),r.lanes=l,r}function Zl(r,i,l,c){return r=_n(22,r,c,i),r.elementType=V,r.lanes=l,r.stateNode={isHidden:!1},r}function ff(r,i,l){return r=_n(6,r,null,i),r.lanes=l,r}function pf(r,i,l){return i=_n(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function EC(r,i,l,c,m){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bc(0),this.expirationTimes=Bc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bc(0),this.identifierPrefix=c,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function mf(r,i,l,c,m,v,P,_,L){return r=new EC(r,i,l,_,L),i===1?(i=1,v===!0&&(i|=8)):i=0,v=_n(3,null,null,i),r.current=v,v.stateNode=r,v.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pd(v),r}function PC(r,i,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:c==null?null:""+c,children:r,containerInfo:i,implementation:l}}function Iv(r){if(!r)return oo;r=r._reactInternals;e:{if(To(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Jt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Jt(l))return rg(r,l,i)}return i}function Tv(r,i,l,c,m,v,P,_,L){return r=mf(l,c,!0,r,m,v,P,_,L),r.context=Iv(null),l=r.current,c=Kt(),m=fo(l),v=Ar(c,m),v.callback=i??null,so(l,v,m),r.current.lanes=m,ba(r,m,c),en(r,c),r}function eu(r,i,l,c){var m=i.current,v=Kt(),P=fo(m);return l=Iv(l),i.context===null?i.context=l:i.pendingContext=l,i=Ar(v,P),i.payload={element:r},c=c===void 0?null:c,c!==null&&(i.callback=c),r=so(m,i,P),r!==null&&(Zn(r,m,P,v),Nl(r,m,P)),P}function tu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Nv(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function hf(r,i){Nv(r,i),(r=r.alternate)&&Nv(r,i)}function $C(){return null}var _v=typeof reportError=="function"?reportError:function(r){console.error(r)};function gf(r){this._internalRoot=r}nu.prototype.render=gf.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));eu(r,i,null,null)},nu.prototype.unmount=gf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Bo(function(){eu(null,r,null,null)}),i[Tr]=null}};function nu(r){this._internalRoot=r}nu.prototype.unstable_scheduleHydration=function(r){if(r){var i=hh();r={blockedOn:null,target:r,priority:i};for(var l=0;l<Zr.length&&i!==0&&i<Zr[l].priority;l++);Zr.splice(l,0,r),l===0&&yh(r)}};function vf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ru(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Ov(){}function RC(r,i,l,c,m){if(m){if(typeof c=="function"){var v=c;c=function(){var Y=tu(P);v.call(Y)}}var P=Tv(i,c,r,0,null,!1,!1,"",Ov);return r._reactRootContainer=P,r[Tr]=P.current,ja(r.nodeType===8?r.parentNode:r),Bo(),P}for(;m=r.lastChild;)r.removeChild(m);if(typeof c=="function"){var _=c;c=function(){var Y=tu(L);_.call(Y)}}var L=mf(r,0,!1,null,null,!1,!1,"",Ov);return r._reactRootContainer=L,r[Tr]=L.current,ja(r.nodeType===8?r.parentNode:r),Bo(function(){eu(i,L,l,c)}),L}function ou(r,i,l,c,m){var v=l._reactRootContainer;if(v){var P=v;if(typeof m=="function"){var _=m;m=function(){var L=tu(P);_.call(L)}}eu(i,P,r,m)}else P=RC(l,i,r,m,c);return tu(P)}ph=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var l=xa(i.pendingLanes);l!==0&&(Mc(i,l|1),en(i,pt()),!(Ae&6)&&($i=pt()+500,io()))}break;case 13:Bo(function(){var c=jr(r,1);if(c!==null){var m=Kt();Zn(c,r,1,m)}}),hf(r,1)}},Fc=function(r){if(r.tag===13){var i=jr(r,134217728);if(i!==null){var l=Kt();Zn(i,r,134217728,l)}hf(r,134217728)}},mh=function(r){if(r.tag===13){var i=fo(r),l=jr(r,i);if(l!==null){var c=Kt();Zn(l,r,i,c)}hf(r,i)}},hh=function(){return We},gh=function(r,i){var l=We;try{return We=r,i()}finally{We=l}},pa=function(r,i,l){switch(i){case"input":if(Tt(r,l),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var c=l[i];if(c!==r&&c.form===r.form){var m=Sl(c);if(!m)throw Error(n(90));at(c),Tt(c,m)}}}break;case"textarea":ir(r,l);break;case"select":i=l.value,i!=null&&Nt(r,!!l.multiple,i,!1)}},Et=lf,ha=Bo;var IC={usingClientEntryPoint:!1,Events:[za,mi,Sl,Qs,ma,lf]},Ja={findFiberByHostInstance:No,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},TC={bundleType:Ja.bundleType,version:Ja.version,rendererPackageName:Ja.rendererPackageName,rendererConfig:Ja.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=ih(r),r===null?null:r.stateNode},findFiberByHostInstance:Ja.findFiberByHostInstance||$C,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{nl=iu.inject(TC),sr=iu}catch{}}return tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IC,tn.createPortal=function(r,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vf(i))throw Error(n(200));return PC(r,i,null,l)},tn.createRoot=function(r,i){if(!vf(r))throw Error(n(299));var l=!1,c="",m=_v;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=mf(r,1,!1,null,null,l,!1,c,m),r[Tr]=i.current,ja(r.nodeType===8?r.parentNode:r),new gf(i)},tn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=ih(i),r=r===null?null:r.stateNode,r},tn.flushSync=function(r){return Bo(r)},tn.hydrate=function(r,i,l){if(!ru(i))throw Error(n(200));return ou(null,r,i,!0,l)},tn.hydrateRoot=function(r,i,l){if(!vf(r))throw Error(n(405));var c=l!=null&&l.hydratedSources||null,m=!1,v="",P=_v;if(l!=null&&(l.unstable_strictMode===!0&&(m=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onRecoverableError!==void 0&&(P=l.onRecoverableError)),i=Tv(i,null,r,1,l??null,m,!1,v,P),r[Tr]=i.current,ja(r),c)for(r=0;r<c.length;r++)l=c[r],m=l._getVersion,m=m(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,m]:i.mutableSourceEagerHydrationData.push(l,m);return new nu(i)},tn.render=function(r,i,l){if(!ru(i))throw Error(n(200));return ou(null,r,i,!1,l)},tn.unmountComponentAtNode=function(r){if(!ru(r))throw Error(n(40));return r._reactRootContainer?(Bo(function(){ou(null,null,r,!1,function(){r._reactRootContainer=null,r[Tr]=null})}),!0):!1},tn.unstable_batchedUpdates=lf,tn.unstable_renderSubtreeIntoContainer=function(r,i,l,c){if(!ru(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return ou(r,i,l,!1,c)},tn.version="18.3.1-next-f1338f8080-20240426",tn}var Fv;function g1(){if(Fv)return bf.exports;Fv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bf.exports=MC(),bf.exports}var Hv;function FC(){if(Hv)return au;Hv=1;var e=g1();return au.createRoot=e.createRoot,au.hydrateRoot=e.hydrateRoot,au}var HC=FC(),es={},Vv;function VC(){if(Vv)return es;Vv=1,Object.defineProperty(es,"__esModule",{value:!0}),es.parse=u,es.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function u(x,k){const C=new s,S=x.length;if(S<2)return C;const w=(k==null?void 0:k.decode)||h;let I=0;do{const T=x.indexOf("=",I);if(T===-1)break;const E=x.indexOf(";",I),N=E===-1?S:E;if(T>N){I=x.lastIndexOf(";",T-1)+1;continue}const $=d(x,I,T),j=f(x,T,$),A=x.slice($,j);if(C[A]===void 0){let F=d(x,T+1,N),J=f(x,N,F);const R=w(x.slice(F,J));C[A]=R}I=N+1}while(I<S);return C}function d(x,k,C){do{const S=x.charCodeAt(k);if(S!==32&&S!==9)return k}while(++k<C);return C}function f(x,k,C){for(;k>C;){const S=x.charCodeAt(--k);if(S!==32&&S!==9)return k+1}return C}function p(x,k,C){const S=(C==null?void 0:C.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const w=S(k);if(!t.test(w))throw new TypeError(`argument val is invalid: ${k}`);let I=x+"="+w;if(!C)return I;if(C.maxAge!==void 0){if(!Number.isInteger(C.maxAge))throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);I+="; Max-Age="+C.maxAge}if(C.domain){if(!n.test(C.domain))throw new TypeError(`option domain is invalid: ${C.domain}`);I+="; Domain="+C.domain}if(C.path){if(!o.test(C.path))throw new TypeError(`option path is invalid: ${C.path}`);I+="; Path="+C.path}if(C.expires){if(!y(C.expires)||!Number.isFinite(C.expires.valueOf()))throw new TypeError(`option expires is invalid: ${C.expires}`);I+="; Expires="+C.expires.toUTCString()}if(C.httpOnly&&(I+="; HttpOnly"),C.secure&&(I+="; Secure"),C.partitioned&&(I+="; Partitioned"),C.priority)switch(typeof C.priority=="string"?C.priority.toLowerCase():void 0){case"low":I+="; Priority=Low";break;case"medium":I+="; Priority=Medium";break;case"high":I+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${C.priority}`)}if(C.sameSite)switch(typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite){case!0:case"strict":I+="; SameSite=Strict";break;case"lax":I+="; SameSite=Lax";break;case"none":I+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${C.sameSite}`)}return I}function h(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function y(x){return a.call(x)==="[object Date]"}return es}VC();/**
41
- * react-router v7.1.5
42
- *
43
- * Copyright (c) Remix Software Inc.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE.md file in the root directory of this source tree.
47
- *
48
- * @license MIT
49
- */var Uv="popstate";function UC(e={}){function t(o,a){let{pathname:s,search:u,hash:d}=o.location;return Zf("",{pathname:s,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(o,a){return typeof a=="string"?a:ws(a)}return KC(t,n,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function er(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WC(){return Math.random().toString(36).substring(2,10)}function Wv(e,t){return{usr:e.state,key:e.key,idx:t}}function Zf(e,t,n=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Qi(t):t,state:n,key:t&&t.key||o||WC()}}function ws({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Qi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function KC(e,t,n,o={}){let{window:a=document.defaultView,v5Compat:s=!1}=o,u=a.history,d="POP",f=null,p=h();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function h(){return(u.state||{idx:null}).idx}function y(){d="POP";let w=h(),I=w==null?null:w-p;p=w,f&&f({action:d,location:S.location,delta:I})}function x(w,I){d="PUSH";let T=Zf(S.location,w,I);p=h()+1;let E=Wv(T,p),N=S.createHref(T);try{u.pushState(E,"",N)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;a.location.assign(N)}s&&f&&f({action:d,location:S.location,delta:1})}function k(w,I){d="REPLACE";let T=Zf(S.location,w,I);p=h();let E=Wv(T,p),N=S.createHref(T);u.replaceState(E,"",N),s&&f&&f({action:d,location:S.location,delta:0})}function C(w){let I=a.location.origin!=="null"?a.location.origin:a.location.href,T=typeof w=="string"?w:ws(w);return T=T.replace(/ $/,"%20"),ot(I,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,I)}let S={get action(){return d},get location(){return e(a,u)},listen(w){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(Uv,y),f=w,()=>{a.removeEventListener(Uv,y),f=null}},createHref(w){return t(a,w)},createURL:C,encodeLocation(w){let I=C(w);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:x,replace:k,go(w){return u.go(w)}};return S}function v1(e,t,n="/"){return qC(e,t,n,!1)}function qC(e,t,n,o){let a=typeof t=="string"?Qi(t):t,s=So(a.pathname||"/",n);if(s==null)return null;let u=y1(e);YC(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let p=iw(s);d=rw(u[f],p,o)}return d}function y1(e,t=[],n=[],o=""){let a=(s,u,d)=>{let f={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};f.relativePath.startsWith("/")&&(ot(f.relativePath.startsWith(o),`Absolute route path "${f.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(o.length));let p=Mr([o,f.relativePath]),h=n.concat(f);s.children&&s.children.length>0&&(ot(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),y1(s.children,t,h,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:tw(p,s.index),routesMeta:h})};return e.forEach((s,u)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))a(s,u);else for(let f of x1(s.path))a(s,u,f)}),t}function x1(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(o.length===0)return a?[s,""]:[s];let u=x1(o.join("/")),d=[];return d.push(...u.map(f=>f===""?s:[s,f].join("/"))),a&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function YC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nw(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}var GC=/^:[\w-]+$/,XC=3,JC=2,QC=1,ZC=10,ew=-2,Kv=e=>e==="*";function tw(e,t){let n=e.split("/"),o=n.length;return n.some(Kv)&&(o+=ew),t&&(o+=JC),n.filter(a=>!Kv(a)).reduce((a,s)=>a+(GC.test(s)?XC:s===""?QC:ZC),o)}function nw(e,t){return e.length===t.length&&e.slice(0,-1).every((o,a)=>o===t[a])?e[e.length-1]-t[t.length-1]:0}function rw(e,t,n=!1){let{routesMeta:o}=e,a={},s="/",u=[];for(let d=0;d<o.length;++d){let f=o[d],p=d===o.length-1,h=s==="/"?t:t.slice(s.length)||"/",y=Nu({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},h),x=f.route;if(!y&&p&&n&&!o[o.length-1].route.index&&(y=Nu({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!y)return null;Object.assign(a,y.params),u.push({params:a,pathname:Mr([s,y.pathname]),pathnameBase:uw(Mr([s,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(s=Mr([s,y.pathnameBase]))}return u}function Nu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=ow(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],u=s.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:o.reduce((p,{paramName:h,isOptional:y},x)=>{if(h==="*"){let C=d[x]||"";u=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const k=d[x];return y&&!k?p[h]=void 0:p[h]=(k||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:u,pattern:e}}function ow(e,t=!1,n=!0){er(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 o=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f)=>(o.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),o]}function iw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return er(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function So(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}function aw(e,t="/"){let{pathname:n,search:o="",hash:a=""}=typeof e=="string"?Qi(e):e;return{pathname:n?n.startsWith("/")?n:sw(n,t):t,search:cw(o),hash:dw(a)}}function sw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function wf(e,t,n,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function b1(e){let t=lw(e);return t.map((n,o)=>o===t.length-1?n.pathname:n.pathnameBase)}function S1(e,t,n,o=!1){let a;typeof e=="string"?a=Qi(e):(a={...e},ot(!a.pathname||!a.pathname.includes("?"),wf("?","pathname","search",a)),ot(!a.pathname||!a.pathname.includes("#"),wf("#","pathname","hash",a)),ot(!a.search||!a.search.includes("#"),wf("#","search","hash",a)));let s=e===""||a.pathname==="",u=s?"/":a.pathname,d;if(u==null)d=n;else{let y=t.length-1;if(!o&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),y-=1;a.pathname=x.join("/")}d=y>=0?t[y]:"/"}let f=aw(a,d),p=u&&u!=="/"&&u.endsWith("/"),h=(s||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}var Mr=e=>e.join("/").replace(/\/\/+/g,"/"),uw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var C1=["POST","PUT","PATCH","DELETE"];new Set(C1);var pw=["GET",...C1];new Set(pw);var Zi=b.createContext(null);Zi.displayName="DataRouter";var qu=b.createContext(null);qu.displayName="DataRouterState";var w1=b.createContext({isTransitioning:!1});w1.displayName="ViewTransition";var mw=b.createContext(new Map);mw.displayName="Fetchers";var hw=b.createContext(null);hw.displayName="Await";var kr=b.createContext(null);kr.displayName="Navigation";var As=b.createContext(null);As.displayName="Location";var Er=b.createContext({outlet:null,matches:[],isDataRoute:!1});Er.displayName="Route";var tm=b.createContext(null);tm.displayName="RouteError";function gw(e,{relative:t}={}){ot(Ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=b.useContext(kr),{hash:a,pathname:s,search:u}=zs(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:Mr([n,s])),o.createHref({pathname:d,search:u,hash:a})}function Ls(){return b.useContext(As)!=null}function Po(){return ot(Ls(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(As).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function E1(e){b.useContext(kr).static||b.useLayoutEffect(e)}function tr(){let{isDataRoute:e}=b.useContext(Er);return e?Iw():vw()}function vw(){ot(Ls(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Zi),{basename:t,navigator:n}=b.useContext(kr),{matches:o}=b.useContext(Er),{pathname:a}=Po(),s=JSON.stringify(b1(o)),u=b.useRef(!1);return E1(()=>{u.current=!0}),b.useCallback((f,p={})=>{if(er(u.current,k1),!u.current)return;if(typeof f=="number"){n.go(f);return}let h=S1(f,JSON.parse(s),a,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Mr([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,s,a,e])}b.createContext(null);function Yu(){let{matches:e}=b.useContext(Er),t=e[e.length-1];return t?t.params:{}}function zs(e,{relative:t}={}){let{matches:n}=b.useContext(Er),{pathname:o}=Po(),a=JSON.stringify(b1(n));return b.useMemo(()=>S1(e,JSON.parse(a),o,t==="path"),[e,a,o,t])}function yw(e,t){return P1(e,t)}function P1(e,t,n,o){var T;ot(Ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:s}=b.useContext(kr),{matches:u}=b.useContext(Er),d=u[u.length-1],f=d?d.params:{},p=d?d.pathname:"/",h=d?d.pathnameBase:"/",y=d&&d.route;{let E=y&&y.path||"";$1(p,!y||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
-
51
- Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let x=Po(),k;if(t){let E=typeof t=="string"?Qi(t):t;ot(h==="/"||((T=E.pathname)==null?void 0:T.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${E.pathname}" was given in the \`location\` prop.`),k=E}else k=x;let C=k.pathname||"/",S=C;if(h!=="/"){let E=h.replace(/^\//,"").split("/");S="/"+C.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=!s&&n&&n.matches&&n.matches.length>0?n.matches:v1(e,{pathname:S});er(y||w!=null,`No routes matched location "${k.pathname}${k.search}${k.hash}" `),er(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${k.pathname}${k.search}${k.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let I=ww(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:Mr([h,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:Mr([h,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),u,n,o);return t&&I?b.createElement(As.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...k},navigationType:"POP"}},I):I}function xw(){let e=Rw(),t=fw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},s={padding:"2px 4px",backgroundColor:o},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:s},"ErrorBoundary")," or"," ",b.createElement("code",{style:s},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:a},n):null,u)}var bw=b.createElement(xw,null),Sw=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?b.createElement(Er.Provider,{value:this.props.routeContext},b.createElement(tm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cw({routeContext:e,match:t,children:n}){let o=b.useContext(Zi);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Er.Provider,{value:e},n)}function ww(e,t=[],n=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n==null?void 0:n.errors;if(s!=null){let f=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);ot(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let u=!1,d=-1;if(n)for(let f=0;f<a.length;f++){let p=a[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:h,errors:y}=n,x=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||x){u=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,p,h)=>{let y,x=!1,k=null,C=null;n&&(y=s&&p.route.id?s[p.route.id]:void 0,k=p.route.errorElement||bw,u&&(d<0&&h===0?($1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):d===h&&(x=!0,C=p.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,h+1)),w=()=>{let I;return y?I=k:x?I=C:p.route.Component?I=b.createElement(p.route.Component,null):p.route.element?I=p.route.element:I=f,b.createElement(Cw,{match:p,routeContext:{outlet:f,matches:S,isDataRoute:n!=null},children:I})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?b.createElement(Sw,{location:n.location,revalidation:n.revalidation,component:k,error:y,children:w(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):w()},null)}function nm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kw(e){let t=b.useContext(Zi);return ot(t,nm(e)),t}function Ew(e){let t=b.useContext(qu);return ot(t,nm(e)),t}function Pw(e){let t=b.useContext(Er);return ot(t,nm(e)),t}function rm(e){let t=Pw(e),n=t.matches[t.matches.length-1];return ot(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function $w(){return rm("useRouteId")}function Rw(){var o;let e=b.useContext(tm),t=Ew("useRouteError"),n=rm("useRouteError");return e!==void 0?e:(o=t.errors)==null?void 0:o[n]}function Iw(){let{router:e}=kw("useNavigate"),t=rm("useNavigate"),n=b.useRef(!1);return E1(()=>{n.current=!0}),b.useCallback(async(a,s={})=>{er(n.current,k1),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var qv={};function $1(e,t,n){!t&&!qv[e]&&(qv[e]=!0,er(!1,n))}b.memo(Tw);function Tw({routes:e,future:t,state:n}){return P1(e,void 0,n,t)}function nn(e){ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Nw({basename:e="/",children:t=null,location:n,navigationType:o="POP",navigator:a,static:s=!1}){ot(!Ls(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=b.useMemo(()=>({basename:u,navigator:a,static:s,future:{}}),[u,a,s]);typeof n=="string"&&(n=Qi(n));let{pathname:f="/",search:p="",hash:h="",state:y=null,key:x="default"}=n,k=b.useMemo(()=>{let C=So(f,u);return C==null?null:{location:{pathname:C,search:p,hash:h,state:y,key:x},navigationType:o}},[u,f,p,h,y,x,o]);return er(k!=null,`<Router basename="${u}"> is not able to match the URL "${f}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:b.createElement(kr.Provider,{value:d},b.createElement(As.Provider,{children:t,value:k}))}function _w({children:e,location:t}){return yw(ep(e),t)}function ep(e,t=[]){let n=[];return b.Children.forEach(e,(o,a)=>{if(!b.isValidElement(o))return;let s=[...t,a];if(o.type===b.Fragment){n.push.apply(n,ep(o.props.children,s));return}ot(o.type===nn,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ot(!o.props.index||!o.props.children,"An index route cannot have child routes.");let u={id:o.props.id||s.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=ep(o.props.children,s)),n.push(u)}),n}var hu="get",gu="application/x-www-form-urlencoded";function Gu(e){return e!=null&&typeof e.tagName=="string"}function Ow(e){return Gu(e)&&e.tagName.toLowerCase()==="button"}function jw(e){return Gu(e)&&e.tagName.toLowerCase()==="form"}function Aw(e){return Gu(e)&&e.tagName.toLowerCase()==="input"}function Lw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zw(e,t){return e.button===0&&(!t||t==="_self")&&!Lw(e)}function tp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(a=>[n,a]):[[n,o]])},[]))}function Dw(e,t){let n=tp(e);return t&&t.forEach((o,a)=>{n.has(a)||t.getAll(a).forEach(s=>{n.append(a,s)})}),n}var su=null;function Bw(){if(su===null)try{new FormData(document.createElement("form"),0),su=!1}catch{su=!0}return su}var Mw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kf(e){return e!=null&&!Mw.has(e)?(er(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gu}"`),null):e}function Fw(e,t){let n,o,a,s,u;if(jw(e)){let d=e.getAttribute("action");o=d?So(d,t):null,n=e.getAttribute("method")||hu,a=kf(e.getAttribute("enctype"))||gu,s=new FormData(e)}else if(Ow(e)||Aw(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(o=f?So(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||hu,a=kf(e.getAttribute("formenctype"))||kf(d.getAttribute("enctype"))||gu,s=new FormData(d,e),!Bw()){let{name:p,type:h,value:y}=e;if(h==="image"){let x=p?`${p}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else p&&s.append(p,y)}}else{if(Gu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=hu,o=null,a=gu,u=e}return s&&a==="text/plain"&&(u=s,s=void 0),{action:o,method:n.toLowerCase(),encType:a,formData:s,body:u}}function om(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function Hw(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Uw(e,t,n){let o=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let u=await Hw(s,n);return u.links?u.links():[]}return[]}));return Yw(o.flat(1).filter(Vw).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Yv(e,t,n,o,a,s){let u=(f,p)=>n[p]?f.route.id!==n[p].route.id:!0,d=(f,p)=>{var h;return n[p].pathname!==f.pathname||((h=n[p].route.path)==null?void 0:h.endsWith("*"))&&n[p].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,p)=>u(f,p)||d(f,p)):s==="data"?t.filter((f,p)=>{var y;let h=o.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(u(f,p)||d(f,p))return!0;if(f.route.shouldRevalidate){let x=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Ww(e,t){return Kw(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let a=[o.module];return o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Kw(e){return[...new Set(e)]}function qw(e){let t={},n=Object.keys(e).sort();for(let o of n)t[o]=e[o];return t}function Yw(e,t){let n=new Set;return new Set(t),e.reduce((o,a)=>{let s=JSON.stringify(qw(a));return n.has(s)||(n.add(s),o.push({key:s,link:a})),o},[])}function Gw(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function Xw(){let e=b.useContext(Zi);return om(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Jw(){let e=b.useContext(qu);return om(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var im=b.createContext(void 0);im.displayName="FrameworkContext";function R1(){let e=b.useContext(im);return om(e,"You must render this element inside a <HydratedRouter> element"),e}function Qw(e,t){let n=b.useContext(im),[o,a]=b.useState(!1),[s,u]=b.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:p,onMouseLeave:h,onTouchStart:y}=t,x=b.useRef(null);b.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=I=>{I.forEach(T=>{u(T.isIntersecting)})},w=new IntersectionObserver(S,{threshold:.5});return x.current&&w.observe(x.current),()=>{w.disconnect()}}},[e]),b.useEffect(()=>{if(o){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[o]);let k=()=>{a(!0)},C=()=>{a(!1),u(!1)};return n?e!=="intent"?[s,x,{}]:[s,x,{onFocus:ts(d,k),onBlur:ts(f,C),onMouseEnter:ts(p,k),onMouseLeave:ts(h,C),onTouchStart:ts(y,k)}]:[!1,x,{}]}function ts(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zw({page:e,...t}){let{router:n}=Xw(),o=b.useMemo(()=>v1(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?b.createElement(tk,{page:e,matches:o,...t}):null}function ek(e){let{manifest:t,routeModules:n}=R1(),[o,a]=b.useState([]);return b.useEffect(()=>{let s=!1;return Uw(e,t,n).then(u=>{s||a(u)}),()=>{s=!0}},[e,t,n]),o}function tk({page:e,matches:t,...n}){let o=Po(),{manifest:a,routeModules:s}=R1(),{loaderData:u,matches:d}=Jw(),f=b.useMemo(()=>Yv(e,t,d,a,o,"data"),[e,t,d,a,o]),p=b.useMemo(()=>Yv(e,t,d,a,o,"assets"),[e,t,d,a,o]),h=b.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let k=new Set,C=!1;if(t.forEach(w=>{var T;let I=a.routes[w.route.id];!I||!I.hasLoader||(!f.some(E=>E.route.id===w.route.id)&&w.route.id in u&&((T=s[w.route.id])!=null&&T.shouldRevalidate)||I.hasClientLoader?C=!0:k.add(w.route.id))}),k.size===0)return[];let S=Gw(e);return C&&k.size>0&&S.searchParams.set("_routes",t.filter(w=>k.has(w.route.id)).map(w=>w.route.id).join(",")),[S.pathname+S.search]},[u,o,a,f,t,e,s]),y=b.useMemo(()=>Ww(p,a),[p,a]),x=ek(p);return b.createElement(b.Fragment,null,h.map(k=>b.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...n})),y.map(k=>b.createElement("link",{key:k,rel:"modulepreload",href:k,...n})),x.map(({key:k,link:C})=>b.createElement("link",{key:k,...C})))}function nk(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var I1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I1&&(window.__reactRouterVersion="7.1.5")}catch{}function rk({basename:e,children:t,window:n}){let o=b.useRef();o.current==null&&(o.current=UC({window:n,v5Compat:!0}));let a=o.current,[s,u]=b.useState({action:a.action,location:a.location}),d=b.useCallback(f=>{b.startTransition(()=>u(f))},[u]);return b.useLayoutEffect(()=>a.listen(d),[a,d]),b.createElement(Nw,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var T1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,N1=b.forwardRef(function({onClick:t,discover:n="render",prefetch:o="none",relative:a,reloadDocument:s,replace:u,state:d,target:f,to:p,preventScrollReset:h,viewTransition:y,...x},k){let{basename:C}=b.useContext(kr),S=typeof p=="string"&&T1.test(p),w,I=!1;if(typeof p=="string"&&S&&(w=p,I1))try{let J=new URL(window.location.href),R=p.startsWith("//")?new URL(J.protocol+p):new URL(p),M=So(R.pathname,C);R.origin===J.origin&&M!=null?p=M+R.search+R.hash:I=!0}catch{er(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=gw(p,{relative:a}),[E,N,$]=Qw(o,x),j=sk(p,{replace:u,state:d,target:f,preventScrollReset:h,relative:a,viewTransition:y});function A(J){t&&t(J),J.defaultPrevented||j(J)}let F=b.createElement("a",{...x,...$,href:w||T,onClick:I||s?t:A,ref:nk(k,N),target:f,"data-discover":!S&&n==="render"?"true":void 0});return E&&!S?b.createElement(b.Fragment,null,F,b.createElement(Zw,{page:T})):F});N1.displayName="Link";var ok=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:o="",end:a=!1,style:s,to:u,viewTransition:d,children:f,...p},h){let y=zs(u,{relative:p.relative}),x=Po(),k=b.useContext(qu),{navigator:C,basename:S}=b.useContext(kr),w=k!=null&&fk(y)&&d===!0,I=C.encodeLocation?C.encodeLocation(y).pathname:y.pathname,T=x.pathname,E=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;n||(T=T.toLowerCase(),E=E?E.toLowerCase():null,I=I.toLowerCase()),E&&S&&(E=So(E,S)||E);const N=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let $=T===I||!a&&T.startsWith(I)&&T.charAt(N)==="/",j=E!=null&&(E===I||!a&&E.startsWith(I)&&E.charAt(I.length)==="/"),A={isActive:$,isPending:j,isTransitioning:w},F=$?t:void 0,J;typeof o=="function"?J=o(A):J=[o,$?"active":null,j?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let R=typeof s=="function"?s(A):s;return b.createElement(N1,{...p,"aria-current":F,className:J,ref:h,style:R,to:u,viewTransition:d},typeof f=="function"?f(A):f)});ok.displayName="NavLink";var ik=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:o,replace:a,state:s,method:u=hu,action:d,onSubmit:f,relative:p,preventScrollReset:h,viewTransition:y,...x},k)=>{let C=ck(),S=dk(d,{relative:p}),w=u.toLowerCase()==="get"?"get":"post",I=typeof d=="string"&&T1.test(d),T=E=>{if(f&&f(E),E.defaultPrevented)return;E.preventDefault();let N=E.nativeEvent.submitter,$=(N==null?void 0:N.getAttribute("formmethod"))||u;C(N||E.currentTarget,{fetcherKey:t,method:$,navigate:n,replace:a,state:s,relative:p,preventScrollReset:h,viewTransition:y})};return b.createElement("form",{ref:k,method:w,action:S,onSubmit:o?f:T,...x,"data-discover":!I&&e==="render"?"true":void 0})});ik.displayName="Form";function ak(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _1(e){let t=b.useContext(Zi);return ot(t,ak(e)),t}function sk(e,{target:t,replace:n,state:o,preventScrollReset:a,relative:s,viewTransition:u}={}){let d=tr(),f=Po(),p=zs(e,{relative:s});return b.useCallback(h=>{if(zw(h,t)){h.preventDefault();let y=n!==void 0?n:ws(f)===ws(p);d(e,{replace:y,state:o,preventScrollReset:a,relative:s,viewTransition:u})}},[f,d,p,n,o,t,e,a,s,u])}function Xu(e){er(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(tp(e)),n=b.useRef(!1),o=Po(),a=b.useMemo(()=>Dw(o.search,n.current?null:t.current),[o.search]),s=tr(),u=b.useCallback((d,f)=>{const p=tp(typeof d=="function"?d(a):d);n.current=!0,s("?"+p,f)},[s,a]);return[a,u]}var lk=0,uk=()=>`__${String(++lk)}__`;function ck(){let{router:e}=_1("useSubmit"),{basename:t}=b.useContext(kr),n=$w();return b.useCallback(async(o,a={})=>{let{action:s,method:u,encType:d,formData:f,body:p}=Fw(o,t);if(a.navigate===!1){let h=a.fetcherKey||uk();await e.fetch(h,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||u,formEncType:a.encType||d,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||u,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function dk(e,{relative:t}={}){let{basename:n}=b.useContext(kr),o=b.useContext(Er);ot(o,"useFormAction must be used inside a RouteContext");let[a]=o.matches.slice(-1),s={...zs(e||".",{relative:t})},u=Po();if(e==null){s.search=u.search;let d=new URLSearchParams(s.search),f=d.getAll("index");if(f.some(h=>h==="")){d.delete("index"),f.filter(y=>y).forEach(y=>d.append("index",y));let h=d.toString();s.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Mr([n,s.pathname])),ws(s)}function fk(e,t={}){let n=b.useContext(w1);ot(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=_1("useViewTransitionState"),a=zs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=So(n.currentLocation.pathname,o)||n.currentLocation.pathname,u=So(n.nextLocation.pathname,o)||n.nextLocation.pathname;return Nu(a.pathname,u)!=null||Nu(a.pathname,s)!=null}new TextEncoder;/*!
52
- * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
53
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
54
- * Copyright 2024 Fonticons, Inc.
55
- */const pk={prefix:"fas",iconName:"film",icon:[512,512,[127902],"f008","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM48 368l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm368-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM48 240l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm368-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM48 112l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16L64 96c-8.8 0-16 7.2-16 16zM416 96c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM160 128l0 64c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32L192 96c-17.7 0-32 14.3-32 32zm32 160c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-128 0z"]},mk={prefix:"fas",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l16 0 0 34.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6L256 64l16 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L224 0 176 0zm72 192l0 128c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-128c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},hk={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},gk={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},vk={prefix:"fas",iconName:"left-long",icon:[512,512,["long-arrow-alt-left"],"f30a","M177.5 414c-8.8 3.8-19 2-26-4.6l-144-136C2.7 268.9 0 262.6 0 256s2.7-12.9 7.5-17.4l144-136c7-6.6 17.2-8.4 26-4.6s14.5 12.5 14.5 22l0 72 288 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l-288 0 0 72c0 9.6-5.7 18.2-14.5 22z"]},yk={prefix:"fas",iconName:"right-long",icon:[512,512,["long-arrow-alt-right"],"f30b","M334.5 414c8.8 3.8 19 2 26-4.6l144-136c4.8-4.5 7.5-10.8 7.5-17.4s-2.7-12.9-7.5-17.4l-144-136c-7-6.6-17.2-8.4-26-4.6s-14.5 12.5-14.5 22l0 72L32 192c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l288 0 0 72c0 9.6 5.7 18.2 14.5 22z"]},np={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},vu={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},O1={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},xk={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},bk=xk,j1={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]},rp={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},am={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Sk={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},Ck=Sk,sm={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},wk={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};/*!
56
- * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
57
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
58
- * Copyright 2024 Fonticons, Inc.
59
- */function kk(e,t,n){return(t=Pk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(n),!0).forEach(function(o){kk(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gv(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Ek(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pk(e){var t=Ek(e,"string");return typeof t=="symbol"?t:t+""}const Xv=()=>{};let lm={},A1={},L1=null,z1={mark:Xv,measure:Xv};try{typeof window<"u"&&(lm=window),typeof document<"u"&&(A1=document),typeof MutationObserver<"u"&&(L1=MutationObserver),typeof performance<"u"&&(z1=performance)}catch{}const{userAgent:Jv=""}=lm.navigator||{},Co=lm,Ze=A1,Qv=L1,lu=z1;Co.document;const qr=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",D1=~Jv.indexOf("MSIE")||~Jv.indexOf("Trident/");var $k=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Rk=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,B1={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Ik={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},M1=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Ut="classic",Ju="duotone",Tk="sharp",Nk="sharp-duotone",F1=[Ut,Ju,Tk,Nk],_k={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},Ok={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},jk=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Ak={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},Lk=["fak","fa-kit","fakd","fa-kit-duotone"],Zv={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},zk=["kit"],Dk={kit:{"fa-kit":"fak"}},Bk=["fak","fakd"],Mk={kit:{fak:"fa-kit"}},e0={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},uu={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Fk=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Hk=["fak","fa-kit","fakd","fa-kit-duotone"],Vk={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Uk={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},Wk={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},op={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},Kk=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ip=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...Fk,...Kk],qk=["solid","regular","light","thin","duotone","brands"],H1=[1,2,3,4,5,6,7,8,9,10],Yk=H1.concat([11,12,13,14,15,16,17,18,19,20]),Gk=[...Object.keys(Wk),...qk,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",uu.GROUP,uu.SWAP_OPACITY,uu.PRIMARY,uu.SECONDARY].concat(H1.map(e=>"".concat(e,"x"))).concat(Yk.map(e=>"w-".concat(e))),Xk={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Hr="___FONT_AWESOME___",ap=16,V1="fa",U1="svg-inline--fa",Qo="data-fa-i2svg",sp="data-fa-pseudo-element",Jk="data-fa-pseudo-element-pending",um="data-prefix",cm="data-icon",t0="fontawesome-i2svg",Qk="async",Zk=["HTML","HEAD","STYLE","SCRIPT"],W1=(()=>{try{return!0}catch{return!1}})();function Ds(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Ut]}})}const K1=le({},B1);K1[Ut]=le(le(le(le({},{"fa-duotone":"duotone"}),B1[Ut]),Zv.kit),Zv["kit-duotone"]);const eE=Ds(K1),lp=le({},Ak);lp[Ut]=le(le(le(le({},{duotone:"fad"}),lp[Ut]),e0.kit),e0["kit-duotone"]);const n0=Ds(lp),up=le({},op);up[Ut]=le(le({},up[Ut]),Mk.kit);const dm=Ds(up),cp=le({},Uk);cp[Ut]=le(le({},cp[Ut]),Dk.kit);Ds(cp);const tE=$k,q1="fa-layers-text",nE=Rk,rE=le({},_k);Ds(rE);const oE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ef=Ik,iE=[...zk,...Gk],ms=Co.FontAwesomeConfig||{};function aE(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function sE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ze&&typeof Ze.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,o]=t;const a=sE(aE(n));a!=null&&(ms[o]=a)});const Y1={styleDefault:"solid",familyDefault:Ut,cssPrefix:V1,replacementClass:U1,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ms.familyPrefix&&(ms.cssPrefix=ms.familyPrefix);const Vi=le(le({},Y1),ms);Vi.autoReplaceSvg||(Vi.observeMutations=!1);const we={};Object.keys(Y1).forEach(e=>{Object.defineProperty(we,e,{enumerable:!0,set:function(t){Vi[e]=t,hs.forEach(n=>n(we))},get:function(){return Vi[e]}})});Object.defineProperty(we,"familyPrefix",{enumerable:!0,set:function(e){Vi.cssPrefix=e,hs.forEach(t=>t(we))},get:function(){return Vi.cssPrefix}});Co.FontAwesomeConfig=we;const hs=[];function lE(e){return hs.push(e),()=>{hs.splice(hs.indexOf(e),1)}}const go=ap,yr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function uE(e){if(!e||!qr)return;const t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ze.head.childNodes;let o=null;for(let a=n.length-1;a>-1;a--){const s=n[a],u=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(o=s)}return Ze.head.insertBefore(t,o),e}const cE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ks(){let e=12,t="";for(;e-- >0;)t+=cE[Math.random()*62|0];return t}function ea(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function fm(e){return e.classList?ea(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function G1(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function dE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(G1(e[n]),'" '),"").trim()}function Qu(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function pm(e){return e.size!==yr.size||e.x!==yr.x||e.y!==yr.y||e.rotate!==yr.rotate||e.flipX||e.flipY}function fE(e){let{transform:t,containerWidth:n,iconWidth:o}=e;const a={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),u="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),d="rotate(".concat(t.rotate," 0 0)"),f={transform:"".concat(s," ").concat(u," ").concat(d)},p={transform:"translate(".concat(o/2*-1," -256)")};return{outer:a,inner:f,path:p}}function pE(e){let{transform:t,width:n=ap,height:o=ap,startCentered:a=!1}=e,s="";return a&&D1?s+="translate(".concat(t.x/go-n/2,"em, ").concat(t.y/go-o/2,"em) "):a?s+="translate(calc(-50% + ".concat(t.x/go,"em), calc(-50% + ").concat(t.y/go,"em)) "):s+="translate(".concat(t.x/go,"em, ").concat(t.y/go,"em) "),s+="scale(".concat(t.size/go*(t.flipX?-1:1),", ").concat(t.size/go*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var mE=`:root, :host {
60
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
61
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
62
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
63
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
64
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
65
- --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
66
- --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
67
- --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
68
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
69
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
70
- --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
71
- --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
72
- --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
73
- --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
74
- --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
75
- --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
76
- --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
77
- }
78
-
79
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
80
- overflow: visible;
81
- box-sizing: content-box;
82
- }
83
-
84
- .svg-inline--fa {
85
- display: var(--fa-display, inline-block);
86
- height: 1em;
87
- overflow: visible;
88
- vertical-align: -0.125em;
89
- }
90
- .svg-inline--fa.fa-2xs {
91
- vertical-align: 0.1em;
92
- }
93
- .svg-inline--fa.fa-xs {
94
- vertical-align: 0em;
95
- }
96
- .svg-inline--fa.fa-sm {
97
- vertical-align: -0.0714285705em;
98
- }
99
- .svg-inline--fa.fa-lg {
100
- vertical-align: -0.2em;
101
- }
102
- .svg-inline--fa.fa-xl {
103
- vertical-align: -0.25em;
104
- }
105
- .svg-inline--fa.fa-2xl {
106
- vertical-align: -0.3125em;
107
- }
108
- .svg-inline--fa.fa-pull-left {
109
- margin-right: var(--fa-pull-margin, 0.3em);
110
- width: auto;
111
- }
112
- .svg-inline--fa.fa-pull-right {
113
- margin-left: var(--fa-pull-margin, 0.3em);
114
- width: auto;
115
- }
116
- .svg-inline--fa.fa-li {
117
- width: var(--fa-li-width, 2em);
118
- top: 0.25em;
119
- }
120
- .svg-inline--fa.fa-fw {
121
- width: var(--fa-fw-width, 1.25em);
122
- }
123
-
124
- .fa-layers svg.svg-inline--fa {
125
- bottom: 0;
126
- left: 0;
127
- margin: auto;
128
- position: absolute;
129
- right: 0;
130
- top: 0;
131
- }
132
-
133
- .fa-layers-counter, .fa-layers-text {
134
- display: inline-block;
135
- position: absolute;
136
- text-align: center;
137
- }
138
-
139
- .fa-layers {
140
- display: inline-block;
141
- height: 1em;
142
- position: relative;
143
- text-align: center;
144
- vertical-align: -0.125em;
145
- width: 1em;
146
- }
147
- .fa-layers svg.svg-inline--fa {
148
- transform-origin: center center;
149
- }
150
-
151
- .fa-layers-text {
152
- left: 50%;
153
- top: 50%;
154
- transform: translate(-50%, -50%);
155
- transform-origin: center center;
156
- }
157
-
158
- .fa-layers-counter {
159
- background-color: var(--fa-counter-background-color, #ff253a);
160
- border-radius: var(--fa-counter-border-radius, 1em);
161
- box-sizing: border-box;
162
- color: var(--fa-inverse, #fff);
163
- line-height: var(--fa-counter-line-height, 1);
164
- max-width: var(--fa-counter-max-width, 5em);
165
- min-width: var(--fa-counter-min-width, 1.5em);
166
- overflow: hidden;
167
- padding: var(--fa-counter-padding, 0.25em 0.5em);
168
- right: var(--fa-right, 0);
169
- text-overflow: ellipsis;
170
- top: var(--fa-top, 0);
171
- transform: scale(var(--fa-counter-scale, 0.25));
172
- transform-origin: top right;
173
- }
174
-
175
- .fa-layers-bottom-right {
176
- bottom: var(--fa-bottom, 0);
177
- right: var(--fa-right, 0);
178
- top: auto;
179
- transform: scale(var(--fa-layers-scale, 0.25));
180
- transform-origin: bottom right;
181
- }
182
-
183
- .fa-layers-bottom-left {
184
- bottom: var(--fa-bottom, 0);
185
- left: var(--fa-left, 0);
186
- right: auto;
187
- top: auto;
188
- transform: scale(var(--fa-layers-scale, 0.25));
189
- transform-origin: bottom left;
190
- }
191
-
192
- .fa-layers-top-right {
193
- top: var(--fa-top, 0);
194
- right: var(--fa-right, 0);
195
- transform: scale(var(--fa-layers-scale, 0.25));
196
- transform-origin: top right;
197
- }
198
-
199
- .fa-layers-top-left {
200
- left: var(--fa-left, 0);
201
- right: auto;
202
- top: var(--fa-top, 0);
203
- transform: scale(var(--fa-layers-scale, 0.25));
204
- transform-origin: top left;
205
- }
206
-
207
- .fa-1x {
208
- font-size: 1em;
209
- }
210
-
211
- .fa-2x {
212
- font-size: 2em;
213
- }
214
-
215
- .fa-3x {
216
- font-size: 3em;
217
- }
218
-
219
- .fa-4x {
220
- font-size: 4em;
221
- }
222
-
223
- .fa-5x {
224
- font-size: 5em;
225
- }
226
-
227
- .fa-6x {
228
- font-size: 6em;
229
- }
230
-
231
- .fa-7x {
232
- font-size: 7em;
233
- }
234
-
235
- .fa-8x {
236
- font-size: 8em;
237
- }
238
-
239
- .fa-9x {
240
- font-size: 9em;
241
- }
242
-
243
- .fa-10x {
244
- font-size: 10em;
245
- }
246
-
247
- .fa-2xs {
248
- font-size: 0.625em;
249
- line-height: 0.1em;
250
- vertical-align: 0.225em;
251
- }
252
-
253
- .fa-xs {
254
- font-size: 0.75em;
255
- line-height: 0.0833333337em;
256
- vertical-align: 0.125em;
257
- }
258
-
259
- .fa-sm {
260
- font-size: 0.875em;
261
- line-height: 0.0714285718em;
262
- vertical-align: 0.0535714295em;
263
- }
264
-
265
- .fa-lg {
266
- font-size: 1.25em;
267
- line-height: 0.05em;
268
- vertical-align: -0.075em;
269
- }
270
-
271
- .fa-xl {
272
- font-size: 1.5em;
273
- line-height: 0.0416666682em;
274
- vertical-align: -0.125em;
275
- }
276
-
277
- .fa-2xl {
278
- font-size: 2em;
279
- line-height: 0.03125em;
280
- vertical-align: -0.1875em;
281
- }
282
-
283
- .fa-fw {
284
- text-align: center;
285
- width: 1.25em;
286
- }
287
-
288
- .fa-ul {
289
- list-style-type: none;
290
- margin-left: var(--fa-li-margin, 2.5em);
291
- padding-left: 0;
292
- }
293
- .fa-ul > li {
294
- position: relative;
295
- }
296
-
297
- .fa-li {
298
- left: calc(-1 * var(--fa-li-width, 2em));
299
- position: absolute;
300
- text-align: center;
301
- width: var(--fa-li-width, 2em);
302
- line-height: inherit;
303
- }
304
-
305
- .fa-border {
306
- border-color: var(--fa-border-color, #eee);
307
- border-radius: var(--fa-border-radius, 0.1em);
308
- border-style: var(--fa-border-style, solid);
309
- border-width: var(--fa-border-width, 0.08em);
310
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
311
- }
312
-
313
- .fa-pull-left {
314
- float: left;
315
- margin-right: var(--fa-pull-margin, 0.3em);
316
- }
317
-
318
- .fa-pull-right {
319
- float: right;
320
- margin-left: var(--fa-pull-margin, 0.3em);
321
- }
322
-
323
- .fa-beat {
324
- animation-name: fa-beat;
325
- animation-delay: var(--fa-animation-delay, 0s);
326
- animation-direction: var(--fa-animation-direction, normal);
327
- animation-duration: var(--fa-animation-duration, 1s);
328
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
329
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
330
- }
331
-
332
- .fa-bounce {
333
- animation-name: fa-bounce;
334
- animation-delay: var(--fa-animation-delay, 0s);
335
- animation-direction: var(--fa-animation-direction, normal);
336
- animation-duration: var(--fa-animation-duration, 1s);
337
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
338
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
339
- }
340
-
341
- .fa-fade {
342
- animation-name: fa-fade;
343
- animation-delay: var(--fa-animation-delay, 0s);
344
- animation-direction: var(--fa-animation-direction, normal);
345
- animation-duration: var(--fa-animation-duration, 1s);
346
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
347
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
348
- }
349
-
350
- .fa-beat-fade {
351
- animation-name: fa-beat-fade;
352
- animation-delay: var(--fa-animation-delay, 0s);
353
- animation-direction: var(--fa-animation-direction, normal);
354
- animation-duration: var(--fa-animation-duration, 1s);
355
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
356
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
357
- }
358
-
359
- .fa-flip {
360
- animation-name: fa-flip;
361
- animation-delay: var(--fa-animation-delay, 0s);
362
- animation-direction: var(--fa-animation-direction, normal);
363
- animation-duration: var(--fa-animation-duration, 1s);
364
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
365
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
366
- }
367
-
368
- .fa-shake {
369
- animation-name: fa-shake;
370
- animation-delay: var(--fa-animation-delay, 0s);
371
- animation-direction: var(--fa-animation-direction, normal);
372
- animation-duration: var(--fa-animation-duration, 1s);
373
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
374
- animation-timing-function: var(--fa-animation-timing, linear);
375
- }
376
-
377
- .fa-spin {
378
- animation-name: fa-spin;
379
- animation-delay: var(--fa-animation-delay, 0s);
380
- animation-direction: var(--fa-animation-direction, normal);
381
- animation-duration: var(--fa-animation-duration, 2s);
382
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
383
- animation-timing-function: var(--fa-animation-timing, linear);
384
- }
385
-
386
- .fa-spin-reverse {
387
- --fa-animation-direction: reverse;
388
- }
389
-
390
- .fa-pulse,
391
- .fa-spin-pulse {
392
- animation-name: fa-spin;
393
- animation-direction: var(--fa-animation-direction, normal);
394
- animation-duration: var(--fa-animation-duration, 1s);
395
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
396
- animation-timing-function: var(--fa-animation-timing, steps(8));
397
- }
398
-
399
- @media (prefers-reduced-motion: reduce) {
400
- .fa-beat,
401
- .fa-bounce,
402
- .fa-fade,
403
- .fa-beat-fade,
404
- .fa-flip,
405
- .fa-pulse,
406
- .fa-shake,
407
- .fa-spin,
408
- .fa-spin-pulse {
409
- animation-delay: -1ms;
410
- animation-duration: 1ms;
411
- animation-iteration-count: 1;
412
- transition-delay: 0s;
413
- transition-duration: 0s;
414
- }
415
- }
416
- @keyframes fa-beat {
417
- 0%, 90% {
418
- transform: scale(1);
419
- }
420
- 45% {
421
- transform: scale(var(--fa-beat-scale, 1.25));
422
- }
423
- }
424
- @keyframes fa-bounce {
425
- 0% {
426
- transform: scale(1, 1) translateY(0);
427
- }
428
- 10% {
429
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
430
- }
431
- 30% {
432
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
433
- }
434
- 50% {
435
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
436
- }
437
- 57% {
438
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
439
- }
440
- 64% {
441
- transform: scale(1, 1) translateY(0);
442
- }
443
- 100% {
444
- transform: scale(1, 1) translateY(0);
445
- }
446
- }
447
- @keyframes fa-fade {
448
- 50% {
449
- opacity: var(--fa-fade-opacity, 0.4);
450
- }
451
- }
452
- @keyframes fa-beat-fade {
453
- 0%, 100% {
454
- opacity: var(--fa-beat-fade-opacity, 0.4);
455
- transform: scale(1);
456
- }
457
- 50% {
458
- opacity: 1;
459
- transform: scale(var(--fa-beat-fade-scale, 1.125));
460
- }
461
- }
462
- @keyframes fa-flip {
463
- 50% {
464
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
465
- }
466
- }
467
- @keyframes fa-shake {
468
- 0% {
469
- transform: rotate(-15deg);
470
- }
471
- 4% {
472
- transform: rotate(15deg);
473
- }
474
- 8%, 24% {
475
- transform: rotate(-18deg);
476
- }
477
- 12%, 28% {
478
- transform: rotate(18deg);
479
- }
480
- 16% {
481
- transform: rotate(-22deg);
482
- }
483
- 20% {
484
- transform: rotate(22deg);
485
- }
486
- 32% {
487
- transform: rotate(-12deg);
488
- }
489
- 36% {
490
- transform: rotate(12deg);
491
- }
492
- 40%, 100% {
493
- transform: rotate(0deg);
494
- }
495
- }
496
- @keyframes fa-spin {
497
- 0% {
498
- transform: rotate(0deg);
499
- }
500
- 100% {
501
- transform: rotate(360deg);
502
- }
503
- }
504
- .fa-rotate-90 {
505
- transform: rotate(90deg);
506
- }
507
-
508
- .fa-rotate-180 {
509
- transform: rotate(180deg);
510
- }
511
-
512
- .fa-rotate-270 {
513
- transform: rotate(270deg);
514
- }
515
-
516
- .fa-flip-horizontal {
517
- transform: scale(-1, 1);
518
- }
519
-
520
- .fa-flip-vertical {
521
- transform: scale(1, -1);
522
- }
523
-
524
- .fa-flip-both,
525
- .fa-flip-horizontal.fa-flip-vertical {
526
- transform: scale(-1, -1);
527
- }
528
-
529
- .fa-rotate-by {
530
- transform: rotate(var(--fa-rotate-angle, 0));
531
- }
532
-
533
- .fa-stack {
534
- display: inline-block;
535
- vertical-align: middle;
536
- height: 2em;
537
- position: relative;
538
- width: 2.5em;
539
- }
540
-
541
- .fa-stack-1x,
542
- .fa-stack-2x {
543
- bottom: 0;
544
- left: 0;
545
- margin: auto;
546
- position: absolute;
547
- right: 0;
548
- top: 0;
549
- z-index: var(--fa-stack-z-index, auto);
550
- }
551
-
552
- .svg-inline--fa.fa-stack-1x {
553
- height: 1em;
554
- width: 1.25em;
555
- }
556
- .svg-inline--fa.fa-stack-2x {
557
- height: 2em;
558
- width: 2.5em;
559
- }
560
-
561
- .fa-inverse {
562
- color: var(--fa-inverse, #fff);
563
- }
564
-
565
- .sr-only,
566
- .fa-sr-only {
567
- position: absolute;
568
- width: 1px;
569
- height: 1px;
570
- padding: 0;
571
- margin: -1px;
572
- overflow: hidden;
573
- clip: rect(0, 0, 0, 0);
574
- white-space: nowrap;
575
- border-width: 0;
576
- }
577
-
578
- .sr-only-focusable:not(:focus),
579
- .fa-sr-only-focusable:not(:focus) {
580
- position: absolute;
581
- width: 1px;
582
- height: 1px;
583
- padding: 0;
584
- margin: -1px;
585
- overflow: hidden;
586
- clip: rect(0, 0, 0, 0);
587
- white-space: nowrap;
588
- border-width: 0;
589
- }
590
-
591
- .svg-inline--fa .fa-primary {
592
- fill: var(--fa-primary-color, currentColor);
593
- opacity: var(--fa-primary-opacity, 1);
594
- }
595
-
596
- .svg-inline--fa .fa-secondary {
597
- fill: var(--fa-secondary-color, currentColor);
598
- opacity: var(--fa-secondary-opacity, 0.4);
599
- }
600
-
601
- .svg-inline--fa.fa-swap-opacity .fa-primary {
602
- opacity: var(--fa-secondary-opacity, 0.4);
603
- }
604
-
605
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
606
- opacity: var(--fa-primary-opacity, 1);
607
- }
608
-
609
- .svg-inline--fa mask .fa-primary,
610
- .svg-inline--fa mask .fa-secondary {
611
- fill: black;
612
- }`;function X1(){const e=V1,t=U1,n=we.cssPrefix,o=we.replacementClass;let a=mE;if(n!==e||o!==t){const s=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),d=new RegExp("\\.".concat(t),"g");a=a.replace(s,".".concat(n,"-")).replace(u,"--".concat(n,"-")).replace(d,".".concat(o))}return a}let r0=!1;function Pf(){we.autoAddCss&&!r0&&(uE(X1()),r0=!0)}var hE={mixout(){return{dom:{css:X1,insertCss:Pf}}},hooks(){return{beforeDOMElementCreation(){Pf()},beforeI2svg(){Pf()}}}};const Vr=Co||{};Vr[Hr]||(Vr[Hr]={});Vr[Hr].styles||(Vr[Hr].styles={});Vr[Hr].hooks||(Vr[Hr].hooks={});Vr[Hr].shims||(Vr[Hr].shims=[]);var xr=Vr[Hr];const J1=[],Q1=function(){Ze.removeEventListener("DOMContentLoaded",Q1),_u=1,J1.map(e=>e())};let _u=!1;qr&&(_u=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),_u||Ze.addEventListener("DOMContentLoaded",Q1));function gE(e){qr&&(_u?setTimeout(e,0):J1.push(e))}function Bs(e){const{tag:t,attributes:n={},children:o=[]}=e;return typeof e=="string"?G1(e):"<".concat(t," ").concat(dE(n),">").concat(o.map(Bs).join(""),"</").concat(t,">")}function o0(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var $f=function(t,n,o,a){var s=Object.keys(t),u=s.length,d=n,f,p,h;for(o===void 0?(f=1,h=t[s[0]]):(f=0,h=o);f<u;f++)p=s[f],h=d(h,t[p],p,t);return h};function vE(e){const t=[];let n=0;const o=e.length;for(;n<o;){const a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<o){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((a&1023)<<10)+(s&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function dp(e){const t=vE(e);return t.length===1?t[0].toString(16):null}function yE(e,t){const n=e.length;let o=e.charCodeAt(t),a;return o>=55296&&o<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(o-55296)*1024+a-56320+65536:o}function i0(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return!!o.icon?t[o.iconName]=o.icon:t[n]=o,t},{})}function fp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:o=!1}=n,a=i0(t);typeof xr.hooks.addPack=="function"&&!o?xr.hooks.addPack(e,i0(t)):xr.styles[e]=le(le({},xr.styles[e]||{}),a),e==="fas"&&fp("fa",t)}const{styles:Es,shims:xE}=xr,Z1=Object.keys(dm),bE=Z1.reduce((e,t)=>(e[t]=Object.keys(dm[t]),e),{});let mm=null,ex={},tx={},nx={},rx={},ox={};function SE(e){return~iE.indexOf(e)}function CE(e,t){const n=t.split("-"),o=n[0],a=n.slice(1).join("-");return o===e&&a!==""&&!SE(a)?a:null}const ix=()=>{const e=o=>$f(Es,(a,s,u)=>(a[u]=$f(s,o,{}),a),{});ex=e((o,a,s)=>(a[3]&&(o[a[3]]=s),a[2]&&a[2].filter(d=>typeof d=="number").forEach(d=>{o[d.toString(16)]=s}),o)),tx=e((o,a,s)=>(o[s]=s,a[2]&&a[2].filter(d=>typeof d=="string").forEach(d=>{o[d]=s}),o)),ox=e((o,a,s)=>{const u=a[2];return o[s]=s,u.forEach(d=>{o[d]=s}),o});const t="far"in Es||we.autoFetchSvg,n=$f(xE,(o,a)=>{const s=a[0];let u=a[1];const d=a[2];return u==="far"&&!t&&(u="fas"),typeof s=="string"&&(o.names[s]={prefix:u,iconName:d}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:u,iconName:d}),o},{names:{},unicodes:{}});nx=n.names,rx=n.unicodes,mm=Zu(we.styleDefault,{family:we.familyDefault})};lE(e=>{mm=Zu(e.styleDefault,{family:we.familyDefault})});ix();function hm(e,t){return(ex[e]||{})[t]}function wE(e,t){return(tx[e]||{})[t]}function Wo(e,t){return(ox[e]||{})[t]}function ax(e){return nx[e]||{prefix:null,iconName:null}}function kE(e){const t=rx[e],n=hm("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function wo(){return mm}const sx=()=>({prefix:null,iconName:null,rest:[]});function EE(e){let t=Ut;const n=Z1.reduce((o,a)=>(o[a]="".concat(we.cssPrefix,"-").concat(a),o),{});return F1.forEach(o=>{(e.includes(n[o])||e.some(a=>bE[o].includes(a)))&&(t=o)}),t}function Zu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Ut}=t,o=eE[n][e];if(n===Ju&&!e)return"fad";const a=n0[n][e]||n0[n][o],s=e in xr.styles?e:null;return a||s||null}function PE(e){let t=[],n=null;return e.forEach(o=>{const a=CE(we.cssPrefix,o);a?n=a:o&&t.push(o)}),{iconName:n,rest:t}}function a0(e){return e.sort().filter((t,n,o)=>o.indexOf(t)===n)}function ec(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let o=null;const a=ip.concat(Hk),s=a0(e.filter(y=>a.includes(y))),u=a0(e.filter(y=>!ip.includes(y))),d=s.filter(y=>(o=y,!M1.includes(y))),[f=null]=d,p=EE(s),h=le(le({},PE(u)),{},{prefix:Zu(f,{family:p})});return le(le(le({},h),TE({values:e,family:p,styles:Es,config:we,canonical:h,givenPrefix:o})),$E(n,o,h))}function $E(e,t,n){let{prefix:o,iconName:a}=n;if(e||!o||!a)return{prefix:o,iconName:a};const s=t==="fa"?ax(a):{},u=Wo(o,a);return a=s.iconName||u||a,o=s.prefix||o,o==="far"&&!Es.far&&Es.fas&&!we.autoFetchSvg&&(o="fas"),{prefix:o,iconName:a}}const RE=F1.filter(e=>e!==Ut||e!==Ju),IE=Object.keys(op).filter(e=>e!==Ut).map(e=>Object.keys(op[e])).flat();function TE(e){const{values:t,family:n,canonical:o,givenPrefix:a="",styles:s={},config:u={}}=e,d=n===Ju,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",h=o.prefix==="fad"||o.prefix==="fa-duotone";if(!d&&(f||p||h)&&(o.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(o.prefix="fab"),!o.prefix&&RE.includes(n)&&(Object.keys(s).find(x=>IE.includes(x))||u.autoFetchSvg)){const x=jk.get(n).defaultShortPrefixId;o.prefix=x,o.iconName=Wo(o.prefix,o.iconName)||o.iconName}return(o.prefix==="fa"||a==="fa")&&(o.prefix=wo()||"fas"),o}class NE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach(s=>{this.definitions[s]=le(le({},this.definitions[s]||{}),a[s]),fp(s,a[s]);const u=dm[Ut][s];u&&fp(u,a[s]),ix()})}reset(){this.definitions={}}_pullDefinitions(t,n){const o=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(o).map(a=>{const{prefix:s,iconName:u,icon:d}=o[a],f=d[2];t[s]||(t[s]={}),f.length>0&&f.forEach(p=>{typeof p=="string"&&(t[s][p]=d)}),t[s][u]=d}),t}}let s0=[],Li={};const Di={},_E=Object.keys(Di);function OE(e,t){let{mixoutsTo:n}=t;return s0=e,Li={},Object.keys(Di).forEach(o=>{_E.indexOf(o)===-1&&delete Di[o]}),s0.forEach(o=>{const a=o.mixout?o.mixout():{};if(Object.keys(a).forEach(s=>{typeof a[s]=="function"&&(n[s]=a[s]),typeof a[s]=="object"&&Object.keys(a[s]).forEach(u=>{n[s]||(n[s]={}),n[s][u]=a[s][u]})}),o.hooks){const s=o.hooks();Object.keys(s).forEach(u=>{Li[u]||(Li[u]=[]),Li[u].push(s[u])})}o.provides&&o.provides(Di)}),n}function pp(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return(Li[e]||[]).forEach(u=>{t=u.apply(null,[t,...o])}),t}function Zo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(Li[e]||[]).forEach(s=>{s.apply(null,n)})}function ko(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Di[e]?Di[e].apply(null,t):void 0}function mp(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||wo();if(t)return t=Wo(n,t)||t,o0(lx.definitions,n,t)||o0(xr.styles,n,t)}const lx=new NE,jE=()=>{we.autoReplaceSvg=!1,we.observeMutations=!1,Zo("noAuto")},AE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return qr?(Zo("beforeI2svg",e),ko("pseudoElements2svg",e),ko("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;we.autoReplaceSvg===!1&&(we.autoReplaceSvg=!0),we.observeMutations=!0,gE(()=>{zE({autoReplaceSvgRoot:t}),Zo("watch",e)})}},LE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Wo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Zu(e[0]);return{prefix:n,iconName:Wo(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(we.cssPrefix,"-"))>-1||e.match(tE))){const t=ec(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||wo(),iconName:Wo(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=wo();return{prefix:t,iconName:Wo(t,e)||e}}}},Sn={noAuto:jE,config:we,dom:AE,parse:LE,library:lx,findIconDefinition:mp,toHtml:Bs},zE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(xr.styles).length>0||we.autoFetchSvg)&&qr&&we.autoReplaceSvg&&Sn.dom.i2svg({node:t})};function tc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Bs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!qr)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function DE(e){let{children:t,main:n,mask:o,attributes:a,styles:s,transform:u}=e;if(pm(u)&&n.found&&!o.found){const{width:d,height:f}=n,p={x:d/f/2,y:.5};a.style=Qu(le(le({},s),{},{"transform-origin":"".concat(p.x+u.x/16,"em ").concat(p.y+u.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function BE(e){let{prefix:t,iconName:n,children:o,attributes:a,symbol:s}=e;const u=s===!0?"".concat(t,"-").concat(we.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:le(le({},a),{},{id:u}),children:o}]}]}function gm(e){const{icons:{main:t,mask:n},prefix:o,iconName:a,transform:s,symbol:u,title:d,maskId:f,titleId:p,extra:h,watchable:y=!1}=e,{width:x,height:k}=n.found?n:t,C=Bk.includes(o),S=[we.replacementClass,a?"".concat(we.cssPrefix,"-").concat(a):""].filter($=>h.classes.indexOf($)===-1).filter($=>$!==""||!!$).concat(h.classes).join(" ");let w={children:[],attributes:le(le({},h.attributes),{},{"data-prefix":o,"data-icon":a,class:S,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(x," ").concat(k)})};const I=C&&!~h.classes.indexOf("fa-fw")?{width:"".concat(x/k*16*.0625,"em")}:{};y&&(w.attributes[Qo]=""),d&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(p||ks())},children:[d]}),delete w.attributes.title);const T=le(le({},w),{},{prefix:o,iconName:a,main:t,mask:n,maskId:f,transform:s,symbol:u,styles:le(le({},I),h.styles)}),{children:E,attributes:N}=n.found&&t.found?ko("generateAbstractMask",T)||{children:[],attributes:{}}:ko("generateAbstractIcon",T)||{children:[],attributes:{}};return T.children=E,T.attributes=N,u?BE(T):DE(T)}function l0(e){const{content:t,width:n,height:o,transform:a,title:s,extra:u,watchable:d=!1}=e,f=le(le(le({},u.attributes),s?{title:s}:{}),{},{class:u.classes.join(" ")});d&&(f[Qo]="");const p=le({},u.styles);pm(a)&&(p.transform=pE({transform:a,startCentered:!0,width:n,height:o}),p["-webkit-transform"]=p.transform);const h=Qu(p);h.length>0&&(f.style=h);const y=[];return y.push({tag:"span",attributes:f,children:[t]}),s&&y.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),y}function ME(e){const{content:t,title:n,extra:o}=e,a=le(le(le({},o.attributes),n?{title:n}:{}),{},{class:o.classes.join(" ")}),s=Qu(o.styles);s.length>0&&(a.style=s);const u=[];return u.push({tag:"span",attributes:a,children:[t]}),n&&u.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),u}const{styles:Rf}=xr;function hp(e){const t=e[0],n=e[1],[o]=e.slice(4);let a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(we.cssPrefix,"-").concat(Ef.GROUP)},children:[{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(Ef.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(we.cssPrefix,"-").concat(Ef.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}const FE={found:!1,width:512,height:512};function HE(e,t){!W1&&!we.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function gp(e,t){let n=t;return t==="fa"&&we.styleDefault!==null&&(t=wo()),new Promise((o,a)=>{if(n==="fa"){const s=ax(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&Rf[t]&&Rf[t][e]){const s=Rf[t][e];return o(hp(s))}HE(e,t),o(le(le({},FE),{},{icon:we.showMissingIcons&&e?ko("missingIconAbstract")||{}:{}}))})}const u0=()=>{},vp=we.measurePerformance&&lu&&lu.mark&&lu.measure?lu:{mark:u0,measure:u0},ls='FA "6.7.2"',VE=e=>(vp.mark("".concat(ls," ").concat(e," begins")),()=>ux(e)),ux=e=>{vp.mark("".concat(ls," ").concat(e," ends")),vp.measure("".concat(ls," ").concat(e),"".concat(ls," ").concat(e," begins"),"".concat(ls," ").concat(e," ends"))};var vm={begin:VE,end:ux};const yu=()=>{};function c0(e){return typeof(e.getAttribute?e.getAttribute(Qo):null)=="string"}function UE(e){const t=e.getAttribute?e.getAttribute(um):null,n=e.getAttribute?e.getAttribute(cm):null;return t&&n}function WE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(we.replacementClass)}function KE(){return we.autoReplaceSvg===!0?xu.replace:xu[we.autoReplaceSvg]||xu.replace}function qE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function YE(e){return Ze.createElement(e)}function cx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?qE:YE}=t;if(typeof e=="string")return Ze.createTextNode(e);const o=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])}),(e.children||[]).forEach(function(s){o.appendChild(cx(s,{ceFn:n}))}),o}function GE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const xu={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(cx(n),t)}),t.getAttribute(Qo)===null&&we.keepOriginalSource){let n=Ze.createComment(GE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~fm(t).indexOf(we.replacementClass))return xu.replace(e);const o=new RegExp("".concat(we.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const s=n[0].attributes.class.split(" ").reduce((u,d)=>(d===we.replacementClass||d.match(o)?u.toSvg.push(d):u.toNode.push(d),u),{toNode:[],toSvg:[]});n[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",s.toNode.join(" "))}const a=n.map(s=>Bs(s)).join(`
613
- `);t.setAttribute(Qo,""),t.innerHTML=a}};function d0(e){e()}function dx(e,t){const n=typeof t=="function"?t:yu;if(e.length===0)n();else{let o=d0;we.mutateApproach===Qk&&(o=Co.requestAnimationFrame||d0),o(()=>{const a=KE(),s=vm.begin("mutate");e.map(a),s(),n()})}}let ym=!1;function fx(){ym=!0}function yp(){ym=!1}let Ou=null;function f0(e){if(!Qv||!we.observeMutations)return;const{treeCallback:t=yu,nodeCallback:n=yu,pseudoElementsCallback:o=yu,observeMutationsRoot:a=Ze}=e;Ou=new Qv(s=>{if(ym)return;const u=wo();ea(s).forEach(d=>{if(d.type==="childList"&&d.addedNodes.length>0&&!c0(d.addedNodes[0])&&(we.searchPseudoElements&&o(d.target),t(d.target)),d.type==="attributes"&&d.target.parentNode&&we.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&c0(d.target)&&~oE.indexOf(d.attributeName))if(d.attributeName==="class"&&UE(d.target)){const{prefix:f,iconName:p}=ec(fm(d.target));d.target.setAttribute(um,f||u),p&&d.target.setAttribute(cm,p)}else WE(d.target)&&n(d.target)})}),qr&&Ou.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function XE(){Ou&&Ou.disconnect()}function JE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((o,a)=>{const s=a.split(":"),u=s[0],d=s.slice(1);return u&&d.length>0&&(o[u]=d.join(":").trim()),o},{})),n}function QE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),o=e.innerText!==void 0?e.innerText.trim():"";let a=ec(fm(e));return a.prefix||(a.prefix=wo()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&o.length>0&&(a.iconName=wE(a.prefix,e.innerText)||hm(a.prefix,dp(e.innerText))),!a.iconName&&we.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function ZE(e){const t=ea(e.attributes).reduce((a,s)=>(a.name!=="class"&&a.name!=="style"&&(a[s.name]=s.value),a),{}),n=e.getAttribute("title"),o=e.getAttribute("data-fa-title-id");return we.autoA11y&&(n?t["aria-labelledby"]="".concat(we.replacementClass,"-title-").concat(o||ks()):(t["aria-hidden"]="true",t.focusable="false")),t}function eP(){return{iconName:null,title:null,titleId:null,prefix:null,transform:yr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function p0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:o,rest:a}=QE(e),s=ZE(e),u=pp("parseNodeAttributes",{},e);let d=t.styleParser?JE(e):[];return le({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:yr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:d,attributes:s}},u)}const{styles:tP}=xr;function px(e){const t=we.autoReplaceSvg==="nest"?p0(e,{styleParser:!1}):p0(e);return~t.extra.classes.indexOf(q1)?ko("generateLayersText",e,t):ko("generateSvgReplacementMutation",e,t)}function nP(){return[...Lk,...ip]}function m0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!qr)return Promise.resolve();const n=Ze.documentElement.classList,o=h=>n.add("".concat(t0,"-").concat(h)),a=h=>n.remove("".concat(t0,"-").concat(h)),s=we.autoFetchSvg?nP():M1.concat(Object.keys(tP));s.includes("fa")||s.push("fa");const u=[".".concat(q1,":not([").concat(Qo,"])")].concat(s.map(h=>".".concat(h,":not([").concat(Qo,"])"))).join(", ");if(u.length===0)return Promise.resolve();let d=[];try{d=ea(e.querySelectorAll(u))}catch{}if(d.length>0)o("pending"),a("complete");else return Promise.resolve();const f=vm.begin("onTree"),p=d.reduce((h,y)=>{try{const x=px(y);x&&h.push(x)}catch(x){W1||x.name==="MissingIcon"&&console.error(x)}return h},[]);return new Promise((h,y)=>{Promise.all(p).then(x=>{dx(x,()=>{o("active"),o("complete"),a("pending"),typeof t=="function"&&t(),f(),h()})}).catch(x=>{f(),y(x)})})}function rP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;px(e).then(n=>{n&&dx([n],t)})}function oP(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=(t||{}).icon?t:mp(t||{});let{mask:a}=n;return a&&(a=(a||{}).icon?a:mp(a||{})),e(o,le(le({},n),{},{mask:a}))}}const iP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=yr,symbol:o=!1,mask:a=null,maskId:s=null,title:u=null,titleId:d=null,classes:f=[],attributes:p={},styles:h={}}=t;if(!e)return;const{prefix:y,iconName:x,icon:k}=e;return tc(le({type:"icon"},e),()=>(Zo("beforeDOMElementCreation",{iconDefinition:e,params:t}),we.autoA11y&&(u?p["aria-labelledby"]="".concat(we.replacementClass,"-title-").concat(d||ks()):(p["aria-hidden"]="true",p.focusable="false")),gm({icons:{main:hp(k),mask:a?hp(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:x,transform:le(le({},yr),n),symbol:o,title:u,maskId:s,titleId:d,extra:{attributes:p,styles:h,classes:f}})))};var aP={mixout(){return{icon:oP(iP)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=m0,e.nodeCallback=rP,e}}},provides(e){e.i2svg=function(t){const{node:n=Ze,callback:o=()=>{}}=t;return m0(n,o)},e.generateSvgReplacementMutation=function(t,n){const{iconName:o,title:a,titleId:s,prefix:u,transform:d,symbol:f,mask:p,maskId:h,extra:y}=n;return new Promise((x,k)=>{Promise.all([gp(o,u),p.iconName?gp(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(C=>{let[S,w]=C;x([t,gm({icons:{main:S,mask:w},prefix:u,iconName:o,transform:d,symbol:f,maskId:h,title:a,titleId:s,extra:y,watchable:!0})])}).catch(k)})},e.generateAbstractIcon=function(t){let{children:n,attributes:o,main:a,transform:s,styles:u}=t;const d=Qu(u);d.length>0&&(o.style=d);let f;return pm(s)&&(f=ko("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:o}}}},sP={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return tc({type:"layer"},()=>{Zo("beforeDOMElementCreation",{assembler:e,params:t});let o=[];return e(a=>{Array.isArray(a)?a.map(s=>{o=o.concat(s.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(we.cssPrefix,"-layers"),...n].join(" ")},children:o}]})}}}},lP={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:o=[],attributes:a={},styles:s={}}=t;return tc({type:"counter",content:e},()=>(Zo("beforeDOMElementCreation",{content:e,params:t}),ME({content:e.toString(),title:n,extra:{attributes:a,styles:s,classes:["".concat(we.cssPrefix,"-layers-counter"),...o]}})))}}}},uP={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=yr,title:o=null,classes:a=[],attributes:s={},styles:u={}}=t;return tc({type:"text",content:e},()=>(Zo("beforeDOMElementCreation",{content:e,params:t}),l0({content:e,transform:le(le({},yr),n),title:o,extra:{attributes:s,styles:u,classes:["".concat(we.cssPrefix,"-layers-text"),...a]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:o,transform:a,extra:s}=n;let u=null,d=null;if(D1){const f=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();u=p.width/f,d=p.height/f}return we.autoA11y&&!o&&(s.attributes["aria-hidden"]="true"),Promise.resolve([t,l0({content:t.innerHTML,width:u,height:d,transform:a,title:o,extra:s,watchable:!0})])}}};const cP=new RegExp('"',"ug"),h0=[1105920,1112319],g0=le(le(le(le({},{FontAwesome:{normal:"fas",400:"fas"}}),Ok),Xk),Vk),xp=Object.keys(g0).reduce((e,t)=>(e[t.toLowerCase()]=g0[t],e),{}),dP=Object.keys(xp).reduce((e,t)=>{const n=xp[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function fP(e){const t=e.replace(cP,""),n=yE(t,0),o=n>=h0[0]&&n<=h0[1],a=t.length===2?t[0]===t[1]:!1;return{value:dp(a?t[0]:t),isSecondary:o||a}}function pP(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(t),a=isNaN(o)?"normal":o;return(xp[n]||{})[a]||dP[n]}function v0(e,t){const n="".concat(Jk).concat(t.replace(":","-"));return new Promise((o,a)=>{if(e.getAttribute(n)!==null)return o();const u=ea(e.children).filter(x=>x.getAttribute(sp)===t)[0],d=Co.getComputedStyle(e,t),f=d.getPropertyValue("font-family"),p=f.match(nE),h=d.getPropertyValue("font-weight"),y=d.getPropertyValue("content");if(u&&!p)return e.removeChild(u),o();if(p&&y!=="none"&&y!==""){const x=d.getPropertyValue("content");let k=pP(f,h);const{value:C,isSecondary:S}=fP(x),w=p[0].startsWith("FontAwesome");let I=hm(k,C),T=I;if(w){const E=kE(C);E.iconName&&E.prefix&&(I=E.iconName,k=E.prefix)}if(I&&!S&&(!u||u.getAttribute(um)!==k||u.getAttribute(cm)!==T)){e.setAttribute(n,T),u&&e.removeChild(u);const E=eP(),{extra:N}=E;N.attributes[sp]=t,gp(I,k).then($=>{const j=gm(le(le({},E),{},{icons:{main:$,mask:sx()},prefix:k,iconName:T,extra:N,watchable:!0})),A=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(A,e.firstChild):e.appendChild(A),A.outerHTML=j.map(F=>Bs(F)).join(`
614
- `),e.removeAttribute(n),o()}).catch(a)}else o()}else o()})}function mP(e){return Promise.all([v0(e,"::before"),v0(e,"::after")])}function hP(e){return e.parentNode!==document.head&&!~Zk.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(sp)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function y0(e){if(qr)return new Promise((t,n)=>{const o=ea(e.querySelectorAll("*")).filter(hP).map(mP),a=vm.begin("searchPseudoElements");fx(),Promise.all(o).then(()=>{a(),yp(),t()}).catch(()=>{a(),yp(),n()})})}var gP={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=y0,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;we.searchPseudoElements&&y0(n)}}};let x0=!1;var vP={mixout(){return{dom:{unwatch(){fx(),x0=!0}}}},hooks(){return{bootstrap(){f0(pp("mutationObserverCallbacks",{}))},noAuto(){XE()},watch(e){const{observeMutationsRoot:t}=e;x0?yp():f0(pp("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const b0=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,o)=>{const a=o.toLowerCase().split("-"),s=a[0];let u=a.slice(1).join("-");if(s&&u==="h")return n.flipX=!0,n;if(s&&u==="v")return n.flipY=!0,n;if(u=parseFloat(u),isNaN(u))return n;switch(s){case"grow":n.size=n.size+u;break;case"shrink":n.size=n.size-u;break;case"left":n.x=n.x-u;break;case"right":n.x=n.x+u;break;case"up":n.y=n.y-u;break;case"down":n.y=n.y+u;break;case"rotate":n.rotate=n.rotate+u;break}return n},t)};var yP={mixout(){return{parse:{transform:e=>b0(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=b0(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:o,containerWidth:a,iconWidth:s}=t;const u={transform:"translate(".concat(a/2," 256)")},d="translate(".concat(o.x*32,", ").concat(o.y*32,") "),f="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),p="rotate(".concat(o.rotate," 0 0)"),h={transform:"".concat(d," ").concat(f," ").concat(p)},y={transform:"translate(".concat(s/2*-1," -256)")},x={outer:u,inner:h,path:y};return{tag:"g",attributes:le({},x.outer),children:[{tag:"g",attributes:le({},x.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:le(le({},n.icon.attributes),x.path)}]}]}}}};const If={x:0,y:0,width:"100%",height:"100%"};function S0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function xP(e){return e.tag==="g"?e.children:[e]}var bP={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),o=n?ec(n.split(" ").map(a=>a.trim())):sx();return o.prefix||(o.prefix=wo()),e.mask=o,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:o,main:a,mask:s,maskId:u,transform:d}=t;const{width:f,icon:p}=a,{width:h,icon:y}=s,x=fE({transform:d,containerWidth:h,iconWidth:f}),k={tag:"rect",attributes:le(le({},If),{},{fill:"white"})},C=p.children?{children:p.children.map(S0)}:{},S={tag:"g",attributes:le({},x.inner),children:[S0(le({tag:p.tag,attributes:le(le({},p.attributes),x.path)},C))]},w={tag:"g",attributes:le({},x.outer),children:[S]},I="mask-".concat(u||ks()),T="clip-".concat(u||ks()),E={tag:"mask",attributes:le(le({},If),{},{id:I,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[k,w]},N={tag:"defs",children:[{tag:"clipPath",attributes:{id:T},children:xP(y)},E]};return n.push(N,{tag:"rect",attributes:le({fill:"currentColor","clip-path":"url(#".concat(T,")"),mask:"url(#".concat(I,")")},If)}),{children:n,attributes:o}}}},SP={provides(e){let t=!1;Co.matchMedia&&(t=Co.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],o={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:le(le({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const s=le(le({},a),{},{attributeName:"opacity"}),u={tag:"circle",attributes:le(le({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||u.children.push({tag:"animate",attributes:le(le({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:le(le({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(u),n.push({tag:"path",attributes:le(le({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:le(le({},s),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:le(le({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:le(le({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},CP={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),o=n===null?!1:n===""?!0:n;return e.symbol=o,e}}}},wP=[hE,aP,sP,lP,uP,gP,vP,yP,bP,SP,CP];OE(wP,{mixoutsTo:Sn});Sn.noAuto;Sn.config;Sn.library;Sn.dom;const bp=Sn.parse;Sn.findIconDefinition;Sn.toHtml;const kP=Sn.icon;Sn.layer;Sn.text;Sn.counter;var Tf={exports:{}},Nf,C0;function EP(){if(C0)return Nf;C0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nf=e,Nf}var _f,w0;function PP(){if(w0)return _f;w0=1;var e=EP();function t(){}function n(){}return n.resetWarningCache=t,_f=function(){function o(u,d,f,p,h,y){if(y!==e){var x=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 x.name="Invariant Violation",x}}o.isRequired=o;function a(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},_f}var k0;function $P(){return k0||(k0=1,Tf.exports=PP()()),Tf.exports}var RP=$P();const Oe=h1(RP);function E0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(n),!0).forEach(function(o){zi(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IP(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function TP(e,t){if(e==null)return{};var n=IP(e,t),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)o=s[a],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Sp(e){return NP(e)||_P(e)||OP(e)||jP()}function NP(e){if(Array.isArray(e))return Cp(e)}function _P(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OP(e,t){if(e){if(typeof e=="string")return Cp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cp(e,t)}}function Cp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function jP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
615
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AP(e){var t,n=e.beat,o=e.fade,a=e.beatFade,s=e.bounce,u=e.shake,d=e.flash,f=e.spin,p=e.spinPulse,h=e.spinReverse,y=e.pulse,x=e.fixedWidth,k=e.inverse,C=e.border,S=e.listItem,w=e.flip,I=e.size,T=e.rotation,E=e.pull,N=(t={"fa-beat":n,"fa-fade":o,"fa-beat-fade":a,"fa-bounce":s,"fa-shake":u,"fa-flash":d,"fa-spin":f,"fa-spin-reverse":h,"fa-spin-pulse":p,"fa-pulse":y,"fa-fw":x,"fa-inverse":k,"fa-border":C,"fa-li":S,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},zi(t,"fa-".concat(I),typeof I<"u"&&I!==null),zi(t,"fa-rotate-".concat(T),typeof T<"u"&&T!==null&&T!==0),zi(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),zi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(N).map(function($){return N[$]?$:null}).filter(function($){return $})}function LP(e){return e=e-0,e===e}function mx(e){return LP(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var zP=["style"];function DP(e){return e.charAt(0).toUpperCase()+e.slice(1)}function BP(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var o=n.indexOf(":"),a=mx(n.slice(0,o)),s=n.slice(o+1).trim();return a.startsWith("webkit")?t[DP(a)]=s:t[a]=s,t},{})}function hx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var o=(t.children||[]).map(function(f){return hx(e,f)}),a=Object.keys(t.attributes||{}).reduce(function(f,p){var h=t.attributes[p];switch(p){case"class":f.attrs.className=h,delete t.attributes.class;break;case"style":f.attrs.style=BP(h);break;default:p.indexOf("aria-")===0||p.indexOf("data-")===0?f.attrs[p.toLowerCase()]=h:f.attrs[mx(p)]=h}return f},{attrs:{}}),s=n.style,u=s===void 0?{}:s,d=TP(n,zP);return a.attrs.style=mr(mr({},a.attrs.style),u),e.apply(void 0,[t.tag,mr(mr({},a.attrs),d)].concat(Sp(o)))}var gx=!1;try{gx=!0}catch{}function MP(){if(!gx&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function P0(e){if(e&&ju(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(bp.icon)return bp.icon(e);if(e===null)return null;if(e&&ju(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Of(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?zi({},e,t):{}}var $0={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},De=xo.forwardRef(function(e,t){var n=mr(mr({},$0),e),o=n.icon,a=n.mask,s=n.symbol,u=n.className,d=n.title,f=n.titleId,p=n.maskId,h=P0(o),y=Of("classes",[].concat(Sp(AP(n)),Sp((u||"").split(" ")))),x=Of("transform",typeof n.transform=="string"?bp.transform(n.transform):n.transform),k=Of("mask",P0(a)),C=kP(h,mr(mr(mr(mr({},y),x),k),{},{symbol:s,title:d,titleId:f,maskId:p}));if(!C)return MP("Could not find icon",h),null;var S=C.abstract,w={ref:t};return Object.keys(n).forEach(function(I){$0.hasOwnProperty(I)||(w[I]=n[I])}),FP(S[0],w)});De.displayName="FontAwesomeIcon";De.propTypes={beat:Oe.bool,border:Oe.bool,beatFade:Oe.bool,bounce:Oe.bool,className:Oe.string,fade:Oe.bool,flash:Oe.bool,mask:Oe.oneOfType([Oe.object,Oe.array,Oe.string]),maskId:Oe.string,fixedWidth:Oe.bool,inverse:Oe.bool,flip:Oe.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Oe.oneOfType([Oe.object,Oe.array,Oe.string]),listItem:Oe.bool,pull:Oe.oneOf(["right","left"]),pulse:Oe.bool,rotation:Oe.oneOf([0,90,180,270]),shake:Oe.bool,size:Oe.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Oe.bool,spinPulse:Oe.bool,spinReverse:Oe.bool,symbol:Oe.oneOfType([Oe.bool,Oe.string]),title:Oe.string,titleId:Oe.string,transform:Oe.oneOfType([Oe.string,Oe.object]),swapOpacity:Oe.bool};var FP=hx.bind(null,xo.createElement);function R0(e){return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"rounded-full border-2 border-white flex items-center gap-3 p-2",children:[g.jsx("div",{onClick:e.onClickIcon,children:e.Icon&&g.jsx(De,{icon:e.Icon,className:"ml-2"})}),g.jsx("input",{...e,type:"text",className:"bg-transparent outline-none placeholder:font-bold "+e.className})]})})}function wp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},O.apply(null,arguments)}function HP(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function VP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var UP=function(){function e(n){var o=this;this._insertTag=function(a){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(a,s),o.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(VP(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=HP(a);try{s.insertRule(o,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var a;return(a=o.parentNode)==null?void 0:a.removeChild(o)}),this.tags=[],this.ctr=0},e}(),Ht="-ms-",Au="-moz-",Be="-webkit-",vx="comm",xm="rule",bm="decl",WP="@import",yx="@keyframes",KP="@layer",qP=Math.abs,nc=String.fromCharCode,YP=Object.assign;function GP(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function xx(e){return e.trim()}function XP(e,t){return(e=t.exec(e))?e[0]:e}function Me(e,t,n){return e.replace(t,n)}function kp(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function Ps(e,t,n){return e.slice(t,n)}function hr(e){return e.length}function Sm(e){return e.length}function cu(e,t){return t.push(e),e}function JP(e,t){return e.map(t).join("")}var rc=1,Ui=1,bx=0,sn=0,bt=0,ta="";function oc(e,t,n,o,a,s,u){return{value:e,root:t,parent:n,type:o,props:a,children:s,line:rc,column:Ui,length:u,return:""}}function ns(e,t){return YP(oc("",null,null,"",null,null,0),e,{length:-e.length},t)}function QP(){return bt}function ZP(){return bt=sn>0?Lt(ta,--sn):0,Ui--,bt===10&&(Ui=1,rc--),bt}function gn(){return bt=sn<bx?Lt(ta,sn++):0,Ui++,bt===10&&(Ui=1,rc++),bt}function br(){return Lt(ta,sn)}function bu(){return sn}function Ms(e,t){return Ps(ta,e,t)}function $s(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Sx(e){return rc=Ui=1,bx=hr(ta=e),sn=0,[]}function Cx(e){return ta="",e}function Su(e){return xx(Ms(sn-1,Ep(e===91?e+2:e===40?e+1:e)))}function e$(e){for(;(bt=br())&&bt<33;)gn();return $s(e)>2||$s(bt)>3?"":" "}function t$(e,t){for(;--t&&gn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ms(e,bu()+(t<6&&br()==32&&gn()==32))}function Ep(e){for(;gn();)switch(bt){case e:return sn;case 34:case 39:e!==34&&e!==39&&Ep(bt);break;case 40:e===41&&Ep(e);break;case 92:gn();break}return sn}function n$(e,t){for(;gn()&&e+bt!==57;)if(e+bt===84&&br()===47)break;return"/*"+Ms(t,sn-1)+"*"+nc(e===47?e:gn())}function r$(e){for(;!$s(br());)gn();return Ms(e,sn)}function o$(e){return Cx(Cu("",null,null,null,[""],e=Sx(e),0,[0],e))}function Cu(e,t,n,o,a,s,u,d,f){for(var p=0,h=0,y=u,x=0,k=0,C=0,S=1,w=1,I=1,T=0,E="",N=a,$=s,j=o,A=E;w;)switch(C=T,T=gn()){case 40:if(C!=108&&Lt(A,y-1)==58){kp(A+=Me(Su(T),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:A+=Su(T);break;case 9:case 10:case 13:case 32:A+=e$(C);break;case 92:A+=t$(bu()-1,7);continue;case 47:switch(br()){case 42:case 47:cu(i$(n$(gn(),bu()),t,n),f);break;default:A+="/"}break;case 123*S:d[p++]=hr(A)*I;case 125*S:case 59:case 0:switch(T){case 0:case 125:w=0;case 59+h:I==-1&&(A=Me(A,/\f/g,"")),k>0&&hr(A)-y&&cu(k>32?T0(A+";",o,n,y-1):T0(Me(A," ","")+";",o,n,y-2),f);break;case 59:A+=";";default:if(cu(j=I0(A,t,n,p,h,a,d,E,N=[],$=[],y),s),T===123)if(h===0)Cu(A,t,j,j,N,s,y,d,$);else switch(x===99&&Lt(A,3)===110?100:x){case 100:case 108:case 109:case 115:Cu(e,j,j,o&&cu(I0(e,j,j,0,0,a,d,E,a,N=[],y),$),a,$,y,d,o?N:$);break;default:Cu(A,j,j,j,[""],$,0,d,$)}}p=h=k=0,S=I=1,E=A="",y=u;break;case 58:y=1+hr(A),k=C;default:if(S<1){if(T==123)--S;else if(T==125&&S++==0&&ZP()==125)continue}switch(A+=nc(T),T*S){case 38:I=h>0?1:(A+="\f",-1);break;case 44:d[p++]=(hr(A)-1)*I,I=1;break;case 64:br()===45&&(A+=Su(gn())),x=br(),h=y=hr(E=A+=r$(bu())),T++;break;case 45:C===45&&hr(A)==2&&(S=0)}}return s}function I0(e,t,n,o,a,s,u,d,f,p,h){for(var y=a-1,x=a===0?s:[""],k=Sm(x),C=0,S=0,w=0;C<o;++C)for(var I=0,T=Ps(e,y+1,y=qP(S=u[C])),E=e;I<k;++I)(E=xx(S>0?x[I]+" "+T:Me(T,/&\f/g,x[I])))&&(f[w++]=E);return oc(e,t,n,a===0?xm:d,f,p,h)}function i$(e,t,n){return oc(e,t,n,vx,nc(QP()),Ps(e,2,-2),0)}function T0(e,t,n,o){return oc(e,t,n,bm,Ps(e,0,o),Ps(e,o+1,-1),o)}function Bi(e,t){for(var n="",o=Sm(e),a=0;a<o;a++)n+=t(e[a],a,e,t)||"";return n}function a$(e,t,n,o){switch(e.type){case KP:if(e.children.length)break;case WP:case bm:return e.return=e.return||e.value;case vx:return"";case yx:return e.return=e.value+"{"+Bi(e.children,o)+"}";case xm:e.value=e.props.join(",")}return hr(n=Bi(e.children,o))?e.return=e.value+"{"+n+"}":""}function s$(e){var t=Sm(e);return function(n,o,a,s){for(var u="",d=0;d<t;d++)u+=e[d](n,o,a,s)||"";return u}}function l$(e){return function(t){t.root||(t=t.return)&&e(t)}}function wx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var u$=function(t,n,o){for(var a=0,s=0;a=s,s=br(),a===38&&s===12&&(n[o]=1),!$s(s);)gn();return Ms(t,sn)},c$=function(t,n){var o=-1,a=44;do switch($s(a)){case 0:a===38&&br()===12&&(n[o]=1),t[o]+=u$(sn-1,n,o);break;case 2:t[o]+=Su(a);break;case 4:if(a===44){t[++o]=br()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=nc(a)}while(a=gn());return t},d$=function(t,n){return Cx(c$(Sx(t),n))},N0=new WeakMap,f$=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,a=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!N0.get(o))&&!a){N0.set(t,!0);for(var s=[],u=d$(n,s),d=o.props,f=0,p=0;f<u.length;f++)for(var h=0;h<d.length;h++,p++)t.props[p]=s[f]?u[f].replace(/&\f/g,d[h]):d[h]+" "+u[f]}}},p$=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function kx(e,t){switch(GP(e,t)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+Au+e+Ht+e+e;case 6828:case 4268:return Be+e+Ht+e+e;case 6165:return Be+e+Ht+"flex-"+e+e;case 5187:return Be+e+Me(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return Be+e+Ht+"flex-item-"+Me(e,/flex-|-self/,"")+e;case 4675:return Be+e+Ht+"flex-line-pack"+Me(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+Ht+Me(e,"shrink","negative")+e;case 5292:return Be+e+Ht+Me(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+Me(e,"-grow","")+Be+e+Ht+Me(e,"grow","positive")+e;case 4554:return Be+Me(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hr(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+Au+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kp(e,"stretch")?kx(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,hr(e)-3-(~kp(e,"!important")&&10))){case 107:return Me(e,":",":"+Be)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Ht+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Be+e+Ht+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Ht+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Ht+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+Ht+e+e}return e}var m$=function(t,n,o,a){if(t.length>-1&&!t.return)switch(t.type){case bm:t.return=kx(t.value,t.length);break;case yx:return Bi([ns(t,{value:Me(t.value,"@","@"+Be)})],a);case xm:if(t.length)return JP(t.props,function(s){switch(XP(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bi([ns(t,{props:[Me(s,/:(read-\w+)/,":"+Au+"$1")]})],a);case"::placeholder":return Bi([ns(t,{props:[Me(s,/:(plac\w+)/,":"+Be+"input-$1")]}),ns(t,{props:[Me(s,/:(plac\w+)/,":"+Au+"$1")]}),ns(t,{props:[Me(s,/:(plac\w+)/,Ht+"input-$1")]})],a)}return""})}},h$=[m$],g$=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=t.stylisPlugins||h$,s={},u,d=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),I=1;I<w.length;I++)s[w[I]]=!0;d.push(S)});var f,p=[f$,p$];{var h,y=[a$,l$(function(S){h.insert(S)})],x=s$(p.concat(a,y)),k=function(w){return Bi(o$(w),x)};f=function(w,I,T,E){h=T,k(w?w+"{"+I.styles+"}":I.styles),E&&(C.inserted[I.name]=!0)}}var C={key:n,sheet:new UP({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:f};return C.sheet.hydrate(d),C},jf={exports:{}},Ve={};/** @license React v16.13.1
616
- * react-is.production.min.js
617
- *
618
- * Copyright (c) Facebook, Inc. and its affiliates.
619
- *
620
- * This source code is licensed under the MIT license found in the
621
- * LICENSE file in the root directory of this source tree.
622
- */var _0;function v$(){if(_0)return Ve;_0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E($){if(typeof $=="object"&&$!==null){var j=$.$$typeof;switch(j){case t:switch($=$.type,$){case f:case p:case o:case s:case a:case y:return $;default:switch($=$&&$.$$typeof,$){case d:case h:case C:case k:case u:return $;default:return j}}case n:return j}}}function N($){return E($)===p}return Ve.AsyncMode=f,Ve.ConcurrentMode=p,Ve.ContextConsumer=d,Ve.ContextProvider=u,Ve.Element=t,Ve.ForwardRef=h,Ve.Fragment=o,Ve.Lazy=C,Ve.Memo=k,Ve.Portal=n,Ve.Profiler=s,Ve.StrictMode=a,Ve.Suspense=y,Ve.isAsyncMode=function($){return N($)||E($)===f},Ve.isConcurrentMode=N,Ve.isContextConsumer=function($){return E($)===d},Ve.isContextProvider=function($){return E($)===u},Ve.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Ve.isForwardRef=function($){return E($)===h},Ve.isFragment=function($){return E($)===o},Ve.isLazy=function($){return E($)===C},Ve.isMemo=function($){return E($)===k},Ve.isPortal=function($){return E($)===n},Ve.isProfiler=function($){return E($)===s},Ve.isStrictMode=function($){return E($)===a},Ve.isSuspense=function($){return E($)===y},Ve.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===o||$===p||$===s||$===a||$===y||$===x||typeof $=="object"&&$!==null&&($.$$typeof===C||$.$$typeof===k||$.$$typeof===u||$.$$typeof===d||$.$$typeof===h||$.$$typeof===w||$.$$typeof===I||$.$$typeof===T||$.$$typeof===S)},Ve.typeOf=E,Ve}var O0;function y$(){return O0||(O0=1,jf.exports=v$()),jf.exports}var Af,j0;function x$(){if(j0)return Af;j0=1;var e=y$(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=o,s[e.Memo]=a;function u(C){return e.isMemo(C)?a:s[C.$$typeof]||t}var d=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,x=Object.prototype;function k(C,S,w){if(typeof S!="string"){if(x){var I=y(S);I&&I!==x&&k(C,I,w)}var T=f(S);p&&(T=T.concat(p(S)));for(var E=u(C),N=u(S),$=0;$<T.length;++$){var j=T[$];if(!n[j]&&!(w&&w[j])&&!(N&&N[j])&&!(E&&E[j])){var A=h(S,j);try{d(C,j,A)}catch{}}}}return C}return Af=k,Af}x$();var b$=!0;function Ex(e,t,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(o+=a+" ")}),o}var Cm=function(t,n,o){var a=t.key+"-"+n.name;(o===!1||b$===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},Px=function(t,n,o){Cm(t,n,o);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function S$(e){for(var t=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(a){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 C$={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,scale: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},w$=/[A-Z]|^ms/g,k$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$x=function(t){return t.charCodeAt(1)===45},A0=function(t){return t!=null&&typeof t!="boolean"},Lf=wx(function(e){return $x(e)?e:e.replace(w$,"-$&").toLowerCase()}),L0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(k$,function(o,a,s){return gr={name:a,styles:s,next:gr},a})}return C$[t]!==1&&!$x(t)&&typeof n=="number"&&n!==0?n+"px":n};function Rs(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return gr={name:a.name,styles:a.styles,next:gr},a.name;var s=n;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)gr={name:u.name,styles:u.styles,next:gr},u=u.next;var d=s.styles+";";return d}return E$(e,t,n)}case"function":{if(e!==void 0){var f=gr,p=n(e);return gr=f,Rs(e,t,p)}break}}var h=n;if(t==null)return h;var y=t[h];return y!==void 0?y:h}function E$(e,t,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=Rs(e,t,n[a])+";";else for(var s in n){var u=n[s];if(typeof u!="object"){var d=u;t!=null&&t[d]!==void 0?o+=s+"{"+t[d]+"}":A0(d)&&(o+=Lf(s)+":"+L0(s,d)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)A0(u[f])&&(o+=Lf(s)+":"+L0(s,u[f])+";");else{var p=Rs(e,t,u);switch(s){case"animation":case"animationName":{o+=Lf(s)+":"+p+";";break}default:o+=s+"{"+p+"}"}}}return o}var z0=/label:\s*([^\s;{]+)\s*(;|$)/g,gr;function ic(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";gr=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,a+=Rs(n,t,s);else{var u=s;a+=u[0]}for(var d=1;d<e.length;d++)if(a+=Rs(n,t,e[d]),o){var f=s;a+=f[d]}z0.lastIndex=0;for(var p="",h;(h=z0.exec(a))!==null;)p+="-"+h[1];var y=S$(a)+p;return{name:y,styles:a,next:gr}}var P$=function(t){return t()},$$=Cs.useInsertionEffect?Cs.useInsertionEffect:!1,Rx=$$||P$,Ix=b.createContext(typeof HTMLElement<"u"?g$({key:"css"}):null);Ix.Provider;var Tx=function(t){return b.forwardRef(function(n,o){var a=b.useContext(Ix);return t(n,a,o)})},ac=b.createContext({}),wm={}.hasOwnProperty,Pp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",R$=function(t,n){var o={};for(var a in n)wm.call(n,a)&&(o[a]=n[a]);return o[Pp]=t,o},I$=function(t){var n=t.cache,o=t.serialized,a=t.isStringTag;return Cm(n,o,a),Rx(function(){return Px(n,o,a)}),null},T$=Tx(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var a=e[Pp],s=[o],u="";typeof e.className=="string"?u=Ex(t.registered,s,e.className):e.className!=null&&(u=e.className+" ");var d=ic(s,void 0,b.useContext(ac));u+=t.key+"-"+d.name;var f={};for(var p in e)wm.call(e,p)&&p!=="css"&&p!==Pp&&(f[p]=e[p]);return f.className=u,n&&(f.ref=n),b.createElement(b.Fragment,null,b.createElement(I$,{cache:t,serialized:d,isStringTag:typeof a=="string"}),b.createElement(a,f))}),N$=T$,D0=function(t,n){var o=arguments;if(n==null||!wm.call(n,"css"))return b.createElement.apply(void 0,o);var a=o.length,s=new Array(a);s[0]=N$,s[1]=R$(t,n);for(var u=2;u<a;u++)s[u]=o[u];return b.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(D0||(D0={}));function sc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ic(t)}function na(){var e=sc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var _$=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,O$=wx(function(e){return _$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),j$=O$,A$=function(t){return t!=="theme"},B0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?j$:A$},M0=function(t,n,o){var a;if(n){var s=n.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(u){return t.__emotion_forwardProp(u)&&s(u)}:s}return typeof a!="function"&&o&&(a=t.__emotion_forwardProp),a},L$=function(t){var n=t.cache,o=t.serialized,a=t.isStringTag;return Cm(n,o,a),Rx(function(){return Px(n,o,a)}),null},z$=function e(t,n){var o=t.__emotion_real===t,a=o&&t.__emotion_base||t,s,u;n!==void 0&&(s=n.label,u=n.target);var d=M0(t,n,o),f=d||B0(a),p=!f("as");return function(){var h=arguments,y=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)y.push.apply(y,h);else{var x=h[0];y.push(x[0]);for(var k=h.length,C=1;C<k;C++)y.push(h[C],x[C])}var S=Tx(function(w,I,T){var E=p&&w.as||a,N="",$=[],j=w;if(w.theme==null){j={};for(var A in w)j[A]=w[A];j.theme=b.useContext(ac)}typeof w.className=="string"?N=Ex(I.registered,$,w.className):w.className!=null&&(N=w.className+" ");var F=ic(y.concat($),I.registered,j);N+=I.key+"-"+F.name,u!==void 0&&(N+=" "+u);var J=p&&d===void 0?B0(E):f,R={};for(var M in w)p&&M==="as"||J(M)&&(R[M]=w[M]);return R.className=N,T&&(R.ref=T),b.createElement(b.Fragment,null,b.createElement(L$,{cache:I,serialized:F,isStringTag:typeof E=="string"}),b.createElement(E,R))});return S.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=y,S.__emotion_forwardProp=d,Object.defineProperty(S,"toString",{value:function(){return"."+u}}),S.withComponent=function(w,I){var T=e(w,O({},n,I,{shouldForwardProp:M0(S,I,!0)}));return T.apply(void 0,y)},S}},D$=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Lu=z$.bind(null);D$.forEach(function(e){Lu[e]=Lu(e)});function Nx(e,t){return Lu(e,t)}const B$=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Le(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function yo(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 _x(e){if(b.isValidElement(e)||!yo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_x(e[n])}),t}function Fr(e,t,n={clone:!0}){const o=n.clone?O({},e):e;return yo(e)&&yo(t)&&Object.keys(t).forEach(a=>{b.isValidElement(t[a])?o[a]=t[a]:yo(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&yo(e[a])?o[a]=Fr(e[a],t[a],n):n.clone?o[a]=yo(t[a])?_x(t[a]):t[a]:o[a]=t[a]}),o}const M$=["values","unit","step"],F$=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>O({},n,{[o.key]:o.val}),{})};function Ox(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,a=Le(e,M$),s=F$(t),u=Object.keys(s);function d(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n})`}function f(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-o/100}${n})`}function p(x,k){const C=u.indexOf(k);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n}) and (max-width:${(C!==-1&&typeof t[u[C]]=="number"?t[u[C]]:k)-o/100}${n})`}function h(x){return u.indexOf(x)+1<u.length?p(x,u[u.indexOf(x)+1]):d(x)}function y(x){const k=u.indexOf(x);return k===0?d(u[1]):k===u.length-1?f(u[k]):p(x,u[u.indexOf(x)+1]).replace("@media","@media not all and")}return O({keys:u,values:s,up:d,down:f,between:p,only:h,not:y,unit:n},a)}const H$={borderRadius:4};function gs(e,t){return t?Fr(e,t,{clone:!1}):e}const km={xs:0,sm:600,md:900,lg:1200,xl:1536},F0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${km[e]}px)`};function Ur(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||F0;return t.reduce((u,d,f)=>(u[s.up(s.keys[f])]=n(t[f]),u),{})}if(typeof t=="object"){const s=o.breakpoints||F0;return Object.keys(t).reduce((u,d)=>{if(Object.keys(s.values||km).indexOf(d)!==-1){const f=s.up(d);u[f]=n(t[d],d)}else{const f=d;u[f]=t[f]}return u},{})}return n(t)}function V$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((o,a)=>{const s=e.up(a);return o[s]={},o},{}))||{}}function U$(e,t){return e.reduce((n,o)=>{const a=n[o];return(!a||Object.keys(a).length===0)&&delete n[o],n},t)}function je(e){if(typeof e!="string")throw new Error(wp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,a)=>o&&o[a]!=null?o[a]:null,e)}function zu(e,t,n,o=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||o:a=lc(e,n)||o,t&&(a=t(a,o,e)),a}function ht(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:a}=e,s=u=>{if(u[t]==null)return null;const d=u[t],f=u.theme,p=lc(f,o)||{};return Ur(u,d,y=>{let x=zu(p,a,y);return y===x&&typeof y=="string"&&(x=zu(p,a,`${t}${y==="default"?"":je(y)}`,y)),n===!1?x:{[n]:x}})};return s.propTypes={},s.filterProps=[t],s}function W$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const K$={m:"margin",p:"padding"},q$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y$=W$(e=>{if(e.length>2)if(H0[e])e=H0[e];else return[e];const[t,n]=e.split(""),o=K$[t],a=q$[n]||"";return Array.isArray(a)?a.map(s=>o+s):[o+a]}),Em=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Em,...Pm];function Fs(e,t,n,o){var a;const s=(a=lc(e,t,!1))!=null?a:n;return typeof s=="number"?u=>typeof u=="string"?u:s*u:Array.isArray(s)?u=>typeof u=="string"?u:s[u]:typeof s=="function"?s:()=>{}}function jx(e){return Fs(e,"spacing",8)}function Hs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),o=e(n);return t>=0?o:typeof o=="number"?-o:`-${o}`}function G$(e,t){return n=>e.reduce((o,a)=>(o[a]=Hs(t,n),o),{})}function X$(e,t,n,o){if(t.indexOf(n)===-1)return null;const a=Y$(n),s=G$(a,o),u=e[n];return Ur(e,u,s)}function Ax(e,t){const n=jx(e.theme);return Object.keys(e).map(o=>X$(e,t,o,n)).reduce(gs,{})}function lt(e){return Ax(e,Em)}lt.propTypes={};lt.filterProps=Em;function ut(e){return Ax(e,Pm)}ut.propTypes={};ut.filterProps=Pm;function Lx(e=8){if(e.mui)return e;const t=jx({spacing:e}),n=(...o)=>(o.length===0?[1]:o).map(s=>{const u=t(s);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function uc(...e){const t=e.reduce((o,a)=>(a.filterProps.forEach(s=>{o[s]=a}),o),{}),n=o=>Object.keys(o).reduce((a,s)=>t[s]?gs(a,t[s](o)):a,{});return n.propTypes={},n.filterProps=e.reduce((o,a)=>o.concat(a.filterProps),[]),n}function jn(e){return typeof e!="number"?e:`${e}px solid`}function Fn(e,t){return ht({prop:e,themeKey:"borders",transform:t})}const J$=Fn("border",jn),Q$=Fn("borderTop",jn),Z$=Fn("borderRight",jn),e5=Fn("borderBottom",jn),t5=Fn("borderLeft",jn),n5=Fn("borderColor"),r5=Fn("borderTopColor"),o5=Fn("borderRightColor"),i5=Fn("borderBottomColor"),a5=Fn("borderLeftColor"),s5=Fn("outline",jn),l5=Fn("outlineColor"),cc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fs(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Hs(t,o)});return Ur(e,e.borderRadius,n)}return null};cc.propTypes={};cc.filterProps=["borderRadius"];uc(J$,Q$,Z$,e5,t5,n5,r5,o5,i5,a5,cc,s5,l5);const dc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fs(e.theme,"spacing",8),n=o=>({gap:Hs(t,o)});return Ur(e,e.gap,n)}return null};dc.propTypes={};dc.filterProps=["gap"];const fc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fs(e.theme,"spacing",8),n=o=>({columnGap:Hs(t,o)});return Ur(e,e.columnGap,n)}return null};fc.propTypes={};fc.filterProps=["columnGap"];const pc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fs(e.theme,"spacing",8),n=o=>({rowGap:Hs(t,o)});return Ur(e,e.rowGap,n)}return null};pc.propTypes={};pc.filterProps=["rowGap"];const u5=ht({prop:"gridColumn"}),c5=ht({prop:"gridRow"}),d5=ht({prop:"gridAutoFlow"}),f5=ht({prop:"gridAutoColumns"}),p5=ht({prop:"gridAutoRows"}),m5=ht({prop:"gridTemplateColumns"}),h5=ht({prop:"gridTemplateRows"}),g5=ht({prop:"gridTemplateAreas"}),v5=ht({prop:"gridArea"});uc(dc,fc,pc,u5,c5,d5,f5,p5,m5,h5,g5,v5);function Mi(e,t){return t==="grey"?t:e}const y5=ht({prop:"color",themeKey:"palette",transform:Mi}),x5=ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mi}),b5=ht({prop:"backgroundColor",themeKey:"palette",transform:Mi});uc(y5,x5,b5);function mn(e){return e<=1&&e!==0?`${e*100}%`:e}const S5=ht({prop:"width",transform:mn}),$m=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a;const s=((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[n])||km[n];return s?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:mn(n)}};return Ur(e,e.maxWidth,t)}return null};$m.filterProps=["maxWidth"];const C5=ht({prop:"minWidth",transform:mn}),w5=ht({prop:"height",transform:mn}),k5=ht({prop:"maxHeight",transform:mn}),E5=ht({prop:"minHeight",transform:mn});ht({prop:"size",cssProperty:"width",transform:mn});ht({prop:"size",cssProperty:"height",transform:mn});const P5=ht({prop:"boxSizing"});uc(S5,$m,C5,w5,k5,E5,P5);const mc={border:{themeKey:"borders",transform:jn},borderTop:{themeKey:"borders",transform:jn},borderRight:{themeKey:"borders",transform:jn},borderBottom:{themeKey:"borders",transform:jn},borderLeft:{themeKey:"borders",transform:jn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cc},color:{themeKey:"palette",transform:Mi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mi},backgroundColor:{themeKey:"palette",transform:Mi},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:dc},rowGap:{style:pc},columnGap:{style:fc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mn},maxWidth:{style:$m},minWidth:{transform:mn},height:{transform:mn},maxHeight:{transform:mn},minHeight:{transform:mn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $5(...e){const t=e.reduce((o,a)=>o.concat(Object.keys(a)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function R5(e,t){return typeof e=="function"?e(t):e}function I5(){function e(n,o,a,s){const u={[n]:o,theme:a},d=s[n];if(!d)return{[n]:o};const{cssProperty:f=n,themeKey:p,transform:h,style:y}=d;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[n]:o};const x=lc(a,p)||{};return y?y(u):Ur(u,o,C=>{let S=zu(x,h,C);return C===S&&typeof C=="string"&&(S=zu(x,h,`${n}${C==="default"?"":je(C)}`,C)),f===!1?S:{[f]:S}})}function t(n){var o;const{sx:a,theme:s={}}=n||{};if(!a)return null;const u=(o=s.unstable_sxConfig)!=null?o:mc;function d(f){let p=f;if(typeof f=="function")p=f(s);else if(typeof f!="object")return f;if(!p)return null;const h=V$(s.breakpoints),y=Object.keys(h);let x=h;return Object.keys(p).forEach(k=>{const C=R5(p[k],s);if(C!=null)if(typeof C=="object")if(u[k])x=gs(x,e(k,C,s,u));else{const S=Ur({theme:s},C,w=>({[k]:w}));$5(S,C)?x[k]=t({sx:C,theme:s}):x=gs(x,S)}else x=gs(x,e(k,C,s,u))}),U$(y,x)}return Array.isArray(a)?a.map(d):d(a)}return t}const Vs=I5();Vs.filterProps=["sx"];function zx(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 T5=["breakpoints","palette","spacing","shape"];function Dx(e={},...t){const{breakpoints:n={},palette:o={},spacing:a,shape:s={}}=e,u=Le(e,T5),d=Ox(n),f=Lx(a);let p=Fr({breakpoints:d,direction:"ltr",components:{},palette:O({mode:"light"},o),spacing:f,shape:O({},H$,s)},u);return p.applyStyles=zx,p=t.reduce((h,y)=>Fr(h,y),p),p.unstable_sxConfig=O({},mc,u==null?void 0:u.unstable_sxConfig),p.unstable_sx=function(y){return Vs({sx:y,theme:this})},p}function N5(e){return Object.keys(e).length===0}function _5(e=null){const t=b.useContext(ac);return!t||N5(t)?e:t}const O5=Dx();function Bx(e=O5){return _5(e)}const j5=["sx"],A5=e=>{var t,n;const o={systemProps:{},otherProps:{}},a=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mc;return Object.keys(e).forEach(s=>{a[s]?o.systemProps[s]=e[s]:o.otherProps[s]=e[s]}),o};function Mx(e){const{sx:t}=e,n=Le(e,j5),{systemProps:o,otherProps:a}=A5(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...u)=>{const d=t(...u);return yo(d)?O({},o,d):o}:s=O({},o,t),O({},a,{sx:s})}const V0=e=>e,L5=()=>{let e=V0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=V0}}},Fx=L5();function Hx(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Hx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ke(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Hx(e))&&(o&&(o+=" "),o+=t);return o}const z5=["className","component"];function D5(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=e,s=Nx("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(Vs);return b.forwardRef(function(f,p){const h=Bx(n),y=Mx(f),{className:x,component:k="div"}=y,C=Le(y,z5);return g.jsx(s,O({as:k,ref:p,className:Ke(x,a?a(o):o),theme:t&&h[t]||h},C))})}const B5={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 Vx(e,t,n="Mui"){const o=B5[t];return o?`${n}-${o}`:`${Fx.generate(e)}-${t}`}function Ux(e,t,n="Mui"){const o={};return t.forEach(a=>{o[a]=Vx(e,a,n)}),o}const M5=["ownerState"],F5=["variants"],H5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function V5(e){return Object.keys(e).length===0}function U5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const W5=Dx(),K5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function du({defaultTheme:e,theme:t,themeId:n}){return V5(t)?e:t[n]||t}function q5(e){return e?(t,n)=>n[e]:null}function wu(e,t){let{ownerState:n}=t,o=Le(t,M5);const a=typeof e=="function"?e(O({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap(s=>wu(s,O({ownerState:n},o)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let d=Le(a,F5);return s.forEach(f=>{let p=!0;typeof f.props=="function"?p=f.props(O({ownerState:n},o,n)):Object.keys(f.props).forEach(h=>{(n==null?void 0:n[h])!==f.props[h]&&o[h]!==f.props[h]&&(p=!1)}),p&&(Array.isArray(d)||(d=[d]),d.push(typeof f.style=="function"?f.style(O({ownerState:n},o,n)):f.style))}),d}return a}function Y5(e={}){const{themeId:t,defaultTheme:n=W5,rootShouldForwardProp:o=zf,slotShouldForwardProp:a=zf}=e,s=u=>Vs(O({},u,{theme:du(O({},u,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(u,d={})=>{B$(u,$=>$.filter(j=>!(j!=null&&j.__mui_systemSx)));const{name:f,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:x=q5(K5(p))}=d,k=Le(d,H5),C=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=y||!1;let w,I=zf;p==="Root"||p==="root"?I=o:p?I=a:U5(u)&&(I=void 0);const T=Nx(u,O({shouldForwardProp:I,label:w},k)),E=$=>typeof $=="function"&&$.__emotion_real!==$||yo($)?j=>wu($,O({},j,{theme:du({theme:j.theme,defaultTheme:n,themeId:t})})):$,N=($,...j)=>{let A=E($);const F=j?j.map(E):[];f&&x&&F.push(M=>{const q=du(O({},M,{defaultTheme:n,themeId:t}));if(!q.components||!q.components[f]||!q.components[f].styleOverrides)return null;const G=q.components[f].styleOverrides,ne={};return Object.entries(G).forEach(([Q,B])=>{ne[Q]=wu(B,O({},M,{theme:q}))}),x(M,ne)}),f&&!C&&F.push(M=>{var q;const G=du(O({},M,{defaultTheme:n,themeId:t})),ne=G==null||(q=G.components)==null||(q=q[f])==null?void 0:q.variants;return wu({variants:ne},O({},M,{theme:G}))}),S||F.push(s);const J=F.length-j.length;if(Array.isArray($)&&J>0){const M=new Array(J).fill("");A=[...$,...M],A.raw=[...$.raw,...M]}const R=T(A,...F);return u.muiName&&(R.muiName=u.muiName),R};return T.withConfig&&(N.withConfig=T.withConfig),N}}function Wx(e,t){const n=O({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))n[o]=O({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},!s||!Object.keys(s)?n[o]=a:!a||!Object.keys(a)?n[o]=s:(n[o]=O({},s),Object.keys(a).forEach(u=>{n[o][u]=Wx(a[u],s[u])}))}else n[o]===void 0&&(n[o]=e[o])}),n}function G5(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Wx(t.components[n].defaultProps,o)}function X5({props:e,name:t,defaultTheme:n,themeId:o}){let a=Bx(n);return a=a[o]||a,G5({theme:a,name:t,props:e})}function J5(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(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,a)=>a<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Kx(e){if(e.type)return e;if(e.charAt(0)==="#")return Kx(J5(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(wp(9,e));let o=e.substring(t+1,e.length-1),a;if(n==="color"){if(o=o.split(" "),a=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(wp(10,a))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:a}}const Vo=e=>{const t=Kx(e);return t.values.slice(0,3).map((n,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${n}%`:n).join(" ")};function Q5(e,t){var n,o;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Z5(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let U0=0;function e3(e){const[t,n]=b.useState(e),o=t;return b.useEffect(()=>{t==null&&(U0+=1,n(`mui-${U0}`))},[t]),o}const W0=Cs.useId;function K0(e){return W0!==void 0?W0():e3(e)}function ra(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Z5(n,t)})},e)}function Rm(e=""){function t(...o){if(!o.length)return"";const a=o[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...o.slice(1))})`:`, ${a}`}return(o,...a)=>`var(--${e?`${e}-`:""}${o}${t(...a)})`}const q0=(e,t,n,o=[])=>{let a=e;t.forEach((s,u)=>{u===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=o.includes(s)?[]:{}),a=a[s])})},t3=(e,t,n)=>{function o(a,s=[],u=[]){Object.entries(a).forEach(([d,f])=>{(!n||n&&!n([...s,d]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?o(f,[...s,d],Array.isArray(f)?[...u,d]:u):t([...s,d],f,u))})}o(e)},n3=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Df(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},a={},s={},u={};return t3(e,(d,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!o||!o(d,f))){const h=`--${n?`${n}-`:""}${d.join("-")}`;Object.assign(a,{[h]:n3(d,f)}),q0(s,d,`var(${h})`,p),q0(u,d,`var(${h}, ${f})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:u}}function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function r3(e,t){if(Is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(Is(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function o3(e){var t=r3(e,"string");return Is(t)=="symbol"?t:t+""}const i3=["colorSchemes","components","defaultColorScheme"];function a3(e,t){const{colorSchemes:n={},defaultColorScheme:o="light"}=e,a=Le(e,i3),{vars:s,css:u,varsWithDefaults:d}=Df(a,t);let f=d;const p={},{[o]:h}=n,y=Le(n,[o].map(o3));if(Object.entries(y||{}).forEach(([k,C])=>{const{vars:S,css:w,varsWithDefaults:I}=Df(C,t);f=Fr(f,I),p[k]={css:w,vars:S}}),h){const{css:k,vars:C,varsWithDefaults:S}=Df(h,t);f=Fr(f,S),p[o]={css:k,vars:C}}return{vars:f,generateCssVars:k=>{var C;if(!k){var S;const I=O({},u);return{css:I,vars:s,selector:(t==null||(S=t.getSelector)==null?void 0:S.call(t,k,I))||":root"}}const w=O({},p[k].css);return{css:w,vars:p[k].vars,selector:(t==null||(C=t.getSelector)==null?void 0:C.call(t,k,w))||":root"}}}}const Cn=(e,t)=>Vx(e,t,"Mui"),un=(e,t)=>Ux(e,t,"Mui"),s3=O({},mc,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}}),rs={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};function l3(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}const u3=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var n;return(n=t.match)==null?void 0:n.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),Y0=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},G0=(e,t,n)=>{const o={};return Object.entries(t||{}).forEach(([a,s])=>{if(a.match(new RegExp(`${e}(color|bg|border)`,"i"))&&s){const u=n?n(a):s;a.includes("Disabled")&&(o.pointerEvents="none",o.cursor="default",o["--Icon-color"]="currentColor"),a.match(/(Hover|Active|Disabled)/)||(o["--variant-borderWidth"]||(o["--variant-borderWidth"]="0px"),a.includes("Border")&&(o["--variant-borderWidth"]="1px",o.border="var(--variant-borderWidth) solid")),Y0(o,a,u)}}),o},Ft=(e,t)=>{let n={};if(t){const{getCssVar:o,palette:a}=t;Object.entries(a).forEach(s=>{const[u,d]=s;u3(d)&&typeof d=="object"&&(n=O({},n,{[u]:G0(e,d,f=>`var(--variant-${f}, ${o(`palette-${u}-${f}`,a[u][f])})`)}))})}return n.context=G0(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},c3=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],d3=["colorSchemes"],f3=(e="joy")=>Rm(e);function p3(e){var t,n,o,a,s,u,d,f,p,h;const y={},{cssVarPrefix:x="joy",breakpoints:k,spacing:C,components:S,variants:w,shouldSkipGeneratingVar:I=l3}=y,T=Le(y,c3),E=f3(x),N={primary:rs.blue,neutral:rs.grey,danger:rs.red,success:rs.green,warning:rs.yellow,common:{white:"#FFF",black:"#000"}},$=Z=>{var ce;const xe=Z.split("-"),Ne=xe[1],at=xe[2];return E(Z,(ce=N[Ne])==null?void 0:ce[at])},j=Z=>({plainColor:$(`palette-${Z}-500`),plainHoverBg:$(`palette-${Z}-100`),plainActiveBg:$(`palette-${Z}-200`),plainDisabledColor:$("palette-neutral-400"),outlinedColor:$(`palette-${Z}-500`),outlinedBorder:$(`palette-${Z}-300`),outlinedHoverBg:$(`palette-${Z}-100`),outlinedActiveBg:$(`palette-${Z}-200`),outlinedDisabledColor:$("palette-neutral-400"),outlinedDisabledBorder:$("palette-neutral-200"),softColor:$(`palette-${Z}-700`),softBg:$(`palette-${Z}-100`),softHoverBg:$(`palette-${Z}-200`),softActiveColor:$(`palette-${Z}-800`),softActiveBg:$(`palette-${Z}-300`),softDisabledColor:$("palette-neutral-400"),softDisabledBg:$("palette-neutral-50"),solidColor:$("palette-common-white"),solidBg:$(`palette-${Z}-500`),solidHoverBg:$(`palette-${Z}-600`),solidActiveBg:$(`palette-${Z}-700`),solidDisabledColor:$("palette-neutral-400"),solidDisabledBg:$("palette-neutral-100")}),A=Z=>({plainColor:$(`palette-${Z}-300`),plainHoverBg:$(`palette-${Z}-800`),plainActiveBg:$(`palette-${Z}-700`),plainDisabledColor:$("palette-neutral-500"),outlinedColor:$(`palette-${Z}-200`),outlinedBorder:$(`palette-${Z}-700`),outlinedHoverBg:$(`palette-${Z}-800`),outlinedActiveBg:$(`palette-${Z}-700`),outlinedDisabledColor:$("palette-neutral-500"),outlinedDisabledBorder:$("palette-neutral-800"),softColor:$(`palette-${Z}-200`),softBg:$(`palette-${Z}-800`),softHoverBg:$(`palette-${Z}-700`),softActiveColor:$(`palette-${Z}-100`),softActiveBg:$(`palette-${Z}-600`),softDisabledColor:$("palette-neutral-500"),softDisabledBg:$("palette-neutral-800"),solidColor:$("palette-common-white"),solidBg:$(`palette-${Z}-500`),solidHoverBg:$(`palette-${Z}-600`),solidActiveBg:$(`palette-${Z}-700`),solidDisabledColor:$("palette-neutral-500"),solidDisabledBg:$("palette-neutral-800")}),F={palette:{mode:"light",primary:O({},N.primary,j("primary")),neutral:O({},N.neutral,j("neutral"),{plainColor:$("palette-neutral-700"),plainHoverColor:$("palette-neutral-900"),outlinedColor:$("palette-neutral-700")}),danger:O({},N.danger,j("danger")),success:O({},N.success,j("success")),warning:O({},N.warning,j("warning")),common:{white:"#FFF",black:"#000"},text:{primary:$("palette-neutral-800"),secondary:$("palette-neutral-700"),tertiary:$("palette-neutral-600"),icon:$("palette-neutral-500")},background:{body:$("palette-common-white"),surface:$("palette-neutral-50"),popup:$("palette-common-white"),level1:$("palette-neutral-100"),level2:$("palette-neutral-200"),level3:$("palette-neutral-300"),tooltip:$("palette-neutral-500"),backdrop:`rgba(${E("palette-neutral-darkChannel",Vo(N.neutral[900]))} / 0.25)`},divider:`rgba(${E("palette-neutral-mainChannel",Vo(N.neutral[500]))} / 0.2)`,focusVisible:$("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},J={palette:{mode:"dark",primary:O({},N.primary,A("primary")),neutral:O({},N.neutral,A("neutral"),{plainColor:$("palette-neutral-300"),plainHoverColor:$("palette-neutral-300")}),danger:O({},N.danger,A("danger")),success:O({},N.success,A("success")),warning:O({},N.warning,A("warning")),common:{white:"#FFF",black:"#000"},text:{primary:$("palette-neutral-100"),secondary:$("palette-neutral-300"),tertiary:$("palette-neutral-400"),icon:$("palette-neutral-400")},background:{body:$("palette-common-black"),surface:$("palette-neutral-900"),popup:$("palette-common-black"),level1:$("palette-neutral-800"),level2:$("palette-neutral-700"),level3:$("palette-neutral-600"),tooltip:$("palette-neutral-600"),backdrop:`rgba(${E("palette-neutral-darkChannel",Vo(N.neutral[50]))} / 0.25)`},divider:`rgba(${E("palette-neutral-mainChannel",Vo(N.neutral[500]))} / 0.16)`,focusVisible:$("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},R='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',M=O({body:`"Inter", ${E(`fontFamily-fallback, ${R}`)}`,display:`"Inter", ${E(`fontFamily-fallback, ${R}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:R},T.fontFamily),q=O({sm:300,md:500,lg:600,xl:700},T.fontWeight),G=O({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},T.fontSize),ne=O({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},T.lineHeight),Q=(t=(n=T.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:F.shadowRing,B=(o=(a=T.colorSchemes)==null||(a=a.light)==null?void 0:a.shadowChannel)!=null?o:F.shadowChannel,V=(s=(u=T.colorSchemes)==null||(u=u.light)==null?void 0:u.shadowOpacity)!=null?s:F.shadowOpacity,U={colorSchemes:{light:F,dark:J},fontSize:G,fontFamily:M,fontWeight:q,focus:{thickness:"2px",selector:`&.${Cn("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${E("focus-thickness",(d=(f=T.focus)==null?void 0:f.thickness)!=null?d:"2px")})`,outline:`${E("focus-thickness",(p=(h=T.focus)==null?void 0:h.thickness)!=null?p:"2px")} solid ${E("palette-focusVisible",N.primary[500])}`}},lineHeight:ne,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${E("shadowRing",Q)}, 0px 1px 2px 0px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)})`,sm:`${E("shadowRing",Q)}, 0px 1px 2px 0px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)}), 0px 2px 4px 0px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)})`,md:`${E("shadowRing",Q)}, 0px 2px 8px -2px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)}), 0px 6px 12px -2px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)})`,lg:`${E("shadowRing",Q)}, 0px 2px 8px -2px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)}), 0px 12px 16px -4px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)})`,xl:`${E("shadowRing",Q)}, 0px 2px 8px -2px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)}), 0px 20px 24px -4px rgba(${E("shadowChannel",B)} / ${E("shadowOpacity",V)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:E(`fontFamily-display, ${M.display}`),fontWeight:E(`fontWeight-xl, ${q.xl}`),fontSize:E(`fontSize-xl4, ${G.xl4}`),lineHeight:E(`lineHeight-xs, ${ne.xs}`),letterSpacing:"-0.025em",color:E(`palette-text-primary, ${F.palette.text.primary}`)},h2:{fontFamily:E(`fontFamily-display, ${M.display}`),fontWeight:E(`fontWeight-xl, ${q.xl}`),fontSize:E(`fontSize-xl3, ${G.xl3}`),lineHeight:E(`lineHeight-xs, ${ne.xs}`),letterSpacing:"-0.025em",color:E(`palette-text-primary, ${F.palette.text.primary}`)},h3:{fontFamily:E(`fontFamily-display, ${M.display}`),fontWeight:E(`fontWeight-lg, ${q.lg}`),fontSize:E(`fontSize-xl2, ${G.xl2}`),lineHeight:E(`lineHeight-xs, ${ne.xs}`),letterSpacing:"-0.025em",color:E(`palette-text-primary, ${F.palette.text.primary}`)},h4:{fontFamily:E(`fontFamily-display, ${M.display}`),fontWeight:E(`fontWeight-lg, ${q.lg}`),fontSize:E(`fontSize-xl, ${G.xl}`),lineHeight:E(`lineHeight-md, ${ne.md}`),letterSpacing:"-0.025em",color:E(`palette-text-primary, ${F.palette.text.primary}`)},"title-lg":{fontFamily:E(`fontFamily-body, ${M.body}`),fontWeight:E(`fontWeight-lg, ${q.lg}`),fontSize:E(`fontSize-lg, ${G.lg}`),lineHeight:E(`lineHeight-xs, ${ne.xs}`),color:E(`palette-text-primary, ${F.palette.text.primary}`)},"title-md":{fontFamily:E(`fontFamily-body, ${M.body}`),fontWeight:E(`fontWeight-md, ${q.md}`),fontSize:E(`fontSize-md, ${G.md}`),lineHeight:E(`lineHeight-md, ${ne.md}`),color:E(`palette-text-primary, ${F.palette.text.primary}`)},"title-sm":{fontFamily:E(`fontFamily-body, ${M.body}`),fontWeight:E(`fontWeight-md, ${q.md}`),fontSize:E(`fontSize-sm, ${G.sm}`),lineHeight:E(`lineHeight-sm, ${ne.sm}`),color:E(`palette-text-primary, ${F.palette.text.primary}`)},"body-lg":{fontFamily:E(`fontFamily-body, ${M.body}`),fontSize:E(`fontSize-lg, ${G.lg}`),lineHeight:E(`lineHeight-md, ${ne.md}`),color:E(`palette-text-secondary, ${F.palette.text.secondary}`)},"body-md":{fontFamily:E(`fontFamily-body, ${M.body}`),fontSize:E(`fontSize-md, ${G.md}`),lineHeight:E(`lineHeight-md, ${ne.md}`),color:E(`palette-text-secondary, ${F.palette.text.secondary}`)},"body-sm":{fontFamily:E(`fontFamily-body, ${M.body}`),fontSize:E(`fontSize-sm, ${G.sm}`),lineHeight:E(`lineHeight-md, ${ne.md}`),color:E(`palette-text-tertiary, ${F.palette.text.tertiary}`)},"body-xs":{fontFamily:E(`fontFamily-body, ${M.body}`),fontWeight:E(`fontWeight-md, ${q.md}`),fontSize:E(`fontSize-xs, ${G.xs}`),lineHeight:E(`lineHeight-md, ${ne.md}`),color:E(`palette-text-tertiary, ${F.palette.text.tertiary}`)}}},te=T?Fr(U,T):U,{colorSchemes:ae}=te,z=Le(te,d3),K=O({colorSchemes:ae},z,{breakpoints:Ox(k??{}),components:Fr({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:Z,theme:ce})=>{var xe;const Ne=Z.instanceFontSize;return O({margin:"var(--Icon-margin)"},Z.fontSize&&Z.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${ce.vars.fontSize[Z.fontSize]})`},!Z.htmlColor&&O({color:`var(--Icon-color, ${K.vars.palette.text.icon})`},Z.color&&Z.color!=="inherit"&&ce.vars.palette[Z.color]&&{color:`rgba(${(xe=ce.vars.palette[Z.color])==null?void 0:xe.mainChannel} / 1)`}),Ne&&Ne!=="inherit"&&{"--Icon-fontSize":ce.vars.fontSize[Ne]})}}}},S),cssVarPrefix:x,getCssVar:E,spacing:Lx(C)});function me(Z,ce){Object.keys(ce).forEach(xe=>{const Ne={main:"500",light:"200",dark:"700"};Z==="dark"&&(Ne.main=400),!ce[xe].mainChannel&&ce[xe][Ne.main]&&(ce[xe].mainChannel=Vo(ce[xe][Ne.main])),!ce[xe].lightChannel&&ce[xe][Ne.light]&&(ce[xe].lightChannel=Vo(ce[xe][Ne.light])),!ce[xe].darkChannel&&ce[xe][Ne.dark]&&(ce[xe].darkChannel=Vo(ce[xe][Ne.dark]))})}Object.entries(K.colorSchemes).forEach(([Z,ce])=>{me(Z,ce.palette)});const he={prefix:x,shouldSkipGeneratingVar:I},{vars:de,generateCssVars:ve}=a3(O({colorSchemes:ae},z),he);K.vars=de,K.generateCssVars=ve,K.unstable_sxConfig=O({},s3,void 0),K.unstable_sx=function(ce){return Vs({sx:ce,theme:this})},K.getColorSchemeSelector=Z=>Z==="light"?"&":`&[data-joy-color-scheme="${Z}"], [data-joy-color-scheme="${Z}"] &`;const oe={getCssVar:E,palette:K.colorSchemes.light.palette};return K.variants=Fr({plain:Ft("plain",oe),plainHover:Ft("plainHover",oe),plainActive:Ft("plainActive",oe),plainDisabled:Ft("plainDisabled",oe),outlined:Ft("outlined",oe),outlinedHover:Ft("outlinedHover",oe),outlinedActive:Ft("outlinedActive",oe),outlinedDisabled:Ft("outlinedDisabled",oe),soft:Ft("soft",oe),softHover:Ft("softHover",oe),softActive:Ft("softActive",oe),softDisabled:Ft("softDisabled",oe),solid:Ft("solid",oe),solidHover:Ft("solidHover",oe),solidActive:Ft("solidActive",oe),solidDisabled:Ft("solidDisabled",oe)},w),K.palette=O({},K.colorSchemes.light.palette,{colorScheme:"light"}),K.shouldSkipGeneratingVar=I,K.applyStyles=zx,K}const Im=p3(),Tm="$$joy",m3=Ux("MuiBox",["root"]),h3=D5({themeId:Tm,defaultTheme:Im,defaultClassName:m3.root,generateClassName:Fx.generate});function g3(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function X0(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function Sr(e){return e&&e.ownerDocument||document}function Nm(e){return Sr(e).defaultView||window}function $p(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ei=typeof window<"u"?b.useLayoutEffect:b.useEffect;let J0=0;function v3(e){const[t,n]=b.useState(e),o=e||t;return b.useEffect(()=>{t==null&&(J0+=1,n(`mui-${J0}`))},[t]),o}const Q0=Cs.useId;function qx(e){if(Q0!==void 0){const t=Q0();return e??t}return v3(e)}function Z0(e){const t=b.useRef(e);return ei(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Dn(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{$p(n,t)})},e)}let y3=class Yx{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yx}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}},hc=!0,Rp=!1;const x3=new y3,b3={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 S3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&b3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function C3(e){e.metaKey||e.altKey||e.ctrlKey||(hc=!0)}function Bf(){hc=!1}function w3(){this.visibilityState==="hidden"&&Rp&&(hc=!0)}function k3(e){e.addEventListener("keydown",C3,!0),e.addEventListener("mousedown",Bf,!0),e.addEventListener("pointerdown",Bf,!0),e.addEventListener("touchstart",Bf,!0),e.addEventListener("visibilitychange",w3,!0)}function E3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return hc||S3(t)}function P3(){const e=b.useCallback(a=>{a!=null&&k3(a.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(Rp=!0,x3.start(100,()=>{Rp=!1}),t.current=!1,!0):!1}function o(a){return E3(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:n,ref:e}}function $3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const R3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function wn(e,t,n=void 0){const o={};return Object.keys(e).forEach(a=>{o[a]=e[a].reduce((s,u)=>{if(u){const d=t(u);d!==""&&s.push(d),n&&n[u]&&s.push(n[u])}return s},[]).join(" ")}),o}const I3={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 T3(e){return typeof e=="string"}function Gx(e,t,n){return e===void 0||T3(e)?t:O({},t,{ownerState:O({},t.ownerState,n)})}function vn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function ey(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 Xx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:a,className:s}=e;if(!t){const k=Ke(n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),C=O({},n==null?void 0:n.style,a==null?void 0:a.style,o==null?void 0:o.style),S=O({},n,a,o);return k.length>0&&(S.className=k),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const u=vn(O({},a,o)),d=ey(o),f=ey(a),p=t(u),h=Ke(p==null?void 0:p.className,n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),y=O({},p==null?void 0:p.style,n==null?void 0:n.style,a==null?void 0:a.style,o==null?void 0:o.style),x=O({},p,n,f,d);return h.length>0&&(x.className=h),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:p.ref}}function Jx(e,t,n){return typeof e=="function"?e(t,n):e}const N3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _3(e){var t;const{elementType:n,externalSlotProps:o,ownerState:a,skipResolvingSlotProps:s=!1}=e,u=Le(e,N3),d=s?{}:Jx(o,a),{props:f,internalRef:p}=Xx(O({},u,{externalSlotProps:d})),h=Dn(p,d==null?void 0:d.ref,(t=e.additionalProps)==null?void 0:t.ref);return Gx(n,O({},f,{ref:h}),a)}function Qx(e){if(parseInt(b.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}function O3(e){const{rootElementName:t=""}=e,[n,o]=b.useState(t.toUpperCase()),a=b.useCallback(s=>{var u;o((u=s==null?void 0:s.tagName)!=null?u:"")},[]);return[n,a]}function oa(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:o,rootRef:a,tabIndex:s,to:u,type:d,rootElementName:f}=e,p=b.useRef(null),[h,y]=b.useState(!1),{isFocusVisibleRef:x,onFocus:k,onBlur:C,ref:S}=P3(),[w,I]=b.useState(!1);t&&!n&&w&&I(!1),b.useEffect(()=>{x.current=w},[w,x]);const[T,E]=O3({rootElementName:f??(o||u?"a":void 0)}),N=Q=>B=>{var V;w&&B.preventDefault(),(V=Q.onMouseLeave)==null||V.call(Q,B)},$=Q=>B=>{var V;C(B),x.current===!1&&I(!1),(V=Q.onBlur)==null||V.call(Q,B)},j=Q=>B=>{var V;if(p.current||(p.current=B.currentTarget),k(B),x.current===!0){var U;I(!0),(U=Q.onFocusVisible)==null||U.call(Q,B)}(V=Q.onFocus)==null||V.call(Q,B)},A=()=>{const Q=p.current;return T==="BUTTON"||T==="INPUT"&&["button","submit","reset"].includes(Q==null?void 0:Q.type)||T==="A"&&(Q==null?void 0:Q.href)},F=Q=>B=>{if(!t){var V;(V=Q.onClick)==null||V.call(Q,B)}},J=Q=>B=>{var V;t||(y(!0),document.addEventListener("mouseup",()=>{y(!1)},{once:!0})),(V=Q.onMouseDown)==null||V.call(Q,B)},R=Q=>B=>{var V;if((V=Q.onKeyDown)==null||V.call(Q,B),!B.defaultMuiPrevented&&(B.target===B.currentTarget&&!A()&&B.key===" "&&B.preventDefault(),B.target===B.currentTarget&&B.key===" "&&!t&&y(!0),B.target===B.currentTarget&&!A()&&B.key==="Enter"&&!t)){var U;(U=Q.onClick)==null||U.call(Q,B),B.preventDefault()}},M=Q=>B=>{var V;if(B.target===B.currentTarget&&y(!1),(V=Q.onKeyUp)==null||V.call(Q,B),B.target===B.currentTarget&&!A()&&!t&&B.key===" "&&!B.defaultMuiPrevented){var U;(U=Q.onClick)==null||U.call(Q,B)}},q=Dn(E,a,S,p),G={};return s!==void 0&&(G.tabIndex=s),T==="BUTTON"?(G.type=d??"button",n?G["aria-disabled"]=t:G.disabled=t):T==="INPUT"?d&&["button","submit","reset"].includes(d)&&(n?G["aria-disabled"]=t:G.disabled=t):T!==""&&(!o&&!u&&(G.role="button",G.tabIndex=s??0),t&&(G["aria-disabled"]=t,G.tabIndex=n?s??0:-1)),{getRootProps:(Q={})=>{const B=O({},vn(e),vn(Q)),V=O({type:d},B,G,Q,{onBlur:$(B),onClick:F(B),onFocus:j(B),onKeyDown:R(B),onKeyUp:M(B),onMouseDown:J(B),onMouseLeave:N(B),ref:q});return delete V.onFocusVisible,V},focusVisible:w,setFocusVisible:I,active:h,rootRef:q}}const Ie=Y5({defaultTheme:Im,themeId:Tm});function Hn({props:e,name:t}){return X5({props:e,name:t,defaultTheme:O({},Im,{components:{}}),themeId:Tm})}function ty(e,t,n=(o,a)=>o===a){return e.length===t.length&&e.every((o,a)=>n(o,t[a]))}const j3={disableDefaultClasses:!1},A3=b.createContext(j3);function L3(e){const{disableDefaultClasses:t}=b.useContext(A3);return n=>t?"":e(n)}const z3=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],D3=["component","slots","slotProps"],B3=["component"];function Fe(e,t){const{className:n,elementType:o,ownerState:a,externalForwardedProps:s,getSlotOwnerState:u,internalForwardedProps:d}=t,f=Le(t,z3),{component:p,slots:h={[e]:void 0},slotProps:y={[e]:void 0}}=s,x=Le(s,D3),k=h[e]||o,C=Jx(y[e],a),S=Xx(O({className:n},f,{externalForwardedProps:e==="root"?x:void 0,externalSlotProps:C})),{props:{component:w},internalRef:I}=S,T=Le(S.props,B3),E=ra(I,C==null?void 0:C.ref,t.ref),N=u?u(T):{},$=O({},a,N),j=e==="root"?w||p:w,A=Gx(k,O({},e==="root"&&!p&&!h[e]&&d,e!=="root"&&!h[e]&&d,T,j&&{as:j},{ref:E}),$);return Object.keys(N).forEach(F=>{delete A[F]}),[k,A]}function M3(e){return Cn("MuiIconButton",e)}un("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]);const Zx=b.createContext({}),eb=b.createContext(void 0),tb="base";function F3(e){return`${tb}--${e}`}function H3(e,t){return`${tb}-${e}-${t}`}function V3(e,t){const n=I3[t];return n?F3(n):H3(e,t)}function U3(e,t){return e===t}const Mf={},ny=()=>{};function Ip(e,t){const n=O({},e);return Object.keys(t).forEach(o=>{t[o]!==void 0&&(n[o]=t[o])}),n}function W3(e){const{nextState:t,initialState:n,stateComparers:o,onStateChange:a,controlledProps:s,lastActionRef:u}=e,d=b.useRef(n);b.useEffect(()=>{if(u.current===null)return;const f=Ip(d.current,s);Object.keys(t).forEach(p=>{var h;const y=(h=o[p])!=null?h:U3,x=t[p],k=f[p];if(k==null&&x!=null||k!=null&&x==null||k!=null&&x!=null&&!y(x,k)){var C,S;a==null||a((C=u.current.event)!=null?C:null,p,x,(S=u.current.type)!=null?S:"",t)}}),d.current=t,u.current=null},[d,t,u,a,o,s])}function K3(e){const t=b.useRef(null),{reducer:n,initialState:o,controlledProps:a=Mf,stateComparers:s=Mf,onStateChange:u=ny,actionContext:d}=e;b.useRef(a);const f=b.useCallback((x,k)=>{t.current=k;const C=Ip(x,a);return n(C,k)},[a,n]),[p,h]=b.useReducer(f,o),y=b.useCallback(x=>{h(O({},x,{context:d}))},[d]);return W3({nextState:p,initialState:o,stateComparers:s??Mf,onStateChange:u??ny,controlledProps:a,lastActionRef:t}),[Ip(p,a),y]}const q3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function G3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function X3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||G3(e))}function J3(e){const t=[],n=[];return Array.from(e.querySelectorAll(q3)).forEach((o,a)=>{const s=Y3(o);s===-1||!X3(o)||(s===0?t.push(o):n.push({documentOrder:a,tabIndex:s,node:o}))}),n.sort((o,a)=>o.tabIndex===a.tabIndex?o.documentOrder-a.documentOrder:o.tabIndex-a.tabIndex).map(o=>o.node).concat(t)}function Q3(){return!0}function Z3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:s=J3,isEnabled:u=Q3,open:d}=e,f=b.useRef(!1),p=b.useRef(null),h=b.useRef(null),y=b.useRef(null),x=b.useRef(null),k=b.useRef(!1),C=b.useRef(null),S=Dn(Qx(t),C),w=b.useRef(null);b.useEffect(()=>{!d||!C.current||(k.current=!n)},[n,d]),b.useEffect(()=>{if(!d||!C.current)return;const E=Sr(C.current);return C.current.contains(E.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),k.current&&C.current.focus()),()=>{a||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}},[d]),b.useEffect(()=>{if(!d||!C.current)return;const E=Sr(C.current),N=A=>{w.current=A,!(o||!u()||A.key!=="Tab")&&E.activeElement===C.current&&A.shiftKey&&(f.current=!0,h.current&&h.current.focus())},$=()=>{const A=C.current;if(A===null)return;if(!E.hasFocus()||!u()||f.current){f.current=!1;return}if(A.contains(E.activeElement)||o&&E.activeElement!==p.current&&E.activeElement!==h.current)return;if(E.activeElement!==x.current)x.current=null;else if(x.current!==null)return;if(!k.current)return;let F=[];if((E.activeElement===p.current||E.activeElement===h.current)&&(F=s(C.current)),F.length>0){var J,R;const M=!!((J=w.current)!=null&&J.shiftKey&&((R=w.current)==null?void 0:R.key)==="Tab"),q=F[0],G=F[F.length-1];typeof q!="string"&&typeof G!="string"&&(M?G.focus():q.focus())}else A.focus()};E.addEventListener("focusin",$),E.addEventListener("keydown",N,!0);const j=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(j),E.removeEventListener("focusin",$),E.removeEventListener("keydown",N,!0)}},[n,o,a,u,d,s]);const I=E=>{y.current===null&&(y.current=E.relatedTarget),k.current=!0,x.current=E.target;const N=t.props.onFocus;N&&N(E)},T=E=>{y.current===null&&(y.current=E.relatedTarget),k.current=!0};return g.jsxs(b.Fragment,{children:[g.jsx("div",{tabIndex:d?0:-1,onFocus:T,ref:p,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:S,onFocus:I}),g.jsx("div",{tabIndex:d?0:-1,onFocus:T,ref:h,"data-testid":"sentinelEnd"})]})}const eR=b.createContext(void 0);function tR(){return b.useContext(eR)}function nR(e={}){const{defaultValue:t,disabled:n=!1,error:o=!1,onBlur:a,onChange:s,onFocus:u,required:d=!1,value:f,inputRef:p}=e,h=tR();let y,x,k,C,S;if(h){var w,I,T;y=void 0,x=(w=h.disabled)!=null?w:!1,k=(I=h.error)!=null?I:!1,C=(T=h.required)!=null?T:!1,S=h.value}else y=t,x=n,k=o,C=d,S=f;const{current:E}=b.useRef(S!=null),N=b.useCallback(Q=>{},[]),$=b.useRef(null),j=Dn($,p,N),[A,F]=b.useState(!1);b.useEffect(()=>{!h&&x&&A&&(F(!1),a==null||a())},[h,x,A,a]);const J=Q=>B=>{var V;if(h!=null&&h.disabled){B.stopPropagation();return}if((V=Q.onFocus)==null||V.call(Q,B),h&&h.onFocus){var U;h==null||(U=h.onFocus)==null||U.call(h)}else F(!0)},R=Q=>B=>{var V;(V=Q.onBlur)==null||V.call(Q,B),h&&h.onBlur?h.onBlur():F(!1)},M=Q=>(B,...V)=>{var U,te;if(!E&&(B.target||$.current)==null)throw new Error(g3(17));h==null||(U=h.onChange)==null||U.call(h,B),(te=Q.onChange)==null||te.call(Q,B,...V)},q=Q=>B=>{var V;$.current&&B.currentTarget===B.target&&$.current.focus(),(V=Q.onClick)==null||V.call(Q,B)};return{disabled:x,error:k,focused:A,formControlContext:h,getInputProps:(Q={})=>{const V=O({},{onBlur:a,onChange:s,onFocus:u},vn(Q)),U=O({},V,{onBlur:R(V),onChange:M(V),onFocus:J(V)});return O({},U,{"aria-invalid":k||void 0,defaultValue:y,value:S,required:C,disabled:x},Q,{ref:j},U)},getRootProps:(Q={})=>{const B=vn(e,["onBlur","onChange","onFocus"]),V=O({},B,vn(Q));return O({},Q,V,{onClick:q(V)})},inputRef:j,required:C,value:S}}const ft={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function rR(e,t,n,o,a,s){if(n.length===0||!o&&n.every((d,f)=>a(d,f)))return-1;let u=e;for(;;){if(!s&&t==="next"&&u===n.length||!s&&t==="previous"&&u===-1)return-1;if(o?!1:a(n[u],u))u+=t==="next"?1:-1,s&&(u=(u+n.length)%n.length);else return u}}function At(e,t,n){var o;const{items:a,isItemDisabled:s,disableListWrap:u,disabledItemsFocusable:d,itemComparer:f,focusManagement:p}=n,h=p==="DOM"?0:-1,y=a.length-1,x=e==null?-1:a.findIndex(I=>f(I,e));let k,C,S=!u;switch(t){case"reset":if(h===-1)return null;k=0,C="next",S=!1;break;case"start":k=0,C="next",S=!1;break;case"end":k=y,C="previous",S=!1;break;default:{const I=x+t;I<0?!S&&x!==-1||Math.abs(t)>1?(k=0,C="next"):(k=y,C="previous"):I>y?!S||Math.abs(t)>1?(k=y,C="previous"):(k=0,C="next"):(k=I,C=t>=0?"next":"previous")}}const w=rR(k,C,a,d,s,S);return w===-1&&e!==null&&!s(e,x)?e:(o=a[w])!=null?o:null}function oR(e,t,n,o){return n==="none"?[]:n==="single"?o(t[0],e)?t:[e]:t.some(a=>o(a,e))?t.filter(a=>!o(a,e)):[...t,e]}function _m(e,t,n){const{itemComparer:o,isItemDisabled:a,selectionMode:s,items:u}=n,{selectedValues:d}=t,f=u.findIndex(h=>o(e,h));if(a(e,f))return t;const p=oR(e,d,s,o);return O({},t,{selectedValues:p,highlightedValue:e})}function iR(e,t,n){const o=t.highlightedValue,{orientation:a,pageSize:s}=n;switch(e){case"Home":return O({},t,{highlightedValue:At(o,"start",n)});case"End":return O({},t,{highlightedValue:At(o,"end",n)});case"PageUp":return O({},t,{highlightedValue:At(o,-s,n)});case"PageDown":return O({},t,{highlightedValue:At(o,s,n)});case"ArrowUp":if(a!=="vertical")break;return O({},t,{highlightedValue:At(o,-1,n)});case"ArrowDown":if(a!=="vertical")break;return O({},t,{highlightedValue:At(o,1,n)});case"ArrowLeft":{if(a==="vertical")break;return O({},t,{highlightedValue:At(o,a==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(a==="vertical")break;return O({},t,{highlightedValue:At(o,a==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:_m(t.highlightedValue,t,n)}return t}function aR(e,t){return t.focusManagement==="DOM"?e:O({},e,{highlightedValue:null})}function sR(e,t,n){var o;const a=(o=n(e))==null?void 0:o.trim().toLowerCase();return!a||a.length===0?!1:a.indexOf(t)===0}function lR(e,t,n){const{items:o,isItemDisabled:a,disabledItemsFocusable:s,getItemAsString:u}=n,d=t.length>1;let f=d?e.highlightedValue:At(e.highlightedValue,1,n);for(let p=0;p<o.length;p+=1){if(!f||!d&&e.highlightedValue===f)return e;if(sR(f,t,u)&&(!a(f,o.indexOf(f))||s))return O({},e,{highlightedValue:f});f=At(f,1,n)}return e}function uR(e,t,n,o){var a;const{itemComparer:s,focusManagement:u}=o;let d=null;if(n.highlightedValue!=null){var f;d=(f=e.find(y=>s(y,n.highlightedValue)))!=null?f:null}else u==="DOM"&&t.length===0&&(d=At(null,"reset",o));const h=((a=n.selectedValues)!=null?a:[]).filter(y=>e.some(x=>s(x,y)));return O({},n,{highlightedValue:d,selectedValues:h})}function cR(e,t){return O({},e,{highlightedValue:At(null,"reset",t)})}function dR(e,t){return O({},e,{highlightedValue:At(null,"end",t)})}function fR(e,t){return O({},e,{selectedValues:[],highlightedValue:At(null,"reset",t)})}function nb(e,t){const{type:n,context:o}=t;switch(n){case ft.keyDown:return iR(t.key,e,o);case ft.itemClick:return _m(t.item,e,o);case ft.blur:return aR(e,o);case ft.textNavigation:return lR(e,t.searchString,o);case ft.itemsChange:return uR(t.items,t.previousItems,e,o);case ft.resetHighlight:return cR(e,o);case ft.highlightLast:return dR(e,o);case ft.clearSelection:return fR(e,o);default:return e}}const pR=500;function mR(e){const t=b.useRef({searchString:"",lastTime:null});return b.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const o=t.current,a=n.key.toLowerCase(),s=performance.now();o.searchString.length>0&&o.lastTime&&s-o.lastTime>pR?o.searchString=a:(o.searchString.length!==1||a!==o.searchString)&&(o.searchString+=a),o.lastTime=s,e(o.searchString,n)}},[e])}const ry={},hR=()=>{},gR=(e,t)=>e===t,vR=()=>!1,yR=e=>typeof e=="string"?e:String(e),xR=()=>({highlightedValue:null,selectedValues:[]});function bR(e){const{controlledProps:t=ry,disabledItemsFocusable:n=!1,disableListWrap:o=!1,focusManagement:a="activeDescendant",getInitialState:s=xR,getItemDomElement:u,getItemId:d,isItemDisabled:f=vR,rootRef:p,onStateChange:h=hR,items:y,itemComparer:x=gR,getItemAsString:k=yR,onChange:C,onHighlightChange:S,onItemsChange:w,orientation:I="vertical",pageSize:T=5,reducerActionContext:E=ry,selectionMode:N="single",stateReducer:$,componentName:j="useList"}=e,A=b.useRef(null),F=Dn(p,A),J=b.useCallback((oe,Z,ce)=>{if(S==null||S(oe,Z,ce),a==="DOM"&&Z!=null&&(ce===ft.itemClick||ce===ft.keyDown||ce===ft.textNavigation)){var xe;u==null||(xe=u(Z))==null||xe.focus()}},[u,S,a]),R=b.useMemo(()=>({highlightedValue:x,selectedValues:(oe,Z)=>ty(oe,Z,x)}),[x]),M=b.useCallback((oe,Z,ce,xe,Ne)=>{switch(h==null||h(oe,Z,ce,xe,Ne),Z){case"highlightedValue":J(oe,ce,xe);break;case"selectedValues":C==null||C(oe,ce,xe);break}},[J,C,h]),q=b.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:o,focusManagement:a,isItemDisabled:f,itemComparer:x,items:y,getItemAsString:k,onHighlightChange:J,orientation:I,pageSize:T,selectionMode:N,stateComparers:R}),[n,o,a,f,x,y,k,J,I,T,N,R]),G=s(),ne=$??nb,Q=b.useMemo(()=>O({},E,q),[E,q]),[B,V]=K3({reducer:ne,actionContext:Q,initialState:G,controlledProps:t,stateComparers:R,onStateChange:M}),{highlightedValue:U,selectedValues:te}=B,ae=mR((oe,Z)=>V({type:ft.textNavigation,event:Z,searchString:oe})),z=b.useRef([]);b.useEffect(()=>{ty(z.current,y,x)||(V({type:ft.itemsChange,event:null,items:y,previousItems:z.current}),z.current=y,w==null||w(y))},[y,x,V,w]);const K=oe=>Z=>{var ce;if((ce=oe.onKeyDown)==null||ce.call(oe,Z),Z.defaultMuiPrevented)return;const xe=["Home","End","PageUp","PageDown"];I==="vertical"?xe.push("ArrowUp","ArrowDown"):xe.push("ArrowLeft","ArrowRight"),a==="activeDescendant"&&xe.push(" ","Enter"),xe.includes(Z.key)&&Z.preventDefault(),V({type:ft.keyDown,key:Z.key,event:Z}),ae(Z)},me=oe=>Z=>{var ce,xe;(ce=oe.onBlur)==null||ce.call(oe,Z),!Z.defaultMuiPrevented&&((xe=A.current)!=null&&xe.contains(Z.relatedTarget)||V({type:ft.blur,event:Z}))},he=(oe={})=>{const Z=vn(oe);return O({},oe,{"aria-activedescendant":a==="activeDescendant"&&U!=null?d(U):void 0,tabIndex:a==="DOM"?-1:0,ref:F},Z,{onBlur:me(Z),onKeyDown:K(Z)})},de=b.useCallback(oe=>{const Z=(te??[]).some(Ne=>Ne!=null&&x(oe,Ne)),ce=U!=null&&x(oe,U);return{focusable:a==="DOM",highlighted:ce,selected:Z}},[x,te,U,a]),ve=b.useMemo(()=>({dispatch:V,getItemState:de}),[V,de]);return b.useDebugValue({state:B}),{contextValue:ve,dispatch:V,getRootProps:he,rootRef:F,state:B}}const gc=b.createContext(null);function SR(e){const{handlePointerOverEvents:t=!1,item:n}=e,o=b.useContext(gc);if(!o)throw new Error("useListItem must be used within a ListProvider");const{dispatch:a,getItemState:s}=o,{highlighted:u,selected:d,focusable:f}=s(n),p=b.useCallback(k=>C=>{var S;(S=k.onClick)==null||S.call(k,C),!C.defaultPrevented&&a({type:ft.itemClick,item:n,event:C})},[a,n]),h=b.useCallback(k=>C=>{var S;(S=k.onMouseOver)==null||S.call(k,C),!C.defaultPrevented&&a({type:ft.itemHover,item:n,event:C})},[a,n]);let y;return f&&(y=u?0:-1),{getRootProps:(k={})=>{const C=vn(k);return O({},k,{onClick:p(C),onPointerOver:t?h(C):void 0,tabIndex:y})},highlighted:u,selected:d}}const rb=b.createContext(null);function CR(e){const t=Array.from(e.keys()).map(n=>{const o=e.get(n);return{key:n,subitem:o}});return t.sort((n,o)=>{const a=n.subitem.ref.current,s=o.subitem.ref.current;return a===null||s===null||a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function wR(){const[e,t]=b.useState(new Map),n=b.useRef(new Set),o=b.useCallback(function(p){n.current.delete(p),t(h=>{const y=new Map(h);return y.delete(p),y})},[]),a=b.useCallback(function(p,h){let y;return typeof p=="function"?y=p(n.current):y=p,n.current.add(y),t(x=>{const k=new Map(x);return k.set(y,h),k}),{id:y,deregister:()=>o(y)}},[o]),s=b.useMemo(()=>CR(e),[e]),u=b.useCallback(function(p){return Array.from(s.keys()).indexOf(p)},[s]);return{contextValue:b.useMemo(()=>({getItemIndex:u,registerItem:a,totalSubitemCount:e.size}),[u,a,e.size]),subitems:s}}function kR(e,t){const n=b.useContext(rb);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:o}=n,[a,s]=b.useState(typeof e=="function"?void 0:e);return ei(()=>{const{id:u,deregister:d}=o(e,t);return s(u),d},[o,t,e]),{id:a,index:a!==void 0?n.getItemIndex(a):-1,totalItemCount:n.totalSubitemCount}}function Du(e,t){return function(o={}){const a=O({},o,e(o));return O({},a,t(a))}}var ER=g1();function PR(e){return typeof e=="function"?e():e}const ob=b.forwardRef(function(t,n){const{children:o,container:a,disablePortal:s=!1}=t,[u,d]=b.useState(null),f=Dn(b.isValidElement(o)?Qx(o):null,n);if(ei(()=>{s||d(PR(a)||document.body)},[a,s]),ei(()=>{if(u&&!s)return $p(n,u),()=>{$p(n,null)}},[n,u,s]),s){if(b.isValidElement(o)){const p={ref:f};return b.cloneElement(o,p)}return g.jsx(b.Fragment,{children:o})}return g.jsx(b.Fragment,{children:u&&ER.createPortal(o,u)})});function $R(e){const t=Sr(e);return t.body===e?Nm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oy(e){return parseInt(Nm(e).getComputedStyle(e).paddingRight,10)||0}function RR(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function iy(e,t,n,o,a){const s=[t,n,...o];[].forEach.call(e.children,u=>{const d=s.indexOf(u)===-1,f=!RR(u);d&&f&&vs(u,a)})}function Ff(e,t){let n=-1;return e.some((o,a)=>t(o)?(n=a,!0):!1),n}function IR(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if($R(o)){const u=$3(Sr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${oy(o)+u}px`;const d=Sr(o).querySelectorAll(".mui-fixed");[].forEach.call(d,f=>{n.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${oy(f)+u}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=Sr(o).body;else{const u=o.parentElement,d=Nm(o);s=(u==null?void 0:u.nodeName)==="HTML"&&d.getComputedStyle(u).overflowY==="scroll"?u:o}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:u,property:d})=>{s?u.style.setProperty(d,s):u.style.removeProperty(d)})}}function TR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class NR{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&vs(t.modalRef,!1);const a=TR(n);iy(n,t.mount,t.modalRef,a,!0);const s=Ff(this.containers,u=>u.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),o)}mount(t,n){const o=Ff(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[o];a.restore||(a.restore=IR(a,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const a=Ff(this.containers,u=>u.modals.indexOf(t)!==-1),s=this.containers[a];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&vs(t.modalRef,n),iy(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(a,1);else{const u=s.modals[s.modals.length-1];u.modalRef&&vs(u.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function _R(e){return typeof e=="function"?e():e}function OR(e){return e?e.props.hasOwnProperty("in"):!1}const jR=new NR;function AR(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:a=jR,closeAfterTransition:s=!1,onTransitionEnter:u,onTransitionExited:d,children:f,onClose:p,open:h,rootRef:y}=e,x=b.useRef({}),k=b.useRef(null),C=b.useRef(null),S=Dn(C,y),[w,I]=b.useState(!h),T=OR(f);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const N=()=>Sr(k.current),$=()=>(x.current.modalRef=C.current,x.current.mount=k.current,x.current),j=()=>{a.mount($(),{disableScrollLock:o}),C.current&&(C.current.scrollTop=0)},A=Z0(()=>{const B=_R(t)||N().body;a.add($(),B),C.current&&j()}),F=b.useCallback(()=>a.isTopModal($()),[a]),J=Z0(B=>{k.current=B,B&&(h&&F()?j():C.current&&vs(C.current,E))}),R=b.useCallback(()=>{a.remove($(),E)},[E,a]);b.useEffect(()=>()=>{R()},[R]),b.useEffect(()=>{h?A():(!T||!s)&&R()},[h,R,T,s,A]);const M=B=>V=>{var U;(U=B.onKeyDown)==null||U.call(B,V),!(V.key!=="Escape"||V.which===229||!F())&&(n||(V.stopPropagation(),p&&p(V,"escapeKeyDown")))},q=B=>V=>{var U;(U=B.onClick)==null||U.call(B,V),V.target===V.currentTarget&&p&&p(V,"backdropClick")};return{getRootProps:(B={})=>{const V=vn(e);delete V.onTransitionEnter,delete V.onTransitionExited;const U=O({},V,B);return O({role:"presentation"},U,{onKeyDown:M(U),ref:S})},getBackdropProps:(B={})=>{const V=B;return O({"aria-hidden":!0},V,{onClick:q(V),open:h})},getTransitionProps:()=>{const B=()=>{I(!1),u&&u()},V=()=>{I(!0),d&&d(),s&&R()};return{onEnter:X0(B,f==null?void 0:f.props.onEnter),onExited:X0(V,f==null?void 0:f.props.onExited)}},rootRef:S,portalRef:J,isTopModal:F,exited:w,hasTransition:T}}function LR(e){const{value:t,label:n,disabled:o,rootRef:a,id:s}=e,{getRootProps:u,highlighted:d,selected:f}=SR({item:t}),{getRootProps:p,rootRef:h}=oa({disabled:o,focusableWhenDisabled:!0}),y=qx(s),x=b.useRef(null),k=b.useMemo(()=>({disabled:o,label:n,value:t,ref:x,id:y}),[o,n,t,y]),{index:C}=kR(t,k),S=Dn(a,x,h),w=T=>E=>{var N;(N=T.onKeyDown)==null||N.call(T,E),!E.defaultMuiPrevented&&[" ","Enter"].includes(E.key)&&(E.defaultMuiPrevented=!0)},I=(T={})=>({onKeyDown:w(T)});return{getRootProps:(T={})=>{const E=vn(T),N=Du(u,Du(p,I));return O({},T,E,N(E),{id:y,ref:S,role:"option","aria-selected":f})},highlighted:d,index:C,selected:f,rootRef:S}}function zR(e){const t=b.useContext(gc);if(!t)throw new Error("Option: ListContext was not found.");const{getItemState:n,dispatch:o}=t,{highlighted:a,selected:s,focusable:u}=n(e),d=b.useCallback(p=>{if(p!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:a,selected:s,focusable:u}},[a,s,u,e]);return{contextValue:b.useMemo(()=>({dispatch:o,getItemState:d}),[o,d])}}var rn="top",Bn="bottom",Mn="right",on="left",Om="auto",Us=[rn,Bn,Mn,on],Wi="start",Ts="end",DR="clippingParents",ib="viewport",os="popper",BR="reference",ay=Us.reduce(function(e,t){return e.concat([t+"-"+Wi,t+"-"+Ts])},[]),ab=[].concat(Us,[Om]).reduce(function(e,t){return e.concat([t,t+"-"+Wi,t+"-"+Ts])},[]),MR="beforeRead",FR="read",HR="afterRead",VR="beforeMain",UR="main",WR="afterMain",KR="beforeWrite",qR="write",YR="afterWrite",GR=[MR,FR,HR,VR,UR,WR,KR,qR,YR];function wr(e){return e?(e.nodeName||"").toLowerCase():null}function bn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ti(e){var t=bn(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=bn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function jm(e){if(typeof ShadowRoot>"u")return!1;var t=bn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!zn(s)||!wr(s)||(Object.assign(s.style,o),Object.keys(a).forEach(function(u){var d=a[u];d===!1?s.removeAttribute(u):s.setAttribute(u,d===!0?"":d)}))})}function JR(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(o){var a=t.elements[o],s=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),d=u.reduce(function(f,p){return f[p]="",f},{});!zn(a)||!wr(a)||(Object.assign(a.style,d),Object.keys(s).forEach(function(f){a.removeAttribute(f)}))})}}const QR={name:"applyStyles",enabled:!0,phase:"write",fn:XR,effect:JR,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Go=Math.max,Bu=Math.min,Ki=Math.round;function Tp(){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 sb(){return!/^((?!chrome|android).)*safari/i.test(Tp())}function qi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,s=1;t&&zn(e)&&(a=e.offsetWidth>0&&Ki(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ki(o.height)/e.offsetHeight||1);var u=ti(e)?bn(e):window,d=u.visualViewport,f=!sb()&&n,p=(o.left+(f&&d?d.offsetLeft:0))/a,h=(o.top+(f&&d?d.offsetTop:0))/s,y=o.width/a,x=o.height/s;return{width:y,height:x,top:h,right:p+y,bottom:h+x,left:p,x:p,y:h}}function Am(e){var t=qi(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function lb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&jm(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Wr(e){return bn(e).getComputedStyle(e)}function ZR(e){return["table","td","th"].indexOf(wr(e))>=0}function $o(e){return((ti(e)?e.ownerDocument:e.document)||window.document).documentElement}function vc(e){return wr(e)==="html"?e:e.assignedSlot||e.parentNode||(jm(e)?e.host:null)||$o(e)}function sy(e){return!zn(e)||Wr(e).position==="fixed"?null:e.offsetParent}function e4(e){var t=/firefox/i.test(Tp()),n=/Trident/i.test(Tp());if(n&&zn(e)){var o=Wr(e);if(o.position==="fixed")return null}var a=vc(e);for(jm(a)&&(a=a.host);zn(a)&&["html","body"].indexOf(wr(a))<0;){var s=Wr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Ws(e){for(var t=bn(e),n=sy(e);n&&ZR(n)&&Wr(n).position==="static";)n=sy(n);return n&&(wr(n)==="html"||wr(n)==="body"&&Wr(n).position==="static")?t:n||e4(e)||t}function Lm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ys(e,t,n){return Go(e,Bu(t,n))}function t4(e,t,n){var o=ys(e,t,n);return o>n?n:o}function ub(){return{top:0,right:0,bottom:0,left:0}}function cb(e){return Object.assign({},ub(),e)}function db(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var n4=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cb(typeof t!="number"?t:db(t,Us))};function r4(e){var t,n=e.state,o=e.name,a=e.options,s=n.elements.arrow,u=n.modifiersData.popperOffsets,d=Cr(n.placement),f=Lm(d),p=[on,Mn].indexOf(d)>=0,h=p?"height":"width";if(!(!s||!u)){var y=n4(a.padding,n),x=Am(s),k=f==="y"?rn:on,C=f==="y"?Bn:Mn,S=n.rects.reference[h]+n.rects.reference[f]-u[f]-n.rects.popper[h],w=u[f]-n.rects.reference[f],I=Ws(s),T=I?f==="y"?I.clientHeight||0:I.clientWidth||0:0,E=S/2-w/2,N=y[k],$=T-x[h]-y[C],j=T/2-x[h]/2+E,A=ys(N,j,$),F=f;n.modifiersData[o]=(t={},t[F]=A,t.centerOffset=A-j,t)}}function o4(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||lb(t.elements.popper,a)&&(t.elements.arrow=a))}const i4={name:"arrow",enabled:!0,phase:"main",fn:r4,effect:o4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(e){return e.split("-")[1]}var a4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s4(e,t){var n=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:Ki(n*a)/a||0,y:Ki(o*a)/a||0}}function ly(e){var t,n=e.popper,o=e.popperRect,a=e.placement,s=e.variation,u=e.offsets,d=e.position,f=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,y=e.isFixed,x=u.x,k=x===void 0?0:x,C=u.y,S=C===void 0?0:C,w=typeof h=="function"?h({x:k,y:S}):{x:k,y:S};k=w.x,S=w.y;var I=u.hasOwnProperty("x"),T=u.hasOwnProperty("y"),E=on,N=rn,$=window;if(p){var j=Ws(n),A="clientHeight",F="clientWidth";if(j===bn(n)&&(j=$o(n),Wr(j).position!=="static"&&d==="absolute"&&(A="scrollHeight",F="scrollWidth")),j=j,a===rn||(a===on||a===Mn)&&s===Ts){N=Bn;var J=y&&j===$&&$.visualViewport?$.visualViewport.height:j[A];S-=J-o.height,S*=f?1:-1}if(a===on||(a===rn||a===Bn)&&s===Ts){E=Mn;var R=y&&j===$&&$.visualViewport?$.visualViewport.width:j[F];k-=R-o.width,k*=f?1:-1}}var M=Object.assign({position:d},p&&a4),q=h===!0?s4({x:k,y:S},bn(n)):{x:k,y:S};if(k=q.x,S=q.y,f){var G;return Object.assign({},M,(G={},G[N]=T?"0":"",G[E]=I?"0":"",G.transform=($.devicePixelRatio||1)<=1?"translate("+k+"px, "+S+"px)":"translate3d("+k+"px, "+S+"px, 0)",G))}return Object.assign({},M,(t={},t[N]=T?S+"px":"",t[E]=I?k+"px":"",t.transform="",t))}function l4(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,s=n.adaptive,u=s===void 0?!0:s,d=n.roundOffsets,f=d===void 0?!0:d,p={placement:Cr(t.placement),variation:Yi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ly(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ly(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const u4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:l4,data:{}};var fu={passive:!0};function c4(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,s=a===void 0?!0:a,u=o.resize,d=u===void 0?!0:u,f=bn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",n.update,fu)}),d&&f.addEventListener("resize",n.update,fu),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",n.update,fu)}),d&&f.removeEventListener("resize",n.update,fu)}}const d4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c4,data:{}};var f4={left:"right",right:"left",bottom:"top",top:"bottom"};function ku(e){return e.replace(/left|right|bottom|top/g,function(t){return f4[t]})}var p4={start:"end",end:"start"};function uy(e){return e.replace(/start|end/g,function(t){return p4[t]})}function zm(e){var t=bn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Dm(e){return qi($o(e)).left+zm(e).scrollLeft}function m4(e,t){var n=bn(e),o=$o(e),a=n.visualViewport,s=o.clientWidth,u=o.clientHeight,d=0,f=0;if(a){s=a.width,u=a.height;var p=sb();(p||!p&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:s,height:u,x:d+Dm(e),y:f}}function h4(e){var t,n=$o(e),o=zm(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Go(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=Go(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+Dm(e),f=-o.scrollTop;return Wr(a||n).direction==="rtl"&&(d+=Go(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:u,x:d,y:f}}function Bm(e){var t=Wr(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function fb(e){return["html","body","#document"].indexOf(wr(e))>=0?e.ownerDocument.body:zn(e)&&Bm(e)?e:fb(vc(e))}function xs(e,t){var n;t===void 0&&(t=[]);var o=fb(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=bn(o),u=a?[s].concat(s.visualViewport||[],Bm(o)?o:[]):o,d=t.concat(u);return a?d:d.concat(xs(vc(u)))}function Np(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function g4(e,t){var n=qi(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 cy(e,t,n){return t===ib?Np(m4(e,n)):ti(t)?g4(t,n):Np(h4($o(e)))}function v4(e){var t=xs(vc(e)),n=["absolute","fixed"].indexOf(Wr(e).position)>=0,o=n&&zn(e)?Ws(e):e;return ti(o)?t.filter(function(a){return ti(a)&&lb(a,o)&&wr(a)!=="body"}):[]}function y4(e,t,n,o){var a=t==="clippingParents"?v4(e):[].concat(t),s=[].concat(a,[n]),u=s[0],d=s.reduce(function(f,p){var h=cy(e,p,o);return f.top=Go(h.top,f.top),f.right=Bu(h.right,f.right),f.bottom=Bu(h.bottom,f.bottom),f.left=Go(h.left,f.left),f},cy(e,u,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function pb(e){var t=e.reference,n=e.element,o=e.placement,a=o?Cr(o):null,s=o?Yi(o):null,u=t.x+t.width/2-n.width/2,d=t.y+t.height/2-n.height/2,f;switch(a){case rn:f={x:u,y:t.y-n.height};break;case Bn:f={x:u,y:t.y+t.height};break;case Mn:f={x:t.x+t.width,y:d};break;case on:f={x:t.x-n.width,y:d};break;default:f={x:t.x,y:t.y}}var p=a?Lm(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case Wi:f[p]=f[p]-(t[h]/2-n[h]/2);break;case Ts:f[p]=f[p]+(t[h]/2-n[h]/2);break}}return f}function Ns(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,s=n.strategy,u=s===void 0?e.strategy:s,d=n.boundary,f=d===void 0?DR:d,p=n.rootBoundary,h=p===void 0?ib:p,y=n.elementContext,x=y===void 0?os:y,k=n.altBoundary,C=k===void 0?!1:k,S=n.padding,w=S===void 0?0:S,I=cb(typeof w!="number"?w:db(w,Us)),T=x===os?BR:os,E=e.rects.popper,N=e.elements[C?T:x],$=y4(ti(N)?N:N.contextElement||$o(e.elements.popper),f,h,u),j=qi(e.elements.reference),A=pb({reference:j,element:E,placement:a}),F=Np(Object.assign({},E,A)),J=x===os?F:j,R={top:$.top-J.top+I.top,bottom:J.bottom-$.bottom+I.bottom,left:$.left-J.left+I.left,right:J.right-$.right+I.right},M=e.modifiersData.offset;if(x===os&&M){var q=M[a];Object.keys(R).forEach(function(G){var ne=[Mn,Bn].indexOf(G)>=0?1:-1,Q=[rn,Bn].indexOf(G)>=0?"y":"x";R[G]+=q[Q]*ne})}return R}function x4(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,s=n.rootBoundary,u=n.padding,d=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?ab:f,h=Yi(o),y=h?d?ay:ay.filter(function(C){return Yi(C)===h}):Us,x=y.filter(function(C){return p.indexOf(C)>=0});x.length===0&&(x=y);var k=x.reduce(function(C,S){return C[S]=Ns(e,{placement:S,boundary:a,rootBoundary:s,padding:u})[Cr(S)],C},{});return Object.keys(k).sort(function(C,S){return k[C]-k[S]})}function b4(e){if(Cr(e)===Om)return[];var t=ku(e);return[uy(e),t,uy(t)]}function S4(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,u=n.altAxis,d=u===void 0?!0:u,f=n.fallbackPlacements,p=n.padding,h=n.boundary,y=n.rootBoundary,x=n.altBoundary,k=n.flipVariations,C=k===void 0?!0:k,S=n.allowedAutoPlacements,w=t.options.placement,I=Cr(w),T=I===w,E=f||(T||!C?[ku(w)]:b4(w)),N=[w].concat(E).reduce(function(he,de){return he.concat(Cr(de)===Om?x4(t,{placement:de,boundary:h,rootBoundary:y,padding:p,flipVariations:C,allowedAutoPlacements:S}):de)},[]),$=t.rects.reference,j=t.rects.popper,A=new Map,F=!0,J=N[0],R=0;R<N.length;R++){var M=N[R],q=Cr(M),G=Yi(M)===Wi,ne=[rn,Bn].indexOf(q)>=0,Q=ne?"width":"height",B=Ns(t,{placement:M,boundary:h,rootBoundary:y,altBoundary:x,padding:p}),V=ne?G?Mn:on:G?Bn:rn;$[Q]>j[Q]&&(V=ku(V));var U=ku(V),te=[];if(s&&te.push(B[q]<=0),d&&te.push(B[V]<=0,B[U]<=0),te.every(function(he){return he})){J=M,F=!1;break}A.set(M,te)}if(F)for(var ae=C?3:1,z=function(de){var ve=N.find(function(oe){var Z=A.get(oe);if(Z)return Z.slice(0,de).every(function(ce){return ce})});if(ve)return J=ve,"break"},K=ae;K>0;K--){var me=z(K);if(me==="break")break}t.placement!==J&&(t.modifiersData[o]._skip=!0,t.placement=J,t.reset=!0)}}const C4={name:"flip",enabled:!0,phase:"main",fn:S4,requiresIfExists:["offset"],data:{_skip:!1}};function dy(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 fy(e){return[rn,Mn,Bn,on].some(function(t){return e[t]>=0})}function w4(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,u=Ns(t,{elementContext:"reference"}),d=Ns(t,{altBoundary:!0}),f=dy(u,o),p=dy(d,a,s),h=fy(f),y=fy(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":y})}const k4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:w4};function E4(e,t,n){var o=Cr(e),a=[on,rn].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=s[0],d=s[1];return u=u||0,d=(d||0)*a,[on,Mn].indexOf(o)>=0?{x:d,y:u}:{x:u,y:d}}function P4(e){var t=e.state,n=e.options,o=e.name,a=n.offset,s=a===void 0?[0,0]:a,u=ab.reduce(function(h,y){return h[y]=E4(y,t.rects,s),h},{}),d=u[t.placement],f=d.x,p=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=u}const $4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P4};function R4(e){var t=e.state,n=e.name;t.modifiersData[n]=pb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const I4={name:"popperOffsets",enabled:!0,phase:"read",fn:R4,data:{}};function T4(e){return e==="x"?"y":"x"}function N4(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,s=a===void 0?!0:a,u=n.altAxis,d=u===void 0?!1:u,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,y=n.padding,x=n.tether,k=x===void 0?!0:x,C=n.tetherOffset,S=C===void 0?0:C,w=Ns(t,{boundary:f,rootBoundary:p,padding:y,altBoundary:h}),I=Cr(t.placement),T=Yi(t.placement),E=!T,N=Lm(I),$=T4(N),j=t.modifiersData.popperOffsets,A=t.rects.reference,F=t.rects.popper,J=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,R=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(j){if(s){var G,ne=N==="y"?rn:on,Q=N==="y"?Bn:Mn,B=N==="y"?"height":"width",V=j[N],U=V+w[ne],te=V-w[Q],ae=k?-F[B]/2:0,z=T===Wi?A[B]:F[B],K=T===Wi?-F[B]:-A[B],me=t.elements.arrow,he=k&&me?Am(me):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),ve=de[ne],oe=de[Q],Z=ys(0,A[B],he[B]),ce=E?A[B]/2-ae-Z-ve-R.mainAxis:z-Z-ve-R.mainAxis,xe=E?-A[B]/2+ae+Z+oe+R.mainAxis:K+Z+oe+R.mainAxis,Ne=t.elements.arrow&&Ws(t.elements.arrow),at=Ne?N==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,vt=(G=M==null?void 0:M[N])!=null?G:0,It=V+ce-vt-at,kn=V+xe-vt,Un=ys(k?Bu(U,It):U,V,k?Go(te,kn):te);j[N]=Un,q[N]=Un-V}if(d){var Tt,Yt=N==="x"?rn:on,Wn=N==="x"?Bn:Mn,yt=j[$],Nt=$==="y"?"height":"width",Pe=yt+w[Yt],Rr=yt-w[Wn],ir=[rn,on].indexOf(I)!==-1,Kn=(Tt=M==null?void 0:M[$])!=null?Tt:0,ar=ir?Pe:yt-A[Nt]-F[Nt]-Kn+R.altAxis,_t=ir?yt+A[Nt]+F[Nt]-Kn-R.altAxis:Rr,St=k&&ir?t4(ar,yt,_t):ys(k?ar:Pe,yt,k?_t:Rr);j[$]=St,q[$]=St-yt}t.modifiersData[o]=q}}const _4={name:"preventOverflow",enabled:!0,phase:"main",fn:N4,requiresIfExists:["offset"]};function O4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j4(e){return e===bn(e)||!zn(e)?zm(e):O4(e)}function A4(e){var t=e.getBoundingClientRect(),n=Ki(t.width)/e.offsetWidth||1,o=Ki(t.height)/e.offsetHeight||1;return n!==1||o!==1}function L4(e,t,n){n===void 0&&(n=!1);var o=zn(t),a=zn(t)&&A4(t),s=$o(t),u=qi(e,a,n),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(o||!o&&!n)&&((wr(t)!=="body"||Bm(s))&&(d=j4(t)),zn(t)?(f=qi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=Dm(s))),{x:u.left+d.scrollLeft-f.x,y:u.top+d.scrollTop-f.y,width:u.width,height:u.height}}function z4(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(d){if(!n.has(d)){var f=t.get(d);f&&a(f)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),o}function D4(e){var t=z4(e);return GR.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function B4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function M4(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var py={placement:"bottom",modifiers:[],strategy:"absolute"};function my(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function F4(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?py:a;return function(d,f,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},py,s),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},y=[],x=!1,k={state:h,setOptions:function(I){var T=typeof I=="function"?I(h.options):I;S(),h.options=Object.assign({},s,h.options,T),h.scrollParents={reference:ti(d)?xs(d):d.contextElement?xs(d.contextElement):[],popper:xs(f)};var E=D4(M4([].concat(o,h.options.modifiers)));return h.orderedModifiers=E.filter(function(N){return N.enabled}),C(),k.update()},forceUpdate:function(){if(!x){var I=h.elements,T=I.reference,E=I.popper;if(my(T,E)){h.rects={reference:L4(T,Ws(E),h.options.strategy==="fixed"),popper:Am(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(R){return h.modifiersData[R.name]=Object.assign({},R.data)});for(var N=0;N<h.orderedModifiers.length;N++){if(h.reset===!0){h.reset=!1,N=-1;continue}var $=h.orderedModifiers[N],j=$.fn,A=$.options,F=A===void 0?{}:A,J=$.name;typeof j=="function"&&(h=j({state:h,options:F,name:J,instance:k})||h)}}}},update:B4(function(){return new Promise(function(w){k.forceUpdate(),w(h)})}),destroy:function(){S(),x=!0}};if(!my(d,f))return k;k.setOptions(p).then(function(w){!x&&p.onFirstUpdate&&p.onFirstUpdate(w)});function C(){h.orderedModifiers.forEach(function(w){var I=w.name,T=w.options,E=T===void 0?{}:T,N=w.effect;if(typeof N=="function"){var $=N({state:h,name:I,instance:k,options:E}),j=function(){};y.push($||j)}})}function S(){y.forEach(function(w){return w()}),y=[]}return k}}var H4=[d4,I4,u4,QR,$4,C4,_4,i4,k4],V4=F4({defaultModifiers:H4});const U4="Popper";function W4(e){return V3(U4,e)}const K4=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],q4=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Y4(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 _p(e){return typeof e=="function"?e():e}function G4(e){return e.nodeType!==void 0}const X4=()=>wn({root:["root"]},L3(W4)),J4={},Q4=b.forwardRef(function(t,n){var o;const{anchorEl:a,children:s,direction:u,disablePortal:d,modifiers:f,open:p,placement:h,popperOptions:y,popperRef:x,slotProps:k={},slots:C={},TransitionProps:S}=t,w=Le(t,K4),I=b.useRef(null),T=Dn(I,n),E=b.useRef(null),N=Dn(E,x),$=b.useRef(N);ei(()=>{$.current=N},[N]),b.useImperativeHandle(x,()=>E.current,[]);const j=Y4(h,u),[A,F]=b.useState(j),[J,R]=b.useState(_p(a));b.useEffect(()=>{E.current&&E.current.forceUpdate()}),b.useEffect(()=>{a&&R(_p(a))},[a]),ei(()=>{if(!J||!p)return;const Q=U=>{F(U.placement)};let B=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{Q(U)}}];f!=null&&(B=B.concat(f)),y&&y.modifiers!=null&&(B=B.concat(y.modifiers));const V=V4(J,I.current,O({placement:j},y,{modifiers:B}));return $.current(V),()=>{V.destroy(),$.current(null)}},[J,d,f,p,y,j]);const M={placement:A};S!==null&&(M.TransitionProps=S);const q=X4(),G=(o=C.root)!=null?o:"div",ne=_3({elementType:G,externalSlotProps:k.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:q.root});return g.jsx(G,O({},ne,{children:typeof s=="function"?s(M):s}))}),Z4=b.forwardRef(function(t,n){const{anchorEl:o,children:a,container:s,direction:u="ltr",disablePortal:d=!1,keepMounted:f=!1,modifiers:p,open:h,placement:y="bottom",popperOptions:x=J4,popperRef:k,style:C,transition:S=!1,slotProps:w={},slots:I={}}=t,T=Le(t,q4),[E,N]=b.useState(!0),$=()=>{N(!1)},j=()=>{N(!0)};if(!f&&!h&&(!S||E))return null;let A;if(s)A=s;else if(o){const R=_p(o);A=R&&G4(R)?Sr(R).body:Sr(null).body}const F=!h&&f&&(!S||E)?"none":void 0,J=S?{in:h,onEnter:$,onExited:j}:void 0;return g.jsx(ob,{disablePortal:d,container:A,children:g.jsx(Q4,O({anchorEl:o,direction:u,disablePortal:d,modifiers:p,ref:n,open:S?!E:h,placement:y,popperOptions:x,popperRef:k,slotProps:w,slots:I},T,{style:O({position:"fixed",top:0,left:0,display:F},C),TransitionProps:J,children:a}))})}),Mu={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},eI=e=>{const{label:t,value:n}=e;return typeof t=="string"?t:typeof n=="string"?n:String(e)};function tI(e,t){const{open:n}=e,{context:{selectionMode:o}}=t;if(t.type===Mu.buttonClick){var a;const f=(a=e.selectedValues[0])!=null?a:At(null,"start",t.context);return O({},e,{open:!n,highlightedValue:n?null:f})}if(t.type===Mu.browserAutoFill)return _m(t.item,e,t.context);const s=nb(e,t);switch(t.type){case ft.keyDown:if(e.open){if(t.event.key==="Escape")return O({},s,{open:!1})}else{if(t.event.key==="ArrowDown"){var u;return O({},e,{open:!0,highlightedValue:(u=e.selectedValues[0])!=null?u:At(null,"start",t.context)})}if(t.event.key==="ArrowUp"){var d;return O({},e,{open:!0,highlightedValue:(d=e.selectedValues[0])!=null?d:At(null,"end",t.context)})}}break;case ft.itemClick:if(o==="single")return O({},s,{open:!1});break;case ft.blur:return O({},s,{open:!1});default:return s}return s}function nI(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):(e==null?void 0:e.value)==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function rI(e){const{areOptionsEqual:t,buttonRef:n,defaultOpen:o=!1,defaultValue:a,disabled:s=!1,listboxId:u,listboxRef:d,multiple:f=!1,name:p,required:h,onChange:y,onHighlightChange:x,onOpenChange:k,open:C,options:S,getOptionAsString:w=eI,getSerializedValue:I=nI,value:T,componentName:E="useSelect"}=e,N=b.useRef(null),$=Dn(n,N),j=b.useRef(null),A=qx(u);let F;T===void 0&&a===void 0?F=[]:a!==void 0&&(f?F=a:F=a==null?[]:[a]);const J=b.useMemo(()=>{if(T!==void 0)return f?T:T==null?[]:[T]},[T,f]),{subitems:R,contextValue:M}=wR(),q=b.useMemo(()=>S!=null?new Map(S.map((fe,be)=>[fe.value,{value:fe.value,label:fe.label,disabled:fe.disabled,ref:b.createRef(),id:`${A}_${be}`}])):R,[S,R,A]),G=Dn(d,j),{getRootProps:ne,active:Q,focusVisible:B,rootRef:V}=oa({disabled:s,rootRef:$}),U=b.useMemo(()=>Array.from(q.keys()),[q]),te=b.useCallback(fe=>{if(t!==void 0){const be=U.find(Te=>t(Te,fe));return q.get(be)}return q.get(fe)},[q,t,U]),ae=b.useCallback(fe=>{var be;const Te=te(fe);return(be=Te==null?void 0:Te.disabled)!=null?be:!1},[te]),z=b.useCallback(fe=>{const be=te(fe);return be?w(be):""},[te,w]),K=b.useMemo(()=>({selectedValues:J,open:C}),[J,C]),me=b.useCallback(fe=>{var be;return(be=q.get(fe))==null?void 0:be.id},[q]),he=b.useCallback((fe,be)=>{if(f)y==null||y(fe,be);else{var Te;y==null||y(fe,(Te=be[0])!=null?Te:null)}},[f,y]),de=b.useCallback((fe,be)=>{x==null||x(fe,be??null)},[x]),ve=b.useCallback((fe,be,Te)=>{if(be==="open"&&(k==null||k(Te),Te===!1&&(fe==null?void 0:fe.type)!=="blur")){var Ct;(Ct=N.current)==null||Ct.focus()}},[k]),oe=b.useCallback(fe=>{var be,Te;return fe==null?null:(be=(Te=R.get(fe))==null?void 0:Te.ref.current)!=null?be:null},[R]),Z={getInitialState:()=>{var fe;return{highlightedValue:null,selectedValues:(fe=F)!=null?fe:[],open:o}},getItemId:me,controlledProps:K,focusManagement:"DOM",getItemDomElement:oe,itemComparer:t,isItemDisabled:ae,rootRef:G,onChange:he,onHighlightChange:de,onStateChange:ve,reducerActionContext:b.useMemo(()=>({multiple:f}),[f]),items:U,getItemAsString:z,selectionMode:f?"multiple":"single",stateReducer:tI,componentName:E},{dispatch:ce,getRootProps:xe,contextValue:Ne,state:{open:at,highlightedValue:vt,selectedValues:It},rootRef:kn}=bR(Z),Un=b.useRef(at);ei(()=>{if(at&&vt!==null){var fe;const be=(fe=te(vt))==null?void 0:fe.ref;if(!j.current||!(be!=null&&be.current))return;Un.current||be.current.focus({preventScroll:!0});const Te=j.current.getBoundingClientRect(),Ct=be.current.getBoundingClientRect();Ct.top<Te.top?j.current.scrollTop-=Te.top-Ct.top:Ct.bottom>Te.bottom&&(j.current.scrollTop+=Ct.bottom-Te.bottom)}},[at,vt,te]);const Tt=b.useCallback(fe=>te(fe),[te]),Yt=fe=>be=>{var Te;if(fe==null||(Te=fe.onClick)==null||Te.call(fe,be),!be.defaultMuiPrevented){const Ct={type:Mu.buttonClick,event:be};ce(Ct)}},Wn=fe=>be=>{var Te;(Te=fe.onKeyDown)==null||Te.call(fe,be),!be.defaultMuiPrevented&&(be.key==="ArrowDown"||be.key==="ArrowUp")&&(be.preventDefault(),ce({type:ft.keyDown,key:be.key,event:be}))},yt=(fe={})=>({onClick:Yt(fe),onKeyDown:Wn(fe)}),Nt=(fe={})=>O({},fe,yt(fe),{role:"combobox","aria-expanded":at,"aria-controls":A}),Pe=(fe={})=>{const be=vn(fe),Te=Du(Nt,ne);return O({},fe,Te(be))},Rr=fe=>be=>{var Te,Ct;(Te=fe.onBlur)==null||Te.call(fe,be),!be.defaultMuiPrevented&&((Ct=j.current)!=null&&Ct.contains(be.relatedTarget)||be.relatedTarget===N.current)&&(be.defaultMuiPrevented=!0)},ir=(fe={})=>({onBlur:Rr(fe)}),Kn=(fe={})=>{const be=vn(fe),Te=Du(ir,xe);return O({id:A,role:"listbox","aria-multiselectable":f?"true":void 0},fe,Te(be))};b.useDebugValue({selectedOptions:It,highlightedOption:vt,open:at});const ar=b.useMemo(()=>O({},Ne,M),[Ne,M]);let _t;e.multiple?_t=It:_t=It.length>0?It[0]:null;let St;if(f)St=_t.map(fe=>Tt(fe)).filter(fe=>fe!==void 0);else{var En;St=(En=Tt(_t))!=null?En:null}const Gt=fe=>be=>{var Te;if(fe==null||(Te=fe.onChange)==null||Te.call(fe,be),be.defaultMuiPrevented)return;const Ct=q.get(be.target.value);be.target.value===""?ce({type:ft.clearSelection}):Ct!==void 0&&ce({type:Mu.browserAutoFill,item:Ct.value,event:be})};return{buttonActive:Q,buttonFocusVisible:B,buttonRef:V,contextValue:ar,disabled:s,dispatch:ce,getButtonProps:Pe,getHiddenInputProps:(fe={})=>{const be=vn(fe);return O({name:p,tabIndex:-1,"aria-hidden":!0,required:h?!0:void 0,value:I(St),style:R3},fe,{onChange:Gt(be)})},getListboxProps:Kn,getOptionMetadata:Tt,listboxRef:kn,open:at,options:U,value:_t,highlightedOption:vt}}function oI(e){const{value:t,children:n}=e,{dispatch:o,getItemIndex:a,getItemState:s,registerItem:u,totalSubitemCount:d}=t,f=b.useMemo(()=>({dispatch:o,getItemState:s,getItemIndex:a}),[o,a,s]),p=b.useMemo(()=>({getItemIndex:a,registerItem:u,totalSubitemCount:d}),[u,a,d]);return g.jsx(rb.Provider,{value:p,children:g.jsx(gc.Provider,{value:f,children:n})})}function iI(e){return Cn("MuiCircularProgress",e)}un("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let aI=e=>e,hy;const sI=["color","backgroundColor"],lI=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],uI=na({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),cI=e=>{const{determinate:t,color:n,variant:o,size:a}=e,s={root:["root",t&&"determinate",n&&`color${je(n)}`,o&&`variant${je(o)}`,a&&`size${je(a)}`],svg:["svg"],track:["track"],progress:["progress"]};return wn(s,iI,{})};function Ii(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const dI=Ie("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n,o,a,s;const u=((n=t.variants[e.variant])==null?void 0:n[e.color])||{},{color:d,backgroundColor:f}=u,p=Le(u,sI);return O({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":f,"--CircularProgress-progressColor":d,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},e.size==="sm"&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":Ii("track","3px"),"--_progress-thickness":Ii("progress","3px")},e.instanceSize==="sm"&&{"--CircularProgress-size":"24px"},e.size==="md"&&{"--_track-thickness":Ii("track","6px"),"--_progress-thickness":Ii("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},e.instanceSize==="md"&&{"--CircularProgress-size":"40px"},e.size==="lg"&&{"--_track-thickness":Ii("track","8px"),"--_progress-thickness":Ii("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},e.instanceSize==="lg"&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:d},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},p,e.variant==="outlined"&&{"&::before":O({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},p)},e.variant==="soft"&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":(o=t.variants.solid)==null?void 0:o[e.color].backgroundColor},e.variant==="solid"&&{"--CircularProgress-trackColor":(a=t.variants.softHover)==null?void 0:a[e.color].backgroundColor,"--CircularProgress-progressColor":(s=t.variants.solid)==null?void 0:s[e.color].backgroundColor})}),fI=Ie("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),pI=Ie("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),mI=Ie("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:e})=>!e.determinate&&sc(hy||(hy=aI`
623
- animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
624
- ${0};
625
- `),uI)),mb=b.forwardRef(function(t,n){const o=Hn({props:t,name:"JoyCircularProgress"}),{children:a,className:s,color:u="primary",size:d="md",variant:f="soft",thickness:p,determinate:h=!1,value:y=h?0:25,component:x,slots:k={},slotProps:C={}}=o,S=Le(o,lI),w=O({},o,{color:u,size:d,variant:f,thickness:p,value:y,determinate:h,instanceSize:t.size}),I=cI(w),T=O({},S,{component:x,slots:k,slotProps:C}),[E,N]=Fe("root",{ref:n,className:Ke(I.root,s),elementType:dI,externalForwardedProps:T,ownerState:w,additionalProps:O({role:"progressbar",style:{"--CircularProgress-percent":y}},y&&h&&{"aria-valuenow":Math.round(typeof y=="number"?y:Number(y||0))})}),[$,j]=Fe("svg",{className:I.svg,elementType:fI,externalForwardedProps:T,ownerState:w}),[A,F]=Fe("track",{className:I.track,elementType:pI,externalForwardedProps:T,ownerState:w}),[J,R]=Fe("progress",{className:I.progress,elementType:mI,externalForwardedProps:T,ownerState:w});return g.jsxs(E,O({},N,{children:[g.jsxs($,O({},j,{children:[g.jsx(A,O({},F)),g.jsx(J,O({},R))]})),a]}))}),hI=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],gI=e=>{const{color:t,disabled:n,focusVisible:o,focusVisibleClassName:a,size:s,variant:u,loading:d}=e,f={root:["root",n&&"disabled",o&&"focusVisible",u&&`variant${je(u)}`,t&&`color${je(t)}`,s&&`size${je(s)}`,d&&"loading"],loadingIndicator:["loadingIndicator"]},p=wn(f,M3,{});return o&&a&&(p.root+=` ${a}`),p},hb=Ie("button")(({theme:e,ownerState:t})=>{var n,o,a,s;return[O({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[t.instanceSize]},t.size==="sm"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},t.size==="md"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},t.size==="lg"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:O({"--Icon-color":"currentColor"},e.focus.default)}),O({},(n=e.variants[t.variant])==null?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":O({"--Icon-color":"currentColor"},(o=e.variants[`${t.variant}Hover`])==null?void 0:o[t.color])},'&:active, &[aria-pressed="true"]':O({"--Icon-color":"currentColor"},(a=e.variants[`${t.variant}Active`])==null?void 0:a[t.color]),"&:disabled":(s=e.variants[`${t.variant}Disabled`])==null?void 0:s[t.color]})]}),vI=Ie(hb,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yI=Ie("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e,ownerState:t})=>{var n,o;return O({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(n=e.variants[t.variant])==null||(n=n[t.color])==null?void 0:n.color},t.disabled&&{color:(o=e.variants[`${t.variant}Disabled`])==null||(o=o[t.color])==null?void 0:o.color})}),gb=b.forwardRef(function(t,n){var o;const a=Hn({props:t,name:"JoyIconButton"}),{children:s,action:u,component:d="button",color:f="neutral",disabled:p,variant:h="plain",loading:y=!1,loadingIndicator:x,size:k="md",slots:C={},slotProps:S={}}=a,w=Le(a,hI),I=b.useContext(Zx),T=b.useContext(eb),E=t.variant||I.variant||h,N=t.size||I.size||k,$=t.color||I.color||f,j=(o=t.loading||t.disabled)!=null?o:I.disabled||y||p,A=b.useRef(null),F=ra(A,n),{focusVisible:J,setFocusVisible:R,getRootProps:M}=oa(O({},a,{disabled:j,rootRef:F})),q=x??g.jsx(mb,{color:$,thickness:{sm:2,md:3,lg:4}[N]||3});b.useImperativeHandle(u,()=>({focusVisible:()=>{var K;R(!0),(K=A.current)==null||K.focus()}}),[R]);const G=O({},a,{component:d,color:$,disabled:j,variant:E,loading:y,size:N,focusVisible:J,instanceSize:t.size}),ne=gI(G),Q=K=>{var me;let he=a.onClick;if(typeof S.root=="function"?he=S.root(G).onClick:S.root&&(he=S.root.onClick),(me=he)==null||me(K),T){var de;(de=T.onClick)==null||de.call(T,K,a.value)}};let B=a["aria-pressed"];typeof S.root=="function"?B=S.root(G)["aria-pressed"]:S.root&&(B=S.root["aria-pressed"]),T!=null&&T.value&&(Array.isArray(T.value)?B=T.value.indexOf(a.value)!==-1:B=T.value===a.value);const V=O({},w,{component:d,slots:C,slotProps:S}),[U,te]=Fe("root",{ref:n,className:ne.root,elementType:vI,getSlotProps:M,externalForwardedProps:V,ownerState:G,additionalProps:{onClick:Q,"aria-pressed":B}}),[ae,z]=Fe("loadingIndicator",{className:ne.loadingIndicator,elementType:yI,externalForwardedProps:V,ownerState:G});return g.jsx(U,O({},te,{children:y?g.jsx(ae,O({},z,{children:q})):s}))});gb.muiName="IconButton";const Mm=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,_s="data-skip-inverted-colors",vb=`& :not([${_s}], [${_s}] *)`,yb=e=>{var t,n,o,a,s,u,d,f,p,h,y,x,k,C,S,w,I,T,E,N,$,j;const A=Mm(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[A("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[A("--palette-background-body")]:`${(n=e.colorSchemes.light)==null?void 0:n.palette.background.body} !important`,[A("--palette-background-surface")]:`${(o=e.colorSchemes.light)==null?void 0:o.palette.background.surface} !important`,[A("--palette-background-popup")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.popup} !important`,[A("--palette-background-level1")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level1} !important`,[A("--palette-background-level2")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.background.level2} !important`,[A("--palette-background-level3")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.background.level3} !important`,[A("--palette-text-primary")]:`${(f=e.colorSchemes.light)==null?void 0:f.palette.text.primary} !important`,[A("--palette-text-secondary")]:`${(p=e.colorSchemes.light)==null?void 0:p.palette.text.secondary} !important`,[A("--palette-text-tertiary")]:`${(h=e.colorSchemes.light)==null?void 0:h.palette.text.tertiary} !important`,[A("--palette-divider")]:`${(y=e.colorSchemes.light)==null?void 0:y.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[A("--palette-focusVisible")]:`${(x=e.colorSchemes.dark)==null?void 0:x.palette.focusVisible} !important`,[A("--palette-background-body")]:`${(k=e.colorSchemes.dark)==null?void 0:k.palette.background.body} !important`,[A("--palette-background-surface")]:`${(C=e.colorSchemes.dark)==null?void 0:C.palette.background.surface} !important`,[A("--palette-background-popup")]:`${(S=e.colorSchemes.dark)==null?void 0:S.palette.background.popup} !important`,[A("--palette-background-level1")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.background.level1} !important`,[A("--palette-background-level2")]:`${(I=e.colorSchemes.dark)==null?void 0:I.palette.background.level2} !important`,[A("--palette-background-level3")]:`${(T=e.colorSchemes.dark)==null?void 0:T.palette.background.level3} !important`,[A("--palette-text-primary")]:`${(E=e.colorSchemes.dark)==null?void 0:E.palette.text.primary} !important`,[A("--palette-text-secondary")]:`${(N=e.colorSchemes.dark)==null?void 0:N.palette.text.secondary} !important`,[A("--palette-text-tertiary")]:`${($=e.colorSchemes.dark)==null?void 0:$.palette.text.tertiary} !important`,[A("--palette-divider")]:`${(j=e.colorSchemes.dark)==null?void 0:j.palette.divider} !important`}}};function xI(e){return e.theme!==void 0}const bI=e=>t=>{const n=xI(t)?t.theme:t,o=Rm(n.cssVarPrefix),a=Mm(n.cssVarPrefix),s=u=>{const d=u.split("-");return o(u,n.palette[d[1]][d[2]])};return{[vb]:{"--Badge-ringColor":s(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[a("--palette-focusVisible")]:s(`palette-${e}-200`),[a("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[a("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[a("--palette-background-popup")]:s(`palette-${e}-700`),[a("--palette-background-level1")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.2)`,[a("--palette-background-level2")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.36)`,[a("--palette-background-level3")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.6)`,[a("--palette-text-primary")]:s("palette-common-white"),[a("--palette-text-secondary")]:s(`palette-${e}-200`),[a("--palette-text-tertiary")]:s(`palette-${e}-300`),[a("--palette-text-icon")]:s(`palette-${e}-200`),[a("--palette-divider")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":s(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":s(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${s(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":s(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":s("palette-common-white"),"--variant-softHoverColor":s("palette-common-white"),"--variant-softBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":s(`palette-${e}-${e==="neutral"?"600":"500"}`),"--variant-solidBg":s("palette-common-white"),"--variant-solidHoverBg":s("palette-common-white"),"--variant-solidActiveBg":s(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${_s}]`]:yb(n)}},SI=e=>t=>{const{theme:n=t}=t,o=Rm(n.cssVarPrefix),a=Mm(n.cssVarPrefix),s=u=>{const d=u.split("-");return o(u,n.palette[d[1]][d[2]])};return{[vb]:{"--Badge-ringColor":s(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[a("--palette-focusVisible")]:s(`palette-${e}-300`),[a("--palette-background-body")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.1)`,[a("--palette-background-surface")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`,[a("--palette-background-level1")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.2)`,[a("--palette-background-level2")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.4)`,[a("--palette-background-level3")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,[a("--palette-text-primary")]:s(`palette-${e}-100`),[a("--palette-text-secondary")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.72)`,[a("--palette-text-tertiary")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.6)`,[a("--palette-text-icon")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.6)`,[a("--palette-divider")]:`rgba(${s(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${s(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":s(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${s(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":s(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":s(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":s(`palette-${e}-200`),"--variant-softBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":s(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":s(`palette-${e}-600`),"--variant-solidActiveBg":s(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[a("--palette-focusVisible")]:s(`palette-${e}-500`),[a("--palette-background-body")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.1)`,[a("--palette-background-surface")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`,[a("--palette-background-level1")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.2)`,[a("--palette-background-level2")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,[a("--palette-background-level3")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.48)`,[a("--palette-text-primary")]:s(`palette-${e}-700`),[a("--palette-text-secondary")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.8)`,[a("--palette-text-tertiary")]:`rgba(${s(`palette-${e}-darkChannel`)} / 0.68)`,[a("--palette-text-icon")]:s(`palette-${e}-500`),[a("--palette-divider")]:`rgba(${s(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${s(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${s(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${s(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":s(`palette-${e}-600`),"--variant-outlinedHoverBorder":s(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${s(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":s(`palette-${e}-600`),"--variant-softBg":`rgba(${s(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":s(`palette-${e}-700`),"--variant-softHoverBg":s(`palette-${e}-200`),"--variant-softActiveBg":s(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":s("palette-common-white"),"--variant-solidBg":s(`palette-${e}-${e==="neutral"?"700":"500"}`),"--variant-solidHoverColor":s("palette-common-white"),"--variant-solidHoverBg":s(`palette-${e}-600`),"--variant-solidActiveBg":s(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${s(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${s(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${_s}]`]:yb(n)}},xb=b.createContext(void 0),bb=Ie("div")(({ownerState:e,theme:t})=>O({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"}));Ie(bb,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({});const Sb=Ie("div")(({theme:e})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"}));Ie(Sb,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({});function CI(e){return Cn("MuiDrawer",e)}un("MuiDrawer",["root","hidden","backdrop","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const Cb=b.createContext(void 0),wb=b.createContext(void 0),wI=un("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),kI=["children","anchor","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","color","variant","invertedColors","size","onClose","onKeyDown","open","component","slots","slotProps"],EI=e=>{const{open:t,variant:n,color:o,size:a}=e,s={root:["root",!t&&"hidden",n&&`variant${je(n)}`,o&&`color${je(o)}`,a&&`size${je(a)}`],backdrop:["backdrop"],content:["content"]};return wn(s,CI,{})},PI=Ie(bb,{name:"JoyDrawer",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>O({"--Drawer-transitionDuration":"0.3s","--Drawer-transitionFunction":"ease","--ModalClose-radius":"max((var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) / 2))"},e.size==="sm"&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(350px, 30%, 100%)","--Drawer-horizontalSize":"clamp(256px, 20%, 100%)","--Drawer-titleMargin":"0.625rem 0.75rem calc(0.625rem / 2)"},e.size==="md"&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(400px, 45%, 100%)","--Drawer-horizontalSize":"clamp(300px, 30%, 100%)","--Drawer-titleMargin":"0.75rem 0.75rem calc(0.75rem / 2)"},e.size==="lg"&&{"--ModalClose-inset":"0.75rem","--Drawer-verticalSize":"clamp(500px, 60%, 100%)","--Drawer-horizontalSize":"clamp(440px, 60%, 100%)","--Drawer-titleMargin":"1rem 1rem calc(1rem / 2)"},{transitionProperty:"visibility",transitionDelay:e.open?"0s":"var(--Drawer-transitionDuration)"},!e.open&&{visibility:"hidden"})),$I=Ie(Sb,{name:"JoyDrawer",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})(({ownerState:e})=>({opacity:e.open?1:0,transition:"opacity var(--Drawer-transitionDuration) ease-in-out"})),RI=Ie("div",{name:"JoyDrawer",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var n;return O({},e.typography[`body-${t.size}`],{boxShadow:e.shadow.md,backgroundColor:e.vars.palette.background.surface,outline:0,display:"flex",flexDirection:"column",position:"fixed",boxSizing:"border-box",overflow:"auto"},t.anchor==="left"&&{top:0,left:0,transform:t.open?"translateX(0)":"translateX(-100%)"},t.anchor==="right"&&{top:0,right:0,transform:t.open?"translateX(0)":"translateX(100%)"},t.anchor==="top"&&{top:0,transform:t.open?"translateY(0)":"translateY(-100%)"},t.anchor==="bottom"&&{bottom:0,transform:t.open?"translateY(0)":"translateY(100%)"},{height:t.anchor.match(/(left|right)/)?"100%":"min(100vh, var(--Drawer-verticalSize))",width:t.anchor.match(/(top|bottom)/)?"100vw":"min(100vw, var(--Drawer-horizontalSize))",transition:"transform var(--Drawer-transitionDuration) var(--Drawer-transitionFunction)"},t.variant==="solid"&&t.color&&t.invertedColors&&bI(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&SI(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color],{[`& > .${wI.root}`]:{"--unstable_DialogTitle-margin":"var(--Drawer-titleMargin)"}})}),II=b.forwardRef(function(t,n){const o=Hn({props:t,name:"JoyDrawer"}),{children:a,anchor:s="left",container:u,disableAutoFocus:d=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:p=!1,disablePortal:h=!1,disableRestoreFocus:y=!1,disableScrollLock:x=!1,hideBackdrop:k=!1,color:C="neutral",variant:S="plain",invertedColors:w=!1,size:I="md",onClose:T,open:E,component:N,slots:$={},slotProps:j={}}=o,A=Le(o,kI),F=O({},o,{anchor:s,disableAutoFocus:d,disableEnforceFocus:f,disableEscapeKeyDown:p,disablePortal:h,disableRestoreFocus:y,disableScrollLock:x,hideBackdrop:k,invertedColors:w,color:C,variant:S,size:I}),{getRootProps:J,getBackdropProps:R,rootRef:M,portalRef:q,isTopModal:G}=AR(O({},F,{rootRef:n,children:null})),ne=EI(F),Q=O({},A,{component:N,slots:$,slotProps:j}),B=K0(),V=K0(),U=b.useMemo(()=>({variant:S,color:C,labelledBy:B,describedBy:V}),[C,S,B,V]),[te,ae]=Fe("root",{ref:M,className:ne.root,elementType:PI,externalForwardedProps:Q,getSlotProps:J,ownerState:F}),[z,K]=Fe("backdrop",{className:ne.backdrop,elementType:$I,externalForwardedProps:Q,getSlotProps:R,ownerState:F}),[me,he]=Fe("content",{className:ne.content,elementType:RI,additionalProps:{tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":B,"aria-describedby":V},externalForwardedProps:Q,ownerState:F});return g.jsx(xb.Provider,{value:T,children:g.jsx(wb.Provider,{value:I,children:g.jsx(Cb.Provider,{value:U,children:g.jsx(ob,{ref:q,container:u,disablePortal:h,children:g.jsxs(te,O({},ae,{children:[k?null:g.jsx(z,O({},K)),g.jsx(Z3,{disableEnforceFocus:f,disableAutoFocus:d,disableRestoreFocus:y,isEnabled:G,open:E,children:g.jsx(me,O({},he,{children:a}))})]}))})})})})});function TI(e){return Cn("MuiInput",e)}const kb=un("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),Eb=b.createContext(void 0),NI=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];function _I(e,t){var n;const o=b.useContext(Eb),{"aria-describedby":a,"aria-label":s,"aria-labelledby":u,autoComplete:d,autoFocus:f,className:p,defaultValue:h,disabled:y,disabledInProp:x,error:k,id:C,name:S,onClick:w,onChange:I,onKeyDown:T,onKeyUp:E,onFocus:N,onBlur:$,placeholder:j,readOnly:A,required:F,type:J,value:R}=e,M=Le(e,NI),{getRootProps:q,getInputProps:G,focused:ne,error:Q,disabled:B}=nR({disabled:(n=x??(o==null?void 0:o.disabled))!=null?n:y,defaultValue:h,error:k,onBlur:$,onClick:w,onChange:I,onFocus:N,required:F??(o==null?void 0:o.required),value:R}),V={[t.disabled]:B,[t.error]:Q,[t.focused]:ne,[t.formControl]:!!o,[p]:p},U={[t.disabled]:B};return O({formControl:o,propsToForward:{"aria-describedby":a,"aria-label":s,"aria-labelledby":u,autoComplete:d,autoFocus:f,disabled:B,id:C,onKeyDown:T,onKeyUp:E,name:S,placeholder:j,readOnly:A,type:J},rootStateClasses:V,inputStateClasses:U,getRootProps:q,getInputProps:G,focused:ne,error:Q,disabled:B},M)}const OI=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],jI=e=>{const{disabled:t,fullWidth:n,variant:o,color:a,size:s}=e,u={root:["root",t&&"disabled",n&&"fullWidth",o&&`variant${je(o)}`,a&&`color${je(a)}`,s&&`size${je(s)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return wn(u,TI,{})},AI=Ie("div")(({theme:e,ownerState:t})=>{var n,o,a,s,u,d;const f=(n=e.variants[`${t.variant}`])==null?void 0:n[t.color];return[O({"--Input-radius":e.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":e.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":e.vars.focus.thickness,"--Input-focusedHighlight":(o=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:o[500],[`&:not([${_s}])`]:O({},t.instanceColor&&{"--_Input-focusedHighlight":(a=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:a[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${e.vars.palette.focusVisible})`})},t.size==="sm"&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},t.size==="md"&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},t.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},e.typography[`body-${t.size}`],f,{backgroundColor:(s=f==null?void 0:f.backgroundColor)!=null?s:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":O({},(u=e.variants[`${t.variant}Hover`])==null?void 0:u[t.color],{backgroundColor:null}),[`&.${kb.disabled}`]:(d=e.variants[`${t.variant}Disabled`])==null?void 0:d[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]}),LI=Ie("input")(({ownerState:e})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":O({paddingInline:"var(--Input-paddingInline)"},!e.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!e.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}})),zI=Ie("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),DI=Ie("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),BI=Ie(AI,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MI=Ie(LI,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),FI=Ie(zI,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),HI=Ie(DI,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),Pb=b.forwardRef(function(t,n){var o,a,s,u,d,f;const p=Hn({props:t,name:"JoyInput"}),h=_I(O({},p,{disabledInProp:t.disabled}),kb),{propsToForward:y,rootStateClasses:x,inputStateClasses:k,getRootProps:C,getInputProps:S,formControl:w,focused:I,error:T=!1,disabled:E,fullWidth:N=!1,size:$="md",color:j="neutral",variant:A="outlined",startDecorator:F,endDecorator:J,component:R,slots:M={},slotProps:q={}}=h,G=Le(h,OI),ne=(o=(a=t.error)!=null?a:w==null?void 0:w.error)!=null?o:T,Q=(s=(u=t.size)!=null?u:w==null?void 0:w.size)!=null?s:$,B=(d=t.color)!=null?d:ne?"danger":(f=w==null?void 0:w.color)!=null?f:j,V=O({instanceColor:ne?"danger":t.color},p,{fullWidth:N,color:B,disabled:E,error:ne,focused:I,size:Q,variant:A}),U=jI(V),te=O({},G,{component:R,slots:M,slotProps:q}),[ae,z]=Fe("root",{ref:n,className:[U.root,x],elementType:BI,getSlotProps:C,externalForwardedProps:te,ownerState:V}),[K,me]=Fe("input",O({},w&&{additionalProps:{id:w.htmlFor,"aria-describedby":w["aria-describedby"]}},{className:[U.input,k],elementType:MI,getSlotProps:S,internalForwardedProps:y,externalForwardedProps:te,ownerState:V})),[he,de]=Fe("startDecorator",{className:U.startDecorator,elementType:FI,externalForwardedProps:te,ownerState:V}),[ve,oe]=Fe("endDecorator",{className:U.endDecorator,elementType:HI,externalForwardedProps:te,ownerState:V});return g.jsxs(ae,O({},z,{children:[F&&g.jsx(he,O({},de,{children:F})),g.jsx(K,O({},me)),J&&g.jsx(ve,O({},oe,{children:J}))]}))}),$b=({theme:e,ownerState:t},n)=>{let o={};function a(s){if(typeof s=="function"){const u=s(e);a(u)}else Array.isArray(s)?s.forEach(u=>{typeof u!="boolean"&&a(u)}):typeof s=="object"&&(o=O({},o,s))}return t.sx&&(a(t.sx),n.forEach(s=>{const u=o[s];if(typeof u=="string"||typeof u=="number")if(s==="borderRadius")if(typeof u=="number")o[s]=`${u}px`;else{var d;o[s]=((d=e.vars)==null?void 0:d.radius[u])||u}else["p","padding","m","margin"].indexOf(s)!==-1&&typeof u=="number"?o[s]=e.spacing(u):o[s]=u;else typeof u=="function"?o[s]=u(e):o[s]=void 0})),o};function VI(e){return Cn("MuiList",e)}un("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const Rb=b.createContext(!1),UI=b.createContext(void 0),Ib=b.createContext(void 0),Fm=b.createContext(!1),WI=b.createContext(!1),KI={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function Tb(e){const{children:t,nested:n,row:o=!1,wrap:a=!1}=e,s=g.jsx(Fm.Provider,{value:o,children:g.jsx(WI.Provider,{value:a,children:b.Children.map(t,(u,d)=>b.isValidElement(u)?b.cloneElement(u,O({},d===0&&{"data-first-child":""},d===b.Children.count(t)-1&&{"data-last-child":""})):u)})});return n===void 0?s:g.jsx(Rb.Provider,{value:n,children:s})}const qI=b.createContext(void 0),YI=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],GI=e=>{const{variant:t,color:n,size:o,nesting:a,orientation:s,instanceSize:u}=e,d={root:["root",s,t&&`variant${je(t)}`,n&&`color${je(n)}`,!u&&!a&&o&&`size${je(o)}`,u&&`size${je(u)}`,a&&"nesting"]};return wn(d,VI,{})},Nb=Ie("ul")(({theme:e,ownerState:t})=>{var n;const{p:o,padding:a,borderRadius:s}=$b({theme:e,ownerState:t},["p","padding","borderRadius"]);function u(d){return d==="sm"?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:d==="md"?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:d==="lg"?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":t.orientation==="horizontal"?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&O({},u(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&O({},u(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],t.orientation==="horizontal"?O({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},t.marker&&{paddingInlineStart:"3ch"}),O({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},(n=e.variants[t.variant])==null?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},s!==void 0&&{"--List-radius":s},o!==void 0&&{"--List-padding":o},a!==void 0&&{"--List-padding":a})]}),XI=Ie(Nb,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JI=b.forwardRef(function(t,n){var o;const a=b.useContext(Rb),s=b.useContext(Ib),u=b.useContext(qI),d=Hn({props:t,name:"JoyList"}),{component:f,className:p,children:h,size:y,orientation:x="vertical",wrap:k=!1,variant:C="plain",color:S="neutral",role:w,slots:I={},slotProps:T={}}=d,E=Le(d,YI),N=y||((o=t.size)!=null?o:"md");let $;s&&($="group"),u&&($="presentation"),w&&($=w);const j=O({},d,{instanceSize:t.size,size:N,nesting:a,orientation:x,wrap:k,variant:C,color:S,role:$}),A=GI(j),F=O({},E,{component:f,slots:I,slotProps:T}),[J,R]=Fe("root",{ref:n,className:Ke(A.root,p),elementType:XI,externalForwardedProps:F,ownerState:j,additionalProps:{as:f,role:$,"aria-labelledby":typeof a=="string"?a:void 0}});return g.jsx(J,O({},R,{children:g.jsx(UI.Provider,{value:`${typeof f=="string"?f:""}:${$||""}`,children:g.jsx(Tb,{row:x==="horizontal",wrap:k,children:h})})}))}),QI=un("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);function ZI(e){return Cn("MuiListItemButton",e)}const Eu=un("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),eT=b.createContext("horizontal"),tT=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],nT=e=>{const{color:t,disabled:n,focusVisible:o,focusVisibleClassName:a,selected:s,variant:u}=e,d={root:["root",n&&"disabled",o&&"focusVisible",t&&`color${je(t)}`,s&&"selected",u&&`variant${je(u)}`]},f=wn(d,ZI,{});return o&&a&&(f.root+=` ${a}`),f},_b=Ie("div")(({theme:e,ownerState:t})=>{var n,o,a,s,u,d;return O({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},t.orientation==="vertical"&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},t["data-first-child"]===void 0&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:O({},e.focus.default,{zIndex:1})},(n=e.variants[t.variant])==null?void 0:n[t.color],{"&:active":(o=e.variants[`${t.variant}Active`])==null?void 0:o[t.color],[`.${QI.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${Eu.selected}`]:O({},(a=e.variants[`${t.variant}Active`])==null?void 0:a[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${Eu.selected}, [aria-selected="true"])`]:{"&:hover":(s=e.variants[`${t.variant}Hover`])==null?void 0:s[t.color],"&:active":(u=e.variants[`${t.variant}Active`])==null?void 0:u[t.color]},[`&.${Eu.disabled}`]:O({},(d=e.variants[`${t.variant}Disabled`])==null?void 0:d[t.color])})}),rT=Ie(_b,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>O({},!e.row&&{[`&.${Eu.selected}`]:{fontWeight:t.vars.fontWeight.md}})),is=b.forwardRef(function(t,n){const o=Hn({props:t,name:"JoyListItemButton"}),a=b.useContext(Fm),{children:s,className:u,action:d,component:f="div",orientation:p="horizontal",role:h,selected:y=!1,color:x="neutral",variant:k="plain",slots:C={},slotProps:S={}}=o,w=Le(o,tT),I=b.useRef(null),T=ra(I,n),{focusVisible:E,setFocusVisible:N,getRootProps:$}=oa(O({},o,{rootRef:T}));b.useImperativeHandle(d,()=>({focusVisible:()=>{var M;N(!0),(M=I.current)==null||M.focus()}}),[N]);const j=O({},o,{component:f,color:x,focusVisible:E,orientation:p,row:a,selected:y,variant:k}),A=nT(j),F=O({},w,{component:f,slots:C,slotProps:S}),[J,R]=Fe("root",{ref:n,className:Ke(A.root,u),elementType:rT,externalForwardedProps:F,ownerState:j,getSlotProps:$});return g.jsx(eT.Provider,{value:p,children:g.jsx(J,O({},R,{role:h??R.role,children:s}))})});function oT(e){return Cn("MuiTypography",e)}un("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const iT=["color","textColor"],aT=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],gy=b.createContext(!1),sT=b.createContext(!1),lT=e=>{const{gutterBottom:t,noWrap:n,level:o,color:a,variant:s}=e,u={root:["root",o,t&&"gutterBottom",n&&"noWrap",a&&`color${je(a)}`,s&&`variant${je(s)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return wn(u,oT,{})},uT=Ie("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),cT=Ie("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),dT=Ie("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,o,a,s,u;const d=t.level!=="inherit"?(n=e.typography[t.level])==null?void 0:n.lineHeight:"1";return O({"--Icon-fontSize":`calc(1em * ${d})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:O({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&O({display:"flex",alignItems:"center"},t.nesting&&O({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&t.level!=="inherit"&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&t.level!=="inherit"&&(o=(a=e.typography[t.level])==null?void 0:a.fontSize)!=null?o:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&{color:`var(--variant-plainColor, rgba(${(s=e.vars.palette[t.color])==null?void 0:s.mainChannel} / 1))`},t.variant&&O({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},(u=e.variants[t.variant])==null?void 0:u[t.color]))}),vy={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},Ob=b.forwardRef(function(t,n){var o;const a=Hn({props:t,name:"JoyTypography"}),{color:s,textColor:u}=a,d=Le(a,iT),f=b.useContext(gy),p=b.useContext(sT),h=Mx(O({},d,{color:u})),{component:y,gutterBottom:x=!1,noWrap:k=!1,level:C="body-md",levelMapping:S=vy,children:w,endDecorator:I,startDecorator:T,variant:E,slots:N={},slotProps:$={}}=h,j=Le(h,aT),A=(o=t.color)!=null?o:E?s??"neutral":s,F=f||p?t.level||"inherit":C,J=Q5(w,["Skeleton"]),R=y||(f?"span":S[F]||vy[F]||"span"),M=O({},h,{level:F,component:R,color:A,gutterBottom:x,noWrap:k,nesting:f,variant:E,unstable_hasSkeleton:J}),q=lT(M),G=O({},j,{component:R,slots:N,slotProps:$}),[ne,Q]=Fe("root",{ref:n,className:q.root,elementType:dT,externalForwardedProps:G,ownerState:M}),[B,V]=Fe("startDecorator",{className:q.startDecorator,elementType:uT,externalForwardedProps:G,ownerState:M}),[U,te]=Fe("endDecorator",{className:q.endDecorator,elementType:cT,externalForwardedProps:G,ownerState:M});return g.jsx(gy.Provider,{value:!0,children:g.jsxs(ne,O({},Q,{children:[T&&g.jsx(B,O({},V,{children:T})),J?b.cloneElement(w,{variant:w.props.variant||"inline"}):w,I&&g.jsx(U,O({},te,{children:I}))]}))})});Ob.muiName="Typography";function fT(e){return Cn("MuiModalClose",e)}un("MuiModalClose",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);function pT(e){return Cn("MuiSvgIcon",e)}un("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const mT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],hT=e=>{const{color:t,size:n,fontSize:o}=e,a={root:["root",t&&t!=="inherit"&&`color${je(t)}`,n&&`size${je(n)}`,o&&`fontSize${je(o)}`]};return wn(a,pT,{})},yy={sm:"xl",md:"xl2",lg:"xl3"},gT=Ie("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;return O({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[yy[t.instanceSize]]},t.instanceFontSize&&t.instanceFontSize!=="inherit"&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[yy[t.size]]||"unset"})`},t.fontSize&&t.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&O({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&e.vars.palette[t.color]&&{color:`rgba(${(n=e.vars.palette[t.color])==null?void 0:n.mainChannel} / 1)`}))}),xy=b.forwardRef(function(t,n){const o=Hn({props:t,name:"JoySvgIcon"}),{children:a,className:s,color:u,component:d="svg",fontSize:f,htmlColor:p,inheritViewBox:h=!1,titleAccess:y,viewBox:x="0 0 24 24",size:k="md",slots:C={},slotProps:S={}}=o,w=Le(o,mT),I=b.isValidElement(a)&&a.type==="svg",T=O({},o,{color:u,component:d,size:k,instanceSize:t.size,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:x,hasSvgAsChild:I}),E=hT(T),N=O({},w,{component:d,slots:C,slotProps:S}),[$,j]=Fe("root",{ref:n,className:Ke(E.root,s),elementType:gT,externalForwardedProps:N,ownerState:T,additionalProps:O({color:p,focusable:!1},y&&{role:"img"},!y&&{"aria-hidden":!0},!h&&{viewBox:x},I&&a.props)});return g.jsxs($,O({},j,{children:[I?a.props.children:a,y?g.jsx("title",{children:y}):null]}))});function jb(e,t){function n(o,a){return g.jsx(xy,O({"data-testid":`${t}Icon`,ref:a},o,{children:e}))}return n.muiName=xy.muiName,b.memo(b.forwardRef(n))}const vT=jb(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var by;const yT=["component","color","variant","size","onClick","slots","slotProps"],xT=e=>{const{variant:t,color:n,disabled:o,focusVisible:a,size:s}=e,u={root:["root",o&&"disabled",a&&"focusVisible",t&&`variant${je(t)}`,n&&`color${je(n)}`,s&&`size${je(s)}`]};return wn(u,fT,{})},bT=Ie(hb,{name:"JoyModalClose",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n;return O({},e.size==="sm"&&{"--IconButton-size":"1.75rem"},e.size==="md"&&{"--IconButton-size":"2rem"},e.size==="lg"&&{"--IconButton-size":"2.25rem"},{position:"absolute",zIndex:1,top:"var(--ModalClose-inset, 0.625rem)",right:"var(--ModalClose-inset, 0.625rem)",borderRadius:`var(--ModalClose-radius, ${t.vars.radius.sm})`},!((n=t.variants[e.variant])!=null&&(n=n[e.color])!=null&&n.backgroundColor)&&{color:t.vars.palette.text.secondary})}),ST={plain:"plain",outlined:"plain",soft:"soft",solid:"solid"},CT=b.forwardRef(function(t,n){var o,a,s,u,d,f;const p=Hn({props:t,name:"JoyModalClose"}),{component:h="button",color:y="neutral",variant:x="plain",size:k="md",onClick:C,slots:S={},slotProps:w={}}=p,I=Le(p,yT),T=b.useContext(xb),E=b.useContext(Cb),N=(o=(a=t.variant)!=null?a:ST[E==null?void 0:E.variant])!=null?o:x,$=(s=(u=t.color)!=null?u:E==null?void 0:E.color)!=null?s:y,j=b.useContext(wb),A=(d=(f=t.size)!=null?f:j)!=null?d:k,{focusVisible:F,getRootProps:J}=oa(O({},p,{rootRef:n})),R=O({},p,{color:$,component:h,variant:N,size:A,focusVisible:F}),M=xT(R),[q,G]=Fe("root",{ref:n,elementType:bT,getSlotProps:J,externalForwardedProps:O({onClick:ne=>{T==null||T(ne,"closeClick"),C==null||C(ne)}},I,{component:h,slots:S,slotProps:w}),className:M.root,ownerState:R});return g.jsx(q,O({},G,{children:by||(by=g.jsx(vT,{}))}))}),Sy=e=>e,wT=()=>{let e=Sy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Sy}}},kT=wT();function ni(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function He(e){if(typeof e!="string")throw new Error(ni(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Pr(e,t,n=void 0){const o={};for(const a in e){const s=e[a];let u="",d=!0;for(let f=0;f<s.length;f+=1){const p=s[f];p&&(u+=(d===!0?"":" ")+t(p),d=!1,n&&n[p]&&(u+=" "+n[p]))}o[a]=u}return o}var Hf={exports:{}},qe={};/**
626
- * @license React
627
- * react-is.production.js
628
- *
629
- * Copyright (c) Meta Platforms, Inc. and affiliates.
630
- *
631
- * This source code is licensed under the MIT license found in the
632
- * LICENSE file in the root directory of this source tree.
633
- */var Cy;function ET(){if(Cy)return qe;Cy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),k=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case e:switch(S=S.type,S){case n:case a:case o:case f:case p:case x:return S;default:switch(S=S&&S.$$typeof,S){case u:case d:case y:case h:return S;case s:return S;default:return w}}case t:return w}}}return qe.ContextConsumer=s,qe.ContextProvider=u,qe.Element=e,qe.ForwardRef=d,qe.Fragment=n,qe.Lazy=y,qe.Memo=h,qe.Portal=t,qe.Profiler=a,qe.StrictMode=o,qe.Suspense=f,qe.SuspenseList=p,qe.isContextConsumer=function(S){return C(S)===s},qe.isContextProvider=function(S){return C(S)===u},qe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},qe.isForwardRef=function(S){return C(S)===d},qe.isFragment=function(S){return C(S)===n},qe.isLazy=function(S){return C(S)===y},qe.isMemo=function(S){return C(S)===h},qe.isPortal=function(S){return C(S)===t},qe.isProfiler=function(S){return C(S)===a},qe.isStrictMode=function(S){return C(S)===o},qe.isSuspense=function(S){return C(S)===f},qe.isSuspenseList=function(S){return C(S)===p},qe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===a||S===o||S===f||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===u||S.$$typeof===s||S.$$typeof===d||S.$$typeof===k||S.getModuleId!==void 0)},qe.typeOf=C,qe}var wy;function PT(){return wy||(wy=1,Hf.exports=ET()),Hf.exports}var Ab=PT();function vr(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 Lb(e){if(b.isValidElement(e)||Ab.isValidElementType(e)||!vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Lb(e[n])}),t}function yn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return vr(e)&&vr(t)&&Object.keys(t).forEach(a=>{b.isValidElement(t[a])||Ab.isValidElementType(t[a])?o[a]=t[a]:vr(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&vr(e[a])?o[a]=yn(e[a],t[a],n):n.clone?o[a]=vr(t[a])?Lb(t[a]):t[a]:o[a]=t[a]}),o}function bs(e,t){return t?yn(e,t,{clone:!1}):e}function $T(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,a)=>{var u,d;const s=/min-width:\s*([0-9.]+)/;return+(((u=o.match(s))==null?void 0:u[1])||0)-+(((d=a.match(s))==null?void 0:d[1])||0)});return n.length?n.reduce((o,a)=>{const s=t[a];return delete o[a],o[a]=s,o},{...t}):t}function RT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function IT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,a]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(s)}function TT(e){const t=(s,u)=>s.replace("@media",u?`@container ${u}`:"@container");function n(s,u){s.up=(...d)=>t(e.breakpoints.up(...d),u),s.down=(...d)=>t(e.breakpoints.down(...d),u),s.between=(...d)=>t(e.breakpoints.between(...d),u),s.only=(...d)=>t(e.breakpoints.only(...d),u),s.not=(...d)=>{const f=t(e.breakpoints.not(...d),u);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const o={},a=s=>(n(o,s),o);return n(a),{...e,containerQueries:a}}const yc={xs:0,sm:600,md:900,lg:1200,xl:1536},ky={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yc[e]}px)`},NT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:yc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Kr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||ky;return t.reduce((u,d,f)=>(u[s.up(s.keys[f])]=n(t[f]),u),{})}if(typeof t=="object"){const s=o.breakpoints||ky;return Object.keys(t).reduce((u,d)=>{if(RT(s.keys,d)){const f=IT(o.containerQueries?o:NT,d);f&&(u[f]=n(t[d],d))}else if(Object.keys(s.values||yc).includes(d)){const f=s.up(d);u[f]=n(t[d],d)}else{const f=d;u[f]=t[f]}return u},{})}return n(t)}function _T(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,a)=>{const s=e.up(a);return o[s]={},o},{}))||{}}function OT(e,t){return e.reduce((n,o)=>{const a=n[o];return(!a||Object.keys(a).length===0)&&delete n[o],n},t)}function xc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,a)=>o&&o[a]!=null?o[a]:null,e)}function Fu(e,t,n,o=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||o:a=xc(e,n)||o,t&&(a=t(a,o,e)),a}function gt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:a}=e,s=u=>{if(u[t]==null)return null;const d=u[t],f=u.theme,p=xc(f,o)||{};return Kr(u,d,y=>{let x=Fu(p,a,y);return y===x&&typeof y=="string"&&(x=Fu(p,a,`${t}${y==="default"?"":He(y)}`,y)),n===!1?x:{[n]:x}})};return s.propTypes={},s.filterProps=[t],s}function jT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const AT={m:"margin",p:"padding"},LT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ey={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zT=jT(e=>{if(e.length>2)if(Ey[e])e=Ey[e];else return[e];const[t,n]=e.split(""),o=AT[t],a=LT[n]||"";return Array.isArray(a)?a.map(s=>o+s):[o+a]}),Hm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hm,...Vm];function Ks(e,t,n,o){const a=xc(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const u=Math.abs(s),d=a[u];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:()=>{}}function Um(e){return Ks(e,"spacing",8)}function qs(e,t){return typeof t=="string"||t==null?t:e(t)}function DT(e,t){return n=>e.reduce((o,a)=>(o[a]=qs(t,n),o),{})}function BT(e,t,n,o){if(!t.includes(n))return null;const a=zT(n),s=DT(a,o),u=e[n];return Kr(e,u,s)}function zb(e,t){const n=Um(e.theme);return Object.keys(e).map(o=>BT(e,t,o,n)).reduce(bs,{})}function ct(e){return zb(e,Hm)}ct.propTypes={};ct.filterProps=Hm;function dt(e){return zb(e,Vm)}dt.propTypes={};dt.filterProps=Vm;function bc(...e){const t=e.reduce((o,a)=>(a.filterProps.forEach(s=>{o[s]=a}),o),{}),n=o=>Object.keys(o).reduce((a,s)=>t[s]?bs(a,t[s](o)):a,{});return n.propTypes={},n.filterProps=e.reduce((o,a)=>o.concat(a.filterProps),[]),n}function An(e){return typeof e!="number"?e:`${e}px solid`}function Vn(e,t){return gt({prop:e,themeKey:"borders",transform:t})}const MT=Vn("border",An),FT=Vn("borderTop",An),HT=Vn("borderRight",An),VT=Vn("borderBottom",An),UT=Vn("borderLeft",An),WT=Vn("borderColor"),KT=Vn("borderTopColor"),qT=Vn("borderRightColor"),YT=Vn("borderBottomColor"),GT=Vn("borderLeftColor"),XT=Vn("outline",An),JT=Vn("outlineColor"),Sc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:qs(t,o)});return Kr(e,e.borderRadius,n)}return null};Sc.propTypes={};Sc.filterProps=["borderRadius"];bc(MT,FT,HT,VT,UT,WT,KT,qT,YT,GT,Sc,XT,JT);const Cc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=o=>({gap:qs(t,o)});return Kr(e,e.gap,n)}return null};Cc.propTypes={};Cc.filterProps=["gap"];const wc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=o=>({columnGap:qs(t,o)});return Kr(e,e.columnGap,n)}return null};wc.propTypes={};wc.filterProps=["columnGap"];const kc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=o=>({rowGap:qs(t,o)});return Kr(e,e.rowGap,n)}return null};kc.propTypes={};kc.filterProps=["rowGap"];const QT=gt({prop:"gridColumn"}),ZT=gt({prop:"gridRow"}),eN=gt({prop:"gridAutoFlow"}),tN=gt({prop:"gridAutoColumns"}),nN=gt({prop:"gridAutoRows"}),rN=gt({prop:"gridTemplateColumns"}),oN=gt({prop:"gridTemplateRows"}),iN=gt({prop:"gridTemplateAreas"}),aN=gt({prop:"gridArea"});bc(Cc,wc,kc,QT,ZT,eN,tN,nN,rN,oN,iN,aN);function Fi(e,t){return t==="grey"?t:e}const sN=gt({prop:"color",themeKey:"palette",transform:Fi}),lN=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fi}),uN=gt({prop:"backgroundColor",themeKey:"palette",transform:Fi});bc(sN,lN,uN);function hn(e){return e<=1&&e!==0?`${e*100}%`:e}const cN=gt({prop:"width",transform:hn}),Wm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,s,u,d,f;const o=((u=(s=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:s.values)==null?void 0:u[n])||yc[n];return o?((f=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:hn(n)}};return Kr(e,e.maxWidth,t)}return null};Wm.filterProps=["maxWidth"];const dN=gt({prop:"minWidth",transform:hn}),fN=gt({prop:"height",transform:hn}),pN=gt({prop:"maxHeight",transform:hn}),mN=gt({prop:"minHeight",transform:hn});gt({prop:"size",cssProperty:"width",transform:hn});gt({prop:"size",cssProperty:"height",transform:hn});const hN=gt({prop:"boxSizing"});bc(cN,Wm,dN,fN,pN,mN,hN);const Ys={border:{themeKey:"borders",transform:An},borderTop:{themeKey:"borders",transform:An},borderRight:{themeKey:"borders",transform:An},borderBottom:{themeKey:"borders",transform:An},borderLeft:{themeKey:"borders",transform:An},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:An},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sc},color:{themeKey:"palette",transform:Fi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fi},backgroundColor:{themeKey:"palette",transform:Fi},p:{style:dt},pt:{style:dt},pr:{style:dt},pb:{style:dt},pl:{style:dt},px:{style:dt},py:{style:dt},padding:{style:dt},paddingTop:{style:dt},paddingRight:{style:dt},paddingBottom:{style:dt},paddingLeft:{style:dt},paddingX:{style:dt},paddingY:{style:dt},paddingInline:{style:dt},paddingInlineStart:{style:dt},paddingInlineEnd:{style:dt},paddingBlock:{style:dt},paddingBlockStart:{style:dt},paddingBlockEnd:{style:dt},m:{style:ct},mt:{style:ct},mr:{style:ct},mb:{style:ct},ml:{style:ct},mx:{style:ct},my:{style:ct},margin:{style:ct},marginTop:{style:ct},marginRight:{style:ct},marginBottom:{style:ct},marginLeft:{style:ct},marginX:{style:ct},marginY:{style:ct},marginInline:{style:ct},marginInlineStart:{style:ct},marginInlineEnd:{style:ct},marginBlock:{style:ct},marginBlockStart:{style:ct},marginBlockEnd:{style:ct},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:Cc},rowGap:{style:kc},columnGap:{style:wc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hn},maxWidth:{style:Wm},minWidth:{transform:hn},height:{transform:hn},maxHeight:{transform:hn},minHeight:{transform:hn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function gN(...e){const t=e.reduce((o,a)=>o.concat(Object.keys(a)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function vN(e,t){return typeof e=="function"?e(t):e}function yN(){function e(n,o,a,s){const u={[n]:o,theme:a},d=s[n];if(!d)return{[n]:o};const{cssProperty:f=n,themeKey:p,transform:h,style:y}=d;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[n]:o};const x=xc(a,p)||{};return y?y(u):Kr(u,o,C=>{let S=Fu(x,h,C);return C===S&&typeof C=="string"&&(S=Fu(x,h,`${n}${C==="default"?"":He(C)}`,C)),f===!1?S:{[f]:S}})}function t(n){const{sx:o,theme:a={}}=n||{};if(!o)return null;const s=a.unstable_sxConfig??Ys;function u(d){let f=d;if(typeof d=="function")f=d(a);else if(typeof d!="object")return d;if(!f)return null;const p=_T(a.breakpoints),h=Object.keys(p);let y=p;return Object.keys(f).forEach(x=>{const k=vN(f[x],a);if(k!=null)if(typeof k=="object")if(s[x])y=bs(y,e(x,k,a,s));else{const C=Kr({theme:a},k,S=>({[x]:S}));gN(C,k)?y[x]=t({sx:k,theme:a}):y=bs(y,C)}else y=bs(y,e(x,k,a,s))}),$T(a,OT(h,y))}return Array.isArray(o)?o.map(u):u(o)}return t}const Gi=yN();Gi.filterProps=["sx"];const xN=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Ys;return Object.keys(e).forEach(a=>{n[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function bN(e){const{sx:t,...n}=e,{systemProps:o,otherProps:a}=xN(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...u)=>{const d=t(...u);return vr(d)?{...o,...d}:o}:s={...o,...t},{...a,sx:s}}function SN(e,t){return Lu(e,t)}function CN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Py=[];function $y(e){return Py[0]=e,ic(Py)}const wN=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function kN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...a}=e,s=wN(t),u=Object.keys(s);function d(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n})`}function f(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-o/100}${n})`}function p(x,k){const C=u.indexOf(k);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n}) and (max-width:${(C!==-1&&typeof t[u[C]]=="number"?t[u[C]]:k)-o/100}${n})`}function h(x){return u.indexOf(x)+1<u.length?p(x,u[u.indexOf(x)+1]):d(x)}function y(x){const k=u.indexOf(x);return k===0?d(u[1]):k===u.length-1?f(u[k]):p(x,u[u.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:u,values:s,up:d,down:f,between:p,only:h,not:y,unit:n,...a}}const EN={borderRadius:4};function Db(e=8,t=Um({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(s=>{const u=t(s);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function PN(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let a=n.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return n.palette.mode===e?t:{}}function Km(e={},...t){const{breakpoints:n={},palette:o={},spacing:a,shape:s={},...u}=e,d=kN(n),f=Db(a);let p=yn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:f,shape:{...EN,...s}},u);return p=TT(p),p.applyStyles=PN,p=t.reduce((h,y)=>yn(h,y),p),p.unstable_sxConfig={...Ys,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(y){return Gi({sx:y,theme:this})},p}function $N(e){return Object.keys(e).length===0}function RN(e=null){const t=b.useContext(ac);return!t||$N(t)?e:t}const IN=Km();function TN(e=IN){return RN(e)}const NN={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 nr(e,t,n="Mui"){const o=NN[t];return o?`${n}-${o}`:`${kT.generate(e)}-${t}`}function rr(e,t,n="Mui"){const o={};return t.forEach(a=>{o[a]=nr(e,a,n)}),o}function Bb(e){const{variants:t,...n}=e,o={variants:t,style:$y(n),isProcessed:!0};return o.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=$y(a.style))}),o}const _N=Km();function Vf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ON(e){return e?(t,n)=>n[e]:null}function jN(e,t,n){e.theme=zN(e.theme)?n:e.theme[t]||e.theme}function Pu(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Pu(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:a,...s}=n;o=s}return Mb(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function Mb(e,t,n=[]){var a;let o;e:for(let s=0;s<t.length;s+=1){const u=t[s];if(typeof u.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(o))continue}else for(const d in u.props)if(e[d]!==u.props[d]&&((a=e.ownerState)==null?void 0:a[d])!==u.props[d])continue e;typeof u.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(o))):n.push(u.style)}return n}function AN(e={}){const{themeId:t,defaultTheme:n=_N,rootShouldForwardProp:o=Vf,slotShouldForwardProp:a=Vf}=e;function s(d){jN(d,t,n)}return(d,f={})=>{CN(d,$=>$.filter(j=>j!==Gi));const{name:p,slot:h,skipVariantsResolver:y,skipSx:x,overridesResolver:k=ON(BN(h)),...C}=f,S=y!==void 0?y:h&&h!=="Root"&&h!=="root"||!1,w=x||!1;let I=Vf;h==="Root"||h==="root"?I=o:h?I=a:DN(d)&&(I=void 0);const T=SN(d,{shouldForwardProp:I,label:LN(),...C}),E=$=>{if(typeof $=="function"&&$.__emotion_real!==$)return function(A){return Pu(A,$)};if(vr($)){const j=Bb($);return j.variants?function(F){return Pu(F,j)}:j.style}return $},N=(...$)=>{const j=[],A=$.map(E),F=[];if(j.push(s),p&&k&&F.push(function(q){var B,V;const ne=(V=(B=q.theme.components)==null?void 0:B[p])==null?void 0:V.styleOverrides;if(!ne)return null;const Q={};for(const U in ne)Q[U]=Pu(q,ne[U]);return k(q,Q)}),p&&!S&&F.push(function(q){var Q,B;const G=q.theme,ne=(B=(Q=G==null?void 0:G.components)==null?void 0:Q[p])==null?void 0:B.variants;return ne?Mb(q,ne):null}),w||F.push(Gi),Array.isArray(A[0])){const M=A.shift(),q=new Array(j.length).fill(""),G=new Array(F.length).fill("");let ne;ne=[...q,...M,...G],ne.raw=[...q,...M.raw,...G],j.unshift(ne)}const J=[...j,...A,...F],R=T(...J);return d.muiName&&(R.muiName=d.muiName),R};return T.withConfig&&(N.withConfig=T.withConfig),N}}function LN(e,t){return void 0}function zN(e){for(const t in e)return!1;return!0}function DN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function BN(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Op(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],u=t[a];if(!u)n[a]=s||{};else if(!s)n[a]=u;else{n[a]={...u};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const f=d;n[a][f]=Op(s[f],u[f])}}}else n[a]===void 0&&(n[a]=e[a])}return n}const MN=typeof window<"u"?b.useLayoutEffect:b.useEffect;function FN(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qm(e,t=0,n=1){return FN(e,t,n)}function HN(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(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,a)=>a<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Eo(e){if(e.type)return e;if(e.charAt(0)==="#")return Eo(HN(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ni(9,e));let o=e.substring(t+1,e.length-1),a;if(n==="color"){if(o=o.split(" "),a=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(ni(10,a))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:a}}const VN=e=>{const t=Eo(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},us=(e,t)=>{try{return VN(e)}catch{return e}};function Ec(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Fb(e){e=Eo(e);const{values:t}=e,n=t[0],o=t[1]/100,a=t[2]/100,s=o*Math.min(a,1-a),u=(p,h=(p+n/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const f=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(d+="a",f.push(t[3])),Ec({type:d,values:f})}function jp(e){e=Eo(e);let t=e.type==="hsl"||e.type==="hsla"?Eo(Fb(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 UN(e,t){const n=jp(e),o=jp(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function ri(e,t){return e=Eo(e),t=qm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ec(e)}function pu(e,t,n){try{return ri(e,t)}catch{return e}}function Xi(e,t){if(e=Eo(e),t=qm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ec(e)}function Ye(e,t,n){try{return Xi(e,t)}catch{return e}}function Ji(e,t){if(e=Eo(e),t=qm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ec(e)}function Ge(e,t,n){try{return Ji(e,t)}catch{return e}}function WN(e,t=.15){return jp(e)>.5?Xi(e,t):Ji(e,t)}function mu(e,t,n){try{return WN(e,t)}catch{return e}}const KN=b.createContext(void 0);function qN(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const a=t.components[n];return a.defaultProps?Op(a.defaultProps,o):!a.styleOverrides&&!a.variants?Op(a,o):o}function YN({props:e,name:t}){const n=b.useContext(KN);return qN({props:e,name:t,theme:{components:n}})}const Ry={theme:void 0};function GN(e){let t,n;return function(a){let s=t;return(s===void 0||a.theme!==n)&&(Ry.theme=a.theme,s=Bb(e(Ry)),t=s,n=a.theme),s}}function XN(e=""){function t(...o){if(!o.length)return"";const a=o[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...o.slice(1))})`:`, ${a}`}return(o,...a)=>`var(--${e?`${e}-`:""}${o}${t(...a)})`}const Iy=(e,t,n,o=[])=>{let a=e;t.forEach((s,u)=>{u===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=o.includes(s)?[]:{}),a=a[s])})},JN=(e,t,n)=>{function o(a,s=[],u=[]){Object.entries(a).forEach(([d,f])=>{(!n||n&&!n([...s,d]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?o(f,[...s,d],Array.isArray(f)?[...u,d]:u):t([...s,d],f,u))})}o(e)},QN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Uf(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},a={},s={},u={};return JN(e,(d,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!o||!o(d,f))){const h=`--${n?`${n}-`:""}${d.join("-")}`,y=QN(d,f);Object.assign(a,{[h]:y}),Iy(s,d,`var(${h})`,p),Iy(u,d,`var(${h}, ${y})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:u}}function ZN(e,t={}){const{getSelector:n=w,disableCssColorScheme:o,colorSchemeSelector:a}=t,{colorSchemes:s={},components:u,defaultColorScheme:d="light",...f}=e,{vars:p,css:h,varsWithDefaults:y}=Uf(f,t);let x=y;const k={},{[d]:C,...S}=s;if(Object.entries(S||{}).forEach(([E,N])=>{const{vars:$,css:j,varsWithDefaults:A}=Uf(N,t);x=yn(x,A),k[E]={css:j,vars:$}}),C){const{css:E,vars:N,varsWithDefaults:$}=Uf(C,t);x=yn(x,$),k[d]={css:E,vars:N}}function w(E,N){var j,A;let $=a;if(a==="class"&&($=".%s"),a==="data"&&($="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&($=`[${a}="%s"]`),E){if($==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(j=s[E])==null?void 0:j.palette)==null?void 0:A.mode)||E})`]:{":root":N}};if($)return e.defaultColorScheme===E?`:root, ${$.replace("%s",String(E))}`:$.replace("%s",String(E))}return":root"}return{vars:x,generateThemeVars:()=>{let E={...p};return Object.entries(k).forEach(([,{vars:N}])=>{E=yn(E,N)}),E},generateStyleSheets:()=>{var F,J;const E=[],N=e.defaultColorScheme||"light";function $(R,M){Object.keys(M).length&&E.push(typeof R=="string"?{[R]:{...M}}:R)}$(n(void 0,{...h}),h);const{[N]:j,...A}=k;if(j){const{css:R}=j,M=(J=(F=s[N])==null?void 0:F.palette)==null?void 0:J.mode,q=!o&&M?{colorScheme:M,...R}:{...R};$(n(N,{...q}),q)}return Object.entries(A).forEach(([R,{css:M}])=>{var ne,Q;const q=(Q=(ne=s[R])==null?void 0:ne.palette)==null?void 0:Q.mode,G=!o&&q?{colorScheme:q,...M}:{...M};$(n(R,{...G}),G)}),E}}}function e_(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Os={black:"#000",white:"#fff"},t_={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"},Ti={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ni={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},as={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_i={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Oi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ji={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Hb(){return{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:Os.white,default:Os.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}}}const n_=Hb();function Vb(){return{text:{primary:Os.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:Os.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}}}const Ty=Vb();function Ny(e,t,n,o){const a=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ji(e.main,a):t==="dark"&&(e.dark=Xi(e.main,s)))}function r_(e="light"){return e==="dark"?{main:_i[200],light:_i[50],dark:_i[400]}:{main:_i[700],light:_i[400],dark:_i[800]}}function o_(e="light"){return e==="dark"?{main:Ti[200],light:Ti[50],dark:Ti[400]}:{main:Ti[500],light:Ti[300],dark:Ti[700]}}function i_(e="light"){return e==="dark"?{main:Ni[500],light:Ni[300],dark:Ni[700]}:{main:Ni[700],light:Ni[400],dark:Ni[800]}}function a_(e="light"){return e==="dark"?{main:Oi[400],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[500],dark:Oi[900]}}function s_(e="light"){return e==="dark"?{main:ji[400],light:ji[300],dark:ji[700]}:{main:ji[800],light:ji[500],dark:ji[900]}}function l_(e="light"){return e==="dark"?{main:as[400],light:as[300],dark:as[700]}:{main:"#ed6c02",light:as[500],dark:as[900]}}function Ym(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...a}=e,s=e.primary||r_(t),u=e.secondary||o_(t),d=e.error||i_(t),f=e.info||a_(t),p=e.success||s_(t),h=e.warning||l_(t);function y(S){return UN(S,Ty.text.primary)>=n?Ty.text.primary:n_.text.primary}const x=({color:S,name:w,mainShade:I=500,lightShade:T=300,darkShade:E=700})=>{if(S={...S},!S.main&&S[I]&&(S.main=S[I]),!S.hasOwnProperty("main"))throw new Error(ni(11,w?` (${w})`:"",I));if(typeof S.main!="string")throw new Error(ni(12,w?` (${w})`:"",JSON.stringify(S.main)));return Ny(S,"light",T,o),Ny(S,"dark",E,o),S.contrastText||(S.contrastText=y(S.main)),S};let k;return t==="light"?k=Hb():t==="dark"&&(k=Vb()),yn({common:{...Os},mode:t,primary:x({color:s,name:"primary"}),secondary:x({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:d,name:"error"}),warning:x({color:h,name:"warning"}),info:x({color:f,name:"info"}),success:x({color:p,name:"success"}),grey:t_,contrastThreshold:n,getContrastText:y,augmentColor:x,tonalOffset:o,...k},a)}function u_(e){const t={};return Object.entries(e).forEach(o=>{const[a,s]=o;typeof s=="object"&&(t[a]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function c_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function d_(e){return Math.round(e*1e5)/1e5}const _y={textTransform:"uppercase"},Oy='"Roboto", "Helvetica", "Arial", sans-serif';function f_(e,t){const{fontFamily:n=Oy,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:p,pxToRem:h,...y}=typeof t=="function"?t(e):t,x=o/14,k=h||(w=>`${w/f*x}rem`),C=(w,I,T,E,N)=>({fontFamily:n,fontWeight:w,fontSize:k(I),lineHeight:T,...n===Oy?{letterSpacing:`${d_(E/I)}em`}:{},...N,...p}),S={h1:C(a,96,1.167,-1.5),h2:C(a,60,1.2,-.5),h3:C(s,48,1.167,0),h4:C(s,34,1.235,.25),h5:C(s,24,1.334,0),h6:C(u,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(u,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(u,14,1.75,.4,_y),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,_y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yn({htmlFontSize:f,pxToRem:k,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:d,...S},y,{clone:!1})}const p_=.2,m_=.14,h_=.12;function tt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${p_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${m_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${h_})`].join(",")}const g_=["none",tt(0,2,1,-1,0,1,1,0,0,1,3,0),tt(0,3,1,-2,0,2,2,0,0,1,5,0),tt(0,3,3,-2,0,3,4,0,0,1,8,0),tt(0,2,4,-1,0,4,5,0,0,1,10,0),tt(0,3,5,-1,0,5,8,0,0,1,14,0),tt(0,3,5,-1,0,6,10,0,0,1,18,0),tt(0,4,5,-2,0,7,10,1,0,2,16,1),tt(0,5,5,-3,0,8,10,1,0,3,14,2),tt(0,5,6,-3,0,9,12,1,0,3,16,2),tt(0,6,6,-3,0,10,14,1,0,4,18,3),tt(0,6,7,-4,0,11,15,1,0,4,20,3),tt(0,7,8,-4,0,12,17,2,0,5,22,4),tt(0,7,8,-4,0,13,19,2,0,5,24,4),tt(0,7,9,-4,0,14,21,2,0,5,26,4),tt(0,8,9,-5,0,15,22,2,0,6,28,5),tt(0,8,10,-5,0,16,24,2,0,6,30,5),tt(0,8,11,-5,0,17,26,2,0,6,32,5),tt(0,9,11,-5,0,18,28,2,0,7,34,6),tt(0,9,12,-6,0,19,29,2,0,7,36,6),tt(0,10,13,-6,0,20,31,3,0,8,38,7),tt(0,10,13,-6,0,21,33,3,0,8,40,7),tt(0,10,14,-6,0,22,35,3,0,8,42,7),tt(0,11,14,-7,0,23,36,3,0,9,44,8),tt(0,11,15,-7,0,24,38,3,0,9,46,8)],v_={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)"},y_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jy(e){return`${Math.round(e)}ms`}function x_(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function b_(e){const t={...v_,...e.easing},n={...y_,...e.duration};return{getAutoHeightDuration:x_,create:(a=["all"],s={})=>{const{duration:u=n.standard,easing:d=t.easeInOut,delay:f=0,...p}=s;return(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof u=="string"?u:jy(u)} ${d} ${typeof f=="string"?f:jy(f)}`).join(",")},...e,easing:t,duration:n}}const S_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function C_(e){return vr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ub(e={}){const t={...e};function n(o){const a=Object.entries(o);for(let s=0;s<a.length;s++){const[u,d]=a[s];!C_(d)||u.startsWith("unstable_")?delete o[u]:vr(d)&&(o[u]={...d},n(o[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
634
-
635
- const theme = ${JSON.stringify(t,null,2)};
636
-
637
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
638
- theme.transitions = createTransitions(theme.transitions || {});
639
-
640
- export default theme;`}function Ap(e={},...t){const{breakpoints:n,mixins:o={},spacing:a,palette:s={},transitions:u={},typography:d={},shape:f,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ni(20));const h=Ym(s),y=Km(e);let x=yn(y,{mixins:c_(y.breakpoints,o),palette:h,shadows:g_.slice(),typography:f_(h,d),transitions:b_(u),zIndex:{...S_}});return x=yn(x,p),x=t.reduce((k,C)=>yn(k,C),x),x.unstable_sxConfig={...Ys,...p==null?void 0:p.unstable_sxConfig},x.unstable_sx=function(C){return Gi({sx:C,theme:this})},x.toRuntimeSource=Ub,x}function Lp(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const w_=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Lp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Wb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Kb(e){return e==="dark"?w_:[]}function k_(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...a}=e,s=Ym(t);return{palette:s,opacity:{...Wb(s.mode),...n},overlays:o||Kb(s.mode),...a}}function E_(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const P_=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$_=e=>(t,n)=>{const o=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return P_(e.cssVarPrefix).forEach(d=>{u[d]=n[d],delete n[d]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:u}}:s?{[s.replace("%s",t)]:u,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...u}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function R_(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ee(e,t,n){!e[t]&&n&&(e[t]=n)}function cs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Fb(e)}function Dr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=us(cs(e[t])))}function I_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fr=e=>{try{return e()}catch{}},T_=(e="mui")=>XN(e);function Wf(e,t,n,o){if(!t)return;t=t===!0?{}:t;const a=o==="dark"?"dark":"light";if(!n){e[o]=k_({...t,palette:{mode:a,...t==null?void 0:t.palette}});return}const{palette:s,...u}=Ap({...n,palette:{mode:a,...t==null?void 0:t.palette}});return e[o]={...t,palette:s,opacity:{...Wb(a),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Kb(a)},u}function N_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:u=E_,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...p}=e,h=Object.keys(n)[0],y=o||(n.light&&h!=="light"?"light":h),x=T_(s),{[y]:k,light:C,dark:S,...w}=n,I={...w};let T=k;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(ni(21,y));const E=Wf(I,T,p,y);C&&!I.light&&Wf(I,C,void 0,"light"),S&&!I.dark&&Wf(I,S,void 0,"dark");let N={defaultColorScheme:y,...E,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:f,getCssVar:x,colorSchemes:I,font:{...u_(E.typography),...E.font},spacing:I_(p.spacing)};Object.keys(N.colorSchemes).forEach(J=>{const R=N.colorSchemes[J].palette,M=q=>{const G=q.split("-"),ne=G[1],Q=G[2];return x(q,R[ne][Q])};if(R.mode==="light"&&(ee(R.common,"background","#fff"),ee(R.common,"onBackground","#000")),R.mode==="dark"&&(ee(R.common,"background","#000"),ee(R.common,"onBackground","#fff")),R_(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ee(R.Alert,"errorColor",Ye(R.error.light,.6)),ee(R.Alert,"infoColor",Ye(R.info.light,.6)),ee(R.Alert,"successColor",Ye(R.success.light,.6)),ee(R.Alert,"warningColor",Ye(R.warning.light,.6)),ee(R.Alert,"errorFilledBg",M("palette-error-main")),ee(R.Alert,"infoFilledBg",M("palette-info-main")),ee(R.Alert,"successFilledBg",M("palette-success-main")),ee(R.Alert,"warningFilledBg",M("palette-warning-main")),ee(R.Alert,"errorFilledColor",fr(()=>R.getContrastText(R.error.main))),ee(R.Alert,"infoFilledColor",fr(()=>R.getContrastText(R.info.main))),ee(R.Alert,"successFilledColor",fr(()=>R.getContrastText(R.success.main))),ee(R.Alert,"warningFilledColor",fr(()=>R.getContrastText(R.warning.main))),ee(R.Alert,"errorStandardBg",Ge(R.error.light,.9)),ee(R.Alert,"infoStandardBg",Ge(R.info.light,.9)),ee(R.Alert,"successStandardBg",Ge(R.success.light,.9)),ee(R.Alert,"warningStandardBg",Ge(R.warning.light,.9)),ee(R.Alert,"errorIconColor",M("palette-error-main")),ee(R.Alert,"infoIconColor",M("palette-info-main")),ee(R.Alert,"successIconColor",M("palette-success-main")),ee(R.Alert,"warningIconColor",M("palette-warning-main")),ee(R.AppBar,"defaultBg",M("palette-grey-100")),ee(R.Avatar,"defaultBg",M("palette-grey-400")),ee(R.Button,"inheritContainedBg",M("palette-grey-300")),ee(R.Button,"inheritContainedHoverBg",M("palette-grey-A100")),ee(R.Chip,"defaultBorder",M("palette-grey-400")),ee(R.Chip,"defaultAvatarColor",M("palette-grey-700")),ee(R.Chip,"defaultIconColor",M("palette-grey-700")),ee(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(R.LinearProgress,"primaryBg",Ge(R.primary.main,.62)),ee(R.LinearProgress,"secondaryBg",Ge(R.secondary.main,.62)),ee(R.LinearProgress,"errorBg",Ge(R.error.main,.62)),ee(R.LinearProgress,"infoBg",Ge(R.info.main,.62)),ee(R.LinearProgress,"successBg",Ge(R.success.main,.62)),ee(R.LinearProgress,"warningBg",Ge(R.warning.main,.62)),ee(R.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),ee(R.Slider,"primaryTrack",Ge(R.primary.main,.62)),ee(R.Slider,"secondaryTrack",Ge(R.secondary.main,.62)),ee(R.Slider,"errorTrack",Ge(R.error.main,.62)),ee(R.Slider,"infoTrack",Ge(R.info.main,.62)),ee(R.Slider,"successTrack",Ge(R.success.main,.62)),ee(R.Slider,"warningTrack",Ge(R.warning.main,.62));const q=mu(R.background.default,.8);ee(R.SnackbarContent,"bg",q),ee(R.SnackbarContent,"color",fr(()=>R.getContrastText(q))),ee(R.SpeedDialAction,"fabHoverBg",mu(R.background.paper,.15)),ee(R.StepConnector,"border",M("palette-grey-400")),ee(R.StepContent,"border",M("palette-grey-400")),ee(R.Switch,"defaultColor",M("palette-common-white")),ee(R.Switch,"defaultDisabledColor",M("palette-grey-100")),ee(R.Switch,"primaryDisabledColor",Ge(R.primary.main,.62)),ee(R.Switch,"secondaryDisabledColor",Ge(R.secondary.main,.62)),ee(R.Switch,"errorDisabledColor",Ge(R.error.main,.62)),ee(R.Switch,"infoDisabledColor",Ge(R.info.main,.62)),ee(R.Switch,"successDisabledColor",Ge(R.success.main,.62)),ee(R.Switch,"warningDisabledColor",Ge(R.warning.main,.62)),ee(R.TableCell,"border",Ge(pu(R.divider,1),.88)),ee(R.Tooltip,"bg",pu(R.grey[700],.92))}if(R.mode==="dark"){ee(R.Alert,"errorColor",Ge(R.error.light,.6)),ee(R.Alert,"infoColor",Ge(R.info.light,.6)),ee(R.Alert,"successColor",Ge(R.success.light,.6)),ee(R.Alert,"warningColor",Ge(R.warning.light,.6)),ee(R.Alert,"errorFilledBg",M("palette-error-dark")),ee(R.Alert,"infoFilledBg",M("palette-info-dark")),ee(R.Alert,"successFilledBg",M("palette-success-dark")),ee(R.Alert,"warningFilledBg",M("palette-warning-dark")),ee(R.Alert,"errorFilledColor",fr(()=>R.getContrastText(R.error.dark))),ee(R.Alert,"infoFilledColor",fr(()=>R.getContrastText(R.info.dark))),ee(R.Alert,"successFilledColor",fr(()=>R.getContrastText(R.success.dark))),ee(R.Alert,"warningFilledColor",fr(()=>R.getContrastText(R.warning.dark))),ee(R.Alert,"errorStandardBg",Ye(R.error.light,.9)),ee(R.Alert,"infoStandardBg",Ye(R.info.light,.9)),ee(R.Alert,"successStandardBg",Ye(R.success.light,.9)),ee(R.Alert,"warningStandardBg",Ye(R.warning.light,.9)),ee(R.Alert,"errorIconColor",M("palette-error-main")),ee(R.Alert,"infoIconColor",M("palette-info-main")),ee(R.Alert,"successIconColor",M("palette-success-main")),ee(R.Alert,"warningIconColor",M("palette-warning-main")),ee(R.AppBar,"defaultBg",M("palette-grey-900")),ee(R.AppBar,"darkBg",M("palette-background-paper")),ee(R.AppBar,"darkColor",M("palette-text-primary")),ee(R.Avatar,"defaultBg",M("palette-grey-600")),ee(R.Button,"inheritContainedBg",M("palette-grey-800")),ee(R.Button,"inheritContainedHoverBg",M("palette-grey-700")),ee(R.Chip,"defaultBorder",M("palette-grey-700")),ee(R.Chip,"defaultAvatarColor",M("palette-grey-300")),ee(R.Chip,"defaultIconColor",M("palette-grey-300")),ee(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(R.LinearProgress,"primaryBg",Ye(R.primary.main,.5)),ee(R.LinearProgress,"secondaryBg",Ye(R.secondary.main,.5)),ee(R.LinearProgress,"errorBg",Ye(R.error.main,.5)),ee(R.LinearProgress,"infoBg",Ye(R.info.main,.5)),ee(R.LinearProgress,"successBg",Ye(R.success.main,.5)),ee(R.LinearProgress,"warningBg",Ye(R.warning.main,.5)),ee(R.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),ee(R.Slider,"primaryTrack",Ye(R.primary.main,.5)),ee(R.Slider,"secondaryTrack",Ye(R.secondary.main,.5)),ee(R.Slider,"errorTrack",Ye(R.error.main,.5)),ee(R.Slider,"infoTrack",Ye(R.info.main,.5)),ee(R.Slider,"successTrack",Ye(R.success.main,.5)),ee(R.Slider,"warningTrack",Ye(R.warning.main,.5));const q=mu(R.background.default,.98);ee(R.SnackbarContent,"bg",q),ee(R.SnackbarContent,"color",fr(()=>R.getContrastText(q))),ee(R.SpeedDialAction,"fabHoverBg",mu(R.background.paper,.15)),ee(R.StepConnector,"border",M("palette-grey-600")),ee(R.StepContent,"border",M("palette-grey-600")),ee(R.Switch,"defaultColor",M("palette-grey-300")),ee(R.Switch,"defaultDisabledColor",M("palette-grey-600")),ee(R.Switch,"primaryDisabledColor",Ye(R.primary.main,.55)),ee(R.Switch,"secondaryDisabledColor",Ye(R.secondary.main,.55)),ee(R.Switch,"errorDisabledColor",Ye(R.error.main,.55)),ee(R.Switch,"infoDisabledColor",Ye(R.info.main,.55)),ee(R.Switch,"successDisabledColor",Ye(R.success.main,.55)),ee(R.Switch,"warningDisabledColor",Ye(R.warning.main,.55)),ee(R.TableCell,"border",Ye(pu(R.divider,1),.68)),ee(R.Tooltip,"bg",pu(R.grey[700],.92))}Dr(R.background,"default"),Dr(R.background,"paper"),Dr(R.common,"background"),Dr(R.common,"onBackground"),Dr(R,"divider"),Object.keys(R).forEach(q=>{const G=R[q];q!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&ee(R[q],"mainChannel",us(cs(G.main))),G.light&&ee(R[q],"lightChannel",us(cs(G.light))),G.dark&&ee(R[q],"darkChannel",us(cs(G.dark))),G.contrastText&&ee(R[q],"contrastTextChannel",us(cs(G.contrastText))),q==="text"&&(Dr(R[q],"primary"),Dr(R[q],"secondary")),q==="action"&&(G.active&&Dr(R[q],"active"),G.selected&&Dr(R[q],"selected")))})}),N=t.reduce((J,R)=>yn(J,R),N);const $={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:u,getSelector:$_(N)},{vars:j,generateThemeVars:A,generateStyleSheets:F}=ZN(N,$);return N.vars=j,Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([J,R])=>{N[J]=R}),N.generateThemeVars=A,N.generateStyleSheets=F,N.generateSpacing=function(){return Db(p.spacing,Um(this))},N.getColorSchemeSelector=e_(d),N.spacing=N.generateSpacing(),N.shouldSkipGeneratingVar=u,N.unstable_sxConfig={...Ys,...p==null?void 0:p.unstable_sxConfig},N.unstable_sx=function(R){return Gi({sx:R,theme:this})},N.toRuntimeSource=Ub,N}function Ay(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ym({...n===!0?{}:n.palette,mode:t})})}function __(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...u}=e,d=s||"light",f=a==null?void 0:a[d],p={...a,...n?{[d]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Ap(e,...t);let h=n;"palette"in e||p[d]&&(p[d]!==!0?h=p[d].palette:d==="dark"&&(h={mode:"dark"}));const y=Ap({...e,palette:h},...t);return y.defaultColorScheme=d,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},Ay(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},Ay(y,"light",p.light)),y}return!n&&!("light"in p)&&d==="light"&&(p.light=!0),N_({...u,colorSchemes:p,defaultColorScheme:d,...typeof o!="boolean"&&o},...t)}const qb=__(),Yb="$$material";function O_(){const e=TN(qb);return e[Yb]||e}function j_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Gb=e=>j_(e)&&e!=="classes",it=AN({themeId:Yb,defaultTheme:qb,rootShouldForwardProp:Gb});function A_(){return bN}const ln=GN;function $r(e){return YN(e)}function L_(e){return nr("MuiSvgIcon",e)}rr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z_=e=>{const{color:t,fontSize:n,classes:o}=e,a={root:["root",t!=="inherit"&&`color${He(t)}`,`fontSize${He(n)}`]};return Pr(a,L_,o)},D_=it("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${He(n.color)}`],t[`fontSize${He(n.fontSize)}`]]}})(ln(({theme:e})=>{var t,n,o,a,s,u,d,f,p,h,y,x,k,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:u.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var w,I;return{props:{color:S},style:{color:(I=(w=(e.vars??e).palette)==null?void 0:w[S])==null?void 0:I.main}}}),{props:{color:"action"},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:x.active}},{props:{color:"disabled"},style:{color:(C=(k=(e.vars??e).palette)==null?void 0:k.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),zp=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:u="inherit",component:d="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:y,viewBox:x="0 0 24 24",...k}=o,C=b.isValidElement(a)&&a.type==="svg",S={...o,color:u,component:d,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:x,hasSvgAsChild:C},w={};h||(w.viewBox=x);const I=z_(S);return g.jsxs(D_,{as:d,className:Ke(I.root,s),focusable:"false",color:p,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:n,...w,...k,...C&&a.props,ownerState:S,children:[C?a.props.children:a,y?g.jsx("title",{children:y}):null]})});zp.muiName="SvgIcon";function ai(e,t){function n(o,a){return g.jsx(zp,{"data-testid":void 0,ref:a,...o,children:e})}return n.muiName=zp.muiName,b.memo(b.forwardRef(n))}let Ly=0;function B_(e){const[t,n]=b.useState(e),o=e||t;return b.useEffect(()=>{t==null&&(Ly+=1,n(`mui-${Ly}`))},[t]),o}const M_={...Cs},zy=M_.useId;function F_(e){if(zy!==void 0){const t=zy();return e??t}return B_(e)}function H_(e){const{controlled:t,default:n}=e,{current:o}=b.useRef(t!==void 0),[a,s]=b.useState(n),u=o?t:a,d=b.useCallback(f=>{o||s(f)},[]);return[u,d]}function $u(e){const t=b.useRef(e);return MN(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Dp(...e){const t=b.useRef(void 0),n=b.useCallback(o=>{const a=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const u=s,d=u(o);return typeof d=="function"?d:()=>{u(null)}}return s.current=o,()=>{s.current=null}});return()=>{a.forEach(s=>s==null?void 0:s())}},e);return b.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const V_=ai(g.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),U_=ai(g.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function W_({mode:e}){const[t,n]=b.useState(!1),[o,a]=b.useState(),s=tr(),u=d=>{d==="Enter"&&(e==="TV"?s(`/home_cinema/watch_tv_shows?query=${o}`):location.href=`/home_cinema/search?term=${o}`)};return g.jsxs(b.Fragment,{children:[g.jsx(gb,{variant:"outlined",color:"neutral",onClick:()=>n(!0),children:g.jsx(V_,{})}),g.jsxs(II,{sx:{"&.MuiDrawer-content":{backgroundColor:"black !important"}},open:t,onClose:()=>n(!1),children:[g.jsxs(h3,{sx:{display:"flex",alignItems:"center",gap:.5,ml:"auto",mt:1,mr:2},children:[g.jsx(Ob,{component:"label",htmlFor:"close-icon",sx:{fontSize:"sm",fontWeight:"lg",cursor:"pointer"},children:"Close"}),g.jsx(CT,{id:"close-icon",sx:{position:"initial"}})]}),g.jsx(Pb,{onKeyUp:d=>{u(d.key)},onChange:d=>{a(d.target.value)},value:o,size:"sm",placeholder:"Search",variant:"plain",endDecorator:g.jsx(U_,{}),slotProps:{input:{"aria-label":"Search anything"}},sx:{m:3,borderRadius:0,borderBottom:"2px solid",borderColor:"neutral.outlinedBorder","&:hover":{borderColor:"neutral.outlinedHoverBorder"},"&::before":{border:"1px solid var(--Input-focusedHighlight)",transform:"scaleX(0)",left:0,right:0,bottom:"-2px",top:"unset",transition:"transform .15s cubic-bezier(0.1,0.9,0.2,1)",borderRadius:0},"&:focus-within::before":{transform:"scaleX(1)"}}}),g.jsxs(JI,{size:"lg",component:"nav",sx:{flex:"none",fontSize:"xl","& > div":{justifyContent:"center"}},children:[g.jsx(is,{sx:{fontWeight:"lg"},onClick:()=>s("/home_cinema"),children:"Home"}),g.jsx(is,{onClick:()=>s("/home_cinema/watch"),children:"Movies"}),g.jsx(is,{onClick:()=>s("/home_cinema/watch_tv_shows"),children:"TV Shows"}),g.jsxs(is,{onClick:()=>s("/home_cinema/torrents"),children:[" ","Torrents"]}),g.jsxs(is,{onClick:()=>s("/home_cinema/streams"),children:[" ","Streams"]})]})]})]})}function ia(e){const[t,n]=b.useState(!1),[o,a]=b.useState(!1),[s]=Xu(),[u,d]=b.useState(""),f=tr();b.useEffect(()=>{if(t===!0){setTimeout(()=>{a(!0)},15);return}a(!1)},[t]),b.useEffect(()=>{let h=s.get("term");h&&d(h)},[s]);const p=(h,y)=>{if(y==="Enter"){let x=document==null?void 0:document.getElementById(h).value;e.mode==="TV"?f(`/home_cinema/watch_tv_shows?query=${x}`):location.href=`/home_cinema/search?term=${x}`}};return g.jsx(g.Fragment,{children:g.jsx("div",{className:"w-full mt-10",children:g.jsxs("div",{className:"flex justify-between ps-8 pr-8 sm:ps-32 sm:pr-32 "+(t?"!justify-center":""),children:[!t&&g.jsx("a",{href:e.mode?e.mode==="Movies"?"/home_cinema/watch":"/home_cinema/watch_tv_shows":"/home_cinema/",children:g.jsx("div",{children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(De,{icon:pk,className:"lg:h-10 h-7 mt-1"}),g.jsxs("h1",{className:"lg:text-xl font-black",children:["Home Cinema",e.mode==="TV"&&g.jsx("p",{className:"text-sm font-normal p-0",children:"TV Shows"}),e.mode==="Movies"&&g.jsx("p",{className:"text-sm font-normal p-0",children:"Movies"})]}),e.mode==="TV"&&g.jsx("p",{className:"border-2 border-green-600 pr-5 ps-5 font-semibold text-green-600 rounded-full",children:"Beta"})]})})}),g.jsxs("div",{className:"flex justify-center xl:gap-20 gap-6 items-center text-base",children:[g.jsxs("a",{href:e.mode==="Movies"||!e.mode?"/home_cinema/watch_tv_shows":"/home_cinema/watch",className:"font-bold lg:block hidden",children:[e.mode==="TV"&&g.jsx(g.Fragment,{children:"Movies"}),(e.mode==="Movies"||!e.mode)&&g.jsx(g.Fragment,{children:"TV Shows"})]}),g.jsx("a",{href:"/home_cinema/streams",className:"font-bold lg:block hidden",children:"Streams"}),g.jsx("a",{href:"/home_cinema/torrents",className:"font-bold lg:block hidden",children:"Torrents"}),g.jsx("div",{className:"md:block hidden",children:g.jsx(R0,{value:u,id:"searchInp1",className:"!w-[150px]",onKeyUp:h=>p("searchInp1",h.key),onChange:h=>{d(h.value)},Icon:bk,placeholder:"Search"})}),g.jsx("div",{className:"lg:hidden",children:g.jsx(W_,{mode:e.mode})}),t&&g.jsx("div",{className:"",children:g.jsx(R0,{value:u,onChange:h=>{d(h.value)},id:"searchInp",onKeyUp:h=>p("searchInp",h.key),onClickIcon:()=>n(!1),Icon:sm,placeholder:"Search",className:"w-0 duration-300 "+(o?"!w-[225px]":"w-0")})})]})]})})})}const K_="/assets/home_img-CbOFmeaT.webp";function oi(e){return g.jsx(g.Fragment,{children:g.jsx("button",{...e,className:"bg-white rounded-full font-bold ps-10 pr-10 pt-2 pb-2 md:text-2xl md:pt-3 md:pb-3 md:ps-20 md:pr-20 text-black "+e.className,children:e.children})})}function q_(){return g.jsxs(g.Fragment,{children:[g.jsx(ia,{}),g.jsxs("div",{className:"flex justify-center xl:justify-between md:ps-32 md:pr-32 relative mt-28",children:[g.jsx("div",{className:"xl:z-30 z-10 absolute rounded-full duration-[2000ms] bg-[#000000] xl:bg-[#ffffffa9] opacity-40 xl:opacity-20 hover:opacity-15 w-[200px] h-[200px] sm:w-[500px] sm:h-[500px] blur-[253px] pointer-events-none lg:top-[75px] lg:left-[300px]"}),g.jsxs("div",{className:"z-20 md:mt-[15%] mt-[30%] translate-y-[-30%]",children:[g.jsxs("h1",{className:"md:text-7xl text-5xl font-black text-white",children:["Watch Movies ",g.jsx("br",{})," In Your Home"]}),g.jsxs("div",{className:"flex gap-5 mt-16",children:[g.jsx(oi,{className:"sm:text-lg text-sm",onClick:()=>{location.href="/home_cinema/watch"},children:"Movies"}),g.jsx(oi,{onClick:()=>{location.href="/home_cinema/watch_tv_shows"},className:"!bg-transparent border-4 text-white border-white sm:text-lg text-sm",children:"TV Shows"})]})]}),g.jsx("div",{className:"md:mr-10 xl:relative sm:left-auto sm:top-auto z-0 left-0 top-20 absolute",children:g.jsx("img",{src:K_,className:"h-[588px]",alt:""})})]})]})}function Xb(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y_}=Object.prototype,{getPrototypeOf:Gm}=Object,Pc=(e=>t=>{const n=Y_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),or=e=>(e=e.toLowerCase(),t=>Pc(t)===e),$c=e=>t=>typeof t===e,{isArray:aa}=Array,js=$c("undefined");function G_(e){return e!==null&&!js(e)&&e.constructor!==null&&!js(e.constructor)&&xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jb=or("ArrayBuffer");function X_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jb(e.buffer),t}const J_=$c("string"),xn=$c("function"),Qb=$c("number"),Rc=e=>e!==null&&typeof e=="object",Q_=e=>e===!0||e===!1,Ru=e=>{if(Pc(e)!=="object")return!1;const t=Gm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Z_=or("Date"),eO=or("File"),tO=or("Blob"),nO=or("FileList"),rO=e=>Rc(e)&&xn(e.pipe),oO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xn(e.append)&&((t=Pc(e))==="formdata"||t==="object"&&xn(e.toString)&&e.toString()==="[object FormData]"))},iO=or("URLSearchParams"),[aO,sO,lO,uO]=["ReadableStream","Request","Response","Headers"].map(or),cO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),aa(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;let d;for(o=0;o<u;o++)d=s[o],t.call(null,e[d],d,e)}}function Zb(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,a;for(;o-- >0;)if(a=n[o],t===a.toLowerCase())return a;return null}const Ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,e2=e=>!js(e)&&e!==Ko;function Bp(){const{caseless:e}=e2(this)&&this||{},t={},n=(o,a)=>{const s=e&&Zb(t,a)||a;Ru(t[s])&&Ru(o)?t[s]=Bp(t[s],o):Ru(o)?t[s]=Bp({},o):aa(o)?t[s]=o.slice():t[s]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&Gs(arguments[o],n);return t}const dO=(e,t,n,{allOwnKeys:o}={})=>(Gs(t,(a,s)=>{n&&xn(a)?e[s]=Xb(a,n):e[s]=a},{allOwnKeys:o}),e),fO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pO=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mO=(e,t,n,o)=>{let a,s,u;const d={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)u=a[s],(!o||o(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=n!==!1&&Gm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},gO=e=>{if(!e)return null;if(aa(e))return e;let t=e.length;if(!Qb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gm(Uint8Array)),yO=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=o.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},xO=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},bO=or("HTMLFormElement"),SO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,a){return o.toUpperCase()+a}),Dy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),CO=or("RegExp"),t2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Gs(n,(a,s)=>{let u;(u=t(a,s,e))!==!1&&(o[s]=u||a)}),Object.defineProperties(e,o)},wO=e=>{t2(e,(t,n)=>{if(xn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(xn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kO=(e,t)=>{const n={},o=a=>{a.forEach(s=>{n[s]=!0})};return aa(e)?o(e):o(String(e).split(t)),n},EO=()=>{},PO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $O(e){return!!(e&&xn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const RO=e=>{const t=new Array(10),n=(o,a)=>{if(Rc(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[a]=o;const s=aa(o)?[]:{};return Gs(o,(u,d)=>{const f=n(u,a+1);!js(f)&&(s[d]=f)}),t[a]=void 0,s}}return o};return n(e,0)},IO=or("AsyncFunction"),TO=e=>e&&(Rc(e)||xn(e))&&xn(e.then)&&xn(e.catch),n2=((e,t)=>e?setImmediate:t?((n,o)=>(Ko.addEventListener("message",({source:a,data:s})=>{a===Ko&&s===n&&o.length&&o.shift()()},!1),a=>{o.push(a),Ko.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xn(Ko.postMessage)),NO=typeof queueMicrotask<"u"?queueMicrotask.bind(Ko):typeof process<"u"&&process.nextTick||n2,X={isArray:aa,isArrayBuffer:Jb,isBuffer:G_,isFormData:oO,isArrayBufferView:X_,isString:J_,isNumber:Qb,isBoolean:Q_,isObject:Rc,isPlainObject:Ru,isReadableStream:aO,isRequest:sO,isResponse:lO,isHeaders:uO,isUndefined:js,isDate:Z_,isFile:eO,isBlob:tO,isRegExp:CO,isFunction:xn,isStream:rO,isURLSearchParams:iO,isTypedArray:vO,isFileList:nO,forEach:Gs,merge:Bp,extend:dO,trim:cO,stripBOM:fO,inherits:pO,toFlatObject:mO,kindOf:Pc,kindOfTest:or,endsWith:hO,toArray:gO,forEachEntry:yO,matchAll:xO,isHTMLForm:bO,hasOwnProperty:Dy,hasOwnProp:Dy,reduceDescriptors:t2,freezeMethods:wO,toObjectSet:kO,toCamelCase:SO,noop:EO,toFiniteNumber:PO,findKey:Zb,global:Ko,isContextDefined:e2,isSpecCompliantForm:$O,toJSONObject:RO,isAsyncFn:IO,isThenable:TO,setImmediate:n2,asap:NO};function Re(e,t,n,o,a){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),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}X.inherits(Re,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const r2=Re.prototype,o2={};["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=>{o2[e]={value:e}});Object.defineProperties(Re,o2);Object.defineProperty(r2,"isAxiosError",{value:!0});Re.from=(e,t,n,o,a,s)=>{const u=Object.create(r2);return X.toFlatObject(e,u,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Re.call(u,e.message,t,n,o,a),u.cause=e,u.name=e.name,s&&Object.assign(u,s),u};const _O=null;function Mp(e){return X.isPlainObject(e)||X.isArray(e)}function i2(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function By(e,t,n){return e?e.concat(t).map(function(a,s){return a=i2(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function OO(e){return X.isArray(e)&&!e.some(Mp)}const jO=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Ic(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!X.isUndefined(w[S])});const o=n.metaTokens,a=n.visitor||h,s=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(a))throw new TypeError("visitor must be a function");function p(C){if(C===null)return"";if(X.isDate(C))return C.toISOString();if(!f&&X.isBlob(C))throw new Re("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(C)||X.isTypedArray(C)?f&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let I=C;if(C&&!w&&typeof C=="object"){if(X.endsWith(S,"{}"))S=o?S:S.slice(0,-2),C=JSON.stringify(C);else if(X.isArray(C)&&OO(C)||(X.isFileList(C)||X.endsWith(S,"[]"))&&(I=X.toArray(C)))return S=i2(S),I.forEach(function(E,N){!(X.isUndefined(E)||E===null)&&t.append(u===!0?By([S],N,s):u===null?S:S+"[]",p(E))}),!1}return Mp(C)?!0:(t.append(By(w,S,s),p(C)),!1)}const y=[],x=Object.assign(jO,{defaultVisitor:h,convertValue:p,isVisitable:Mp});function k(C,S){if(!X.isUndefined(C)){if(y.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));y.push(C),X.forEach(C,function(I,T){(!(X.isUndefined(I)||I===null)&&a.call(t,I,X.isString(T)?T.trim():T,S,x))===!0&&k(I,S?S.concat(T):[T])}),y.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return k(e),t}function My(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Xm(e,t){this._pairs=[],e&&Ic(e,this,t)}const a2=Xm.prototype;a2.append=function(t,n){this._pairs.push([t,n])};a2.toString=function(t){const n=t?function(o){return t.call(this,o,My)}:My;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function AO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s2(e,t,n){if(!t)return e;const o=n&&n.encode||AO;X.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=X.isURLSearchParams(t)?t.toString():new Xm(t,n).toString(o),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Fy{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(o){o!==null&&t(o)})}}const l2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},LO=typeof URLSearchParams<"u"?URLSearchParams:Xm,zO=typeof FormData<"u"?FormData:null,DO=typeof Blob<"u"?Blob:null,BO={isBrowser:!0,classes:{URLSearchParams:LO,FormData:zO,Blob:DO},protocols:["http","https","file","blob","url","data"]},Jm=typeof window<"u"&&typeof document<"u",Fp=typeof navigator=="object"&&navigator||void 0,MO=Jm&&(!Fp||["ReactNative","NativeScript","NS"].indexOf(Fp.product)<0),FO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HO=Jm&&window.location.href||"http://localhost",VO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jm,hasStandardBrowserEnv:MO,hasStandardBrowserWebWorkerEnv:FO,navigator:Fp,origin:HO},Symbol.toStringTag,{value:"Module"})),Vt={...VO,...BO};function UO(e,t){return Ic(e,new Vt.classes.URLSearchParams,Object.assign({visitor:function(n,o,a,s){return Vt.isNode&&X.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function WO(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function KO(e){const t={},n=Object.keys(e);let o;const a=n.length;let s;for(o=0;o<a;o++)s=n[o],t[s]=e[s];return t}function u2(e){function t(n,o,a,s){let u=n[s++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=s>=n.length;return u=!u&&X.isArray(a)?a.length:u,f?(X.hasOwnProp(a,u)?a[u]=[a[u],o]:a[u]=o,!d):((!a[u]||!X.isObject(a[u]))&&(a[u]=[]),t(n,o,a[u],s)&&X.isArray(a[u])&&(a[u]=KO(a[u])),!d)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(o,a)=>{t(WO(o),a,n,0)}),n}return null}function qO(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Xs={transitional:l2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",a=o.indexOf("application/json")>-1,s=X.isObject(t);if(s&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return a?JSON.stringify(u2(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return UO(t,this.formSerializer).toString();if((d=X.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ic(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),qO(t)):t}],transformResponse:[function(t){const n=this.transitional||Xs.transitional,o=n&&n.forcedJSONParsing,a=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(o&&!this.responseType||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Re.from(d,Re.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{Xs.headers[e]={}});const YO=X.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"]),GO=e=>{const t={};let n,o,a;return e&&e.split(`
641
- `).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),o=u.substring(a+1).trim(),!(!n||t[n]&&YO[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Hy=Symbol("internals");function ss(e){return e&&String(e).trim().toLowerCase()}function Iu(e){return e===!1||e==null?e:X.isArray(e)?e.map(Iu):String(e)}function XO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const JO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kf(e,t,n,o,a){if(X.isFunction(o))return o.call(this,t,n);if(a&&(t=n),!!X.isString(t)){if(X.isString(o))return t.indexOf(o)!==-1;if(X.isRegExp(o))return o.test(t)}}function QO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function ZO(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(a,s,u){return this[o].call(this,t,a,s,u)},configurable:!0})})}let an=class{constructor(t){t&&this.set(t)}set(t,n,o){const a=this;function s(d,f,p){const h=ss(f);if(!h)throw new Error("header name must be a non-empty string");const y=X.findKey(a,h);(!y||a[y]===void 0||p===!0||p===void 0&&a[y]!==!1)&&(a[y||f]=Iu(d))}const u=(d,f)=>X.forEach(d,(p,h)=>s(p,h,f));if(X.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(X.isString(t)&&(t=t.trim())&&!JO(t))u(GO(t),n);else if(X.isHeaders(t))for(const[d,f]of t.entries())s(f,d,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=ss(t),t){const o=X.findKey(this,t);if(o){const a=this[o];if(!n)return a;if(n===!0)return XO(a);if(X.isFunction(n))return n.call(this,a,o);if(X.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ss(t),t){const o=X.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Kf(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let a=!1;function s(u){if(u=ss(u),u){const d=X.findKey(o,u);d&&(!n||Kf(o,o[d],d,n))&&(delete o[d],a=!0)}}return X.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let o=n.length,a=!1;for(;o--;){const s=n[o];(!t||Kf(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,o={};return X.forEach(this,(a,s)=>{const u=X.findKey(o,s);if(u){n[u]=Iu(a),delete n[s];return}const d=t?QO(s):String(s).trim();d!==s&&delete n[s],n[d]=Iu(a),o[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(o,a)=>{o!=null&&o!==!1&&(n[a]=t&&X.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
642
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(a=>o.set(a)),o}static accessor(t){const o=(this[Hy]=this[Hy]={accessors:{}}).accessors,a=this.prototype;function s(u){const d=ss(u);o[d]||(ZO(a,u),o[d]=!0)}return X.isArray(t)?t.forEach(s):s(t),this}};an.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(an.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});X.freezeMethods(an);function qf(e,t){const n=this||Xs,o=t||n,a=an.from(o.headers);let s=o.data;return X.forEach(e,function(d){s=d.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function c2(e){return!!(e&&e.__CANCEL__)}function sa(e,t,n){Re.call(this,e??"canceled",Re.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(sa,Re,{__CANCEL__:!0});function d2(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Re("Request failed with status code "+n.status,[Re.ERR_BAD_REQUEST,Re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ej(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tj(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a=0,s=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),h=o[s];u||(u=p),n[a]=f,o[a]=p;let y=s,x=0;for(;y!==a;)x+=n[y++],y=y%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),p-u<t)return;const k=h&&p-h;return k?Math.round(x*1e3/k):void 0}}function nj(e,t){let n=0,o=1e3/t,a,s;const u=(p,h=Date.now())=>{n=h,a=null,s&&(clearTimeout(s),s=null),e.apply(null,p)};return[(...p)=>{const h=Date.now(),y=h-n;y>=o?u(p,h):(a=p,s||(s=setTimeout(()=>{s=null,u(a)},o-y)))},()=>a&&u(a)]}const Hu=(e,t,n=3)=>{let o=0;const a=tj(50,250);return nj(s=>{const u=s.loaded,d=s.lengthComputable?s.total:void 0,f=u-o,p=a(f),h=u<=d;o=u;const y={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&h?(d-u)/p:void 0,event:s,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},n)},Vy=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Uy=e=>(...t)=>X.asap(()=>e(...t)),rj=Vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,oj=Vt.hasStandardBrowserEnv?{write(e,t,n,o,a,s){const u=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),X.isString(o)&&u.push("path="+o),X.isString(a)&&u.push("domain="+a),s===!0&&u.push("secure"),document.cookie=u.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 ij(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function f2(e,t,n){let o=!ij(t);return e&&(o||n==!1)?aj(e,t):t}const Wy=e=>e instanceof an?{...e}:e;function ii(e,t){t=t||{};const n={};function o(p,h,y,x){return X.isPlainObject(p)&&X.isPlainObject(h)?X.merge.call({caseless:x},p,h):X.isPlainObject(h)?X.merge({},h):X.isArray(h)?h.slice():h}function a(p,h,y,x){if(X.isUndefined(h)){if(!X.isUndefined(p))return o(void 0,p,y,x)}else return o(p,h,y,x)}function s(p,h){if(!X.isUndefined(h))return o(void 0,h)}function u(p,h){if(X.isUndefined(h)){if(!X.isUndefined(p))return o(void 0,p)}else return o(void 0,h)}function d(p,h,y){if(y in t)return o(p,h);if(y in e)return o(void 0,p)}const f={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,h,y)=>a(Wy(p),Wy(h),y,!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(h){const y=f[h]||a,x=y(e[h],t[h],h);X.isUndefined(x)&&y!==d||(n[h]=x)}),n}const p2=e=>{const t=ii({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:s,headers:u,auth:d}=t;t.headers=u=an.from(u),t.url=s2(f2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(X.isFormData(n)){if(Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...h]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...h].join("; "))}}if(Vt.hasStandardBrowserEnv&&(o&&X.isFunction(o)&&(o=o(t)),o||o!==!1&&rj(t.url))){const p=a&&s&&oj.read(s);p&&u.set(a,p)}return t},sj=typeof XMLHttpRequest<"u",lj=sj&&function(e){return new Promise(function(n,o){const a=p2(e);let s=a.data;const u=an.from(a.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=a,h,y,x,k,C;function S(){k&&k(),C&&C(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,!0),w.timeout=a.timeout;function I(){if(!w)return;const E=an.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),$={data:!d||d==="text"||d==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:E,config:e,request:w};d2(function(A){n(A),S()},function(A){o(A),S()},$),w=null}"onloadend"in w?w.onloadend=I:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(I)},w.onabort=function(){w&&(o(new Re("Request aborted",Re.ECONNABORTED,e,w)),w=null)},w.onerror=function(){o(new Re("Network Error",Re.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const $=a.transitional||l2;a.timeoutErrorMessage&&(N=a.timeoutErrorMessage),o(new Re(N,$.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,w)),w=null},s===void 0&&u.setContentType(null),"setRequestHeader"in w&&X.forEach(u.toJSON(),function(N,$){w.setRequestHeader($,N)}),X.isUndefined(a.withCredentials)||(w.withCredentials=!!a.withCredentials),d&&d!=="json"&&(w.responseType=a.responseType),p&&([x,C]=Hu(p,!0),w.addEventListener("progress",x)),f&&w.upload&&([y,k]=Hu(f),w.upload.addEventListener("progress",y),w.upload.addEventListener("loadend",k)),(a.cancelToken||a.signal)&&(h=E=>{w&&(o(!E||E.type?new sa(null,e,w):E),w.abort(),w=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const T=ej(a.url);if(T&&Vt.protocols.indexOf(T)===-1){o(new Re("Unsupported protocol "+T+":",Re.ERR_BAD_REQUEST,e));return}w.send(s||null)})},uj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,a;const s=function(p){if(!a){a=!0,d();const h=p instanceof Error?p:this.reason;o.abort(h instanceof Re?h:new sa(h instanceof Error?h.message:h))}};let u=t&&setTimeout(()=>{u=null,s(new Re(`timeout ${t} of ms exceeded`,Re.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:f}=o;return f.unsubscribe=()=>X.asap(d),f}},cj=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,a;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},dj=async function*(e,t){for await(const n of fj(e))yield*cj(n,t)},fj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},Ky=(e,t,n,o)=>{const a=dj(e,t);let s=0,u,d=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:h}=await a.next();if(p){d(),f.close();return}let y=h.byteLength;if(n){let x=s+=y;n(x)}f.enqueue(new Uint8Array(h))}catch(p){throw d(p),p}},cancel(f){return d(f),a.return()}},{highWaterMark:2})},Tc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",m2=Tc&&typeof ReadableStream=="function",pj=Tc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),h2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mj=m2&&h2(()=>{let e=!1;const t=new Request(Vt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qy=64*1024,Hp=m2&&h2(()=>X.isReadableStream(new Response("").body)),Vu={stream:Hp&&(e=>e.body)};Tc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vu[t]&&(Vu[t]=X.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new Re(`Response type '${t}' is not supported`,Re.ERR_NOT_SUPPORT,o)})})})(new Response);const hj=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e))return(await new Request(Vt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(X.isArrayBufferView(e)||X.isArrayBuffer(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e=e+""),X.isString(e))return(await pj(e)).byteLength},gj=async(e,t)=>{const n=X.toFiniteNumber(e.getContentLength());return n??hj(t)},vj=Tc&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:s,timeout:u,onDownloadProgress:d,onUploadProgress:f,responseType:p,headers:h,withCredentials:y="same-origin",fetchOptions:x}=p2(e);p=p?(p+"").toLowerCase():"text";let k=uj([a,s&&s.toAbortSignal()],u),C;const S=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let w;try{if(f&&mj&&n!=="get"&&n!=="head"&&(w=await gj(h,o))!==0){let $=new Request(t,{method:"POST",body:o,duplex:"half"}),j;if(X.isFormData(o)&&(j=$.headers.get("content-type"))&&h.setContentType(j),$.body){const[A,F]=Vy(w,Hu(Uy(f)));o=Ky($.body,qy,A,F)}}X.isString(y)||(y=y?"include":"omit");const I="credentials"in Request.prototype;C=new Request(t,{...x,signal:k,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:I?y:void 0});let T=await fetch(C);const E=Hp&&(p==="stream"||p==="response");if(Hp&&(d||E&&S)){const $={};["status","statusText","headers"].forEach(J=>{$[J]=T[J]});const j=X.toFiniteNumber(T.headers.get("content-length")),[A,F]=d&&Vy(j,Hu(Uy(d),!0))||[];T=new Response(Ky(T.body,qy,A,()=>{F&&F(),S&&S()}),$)}p=p||"text";let N=await Vu[X.findKey(Vu,p)||"text"](T,e);return!E&&S&&S(),await new Promise(($,j)=>{d2($,j,{data:N,headers:an.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:C})})}catch(I){throw S&&S(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new Re("Network Error",Re.ERR_NETWORK,e,C),{cause:I.cause||I}):Re.from(I,I&&I.code,e,C)}}),Vp={http:_O,xhr:lj,fetch:vj};X.forEach(Vp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yy=e=>`- ${e}`,yj=e=>X.isFunction(e)||e===null||e===!1,g2={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let s=0;s<t;s++){n=e[s];let u;if(o=n,!yj(n)&&(o=Vp[(u=String(n)).toLowerCase()],o===void 0))throw new Re(`Unknown adapter '${u}'`);if(o)break;a[u||"#"+s]=o}if(!o){const s=Object.entries(a).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?s.length>1?`since :
643
- `+s.map(Yy).join(`
644
- `):" "+Yy(s[0]):"as no adapter specified";throw new Re("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:Vp};function Yf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sa(null,e)}function Gy(e){return Yf(e),e.headers=an.from(e.headers),e.data=qf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),g2.getAdapter(e.adapter||Xs.adapter)(e).then(function(o){return Yf(e),o.data=qf.call(e,e.transformResponse,o),o.headers=an.from(o.headers),o},function(o){return c2(o)||(Yf(e),o&&o.response&&(o.response.data=qf.call(e,e.transformResponse,o.response),o.response.headers=an.from(o.response.headers))),Promise.reject(o)})}const v2="1.8.4",Nc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nc[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Xy={};Nc.transitional=function(t,n,o){function a(s,u){return"[Axios v"+v2+"] Transitional option '"+s+"'"+u+(o?". "+o:"")}return(s,u,d)=>{if(t===!1)throw new Re(a(u," has been removed"+(n?" in "+n:"")),Re.ERR_DEPRECATED);return n&&!Xy[u]&&(Xy[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,u,d):!0}};Nc.spelling=function(t){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function xj(e,t,n){if(typeof e!="object")throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const s=o[a],u=t[s];if(u){const d=e[s],f=d===void 0||u(d,s,e);if(f!==!0)throw new Re("option "+s+" must be "+f,Re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Re("Unknown option "+s,Re.ERR_BAD_OPTION)}}const Tu={assertOptions:xj,validators:Nc},pr=Tu.validators;let Xo=class{constructor(t){this.defaults=t,this.interceptors={request:new Fy,response:new Fy}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
645
- `+s):o.stack=s}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ii(this.defaults,n);const{transitional:o,paramsSerializer:a,headers:s}=n;o!==void 0&&Tu.assertOptions(o,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean)},!1),a!=null&&(X.isFunction(a)?n.paramsSerializer={serialize:a}:Tu.assertOptions(a,{encode:pr.function,serialize:pr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Tu.assertOptions(n,{baseUrl:pr.spelling("baseURL"),withXsrfToken:pr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&X.merge(s.common,s[n.method]);s&&X.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),n.headers=an.concat(u,s);const d=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,d.unshift(S.fulfilled,S.rejected))});const p=[];this.interceptors.response.forEach(function(S){p.push(S.fulfilled,S.rejected)});let h,y=0,x;if(!f){const C=[Gy.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,p),x=C.length,h=Promise.resolve(n);y<x;)h=h.then(C[y++],C[y++]);return h}x=d.length;let k=n;for(y=0;y<x;){const C=d[y++],S=d[y++];try{k=C(k)}catch(w){S.call(this,w);break}}try{h=Gy.call(this,k)}catch(C){return Promise.reject(C)}for(y=0,x=p.length;y<x;)h=h.then(p[y++],p[y++]);return h}getUri(t){t=ii(this.defaults,t);const n=f2(t.baseURL,t.url,t.allowAbsoluteUrls);return s2(n,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Xo.prototype[t]=function(n,o){return this.request(ii(o||{},{method:t,url:n,data:(o||{}).data}))}});X.forEach(["post","put","patch"],function(t){function n(o){return function(s,u,d){return this.request(ii(d||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}Xo.prototype[t]=n(),Xo.prototype[t+"Form"]=n(!0)});let bj=class y2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(a=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](a);o._listeners=null}),this.promise.then=a=>{let s;const u=new Promise(d=>{o.subscribe(d),s=d}).then(a);return u.cancel=function(){o.unsubscribe(s)},u},t(function(s,u,d){o.reason||(o.reason=new sa(s,u,d),n(o.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=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new y2(function(a){t=a}),cancel:t}}};function Sj(e){return function(n){return e.apply(null,n)}}function Cj(e){return X.isObject(e)&&e.isAxiosError===!0}const Up={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(Up).forEach(([e,t])=>{Up[t]=e});function x2(e){const t=new Xo(e),n=Xb(Xo.prototype.request,t);return X.extend(n,Xo.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return x2(ii(e,a))},n}const Ue=x2(Xs);Ue.Axios=Xo;Ue.CanceledError=sa;Ue.CancelToken=bj;Ue.isCancel=c2;Ue.VERSION=v2;Ue.toFormData=Ic;Ue.AxiosError=Re;Ue.Cancel=Ue.CanceledError;Ue.all=function(t){return Promise.all(t)};Ue.spread=Sj;Ue.isAxiosError=Cj;Ue.mergeConfig=ii;Ue.AxiosHeaders=an;Ue.formToJSON=e=>u2(X.isHTMLForm(e)?new FormData(e):e);Ue.getAdapter=g2.getAdapter;Ue.HttpStatusCode=Up;Ue.default=Ue;const{Axios:jL,AxiosError:b2,CanceledError:AL,isCancel:LL,CancelToken:zL,VERSION:DL,all:BL,Cancel:ML,isAxiosError:FL,spread:HL,toFormData:VL,AxiosHeaders:UL,HttpStatusCode:WL,formToJSON:KL,getAdapter:qL,mergeConfig:YL}=Ue,wj=" https://yts.lt/api/v2/list_movies.json";function ds(e){e.fetchWhenCall===void 0&&(e.fetchWhenCall=!0);const[t,n]=b.useState(),[o,a]=b.useState(),[s,u]=b.useState(!0),d=async p=>{const h=await Ue.get(p);if(h.status==200&&h.data.status==="ok"){if(h.data.data.movie_count==0){a("movie not found :(");return}let y=h.data.data.movies;n([]);for(let x of y)n(k=>{const C={id:x.id,title:x.title,year:x.year,rating:x.rating,runtime:x.runtime,medium_cover_image:x.medium_cover_image};return k?[...k,C]:[C]})}else a(h.data.error)},f=p=>{const h=new URL(wj);if(p)for(let y of p)h.searchParams.set(y[0],y[1]);d(h.href).catch(y=>{typeof y.err=="string"?a(y.err):a("unexpected error while getting movies list")}).finally(()=>{u(!1)})};return e.fetchWhenCall&&b.useEffect(()=>{f(e.queries)},[]),{resp:t,isLoading:s,err:o,fetch:f}}/*!
646
- * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
647
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
648
- * Copyright 2025 Fonticons, Inc.
649
- */var S2={prefix:"far",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 64C0 28.7 28.7 0 64 0L320 0c35.3 0 64 28.7 64 64l0 417.1c0 25.6-28.5 40.8-49.8 26.6L192 412.8 49.8 507.7C28.5 521.9 0 506.6 0 481.1L0 64zM64 48c-8.8 0-16 7.2-16 16l0 387.2 117.4-78.2c16.1-10.7 37.1-10.7 53.2 0L336 451.2 336 64c0-8.8-7.2-16-16-16L64 48z"]};const Wp=(e,t)=>t.some(n=>e instanceof n);let Jy,Qy;function kj(){return Jy||(Jy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ej(){return Qy||(Qy=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Kp=new WeakMap,Gf=new WeakMap,_c=new WeakMap;function Pj(e){const t=new Promise((n,o)=>{const a=()=>{e.removeEventListener("success",s),e.removeEventListener("error",u)},s=()=>{n(Jo(e.result)),a()},u=()=>{o(e.error),a()};e.addEventListener("success",s),e.addEventListener("error",u)});return _c.set(t,e),t}function $j(e){if(Kp.has(e))return;const t=new Promise((n,o)=>{const a=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",u),e.removeEventListener("abort",u)},s=()=>{n(),a()},u=()=>{o(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",s),e.addEventListener("error",u),e.addEventListener("abort",u)});Kp.set(e,t)}let qp={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Kp.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Jo(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function C2(e){qp=e(qp)}function Rj(e){return Ej().includes(e)?function(...t){return e.apply(Yp(this),t),Jo(this.request)}:function(...t){return Jo(e.apply(Yp(this),t))}}function Ij(e){return typeof e=="function"?Rj(e):(e instanceof IDBTransaction&&$j(e),Wp(e,kj())?new Proxy(e,qp):e)}function Jo(e){if(e instanceof IDBRequest)return Pj(e);if(Gf.has(e))return Gf.get(e);const t=Ij(e);return t!==e&&(Gf.set(e,t),_c.set(t,e)),t}const Yp=e=>_c.get(e);function Tj(e,t,{blocked:n,upgrade:o,blocking:a,terminated:s}={}){const u=indexedDB.open(e,t),d=Jo(u);return o&&u.addEventListener("upgradeneeded",f=>{o(Jo(u.result),f.oldVersion,f.newVersion,Jo(u.transaction),f)}),n&&u.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),d.then(f=>{s&&f.addEventListener("close",()=>s()),a&&f.addEventListener("versionchange",p=>a(p.oldVersion,p.newVersion,p))}).catch(()=>{}),d}const Nj=["get","getKey","getAll","getAllKeys","count"],_j=["put","add","delete","clear"],Xf=new Map;function Zy(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Xf.get(t))return Xf.get(t);const n=t.replace(/FromIndex$/,""),o=t!==n,a=_j.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!(a||Nj.includes(n)))return;const s=async function(u,...d){const f=this.transaction(u,a?"readwrite":"readonly");let p=f.store;return o&&(p=p.index(d.shift())),(await Promise.all([p[n](...d),a&&f.done]))[0]};return Xf.set(t,s),s}C2(e=>({...e,get:(t,n,o)=>Zy(t,n)||e.get(t,n,o),has:(t,n)=>!!Zy(t,n)||e.has(t,n)}));const Oj=["continue","continuePrimaryKey","advance"],e1={},Gp=new WeakMap,w2=new WeakMap,jj={get(e,t){if(!Oj.includes(t))return e[t];let n=e1[t];return n||(n=e1[t]=function(...o){Gp.set(this,w2.get(this)[t](...o))}),n}};async function*Aj(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,jj);for(w2.set(n,t),_c.set(n,Yp(t));t;)yield n,t=await(Gp.get(n)||t.continue()),Gp.delete(n)}function t1(e,t){return t===Symbol.asyncIterator&&Wp(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Wp(e,[IDBIndex,IDBObjectStore])}C2(e=>({...e,get(t,n,o){return t1(t,n)?Aj:e.get(t,n,o)},has(t,n){return t1(t,n)||e.has(t,n)}}));const Ro=Tj("user-data",1,{upgrade(e){e.createObjectStore("saved_movies",{keyPath:"id"}),e.createObjectStore("saved_tvshows",{keyPath:"id"})}});async function k2(e){(await Ro).put("saved_movies",e)}async function Lj(){return await(await Ro).getAll("saved_movies")}async function E2(e){return await(await Ro).get("saved_movies",e)}async function P2(e){await(await Ro).delete("saved_movies",e)}async function $2(e){(await Ro).put("saved_tvshows",e)}async function zj(){return await(await Ro).getAll("saved_tvshows")}async function Qm(e){return await(await Ro).get("saved_tvshows",e)}async function R2(e){await(await Ro).delete("saved_tvshows",e)}function la({m:e,loading:t,to:n}){const[o,a]=b.useState(!1);return b.useEffect(()=>{e!=null&&e.id&&E2(e.id).then(s=>{s&&a(!0)})},[]),g.jsxs(g.Fragment,{children:[!t&&e&&g.jsx("div",{className:"lg:w-[230px] rounded-xl overflow-hidden w-[115px] h-[172px] relative lg:h-[345px] shrink-0 cursor-pointer",style:{backgroundImage:`url("${e.medium_cover_image}")`,backgroundSize:"cover"},children:g.jsxs("div",{className:"w-full h-full backdrop-blur-sm opacity-0 hover:opacity-100 relative pt-10 bg-[#0000009c] duration-300",children:[g.jsx(Oc,{saved:o,className:"!absolute top-2 left-2",onClick:async()=>{o?(await P2(e.id),a(!1)):(await k2(e),a(!0))}}),g.jsxs("div",{onClick:()=>{location.href=n||"/home_cinema/watch/"+e.id},children:[g.jsx("h1",{className:"text-center text-sm lg:text-lg mt-5 font-bold lg:overflow-auto overflow-hidden text-nowrap lg:text-wrap",children:e.title}),g.jsxs("div",{className:"flex flex-col-reverse gap-2 md:mt-5 justify-center",children:[g.jsxs("h1",{className:"font-extrabold text-center text-sm lg:text-lg",children:[e.rating," / 10"," "]})," ",g.jsx(De,{icon:hk,className:"h-3 lg:h-5"})]}),g.jsxs("div",{className:"flex justify-center items-center gap-1 mt-5",children:[g.jsx(De,{icon:mk,className:"h-3 lg:h-5"}),g.jsxs("h1",{className:"text-sm lg:text-lg",children:[e.runtime," min"]})]})]})]})}),t&&g.jsx("div",{className:"lg:w-[230px] w-[115px] h-[172px] relative lg:h-[345px] shrink-0 loading-background"})]})}function Oc({onClick:e,className:t,saved:n}){return g.jsxs("div",{onClick:e,className:"relative border-2 cursor-pointer duration-200 rounded-full w-8 h-8 flex justify-center items-center "+t+(n?" border-yellow-500 pop-animation":" border-white"),children:[g.jsx("div",{className:`${n?"w-5":"w-0"} h-[2px] duration-150 top-[13px] absolute rounded-full rotate-[30deg] bg-yellow-500`}),g.jsx(De,{icon:S2,color:`${n?"#eab308":"white"}`})]})}function Dj(){const[e,t]=b.useState(!1),n=tr();return g.jsx(g.Fragment,{children:g.jsxs("div",{onClick:()=>n("/home_cinema/saved"),className:"lg:w-[230px] bg-[#080808] overflow-visible rounded-xl w-[115px] h-[172px] relative lg:h-[345px] shrink-0 cursor-pointer",children:[g.jsx("div",{className:"w-full absolute !z-10 h-full rounded-full blur-3xl duration-300 "+(e?"bg-[#212121e4]":"bg-[#141414cb]")}),g.jsxs("div",{onMouseOver:()=>t(!0),onMouseLeave:()=>t(!1),className:"flex h-full z-20 opacity-60 hover:opacity-100 duration-300 relative justify-center items-center flex-col",children:[g.jsx("div",{className:"border-2 border-white rounded-full md:w-20 md:h-20 w-10 h-10 flex justify-center items-center",children:g.jsx(De,{icon:S2,className:"md:h-10 h-5"})}),g.jsx("h1",{className:"mt-3 md:text-lg text-[12px] font-bold",children:"See more saved"})]})]})})}function jc(){let e=[];for(let t=0;t<5;t++)e.push(g.jsx(la,{loading:!0},t));return e}function Jf({isLoading:e,err:t,resp:n,category:o,listID:a}){return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"md:ps-28 md:pe-28 ps-10 pr-10",children:[g.jsx("h1",{className:"font-extrabold text-xl md:text-4xl mb-10 md:mb-20 mt-7 md:mt-20",children:o}),e&&!t&&g.jsx(Uu,{listID:"",children:jc()}),!e&&!t&&n&&g.jsx(Uu,{listID:a,children:g.jsx(g.Fragment,{children:n.map((s,u)=>g.jsx(la,{m:s},u))})})]})})}function Uu({children:e,listID:t}){return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"relative overflow-visible md:ps-10",children:[g.jsx("div",{onClick:()=>{let n=document.getElementById(t);n==null||n.scroll({left:n.scrollLeft-300})},className:"absolute hidden md:block w-fit left-[-40px] cursor-pointer top-[50%] translate-y-[-50%] bg-[#444] p-5 z-30 rounded-md",children:g.jsx(De,{icon:vk,className:"text-white"})}),g.jsx("div",{onClick:()=>{let n=document.getElementById(t);n==null||n.scroll({left:n.scrollLeft+300})},className:"absolute hidden md:block w-fit right-[-40px] cursor-pointer top-[50%] translate-y-[-50%] bg-[#444] p-5 z-30 rounded-md",children:g.jsx(De,{icon:yk,className:"text-white"})}),g.jsx("div",{id:t,className:"flex gap-8 lg:gap-16 overflow-x-scroll whitespace-nowrap horz-list relative",children:e})]})})}function Bj({isLoading:e,err:t,resp:n,category:o,listID:a,endComponent:s}){const u=()=>{if(!n)return[];const d=[],f=3;for(let p=0;p<=f&&p<n.length;p++)d.push(g.jsx(la,{m:n[p]},p)),(p==f||p==n.length-1)&&d.push(s);return d};return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"md:ps-28 md:pe-28 ps-10 pr-10 rounded-md",children:[g.jsx("h1",{className:"font-extrabold text-xl md:text-4xl mb-10 md:mb-20 mt-7 md:mt-20",children:o}),e&&!t&&g.jsx(Uu,{listID:"",children:jc()}),!e&&!t&&n&&g.jsx(Uu,{listID:a,children:g.jsx(g.Fragment,{children:u()})})]})})}function I2(){const[e,t]=b.useState();return b.useEffect(()=>{Lj().then(n=>{t(n)})},[]),e}function Mj(){const e=I2(),{resp:t,err:n,isLoading:o}=ds({queries:[["sort_by","like_count"]]}),{resp:a,err:s,isLoading:u}=ds({queries:[["sort_by","date_added"]]}),{resp:d,err:f,isLoading:p}=ds({queries:[["genre","Action"],["sort_by","rating"]]}),{resp:h,err:y,isLoading:x}=ds({queries:[["sort_by","download_count"]]});return g.jsxs(g.Fragment,{children:[g.jsx(ia,{mode:"Movies"}),n&&g.jsxs("div",{className:"bg-[#ff38384f] rounded-md border-2 border-red-600 p-4 flex items-center gap-3",children:[g.jsx(De,{icon:Ck}),g.jsxs("h1",{children:[" ",n," "]})]}),e&&e.length>0&&g.jsx(Bj,{resp:e,err:"",isLoading:!1,listID:"saved-mv",category:"Saved Movies",endComponent:g.jsx(Dj,{})}),g.jsx(Jf,{resp:t,err:n,isLoading:o,listID:"best",category:"Best Movies"}),g.jsx(Jf,{resp:a,err:s,isLoading:u,listID:"new",category:"New Movies"}),g.jsx(Jf,{resp:d,err:f,isLoading:p,listID:"action",category:"Action"}),g.jsxs("div",{className:"md:ps-28 md:pe-28 ps-2",children:[g.jsx("h1",{className:"font-extrabold text-xl md:text-4xl mb-10 md:mb-20 mt-7 md:mt-20",children:"Movies you may like"}),g.jsx("div",{className:"flex flex-wrap justify-center gap-7 md:gap-16 lg:mt-20 ",children:!x&&!y&&g.jsx(g.Fragment,{children:h==null?void 0:h.map((k,C)=>g.jsx(la,{m:k},C))})})]})]})}function Fj(){const[e]=Xu(),[t]=b.useState(""),{resp:n,err:o,isLoading:a,fetch:s}=ds({queries:[["query_term",t]],fetchWhenCall:!1});return b.useEffect(()=>{let u=e.get("term");u||(u=""),s([["query_term",u],["sort_by","like_count"]])},[e]),g.jsxs(g.Fragment,{children:[g.jsx(ia,{mode:"Movies"}),g.jsxs("div",{className:"md:ps-28 md:pe-28 ps-3 pr-3 mt-10 md:mt-20 mb-20",children:[g.jsx("h1",{className:"md:text-4xl text-xl mb-10 md:mb-20 font-extrabold",children:"Search results"}),o&&g.jsxs("h1",{className:"text-red-500",children:["Error when searching : ",o]}),a&&!o&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex gap-5 justify-center",children:[" ",jc()," "]})}),!a&&!o&&g.jsx(g.Fragment,{children:g.jsx("div",{className:"flex gap-4 md:gap-16 flex-wrap justify-center",children:n==null?void 0:n.map((u,d)=>g.jsx(la,{m:u},d))})})]})]})}const Hj=" https://yts.lt/api/v2/movie_details.json";function Vj(e){const[t,n]=b.useState(),[o,a]=b.useState(),[s,u]=b.useState(!0),d=async p=>{const h=await Ue.get(p);if(h.status===200&&h.data.status==="ok"){let y=h.data.data.movie;n(y)}else{if(h.data.error==="error"){a(h.data.status_message);return}a("unexpected error while getting movie details")}},f=()=>{u(!0);const p=new URL(Hj);p.searchParams.set("movie_id",e),d(p.href).catch(h=>{a(h)}).finally(()=>u(!1))};return b.useEffect(()=>{f()},[]),{resp:t,err:o,isLoading:s,fetch:f}}function Uj(){const e=Yu(),{resp:t,isLoading:n}=Vj(e.id);return g.jsx(Wj,{resp:t,isLoading:n})}function Wj({resp:e,isLoading:t}){var f;const[n,o]=b.useState(!1),a=p=>`/home_cinema/torrents/${p}/files?about=${e==null?void 0:e.url}`,[s,u]=b.useState(!1);b.useEffect(()=>{e!=null&&e.id&&E2(e.id).then(p=>{p&&u(!0)})},[e]);const d=tr();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"lg:ps-28 lg:pr-28 ps-8 pr-8 md:mt-20 mt-10",children:[g.jsx("div",{className:"md:mb-20 mb-10 cursor-pointer",onClick:()=>{d(-1)},children:g.jsx(De,{className:"h-8",icon:am})}),g.jsxs("div",{className:"flex items-center md:items-start flex-col-reverse md:flex-row md:gap-16 flex-wrap md:justify-start justify-center md:flex-nowrap",children:[g.jsx("div",{className:"blur-[100px] absolute z-0",children:g.jsx("img",{src:e==null?void 0:e.medium_cover_image,alt:""})}),g.jsx("div",{className:"z-20 h-[345px] w-[230px] rounded-lg md:relative absolute top-[30%]"+(t?" loading-background relative":""),style:{backgroundImage:`url(${e==null?void 0:e.medium_cover_image})`,backgroundSize:"cover"},children:g.jsx("div",{className:"rounded-lg bg-gradient-to-t from-[#000000] to-[#00000091] w-full h-full z-30 block md:hidden"})}),g.jsxs("div",{className:"lg:text-lg flex flex-col gap-3 z-20",children:[g.jsxs("h1",{className:"text-3xl font-extrabold"+(t?" loading-background w-20":""),children:[e==null?void 0:e.title," ",e!=null&&e.year?`(${e.year})`:""]}),g.jsx(Oc,{onClick:async()=>{if(!s&&e)await k2({id:e==null?void 0:e.id,title:e==null?void 0:e.title,year:e.year,rating:e.rating,medium_cover_image:e.medium_cover_image,runtime:e.runtime.toString()}),u(!0);else{if(!e)return;await P2(e==null?void 0:e.id),u(!1)}},saved:s}),g.jsxs("p",{className:t?" loading-background w-10":"",children:["Genres : ",(f=e==null?void 0:e.genres)==null?void 0:f.join(" / ")]}),g.jsxs("div",{className:"flex gap-5 flex-wrap",children:[g.jsx("p",{children:"Available in : "}),e==null?void 0:e.torrents.map((p,h)=>g.jsx("div",{className:"lg:text-base text-sm h-fit border-[1px] border-white ps-2 pr-2 cursor-pointer",onClick:()=>{p.quality==="2160p"&&(location.href=a(p.hash)),location.href=a(p.hash)},children:g.jsxs("p",{className:p.quality==="2160p"?"text-yellow-500":"",children:[p.quality,"",p.video_codec==="x265"?g.jsxs("span",{className:"text-green-600",children:[".",p.video_codec]}):"",p.type!="bluray"?"."+p.type:""]})},h))]}),g.jsxs("p",{children:["Rating : ",e==null?void 0:e.rating]}),g.jsxs("p",{children:["Duration : ",Math.floor((e==null?void 0:e.runtime)/60),"h"," ",(e==null?void 0:e.runtime)-Math.floor((e==null?void 0:e.runtime)/60)*60,"min"]}),g.jsxs("div",{className:"flex gap-5",children:[g.jsx(oi,{className:"md:text-xl text-lg",onClick:()=>{o(!n)},children:"Watch"}),g.jsx(oi,{onClick:()=>{location.href="https://www.youtube.com/watch?v="+(e==null?void 0:e.yt_trailer_code)},className:"md:text-xl text-lg",children:"Trailer"})]})]})]})]}),n&&g.jsxs(g.Fragment,{children:[g.jsx("div",{onClick:()=>o(!1),className:"w-full h-full bg-[#000000c0] absolute z-40 top-0 left-0"}),g.jsxs("div",{className:"h-[80vh] xl:w-auto w-[90%] overflow-y-scroll fixed p-3 md:p-10 bg-[#0f0f0f] top-[50%] z-50 left-[50%] translate-x-[-50%] translate-y-[-50%] rounded-md border-2 border-white",children:[g.jsx("div",{className:"ms-3 mb-5 mt-5 cursor-pointer",onClick:()=>{o(!1)},children:g.jsx(De,{icon:sm})}),e==null?void 0:e.torrents.map((p,h)=>g.jsxs("div",{className:"grid grid-cols-12 items-center mb-5 gap-3 hover:bg-[#b4b4b43e] p-3 duration-100 rounded-md cursor-pointer",children:[g.jsxs("div",{className:"col-span-9",onClick:()=>{location.href=a(p.hash)},children:[g.jsx("h1",{className:"text-2xl col-span-6",children:p.quality}),g.jsxs("h3",{className:"col-span-3",children:[p.type,"",p.video_codec==="x265"?g.jsxs("span",{className:"text-green-600",children:[".",p.video_codec]}):""]})]}),g.jsx("div",{className:"flex gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:g.jsx("h6",{className:"col-span-1 text-sm",children:p.size})})]},h))]})]})]})}function Kj(){return g.jsx(g.Fragment,{children:g.jsx("h1",{className:"text-xl font-bold",children:"Sorry this page is deleted. You can use an external video player to play the video."})})}function qj(e){const[t,n]=b.useState(),[o,a]=b.useState(),[s,u]=b.useState(!1),d=async p=>{const h=new URL("/api/tv_shows",location.origin);return h.searchParams.set("page",p),(await Ue.get(h.href)).data};return{resp:t,err:o,isLoading:s,fetch:()=>{u(!0),d(e.page).then(p=>{n(p)}).catch(p=>{var h;if(p instanceof b2){a((h=p.response)==null?void 0:h.data.error);return}a(p.message)}).finally(()=>{u(!1)})}}}function Wu({show:e,to:t}){const n=tr(),[o,a]=b.useState(!1);return b.useEffect(()=>{Qm(e.id).then(s=>{s&&a(!0)})},[]),g.jsx("div",{style:{backgroundImage:`url("https://media.themoviedb.org/t/p/w300_and_h450_bestv2${e.poster_path})`},className:"lg:w-[230px] duration-500 ease-out tv_show w-[115px] h-[172px] relative lg:h-[345px] shrink-0 cursor-pointer rounded-md",children:g.jsxs("div",{className:" opacity-0 hover:opacity-100 duration-300 bg-[#000000a3] flex items-center h-full justify-center",children:[g.jsx(Oc,{onClick:async()=>{o?(await R2(e.id),a(!1)):(await $2(e),a(!0))},saved:o,className:"!absolute md:top-2 top-0 left-0 md:left-2 md:!scale-100 scale-75"}),g.jsxs("div",{onClick:()=>{n(t||"/home_cinema/tv_shows/"+e.id)},className:"flex mt-7 flex-col gap-5 h-full items-center justify-center",children:[g.jsx("h1",{className:"text-center font-bold md:text-base text-sm lg:text-xl",children:e.name}),g.jsxs("h3",{className:"lg:text-base text-center",children:["Date : ",e.first_air_date]}),g.jsxs("h3",{children:["Rating : ",e.vote_average]})]})]})})}async function ua(){return(await Ue.get("/api/config")).data}const Yj="/api/tv_shows/search/";function Gj(){const[e,t]=b.useState(),[n,o]=b.useState(!1),[a,s]=b.useState(),u=async(f,p)=>{await ua();const h=new URL(Yj,location.origin);return h.searchParams.set("query",f),h.searchParams.set("page",p),(await Ue.get(h.href)).data};return{resp:e,isLoading:n,err:a,fetch:(f,p)=>{o(!0),u(f,p).then(h=>{t(h)}).catch(h=>{s(h)}).finally(()=>{o(!1)})}}}function Uo({page:e,focus:t,setSearchParams:n,query:o}){return g.jsx("div",{onClick:()=>{n([["page",e],["query",o||""]])},className:"rounded-full text-black w-7 h-7 flex items-center justify-center cursor-pointer "+(t?"bg-white":""),children:g.jsx("h1",{className:"text-center font-bold "+(t?"text-black":"text-white"),children:e})})}function Xj({page:e,setSearchParams:t,pageCount:n,query:o}){return g.jsxs("div",{className:"flex justify-center gap-1 mt-3",children:[g.jsx("button",{className:"mr-3",onClick:()=>{+e-1<1||t([["page",`${+e-1}`],["query",o||""]])},children:"Previous"}),+e-60>0&&g.jsxs(g.Fragment,{children:[g.jsx(Uo,{query:o,setSearchParams:t,page:`${+e-60}`}),g.jsx("h1",{children:"..."})]}),+e-2>0&&g.jsx(Uo,{query:o,setSearchParams:t,page:`${+e-2}`}),+e-1>0&&g.jsx(Uo,{query:o,setSearchParams:t,page:`${+e-1}`}),g.jsx(Uo,{query:o,setSearchParams:t,page:e,focus:!0}),+e+1<=(n||500)&&g.jsx(g.Fragment,{children:g.jsx(Uo,{query:o,setSearchParams:t,page:`${+e+1}`})}),+e+2<=(n||500)&&g.jsx(g.Fragment,{children:g.jsx(Uo,{query:o,setSearchParams:t,page:`${+e+2}`})}),+e+60<=(n||500)&&g.jsxs(g.Fragment,{children:[g.jsx("h1",{children:"..."}),g.jsx(Uo,{query:o,setSearchParams:t,page:`${+e+60}`})]}),g.jsx("button",{className:"ms-3",onClick:()=>{+e+1>(n||500)||t([["page",`${+e+1}`],["query",o||""]])},children:"Next"})]})}function Jj(){const[e,t]=Xu(),{resp:n,isLoading:o,err:a,fetch:s}=qj({page:e.get("page")}),{resp:u,isLoading:d,err:f,fetch:p}=Gj();return b.useEffect(()=>{e.get("page")},[e]),b.useEffect(()=>{let h=e.get("query");if(h){console.log(h);let y=e.get("page");p(h,y||"1")}else s()},[e]),g.jsxs(g.Fragment,{children:[g.jsx(ia,{mode:"TV"}),g.jsxs("div",{className:"md:ps-28 md:pe-28 ps-5 pr-5",children:[g.jsx("h1",{className:"md:text-3xl text-xl font-extrabold mt-10 mb-10",children:"TV Shows"}),g.jsxs("div",{className:"flex justify-center gap-10 flex-wrap",children:[!u&&(n==null?void 0:n.results.map((h,y)=>g.jsx(Wu,{show:h},y))),u&&(u==null?void 0:u.results.map((h,y)=>g.jsx(Wu,{show:h},y)))]}),g.jsx("div",{className:"mt-5 mb-5",children:g.jsx(Xj,{setSearchParams:t,page:e.get("page")||"1",pageCount:n?n.total_pages:u==null?void 0:u.total_pages,query:e.get("query")||""})}),(o||d)&&!a&&g.jsx("div",{className:"flex justify-center gap-10 flex-wrap",children:jc()}),a&&g.jsx("div",{className:"w-full h-screen",children:g.jsx("div",{className:"bg-red-600 p-5 border-2 border-red-700",children:g.jsx("h1",{children:a})})}),f&&g.jsx("div",{className:"w-full h-screen",children:g.jsx("div",{className:"bg-red-600 p-5 border-2 border-red-700",children:g.jsxs("h1",{children:["error when searching : ",a]})})})]})]})}function Qj(e){const[t,n]=b.useState(),[o,a]=b.useState(),[s,u]=b.useState(!0),d=async f=>{const p=new URL("/api/tv_shows/"+f,location.origin);return(await Ue.get(p.href)).data};return b.useEffect(()=>{u(!0),d(e).then(f=>{n(f)}).catch(f=>{var p;if(f instanceof b2){a((p=f.response)==null?void 0:p.data.error);return}a(f.message)}).finally(()=>{u(!1)})},[]),{resp:t,err:o,isLoading:s}}function Zj(e){return Cn("MuiButton",e)}const n1=un("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),eA=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],tA=e=>{const{color:t,disabled:n,focusVisible:o,focusVisibleClassName:a,fullWidth:s,size:u,variant:d,loading:f}=e,p={root:["root",n&&"disabled",o&&"focusVisible",s&&"fullWidth",d&&`variant${je(d)}`,t&&`color${je(t)}`,u&&`size${je(u)}`,f&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},h=wn(p,Zj,{});return o&&a&&(h.root+=` ${a}`),h},nA=Ie("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),rA=Ie("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),oA=Ie("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var n,o;return O({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(n=e.variants[t.variant])==null||(n=n[t.color])==null?void 0:n.color},t.disabled&&{color:(o=e.variants[`${t.variant}Disabled`])==null||(o=o[t.color])==null?void 0:o.color})}),iA=({theme:e,ownerState:t})=>{var n,o,a,s;return[O({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon},t.size==="sm"&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},t.size==="md"&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},t.size==="lg"&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:e.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:e.vars.lineHeight.md},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),O({},(n=e.variants[t.variant])==null?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":(o=e.variants[`${t.variant}Hover`])==null?void 0:o[t.color]},'&:active, &[aria-pressed="true"]':(a=e.variants[`${t.variant}Active`])==null?void 0:a[t.color],[`&.${n1.disabled}`]:(s=e.variants[`${t.variant}Disabled`])==null?void 0:s[t.color]},t.loadingPosition==="center"&&{[`&.${n1.loading}`]:{color:"transparent"}})]},aA=Ie("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(iA),qo=b.forwardRef(function(t,n){var o;const a=Hn({props:t,name:"JoyButton"}),{children:s,action:u,color:d="primary",variant:f="solid",size:p="md",fullWidth:h=!1,startDecorator:y,endDecorator:x,loading:k=!1,loadingPosition:C="center",loadingIndicator:S,disabled:w,component:I,slots:T={},slotProps:E={}}=a,N=Le(a,eA),$=b.useContext(Zx),j=b.useContext(eb),A=t.variant||$.variant||f,F=t.size||$.size||p,J=t.color||$.color||d,R=(o=t.loading||t.disabled)!=null?o:$.disabled||k||w,M=b.useRef(null),q=ra(M,n),{focusVisible:G,setFocusVisible:ne,getRootProps:Q}=oa(O({},a,{disabled:R,rootRef:q})),B=S??g.jsx(mb,{color:J,thickness:{sm:2,md:3,lg:4}[F]||3});b.useImperativeHandle(u,()=>({focusVisible:()=>{var xe;ne(!0),(xe=M.current)==null||xe.focus()}}),[ne]);const V=O({},a,{color:J,fullWidth:h,variant:A,size:F,focusVisible:G,loading:k,loadingPosition:C,disabled:R}),U=tA(V),te=xe=>{var Ne;let at=a.onClick;if(typeof E.root=="function"?at=E.root(V).onClick:E.root&&(at=E.root.onClick),(Ne=at)==null||Ne(xe),j){var vt;(vt=j.onClick)==null||vt.call(j,xe,a.value)}};let ae=a["aria-pressed"];typeof E.root=="function"?ae=E.root(V)["aria-pressed"]:E.root&&(ae=E.root["aria-pressed"]),j!=null&&j.value&&(Array.isArray(j.value)?ae=j.value.indexOf(a.value)!==-1:ae=j.value===a.value);const z=O({},N,{component:I,slots:T,slotProps:E}),[K,me]=Fe("root",{ref:n,className:U.root,elementType:aA,externalForwardedProps:z,getSlotProps:Q,ownerState:V,additionalProps:{onClick:te,"aria-pressed":ae}}),[he,de]=Fe("startDecorator",{className:U.startDecorator,elementType:nA,externalForwardedProps:z,ownerState:V}),[ve,oe]=Fe("endDecorator",{className:U.endDecorator,elementType:rA,externalForwardedProps:z,ownerState:V}),[Z,ce]=Fe("loadingIndicatorCenter",{className:U.loadingIndicatorCenter,elementType:oA,externalForwardedProps:z,ownerState:V});return g.jsxs(K,O({},me,{children:[(y||k&&C==="start")&&g.jsx(he,O({},de,{children:k&&C==="start"?B:y})),s,k&&C==="center"&&g.jsx(Z,O({},ce,{children:B})),(x||k&&C==="end")&&g.jsx(ve,O({},oe,{children:k&&C==="end"?B:x}))]}))});qo.muiName="Button";const sA="/api/search";function lA(){const[e,t]=b.useState(),[n,o]=b.useState(!1),[a,s]=b.useState(),u=async(f,p)=>{const h=await ua(),y=new URL(sA,h["torrent-streamer-api"].external?h["torrent-streamer-api"].origin:location.origin);y.searchParams.set("query",f),y.searchParams.set("limit",`${p}`),await new Promise((x,k)=>{const C=new EventSource(y.href);C.onmessage=S=>{try{const w=JSON.parse(S.data);t(I=>I?[...I,w]:[w])}catch(w){console.error("Failed to parse JSON:",w)}},C.onerror=S=>{console.error("EventSource failed:",S),C.close(),k(S)},C.addEventListener("close",S=>{console.log("Server sent close event:",S.data),x(),C.close()})})};return{resp:e,isLoading:n,err:a,fetch:(f,p)=>{o(!0),s(void 0),t(void 0),u(f,p).catch(h=>{s(h)}).finally(()=>{o(!1)})}}}const uA=jb(g.jsx("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold");function cA(e){return Cn("MuiSelect",e)}const Hi=un("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded","multiple"]),T2=b.createContext(void 0);function dA(e,t){let n=t,o=e;return e==="outlined"&&(n="neutral",o="plain"),e==="plain"&&(n="neutral"),{variant:o,color:n}}function fA(e,t,n=!1){const o=b.useContext(T2),[a,s]=typeof o=="string"?o.split(":"):[],u=dA(a||void 0,s||void 0);return u.variant=e||u.variant,u.color=t||(n?s:u.color),u}function pA({children:e,color:t,variant:n}){return g.jsx(T2.Provider,{value:`${n||""}:${t||""}`,children:e})}var r1;const mA=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","multiple","slots","slotProps"];function hA(e){var t;return Array.isArray(e)?g.jsx(b.Fragment,{children:e.map(n=>n.label).join(", ")}):(t=e==null?void 0:e.label)!=null?t:""}const gA=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],vA=e=>{const{color:t,disabled:n,focusVisible:o,size:a,variant:s,open:u,multiple:d}=e,f={root:["root",n&&"disabled",o&&"focusVisible",u&&"expanded",s&&`variant${je(s)}`,t&&`color${je(t)}`,a&&`size${je(a)}`,d&&"multiple"],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",u&&"expanded"],listbox:["listbox",u&&"expanded",n&&"disabled"]};return wn(f,cA,{})},yA=Ie("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,o,a,s,u;const d=(n=e.variants[`${t.variant}`])==null?void 0:n[t.color],{borderRadius:f}=$b({theme:e,ownerState:t},["borderRadius"]);return[O({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness,"--Select-focusedHighlight":(o=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:o[500],'&:not([data-inverted-colors="false"])':O({},t.instanceColor&&{"--_Select-focusedHighlight":(a=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:a[500]},{"--Select-focusedHighlight":e.vars.palette.focusVisible}),"--Select-indicatorColor":d!=null&&d.backgroundColor?d==null?void 0:d.color:e.vars.palette.text.tertiary},t.size==="sm"&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},t.size==="md"&&{"--Select-minHeight":"2.25rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(1.75rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Select-minHeight":"2.75rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(d!=null&&d.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:{sm:2,md:3,lg:4}[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],d,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${Hi.focusVisible}`]:{"--Select-indicatorColor":d==null?void 0:d.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${Hi.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":(s=e.variants[`${t.variant}Hover`])==null?void 0:s[t.color],[`&.${Hi.disabled}`]:(u=e.variants[`${t.variant}Disabled`])==null?void 0:u[t.color]},f!==void 0&&{"--Select-radius":f}]}),xA=Ie("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>O({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(e.value===null||e.value===void 0)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),bA=Ie(Nb,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var n;const o=(n=e.variants[t.variant])==null?void 0:n[t.color];return O({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(o==null?void 0:o.backgroundColor)||(o==null?void 0:o.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},KI,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(o!=null&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),SA=Ie("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),CA=Ie("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),wA=Ie("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>O({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.lg},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.xl},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${Hi.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${Hi.expanded}, .${Hi.disabled} > &`]:{"--Icon-color":"currentColor"}})),Qf=b.forwardRef(function(t,n){var o,a,s,u,d,f,p;const h=Hn({props:t,name:"JoySelect"}),y=h,{action:x,autoFocus:k,children:C,defaultValue:S,defaultListboxOpen:w=!1,disabled:I,getSerializedValue:T,placeholder:E,listboxId:N,listboxOpen:$,onChange:j,onListboxOpenChange:A,onClose:F,renderValue:J,required:R=!1,value:M,size:q="md",variant:G="outlined",color:ne="neutral",startDecorator:Q,endDecorator:B,indicator:V=r1||(r1=g.jsx(uA,{})),"aria-describedby":U,"aria-label":te,"aria-labelledby":ae,id:z,name:K,multiple:me=!1,slots:he={},slotProps:de={}}=y,ve=Le(y,mA),oe=b.useContext(Eb),Z=(o=(a=t.disabled)!=null?a:oe==null?void 0:oe.disabled)!=null?o:I,ce=(s=(u=t.size)!=null?u:oe==null?void 0:oe.size)!=null?s:q,xe=(d=t.color)!=null?d:oe!=null&&oe.error?"danger":(f=oe==null?void 0:oe.color)!=null?f:ne,Ne=J??hA,[at,vt]=b.useState(null),It=b.useRef(null),kn=b.useRef(null),Un=ra(n,It);b.useImperativeHandle(x,()=>({focusVisible:()=>{var Et;(Et=kn.current)==null||Et.focus()}}),[]),b.useEffect(()=>{vt(It.current)},[]),b.useEffect(()=>{k&&kn.current.focus()},[k]);const Tt=b.useCallback(Et=>{A==null||A(Et),Et||F==null||F()},[F,A]),{buttonActive:Yt,buttonFocusVisible:Wn,contextValue:yt,disabled:Nt,getButtonProps:Pe,getListboxProps:Rr,getHiddenInputProps:ir,getOptionMetadata:Kn,open:ar,value:_t}=rI({buttonRef:kn,defaultOpen:w,defaultValue:S,disabled:Z,getSerializedValue:T,listboxId:N,multiple:me,name:K,required:R,onChange:j,onOpenChange:Tt,open:$,value:M}),St=O({},h,{active:Yt,defaultListboxOpen:w,disabled:Nt,focusVisible:Wn,open:ar,renderValue:Ne,value:_t,size:ce,variant:G,color:xe}),En=vA(St),Gt=O({},ve,{slots:he,slotProps:de}),Pn=b.useMemo(()=>{let Et;if(me)Et=_t.map(Io=>Kn(Io)).filter(Io=>Io!==void 0);else{var ha;Et=(ha=Kn(_t))!=null?ha:null}return Et},[Kn,_t,me]),[fe,be]=Fe("root",{ref:Un,className:En.root,elementType:yA,externalForwardedProps:Gt,ownerState:St}),[Te,Ct]=Fe("button",{additionalProps:{"aria-describedby":U??(oe==null?void 0:oe["aria-describedby"]),"aria-label":te,"aria-labelledby":ae??(oe==null?void 0:oe.labelId),"aria-required":R?"true":void 0,id:z??(oe==null?void 0:oe.htmlFor),name:K},className:En.button,elementType:xA,externalForwardedProps:Gt,getSlotProps:Pe,ownerState:St}),[ca,Ir]=Fe("listbox",{additionalProps:{anchorEl:at,open:ar,placement:"bottom",keepMounted:!0},className:En.listbox,elementType:bA,externalForwardedProps:Gt,getSlotProps:Rr,ownerState:O({},St,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:Et=>({size:Et.size||ce,variant:Et.variant||G,color:Et.color||(Et.disablePortal?xe:ne),disableColorInversion:!Et.disablePortal})}),[da,fa]=Fe("startDecorator",{className:En.startDecorator,elementType:SA,externalForwardedProps:Gt,ownerState:St}),[pa,Yr]=Fe("endDecorator",{className:En.endDecorator,elementType:CA,externalForwardedProps:Gt,ownerState:St}),[Gr,Js]=Fe("indicator",{className:En.indicator,elementType:wA,externalForwardedProps:Gt,ownerState:St}),Qs=b.useMemo(()=>[...gA,...Ir.modifiers||[]],[Ir.modifiers]);let ma=E;return(Array.isArray(Pn)&&Pn.length>0||!Array.isArray(Pn)&&Pn)&&(ma=Ne(Pn)),g.jsxs(b.Fragment,{children:[g.jsxs(fe,O({},be,{children:[Q&&g.jsx(da,O({},fa,{children:Q})),g.jsx(Te,O({},Ct,{children:ma})),B&&g.jsx(pa,O({},Yr,{children:B})),V&&g.jsx(Gr,O({},Js,{children:V})),g.jsx("input",O({},ir()))]})),at&&g.jsx(ca,O({},Ir,{className:Ke(Ir.className),modifiers:Qs},!((p=h.slots)!=null&&p.listbox)&&{as:Z4,slots:{root:Ir.as||"ul"}},{children:g.jsx(oI,{value:yt,children:g.jsx(pA,{variant:G,color:ne,children:g.jsx(Ib.Provider,{value:"select",children:g.jsx(Tb,{nested:!0,children:C})})})})}))]})});function kA(e){return Cn("MuiOption",e)}const EA=un("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]),PA=["component","children","disabled","value","label","variant","color","slots","slotProps"],$A=e=>{const{disabled:t,highlighted:n,selected:o}=e;return wn({root:["root",t&&"disabled",n&&"highlighted",o&&"selected"]},kA,{})},RA=Ie(_b,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;const o=(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color];return{[`&.${EA.highlighted}:not([aria-selected="true"])`]:{backgroundColor:o==null?void 0:o.backgroundColor}}}),IA=b.memo(b.forwardRef(function(t,n){var o;const a=Hn({props:t,name:"JoyOption"}),{component:s="li",children:u,disabled:d=!1,value:f,label:p,variant:h="plain",color:y="neutral",slots:x={},slotProps:k={}}=a,C=Le(a,PA),S=b.useContext(Fm),{variant:w=h,color:I=y}=fA(t.variant,t.color),T=b.useRef(null),E=ra(T,n),N=p??(typeof u=="string"?u:(o=T.current)==null?void 0:o.innerText),{getRootProps:$,selected:j,highlighted:A,index:F}=LR({disabled:d,label:N,value:f,rootRef:E}),J=O({},a,{disabled:d,selected:j,highlighted:A,index:F,component:s,variant:w,color:I,row:S}),R=$A(J),M=O({},C,{component:s,slots:x,slotProps:k}),[q,G]=Fe("root",{ref:n,getSlotProps:$,elementType:RA,externalForwardedProps:M,className:R.root,ownerState:J});return g.jsx(q,O({},G,{children:u}))})),fs=b.forwardRef(function(t,n){const{contextValue:o}=zR(t.value);return g.jsx(gc.Provider,{value:o,children:g.jsx(IA,O({},t,{ref:n}))})});function TA(e){const t=new URL(e),o=new URLSearchParams(t.search).get("xt");return o&&o.startsWith("urn:btih:")?o.replace("urn:btih:",""):null}function NA(e){const{resp:t,err:n,isLoading:o,fetch:a}=lA(),[s,u]=b.useState(),[d,f]=b.useState(),[p,h]=b.useState(10),y=tr(),[x,k]=b.useState(!1);b.useEffect(()=>{Qm(e.id).then(S=>{S&&k(!0)})},[]);const C=()=>{var w,I;(w=document.getElementById("season"))==null||w.value,(I=document.getElementById("ep"))==null||I.value;let S=`${e.name}`;s&&(S+=` S0${s}`),d&&(S+=`E0${d}`),a(S,p)};return b.useEffect(()=>{let S=document.getElementById("season");S&&(S.onchange=()=>{u(S.value)})},[t]),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"lg:flex gap-20 relative",children:[g.jsx("div",{className:"cursor-pointer z-[100]",onClick:()=>{y(-1)},children:g.jsx(De,{icon:am,className:"h-7 mb-5"})}),g.jsxs("div",{className:"lg:z-10 left-[50%] lg:top-0 top-[20%] lg:left-0 lg:translate-x-0 translate-x-[-50%] z-[-10] lg:relative w-fit absolute min-w-[300px] min-h-[450px] rounded-md",children:[g.jsx("div",{className:"rounded-md overflow-hidden w-fit",children:g.jsx("img",{className:"w-[300px] h-[450px]",src:`https://media.themoviedb.org/t/p/w300_and_h450_bestv2${e.poster_path}`})}),g.jsx("div",{className:"rounded-lg absolute top-0 bg-gradient-to-t from-[#000000] to-[#00000086] w-full h-full z-30 block lg:hidden"}),g.jsx("div",{className:"blur-[100px] opacity-50 absolute z-[-10] top-[-50px]",children:g.jsx("img",{src:`https://media.themoviedb.org/t/p/w300_and_h450_bestv2${e.poster_path}`,alt:""})})]}),g.jsxs("div",{className:"z-10 mb-10",children:[g.jsx("h1",{className:"text-4xl font-extrabold",children:e.name}),g.jsx(Oc,{onClick:async()=>{x?(await R2(e.id),k(!1)):(await $2({id:e==null?void 0:e.id,name:e==null?void 0:e.name,vote_average:e.vote_average,backdrop_path:e.backdrop_path,genre_ids:[],origin_country:e.origin_country,poster_path:e.poster_path,first_air_date:e.first_air_date}),k(!0))},saved:x}),g.jsxs("h1",{className:"text-xl font-semibold mt-3",children:[e.seasons.length," Season",e.seasons.length>1?"s":""]}),g.jsxs("h1",{className:"text-lg mt-2",children:["Genres :"," ",e.genres.map((S,w)=>w===e.genres.length-1?S.name:S.name+" / ")]}),g.jsxs("h1",{className:"text-lg",children:["Rating :",e.vote_average]}),g.jsx("p",{className:"mt-7 text-base md:text-lg",children:e.overview}),g.jsxs("div",{className:"flex flex-wrap",children:[g.jsxs("div",{children:[g.jsx("p",{className:"mt-5",children:"Season "}),g.jsxs(Qf,{onChange:(S,w)=>{typeof w=="number"&&(w==0&&f(0),u(w))},placeholder:"Choose one…",name:"",id:"season",className:" mr-2 !bg-[#151515] !text-white after:bg-black !w-[150px]",sx:{padding:0,paddingLeft:"10px"},children:[g.jsx(fs,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:0,children:"any"}),e.seasons.map((S,w)=>{if(S.name!=="Specials")return g.jsx(fs,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:S.season_number,children:S.name},w)})]})]}),g.jsxs("div",{children:[g.jsx("p",{className:"mt-5",children:"Episode "}),g.jsxs(Qf,{disabled:!s,onChange:(S,w)=>{typeof w=="number"&&f(w)},placeholder:"Choose one…",name:"",id:"ep",className:"mr-2 !bg-[#151515] !text-white after:bg-black !w-[150px]",sx:{padding:0,paddingLeft:"10px","&.Mui-disabled":{backgroundColor:"#000 !important",color:"#797979 !important",border:"2px solid #ccc"}},children:[g.jsx(fs,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:0,children:"any"}),s&&e.seasons.map(S=>{if(S.season_number===s){let w=[];for(let I=1;I<S.episode_count+1;I++)w.push(g.jsxs(fs,{value:I,className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",children:["episode ",I]},I));return w}})]})]}),g.jsxs("div",{children:[g.jsx("p",{className:"mt-5",children:"Search Limit"}),g.jsx(Qf,{onChange:(S,w)=>{typeof w=="number"&&h(w)},className:" mr-2 !bg-[#151515] !text-white after:bg-black !w-[150px]",sx:{padding:0,paddingLeft:"10px"},name:"",defaultValue:10,placeholder:10,id:"limit",children:OA()})]})]}),g.jsx(qo,{loading:o,color:"neutral",onClick:C,className:"!text-base !pr-7 !ps-7 !pt-2 !pb-2 !mt-3",children:"Search"})]})]}),g.jsxs("div",{children:[!o&&t&&g.jsxs(g.Fragment,{children:[g.jsx("h1",{className:"text-2xl font-bold mb-5",children:"Torrents Found"}),g.jsxs("div",{className:"lg:p-5 font-bold gap-5 grid md:grid-cols-11 grid-cols-10 lg:grid-cols-12 rounded-md lg:text-base text-sm ",children:[g.jsx("h1",{className:"col-span-7 text-center",children:"Name"}),g.jsx("h1",{className:"col-span-1 text-center sm:block hidden",children:"seeders"}),g.jsx("h1",{className:"col-span-1 text-center sm:block hidden",children:"leechers"}),g.jsx("h1",{className:"col-span-1 text-center sm:hidden block",children:"S"}),g.jsx("h1",{className:"col-span-1 text-center sm:hidden block",children:"L"}),g.jsx("h1",{className:"col-span-1 text-center md:block hidden",children:"Provider"}),g.jsx("h1",{className:"col-span-1 text-center lg:block hidden",children:"torrent page"})]}),g.jsx(Ai,{filter:"720p",torrents:t}),g.jsx(Ai,{filter:"1080p",torrents:t}),g.jsx(Ai,{filter:"2060p",torrents:t}),g.jsx(Ai,{filter:"4k",torrents:t}),g.jsx(Ai,{filter:"h264",torrents:t}),g.jsx(Ai,{filter:"h265",torrents:t}),t.length===0&&g.jsx("h1",{children:"No Torrents Found :("})]}),n&&!t&&g.jsx("h1",{className:"text-red-600",children:"Error when searching for torrents"})]})]})}function _A({t:e}){return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"lg:p-5 lg:text-base text-sm p-2 gap-5 grid md:grid-cols-11 grid-cols-10 lg:grid-cols-12 hover:bg-[#50505059] rounded-md duration-200",children:[g.jsx("a",{href:`/home_cinema/torrents/${TA(e.magnetURI)}/files?about=${e.url}&seeds=${e.seeders}&leechers=${e.leechers}`,className:"col-span-7 hover:underline cursor-pointer break-words",children:e.name}),g.jsx("p",{className:"col-span-1 text-center",children:e.seeders}),g.jsx("p",{className:"col-span-1 text-center",children:e.leechers}),g.jsx("p",{className:"col-span-1 text-center md:block hidden",children:e.provider}),g.jsx("a",{className:"col-span-1 text-center lg:block hidden",target:"_blank",href:e.url,children:g.jsx(De,{icon:gk})})]})})}function Ai({torrents:e,filter:t}){return g.jsxs(g.Fragment,{children:[(e==null?void 0:e.find(n=>{if(n.name.includes(t))return!0}))&&g.jsxs("p",{className:"font-bold underline",children:[t," :"]}),e==null?void 0:e.map((n,o)=>{if(n.name.toUpperCase().includes(t.toUpperCase()))return g.jsx(_A,{t:n},o)})]})}function OA(){let e=[];for(let t=0;t<7;t++)e.push(g.jsx(fs,{className:"!bg-[#000000] !text-white !border-0 hover:!bg-[#242424]",value:(t+1)*10,children:(t+1)*10}));return e}function jA(){const e=Yu(),{resp:t,err:n,isLoading:o}=Qj(e.id);return g.jsx(g.Fragment,{children:g.jsx("div",{className:"ps-2 pr-2 md:pr-16 md:ps-16 mt-20",children:!n&&!o&&t&&g.jsx(NA,{...t})})})}const AA="/api/torrents/:hash/files",LA="/api/torrents/:hash/files/:path64";function N2(){const[e,t]=b.useState(),[n,o]=b.useState(!1),[a,s]=b.useState(),u=async f=>{const p=await ua(),h=new URL(AA.replace(":hash",f),p["torrent-streamer-api"].external?p["torrent-streamer-api"].origin:location.origin),y=await Ue.get(h.href);for(let x of y.data){const k=new URL(LA.replace(":hash",f).replace(":path64",x.path64),p["torrent-streamer-api"].external?p["torrent-streamer-api"].origin:location.origin);x.downloadLink=k.href}return y.data};return{resp:e,isLoading:n,err:a,fetch:f=>{o(!0),s(""),u(f).then(p=>{t(p)}).catch(p=>{console.log(p),s(p.message)}).finally(()=>{o(!1)})}}}const zA=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],DA=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],BA=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],MA=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],o1=(e,t,n)=>{let o=e;return typeof t=="string"||Array.isArray(t)?o=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(o=e.toLocaleString(void 0,n)),o};function Ss(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?MA:BA:t.binary?DA:zA,o=t.space?" ":"";if(t.signed&&e===0)return` 0${o}${n[0]}`;const a=e<0,s=a?"-":t.signed?"+":"";a&&(e=-e);let u;if(t.minimumFractionDigits!==void 0&&(u={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(u={maximumFractionDigits:t.maximumFractionDigits,...u}),e<1){const h=o1(e,t.locale,u);return s+h+o+n[0]}const d=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**d,u||(e=e.toPrecision(3));const f=o1(Number(e),t.locale,u),p=n[d];return s+f+o+p}const FA="/api/streams";function _2(){const[e,t]=b.useState(),[n,o]=b.useState(!1),[a,s]=b.useState(),u=async(f,p)=>{const h=await ua(),y=new URL(FA,h["torrent-streamer-api"].external?h["torrent-streamer-api"].origin:location.origin);return(await Ue.post(y.href,{hash:f,filePath:p})).data};return b.useEffect(()=>{},[]),{resp:e,isLoading:n,err:a,fetch:(f,p)=>{o(!0),s(""),t(void 0),u(f,p).then(h=>{t(h)}).catch(h=>{s(h.message)}).finally(()=>{o(!1)})}}}function Xp(e,t){return Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Xp(e,t)}function HA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xp(e,t)}const i1=xo.createContext(null);function VA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zm(e,t){var n=function(s){return t&&b.isValidElement(s)?t(s):s},o=Object.create(null);return e&&b.Children.map(e,function(a){return a}).forEach(function(a){o[a.key]=n(a)}),o}function UA(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var o=Object.create(null),a=[];for(var s in e)s in t?a.length&&(o[s]=a,a=[]):a.push(s);var u,d={};for(var f in t){if(o[f])for(u=0;u<o[f].length;u++){var p=o[f][u];d[o[f][u]]=n(p)}d[f]=n(f)}for(u=0;u<a.length;u++)d[a[u]]=n(a[u]);return d}function Yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function WA(e,t){return Zm(e.children,function(n){return b.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Yo(n,"appear",e),enter:Yo(n,"enter",e),exit:Yo(n,"exit",e)})})}function KA(e,t,n){var o=Zm(e.children),a=UA(t,o);return Object.keys(a).forEach(function(s){var u=a[s];if(b.isValidElement(u)){var d=s in t,f=s in o,p=t[s],h=b.isValidElement(p)&&!p.props.in;f&&(!d||h)?a[s]=b.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:Yo(u,"exit",e),enter:Yo(u,"enter",e)}):!f&&d&&!h?a[s]=b.cloneElement(u,{in:!1}):f&&d&&b.isValidElement(p)&&(a[s]=b.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:Yo(u,"exit",e),enter:Yo(u,"enter",e)}))}}),a}var qA=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},YA={component:"div",childFactory:function(t){return t}},eh=function(e){HA(t,e);function t(o,a){var s;s=e.call(this,o,a)||this;var u=s.handleExited.bind(VA(s));return s.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,s){var u=s.children,d=s.handleExited,f=s.firstRender;return{children:f?WA(a,d):KA(a,u,d),firstRender:!1}},n.handleExited=function(a,s){var u=Zm(this.props.children);a.key in u||(a.props.onExited&&a.props.onExited(s),this.mounted&&this.setState(function(d){var f=O({},d.children);return delete f[a.key],{children:f}}))},n.render=function(){var a=this.props,s=a.component,u=a.childFactory,d=Le(a,["component","childFactory"]),f=this.state.contextValue,p=qA(this.state.children).map(u);return delete d.appear,delete d.enter,delete d.exit,s===null?xo.createElement(i1.Provider,{value:f},p):xo.createElement(i1.Provider,{value:f},xo.createElement(s,d,p))},t}(xo.Component);eh.propTypes={};eh.defaultProps=YA;const a1={};function O2(e,t){const n=b.useRef(a1);return n.current===a1&&(n.current=e(t)),n}const GA=[];function XA(e){b.useEffect(e,GA)}class th{constructor(){Qa(this,"currentId",null);Qa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Qa(this,"disposeEffect",()=>this.clear)}static create(){return new th}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function JA(){const e=O2(th.create).current;return XA(e.disposeEffect),e}function QA(e){return nr("MuiPaper",e)}rr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ZA=e=>{const{square:t,elevation:n,variant:o,classes:a}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Pr(s,QA,a)},e6=it("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ln(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),t6=b.forwardRef(function(t,n){var k;const o=$r({props:t,name:"MuiPaper"}),a=O_(),{className:s,component:u="div",elevation:d=1,square:f=!1,variant:p="elevation",...h}=o,y={...o,component:u,elevation:d,square:f,variant:p},x=ZA(y);return g.jsx(e6,{as:u,ownerState:y,className:Ke(x.root,s),ref:n,...h,style:{...p==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[d],...a.vars&&{"--Paper-overlay":(k=a.vars.overlays)==null?void 0:k[d]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ri("#fff",Lp(d))}, ${ri("#fff",Lp(d))})`}},...h.style}})});function n6(e){return typeof e=="string"}function r6(e,t,n){return e===void 0||n6(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function o6(e,t,n){return typeof e=="function"?e(t,n):e}function i6(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function s1(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 a6(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:a,className:s}=e;if(!t){const k=Ke(n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),C={...n==null?void 0:n.style,...a==null?void 0:a.style,...o==null?void 0:o.style},S={...n,...a,...o};return k.length>0&&(S.className=k),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const u=i6({...a,...o}),d=s1(o),f=s1(a),p=t(u),h=Ke(p==null?void 0:p.className,n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),y={...p==null?void 0:p.style,...n==null?void 0:n.style,...a==null?void 0:a.style,...o==null?void 0:o.style},x={...p,...n,...f,...d};return h.length>0&&(x.className=h),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:p.ref}}function Ln(e,t){const{className:n,elementType:o,ownerState:a,externalForwardedProps:s,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...f}=t,{component:p,slots:h={[e]:void 0},slotProps:y={[e]:void 0},...x}=s,k=h[e]||o,C=o6(y[e],a),{props:{component:S,...w},internalRef:I}=a6({className:n,...f,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:C}),T=Dp(I,C==null?void 0:C.ref,t.ref),E=e==="root"?S||p:S,N=r6(k,{...e==="root"&&!p&&!h[e]&&u,...e!=="root"&&!h[e]&&u,...w,...E&&!d&&{as:E},...E&&d&&{component:E},ref:T},a);return[k,N]}function l1(e){try{return e.matches(":focus-visible")}catch{}return!1}class Ku{constructor(){Qa(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ku}static use(){const t=O2(Ku.create).current,[n,o]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=o,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=l6(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function s6(){return Ku.use()}function l6(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});return n.resolve=e,n.reject=t,n}function u6(e){const{className:t,classes:n,pulsate:o=!1,rippleX:a,rippleY:s,rippleSize:u,in:d,onExited:f,timeout:p}=e,[h,y]=b.useState(!1),x=Ke(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),k={width:u,height:u,top:-(u/2)+s,left:-(u/2)+a},C=Ke(n.child,h&&n.childLeaving,o&&n.childPulsate);return!d&&!h&&y(!0),b.useEffect(()=>{if(!d&&f!=null){const S=setTimeout(f,p);return()=>{clearTimeout(S)}}},[f,d,p]),g.jsx("span",{className:x,style:k,children:g.jsx("span",{className:C})})}const On=rr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jp=550,c6=80,d6=na`
650
- 0% {
651
- transform: scale(0);
652
- opacity: 0.1;
653
- }
654
-
655
- 100% {
656
- transform: scale(1);
657
- opacity: 0.3;
658
- }
659
- `,f6=na`
660
- 0% {
661
- opacity: 1;
662
- }
663
-
664
- 100% {
665
- opacity: 0;
666
- }
667
- `,p6=na`
668
- 0% {
669
- transform: scale(1);
670
- }
671
-
672
- 50% {
673
- transform: scale(0.92);
674
- }
675
-
676
- 100% {
677
- transform: scale(1);
678
- }
679
- `,m6=it("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),h6=it(u6,{name:"MuiTouchRipple",slot:"Ripple"})`
680
- opacity: 0;
681
- position: absolute;
682
-
683
- &.${On.rippleVisible} {
684
- opacity: 0.3;
685
- transform: scale(1);
686
- animation-name: ${d6};
687
- animation-duration: ${Jp}ms;
688
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
689
- }
690
-
691
- &.${On.ripplePulsate} {
692
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
693
- }
694
-
695
- & .${On.child} {
696
- opacity: 1;
697
- display: block;
698
- width: 100%;
699
- height: 100%;
700
- border-radius: 50%;
701
- background-color: currentColor;
702
- }
703
-
704
- & .${On.childLeaving} {
705
- opacity: 0;
706
- animation-name: ${f6};
707
- animation-duration: ${Jp}ms;
708
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
709
- }
710
-
711
- & .${On.childPulsate} {
712
- position: absolute;
713
- /* @noflip */
714
- left: 0px;
715
- top: 0;
716
- animation-name: ${p6};
717
- animation-duration: 2500ms;
718
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
719
- animation-iteration-count: infinite;
720
- animation-delay: 200ms;
721
- }
722
- `,g6=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:u,...d}=o,[f,p]=b.useState([]),h=b.useRef(0),y=b.useRef(null);b.useEffect(()=>{y.current&&(y.current(),y.current=null)},[f]);const x=b.useRef(!1),k=JA(),C=b.useRef(null),S=b.useRef(null),w=b.useCallback(N=>{const{pulsate:$,rippleX:j,rippleY:A,rippleSize:F,cb:J}=N;p(R=>[...R,g.jsx(h6,{classes:{ripple:Ke(s.ripple,On.ripple),rippleVisible:Ke(s.rippleVisible,On.rippleVisible),ripplePulsate:Ke(s.ripplePulsate,On.ripplePulsate),child:Ke(s.child,On.child),childLeaving:Ke(s.childLeaving,On.childLeaving),childPulsate:Ke(s.childPulsate,On.childPulsate)},timeout:Jp,pulsate:$,rippleX:j,rippleY:A,rippleSize:F},h.current)]),h.current+=1,y.current=J},[s]),I=b.useCallback((N={},$={},j=()=>{})=>{const{pulsate:A=!1,center:F=a||$.pulsate,fakeElement:J=!1}=$;if((N==null?void 0:N.type)==="mousedown"&&x.current){x.current=!1;return}(N==null?void 0:N.type)==="touchstart"&&(x.current=!0);const R=J?null:S.current,M=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let q,G,ne;if(F||N===void 0||N.clientX===0&&N.clientY===0||!N.clientX&&!N.touches)q=Math.round(M.width/2),G=Math.round(M.height/2);else{const{clientX:Q,clientY:B}=N.touches&&N.touches.length>0?N.touches[0]:N;q=Math.round(Q-M.left),G=Math.round(B-M.top)}if(F)ne=Math.sqrt((2*M.width**2+M.height**2)/3),ne%2===0&&(ne+=1);else{const Q=Math.max(Math.abs((R?R.clientWidth:0)-q),q)*2+2,B=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;ne=Math.sqrt(Q**2+B**2)}N!=null&&N.touches?C.current===null&&(C.current=()=>{w({pulsate:A,rippleX:q,rippleY:G,rippleSize:ne,cb:j})},k.start(c6,()=>{C.current&&(C.current(),C.current=null)})):w({pulsate:A,rippleX:q,rippleY:G,rippleSize:ne,cb:j})},[a,w,k]),T=b.useCallback(()=>{I({},{pulsate:!0})},[I]),E=b.useCallback((N,$)=>{if(k.clear(),(N==null?void 0:N.type)==="touchend"&&C.current){C.current(),C.current=null,k.start(0,()=>{E(N,$)});return}C.current=null,p(j=>j.length>0?j.slice(1):j),y.current=$},[k]);return b.useImperativeHandle(n,()=>({pulsate:T,start:I,stop:E}),[T,I,E]),g.jsx(m6,{className:Ke(On.root,s.root,u),ref:S,...d,children:g.jsx(eh,{component:null,exit:!0,children:f})})});function v6(e){return nr("MuiButtonBase",e)}const y6=rr("MuiButtonBase",["root","disabled","focusVisible"]),x6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:a}=e,u=Pr({root:["root",t&&"disabled",n&&"focusVisible"]},v6,a);return n&&o&&(u.root+=` ${o}`),u},b6=it("button",{name:"MuiButtonBase",slot:"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"},[`&.${y6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),j2=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:u,className:d,component:f="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:y=!1,focusRipple:x=!1,focusVisibleClassName:k,LinkComponent:C="a",onBlur:S,onClick:w,onContextMenu:I,onDragLeave:T,onFocus:E,onFocusVisible:N,onKeyDown:$,onKeyUp:j,onMouseDown:A,onMouseLeave:F,onMouseUp:J,onTouchEnd:R,onTouchMove:M,onTouchStart:q,tabIndex:G=0,TouchRippleProps:ne,touchRippleRef:Q,type:B,...V}=o,U=b.useRef(null),te=s6(),ae=Dp(te.ref,Q),[z,K]=b.useState(!1);p&&z&&K(!1),b.useImperativeHandle(a,()=>({focusVisible:()=>{K(!0),U.current.focus()}}),[]);const me=te.shouldMount&&!h&&!p;b.useEffect(()=>{z&&x&&!h&&te.pulsate()},[h,x,z,te]);const he=Br(te,"start",A,y),de=Br(te,"stop",I,y),ve=Br(te,"stop",T,y),oe=Br(te,"stop",J,y),Z=Br(te,"stop",Pe=>{z&&Pe.preventDefault(),F&&F(Pe)},y),ce=Br(te,"start",q,y),xe=Br(te,"stop",R,y),Ne=Br(te,"stop",M,y),at=Br(te,"stop",Pe=>{l1(Pe.target)||K(!1),S&&S(Pe)},!1),vt=$u(Pe=>{U.current||(U.current=Pe.currentTarget),l1(Pe.target)&&(K(!0),N&&N(Pe)),E&&E(Pe)}),It=()=>{const Pe=U.current;return f&&f!=="button"&&!(Pe.tagName==="A"&&Pe.href)},kn=$u(Pe=>{x&&!Pe.repeat&&z&&Pe.key===" "&&te.stop(Pe,()=>{te.start(Pe)}),Pe.target===Pe.currentTarget&&It()&&Pe.key===" "&&Pe.preventDefault(),$&&$(Pe),Pe.target===Pe.currentTarget&&It()&&Pe.key==="Enter"&&!p&&(Pe.preventDefault(),w&&w(Pe))}),Un=$u(Pe=>{x&&Pe.key===" "&&z&&!Pe.defaultPrevented&&te.stop(Pe,()=>{te.pulsate(Pe)}),j&&j(Pe),w&&Pe.target===Pe.currentTarget&&It()&&Pe.key===" "&&!Pe.defaultPrevented&&w(Pe)});let Tt=f;Tt==="button"&&(V.href||V.to)&&(Tt=C);const Yt={};Tt==="button"?(Yt.type=B===void 0?"button":B,Yt.disabled=p):(!V.href&&!V.to&&(Yt.role="button"),p&&(Yt["aria-disabled"]=p));const Wn=Dp(n,U),yt={...o,centerRipple:s,component:f,disabled:p,disableRipple:h,disableTouchRipple:y,focusRipple:x,tabIndex:G,focusVisible:z},Nt=x6(yt);return g.jsxs(b6,{as:Tt,className:Ke(Nt.root,d),ownerState:yt,onBlur:at,onClick:w,onContextMenu:de,onFocus:vt,onKeyDown:kn,onKeyUp:Un,onMouseDown:he,onMouseLeave:Z,onMouseUp:oe,onDragLeave:ve,onTouchEnd:xe,onTouchMove:Ne,onTouchStart:ce,ref:Wn,tabIndex:p?-1:G,type:B,...Yt,...V,children:[u,me?g.jsx(g6,{ref:ae,center:s,...ne}):null]})});function Br(e,t,n,o=!1){return $u(a=>(n&&n(a),o||e[t](a),!0))}function S6(e){return typeof e.main=="string"}function C6(e,t=[]){if(!S6(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function bo(e=[]){return([,t])=>t&&C6(t,e)}function w6(e){return nr("MuiAlert",e)}const u1=rr("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function k6(e){return nr("MuiCircularProgress",e)}rr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vo=44,Qp=na`
723
- 0% {
724
- transform: rotate(0deg);
725
- }
726
-
727
- 100% {
728
- transform: rotate(360deg);
729
- }
730
- `,Zp=na`
731
- 0% {
732
- stroke-dasharray: 1px, 200px;
733
- stroke-dashoffset: 0;
734
- }
735
-
736
- 50% {
737
- stroke-dasharray: 100px, 200px;
738
- stroke-dashoffset: -15px;
739
- }
740
-
741
- 100% {
742
- stroke-dasharray: 1px, 200px;
743
- stroke-dashoffset: -126px;
744
- }
745
- `,E6=typeof Qp!="string"?sc`
746
- animation: ${Qp} 1.4s linear infinite;
747
- `:null,P6=typeof Zp!="string"?sc`
748
- animation: ${Zp} 1.4s ease-in-out infinite;
749
- `:null,$6=e=>{const{classes:t,variant:n,color:o,disableShrink:a}=e,s={root:["root",n,`color${He(o)}`],svg:["svg"],circle:["circle",`circle${He(n)}`,a&&"circleDisableShrink"]};return Pr(s,k6,t)},R6=it("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${He(n.color)}`]]}})(ln(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:E6||{animation:`${Qp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(bo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),I6=it("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),T6=it("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${He(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ln(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:P6||{animation:`${Zp} 1.4s ease-in-out infinite`}}]}))),N6=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:u=!1,size:d=40,style:f,thickness:p=3.6,value:h=0,variant:y="indeterminate",...x}=o,k={...o,color:s,disableShrink:u,size:d,thickness:p,value:h,variant:y},C=$6(k),S={},w={},I={};if(y==="determinate"){const T=2*Math.PI*((vo-p)/2);S.strokeDasharray=T.toFixed(3),I["aria-valuenow"]=Math.round(h),S.strokeDashoffset=`${((100-h)/100*T).toFixed(3)}px`,w.transform="rotate(-90deg)"}return g.jsx(R6,{className:Ke(C.root,a),style:{width:d,height:d,...w,...f},ownerState:k,ref:n,role:"progressbar",...I,...x,children:g.jsx(I6,{className:C.svg,ownerState:k,viewBox:`${vo/2} ${vo/2} ${vo} ${vo}`,children:g.jsx(T6,{className:C.circle,style:S,ownerState:k,cx:vo,cy:vo,r:(vo-p)/2,fill:"none",strokeWidth:p})})})});function _6(e){return nr("MuiIconButton",e)}const c1=rr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),O6=e=>{const{classes:t,disabled:n,color:o,edge:a,size:s,loading:u}=e,d={root:["root",u&&"loading",n&&"disabled",o!=="default"&&`color${He(o)}`,a&&`edge${He(a)}`,`size${He(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Pr(d,_6,t)},j6=it(j2,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${He(n.color)}`],n.edge&&t[`edge${He(n.edge)}`],t[`size${He(n.size)}`]]}})(ln(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ri(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ln(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(bo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(bo()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ri((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${c1.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${c1.loading}`]:{color:"transparent"}}))),A6=it("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),L6=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiIconButton"}),{edge:a=!1,children:s,className:u,color:d="default",disabled:f=!1,disableFocusRipple:p=!1,size:h="medium",id:y,loading:x=null,loadingIndicator:k,...C}=o,S=F_(y),w=k??g.jsx(N6,{"aria-labelledby":S,color:"inherit",size:16}),I={...o,edge:a,color:d,disabled:f,disableFocusRipple:p,loading:x,loadingIndicator:w,size:h},T=O6(I);return g.jsxs(j6,{id:x?S:y,className:Ke(T.root,u),centerRipple:!0,focusRipple:!p,disabled:f||x,ref:n,...C,ownerState:I,children:[typeof x=="boolean"&&g.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:g.jsx(A6,{className:T.loadingIndicator,ownerState:I,children:x&&w})}),s]})}),z6=ai(g.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),D6=ai(g.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),B6=ai(g.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),M6=ai(g.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),F6=ai(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),H6=e=>{const{variant:t,color:n,severity:o,classes:a}=e,s={root:["root",`color${He(n||o)}`,`${t}${He(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Pr(s,w6,a)},V6=it(t6,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${He(n.color||n.severity)}`]]}})(ln(({theme:e})=>{const t=e.palette.mode==="light"?Xi:Ji,n=e.palette.mode==="light"?Ji:Xi;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(bo(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${u1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(bo(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${u1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(bo(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),U6=it("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),W6=it("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),K6=it("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),d1={success:g.jsx(z6,{fontSize:"inherit"}),warning:g.jsx(D6,{fontSize:"inherit"}),error:g.jsx(B6,{fontSize:"inherit"}),info:g.jsx(M6,{fontSize:"inherit"})},A2=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiAlert"}),{action:a,children:s,className:u,closeText:d="Close",color:f,components:p={},componentsProps:h={},icon:y,iconMapping:x=d1,onClose:k,role:C="alert",severity:S="success",slotProps:w={},slots:I={},variant:T="standard",...E}=o,N={...o,color:f,severity:S,variant:T,colorSeverity:f||S},$=H6(N),j={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...I},slotProps:{...h,...w}},[A,F]=Ln("root",{ref:n,shouldForwardComponentProp:!0,className:Ke($.root,u),elementType:V6,externalForwardedProps:{...j,...E},ownerState:N,additionalProps:{role:C,elevation:0}}),[J,R]=Ln("icon",{className:$.icon,elementType:U6,externalForwardedProps:j,ownerState:N}),[M,q]=Ln("message",{className:$.message,elementType:W6,externalForwardedProps:j,ownerState:N}),[G,ne]=Ln("action",{className:$.action,elementType:K6,externalForwardedProps:j,ownerState:N}),[Q,B]=Ln("closeButton",{elementType:L6,externalForwardedProps:j,ownerState:N}),[V,U]=Ln("closeIcon",{elementType:F6,externalForwardedProps:j,ownerState:N});return g.jsxs(A,{...F,children:[y!==!1?g.jsx(J,{...R,children:y||x[S]||d1[S]}):null,g.jsx(M,{...q,children:s}),a!=null?g.jsx(G,{...ne,children:a}):null,a==null&&k?g.jsx(G,{...ne,children:g.jsx(Q,{size:"small","aria-label":d,title:d,color:"inherit",onClick:k,...B,children:g.jsx(V,{fontSize:"small",...U})})}):null]})});function q6(e){return nr("MuiTypography",e)}rr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Y6={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},G6=A_(),X6=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:a,variant:s,classes:u}=e,d={root:["root",s,e.align!=="inherit"&&`align${He(t)}`,n&&"gutterBottom",o&&"noWrap",a&&"paragraph"]};return Pr(d,q6,u)},J6=it("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${He(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ln(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(bo()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${He(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),f1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},p1=b.forwardRef(function(t,n){const{color:o,...a}=$r({props:t,name:"MuiTypography"}),s=!Y6[o],u=G6({...a,...s&&{color:o}}),{align:d="inherit",className:f,component:p,gutterBottom:h=!1,noWrap:y=!1,paragraph:x=!1,variant:k="body1",variantMapping:C=f1,...S}=u,w={...u,align:d,color:o,className:f,component:p,gutterBottom:h,noWrap:y,paragraph:x,variant:k,variantMapping:C},I=p||(x?"p":C[k]||f1[k])||"span",T=X6(w);return g.jsx(J6,{as:I,ref:n,className:Ke(T.root,f),...S,ownerState:w,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...S.style}})});function Q6({props:e,states:t,muiFormControl:n}){return t.reduce((o,a)=>(o[a]=e[a],n&&typeof e[a]>"u"&&(o[a]=n[a]),o),{})}const Z6=b.createContext(void 0);function L2(){return b.useContext(Z6)}function eL(e){return nr("PrivateSwitchBase",e)}rr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tL=e=>{const{classes:t,checked:n,disabled:o,edge:a}=e,s={root:["root",n&&"checked",o&&"disabled",a&&`edge${He(a)}`],input:["input"]};return Pr(s,eL,t)},nL=it(j2)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),rL=it("input",{shouldForwardProp:Gb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oL=b.forwardRef(function(t,n){const{autoFocus:o,checked:a,checkedIcon:s,defaultChecked:u,disabled:d,disableFocusRipple:f=!1,edge:p=!1,icon:h,id:y,inputProps:x,inputRef:k,name:C,onBlur:S,onChange:w,onFocus:I,readOnly:T,required:E=!1,tabIndex:N,type:$,value:j,slots:A={},slotProps:F={},...J}=t,[R,M]=H_({controlled:a,default:!!u}),q=L2(),G=de=>{I&&I(de),q&&q.onFocus&&q.onFocus(de)},ne=de=>{S&&S(de),q&&q.onBlur&&q.onBlur(de)},Q=de=>{if(de.nativeEvent.defaultPrevented)return;const ve=de.target.checked;M(ve),w&&w(de,ve)};let B=d;q&&typeof B>"u"&&(B=q.disabled);const V=$==="checkbox"||$==="radio",U={...t,checked:R,disabled:B,disableFocusRipple:f,edge:p},te=tL(U),ae={slots:A,slotProps:{input:x,...F}},[z,K]=Ln("root",{ref:n,elementType:nL,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,component:"span",...J},getSlotProps:de=>({...de,onFocus:ve=>{var oe;(oe=de.onFocus)==null||oe.call(de,ve),G(ve)},onBlur:ve=>{var oe;(oe=de.onBlur)==null||oe.call(de,ve),ne(ve)}}),ownerState:U,additionalProps:{centerRipple:!0,focusRipple:!f,disabled:B,role:void 0,tabIndex:null}}),[me,he]=Ln("input",{ref:k,elementType:rL,className:te.input,externalForwardedProps:ae,getSlotProps:de=>({...de,onChange:ve=>{var oe;(oe=de.onChange)==null||oe.call(de,ve),Q(ve)}}),ownerState:U,additionalProps:{autoFocus:o,checked:a,defaultChecked:u,disabled:B,id:V?y:void 0,name:C,readOnly:T,required:E,tabIndex:N,type:$,...$==="checkbox"&&j===void 0?{}:{value:j}}});return g.jsxs(z,{...K,children:[g.jsx(me,{...he}),R?s:h]})});function iL(e){return nr("MuiFormControlLabel",e)}const ps=rr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),aL=e=>{const{classes:t,disabled:n,labelPlacement:o,error:a,required:s}=e,u={root:["root",n&&"disabled",`labelPlacement${He(o)}`,a&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return Pr(u,iL,t)},sL=it("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ps.label}`]:t.label},t.root,t[`labelPlacement${He(n.labelPlacement)}`]]}})(ln(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ps.disabled}`]:{cursor:"default"},[`& .${ps.label}`]:{[`&.${ps.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),lL=it("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ln(({theme:e})=>({[`&.${ps.error}`]:{color:(e.vars||e).palette.error.main}}))),uL=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiFormControlLabel"}),{checked:a,className:s,componentsProps:u={},control:d,disabled:f,disableTypography:p,inputRef:h,label:y,labelPlacement:x="end",name:k,onChange:C,required:S,slots:w={},slotProps:I={},value:T,...E}=o,N=L2(),$=f??d.props.disabled??(N==null?void 0:N.disabled),j=S??d.props.required,A={disabled:$,required:j};["checked","name","onChange","value","inputRef"].forEach(Q=>{typeof d.props[Q]>"u"&&typeof o[Q]<"u"&&(A[Q]=o[Q])});const F=Q6({props:o,muiFormControl:N,states:["error"]}),J={...o,disabled:$,labelPlacement:x,required:j,error:F.error},R=aL(J),M={slots:w,slotProps:{...u,...I}},[q,G]=Ln("typography",{elementType:p1,externalForwardedProps:M,ownerState:J});let ne=y;return ne!=null&&ne.type!==p1&&!p&&(ne=g.jsx(q,{component:"span",...G,className:Ke(R.label,G==null?void 0:G.className),children:ne})),g.jsxs(sL,{className:Ke(R.root,s),ownerState:J,ref:n,...E,children:[b.cloneElement(d,A),j?g.jsxs("div",{children:[ne,g.jsxs(lL,{ownerState:J,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):ne]})});function cL(e){return nr("MuiSwitch",e)}const qt=rr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),dL=e=>{const{classes:t,edge:n,size:o,color:a,checked:s,disabled:u}=e,d={root:["root",n&&`edge${He(n)}`,`size${He(o)}`],switchBase:["switchBase",`color${He(a)}`,s&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=Pr(d,cL,t);return{...t,...f}},fL=it("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${He(n.edge)}`],t[`size${He(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${qt.thumb}`]:{width:16,height:16},[`& .${qt.switchBase}`]:{padding:4,[`&.${qt.checked}`]:{transform:"translateX(16px)"}}}}]}),pL=it(oL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${qt.input}`]:t.input},n.color!=="default"&&t[`color${He(n.color)}`]]}})(ln(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${qt.checked}`]:{transform:"translateX(20px)"},[`&.${qt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${qt.checked} + .${qt.track}`]:{opacity:.5},[`&.${qt.disabled} + .${qt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${qt.input}`]:{left:"-100%",width:"300%"}})),ln(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ri(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(bo(["light"])).map(([t])=>({props:{color:t},style:{[`&.${qt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ri(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Ji(e.palette[t].main,.62):Xi(e.palette[t].main,.55)}`}},[`&.${qt.checked} + .${qt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),mL=it("span",{name:"MuiSwitch",slot:"Track"})(ln(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),hL=it("span",{name:"MuiSwitch",slot:"Thumb"})(ln(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),gL=b.forwardRef(function(t,n){const o=$r({props:t,name:"MuiSwitch"}),{className:a,color:s="primary",edge:u=!1,size:d="medium",sx:f,slots:p={},slotProps:h={},...y}=o,x={...o,color:s,edge:u,size:d},k=dL(x),C={slots:p,slotProps:h},[S,w]=Ln("root",{className:Ke(k.root,a),elementType:fL,externalForwardedProps:C,ownerState:x,additionalProps:{sx:f}}),[I,T]=Ln("thumb",{className:k.thumb,elementType:hL,externalForwardedProps:C,ownerState:x}),E=g.jsx(I,{...T}),[N,$]=Ln("track",{className:k.track,elementType:mL,externalForwardedProps:C,ownerState:x});return g.jsxs(S,{...w,children:[g.jsx(pL,{type:"checkbox",icon:E,checkedIcon:E,ref:n,ownerState:x,...y,classes:{...k,root:k.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(x):h.switchBase},...h.input&&{input:typeof h.input=="function"?h.input(x):h.input}}}),g.jsx(N,{...$})]})});function vL(e){let t=0;return e.map(n=>{n.name.endsWith(".mp4")||n.name.endsWith(".mkv")||t++}),t}function z2({hash:e,resp:t,isLoading:n,err:o}){const[a,s]=b.useState(!1),{resp:u,isLoading:d,err:f,fetch:p}=_2(),[h,y]=b.useState(!1),[x,k]=b.useState(+localStorage.sov),C=tr(),S=w=>{p(e,w),s(!0)};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"border-[2px] ms-3 mr-3 bg-[#ffffff0d] border-[#ffffff4f] drop-shadow-md rounded-sm",children:[g.jsx("h1",{className:"text-xl font-bold p-5",children:"Files"}),g.jsx(uL,{control:g.jsx(gL,{color:"info",checked:!!x,onChange:(w,I)=>{k(I?1:0),localStorage.sov=I?1:0},sx:{"& .MuiSwitch-track":{backgroundColor:"lightgray"},"&.Mui-checked .MuiSwitch-track":{backgroundColor:"green"}}}),label:"Only show video files",labelPlacement:"start"}),!o&&!n&&t&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"ps-5",children:g.jsxs("ul",{className:"flex gap-5",style:{listStyleType:"circle"},children:[g.jsxs("li",{className:"list-none",children:[t==null?void 0:t.length," files "]}),x?g.jsxs("li",{children:[vL(t)," Hidden files"]}):""]})}),g.jsx(qo,{className:"!ms-4 !mt-3",onClick:()=>{y(!0)},children:"Easy View"}),g.jsx("div",{className:"p-5",children:t==null?void 0:t.map((w,I)=>{if(!(x&&!(w.name.endsWith(".mp4")||w.name.endsWith(".mkv"))))return g.jsxs("div",{className:"md:p-5 p-2 md:text-base !text-sm items-center grid-cols-12 rounded-md hover:bg-[#50505059] duration-200 md:grid gap-10 cursor-pointer flex-wrap",children:[g.jsx("div",{className:"col-span-1 inline-block md:mr-0 mr-5",children:w.name.endsWith(".mp4")||w.name.endsWith(".mkv")?g.jsx(De,{icon:wk}):g.jsx(De,{icon:vu})}),g.jsx("a",{target:"_blank",href:w.downloadLink,className:"col-span-4 hover:underline",children:w.name}),g.jsx("p",{className:"xl:col-span-1 col-span-3 xl:block hidden",children:Ss(w.size)}),g.jsxs("button",{className:"lg:col-span-3 col-span-1 xl:block hidden",onClick:()=>{navigator.clipboard.writeText(w.downloadLink)},children:[g.jsx(De,{icon:j1})," ",g.jsx("span",{className:"lg:inline-block hidden",children:"Copy Stream URL"})]}),(w.name.endsWith(".mp4")||w.name.endsWith(".mkv"))&&g.jsxs("button",{onClick:()=>{const T=new URL("/api/playlist",location.origin);T.searchParams.set("streams",w.downloadLink),T.searchParams.set("names",w.name),T.searchParams.set("fileName",w.name),open(T.href)},className:"items-center col-span-1 xl:flex hidden",children:[g.jsx(De,{icon:O1,className:"mr-2"}),"play"]}),g.jsxs("div",{className:" md:flex hidden xl:hidden gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:[g.jsx("h6",{className:"md:block hidden col-span-1 text-[13px]",children:Ss(w.size)}),g.jsx("div",{className:" col-span-1 cursor-pointer",onClick:()=>{navigator.clipboard.writeText(w.downloadLink)},children:g.jsx(De,{icon:vu})}),g.jsx("div",{className:"w-fit cursor-pointer",onClick:()=>{open(w.downloadLink,"_blank")},children:g.jsx(De,{icon:np})})]}),(w.name.endsWith(".mp4")||w.name.endsWith(".mkv"))&&g.jsx(qo,{className:"xl:col-span-2 col-span-4 !text-base md:!block !hidden",color:"neutral",loading:d,disabled:a,onClick:()=>{S(w.path)},variant:"soft",size:"lg",children:"Create PreStream"}),g.jsxs("div",{className:"md:hidden mt-3 flex items-center gap-5",children:[g.jsxs("div",{className:"flex xl:hidden gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:[g.jsx("h6",{className:"md:block hidden col-span-1 text-[13px]",children:Ss(w.size)}),g.jsx("div",{className:" col-span-1 cursor-pointer",onClick:()=>{navigator.clipboard.writeText(w.downloadLink)},children:g.jsx(De,{icon:vu})}),g.jsx("div",{className:"w-fit cursor-pointer",onClick:()=>{open(w.downloadLink,"_blank")},children:g.jsx(De,{icon:np})})]}),(w.name.endsWith(".mp4")||w.name.endsWith(".mkv"))&&g.jsx(qo,{className:"!text-[14px] !pt-0 !pb-0 !ps-2 !pr-2",color:"neutral",loading:d,disabled:a,onClick:()=>{S(w.path)},variant:"soft",size:"sm",children:"Create PreStream"})]})]},I)})})]}),n&&!o&&g.jsx(g.Fragment,{children:g.jsx("div",{className:"flex justify-center items-center h-[200px]",children:g.jsx("h1",{children:"Loading files..."})})})]}),o&&g.jsx("h1",{className:"text-red-500",children:"An error occurred while getting files"}),(t==null?void 0:t.length)===0&&!n&&g.jsx("h1",{children:"No files found. It could be 0 seeders"}),a&&!n&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed w-full h-screen bg-[#0000007b] top-0"}),g.jsxs("div",{className:"w-[700px] fixed flex justify-center items-center p-5 border-2 border-white h-[300px] top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] bg-black",children:[(u||f)&&g.jsx("div",{className:"ms-[90%] translate-x-[-90%] absolute top-5 cursor-pointer",onClick:()=>s(!1),children:g.jsx(De,{icon:rp})}),d&&g.jsx("h1",{children:"loading..."}),u&&g.jsxs("div",{children:[g.jsxs("h1",{className:"text-center",children:[g.jsxs("span",{className:"font-bold text-xl mb-5 block",children:[" ","Stream URL"," "]})," ",g.jsx("a",{href:u.streamUrl,className:"text-blue-600 hover:underline",children:u.streamUrl})]}),g.jsx("div",{children:g.jsx(qo,{onClick:()=>{C("/home_cinema/streams")},className:"!text-base !ms-[50%] translate-x-[-50%] !mt-10",children:"All Streams"})})]}),f&&g.jsx("h1",{className:"text-red-600",children:f})]})]}),h&&g.jsxs(g.Fragment,{children:[g.jsx("div",{onClick:()=>y(!1),className:"top-0 fixed bg-[#00000050] w-full h-screen flex items-center justify-center"}),g.jsxs("div",{className:"fixed top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%]",children:[g.jsxs("div",{className:"flex justify-between bg-black p-2",children:[g.jsx("h1",{className:" text-xl font-bold relative",children:"Easy View "}),g.jsx("div",{className:"cursor-pointer",onClick:()=>y(!1),children:g.jsx(De,{icon:rp,className:"h-7 mr-2"})})]}),g.jsx(yL,{resp:t})]})]})]})}function yL({resp:e}){let t=e.map((n,o)=>{if(!n.name.endsWith(".mp4")&&!n.name.endsWith(".mkv"))return;let a=n.name.toUpperCase().match(/S(\d+)E(\d+)/);if(a)return g.jsxs("div",{className:"mb-2 p-2 grid grid-cols-12 duration-200 hover:bg-[#b4b4b43e]",children:[g.jsxs("div",{className:"col-span-9",children:[g.jsxs("h1",{className:"font-bold",children:["Season ",parseInt(a[1],10)," Episode ",parseInt(a[2],10)]}),g.jsx("h1",{children:n.name.toLowerCase().includes("h265")||n.name.toLowerCase().includes("x265")?"H256":"H264"})]}),g.jsxs("div",{className:"flex gap-3 items-center justify-center col-span-3 bg-[#202020] p-2 rounded-md",children:[g.jsx("h6",{className:"md:block hidden col-span-1 text-[13px]",children:Ss(n.size)}),g.jsx("div",{className:" col-span-1 cursor-pointer",onClick:()=>{navigator.clipboard.writeText(n.downloadLink)},children:g.jsx(De,{icon:vu})}),g.jsx("div",{className:"w-fit cursor-pointer",onClick:()=>{open(n.downloadLink,"_blank")},children:g.jsx(De,{icon:np})})]})]},o)});return t=t.filter(n=>n!==void 0),g.jsx(g.Fragment,{children:g.jsxs("div",{className:"bg-[#0f0f0f] min-w-[300px] max-w-[500px] relative min-h-[100px] max-h-[300px] overflow-y-auto",children:[e&&t,!t.length&&g.jsx("div",{className:"flex justify-center items-center h-full",children:g.jsxs("h1",{className:"text-center p-5",children:["Easy View only works with torrents that have files with"," ",g.jsx("span",{className:"bg-[#b4b4b43e] p-1 rounded-md",children:"season-episode"})," ","notation"]})})]})})}function xL(){const e=Yu(),[t,n]=b.useState(!1),[o,a]=Xu(),{resp:s,isLoading:u,err:d,fetch:f}=N2(),{resp:p,isLoading:h,err:y}=_2(),[x,k]=b.useState(),[C,S]=b.useState(),w=tr();return b.useEffect(()=>{if(!s)return;let I=0;s==null||s.map(T=>{(T.name.endsWith(".mp4")||T.name.endsWith(".mkv"))&&(I+=T.size,k(E=>E?[...E,{streamUrl:T.downloadLink,name:T.name}]:[{streamUrl:T.downloadLink,name:T.name}]))}),S(I)},[s]),b.useEffect(()=>{f(e.hash)},[]),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"cursor-pointer mt-7 ms-3 flex items-center gap-3",onClick:()=>{w(-1)},children:[g.jsx(De,{icon:am,className:"h-7"}),g.jsx("h1",{className:"font-bold text-3xl",children:"Inspect Torrent"})]}),x&&(x==null?void 0:x.length)>0&&g.jsxs("div",{className:"p-5",children:[g.jsx("h1",{className:"md:text-3xl font-bold mb-3",children:s&&g.jsx("h1",{children:s[0].path.split("/")[0]})}),g.jsxs(oi,{onClick:()=>{const I=new URL("/api/playlist",location.origin);x.map(T=>{I.searchParams.append("streams",T.streamUrl),I.searchParams.append("names",T.name)}),s&&I.searchParams.set("fileName",s[0].path.split("/")[0]),open(I.href)},children:[g.jsx(De,{icon:O1,className:"mr-3"})," Play"]})]}),g.jsx(z2,{resp:s||[],hash:e.hash,err:d,isLoading:u}),g.jsxs("div",{className:"ps-5 mt-7",children:[g.jsx("p",{className:"mb-3",children:Ss(C||0)}),o.get("peers")&&o.get("seeds")&&g.jsxs("p",{children:["Seeds : ",o.get("seeds")," leechers : ",o.get("leechers")]}),o.get("about")&&g.jsxs("p",{className:" mb-3",children:["About :"," ",g.jsx("a",{target:"_blank",className:"text-blue-500",href:o.get("about"),children:o.get("about")})]}),g.jsxs("p",{className:"text-sm mb-5",children:["Info Hash : ",e.hash]})]}),d&&g.jsx("h1",{className:"text-red-500",children:"An error occurred while getting files"}),(s==null?void 0:s.length)===0&&!u&&g.jsx("h1",{children:"No files found. It could be 0 seeders"}),t&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"absolute w-full h-screen bg-[#0000005c] top-0"}),g.jsxs("div",{className:"w-[700px] flex justify-center items-center p-5 border-2 border-white h-[300px] absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] bg-black",children:[p&&g.jsx("div",{className:"ms-[90%] translate-x-[-90%] absolute top-5 cursor-pointer",onClick:()=>n(!1),children:g.jsx(De,{icon:sm})}),h&&g.jsx("h1",{children:"loading..."}),p&&g.jsxs("div",{children:[g.jsxs("h1",{className:"text-center",children:[g.jsxs("span",{className:"font-bold text-xl mb-5 block",children:[" ","Stream URL"," "]})," ",g.jsx("a",{href:p.streamUrl,className:"text-blue-600 hover:underline",children:p.streamUrl})]}),g.jsx("div",{children:g.jsx(oi,{onClick:()=>{w("/home_cinema/pre-streams")},className:"!text-base ms-[50%] translate-x-[-50%] mt-10",children:"All Streams"})})]}),y&&g.jsx("h1",{className:"text-red-600",children:y})]})]})]})}const bL="/api/streams";function SL(){const[e,t]=b.useState(),[n,o]=b.useState(!1),[a,s]=b.useState(),u=async()=>{const f=await ua(),p=new URL(bL,f["torrent-streamer-api"].external?f["torrent-streamer-api"].origin:location.origin);return(await Ue.get(p.href)).data};return b.useEffect(()=>{},[]),{resp:e,isLoading:n,err:a,fetch:()=>{o(!0),u().then(f=>{t(f)}).catch(f=>{s(f.message)}).finally(()=>{o(!1)})}}}const CL="/api/streams/:id";function wL(){const[e,t]=b.useState(),[n,o]=b.useState(!1),[a,s]=b.useState(),u=async f=>{const p=await ua(),h=new URL(CL.replace(":id",f),p["torrent-streamer-api"].external?p["torrent-streamer-api"].origin:location.origin);return(await Ue.delete(h.href)).data};return b.useEffect(()=>{},[]),{resp:e,isLoading:n,err:a,fetch:f=>{o(!0),u(f).then(p=>{t(p)}).catch(p=>{s(p.message)}).finally(()=>{o(!1)})}}}function kL(){const{resp:e,err:t,isLoading:n,fetch:o}=SL(),{fetch:a}=wL(),[s,u]=b.useState(!0);return b.useEffect(()=>{o(),setInterval(()=>{o()},2e3)},[]),b.useEffect(()=>{n||u(!1)},[n]),g.jsxs(g.Fragment,{children:[g.jsx(ia,{}),g.jsxs("div",{className:"ms-5 mr-5 mt-20",children:[t&&g.jsxs(A2,{severity:"error",variant:"outlined",className:"!w-fit !mt-5 !text-red-500",color:"error",children:["An error occurred : ",t]}),n&&s&&g.jsx("div",{children:g.jsx("h1",{className:"text-center",children:"loading..."})}),(e==null?void 0:e.length)==0&&g.jsx("div",{className:"w-full absolute top-0 h-screen flex justify-center items-center z-[-10] left-0",children:g.jsx("h1",{className:"text-lg",children:"There is no pre stream created"})}),e&&g.jsx("div",{children:e.map((d,f)=>g.jsxs("div",{className:"hover:bg-[#50505059] md:p-5 p-2 rounded-md",children:[g.jsx("div",{onClick:()=>{a(d.id)},className:"border-2 cursor-pointer ms-[100%] translate-x-[-100%] border-red-600 w-fit ps-[4px] pr-[4px] rounded-md",children:g.jsx(De,{icon:rp,className:"text-red-600"})}),g.jsxs("div",{className:"lg:flex gap-5 items-center p-5 rounded-md cursor-pointer",children:[g.jsx("a",{className:"font-bold md:text-lg",href:`/home_cinema/torrents/${d.torrentHash}/files`,target:"_blank",children:d.name}),g.jsxs("div",{className:"flex items-center gap-5",children:[g.jsx("div",{className:"w-[200px] relative bg-white h-2 rounded-full",children:g.jsx("div",{style:{width:`${(d.progress*100).toFixed()}%`},className:"h-2 bg-green-600 rounded-full"})}),g.jsxs("p",{children:[(d.progress*100).toFixed(2),"%"]})]}),g.jsxs(oi,{className:"!text-sm !ps-5 !pr-5 flex items-center",onClick:()=>{navigator.clipboard.writeText(d.streamUrl)},children:[g.jsx(De,{icon:j1,className:"h-5 mr-2"}),"Copy Stream URL"]})]})]},f))})]})]})}function EL(){const[e,t]=b.useState(),{resp:n,isLoading:o,err:a,fetch:s}=N2();return g.jsxs(g.Fragment,{children:[g.jsx(ia,{}),g.jsxs("div",{className:"lg:ms-32 mt-24",children:[g.jsx("h1",{className:"text-2xl font-bold mb-5",children:"Get torrent By Info Hash"}),g.jsx(Pb,{onChange:u=>{t(u.target.value)},value:e,sx:{width:"auto",maxWidth:"600px"},color:"neutral",size:"lg",variant:"soft",placeholder:"Info Hash"}),g.jsx("div",{className:"mt-5",children:g.jsx(qo,{color:"neutral",loading:o,onClick:function(){s(e)},variant:"soft",size:"lg",children:"Get"})}),a&&g.jsxs(A2,{severity:"error",variant:"outlined",className:"!w-fit !mt-5 !text-red-500",color:"error",children:["An error occurred : ",a]})]}),g.jsx("div",{className:"mt-5",children:!o&&!a&&n&&g.jsx(z2,{isLoading:o,err:a,resp:n,hash:e||""})})]})}const PL=[{name:"Movie",code:"mv"},{name:"TV Show",code:"tv"},{name:"Torrents",code:"tr"}];function $L(){const[e,t]=b.useState("mv"),n=I2(),[o,a]=b.useState();return b.useEffect(()=>{e==="tv"&&zj().then(s=>{a(s)})},[e]),g.jsx(g.Fragment,{children:g.jsxs("div",{className:"p-10",children:[g.jsx("h1",{className:"text-2xl font-bold",children:"Offline Saved Data"}),g.jsx("div",{className:"flex gap-5 text-sm mt-5 mb-5",children:PL.map((s,u)=>g.jsx("div",{onClick:()=>t(s.code),className:"cursor-pointer"+(e===s.code?" underline-offset-2 underline font-bold":""),children:g.jsx("p",{children:s.name})},u))}),e==="mv"?g.jsxs("div",{className:"flex gap-5 flex-wrap",children:[n==null?void 0:n.map((s,u)=>{var d;return g.jsx(la,{m:{id:s.id,title:s.title,year:s.year,rating:s.rating,medium_cover_image:s.medium_cover_image,runtime:(d=s.runtime)==null?void 0:d.toString()}},u)}),(n==null?void 0:n.length)===0&&g.jsx(m1,{msg:"No saved movies"})]}):e==="tv"?g.jsxs("div",{className:"flex gap-5 flex-wrap",children:[o==null?void 0:o.map((s,u)=>g.jsx(Wu,{to:`/home_cinema/saved/show/${s.id}`,show:{id:s.id,name:s.name,first_air_date:s.first_air_date,vote_average:s.vote_average,poster_path:s.poster_path,backdrop_path:s.backdrop_path,origin_country:s.origin_country,genre_ids:[]}},u)),(o==null?void 0:o.length)===0&&g.jsx(m1,{msg:"No saved TV shows"})]}):g.jsx("div",{})]})})}function m1({msg:e}){return g.jsx("div",{className:"flex opacity-50 justify-center items-center w-full h-screen absolute top-0 left-0 -z-10",children:g.jsx("h1",{children:e})})}function RL(){const{id:e}=Yu(),[t,n]=b.useState(),[o,a]=b.useState();return b.useEffect(()=>{e&&Number.isInteger(+e)&&Qm(+e).then(s=>{n(s)}).catch(s=>{a(s.message)})},[]),g.jsx(g.Fragment,{children:g.jsxs("div",{className:"ps-2 pr-2 md:pr-16 md:ps-16 mt-20",children:[!o&&t&&g.jsx(Wu,{to:"",show:t}),o&&g.jsxs("h1",{className:"text-red-600 text-xl",children:["Error : ",o]})]})})}function IL(){const e=tr();return b.useEffect(()=>{e("/home_cinema")},[]),g.jsx(g.Fragment,{})}function TL(){return g.jsx(g.Fragment,{children:g.jsx(rk,{children:g.jsxs(_w,{children:[g.jsx(nn,{path:"/",element:g.jsx(IL,{})}),g.jsx(nn,{path:"/home_cinema",element:g.jsx(q_,{})}),g.jsx(nn,{path:"/home_cinema/watch",element:g.jsx(Mj,{})}),g.jsx(nn,{path:"/home_cinema/search",element:g.jsx(Fj,{})}),g.jsx(nn,{path:"/home_cinema/watch/:id",element:g.jsx(Uj,{})}),g.jsx(nn,{path:"/home_cinema/watch/:id/play/:hash",element:g.jsx(Kj,{})}),g.jsx(nn,{path:"/home_cinema/watch_tv_shows/",element:g.jsx(Jj,{})}),g.jsx(nn,{path:"/home_cinema/tv_shows/:id",element:g.jsx(jA,{})}),g.jsx(nn,{path:"/home_cinema/torrents/:hash/files",element:g.jsx(xL,{})}),g.jsx(nn,{path:"/home_cinema/torrents/",element:g.jsx(EL,{})}),g.jsx(nn,{path:"/home_cinema/streams",element:g.jsx(kL,{})}),g.jsx(nn,{path:"/home_cinema/saved",element:g.jsx($L,{})}),g.jsx(nn,{path:"/home_cinema/saved/show/:id",element:g.jsx(RL,{})})]})})})}HC.createRoot(document.getElementById("root")).render(g.jsx(b.StrictMode,{children:g.jsx(TL,{})}));