@crownpeak/dqm-react-component 1.0.1 → 1.1.0

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/DEVELOPMENT.md +36 -1
  3. package/EXAMPLES.md +187 -0
  4. package/QUICKSTART.md +7 -0
  5. package/README.md +75 -1
  6. package/dist/DQMSidebar.d.ts.map +1 -1
  7. package/dist/components/sidebar/CloseButton.d.ts +6 -0
  8. package/dist/components/sidebar/CloseButton.d.ts.map +1 -0
  9. package/dist/components/sidebar/SidebarContent.d.ts.map +1 -1
  10. package/dist/components/sidebar/SidebarFooter.d.ts.map +1 -1
  11. package/dist/components/sidebar/SidebarHeader.d.ts.map +1 -1
  12. package/dist/components/sidebar/SidebarSkeleton.d.ts.map +1 -1
  13. package/dist/components/sidebar/StyledDrawer.d.ts +6 -1
  14. package/dist/components/sidebar/StyledDrawer.d.ts.map +1 -1
  15. package/dist/components/sidebar/StyledFab.d.ts +4 -1
  16. package/dist/components/sidebar/StyledFab.d.ts.map +1 -1
  17. package/dist/dqm-widget.d.ts +107 -0
  18. package/dist/dqm-widget.esm.js +386 -0
  19. package/dist/dqm-widget.iife.js +132 -0
  20. package/dist/html-pages/DQMWidget.d.ts +36 -0
  21. package/dist/html-pages/DQMWidget.d.ts.map +1 -0
  22. package/dist/html-pages/index.d.ts +32 -0
  23. package/dist/html-pages/index.d.ts.map +1 -0
  24. package/dist/index.cjs +26 -26
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.ts +3 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.html +498 -0
  29. package/dist/index.js +4061 -3839
  30. package/dist/index.js.map +1 -1
  31. package/dist/types.d.ts +83 -0
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/utils/useDomPresence.d.ts +210 -0
  34. package/dist/utils/useDomPresence.d.ts.map +1 -0
  35. package/package.json +12 -3
@@ -0,0 +1,386 @@
1
+ function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o,a={exports:{}},i={};var l,s,c=(o||(o=1,a.exports=function(){if(r)return i;r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return i.Fragment=t,i.jsx=n,i.jsxs=n,i}()),a.exports),u={exports:{}},d={};function p(){if(l)return d;l=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=w.prototype=new v;x.constructor=w,g(x,b.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function k(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function T(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function M(n,r,o,a,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,c,u=!1;if(null===n)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0;break;case p:return M((u=n._init)(n._payload),r,o,a,i)}}if(u)return i=i(n),u=""===a?"."+A(n,0):a,S(i)?(o="",null!=u&&(o=u.replace(P,"$&/")+"/"),M(i,r,o,"",function(e){return e})):null!=i&&(R(i)&&(s=i,c=o+(null==i.key||n&&n.key===i.key?"":(""+i.key).replace(P,"$&/")+"/")+u,i=T(s.type,c,s.props)),r.push(i)),1;u=0;var d,f=""===a?".":a+":";if(S(n))for(var m=0;m<n.length;m++)u+=M(a=n[m],r,o,l=f+A(a,m),i);else if("function"==typeof(m=null===(d=n)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(n=m.call(n),m=0;!(a=n.next()).done;)u+=M(a=a.value,r,o,l=f+A(a,m++),i);else if("object"===l){if("function"==typeof n.then)return M(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,a,i);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function O(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",function(e){return t.call(n,e,o++)}),r}function _(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},I={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return d.Activity=f,d.Children=I,d.Component=b,d.Fragment=n,d.Profiler=o,d.PureComponent=w,d.StrictMode=r,d.Suspense=c,d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,d.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},d.cache=function(e){return function(){return e.apply(null,arguments)}},d.cacheSignal=function(){return null},d.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(a in void 0!==t.key&&(o=""+t.key),t)!E.call(t,a)||"key"===a||"__self"===a||"__source"===a||"ref"===a&&void 0===t.ref||(r[a]=t[a]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var i=Array(a),l=0;l<a;l++)i[l]=arguments[l+2];r.children=i}return T(e.type,o,r)},d.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},d.createElement=function(e,t,n){var r,o={},a=null;if(null!=t)for(r in void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===o[r]&&(o[r]=i[r]);return T(e,a,o)},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:s,render:e}},d.isValidElement=R,d.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:_}},d.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,N)}catch(a){N(a)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},d.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},d.use=function(e){return C.H.use(e)},d.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},d.useCallback=function(e,t){return C.H.useCallback(e,t)},d.useContext=function(e){return C.H.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},d.useEffect=function(e,t){return C.H.useEffect(e,t)},d.useEffectEvent=function(e){return C.H.useEffectEvent(e)},d.useId=function(){return C.H.useId()},d.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},d.useMemo=function(e,t){return C.H.useMemo(e,t)},d.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},d.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},d.useRef=function(e){return C.H.useRef(e)},d.useState=function(e){return C.H.useState(e)},d.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},d.useTransition=function(){return C.H.useTransition()},d.version="19.2.1",d}function f(){return s||(s=1,u.exports=p()),u.exports}var h=f();const m=/* @__PURE__ */n(h),g=/* @__PURE__ */e({__proto__:null,default:m},[h]);var y=/* @__PURE__ */function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),b="-ms-",v="-moz-",w="-webkit-",x="comm",S="rule",k="decl",C="@keyframes",E=Math.abs,T=String.fromCharCode,R=Object.assign;function P(e){return e.trim()}function A(e,t,n){return e.replace(t,n)}function M(e,t){return e.indexOf(t)}function O(e,t){return 0|e.charCodeAt(t)}function _(e,t,n){return e.slice(t,n)}function N(e){return e.length}function I(e){return e.length}function L(e,t){return t.push(e),e}var z=1,$=1,D=0,j=0,F=0,B="";function W(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:z,column:$,length:i,return:""}}function H(e,t){return R(W("",null,null,"",null,null,0),e,{length:-e.length},t)}function U(){return F=j>0?O(B,--j):0,$--,10===F&&($=1,z--),F}function q(){return F=j<D?O(B,j++):0,$++,10===F&&($=1,z++),F}function V(){return O(B,j)}function K(){return j}function G(e,t){return _(B,e,t)}function X(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 Q(e){return z=$=1,D=N(B=e),j=0,[]}function Y(e){return B="",e}function Z(e){return P(G(j-1,te(91===e?e+2:40===e?e+1:e)))}function J(e){for(;(F=V())&&F<33;)q();return X(e)>2||X(F)>3?"":" "}function ee(e,t){for(;--t&&q()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return G(e,K()+(t<6&&32==V()&&32==q()))}function te(e){for(;q();)switch(F){case e:return j;case 34:case 39:34!==e&&39!==e&&te(F);break;case 40:41===e&&te(e);break;case 92:q()}return j}function ne(e,t){for(;q()&&e+F!==57&&(e+F!==84||47!==V()););return"/*"+G(t,j-1)+"*"+T(47===e?e:q())}function re(e){for(;!X(V());)q();return G(e,j)}function oe(e){return Y(ae("",null,null,null,[""],e=Q(e),0,[0],e))}function ae(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",w=o,x=a,S=r,k=v;g;)switch(h=b,b=q()){case 40:if(108!=h&&58==O(k,d-1)){-1!=M(k+=A(Z(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Z(b);break;case 9:case 10:case 13:case 32:k+=J(h);break;case 92:k+=ee(K()-1,7);continue;case 47:switch(V()){case 42:case 47:L(le(ne(q(),K()),t,n),s);break;default:k+="/"}break;case 123*m:l[c++]=N(k)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(k=A(k,/\f/g,"")),f>0&&N(k)-d&&L(f>32?se(k+";",r,n,d-1):se(A(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(L(S=ie(k,t,n,c,u,o,l,v,w=[],x=[],d),a),123===b)if(0===u)ae(k,t,S,S,w,a,d,l,x);else switch(99===p&&110===O(k,3)?100:p){case 100:case 108:case 109:case 115:ae(e,S,S,r&&L(ie(e,S,S,0,0,o,l,v,o,w=[],d),x),o,x,d,l,r?w:x);break;default:ae(k,S,S,S,[""],x,0,l,x)}}c=u=f=0,m=y=1,v=k="",d=i;break;case 58:d=1+N(k),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==U())continue;switch(k+=T(b),b*m){case 38:y=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(N(k)-1)*y,y=1;break;case 64:45===V()&&(k+=Z(q())),p=V(),u=d=N(v=k+=re(K())),b++;break;case 45:45===h&&2==N(k)&&(m=0)}}return a}function ie(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=I(p),h=0,m=0,g=0;h<r;++h)for(var y=0,b=_(e,d+1,d=E(m=i[h])),v=e;y<f;++y)(v=P(m>0?p[y]+" "+b:A(b,/&\f/g,p[y])))&&(s[g++]=v);return W(e,t,n,0===o?S:l,s,c,u)}function le(e,t,n){return W(e,t,n,x,T(F),_(e,2,-2),0)}function se(e,t,n,r){return W(e,t,n,k,_(e,0,r),_(e,r+1,-1),r)}function ce(e,t){for(var n="",r=I(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ue(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case k:return e.return=e.return||e.value;case x:return"";case C:return e.return=e.value+"{"+ce(e.children,r)+"}";case S:e.value=e.props.join(",")}return N(n=ce(e.children,r))?e.return=e.value+"{"+n+"}":""}function de(e){var t=/* @__PURE__ */Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pe=function(e,t,n){for(var r=0,o=0;r=o,o=V(),38===r&&12===o&&(t[n]=1),!X(o);)q();return G(e,j)},fe=function(e,t){return Y(function(e,t){var n=-1,r=44;do{switch(X(r)){case 0:38===r&&12===V()&&(t[n]=1),e[n]+=pe(j-1,t,n);break;case 2:e[n]+=Z(r);break;case 4:if(44===r){e[++n]=58===V()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=T(r)}}while(r=q());return e}(Q(e),t))},he=/* @__PURE__ */new WeakMap,me=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||he.get(n))&&!r){he.set(e,!0);for(var o=[],a=fe(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},ge=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ye(e,t){switch(function(e,t){return 45^O(e,0)?(((t<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}(e,t)){case 5103:return w+"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 w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return w+e+v+e+b+e+e;case 6828:case 4268:return w+e+b+e+e;case 6165:return w+e+b+"flex-"+e+e;case 5187:return w+e+A(e,/(\w+).+(:[^]+)/,w+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return w+e+b+"flex-item-"+A(e,/flex-|-self/,"")+e;case 4675:return w+e+b+"flex-line-pack"+A(e,/align-content|flex-|-self/,"")+e;case 5548:return w+e+b+A(e,"shrink","negative")+e;case 5292:return w+e+b+A(e,"basis","preferred-size")+e;case 6060:return w+"box-"+A(e,"-grow","")+w+e+b+A(e,"grow","positive")+e;case 4554:return w+A(e,/([^-])(transform)/g,"$1"+w+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,w+"$1"),/(image-set)/,w+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,w+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,w+"box-pack:$3"+b+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+w+e+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,w+"$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(N(e)-1-t>6)switch(O(e,t+1)){case 109:if(45!==O(e,t+4))break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+w+"$2-$3$1"+v+(108==O(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch")?ye(A(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==O(e,t+1))break;case 6444:switch(O(e,N(e)-3-(~M(e,"!important")&&10))){case 107:return A(e,":",":"+w)+e;case 101:return A(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+w+(45===O(e,14)?"inline-":"")+"box$3$1"+w+"$2$3$1"+b+"$2box$3")+e}break;case 5936:switch(O(e,t+11)){case 114:return w+e+b+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return w+e+b+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return w+e+b+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return w+e+b+e+e}return e}var be=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case k:e.return=ye(e.value,e.length);break;case C:return ce([H(e,{value:A(e.value,"@","@"+w)})],r);case S:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ce([H(e,{props:[A(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ce([H(e,{props:[A(t,/:(plac\w+)/,":"+w+"input-$1")]}),H(e,{props:[A(t,/:(plac\w+)/,":-moz-$1")]}),H(e,{props:[A(t,/:(plac\w+)/,b+"input-$1")]})],r)}return""})}}],ve=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||be,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)});var s,c,u,d,p=[ue,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[me,ge].concat(a,p),u=I(c),function(e,t,n,r){for(var o="",a=0;a<u;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,ce(oe(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new y({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(l),h};function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}var xe,Se,ke,Ce,Ee={exports:{}},Te={};function Re(){return Se||(Se=1,Ee.exports=function(){if(xe)return Te;xe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case f:case i:return e;default:return p}}case n:return p}}}function w(e){return v(e)===c}return Te.AsyncMode=s,Te.ConcurrentMode=c,Te.ContextConsumer=l,Te.ContextProvider=i,Te.Element=t,Te.ForwardRef=u,Te.Fragment=r,Te.Lazy=h,Te.Memo=f,Te.Portal=n,Te.Profiler=a,Te.StrictMode=o,Te.Suspense=d,Te.isAsyncMode=function(e){return w(e)||v(e)===s},Te.isConcurrentMode=w,Te.isContextConsumer=function(e){return v(e)===l},Te.isContextProvider=function(e){return v(e)===i},Te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Te.isForwardRef=function(e){return v(e)===u},Te.isFragment=function(e){return v(e)===r},Te.isLazy=function(e){return v(e)===h},Te.isMemo=function(e){return v(e)===f},Te.isPortal=function(e){return v(e)===n},Te.isProfiler=function(e){return v(e)===a},Te.isStrictMode=function(e){return v(e)===o},Te.isSuspense=function(e){return v(e)===d},Te.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===a||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===i||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},Te.typeOf=v,Te}()),Ee.exports}!function(){if(Ce)return ke;Ce=1;var e=Re(),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},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;ke=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=l(r);s&&(f=f.concat(s(r)));for(var h=a(t),m=a(r),g=0;g<f.length;++g){var y=f[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var b=c(r,y);try{i(t,y,b)}catch(v){}}}}return t}}();function Pe(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Ae=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Me=function(e,t,n){Ae(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Oe={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},_e=/[A-Z]|^ms/g,Ne=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ie=function(e){return 45===e.charCodeAt(1)},Le=function(e){return null!=e&&"boolean"!=typeof e},ze=/* @__PURE__ */de(function(e){return Ie(e)?e:e.replace(_e,"-$&").toLowerCase()}),$e=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ne,function(e,t,n){return je={name:t,styles:n,next:je},t})}return 1===Oe[e]||Ie(e)||"number"!=typeof t||0===t?t:t+"px"};function De(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return je={name:o.name,styles:o.styles,next:je},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)je={name:i.name,styles:i.styles,next:je},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=De(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":Le(l)&&(r+=ze(a)+":"+$e(a,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=De(e,t,i);switch(a){case"animation":case"animationName":r+=ze(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Le(i[c])&&(r+=ze(a)+":"+$e(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=je,s=n(e);return je=l,De(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var je,Fe=/label:\s*([^\s;{]+)\s*(;|$)/g;function Be(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";je=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=De(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=De(n,t,e[i]),r)o+=a[i]}Fe.lastIndex=0;for(var l,s="";null!==(l=Fe.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:je}}var We,He,Ue=!!g.useInsertionEffect&&g.useInsertionEffect,qe=Ue||function(e){return e()},Ve=Ue||h.useLayoutEffect,Ke=/* @__PURE__ */h.createContext("undefined"!=typeof HTMLElement?/* @__PURE__ */ve({key:"css"}):null),Ge=Ke.Provider,Xe=function(e){/* @__PURE__ */
2
+ return h.forwardRef(function(t,n){var r=h.useContext(Ke);return e(t,r,n)})},Qe=/* @__PURE__ */h.createContext({}),Ye={}.hasOwnProperty,Ze="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Je=function(e,t){var n={};for(var r in t)Ye.call(t,r)&&(n[r]=t[r]);return n[Ze]=e,n},et=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ae(t,n,r),qe(function(){return Me(t,n,r)}),null},tt=/* @__PURE__ */Xe(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ze],a=[r],i="";"string"==typeof e.className?i=Pe(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=Be(a,void 0,h.useContext(Qe));i+=t.key+"-"+l.name;var s={};for(var c in e)Ye.call(e,c)&&"css"!==c&&c!==Ze&&(s[c]=e[c]);return s.className=i,n&&(s.ref=n),/* @__PURE__ */h.createElement(h.Fragment,null,/* @__PURE__ */h.createElement(et,{cache:t,serialized:l,isStringTag:"string"==typeof o}),/* @__PURE__ */h.createElement(o,s))}),nt=c.Fragment,rt=function(e,t,n){return Ye.call(t,"css")?c.jsx(tt,Je(e,t),n):c.jsx(e,t,n)},ot=function(e,t,n){return Ye.call(t,"css")?c.jsxs(tt,Je(e,t),n):c.jsxs(e,t,n)},at={exports:{}},it={},lt={exports:{}},st={};function ct(){return He||(He=1,lt.exports=(We||(We=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,w(e),!h)if(null!==n(s))h=!0,k||(k=!0,S());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var S,k=!1,C=-1,E=5,T=-1;function R(){return!(!g&&e.unstable_now()-T<E)}function P(){if(g=!1,k){var t=e.unstable_now();T=t;var o=!0;try{e:{h=!1,m&&(m=!1,b(C),C=-1),f=!0;var a=p;try{t:{for(w(t),d=n(s);null!==d&&!(d.expirationTime>t&&R());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){d.callback=l,w(t),o=!0;break t}d===n(s)&&r(s),w(t)}else r(s);d=n(s)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,p=a,f=!1}o=void 0}}finally{o?S():k=!1}}}if("function"==typeof v)S=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,M=A.port2;A.port1.onmessage=P,S=function(){M.postMessage(null)}}else S=function(){y(P,0)};function O(t,n){C=y(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(b(C),C=-1):m=!0,O(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,k||(k=!0,S()))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(st)),st)),lt.exports}var ut,dt,pt,ft,ht={exports:{}},mt={};function gt(){if(ut)return mt;ut=1;var e=f();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mt.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},mt.flushSync=function(e){var t=a.T,n=r.p;try{if(a.T=null,r.p=2,e)return e()}finally{a.T=t,r.p=n,r.d.f()}},mt.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},mt.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},mt.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=i(n,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:a,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:a,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},mt.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=i(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},mt.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=i(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},mt.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=i(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},mt.requestFormReset=function(e){r.d.r(e)},mt.unstable_batchedUpdates=function(e,t){return e(t)},mt.useFormState=function(e,t,n){return a.H.useFormState(e,t,n)},mt.useFormStatus=function(){return a.H.useHostTransitionStatus()},mt.version="19.2.1",mt}function yt(){if(dt)return ht.exports;return dt=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),ht.exports=gt(),ht.exports}function bt(){if(pt)return it;pt=1;var e=ct(),t=f(),n=yt();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(a(e)!==e)throw Error(r(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function M(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case x:return"Suspense";case S:return"SuspenseList";case E:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case v:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:M(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return M(e(t))}catch(n){}}return null}var O=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},L=[],z=-1;function $(e){return{current:e}}function D(e){0>z||(e.current=L[z],L[z]=null,z--)}function j(e,t){z++,L[z]=e.current,e.current=t}var F,B,W=$(null),H=$(null),U=$(null),q=$(null);function V(e,t){switch(j(U,t),j(H,e),j(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(W),j(W,e)}function K(){D(W),D(H),D(U)}function G(e){null!==e.memoizedState&&j(q,e);var t=W.current,n=wd(t,e.type);t!==n&&(j(H,e),j(W,n))}function X(e){H.current===e&&(D(W),D(H)),q.current===e&&(D(q),pp._currentValue=I)}function Q(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||"",B=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+F+e+B}var Y=!1;function Z(e,t){if(!e||Y)return"";Y=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(a){r=a}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(l){if(l&&r&&"string"==typeof l.stack)return[l.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),i=a[0],l=a[1];if(i&&l){var s=i.split("\n"),c=l.split("\n");for(o=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===s.length||o===c.length)for(r=s.length-1,o=c.length-1;1<=r&&0<=o&&s[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(s[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||s[r]!==c[o]){var u="\n"+s[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function J(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);case 31:return Q("Activity");default:return""}}function ee(e){try{var t="",n=null;do{t+=J(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var te=Object.prototype.hasOwnProperty,ne=e.unstable_scheduleCallback,re=e.unstable_cancelCallback,oe=e.unstable_shouldYield,ae=e.unstable_requestPaint,ie=e.unstable_now,le=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,ue=e.unstable_NormalPriority,de=e.unstable_LowPriority,pe=e.unstable_IdlePriority,fe=e.log,he=e.unstable_setDisableYieldValue,me=null,ge=null;function ye(e){if("function"==typeof fe&&he(e),ge&&"function"==typeof ge.setStrictMode)try{ge.setStrictMode(me,e)}catch(t){}}var be=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ve(e)/we|0)|0},ve=Math.log,we=Math.LN2;var xe=256,Se=262144,ke=4194304;function Ce(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ee(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~a)?o=Ce(r):0!==(i&=l)?o=Ce(i):n||0!==(n=l&~e)&&(o=Ce(n)):0!==(l=r&~a)?o=Ce(l):0!==i?o=Ce(i):n||0!==(n=r&~e)&&(o=Ce(n)),0===o?0:0!==t&&t!==o&&0===(t&a)&&((a=o&-o)>=(n=t&-t)||32===a&&4194048&n)?t:o}function Te(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Re(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;default:return-1}}function Pe(){var e=ke;return!(62914560&(ke<<=1))&&(ke=4194304),e}function Ae(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function _e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Ne(e,t){var n=t&-t;return 0!==((n=42&n?1:Ie(n))&(e.suspendedLanes|t))?0:n}function Ie(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Le(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=N.p;return 0!==e?e:void 0===(e=window.event)?32:Pp(e.type)}function $e(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var De=Math.random().toString(36).slice(2),je="__reactFiber$"+De,Fe="__reactProps$"+De,Be="__reactContainer$"+De,We="__reactEvents$"+De,He="__reactListeners$"+De,Ue="__reactHandles$"+De,qe="__reactResources$"+De,Ve="__reactMarker$"+De;function Ke(e){delete e[je],delete e[Fe],delete e[We],delete e[He],delete e[Ue]}function Ge(e){var t=e[je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Be]||n[je]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[je])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[je]||e[Be]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ye(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:/* @__PURE__ */new Map,hoistableScripts:/* @__PURE__ */new Map}),t}function Ze(e){e[Ve]=!0}var Je=/* @__PURE__ */new Set,et={};function tt(e,t){nt(e,t),nt(e+"Capture",t)}function nt(e,t){for(et[e]=t,e=0;e<t.length;e++)Je.add(t[e])}var rt=RegExp("^[: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]*$"),ot={},at={};function lt(e,t,n){if(o=t,te.call(at,o)||!te.call(ot,o)&&(rt.test(o)?at[o]=!0:(ot[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function st(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ht(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function gt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,a,i,l){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?St(e,i,dt(t)):null!=n?St(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=a&&(e.defaultChecked=!!a),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function xt(e,t,n,r,o,a,i,l){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return void ht(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i),ht(e)}function St(e,t,n){"number"===t&&gt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ct(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(O(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),ht(e)}function Tt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Rt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Pt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Rt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function At(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var a in t)o=t[a],t.hasOwnProperty(a)&&n[a]!==o&&Pt(e,a,o)}else for(var i in t)t.hasOwnProperty(i)&&Pt(e,i,t[i])}function Mt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ot=/* @__PURE__ */new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_t=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nt(e){return _t.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var Lt=null;function zt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function jt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=o[Fe]||null;if(!a)throw Error(r(90));wt(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":Ct(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Ft=!1;function Bt(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,jt(t),e)))for(t=0;t<e.length;t++)jt(e[t])}}function Wt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Fe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ht=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Ht)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(Jp){Ut=!1}var Vt=null,Kt=null,Gt=null;function Xt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Zt(){return!1}function Jt(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Yt:Zt,this.isPropagationStopped=Zt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),ln=Jt(an),sn=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(sn),un=Jt(u({},sn,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),pn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),fn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(u({},rn,{data:0})),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gn={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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function vn(){return bn}var wn=Jt(u({},an,{key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(u({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cn=Jt(u({},sn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),En=Jt(u({},rn,{newState:0,oldState:0})),Tn=[9,13,27,32],Rn=Ht&&"CompositionEvent"in window,Pn=null;Ht&&"documentMode"in document&&(Pn=document.documentMode);var An=Ht&&"TextEvent"in window&&!Pn,Mn=Ht&&(!Rn||Pn&&8<Pn&&11>=Pn),On=String.fromCharCode(32),_n=!1;function Nn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var zn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=ad(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jn=null,Fn=null;function Bn(e){Yu(e,0)}function Wn(e){if(mt(Qe(e)))return e}function Hn(e,t){if("change"===e)return t}var Un=!1;if(Ht){var qn;if(Ht){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}qn=Vn}else qn=!1;Un=qn&&(!document.documentMode||9<document.documentMode)}function Gn(){jn&&(jn.detachEvent("onpropertychange",Xn),Fn=jn=null)}function Xn(e){if("value"===e.propertyName&&Wn(Fn)){var t=[];Dn(t,Fn,e,zt(e)),Bt(Bn,t)}}function Qn(e,t,n){"focusin"===e?(Gn(),Fn=n,(jn=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&Gn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Fn)}function Zn(e,t){if("click"===e)return Wn(t)}function Jn(e,t){if("input"===e||"change"===e)return Wn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!te.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ar(e){for(var t=gt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=gt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var lr=Ht&&"documentMode"in document&&11>=document.documentMode,sr=null,cr=null,ur=null,dr=!1;function pr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==sr||sr!==gt(r)||("selectionStart"in(r=sr)&&ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=ad(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sr)))}function fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:fr("Animation","AnimationEnd"),animationiteration:fr("Animation","AnimationIteration"),animationstart:fr("Animation","AnimationStart"),transitionrun:fr("Transition","TransitionRun"),transitionstart:fr("Transition","TransitionStart"),transitioncancel:fr("Transition","TransitionCancel"),transitionend:fr("Transition","TransitionEnd")},mr={},gr={};function yr(e){if(mr[e])return mr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in gr)return mr[e]=n[t];return e}Ht&&(gr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var br=yr("animationend"),vr=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Sr=yr("transitionstart"),kr=yr("transitioncancel"),Cr=yr("transitionend"),Er=/* @__PURE__ */new Map,Tr="abort auxClick beforeToggle 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 Rr(e,t){Er.set(e,t),tt(t,[e])}Tr.push("scrollEnd");var Pr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Ar=[],Mr=0,Or=0;function _r(){for(var e=Mr,t=Or=Mr=0;t<e;){var n=Ar[t];Ar[t++]=null;var r=Ar[t];Ar[t++]=null;var o=Ar[t];Ar[t++]=null;var a=Ar[t];if(Ar[t++]=null,null!==r&&null!==o){var i=r.pending;null===i?o.next=o:(o.next=i.next,i.next=o),r.pending=o}0!==a&&zr(n,o,a)}}function Nr(e,t,n,r){Ar[Mr++]=e,Ar[Mr++]=t,Ar[Mr++]=n,Ar[Mr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Ir(e,t,n,r){return Nr(e,t,n,r),$r(e)}function Lr(e,t){return Nr(e,null,null,t),$r(e)}function zr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(o=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,o&&null!==t&&(o=31-be(n),null===(r=(e=a.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),a):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function jr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new jr(e,t,n,r)}function Br(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wr(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ur(e,t,n,o,a,i){var l=0;if(o=e,"function"==typeof e)Br(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,W.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case E:return(e=Fr(31,n,t,a)).elementType=E,e.lanes=i,e;case m:return qr(n.children,a,i,t);case g:l=8,a|=24;break;case y:return(e=Fr(12,n,t,2|a)).elementType=y,e.lanes=i,e;case x:return(e=Fr(13,n,t,a)).elementType=x,e.lanes=i,e;case S:return(e=Fr(19,n,t,a)).elementType=S,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:l=10;break e;case b:l=9;break e;case w:l=11;break e;case k:l=14;break e;case C:l=16,o=null;break e}l=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Fr(l,n,t,a)).elementType=e,t.type=o,t.lanes=i,t}function qr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function Kr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xr=/* @__PURE__ */new WeakMap;function Qr(e,t){if("object"==typeof e&&null!==e){var n=Xr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ee(t)},Xr.set(e,t),t)}return{value:e,source:t,stack:ee(t)}}var Yr=[],Zr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,ao="";function io(e,t){Yr[Zr++]=eo,Yr[Zr++]=Jr,Jr=e,eo=t}function lo(e,t,n){to[no++]=oo,to[no++]=ao,to[no++]=ro,ro=e;var r=oo;e=ao;var o=32-be(r)-1;r&=~(1<<o),n+=1;var a=32-be(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,oo=1<<32-be(t)+o|n<<o|r,ao=a+e}else oo=1<<a|n<<o|r,ao=e}function so(e){null!==e.return&&(io(e,1),lo(e,1,0))}function co(e){for(;e===Jr;)Jr=Yr[--Zr],Yr[Zr]=null,eo=Yr[--Zr],Yr[Zr]=null;for(;e===ro;)ro=to[--no],to[no]=null,ao=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=ao,to[no++]=ro,oo=t.id,ao=t.overflow,ro=e}var po=null,fo=null,ho=!1,mo=null,go=!1,yo=Error(r(519));function bo(e){throw Co(Qr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[je]=e,t[Fe]=r,n){case"dialog":Zu("cancel",t),Zu("close",t);break;case"iframe":case"object":case"embed":Zu("load",t);break;case"video":case"audio":for(n=0;n<Xu.length;n++)Zu(Xu[n],t);break;case"source":Zu("error",t);break;case"img":case"image":case"link":Zu("error",t),Zu("load",t);break;case"details":Zu("toggle",t);break;case"input":Zu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Zu("invalid",t);break;case"textarea":Zu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Zu("beforetoggle",t),Zu("toggle",t)),null!=r.onScroll&&Zu("scroll",t),null!=r.onScrollEnd&&Zu("scrollend",t),null!=r.onClick&&(t.onclick=It),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(po=e.return;po;)switch(po.tag){case 5:case 31:case 13:return void(go=!1);case 27:case 3:return void(go=!0);default:po=po.return}}function xo(e){if(e!==po)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&fo&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));fo=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));fo=$d(e)}else 27===n?(n=fo,Pd(e.type)?(e=zd,zd=null,fo=e):fo=n):fo=po?Ld(e.stateNode.nextSibling):null;return!0}function So(){fo=po=null,ho=!1}function ko(){var e=mo;return null!==e&&(null===_c?_c=e:_c.push.apply(_c,e),mo=null),e}function Co(e){null===mo?mo=[e]:mo.push(e)}var Eo=$(null),To=null,Ro=null;function Po(e,t,n){j(Eo,t._currentValue),t._currentValue=n}function Ao(e){e._currentValue=Eo.current,D(Eo)}function Mo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,o){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var l=a.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=a;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Mo(i.return,n,e),o||(l=null);break e}i=s.next}}else if(18===a.tag){if(null===(l=a.return))throw Error(r(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),Mo(l,n,e),l=null}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===e){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}}function _o(e,t,n,o){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var l=a.alternate;if(null===l)throw Error(r(387));if(null!==(l=l.memoizedProps)){var s=a.type;er(a.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(a===q.current){if(null===(l=a.alternate))throw Error(r(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(pp):e=[pp])}a=a.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function No(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Io(e){To=e,Ro=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Lo(e){return $o(To,e)}function zo(e,t){return null===To&&Io(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Ro){if(null===e)throw Error(r(308));Ro=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ro=Ro.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},jo=e.unstable_scheduleCallback,Fo=e.unstable_NormalPriority,Bo={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wo(){return{controller:new Do,data:/* @__PURE__ */new Map,refCount:0}}function Ho(e){e.refCount--,0===e.refCount&&jo(Fo,function(){e.controller.abort()})}var Uo=null,qo=0,Vo=0,Ko=null;function Go(){if(0===--qo&&null!==Uo){null!==Ko&&(Ko.status="fulfilled");var e=Uo;Uo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Xo=_.S;_.S=function(e,t){Lc=ie(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Uo){var n=Uo=[];qo=0,Vo=Uu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}qo++,t.then(Go,Go)}(0,t),null!==Xo&&Xo(e,t)};var Qo=$(null);function Yo(){var e=Qo.current;return null!==e?e:gc.pooledCache}function Zo(e,t){j(Qo,null===t?Qo.current:t.pool)}function Jo(){var e=Yo();return null===e?null:{parent:Bo._currentValue,pool:e}}var ea=Error(r(460)),ta=Error(r(474)),na=Error(r(542)),ra={then:function(){}};function oa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function aa(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(It,It),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ca(e=t.reason),e;default:if("string"==typeof t.status)t.then(It,It);else{if(null!==(e=gc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ca(e=t.reason),e}throw la=t,ea}}function ia(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw la=t,ea;throw t}}var la=null;function sa(){if(null===la)throw Error(r(459));var e=la;return la=null,e}function ca(e){if(e===ea||e===na)throw Error(r(483))}var ua=null,da=0;function pa(e){var t=da;return da+=1,null===ua&&(ua=[]),aa(ua,e,t)}function fa(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ha(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=/* @__PURE__ */new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Wr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Vr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===m?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===C&&ia(o)===t.type)?(fa(t=a(t,n.props),n),t.return=e,t):(fa(t=Ur(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=qr(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return fa(n=Ur(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case C:return f(e,t=ia(t),n)}if(O(t)||P(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,pa(t),n);if(t.$$typeof===v)return f(e,zo(e,t),n);ha(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case C:return g(e,t,n=ia(n),r)}if(O(n)||P(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,pa(n),r);if(n.$$typeof===v)return g(e,t,zo(e,n),r);ha(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return y(e,t,n,r=ia(r),o)}if(O(r)||P(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,pa(r),o);if(r.$$typeof===v)return y(e,t,n,zo(t,r),o);ha(t,r)}return null}function b(s,c,u,d){if("object"==typeof u&&null!==u&&u.type===m&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case p:e:{for(var w=u.key;null!==c;){if(c.key===w){if((w=u.type)===m){if(7===c.tag){n(s,c.sibling),(d=a(c,u.props.children)).return=s,s=d;break e}}else if(c.elementType===w||"object"==typeof w&&null!==w&&w.$$typeof===C&&ia(w)===c.type){n(s,c.sibling),fa(d=a(c,u.props),u),d.return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===m?((d=qr(u.props.children,s.mode,d,u.key)).return=s,s=d):(fa(d=Ur(u.type,u.key,u.props,null,s.mode,d),u),d.return=s,s=d)}return l(s);case h:e:{for(w=u.key;null!==c;){if(c.key===w){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(d=a(c,u.children||[])).return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}(d=Gr(u,s.mode,d)).return=s,s=d}return l(s);case C:return b(s,c,u=ia(u),d)}if(O(u))return function(r,a,l,s){for(var c=null,u=null,d=a,p=a=0,h=null;null!==d&&p<l.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var m=g(r,d,l[p],s);if(null===m){null===d&&(d=h);break}e&&d&&null===m.alternate&&t(r,d),a=i(m,a,p),null===u?c=m:u.sibling=m,u=m,d=h}if(p===l.length)return n(r,d),ho&&io(r,p),c;if(null===d){for(;p<l.length;p++)null!==(d=f(r,l[p],s))&&(a=i(d,a,p),null===u?c=d:u.sibling=d,u=d);return ho&&io(r,p),c}for(d=o(d);p<l.length;p++)null!==(h=y(d,r,p,l[p],s))&&(e&&null!==h.alternate&&d.delete(null===h.key?p:h.key),a=i(h,a,p),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&io(r,p),c}(s,c,u,d);if(P(u)){if("function"!=typeof(w=P(u)))throw Error(r(150));return function(a,l,s,c){if(null==s)throw Error(r(151));for(var u=null,d=null,p=l,h=l=0,m=null,b=s.next();null!==p&&!b.done;h++,b=s.next()){p.index>h?(m=p,p=null):m=p.sibling;var v=g(a,p,b.value,c);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(a,p),l=i(v,l,h),null===d?u=v:d.sibling=v,d=v,p=m}if(b.done)return n(a,p),ho&&io(a,h),u;if(null===p){for(;!b.done;h++,b=s.next())null!==(b=f(a,b.value,c))&&(l=i(b,l,h),null===d?u=b:d.sibling=b,d=b);return ho&&io(a,h),u}for(p=o(p);!b.done;h++,b=s.next())null!==(b=y(p,a,h,b.value,c))&&(e&&null!==b.alternate&&p.delete(null===b.key?h:b.key),l=i(b,l,h),null===d?u=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(a,e)}),ho&&io(a,h),u}(s,c,u=w.call(u),d)}if("function"==typeof u.then)return b(s,c,pa(u),d);if(u.$$typeof===v)return b(s,c,zo(s,u),d);ha(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(d=a(c,u)).return=s,s=d):(n(s,c),(d=Vr(u,s.mode,d)).return=s,s=d),l(s)):n(s,c)}return function(e,t,n,r){try{da=0;var o=b(e,t,n,r);return ua=null,o}catch(i){if(i===ea||i===na)throw i;var a=Fr(29,i,null,e.mode);return a.lanes=r,a.return=e,a}}}var ga=ma(!0),ya=ma(!1),ba=!1;function va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&mc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),zr(e,null,n),t}return Nr(e,r,t,n),$r(e)}function ka(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_e(e,n)}}function Ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ea=!1;function Ta(){if(Ea){if(null!==Ko)throw Ko}}function Ra(e,t,n,r){Ea=!1;var o=e.updateQueue;ba=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var d=e.alternate;null!==d&&((l=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(null!==a){var p=o.baseState;for(i=0,d=c=s=null,l=a;;){var f=-536870913&l.lane,h=f!==l.lane;if(h?(bc&f)===f:(r&f)===f){0!==f&&f===Vo&&(Ea=!0),null!==d&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,g=l;f=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){p=m.call(y,p,f);break e}p=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=g.payload)?m.call(y,p,f):m))break e;p=u({},p,f);break e;case 2:ba=!0}}null!==(f=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[f]:h.push(f))}else h={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=h,s=p):d=d.next=h,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(h=l).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(s=p),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===a&&(o.shared.lanes=0),Tc|=i,e.lanes=i,e.memoizedState=p}}function Pa(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Aa(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pa(n[e],t)}var Ma=$(null),Oa=$(0);function _a(e,t){j(Oa,e=Cc),j(Ma,t),Cc=e|t.baseLanes}function Na(){j(Oa,Cc),j(Ma,Ma.current)}function Ia(){Cc=Oa.current,D(Ma),D(Oa)}var La=$(null),za=null;function $a(e){var t=e.alternate;j(Wa,1&Wa.current),j(La,e),null===za&&(null===t||null!==Ma.current||null!==t.memoizedState)&&(za=e)}function Da(e){j(Wa,Wa.current),j(La,e),null===za&&(za=e)}function ja(e){22===e.tag?(j(Wa,Wa.current),j(La,e),null===za&&(za=e)):Fa()}function Fa(){j(Wa,Wa.current),j(La,La.current)}function Ba(e){D(La),za===e&&(za=null),D(Wa)}var Wa=$(0);function Ha(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Nd(n)||Id(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ua=0,qa=null,Va=null,Ka=null,Ga=!1,Xa=!1,Qa=!1,Ya=0,Za=0,Ja=null,ei=0;function ti(){throw Error(r(321))}function ni(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ri(e,t,n,r,o,a){return Ua=a,qa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=null===e||null===e.memoizedState?bl:vl,Qa=!1,a=n(r,o),Qa=!1,Xa&&(a=ai(t,n,r,o)),oi(e),a}function oi(e){_.H=yl;var t=null!==Va&&null!==Va.next;if(Ua=0,Ka=Va=qa=null,Ga=!1,Za=0,Ja=null,t)throw Error(r(300));null===e||Ll||null!==(e=e.dependencies)&&No(e)&&(Ll=!0)}function ai(e,t,n,o){qa=e;var a=0;do{if(Xa&&(Ja=null),Za=0,Xa=!1,25<=a)throw Error(r(301));if(a+=1,Ka=Va=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}_.H=wl,i=t(n,o)}while(Xa);return i}function ii(){var e=_.H,t=e.useState()[0];return t="function"==typeof t.then?pi(t):t,e=e.useState()[0],(null!==Va?Va.memoizedState:null)!==e&&(qa.flags|=1024),t}function li(){var e=0!==Ya;return Ya=0,e}function si(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ci(e){if(Ga){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ga=!1}Ua=0,Ka=Va=qa=null,Xa=!1,Za=Ya=0,Ja=null}function ui(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ka?qa.memoizedState=Ka=e:Ka=Ka.next=e,Ka}function di(){if(null===Va){var e=qa.alternate;e=null!==e?e.memoizedState:null}else e=Va.next;var t=null===Ka?qa.memoizedState:Ka.next;if(null!==t)Ka=t,Va=e;else{if(null===e){if(null===qa.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Va=e).memoizedState,baseState:Va.baseState,baseQueue:Va.baseQueue,queue:Va.queue,next:null},null===Ka?qa.memoizedState=Ka=e:Ka=Ka.next=e}return Ka}function pi(e){var t=Za;return Za+=1,null===Ja&&(Ja=[]),e=aa(Ja,e,t),t=qa,null===(null===Ka?t.memoizedState:Ka.next)&&(t=t.alternate,_.H=null===t||null===t.memoizedState?bl:vl),e}function fi(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return pi(e);if(e.$$typeof===v)return Lo(e)}throw Error(r(438,String(e)))}function hi(e){var t=null,n=qa.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=qa.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},qa.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=T;return t.index++,n}function mi(e,t){return"function"==typeof t?t(e):t}function gi(e){return yi(di(),Va,e)}function yi(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var a=e.baseQueue,i=o.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}t.baseQueue=a=i,o.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var s=l=null,c=null,u=t=a.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(bc&p)===p:(Ua&p)===p){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===Vo&&(d=!0);else{if((Ua&f)===f){u=u.next,f===Vo&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=p,l=i):c=c.next=p,qa.lanes|=f,Tc|=f}p=u.action,Qa&&n(i,p),i=u.hasEagerState?u.eagerState:n(i,p)}else f={lane:p,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=f,l=i):c=c.next=f,qa.lanes|=p,Tc|=p;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=s,!er(i,e.memoizedState)&&(Ll=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,o.lastRenderedState=i}return null===a&&(o.lanes=0),[e.memoizedState,o.dispatch]}function bi(e){var t=di(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);er(i,t.memoizedState)||(Ll=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function vi(e,t,n){var o=qa,a=di(),i=ho;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var l=!er((Va||a).memoizedState,n);if(l&&(a.memoizedState=n,Ll=!0),a=a.queue,Ui(Si.bind(null,o,a,e),[e]),a.getSnapshot!==t||l||null!==Ka&&1&Ka.memoizedState.tag){if(o.flags|=2048,ji(9,{destroy:void 0},xi.bind(null,o,a,n,t),null),null===gc)throw Error(r(349));i||127&Ua||wi(o,t,n)}return n}function wi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=qa.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},qa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xi(e,t,n,r){t.value=n,t.getSnapshot=r,ki(t)&&Ci(e)}function Si(e,t,n){return n(function(){ki(t)&&Ci(e)})}function ki(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Ci(e){var t=Lr(e,2);null!==t&&Qc(t,e,2)}function Ei(e){var t=ui();if("function"==typeof e){var n=e;if(e=n(),Qa){ye(!0);try{n()}finally{ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:e},t}function Ti(e,t,n,r){return e.baseState=n,yi(e,Va,"function"==typeof r?r:mi)}function Ri(e,t,n,o,a){if(hl(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==_.T?n(!0):i.isTransition=!1,o(i),null===(n=t.pending)?(i.next=t.pending=i,Pi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Pi(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var a=_.T,i={};_.T=i;try{var l=n(o,r),s=_.S;null!==s&&s(i,l),Ai(e,t,l)}catch(c){Oi(e,t,c)}finally{null!==a&&null!==i.types&&(a.types=i.types),_.T=a}}else try{Ai(e,t,a=n(o,r))}catch(u){Oi(e,t,u)}}function Ai(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Mi(e,t,n)},function(n){return Oi(e,t,n)}):Mi(e,t,n)}function Mi(e,t,n){t.status="fulfilled",t.value=n,_i(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pi(e,n)))}function Oi(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,_i(t),t=t.next}while(t!==r)}e.action=null}function _i(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ni(e,t){return t}function Ii(e,t){if(ho){var n=gc.formState;if(null!==n){e:{var r=qa;if(ho){if(fo){t:{for(var o=fo,a=go;8!==o.nodeType;){if(!a){o=null;break t}if(null===(o=Ld(o.nextSibling))){o=null;break t}}o="F!"===(a=o.data)||"F"===a?o:null}if(o){fo=Ld(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ui()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:t},n.queue=r,n=dl.bind(null,qa,r),r.dispatch=n,r=Ei(!1),a=fl.bind(null,qa,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ui()).queue=o,n=Ri.bind(null,qa,o,a,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Li(e){return zi(di(),Va,e)}function zi(e,t,n){if(t=yi(e,t,Ni)[0],e=gi(mi)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=pi(t)}catch(i){if(i===ea)throw na;throw i}else r=t;var o=(t=di()).queue,a=o.dispatch;return n!==t.memoizedState&&(qa.flags|=2048,ji(9,{destroy:void 0},$i.bind(null,o,n),null)),[r,a,e]}function $i(e,t){e.action=t}function Di(e){var t=di(),n=Va;if(null!==n)return zi(t,n,e);di(),t=t.memoizedState;var r=(n=di()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ji(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=qa.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},qa.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fi(){return di().memoizedState}function Bi(e,t,n,r){var o=ui();qa.flags|=e,o.memoizedState=ji(1|t,{destroy:void 0},n,void 0===r?null:r)}function Wi(e,t,n,r){var o=di();r=void 0===r?null:r;var a=o.memoizedState.inst;null!==Va&&null!==r&&ni(r,Va.memoizedState.deps)?o.memoizedState=ji(t,a,n,r):(qa.flags|=e,o.memoizedState=ji(1|t,a,n,r))}function Hi(e,t){Bi(8390656,8,e,t)}function Ui(e,t){Wi(2048,8,e,t)}function qi(e){var t=di().memoizedState;return function(e){qa.flags|=4;var t=qa.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},qa.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&mc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Vi(e,t){return Wi(4,2,e,t)}function Ki(e,t){return Wi(4,4,e,t)}function Gi(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Xi(e,t,n){n=null!=n?n.concat([e]):null,Wi(4,4,Gi.bind(null,t,e),n)}function Qi(){}function Yi(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&ni(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zi(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&ni(t,r[1]))return r[0];if(r=e(),Qa){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[r,t],r}function Ji(e,t,n){return void 0===n||1073741824&Ua&&!(261930&bc)?e.memoizedState=t:(e.memoizedState=n,e=Xc(),qa.lanes|=e,Tc|=e,n)}function el(e,t,n,r){return er(n,t)?n:null!==Ma.current?(e=Ji(e,n,r),er(e,t)||(Ll=!0),e):42&Ua&&(!(1073741824&Ua)||261930&bc)?(e=Xc(),qa.lanes|=e,Tc|=e,t):(Ll=!0,e.memoizedState=n)}function tl(e,t,n,r,o){var a=N.p;N.p=0!==a&&8>a?a:8;var i,l,s,c=_.T,u={};_.T=u,fl(e,!1,t,n);try{var d=o(),p=_.S;if(null!==p&&p(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)pl(e,t,(i=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<l.length;e++)(0,l[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Gc());else pl(e,t,r,Gc())}catch(f){pl(e,t,{then:function(){},status:"rejected",reason:f},Gc())}finally{N.p=a,null!==c&&null!==u.types&&(c.types=u.types),_.T=c}}function nl(){}function rl(e,t,n,o){if(5!==e.tag)throw Error(r(476));var a=ol(e).queue;tl(e,a,t,I,null===n?nl:function(){return al(e),n(o)})}function ol(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:I},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function al(e){var t=ol(e);null===t.next&&(t=e.alternate.memoizedState),pl(e,t.next.queue,{},Gc())}function il(){return Lo(pp)}function ll(){return di().memoizedState}function sl(){return di().memoizedState}function cl(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Sa(t,e=xa(n),n);return null!==r&&(Qc(r,t,n),ka(r,t,n)),t={cache:Wo()},void(e.payload=t)}t=t.return}}function ul(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hl(e)?ml(t,n):null!==(n=Ir(e,t,n,r))&&(Qc(n,e,r),gl(n,t,r))}function dl(e,t,n){pl(e,t,n,Gc())}function pl(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hl(e))ml(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,er(l,i))return Nr(e,t,o,0),null===gc&&_r(),!1}catch(s){}if(null!==(n=Ir(e,t,o,r)))return Qc(n,e,r),gl(n,t,r),!0}return!1}function fl(e,t,n,o){if(o={lane:2,revertLane:Uu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hl(e)){if(t)throw Error(r(479))}else null!==(t=Ir(e,n,o,2))&&Qc(t,e,2)}function hl(e){var t=e.alternate;return e===qa||null!==t&&t===qa}function ml(e,t){Xa=Ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gl(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_e(e,n)}}var yl={readContext:Lo,use:fi,useCallback:ti,useContext:ti,useEffect:ti,useImperativeHandle:ti,useLayoutEffect:ti,useInsertionEffect:ti,useMemo:ti,useReducer:ti,useRef:ti,useState:ti,useDebugValue:ti,useDeferredValue:ti,useTransition:ti,useSyncExternalStore:ti,useId:ti,useHostTransitionStatus:ti,useFormState:ti,useActionState:ti,useOptimistic:ti,useMemoCache:ti,useCacheRefresh:ti};yl.useEffectEvent=ti;var bl={readContext:Lo,use:fi,useCallback:function(e,t){return ui().memoizedState=[e,void 0===t?null:t],e},useContext:Lo,useEffect:Hi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Bi(4194308,4,Gi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){Bi(4,2,e,t)},useMemo:function(e,t){var n=ui();t=void 0===t?null:t;var r=e();if(Qa){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ui();if(void 0!==n){var o=n(t);if(Qa){ye(!0);try{n(t)}finally{ye(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=ul.bind(null,qa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ui().memoizedState=e},useState:function(e){var t=(e=Ei(e)).queue,n=dl.bind(null,qa,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qi,useDeferredValue:function(e,t){return Ji(ui(),e,t)},useTransition:function(){var e=Ei(!1);return e=tl.bind(null,qa,e.queue,!0,!1),ui().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=qa,a=ui();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===gc)throw Error(r(349));127&bc||wi(o,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hi(Si.bind(null,o,i,e),[e]),o.flags|=2048,ji(9,{destroy:void 0},xi.bind(null,o,i,n,t),null),n},useId:function(){var e=ui(),t=gc.identifierPrefix;if(ho){var n=ao;t="_"+t+"R_"+(n=(oo&~(1<<32-be(oo)-1)).toString(32)+n),0<(n=Ya++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ei++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:il,useFormState:Ii,useActionState:Ii,useOptimistic:function(e){var t=ui();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fl.bind(null,qa,!0,n),n.dispatch=t,[e,t]},useMemoCache:hi,useCacheRefresh:function(){return ui().memoizedState=cl.bind(null,qa)},useEffectEvent:function(e){var t=ui(),n={impl:e};return t.memoizedState=n,function(){if(2&mc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vl={readContext:Lo,use:fi,useCallback:Yi,useContext:Lo,useEffect:Ui,useImperativeHandle:Xi,useInsertionEffect:Vi,useLayoutEffect:Ki,useMemo:Zi,useReducer:gi,useRef:Fi,useState:function(){return gi(mi)},useDebugValue:Qi,useDeferredValue:function(e,t){return el(di(),Va.memoizedState,e,t)},useTransition:function(){var e=gi(mi)[0],t=di().memoizedState;return["boolean"==typeof e?e:pi(e),t]},useSyncExternalStore:vi,useId:ll,useHostTransitionStatus:il,useFormState:Li,useActionState:Li,useOptimistic:function(e,t){return Ti(di(),0,e,t)},useMemoCache:hi,useCacheRefresh:sl};vl.useEffectEvent=qi;var wl={readContext:Lo,use:fi,useCallback:Yi,useContext:Lo,useEffect:Ui,useImperativeHandle:Xi,useInsertionEffect:Vi,useLayoutEffect:Ki,useMemo:Zi,useReducer:bi,useRef:Fi,useState:function(){return bi(mi)},useDebugValue:Qi,useDeferredValue:function(e,t){var n=di();return null===Va?Ji(n,e,t):el(n,Va.memoizedState,e,t)},useTransition:function(){var e=bi(mi)[0],t=di().memoizedState;return["boolean"==typeof e?e:pi(e),t]},useSyncExternalStore:vi,useId:ll,useHostTransitionStatus:il,useFormState:Di,useActionState:Di,useOptimistic:function(e,t){var n=di();return null!==Va?Ti(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:hi,useCacheRefresh:sl};function xl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}wl.useEffectEvent=qi;var Sl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xa(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Sa(e,o,r))&&(Qc(t,e,r),ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xa(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Sa(e,o,r))&&(Qc(t,e,r),ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xa(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Sa(e,r,n))&&(Qc(t,e,n),ka(t,e,n))}};function kl(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,a))}function Cl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function El(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Tl(e){Pr(e)}function Rl(e){console.error(e)}function Pl(e){Pr(e)}function Al(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ml(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ol(e,t,n){return(n=xa(n)).tag=3,n.payload={element:null},n.callback=function(){Al(e,t)},n}function _l(e){return(e=xa(e)).tag=3,e}function Nl(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var a=r.value;e.payload=function(){return o(a)},e.callback=function(){Ml(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Ml(t,n,r),"function"!=typeof o&&(null===Dc?Dc=/* @__PURE__ */new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Il=Error(r(461)),Ll=!1;function zl(e,t,n,r){t.child=null===e?ya(t,null,n,r):ga(t,e.child,n,r)}function $l(e,t,n,r,o){n=n.render;var a=t.ref;if("ref"in r){var i={};for(var l in r)"ref"!==l&&(i[l]=r[l])}else i=r;return Io(t),r=ri(e,t,n,i,a,o),l=li(),null===e||Ll?(ho&&l&&so(t),t.flags|=1,zl(e,t,r,o),t.child):(si(e,t,o),is(e,t,o))}function Dl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Br(a)||void 0!==a.defaultProps||null!==n.compare?((e=Ur(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,jl(e,t,a,r,o))}if(a=e.child,!ls(e,o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(i,r)&&e.ref===t.ref)return is(e,t,o)}return t.flags|=1,(e=Wr(a,r)).ref=t.ref,e.return=t,t.child=e}function jl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(tr(a,r)&&e.ref===t.ref){if(Ll=!1,t.pendingProps=r=a,!ls(e,o))return t.lanes=e.lanes,is(e,t,o);131072&e.flags&&(Ll=!0)}}return Vl(e,t,n,r,o)}function Fl(e,t,n,r){var o=r.children,a=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(a=null!==a?a.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~a}else r=0,t.child=null;return Wl(e,t,a,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Wl(e,t,null!==a?a.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Zo(0,null!==a?a.cachePool:null),null!==a?_a(t,a):Na(),ja(t)}else null!==a?(Zo(0,a.cachePool),_a(t,a),Fa(),t.memoizedState=null):(null!==e&&Zo(0,null),Na(),Fa());return zl(e,t,o,n),t.child}function Bl(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wl(e,t,n,r,o){var a=Yo();return a=null===a?null:{parent:Bo._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Zo(0,null),Na(),ja(t),null!==e&&_o(e,t,r,!0),t.childLanes=o,null}function Hl(e,t){return(t=ts({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Ul(e,t,n){return ga(t,e.child,null,n),(e=Hl(t,t.pendingProps)).flags|=2,Ba(t),t.memoizedState=null,e}function ql(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Vl(e,t,n,r,o){return Io(t),n=ri(e,t,n,r,void 0,o),r=li(),null===e||Ll?(ho&&r&&so(t),t.flags|=1,zl(e,t,n,o),t.child):(si(e,t,o),is(e,t,o))}function Kl(e,t,n,r,o,a){return Io(t),t.updateQueue=null,n=ai(t,r,n,o),oi(e),r=li(),null===e||Ll?(ho&&r&&so(t),t.flags|=1,zl(e,t,n,a),t.child):(si(e,t,a),is(e,t,a))}function Gl(e,t,n,r,o){if(Io(t),null===t.stateNode){var a=Dr,i=n.contextType;"object"==typeof i&&null!==i&&(a=Lo(i)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=Sl,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},va(t),i=n.contextType,a.context="object"==typeof i&&null!==i?Lo(i):Dr,a.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(xl(t,n,i,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(i=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),i!==a.state&&Sl.enqueueReplaceState(a,a.state,null),Ra(t,r,a,o),Ta(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var l=t.memoizedProps,s=El(n,l);a.props=s;var c=a.context,u=n.contextType;i=Dr,"object"==typeof u&&null!==u&&(i=Lo(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l||c!==i)&&Cl(t,a,r,i),ba=!1;var p=t.memoizedState;a.state=p,Ra(t,r,a,o),Ta(),c=t.memoizedState,l||p!==c||ba?("function"==typeof d&&(xl(t,n,d,r),c=t.memoizedState),(s=ba||kl(t,n,s,r,p,c,i))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=i,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wa(e,t),u=El(n,i=t.memoizedProps),a.props=u,d=t.pendingProps,p=a.context,c=n.contextType,s=Dr,"object"==typeof c&&null!==c&&(s=Lo(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==d||p!==s)&&Cl(t,a,r,s),ba=!1,p=t.memoizedState,a.state=p,Ra(t,r,a,o),Ta();var f=t.memoizedState;i!==d||p!==f||ba||null!==e&&null!==e.dependencies&&No(e.dependencies)?("function"==typeof l&&(xl(t,n,l,r),f=t.memoizedState),(u=ba||kl(t,n,u,r,p,f,s)||null!==e&&null!==e.dependencies&&No(e.dependencies))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,ql(e,t),r=!!(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=ga(t,e.child,null,o),t.child=ga(t,null,n,o)):zl(e,t,n,o),t.memoizedState=a.state,e=t.child):e=is(e,t,o),e}function Xl(e,t,n,r){return So(),t.flags|=256,zl(e,t,n,r),t.child}var Ql={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yl(e){return{baseLanes:e,cachePool:Jo()}}function Zl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Ac),e}function Jl(e,t,n){var o,a=t.pendingProps,i=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&Wa.current)),o&&(i=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(i?$a(t):Fa(),(e=fo)?null!==(e=null!==(e=_d(e,go))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,po=t,fo=null):e=null,null===e)throw bo(t);return Id(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,i?(Fa(),s=ts({mode:"hidden",children:s},i=t.mode),a=qr(a,i,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,(a=t.child).memoizedState=Yl(n),a.childLanes=Zl(e,o,n),t.memoizedState=Ql,Bl(null,a)):($a(t),es(t,s))}var c=e.memoizedState;if(null!==c&&null!==(s=c.dehydrated)){if(l)256&t.flags?($a(t),t.flags&=-257,t=ns(e,t,n)):null!==t.memoizedState?(Fa(),t.child=e.child,t.flags|=128,t=null):(Fa(),s=a.fallback,i=t.mode,a=ts({mode:"visible",children:a.children},i),(s=qr(s,i,n,null)).flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,ga(t,e.child,null,n),(a=t.child).memoizedState=Yl(n),a.childLanes=Zl(e,o,n),t.memoizedState=Ql,t=Bl(null,a));else if($a(t),Id(s)){if(o=s.nextSibling&&s.nextSibling.dataset)var u=o.dgst;o=u,(a=Error(r(419))).stack="",a.digest=o,Co({value:a,source:null,stack:null}),t=ns(e,t,n)}else if(Ll||_o(e,t,n,!1),o=0!==(n&e.childLanes),Ll||o){if(null!==(o=gc)&&(0!==(a=Ne(o,n))&&a!==c.retryLane))throw c.retryLane=a,Lr(e,a),Qc(o,e,a),Il;Nd(s)||su(),t=ns(e,t,n)}else Nd(s)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,fo=Ld(s.nextSibling),po=t,ho=!0,mo=null,go=!1,null!==e&&uo(t,e),(t=es(t,a.children)).flags|=4096);return t}return i?(Fa(),s=a.fallback,i=t.mode,u=(c=e.child).sibling,(a=Wr(c,{mode:"hidden",children:a.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?s=Wr(u,s):(s=qr(s,i,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,Bl(null,a),a=t.child,null===(s=e.child.memoizedState)?s=Yl(n):(null!==(i=s.cachePool)?(c=Bo._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=Jo(),s={baseLanes:s.baseLanes|n,cachePool:i}),a.memoizedState=s,a.childLanes=Zl(e,o,n),t.memoizedState=Ql,Bl(e.child,a)):($a(t),e=(n=e.child).sibling,(n=Wr(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function es(e,t){return(t=ts({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ts(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function ns(e,t,n){return ga(t,e.child,null,n),(e=es(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Mo(e.return,t,n)}function os(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.treeForkCount=a)}function as(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;r=r.children;var i=Wa.current,l=!!(2&i);if(l?(i=1&i|2,t.flags|=128):i&=1,j(Wa,i),zl(e,t,r,n),r=ho?eo:0,!l&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rs(e,n,t);else if(19===e.tag)rs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ha(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),os(t,!1,o,n,a,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ha(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}os(t,!0,n,null,a,r);break;case"together":os(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Tc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(_o(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Wr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ls(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!No(e))}function ss(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ll=!0;else{if(!(ls(e,n)||128&t.flags))return Ll=!1,function(e,t,n){switch(t.tag){case 3:V(t,t.stateNode.containerInfo),Po(0,Bo,e.memoizedState.cache),So();break;case 27:case 5:G(t);break;case 4:V(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Da(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($a(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Jl(e,t,n):($a(t),null!==(e=is(e,t,n))?e.sibling:null);$a(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(_o(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return as(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),j(Wa,Wa.current),r)break;return null;case 22:return t.lanes=0,Fl(e,t,n,t.pendingProps);case 24:Po(0,Bo,e.memoizedState.cache)}return is(e,t,n)}(e,t,n);Ll=!!(131072&e.flags)}else Ll=!1,ho&&1048576&t.flags&&lo(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ia(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var a=e.$$typeof;if(a===w){t.tag=11,t=$l(null,t,e,o,n);break e}if(a===k){t.tag=14,t=Dl(null,t,e,o,n);break e}}throw t=M(e)||e,Error(r(306,t,""))}Br(e)?(o=El(e,o),t.tag=1,t=Gl(null,t,e,o,n)):(t.tag=0,t=Vl(null,t,e,o,n))}return t;case 0:return Vl(e,t,t.type,t.pendingProps,n);case 1:return Gl(e,t,o=t.type,a=El(o,t.pendingProps),n);case 3:e:{if(V(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var i=t.memoizedState;a=i.element,wa(e,t),Ra(t,o,null,n);var l=t.memoizedState;if(o=l.cache,Po(0,Bo,o),o!==i.cache&&Oo(t,[Bo],n,!0),Ta(),o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Xl(e,t,o,n);break e}if(o!==a){Co(a=Qr(Error(r(424)),t)),t=Xl(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(fo=Ld(e.firstChild),po=t,ho=!0,mo=null,go=!0,n=ya(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(So(),o===a){t=is(e,t,n);break e}zl(e,t,o,n)}t=t.child}return t;case 26:return ql(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(U.current).createElement(n))[je]=t,o[Fe]=e,hd(o,n,e),Ze(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&ho&&(o=t.stateNode=jd(t.type,t.pendingProps,U.current),po=t,go=!0,a=fo,Pd(t.type)?(zd=a,fo=Ld(o.firstChild)):fo=a),zl(e,t,t.pendingProps.children,n),ql(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((a=o=fo)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ve])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===a)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,go))?(t.stateNode=o,po=t,fo=Ld(o.firstChild),go=!1,a=!0):a=!1),a||bo(t)),G(t),a=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,o=i.children,xd(a,i)?o=null:null!==l&&xd(a,l)&&(t.flags|=32),null!==t.memoizedState&&(a=ri(e,t,ii,null,null,n),pp._currentValue=a),ql(e,t),zl(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=fo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,go))?(t.stateNode=n,po=t,fo=null,e=!0):e=!1),e||bo(t)),null;case 13:return Jl(e,t,n);case 4:return V(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ga(t,null,o,n):zl(e,t,o,n),t.child;case 11:return $l(e,t,t.type,t.pendingProps,n);case 7:return zl(e,t,t.pendingProps,n),t.child;case 8:case 12:return zl(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Po(0,t.type,o.value),zl(e,t,o.children,n),t.child;case 9:return a=t.type._context,o=t.pendingProps.children,Io(t),o=o(a=Lo(a)),t.flags|=1,zl(e,t,o,n),t.child;case 14:return Dl(e,t,t.type,t.pendingProps,n);case 15:return jl(e,t,t.type,t.pendingProps,n);case 19:return as(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,a=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Hl(t,o),t.lanes=536870912,Bl(null,e);if(Da(t),(e=fo)?null!==(e=null!==(e=_d(e,go))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,po=t,fo=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Hl(t,o)}var i=e.memoizedState;if(null!==i){var l=i.dehydrated;if(Da(t),a)if(256&t.flags)t.flags&=-257,t=Ul(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Ll||_o(e,t,n,!1),a=0!==(n&e.childLanes),Ll||a){if(null!==(o=gc)&&0!==(l=Ne(o,n))&&l!==i.retryLane)throw i.retryLane=l,Lr(e,l),Qc(o,e,l),Il;su(),t=Ul(e,t,n)}else e=i.treeContext,fo=Ld(l.nextSibling),po=t,ho=!0,mo=null,go=!1,null!==e&&uo(t,e),(t=Hl(t,o)).flags|=4096;return t}return(e=Wr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fl(e,t,n,t.pendingProps);case 24:return Io(t),o=Lo(Bo),null===e?(null===(a=Yo())&&(a=gc,i=Wo(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:o,cache:a},va(t),Po(0,Bo,a)):(0!==(e.lanes&n)&&(wa(e,t),Ra(t,null,null,n),Ta()),a=e.memoizedState,i=t.memoizedState,a.parent!==o?(a={parent:o,cache:o},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Po(0,Bo,o)):(o=i.cache,Po(0,Bo,o),o!==a.cache&&Oo(t,[Bo],n,!0))),zl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cs(e){e.flags|=4}function us(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!au())throw la=ra,ta;e.flags|=8192}}else e.flags&=-16777217}function ds(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t)){if(!au())throw la=ra,ta;e.flags|=8192}}function ps(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,Mc|=t)}function fs(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ms(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hs(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ao(Bo),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cs(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hs(t),null;case 26:var a=t.type,i=t.memoizedState;return null===e?(cs(t),null!==i?(hs(t),ds(t,i)):(hs(t),us(t,a,0,0,n))):i?i!==e.memoizedState?(cs(t),hs(t),ds(t,i)):(hs(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cs(t),hs(t),us(t,a,0,0,n)),null;case 27:if(X(t),n=U.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cs(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hs(t),null}e=W.current,xo(t)?vo(t):(e=jd(a,o,n),t.stateNode=e,cs(t))}return hs(t),null;case 5:if(X(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cs(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hs(t),null}if(i=W.current,xo(t))vo(t);else{var l=bd(U.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(i=l.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof o.is?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?i.multiple=!0:o.size&&(i.size=o.size);break;default:i="string"==typeof o.is?l.createElement(a,{is:o.is}):l.createElement(a)}}i[je]=t,i[Fe]=o;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)i.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(hd(i,a,o),a){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cs(t)}}return hs(t),us(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cs(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=U.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(a=po))switch(a.tag){case 27:case 5:o=a.memoizedProps}e[je]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[je]=t,t.stateNode=e}return hs(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[je]=t}else So(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hs(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ba(t),t):(Ba(t),null);if(128&t.flags)throw Error(r(558))}return hs(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[je]=t}else So(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hs(t),a=!1}else a=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Ba(t),t):(Ba(t),null)}return Ba(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(a=o.alternate.memoizedState.cachePool.pool),i=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(i=o.memoizedState.cachePool.pool),i!==a&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ps(t,t.updateQueue),hs(t),null);case 4:return K(),null===e&&td(t.stateNode.containerInfo),hs(t),null;case 10:return Ao(t.type),hs(t),null;case 19:if(D(Wa),null===(o=t.memoizedState))return hs(t),null;if(a=!!(128&t.flags),null===(i=o.rendering))if(a)fs(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Ha(e))){for(t.flags|=128,fs(o,!1),e=i.updateQueue,t.updateQueue=e,ps(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Hr(n,e),n=n.sibling;return j(Wa,1&Wa.current|2),ho&&io(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ie()>zc&&(t.flags|=128,a=!0,fs(o,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=Ha(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ps(t,e),fs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!ho)return hs(t),null}else 2*ie()-o.renderingStartTime>zc&&536870912!==n&&(t.flags|=128,a=!0,fs(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ie(),e.sibling=null,n=Wa.current,j(Wa,a?1&n|2:1&n),ho&&io(t,o.treeForkCount),e):(hs(t),null);case 22:case 23:return Ba(t),Ia(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hs(t),6&t.subtreeFlags&&(t.flags|=8192)):hs(t),null!==(n=t.updateQueue)&&ps(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&D(Qo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ao(Bo),hs(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function gs(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ao(Bo),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Ba(t),null===t.alternate)throw Error(r(340));So()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ba(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));So()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return D(Wa),null;case 4:return K(),null;case 10:return Ao(t.type),null;case 22:case 23:return Ba(t),Ia(),null!==e&&D(Qo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ao(Bo),null;default:return null}}function ys(e,t){switch(co(t),t.tag){case 3:Ao(Bo),K();break;case 26:case 27:case 5:X(t);break;case 4:K();break;case 31:null!==t.memoizedState&&Ba(t);break;case 13:Ba(t);break;case 19:D(Wa);break;case 10:Ao(t.type);break;case 22:case 23:Ba(t),Ia(),null!==e&&D(Qo);break;case 24:Ao(Bo)}}function bs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var a=n.create,i=n.inst;r=a(),i.destroy=r}n=n.next}while(n!==o)}}catch(l){Eu(t,t.return,l)}}function vs(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next;r=a;do{if((r.tag&e)===e){var i=r.inst,l=i.destroy;if(void 0!==l){i.destroy=void 0,o=t;var s=n,c=l;try{c()}catch(u){Eu(o,s,u)}}}r=r.next}while(r!==a)}}catch(u){Eu(t,t.return,u)}}function ws(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Aa(t,n)}catch(r){Eu(e,e.return,r)}}}function xs(e,t,n){n.props=El(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Ss(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Eu(e,t,o)}}function ks(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(a){Eu(e,t,a)}else n.current=null}function Cs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Eu(e,e.return,o)}}function Es(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,l=null,s=null,c=null,u=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":c=p;default:o.hasOwnProperty(h)||pd(e,t,h,null,o,p)}}for(var f in o){var h=o[f];if(p=n[f],o.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":i=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":l=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==p&&pd(e,t,f,h,o,p)}}return void wt(e,l,s,c,u,d,i,a);case"select":for(i in h=l=s=f=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(i)||pd(e,t,i,null,o,c)}for(a in o)if(i=o[a],c=n[a],o.hasOwnProperty(a)&&(null!=i||null!=c))switch(a){case"value":f=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==c&&pd(e,t,a,i,o,c)}return t=s,n=l,o=h,void(null!=f?kt(e,!!n,f,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in h=f=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!o.hasOwnProperty(s))switch(s){case"value":case"children":break;default:pd(e,t,s,null,o,a)}for(l in o)if(a=o[l],i=n[l],o.hasOwnProperty(l)&&(null!=a||null!=i))switch(l){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(r(91));break;default:a!==i&&pd(e,t,l,a,o,i)}return void Ct(e,f,h);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else pd(e,t,m,null,o,f);for(c in o)if(f=o[c],h=n[c],o.hasOwnProperty(c)&&f!==h&&(null!=f||null!=h))if("selected"===c)e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f;else pd(e,t,c,f,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!o.hasOwnProperty(g)&&pd(e,t,g,null,o,f);for(u in o)if(f=o[u],h=n[u],o.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:pd(e,t,u,f,o,h)}return;default:if(Mt(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!o.hasOwnProperty(y)&&fd(e,t,y,void 0,o,f);for(d in o)f=o[d],h=n[d],!o.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||fd(e,t,d,f,o,h);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!o.hasOwnProperty(b)&&pd(e,t,b,null,o,f);for(p in o)f=o[p],h=n[p],!o.hasOwnProperty(p)||f===h||null==f&&null==h||pd(e,t,p,f,o,h)}(o,e.type,n,t),o[Fe]=t}catch(a){Eu(e,e.return,a)}}function Ts(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Rs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ts(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ps(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=It));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Ps(e,t,n),e=e.sibling;null!==e;)Ps(e,t,n),e=e.sibling}function As(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(As(e,t,n),e=e.sibling;null!==e;)As(e,t,n),e=e.sibling}function Ms(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[je]=e,t[Fe]=n}catch(a){Eu(e,e.return,a)}}var Os=!1,_s=!1,Ns=!1,Is="function"==typeof WeakSet?WeakSet:Set,Ls=null;function zs(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Qs(e,n),4&r&&bs(5,n);break;case 1:if(Qs(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){Eu(n,n.return,i)}else{var o=El(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Eu(n,n.return,l)}}64&r&&ws(n),512&r&&Ss(n,n.return);break;case 3:if(Qs(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Aa(e,t)}catch(i){Eu(n,n.return,i)}}break;case 27:null===t&&4&r&&Ms(n);case 26:case 5:Qs(e,n),null===t&&4&r&&Cs(n),512&r&&Ss(n,n.return);break;case 12:Qs(e,n);break;case 31:Qs(e,n),4&r&&Ws(e,n);break;case 13:Qs(e,n),4&r&&Hs(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Au.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Os)){t=null!==t&&null!==t.memoizedState||_s,o=Os;var a=_s;Os=r,(_s=t)&&!a?Zs(e,n,!!(8772&n.subtreeFlags)):Qs(e,n),Os=o,_s=a}break;case 30:break;default:Qs(e,n)}}function $s(e){var t=e.alternate;null!==t&&(e.alternate=null,$s(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ke(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ds=null,js=!1;function Fs(e,t,n){for(n=n.child;null!==n;)Bs(e,t,n),n=n.sibling}function Bs(e,t,n){if(ge&&"function"==typeof ge.onCommitFiberUnmount)try{ge.onCommitFiberUnmount(me,n)}catch(a){}switch(n.tag){case 26:_s||ks(n,t),Fs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:_s||ks(n,t);var r=Ds,o=js;Pd(n.type)&&(Ds=n.stateNode,js=!1),Fs(e,t,n),Fd(n.stateNode),Ds=r,js=o;break;case 5:_s||ks(n,t);case 6:if(r=Ds,o=js,Ds=null,Fs(e,t,n),js=o,null!==(Ds=r))if(js)try{(9===Ds.nodeType?Ds.body:"HTML"===Ds.nodeName?Ds.ownerDocument.body:Ds).removeChild(n.stateNode)}catch(i){Eu(n,t,i)}else try{Ds.removeChild(n.stateNode)}catch(i){Eu(n,t,i)}break;case 18:null!==Ds&&(js?(Ad(9===(e=Ds).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Vp(e)):Ad(Ds,n.stateNode));break;case 4:r=Ds,o=js,Ds=n.stateNode.containerInfo,js=!0,Fs(e,t,n),Ds=r,js=o;break;case 0:case 11:case 14:case 15:vs(2,n,t),_s||vs(4,n,t),Fs(e,t,n);break;case 1:_s||(ks(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xs(n,t,r)),Fs(e,t,n);break;case 21:Fs(e,t,n);break;case 22:_s=(r=_s)||null!==n.memoizedState,Fs(e,t,n),_s=r;break;default:Fs(e,t,n)}}function Ws(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Vp(e)}catch(n){Eu(t,t.return,n)}}}function Hs(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Vp(e)}catch(n){Eu(t,t.return,n)}}function Us(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Is),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Is),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Mu.bind(null,e,t);t.then(r,r)}})}function qs(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var a=n[o],i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(Pd(s.type)){Ds=s.stateNode,js=!1;break e}break;case 5:Ds=s.stateNode,js=!1;break e;case 3:case 4:Ds=s.stateNode.containerInfo,js=!0;break e}s=s.return}if(null===Ds)throw Error(r(160));Bs(i,l,a),Ds=null,js=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Ks(t,e),t=t.sibling}var Vs=null;function Ks(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qs(t,e),Gs(e),4&o&&(vs(3,e,e.return),bs(3,e),vs(5,e,e.return));break;case 1:qs(t,e),Gs(e),512&o&&(_s||null===n||ks(n,n.return)),64&o&&Os&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var a=Vs;if(qs(t,e),Gs(e),512&o&&(_s||null===n||ks(n,n.return)),4&o){var i=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(o){case"title":(!(i=a.getElementsByTagName("title")[0])||i[Ve]||i[je]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(o),a.head.insertBefore(i,a.querySelector("head > title"))),hd(i,o,n),i[je]=e,Ze(i),o=i;break e;case"link":var l=op("link","href",a).get(o+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((i=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}hd(i=a.createElement(o),o,n),a.head.appendChild(i);break;case"meta":if(l=op("meta","content",a).get(o+(n.content||"")))for(s=0;s<l.length;s++)if((i=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}hd(i=a.createElement(o),o,n),a.head.appendChild(i);break;default:throw Error(r(468,o))}i[je]=e,Ze(i),o=i}e.stateNode=o}else ap(a,e.type,e.stateNode);else e.stateNode=Jd(a,o,e.memoizedProps);else i!==o?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===o?ap(a,e.type,e.stateNode):Jd(a,o,e.memoizedProps)):null===o&&null!==e.stateNode&&Es(e,e.memoizedProps,n.memoizedProps)}break;case 27:qs(t,e),Gs(e),512&o&&(_s||null===n||ks(n,n.return)),null!==n&&4&o&&Es(e,e.memoizedProps,n.memoizedProps);break;case 5:if(qs(t,e),Gs(e),512&o&&(_s||null===n||ks(n,n.return)),32&e.flags){a=e.stateNode;try{Tt(a,"")}catch(m){Eu(e,e.return,m)}}4&o&&null!=e.stateNode&&Es(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&o&&(Ns=!0);break;case 6:if(qs(t,e),Gs(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(m){Eu(e,e.return,m)}}break;case 3:if(rp=null,a=Vs,Vs=Hd(t.containerInfo),qs(t,e),Vs=a,Gs(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(m){Eu(e,e.return,m)}Ns&&(Ns=!1,Xs(e));break;case 4:o=Vs,Vs=Hd(e.stateNode.containerInfo),qs(t,e),Gs(e),Vs=o;break;case 12:default:qs(t,e),Gs(e);break;case 31:case 19:qs(t,e),Gs(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Us(e,o)));break;case 13:qs(t,e),Gs(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Ic=ie()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Us(e,o)));break;case 22:a=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Os,d=_s;if(Os=u||a,_s=d||c,qs(t,e),_s=d,Os=u,Gs(e),8192&o)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||c||Os||_s||Ys(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,a)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=c.stateNode;var p=c.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;s.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(m){Eu(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(m){Eu(c,c.return,m)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;a?Md(h,!0):Md(c.stateNode,!1)}catch(m){Eu(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,Us(e,n))));case 30:case 21:}}function Gs(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(Ts(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode;As(e,Rs(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(Tt(i,""),n.flags&=-33),As(e,Rs(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;Ps(e,Rs(e),l);break;default:throw Error(r(161))}}catch(s){Eu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Xs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Xs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Qs(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)zs(e,t.alternate,t),t=t.sibling}function Ys(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vs(4,t,t.return),Ys(t);break;case 1:ks(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xs(t,t.return,n),Ys(t);break;case 27:Fd(t.stateNode);case 26:case 5:ks(t,t.return),Ys(t);break;case 22:null===t.memoizedState&&Ys(t);break;default:Ys(t)}e=e.sibling}}function Zs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,a=t,i=a.flags;switch(a.tag){case 0:case 11:case 15:Zs(o,a,n),bs(4,a);break;case 1:if(Zs(o,a,n),"function"==typeof(o=(r=a).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=a).updateQueue)){var l=r.stateNode;try{var s=o.shared.hiddenCallbacks;if(null!==s)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)Pa(s[o],l)}catch(c){Eu(r,r.return,c)}}n&&64&i&&ws(a),Ss(a,a.return);break;case 27:Ms(a);case 26:case 5:Zs(o,a,n),n&&null===r&&4&i&&Cs(a),Ss(a,a.return);break;case 12:Zs(o,a,n);break;case 31:Zs(o,a,n),n&&4&i&&Ws(o,a);break;case 13:Zs(o,a,n),n&&4&i&&Hs(o,a);break;case 22:null===a.memoizedState&&Zs(o,a,n),Ss(a,a.return);break;case 30:break;default:Zs(o,a,n)}t=t.sibling}}function Js(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ho(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&bs(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,i=a.id,l=a.onPostCommit;"function"==typeof l&&l(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Eu(t,t.return,s)}}else tc(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,i=t.alternate,null!==t.memoizedState?2&a._visibility?tc(e,t,n,r):oc(e,t):2&a._visibility?tc(e,t,n,r):(a._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Js(i,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var a=e,i=t,l=n,s=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:rc(a,i,l,s,o),bs(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?rc(a,i,l,s,o):oc(a,i):(u._visibility|=2,rc(a,i,l,s,o)),o&&2048&c&&Js(i.alternate,i);break;case 24:rc(a,i,l,s,o),o&&2048&c&&ec(i.alternate,i);break;default:rc(a,i,l,s,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Js(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ac=8192;function ic(e,t,n){if(e.subtreeFlags&ac)for(e=e.child;null!==e;)lc(e,t,n),e=e.sibling}function lc(e,t,n){switch(e.tag){case 26:ic(e,t,n),e.flags&ac&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),a=t.querySelector(Xd(o));if(a)return null!==(t=a._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,void Ze(a);a=t.ownerDocument||t,r=Qd(r),(o=Bd.get(o))&&tp(r,o),Ze(a=a.createElement("link"));var i=a;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),hd(a,"link",r),n.instance=a}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=sp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vs,e.memoizedState,e.memoizedProps);break;case 5:default:ic(e,t,n);break;case 3:case 4:var r=Vs;Vs=Hd(e.stateNode.containerInfo),ic(e,t,n),Vs=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ac,ac=16777216,ic(e,t,n),ac=r):ic(e,t,n))}}function sc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,pc(r,e)}sc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vs(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,pc(r,e)}sc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vs(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function pc(e,t){for(;null!==Ls;){var n=Ls;switch(n.tag){case 0:case 11:case 15:vs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ho(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ls=r;else e:for(n=e;null!==Ls;){var o=(r=Ls).sibling,a=r.return;if($s(r),r===n){Ls=null;break e}if(null!==o){o.return=a,Ls=o;break e}Ls=a}}}var fc={getCacheForType:function(e){var t=Lo(Bo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lo(Bo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,mc=0,gc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Sc=!1,kc=!1,Cc=0,Ec=0,Tc=0,Rc=0,Pc=0,Ac=0,Mc=0,Oc=null,_c=null,Nc=!1,Ic=0,Lc=0,zc=1/0,$c=null,Dc=null,jc=0,Fc=null,Bc=null,Wc=0,Hc=0,Uc=null,qc=null,Vc=0,Kc=null;function Gc(){return 2&mc&&0!==bc?bc&-bc:null!==_.T?Uu():ze()}function Xc(){if(0===Ac)if(536870912&bc&&!ho)Ac=536870912;else{var e=Se;!(3932160&(Se<<=1))&&(Se=262144),Ac=e}return null!==(e=La.current)&&(e.flags|=32),Ac}function Qc(e,t,n){(e!==gc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Ac,!1)),Me(e,n),2&mc&&e===gc||(e===gc&&(!(2&mc)&&(Rc|=n),4===Ec&&eu(e,bc,Ac,!1)),$u(e))}function Yc(e,t,n){if(6&mc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Te(e,t),a=o?function(e,t){var n=mc;mc|=2;var o=iu(),a=lu();gc!==e||bc!==t?($c=null,zc=ie()+500,ru(e,t)):Sc=Te(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var i=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,i,1);break;case 2:case 9:if(oa(i)){vc=0,wc=null,fu(t);break}t=function(){2!==vc&&9!==vc||gc!==e||(vc=7),$u(e)},i.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oa(i)?(vc=0,wc=null,fu(t)):(vc=0,wc=null,hu(e,t,i,7));break;case 5:var l=null;switch(yc.tag){case 26:l=yc.memoizedState;case 5:case 27:var s=yc;if(l?ip(l):s.stateNode.complete){vc=0,wc=null;var c=s.sibling;if(null!==c)yc=c;else{var u=s.return;null!==u?(yc=u,mu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,i,5);break;case 6:vc=0,wc=null,hu(e,t,i,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return Ro=To=null,_.H=o,_.A=a,mc=n,null!==yc?0:(gc=null,bc=0,_r(),Ec)}(e,t):cu(e,t,!0),i=o;;){if(0===a){Sc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!i||Jc(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!==(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;a=Oc;var c=s.current.memoizedState.isDehydrated;if(c&&(ru(s,l).flags|=256),2!==(l=cu(s,l,!1))){if(kc&&!c){s.errorRecoveryDisabledLanes|=i,Rc|=i,a=4;break e}i=_c,_c=a,null!==i&&(null===_c?_c=i:_c.push.apply(_c,i))}a=l}if(i=!1,2!==a)continue}}if(1===a){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,i=a){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Ac,!xc);break e;case 2:_c=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(a=Ic+300-ie())){if(eu(o,t,Ac,!xc),0!==Ee(o,0,!0))break e;Wc=t,o.timeoutHandle=kd(Zc.bind(null,o,n,_c,$c,Nc,t,Ac,Rc,Mc,xc,i,"Throttled",-0,0),a)}else Zc(o,n,_c,$c,Nc,t,Ac,Rc,Mc,xc,i,null,-0,0)}break}a=cu(e,t,!1),i=!1}$u(e)}function Zc(e,t,n,r,o,a,i,l,s,c,u,d,p,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){lc(t,a,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It});var h=(62914560&a)===a?Ic-ie():(4194048&a)===a?Lc-ie():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&up(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&up(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lp&&(lp=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],a=o.transferSize,i=o.initiatorType,l=o.duration;if(a&&l&&md(i)){for(i=0,l=o.responseEnd,r+=1;r<n.length;r++){var s=n[r],c=s.startTime;if(c>l)break;var u=s.transferSize,d=s.initiatorType;u&&md(d)&&(i+=u*((s=s.responseEnd)<l?1:(l-c)/(s-c)))}if(--r,t+=8*(a+i)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&up(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Wc=a,e.cancelPendingCommit=h(yu.bind(null,e,t,a,n,r,o,i,l,s,u,d,null,p,f)),void eu(e,a,i,!c)}yu(e,t,a,n,r,o,i,l,s)}function Jc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!er(a(),o))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~Pc,t&=~Rc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var a=31-be(o),i=1<<a;r[a]=-1,o&=~i}0!==n&&Oe(e,n,t)}function tu(){return!!(6&mc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else Ro=To=null,ci(e=yc),ua=null,da=0,e=yc;for(;null!==e;)ys(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Cd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Wc=0,nu(),gc=e,yc=n=Wr(e.current,null),bc=t,vc=0,wc=null,xc=!1,Sc=Te(e,t),kc=!1,Mc=Ac=Pc=Rc=Tc=Ec=0,_c=Oc=null,Nc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-be(r),a=1<<o;t|=e[o],r&=~a}return Cc=t,_r(),n}function ou(e,t){qa=null,_.H=yl,t===ea||t===na?(t=sa(),vc=3):t===ta?(t=sa(),vc=4):vc=t===Il?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,Al(e,Qr(t,e.current)))}function au(){var e=La.current;return null===e||((4194048&bc)===bc?null===za:!!((62914560&bc)===bc||536870912&bc)&&e===za)}function iu(){var e=_.H;return _.H=yl,null===e?yl:e}function lu(){var e=_.A;return _.A=fc,e}function su(){Ec=4,xc||(4194048&bc)!==bc&&null!==La.current||(Sc=!0),!(134217727&Tc)&&!(134217727&Rc)||null===gc||eu(gc,bc,Ac,!1)}function cu(e,t,n){var r=mc;mc|=2;var o=iu(),a=lu();gc===e&&bc===t||($c=null,ru(e,t)),t=!1;var i=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var l=yc,s=wc;switch(vc){case 8:nu(),i=6;break e;case 3:case 2:case 9:case 6:null===La.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,l,s,c),n&&Sc){i=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,l,s,c)}}uu(),i=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,Ro=To=null,mc=r,_.H=o,_.A=a,null===yc&&(gc=null,bc=0,_r()),i}function uu(){for(;null!==yc;)pu(yc)}function du(){for(;null!==yc&&!oe();)pu(yc)}function pu(e){var t=ss(e.alternate,e,Cc);e.memoizedProps=e.pendingProps,null===t?mu(e):yc=t}function fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kl(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Kl(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ci(t);default:ys(n,t),t=ss(n,t=yc=Hr(t,Cc),Cc)}e.memoizedProps=e.pendingProps,null===t?mu(e):yc=t}function hu(e,t,n,o){Ro=To=null,ci(t),ua=null,da=0;var a=t.return;try{if(function(e,t,n,o,a){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&_o(t,n,a,!0),null!==(n=La.current)){switch(n.tag){case 31:case 13:return null===za?su():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=a,o===ra?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=/* @__PURE__ */new Set([o]):t.add(o),Tu(e,o,a)),!1;case 22:return n.flags|=65536,o===ra?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:/* @__PURE__ */new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=/* @__PURE__ */new Set([o]):n.add(o),Tu(e,o,a)),!1}throw Error(r(435,n.tag))}return Tu(e,o,a),su(),!1}if(ho)return null!==(t=La.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,o!==yo&&Co(Qr(e=Error(r(422),{cause:o}),n))):(o!==yo&&Co(Qr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,o=Qr(o,n),Ca(e,a=Ol(e.stateNode,o,a)),4!==Ec&&(Ec=2)),!1;var i=Error(r(520),{cause:o});if(i=Qr(i,n),null===Oc?Oc=[i]:Oc.push(i),4!==Ec&&(Ec=2),null===t)return!0;o=Qr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Ca(n,e=Ol(n.stateNode,o,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Dc&&Dc.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,Nl(a=_l(a),e,n,o),Ca(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,bc))return Ec=1,Al(e,Qr(n,e.current)),void(yc=null)}catch(i){if(null!==a)throw yc=a,i;return Ec=1,Al(e,Qr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Sc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=La.current)&&13===o.tag&&(o.flags|=16384))),gu(t,e)):mu(t)}function mu(e){var t=e;do{if(32768&t.flags)return void gu(t,xc);e=t.return;var n=ms(t.alternate,t,Cc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function gu(e,t){do{var n=gs(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,a,i,l,s,c){e.cancelPendingCommit=null;do{Su()}while(0!==jc);if(6&mc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-be(n),d=1<<u;l[u]=0,s[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var f=p[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Oe(e,r,0),0!==a&&0===o&&0!==e.tag&&(e.suspendedLanes|=a&~(i&~t))}(e,n,i|=Or,l,s,c),e===gc&&(yc=gc=null,bc=0),Bc=t,Fc=e,Wc=n,Hc=i,Uc=a,qc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ne(ue,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=_.T,_.T=null,a=N.p,N.p=2,l=mc,mc|=4;try{!function(e,t){if(e=e.containerInfo,gd=xp,ir(e=ar(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==a&&3!==p.nodeType||(s=l+a),p!==i||0!==o&&3!==p.nodeType||(c=l+o),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===a&&(s=l),f===i&&++d===o&&(c=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},xp=!1,Ls=t;null!==Ls;)if(e=(t=Ls).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ls=e;else for(;null!==Ls;){switch(i=(t=Ls).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,o=n.stateNode;try{var m=El(n.type,a);e=o.getSnapshotBeforeUpdate(m,i),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Ls=e;break}Ls=t.return}}(e,t)}finally{mc=l,N.p=a,_.T=o}}jc=1,bu(),vu(),wu()}}function bu(){if(1===jc){jc=0;var e=Fc,t=Bc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=_.T,_.T=null;var r=N.p;N.p=2;var o=mc;mc|=4;try{Ks(t,e);var a=yd,i=ar(e.containerInfo),l=a.focusedElem,s=a.selectionRange;if(i!==l&&l&&l.ownerDocument&&or(l.ownerDocument.documentElement,l)){if(null!==s&&ir(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=l.textContent.length,m=Math.min(s.start,h),g=void 0===s.end?m:Math.min(s.end,h);!f.extend&&m>g&&(i=g,g=m,m=i);var y=rr(l,m),b=rr(l,g);if(y&&b&&(1!==f.rangeCount||f.anchorNode!==y.node||f.anchorOffset!==y.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),f.removeAllRanges(),m>g?(f.addRange(v),f.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),f.addRange(v))}}}}for(d=[],f=l;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}xp=!!gd,yd=gd=null}finally{mc=o,N.p=r,_.T=n}}e.current=t,jc=2}}function vu(){if(2===jc){jc=0;var e=Fc,t=Bc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=_.T,_.T=null;var r=N.p;N.p=2;var o=mc;mc|=4;try{zs(e,t.alternate,t)}finally{mc=o,N.p=r,_.T=n}}jc=3}}function wu(){if(4===jc||3===jc){jc=0,ae();var e=Fc,t=Bc,n=Wc,r=qc;10256&t.subtreeFlags||10256&t.flags?jc=5:(jc=0,Bc=Fc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),Le(n),t=t.stateNode,ge&&"function"==typeof ge.onCommitFiberRoot)try{ge.onCommitFiberRoot(me,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=_.T,o=N.p,N.p=2,_.T=null;try{for(var a=e.onRecoverableError,i=0;i<r.length;i++){var l=r[i];a(l.value,{componentStack:l.stack})}}finally{_.T=t,N.p=o}}3&Wc&&Su(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ho(t)))}function Su(){return bu(),vu(),wu(),ku()}function ku(){if(5!==jc)return!1;var e=Fc,t=Hc;Hc=0;var n=Le(Wc),o=_.T,a=N.p;try{N.p=32>n?32:n,_.T=null,n=Uc,Uc=null;var i=Fc,l=Wc;if(jc=0,Bc=Fc=null,Wc=0,6&mc)throw Error(r(331));var s=mc;if(mc|=4,uc(i.current),nc(i,i.current,l,n),mc=s,Du(0,!1),ge&&"function"==typeof ge.onPostCommitFiberRoot)try{ge.onPostCommitFiberRoot(me,i)}catch(c){}return!0}finally{N.p=a,_.T=o,xu(e,t)}}function Cu(e,t,n){t=Qr(n,t),null!==(e=Sa(e,t=Ol(e.stateNode,t,2),2))&&(Me(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Qr(n,e),null!==(r=Sa(t,n=_l(2),2))&&(Nl(n,r,t,e),Me(r,2),$u(r));break}}t=t.return}}function Tu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=/* @__PURE__ */new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=/* @__PURE__ */new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Ru.bind(null,e,t,n),t.then(e,e))}function Ru(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,gc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ie()-Ic?!(2&mc)&&ru(e,0):Pc|=n,Mc===bc&&(Mc=0)),$u(e)}function Pu(e,t){0===t&&(t=Pe()),null!==(e=Lr(e,t))&&(Me(e,t),$u(e))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Mu(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Pu(e,n)}var Ou=null,_u=null,Nu=!1,Iu=!1,Lu=!1,zu=0;function $u(e){e!==_u&&null===e.next&&(null===_u?Ou=_u=e:_u=_u.next=e),Iu=!0,Nu||(Nu=!0,Td(function(){6&mc?ne(se,ju):Fu()}))}function Du(e,t){if(!Lu&&Iu){Lu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var i=r.suspendedLanes,l=r.pingedLanes;a=(1<<31-be(42|e)+1)-1,a=201326741&(a&=o&~(i&~l))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Hu(r,a))}else a=bc,!(3&(a=Ee(r,r===gc?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Te(r,a)||(n=!0,Hu(r,a));r=r.next}}while(n);Lu=!1}}function ju(){Fu()}function Fu(){Iu=Nu=!1;var e=0;0!==zu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Sd&&(Sd=e,!0);return Sd=null,!1}()&&(e=zu);for(var t=ie(),n=null,r=Ou;null!==r;){var o=r.next,a=Bu(r,t);0===a?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(_u=n)):(n=r,(0!==e||3&a)&&(Iu=!0)),r=o}0!==jc&&5!==jc||Du(e),0!==zu&&(zu=0)}function Bu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var i=31-be(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=Re(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}if(n=bc,n=Ee(e,e===(t=gc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&re(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Te(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&re(r),Le(n)){case 2:case 8:n=ce;break;case 32:default:n=ue;break;case 268435456:n=pe}return r=Wu.bind(null,e),n=ne(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&re(r),e.callbackPriority=2,e.callbackNode=null,2}function Wu(e,t){if(0!==jc&&5!==jc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Ee(e,e===gc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yc(e,r,t),Bu(e,ie()),null!=e.callbackNode&&e.callbackNode===n?Wu.bind(null,e):null)}function Hu(e,t){if(Su())return null;Yc(e,t,!0)}function Uu(){if(0===zu){var e=Vo;0===e&&(e=xe,!(261888&(xe<<=1))&&(xe=256)),zu=e}return zu}function qu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Nt(""+e)}function Vu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ku=0;Ku<Tr.length;Ku++){var Gu=Tr[Ku];Rr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Rr(br,"onAnimationEnd"),Rr(vr,"onAnimationIteration"),Rr(wr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(xr,"onTransitionRun"),Rr(Sr,"onTransitionStart"),Rr(kr,"onTransitionCancel"),Rr(Cr,"onTransitionEnd"),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xu="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(" "),Qu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xu));function Yu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;a=l,o.currentTarget=c;try{a(o)}catch(u){Pr(u)}o.currentTarget=null,a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;a=l,o.currentTarget=c;try{a(o)}catch(u){Pr(u)}o.currentTarget=null,a=s}}}}function Zu(e,t){var n=t[We];void 0===n&&(n=t[We]=/* @__PURE__ */new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,Je.forEach(function(t){"selectionchange"!==t&&(Qu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Pp(t)){case 2:var o=Sp;break;case 8:o=kp;break;default:o=Cp}n=o.bind(null,t,n,e),o=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var s=r.stateNode.containerInfo;if(s===o)break;if(4===l)for(l=r.return;null!==l;){var c=l.tag;if((3===c||4===c)&&l.stateNode.containerInfo===o)return;l=l.return}for(;null!==s;){if(null===(l=Ge(s)))return;if(5===(c=l.tag)||6===c||26===c||27===c){r=i=l;continue e}s=s.parentNode}}r=r.return}Bt(function(){var r=i,o=zt(n),l=[];e:{var s=Er.get(e);if(void 0!==s){var c=on,u=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Sn;break;case br:case vr:case wr:c=pn;break;case Cr:c=kn;break;case"scroll":case"scrollend":c=ln;break;case"wheel":c=Cn;break;case"copy":case"cut":case"paste":c=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===f||null!=(g=Wt(m,f))&&d.push(od(m,g,h)),p)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,o),l.push({event:s,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Lt||!(u=n.relatedTarget||n.fromElement)||!Ge(u)&&!u[Be])&&(c||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Ge(u):null)&&(p=a(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,g="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==c?s:Qe(c),h=null==u?s:Qe(u),(s=new d(g,m+"leave",c,n,o)).target=p,s.relatedTarget=h,g=null,Ge(o)===r&&((d=new d(f,m+"enter",u,n,o)).target=h,d.relatedTarget=p,g=d),p=g,c&&u)e:{for(d=id,m=u,h=0,g=f=c;g;g=d(g))h++;g=0;for(var y=m;y;y=d(y))g++;for(;0<h-g;)f=d(f),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(f===m||null!==m&&f===m.alternate){d=f;break e}f=d(f),m=d(m)}d=null}else d=null;null!==c&&ld(l,s,c,d,!1),null!==u&&null!==p&&ld(l,p,u,d,!0)}if("select"===(c=(s=r?Qe(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var b=Hn;else if($n(s))if(Un)b=Jn;else{b=Yn;var v=Qn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Mt(r.elementType)&&(b=Hn):b=Zn;switch(b&&(b=b(e,r))?Dn(l,b,n,o):(v&&v(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&St(s,"number",s.value)),v=r?Qe(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(sr=v,cr=r,ur=null);break;case"focusout":ur=cr=sr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,pr(l,n,o);break;case"selectionchange":if(lr)break;case"keydown":case"keyup":pr(l,n,o)}var w;if(Rn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Ln?Nn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Mn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==x?"onCompositionEnd"===x&&Ln&&(w=Xt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,Ln=!0)),0<(v=ad(r,x)).length&&(x=new hn(x,e,null,n,o),l.push({event:x,listeners:v}),w?x.data=w:null!==(w=In(n))&&(x.data=w))),(w=An?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(_n=!0,On);case"textInput":return(e=t.data)===On&&_n?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Rn&&Nn(e,t)?(e=Xt(),Gt=Kt=Vt=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=ad(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),l.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var a=qu((o[Fe]||null).action),i=r.submitter;i&&null!==(t=(t=i[Fe]||null)?qu(t.formAction):i.getAttribute("formAction"))&&(a=t,i=null);var l=new on("action","action",null,r,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==zu){var e=i?Vu(o,i):new FormData(o);rl(n,{pending:!0,data:e,method:o.method,action:a},null,e)}}else"function"==typeof a&&(l.preventDefault(),e=i?Vu(o,i):new FormData(o),rl(n,{pending:!0,data:e,method:o.method,action:a},a,e))},currentTarget:o}]})}}(l,e,r,n,o)}Yu(l,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ad(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===a||(null!=(o=Wt(e,n))&&r.unshift(od(e,o,a)),null!=(o=Wt(e,t))&&r.push(od(e,o,a))),3===e.tag)return r;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function ld(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,o?null!=(c=Wt(n,a))&&i.unshift(od(n,c,s)):o||null!=(c=Wt(n,a))&&i.push(od(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var sd=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(sd,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function pd(e,t,n,o,a,i){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||Tt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&Tt(e,""+o);break;case"className":st(e,"class",o);break;case"tabIndex":st(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":st(e,n,o);break;case"style":At(e,o,i);break;case"data":if("object"!==t){st(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&pd(e,t,"name",a.name,a,null),pd(e,t,"formEncType",a.formEncType,a,null),pd(e,t,"formMethod",a.formMethod,a,null),pd(e,t,"formTarget",a.formTarget,a,null)):(pd(e,t,"encType",a.encType,a,null),pd(e,t,"method",a.method,a,null),pd(e,t,"target",a.target,a,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=It);break;case"onScroll":null!=o&&Zu("scroll",e);break;case"onScrollEnd":null!=o&&Zu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Nt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Zu("beforetoggle",e),Zu("toggle",e),lt(e,"popover",o);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":lt(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=Ot.get(n)||n,o)}}function fd(e,t,n,o,a,i){switch(n){case"style":At(e,o,i);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?Tt(e,o):("number"==typeof o||"bigint"==typeof o)&&Tt(e,""+o);break;case"onScroll":null!=o&&Zu("scroll",e);break;case"onScrollEnd":null!=o&&Zu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:et.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Fe]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):lt(e,n,o):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,a)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Zu("error",e),Zu("load",e);var o,a=!1,i=!1;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(null!=l)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:pd(e,t,o,l,n,null)}}return i&&pd(e,t,"srcSet",n.srcSet,n,null),void(a&&pd(e,t,"src",n.src,n,null));case"input":Zu("invalid",e);var s=o=l=i=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:pd(e,t,a,d,n,null)}}return void xt(e,o,s,c,u,l,i,!1);case"select":for(i in Zu("invalid",e),a=l=o=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":o=s;break;case"defaultValue":l=s;break;case"multiple":a=s;default:pd(e,t,i,s,n,null)}return t=o,n=l,e.multiple=!!a,void(null!=t?kt(e,!!a,t,!1):null!=n&&kt(e,!!a,n,!0));case"textarea":for(l in Zu("invalid",e),o=i=a=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":a=s;break;case"defaultValue":i=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:pd(e,t,l,s,n,null)}return void Et(e,a,i,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))if("selected"===c)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else pd(e,t,c,a,n,null);return;case"dialog":Zu("beforetoggle",e),Zu("toggle",e),Zu("cancel",e),Zu("close",e);break;case"iframe":case"object":Zu("load",e);break;case"video":case"audio":for(a=0;a<Xu.length;a++)Zu(Xu[a],e);break;case"image":Zu("error",e),Zu("load",e);break;case"details":Zu("toggle",e);break;case"embed":case"source":case"link":Zu("error",e),Zu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:pd(e,t,u,a,n,null)}return;default:if(Mt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&fd(e,t,d,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(a=n[s])&&pd(e,t,s,a,n,null))}function md(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var gd=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Cd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,Td="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Rd)}:kd;function Rd(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Ad(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Vp(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var a=n.firstChild;a;){var i=a.nextSibling,l=a.nodeName;a[Ve]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=i}}else"body"===n&&Fd(e.ownerDocument.body);n=o}while(n);Vp(t)}function Md(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function _d(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function Nd(e){return"$?"===e.data||"$~"===e.data}function Id(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var zd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function jd(e,t,n){switch(t=bd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ke(e)}var Bd=/* @__PURE__ */new Map,Wd=/* @__PURE__ */new Set;function Hd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ud=N.d;N.d={f:function(){var e=Ud.f(),t=tu();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?al(t):Ud.r(e)},D:function(e){Ud.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){Ud.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){Ud.L(e,t,n);var r=qd;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var a=o;switch(t){case"style":a=Gd(e);break;case"script":a=Yd(e)}Bd.has(a)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Bd.set(a,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Xd(a))||"script"===t&&r.querySelector(Zd(a))||(hd(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}},m:function(e,t){Ud.m(e,t);var n=qd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',a=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Yd(e)}if(!Bd.has(a)&&(e=u({rel:"modulepreload",href:e},t),Bd.set(a,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zd(a)))return}hd(r=n.createElement("link"),"link",e),Ze(r),n.head.appendChild(r)}}},X:function(e,t){Ud.X(e,t);var n=qd;if(n&&e){var r=Ye(n).hoistableScripts,o=Yd(e),a=r.get(o);a||((a=n.querySelector(Zd(o)))||(e=u({src:e,async:!0},t),(t=Bd.get(o))&&np(e,t),Ze(a=n.createElement("script")),hd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}},S:function(e,t,n){Ud.S(e,t,n);var r=qd;if(r&&e){var o=Ye(r).hoistableStyles,a=Gd(e);t=t||"default";var i=o.get(a);if(!i){var l={loading:0,preload:null};if(i=r.querySelector(Xd(a)))l.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Bd.get(a))&&tp(e,n);var s=i=r.createElement("link");Ze(s),hd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,ep(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},o.set(a,i)}}},M:function(e,t){Ud.M(e,t);var n=qd;if(n&&e){var r=Ye(n).hoistableScripts,o=Yd(e),a=r.get(o);a||((a=n.querySelector(Zd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Bd.get(o))&&np(e,t),Ze(a=n.createElement("script")),hd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}}};var qd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=qd;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Wd.has(o)||(Wd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}}function Kd(e,t,n,o){var a,i,l,s,c=(c=U.current)?Hd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=Ye(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=Ye(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Xd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Bd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Bd.set(e,n),u||(a=c,i=e,l=n,s=d.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=a.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),hd(i,"link",l),Ze(i),a.head.appendChild(i))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(o=(n=Ye(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+vt(e)+'"'}function Xd(e){return'link[rel="stylesheet"]['+e+"]"}function Qd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+vt(e)+'"]'}function Zd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,Ze(o),o;var a=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ze(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",a),ep(o,n.precedence,e),t.instance=o;case"stylesheet":a=Gd(n.href);var i=e.querySelector(Xd(a));if(i)return t.state.loading|=4,t.instance=i,Ze(i),i;o=Qd(n),(a=Bd.get(a))&&tp(o,a),Ze(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),hd(i,"link",o),t.state.loading|=4,ep(i,n.precedence,e),t.instance=i;case"script":return i=Yd(n.src),(a=e.querySelector(Zd(i)))?(t.instance=a,Ze(a),a):(o=n,(a=Bd.get(i))&&np(o=u({},n),a),Ze(a=(e=e.ownerDocument||e).createElement("script")),hd(a,"link",o),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ep(o,n.precedence,e));return t.instance}function ep(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,a=o,i=0;i<r.length;i++){var l=r[i];if(l.dataset.precedence===t)a=l;else if(a!==o)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tp(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function np(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rp=null;function op(e,t,n){if(null===rp){var r=/* @__PURE__ */new Map,o=rp=/* @__PURE__ */new Map;o.set(n,r)}else(r=(o=rp).get(n))||(r=/* @__PURE__ */new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var a=n[o];if(!(a[Ve]||a[je]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var i=a.getAttribute(t)||"";i=e+i;var l=r.get(i);l?l.push(a):r.set(i,[a])}}return r}function ap(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ip(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lp=0;function sp(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)up(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var cp=null;function up(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cp=/* @__PURE__ */new Map,t.forEach(dp,e),cp=null,sp.call(e))}function dp(e,t){if(!(4&t.state.loading)){var n=cp.get(e);if(n)var r=n.get(null);else{n=/* @__PURE__ */new Map,cp.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<o.length;a++){var i=o[a];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(o=t.instance).getAttribute("data-precedence"),(a=n.get(i)||r)===r&&n.set(null,o),n.set(i,o),this.count++,r=sp.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),a?a.parentNode.insertBefore(o,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pp={$$typeof:v,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function fp(e,t,n,r,o,a,i,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ae(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ae(0),this.hiddenUpdates=Ae(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=/* @__PURE__ */new Map}function hp(e,t,n,r,o,a,i,l,s,c,u,d){return e=new fp(e,t,n,i,s,c,u,d,l),t=1,!0===a&&(t|=24),a=Fr(3,null,null,t),e.current=a,a.stateNode=e,(t=Wo()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},va(a),e}function mp(e){return e?e=Dr:Dr}function gp(e,t,n,r,o,a){o=mp(o),null===r.context?r.context=o:r.pendingContext=o,(r=xa(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=Sa(e,r,t))&&(Qc(n,0,t),ka(n,e,t))}function yp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function bp(e,t){yp(e,t),(e=e.alternate)&&yp(e,t)}function vp(e){if(13===e.tag||31===e.tag){var t=Lr(e,67108864);null!==t&&Qc(t,0,67108864),bp(e,67108864)}}function wp(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Lr(e,t=Ie(t));null!==n&&Qc(n,0,t),bp(e,t)}}var xp=!0;function Sp(e,t,n,r){var o=_.T;_.T=null;var a=N.p;try{N.p=2,Cp(e,t,n,r)}finally{N.p=a,_.T=o}}function kp(e,t,n,r){var o=_.T;_.T=null;var a=N.p;try{N.p=8,Cp(e,t,n,r)}finally{N.p=a,_.T=o}}function Cp(e,t,n,r){if(xp){var o=Ep(r);if(null===o)rd(e,t,r,Tp,n),$p(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Mp=Dp(Mp,e,t,n,r,o),!0;case"dragenter":return Op=Dp(Op,e,t,n,r,o),!0;case"mouseover":return _p=Dp(_p,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Np.set(a,Dp(Np.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Ip.set(a,Dp(Ip.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if($p(e,r),4&t&&-1<zp.indexOf(e)){for(;null!==o;){var a=Xe(o);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var i=Ce(a.pendingLanes);if(0!==i){var l=a;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-be(i);l.entanglements[1]|=s,i&=~s}$u(a),!(6&mc)&&(zc=ie()+500,Du(0))}}break;case 31:case 13:null!==(l=Lr(a,2))&&Qc(l,0,2),tu(),bp(a,2)}if(null===(a=Ep(r))&&rd(e,t,r,Tp,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function Ep(e){return Rp(e=zt(e))}var Tp=null;function Rp(e){if(Tp=null,null!==(e=Ge(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(31===n){if(null!==(e=l(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tp=e,null}function Pp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case se:return 2;case ce:return 8;case ue:case de:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Ap=!1,Mp=null,Op=null,_p=null,Np=/* @__PURE__ */new Map,Ip=/* @__PURE__ */new Map,Lp=[],zp="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".split(" ");function $p(e,t){switch(e){case"focusin":case"focusout":Mp=null;break;case"dragenter":case"dragleave":Op=null;break;case"mouseover":case"mouseout":_p=null;break;case"pointerover":case"pointerout":Np.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ip.delete(t.pointerId)}}function Dp(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=Xe(t))&&vp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jp(e){var t=Ge(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void $e(e.priority,function(){wp(n)})}else if(31===t){if(null!==(t=l(n)))return e.blockedOn=t,void $e(e.priority,function(){wp(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Fp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ep(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&vp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function Bp(e,t,n){Fp(e)&&n.delete(t)}function Wp(){Ap=!1,null!==Mp&&Fp(Mp)&&(Mp=null),null!==Op&&Fp(Op)&&(Op=null),null!==_p&&Fp(_p)&&(_p=null),Np.forEach(Bp),Ip.forEach(Bp)}function Hp(t,n){t.blockedOn===n&&(t.blockedOn=null,Ap||(Ap=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Wp)))}var Up=null;function qp(t){Up!==t&&(Up=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Up===t&&(Up=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Rp(r||n))continue;break}var a=Xe(n);null!==a&&(t.splice(e,3),e-=3,rl(a,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Vp(e){function t(t){return Hp(t,e)}null!==Mp&&Hp(Mp,e),null!==Op&&Hp(Op,e),null!==_p&&Hp(_p,e),Np.forEach(t),Ip.forEach(t);for(var n=0;n<Lp.length;n++){var r=Lp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lp.length&&null===(n=Lp[0]).blockedOn;)jp(n),null===n.blockedOn&&Lp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],a=n[r+1],i=o[Fe]||null;if("function"==typeof a)i||qp(n);else if(i){var l=null;if(a&&a.hasAttribute("formAction")){if(o=a,i=a[Fe]||null)l=i.formAction;else if(null!==Rp(o))continue}else l=i.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),qp(n)}}}function Kp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Gp(e){this._internalRoot=e}function Xp(e){this._internalRoot=e}Xp.prototype.render=Gp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));gp(t.current,Gc(),e,t,null,null)},Xp.prototype.unmount=Gp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;gp(e.current,2,null,e,null,null),tu(),t[Be]=null}},Xp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lp.length&&0!==t&&t<Lp[n].priority;n++);Lp.splice(n,0,e),0===n&&jp(e)}};var Qp=t.version;if("19.2.1"!==Qp)throw Error(r(527,Qp,"19.2.1"));N.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var l=i.alternate;if(null===l){if(null!==(o=i.return)){n=o;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return s(i),e;if(l===o)return s(i),t;l=l.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=l;else{for(var c=!1,u=i.child;u;){if(u===n){c=!0,n=i,o=l;break}if(u===o){c=!0,o=i,n=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===n){c=!0,n=l,o=i;break}if(u===o){c=!0,o=l,n=i;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Yp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zp.isDisabled&&Zp.supportsFiber)try{me=Zp.inject(Yp),ge=Zp}catch(ef){}}return it.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,a="",i=Tl,l=Rl,s=Pl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=hp(e,1,!1,null,0,n,a,null,i,l,s,Kp),e[Be]=t.current,td(e),new Gp(t)},it.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var a=!1,i="",l=Tl,s=Rl,c=Pl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=hp(e,1,!0,t,0,a,i,u,l,s,c,Kp)).context=mp(null),n=t.current,(i=xa(a=Ie(a=Gc()))).callback=null,Sa(n,i,a),n=a,t.current.lanes=n,Me(t,n),$u(t),e[Be]=t.current,td(e),new Xp(t)},it.version="19.2.1",it}var vt=(ft||(ft=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),at.exports=bt()),at.exports);function wt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const xt="$$material";var St,kt,Ct=function(e,t){var n=arguments;if(null==t||!Ye.call(t,"css"))return h.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=tt,o[1]=Je(e,t);for(var a=2;a<r;a++)o[a]=n[a];return h.createElement.apply(null,o)};St=Ct||(Ct={}),kt||(kt=St.JSX||(St.JSX={}));var Et=/* @__PURE__ */Xe(function(e,t){var n=Be([e.styles],void 0,h.useContext(Qe)),r=h.useRef();return Ve(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}},[t]),Ve(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Me(t,n.next,!0),o.tags.length){var a=o.tags[o.tags.length-1].nextElementSibling;o.before=a,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Be(t)}function Rt(){var e=Tt.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 Pt=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,At=/* @__PURE__ */de(function(e){return Pt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Mt=function(e){return"theme"!==e},Ot=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?At:Mt},_t=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Nt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ae(t,n,r),qe(function(){return Me(t,n,r)}),null},It=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=_t(t,n,a),s=l||Ot(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var g=Xe(function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=h.useContext(Qe)}"string"==typeof e.className?a=Pe(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var m=Be(d.concat(u),t.registered,p);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var g=c&&void 0===l?Ot(r):s,y={};for(var b in e)c&&"as"===b||g(b)&&(y[b]=e[b]);return y.className=a,n&&(y.ref=n),/* @__PURE__ */h.createElement(h.Fragment,null,/* @__PURE__ */h.createElement(Nt,{cache:t,serialized:m,isStringTag:"string"==typeof r}),/* @__PURE__ */h.createElement(r,y))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=d,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,we({},n,r,{shouldForwardProp:_t(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function Lt(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;/* @__PURE__ */
3
+ return c.jsx(Et,{styles:r})}function zt(e,t){return It(e,t)}["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"].forEach(function(e){It[e]=It(e)});const $t=[];function Dt(e){return $t[0]=e,Be($t)}var jt,Ft,Bt={exports:{}},Wt={};function Ht(){if(jt)return Wt;jt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case s:case c:case p:return f;default:switch(f=f&&f.$$typeof){case i:case l:case d:case u:case a:return f;default:return h}}case t:return h}}}return Wt.ContextConsumer=a,Wt.ContextProvider=i,Wt.Element=e,Wt.ForwardRef=l,Wt.Fragment=n,Wt.Lazy=d,Wt.Memo=u,Wt.Portal=t,Wt.Profiler=o,Wt.StrictMode=r,Wt.Suspense=s,Wt.SuspenseList=c,Wt.isContextConsumer=function(e){return h(e)===a},Wt.isContextProvider=function(e){return h(e)===i},Wt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Wt.isForwardRef=function(e){return h(e)===l},Wt.isFragment=function(e){return h(e)===n},Wt.isLazy=function(e){return h(e)===d},Wt.isMemo=function(e){return h(e)===u},Wt.isPortal=function(e){return h(e)===t},Wt.isProfiler=function(e){return h(e)===o},Wt.isStrictMode=function(e){return h(e)===r},Wt.isSuspense=function(e){return h(e)===s},Wt.isSuspenseList=function(e){return h(e)===c},Wt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===a||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},Wt.typeOf=h,Wt}function Ut(){return Ft||(Ft=1,Bt.exports=/* @__PURE__ */Ht()),Bt.exports}var qt=/* @__PURE__ */Ut();function Vt(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Kt(e){if(/* @__PURE__ */h.isValidElement(e)||qt.isValidElementType(e)||!Vt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kt(e[n])}),t}function Gt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Vt(e)&&Vt(t)&&Object.keys(t).forEach(o=>{/* @__PURE__ */h.isValidElement(t[o])||qt.isValidElementType(t[o])?r[o]=t[o]:Vt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vt(e[o])?r[o]=Gt(e[o],t[o],n):n.clone?r[o]=Vt(t[o])?Kt(t[o]):t[o]:r[o]=t[o]}),r}function Xt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}function Qt(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Yt={borderRadius:4};function Zt(e,t){return t?Gt(e,t,{clone:!1}):e}const Jt={xs:0,sm:600,md:900,lg:1200,xl:1536},en={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jt[e]}px)`},tn={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Jt[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||en;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||en;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(l=a)||l.startsWith("@")&&(i.some(e=>l.startsWith(`@${e}`))||l.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:tn,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||Jt).includes(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}var i,l;return o},{})}return n(t)}function rn(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function on(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function an({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t),{})}function ln(e){if("string"!=typeof e)throw new Error(wt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function cn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:sn(e,n)||r,t&&(o=t(o,r,e)),o}function un(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=sn(e.theme,r)||{};return nn(e,a,e=>{let r=cn(i,o,e);return e===r&&"string"==typeof e&&(r=cn(i,o,`${t}${"default"===e?"":ln(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}const dn={m:"margin",p:"padding"},pn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!fn[e])return[e];e=fn[e]}const[t,n]=e.split(""),r=dn[t],o=pn[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),mn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yn(e,t,n,r){const o=sn(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function bn(e){return yn(e,"spacing",8)}function vn(e,t){return"string"==typeof t||null==t?t:e(t)}function wn(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=vn(t,n),e),{})}(hn(n),r);return nn(e,e[n],o)}function xn(e,t){const n=bn(e.theme);return Object.keys(e).map(r=>wn(e,t,r,n)).reduce(Zt,{})}function Sn(e){return xn(e,mn)}function kn(e){return xn(e,gn)}function Cn(e=8,t=bn({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function En(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Zt(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Tn(e){return"number"!=typeof e?e:`${e}px solid`}function Rn(e,t){return un({prop:e,themeKey:"borders",transform:t})}Sn.propTypes={},Sn.filterProps=mn,kn.propTypes={},kn.filterProps=gn;const Pn=Rn("border",Tn),An=Rn("borderTop",Tn),Mn=Rn("borderRight",Tn),On=Rn("borderBottom",Tn),_n=Rn("borderLeft",Tn),Nn=Rn("borderColor"),In=Rn("borderTopColor"),Ln=Rn("borderRightColor"),zn=Rn("borderBottomColor"),$n=Rn("borderLeftColor"),Dn=Rn("outline",Tn),jn=Rn("outlineColor"),Fn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:vn(t,e)});return nn(e,e.borderRadius,n)}return null};Fn.propTypes={},Fn.filterProps=["borderRadius"],En(Pn,An,Mn,On,_n,Nn,In,Ln,zn,$n,Fn,Dn,jn);const Bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yn(e.theme,"spacing",8),n=e=>({gap:vn(t,e)});return nn(e,e.gap,n)}return null};Bn.propTypes={},Bn.filterProps=["gap"];const Wn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yn(e.theme,"spacing",8),n=e=>({columnGap:vn(t,e)});return nn(e,e.columnGap,n)}return null};Wn.propTypes={},Wn.filterProps=["columnGap"];const Hn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yn(e.theme,"spacing",8),n=e=>({rowGap:vn(t,e)});return nn(e,e.rowGap,n)}return null};Hn.propTypes={},Hn.filterProps=["rowGap"];function Un(e,t){return"grey"===t?t:e}En(Bn,Wn,Hn,un({prop:"gridColumn"}),un({prop:"gridRow"}),un({prop:"gridAutoFlow"}),un({prop:"gridAutoColumns"}),un({prop:"gridAutoRows"}),un({prop:"gridTemplateColumns"}),un({prop:"gridTemplateRows"}),un({prop:"gridTemplateAreas"}),un({prop:"gridArea"}));function qn(e){return e<=1&&0!==e?100*e+"%":e}En(un({prop:"color",themeKey:"palette",transform:Un}),un({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Un}),un({prop:"backgroundColor",themeKey:"palette",transform:Un}));const Vn=un({prop:"width",transform:qn}),Kn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Jt[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:qn(t)}};return nn(e,e.maxWidth,t)}return null};Kn.filterProps=["maxWidth"];const Gn=un({prop:"minWidth",transform:qn}),Xn=un({prop:"height",transform:qn}),Qn=un({prop:"maxHeight",transform:qn}),Yn=un({prop:"minHeight",transform:qn});un({prop:"size",cssProperty:"width",transform:qn}),un({prop:"size",cssProperty:"height",transform:qn});En(Vn,Kn,Gn,Xn,Qn,Yn,un({prop:"boxSizing"}));const Zn={border:{themeKey:"borders",transform:Tn},borderTop:{themeKey:"borders",transform:Tn},borderRight:{themeKey:"borders",transform:Tn},borderBottom:{themeKey:"borders",transform:Tn},borderLeft:{themeKey:"borders",transform:Tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fn},color:{themeKey:"palette",transform:Un},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Un},backgroundColor:{themeKey:"palette",transform:Un},p:{style:kn},pt:{style:kn},pr:{style:kn},pb:{style:kn},pl:{style:kn},px:{style:kn},py:{style:kn},padding:{style:kn},paddingTop:{style:kn},paddingRight:{style:kn},paddingBottom:{style:kn},paddingLeft:{style:kn},paddingX:{style:kn},paddingY:{style:kn},paddingInline:{style:kn},paddingInlineStart:{style:kn},paddingInlineEnd:{style:kn},paddingBlock:{style:kn},paddingBlockStart:{style:kn},paddingBlockEnd:{style:kn},m:{style:Sn},mt:{style:Sn},mr:{style:Sn},mb:{style:Sn},ml:{style:Sn},mx:{style:Sn},my:{style:Sn},margin:{style:Sn},marginTop:{style:Sn},marginRight:{style:Sn},marginBottom:{style:Sn},marginLeft:{style:Sn},marginX:{style:Sn},marginY:{style:Sn},marginInline:{style:Sn},marginInlineStart:{style:Sn},marginInlineEnd:{style:Sn},marginBlock:{style:Sn},marginBlockStart:{style:Sn},marginBlockEnd:{style:Sn},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:Bn},rowGap:{style:Hn},columnGap:{style:Wn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:Kn},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},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"}};const Jn=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=sn(n,l)||{};if(c)return c(o);return nn(o,t,t=>{let n=cn(u,s,t);return t===n&&"string"==typeof t&&(n=cn(u,s,`${e}${"default"===t?"":ln(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Zn;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const l=rn(o.breakpoints),s=Object.keys(l);let c=l;return Object.keys(r).forEach(n=>{const a=(l=r[n],s=o,"function"==typeof l?l(s):l);var l,s;if(null!=a)if("object"==typeof a)if(i[n])c=Zt(c,e(n,a,o,i));else{const e=nn({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?c=Zt(c,e):c[n]=t({sx:a,theme:o,nested:!0})}else c=Zt(c,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Qt(o,on(s,c))}:Qt(o,on(s,c))}return Array.isArray(r)?r.map(l):l(r)}}();function er(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function tr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let l=Gt({breakpoints:Xt(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Cn(o),shape:{...Yt,...a}},i);return l=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(l),l.applyStyles=er,l=t.reduce((e,t)=>Gt(e,t),l),l.unstable_sxConfig={...Zn,...i?.unstable_sxConfig},l.unstable_sx=function(e){return Jn({sx:e,theme:this})},l}function nr(e=null){const t=h.useContext(Qe);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}Jn.filterProps=["sx"];const rr=tr();function or(e=rr){return nr(e)}function ar(e){const t=Dt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ir({styles:e,themeId:t,defaultTheme:n={}}){const r=or(n),o=t&&r[t]||r;let a="function"==typeof e?e(o):e;return o.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>ar("function"==typeof e?e(o):e)):ar(a)),/* @__PURE__ */c.jsx(Lt,{styles:a})}function lr(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Zn;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Vt(n)?{...r,...n}:r}:{...r,...t},{...o,sx:a}}const sr=e=>e,cr=(()=>{let e=sr;return{configure(t){e=t},generate:t=>e(t),reset(){e=sr}}})();function ur(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ur(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ur(e))&&(r&&(r+=" "),r+=t);return r}const pr={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 fr(e,t,n="Mui"){const r=pr[t];return r?`${n}-${r}`:`${cr.generate(e)}-${t}`}function hr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=fr(e,t,n)}),r}function mr(e){const{variants:t,...n}=e,r={variants:t,style:Dt(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Dt(e.style))}),r}const gr=tr();function yr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function br(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function vr(e){return e?(t,n)=>n[e]:null}function wr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>wr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?br(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?br(Dt(o),n):o}return xr(e,r.variants,[t],n)}return r?.isProcessed?n?br(Dt(r.style),n):r.style:n?br(Dt(r),n):r}function xr(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?br(Dt(i.style(o)),r):i.style(o))):n.push(r?br(Dt(i.style),r):i.style)}return n}function Sr(e={}){const{themeId:t,defaultTheme:n=gr,rootShouldForwardProp:r=yr,slotShouldForwardProp:o=yr}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Jn));const{name:n,slot:i,skipVariantsResolver:l,skipSx:s,overridesResolver:c=vr(Cr(i)),...u}=t,d=n&&n.startsWith("Mui")||i?"components":"custom",p=void 0!==l?l:i&&"Root"!==i&&"root"!==i||!1,f=s||!1;let h=yr;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=zt(e,{shouldForwardProp:h,label:kr(),...u}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return wr(t,e,t.theme.modularCssLayers?d:void 0)};if(Vt(e)){const t=mr(e);return function(e){return t.variants?wr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?br(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),i=[];if(r.push(a),n&&c&&i.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=wr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!p&&i.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?xr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),f||i.push(Jn),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(i.length).fill("");let a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}const l=[...r,...o,...i],s=m(...l);return e.muiName&&(s.muiName=e.muiName),s};return m.withConfig&&(y.withConfig=m.withConfig),y}}function kr(e,t){}function Cr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const Er=Sr();function Tr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=Tr(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=dr(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}function Rr({props:e,name:t,defaultTheme:n,themeId:r}){let o=or(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Tr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Pr="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;function Ar(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Mr(e){if(e.type)return e;if("#"===e.charAt(0))return Mr(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(wt(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(wt(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Or=(e,t)=>{try{return(e=>{const t=Mr(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function _r(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Nr(e){e=Mr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),_r({type:l,values:s})}function Ir(e){let t="hsl"===(e=Mr(e)).type||"hsla"===e.type?Mr(Nr(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lr(e,t){return e=Mr(e),t=Ar(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,_r(e)}function zr(e,t,n){try{return Lr(e,t)}catch(r){return e}}function $r(e,t){if(e=Mr(e),t=Ar(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 _r(e)}function Dr(e,t,n){try{return $r(e,t)}catch(r){return e}}function jr(e,t){if(e=Mr(e),t=Ar(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 _r(e)}function Fr(e,t,n){try{return jr(e,t)}catch(r){return e}}function Br(e,t,n){try{return function(e,t=.15){return Ir(e)>.5?$r(e,t):jr(e,t)}(e,t)}catch(r){return e}}const Wr=/* @__PURE__ */h.createContext(null);function Hr(){return h.useContext(Wr)}const Ur="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function qr(e){const{children:t,theme:n}=e,r=Hr(),o=h.useMemo(()=>{const e=null===r?{...n}:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[Ur]=null!==r),e},[n,r]);/* @__PURE__ */
4
+ return c.jsx(Wr.Provider,{value:o,children:t})}const Vr=/* @__PURE__ */h.createContext();function Kr({value:e,...t}){/* @__PURE__ */
5
+ return c.jsx(Vr.Provider,{value:e??!0,...t})}const Gr=()=>h.useContext(Vr)??!1,Xr=/* @__PURE__ */h.createContext(void 0);function Qr({value:e,children:t}){/* @__PURE__ */
6
+ return c.jsx(Xr.Provider,{value:e,children:t})}function Yr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Tr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Tr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:h.useContext(Xr)}})}let Zr=0;const Jr={...g}.useId;function eo(e){if(void 0!==Jr){const t=Jr();return e??t}return function(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect(()=>{null==t&&(Zr+=1,n(`mui-${Zr}`))},[t]),r}(e)}const to={};function no(e,t,n,r=!1){return h.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?{...t,[e]:a}:a;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ro(e){const{children:t,theme:n,themeId:r}=e,o=nr(to),a=Hr()||to,i=no(r,o,n),l=no(r,a,n,!0),s="rtl"===(r?i[r]:i).direction,u=function(e){const t=nr(),n=eo()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Pr(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const r=document.createElement("style");r.setAttribute("data-mui-layer-order",n),r.textContent=o,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?/* @__PURE__ */c.jsx(ir,{styles:o}):null}(i);/* @__PURE__ */
7
+ return c.jsx(qr,{theme:l,children:/* @__PURE__ */c.jsx(Qe.Provider,{value:i,children:/* @__PURE__ */c.jsx(Kr,{value:s,children:/* @__PURE__ */c.jsxs(Qr,{value:r?i[r].components:i.components,children:[u,t]})})})})}const oo={theme:void 0};const ao="mode",io="color-scheme",lo="data-color-scheme";function so(){}const co=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return so;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function uo(){}function po(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function fo(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function ho(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=ao,colorSchemeStorageKey:i=io,storageWindow:l=("undefined"==typeof window?void 0:window),storageManager:s=co,noSsr:c=!1}=e,u=o.join(","),d=o.length>1,p=h.useMemo(()=>s?.({key:a,storageWindow:l}),[s,a,l]),f=h.useMemo(()=>s?.({key:`${i}-light`,storageWindow:l}),[s,i,l]),m=h.useMemo(()=>s?.({key:`${i}-dark`,storageWindow:l}),[s,i,l]),[g,y]=h.useState(()=>{const e=p?.get(t)||t,o=f?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:po(e),lightColorScheme:o,darkColorScheme:a}}),[b,v]=h.useState(c||!d);h.useEffect(()=>{v(!0)},[]);const w=function(e){return fo(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),x=h.useCallback(e=>{y(n=>{if(e===n.mode)return n;const r=e??t;return p?.set(r),{...n,mode:r,systemMode:po(r)}})},[p,t]),S=h.useCallback(e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):y(t=>{const n={...t};return fo(t,t=>{"light"===t&&(f?.set(e),n.lightColorScheme=e),"dark"===t&&(m?.set(e),n.darkColorScheme=e)}),n}):y(t=>{const o={...t},a=null===e.light?n:e.light,i=null===e.dark?r:e.dark;return a&&(u.includes(a)?(o.lightColorScheme=a,f?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i&&(u.includes(i)?(o.darkColorScheme=i,m?.set(i)):console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)),o}):y(e=>(f?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,f,m,n,r]),k=h.useCallback(e=>{"system"===g.mode&&y(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),C=h.useRef(k);return C.current=k,h.useEffect(()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>C.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),h.useEffect(()=>{if(d){const e=p?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||x(e||t)})||uo,n=f?.subscribe(e=>{e&&!u.match(e)||S({light:e})})||uo,r=m?.subscribe(e=>{e&&!u.match(e)||S({dark:e})})||uo;return()=>{e(),n(),r()}}},[S,x,u,t,l,d,p,f,m]),{...g,mode:b?g.mode:void 0,systemMode:b?g.systemMode:void 0,colorScheme:b?w:void 0,setMode:x,setColorScheme:S}}function mo(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const go=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function yo(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var l,s;return l=(e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:s}),go(a,e,`var(${r})`,l),go(i,e,`var(${r}, ${s})`,l)}},s=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!s||s&&!s([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):l([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}function bo(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===l?"":" ")+t(r),l=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}function vo(e,t){/* @__PURE__ */
8
+ return h.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}const wo=tr(),xo=Er("div",{name:"MuiStack",slot:"Root"});function So(e){return Rr({props:e,name:"MuiStack",defaultTheme:wo})}function ko(e,t){const n=h.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(/* @__PURE__ */h.cloneElement(t,{key:`separator-${o}`})),e),[])}const Co=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...nn({theme:t},an({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=bn(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),a=an({values:e.direction,base:o}),i=an({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}});n=Gt(n,nn({theme:t},i,(t,n)=>{return e.useFlexGap?{gap:vn(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:vn(r,t)}};var o}))}return n=function(e,...t){const n=rn(e),r=[n,...t].reduce((e,t)=>Gt(e,t),{});return on(Object.keys(n),r)}(t.breakpoints,n),n};const Eo={black:"#000",white:"#fff"},To={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"},Ro="#f3e5f5",Po="#ce93d8",Ao="#ba68c8",Mo="#ab47bc",Oo="#9c27b0",_o="#7b1fa2",No="#e57373",Io="#ef5350",Lo="#f44336",zo="#d32f2f",$o="#c62828",Do="#ffb74d",jo="#ffa726",Fo="#ff9800",Bo="#f57c00",Wo="#e65100",Ho="#e3f2fd",Uo="#90caf9",qo="#42a5f5",Vo="#1976d2",Ko="#1565c0",Go="#4fc3f7",Xo="#29b6f6",Qo="#03a9f4",Yo="#0288d1",Zo="#01579b",Jo="#81c784",ea="#66bb6a",ta="#4caf50",na="#388e3c",ra="#2e7d32",oa="#1b5e20";function aa(){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:Eo.white,default:Eo.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 ia=aa();function la(){return{text:{primary:Eo.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:Eo.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 sa=la();function ca(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=jr(e.main,o):"dark"===t&&(e.dark=$r(e.main,a)))}function ua(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function da(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Uo,light:Ho,dark:qo}:{main:Vo,light:qo,dark:Ko}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:Po,light:Ro,dark:Mo}:{main:Oo,light:Ao,dark:_o}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Lo,light:No,dark:zo}:{main:zo,light:Io,dark:$o}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Xo,light:Go,dark:Yo}:{main:Yo,light:Qo,dark:Zo}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ea,light:Jo,dark:na}:{main:ra,light:ta,dark:oa}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:jo,light:Do,dark:Bo}:{main:"#ed6c02",light:Fo,dark:Wo}}(t);function p(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Ir(e),r=Ir(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,sa.text.primary)>=n?sa.text.primary:ia.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wt(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ua(o,e,"light",a,r),ua(o,e,"dark",i,r)):(ca(e,"light",a,r),ca(e,"dark",i,r)),e.contrastText||(e.contrastText=p(e.main)),e};let h;"light"===t?h=aa():"dark"===t&&(h=la());return Gt({common:{...Eo},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:To,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r,...h},a)}function pa(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const fa={textTransform:"uppercase"},ha='"Roboto", "Helvetica", "Arial", sans-serif';function ma(e,t){const{fontFamily:n=ha,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:s=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,f=u||(e=>e/s*p+"rem"),h=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===ha?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},...a,...c};var i},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,fa),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,fa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gt({htmlFontSize:s,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...m},d,{clone:!1})}function ga(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ya=["none",ga(0,2,1,-1,0,1,1,0,0,1,3,0),ga(0,3,1,-2,0,2,2,0,0,1,5,0),ga(0,3,3,-2,0,3,4,0,0,1,8,0),ga(0,2,4,-1,0,4,5,0,0,1,10,0),ga(0,3,5,-1,0,5,8,0,0,1,14,0),ga(0,3,5,-1,0,6,10,0,0,1,18,0),ga(0,4,5,-2,0,7,10,1,0,2,16,1),ga(0,5,5,-3,0,8,10,1,0,3,14,2),ga(0,5,6,-3,0,9,12,1,0,3,16,2),ga(0,6,6,-3,0,10,14,1,0,4,18,3),ga(0,6,7,-4,0,11,15,1,0,4,20,3),ga(0,7,8,-4,0,12,17,2,0,5,22,4),ga(0,7,8,-4,0,13,19,2,0,5,24,4),ga(0,7,9,-4,0,14,21,2,0,5,26,4),ga(0,8,9,-5,0,15,22,2,0,6,28,5),ga(0,8,10,-5,0,16,24,2,0,6,30,5),ga(0,8,11,-5,0,17,26,2,0,6,32,5),ga(0,9,11,-5,0,18,28,2,0,7,34,6),ga(0,9,12,-6,0,19,29,2,0,7,36,6),ga(0,10,13,-6,0,20,31,3,0,8,38,7),ga(0,10,13,-6,0,21,33,3,0,8,40,7),ga(0,10,14,-6,0,22,35,3,0,8,42,7),ga(0,11,14,-7,0,23,36,3,0,9,44,8),ga(0,11,15,-7,0,24,38,3,0,9,46,8)],ba={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)"},va={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wa(e){return`${Math.round(e)}ms`}function xa(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Sa(e){const t={...ba,...e.easing},n={...va,...e.duration};return{getAutoHeightDuration:xa,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...l}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:wa(o)} ${a} ${"string"==typeof i?i:wa(i)}`).join(",")},...e,easing:t,duration:n}}const ka={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ca(e){return Vt(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Ea(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!Ca(a)||o.startsWith("unstable_")?delete t[o]:Vt(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Ta(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function Ra(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Lr(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ta(n)})`:jr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ta(n)})`:$r(t,n)}})}function Pa(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:s,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(wt(20));const d=da({...a,colorSpace:c}),p=tr(e);let f=Gt(p,{mixins:(h=p.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:ya.slice(),typography:ma(d,l),transitions:Sa(i),zIndex:{...ka}});var h,m;return f=Gt(f,u),f=t.reduce((e,t)=>Gt(e,t),f),f.unstable_sxConfig={...Zn,...u?.unstable_sxConfig},f.unstable_sx=function(e){return Jn({sx:e,theme:this})},f.toRuntimeSource=Ea,Ra(f),f}function Aa(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Ma=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Aa(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Oa(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function _a(e){return"dark"===e?Ma:[]}function Na(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Ia=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function La(e,t,n){!e[t]&&n&&(e[t]=n)}function za(e){return"string"==typeof e&&e.startsWith("hsl")?Nr(e):e}function $a(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Or(za(e[t])))}const Da=e=>{try{return e()}catch(t){}};function ja(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=da({...t,colorSpace:o});return{palette:i,opacity:{...Oa(i.mode),...n},overlays:r||_a(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...l}=Pa({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Oa(a),...n?.opacity},overlays:n?.overlays||_a(a)},l}function Fa(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:l=Na,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&"light"!==d?"light":d),f=((e="mui")=>mo(e))(a),{[p]:h,light:m,dark:g,...y}=n,b={...y};let v,w=h;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(w=!0),!w)throw new Error(wt(21,p));i&&(v="oklch");const x=ja(v,b,w,u,p);m&&!b.light&&ja(v,b,m,void 0,"light"),g&&!b.dark&&ja(v,b,g,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:f,colorSchemes:b,font:{...pa(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(S.colorSchemes).forEach(e=>{const t=S.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};function r(e,t,n){if(v){let r;return e===zr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Dr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Fr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(La(t.common,"background","#fff"),La(t.common,"onBackground","#000")),"dark"===t.mode&&(La(t.common,"background","#000"),La(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){La(t.Alert,"errorColor",r(Dr,t.error.light,.6)),La(t.Alert,"infoColor",r(Dr,t.info.light,.6)),La(t.Alert,"successColor",r(Dr,t.success.light,.6)),La(t.Alert,"warningColor",r(Dr,t.warning.light,.6)),La(t.Alert,"errorFilledBg",n("palette-error-main")),La(t.Alert,"infoFilledBg",n("palette-info-main")),La(t.Alert,"successFilledBg",n("palette-success-main")),La(t.Alert,"warningFilledBg",n("palette-warning-main")),La(t.Alert,"errorFilledColor",Da(()=>t.getContrastText(t.error.main))),La(t.Alert,"infoFilledColor",Da(()=>t.getContrastText(t.info.main))),La(t.Alert,"successFilledColor",Da(()=>t.getContrastText(t.success.main))),La(t.Alert,"warningFilledColor",Da(()=>t.getContrastText(t.warning.main))),La(t.Alert,"errorStandardBg",r(Fr,t.error.light,.9)),La(t.Alert,"infoStandardBg",r(Fr,t.info.light,.9)),La(t.Alert,"successStandardBg",r(Fr,t.success.light,.9)),La(t.Alert,"warningStandardBg",r(Fr,t.warning.light,.9)),La(t.Alert,"errorIconColor",n("palette-error-main")),La(t.Alert,"infoIconColor",n("palette-info-main")),La(t.Alert,"successIconColor",n("palette-success-main")),La(t.Alert,"warningIconColor",n("palette-warning-main")),La(t.AppBar,"defaultBg",n("palette-grey-100")),La(t.Avatar,"defaultBg",n("palette-grey-400")),La(t.Button,"inheritContainedBg",n("palette-grey-300")),La(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),La(t.Chip,"defaultBorder",n("palette-grey-400")),La(t.Chip,"defaultAvatarColor",n("palette-grey-700")),La(t.Chip,"defaultIconColor",n("palette-grey-700")),La(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),La(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),La(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),La(t.LinearProgress,"primaryBg",r(Fr,t.primary.main,.62)),La(t.LinearProgress,"secondaryBg",r(Fr,t.secondary.main,.62)),La(t.LinearProgress,"errorBg",r(Fr,t.error.main,.62)),La(t.LinearProgress,"infoBg",r(Fr,t.info.main,.62)),La(t.LinearProgress,"successBg",r(Fr,t.success.main,.62)),La(t.LinearProgress,"warningBg",r(Fr,t.warning.main,.62)),La(t.Skeleton,"bg",v?r(zr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),La(t.Slider,"primaryTrack",r(Fr,t.primary.main,.62)),La(t.Slider,"secondaryTrack",r(Fr,t.secondary.main,.62)),La(t.Slider,"errorTrack",r(Fr,t.error.main,.62)),La(t.Slider,"infoTrack",r(Fr,t.info.main,.62)),La(t.Slider,"successTrack",r(Fr,t.success.main,.62)),La(t.Slider,"warningTrack",r(Fr,t.warning.main,.62));const e=v?r(Dr,t.background.default,.6825):Br(t.background.default,.8);La(t.SnackbarContent,"bg",e),La(t.SnackbarContent,"color",Da(()=>v?sa.text.primary:t.getContrastText(e))),La(t.SpeedDialAction,"fabHoverBg",Br(t.background.paper,.15)),La(t.StepConnector,"border",n("palette-grey-400")),La(t.StepContent,"border",n("palette-grey-400")),La(t.Switch,"defaultColor",n("palette-common-white")),La(t.Switch,"defaultDisabledColor",n("palette-grey-100")),La(t.Switch,"primaryDisabledColor",r(Fr,t.primary.main,.62)),La(t.Switch,"secondaryDisabledColor",r(Fr,t.secondary.main,.62)),La(t.Switch,"errorDisabledColor",r(Fr,t.error.main,.62)),La(t.Switch,"infoDisabledColor",r(Fr,t.info.main,.62)),La(t.Switch,"successDisabledColor",r(Fr,t.success.main,.62)),La(t.Switch,"warningDisabledColor",r(Fr,t.warning.main,.62)),La(t.TableCell,"border",r(Fr,r(zr,t.divider,1),.88)),La(t.Tooltip,"bg",r(zr,t.grey[700],.92))}if("dark"===t.mode){La(t.Alert,"errorColor",r(Fr,t.error.light,.6)),La(t.Alert,"infoColor",r(Fr,t.info.light,.6)),La(t.Alert,"successColor",r(Fr,t.success.light,.6)),La(t.Alert,"warningColor",r(Fr,t.warning.light,.6)),La(t.Alert,"errorFilledBg",n("palette-error-dark")),La(t.Alert,"infoFilledBg",n("palette-info-dark")),La(t.Alert,"successFilledBg",n("palette-success-dark")),La(t.Alert,"warningFilledBg",n("palette-warning-dark")),La(t.Alert,"errorFilledColor",Da(()=>t.getContrastText(t.error.dark))),La(t.Alert,"infoFilledColor",Da(()=>t.getContrastText(t.info.dark))),La(t.Alert,"successFilledColor",Da(()=>t.getContrastText(t.success.dark))),La(t.Alert,"warningFilledColor",Da(()=>t.getContrastText(t.warning.dark))),La(t.Alert,"errorStandardBg",r(Dr,t.error.light,.9)),La(t.Alert,"infoStandardBg",r(Dr,t.info.light,.9)),La(t.Alert,"successStandardBg",r(Dr,t.success.light,.9)),La(t.Alert,"warningStandardBg",r(Dr,t.warning.light,.9)),La(t.Alert,"errorIconColor",n("palette-error-main")),La(t.Alert,"infoIconColor",n("palette-info-main")),La(t.Alert,"successIconColor",n("palette-success-main")),La(t.Alert,"warningIconColor",n("palette-warning-main")),La(t.AppBar,"defaultBg",n("palette-grey-900")),La(t.AppBar,"darkBg",n("palette-background-paper")),La(t.AppBar,"darkColor",n("palette-text-primary")),La(t.Avatar,"defaultBg",n("palette-grey-600")),La(t.Button,"inheritContainedBg",n("palette-grey-800")),La(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),La(t.Chip,"defaultBorder",n("palette-grey-700")),La(t.Chip,"defaultAvatarColor",n("palette-grey-300")),La(t.Chip,"defaultIconColor",n("palette-grey-300")),La(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),La(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),La(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),La(t.LinearProgress,"primaryBg",r(Dr,t.primary.main,.5)),La(t.LinearProgress,"secondaryBg",r(Dr,t.secondary.main,.5)),La(t.LinearProgress,"errorBg",r(Dr,t.error.main,.5)),La(t.LinearProgress,"infoBg",r(Dr,t.info.main,.5)),La(t.LinearProgress,"successBg",r(Dr,t.success.main,.5)),La(t.LinearProgress,"warningBg",r(Dr,t.warning.main,.5)),La(t.Skeleton,"bg",v?r(zr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),La(t.Slider,"primaryTrack",r(Dr,t.primary.main,.5)),La(t.Slider,"secondaryTrack",r(Dr,t.secondary.main,.5)),La(t.Slider,"errorTrack",r(Dr,t.error.main,.5)),La(t.Slider,"infoTrack",r(Dr,t.info.main,.5)),La(t.Slider,"successTrack",r(Dr,t.success.main,.5)),La(t.Slider,"warningTrack",r(Dr,t.warning.main,.5));const e=v?r(Fr,t.background.default,.985):Br(t.background.default,.98);La(t.SnackbarContent,"bg",e),La(t.SnackbarContent,"color",Da(()=>v?ia.text.primary:t.getContrastText(e))),La(t.SpeedDialAction,"fabHoverBg",Br(t.background.paper,.15)),La(t.StepConnector,"border",n("palette-grey-600")),La(t.StepContent,"border",n("palette-grey-600")),La(t.Switch,"defaultColor",n("palette-grey-300")),La(t.Switch,"defaultDisabledColor",n("palette-grey-600")),La(t.Switch,"primaryDisabledColor",r(Dr,t.primary.main,.55)),La(t.Switch,"secondaryDisabledColor",r(Dr,t.secondary.main,.55)),La(t.Switch,"errorDisabledColor",r(Dr,t.error.main,.55)),La(t.Switch,"infoDisabledColor",r(Dr,t.info.main,.55)),La(t.Switch,"successDisabledColor",r(Dr,t.success.main,.55)),La(t.Switch,"warningDisabledColor",r(Dr,t.warning.main,.55)),La(t.TableCell,"border",r(Dr,r(zr,t.divider,1),.68)),La(t.Tooltip,"bg",r(zr,t.grey[700],.92))}$a(t.background,"default"),$a(t.background,"paper"),$a(t.common,"background"),$a(t.common,"onBackground"),$a(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&La(t[e],"mainChannel",Or(za(n.main))),n.light&&La(t[e],"lightChannel",Or(za(n.light))),n.dark&&La(t[e],"darkChannel",Or(za(n.dark))),n.contrastText&&La(t[e],"contrastTextChannel",Or(za(n.contrastText))),"text"===e&&($a(t[e],"primary"),$a(t[e],"secondary")),"action"===e&&(n.active&&$a(t[e],"active"),n.selected&&$a(t[e],"selected")))})}),S=t.reduce((e,t)=>Gt(e,t),S);const C={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:Ia(S),enableContrastVars:i},{vars:E,generateThemeVars:T,generateStyleSheets:R}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=yo(c,t);let f=p;const h={},{[s]:m,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=yo(n,t);f=Gt(f,a),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=yo(m,t);f=Gt(f,r),h[s]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=Gt(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...d}),d);const{[o]:s,...c}=h;if(s){const{css:e}=s,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};l(n(o,{...a}),a)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};l(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(S,C);return S.vars=E,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=R,S.generateSpacing=function(){return Cn(u.spacing,bn(this))},S.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=l,S.unstable_sxConfig={...Zn,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Jn({sx:e,theme:this})},S.toRuntimeSource=Ea,S}function Ba(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:da({...!0===n?{}:n.palette,mode:t})})}function Wa(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,l=a||"light",s=o?.[l],c={...o,...n?{[l]:{..."boolean"!=typeof s&&s,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Pa(e,...t);let r=n;"palette"in e||c[l]&&(!0!==c[l]?r=c[l].palette:"dark"===l&&(r={mode:"dark"}));const o=Pa({...e,palette:r},...t);return o.defaultColorScheme=l,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Ba(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Ba(o,"light",c.light)),o}return n||"light"in c||"light"!==l||(c.light=!0),Fa({...i,colorSchemes:c,defaultColorScheme:l,..."boolean"!=typeof r&&r},...t)}const Ha=Wa();function Ua(){const e=or(Ha);return e[xt]||e}function qa(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Va=e=>qa(e)&&"classes"!==e,Ka=Sr({themeId:xt,defaultTheme:Ha,rootShouldForwardProp:Va});function Ga({theme:e,...t}){const n=xt in e?e[xt]:void 0;/* @__PURE__ */
9
+ return c.jsx(ro,{...t,themeId:n?xt:void 0,theme:n||e})}const Xa="mui-color-scheme",Qa="light",Ya="dark",Za="mui-mode",{CssVarsProvider:Ja}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=ao,colorSchemeStorageKey:o=io,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=e,s={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=/* @__PURE__ */h.createContext(void 0),d={},p={},f="string"==typeof i?i:i.light,m="string"==typeof i?i:i.dark;return{CssVarsProvider:function(e){const{children:s,theme:f,modeStorageKey:m=r,colorSchemeStorageKey:g=o,disableTransitionOnChange:y=a,storageManager:b,storageWindow:v=("undefined"==typeof window?void 0:window),documentNode:w=("undefined"==typeof document?void 0:document),colorSchemeNode:x=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:S=!1,disableStyleSheetGeneration:k=!1,defaultMode:C="system",forceThemeRerender:E=!1,noSsr:T}=e,R=h.useRef(!1),P=Hr(),A=h.useContext(u),M=!!A&&!S,O=h.useMemo(()=>f||("function"==typeof n?n():n),[f]),_=O[t],N=_||O,{colorSchemes:I=d,components:L=p,cssVarPrefix:z}=N,$=Object.keys(I).filter(e=>!!I[e]).join(","),D=h.useMemo(()=>$.split(","),[$]),j="string"==typeof i?i:i.light,F="string"==typeof i?i:i.dark,B=I[j]&&I[F]?C:I[N.defaultColorScheme]?.palette?.mode||N.palette?.mode,{mode:W,setMode:H,systemMode:U,lightColorScheme:q,darkColorScheme:V,colorScheme:K,setColorScheme:G}=ho({supportedColorSchemes:D,defaultLightColorScheme:j,defaultDarkColorScheme:F,modeStorageKey:m,colorSchemeStorageKey:g,defaultMode:B,storageManager:b,storageWindow:v,noSsr:T});let X=W,Q=K;M&&(X=A.mode,Q=A.colorScheme);let Y=Q||N.defaultColorScheme;N.vars&&!E&&(Y=N.defaultColorScheme);const Z=h.useMemo(()=>{const e=N.generateThemeVars?.()||N.vars,t={...N,components:L,colorSchemes:I,cssVarPrefix:z,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),Y){const e=I[Y];e&&"object"==typeof e&&Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return l?l(t):t},[N,Y,L,I,z]),J=N.colorSchemeSelector;Pr(()=>{if(Q&&x&&J&&"media"!==J){const e=J;let t=J;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))x.classList.remove(...D.map(e=>t.substring(1).replace("%s",e))),x.classList.add(t.substring(1).replace("%s",Q));else{const e=t.replace("%s",Q).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||D.forEach(e=>{x.removeAttribute(t.replace(Q,e))}),x.setAttribute(t,n?n.replace(/"|'/g,""):"")}else x.setAttribute(t,Q)}}},[Q,J,x,D]),h.useEffect(()=>{let e;if(y&&R.current&&w){const t=w.createElement("style");t.appendChild(w.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),w.head.appendChild(t),window.getComputedStyle(w.body),e=setTimeout(()=>{w.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[Q,y,w]),h.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const ee=h.useMemo(()=>({allColorSchemes:D,colorScheme:Q,darkColorScheme:V,lightColorScheme:q,mode:X,setColorScheme:G,setMode:H,systemMode:U}),[D,Q,V,q,X,G,H,U,Z.colorSchemeSelector]);let te=!0;(k||!1===N.cssVariables||M&&P?.cssVarPrefix===z)&&(te=!1);const ne=/* @__PURE__ */c.jsxs(h.Fragment,{children:[/* @__PURE__ */c.jsx(ro,{themeId:_?t:void 0,theme:Z,children:s}),te&&/* @__PURE__ */c.jsx(Lt,{styles:Z.generateStyleSheets?.()||[]})]});return M?ne:/* @__PURE__ */c.jsx(u.Provider,{value:ee,children:ne})},useColorScheme:()=>h.useContext(u)||s,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=ao,colorSchemeStorageKey:a=io,attribute:i=lo,colorSchemeNode:l="document.documentElement",nonce:s}=e||{};let u="",d=i;if("class"===i&&(d=".%s"),"data"===i&&(d="[data-%s]"),d.startsWith(".")){const e=d.substring(1);u+=`${l}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${l}.classList.add('${e}'.replace('%s', colorScheme));`}const p=d.match(/\[([^[\]]+)\]/);if(p){const[e,t]=p[1].split("=");t||(u+=`${l}.removeAttribute('${e}'.replace('%s', light));\n ${l}.removeAttribute('${e}'.replace('%s', dark));`),u+=`\n ${l}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else".%s"!==d&&(u+=`${l}.setAttribute('${d}', colorScheme);`);/* @__PURE__ */
10
+ return c.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?s:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${o}') || '${t}';\n const dark = localStorage.getItem('${a}-dark') || '${r}';\n const light = localStorage.getItem('${a}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${u}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:m,modeStorageKey:r,...e})}}({themeId:xt,theme:()=>Wa({cssVariables:!0}),colorSchemeStorageKey:Xa,modeStorageKey:Za,defaultColorScheme:{light:Qa,dark:Ya},resolveTheme:e=>{const t={...e,typography:ma(e.palette,e.typography)};return t.unstable_sx=function(e){return Jn({sx:e,theme:this})},t}}),ei=Ja;function ti({theme:e,...t}){const n=h.useMemo(()=>{if("function"==typeof e)return e;const t=xt in e?e[xt]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?/* @__PURE__ */c.jsx(Ga,{theme:n,...t}):/* @__PURE__ */c.jsx(ei,{theme:e,...t})}function ni(e){/* @__PURE__ */
11
+ return c.jsx(ir,{...e,defaultTheme:Ha,themeId:xt})}function ri(e){return function(t){
12
+ /* @__PURE__ */
13
+ return c.jsx(ni,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function oi(e){return Yr(e)}const ai="function"==typeof ri({}),ii=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),li=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),si=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:ii(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...li(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},ci="mui-ecs",ui=ri(ai?({theme:e,enableColorScheme:t})=>si(e,t):({theme:e})=>(e=>{const t=si(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${ci})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${ci}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${ci}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function di(e){const t=oi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;/* @__PURE__ */
14
+ return c.jsxs(h.Fragment,{children:[ai&&/* @__PURE__ */c.jsx(ui,{enableColorScheme:r}),!ai&&!r&&/* @__PURE__ */c.jsx("span",{className:ci,style:{display:"none"}}),n]})}function pi(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}const fi=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(oo.theme=r.theme,o=mr(e(oo)),t=o,n=r.theme),o}};function hi(e){return fr("MuiSvgIcon",e)}hr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mi=Ka("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ln(n.color)}`],t[`fontSize${ln(n.fontSize)}`]]}})(fi(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),gi=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...f}=n,m=/* @__PURE__ */h.isValidElement(r)&&"svg"===r.type,g={...n,color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:m},y={};u||(y.viewBox=p);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return bo({root:["root","inherit"!==t&&`color${ln(t)}`,`fontSize${ln(n)}`]},hi,r)})(g);/* @__PURE__ */
15
+ return c.jsxs(mi,{as:i,className:dr(b.root,o),focusable:"false",color:s,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...y,...f,...m&&r.props,ownerState:g,children:[m?r.props.children:r,d?/* @__PURE__ */c.jsx("title",{children:d}):null]})});function yi(e,t){function n(t,n){/* @__PURE__ */
16
+ return c.jsx(gi,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=gi.muiName,/* @__PURE__ */h.memo(/* @__PURE__ */h.forwardRef(n))}function bi(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function vi(e){return e&&e.ownerDocument||document}function wi(e){return vi(e).defaultView||window}function xi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Si(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=h.useRef(void 0!==t),[i,l]=h.useState(n);return[a?t:i,h.useCallback(e=>{a||l(e)},[])]}function ki(e){const t=h.useRef(e);return Pr(()=>{t.current=e}),h.useRef((...e)=>(0,t.current)(...e)).current}function Ci(...e){const t=h.useRef(void 0),n=h.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return h.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Ei(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,a="function"==typeof e?e({...r,...o}):e,i=dr(r?.className,o?.className,a?.className),l=n(a,o);return{...o,...a,...l,...!!i&&{className:i},...o?.style&&a?.style&&{style:{...o.style,...a.style}},...o?.sx&&a?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const r=t,o=n(e,r),a=dr(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Ti(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Ri(e,t){return(Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t)}gi.muiName="SvgIcon";var Ai=yt();const Mi=/* @__PURE__ */n(Ai),Oi=!1,_i=m.createContext(null);var Ni="unmounted",Ii="exited",Li="entering",zi="entered",$i="exiting",Di=/* @__PURE__ */function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=Ii,r.appearStatus=Li):o=zi:o=t.unmountOnExit||t.mountOnEnter?Ni:Ii,r.state={status:o},r.nextCallback=null,r}Pi(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ni?{status:Ii}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Li&&n!==zi&&(t=Li):n!==Li&&n!==zi||(t=$i)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Li){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Mi.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ii&&this.setState({status:Ni})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Mi.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Oi?this.safeSetState({status:zi},function(){t.props.onEntered(a)}):(this.props.onEnter(a,i),this.safeSetState({status:Li},function(){t.props.onEntering(a,i),t.onTransitionEnd(s,function(){t.safeSetState({status:zi},function(){t.props.onEntered(a,i)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Mi.findDOMNode(this);t&&!Oi?(this.props.onExit(r),this.safeSetState({status:$i},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ii},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ii},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Mi.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ni)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ti(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);
17
+ /* @__PURE__ */
18
+ return m.createElement(_i.Provider,{value:null},"function"==typeof n?n(e,r):m.cloneElement(m.Children.only(n),r))},t}(m.Component);function ji(){}function Fi(e,t){var n=/* @__PURE__ */Object.create(null);return e&&h.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&h.isValidElement(e)?t(e):e}(e)}),n}function Bi(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wi(e,t,n){var r=Fi(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=/* @__PURE__ */Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(h.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=h.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&h.isValidElement(c)&&(o[a]=h.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Bi(i,"exit",e),enter:Bi(i,"enter",e)})):o[a]=h.cloneElement(i,{in:!1}):o[a]=h.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Bi(i,"exit",e),enter:Bi(i,"enter",e)})}}),o}Di.contextType=_i,Di.propTypes={},Di.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ji,onEntering:ji,onEntered:ji,onExit:ji,onExiting:ji,onExited:ji},Di.UNMOUNTED=Ni,Di.EXITED=Ii,Di.ENTERING=Li,Di.ENTERED=zi,Di.EXITING=$i;var Hi=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ui=/* @__PURE__ */function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Pi(t,e);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(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Fi(n.children,function(e){return h.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Bi(e,"appear",n),enter:Bi(e,"enter",n),exit:Bi(e,"exit",n)})})):Wi(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Fi(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=we({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ti(e,["component","childFactory"]),o=this.state.contextValue,a=Hi(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?/* @__PURE__ */m.createElement(_i.Provider,{value:o},a):/* @__PURE__ */m.createElement(_i.Provider,{value:o},/* @__PURE__ */m.createElement(t,r,a))},t}(m.Component);Ui.propTypes={},Ui.defaultProps={component:"div",childFactory:function(e){return e}};const qi={};function Vi(e,t){const n=h.useRef(qi);return n.current===qi&&(n.current=e(t)),n}const Ki=[];class Gi{static create(){return new Gi}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Xi(){const e=Vi(Gi.create).current;var t;return t=e.disposeEffect,h.useEffect(t,Ki),e}const Qi=e=>e.scrollTop;function Yi(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function Zi(e){return"string"==typeof e}function Ji(e,t,n){return void 0===e||Zi(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function el(e,t,n){return"function"==typeof e?e(t,n):e}function tl(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function nl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function rl(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=dr(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=tl({...o,...r}),l=nl(r),s=nl(o),c=t(i),u=dr(c?.className,n?.className,a,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...s,...l};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function ol(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=a,f=u[e]||r,h=el(d[e],o),{props:{component:m,...g},internalRef:y}=rl({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),b=Ci(y,h?.ref,t.ref),v="root"===e?m||c:m;return[f,Ji(f,{..."root"===e&&!c&&!u[e]&&i,..."root"!==e&&!u[e]&&i,...g,...v&&!l&&{as:v},...v&&l&&{component:v},ref:b},o)]}function al(e){return fr("MuiCollapse",e)}hr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const il=Ka("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(fi(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),ll=Ka("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),sl=Ka("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),cl=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:l,easing:s,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:m,onExited:g,onExiting:y,orientation:b="vertical",slots:v={},slotProps:w={},style:x,timeout:S=va.standard,TransitionComponent:k=Di,...C}=n,E={...n,orientation:b,collapsedSize:i},T=(e=>{const{orientation:t,classes:n}=e;return bo({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},al,n)})(E),R=Ua(),P=Xi(),A=h.useRef(null),M=h.useRef(),O="number"==typeof i?`${i}px`:i,_="horizontal"===b,N=_?"width":"height",I=h.useRef(null),L=Ci(t,I),z=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},$=()=>A.current?A.current[_?"clientWidth":"clientHeight"]:0,D=z((e,t)=>{A.current&&_&&(A.current.style.position="absolute"),e.style[N]=O,d&&d(e,t)}),j=z((e,t)=>{const n=$();A.current&&_&&(A.current.style.position="");const{duration:r,easing:o}=Yi({style:x,timeout:S,easing:s},{mode:"enter"});if("auto"===S){const t=R.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,M.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[N]=`${n}px`,e.style.transitionTimingFunction=o,f&&f(e,t)}),F=z((e,t)=>{e.style[N]="auto",p&&p(e,t)}),B=z(e=>{e.style[N]=`${$()}px`,m&&m(e)}),W=z(g),H=z(e=>{const t=$(),{duration:n,easing:r}=Yi({style:x,timeout:S,easing:s},{mode:"exit"});if("auto"===S){const n=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,M.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[N]=O,e.style.transitionTimingFunction=r,y&&y(e)}),U={slots:v,slotProps:w,component:l},[q,V]=ol("root",{ref:L,className:dr(T.root,a),elementType:il,externalForwardedProps:U,ownerState:E,additionalProps:{style:{[_?"minWidth":"minHeight"]:O,...x}}}),[K,G]=ol("wrapper",{ref:A,className:T.wrapper,elementType:ll,externalForwardedProps:U,ownerState:E}),[X,Q]=ol("wrapperInner",{className:T.wrapperInner,elementType:sl,externalForwardedProps:U,ownerState:E});/* @__PURE__ */
19
+ return c.jsx(k,{in:u,onEnter:D,onEntered:F,onEntering:j,onExit:B,onExited:W,onExiting:H,addEndListener:e=>{"auto"===S&&P.start(M.current||0,e),r&&r(I.current,e)},nodeRef:I,timeout:"auto"===S?null:S,...C,children:(e,{ownerState:t,...n})=>{const r={...E,state:e};/* @__PURE__ */
20
+ return c.jsx(q,{...V,className:dr(V.className,{entered:T.entered,exited:!u&&"0px"===O&&T.hidden}[e]),ownerState:r,...n,children:/* @__PURE__ */c.jsx(K,{...G,ownerState:r,children:/* @__PURE__ */c.jsx(X,{...Q,ownerState:r,children:o})})})}})});function ul(e){return fr("MuiPaper",e)}cl&&(cl.muiSupportAuto=!0),hr("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 dl=Ka("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(fi(({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:e})=>!e.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)"}}]}))),pl=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiPaper"}),r=Ua(),{className:o,component:a="div",elevation:i=1,square:l=!1,variant:s="elevation",...u}=n,d={...n,component:a,elevation:i,square:l,variant:s},p=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ul,o)})(d);/* @__PURE__ */
21
+ return c.jsx(dl,{as:a,ownerState:d,className:dr(p.root,o),ref:t,...u,style:{..."elevation"===s&&{"--Paper-shadow":(r.vars||r).shadows[i],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[i]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${Lr("#fff",Aa(i))}, ${Lr("#fff",Aa(i))})`}},...u.style}})}),fl=/* @__PURE__ */h.createContext({});function hl(e){return fr("MuiAccordion",e)}const ml=hr("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),gl=Ka(pl,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ml.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(fi(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${ml.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${ml.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),fi(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${ml.expanded}`]:{margin:"16px 0"}}}]}))),yl=Ka("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),bl=Ka("div",{name:"MuiAccordion",slot:"Region"})({}),vl=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiAccordion"}),{children:r,className:o,defaultExpanded:a=!1,disabled:i=!1,disableGutters:l=!1,expanded:s,onChange:u,square:d=!1,slots:p={},slotProps:f={},TransitionComponent:m,TransitionProps:g,...y}=n,[b,v]=Si({controlled:s,default:a,name:"Accordion",state:"expanded"}),w=h.useCallback(e=>{v(!b),u&&u(e,!b)},[b,u,v]),[x,...S]=h.Children.toArray(r),k=h.useMemo(()=>({expanded:b,disabled:i,disableGutters:l,toggle:w}),[b,i,l,w]),C={...n,square:d,disabled:i,disableGutters:l,expanded:b},E=(e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return bo({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},hl,t)})(C),T={slots:{transition:m,...p},slotProps:{transition:g,...f}},[R,P]=ol("root",{elementType:gl,externalForwardedProps:{...T,...y},className:dr(E.root,o),shouldForwardComponentProp:!0,ownerState:C,ref:t,additionalProps:{square:d}}),[A,M]=ol("heading",{elementType:yl,externalForwardedProps:T,className:E.heading,ownerState:C}),[O,_]=ol("transition",{elementType:cl,externalForwardedProps:T,ownerState:C}),[N,I]=ol("region",{elementType:bl,externalForwardedProps:T,ownerState:C,className:E.region,additionalProps:{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region"}});/* @__PURE__ */
22
+ return c.jsxs(R,{...P,children:[/* @__PURE__ */c.jsx(A,{...M,children:/* @__PURE__ */c.jsx(fl.Provider,{value:k,children:x})}),/* @__PURE__ */c.jsx(O,{in:b,timeout:"auto",..._,children:/* @__PURE__ */c.jsx(N,{...I,children:S})})]})});function wl(e){return fr("MuiAccordionDetails",e)}hr("MuiAccordionDetails",["root"]);const xl=Ka("div",{name:"MuiAccordionDetails",slot:"Root"})(fi(({theme:e})=>({padding:e.spacing(1,2,2)}))),Sl=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiAccordionDetails"}),{className:r,...o}=n,a=n,i=(e=>{const{classes:t}=e;return bo({root:["root"]},wl,t)})(a);/* @__PURE__ */
23
+ return c.jsx(xl,{className:dr(i.root,r),ref:t,ownerState:a,...o})});function kl(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class Cl{static create(){return new Cl}static use(){const e=Vi(Cl.create).current,[t,n]=h.useState(!1);return e.shouldMount=t,e.setShouldMount=n,h.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const El=hr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Tl=Rt`
24
+ 0% {
25
+ transform: scale(0);
26
+ opacity: 0.1;
27
+ }
28
+
29
+ 100% {
30
+ transform: scale(1);
31
+ opacity: 0.3;
32
+ }
33
+ `,Rl=Rt`
34
+ 0% {
35
+ opacity: 1;
36
+ }
37
+
38
+ 100% {
39
+ opacity: 0;
40
+ }
41
+ `,Pl=Rt`
42
+ 0% {
43
+ transform: scale(1);
44
+ }
45
+
46
+ 50% {
47
+ transform: scale(0.92);
48
+ }
49
+
50
+ 100% {
51
+ transform: scale(1);
52
+ }
53
+ `,Al=Ka("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ml=Ka(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:u}=e,[d,p]=h.useState(!1),f=dr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-i/2+a,left:-i/2+o},g=dr(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||p(!0),h.useEffect(()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}},[s,l,u]),/* @__PURE__ */c.jsx("span",{className:f,style:m,children:/* @__PURE__ */c.jsx("span",{className:g})})},{name:"MuiTouchRipple",slot:"Ripple"})`
54
+ opacity: 0;
55
+ position: absolute;
56
+
57
+ &.${El.rippleVisible} {
58
+ opacity: 0.3;
59
+ transform: scale(1);
60
+ animation-name: ${Tl};
61
+ animation-duration: ${550}ms;
62
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
63
+ }
64
+
65
+ &.${El.ripplePulsate} {
66
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
67
+ }
68
+
69
+ & .${El.child} {
70
+ opacity: 1;
71
+ display: block;
72
+ width: 100%;
73
+ height: 100%;
74
+ border-radius: 50%;
75
+ background-color: currentColor;
76
+ }
77
+
78
+ & .${El.childLeaving} {
79
+ opacity: 0;
80
+ animation-name: ${Rl};
81
+ animation-duration: ${550}ms;
82
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
83
+ }
84
+
85
+ & .${El.childPulsate} {
86
+ position: absolute;
87
+ /* @noflip */
88
+ left: 0px;
89
+ top: 0;
90
+ animation-name: ${Pl};
91
+ animation-duration: 2500ms;
92
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
93
+ animation-iteration-count: infinite;
94
+ animation-delay: 200ms;
95
+ }
96
+ `,Ol=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[l,s]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=h.useRef(!1),f=Xi(),m=h.useRef(null),g=h.useRef(null),y=h.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s(e=>[...e/* @__PURE__ */,c.jsx(Ml,{classes:{ripple:dr(o.ripple,El.ripple),rippleVisible:dr(o.rippleVisible,El.rippleVisible),ripplePulsate:dr(o.ripplePulsate,El.ripplePulsate),child:dr(o.child,El.child),childLeaving:dr(o.childLeaving,El.childLeaving),childPulsate:dr(o.childPulsate,El.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,d.current=i},[o]),b=h.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const l=i?null:g.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{y({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.start(80,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,y,f]),v=h.useCallback(()=>{b({},{pulsate:!0})},[b]),w=h.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void f.start(0,()=>{w(e,t)});m.current=null,s(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return h.useImperativeHandle(t,()=>({pulsate:v,start:b,stop:w}),[v,b,w]),/* @__PURE__ */c.jsx(Al,{className:dr(El.root,o.root,a),ref:g,...i,children:/* @__PURE__ */c.jsx(Ui,{component:null,exit:!0,children:l})})});function _l(e){return fr("MuiButtonBase",e)}const Nl=hr("MuiButtonBase",["root","disabled","focusVisible"]),Il=Ka("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"},[`&.${Nl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ll=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:f,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:b,onDragLeave:v,onFocus:w,onFocusVisible:x,onKeyDown:S,onKeyUp:k,onMouseDown:C,onMouseLeave:E,onMouseUp:T,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:M=0,TouchRippleProps:O,touchRippleRef:_,type:N,...I}=n,L=h.useRef(null),z=Cl.use(),$=Ci(z.ref,_),[D,j]=h.useState(!1);s&&D&&j(!1),h.useImperativeHandle(r,()=>({focusVisible:()=>{j(!0),L.current.focus()}}),[]);const F=z.shouldMount&&!u&&!s;h.useEffect(()=>{D&&p&&!u&&z.pulsate()},[u,p,D,z]);const B=zl(z,"start",C,d),W=zl(z,"stop",b,d),H=zl(z,"stop",v,d),U=zl(z,"stop",T,d),q=zl(z,"stop",e=>{D&&e.preventDefault(),E&&E(e)},d),V=zl(z,"start",A,d),K=zl(z,"stop",R,d),G=zl(z,"stop",P,d),X=zl(z,"stop",e=>{kl(e.target)||j(!1),g&&g(e)},!1),Q=ki(e=>{L.current||(L.current=e.currentTarget),kl(e.target)&&(j(!0),x&&x(e)),w&&w(e)}),Y=()=>{const e=L.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},Z=ki(e=>{p&&!e.repeat&&D&&" "===e.key&&z.stop(e,()=>{z.start(e)}),e.target===e.currentTarget&&Y()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&Y()&&"Enter"===e.key&&!s&&(e.preventDefault(),y&&y(e))}),J=ki(e=>{p&&" "===e.key&&D&&!e.defaultPrevented&&z.stop(e,()=>{z.pulsate(e)}),k&&k(e),y&&e.target===e.currentTarget&&Y()&&" "===e.key&&!e.defaultPrevented&&y(e)});let ee=l;"button"===ee&&(I.href||I.to)&&(ee=m);const te={};if("button"===ee){const e=!!I.formAction;te.type=void 0!==N||e?N:"button",te.disabled=s}else I.href||I.to||(te.role="button"),s&&(te["aria-disabled"]=s);const ne=Ci(t,L),re={...n,centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:D},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=bo({root:["root",t&&"disabled",n&&"focusVisible"]},_l,o);return n&&r&&(a.root+=` ${r}`),a})(re);/* @__PURE__ */
97
+ return c.jsxs(Il,{as:ee,className:dr(oe.root,i),ownerState:re,onBlur:X,onClick:y,onContextMenu:W,onFocus:Q,onKeyDown:Z,onKeyUp:J,onMouseDown:B,onMouseLeave:q,onMouseUp:U,onDragLeave:H,onTouchEnd:K,onTouchMove:G,onTouchStart:V,ref:ne,tabIndex:s?-1:M,type:N,...te,...I,children:[a,F?/* @__PURE__ */c.jsx(Ol,{ref:$,center:o,...O}):null]})});function zl(e,t,n,r=!1){return ki(o=>(n&&n(o),r||e[t](o),!0))}function $l(e){return fr("MuiAccordionSummary",e)}const Dl=hr("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),jl=Ka(Ll,{name:"MuiAccordionSummary",slot:"Root"})(fi(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Dl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Dl.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${Dl.expanded}`]:{minHeight:64}}}]}})),Fl=Ka("span",{name:"MuiAccordionSummary",slot:"Content"})(fi(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Dl.expanded}`]:{margin:"20px 0"}}}]}))),Bl=Ka("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(fi(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Dl.expanded}`]:{transform:"rotate(180deg)"}}))),Wl=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiAccordionSummary"}),{children:r,className:o,expandIcon:a,focusVisibleClassName:i,onClick:l,slots:s,slotProps:u,...d}=n,{disabled:p=!1,disableGutters:f,expanded:m,toggle:g}=h.useContext(fl),y={...n,expanded:m,disabled:p,disableGutters:f},b=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return bo({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},$l,t)})(y),v={slots:s,slotProps:u},[w,x]=ol("root",{ref:t,shouldForwardComponentProp:!0,className:dr(b.root,o),elementType:jl,externalForwardedProps:{...v,...d},ownerState:y,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:p,"aria-expanded":m,focusVisibleClassName:dr(b.focusVisible,i)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{g&&g(e),l&&l(e)})(t)}})}),[S,k]=ol("content",{className:b.content,elementType:Fl,externalForwardedProps:v,ownerState:y}),[C,E]=ol("expandIconWrapper",{className:b.expandIconWrapper,elementType:Bl,externalForwardedProps:v,ownerState:y});/* @__PURE__ */
98
+ return c.jsxs(w,{...x,children:[/* @__PURE__ */c.jsx(S,{...k,children:r}),a&&/* @__PURE__ */c.jsx(C,{...E,children:a})]})});function Hl(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function Ul(e){return fr("MuiAlert",e)}const ql=hr("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 Vl(e){return fr("MuiCircularProgress",e)}hr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Kl=44,Gl=Rt`
99
+ 0% {
100
+ transform: rotate(0deg);
101
+ }
102
+
103
+ 100% {
104
+ transform: rotate(360deg);
105
+ }
106
+ `,Xl=Rt`
107
+ 0% {
108
+ stroke-dasharray: 1px, 200px;
109
+ stroke-dashoffset: 0;
110
+ }
111
+
112
+ 50% {
113
+ stroke-dasharray: 100px, 200px;
114
+ stroke-dashoffset: -15px;
115
+ }
116
+
117
+ 100% {
118
+ stroke-dasharray: 1px, 200px;
119
+ stroke-dashoffset: -126px;
120
+ }
121
+ `,Ql="string"!=typeof Gl?Tt`
122
+ animation: ${Gl} 1.4s linear infinite;
123
+ `:null,Yl="string"!=typeof Xl?Tt`
124
+ animation: ${Xl} 1.4s ease-in-out infinite;
125
+ `:null,Zl=Ka("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ln(n.color)}`]]}})(fi(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ql||{animation:`${Gl} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Jl=Ka("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),es=Ka("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ln(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(fi(({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:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Yl||{animation:`${Xl} 1.4s ease-in-out infinite`}}]}))),ts=Ka("circle",{name:"MuiCircularProgress",slot:"Track"})(fi(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ns=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,enableTrackSlot:i=!1,size:l=40,style:s,thickness:u=3.6,value:d=0,variant:p="indeterminate",...f}=n,h={...n,color:o,disableShrink:a,size:l,thickness:u,value:d,variant:p,enableTrackSlot:i},m=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return bo({root:["root",n,`color${ln(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ln(n)}`,o&&"circleDisableShrink"]},Vl,t)})(h),g={},y={},b={};if("determinate"===p){const e=2*Math.PI*((Kl-u)/2);g.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}/* @__PURE__ */
126
+ return c.jsx(Zl,{className:dr(m.root,r),style:{width:l,height:l,...y,...s},ownerState:h,ref:t,role:"progressbar",...b,...f,children:/* @__PURE__ */c.jsxs(Jl,{className:m.svg,ownerState:h,viewBox:"22 22 44 44",children:[i?/* @__PURE__ */c.jsx(ts,{className:m.track,ownerState:h,cx:Kl,cy:Kl,r:(Kl-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,/* @__PURE__ */c.jsx(es,{className:m.circle,style:g,ownerState:h,cx:Kl,cy:Kl,r:(Kl-u)/2,fill:"none",strokeWidth:u})]})})});function rs(e){return fr("MuiIconButton",e)}const os=hr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),as=Ka(Ll,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${ln(n.color)}`],n.edge&&t[`edge${ln(n.edge)}`],t[`size${ln(n.size)}`]]}})(fi(({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:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||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}}]})),fi(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||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)}}],[`&.${os.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${os.loading}`]:{color:"transparent"}}))),is=Ka("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"}}]})),ls=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:u="medium",id:d,loading:p=null,loadingIndicator:f,...h}=n,m=eo(d),g=f??/* @__PURE__ */c.jsx(ns,{"aria-labelledby":m,color:"inherit",size:16}),y={...n,edge:r,color:i,disabled:l,disableFocusRipple:s,loading:p,loadingIndicator:g,size:u},b=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e;return bo({root:["root",i&&"loading",n&&"disabled","default"!==r&&`color${ln(r)}`,o&&`edge${ln(o)}`,`size${ln(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},rs,t)})(y);/* @__PURE__ */
127
+ return c.jsxs(as,{id:p?m:d,className:dr(b.root,a),centerRipple:!0,focusRipple:!s,disabled:l||p,ref:t,...h,ownerState:y,children:["boolean"==typeof p&&
128
+ /* @__PURE__ */c.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:/* @__PURE__ */c.jsx(is,{className:b.loadingIndicator,ownerState:y,children:p&&g})}),o]})}),ss=yi(/* @__PURE__ */c.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"})),cs=yi(/* @__PURE__ */c.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),us=yi(/* @__PURE__ */c.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"})),ds=yi(/* @__PURE__ */c.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"})),ps=yi(/* @__PURE__ */c.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"})),fs=Ka(pl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ln(n.color||n.severity)}`]]}})(fi(({theme:e})=>{const t="light"===e.palette.mode?e.darken:e.lighten,n="light"===e.palette.mode?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Hl(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${ql.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Hl(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${ql.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Hl(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),hs=Ka("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ms=Ka("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),gs=Ka("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ys={success:/* @__PURE__ */c.jsx(ss,{fontSize:"inherit"}),warning:/* @__PURE__ */c.jsx(cs,{fontSize:"inherit"}),error:/* @__PURE__ */c.jsx(us,{fontSize:"inherit"}),info:/* @__PURE__ */c.jsx(ds,{fontSize:"inherit"})},bs=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiAlert"}),{action:r,children:o,className:a,closeText:i="Close",color:l,components:s={},componentsProps:u={},icon:d,iconMapping:p=ys,onClose:f,role:h="alert",severity:m="success",slotProps:g={},slots:y={},variant:b="standard",...v}=n,w={...n,color:l,severity:m,variant:b,colorSeverity:l||m},x=(e=>{const{variant:t,color:n,severity:r,classes:o}=e;return bo({root:["root",`color${ln(n||r)}`,`${t}${ln(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},Ul,o)})(w),S={slots:{closeButton:s.CloseButton,closeIcon:s.CloseIcon,...y},slotProps:{...u,...g}},[k,C]=ol("root",{ref:t,shouldForwardComponentProp:!0,className:dr(x.root,a),elementType:fs,externalForwardedProps:{...S,...v},ownerState:w,additionalProps:{role:h,elevation:0}}),[E,T]=ol("icon",{className:x.icon,elementType:hs,externalForwardedProps:S,ownerState:w}),[R,P]=ol("message",{className:x.message,elementType:ms,externalForwardedProps:S,ownerState:w}),[A,M]=ol("action",{className:x.action,elementType:gs,externalForwardedProps:S,ownerState:w}),[O,_]=ol("closeButton",{elementType:ls,externalForwardedProps:S,ownerState:w}),[N,I]=ol("closeIcon",{elementType:ps,externalForwardedProps:S,ownerState:w});/* @__PURE__ */
129
+ return c.jsxs(k,{...C,children:[!1!==d?/* @__PURE__ */c.jsx(E,{...T,children:d||p[m]||ys[m]}):null,/* @__PURE__ */c.jsx(R,{...P,children:o}),null!=r?/* @__PURE__ */c.jsx(A,{...M,children:r}):null,null==r&&f?/* @__PURE__ */c.jsx(A,{...M,children:/* @__PURE__ */c.jsx(O,{size:"small","aria-label":i,title:i,color:"inherit",onClick:f,..._,children:/* @__PURE__ */c.jsx(N,{fontSize:"small",...I})})}):null]})});function vs(e){return fr("MuiTypography",e)}hr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ws={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},xs=lr,Ss=Ka("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ln(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(fi(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${ln(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),ks={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cs=/* @__PURE__ */h.forwardRef(function(e,t){const{color:n,...r}=oi({props:e,name:"MuiTypography"}),o=xs({...r,...!ws[n]&&{color:n}}),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:f=ks,...h}=o,m={...o,align:a,color:n,className:i,component:l,gutterBottom:s,noWrap:u,paragraph:d,variant:p,variantMapping:f},g=l||(d?"p":f[p]||ks[p])||"span",y=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return bo({root:["root",a,"inherit"!==e.align&&`align${ln(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},vs,i)})(m);/* @__PURE__ */
130
+ return c.jsx(Ss,{as:g,ref:t,className:dr(y.root,i),...h,ownerState:m,style:{..."inherit"!==a&&{"--Typography-textAlign":a},...h.style}})});function Es(e){return fr("MuiAlertTitle",e)}hr("MuiAlertTitle",["root"]);const Ts=Ka(Cs,{name:"MuiAlertTitle",slot:"Root"})(fi(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Rs=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiAlertTitle"}),{className:r,...o}=n,a=n,i=(e=>{const{classes:t}=e;return bo({root:["root"]},Es,t)})(a);/* @__PURE__ */
131
+ return c.jsx(Ts,{gutterBottom:!0,component:"div",ownerState:a,ref:t,className:dr(i.root,r),...o})});var Ps="top",As="bottom",Ms="right",Os="left",_s="auto",Ns=[Ps,As,Ms,Os],Is="start",Ls="end",zs="viewport",$s="popper",Ds=/* @__PURE__ */Ns.reduce(function(e,t){return e.concat([t+"-"+Is,t+"-"+Ls])},[]),js=/* @__PURE__ */[].concat(Ns,[_s]).reduce(function(e,t){return e.concat([t,t+"-"+Is,t+"-"+Ls])},[]),Fs=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Bs(e){return e?(e.nodeName||"").toLowerCase():null}function Ws(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hs(e){return e instanceof Ws(e).Element||e instanceof Element}function Us(e){return e instanceof Ws(e).HTMLElement||e instanceof HTMLElement}function qs(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ws(e).ShadowRoot||e instanceof ShadowRoot)}const Vs={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Us(o)&&Bs(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(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(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Us(r)&&Bs(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ks(e){return e.split("-")[0]}var Gs=Math.max,Xs=Math.min,Qs=Math.round;function Ys(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zs(){return!/^((?!chrome|android).)*safari/i.test(Ys())}function Js(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Us(e)&&(o=e.offsetWidth>0&&Qs(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Qs(r.height)/e.offsetHeight||1);var i=(Hs(e)?Ws(e):window).visualViewport,l=!Zs()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function ec(e){var t=Js(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qs(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nc(e){return Ws(e).getComputedStyle(e)}function rc(e){return["table","td","th"].indexOf(Bs(e))>=0}function oc(e){return((Hs(e)?e.ownerDocument:e.document)||window.document).documentElement}function ac(e){return"html"===Bs(e)?e:e.assignedSlot||e.parentNode||(qs(e)?e.host:null)||oc(e)}function ic(e){return Us(e)&&"fixed"!==nc(e).position?e.offsetParent:null}function lc(e){for(var t=Ws(e),n=ic(e);n&&rc(n)&&"static"===nc(n).position;)n=ic(n);return n&&("html"===Bs(n)||"body"===Bs(n)&&"static"===nc(n).position)?t:n||function(e){var t=/firefox/i.test(Ys());if(/Trident/i.test(Ys())&&Us(e)&&"fixed"===nc(e).position)return null;var n=ac(e);for(qs(n)&&(n=n.host);Us(n)&&["html","body"].indexOf(Bs(n))<0;){var r=nc(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function sc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cc(e,t,n){return Gs(e,Xs(t,n))}function uc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function dc(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function pc(e){return e.split("-")[1]}var fc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),v=Os,w=Ps,x=window;if(c){var S=lc(n),k="clientHeight",C="clientWidth";if(S===Ws(n)&&"static"!==nc(S=oc(n)).position&&"absolute"===l&&(k="scrollHeight",C="scrollWidth"),o===Ps||(o===Os||o===Ms)&&a===Ls)w=As,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[k])-r.height,m*=s?1:-1;if(o===Os||(o===Ps||o===As)&&a===Ls)v=Ms,f-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[C])-r.width,f*=s?1:-1}var E,T=Object.assign({position:l},c&&fc),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Qs(n*o)/o||0,y:Qs(r*o)/o||0}}({x:f,y:m},Ws(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},T,((E={})[w]=b?"0":"",E[v]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},T,((t={})[w]=b?m+"px":"",t[v]=y?f+"px":"",t.transform="",t))}var mc={passive:!0};var gc={left:"right",right:"left",bottom:"top",top:"bottom"};function yc(e){return e.replace(/left|right|bottom|top/g,function(e){return gc[e]})}var bc={start:"end",end:"start"};function vc(e){return e.replace(/start|end/g,function(e){return bc[e]})}function wc(e){var t=Ws(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xc(e){return Js(oc(e)).left+wc(e).scrollLeft}function Sc(e){var t=nc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function kc(e){return["html","body","#document"].indexOf(Bs(e))>=0?e.ownerDocument.body:Us(e)&&Sc(e)?e:kc(ac(e))}function Cc(e,t){var n;void 0===t&&(t=[]);var r=kc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Ws(r),i=o?[a].concat(a.visualViewport||[],Sc(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Cc(ac(i)))}function Ec(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tc(e,t,n){return t===zs?Ec(function(e,t){var n=Ws(e),r=oc(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Zs();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+xc(e),y:s}}(e,n)):Hs(t)?function(e,t){var n=Js(e,!1,"fixed"===t);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}(t,n):Ec(function(e){var t,n=oc(e),r=wc(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Gs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Gs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+xc(e),s=-r.scrollTop;return"rtl"===nc(o||n).direction&&(l+=Gs(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(oc(e)))}function Rc(e,t,n,r){var o="clippingParents"===t?function(e){var t=Cc(ac(e)),n=["absolute","fixed"].indexOf(nc(e).position)>=0&&Us(e)?lc(e):e;return Hs(n)?t.filter(function(e){return Hs(e)&&tc(e,n)&&"body"!==Bs(e)}):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce(function(t,n){var o=Tc(e,n,r);return t.top=Gs(o.top,t.top),t.right=Xs(o.right,t.right),t.bottom=Xs(o.bottom,t.bottom),t.left=Gs(o.left,t.left),t},Tc(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Pc(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Ks(o):null,i=o?pc(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Ps:t={x:l,y:n.y-r.height};break;case As:t={x:l,y:n.y+n.height};break;case Ms:t={x:n.x+n.width,y:s};break;case Os:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?sc(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Is:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ls:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ac(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?zs:c,d=n.elementContext,p=void 0===d?$s:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=uc("number"!=typeof g?g:dc(g,Ns)),b=p===$s?"reference":$s,v=e.rects.popper,w=e.elements[h?b:p],x=Rc(Hs(w)?w:w.contextElement||oc(e.elements.popper),s,u,i),S=Js(e.elements.reference),k=Pc({reference:S,element:v,placement:o}),C=Ec(Object.assign({},v,k)),E=p===$s?C:S,T={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},R=e.modifiersData.offset;if(p===$s&&R){var P=R[o];Object.keys(T).forEach(function(e){var t=[Ms,As].indexOf(e)>=0?1:-1,n=[Ps,As].indexOf(e)>=0?"y":"x";T[e]+=P[n]*t})}return T}function Mc(e,t,n){return void 0===n&&(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 Oc(e){return[Ps,Ms,As,Os].some(function(t){return e[t]>=0})}function _c(e,t,n){void 0===n&&(n=!1);var r,o,a=Us(t),i=Us(t)&&function(e){var t=e.getBoundingClientRect(),n=Qs(t.width)/e.offsetWidth||1,r=Qs(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=oc(t),s=Js(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Bs(t)||Sc(l))&&(c=(r=t)!==Ws(r)&&Us(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:wc(r)),Us(t)?((u=Js(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=xc(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Nc(e){var t=/* @__PURE__ */new Map,n=/* @__PURE__ */new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Ic={placement:"bottom",modifiers:[],strategy:"absolute"};function Lc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function zc(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Ic:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ic,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Hs(e)?Cc(e):e.contextElement?Cc(e.contextElement):[],popper:Cc(t)};var i,c,p=function(e){var t=Nc(e);return Fs.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((i=[].concat(r,l.options.modifiers),c=i.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return l.orderedModifiers=p.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}}),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Lc(t,n)){l.rects={reference:_c(t,lc(n),"fixed"===l.options.strategy),popper:ec(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(l)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){d(),c=!0}};if(!Lc(e,t))return u;function d(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var $c=/* @__PURE__ */zc({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=Ws(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,mc)}),l&&s.addEventListener("resize",n.update,mc),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,mc)}),l&&s.removeEventListener("resize",n.update,mc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Pc({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:Ks(t.placement),variation:pc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Vs,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=js.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ks(e),o=[Os,Ps].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Os,Ms].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e},{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=Ks(g),b=s||(y===g||!h?[yc(g)]:function(e){if(Ks(e)===_s)return[];var t=yc(e);return[vc(e),t,vc(t)]}(g)),v=[g].concat(b).reduce(function(e,n){return e.concat(Ks(n)===_s?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?js:s,u=pc(r),d=u?l?Ds:Ds.filter(function(e){return pc(e)===u}):Ns,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=Ac(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Ks(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,S=/* @__PURE__ */new Map,k=!0,C=v[0],E=0;E<v.length;E++){var T=v[E],R=Ks(T),P=pc(T)===Is,A=[Ps,As].indexOf(R)>=0,M=A?"width":"height",O=Ac(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=A?P?Ms:Os:P?As:Ps;w[M]>x[M]&&(_=yc(_));var N=yc(_),I=[];if(a&&I.push(O[R]<=0),l&&I.push(O[_]<=0,O[N]<=0),I.every(function(e){return e})){C=T,k=!1;break}S.set(T,I)}if(k)for(var L=function(e){var t=v.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},z=h?3:1;z>0;z--){if("break"===L(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Ac(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),y=Ks(t.placement),b=pc(t.placement),v=!b,w=sc(y),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var A,M="y"===w?Ps:Os,O="y"===w?As:Ms,_="y"===w?"height":"width",N=S[w],I=N+g[M],L=N-g[O],z=f?-C[_]/2:0,$=b===Is?k[_]:C[_],D=b===Is?-C[_]:-k[_],j=t.elements.arrow,F=f&&j?ec(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[M],H=B[O],U=cc(0,k[_],F[_]),q=v?k[_]/2-z-U-W-T.mainAxis:$-U-W-T.mainAxis,V=v?-k[_]/2+z+U+H+T.mainAxis:D+U+H+T.mainAxis,K=t.elements.arrow&&lc(t.elements.arrow),G=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,X=null!=(A=null==R?void 0:R[w])?A:0,Q=N+V-X,Y=cc(f?Xs(I,N+q-X-G):I,N,f?Gs(L,Q):L);S[w]=Y,P[w]=Y-N}if(l){var Z,J="x"===w?Ps:Os,ee="x"===w?As:Ms,te=S[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ae=-1!==[Ps,Os].indexOf(y),ie=null!=(Z=null==R?void 0:R[x])?Z:0,le=ae?re:te-k[ne]-C[ne]-ie+T.altAxis,se=ae?te+k[ne]+C[ne]-ie-T.altAxis:oe,ce=f&&ae?function(e,t,n){var r=cc(e,t,n);return r>n?n:r}(le,te,se):cc(f?le:re,te,f?se:oe);S[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ks(n.placement),s=sc(l),c=[Os,Ms].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return uc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:dc(e,Ns))}(o.padding,n),d=ec(a),p="y"===s?Ps:Os,f="y"===s?As:Ms,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=lc(a),y=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,v=u[p],w=y-d[c]-u[f],x=y/2-d[c]/2+b,S=cc(v,x,w),k=s;n.modifiersData[r]=((t={})[k]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&tc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ac(t,{elementContext:"reference"}),l=Ac(t,{altBoundary:!0}),s=Mc(i,r),c=Mc(l,o,a),u=Oc(s),d=Oc(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Dc(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:el(n,r),{props:l,internalRef:s}=rl({...a,externalSlotProps:i});return Ji(t,{...l,ref:Ci(s,i?.ref,e.additionalProps?.ref)},r)}function jc(e){return parseInt(h.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Fc=/* @__PURE__ */h.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=h.useState(null),l=Ci(/* @__PURE__ */h.isValidElement(n)?jc(n):null,t);if(Pr(()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Pr(()=>{if(a&&!o)return xi(t,a),()=>{xi(t,null)}},[t,a,o]),o){if(/* @__PURE__ */h.isValidElement(n)){const e={ref:l};/* @__PURE__ */
132
+ return h.cloneElement(n,e)}return n}return a?/* @__PURE__ */Ai.createPortal(n,a):a});function Bc(e){return fr("MuiPopper",e)}function Wc(e){return"function"==typeof e?e():e}hr("MuiPopper",["root"]);const Hc={},Uc=/* @__PURE__ */h.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:i,open:l,placement:s,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:m,ownerState:g,...y}=e,b=h.useRef(null),v=Ci(b,t),w=h.useRef(null),x=Ci(w,d),S=h.useRef(x);Pr(()=>{S.current=x},[x]),h.useImperativeHandle(d,()=>w.current,[]);const k=function(e,t){if("ltr"===t)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}}(s,o),[C,E]=h.useState(k),[T,R]=h.useState(Wc(n));h.useEffect(()=>{w.current&&w.current.forceUpdate()}),h.useEffect(()=>{n&&R(Wc(n))},[n]),Pr(()=>{if(!T||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=i&&(e=e.concat(i)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=$c(T,b.current,{placement:k,...u,modifiers:e});return S.current(t),()=>{t.destroy(),S.current(null)}},[T,a,i,l,u,k]);const P={placement:C};null!==m&&(P.TransitionProps=m);const A=(e=>{const{classes:t}=e;return bo({root:["root"]},Bc,t)})(e),M=f.root??"div",O=Dc({elementType:M,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:A.root});/* @__PURE__ */
133
+ return c.jsx(M,{...O,children:"function"==typeof r?r(P):r})}),qc=Ka(/* @__PURE__ */h.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:u,placement:d="bottom",popperOptions:p=Hc,popperRef:f,style:m,transition:g=!1,slotProps:y={},slots:b={},...v}=e,[w,x]=h.useState(!0);if(!l&&!u&&(!g||w))return null;let S;if(o)S=o;else if(n){const e=Wc(n);S=e&&void 0!==e.nodeType?vi(e).body:vi(null).body}const k=u||!l||g&&!w?void 0:"none",C=g?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;/* @__PURE__ */
134
+ return c.jsx(Fc,{disablePortal:i,container:S,children:/* @__PURE__ */c.jsx(Uc,{anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:g?!w:u,placement:d,popperOptions:p,popperRef:f,slotProps:y,slots:b,...v,style:{position:"fixed",top:0,left:0,display:k,...m},TransitionProps:C,children:r})})}),{name:"MuiPopper",slot:"Root"})({}),Vc=/* @__PURE__ */h.forwardRef(function(e,t){const n=Gr(),r=oi({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:i,componentsProps:l,container:s,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:y,slots:b,slotProps:v,...w}=r,x=b?.root??i?.Root,S={anchorEl:o,container:s,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:y,...w};/* @__PURE__ */
135
+ return c.jsx(qc,{as:a,direction:n?"rtl":"ltr",slots:{root:x},slotProps:v??l,...S,ref:t})}),Kc=yi(/* @__PURE__ */c.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Gc(e){return fr("MuiChip",e)}const Xc=hr("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Qc=Ka("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:s}=n;return[{[`& .${Xc.avatar}`]:t.avatar},{[`& .${Xc.avatar}`]:t[`avatar${ln(l)}`]},{[`& .${Xc.avatar}`]:t[`avatarColor${ln(r)}`]},{[`& .${Xc.icon}`]:t.icon},{[`& .${Xc.icon}`]:t[`icon${ln(l)}`]},{[`& .${Xc.icon}`]:t[`iconColor${ln(o)}`]},{[`& .${Xc.deleteIcon}`]:t.deleteIcon},{[`& .${Xc.deleteIcon}`]:t[`deleteIcon${ln(l)}`]},{[`& .${Xc.deleteIcon}`]:t[`deleteIconColor${ln(r)}`]},{[`& .${Xc.deleteIcon}`]:t[`deleteIcon${ln(s)}Color${ln(r)}`]},t.root,t[`size${ln(l)}`],t[`color${ln(r)}`],a&&t.clickable,a&&"default"!==r&&t[`clickableColor${ln(r)}`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${ln(r)}`],t[s],t[`${s}${ln(r)}`]]}})(fi(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Xc.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Xc.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Xc.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Xc.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Xc.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Xc.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Xc.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Xc.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Hl(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Xc.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${Xc.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${Xc.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Xc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Hl(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Xc.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Xc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Hl(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Xc.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Xc.avatar}`]:{marginLeft:4},[`& .${Xc.avatarSmall}`]:{marginLeft:2},[`& .${Xc.icon}`]:{marginLeft:4},[`& .${Xc.iconSmall}`]:{marginLeft:2},[`& .${Xc.deleteIcon}`]:{marginRight:5},[`& .${Xc.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${Xc.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Xc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Xc.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),Yc=Ka("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ln(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Zc(e){return"Backspace"===e.key||"Delete"===e.key}const Jc=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:i="default",component:l,deleteIcon:s,disabled:u=!1,icon:d,label:p,onClick:f,onDelete:m,onKeyDown:g,onKeyUp:y,size:b="medium",variant:v="filled",tabIndex:w,skipFocusWhenDisabled:x=!1,slots:S={},slotProps:k={},...C}=n,E=Ci(h.useRef(null),t),T=e=>{e.stopPropagation(),m&&m(e)},R=!(!1===a||!f)||a,P=R||m?Ll:l||"div",A={...n,component:P,disabled:u,size:b,color:i,iconColor:/* @__PURE__ */h.isValidElement(d)&&d.props.color||i,onDelete:!!m,clickable:R,variant:v},M=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:s}=e;return bo({root:["root",s,n&&"disabled",`size${ln(r)}`,`color${ln(o)}`,l&&"clickable",l&&`clickableColor${ln(o)}`,i&&"deletable",i&&`deletableColor${ln(o)}`,`${s}${ln(o)}`],label:["label",`label${ln(r)}`],avatar:["avatar",`avatar${ln(r)}`,`avatarColor${ln(o)}`],icon:["icon",`icon${ln(r)}`,`iconColor${ln(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ln(r)}`,`deleteIconColor${ln(o)}`,`deleteIcon${ln(s)}Color${ln(o)}`]},Gc,t)})(A),O=P===Ll?{component:l||"div",focusVisibleClassName:M.focusVisible,...m&&{disableRipple:!0}}:{};let _=null;m&&(_=s&&/* @__PURE__ */h.isValidElement(s)?/* @__PURE__ */h.cloneElement(s,{className:dr(s.props.className,M.deleteIcon),onClick:T}):/* @__PURE__ */c.jsx(Kc,{className:M.deleteIcon,onClick:T}));let N=null;r&&/* @__PURE__ */h.isValidElement(r)&&(N=/* @__PURE__ */h.cloneElement(r,{className:dr(M.avatar,r.props.className)}));let I=null;d&&/* @__PURE__ */h.isValidElement(d)&&(I=/* @__PURE__ */h.cloneElement(d,{className:dr(M.icon,d.props.className)}));const L={slots:S,slotProps:k},[z,$]=ol("root",{elementType:Qc,externalForwardedProps:{...L,...C},ownerState:A,shouldForwardComponentProp:!0,ref:E,className:dr(M.root,o),additionalProps:{disabled:!(!R||!u)||void 0,tabIndex:x&&u?-1:w,...O},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&Zc(e)&&e.preventDefault(),g&&g(e)})(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&m&&Zc(e)&&m(e),y&&y(e)})(t)}})}),[D,j]=ol("label",{elementType:Yc,externalForwardedProps:L,ownerState:A,className:M.label});/* @__PURE__ */
136
+ return c.jsxs(z,{as:P,...$,children:[N||I,/* @__PURE__ */c.jsx(D,{...j,children:p}),_]})});function eu(e){return parseInt(e,10)||0}const tu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function nu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const ru=/* @__PURE__ */h.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i,...l}=e,{current:s}=h.useRef(null!=i),u=h.useRef(null),d=Ci(t,u),p=h.useRef(null),f=h.useRef(null),m=h.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const a=wi(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=a.boxSizing,l=eu(a.paddingBottom)+eu(a.paddingTop),s=eu(a.borderBottomWidth)+eu(a.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?l+s:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),g=ki(()=>{const e=u.current,t=m();if(!e||!t||nu(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),y=h.useCallback(()=>{const e=u.current,t=m();if(!e||!t||nu(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[m]),b=h.useRef(-1);Pr(()=>{const e=bi(y),t=u?.current;if(!t)return;const n=wi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{g()&&(r.unobserve(t),cancelAnimationFrame(b.current),y(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[m,y,g]),Pr(()=>{y()});/* @__PURE__ */
137
+ return c.jsxs(h.Fragment,{children:[/* @__PURE__ */c.jsx("textarea",{value:i,onChange:e=>{s||y();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),a=t.selectionStart===r;o&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:o,style:a,...l}),/* @__PURE__ */c.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...tu,...a,paddingTop:0,paddingBottom:0}})]})});function ou({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const au=/* @__PURE__ */h.createContext(void 0);function iu(){return h.useContext(au)}function lu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function su(e,t=!1){return e&&(lu(e.value)&&""!==e.value||t&&lu(e.defaultValue)&&""!==e.defaultValue)}function cu(e){return fr("MuiInputBase",e)}const uu=hr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var du;const pu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ln(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},fu=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},hu=Ka("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pu})(fi(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${uu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),mu=Ka("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fu})(fi(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${uu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${uu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),gu=ri({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),yu=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:i,color:l,components:s={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,error:g,fullWidth:y=!1,id:b,inputComponent:v="input",inputProps:w={},inputRef:x,margin:S,maxRows:k,minRows:C,multiline:E=!1,name:T,onBlur:R,onChange:P,onClick:A,onFocus:M,onKeyDown:O,onKeyUp:_,placeholder:N,readOnly:I,renderSuffix:L,rows:z,size:$,slotProps:D={},slots:j={},startAdornment:F,type:B="text",value:W,...H}=n,U=null!=w.value?w.value:W,{current:q}=h.useRef(null!=U),V=h.useRef(),K=h.useCallback(e=>{},[]),G=Ci(V,x,w.ref,K),[X,Q]=h.useState(!1),Y=iu(),Z=ou({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=Y?Y.focused:X,h.useEffect(()=>{!Y&&p&&X&&(Q(!1),R&&R())},[Y,p,X,R]);const J=Y&&Y.onFilled,ee=Y&&Y.onEmpty,te=h.useCallback(e=>{su(e)?J&&J():ee&&ee()},[J,ee]);Pr(()=>{q&&te({value:U})},[U,te,q]);h.useEffect(()=>{te(V.current)},[]);let ne=v,re=w;E&&"input"===ne&&(re=z?{type:void 0,minRows:z,maxRows:z,...re}:{type:void 0,maxRows:k,minRows:C,...re},ne=ru);h.useEffect(()=>{Y&&Y.setAdornedStart(Boolean(F))},[Y,F]);const oe={...n,color:Z.color||"primary",disabled:Z.disabled,endAdornment:m,error:Z.error,focused:Z.focused,formControl:Y,fullWidth:y,hiddenLabel:Z.hiddenLabel,multiline:E,size:Z.size,startAdornment:F,type:B},ae=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return bo({root:["root",`color${ln(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ln(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},cu,t)})(oe),ie=j.root||s.Root||hu,le=D.root||u.root||{},se=j.input||s.Input||mu;return re={...re,...D.input??u.input},/* @__PURE__ */c.jsxs(h.Fragment,{children:[!f&&"function"==typeof gu&&(du||(du=/* @__PURE__ */c.jsx(gu,{}))),/* @__PURE__ */c.jsxs(ie,{...le,ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),A&&A(e)},...H,...!Zi(ie)&&{ownerState:{...oe,...le.ownerState}},className:dr(ae.root,le.className,i,I&&"MuiInputBase-readOnly"),children:[F,/* @__PURE__ */c.jsx(au.Provider,{value:null,children:/* @__PURE__ */c.jsx(se,{"aria-invalid":Z.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:b,onAnimationStart:e=>{te("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:T,placeholder:N,readOnly:I,required:Z.required,rows:z,value:U,onKeyDown:O,onKeyUp:_,type:B,...re,...!Zi(se)&&{as:ne,ownerState:{...oe,...re.ownerState}},ref:G,className:dr(ae.input,re.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),w.onBlur&&w.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):Q(!1)},onChange:(e,...t)=>{if(!q){const t=e.target||V.current;if(null==t)throw new Error(wt(1));te({value:t.value})}w.onChange&&w.onChange(e,...t),P&&P(e,...t)},onFocus:e=>{M&&M(e),w.onFocus&&w.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):Q(!0)}})}),m,L?L({...Z,startAdornment:F}):null]})]})});function bu(e){return fr("MuiInput",e)}const vu={...uu,...hr("MuiInput",["root","underline","input"])};function wu(e){return fr("MuiOutlinedInput",e)}const xu={...uu,...hr("MuiOutlinedInput",["root","notchedOutline","input"])};function Su(e){return fr("MuiFilledInput",e)}const ku={...uu,...hr("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Cu=yi(/* @__PURE__ */c.jsx("path",{d:"M7 10l5 5 5-5z"})),Eu={entering:{opacity:1},entered:{opacity:1}},Tu=/* @__PURE__ */h.forwardRef(function(e,t){const n=Ua(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:g,style:y,timeout:b=r,TransitionComponent:v=Di,...w}=e,x=h.useRef(null),S=Ci(x,jc(i),t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=k(p),E=k((e,t)=>{Qi(e);const r=Yi({style:y,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),T=k(d),R=k(g),P=k(e=>{const t=Yi({style:y,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),A=k(m);/* @__PURE__ */
138
+ return c.jsx(v,{appear:a,in:s,nodeRef:x,onEnter:E,onEntered:T,onEntering:C,onExit:P,onExited:A,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:b,...w,children:(e,{ownerState:t,...n})=>/* @__PURE__ */h.cloneElement(i,{style:{opacity:0,visibility:"exited"!==e||s?void 0:"hidden",...Eu[e],...y,...i.props.style},ref:S,...n})})});function Ru(e){return fr("MuiBackdrop",e)}hr("MuiBackdrop",["root","invisible"]);const Pu=Ka("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Au=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:i=!1,open:l,components:s={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:h,...m}=n,g={...n,component:a,invisible:i},y=(e=>{const{classes:t,invisible:n}=e;return bo({root:["root",n&&"invisible"]},Ru,t)})(g),b={component:a,slots:{transition:f,root:s.Root,...p},slotProps:{...u,...d}},[v,w]=ol("root",{elementType:Pu,externalForwardedProps:b,className:dr(y.root,o),ownerState:g}),[x,S]=ol("transition",{elementType:Tu,externalForwardedProps:b,ownerState:g});/* @__PURE__ */
139
+ return c.jsx(x,{in:l,timeout:h,...m,...S,children:/* @__PURE__ */c.jsx(v,{"aria-hidden":!0,...w,classes:y,ref:t,children:r})})}),Mu=hr("MuiBox",["root"]),Ou=Wa(),_u=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=zt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Jn);/* @__PURE__ */
140
+ return h.forwardRef(function(e,i){const l=or(n),{className:s,component:u="div",...d}=lr(e);/* @__PURE__ */
141
+ return c.jsx(a,{as:u,ref:i,className:dr(s,o?o(r):r),theme:t&&l[t]||l,...d})})}({themeId:xt,defaultTheme:Ou,defaultClassName:Mu.root,generateClassName:cr.generate});function Nu(e){return fr("MuiButton",e)}const Iu=hr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lu=/* @__PURE__ */h.createContext({}),zu=/* @__PURE__ */h.createContext(void 0),$u=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Du=Ka(Ll,{shouldForwardProp:e=>Va(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ln(n.color)}`],t[`size${ln(n.size)}`],t[`${n.variant}Size${ln(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(fi(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Iu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Iu.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Iu.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Iu.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Iu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Iu.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Iu.loading}`]:{color:"transparent"}}}]}})),ju=Ka("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ln(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...$u]})),Fu=Ka("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ln(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...$u]})),Bu=Ka("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Wu=Ka("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hu=/* @__PURE__ */h.forwardRef(function(e,t){const n=h.useContext(Lu),r=h.useContext(zu),o=oi({props:Tr(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,id:y,loading:b=null,loadingIndicator:v,loadingPosition:w="center",size:x="medium",startIcon:S,type:k,variant:C="text",...E}=o,T=eo(y),R=v??/* @__PURE__ */c.jsx(ns,{"aria-labelledby":T,color:"inherit",size:16}),P={...o,color:i,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:g,loading:b,loadingIndicator:R,loadingPosition:w,size:x,type:k,variant:C},A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:i,loadingPosition:l,classes:s}=e,c=bo({root:["root",i&&"loading",a,`${a}${ln(t)}`,`size${ln(o)}`,`${a}Size${ln(o)}`,`color${ln(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ln(l)}`],startIcon:["icon","startIcon",`iconSize${ln(o)}`],endIcon:["icon","endIcon",`iconSize${ln(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Nu,s);return{...s,...c}})(P),M=(S||b&&"start"===w)&&/* @__PURE__ */c.jsx(ju,{className:A.startIcon,ownerState:P,children:S||/* @__PURE__ */c.jsx(Wu,{className:A.loadingIconPlaceholder,ownerState:P})}),O=(f||b&&"end"===w)&&/* @__PURE__ */c.jsx(Fu,{className:A.endIcon,ownerState:P,children:f||/* @__PURE__ */c.jsx(Wu,{className:A.loadingIconPlaceholder,ownerState:P})}),_=r||"",N="boolean"==typeof b?
142
+ /* @__PURE__ */c.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:b&&/* @__PURE__ */c.jsx(Bu,{className:A.loadingIndicator,ownerState:P,children:R})}):null;/* @__PURE__ */
143
+ return c.jsxs(Du,{ownerState:P,className:dr(n.className,A.root,s,_),component:l,disabled:u||b,focusRipple:!p,focusVisibleClassName:dr(A.focusVisible,m),ref:t,type:k,id:b?T:y,...E,classes:A,children:[M,"end"!==w&&N,a,"end"===w&&N,O]})});function Uu(e){return fr("MuiCard",e)}hr("MuiCard",["root"]);const qu=Ka(pl,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Vu=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiCard"}),{className:r,raised:o=!1,...a}=n,i={...n,raised:o},l=(e=>{const{classes:t}=e;return bo({root:["root"]},Uu,t)})(i);/* @__PURE__ */
144
+ return c.jsx(qu,{className:dr(l.root,r),elevation:o?8:void 0,ref:t,ownerState:i,...a})});function Ku(e){return fr("MuiCardContent",e)}hr("MuiCardContent",["root"]);const Gu=Ka("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Xu=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiCardContent"}),{className:r,component:o="div",...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return bo({root:["root"]},Ku,t)})(i);/* @__PURE__ */
145
+ return c.jsx(Gu,{as:o,className:dr(l.root,r),ownerState:i,ref:t,...a})});function Qu(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Zu(e){return parseInt(wi(e).getComputedStyle(e).paddingRight,10)||0}function Ju(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,e=>{const t=!a.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Yu(e,o)})}function ed(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function td(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vi(e);return t.body===e?wi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Qu(wi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Zu(r)+e}px`;const t=vi(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Zu(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=vi(r).body;else{const t=r.parentElement,n=wi(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function nd(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}const rd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function od(e){const t=[],n=[];return Array.from(e.querySelectorAll(rd)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ad(){return!0}function id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=od,isEnabled:i=ad,open:l}=e,s=h.useRef(!1),u=h.useRef(null),d=h.useRef(null),p=h.useRef(null),f=h.useRef(null),m=h.useRef(!1),g=h.useRef(null),y=Ci(jc(t),g),b=h.useRef(null);h.useEffect(()=>{l&&g.current&&(m.current=!n)},[n,l]),h.useEffect(()=>{if(!l||!g.current)return;const e=nd(vi(g.current));return g.current.contains(e)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(p.current&&p.current.focus&&(s.current=!0,p.current.focus()),p.current=null)}},[l]),h.useEffect(()=>{if(!l||!g.current)return;const e=vi(g.current),t=nd(e),n=e=>{b.current=e,!r&&i()&&"Tab"===e.key&&t===g.current&&e.shiftKey&&(s.current=!0,d.current&&d.current.focus())},o=()=>{const t=g.current;if(null===t)return;const n=nd(e);if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(n))return;if(r&&n!==u.current&&n!==d.current)return;if(n!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let o=[];if(n!==u.current&&n!==d.current||(o=a(g.current)),o.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",o),e.addEventListener("keydown",n,!0);const c=setInterval(()=>{const t=nd(e);t&&"BODY"===t.tagName&&o()},50);return()=>{clearInterval(c),e.removeEventListener("focusin",o),e.removeEventListener("keydown",n,!0)}},[n,r,o,i,l,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};/* @__PURE__ */
146
+ return c.jsxs(h.Fragment,{children:[/* @__PURE__ */c.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),/* @__PURE__ */h.cloneElement(t,{ref:y,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),/* @__PURE__ */c.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ld=()=>{},sd=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Yu(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Ju(t,e.mount,e.modalRef,r,!0);const o=ed(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ed(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=td(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ed(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Yu(e.modalRef,t),Ju(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Yu(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function cd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:s,open:c,rootRef:u}=e,d=h.useRef({}),p=h.useRef(null),f=h.useRef(null),m=Ci(f,u),[g,y]=h.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const w=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),x=()=>{sd.mount(w(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=ki(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vi(p.current).body;sd.add(w(),e),f.current&&x()}),k=()=>sd.isTopModal(w()),C=ki(e=>{p.current=e,e&&(c&&k()?x():f.current&&Yu(f.current,v))}),E=h.useCallback(()=>{sd.remove(w(),v)},[v]);h.useEffect(()=>()=>{E()},[E]),h.useEffect(()=>{c?S():b&&o||E()},[c,E,b,o,S]);const T=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),s&&s(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,"backdropClick")};return{getRootProps:(t={})=>{const n=tl(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:T(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:c}},getTransitionProps:()=>({onEnter:pi(()=>{y(!1),a&&a()},l?.props.onEnter??ld),onExited:pi(()=>{y(!0),i&&i(),o&&E()},l?.props.onExited??ld)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:b}}function ud(e){return fr("MuiModal",e)}hr("MuiModal",["root","hidden","backdrop"]);const dd=Ka("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fi(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),pd=Ka(Au,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),fd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({name:"MuiModal",props:e}),{BackdropComponent:r=pd,BackdropProps:o,classes:a,className:i,closeAfterTransition:l=!1,children:s,container:u,component:d,components:p={},componentsProps:f={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:v=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:S=!1,onClose:k,onTransitionEnter:C,onTransitionExited:E,open:T,slotProps:R={},slots:P={},theme:A,...M}=n,O={...n,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:v,disableScrollLock:w,hideBackdrop:x,keepMounted:S},{getRootProps:_,getBackdropProps:N,getTransitionProps:I,portalRef:L,isTopModal:z,exited:$,hasTransition:D}=cd({...O,rootRef:t}),j={...O,exited:$},F=(e=>{const{open:t,exited:n,classes:r}=e;return bo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ud,r)})(j),B={};if(void 0===s.props.tabIndex&&(B.tabIndex="-1"),D){const{onEnter:e,onExited:t}=I();B.onEnter=e,B.onExited=t}const W={slots:{root:p.Root,backdrop:p.Backdrop,...P},slotProps:{...f,...R}},[H,U]=ol("root",{ref:t,elementType:dd,externalForwardedProps:{...W,...M,component:d},getSlotProps:_,ownerState:j,className:dr(i,F?.root,!j.open&&j.exited&&F?.hidden)}),[q,V]=ol("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>N({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:dr(o?.className,F?.backdrop),ownerState:j});return S||T||D&&!$?/* @__PURE__ */c.jsx(Fc,{ref:L,container:u,disablePortal:b,children:/* @__PURE__ */c.jsxs(H,{...U,children:[!x&&r?/* @__PURE__ */c.jsx(q,{...V}):null,/* @__PURE__ */c.jsx(id,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:v,isEnabled:z,open:T,children:/* @__PURE__ */h.cloneElement(s,B)})]})}):null});function hd(e){return fr("MuiDialog",e)}const md=hr("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gd=/* @__PURE__ */h.createContext({}),yd=Ka(Au,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bd=Ka(fd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),vd=Ka("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ln(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),wd=Ka(pl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ln(n.scroll)}`],t[`paperWidth${ln(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(fi(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${md.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${md.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${md.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),xd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiDialog"}),r=Ua(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:s,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:b,onClose:v,open:w,PaperComponent:x=pl,PaperProps:S={},scroll:k="paper",slots:C={},slotProps:E={},TransitionComponent:T=Tu,transitionDuration:R=o,TransitionProps:P,...A}=n,M={...n,disableEscapeKeyDown:f,fullScreen:m,fullWidth:g,maxWidth:y,scroll:k},O=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e;return bo({root:["root"],container:["container",`scroll${ln(n)}`],paper:["paper",`paperScroll${ln(n)}`,`paperWidth${ln(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]},hd,t)})(M),_=h.useRef(),N=eo(i),I=h.useMemo(()=>({titleId:N}),[N]),L={slots:{transition:T,...C},slotProps:{transition:P,paper:S,backdrop:u,...E}},[z,$]=ol("root",{elementType:bd,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:M,className:dr(O.root,p),ref:t}),[D,j]=ol("backdrop",{elementType:yd,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:M}),[F,B]=ol("paper",{elementType:wd,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:M,className:dr(O.paper,S.className)}),[W,H]=ol("container",{elementType:vd,externalForwardedProps:L,ownerState:M,className:O.container}),[U,q]=ol("transition",{elementType:Tu,externalForwardedProps:L,ownerState:M,additionalProps:{appear:!0,in:w,timeout:R,role:"presentation"}});/* @__PURE__ */
147
+ return c.jsx(z,{closeAfterTransition:!0,slots:{backdrop:D},slotProps:{backdrop:{transitionDuration:R,as:s,...j}},disableEscapeKeyDown:f,onClose:v,open:w,onClick:e=>{b&&b(e),_.current&&(_.current=null,v&&v(e,"backdropClick"))},...$,...A,children:/* @__PURE__ */c.jsx(U,{...q,children:/* @__PURE__ */c.jsx(W,{onMouseDown:e=>{_.current=e.target===e.currentTarget},...H,children:/* @__PURE__ */c.jsx(F,{as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...B,children:/* @__PURE__ */c.jsx(gd.Provider,{value:I,children:d})})})})})});function Sd(e){return fr("MuiDialogContent",e)}function kd(e){return fr("MuiDialogTitle",e)}hr("MuiDialogContent",["root","dividers"]);const Cd=hr("MuiDialogTitle",["root"]),Ed=Ka("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(fi(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${Cd.root} + &`]:{paddingTop:0}}}]}))),Td=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,i={...n,dividers:o},l=(e=>{const{classes:t,dividers:n}=e;return bo({root:["root",n&&"dividers"]},Sd,t)})(i);/* @__PURE__ */
148
+ return c.jsx(Ed,{className:dr(l.root,r),ownerState:i,ref:t,...a})}),Rd=Ka(Cs,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Pd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...a}=n,i=n,l=(e=>{const{classes:t}=e;return bo({root:["root"]},kd,t)})(i),{titleId:s=o}=h.useContext(gd);/* @__PURE__ */
149
+ return c.jsx(Rd,{component:"h2",className:dr(l.root,r),ownerState:i,ref:t,variant:"h6",id:o??s,...a})});function Ad(e){return fr("MuiDivider",e)}hr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Md=Ka("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(fi(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Od=Ka("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(fi(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),_d=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,orientation:i="horizontal",component:l=(o||"vertical"===i?"div":"hr"),flexItem:s=!1,light:u=!1,role:d=("hr"!==l?"separator":void 0),textAlign:p="center",variant:f="fullWidth",...h}=n,m={...n,absolute:r,component:l,flexItem:s,light:u,orientation:i,role:d,textAlign:p,variant:f},g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return bo({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},Ad,r)})(m);/* @__PURE__ */
150
+ return c.jsx(Md,{as:l,className:dr(g.root,a),role:d,ref:t,ownerState:m,"aria-orientation":"separator"!==d||"hr"===l&&"vertical"!==i?void 0:i,...h,children:o?/* @__PURE__ */c.jsx(Od,{className:g.wrapper,ownerState:m,children:o}):null})});function Nd(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=wi(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(i&&"none"!==i&&"string"==typeof i){const e=i.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+l-r.left}px)`:`translateX(${a.innerWidth+l-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:"up"===e?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${a.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}_d&&(_d.muiSkipListHighlight=!0);const Id=/* @__PURE__ */h.forwardRef(function(e,t){const n=Ua(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,container:s,direction:u="down",easing:d=r,in:p,onEnter:f,onEntered:m,onEntering:g,onExit:y,onExited:b,onExiting:v,style:w,timeout:x=o,TransitionComponent:S=Di,...k}=e,C=h.useRef(null),E=Ci(jc(l),C,t),T=e=>t=>{e&&(void 0===t?e(C.current):e(C.current,t))},R=T((e,t)=>{Nd(u,e,s),Qi(e),f&&f(e,t)}),P=T((e,t)=>{const r=Yi({timeout:x,style:w,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),A=T(m),M=T(v),O=T(e=>{const t=Yi({timeout:x,style:w,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Nd(u,e,s),y&&y(e)}),_=T(e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)}),N=h.useCallback(()=>{C.current&&Nd(u,C.current,s)},[u,s]);return h.useEffect(()=>{if(p||"down"===u||"right"===u)return;const e=bi(()=>{C.current&&Nd(u,C.current,s)}),t=wi(C.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,p,s]),h.useEffect(()=>{p||N()},[p,N]),/* @__PURE__ */c.jsx(S,{nodeRef:C,onEnter:R,onEntered:A,onEntering:P,onExit:O,onExited:_,onExiting:M,addEndListener:e=>{a&&a(C.current,e)},appear:i,in:p,timeout:x,...k,children:(e,{ownerState:t,...n})=>/* @__PURE__ */h.cloneElement(l,{ref:E,style:{visibility:"exited"!==e||p?void 0:"hidden",...w,...l.props.style},...n})})});function Ld(e){return fr("MuiDrawer",e)}hr("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const zd=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},$d=Ka(fd,{name:"MuiDrawer",slot:"Root",overridesResolver:zd})(fi(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Dd=Ka("div",{shouldForwardProp:Va,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:zd})({flex:"0 0 auto"}),jd=Ka(pl,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ln(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${ln(n.anchor)}`]]}})(fi(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Fd={left:"right",right:"left",top:"down",bottom:"up"};const Bd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiDrawer"}),r=Ua(),o=Gr(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:s,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:f,...m}={},onClose:g,open:y=!1,PaperProps:b={},SlideProps:v,TransitionComponent:w,transitionDuration:x=a,variant:S="temporary",slots:k={},slotProps:C={},...E}=n,T=h.useRef(!1);h.useEffect(()=>{T.current=!0},[]);const R=function({direction:e},t){return"rtl"===e&&function(e){return["left","right"].includes(e)}(t)?Fd[t]:t}({direction:o?"rtl":"ltr"},i),P=i,A={...n,anchor:P,elevation:d,open:y,variant:S,...E},M=(e=>{const{classes:t,anchor:n,variant:r}=e;return bo({root:["root",`anchor${ln(n)}`],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ln(n)}`,"temporary"!==r&&`paperAnchorDocked${ln(n)}`]},Ld,t)})(A),O={slots:{transition:w,...k},slotProps:{paper:b,transition:v,...C,backdrop:Ei(C.backdrop||{...l,...f},{transitionDuration:x})}},[_,N]=ol("root",{ref:t,elementType:$d,className:dr(M.root,M.modal,u),shouldForwardComponentProp:!0,ownerState:A,externalForwardedProps:{...O,...E,...m},additionalProps:{open:y,onClose:g,hideBackdrop:p,slots:{backdrop:O.slots.backdrop},slotProps:{backdrop:O.slotProps.backdrop}}}),[I,L]=ol("paper",{elementType:jd,shouldForwardComponentProp:!0,className:dr(M.paper,b.className),ownerState:A,externalForwardedProps:O,additionalProps:{elevation:"temporary"===S?d:0,square:!0,..."temporary"===S&&{role:"dialog","aria-modal":"true"}}}),[z,$]=ol("docked",{elementType:Dd,ref:t,className:dr(M.root,M.docked,u),ownerState:A,externalForwardedProps:O,additionalProps:E}),[D,j]=ol("transition",{elementType:Id,ownerState:A,externalForwardedProps:O,additionalProps:{in:y,direction:Fd[R],timeout:x,appear:T.current}}),F=/* @__PURE__ */c.jsx(I,{...L,children:s});if("permanent"===S)/* @__PURE__ */
151
+ return c.jsx(z,{...$,children:F});const B=/* @__PURE__ */c.jsx(D,{...j,children:F});return"persistent"===S?/* @__PURE__ */c.jsx(z,{...$,children:B}):/* @__PURE__ */c.jsx(_,{...N,children:B})});function Wd(e){return fr("MuiFab",e)}const Hd=hr("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Ud=Ka(Ll,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Va(e)||"classes"===e,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ln(n.size)}`],"inherit"===n.color&&t.colorInherit,t[ln(n.size)],t[n.color]]}})(fi(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Hd.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),fi(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Hl(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),fi(({theme:e})=>({[`&.${Hd.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),qd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiFab"}),{children:r,className:o,color:a="default",component:i="button",disabled:l=!1,disableFocusRipple:s=!1,focusVisibleClassName:u,size:d="large",variant:p="circular",...f}=n,h={...n,color:a,component:i,disabled:l,disableFocusRipple:s,size:d,variant:p},m=(e=>{const{color:t,variant:n,classes:r,size:o}=e,a=bo({root:["root",n,`size${ln(o)}`,"inherit"===t?"colorInherit":t]},Wd,r);return{...r,...a}})(h);/* @__PURE__ */
152
+ return c.jsx(Ud,{className:dr(m.root,o),component:i,disabled:l,focusRipple:!s,focusVisibleClassName:dr(m.focusVisible,u),ownerState:h,ref:t,...f,classes:m,children:r})}),Vd=Ka(hu,{shouldForwardProp:e=>Va(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...pu(e,t),!n.disableUnderline&&t.underline]}})(fi(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ku.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ku.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ku.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ku.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ku.disabled}, .${ku.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ku.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),Kd=Ka(mu,{name:"MuiFilledInput",slot:"Input",overridesResolver:fu})(fi(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Gd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:s="input",multiline:u=!1,slotProps:d,slots:p={},type:f="text",...h}=n,m={...n,disableUnderline:r,fullWidth:i,inputComponent:s,multiline:u,type:f},g=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,s=bo({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===a&&`size${ln(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},Su,t);return{...t,...s}})(n),y={root:{ownerState:m},input:{ownerState:m}},b=d??a?Gt(y,d??a):y,v=p.root??o.Root??Vd,w=p.input??o.Input??Kd;/* @__PURE__ */
153
+ return c.jsx(yu,{slots:{root:v,input:w},slotProps:b,fullWidth:i,inputComponent:s,multiline:u,ref:t,type:f,...h,classes:g})});function Xd(e){return fr("MuiFormControl",e)}Gd.muiName="Input",hr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Qd=Ka("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ln(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Yd=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:i="div",disabled:l=!1,error:s=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:m=!1,size:g="medium",variant:y="outlined",...b}=n,v={...n,color:a,component:i,disabled:l,error:s,fullWidth:d,hiddenLabel:p,margin:f,required:m,size:g,variant:y},w=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return bo({root:["root","none"!==n&&`margin${ln(n)}`,r&&"fullWidth"]},Xd,t)})(v),[x,S]=h.useState(()=>{let e=!1;return r&&h.Children.forEach(r,t=>{if(!vo(t,["Input","Select"]))return;const n=vo(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[k,C]=h.useState(()=>{let e=!1;return r&&h.Children.forEach(r,t=>{vo(t,["Input","Select"])&&(su(t.props,!0)||su(t.props.inputProps,!0))&&(e=!0)}),e}),[E,T]=h.useState(!1);l&&E&&T(!1);const R=void 0===u||l?E:u;let P;h.useRef(!1);const A=h.useCallback(()=>{C(!0)},[]),M=h.useCallback(()=>{C(!1)},[]),O=h.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:a,disabled:l,error:s,filled:k,focused:R,fullWidth:d,hiddenLabel:p,size:g,onBlur:()=>{T(!1)},onFocus:()=>{T(!0)},onEmpty:M,onFilled:A,registerEffect:P,required:m,variant:y}),[x,a,l,s,k,R,d,p,P,M,A,m,g,y]);/* @__PURE__ */
154
+ return c.jsx(au.Provider,{value:O,children:/* @__PURE__ */c.jsx(Qd,{as:i,ownerState:v,className:dr(w.root,o),ref:t,...b,children:r})})});function Zd(e){return fr("MuiFormHelperText",e)}const Jd=hr("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ep;const tp=Ka("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ln(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fi(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Jd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),np=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:i,error:l,filled:s,focused:u,margin:d,required:p,variant:f,...h}=n,m=ou({props:n,muiFormControl:iu(),states:["variant","size","disabled","error","filled","focused","required"]}),g={...n,component:a,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete g.ownerState;const y=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:s}=e;return bo({root:["root",o&&"disabled",a&&"error",r&&`size${ln(r)}`,n&&"contained",l&&"focused",i&&"filled",s&&"required"]},Zd,t)})(g);/* @__PURE__ */
155
+ return c.jsx(tp,{as:a,className:dr(y.root,o),ref:t,...h,ownerState:g,children:" "===r?ep||(ep=/* @__PURE__ */c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function rp(e){return fr("MuiFormLabel",e)}const op=hr("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ap=Ka("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(fi(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{[`&.${op.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ip=Ka("span",{name:"MuiFormLabel",slot:"Asterisk"})(fi(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}}))),lp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:i="label",disabled:l,error:s,filled:u,focused:d,required:p,...f}=n,h=ou({props:n,muiFormControl:iu(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:h.color||"primary",component:i,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},g=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e;return bo({root:["root",`color${ln(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]},rp,t)})(m);/* @__PURE__ */
156
+ return c.jsxs(ap,{as:i,ownerState:m,className:dr(g.root,o),ref:t,...f,children:[r,h.required&&/* @__PURE__ */c.jsxs(ip,{ownerState:m,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]})});function sp(e){return`scale(${e}, ${e**2})`}const cp={entering:{opacity:1,transform:sp(1)},entered:{opacity:1,transform:"none"}},up="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),dp=/* @__PURE__ */h.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:u,onExit:d,onExited:p,onExiting:f,style:m,timeout:g="auto",TransitionComponent:y=Di,...b}=e,v=Xi(),w=h.useRef(),x=Ua(),S=h.useRef(null),k=Ci(S,jc(o),t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(u),T=C((e,t)=>{Qi(e);const{duration:n,delay:r,easing:o}=Yi({style:m,timeout:g,easing:a},{mode:"enter"});let i;"auto"===g?(i=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:up?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)}),R=C(s),P=C(f),A=C(e=>{const{duration:t,delay:n,easing:r}=Yi({style:m,timeout:g,easing:a},{mode:"exit"});let o;"auto"===g?(o=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:up?o:.666*o,delay:up?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=sp(.75),d&&d(e)}),M=C(p);/* @__PURE__ */
157
+ return c.jsx(y,{appear:r,in:i,nodeRef:S,onEnter:T,onEntered:R,onEntering:E,onExit:A,onExited:M,onExiting:P,addEndListener:e=>{"auto"===g&&v.start(w.current||0,e),n&&n(S.current,e)},timeout:"auto"===g?null:g,...b,children:(e,{ownerState:t,...n})=>/* @__PURE__ */h.cloneElement(o,{style:{opacity:0,transform:sp(.75),visibility:"exited"!==e||i?void 0:"hidden",...cp[e],...m,...o.props.style},ref:k,...n})})});dp&&(dp.muiSupportAuto=!0);const pp=Ka(hu,{shouldForwardProp:e=>Va(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...pu(e,t),!n.disableUnderline&&t.underline]}})(fi(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vu.disabled}, .${vu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${vu.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),fp=Ka(mu,{name:"MuiInput",slot:"Input",overridesResolver:fu})({}),hp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:s=!1,slotProps:u,slots:d={},type:p="text",...f}=n,h=(e=>{const{classes:t,disableUnderline:n}=e,r=bo({root:["root",!n&&"underline"],input:["input"]},bu,t);return{...t,...r}})(n),m={root:{ownerState:{disableUnderline:r}}},g=u??a?Gt(u??a,m):m,y=d.root??o.Root??pp,b=d.input??o.Input??fp;/* @__PURE__ */
158
+ return c.jsx(yu,{slots:{root:y,input:b},slotProps:g,fullWidth:i,inputComponent:l,multiline:s,ref:t,type:p,...f,classes:h})});function mp(e){return fr("MuiInputLabel",e)}hp.muiName="Input",hr("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gp=Ka(lp,{shouldForwardProp:e=>Va(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fi(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),yp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:i,className:l,...s}=n,u=iu();let d=a;void 0===d&&u&&(d=u.filled||u.focused||u.adornedStart);const p=ou({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f={...n,disableAnimation:r,formControl:u,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},h=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,s=bo({root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"medium"!==r&&`size${ln(r)}`,i],asterisk:[l&&"asterisk"]},mp,t);return{...t,...s}})(f);/* @__PURE__ */
159
+ return c.jsx(gp,{"data-shrink":d,ref:t,className:dr(h.root,l),...s,ownerState:f,classes:h})});function bp(e){return fr("MuiLink",e)}const vp=hr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),wp=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const r=sn(e,`palette.${n}.main`)||sn(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}const r=sn(e,`palette.${n}.main`,!1)||sn(e,`palette.${n}`,!1)||t.color,o=sn(e,`palette.${n}.mainChannel`)||sn(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Lr(r,.4)},xp={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Sp=Ka(Cs,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ln(n.underline)}`],"button"===n.component&&t.button]}})(fi(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"===t.color,style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vp.focusVisible}`]:{outline:"auto"}}}]}))),kp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiLink"}),r=Ua(),{className:o,color:a="primary",component:i="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:f,...m}=n,[g,y]=h.useState(!1),b={...n,color:a,component:i,focusVisible:g,underline:d,variant:p},v=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return bo({root:["root",`underline${ln(o)}`,"button"===n&&"button",r&&"focusVisible"]},bp,t)})(b);/* @__PURE__ */
160
+ return c.jsx(Sp,{color:a,className:dr(v.root,o),classes:u,component:i,onBlur:e=>{kl(e.target)||y(!1),l&&l(e)},onFocus:e=>{kl(e.target)&&y(!0),s&&s(e)},ref:t,ownerState:b,variant:p,...m,sx:[...void 0===xp[a]?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...m.style,..."always"===d&&"inherit"!==a&&!xp[a]&&{"--Link-underlineColor":wp({theme:r,ownerState:b})}}})}),Cp=/* @__PURE__ */h.createContext({});function Ep(e){return fr("MuiList",e)}hr("MuiList",["root","padding","dense","subheader"]);const Tp=Ka("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Rp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s,...u}=n,d=h.useMemo(()=>({dense:i}),[i]),p={...n,component:a,dense:i,disablePadding:l},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ep,t)})(p);/* @__PURE__ */
161
+ return c.jsx(Cp.Provider,{value:d,children:/* @__PURE__ */c.jsxs(Tp,{as:a,className:dr(f.root,o),ref:t,ownerState:p,...u,children:[s,r]})})});function Pp(e){return fr("MuiListItem",e)}hr("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Ap=hr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Mp(e){return fr("MuiListItemSecondaryAction",e)}hr("MuiListItemSecondaryAction",["root","disableGutters"]);const Op=Ka("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),_p=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=h.useContext(Cp),i={...n,disableGutters:a.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return bo({root:["root",t&&"disableGutters"]},Mp,n)})(i);/* @__PURE__ */
162
+ return c.jsx(Op,{className:dr(l.root,r),ownerState:i,ref:t,...o})});_p.muiName="ListItemSecondaryAction";const Np=Ka("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(fi(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Ap.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),Ip=Ka("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Lp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:i,components:l={},componentsProps:s={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:b,slotProps:v={},slots:w={},...x}=n,S=h.useContext(Cp),k=h.useMemo(()=>({dense:f||S.dense||!1,alignItems:r,disableGutters:m}),[r,S.dense,f,m]),C=h.useRef(null),E=h.Children.toArray(o),T=E.length&&vo(E[E.length-1],["ListItemSecondaryAction"]),R={...n,alignItems:r,dense:k.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:T},P=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return bo({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},Pp,n)})(R),A=Ci(C,t),M={slots:w,slotProps:v},[O,_]=ol("secondaryAction",{elementType:_p,externalForwardedProps:M,ownerState:R,className:P.secondaryAction}),N=w.root||l.Root||Np,I=v.root||s.root||{},L={className:dr(P.root,I.className,a),...x};let z=i||"li";return T?(z=L.component||i?z:"div","li"===u&&("li"===z?z="div":"li"===L.component&&(L.component="div")),/* @__PURE__ */c.jsx(Cp.Provider,{value:k,children:/* @__PURE__ */c.jsxs(Ip,{as:u,className:dr(P.container,d),ref:A,ownerState:R,...p,children:[/* @__PURE__ */c.jsx(N,{...I,...!Zi(N)&&{as:z,ownerState:{...R,...I.ownerState}},...L,children:E}),E.pop()]})})):/* @__PURE__ */c.jsx(Cp.Provider,{value:k,children:/* @__PURE__ */c.jsxs(N,{...I,as:z,ref:A,...!Zi(N)&&{ownerState:{...R,...I.ownerState}},...L,children:[E,b&&/* @__PURE__ */c.jsx(O,{..._,children:b})]})})});function zp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $p(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Dp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function jp(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Dp(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Fp=/* @__PURE__ */h.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,f=h.useRef(null),m=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pr(()=>{r&&f.current.focus()},[r]),h.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Qu(wi(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const g=Ci(f,t);let y=-1;h.Children.forEach(a,(e,t)=>{/* @__PURE__ */h.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===y)&&(y=t),y===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))):y===t&&(y+=1,y>=a.length&&(y=-1))});const b=h.Children.map(a,(e,t)=>{if(t===y){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),/* @__PURE__ */h.cloneElement(e,t)}return e});/* @__PURE__ */
163
+ return c.jsx(Rp,{role:"menu",ref:g,className:i,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=nd(vi(t));if("ArrowDown"===n)e.preventDefault(),jp(t,r,s,l,zp);else if("ArrowUp"===n)e.preventDefault(),jp(t,r,s,l,$p);else if("Home"===n)e.preventDefault(),jp(t,null,s,l,zp);else if("End"===n)e.preventDefault(),jp(t,null,s,l,$p);else if(1===n.length){const o=m.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&Dp(r,o);o.previousKeyMatched&&(s||jp(t,r,!1,l,zp,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...p,children:b})});function Bp(e){return fr("MuiPopover",e)}function Wp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Hp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Up(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qp(e){return"function"==typeof e?e():e}hr("MuiPopover",["root","paper"]);const Vp=Ka(fd,{name:"MuiPopover",slot:"Root"})({}),Kp=Ka(pl,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gp=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:s,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:m,PaperProps:g={},slots:y={},slotProps:b={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:x="auto",TransitionProps:S={},disableScrollLock:k=!1,...C}=n,E=h.useRef(),T={...n,anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:f,transformOrigin:v,TransitionComponent:w,transitionDuration:x,TransitionProps:S},R=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"]},Bp,t)})(T),P=h.useCallback(()=>{if("anchorPosition"===l)return i;const e=qp(o),t=(e&&1===e.nodeType?e:vi(E.current).body).getBoundingClientRect();return{top:t.top+Wp(t,a.vertical),left:t.left+Hp(t,a.horizontal)}},[o,a.horizontal,a.vertical,i,l]),A=h.useCallback(e=>({vertical:Wp(e,v.vertical),horizontal:Hp(e,v.horizontal)}),[v.horizontal,v.vertical]),M=h.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=A(t);if("none"===l)return{top:null,left:null,transformOrigin:Up(n)};const r=P();let a=r.top-n.vertical,i=r.left-n.horizontal;const s=a+t.height,c=i+t.width,u=wi(qp(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&a<f){const e=a-f;a-=e,n.vertical+=e}else if(null!==f&&s>d){const e=s-d;a-=e,n.vertical+=e}if(null!==f&&i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:Up(n)}},[o,l,P,A,f]),[O,_]=h.useState(m),N=h.useCallback(()=>{const e=E.current;if(!e)return;const t=M(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)},[M]);h.useEffect(()=>(k&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[o,k,N]);h.useEffect(()=>{m&&N()}),h.useImperativeHandle(r,()=>m?{updatePosition:()=>{N()}}:null,[m,N]),h.useEffect(()=>{if(!m)return;const e=bi(()=>{N()}),t=wi(qp(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,m,N]);let I=x;const L={slots:{transition:w,...y},slotProps:{transition:S,paper:g,...b}},[z,$]=ol("transition",{elementType:dp,externalForwardedProps:L,ownerState:T,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),N()},onExited:t=>{e.onExited?.(t),_(!1)}}),additionalProps:{appear:!0,in:m}});"auto"!==x||z.muiSupportAuto||(I=void 0);const D=d||(o?vi(qp(o)).body:void 0),[j,{slots:F,slotProps:B,...W}]=ol("root",{ref:t,elementType:Vp,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:Ei("function"==typeof b.backdrop?b.backdrop(T):b.backdrop,{invisible:!0})},container:D,open:m},ownerState:T,className:dr(R.root,u)}),[H,U]=ol("paper",{ref:E,className:R.paper,elementType:Kp,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:O?void 0:{opacity:0}},ownerState:T});/* @__PURE__ */
164
+ return c.jsx(j,{...W,...!Zi(j)&&{slots:F,slotProps:B,disableScrollLock:k},children:/* @__PURE__ */c.jsx(z,{...$,timeout:I,children:/* @__PURE__ */c.jsx(H,{...U,children:s})})})});function Xp(e){return fr("MuiMenu",e)}hr("MuiMenu",["root","paper","list"]);const Qp={vertical:"top",horizontal:"right"},Yp={vertical:"top",horizontal:"left"},Zp=Ka(Gp,{shouldForwardProp:e=>Va(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Jp=Ka(Kp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ef=Ka(Fp,{name:"MuiMenu",slot:"List"})({outline:0}),tf=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:s,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:m,...g}={},variant:y="selectedMenu",slots:b={},slotProps:v={},...w}=n,x=Gr(),S={...n,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:f,TransitionProps:g,variant:y},k=(e=>{const{classes:t}=e;return bo({root:["root"],paper:["paper"],list:["list"]},Xp,t)})(S),C=r&&!i&&u,E=h.useRef(null);let T=-1;h.Children.map(o,(e,t)=>{/* @__PURE__ */h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===T)&&(T=t))});const R={slots:b,slotProps:{list:l,transition:g,paper:d,...v}},P=Dc({elementType:b.root,externalSlotProps:v.root,ownerState:S,className:[k.root,a]}),[A,M]=ol("paper",{className:k.paper,elementType:Jp,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:S}),[O,_]=ol("list",{className:dr(k.list,l.className),elementType:ef,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),s&&s(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:S}),N="function"==typeof R.slotProps.transition?R.slotProps.transition(S):R.slotProps.transition;/* @__PURE__ */
165
+ return c.jsx(Zp,{onClose:s,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Qp:Yp,slots:{root:b.root,paper:A,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:P,paper:M,backdrop:"function"==typeof v.backdrop?v.backdrop(S):v.backdrop,transition:{...N,onEntering:(...e)=>{((e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:x?"rtl":"ltr"}),m&&m(e,t)})(...e),N?.onEntering?.(...e)}}},open:u,ref:t,transitionDuration:f,ownerState:S,...w,classes:p,children:/* @__PURE__ */c.jsx(O,{actions:E,autoFocus:r&&(-1===T||i),autoFocusItem:C,variant:y,..._,children:o})})});function nf(e){return fr("MuiNativeSelect",e)}const rf=hr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),of=Ka("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${rf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),af=Ka(of,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Va,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${rf.multiple}`]:t.multiple}]}})({}),lf=Ka("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${rf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),sf=Ka(lf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ln(n.variant)}`],n.open&&t.iconOpen]}})({}),cf=/* @__PURE__ */h.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:i,variant:l="standard",...s}=e,u={...e,disabled:r,variant:l,error:o},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return bo({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ln(n)}`,a&&"iconOpen",r&&"disabled"]},nf,t)})(u);/* @__PURE__ */
166
+ return c.jsxs(h.Fragment,{children:[/* @__PURE__ */c.jsx(af,{ownerState:u,className:dr(d.select,n),disabled:r,ref:i||t,...s}),e.multiple?null:/* @__PURE__ */c.jsx(sf,{as:a,ownerState:u,className:d.icon})]})});var uf;const df=Ka("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Va})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),pf=Ka("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Va})(fi(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const ff=Ka(hu,{shouldForwardProp:e=>Va(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:pu})(fi(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xu.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${xu.focused} .${xu.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Hl()).map(([t])=>({props:{color:t},style:{[`&.${xu.focused} .${xu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${xu.error} .${xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xu.disabled} .${xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),hf=Ka(function(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=null!=o&&""!==o,s={...e,notched:a,withLabel:l};/* @__PURE__ */
167
+ return c.jsx(df,{"aria-hidden":!0,className:r,ownerState:s,...i,children:/* @__PURE__ */c.jsx(pf,{ownerState:s,children:l?/* @__PURE__ */c.jsx("span",{children:o}):uf||(uf=/* @__PURE__ */c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fi(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),mf=Ka(mu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fu})(fi(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),gf=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:i,multiline:l=!1,notched:s,slots:u={},slotProps:d={},type:p="text",...f}=n,m=(e=>{const{classes:t}=e,n=bo({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},wu,t);return{...t,...n}})(n),g=iu(),y=ou({props:n,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:o,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:p},v=u.root??r.Root??ff,w=u.input??r.Input??mf,[x,S]=ol("notchedOutline",{elementType:hf,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:null!=i&&""!==i&&y.required?/* @__PURE__ */c.jsxs(h.Fragment,{children:[i," ","*"]}):i}});/* @__PURE__ */
168
+ return c.jsx(yu,{slots:{root:v,input:w},slotProps:d,renderSuffix:e=>/* @__PURE__ */c.jsx(x,{...S,notched:void 0!==s?s:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:p,...f,classes:{...m,notchedOutline:null}})});function yf(e){return fr("MuiSelect",e)}gf.muiName="Input";const bf=hr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vf;const wf=Ka(of,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${bf.select}`]:t.select},{[`&.${bf.select}`]:t[n.variant]},{[`&.${bf.error}`]:t.error},{[`&.${bf.multiple}`]:t.multiple}]}})({[`&.${bf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xf=Ka(lf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ln(n.variant)}`],n.open&&t.iconOpen]}})({}),Sf=Ka("input",{shouldForwardProp:e=>qa(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Cf(e){return null==e||"string"==typeof e&&!e.trim()}const Ef=/* @__PURE__ */h.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:i,className:l,defaultOpen:s,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:g,labelId:y,MenuProps:b={},multiple:v,name:w,onBlur:x,onChange:S,onClose:k,onFocus:C,onKeyDown:E,onMouseDown:T,onOpen:R,open:P,readOnly:A,renderValue:M,required:O,SelectDisplayProps:_={},tabIndex:N,type:I,value:L,variant:z="standard",...$}=e,[D,j]=Si({controlled:L,default:u,name:"Select"}),[F,B]=Si({controlled:P,default:s,name:"Select"}),W=h.useRef(null),H=h.useRef(null),[U,q]=h.useState(null),{current:V}=h.useRef(null!=P),[K,G]=h.useState(),X=Ci(t,g),Q=h.useCallback(e=>{H.current=e,e&&q(e)},[]),Y=U?.parentNode;h.useImperativeHandle(X,()=>({focus:()=>{H.current.focus()},node:W.current,value:D}),[D]),h.useEffect(()=>{s&&F&&U&&!V&&(G(a?null:Y.clientWidth),H.current.focus())},[U,a]),h.useEffect(()=>{o&&H.current.focus()},[o]),h.useEffect(()=>{if(!y)return;const e=vi(H.current).getElementById(y);if(e){const t=()=>{getSelection().isCollapsed&&H.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[y]);const Z=(e,t)=>{e?R&&R(t):k&&k(t),V||(G(a?null:Y.clientWidth),B(e))},J=h.Children.toArray(i),ee=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(j(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:w}}),S(o,e)}v||Z(!1,t)}},te=null!==U&&F;let ne,re;delete $["aria-invalid"];const oe=[];let ae=!1;(su({value:D})||p)&&(M?ne=M(D):ae=!0);const ie=J.map(e=>{if(!/* @__PURE__ */h.isValidElement(e))return null;let t;if(v){if(!Array.isArray(D))throw new Error(wt(2));t=D.some(t=>kf(t,e.props.value)),t&&ae&&oe.push(e.props.children)}else t=kf(D,e.props.value),t&&ae&&(re=e.props.children);/* @__PURE__ */
169
+ return h.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ee(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ae&&(ne=v?0===oe.length?null:oe.reduce((e,t,n)=>(e.push(t),n<oe.length-1&&e.push(", "),e),[]):re);let le,se=K;!a&&V&&U&&(se=Y.clientWidth),le=void 0!==N?N:d?null:0;const ce=_.id||(w?`mui-component-select-${w}`:void 0),ue={...e,variant:z,value:D,open:te,error:f},de=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return bo({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ln(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},yf,t)})(ue),pe={...b.PaperProps,..."function"==typeof b.slotProps?.paper?b.slotProps.paper(ue):b.slotProps?.paper},fe={...b.MenuListProps,..."function"==typeof b.slotProps?.list?b.slotProps.list(ue):b.slotProps?.list},he=eo();/* @__PURE__ */
170
+ return c.jsxs(h.Fragment,{children:[/* @__PURE__ */c.jsx(wf,{as:"div",ref:Q,tabIndex:le,role:"combobox","aria-controls":te?he:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,ce].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":O?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{if(!A){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Z(!0,e)),E?.(e)}},onMouseDown:d||A?null:e=>{T?.(e),0===e.button&&(e.preventDefault(),H.current.focus(),Z(!0,e))},onBlur:e=>{!te&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:w}}),x(e))},onFocus:C,..._,ownerState:ue,className:dr(_.className,de.select,l),id:ce,children:Cf(ne)?vf||(vf=/* @__PURE__ */c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ne}),/* @__PURE__ */c.jsx(Sf,{"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:w,ref:W,"aria-hidden":!0,onChange:e=>{const t=J.find(t=>t.props.value===e.target.value);void 0!==t&&(j(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:de.nativeInput,autoFocus:o,required:O,...$,ownerState:ue}),/* @__PURE__ */c.jsx(xf,{as:m,className:de.icon,ownerState:ue}),/* @__PURE__ */c.jsx(tf,{id:`menu-${w||""}`,anchorEl:Y,open:te,onClose:e=>{Z(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:he,...fe},paper:{...pe,style:{minWidth:se,...null!=pe?pe.style:null}}},children:ie})]})}),Tf={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Va(e)&&"variant"!==e},Rf=Ka(hp,Tf)(""),Pf=Ka(gf,Tf)(""),Af=Ka(Gd,Tf)(""),Mf=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Cu,id:d,input:p,inputProps:f,label:m,labelId:g,MenuProps:y,multiple:b=!1,native:v=!1,onClose:w,onOpen:x,open:S,renderValue:k,SelectDisplayProps:C,variant:E="outlined",...T}=n,R=v?cf:Ef,P=ou({props:n,muiFormControl:iu(),states:["variant","error"]}),A=P.variant||E,M={...n,variant:A,classes:a},O=(e=>{const{classes:t}=e,n=bo({root:["root"]},yf,t);return{...t,...n}})(M),{root:_,...N}=O,I=p||{standard:/* @__PURE__ */c.jsx(Rf,{ownerState:M}),outlined:/* @__PURE__ */c.jsx(Pf,{label:m,ownerState:M}),filled:/* @__PURE__ */c.jsx(Af,{ownerState:M})}[A],L=Ci(t,jc(I));/* @__PURE__ */
171
+ return c.jsx(h.Fragment,{children:/* @__PURE__ */h.cloneElement(I,{inputComponent:R,inputProps:{children:o,error:P.error,IconComponent:u,variant:A,type:void 0,multiple:b,...v?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:g,MenuProps:y,onClose:w,onOpen:x,open:S,renderValue:k,SelectDisplayProps:{id:d,...C}},...f,classes:f?Gt(N,f.classes):N,...p?p.props.inputProps:{}},...(b&&v||s)&&"outlined"===A?{notched:!0}:{},ref:L,className:dr(I.props.className,i,O.root),...!p&&{variant:A},...T})})});function Of(e){return fr("MuiSkeleton",e)}Mf.muiName="Select",hr("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const _f=Rt`
172
+ 0% {
173
+ opacity: 1;
174
+ }
175
+
176
+ 50% {
177
+ opacity: 0.4;
178
+ }
179
+
180
+ 100% {
181
+ opacity: 1;
182
+ }
183
+ `,Nf=Rt`
184
+ 0% {
185
+ transform: translateX(-100%);
186
+ }
187
+
188
+ 50% {
189
+ /* +0.5s of delay between each loop */
190
+ transform: translateX(100%);
191
+ }
192
+
193
+ 100% {
194
+ transform: translateX(100%);
195
+ }
196
+ `,If="string"!=typeof _f?Tt`
197
+ animation: ${_f} 2s ease-in-out 0.5s infinite;
198
+ `:null,Lf="string"!=typeof Nf?Tt`
199
+ &::after {
200
+ animation: ${Nf} 2s linear 0.5s infinite;
201
+ }
202
+ `:null,zf=Ka("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(fi(({theme:e})=>{const t=(n=e.shape.borderRadius,String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px");var n;const r=(o=e.shape.borderRadius,parseFloat(o));var o;return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:If||{animation:`${_f} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Lf||{"&::after":{animation:`${Nf} 2s linear 0.5s infinite`}}}]}})),$f=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:a="span",height:i,style:l,variant:s="text",width:u,...d}=n,p={...n,animation:r,component:a,variant:s,hasChildren:Boolean(d.children)},f=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:a,height:i}=e;return bo({root:["root",n,r,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},Of,t)})(p);/* @__PURE__ */
203
+ return c.jsx(zf,{as:a,ref:t,className:dr(f.root,o),ownerState:p,...d,style:{width:u,height:i,...l}})});function Df(e){return fr("MuiTooltip",e)}const jf=hr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Ff=Ka(Vc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(fi(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${jf.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${jf.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${jf.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${jf.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${jf.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${jf.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${jf.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${jf.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Bf=Ka("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ln(n.placement.split("-")[0])}`]]}})(fi(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${jf.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${jf.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${jf.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${jf.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${jf.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${jf.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${jf.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${jf.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${jf.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${jf.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${jf.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${jf.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${jf.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${jf.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),Wf=Ka("span",{name:"MuiTooltip",slot:"Arrow"})(fi(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Hf=!1;const Uf=new Gi;let qf={x:0,y:0};function Vf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Kf=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:a,components:i={},componentsProps:l={},describeChild:s=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:b=!1,id:v,leaveDelay:w=0,leaveTouchDelay:x=1500,onClose:S,onOpen:k,open:C,placement:E="bottom",PopperComponent:T,PopperProps:R={},slotProps:P={},slots:A={},title:M,TransitionComponent:O,TransitionProps:_,...N}=n,I=/* @__PURE__ */h.isValidElement(o)?o:/* @__PURE__ */c.jsx("span",{children:o}),L=Ua(),z=Gr(),[$,D]=h.useState(),[j,F]=h.useState(null),B=h.useRef(!1),W=p||b,H=Xi(),U=Xi(),q=Xi(),V=Xi(),[K,G]=Si({controlled:C,default:!1,name:"Tooltip",state:"open"});let X=K;const Q=eo(v),Y=h.useRef(),Z=ki(()=>{void 0!==Y.current&&(document.body.style.WebkitUserSelect=Y.current,Y.current=void 0),V.clear()});h.useEffect(()=>Z,[Z]);const J=e=>{Uf.clear(),Hf=!0,G(!0),k&&!X&&k(e)},ee=ki(e=>{Uf.start(800+w,()=>{Hf=!1}),G(!1),S&&X&&S(e),H.start(L.transitions.duration.shortest,()=>{B.current=!1})}),te=e=>{B.current&&"touchstart"!==e.type||($&&$.removeAttribute("title"),U.clear(),q.clear(),m||Hf&&g?U.start(Hf?g:m,()=>{J(e)}):J(e))},ne=e=>{U.clear(),q.start(w,()=>{ee(e)})},[,re]=h.useState(!1),oe=e=>{kl(e.target)||(re(!1),ne(e))},ae=e=>{$||D(e.currentTarget),kl(e.target)&&(re(!0),te(e))},ie=e=>{B.current=!0;const t=I.props;t.onTouchStart&&t.onTouchStart(e)},le=e=>{ie(e),q.clear(),H.clear(),Z(),Y.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",V.start(y,()=>{document.body.style.WebkitUserSelect=Y.current,te(e)})},se=e=>{I.props.onTouchEnd&&I.props.onTouchEnd(e),Z(),q.start(x,()=>{ee(e)})};h.useEffect(()=>{if(X)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}},[ee,X]);const ce=Ci(jc(I),D,t);M||0===M||(X=!1);const ue=h.useRef(),de={},pe="string"==typeof M;s?(de.title=X||!pe||d?null:M,de["aria-describedby"]=X?Q:null):(de["aria-label"]=pe?M:null,de["aria-labelledby"]=X&&!pe?Q:null);const fe={...de,...N,...I.props,className:dr(N.className,I.props.className),onTouchStart:ie,ref:ce,...b?{onMouseMove:e=>{const t=I.props;t.onMouseMove&&t.onMouseMove(e),qf={x:e.clientX,y:e.clientY},ue.current&&ue.current.update()}}:{}},he={};f||(fe.onTouchStart=le,fe.onTouchEnd=se),d||(fe.onMouseOver=Vf(te,fe.onMouseOver),fe.onMouseLeave=Vf(ne,fe.onMouseLeave),W||(he.onMouseOver=te,he.onMouseLeave=ne)),u||(fe.onFocus=Vf(ae,fe.onFocus),fe.onBlur=Vf(oe,fe.onBlur),W||(he.onFocus=ae,he.onBlur=oe));const me={...n,isRtl:z,arrow:r,disableInteractive:W,placement:E,PopperComponentProp:T,touch:B.current},ge="function"==typeof P.popper?P.popper(me):P.popper,ye=h.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(j),options:{element:j,padding:4}}];return R.popperOptions?.modifiers&&(e=e.concat(R.popperOptions.modifiers)),ge?.popperOptions?.modifiers&&(e=e.concat(ge.popperOptions.modifiers)),{...R.popperOptions,...ge?.popperOptions,modifiers:e}},[j,R.popperOptions,ge?.popperOptions]),be=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return bo({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ln(a.split("-")[0])}`],arrow:["arrow"]},Df,t)})(me),ve="function"==typeof P.transition?P.transition(me):P.transition,we={slots:{popper:i.Popper,transition:i.Transition??O,tooltip:i.Tooltip,arrow:i.Arrow,...A},slotProps:{arrow:P.arrow??l.arrow,popper:{...R,...ge??l.popper},tooltip:P.tooltip??l.tooltip,transition:{..._,...ve??l.transition}}},[xe,Se]=ol("popper",{elementType:Ff,externalForwardedProps:we,ownerState:me,className:dr(be.popper,R?.className)}),[ke,Ce]=ol("transition",{elementType:dp,externalForwardedProps:we,ownerState:me}),[Ee,Te]=ol("tooltip",{elementType:Bf,className:be.tooltip,externalForwardedProps:we,ownerState:me}),[Re,Pe]=ol("arrow",{elementType:Wf,className:be.arrow,externalForwardedProps:we,ownerState:me,ref:F});/* @__PURE__ */
204
+ return c.jsxs(h.Fragment,{children:[/* @__PURE__ */h.cloneElement(I,fe),/* @__PURE__ */c.jsx(xe,{as:T??Vc,placement:E,anchorEl:b?{getBoundingClientRect:()=>({top:qf.y,left:qf.x,right:qf.x,bottom:qf.y,width:0,height:0})}:$,popperRef:ue,open:!!$&&X,id:Q,transition:!0,...he,...Se,popperOptions:ye,children:({TransitionProps:e})=>/* @__PURE__ */c.jsx(ke,{timeout:L.transitions.duration.shorter,...e,...Ce,children:/* @__PURE__ */c.jsxs(Ee,{...Te,children:[M,r?/* @__PURE__ */c.jsx(Re,{...Pe}):null]})})})]})}),Gf=function(e={}){const{createStyledComponent:t=xo,useThemeProps:n=So,componentName:r="MuiStack"}=e,o=t(Co);/* @__PURE__ */
205
+ return h.forwardRef(function(e,t){const a=lr(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:u,children:d,className:p,useFlexGap:f=!1,...h}=a,m={direction:l,spacing:s,useFlexGap:f},g=bo({root:["root"]},e=>fr(r,e),{});/* @__PURE__ */
206
+ return c.jsx(o,{as:i,ownerState:m,ref:t,className:dr(g.root,p),...h,children:u?ko(d,u):d})})}({createStyledComponent:Ka("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>oi({props:e,name:"MuiStack"})});function Xf(e){return fr("MuiTab",e)}const Qf=hr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Yf=Ka(Ll,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ln(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Qf.iconWrapper}`]:t.iconWrapper},{[`& .${Qf.icon}`]:t.icon}]}})(fi(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${Qf.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${Qf.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${Qf.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${Qf.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Qf.selected}`]:{opacity:1},[`&.${Qf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Qf.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Qf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Qf.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Qf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Zf=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:i,icon:l,iconPosition:s="top",indicator:u,label:d,onChange:p,onClick:f,onFocus:m,selected:g,selectionFollowsFocus:y,textColor:b="inherit",value:v,wrapped:w=!1,...x}=n,S={...n,disabled:o,disableFocusRipple:a,selected:g,icon:!!l,iconPosition:s,label:!!d,fullWidth:i,textColor:b,wrapped:w},k=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:l,disabled:s}=e;return bo({root:["root",a&&i&&"labelIcon",`textColor${ln(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]},Xf,t)})(S),C=l&&d&&/* @__PURE__ */h.isValidElement(l)?/* @__PURE__ */h.cloneElement(l,{className:dr(k.icon,l.props.className)}):l;/* @__PURE__ */
207
+ return c.jsxs(Yf,{focusRipple:!a,className:dr(k.root,r),ref:t,role:"tab","aria-selected":g,disabled:o,onClick:e=>{!g&&p&&p(e,v),f&&f(e)},onFocus:e=>{y&&!g&&p&&p(e,v),m&&m(e)},ownerState:S,tabIndex:g?0:-1,...x,children:["top"===s||"start"===s?/* @__PURE__ */c.jsxs(h.Fragment,{children:[C,d]}):/* @__PURE__ */c.jsxs(h.Fragment,{children:[d,C]}),u]})}),Jf=yi(/* @__PURE__ */c.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),eh=yi(/* @__PURE__ */c.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function th(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const nh={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function rh(e){return fr("MuiTabScrollButton",e)}const oh=hr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ah=Ka(Ll,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${oh.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ih=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:a={},direction:i,orientation:l,disabled:s,...u}=n,d=Gr(),p={isRtl:d,...n},f=(e=>{const{classes:t,orientation:n,disabled:r}=e;return bo({root:["root",n,r&&"disabled"]},rh,t)})(p),h=o.StartScrollButtonIcon??Jf,m=o.EndScrollButtonIcon??eh,g=Dc({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),y=Dc({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});/* @__PURE__ */
208
+ return c.jsx(ah,{component:"div",className:dr(f.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...u,style:{...u.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===i?/* @__PURE__ */c.jsx(h,{...g}):/* @__PURE__ */c.jsx(m,{...y})})});function lh(e){return fr("MuiTabs",e)}const sh=hr("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ch=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,uh=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,dh=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},ph=Ka("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sh.scrollButtons}`]:t.scrollButtons},{[`& .${sh.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(fi(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${sh.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),fh=Ka("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),hh=Ka("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),mh=Ka("span",{name:"MuiTabs",slot:"Indicator"})(fi(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),gh=Ka(function(e){const{onChange:t,...n}=e,r=h.useRef(),o=h.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Pr(()=>{const e=bi(()=>{const e=r.current;a(),e!==r.current&&t(r.current)}),n=wi(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),h.useEffect(()=>{a(),t(r.current)},[t]),/* @__PURE__ */c.jsx("div",{style:nh,...n,ref:o})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yh={},bh=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiTabs"}),r=Ua(),o=Gr(),{"aria-label":a,"aria-labelledby":i,action:l,centered:s=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:w,slots:x={},slotProps:S={},TabIndicatorProps:k={},TabScrollButtonProps:C={},textColor:E="primary",value:T,variant:R="standard",visibleScrollbar:P=!1,...A}=n,M="scrollable"===R,O="vertical"===y,_=O?"scrollTop":"scrollLeft",N=O?"top":"left",I=O?"bottom":"right",L=O?"clientHeight":"clientWidth",z=O?"height":"width",$={...n,component:p,allowScrollButtonsMobile:f,indicatorColor:m,orientation:y,vertical:O,scrollButtons:v,textColor:E,variant:R,visibleScrollbar:P,fixed:!M,hideScrollbar:M&&!P,scrollableX:M&&!O,scrollableY:M&&O,centered:s&&!M,scrollButtonsHideMobile:!f},D=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return bo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},lh,s)})($),j=Dc({elementType:x.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:$}),F=Dc({elementType:x.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:$}),[B,W]=h.useState(!1),[H,U]=h.useState(yh),[q,V]=h.useState(!1),[K,G]=h.useState(!1),[X,Q]=h.useState(!1),[Y,Z]=h.useState({overflow:"hidden",scrollbarWidth:0}),J=/* @__PURE__ */new Map,ee=h.useRef(null),te=h.useRef(null),ne={slots:x,slotProps:{indicator:k,scrollButton:C,...S}},re=()=>{const e=ee.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==T){const e=te.current.children;if(e.length>0){const t=e[J.get(T)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=ki(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;O?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=o?"right":"left",t&&e&&(r=(o?-1:1)*(t[n]-e[n]+e.scrollLeft)));const a={[n]:r,[z]:t?t[z]:0};if("number"!=typeof H[n]||"number"!=typeof H[z])U(a);else{const e=Math.abs(H[n]-a[n]),t=Math.abs(H[z]-a[z]);(e>=1||t>=1)&&U(a)}}),ae=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:a=th,duration:i=300}=r;let l=null;const s=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=r);const u=Math.min(1,(r-l)/i);t[e]=a(u)*(n-s)+s,u>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};s===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(_,ee.current,e,{duration:r.transitions.duration.standard}):ee.current[_]=e},ie=e=>{let t=ee.current[_];t+=O?e:e*(o?-1:1),ae(t)},le=()=>{const e=ee.current[L];let t=0;const n=Array.from(te.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[L]>e){0===r&&(t=e);break}t+=o[L]}return t},se=()=>{ie(-1*le())},ce=()=>{ie(le())},[ue,{onChange:de,...pe}]=ol("scrollbar",{className:dr(D.scrollableX,D.hideScrollbar),elementType:gh,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:$}),fe=h.useCallback(e=>{de?.(e),Z({overflow:null,scrollbarWidth:e})},[de]),[he,me]=ol("scrollButtons",{className:dr(D.scrollButtons,C.className),elementType:ih,externalForwardedProps:ne,ownerState:$,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:j,endScrollButtonIcon:F}}}),ge=ki(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[N]<t[N]){const r=t[_]+(n[N]-t[N]);ae(r,{animation:e})}else if(n[I]>t[I]){const r=t[_]+(n[I]-t[I]);ae(r,{animation:e})}}),ye=ki(()=>{M&&!1!==v&&Q(!X)});h.useEffect(()=>{const e=bi(()=>{ee.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ye()},r=wi(ee.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(te.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(te.current,{childList:!0})),()=>{e.clear(),r.removeEventListener("resize",e),o?.disconnect(),t?.disconnect()}},[oe,ye]),h.useEffect(()=>{const e=Array.from(te.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&M&&!1!==v){const n=e[0],r=e[t-1],o={root:ee.current,threshold:.99},a=new IntersectionObserver(e=>{V(!e[0].isIntersecting)},o);a.observe(n);const i=new IntersectionObserver(e=>{G(!e[0].isIntersecting)},o);return i.observe(r),()=>{a.disconnect(),i.disconnect()}}},[M,v,X,u?.length]),h.useEffect(()=>{W(!0)},[]),h.useEffect(()=>{oe()}),h.useEffect(()=>{ge(yh!==H)},[ge,H]),h.useImperativeHandle(l,()=>({updateIndicator:oe,updateScrollButtons:ye}),[oe,ye]);const[be,ve]=ol("indicator",{className:dr(D.indicator,k.className),elementType:mh,externalForwardedProps:ne,ownerState:$,additionalProps:{style:H}}),we=/* @__PURE__ */c.jsx(be,{...ve});let xe=0;const Se=h.Children.map(u,e=>{if(!/* @__PURE__ */h.isValidElement(e))return null;const t=void 0===e.props.value?xe:e.props.value;J.set(t,xe);const n=t===T;return xe+=1,/* @__PURE__ */h.cloneElement(e,{fullWidth:"fullWidth"===R,indicator:n&&!B&&we,selected:n,selectionFollowsFocus:w,onChange:g,textColor:E,value:t,...1!==xe||!1!==T||e.props.tabIndex?{}:{tabIndex:0}})}),ke=(()=>{const e={};e.scrollbarSizeListener=M?/* @__PURE__ */c.jsx(ue,{...pe,onChange:fe}):null;const t=M&&("auto"===v&&(q||K)||!0===v);return e.scrollButtonStart=t?/* @__PURE__ */c.jsx(he,{direction:o?"right":"left",onClick:se,disabled:!q,...me}):null,e.scrollButtonEnd=t?/* @__PURE__ */c.jsx(he,{direction:o?"left":"right",onClick:ce,disabled:!K,...me}):null,e})(),[Ce,Ee]=ol("root",{ref:t,className:dr(D.root,d),elementType:ph,externalForwardedProps:{...ne,...A,component:p},ownerState:$}),[Te,Re]=ol("scroller",{ref:ee,className:D.scroller,elementType:fh,externalForwardedProps:ne,ownerState:$,additionalProps:{style:{overflow:Y.overflow,[O?"margin"+(o?"Left":"Right"):"marginBottom"]:P?void 0:-Y.scrollbarWidth}}}),[Pe,Ae]=ol("list",{ref:te,className:dr(D.list,D.flexContainer),elementType:hh,externalForwardedProps:ne,ownerState:$,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=te.current,n=nd(vi(t)),r=n?.getAttribute("role");if("tab"!==r)return;let a="horizontal"===y?"ArrowLeft":"ArrowUp",i="horizontal"===y?"ArrowRight":"ArrowDown";switch("horizontal"===y&&o&&(a="ArrowRight",i="ArrowLeft"),e.key){case a:e.preventDefault(),dh(t,n,uh);break;case i:e.preventDefault(),dh(t,n,ch);break;case"Home":e.preventDefault(),dh(t,null,ch);break;case"End":e.preventDefault(),dh(t,null,uh)}})(t),e.onKeyDown?.(t)}})});/* @__PURE__ */
209
+ return c.jsxs(Ce,{...Ee,children:[ke.scrollButtonStart,ke.scrollbarSizeListener,/* @__PURE__ */c.jsxs(Te,{...Re,children:[/* @__PURE__ */c.jsx(Pe,{"aria-label":a,"aria-labelledby":i,"aria-orientation":"vertical"===y?"vertical":null,role:"tablist",...Ae,children:Se}),B&&we]}),ke.scrollButtonEnd]})});function vh(e){return fr("MuiTextField",e)}hr("MuiTextField",["root"]);const wh={standard:hp,filled:Gd,outlined:gf},xh=Ka(Yd,{name:"MuiTextField",slot:"Root"})({}),Sh=/* @__PURE__ */h.forwardRef(function(e,t){const n=oi({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:s,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:f=!1,helperText:h,id:m,InputLabelProps:g,inputProps:y,InputProps:b,inputRef:v,label:w,maxRows:x,minRows:S,multiline:k=!1,name:C,onBlur:E,onChange:T,onFocus:R,placeholder:P,required:A=!1,rows:M,select:O=!1,SelectProps:_,slots:N={},slotProps:I={},type:L,value:z,variant:$="outlined",...D}=n,j={...n,autoFocus:o,color:l,disabled:u,error:d,fullWidth:f,multiline:k,required:A,select:O,variant:$},F=(e=>{const{classes:t}=e;return bo({root:["root"]},vh,t)})(j),B=eo(m),W=h&&B?`${B}-helper-text`:void 0,H=w&&B?`${B}-label`:void 0,U=wh[$],q={slots:N,slotProps:{input:b,inputLabel:g,htmlInput:y,formHelperText:p,select:_,...I}},V={},K=q.slotProps.inputLabel;"outlined"===$&&(K&&void 0!==K.shrink&&(V.notched=K.shrink),V.label=w),O&&(_&&_.native||(V.id=void 0),V["aria-describedby"]=void 0);const[G,X]=ol("root",{elementType:xh,shouldForwardComponentProp:!0,externalForwardedProps:{...q,...D},ownerState:j,className:dr(F.root,i),ref:t,additionalProps:{disabled:u,error:d,fullWidth:f,required:A,color:l,variant:$}}),[Q,Y]=ol("input",{elementType:U,externalForwardedProps:q,additionalProps:V,ownerState:j}),[Z,J]=ol("inputLabel",{elementType:yp,externalForwardedProps:q,ownerState:j}),[ee,te]=ol("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:j}),[ne,re]=ol("formHelperText",{elementType:np,externalForwardedProps:q,ownerState:j}),[oe,ae]=ol("select",{elementType:Mf,externalForwardedProps:q,ownerState:j}),ie=/* @__PURE__ */c.jsx(Q,{"aria-describedby":W,autoComplete:r,autoFocus:o,defaultValue:s,fullWidth:f,multiline:k,name:C,rows:M,maxRows:x,minRows:S,type:L,value:z,id:B,inputRef:v,onBlur:E,onChange:T,onFocus:R,placeholder:P,inputProps:te,slots:{input:N.htmlInput?ee:void 0},...Y});/* @__PURE__ */
210
+ return c.jsxs(G,{...X,children:[null!=w&&""!==w&&/* @__PURE__ */c.jsx(Z,{htmlFor:B,id:H,...J,children:w}),O?/* @__PURE__ */c.jsx(oe,{"aria-describedby":W,id:B,labelId:H,value:z,input:ie,...ae,children:a}):ie,h&&/* @__PURE__ */c.jsx(ne,{id:W,...re,children:h})]})});class kh extends m.Component{state={hasError:!1,error:null,errorInfo:null,showDetails:!1,errorId:void 0};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const n=this.generateErrorId();this.setState({errorInfo:t,errorId:n}),this.logErrorToService(e,t,n)}componentDidUpdate(e){if(this.state.hasError&&this.props.resetKeys&&e.resetKeys){this.props.resetKeys.some((t,n)=>t!==e.resetKeys[n])&&this.reset()}}reset(){this.setState({hasError:!1,error:null,errorInfo:null,showDetails:!1,errorId:void 0})}generateErrorId(){return"ERR-"+Date.now().toString(36)+"-"+Math.random().toString(36).slice(2,8)}logErrorToService(e,t,n){console.error("[ErrorBoundary] Captured error",{errorId:n,error:e,info:t})}handleReload=()=>{window.location.reload()};handleToggleDetails=()=>{this.setState(e=>({showDetails:!e.showDetails}))};render(){if(!this.state.hasError)return this.props.children;const{error:e,errorInfo:t,showDetails:n,errorId:r}=this.state;/* @__PURE__ */
211
+ return rt(_u,{sx:{p:3,maxWidth:1200,mx:"auto"},children:/* @__PURE__ */rt(Vu,{children:/* @__PURE__ */ot(Xu,{children:[
212
+ /* @__PURE__ */ot(bs,{severity:"error",sx:{mb:2},children:[
213
+ /* @__PURE__ */rt(Rs,{children:"Unexpected error"}),
214
+ /* @__PURE__ */rt(Cs,{variant:"body2",sx:{mb:1},children:"The application couldn't load this view."}),
215
+ /* @__PURE__ */rt(Cs,{variant:"body2",sx:{mb:1},children:"Please try the following (in this order):"}),
216
+ /* @__PURE__ */ot(_u,{component:"ol",sx:{mt:1,mb:1,pl:2.5},children:[
217
+ /* @__PURE__ */rt("li",{children:"Wait a few seconds and try again."}),
218
+ /* @__PURE__ */rt("li",{children:'Click "Reload".'}),
219
+ /* @__PURE__ */rt("li",{children:"If this happens again, contact support and include the error ID."})]}),r&&/* @__PURE__ */ot(Cs,{variant:"body2",sx:{mt:1},children:[
220
+ /* @__PURE__ */rt("strong",{children:"Error ID:"})," ",r]})]}),
221
+ /* @__PURE__ */ot(Gf,{direction:"row",spacing:2,sx:{mb:2},children:[
222
+ /* @__PURE__ */rt(Hu,{onClick:this.handleReload,variant:"contained",color:"primary",children:"Reload"}),
223
+ /* @__PURE__ */rt(Hu,{onClick:this.handleToggleDetails,variant:"outlined",children:n?"Hide details":"Show details"})]}),n&&/* @__PURE__ */ot(_u,{sx:{mt:2},children:[
224
+ /* @__PURE__ */rt(Cs,{variant:"h6",sx:{mb:1},children:"Error information"}),
225
+ /* @__PURE__ */ot(_u,{component:"pre",sx:{whiteSpace:"pre-wrap",backgroundColor:"#f6f6f7",p:1.5,borderRadius:1,maxHeight:300,overflow:"auto",fontSize:12,fontFamily:"monospace"},children:[e?.toString(),"\\n\\n",t?.componentStack]})]})]})})})}}function Ch(e,t){return function(){return e.apply(t,arguments)}}const{toString:Eh}=Object.prototype,{getPrototypeOf:Th}=Object,{iterator:Rh,toStringTag:Ph}=Symbol,Ah=/* @__PURE__ */(e=>t=>{const n=Eh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(/* @__PURE__ */Object.create(null)),Mh=e=>(e=e.toLowerCase(),t=>Ah(t)===e),Oh=e=>t=>typeof t===e,{isArray:_h}=Array,Nh=Oh("undefined");function Ih(e){return null!==e&&!Nh(e)&&null!==e.constructor&&!Nh(e.constructor)&&$h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lh=Mh("ArrayBuffer");const zh=Oh("string"),$h=Oh("function"),Dh=Oh("number"),jh=e=>null!==e&&"object"==typeof e,Fh=e=>{if("object"!==Ah(e))return!1;const t=Th(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ph in e||Rh in e)},Bh=Mh("Date"),Wh=Mh("File"),Hh=Mh("Blob"),Uh=Mh("FileList"),qh=Mh("URLSearchParams"),[Vh,Kh,Gh,Xh]=["ReadableStream","Request","Response","Headers"].map(Mh);function Qh(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),_h(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ih(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Yh(e,t){if(Ih(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Zh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Jh=e=>!Nh(e)&&e!==Zh;const em=/* @__PURE__ */(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Th(Uint8Array)),tm=Mh("HTMLFormElement"),nm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rm=Mh("RegExp"),om=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qh(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const am=Mh("AsyncFunction"),im=(lm="function"==typeof setImmediate,sm=$h(Zh.postMessage),lm?setImmediate:sm?(cm=`axios@${Math.random()}`,um=[],Zh.addEventListener("message",({source:e,data:t})=>{e===Zh&&t===cm&&um.length&&um.shift()()},!1),e=>{um.push(e),Zh.postMessage(cm,"*")}):e=>setTimeout(e));var lm,sm,cm,um;const dm="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Zh):"undefined"!=typeof process&&process.nextTick||im,pm={isArray:_h,isArrayBuffer:Lh,isBuffer:Ih,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||$h(e.append)&&("formdata"===(t=Ah(e))||"object"===t&&$h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Lh(e.buffer),t},isString:zh,isNumber:Dh,isBoolean:e=>!0===e||!1===e,isObject:jh,isPlainObject:Fh,isEmptyObject:e=>{if(!jh(e)||Ih(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Vh,isRequest:Kh,isResponse:Gh,isHeaders:Xh,isUndefined:Nh,isDate:Bh,isFile:Wh,isBlob:Hh,isRegExp:rm,isFunction:$h,isStream:e=>jh(e)&&$h(e.pipe),isURLSearchParams:qh,isTypedArray:em,isFileList:Uh,forEach:Qh,merge:function e(){const{caseless:t,skipUndefined:n}=Jh(this)&&this||{},r={},o=(o,a)=>{const i=t&&Yh(r,a)||a;Fh(r[i])&&Fh(o)?r[i]=e(r[i],o):Fh(o)?r[i]=e({},o):_h(o)?r[i]=o.slice():n&&Nh(o)||(r[i]=o)};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&Qh(arguments[a],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Qh(t,(t,r)=>{n&&$h(t)?e[r]=Ch(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==n&&Th(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ah,kindOfTest:Mh,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(_h(e))return e;let t=e.length;if(!Dh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Rh]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:tm,hasOwnProperty:nm,hasOwnProp:nm,reduceDescriptors:om,freezeMethods:e=>{om(e,(t,n)=>{if($h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];$h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return _h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Yh,global:Zh,isContextDefined:Jh,isSpecCompliantForm:function(e){return!!(e&&$h(e.append)&&"FormData"===e[Ph]&&e[Rh])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(jh(e)){if(t.indexOf(e)>=0)return;if(Ih(e))return e;if(!("toJSON"in e)){t[r]=e;const o=_h(e)?[]:{};return Qh(e,(e,t)=>{const a=n(e,r+1);!Nh(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:am,isThenable:e=>e&&(jh(e)||$h(e))&&$h(e.then)&&$h(e.catch),setImmediate:im,asap:dm,isIterable:e=>null!=e&&$h(e[Rh])};function fm(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}pm.inherits(fm,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:pm.toJSONObject(this.config),code:this.code,status:this.status}}});const hm=fm.prototype,mm={};["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=>{mm[e]={value:e}}),Object.defineProperties(fm,mm),Object.defineProperty(hm,"isAxiosError",{value:!0}),fm.from=(e,t,n,r,o,a)=>{const i=Object.create(hm);pm.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const l=e&&e.message?e.message:"Error",s=null==t&&e?e.code:t;return fm.call(i,l,s,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function gm(e){return pm.isPlainObject(e)||pm.isArray(e)}function ym(e){return pm.endsWith(e,"[]")?e.slice(0,-2):e}function bm(e,t,n){return e?e.concat(t).map(function(e,t){return e=ym(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const vm=pm.toFlatObject(pm,{},null,function(e){return/^is[A-Z]/.test(e)});function wm(e,t,n){if(!pm.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=pm.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!pm.isUndefined(t[e])})).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&pm.isSpecCompliantForm(t);if(!pm.isFunction(o))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(pm.isDate(e))return e.toISOString();if(pm.isBoolean(e))return e.toString();if(!l&&pm.isBlob(e))throw new fm("Blob is not supported. Use a Buffer instead.");return pm.isArrayBuffer(e)||pm.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(pm.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(pm.isArray(e)&&function(e){return pm.isArray(e)&&!e.some(gm)}(e)||(pm.isFileList(e)||pm.endsWith(n,"[]"))&&(l=pm.toArray(e)))return n=ym(n),l.forEach(function(e,r){!pm.isUndefined(e)&&null!==e&&t.append(!0===i?bm([n],r,a):null===i?n:n+"[]",s(e))}),!1;return!!gm(e)||(t.append(bm(o,n,a),s(e)),!1)}const u=[],d=Object.assign(vm,{defaultVisitor:c,convertValue:s,isVisitable:gm});if(!pm.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!pm.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),pm.forEach(n,function(n,a){!0===(!(pm.isUndefined(n)||null===n)&&o.call(t,n,pm.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),u.pop()}}(e),t}function xm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Sm(e,t){this._pairs=[],e&&wm(e,this,t)}const km=Sm.prototype;function Cm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Em(e,t,n){if(!t)return e;const r=n&&n.encode||Cm;pm.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):pm.isURLSearchParams(t)?t.toString():new Sm(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}km.append=function(e,t){this._pairs.push([e,t])},km.toString=function(e){const t=e?function(t){return e.call(this,t,xm)}:xm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Tm{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pm.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Rm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pm={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Sm,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Am="undefined"!=typeof window&&"undefined"!=typeof document,Mm="object"==typeof navigator&&navigator||void 0,Om=Am&&(!Mm||["ReactNative","NativeScript","NS"].indexOf(Mm.product)<0),_m="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Nm=Am&&window.location.href||"http://localhost",Im={.../* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,hasBrowserEnv:Am,hasStandardBrowserEnv:Om,hasStandardBrowserWebWorkerEnv:_m,navigator:Mm,origin:Nm},Symbol.toStringTag,{value:"Module"})),...Pm};function Lm(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),l=o>=e.length;if(a=!a&&pm.isArray(r)?r.length:a,l)return pm.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&pm.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&pm.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(pm.isFormData(e)&&pm.isFunction(e.entries)){const n={};return pm.forEachEntry(e,(e,r)=>{t(function(e){return pm.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const zm={transitional:Rm,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=pm.isObject(e);o&&pm.isHTMLForm(e)&&(e=new FormData(e));if(pm.isFormData(e))return r?JSON.stringify(Lm(e)):e;if(pm.isArrayBuffer(e)||pm.isBuffer(e)||pm.isStream(e)||pm.isFile(e)||pm.isBlob(e)||pm.isReadableStream(e))return e;if(pm.isArrayBufferView(e))return e.buffer;if(pm.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return wm(e,new Im.classes.URLSearchParams,{visitor:function(e,t,n,r){return Im.isNode&&pm.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=pm.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return wm(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(pm.isString(e))try{return(t||JSON.parse)(e),pm.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||zm.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(pm.isResponse(e)||pm.isReadableStream(e))return e;if(e&&pm.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw fm.from(o,fm.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Im.classes.FormData,Blob:Im.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pm.forEach(["delete","get","head","post","put","patch"],e=>{zm.headers[e]={}});const $m=pm.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"]),Dm=Symbol("internals");function jm(e){return e&&String(e).trim().toLowerCase()}function Fm(e){return!1===e||null==e?e:pm.isArray(e)?e.map(Fm):String(e)}function Bm(e,t,n,r,o){return pm.isFunction(r)?r.call(this,t,n):(o&&(t=n),pm.isString(t)?pm.isString(r)?-1!==t.indexOf(r):pm.isRegExp(r)?r.test(t):void 0:void 0)}let Wm=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=jm(t);if(!o)throw new Error("header name must be a non-empty string");const a=pm.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Fm(e))}const a=(e,t)=>pm.forEach(e,(e,n)=>o(e,n,t));if(pm.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(pm.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&$m[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(pm.isObject(e)&&pm.isIterable(e)){let n,r,o={};for(const t of e){if(!pm.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?pm.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=jm(e)){const n=pm.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=/* @__PURE__ */Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(pm.isFunction(t))return t.call(this,e,n);if(pm.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jm(e)){const n=pm.findKey(this,e);return!(!n||void 0===this[n]||t&&!Bm(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=jm(e)){const o=pm.findKey(n,e);!o||t&&!Bm(0,n[o],o,t)||(delete n[o],r=!0)}}return pm.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Bm(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return pm.forEach(this,(r,o)=>{const a=pm.findKey(n,o);if(a)return t[a]=Fm(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Fm(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=/* @__PURE__ */Object.create(null);return pm.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&pm.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Dm]=this[Dm]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=jm(e);t[r]||(!function(e,t){const n=pm.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return pm.isArray(e)?e.forEach(r):r(e),this}};function Hm(e,t){const n=this||zm,r=t||n,o=Wm.from(r.headers);let a=r.data;return pm.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Um(e){return!(!e||!e.__CANCEL__)}function qm(e,t,n){fm.call(this,null==e?"canceled":e,fm.ERR_CANCELED,t,n),this.name="CanceledError"}function Vm(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fm("Request failed with status code "+n.status,[fm.ERR_BAD_REQUEST,fm.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Wm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pm.reduceDescriptors(Wm.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),pm.freezeMethods(Wm),pm.inherits(qm,fm,{__CANCEL__:!0});const Km=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[i];o||(o=s),n[a]=l,r[a]=s;let u=i,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-o<t)return;const p=c&&s-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-l)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,l=a-r,s=o(l);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&a<=i?(i-a)/s:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Gm=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xm=e=>(...t)=>pm.asap(()=>e(...t)),Qm=Im.hasStandardBrowserEnv?/* @__PURE__ */((e,t)=>n=>(n=new URL(n,Im.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Im.origin),Im.navigator&&/(msie|trident)/i.test(Im.navigator.userAgent)):()=>!0,Ym=Im.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const l=[`${e}=${encodeURIComponent(t)}`];pm.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),pm.isString(r)&&l.push(`path=${r}`),pm.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),pm.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Zm(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Jm=e=>e instanceof Wm?{...e}:e;function eg(e,t){t=t||{};const n={};function r(e,t,n,r){return pm.isPlainObject(e)&&pm.isPlainObject(t)?pm.merge.call({caseless:r},e,t):pm.isPlainObject(t)?pm.merge({},t):pm.isArray(t)?t.slice():t}function o(e,t,n,o){return pm.isUndefined(t)?pm.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!pm.isUndefined(t))return r(void 0,t)}function i(e,t){return pm.isUndefined(t)?pm.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t,n)=>o(Jm(e),Jm(t),0,!0)};return pm.forEach(Object.keys({...e,...t}),function(r){const a=s[r]||o,i=a(e[r],t[r],r);pm.isUndefined(i)&&a!==l||(n[r]=i)}),n}const tg=e=>{const t=eg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=Wm.from(i),t.url=Em(Zm(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),pm.isFormData(n))if(Im.hasStandardBrowserEnv||Im.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(pm.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(Im.hasStandardBrowserEnv&&(r&&pm.isFunction(r)&&(r=r(t)),r||!1!==r&&Qm(t.url))){const e=o&&a&&Ym.read(a);e&&i.set(o,e)}return t},ng="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=tg(e);let o=r.data;const a=Wm.from(r.headers).normalize();let i,l,s,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Wm.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Vm(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new fm("Request aborted",fm.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new fm(t&&t.message?t.message:"Network Error",fm.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Rm;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new fm(t,o.clarifyTimeoutError?fm.ETIMEDOUT:fm.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&pm.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),pm.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([s,u]=Km(f,!0),m.addEventListener("progress",s)),p&&m.upload&&([l,c]=Km(p),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new qm(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Im.protocols.indexOf(y)?n(new fm("Unsupported protocol "+y+":",fm.ERR_BAD_REQUEST,e)):m.send(o||null)})},rg=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof fm?t:new qm(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new fm(`timeout ${t} of ms exceeded`,fm.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>pm.asap(i),l}},og=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ag=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ig=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ag(e))yield*og(n,t)}(e,t);let a,i=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},{isFunction:lg}=pm,sg=(({Request:e,Response:t})=>({Request:e,Response:t}))(pm.global),{ReadableStream:cg,TextEncoder:ug}=pm.global,dg=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},pg=e=>{e=pm.merge.call({skipUndefined:!0},sg,e);const{fetch:t,Request:n,Response:r}=e,o=t?lg(t):"function"==typeof fetch,a=lg(n),i=lg(r);if(!o)return!1;const l=o&&lg(cg),s=o&&("function"==typeof ug?/* @__PURE__ */(e=>t=>e.encode(t))(new ug):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&l&&dg(()=>{let e=!1;const t=new n(Im.origin,{body:new cg,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=i&&l&&dg(()=>pm.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new fm(`Response type '${e}' is not supported`,fm.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=pm.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(pm.isBlob(e))return e.size;if(pm.isSpecCompliantForm(e)){const t=new n(Im.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return pm.isArrayBufferView(e)||pm.isArrayBuffer(e)?e.byteLength:(pm.isURLSearchParams(e)&&(e+=""),pm.isString(e)?(await s(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:l,signal:s,cancelToken:f,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=tg(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let S=rg([s,f&&f.toAbortSignal()],h),k=null;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let E;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(E=await p(b,l))){let e,t=new n(o,{method:"POST",body:l,duplex:"half"});if(pm.isFormData(l)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Gm(E,Km(Xm(g)));l=ig(t.body,65536,e,n)}}pm.isString(v)||(v=v?"include":"omit");const t=a&&"credentials"in n.prototype,s={...w,signal:S,method:i.toUpperCase(),headers:b.normalize().toJSON(),body:l,duplex:"half",credentials:t?v:void 0};k=a&&new n(o,s);let f=await(a?x(k,w):x(o,s));const h=u&&("stream"===y||"response"===y);if(u&&(m||h&&C)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=pm.toFiniteNumber(f.headers.get("content-length")),[n,o]=m&&Gm(t,Km(Xm(m),!0))||[];f=new r(ig(f.body,65536,n,()=>{o&&o(),C&&C()}),e)}y=y||"text";let T=await d[pm.findKey(d,y)||"text"](f,e);return!h&&C&&C(),await new Promise((t,n)=>{Vm(t,n,{data:T,headers:Wm.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:k})})}catch(T){if(C&&C(),T&&"TypeError"===T.name&&/Load failed|fetch/i.test(T.message))throw Object.assign(new fm("Network Error",fm.ERR_NETWORK,e,k),{cause:T.cause||T});throw fm.from(T,T&&T.code,e,k)}}},fg=/* @__PURE__ */new Map,hg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,l,s=a.length,c=fg;for(;s--;)i=a[s],l=c.get(i),void 0===l&&c.set(i,l=s?/* @__PURE__ */new Map:pg(t)),c=l;return l};hg();const mg={http:null,xhr:ng,fetch:{get:hg}};pm.forEach(mg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const gg=e=>`- ${e}`,yg=e=>pm.isFunction(e)||null===e||!1===e;const bg={getAdapter:function(e,t){e=pm.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!yg(r)&&(o=mg[(n=String(r)).toLowerCase()],void 0===o))throw new fm(`Unknown adapter '${n}'`);if(o&&(pm.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new fm("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(gg).join("\n"):" "+gg(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:mg};function vg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qm(null,e)}function wg(e){vg(e),e.headers=Wm.from(e.headers),e.data=Hm.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return bg.getAdapter(e.adapter||zm.adapter,e)(e).then(function(t){return vg(e),t.data=Hm.call(e,e.transformResponse,t),t.headers=Wm.from(t.headers),t},function(t){return Um(t)||(vg(e),t&&t.response&&(t.response.data=Hm.call(e,e.transformResponse,t.response),t.response.headers=Wm.from(t.response.headers))),Promise.reject(t)})}const xg="1.13.2",Sg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sg[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const kg={};Sg.transitional=function(e,t,n){function r(e,t){return"[Axios v"+xg+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new fm(r(o," has been removed"+(t?" in "+t:"")),fm.ERR_DEPRECATED);return t&&!kg[o]&&(kg[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},Sg.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Cg={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fm("options must be an object",fm.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new fm("option "+a+" must be "+n,fm.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new fm("Unknown option "+a,fm.ERR_BAD_OPTION)}},validators:Sg},Eg=Cg.validators;let Tg=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Tm,response:new Tm}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eg(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Cg.assertOptions(n,{silentJSONParsing:Eg.transitional(Eg.boolean),forcedJSONParsing:Eg.transitional(Eg.boolean),clarifyTimeoutError:Eg.transitional(Eg.boolean)},!1),null!=r&&(pm.isFunction(r)?t.paramsSerializer={serialize:r}:Cg.assertOptions(r,{encode:Eg.function,serialize:Eg.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Cg.assertOptions(t,{baseUrl:Eg.spelling("baseURL"),withXsrfToken:Eg.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&pm.merge(o.common,o[t.method]);o&&pm.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Wm.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const s=[];let c;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let u,d=0;if(!l){const e=[wg.bind(this),void 0];for(e.unshift(...i),e.push(...s),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let p=t;for(;d<u;){const e=i[d++],t=i[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=wg.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=s.length;d<u;)c=c.then(s[d++],s[d++]);return c}getUri(e){return Em(Zm((e=eg(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};pm.forEach(["delete","get","head","options"],function(e){Tg.prototype[e]=function(t,n){return this.request(eg(n||{},{method:e,url:t,data:(n||{}).data}))}}),pm.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(eg(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Tg.prototype[e]=t(),Tg.prototype[e+"Form"]=t(!0)});const Rg={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rg).forEach(([e,t])=>{Rg[t]=e});const Pg=function e(t){const n=new Tg(t),r=Ch(Tg.prototype.request,n);return pm.extend(r,Tg.prototype,n,{allOwnKeys:!0}),pm.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eg(t,n))},r}(zm);Pg.Axios=Tg,Pg.CanceledError=qm,Pg.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new qm(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Pg.isCancel=Um,Pg.VERSION=xg,Pg.toFormData=wm,Pg.AxiosError=fm,Pg.Cancel=Pg.CanceledError,Pg.all=function(e){return Promise.all(e)},Pg.spread=function(e){return function(t){return e.apply(null,t)}},Pg.isAxiosError=function(e){return pm.isObject(e)&&!0===e.isAxiosError},Pg.mergeConfig=eg,Pg.AxiosHeaders=Wm,Pg.formToJSON=e=>Lm(pm.isHTMLForm(e)?new FormData(e):e),Pg.getAdapter=bg.getAdapter,Pg.HttpStatusCode=Rg,Pg.default=Pg;const{Axios:Ag,AxiosError:Mg,CanceledError:Og,isCancel:_g,CancelToken:Ng,VERSION:Ig,all:Lg,Cancel:zg,isAxiosError:$g,spread:Dg,toFormData:jg,AxiosHeaders:Fg,HttpStatusCode:Bg,formToJSON:Wg,getAdapter:Hg,mergeConfig:Ug}=Pg,qg=yi(/* @__PURE__ */c.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),Vg=yi(/* @__PURE__ */c.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),Kg=yi(/* @__PURE__ */c.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"})),Gg=yi(/* @__PURE__ */c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Xg=yi(/* @__PURE__ */c.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Qg=yi(/* @__PURE__ */c.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Yg=yi(/* @__PURE__ */c.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),Zg=yi(/* @__PURE__ */c.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),Jg=yi(/* @__PURE__ */c.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),ey=yi(/* @__PURE__ */c.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"})),ty=yi(/* @__PURE__ */c.jsx("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z"})),ny=yi(/* @__PURE__ */c.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}));var ry,oy={exports:{}};const ay=/* @__PURE__ */n((ry||(ry=1,function(e,n){var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",l="[object Boolean]",s="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",h="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,C=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,R=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[a]=A[i]=A[w]=A[l]=A[x]=A[s]=A[c]=A[u]=A[d]=A[p]=A[f]=A[m]=A[g]=A[y]=A[v]=!1;var M="object"==typeof t&&t&&t.Object===Object&&t,O="object"==typeof self&&self&&self.Object===Object&&self,_=M||O||Function("return this")(),N=n&&!n.nodeType&&n,I=N&&e&&!e.nodeType&&e,L=I&&I.exports===N&&M.process,z=function(){try{return L&&L.binding("util")}catch(e){}}(),$=z&&z.isTypedArray;function D(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function j(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function F(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function B(e){return function(t){return e(t)}}function W(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function U(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var q,V,K,G=Array.prototype,X=Function.prototype,Q=Object.prototype,Y=_["__core-js_shared__"],Z=(q=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",J=X.toString,ee=Q.hasOwnProperty,te=Q.toString,ne=RegExp("^"+J.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=_.Symbol,oe=_.Uint8Array,ae=Q.propertyIsEnumerable,ie=G.splice,le=re?re.isConcatSpreadable:void 0,se=(V=Object.keys,K=Object,function(e){return V(K(e))}),ce=Math.max,ue=qe(_,"DataView"),de=qe(_,"Map"),pe=qe(_,"Promise"),fe=qe(_,"Set"),he=qe(_,"WeakMap"),me=qe(Object,"create"),ge=tt(ue),ye=tt(de),be=tt(pe),ve=tt(fe),we=tt(he),xe=re?re.prototype:void 0,Se=xe?xe.valueOf:void 0,ke=xe?xe.toString:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){var t=-1,n=e?e.length:0;for(this.__data__=new Te;++t<n;)this.add(e[t])}function Pe(e){this.__data__=new Ee(e)}function Ae(e,t){var n=it(e)||at(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!ee.call(e,a)||o&&("length"==a||Ge(a,r))||n.push(a);return n}function Me(e,t){for(var n=e.length;n--;)if(ot(e[n][0],t))return n;return-1}Ce.prototype.clear=function(){this.__data__=me?me(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?r:t,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0||(n==t.length-1?t.pop():ie.call(t,n,1),0))},Ee.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Me(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ce,map:new(de||Ee),string:new Ce}},Te.prototype.delete=function(e){return Ue(this,e).delete(e)},Te.prototype.get=function(e){return Ue(this,e).get(e)},Te.prototype.has=function(e){return Ue(this,e).has(e)},Te.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},Re.prototype.add=Re.prototype.push=function(e){return this.__data__.set(e,r),this},Re.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Te(r)}return n.set(e,t),this};var Oe,_e=(Oe=function(e,t){return e&&Ne(e,t,ht)},function(e,t){if(null==e)return e;if(!lt(e))return Oe(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Ne=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var l=a[++r];if(!1===t(o[l],l,o))break}return e};function Ie(e,t){for(var n=0,r=(t=Qe(t,e)?[t]:Be(t)).length;null!=e&&n<r;)e=e[et(t[n++])];return n&&n==r?e:void 0}function Le(e,t){return null!=e&&t in Object(e)}function ze(e,t,n,r,o){return e===t||(null==e||null==t||!ut(e)&&!dt(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var h=it(e),v=it(t),S=i,k=i;h||(S=(S=Ve(e))==a?f:S),v||(k=(k=Ve(t))==a?f:k);var C=S==f&&!W(e),E=k==f&&!W(t),T=S==k;if(T&&!C)return u||(u=new Pe),h||ft(e)?He(e,t,n,r,o,u):function(e,t,n,r,o,a,i){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new oe(e),new oe(t)));case l:case s:case p:return ot(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case d:var u=H;case g:var f=2&a;if(u||(u=U),e.size!=t.size&&!f)return!1;var h=i.get(e);if(h)return h==t;a|=1,i.set(e,t);var v=He(u(e),u(t),r,o,a,i);return i.delete(e),v;case b:if(Se)return Se.call(e)==Se.call(t)}return!1}(e,t,S,n,r,o,u);if(!(2&o)){var R=C&&ee.call(e,"__wrapped__"),P=E&&ee.call(t,"__wrapped__");if(R||P){var A=R?e.value():e,M=P?t.value():t;return u||(u=new Pe),n(A,M,r,o,u)}}return!!T&&(u||(u=new Pe),function(e,t,n,r,o,a){var i=2&o,l=ht(e),s=l.length,c=ht(t),u=c.length;if(s!=u&&!i)return!1;for(var d=s;d--;){var p=l[d];if(!(i?p in t:ee.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var h=!0;a.set(e,t),a.set(t,e);for(var m=i;++d<s;){var g=e[p=l[d]],y=t[p];if(r)var b=i?r(y,g,p,t,e,a):r(g,y,p,e,t,a);if(!(void 0===b?g===y||n(g,y,r,o,a):b)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,u))}(e,t,ze,n,r,o))}function $e(e){return!(!ut(e)||function(e){return!!Z&&Z in e}(e))&&(st(e)||W(e)?ne:R).test(tt(e))}function De(e){return"function"==typeof e?e:null==e?mt:"object"==typeof e?it(e)?function(e,t){return Qe(e)&&Ye(t)?Ze(et(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Ie(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Qe(t,e)?[t]:Be(t);for(var r,o=-1,a=t.length;++o<a;){var i=et(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(a=e?e.length:0)&&ct(a)&&Ge(i,a)&&(it(e)||at(e))}(e,t,Le)}(n,e):ze(t,r,void 0,3)}}(e[0],e[1]):(n=function(e){for(var t=ht(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ye(o)]}return t}(t=e),1==n.length&&n[0][2]?Ze(n[0][0],n[0][1]):function(e){return e===t||function(e,t,n,r){var o=n.length,a=o;if(null==e)return!a;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var l=(i=n[o])[0],s=e[l],c=i[1];if(i[2]){if(void 0===s&&!(l in e))return!1}else if(!ze(c,s,r,3,new Pe))return!1}return!0}(e,0,n)}):Qe(r=e)?(o=et(r),function(e){return null==e?void 0:e[o]}):function(e){return function(t){return Ie(t,e)}}(r);var t,n,r,o}function je(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Q,t!==r)return se(e);var t,n,r,o=[];for(var a in Object(e))ee.call(e,a)&&"constructor"!=a&&o.push(a);return o}function Fe(e,t,n){var r=-1;t=D(t.length?t:[mt],B(De));var o=function(e,t){var n=-1,r=lt(e)?Array(e.length):[];return _e(e,function(e,o,a){r[++n]=t(e,o,a)}),r}(e,function(e,n,o){return{criteria:D(t,function(t){return t(e)}),index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,i=o.length,l=n.length;++r<i;){var s=We(o[r],a[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Be(e){return it(e)?e:Je(e)}function We(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,a=pt(e),i=void 0!==t,l=null===t,s=t==t,c=pt(t);if(!l&&!c&&!a&&e>t||a&&i&&s&&!l&&!c||r&&i&&s||!n&&s||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!i&&o||!s)return-1}return 0}function He(e,t,n,r,o,a){var i=2&o,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,p=1&o?new Re:void 0;for(a.set(e,t),a.set(t,e);++u<l;){var f=e[u],h=t[u];if(r)var m=i?r(h,f,u,t,e,a):r(f,h,u,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!F(t,function(e,t){if(!p.has(t)&&(f===e||n(f,e,r,o,a)))return p.add(t)})){d=!1;break}}else if(f!==h&&!n(f,h,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Ue(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function qe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return $e(n)?n:void 0}var Ve=function(e){return te.call(e)};function Ke(e){return it(e)||at(e)||!!(le&&e&&e[le])}function Ge(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t,n){if(!ut(n))return!1;var r=typeof t;return!!("number"==r?lt(n)&&Ge(t,n.length):"string"==r&&t in n)&&ot(n[t],e)}function Qe(e,t){if(it(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!pt(e))||k.test(e)||!S.test(e)||null!=t&&e in Object(t)}function Ye(e){return e==e&&!ut(e)}function Ze(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(ue&&Ve(new ue(new ArrayBuffer(1)))!=x||de&&Ve(new de)!=d||pe&&Ve(pe.resolve())!=h||fe&&Ve(new fe)!=g||he&&Ve(new he)!=v)&&(Ve=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?tt(n):void 0;if(r)switch(r){case ge:return x;case ye:return d;case be:return h;case ve:return g;case we:return v}return t});var Je=rt(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(pt(e))return ke?ke.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return C.test(e)&&n.push(""),e.replace(E,function(e,t,r,o){n.push(r?o.replace(T,"$1"):t||e)}),n});function et(e){if("string"==typeof e||pt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function tt(e){if(null!=e){try{return J.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nt=function(e,t){return t=ce(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=ce(n.length-t,0),a=Array(o);++r<o;)a[r]=n[t+r];r=-1;for(var i=Array(t+1);++r<t;)i[r]=n[r];return i[t]=a,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,i)}}(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xe(e,t[0],t[1])?t=[]:n>2&&Xe(t[0],t[1],t[2])&&(t=[t[0]]),Fe(e,function(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=Ke),o||(o=[]);++a<i;){var l=e[a];n(l)?j(o,l):o[o.length]=l}return o}(t),[])});function rt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(rt.Cache||Te),n}function ot(e,t){return e===t||e!=e&&t!=t}function at(e){return function(e){return dt(e)&&lt(e)}(e)&&ee.call(e,"callee")&&(!ae.call(e,"callee")||te.call(e)==a)}rt.Cache=Te;var it=Array.isArray;function lt(e){return null!=e&&ct(e.length)&&!st(e)}function st(e){var t=ut(e)?te.call(e):"";return t==u||"[object GeneratorFunction]"==t}function ct(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ut(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function dt(e){return!!e&&"object"==typeof e}function pt(e){return"symbol"==typeof e||dt(e)&&te.call(e)==b}var ft=$?B($):function(e){return dt(e)&&ct(e.length)&&!!A[te.call(e)]};function ht(e){return lt(e)?Ae(e):je(e)}function mt(e){return e}e.exports=nt}(oy,oy.exports)),oy.exports)),iy=({overlayInfo:e,...t})=>/* @__PURE__ */rt(qd,{...t,sx:{position:"fixed",bottom:e.present?e.contentOffset.bottom+30+"px":35,right:0,zIndex:1400,background:"linear-gradient(135deg, #1f2937 0%, #475260 100%)",color:"white",width:48,height:48,borderRadius:"5px 0 0 5px",boxShadow:"0 8px 24px rgba(31, 41, 55, 0.4)","&:hover":{background:"linear-gradient(135deg, #2c4870 0%, #4e6c91 100%)",transform:"translateY(-2px)",boxShadow:"0 8px 24px rgba(44, 72, 112, 0.4)"},transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}}),ly=Ka(Bd,{shouldForwardProp:e=>"overlayInfo"!==e})(({overlayInfo:e})=>{const{present:t,position:n,contentOffset:r}=e,o={};if(t)switch(n){case"top":Object.assign(o,{marginTop:r.top,height:`calc(100vh - ${r.top}px)`});break;case"bottom":Object.assign(o,{marginBottom:r.bottom,height:`calc(100vh - ${r.bottom}px)`});break;case"left":Object.assign(o,{marginLeft:r.left});break;case"right":Object.assign(o,{marginRight:r.right})}return{"& .MuiModal-backdrop":{display:"block"},"& .MuiDrawer-paper":{width:"730px",height:"100vh",borderRadius:"0",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.12)",background:"#f8f9fa",zIndex:1300,display:"flex",flexDirection:"column",...o}}}),sy=Ka(_u)(({theme:e})=>({padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center",minHeight:40,color:e.palette.common.black,borderBottom:`1px solid ${e.palette.divider}`})),cy=Ka(_u)(({theme:e})=>({flex:1,overflow:"auto",paddingTop:e.spacing(2),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),paddingBottom:0,borderLeft:`1px solid ${e.palette.divider}`,"&::-webkit-scrollbar":{width:8},"&::-webkit-scrollbar-track":{background:e.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:e.palette.grey[400],borderRadius:4,"&:hover":{background:e.palette.grey[500]}}})),uy=({children:e})=>/* @__PURE__ */rt(_u,{sx:{position:"relative",padding:e=>e.spacing(2),borderTop:e=>`1px solid ${e.palette.divider}`,background:"white",display:"flex",justifyContent:"center",zIndex:10},children:e}),dy=Ka(Vu)(({theme:e})=>({borderRadius:10,padding:e.spacing(3),marginBottom:e.spacing(2),boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",background:"white"})),py=Ka(Vu)(({theme:e})=>({borderRadius:12,padding:e.spacing(1),paddingTop:e.spacing(4),marginBottom:e.spacing(1),boxShadow:"none",background:"white"})),fy=Ka(Vu)(({theme:e})=>({borderRadius:10,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:"10px",paddingBottom:"10px",marginBottom:e.spacing(2),boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",background:"white"})),hy=({expanded:e})=>/* @__PURE__ */ot(_u,{children:[
226
+ /* @__PURE__ */ot(dy,{children:[
227
+ /* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3,children:/* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",gap:1,children:/* @__PURE__ */rt($f,{variant:"text",width:180,height:30})})}),
228
+ /* @__PURE__ */ot(_u,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[
229
+ /* @__PURE__ */rt(_u,{position:"relative",display:"inline-flex",mr:4,children:/* @__PURE__ */rt($f,{variant:"circular",width:140,height:140})}),
230
+ /* @__PURE__ */ot(_u,{display:"flex",flexDirection:"column",gap:2,flex:0,children:[
231
+ /* @__PURE__ */ot(_u,{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",children:[
232
+ /* @__PURE__ */rt($f,{variant:"text",width:80,height:28}),
233
+ /* @__PURE__ */rt($f,{variant:"text",width:60,height:14})]}),
234
+ /* @__PURE__ */rt($f,{variant:"rectangular",width:"100%",height:2}),
235
+ /* @__PURE__ */ot(_u,{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",children:[
236
+ /* @__PURE__ */rt($f,{variant:"text",width:80,height:28}),
237
+ /* @__PURE__ */rt($f,{variant:"text",width:60,height:14})]})]}),
238
+ /* @__PURE__ */rt($f,{variant:"rectangular",width:220,height:50,sx:{ml:5}})]})]}),
239
+ /* @__PURE__ */ot(vl,{defaultExpanded:!0,expanded:e,sx:{borderRadius:2,mb:2,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)","&:before":{display:"none"}},children:[
240
+ /* @__PURE__ */rt(Wl,{expandIcon:/* @__PURE__ */rt(Gg,{}),sx:{px:3},children:/* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",gap:1,height:72,children:/* @__PURE__ */rt($f,{variant:"text",width:160,height:28})})}),
241
+ /* @__PURE__ */rt(Sl,{sx:{px:3,pb:3},children:/* @__PURE__ */rt(py,{children:/* @__PURE__ */rt(_u,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"space-around",children:[1,2,3,4,5,6].map(e=>/* @__PURE__ */ot(_u,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,width:"180px",children:[
242
+ /* @__PURE__ */rt(_u,{position:"relative",display:"inline-flex",children:/* @__PURE__ */rt($f,{variant:"circular",width:100,height:100})}),
243
+ /* @__PURE__ */ot(_u,{textAlign:"center",width:"100%",children:[
244
+ /* @__PURE__ */rt($f,{variant:"text",width:120,height:20,sx:{mx:"auto",mb:.5}}),
245
+ /* @__PURE__ */rt($f,{variant:"text",width:100,height:16,sx:{mx:"auto"}})]})]},e))})})})]}),
246
+ /* @__PURE__ */rt(Cs,{variant:"h4",fontWeight:600,gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:4},children:/* @__PURE__ */rt($f,{variant:"text",width:280,height:36})}),
247
+ /* @__PURE__ */rt(_u,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:/* @__PURE__ */ot(Vu,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[
248
+ /* @__PURE__ */ot(_u,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[
249
+ /* @__PURE__ */rt($f,{variant:"text",width:240,height:20}),
250
+ /* @__PURE__ */rt($f,{variant:"text",width:80,height:28})]}),
251
+ /* @__PURE__ */rt(_u,{display:"flex",gap:1,flexWrap:"nowrap",sx:{overflowY:"scroll",pb:2.5,pt:1},children:[1,2,3,4].map(e=>/* @__PURE__ */rt($f,{variant:"rounded",width:140,height:32,sx:{borderRadius:4,flexShrink:0}},e))})]})}),
252
+ /* @__PURE__ */rt(_u,{sx:{minHeight:"calc(100vh - 320px)"},children:/* @__PURE__ */rt(fy,{children:/* @__PURE__ */rt(Rp,{sx:{p:0},children:[1,2,3].map(e=>/* @__PURE__ */rt(Lp,{sx:{px:0,py:1.5,alignItems:"flex-start",borderBottom:e<3?"1px solid":"none",borderColor:"divider"},children:/* @__PURE__ */ot(_u,{mt:.5,width:"100%",children:[
253
+ /* @__PURE__ */rt($f,{variant:"text",width:"70%",height:32,sx:{mb:2.5}}),
254
+ /* @__PURE__ */ot(_u,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[
255
+ /* @__PURE__ */rt($f,{variant:"rounded",width:120,height:32,sx:{borderRadius:4}}),
256
+ /* @__PURE__ */rt($f,{variant:"rounded",width:100,height:32,sx:{borderRadius:4}}),
257
+ /* @__PURE__ */rt($f,{variant:"rounded",width:80,height:32,sx:{borderRadius:4}})]}),
258
+ /* @__PURE__ */ot(_u,{mb:2,children:[
259
+ /* @__PURE__ */rt($f,{variant:"text",width:"100%",height:20}),
260
+ /* @__PURE__ */rt($f,{variant:"text",width:"95%",height:20}),
261
+ /* @__PURE__ */rt($f,{variant:"text",width:"60%",height:20})]}),
262
+ /* @__PURE__ */ot(_u,{display:"flex",gap:1,children:[
263
+ /* @__PURE__ */rt($f,{variant:"rounded",width:140,height:32,sx:{borderRadius:2}}),
264
+ /* @__PURE__ */rt($f,{variant:"rounded",width:120,height:32,sx:{borderRadius:2}})]})]})},e))})})})]}),my=({html:e,currentHighlight:t,onHighlightsFound:n,onVisibleHighlightChange:r,clickedIndicator:o,scriptsDisabled:a=!0})=>{const i=m.useRef(null),l=m.useRef(!1);return m.useEffect(()=>{if(!i.current)return;const t=i.current,o=t.contentDocument||t.contentWindow?.document;if(!o)return void console.warn("[DQM] Could not access iframe document");const a=(new DOMParser).parseFromString(e,"text/html").documentElement;a.getElementsByTagName("body")[0].style.overflow="auto",o.open(),o.write(a.outerHTML),o.close();const s=o.createElement("style");s.textContent="\n .astHighlightFull,\n .astHighlightStart,\n .astHighlightMiddle,\n .astHighlightEnd,\n .astError {\n background-color: rgba(255, 0, 0, 0.2) !important;\n outline: 2px solid #dc3545 !important;\n outline-offset: 2px !important;\n }\n\n .astHighlightFull.animate,\n .astHighlightStart.animate,\n .astHighlightMiddle.animate,\n .astHighlightEnd.animate,\n .astError.animate {\n animation: pulse 0.8s ease-in-out;\n }\n\n @keyframes pulse {\n 0%, 100% {\n background-color: rgba(255, 0, 0, 0.2);\n outline-color: #dc3545;\n }\n 50% {\n background-color: rgba(255, 0, 0, 0.5);\n outline-color: #ff6666;\n }\n }\n ",o.head.appendChild(s);const c=setTimeout(()=>{const e=o.querySelectorAll([".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"].join(", "));if(n&&n(e.length),e.length>0&&r&&t.contentWindow){const n={root:null,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},o=/* @__PURE__ */new Map,a=new(0,t.contentWindow.IntersectionObserver)(t=>{if(!l.current&&(t.forEach(t=>{const n=Array.from(e).indexOf(t.target);t.isIntersecting&&t.intersectionRatio>0?o.set(t.target,n):o.delete(t.target)}),o.size>0)){const e=Array.from(o.entries()).sort((e,t)=>e[1]-t[1])[0][1];r(e+1)}},n);return e.forEach(e=>a.observe(e)),()=>{a.disconnect()}}},100);return()=>{clearTimeout(c)}},[e,n,r]),m.useEffect(()=>{if(!i.current||!t||0===t)return;const e=i.current,n=e.contentDocument||e.contentWindow?.document;if(!n)return;const o=n.querySelectorAll([".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"].join(", "));if(0===o.length)return void console.warn("[DQM] No highlights found in iframe");const a=o[t-1];a?(l.current=!0,a.scrollIntoView({behavior:"smooth",block:"center"}),a.classList.add("animate"),setTimeout(()=>{a.classList.remove("animate")},800),setTimeout(()=>{l.current=!1,r&&r(t)},1e3)):console.warn("[DQM] Target element not found for highlight",t)},[t,r,o]),/* @__PURE__ */rt(nt,{children:/* @__PURE__ */rt("iframe",{ref:i,title:"Browser View",style:{width:"100%",height:"600px",border:"1px solid #e0e0e0",borderRadius:"8px"},sandbox:a?"allow-same-origin allow-popups allow-forms":"allow-same-origin allow-scripts allow-popups allow-forms"})})},gy=({html:e,onHighlightsFound:t,currentHighlight:n,shouldAutoScrollToFirst:r=!1,onVisibleHighlightChange:o,clickedIndicator:a,scrollContainerRef:i})=>{const l=m.useRef(null),s=m.useRef(null),c=m.useRef(!1);return m.useEffect(()=>{if(l.current){if(!s.current)try{s.current=l.current.attachShadow({mode:"open"})}catch(n){return console.warn("[DQM] Could not attach shadow DOM, falling back to regular DOM",n),void(l.current.innerHTML=e)}if(s.current){s.current.innerHTML=e;const n=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],r=s.current.querySelectorAll(n.join(", "));if(t&&t(r.length),r.length>0&&o){const e=i?.current;if(e){const t={root:e,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},n=/* @__PURE__ */new Map,a=new IntersectionObserver(e=>{if(!c.current&&(e.forEach(e=>{const t=Array.from(r).indexOf(e.target);e.isIntersecting&&e.intersectionRatio>0?n.set(e.target,t):n.delete(e.target)}),n.size>0)){const e=Array.from(n.entries()).sort((e,t)=>e[1]-t[1])[0][1];o(e+1)}},t);return r.forEach(e=>a.observe(e)),()=>{a.disconnect()}}}}}},[e,t,r,o,i]),m.useEffect(()=>{if(!s.current||!n||0===n)return;const e=s.current.querySelectorAll([".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"].join(", "));if(0===e.length)return;const t=e[n-1];t&&(c.current=!0,t.scrollIntoView({behavior:"smooth",block:"center"}),t.classList.add("animate"),setTimeout(()=>{t.classList.remove("animate")},800),setTimeout(()=>{c.current=!1,o&&o(n)},1e3))},[n,o,a]),/* @__PURE__ */rt("div",{ref:l,style:{width:"100%",minHeight:"100px"}})},{entries:yy,setPrototypeOf:by,isFrozen:vy,getPrototypeOf:wy,getOwnPropertyDescriptor:xy}=Object;let{freeze:Sy,seal:ky,create:Cy}=Object,{apply:Ey,construct:Ty}="undefined"!=typeof Reflect&&Reflect;Sy||(Sy=function(e){return e}),ky||(ky=function(e){return e}),Ey||(Ey=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),Ty||(Ty=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Ry=Wy(Array.prototype.forEach),Py=Wy(Array.prototype.lastIndexOf),Ay=Wy(Array.prototype.pop),My=Wy(Array.prototype.push),Oy=Wy(Array.prototype.splice),_y=Wy(String.prototype.toLowerCase),Ny=Wy(String.prototype.toString),Iy=Wy(String.prototype.match),Ly=Wy(String.prototype.replace),zy=Wy(String.prototype.indexOf),$y=Wy(String.prototype.trim),Dy=Wy(Object.prototype.hasOwnProperty),jy=Wy(RegExp.prototype.test),Fy=(By=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ty(By,t)});var By;function Wy(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ey(e,t,r)}}function Hy(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_y;by&&by(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(vy(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Uy(e){for(let t=0;t<e.length;t++){Dy(e,t)||(e[t]=null)}return e}function qy(e){const t=Cy(null);for(const[n,r]of yy(e)){Dy(e,n)&&(Array.isArray(r)?t[n]=Uy(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=qy(r):t[n]=r)}return t}function Vy(e,t){for(;null!==e;){const n=xy(e,t);if(n){if(n.get)return Wy(n.get);if("function"==typeof n.value)return Wy(n.value)}e=wy(e)}return function(){return null}}const Ky=Sy(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Gy=Sy(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Xy=Sy(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qy=Sy(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Yy=Sy(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Zy=Sy(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jy=Sy(["#text"]),eb=Sy(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),tb=Sy(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nb=Sy(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rb=Sy(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ob=ky(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ab=ky(/<%[\w\W]*|[\w\W]*%>/gm),ib=ky(/\$\{[\w\W]*/gm),lb=ky(/^data-[\-\w.\u00B7-\uFFFF]+$/),sb=ky(/^aria-[\-\w]+$/),cb=ky(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ub=ky(/^(?:\w+script|data):/i),db=ky(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pb=ky(/^html$/i),fb=ky(/^[a-z][.\w]*(-[.\w]+)+$/i);var hb=/* @__PURE__ */Object.freeze({__proto__:null,ARIA_ATTR:sb,ATTR_WHITESPACE:db,CUSTOM_ELEMENT:fb,DATA_ATTR:lb,DOCTYPE_NAME:pb,ERB_EXPR:ab,IS_ALLOWED_URI:cb,IS_SCRIPT_OR_DATA:ub,MUSTACHE_EXPR:ob,TMPLIT_EXPR:ib});const mb=1,gb=3,yb=7,bb=8,vb=9;var wb,xb=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||t.document.nodeType!==vb||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=c.prototype,g=Vy(m,"cloneNode"),y=Vy(m,"remove"),b=Vy(m,"nextSibling"),v=Vy(m,"childNodes"),w=Vy(m,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let x,S="";const{implementation:k,createNodeIterator:C,createDocumentFragment:E,getElementsByTagName:T}=r,{importNode:R}=o;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof yy&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:M,TMPLIT_EXPR:O,DATA_ATTR:_,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:z}=hb;let{IS_ALLOWED_URI:$}=hb,D=null;const j=Hy({},[...Ky,...Gy,...Xy,...Yy,...Jy]);let F=null;const B=Hy({},[...eb,...tb,...nb,...rb]);let W=Object.seal(Cy(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,U=null;const q=Object.seal(Cy(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let V=!0,K=!0,G=!1,X=!0,Q=!1,Y=!0,Z=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ae=!1,ie=!0,le=!1,se={},ce=null;const ue=Hy({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const pe=Hy({},["audio","video","img","source","image","track"]);let fe=null;const he=Hy({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let be=ye,ve=!1,we=null;const xe=Hy({},[me,ge,ye],Ny);let Se=Hy({},["mi","mo","mn","ms","mtext"]),ke=Hy({},["annotation-xml"]);const Ce=Hy({},["title","style","font","a","script"]);let Ee=null;const Te=["application/xhtml+xml","text/html"];let Re=null,Pe=null;const Ae=r.createElement("form"),Me=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Pe||Pe!==e){if(e&&"object"==typeof e||(e={}),e=qy(e),Ee=-1===Te.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Re="application/xhtml+xml"===Ee?Ny:_y,D=Dy(e,"ALLOWED_TAGS")?Hy({},e.ALLOWED_TAGS,Re):j,F=Dy(e,"ALLOWED_ATTR")?Hy({},e.ALLOWED_ATTR,Re):B,we=Dy(e,"ALLOWED_NAMESPACES")?Hy({},e.ALLOWED_NAMESPACES,Ny):xe,fe=Dy(e,"ADD_URI_SAFE_ATTR")?Hy(qy(he),e.ADD_URI_SAFE_ATTR,Re):he,de=Dy(e,"ADD_DATA_URI_TAGS")?Hy(qy(pe),e.ADD_DATA_URI_TAGS,Re):pe,ce=Dy(e,"FORBID_CONTENTS")?Hy({},e.FORBID_CONTENTS,Re):ue,H=Dy(e,"FORBID_TAGS")?Hy({},e.FORBID_TAGS,Re):qy({}),U=Dy(e,"FORBID_ATTR")?Hy({},e.FORBID_ATTR,Re):qy({}),se=!!Dy(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Q=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ae=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,le=e.IN_PLACE||!1,$=e.ALLOWED_URI_REGEXP||cb,be=e.NAMESPACE||ye,Se=e.MATHML_TEXT_INTEGRATION_POINTS||Se,ke=e.HTML_INTEGRATION_POINTS||ke,W=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(K=!1),ne&&(te=!0),se&&(D=Hy({},Jy),F=[],!0===se.html&&(Hy(D,Ky),Hy(F,eb)),!0===se.svg&&(Hy(D,Gy),Hy(F,tb),Hy(F,rb)),!0===se.svgFilters&&(Hy(D,Xy),Hy(F,tb),Hy(F,rb)),!0===se.mathMl&&(Hy(D,Yy),Hy(F,nb),Hy(F,rb))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?q.tagCheck=e.ADD_TAGS:(D===j&&(D=qy(D)),Hy(D,e.ADD_TAGS,Re))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?q.attributeCheck=e.ADD_ATTR:(F===B&&(F=qy(F)),Hy(F,e.ADD_ATTR,Re))),e.ADD_URI_SAFE_ATTR&&Hy(fe,e.ADD_URI_SAFE_ATTR,Re),e.FORBID_CONTENTS&&(ce===ue&&(ce=qy(ce)),Hy(ce,e.FORBID_CONTENTS,Re)),ie&&(D["#text"]=!0),Z&&Hy(D,["html","head","body"]),D.table&&(Hy(D,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Fy('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Fy('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,a)),null!==x&&"string"==typeof S&&(S=x.createHTML(""));Sy&&Sy(e),Pe=e}},_e=Hy({},[...Gy,...Xy,...Qy]),Ne=Hy({},[...Yy,...Zy]),Ie=function(e){My(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Le=function(e,t){try{My(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){My(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Ie(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},ze=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Iy(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ee&&be===ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=x?x.createHTML(e):e;if(be===ye)try{t=(new f).parseFromString(o,Ee)}catch(i){}if(!t||!t.documentElement){t=k.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?S:o}catch(i){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),be===ye?T.call(t,Z?"html":"body")[0]:Z?t.documentElement:a},$e=function(e){return C.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof s&&e instanceof s};function Fe(e,t,r){Ry(e,e=>{e.call(n,t,r,Pe)})}const Be=function(e){let t=null;if(Fe(P.beforeSanitizeElements,e,null),De(e))return Ie(e),!0;const r=Re(e.nodeName);if(Fe(P.uponSanitizeElement,e,{tagName:r,allowedTags:D}),Y&&e.hasChildNodes()&&!je(e.firstElementChild)&&jy(/<[/\w!]/g,e.innerHTML)&&jy(/<[/\w!]/g,e.textContent))return Ie(e),!0;if(e.nodeType===yb)return Ie(e),!0;if(Y&&e.nodeType===bb&&jy(/<[/\w]/g,e.data))return Ie(e),!0;if(!(q.tagCheck instanceof Function&&q.tagCheck(r))&&(!D[r]||H[r])){if(!H[r]&&He(r)){if(W.tagNameCheck instanceof RegExp&&jy(W.tagNameCheck,r))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(r))return!1}if(ie&&!ce[r]){const t=w(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}}return Ie(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=_y(e.tagName),r=_y(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===ye?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(_e[n]):e.namespaceURI===me?t.namespaceURI===ye?"math"===n:t.namespaceURI===ge?"math"===n&&ke[r]:Boolean(Ne[n]):e.namespaceURI===ye?!(t.namespaceURI===ge&&!ke[r])&&!(t.namespaceURI===me&&!Se[r])&&!Ne[n]&&(Ce[n]||!_e[n]):!("application/xhtml+xml"!==Ee||!we[e.namespaceURI]))}(e)?(Ie(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!jy(/<\/no(script|embed|frames)/i,e.innerHTML)?(Q&&e.nodeType===gb&&(t=e.textContent,Ry([A,M,O],e=>{t=Ly(t,e," ")}),e.textContent!==t&&(My(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(P.afterSanitizeElements,e,null),!1):(Ie(e),!0)},We=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;if(K&&!U[t]&&jy(_,t));else if(V&&jy(N,t));else if(q.attributeCheck instanceof Function&&q.attributeCheck(t,e));else if(!F[t]||U[t]){if(!(He(e)&&(W.tagNameCheck instanceof RegExp&&jy(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&jy(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t,e))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&jy(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(fe[t]);else if(jy($,Ly(n,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==zy(n,"data:")||!de[e]){if(G&&!jy(I,Ly(n,L,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Iy(e,z)},Ue=function(e){Fe(P.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||De(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:l,namespaceURI:s,value:c}=i,u=Re(l),d=c;let p="value"===l?d:$y(d);if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Fe(P.uponSanitizeAttribute,e,r),p=r.attrValue,!ae||"id"!==u&&"name"!==u||(Le(l,e),p="user-content-"+p),Y&&jy(/((--!?|])>)|<\/(style|title|textarea)/i,p)){Le(l,e);continue}if("attributename"===u&&Iy(p,"href")){Le(l,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Le(l,e);continue}if(!X&&jy(/\/>/i,p)){Le(l,e);continue}Q&&Ry([A,M,O],e=>{p=Ly(p,e," ")});const f=Re(e.nodeName);if(We(f,u,p)){if(x&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(s);else switch(h.getAttributeType(f,u)){case"TrustedHTML":p=x.createHTML(p);break;case"TrustedScriptURL":p=x.createScriptURL(p)}if(p!==d)try{s?e.setAttributeNS(s,l,p):e.setAttribute(l,p),De(e)?Ie(e):Ay(n.removed)}catch(a){Le(l,e)}}else Le(l,e)}Fe(P.afterSanitizeAttributes,e,null)},qe=function e(t){let n=null;const r=$e(t);for(Fe(P.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Fe(P.uponSanitizeShadowNode,n,null),Be(n),Ue(n),n.content instanceof i&&e(n.content);Fe(P.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,l=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Fy("toString is not a function");if("string"!=typeof(e=e.toString()))throw Fy("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Oe(t),n.removed=[],"string"==typeof e&&(le=!1),le){if(e.nodeName){const t=Re(e.nodeName);if(!D[t]||H[t])throw Fy("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=ze("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===mb&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!te&&!Q&&!Z&&-1===e.indexOf("<"))return x&&re?x.createHTML(e):e;if(r=ze(e),!r)return te?null:re?S:""}r&&ee&&Ie(r.firstChild);const u=$e(le?e:r);for(;l=u.nextNode();)Be(l),Ue(l),l.content instanceof i&&qe(l.content);if(le)return e;if(te){if(ne)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(F.shadowroot||F.shadowrootmode)&&(c=R.call(o,c,!0)),c}let d=Z?r.outerHTML:r.innerHTML;return Z&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&jy(pb,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Q&&Ry([A,M,O],e=>{d=Ly(d,e," ")}),x&&re?x.createHTML(d):d},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Pe=null,J=!1},n.isValidAttribute=function(e,t,n){Pe||Oe({});const r=Re(e),o=Re(t);return We(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&My(P[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Py(P[e],t);return-1===n?void 0:Oy(P[e],n,1)[0]}return Ay(P[e])},n.removeHooks=function(e){P[e]=[]},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Sb={},kb={},Cb={},Eb={},Tb={},Rb={};function Pb(){return wb||(wb=1,e=Rb,Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,(n=t=e.ElementType||(e.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype),Rb;var e,t,n}var Ab,Mb,Ob={};function _b(){if(Ab)return Ob;Ab=1;var e=Ob&&Ob.__extends||/* @__PURE__ */function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),t=Ob&&Ob.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.cloneNode=Ob.hasChildren=Ob.isDocument=Ob.isDirective=Ob.isComment=Ob.isText=Ob.isCDATA=Ob.isTag=Ob.Element=Ob.Document=Ob.CDATA=Ob.NodeWithChildren=Ob.ProcessingInstruction=Ob.Comment=Ob.Text=Ob.DataNode=Ob.Node=void 0;var n=/* @__PURE__ */Pb(),r=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),b(this,e)},e}();Ob.Node=r;var o=function(t){function n(e){var n=t.call(this)||this;return n.data=e,n}return e(n,t),Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),n}(r);Ob.DataNode=o;var a=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Text,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),r}(o);Ob.Text=a;var i=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Comment,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),r}(o);Ob.Comment=i;var l=function(t){function r(e,r){var o=t.call(this,r)||this;return o.name=e,o.type=n.ElementType.Directive,o}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),r}(o);Ob.ProcessingInstruction=l;var s=function(t){function n(e){var n=t.call(this)||this;return n.children=e,n}return e(n,t),Object.defineProperty(n.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),n}(r);Ob.NodeWithChildren=s;var c=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.CDATA,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(s);Ob.CDATA=c;var u=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.ElementType.Root,e}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(s);Ob.Document=u;var d=function(t){function r(e,r,o,a){void 0===o&&(o=[]),void 0===a&&(a="script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag);var i=t.call(this,o)||this;return i.name=e,i.attribs=r,i.type=a,i}return e(r,t),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),r}(s);function p(e){return(0,n.isTag)(e)}function f(e){return e.type===n.ElementType.CDATA}function h(e){return e.type===n.ElementType.Text}function m(e){return e.type===n.ElementType.Comment}function g(e){return e.type===n.ElementType.Directive}function y(e){return e.type===n.ElementType.Root}function b(e,n){var r;if(void 0===n&&(n=!1),h(e))r=new a(e.data);else if(m(e))r=new i(e.data);else if(p(e)){var o=n?v(e.children):[],s=new d(e.name,t({},e.attribs),o);o.forEach(function(e){return e.parent=s}),null!=e.namespace&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=t({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=t({},e["x-attribsPrefix"])),r=s}else if(f(e)){o=n?v(e.children):[];var b=new c(o);o.forEach(function(e){return e.parent=b}),r=b}else if(y(e)){o=n?v(e.children):[];var w=new u(o);o.forEach(function(e){return e.parent=w}),e["x-mode"]&&(w["x-mode"]=e["x-mode"]),r=w}else{if(!g(e))throw new Error("Not implemented yet: ".concat(e.type));var x=new l(e.name,e.data);null!=e["x-name"]&&(x["x-name"]=e["x-name"],x["x-publicId"]=e["x-publicId"],x["x-systemId"]=e["x-systemId"]),r=x}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function v(e){for(var t=e.map(function(e){return b(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return Ob.Element=d,Ob.isTag=p,Ob.isCDATA=f,Ob.isText=h,Ob.isComment=m,Ob.isDirective=g,Ob.isDocument=y,Ob.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},Ob.cloneNode=b,Ob}function Nb(){return Mb||(Mb=1,function(e){var t=Tb&&Tb.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Tb&&Tb.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=/* @__PURE__ */Pb(),o=/* @__PURE__ */_b();n(/* @__PURE__ */_b(),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,a=new o.Element(e,t,void 0,n);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=i,e.default=i}(Tb)),Tb}var Ib,Lb,zb,$b,Db={};function jb(){if(Lb)return Eb;Lb=1,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.formatAttributes=r,Eb.escapeSpecialCharacters=function(e){return e.replace(n.CARRIAGE_RETURN_REGEX,n.CARRIAGE_RETURN_PLACEHOLDER)},Eb.revertEscapedCharacters=a,Eb.formatDOM=function e(n,i,l){void 0===i&&(i=null);for(var s,c=[],u=0,d=n.length;u<d;u++){var p=n[u];switch(p.nodeType){case 1:var f=o(p.nodeName);(s=new t.Element(f,r(p.attributes))).children=e("template"===f?p.content.childNodes:p.childNodes,s);break;case 3:s=new t.Text(a(p.nodeValue));break;case 8:s=new t.Comment(p.nodeValue);break;default:continue}var h=c[u-1]||null;h&&(h.next=s),s.parent=i,s.prev=h,s.next=null,c.push(s)}l&&((s=new t.ProcessingInstruction(l.substring(0,l.indexOf(" ")).toLowerCase(),l)).next=c[0]||null,s.parent=i,c.unshift(s),c[1]&&(c[1].prev=c[0]));return c};var e,t=/* @__PURE__ */Nb(),n=(Ib||(Ib=1,e=Db,Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")),Db);function r(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function o(e){var t=function(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function a(e){return e.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX,n.CARRIAGE_RETURN)}return Eb}function Fb(){if($b)return kb;$b=1;var e=kb&&kb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kb,"__esModule",{value:!0}),kb.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var o=e.match(r),a=o?o[1]:void 0;return(0,n.formatDOM)((0,t.default)(e),null,a)};var t=e(function(){if(zb)return Cb;zb=1,Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.default=function(c){var u,d,f=(c=(0,e.escapeSpecialCharacters)(c)).match(o),h=f&&f[1]?f[1].toLowerCase():"";switch(h){case t:var m=s(c);return a.test(c)||null===(u=null==(y=m.querySelector(n))?void 0:y.parentNode)||void 0===u||u.removeChild(y),i.test(c)||null===(d=null==(y=m.querySelector(r))?void 0:y.parentNode)||void 0===d||d.removeChild(y),m.querySelectorAll(t);case n:case r:var g=l(c).querySelectorAll(h);return i.test(c)&&a.test(c)?g[0].parentNode.childNodes:g;default:return p?p(c):(y=l(c,r).querySelector(r)).childNodes;var y}};var e=jb(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,i=/<body[^]*>/i,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;l=s=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=d.documentElement.querySelector(t);return n&&(n.innerHTML=e),d}return d.documentElement.innerHTML=e,d}}var p,f="object"==typeof document&&document.createElement("template");return f&&f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),Cb}()),n=jb(),r=/<(![a-zA-Z\s]+)>/;return kb}var Bb,Wb,Hb={},Ub={},qb={};function Vb(){if(Wb)return Ub;Wb=1;function e(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(n=>{t[n]=new e(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([n,r])=>{t[n]=new e(n,1,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(n=>{t[n]=new e(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(n=>{t[n]=new e(n,2,!1,n,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"].forEach(n=>{t[n]=new e(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(n=>{t[n]=new e(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(n=>{t[n]=new e(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(n=>{t[n]=new e(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(n=>{t[n]=new e(n,5,!1,n.toLowerCase(),null,!1,!1)});const n=/[\-\:]([a-z])/g,r=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(o=>{const a=o.replace(n,r);t[a]=new e(a,1,!1,o,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(o=>{const a=o.replace(n,r);t[a]=new e(a,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(o=>{const a=o.replace(n,r);t[a]=new e(a,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!1,!1)});t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!0,!0)});const{CAMELCASE:o,SAME:a,possibleStandardNames:i}=(Bb||(Bb=1,qb.SAME=0,qb.CAMELCASE=1,qb.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}),qb),l=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),s=Object.keys(i).reduce((e,t)=>{const n=i[t];return n===a?e[t]=t:n===o?e[t.toLowerCase()]=t:e[t]=n,e},{});return Ub.BOOLEAN=3,Ub.BOOLEANISH_STRING=2,Ub.NUMERIC=5,Ub.OVERLOADED_BOOLEAN=4,Ub.POSITIVE_NUMERIC=6,Ub.RESERVED=0,Ub.STRING=1,Ub.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},Ub.isCustomAttribute=l,Ub.possibleStandardNames=s,Ub}var Kb,Gb,Xb,Qb={},Yb={};function Zb(){if(Xb)return Yb;Xb=1;var e=Yb&&Yb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yb,"__esModule",{value:!0}),Yb.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const o=(0,t.default)(e),a="function"==typeof n;return o.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:o}=e;a?n(t,o,e):o&&(r=r||{},r[t]=o)}),r};const t=e(function(){if(Gb)return Kb;Gb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(l,s):s}return Kb=function(l,u){if("string"!=typeof l)throw new TypeError("First argument must be a string");if(!l)return[];u=u||{};var d=1,p=1;function f(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=p,t.source=l,!u.silent)throw t}function y(e){var t=e.exec(l);if(t){var n=t[0];return f(n),l=l.slice(n.length),t}}function b(){y(n)}function v(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var e=h();if("/"==l.charAt(0)&&"*"==l.charAt(1)){for(var t=2;s!=l.charAt(t)&&("*"!=l.charAt(t)||"/"!=l.charAt(t+1));)++t;if(t+=2,s===l.charAt(t-1))return g("End of comment missing");var n=l.slice(2,t-2);return p+=2,f(n),l=l.slice(t),p+=2,e({type:"comment",comment:n})}}function x(){var t=h(),n=y(r);if(n){if(w(),!y(o))return g("property missing ':'");var l=y(a),u=t({type:"declaration",property:c(n[0].replace(e,s)),value:l?c(l[0].replace(e,s)):s});return y(i),u}}return m.prototype.content=l,b(),function(){var e,t=[];for(v(t);e=x();)!1!==e&&(t.push(e),v(t));return t}()}}());return Yb}var Jb,ev,tv,nv,rv,ov={};function av(){if(Jb)return ov;Jb=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},i=function(e,t){return"".concat(t,"-")};return ov.camelCase=function(l,s){return void 0===s&&(s={}),function(t){return!t||n.test(t)||e.test(t)}(l)?l:(l=l.toLowerCase(),(l=s.reactCompat?l.replace(o,i):l.replace(r,i)).replace(t,a))},ov}function iv(){return nv||(nv=1,function(e){var t=Qb&&Qb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(o.has(e))return!1;return!0},e.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,r.default)(e,a)}catch(n){t.style={}}};var n=f(),r=t(function(){if(tv)return ev;tv=1;var e=(ev&&ev.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Zb()),t=av();function n(n,r){var o={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(o[(0,t.camelCase)(e,r)]=n)}),o):o}return n.default=n,ev=n}()),o=/* @__PURE__ */new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var a={reactCompat:!0};e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=/* @__PURE__ */new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)};e.returnFirstArg=function(e){return e}}(Qb)),Qb}function lv(){if(rv)return Hb;rv=1,Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.default=function(i,l){void 0===i&&(i={});var s={},c=Boolean(i.type&&o[i.type]);for(var u in i){var d=i[u];if((0,e.isCustomAttribute)(u))s[u]=d;else{var p=u.toLowerCase(),f=a(p);if(f){var h=(0,e.getPropertyInfo)(f);switch(n.includes(f)&&r.includes(l)&&!c&&(f=a("default"+p)),s[f]=d,h&&h.type){case e.BOOLEAN:s[f]=!0;break;case e.OVERLOADED_BOOLEAN:""===d&&(s[f]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(s[u]=d)}}return(0,t.setStyleProp)(i.style,s),s};var e=Vb(),t=iv(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function a(t){return e.possibleStandardNames[t]}return Hb}var sv,cv,uv={};const dv=/* @__PURE__ */n((cv||(cv=1,function(e){var t=Sb&&Sb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,o.default)((0,n.default)(e,(null==t?void 0:t.htmlparser2)||i),t):[]};var n=t(Fb());e.htmlToDOM=n.default;var r=t(lv());e.attributesToProps=r.default;var o=t(function(){if(sv)return uv;sv=1;var e=uv&&uv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uv,"__esModule",{value:!0}),uv.default=function e(t,i){void 0===i&&(i={});for(var l=[],s="function"==typeof i.replace,c=i.transform||r.returnFirstArg,u=i.library||o,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m<h;m++){var g=t[m];if(s){var y=i.replace(g,m);if(f(y)){h>1&&(y=d(y,{key:y.key||m})),l.push(c(y,g,m));continue}}if("text"!==g.type){var b=g,v={};a(b)?((0,r.setStyleProp)(b.attribs.style,b.attribs),v=b.attribs):b.attribs&&(v=(0,n.default)(b.attribs,b.name));var w=void 0;switch(g.type){case"script":case"style":g.children[0]&&(v.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?v.defaultValue=g.children[0].data:g.children&&g.children.length&&(w=e(g.children,i));break;default:continue}h>1&&(v.key=m),l.push(c(p(g.name,v,w),g,m))}else{var x=!g.data.trim().length;if(x&&g.parent&&!(0,r.canTextBeChildOfNode)(g.parent))continue;if(i.trim&&x)continue;l.push(c(g.data,g,m))}}return 1===l.length?l[0]:l};var t=f(),n=e(lv()),r=iv(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function a(e){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,r.isCustomComponent)(e.name,e.attribs)}return uv}());e.domToReact=o.default;var a=/* @__PURE__ */Nb();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var i={lowerCaseAttributeNames:!1}}(Sb)),Sb)),pv=dv.default||dv,fv=({html:e=""})=>{let t=xb.sanitize(e,{ALLOWED_TAGS:["b","i","strong","em","u","br","span","p","ul","ol","li","blockquote","a","h1","h2","h3","h4","h5","h6","img","table","thead","tbody","tr","th","td","code","pre","div"],ALLOWED_ATTR:["href","title","target","rel","src","alt","title","width","height","class","id","style","colspan","rowspan","align","data-*","aria-*","role"]});return t=t.replace(/^\s*(?:<br\s*\/?\s*>)+|(?:<br\s*\/?\s*>)+\s*$/gi,""),/* @__PURE__ */rt("span",{children:pv(t)})},{min:hv,max:mv}=Math,gv=(e,t=0,n=1)=>hv(mv(t,e),n),yv=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=gv(e[t],0,255)):3===t&&(e[t]=gv(e[t],0,1));return e},bv={};for(let bS of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])bv[`[object ${bS}]`]=bS.toLowerCase();function vv(e){return bv[Object.prototype.toString.call(e)]||"object"}const wv=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):"object"==vv(e[0])&&t?t.split("").filter(t=>void 0!==e[0][t]).map(t=>e[0][t]):e[0].slice(0),xv=e=>{if(e.length<2)return null;const t=e.length-1;return"string"==vv(e[t])?e[t].toLowerCase():null},{PI:Sv,min:kv,max:Cv}=Math,Ev=e=>Math.round(100*e)/100,Tv=e=>Math.round(100*e)/100,Rv=2*Sv,Pv=Sv/3,Av=Sv/180,Mv=180/Sv;function Ov(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const _v={format:{},autodetect:[]};class Nv{constructor(...e){const t=this;if("object"===vv(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=xv(e),r=!1;if(!n){r=!0,_v.sorted||(_v.autodetect=_v.autodetect.sort((e,t)=>t.p-e.p),_v.sorted=!0);for(let t of _v.autodetect)if(n=t.test(...e),n)break}if(!_v.format[n])throw new Error("unknown format: "+e);{const o=_v.format[n].apply(null,r?e:e.slice(0,-1));t._rgb=yv(o)}3===t._rgb.length&&t._rgb.push(1)}toString(){return"function"==vv(this.hex)?this.hex():`[${this._rgb.join(",")}]`}}const Iv=(...e)=>new Nv(...e);Iv.version="3.2.0";const Lv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},zv=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,$v=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Dv=e=>{if(e.match(zv)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match($v)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100]}throw new Error(`unknown hex color: ${e}`)},{round:jv}=Math,Fv=(...e)=>{let[t,n,r,o]=wv(e,"rgba"),a=xv(e)||"auto";void 0===o&&(o=1),"auto"===a&&(a=o<1?"rgba":"rgb"),t=jv(t),n=jv(n),r=jv(r);let i="000000"+(t<<16|n<<8|r).toString(16);i=i.substr(i.length-6);let l="0"+jv(255*o).toString(16);switch(l=l.substr(l.length-2),a.toLowerCase()){case"rgba":return`#${i}${l}`;case"argb":return`#${l}${i}`;default:return`#${i}`}};Nv.prototype.name=function(){const e=Fv(this._rgb,"rgb");for(let t of Object.keys(Lv))if(Lv[t]===e)return t.toLowerCase();return e},_v.format.named=e=>{if(e=e.toLowerCase(),Lv[e])return Dv(Lv[e]);throw new Error("unknown color name: "+e)},_v.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===vv(e)&&Lv[e.toLowerCase()])return"named"}}),Nv.prototype.alpha=function(e,t=!1){return void 0!==e&&"number"===vv(e)?t?(this._rgb[3]=e,this):new Nv([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Nv.prototype.clipped=function(){return this._rgb._clipped||!1};const Bv={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Wv=/* @__PURE__ */new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Hv(e){const t=Wv.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);Bv.labWhitePoint=e,Bv.Xn=t[0],Bv.Zn=t[1]}function Uv(){return Bv.labWhitePoint}const qv=(...e)=>{e=wv(e,"lab");const[t,n,r]=e,[o,a,i]=Vv(t,n,r),[l,s,c]=Gv(o,a,i);return[l,s,c,e.length>3?e[3]:1]},Vv=(e,t,n)=>{const{kE:r,kK:o,kKE:a,Xn:i,Yn:l,Zn:s}=Bv,c=(e+16)/116,u=.002*t+c,d=c-.005*n,p=u*u*u,f=d*d*d;return[(p>r?p:(116*u-16)/o)*i,(e>a?Math.pow((e+16)/116,3):e/o)*l,(f>r?f:(116*d-16)/o)*s]},Kv=e=>{const t=Math.sign(e);return((e=Math.abs(e))<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)*t},Gv=(e,t,n)=>{const{MtxAdaptMa:r,MtxAdaptMaI:o,MtxXYZ2RGB:a,RefWhiteRGB:i,Xn:l,Yn:s,Zn:c}=Bv,u=l*r.m00+s*r.m10+c*r.m20,d=l*r.m01+s*r.m11+c*r.m21,p=l*r.m02+s*r.m12+c*r.m22,f=i.X*r.m00+i.Y*r.m10+i.Z*r.m20,h=i.X*r.m01+i.Y*r.m11+i.Z*r.m21,m=i.X*r.m02+i.Y*r.m12+i.Z*r.m22,g=(e*r.m00+t*r.m10+n*r.m20)*(f/u),y=(e*r.m01+t*r.m11+n*r.m21)*(h/d),b=(e*r.m02+t*r.m12+n*r.m22)*(m/p),v=g*o.m00+y*o.m10+b*o.m20,w=g*o.m01+y*o.m11+b*o.m21,x=g*o.m02+y*o.m12+b*o.m22;return[255*Kv(v*a.m00+w*a.m10+x*a.m20),255*Kv(v*a.m01+w*a.m11+x*a.m21),255*Kv(v*a.m02+w*a.m12+x*a.m22)]},Xv=(...e)=>{const[t,n,r,...o]=wv(e,"rgb"),[a,i,l]=Yv(t,n,r),[s,c,u]=function(e,t,n){const{Xn:r,Yn:o,Zn:a,kE:i,kK:l}=Bv,s=e/r,c=t/o,u=n/a,d=s>i?Math.pow(s,1/3):(l*s+16)/116,p=c>i?Math.pow(c,1/3):(l*c+16)/116,f=u>i?Math.pow(u,1/3):(l*u+16)/116;return[116*p-16,500*(d-p),200*(p-f)]}(a,i,l);return[s,c,u,...o.length>0&&o[0]<1?[o[0]]:[]]};function Qv(e){const t=Math.sign(e);return((e=Math.abs(e))<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*t}const Yv=(e,t,n)=>{e=Qv(e/255),t=Qv(t/255),n=Qv(n/255);const{MtxRGB2XYZ:r,MtxAdaptMa:o,MtxAdaptMaI:a,Xn:i,Yn:l,Zn:s,As:c,Bs:u,Cs:d}=Bv;let p=e*r.m00+t*r.m10+n*r.m20,f=e*r.m01+t*r.m11+n*r.m21,h=e*r.m02+t*r.m12+n*r.m22;const m=i*o.m00+l*o.m10+s*o.m20,g=i*o.m01+l*o.m11+s*o.m21,y=i*o.m02+l*o.m12+s*o.m22;let b=p*o.m00+f*o.m10+h*o.m20,v=p*o.m01+f*o.m11+h*o.m21,w=p*o.m02+f*o.m12+h*o.m22;return b*=m/c,v*=g/u,w*=y/d,p=b*a.m00+v*a.m10+w*a.m20,f=b*a.m01+v*a.m11+w*a.m21,h=b*a.m02+v*a.m12+w*a.m22,[p,f,h]};Nv.prototype.lab=function(){return Xv(this._rgb)};Object.assign(Iv,{lab:(...e)=>new Nv(...e,"lab"),getLabWhitePoint:Uv,setLabWhitePoint:Hv}),_v.format.lab=qv,_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"lab"))&&3===e.length)return"lab"}}),Nv.prototype.darken=function(e=1){const t=this.lab();return t[0]-=Bv.Kn*e,new Nv(t,"lab").alpha(this.alpha(),!0)},Nv.prototype.brighten=function(e=1){return this.darken(-e)},Nv.prototype.darker=Nv.prototype.darken,Nv.prototype.brighter=Nv.prototype.brighten,Nv.prototype.get=function(e){const[t,n]=e.split("."),r=this[t]();if(n){const e=t.indexOf(n)-("ok"===t.substr(0,2)?2:0);if(e>-1)return r[e];throw new Error(`unknown channel ${n} in mode ${t}`)}return r};const{pow:Zv}=Math;Nv.prototype.luminance=function(e,t="rgb"){if(void 0!==e&&"number"===vv(e)){if(0===e)return new Nv([0,0,0,this._rgb[3]],"rgb");if(1===e)return new Nv([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=20;const o=(n,a)=>{const i=n.interpolate(a,.5,t),l=i.luminance();return Math.abs(e-l)<1e-7||!r--?i:l>e?o(n,i):o(i,a)},a=(n>e?o(new Nv([0,0,0]),this):o(this,new Nv([255,255,255]))).rgb();return new Nv([...a,this._rgb[3]])}return Jv(...this._rgb.slice(0,3))};const Jv=(e,t,n)=>.2126*(e=ew(e))+.7152*(t=ew(t))+.0722*(n=ew(n)),ew=e=>(e/=255)<=.03928?e/12.92:Zv((e+.055)/1.055,2.4),tw={},nw=(e,t,n=.5,...r)=>{let o=r[0]||"lrgb";if(tw[o]||r.length||(o=Object.keys(tw)[0]),!tw[o])throw new Error(`interpolation mode ${o} is not defined`);return"object"!==vv(e)&&(e=new Nv(e)),"object"!==vv(t)&&(t=new Nv(t)),tw[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};Nv.prototype.mix=Nv.prototype.interpolate=function(e,t=.5,...n){return nw(this,e,t,...n)},Nv.prototype.premultiply=function(e=!1){const t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new Nv([t[0]*n,t[1]*n,t[2]*n,n],"rgb")};const{sin:rw,cos:ow}=Math,aw=(...e)=>{let[t,n,r]=wv(e,"lch");return isNaN(r)&&(r=0),r*=Av,[t,ow(r)*n,rw(r)*n]},iw=(...e)=>{e=wv(e,"lch");const[t,n,r]=e,[o,a,i]=aw(t,n,r),[l,s,c]=qv(o,a,i);return[l,s,c,e.length>3?e[3]:1]},{sqrt:lw,atan2:sw,round:cw}=Math,uw=(...e)=>{const[t,n,r]=wv(e,"lab"),o=lw(n*n+r*r);let a=(sw(r,n)*Mv+360)%360;return 0===cw(1e4*o)&&(a=Number.NaN),[t,o,a]},dw=(...e)=>{const[t,n,r,...o]=wv(e,"rgb"),[a,i,l]=Xv(t,n,r),[s,c,u]=uw(a,i,l);return[s,c,u,...o.length>0&&o[0]<1?[o[0]]:[]]};Nv.prototype.lch=function(){return dw(this._rgb)},Nv.prototype.hcl=function(){return Ov(dw(this._rgb))};Object.assign(Iv,{lch:(...e)=>new Nv(...e,"lch"),hcl:(...e)=>new Nv(...e,"hcl")}),_v.format.lch=iw,_v.format.hcl=(...e)=>{const t=Ov(wv(e,"hcl"));return iw(...t)},["lch","hcl"].forEach(e=>_v.autodetect.push({p:2,test:(...t)=>{if("array"===vv(t=wv(t,e))&&3===t.length)return e}})),Nv.prototype.saturate=function(e=1){const t=this.lch();return t[1]+=Bv.Kn*e,t[1]<0&&(t[1]=0),new Nv(t,"lch").alpha(this.alpha(),!0)},Nv.prototype.desaturate=function(e=1){return this.saturate(-e)},Nv.prototype.set=function(e,t,n=!1){const[r,o]=e.split("."),a=this[r]();if(o){const e=r.indexOf(o)-("ok"===r.substr(0,2)?2:0);if(e>-1){if("string"==vv(t))switch(t.charAt(0)){case"+":case"-":a[e]+=+t;break;case"*":a[e]*=+t.substr(1);break;case"/":a[e]/=+t.substr(1);break;default:a[e]=+t}else{if("number"!==vv(t))throw new Error("unsupported value for Color.set");a[e]=t}const o=new Nv(a,r);return n?(this._rgb=o._rgb,this):o}throw new Error(`unknown channel ${o} in mode ${r}`)}return a},Nv.prototype.tint=function(e=.5,...t){return nw(this,"white",e,...t)},Nv.prototype.shade=function(e=.5,...t){return nw(this,"black",e,...t)};tw.rgb=(e,t,n)=>{const r=e._rgb,o=t._rgb;return new Nv(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"rgb")};const{sqrt:pw,pow:fw}=Math;tw.lrgb=(e,t,n)=>{const[r,o,a]=e._rgb,[i,l,s]=t._rgb;return new Nv(pw(fw(r,2)*(1-n)+fw(i,2)*n),pw(fw(o,2)*(1-n)+fw(l,2)*n),pw(fw(a,2)*(1-n)+fw(s,2)*n),"rgb")};tw.lab=(e,t,n)=>{const r=e.lab(),o=t.lab();return new Nv(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"lab")};const hw=(e,t,n,r)=>{let o,a,i,l,s,c,u,d,p,f,h,m;return"hsl"===r?(o=e.hsl(),a=t.hsl()):"hsv"===r?(o=e.hsv(),a=t.hsv()):"hcg"===r?(o=e.hcg(),a=t.hcg()):"hsi"===r?(o=e.hsi(),a=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",o=e.hcl(),a=t.hcl()):"oklch"===r&&(o=e.oklch().reverse(),a=t.oklch().reverse()),"h"!==r.substr(0,1)&&"oklch"!==r||([i,s,u]=o,[l,c,d]=a),isNaN(i)||isNaN(l)?isNaN(i)?isNaN(l)?f=Number.NaN:(f=l,1!=u&&0!=u||"hsv"==r||(p=c)):(f=i,1!=d&&0!=d||"hsv"==r||(p=s)):(m=l>i&&l-i>180?l-(i+360):l<i&&i-l>180?l+360-i:l-i,f=i+n*m),void 0===p&&(p=s+n*(c-s)),h=u+n*(d-u),new Nv("oklch"===r?[h,p,f]:[f,p,h],r)},mw=(e,t,n)=>hw(e,t,n,"lch");tw.lch=mw,tw.hcl=mw;Nv.prototype.num=function(){return((...e)=>{const[t,n,r]=wv(e,"rgb");return(t<<16)+(n<<8)+r})(this._rgb)};Object.assign(Iv,{num:(...e)=>new Nv(...e,"num")}),_v.format.num=e=>{if("number"==vv(e)&&e>=0&&e<=16777215){return[e>>16,e>>8&255,255&e,1]}throw new Error("unknown num color: "+e)},_v.autodetect.push({p:5,test:(...e)=>{if(1===e.length&&"number"===vv(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});tw.num=(e,t,n)=>{const r=e.num(),o=t.num();return new Nv(r+n*(o-r),"num")};const{floor:gw}=Math;Nv.prototype.hcg=function(){return((...e)=>{const[t,n,r]=wv(e,"rgb"),o=kv(t,n,r),a=Cv(t,n,r),i=a-o,l=100*i/255,s=o/(255-i)*100;let c;return 0===i?c=Number.NaN:(t===a&&(c=(n-r)/i),n===a&&(c=2+(r-t)/i),r===a&&(c=4+(t-n)/i),c*=60,c<0&&(c+=360)),[c,l,s]})(this._rgb)};Iv.hcg=(...e)=>new Nv(...e,"hcg"),_v.format.hcg=(...e)=>{e=wv(e,"hcg");let t,n,r,[o,a,i]=e;i*=255;const l=255*a;if(0===a)t=n=r=i;else{360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60;const e=gw(o),s=o-e,c=i*(1-a),u=c+l*(1-s),d=c+l*s,p=c+l;switch(e){case 0:[t,n,r]=[p,d,c];break;case 1:[t,n,r]=[u,p,c];break;case 2:[t,n,r]=[c,p,d];break;case 3:[t,n,r]=[c,u,p];break;case 4:[t,n,r]=[d,c,p];break;case 5:[t,n,r]=[p,c,u]}}return[t,n,r,e.length>3?e[3]:1]},_v.autodetect.push({p:1,test:(...e)=>{if("array"===vv(e=wv(e,"hcg"))&&3===e.length)return"hcg"}});tw.hcg=(e,t,n)=>hw(e,t,n,"hcg");const{cos:yw}=Math,{min:bw,sqrt:vw,acos:ww}=Math;Nv.prototype.hsi=function(){return((...e)=>{let t,[n,r,o]=wv(e,"rgb");n/=255,r/=255,o/=255;const a=bw(n,r,o),i=(n+r+o)/3,l=i>0?1-a/i:0;return 0===l?t=NaN:(t=(n-r+(n-o))/2,t/=vw((n-r)*(n-r)+(n-o)*(r-o)),t=ww(t),o>r&&(t=Rv-t),t/=Rv),[360*t,l,i]})(this._rgb)};Iv.hsi=(...e)=>new Nv(...e,"hsi"),_v.format.hsi=(...e)=>{e=wv(e,"hsi");let t,n,r,[o,a,i]=e;return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),o/=360,o<1/3?(r=(1-a)/3,t=(1+a*yw(Rv*o)/yw(Pv-Rv*o))/3,n=1-(r+t)):o<2/3?(o-=1/3,t=(1-a)/3,n=(1+a*yw(Rv*o)/yw(Pv-Rv*o))/3,r=1-(t+n)):(o-=2/3,n=(1-a)/3,r=(1+a*yw(Rv*o)/yw(Pv-Rv*o))/3,t=1-(n+r)),t=gv(i*t*3),n=gv(i*n*3),r=gv(i*r*3),[255*t,255*n,255*r,e.length>3?e[3]:1]},_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"hsi"))&&3===e.length)return"hsi"}});tw.hsi=(e,t,n)=>hw(e,t,n,"hsi");const xw=(...e)=>{e=wv(e,"hsl");const[t,n,r]=e;let o,a,i;if(0===n)o=a=i=255*r;else{const e=[0,0,0],l=[0,0,0],s=r<.5?r*(1+n):r+n-r*n,c=2*r-s,u=t/360;e[0]=u+1/3,e[1]=u,e[2]=u-1/3;for(let t=0;t<3;t++)e[t]<0&&(e[t]+=1),e[t]>1&&(e[t]-=1),6*e[t]<1?l[t]=c+6*(s-c)*e[t]:2*e[t]<1?l[t]=s:3*e[t]<2?l[t]=c+(s-c)*(2/3-e[t])*6:l[t]=c;[o,a,i]=[255*l[0],255*l[1],255*l[2]]}return e.length>3?[o,a,i,e[3]]:[o,a,i,1]},Sw=(...e)=>{e=wv(e,"rgba");let[t,n,r]=e;t/=255,n/=255,r/=255;const o=kv(t,n,r),a=Cv(t,n,r),i=(a+o)/2;let l,s;return a===o?(l=0,s=Number.NaN):l=i<.5?(a-o)/(a+o):(a-o)/(2-a-o),t==a?s=(n-r)/(a-o):n==a?s=2+(r-t)/(a-o):r==a&&(s=4+(t-n)/(a-o)),s*=60,s<0&&(s+=360),e.length>3&&void 0!==e[3]?[s,l,i,e[3]]:[s,l,i]};Nv.prototype.hsl=function(){return Sw(this._rgb)};Iv.hsl=(...e)=>new Nv(...e,"hsl"),_v.format.hsl=xw,_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"hsl"))&&3===e.length)return"hsl"}});tw.hsl=(e,t,n)=>hw(e,t,n,"hsl");const{floor:kw}=Math,{min:Cw,max:Ew}=Math;Nv.prototype.hsv=function(){return((...e)=>{e=wv(e,"rgb");let[t,n,r]=e;const o=Cw(t,n,r),a=Ew(t,n,r),i=a-o;let l,s,c;return c=a/255,0===a?(l=Number.NaN,s=0):(s=i/a,t===a&&(l=(n-r)/i),n===a&&(l=2+(r-t)/i),r===a&&(l=4+(t-n)/i),l*=60,l<0&&(l+=360)),[l,s,c]})(this._rgb)};Iv.hsv=(...e)=>new Nv(...e,"hsv"),_v.format.hsv=(...e)=>{e=wv(e,"hsv");let t,n,r,[o,a,i]=e;if(i*=255,0===a)t=n=r=i;else{360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60;const e=kw(o),l=o-e,s=i*(1-a),c=i*(1-a*l),u=i*(1-a*(1-l));switch(e){case 0:[t,n,r]=[i,u,s];break;case 1:[t,n,r]=[c,i,s];break;case 2:[t,n,r]=[s,i,u];break;case 3:[t,n,r]=[s,c,i];break;case 4:[t,n,r]=[u,s,i];break;case 5:[t,n,r]=[i,s,c]}}return[t,n,r,e.length>3?e[3]:1]},_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"hsv"))&&3===e.length)return"hsv"}});function Tw(e,t){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(e=>[e]));let r=t[0].length,o=t[0].map((e,n)=>t.map(e=>e[n])),a=e.map(e=>o.map(t=>Array.isArray(e)?e.reduce((e,n,r)=>e+n*(t[r]||0),0):t.reduce((t,n)=>t+n*e,0)));return 1===n&&(a=a[0]),1===r?a.map(e=>e[0]):a}tw.hsv=(e,t,n)=>hw(e,t,n,"hsv");const Rw=(...e)=>{e=wv(e,"lab");const[t,n,r,...o]=e,[a,i,l]=(s=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],c=Tw([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],[t,n,r]),Tw(s,c.map(e=>e**3)));var s,c;const[u,d,p]=Gv(a,i,l);return[u,d,p,...o.length>0&&o[0]<1?[o[0]]:[]]};const Pw=(...e)=>{const[t,n,r,...o]=wv(e,"rgb");return[...function(e){const t=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=Tw([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],e);return Tw(t,n.map(e=>Math.cbrt(e)))}(Yv(t,n,r)),...o.length>0&&o[0]<1?[o[0]]:[]]};Nv.prototype.oklab=function(){return Pw(this._rgb)};Object.assign(Iv,{oklab:(...e)=>new Nv(...e,"oklab")}),_v.format.oklab=Rw,_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"oklab"))&&3===e.length)return"oklab"}});tw.oklab=(e,t,n)=>{const r=e.oklab(),o=t.oklab();return new Nv(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"oklab")};tw.oklch=(e,t,n)=>hw(e,t,n,"oklch");const{pow:Aw,sqrt:Mw,PI:Ow,cos:_w,sin:Nw,atan2:Iw}=Math,Lw=(e,t)=>{const n=e.length,r=[0,0,0,0];for(let o=0;o<e.length;o++){const a=e[o],i=t[o]/n,l=a._rgb;r[0]+=Aw(l[0],2)*i,r[1]+=Aw(l[1],2)*i,r[2]+=Aw(l[2],2)*i,r[3]+=l[3]*i}return r[0]=Mw(r[0]),r[1]=Mw(r[1]),r[2]=Mw(r[2]),r[3]>.9999999&&(r[3]=1),new Nv(yv(r))},{pow:zw}=Math;function $w(e){let t="rgb",n=Iv("#ccc"),r=0,o=[0,1],a=[0,1],i=[],l=[0,0],s=!1,c=[],u=!1,d=0,p=1,f=!1,h={},m=!0,g=1;const y=function(e){if((e=e||["#fff","#000"])&&"string"===vv(e)&&Iv.brewer&&Iv.brewer[e.toLowerCase()]&&(e=Iv.brewer[e.toLowerCase()]),"array"===vv(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=Iv(e[t]);i.length=0;for(let t=0;t<e.length;t++)i.push(t/(e.length-1))}return x(),c=e};let b=e=>e,v=e=>e;const w=function(e,r){let o,a;if(null==r&&(r=!1),isNaN(e)||null===e)return n;if(r)a=e;else if(s&&s.length>2){a=function(e){if(null!=s){const t=s.length-1;let n=0;for(;n<t&&e>=s[n];)n++;return n-1}return 0}(e)/(s.length-2)}else a=p!==d?(e-d)/(p-d):1;a=v(a),r||(a=b(a)),1!==g&&(a=zw(a,g)),a=l[0]+a*(1-l[0]-l[1]),a=gv(a,0,1);const u=Math.floor(1e4*a);if(m&&h[u])o=h[u];else{if("array"===vv(c))for(let e=0;e<i.length;e++){const n=i[e];if(a<=n){o=c[e];break}if(a>=n&&e===i.length-1){o=c[e];break}if(a>n&&a<i[e+1]){a=(a-n)/(i[e+1]-n),o=Iv.interpolate(c[e],c[e+1],a,t);break}}else"function"===vv(c)&&(o=c(a));m&&(h[u]=o)}return o};var x=()=>h={};y(e);const S=function(e){const t=Iv(w(e));return u&&t[u]?t[u]():t};return S.classes=function(e){if(null!=e){if("array"===vv(e))s=e,o=[e[0],e[e.length-1]];else{const t=Iv.analyze(o);s=0===e?[t.min,t.max]:Iv.limits(t,"e",e)}return S}return s},S.domain=function(e){if(!arguments.length)return a;a=e.slice(0),d=e[0],p=e[e.length-1],i=[];const t=c.length;if(e.length===t&&d!==p)for(let n of Array.from(e))i.push((n-d)/(p-d));else{for(let e=0;e<t;e++)i.push(e/(t-1));if(e.length>2){const t=e.map((t,n)=>n/(e.length-1)),n=e.map(e=>(e-d)/(p-d));n.every((e,n)=>t[n]===e)||(v=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;const o=(e-n[r])/(n[r+1]-n[r]);return t[r]+o*(t[r+1]-t[r])})}}return o=[d,p],S},S.mode=function(e){return arguments.length?(t=e,x(),S):t},S.range=function(e,t){return y(e),S},S.out=function(e){return u=e,S},S.spread=function(e){return arguments.length?(r=e,S):r},S.correctLightness=function(e){return null==e&&(e=!0),f=e,x(),b=f?function(e){const t=w(0,!0).lab()[0],n=w(1,!0).lab()[0],r=t>n;let o=w(e,!0).lab()[0];const a=t+(n-t)*e;let i=o-a,l=0,s=1,c=20;for(;Math.abs(i)>.01&&c-- >0;)(function(){r&&(i*=-1),i<0?(l=e,e+=.5*(s-e)):(s=e,e+=.5*(l-e)),o=w(e,!0).lab()[0],i=o-a})();return e}:e=>e,S},S.padding=function(e){return null!=e?("number"===vv(e)&&(e=[e,e]),l=e,S):l},S.colors=function(t,n){arguments.length<2&&(n="hex");let r=[];if(0===arguments.length)r=c.slice(0);else if(1===t)r=[S(.5)];else if(t>1){const e=o[0],n=o[1]-e;r=function(e,t){let n=[],r=e<t,o=t;for(let a=e;r?a<o:a>o;r?a++:a--)n.push(a);return n}(0,t).map(r=>S(e+r/(t-1)*n))}else{e=[];let t=[];if(s&&s.length>2)for(let e=1,n=s.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push(.5*(s[e-1]+s[e]));else t=o;r=t.map(e=>S(e))}return Iv[n]&&(r=r.map(e=>e[n]())),r},S.cache=function(e){return null!=e?(m=e,S):m},S.gamma=function(e){return null!=e?(g=e,S):g},S.nodata=function(e){return null!=e?(n=Iv(e),S):n},S}const{round:Dw}=Math;Nv.prototype.rgb=function(e=!0){return!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Dw)},Nv.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((t,n)=>n<3?!1===e?t:Dw(t):t)};Object.assign(Iv,{rgb:(...e)=>new Nv(...e,"rgb")}),_v.format.rgb=(...e)=>{const t=wv(e,"rgba");return void 0===t[3]&&(t[3]=1),t},_v.autodetect.push({p:3,test:(...e)=>{if("array"===vv(e=wv(e,"rgba"))&&(3===e.length||4===e.length&&"number"==vv(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});const jw=(e,t,n)=>{if(!jw[n])throw new Error("unknown blend mode "+n);return jw[n](e,t)},Fw=e=>(t,n)=>{const r=Iv(n).rgb(),o=Iv(t).rgb();return Iv.rgb(e(r,o))},Bw=e=>(t,n)=>{const r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};jw.normal=Fw(Bw(e=>e)),jw.multiply=Fw(Bw((e,t)=>e*t/255)),jw.screen=Fw(Bw((e,t)=>255*(1-(1-e/255)*(1-t/255)))),jw.overlay=Fw(Bw((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)))),jw.darken=Fw(Bw((e,t)=>e>t?t:e)),jw.lighten=Fw(Bw((e,t)=>e>t?e:t)),jw.dodge=Fw(Bw((e,t)=>255===e||(e=t/255*255/(1-e/255))>255?255:e)),jw.burn=Fw(Bw((e,t)=>255*(1-(1-t/255)/(e/255))));const{pow:Ww,sin:Hw,cos:Uw}=Math;const{floor:qw,random:Vw}=Math,{log:Kw,pow:Gw,floor:Xw,abs:Qw}=Math;function Yw(e,t=null){const n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===vv(e)&&(e=Object.values(e)),e.forEach(e=>{t&&"object"===vv(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(e,t)=>Zw(n,e,t),n}function Zw(e,t="equal",n=7){"array"==vv(e)&&(e=Yw(e));const{min:r,max:o}=e,a=e.values.sort((e,t)=>e-t);if(1===n)return[r,o];const i=[];if("c"===t.substr(0,1)&&(i.push(r),i.push(o)),"e"===t.substr(0,1)){i.push(r);for(let e=1;e<n;e++)i.push(r+e/n*(o-r));i.push(o)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const e=Math.LOG10E*Kw(r),t=Math.LOG10E*Kw(o);i.push(r);for(let r=1;r<n;r++)i.push(Gw(10,e+r/n*(t-e)));i.push(o)}else if("q"===t.substr(0,1)){i.push(r);for(let e=1;e<n;e++){const t=(a.length-1)*e/n,r=Xw(t);if(r===t)i.push(a[r]);else{const e=t-r;i.push(a[r]*(1-e)+a[r+1]*e)}}i.push(o)}else if("k"===t.substr(0,1)){let e;const t=a.length,l=new Array(t),s=new Array(n);let c=!0,u=0,d=null;d=[],d.push(r);for(let a=1;a<n;a++)d.push(r+a/n*(o-r));for(d.push(o);c;){for(let e=0;e<n;e++)s[e]=0;for(let e=0;e<t;e++){const t=a[e];let r,o=Number.MAX_VALUE;for(let a=0;a<n;a++){const n=Qw(d[a]-t);n<o&&(o=n,r=a),s[r]++,l[e]=r}}const r=new Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=l[n],null===r[e]?r[e]=a[n]:r[e]+=a[n];for(let e=0;e<n;e++)r[e]*=1/s[e];c=!1;for(let e=0;e<n;e++)if(r[e]!==d[e]){c=!0;break}d=r,u++,u>200&&(c=!1)}const p={};for(let r=0;r<n;r++)p[r]=[];for(let n=0;n<t;n++)e=l[n],p[e].push(a[n]);let f=[];for(let r=0;r<n;r++)f.push(p[r][0]),f.push(p[r][p[r].length-1]);f=f.sort((e,t)=>e-t),i.push(f[0]);for(let n=1;n<f.length;n+=2){const e=f[n];isNaN(e)||-1!==i.indexOf(e)||i.push(e)}}return i}const Jw=.022;function ex(e,t,n){return.2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:tx,pow:nx,min:rx,max:ox,atan2:ax,abs:ix,cos:lx,sin:sx,exp:cx,PI:ux}=Math;const dx={cool:()=>$w([Iv.hsl(180,1,.9),Iv.hsl(250,.7,.4)]),hot:()=>$w(["#000","#f00","#ff0","#fff"]).mode("rgb")},px={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},fx=Object.keys(px),hx=new Map(fx.map(e=>[e.toLowerCase(),e])),mx="function"==typeof Proxy?new Proxy(px,{get(e,t){const n=t.toLowerCase();if(hx.has(n))return e[hx.get(n)]},getOwnPropertyNames:()=>Object.getOwnPropertyNames(fx)}):px,{max:gx}=Math;Nv.prototype.cmyk=function(){return((...e)=>{let[t,n,r]=wv(e,"rgb");t/=255,n/=255,r/=255;const o=1-gx(t,gx(n,r)),a=o<1?1/(1-o):0;return[(1-t-o)*a,(1-n-o)*a,(1-r-o)*a,o]})(this._rgb)};Object.assign(Iv,{cmyk:(...e)=>new Nv(...e,"cmyk")}),_v.format.cmyk=(...e)=>{e=wv(e,"cmyk");const[t,n,r,o]=e,a=e.length>4?e[4]:1;return 1===o?[0,0,0,a]:[t>=1?0:255*(1-t)*(1-o),n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),a]},_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"cmyk"))&&4===e.length)return"cmyk"}});const yx=(...e)=>{const[t,n,r,...o]=wv(e,"rgb"),[a,i,l]=Pw(t,n,r),[s,c,u]=uw(a,i,l);return[s,c,u,...o.length>0&&o[0]<1?[o[0]]:[]]},{round:bx}=Math,vx=(...e)=>{const t=wv(e,"rgba");let n=xv(e)||"rgb";if("hsl"===n.substr(0,3))return((...e)=>{const t=wv(e,"hsla");let n=xv(e)||"lsa";return t[0]=Ev(t[0]||0)+"deg",t[1]=Ev(100*t[1])+"%",t[2]=Ev(100*t[2])+"%","hsla"===n||t.length>3&&t[3]<1?(t[3]="/ "+(t.length>3?t[3]:1),n="hsla"):t.length=3,`${n.substr(0,3)}(${t.join(" ")})`})(Sw(t),n);if("lab"===n.substr(0,3)){const e=Uv();Hv("d50");const r=((...e)=>{const t=wv(e,"lab");let n=xv(e)||"lab";return t[0]=Ev(t[0])+"%",t[1]=Ev(t[1]),t[2]=Ev(t[2]),"laba"===n||t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`lab(${t.join(" ")})`})(Xv(t),n);return Hv(e),r}if("lch"===n.substr(0,3)){const e=Uv();Hv("d50");const r=((...e)=>{const t=wv(e,"lch");let n=xv(e)||"lab";return t[0]=Ev(t[0])+"%",t[1]=Ev(t[1]),t[2]=isNaN(t[2])?"none":Ev(t[2])+"deg","lcha"===n||t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`lch(${t.join(" ")})`})(dw(t),n);return Hv(e),r}return"oklab"===n.substr(0,5)?((...e)=>{const t=wv(e,"lab");return t[0]=Ev(100*t[0])+"%",t[1]=Tv(t[1]),t[2]=Tv(t[2]),t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`oklab(${t.join(" ")})`})(Pw(t)):"oklch"===n.substr(0,5)?((...e)=>{const t=wv(e,"lch");return t[0]=Ev(100*t[0])+"%",t[1]=Tv(t[1]),t[2]=isNaN(t[2])?"none":Ev(t[2])+"deg",t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`oklch(${t.join(" ")})`})(yx(t)):(t[0]=bx(t[0]),t[1]=bx(t[1]),t[2]=bx(t[2]),("rgba"===n||t.length>3&&t[3]<1)&&(t[3]="/ "+(t.length>3?t[3]:1),n="rgba"),`${n.substr(0,3)}(${t.slice(0,"rgb"===n?3:4).join(" ")})`)},wx=(...e)=>{e=wv(e,"lch");const[t,n,r,...o]=e,[a,i,l]=aw(t,n,r),[s,c,u]=Rw(a,i,l);return[s,c,u,...o.length>0&&o[0]<1?[o[0]]:[]]},xx=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Sx=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,kx=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Cx=/\s*/.source,Ex=/\s+/.source,Tx=/\s*,\s*/.source,Rx=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Px=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Ax=new RegExp("^rgba?\\("+Cx+[xx,xx,xx].join(Ex)+Px+"\\)$"),Mx=new RegExp("^rgb\\("+Cx+[xx,xx,xx].join(Tx)+Cx+"\\)$"),Ox=new RegExp("^rgba\\("+Cx+[xx,xx,xx,Sx].join(Tx)+Cx+"\\)$"),_x=new RegExp("^hsla?\\("+Cx+[Rx,kx,kx].join(Ex)+Px+"\\)$"),Nx=new RegExp("^hsl?\\("+Cx+[Rx,kx,kx].join(Tx)+Cx+"\\)$"),Ix=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Lx=new RegExp("^lab\\("+Cx+[Sx,Sx,Sx].join(Ex)+Px+"\\)$"),zx=new RegExp("^lch\\("+Cx+[Sx,Sx,Rx].join(Ex)+Px+"\\)$"),$x=new RegExp("^oklab\\("+Cx+[Sx,Sx,Sx].join(Ex)+Px+"\\)$"),Dx=new RegExp("^oklch\\("+Cx+[Sx,Sx,Rx].join(Ex)+Px+"\\)$"),{round:jx}=Math,Fx=e=>e.map((e,t)=>t<=2?gv(jx(e),0,255):e),Bx=(e,t=0,n=100,r=!1)=>("string"==typeof e&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,e=r?t+.5*(e+1)*(n-t):t+e*(n-t)),+e),Wx=(e,t)=>"none"===e?t:e,Hx=e=>{if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];let t;if(_v.format.named)try{return _v.format.named(e)}catch(n){}if((t=e.match(Ax))||(t=e.match(Mx))){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+Bx(Wx(e[t],0),0,255);e=Fx(e);const n=void 0!==t[4]?+Bx(t[4],0,1):1;return e[3]=n,e}if(t=e.match(Ox)){const e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+Bx(e[t],0,255);return e}if((t=e.match(_x))||(t=e.match(Nx))){const e=t.slice(1,4);e[0]=+Wx(e[0].replace("deg",""),0),e[1]=.01*+Bx(Wx(e[1],0),0,100),e[2]=.01*+Bx(Wx(e[2],0),0,100);const n=Fx(xw(e)),r=void 0!==t[4]?+Bx(t[4],0,1):1;return n[3]=r,n}if(t=e.match(Ix)){const e=t.slice(1,4);e[1]*=.01,e[2]*=.01;const n=xw(e);for(let t=0;t<3;t++)n[t]=jx(n[t]);return n[3]=+t[4],n}if(t=e.match(Lx)){const e=t.slice(1,4);e[0]=Bx(Wx(e[0],0),0,100),e[1]=Bx(Wx(e[1],0),-125,125,!0),e[2]=Bx(Wx(e[2],0),-125,125,!0);const n=Uv();Hv("d50");const r=Fx(qv(e));Hv(n);const o=void 0!==t[4]?+Bx(t[4],0,1):1;return r[3]=o,r}if(t=e.match(zx)){const e=t.slice(1,4);e[0]=Bx(e[0],0,100),e[1]=Bx(Wx(e[1],0),0,150,!1),e[2]=+Wx(e[2].replace("deg",""),0);const n=Uv();Hv("d50");const r=Fx(iw(e));Hv(n);const o=void 0!==t[4]?+Bx(t[4],0,1):1;return r[3]=o,r}if(t=e.match($x)){const e=t.slice(1,4);e[0]=Bx(Wx(e[0],0),0,1),e[1]=Bx(Wx(e[1],0),-.4,.4,!0),e[2]=Bx(Wx(e[2],0),-.4,.4,!0);const n=Fx(Rw(e)),r=void 0!==t[4]?+Bx(t[4],0,1):1;return n[3]=r,n}if(t=e.match(Dx)){const e=t.slice(1,4);e[0]=Bx(Wx(e[0],0),0,1),e[1]=Bx(Wx(e[1],0),0,.4,!1),e[2]=+Wx(e[2].replace("deg",""),0);const n=Fx(wx(e)),r=void 0!==t[4]?+Bx(t[4],0,1):1;return n[3]=r,n}};Hx.test=e=>Ax.test(e)||_x.test(e)||Lx.test(e)||zx.test(e)||$x.test(e)||Dx.test(e)||Mx.test(e)||Ox.test(e)||Nx.test(e)||Ix.test(e)||"transparent"===e,Nv.prototype.css=function(e){return vx(this._rgb,e)};Iv.css=(...e)=>new Nv(...e,"css"),_v.format.css=Hx,_v.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===vv(e)&&Hx.test(e))return"css"}}),_v.format.gl=(...e)=>{const t=wv(e,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t};Iv.gl=(...e)=>new Nv(...e,"gl"),Nv.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Nv.prototype.hex=function(e){return Fv(this._rgb,e)};Iv.hex=(...e)=>new Nv(...e,"hex"),_v.format.hex=Dv,_v.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&"string"===vv(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Ux}=Math,qx=e=>{const t=e/100;let n,r,o;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*Ux(r),o=t<20?0:.8274096064007395*(o=t-10)-254.76935184120902+115.67994401066147*Ux(o)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*Ux(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*Ux(r),o=255),[n,r,o,1]},{round:Vx}=Math;Nv.prototype.temp=Nv.prototype.kelvin=Nv.prototype.temperature=function(){return((...e)=>{const t=wv(e,"rgb"),n=t[0],r=t[2];let o,a=1e3,i=4e4;for(;i-a>.4;){o=.5*(i+a);const e=qx(o);e[2]/e[0]>=r/n?i=o:a=o}return Vx(o)})(this._rgb)};const Kx=(...e)=>new Nv(...e,"temp");Object.assign(Iv,{temp:Kx,kelvin:Kx,temperature:Kx}),_v.format.temp=_v.format.kelvin=_v.format.temperature=qx,Nv.prototype.oklch=function(){return yx(this._rgb)};Object.assign(Iv,{oklch:(...e)=>new Nv(...e,"oklch")}),_v.format.oklch=wx,_v.autodetect.push({p:2,test:(...e)=>{if("array"===vv(e=wv(e,"oklch"))&&3===e.length)return"oklch"}}),Object.assign(Iv,{analyze:Yw,average:(e,t="lrgb",n=null)=>{const r=e.length;n||(n=Array.from(new Array(r)).map(()=>1));const o=r/n.reduce(function(e,t){return e+t});if(n.forEach((e,t)=>{n[t]*=o}),e=e.map(e=>new Nv(e)),"lrgb"===t)return Lw(e,n);const a=e.shift(),i=a.get(t),l=[];let s=0,c=0;for(let d=0;d<i.length;d++)if(i[d]=(i[d]||0)*n[0],l.push(isNaN(i[d])?0:n[0]),"h"===t.charAt(d)&&!isNaN(i[d])){const e=i[d]/180*Ow;s+=_w(e)*n[0],c+=Nw(e)*n[0]}let u=a.alpha()*n[0];e.forEach((e,r)=>{const o=e.get(t);u+=e.alpha()*n[r+1];for(let a=0;a<i.length;a++)if(!isNaN(o[a]))if(l[a]+=n[r+1],"h"===t.charAt(a)){const e=o[a]/180*Ow;s+=_w(e)*n[r+1],c+=Nw(e)*n[r+1]}else i[a]+=o[a]*n[r+1]});for(let d=0;d<i.length;d++)if("h"===t.charAt(d)){let e=Iw(c/l[d],s/l[d])/Ow*180;for(;e<0;)e+=360;for(;e>=360;)e-=360;i[d]=e}else i[d]=i[d]/l[d];return u/=r,new Nv(i,t).alpha(u>.99999?1:u,!0)},bezier:e=>{const t=function(e){let t,n,r,o;if(2===(e=e.map(e=>new Nv(e))).length)[n,r]=e.map(e=>e.lab()),t=function(e){const t=[0,1,2].map(t=>n[t]+e*(r[t]-n[t]));return new Nv(t,"lab")};else if(3===e.length)[n,r,o]=e.map(e=>e.lab()),t=function(e){const t=[0,1,2].map(t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*o[t]);return new Nv(t,"lab")};else if(4===e.length){let a;[n,r,o,a]=e.map(e=>e.lab()),t=function(e){const t=[0,1,2].map(t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*o[t]+e*e*e*a[t]);return new Nv(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");{let n,r,o;n=e.map(e=>e.lab()),o=e.length-1,r=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t}(o),t=function(e){const t=1-e,a=[0,1,2].map(a=>n.reduce((n,i,l)=>n+r[l]*t**(o-l)*e**l*i[a],0));return new Nv(a,"lab")}}}return t}(e);return t.scale=()=>$w(t),t},blend:jw,brewer:mx,Color:Nv,colors:Lv,contrast:(e,t)=>{e=new Nv(e),t=new Nv(t);const n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},contrastAPCA:(e,t)=>{e=new Nv(e),t=new Nv(t),e.alpha()<1&&(e=nw(t,e,e.alpha(),"rgb"));const n=ex(...e.rgb()),r=ex(...t.rgb()),o=n>=Jw?n:n+Math.pow(Jw-n,1.414),a=r>=Jw?r:r+Math.pow(Jw-r,1.414),i=Math.pow(a,.56)-Math.pow(o,.57),l=Math.pow(a,.65)-Math.pow(o,.62),s=Math.abs(a-o)<5e-4?0:o<a?1.14*i:1.14*l;return 100*(Math.abs(s)<.1?0:s>0?s-.027:s+.027)},cubehelix:function(e=300,t=-1.5,n=1,r=1,o=[0,1]){let a,i=0;"array"===vv(o)?a=o[1]-o[0]:(a=0,o=[o,o]);const l=function(l){const s=Rv*((e+120)/360+t*l),c=Ww(o[0]+a*l,r),u=(0!==i?n[0]+l*i:n)*c*(1-c)/2,d=Uw(s),p=Hw(s);return Iv(yv([255*(c+u*(-.14861*d+1.78277*p)),255*(c+u*(-.29227*d-.90649*p)),255*(c+u*(1.97294*d)),1]))};return l.start=function(t){return null==t?e:(e=t,l)},l.rotations=function(e){return null==e?t:(t=e,l)},l.gamma=function(e){return null==e?r:(r=e,l)},l.hue=function(e){return null==e?n:("array"===vv(n=e)?(i=n[1]-n[0],0===i&&(n=n[1])):i=0,l)},l.lightness=function(e){return null==e?o:("array"===vv(e)?(o=e,a=e[1]-e[0]):(o=[e,e],a=0),l)},l.scale=()=>Iv.scale(l),l.hue(n),l},deltaE:function(e,t,n=1,r=1,o=1){var a=function(e){return 360*e/(2*ux)},i=function(e){return 2*ux*e/360};e=new Nv(e),t=new Nv(t);const[l,s,c]=Array.from(e.lab()),[u,d,p]=Array.from(t.lab()),f=(l+u)/2,h=(tx(nx(s,2)+nx(c,2))+tx(nx(d,2)+nx(p,2)))/2,m=.5*(1-tx(nx(h,7)/(nx(h,7)+nx(25,7)))),g=s*(1+m),y=d*(1+m),b=tx(nx(g,2)+nx(c,2)),v=tx(nx(y,2)+nx(p,2)),w=(b+v)/2,x=a(ax(c,g)),S=a(ax(p,y)),k=x>=0?x:x+360,C=S>=0?S:S+360,E=ix(k-C)>180?(k+C+360)/2:(k+C)/2,T=1-.17*lx(i(E-30))+.24*lx(i(2*E))+.32*lx(i(3*E+6))-.2*lx(i(4*E-63));let R=C-k;R=ix(R)<=180?R:C<=k?R+360:R-360,R=2*tx(b*v)*sx(i(R)/2);const P=u-l,A=v-b,M=1+.015*nx(f-50,2)/tx(20+nx(f-50,2)),O=1+.045*w,_=1+.015*w*T,N=30*cx(-nx((E-275)/25,2)),I=-(2*tx(nx(w,7)/(nx(w,7)+nx(25,7))))*sx(2*i(N)),L=tx(nx(P/(n*M),2)+nx(A/(r*O),2)+nx(R/(o*_),2)+I*(A/(r*O))*(R/(o*_)));return ox(0,rx(100,L))},distance:function(e,t,n="lab"){e=new Nv(e),t=new Nv(t);const r=e.get(n),o=t.get(n);let a=0;for(let i in r){const e=(r[i]||0)-(o[i]||0);a+=e*e}return Math.sqrt(a)},input:_v,interpolate:nw,limits:Zw,mix:nw,random:(e=Vw)=>{let t="#";for(let n=0;n<6;n++)t+="0123456789abcdef".charAt(qw(16*e()));return new Nv(t,"hex")},scale:$w,scales:dx,valid:(...e)=>{try{return new Nv(...e),!0}catch(t){return!1}}});const Gx=e=>{if(!e.startsWith("#"))return console.warn("getContrastTextColor: Invalid hex color",e),"#000000";if(4===e.length&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),7!==e.length)return console.warn("getContrastTextColor: Invalid hex color length",e),"#000000";const t=(e=>{e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null})(e);if(!t)return console.warn("getContrastTextColor: Could not convert hex to rgb",e),"#000000";return(.299*t.r+.587*t.g+.114*t.b)/255>.6?"#000000":"#FFFFFF"},Xx=(e,t=[])=>{if(t.length>0){const n=(e=>{if(0===e.length)return{};const t=[...e].sort(),n=Iv.scale(["#006675","#3636C5","#008060","#001746","#36B37E","#00B8D9"]).mode("hsl"),r={};return t.forEach((e,o)=>{const a=o/Math.max(t.length-1,1);r[e]=n(a).darken(.2).hex()}),r})(t),r=n[e]||"#6c757d";return{bg:r,text:Gx(r)}}let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n);const r=Math.abs(n)%360;return{bg:Iv.hsl(r,.7,.3).hex(),text:Gx(Iv.hsl(r,.7,.3).hex())}},Qx=({value:e,size:t=120})=>{const n=e=>e>=90?"#28a745":e>=70?"#ffc107":"#dc3545";/* @__PURE__ */
265
+ return rt(_u,{flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"center",children:/* @__PURE__ */ot(_u,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[
266
+ /* @__PURE__ */rt(ns,{variant:"determinate",value:e,size:t,thickness:4,sx:{color:n(e),"& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),
267
+ /* @__PURE__ */rt(_u,{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",children:/* @__PURE__ */ot(Cs,{variant:"h3",component:"div",fontWeight:"bold",color:n(e),sx:{fontSize:"1.5rem"},children:[Math.round(e),"%"]})})]})})},Yx=(e,t)=>{"undefined"!=typeof window&&localStorage.setItem(e,t)},Zx=e=>{"undefined"!=typeof window&&localStorage.removeItem(e)},Jx=({config:e,onAuthSuccess:t,onAuthError:n,initialError:r})=>{const[o,a]=h.useState(""),[i,l]=h.useState(""),[s,c]=h.useState(!1),[u,d]=h.useState(r||null),p=!!e.authBackendUrl,f=!p,m=p;h.useEffect(()=>{if(!e.authBackendUrl)return;const n=new URLSearchParams(window.location.search),r=n.get("sessionToken"),o=n.get("websiteId");if(r&&o){"undefined"!=typeof window&&!1!==e.useLocalStorage&&(Yx("dqm_sessionToken",r),Yx("dqm_websiteID",o),Yx("dqm_sessionType","backend"),Zx("dqm_apiKey"));const n=window.location.origin+window.location.pathname;window.history.replaceState({},document.title,n),t({apiKey:"BACKEND_SESSION",websiteId:o,sessionToken:r,sessionType:"backend"})}},[e.authBackendUrl,e.useLocalStorage,t]);/* @__PURE__ */
268
+ return ot(_u,{sx:{display:"flex",flexDirection:"column",gap:3,p:3,width:"100%"},children:[
269
+ /* @__PURE__ */ot(_u,{sx:{textAlign:"center"},children:[
270
+ /* @__PURE__ */rt(Xg,{sx:{fontSize:50,color:"#711bc1",mb:2}}),
271
+ /* @__PURE__ */rt(Cs,{variant:"h5",gutterBottom:!0,fontWeight:700,children:"DQM Authentication"}),
272
+ /* @__PURE__ */rt(Cs,{variant:"body2",color:"text.secondary",children:"Please authenticate to access quality analysis"})]}),u&&/* @__PURE__ */rt(bs,{severity:"error",onClose:()=>d(null),children:u}),f&&/* @__PURE__ */ot(_u,{sx:{display:"flex",flexDirection:"column",gap:2},children:[
273
+ /* @__PURE__ */rt(Cs,{variant:"subtitle2",color:"text.secondary",children:"Enter credentials directly"}),
274
+ /* @__PURE__ */rt(Sh,{label:"Website ID",autoComplete:"username",value:i,onChange:e=>l(e.target.value),disabled:s,fullWidth:!0,required:!0,helperText:"Your website identifier"}),
275
+ /* @__PURE__ */rt(Sh,{label:"API Key",type:"password",value:o,onChange:e=>a(e.target.value),disabled:s,fullWidth:!0,required:!0,helperText:"Your Crownpeak DQM API key"}),
276
+ /* @__PURE__ */rt(Hu,{variant:"outlined",onClick:async()=>{if(o&&i){c(!0),d(null);try{if(!/^[\x00-\x7F]*$/.test(o))throw new Error("API key contains non-ASCII characters");if(e.authBackendUrl){const n=await fetch(`${e.authBackendUrl}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({apiKey:o,websiteId:i})});if(!n.ok){const e=await n.json().catch(()=>({}));throw new Error(e.message||`Authentication failed: ${n.statusText}`)}const r=await n.json();if(!r.sessionToken)throw new Error("Invalid response from authentication backend - missing session token");"undefined"!=typeof window&&!1!==e.useLocalStorage&&(Yx("dqm_sessionToken",r.sessionToken),Yx("dqm_sessionType","backend"),Zx("dqm_apiKey"),Zx("dqm_websiteID")),t({apiKey:"BACKEND_SESSION",websiteId:r.websiteId||"BACKEND_SESSION",sessionToken:r.sessionToken,sessionType:"backend"})}else"undefined"!=typeof window&&!1!==e.useLocalStorage&&(Yx("dqm_apiKey",o),Yx("dqm_websiteID",i),Yx("dqm_sessionType","direct"),Zx("dqm_sessionToken")),t({apiKey:o,websiteId:i,sessionType:"direct"})}catch(r){const e=r instanceof Error?r.message:"Authentication failed";d(e),n(r instanceof Error?r:new Error(e))}finally{c(!1)}}else d("Please enter both API Key and Website ID")},disabled:s||!o||!i,fullWidth:!0,size:"large",children:s?/* @__PURE__ */rt(ns,{size:24}):"Continue"})]}),m&&f&&/* @__PURE__ */rt(_d,{children:"OR"}),m&&/* @__PURE__ */rt(Hu,{variant:"contained",startIcon:/* @__PURE__ */rt(Qg,{}),onClick:()=>{if(e.authBackendUrl){c(!0),d(null);try{const t=window.location.href;"undefined"!=typeof window&&!1!==e.useLocalStorage&&Yx("dqm_return_url",t);const n=new URL(`${e.authBackendUrl}/auth/login`);n.searchParams.set("returnUrl",t),window.location.href=n.toString()}catch(t){const e=t instanceof Error?t.message:"Failed to redirect to login page";d(e),n(t instanceof Error?t:new Error(e)),c(!1)}}else d("Backend URL not configured")},disabled:s,fullWidth:!0,size:"large",sx:{background:"linear-gradient(135deg, #711bc1 0%, #8e44d6 100%)","&:hover":{background:"linear-gradient(135deg, #5a0f9a 0%, #7339b8 100%)"}},children:s?/* @__PURE__ */rt(ns,{size:24,color:"inherit"}):"Login with Backend Session"}),
277
+ /* @__PURE__ */ot(Cs,{variant:"caption",color:"text.secondary",sx:{textAlign:"center"},children:["Don't have credentials?"," ",
278
+ /* @__PURE__ */rt(kp,{href:"https://www.crownpeak.com/firstspirit/products/digital-accessibility/digital-accessibility-and-quality-management-dqm/",target:"_blank",children:"Get started with Crownpeak DQM"})]})]})},eS=({config:e,onAuthSuccess:t,onAuthError:n})=>(h.useEffect(()=>{(async()=>{const r=new URLSearchParams(window.location.search),o=r.get("code"),a=r.get("state"),i=r.get("error"),l=r.get("error_description");if(o||i||a)if(i)n(new Error(`OAuth2 Error: ${i} - ${l||"Unknown error"}`));else if(o){const r=sessionStorage.getItem("dqm_oauth_state");if(!a||a!==r)return void n(new Error("Invalid OAuth2 state - possible CSRF attack"));if(sessionStorage.removeItem("dqm_oauth_state"),e.authBackendUrl&&e.oauth2Config)try{const n=await fetch(`${e.authBackendUrl}/auth/oauth2/callback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:o,redirectUri:e.oauth2Config.redirectUri})});if(!n.ok)throw new Error(`Token exchange failed: ${n.statusText}`);const r=await n.json();if(!r.sessionToken)throw new Error("Invalid response from OAuth2 callback - missing session token");!1!==e.useLocalStorage&&(localStorage.setItem("dqm_sessionToken",r.sessionToken),localStorage.setItem("dqm_sessionType","backend"),localStorage.removeItem("dqm_apiKey"),localStorage.removeItem("dqm_websiteID")),t({apiKey:"BACKEND_SESSION",websiteId:r.websiteId||"BACKEND_SESSION",sessionToken:r.sessionToken,sessionType:"backend"}),window.history.replaceState({},document.title,window.location.pathname)}catch(s){n(s instanceof Error?s:new Error("OAuth2 callback processing failed"))}}})()},[e,t,n]),null),tS=e=>"undefined"==typeof window?null:localStorage.getItem(e),nS=e=>{"undefined"!=typeof window&&localStorage.removeItem(e)},rS={present:!1,rect:null,position:null,contentOffset:{top:0,bottom:0,left:0,right:0}};function oS(e,t){const{root:n,check:r,pollMs:o=0}=t||{},a=m.useCallback(()=>{const t=n??document,o=t.querySelector?.(e)??null;if(!(r?r(o):!!o)||!o)return rS;const a=o.getBoundingClientRect(),i=function(e){const t=window.innerWidth,n=window.innerHeight,r=e.width>=.9*t,o=e.height>=.9*n;if(r){if(e.top<=10)return"top";if(e.bottom>=n-10)return"bottom"}if(o){if(e.left<=10)return"left";if(e.right>=t-10)return"right"}return e.top<=10?"top":e.bottom>=n-10?"bottom":e.left<=10?"left":e.right>=t-10?"right":"center"}(a),l=function(e,t){const n={top:0,bottom:0,left:0,right:0};switch(t){case"top":n.top=e.height;break;case"bottom":n.bottom=e.height;break;case"left":n.left=e.width;break;case"right":n.right=e.width}return n}(a,i);return{present:!0,rect:{height:a.height,width:a.width,top:a.top,bottom:a.bottom,left:a.left,right:a.right},position:i,contentOffset:l}},[n,e,r]),[i,l]=m.useState(()=>a());return m.useEffect(()=>{let e=null;const t=()=>{null!=e&&cancelAnimationFrame(e),e=requestAnimationFrame(()=>{const e=a();l(t=>{return r=e,(n=t).present===r.present&&n.position===r.position&&(null===n.rect&&null===r.rect||null!==n.rect&&null!==r.rect&&n.rect.height===r.rect.height&&n.rect.width===r.rect.width&&n.rect.top===r.rect.top&&n.rect.bottom===r.rect.bottom&&n.rect.left===r.rect.left&&n.rect.right===r.rect.right&&n.contentOffset.top===r.contentOffset.top&&n.contentOffset.bottom===r.contentOffset.bottom&&n.contentOffset.left===r.contentOffset.left&&n.contentOffset.right===r.contentOffset.right)?t:e;var n,r})})},r=n??document.documentElement,i=new MutationObserver(t);i.observe(r,{childList:!0,subtree:!0,attributes:!0}),t(),window.addEventListener("load",t),window.addEventListener("resize",t);let s=null;return o&&o>0&&(s=window.setInterval(t,o)),()=>{i.disconnect(),null!=e&&cancelAnimationFrame(e),null!=s&&clearInterval(s),window.removeEventListener("load",t),window.removeEventListener("resize",t)}},[a,n,o]),i}const aS=Ka(ls,{shouldForwardProp:e=>"index"!==e})(({theme:e,index:t=0})=>({color:e.palette.text.secondary,position:"absolute",right:12+40*t,top:12,backgroundColor:"rgba(0, 0, 0, 0.04)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.16)"}})),iS=({open:e,onClose:t,onOpen:n,config:r,onAuthSuccess:o,onAuthError:a,debugHtml:i})=>{const[l,s]=h.useState("idle"),[c,u]=h.useState(null),[d,p]=h.useState(null),[f,g]=h.useState(null),[y,b]=h.useState(null),[v,w]=h.useState([]),[x,S]=h.useState(null),[k,C]=h.useState(!1),[E,T]=h.useState(null),[R,P]=h.useState(null),[A,M]=h.useState("direct"),[O,_]=h.useState(""),[N,I]=h.useState(null),[L,z]=h.useState(null),[$,D]=h.useState(!1),[j,F]=h.useState("browser"),[B,W]=h.useState(!1),[H,U]=h.useState(!1),[q,V]=h.useState(0),[K,G]=m.useState(()=>"undefined"==typeof window||"false"!==tS("dqm_quality_breakdown_expanded")),[X,Q]=h.useState(/* @__PURE__ */new Set),[Y,Z]=h.useState({}),[J,ee]=h.useState(0),[te,ne]=h.useState(0),[re,oe]=h.useState(0),[ae,ie]=h.useState(!0),le=m.useRef(null),se=m.useRef(!1),ce=m.useRef("browser"),ue=(e=>{const{selector:t,validateIframe:n=!0,pollMs:r=1e3,manualOffset:o}=e||{},a=null!=t&&""!==t,i=m.useCallback(e=>!!e&&(!n||"iframe"!==e.tagName.toLowerCase()||!!e.contentWindow),[n]),l=oS(a?t:"__disabled__",a?{check:i,pollMs:r}:{pollMs:0});if(!a)return{present:!1,height:0,width:0,position:null,contentOffset:{top:0,bottom:0,left:0,right:0},isManualOffset:!1};if(!l.present)return{present:!1,height:0,width:0,position:null,contentOffset:{top:0,bottom:0,left:0,right:0},isManualOffset:!1};if(o){const e={top:0,bottom:0,left:0,right:0};return e[o.position]=o.pixels,{present:!0,height:"top"===o.position||"bottom"===o.position?o.pixels:0,width:"left"===o.position||"right"===o.position?o.pixels:0,position:o.position,contentOffset:e,isManualOffset:!0}}return{present:l.present,height:l.rect?.height??0,width:l.rect?.width??0,position:l.position,contentOffset:l.contentOffset,isManualOffset:!1}})(r?.overlayConfig),de=!0===r?.disableLogout;h.useEffect(()=>{"true"===new URLSearchParams(window?.location?.search).get("dqm")&&n()},[window?.location?.search]),h.useEffect(()=>{(()=>{if(!0===r?.disabled)return C(!1),S("DQM is disabled. Permission denied."),void s("idle");if(r?.apiKey&&r?.websiteId)return T({apiKey:r.apiKey,websiteId:r.websiteId}),M("direct"),P(null),void C(!0);if("undefined"!=typeof window&&!1!==r?.useLocalStorage){if("backend"===tS("dqm_sessionType")){const e=tS("dqm_sessionToken");if(e)return P(e),M("backend"),T({apiKey:"BACKEND_SESSION",websiteId:"BACKEND_SESSION"}),void C(!0)}const e=tS("dqm_apiKey"),t=tS("dqm_websiteID");if(e&&t)return T({apiKey:e,websiteId:t}),M("direct"),P(null),void C(!0)}if(r?.authBackendUrl||r?.oauth2Config)return C(!1),void s("idle");C(!1),S("DQM is not configured. Please provide API credentials via props, localStorage, or configure an authentication backend."),s("idle")})()},[r]),h.useEffect(()=>{k&&E&&"idle"===l&&Se()},[k,E]);const pe=h.useCallback(e=>{T({apiKey:e.apiKey,websiteId:e.websiteId}),P(e.sessionToken||null),M(e.sessionType),C(!0),S(null),o&&o(e)},[o]),fe=h.useCallback(e=>{console.error("[DQM] Authentication error:",e),S(e.message),C(!1),a&&a(e)},[a]),he=h.useCallback(()=>{T(null),P(null),M("direct"),C(!1),"undefined"!=typeof window&&!1!==r?.useLocalStorage&&(nS("dqm_apiKey"),nS("dqm_websiteID"),nS("dqm_sessionToken"),nS("dqm_sessionType")),s("idle"),u(null),p(null),g(null),y&&(clearInterval(y),b(null))},[r?.useLocalStorage,y]),me=h.useCallback(e=>{if(0===J)return;let t=(re||te)-1;"next"===e?t=(t+1)%J:(t-=1,t<0&&(t=J-1)),ne(t+1),oe(0),V(e=>e+1)},[te,re,J]);h.useEffect(()=>{B||(ee(0),ne(0),se.current=!1)},[B]),h.useEffect(()=>{J>0&&0===te&&ne(1)},[J,te]),h.useEffect(()=>{try{window.parent?.postMessage({type:"DQM_DRAWER_STATE",payload:{open:e}},"*")}catch{}},[e]);const ge=h.useCallback(e=>{console.error("[DQM] API authentication error:",e),C(!1),S("Authentication required. Please refresh the page.")},[]),ye=h.useCallback(()=>"backend"===A&&r?.authBackendUrl?r.authBackendUrl:"https://api.crownpeak.net/dqm-cms/v1",[A,r?.authBackendUrl]),be=h.useCallback(()=>{const e={"Content-Type":"application/json"};if("backend"===A){const t=R||tS("dqm_sessionToken");t&&(e.Authorization=`Bearer ${t}`)}else{const t=E?.apiKey||tS("dqm_apiKey");t&&(e["x-api-key"]=t)}return e},[A,R,E]),ve=e=>{if(!/^[\x00-\x7F]*$/.test(e))throw new Error("API key contains non-ASCII characters and cannot be used in HTTP headers")},we=async(e,t=0)=>{try{const t=ye(),r=be();let o;if("backend"===A)o=`${t}/dqm/assets/${e}/status`;else{const r=E?.apiKey||tS("dqm_apiKey");if(!r)throw new Error("DQM API key not available for polling");try{ve(r)}catch(n){throw new Error(`Invalid API key: ${n instanceof Error?n.message:"encoding error"}`)}const a=encodeURIComponent(r);o=`${t}/assets/${e}/status?apiKey=${a}`}const a=(await Pg.get(o,{headers:r,timeout:1e4})).data,i=a.checkpoints&&Array.isArray(a.checkpoints);if(i&&void 0!==a.totalCheckpoints&&a.checkpoints.length===a.totalCheckpoints)y&&(clearInterval(y),b(null)),u({assetId:a.assetId||a.id,created:a.created,siteName:a.siteName,totalCheckpoints:a.totalCheckpoints,totalErrors:a.totalErrors,checkpoints:a.checkpoints||[]}),w(Object.entries(ke(a.checkpoints||[]))),s("completed"),g(null);else if("failed"===a.status||"error"===a.status)y&&(clearInterval(y),b(null)),p(a.error||a.message||"Analysis failed with unknown error"),w([]),s("error"),g(null);else{i&&a.checkpoints.length,a.totalCheckpoints;d&&p(null)}}catch(r){if(console.error("[DQM] Polling failed:",r),Pg.isAxiosError(r)&&401===r.response?.status)return void ge(r);if(t<30){const n=Math.min(2e3*Math.pow(1.5,t),1e4);setTimeout(()=>we(e,t+1),n)}else y&&(clearInterval(y),b(null)),p("Analysis polling failed after maximum attempts"),w([]),s("error"),g(null)}},xe=()=>{y&&(clearInterval(y),b(null)),g(null)};h.useEffect(()=>()=>{xe()},[]),h.useEffect(()=>{e&&Se()},[e]);const Se=async()=>{s("analyzing"),p(null),S(null),u(null);try{if("backend"===A){if(!(R||tS("dqm_sessionToken")))return s("idle"),void console.warn("[DQM] Cannot start analysis: No session token available")}else{const t=E?.apiKey||tS("dqm_apiKey"),n=E?.websiteId||tS("dqm_websiteID");if(!t||!n)return s("idle"),void console.warn("[DQM] Cannot start analysis: No credentials available");try{ve(t)}catch(e){throw new Error(`Invalid API key: ${e instanceof Error?e.message:"encoding error"}`)}}let t;i?(console.warn("[DQM] DEBUG MODE: Using custom HTML from debugHtml prop"),t=i):t=document.documentElement.outerHTML;const n=(e=>{const t=(new DOMParser).parseFromString(e,"text/html");[".MuiDrawer-root","#dqm-widget-host",'[data-block-handle="dqm_quality_analysis"]',"#dqm-quality-analysis-script","#PBarNextFrameWrapper"].forEach(e=>{try{t.querySelectorAll(e).forEach(e=>e.remove())}catch(n){console.warn("[DQM] Could not process selector:",e,n.message)}});const n=t.documentElement.outerHTML,r=e.length,o=n.length;return((r-o)/r*100).toFixed(1),o>1048576&&console.warn(`[DQM] Optimized HTML still large: ${(o/1024/1024).toFixed(1)}MB`),n})(t),r=ye(),o=be();let a,l;if("backend"===A)a=`${r}/dqm/assets`,l={html:n,url:window.location.href};else{const e=E?.apiKey||tS("dqm_apiKey"),t=E?.websiteId||tS("dqm_websiteID");a=`${r}/assets?apiKey=${encodeURIComponent(e)}`,l={websiteId:t,content:n,contentType:"text/html; charset=UTF-8",title:document.title,timestamp:/* @__PURE__ */(new Date).toISOString()},o["Content-Type"]="application/x-www-form-urlencoded"}const c=await Pg.post(a,l,{headers:o,timeout:3e4}),u=c.data?.assetId||c.data?.id;if(!u)throw new Error("No Asset ID returned from API");g(u),(e=>{y&&clearInterval(y),we(e);const t=setInterval(()=>{f?we(e):(clearInterval(t),b(null))},3e3);b(t)})(u)}catch(t){if(console.error("[DQM] Analysis failed:",t),Pg.isAxiosError(t)&&401===t.response?.status)return ge(t),void s("error");let e="Unknown error occurred";Pg.isAxiosError(t)?e=t.response?.data?.message||t.message||"API request failed":t instanceof Error&&(e=t.message),p(e),w([]),s("error"),xe()}},ke=e=>{const t=e.reduce((e,t)=>(e[t.category]||(e[t.category]=[]),e[t.category].push(t),e),{});return Object.entries(t).forEach(([e,n])=>{n.forEach(n=>{n.colors=Xx(e,Object.keys(t))})}),t},Ce=async(e,t,n="browser")=>{_(""),D(!0),I(t),F(n),W(!0),Z(e=>({...e,[t]:{browser:"",source:""}})),ce.current=n;const r=c?.checkpoints.find(e=>e.id===t)||null;z(r);try{const a=ye(),i=be();let l,s;if("backend"===A)l=`${a}/dqm/assets/${e}/pagehighlight/${t}?highlightSource=false`,s=`${a}/dqm/assets/${e}/pagehighlight/${t}?highlightSource=true`;else{const n=E?.apiKey||tS("dqm_apiKey");if(!n)throw new Error("DQM API key not found");try{ve(n)}catch(o){throw new Error(`Invalid API key: ${o instanceof Error?o.message:"encoding error"}`)}const r=encodeURIComponent(n);l=`${a}/assets/${e}/errors/${t}?apiKey=${r}&highlightSource=false`,s=`${a}/assets/${e}/errors/${t}?apiKey=${r}&highlightSource=true`}const u=r?.canHighlight.page&&await Pg.get(l,{headers:i,timeout:15e3,responseType:"text"})||void 0,d=r?.canHighlight.source&&await Pg.get(s,{headers:i,timeout:15e3,responseType:"text"})||void 0,p=u?.data||"<p>No highlighted content available.</p>",f=d?.data||"<p>No source content available for this checkpoint.</p>";Z(e=>({...e,[t]:{browser:p,source:f}})),"browser"===n&&r?.canHighlight?.page&&c?Te(c.assetId,r.id):"source"===n&&r?.canHighlight?.source&&c&&Ee(c.assetId,r.id)}catch(a){console.error("[DQM] Failed to fetch highlighted content:",a),_('<p style="color: #dc3545;">Failed to load highlighted content. Please try again.</p>')}finally{D(!1)}},Ee=async(e,t)=>{const n=Y[t];if(n&&n.source)_(n.source);else{console.warn("[DQM] Source view not in cache for checkpoint:",t,", fetching..."),D(!0);try{const n=ye(),o=be();let a;if("backend"===A)a=`${n}/dqm/assets/${e}/pagehighlight/${t}?highlightSource=true`;else{const o=E?.apiKey||tS("dqm_apiKey");if(!o)throw new Error("DQM API key not found");try{ve(o)}catch(r){throw new Error(`Invalid API key: ${r instanceof Error?r.message:"encoding error"}`)}const i=encodeURIComponent(o);a=`${n}/assets/${e}/errors/${t}?apiKey=${i}&highlightSource=true`}const i=await Pg.get(a,{headers:o,timeout:15e3,responseType:"text"});if(i.data){const e=i.data;_(e),Z(n=>({...n,[t]:{...n[t],source:e}}))}else console.warn("[DQM] No highlighted content in response"),_("<p>No highlighted content available.</p>")}catch(o){console.error("[DQM] Failed to fetch source view:",o),_('<p style="color: #dc3545;">Failed to load source view. Please try again.</p>')}finally{D(!1)}}},Te=async(e,t)=>{const n=Y[t];if(n&&n.browser)_(n.browser);else{console.warn("[DQM] Browser view not in cache for checkpoint:",t,", fetching..."),D(!0);try{const n=ye(),o=be();let a;if("backend"===A)a=`${n}/dqm/assets/${e}/pagehighlight/${t}?highlightSource=false`;else{const o=E?.apiKey||tS("dqm_apiKey");if(!o)throw new Error("DQM API key not found");try{ve(o)}catch(r){throw new Error(`Invalid API key: ${r instanceof Error?r.message:"encoding error"}`)}const i=encodeURIComponent(o);a=`${n}/assets/${e}/errors/${t}?apiKey=${i}&highlightSource=false`}const i=await Pg.get(a,{headers:o,timeout:15e3,responseType:"text"});if(i.data){const e=i.data;_(e),Z(n=>({...n,[t]:{...n[t],browser:e}}))}else console.warn("[DQM] No highlighted content in response"),_("<p>No highlighted content available.</p>")}catch(o){console.error("[DQM] Failed to restore browser view:",o),_('<p style="color: #dc3545;">Failed to load browser view. Please try again.</p>')}finally{D(!1)}}};/* @__PURE__ */
279
+ return ot(ti,{theme:Wa({palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#f50057"},background:{default:"#fafafa"}},typography:{fontFamily:'Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif',htmlFontSize:18,fontSize:18,h6:{fontSize:"22px"},h5:{fontSize:"24px"},h4:{fontSize:"26px"},h3:{fontSize:"28px"},h2:{fontSize:"30px"},h1:{fontSize:"32px"},subtitle2:{fontSize:"19px"},subtitle1:{fontSize:"18px"},body1:{fontSize:"18px"},body2:{fontSize:"17px"},button:{fontSize:"17px"}},shape:{borderRadius:8},components:{MuiDialog:{styleOverrides:{root:{zIndex:999999}},defaultProps:{disablePortal:r?.shadowDomMode??!1}},MuiPopper:{defaultProps:{disablePortal:r?.shadowDomMode??!1}},MuiTooltip:{defaultProps:{PopperProps:{disablePortal:r?.shadowDomMode??!1}}},MuiModal:{defaultProps:{disablePortal:r?.shadowDomMode??!1}},MuiFab:{styleOverrides:{root:{zIndex:999999}}},MuiBackdrop:{styleOverrides:{root:{zIndex:999998}}}}}),children:[
280
+ /* @__PURE__ */rt(di,{}),
281
+ /* @__PURE__ */rt(Kf,{title:"DQM Quality Analysis",placement:"left",children:/* @__PURE__ */rt(iy,{overlayInfo:ue,onClick:()=>e?t():n(),"aria-label":"DQM Quality Analysis",style:{opacity:e?0:1,position:"fixed",zIndex:1400,transform:e?"translateX(80px)":"none",transition:"opacity 0.15s ease-in-out, transform 0.25s ease-in-out",pointerEvents:e?"none":"auto"},children:/* @__PURE__ */rt(ty,{sx:{fontSize:22}})})}),
282
+ /* @__PURE__ */rt(ly,{overlayInfo:ue,anchor:"right",open:e,onClose:t,variant:"temporary",elevation:16,ModalProps:{keepMounted:!1,disablePortal:r?.shadowDomMode??!1,disableScrollLock:!1,hideBackdrop:!1},children:k?/* @__PURE__ */ot(nt,{children:[
283
+ /* @__PURE__ */ot(sy,{children:[
284
+ /* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",gap:1.5,justifyContent:"center",width:"100%",children:/* @__PURE__ */ot(Cs,{variant:"h6",component:"h1",fontWeight:700,flexDirection:"row",alignItems:"center",display:"flex",gap:"0.5rem",children:[
285
+ /* @__PURE__ */rt("img",{width:24,height:24,style:{marginRight:"0.5rem"},src:"https://app-assets.gadget.dev/a/255812/505265/assets/dqm.svg",alt:"Crownpeak DQM"}),"Digital Quality and Accessibility"]})}),!de&&/* @__PURE__ */rt(Kf,{title:"Logout",children:/* @__PURE__ */rt(aS,{index:1,onClick:he,"aria-label":"Logout",children:/* @__PURE__ */rt(Yg,{})})}),
286
+ /* @__PURE__ */rt(aS,{onClick:t,"aria-label":"Close sidebar",children:/* @__PURE__ */rt(Kg,{})})]}),
287
+ /* @__PURE__ */rt(cy,{children:/* @__PURE__ */ot(kh,{children:["idle"===l&&k&&/* @__PURE__ */ot(_u,{p:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"400px",children:[
288
+ /* @__PURE__ */rt(Cs,{variant:"h5",fontWeight:600,gutterBottom:!0,color:"text.secondary",textAlign:"center",children:"Ready to Analyze"}),
289
+ /* @__PURE__ */rt(Cs,{variant:"body1",color:"text.secondary",textAlign:"center",sx:{maxWidth:400,mb:3},children:'Click "Run Quality Check" to analyze the current page for accessibility and quality issues.'}),
290
+ /* @__PURE__ */rt(_u,{component:"svg",sx:{width:"120px",height:"120px",opacity:.3},viewBox:"0 0 24 24",children:/* @__PURE__ */rt("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z"})})]}),"analyzing"===l&&/* @__PURE__ */rt(hy,{expanded:K}),"error"===l&&x&&/* @__PURE__ */rt(_u,{children:/* @__PURE__ */ot(bs,{severity:x.includes("Permission denied")?"warning":"error",children:[
291
+ /* @__PURE__ */rt(Cs,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:x.includes("Permission denied")?"Access Denied":x.includes("not configured")?"Configuration Required":"Authentication Error"}),
292
+ /* @__PURE__ */rt(Cs,{variant:"body2",color:"text.secondary",children:x})]})}),"error"===l&&!x&&/* @__PURE__ */rt(_u,{children:/* @__PURE__ */ot(bs,{severity:"error",action:/* @__PURE__ */rt(Hu,{color:"inherit",size:"small",onClick:Se,startIcon:/* @__PURE__ */rt(Jg,{}),sx:{textTransform:"none",fontWeight:"bolder",fontSize:"1rem"},children:"Retry"}),children:[
293
+ /* @__PURE__ */rt(Cs,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:"Analysis Failed"}),
294
+ /* @__PURE__ */rt(Cs,{variant:"body2",color:"text.secondary",children:d})]})}),"completed"===l&&c&&/* @__PURE__ */ot(_u,{children:[
295
+ /* @__PURE__ */ot(dy,{children:[
296
+ /* @__PURE__ */rt(Cs,{variant:"h6",fontWeight:700,gutterBottom:!0,sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:"Overall Quality"}),
297
+ /* @__PURE__ */ot(_u,{display:"flex",alignItems:"center",justifyContent:"flex-start ",columnGap:"60px",pt:2,children:[
298
+ /* @__PURE__ */ot(_u,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,children:[
299
+ /* @__PURE__ */rt(Qx,{value:(Re=c,Re.totalCheckpoints&&0!==Re.totalCheckpoints?Math.round((Re.totalCheckpoints-Re.totalErrors)/Re.totalCheckpoints*100):0)}),
300
+ /* @__PURE__ */ot(_u,{children:[
301
+ /* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,mb:1,flexDirection:"column",children:/* @__PURE__ */ot(Cs,{color:"text.primary",fontSize:"12px",fontWeight:400,sx:{color:"gray",textAlign:"center"},children:["Passed",
302
+ /* @__PURE__ */rt("p",{style:{margin:0,fontWeight:600,fontSize:"26px",color:"#28a745"},children:c.totalCheckpoints-c.totalErrors})]})}),
303
+ /* @__PURE__ */rt("hr",{style:{width:"100%",border:"1px solid #e0e0e0",margin:"10px 0px 10px 0px"}}),
304
+ /* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,children:/* @__PURE__ */ot(Cs,{fontSize:"12px",fontWeight:400,sx:{color:"gray",textAlign:"center"},children:[
305
+ /* @__PURE__ */rt("p",{style:{margin:0,fontWeight:600,fontSize:"26px",color:"#dc3545"},children:c.totalErrors}),"Failed"]})})]})]}),
306
+ /* @__PURE__ */rt(_u,{display:"flex",justifyContent:"center",mt:3,children:/* @__PURE__ */ot(Hu,{variant:"outlined",size:"large",onClick:async()=>{if(c){U(!0);try{const t=ye(),n=be();let r;if("backend"===A)r=`${t}/dqm/assets/${c.assetId}/pagehighlight/all`;else{const n=E?.apiKey||tS("dqm_apiKey");if(!n)throw new Error("DQM API key not found");try{ve(n)}catch(e){throw new Error(`Invalid API key: ${e instanceof Error?e.message:"encoding error"}`)}const o=encodeURIComponent(n);r=`${t}/assets/${c.assetId}/pagehighlight/all?apiKey=${o}`}const o=await Pg.get(r,{headers:n,timeout:3e4,responseType:"text"});if(o.data){const e=o.data,t=window.open("","_blank");if(t){const n=new DOMParser,r=n.parseFromString(e,"text/html").documentElement;r.getElementsByTagName("body")[0].style.overflow="auto",t.document.open(),t.document.write(r.outerHTML),t.document.close(),setTimeout(()=>{const e=t.document.createElement("style");e.textContent="\n [data-dqm-id] {\n animation: pulse 1.5s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 0%, 100% {\n background-color: rgba(255, 255, 0, 0.3);\n border-color: #dc3545;\n }\n 50% {\n background-color: rgba(255, 255, 0, 0.6);\n border-color: #ff6666;\n }\n }\n ",t.document.head.appendChild(e)},100)}}else console.warn("[DQM] No content in response"),alert("Failed to load page with all errors. Please try again.")}catch(t){console.error("[DQM] Failed to fetch page with all errors:",t),alert("Failed to load page with all errors. Please try again.")}finally{U(!1)}}else console.error("[DQM] No analysis data available")},disabled:H,sx:{borderRadius:2,py:1,mb:3,fontSize:"17px",textTransform:"none"},children:[H?/* @__PURE__ */rt(ns,{size:24,sx:{mr:1}}):null,"Show Page with all Errors"]})})]})]}),
307
+ /* @__PURE__ */ot(vl,{expanded:K,onChange:()=>{G(!K),localStorage.setItem("dqm_quality_breakdown_expanded",(!K).toString())},sx:{borderRadius:"10px !important",marginBottom:2,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)","&:before":{display:"none"},overflowX:"visible"},children:[
308
+ /* @__PURE__ */ot(Wl,{expandIcon:/* @__PURE__ */rt(Gg,{}),sx:{paddingX:3,"& .MuiAccordionSummary-content":{alignItems:"center",overflow:"scroll",justifyContent:"flex-start",paddingY:2,marginRight:3}},children:[
309
+ /* @__PURE__ */rt(Cs,{variant:"h6",fontWeight:700,sx:{flexShrink:0},children:"Quality Breakdown"}),
310
+ /* @__PURE__ */rt(_u,{display:"flex",justifyContent:"center",gap:1,mx:2,px:2.5,sx:{".MuiAccordionSummary-root:not(.Mui-expanded) &":{opacity:1,width:48*v.length,transition:"opacity 0.3s ease 300ms, width 0s ease 0s"},".MuiAccordionSummary-root.Mui-expanded &":{opacity:0,width:0,pointerEvents:"none",transition:"opacity 300ms ease 50ms, width 1250ms ease 200ms"}},children:ay(v,[([e,t])=>t.filter(e=>e.failed).length/t.length]).reverse().map(([e,t])=>{const n=t.filter(e=>e.failed).length,r=t.length-n,o=t[0]?.colors.bg,a=Math.round(r/t.length*100);/* @__PURE__ */
311
+ return rt(Kf,{title:/* @__PURE__ */ot(_u,{sx:{p:.5},display:"flex",flexDirection:"column",alignItems:"center",children:[
312
+ /* @__PURE__ */rt(Cs,{variant:"body2",fontWeight:600,sx:{mb:.5},children:e}),
313
+ /* @__PURE__ */ot(Cs,{variant:"caption",display:"block",children:[a,"% passed"]}),
314
+ /* @__PURE__ */rt(Cs,{variant:"caption",display:"block",children:0===n?"All Passed":`${r} of ${t.length} passed`})]}),placement:"top",arrow:!0,children:/* @__PURE__ */rt(ns,{variant:"determinate",enableTrackSlot:!0,value:a,size:40,thickness:4,sx:{color:o,top:0,left:0}})},e)})})]}),
315
+ /* @__PURE__ */rt(Sl,{sx:{padding:3,paddingTop:0},children:/* @__PURE__ */rt(py,{children:/* @__PURE__ */rt(_u,{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1,children:ay(v,[([e,t])=>t.filter(e=>e.failed).length/t.length]).reverse().map(([e,t])=>{const n=t.filter(e=>e.failed).length,r=t.length-n,o=t[0]?.colors.bg;/* @__PURE__ */
316
+ return ot(_u,{display:"flex",alignItems:"center",flexDirection:"column",gap:1,width:"200px",children:[
317
+ /* @__PURE__ */ot(_u,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[
318
+ /* @__PURE__ */rt(ns,{enableTrackSlot:!0,variant:"determinate",value:r/t.length*100,size:"100px",thickness:4,sx:{color:o,"& .MuiCircularProgress-circleNegative":{stroke:"#e0e0e0"}}}),
319
+ /* @__PURE__ */ot(Cs,{variant:"h6",component:"div",color:o,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontWeight:700},children:[Math.round(r/t.length*100),"%"]})]}),
320
+ /* @__PURE__ */ot(Cs,{component:"div",fontWeight:"bold",color:"gray",sx:{fontSize:"1rem",textAlign:"center",fontWeight:600},children:[e,
321
+ /* @__PURE__ */rt(Cs,{component:"div",fontWeight:"bold",color:"gray",pb:4,sx:{fontSize:"0.75rem",textAlign:"center",fontWeight:600},children:/* @__PURE__ */rt(Cs,{component:"span",fontWeight:400,color:n>0?"#dc3545":"#28a745",children:0===n?"All Passed":`${r} of ${t.length} Passed`})})]})]},e)})})})})]}),c.checkpoints.some(e=>e.failed)&&/* @__PURE__ */ot(nt,{children:[
322
+ /* @__PURE__ */ot(Cs,{variant:"h4",fontWeight:600,gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:4},children:["Failed Checkpoints (",c.checkpoints.filter(e=>e.failed).length,")"]}),
323
+ /* @__PURE__ */rt(_u,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:/* @__PURE__ */ot(Vu,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[
324
+ /* @__PURE__ */ot(_u,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[
325
+ /* @__PURE__ */ot(Cs,{variant:"body2",color:"text.secondary",fontWeight:600,children:["Filter by Category · Showing ",X.size>0?X.size:"all"," of ",Object.keys(v).length," categories"]}),
326
+ /* @__PURE__ */rt(Hu,{size:"small",onClick:()=>Q(/* @__PURE__ */new Set),sx:{textTransform:"none",fontWeight:600,opacity:0===X.size?0:1,transition:"opacity 0.2s ease-in-out"},children:"Show All"})]}),
327
+ /* @__PURE__ */rt(_u,{display:"flex",gap:1,flexWrap:"nowrap",sx:{overflowX:"scroll",pb:2.5,pt:1},children:ay(v,[([e,t])=>t.filter(e=>e.failed).length/t.length]).filter(([,e])=>e.some(e=>e.failed)).reverse().map(([e,t])=>{const n=t.filter(e=>e.failed).length,{bg:r,text:o}=t[0]?.colors||{},a=X.has(e);/* @__PURE__ */
328
+ return rt(Jc,{label:`${e} (${n})`,onClick:()=>{Q(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},sx:{backgroundColor:a?r:"transparent",color:a?o:0===X.size?r:"#555555",border:`2px solid ${a||0===X.size?r:"#B1B1B1"}`,fontWeight:600,fontSize:"0.875rem",cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:r,color:o,transform:"translateY(-2px)",boxShadow:`0 4px 8px ${r}40`,border:`2px solid ${r}`}}},e)})})]})}),
329
+ /* @__PURE__ */rt(_u,{sx:{minHeight:"calc(100vh - 320px)"},children:/* @__PURE__ */rt(fy,{children:/* @__PURE__ */rt(Rp,{sx:{p:0},children:ay(v,[([e,t])=>t.filter(e=>e.failed).length/t.length]).reverse().filter(([e,t])=>(0===X.size||X.has(e))&&t.some(e=>e.failed)).map(([e,t])=>/* @__PURE__ */rt(nt,{children:t.filter(({failed:e})=>e).map(e=>{const{bg:t}=e.colors;/* @__PURE__ */
330
+ return rt(Lp,{sx:{px:0,py:1.5,alignItems:"flex-start"},children:/* @__PURE__ */ot(_u,{mt:.5,children:[
331
+ /* @__PURE__ */rt(Cs,{variant:"h5",component:"div",fontWeight:600,mb:1.5,children:e.name}),
332
+ /* @__PURE__ */ot(_u,{display:"flex",gap:1,flexWrap:"wrap",mb:2,children:[e?.canHighlight.page&&/* @__PURE__ */rt(Hu,{variant:"outlined",size:"small",startIcon:/* @__PURE__ */rt(ny,{}),onClick:()=>{I(e.id),Ce(c.assetId,e.id,"browser")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View in Browser"}),e?.canHighlight.source&&/* @__PURE__ */rt(Hu,{variant:"outlined",size:"small",startIcon:/* @__PURE__ */rt(ny,{}),onClick:()=>{I(e.id),Ce(c.assetId,e.id,"source")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View Source"}),
333
+ /* @__PURE__ */rt(Cs,{variant:"body2",color:t,mr:2,ml:e?.canHighlight.source||e?.canHighlight.page?1:0,sx:{fontSize:"0.875rem",alignSelf:"center"},children:e.category}),e.topics?.map(e=>/* @__PURE__ */rt(Cs,{variant:"body2",color:"text.secondary",mr:2,sx:{fontSize:"0.875rem",alignSelf:"center"},children:e},e))]}),
334
+ /* @__PURE__ */rt(fv,{html:e.description||""})]})},e.id)})}))})})})]})]})]})}),
335
+ /* @__PURE__ */rt(uy,{children:/* @__PURE__ */rt(Hu,{onClick:Se,variant:"contained",size:"large",fullWidth:!0,disabled:"analyzing"===l||!k||!!x,sx:{borderRadius:2,py:1,fontWeight:600,textTransform:"none",background:"linear-gradient(156deg, #b604d4 0%, #e38ef2 100%)","&:hover":{background:"linear-gradient(156deg, #9800b1 0%, #d091db 100%)"},fontSize:"17px",transition:"background 0.3s ease","&:disabled":{background:"#e0e0e0",color:"#9e9e9e"}},children:"analyzing"===l?"Analyzing...":"Run Quality Check"})}),
336
+ /* @__PURE__ */ot(xd,{open:B,onClose:()=>W(!1),maxWidth:"xl",fullWidth:!0,PaperProps:{style:{borderRadius:12,padding:24,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.2)"}},children:[
337
+ /* @__PURE__ */ot(Pd,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 24px",borderBottom:"1px solid #e0e0e0"},children:[
338
+ /* @__PURE__ */rt(Cs,{variant:"h6",fontWeight:700,color:"text.primary",children:"Highlighted Errors"}),
339
+ /* @__PURE__ */rt(ls,{onClick:()=>W(!1),sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Close",children:/* @__PURE__ */rt(Kg,{})})]}),
340
+ /* @__PURE__ */rt(Td,{dividers:!0,sx:{padding:"16px 24px",borderBottom:"none"},children:/* @__PURE__ */ot(_u,{flexDirection:"row",display:"flex",gap:2,children:[L&&/* @__PURE__ */ot(_u,{width:"20%",sx:{maxHeight:"calc(100vh - 300px)",height:"calc(100vh - 300px)",overflowY:"auto"},children:[
341
+ /* @__PURE__ */rt(Cs,{variant:"h6",component:"div",fontWeight:600,mb:2,children:L.name}),
342
+ /* @__PURE__ */ot(_u,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[L.colors&&/* @__PURE__ */rt(Jc,{label:L.category,size:"medium",sx:{backgroundColor:L.colors.bg,color:L.colors.text,fontWeight:600,fontSize:"1rem"}}),L.topics?.map(e=>/* @__PURE__ */rt(Jc,{label:e,size:"medium",variant:"outlined",sx:{fontSize:"1rem"}},e))]}),
343
+ /* @__PURE__ */rt(_u,{sx:{fontSize:"0.95rem",lineHeight:1.6},children:/* @__PURE__ */rt(fv,{html:L.description||""})})]}),
344
+ /* @__PURE__ */ot(_u,$||!O?{sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,width:"80%"},children:[
345
+ /* @__PURE__ */ot(_u,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:"#fff",borderBottom:1,borderColor:"divider",mb:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[
346
+ /* @__PURE__ */ot(_u,{display:"flex",gap:2,alignItems:"center",children:[
347
+ /* @__PURE__ */rt($f,{variant:"rectangular",width:130,height:40,sx:{borderRadius:1}}),
348
+ /* @__PURE__ */rt($f,{variant:"rectangular",width:120,height:40,sx:{borderRadius:1}})]}),
349
+ /* @__PURE__ */ot(_u,{display:"flex",gap:1,alignItems:"center",mr:2,children:[
350
+ /* @__PURE__ */rt($f,{variant:"rectangular",width:60,height:24,sx:{borderRadius:1}}),
351
+ /* @__PURE__ */rt($f,{variant:"circular",width:32,height:32}),
352
+ /* @__PURE__ */rt($f,{variant:"circular",width:32,height:32}),
353
+ /* @__PURE__ */rt($f,{variant:"circular",width:32,height:32}),
354
+ /* @__PURE__ */rt($f,{variant:"circular",width:32,height:32})]})]}),
355
+ /* @__PURE__ */rt(_u,{sx:{minHeight:400},children:/* @__PURE__ */rt(_u,{display:"flex",alignItems:"center",justifyContent:"center",height:400,children:/* @__PURE__ */ot(_u,{textAlign:"center",children:[
356
+ /* @__PURE__ */rt(ns,{size:48,sx:{color:"#c653ff",mb:2}}),
357
+ /* @__PURE__ */rt(Cs,{variant:"body2",color:"text.secondary",children:"Loading both views..."})]})})})]}:{ref:le,sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,height:"calc(100vh - 300px)",maxHeight:"calc(100vh - 300px)",overflow:"auto",width:L?"80%":"100%"},children:[
358
+ /* @__PURE__ */ot(_u,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:"#fff",borderBottom:1,borderColor:"divider",mb:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[
359
+ /* @__PURE__ */ot(bh,{value:j,onChange:(e,t)=>{F(t),"browser"===t&&L?.canHighlight?.page&&c?Te(c.assetId,L.id):"source"===t&&L?.canHighlight?.source&&c&&Ee(c.assetId,L.id)},sx:{"& .MuiTab-root":{textTransform:"none",fontWeight:600,fontSize:"0.95rem"}},children:[
360
+ /* @__PURE__ */rt(Zf,{label:"Browser View",value:"browser",sx:{display:L?.canHighlight.page?"inline-flex":"none"}}),
361
+ /* @__PURE__ */rt(Zf,{label:"Source View",value:"source",sx:{display:L?.canHighlight.source?"inline-flex":"none"}})]}),
362
+ /* @__PURE__ */ot(_u,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[J>0&&/* @__PURE__ */ot(nt,{children:[
363
+ /* @__PURE__ */ot(Cs,{variant:"body2",sx:{color:"text.secondary",fontWeight:600,fontSize:"0.875rem",minWidth:"60px",textAlign:"center"},children:[re||te||1," of ",J]}),
364
+ /* @__PURE__ */rt(ls,{size:"small",onClick:()=>me("prev"),disabled:0===J,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Previous highlight",children:/* @__PURE__ */rt(qg,{fontSize:"small"})}),
365
+ /* @__PURE__ */rt(ls,{size:"small",onClick:()=>me("next"),disabled:0===J,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Next highlight",children:/* @__PURE__ */rt(Vg,{fontSize:"small"})})]}),
366
+ /* @__PURE__ */rt(ls,{size:"small",onClick:()=>Ce(c.assetId,N,j),sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Reload highlights",children:/* @__PURE__ */rt(ey,{fontSize:"small"})}),
367
+ /* @__PURE__ */rt(Kf,{title:"Open in new tab",placement:"top",children:/* @__PURE__ */rt(ls,{size:"small",onClick:()=>{const e=window.open("","_blank");if(e){const t=(new DOMParser).parseFromString(O,"text/html").documentElement;t.getElementsByTagName("body")[0].style.overflow="auto",e.document.open(),e.document.write(t.outerHTML),e.document.close(),setTimeout(()=>{const t=e.document.querySelectorAll([".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"].join(", "));if(t.length>0){const e=t[0];e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.add("animate"),setTimeout(()=>{e.classList.remove("animate")},800)}else console.warn("[DQM] No highlights found in new tab")},500)}},sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Open in new tab",children:/* @__PURE__ */rt(Zg,{fontSize:"small"})})}),"browser"===j&&/* @__PURE__ */rt(Kf,{title:ae?"Enable JavaScript":"Disable JavaScript",placement:"top",children:/* @__PURE__ */rt(ls,{size:"small",onClick:()=>ie(!ae),sx:{color:ae?"text.secondary":"primary.main","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":ae?"Enable JavaScript":"Disable JavaScript",children:/* @__PURE__ */ot("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[
368
+ /* @__PURE__ */rt("path",{d:"M16 18L22 12L16 6"}),
369
+ /* @__PURE__ */rt("path",{d:"M8 6L2 12L8 18"})]})})})]})]}),
370
+ /* @__PURE__ */rt(_u,{sx:{minHeight:400},children:"browser"===j?/* @__PURE__ */rt(my,{html:O,currentHighlight:te,clickedIndicator:q,onHighlightsFound:ee,onVisibleHighlightChange:oe,scriptsDisabled:ae}):/* @__PURE__ */rt(gy,{html:O,onHighlightsFound:ee,currentHighlight:te,shouldAutoScrollToFirst:!se.current,clickedIndicator:q,onVisibleHighlightChange:oe,scrollContainerRef:le})})]})]})})]})]}):/* @__PURE__ */ot(_u,{sx:{width:"730px",height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#f5f5f5",overflow:"auto"},children:[r?.oauth2Config&&/* @__PURE__ */rt(eS,{config:r,onAuthSuccess:pe,onAuthError:fe}),
371
+ /* @__PURE__ */ot(_u,{sx:{background:"linear-gradient(135deg, #711bc1 0%, #8e44d6 100%)",color:"white",py:4,px:3,textAlign:"center",boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:[
372
+ /* @__PURE__ */ot("svg",{style:{width:"24px",height:"24px",marginBottom:"1rem"},"aria-label":"Crownpeak Digital Quality & Accessibility Analysis",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",children:[
373
+ /* @__PURE__ */rt("path",{d:"M18.84,250c0-4.39,1.18-8.74,3.39-12.55L125.16,60.82c4.51-7.75,12.92-12.54,21.92-12.54h205.84c9.03,0,17.41,4.79,21.92,12.54l102.92,176.63c2.21,3.8,3.39,8.16,3.39,12.55,0,4.39-1.18,8.74-3.39,12.54l-102.92,176.64c-4.51,7.75-12.92,12.55-21.92,12.55h-205.84c-9.03,0-17.41-4.8-21.92-12.55L22.24,262.55c-2.21-3.8-3.39-8.16-3.39-12.54ZM12.5,250c0,5.41,1.42,10.82,4.25,15.67l102.92,176.64c5.67,9.71,16.11,15.67,27.41,15.67h205.84c11.3,0,21.75-5.96,27.41-15.67l102.92-176.64c2.83-4.85,4.25-10.26,4.25-15.67,0-5.41-1.42-10.82-4.25-15.68l-102.92-176.64c-5.67-9.71-16.11-15.67-27.41-15.67h-205.84c-11.3,0-21.75,5.96-27.41,15.67L16.75,234.33c-2.83,4.85-4.25,10.27-4.25,15.68Z",style:{fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:3}}),
374
+ /* @__PURE__ */rt("path",{d:"M41.06,250c0-3.97,1.07-7.9,3.07-11.34l93.03-159.66c4.08-7.01,11.68-11.34,19.82-11.34h186.06c8.16,0,15.74,4.33,19.82,11.34l93.03,159.66c2,3.44,3.07,7.37,3.07,11.34s-1.07,7.9-3.07,11.34l-93.03,159.66c-4.08,7.01-11.68,11.34-19.82,11.34h-186.06c-8.16,0-15.74-4.34-19.82-11.34l-93.03-159.66c-2-3.44-3.07-7.37-3.07-11.34Z",style:{fill:"#fff",strokeWidth:0}}),
375
+ /* @__PURE__ */ot("g",{children:[
376
+ /* @__PURE__ */rt("path",{d:"M347.45,204.4c-2.14-9.18-8.83-8.76-16.53-7.36-20.65,3.73-41.32,7.7-62.16,9.94-4.02.43-10.73,1.04-19.22,1.09,0,.02,0,.04,0,.06-6.08-.08-12.18-.41-18.31-1.07-20.84-2.25-41.51-6.21-62.16-9.94-7.7-1.39-14.39-1.81-16.53,7.36-2,8.6,4.3,11.78,10.98,13.76,7.09,2.11,14.26,4.15,21.54,5.35,17.54,2.88,35.17,5.25,52.85,7.83-4.75,38.47-13.41,74.69-39.48,104.67-2.52,2.9-1.87,11.59.69,15.16,4.35,6.07,10.07,2.47,14.89-1.86,18.01-16.16,28.26-36.83,35.98-62.51,0-.06,0-.12,0-.19,0,.04,0,.07,0,.11,7.71,25.67,17.97,46.35,35.98,62.51,4.82,4.33,10.54,7.93,14.89,1.86,2.57-3.57,3.21-12.27.69-15.16-26.07-29.98-34.72-66.2-39.48-104.67,17.68-2.59,35.31-4.95,52.85-7.83,7.28-1.2,14.45-3.24,21.54-5.35,6.68-1.99,12.98-5.16,10.98-13.76Z",style:{fill:"#711bc1",strokeWidth:0}}),
377
+ /* @__PURE__ */rt("circle",{cx:"250",cy:"171.61",r:"26.08",style:{fill:"#711bc1",strokeWidth:0}})]})]}),
378
+ /* @__PURE__ */rt(Cs,{variant:"subtitle1",children:"Digital Quality & Accessibility Analysis"})]}),
379
+ /* @__PURE__ */rt(_u,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",p:3,overflow:"auto"},children:/* @__PURE__ */rt(Jx,{config:r||{},onAuthSuccess:pe,onAuthError:fe,initialError:x})}),
380
+ /* @__PURE__ */rt(ls,{onClick:t,sx:{position:"absolute",top:16,right:16,color:"white",backgroundColor:"rgba(255, 255, 255, 0.1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},"aria-label":"Close",children:/* @__PURE__ */rt(Kg,{})})]})})]});var Re},lS=999999,sS="dqm-widget-host",cS="dqm-react-root",uS="dqm-emotion-style-container",dS="dqm-portal-root";function pS(e,t){return Wa({palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#f50057"},background:{default:"#fafafa"}},typography:{fontFamily:'Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif',htmlFontSize:t,fontSize:18,h6:{fontSize:"22px"},h5:{fontSize:"24px"},h4:{fontSize:"26px"},h3:{fontSize:"28px"},h2:{fontSize:"30px"},h1:{fontSize:"32px"},subtitle2:{fontSize:"19px"},subtitle1:{fontSize:"18px"},body1:{fontSize:"18px"},body2:{fontSize:"17px"},button:{fontSize:"17px"}},shape:{borderRadius:8},components:{MuiDialog:{styleOverrides:{root:{zIndex:lS}},defaultProps:{container:e}},MuiDrawer:{defaultProps:{ModalProps:{container:e,disablePortal:!0}}},MuiModal:{defaultProps:{container:e,disablePortal:!0}},MuiPopover:{defaultProps:{container:e,disablePortal:!0}},MuiPopper:{defaultProps:{disablePortal:!0}},MuiFab:{styleOverrides:{root:{zIndex:lS}}},MuiBackdrop:{styleOverrides:{root:{zIndex:999998}}}}})}let fS={};const hS=({theme:e})=>{const t={..."undefined"!=typeof window?window.DQM_CONFIG:{},...fS,shadowDomMode:!0},n="undefined"!=typeof window&&"true"===new URLSearchParams(window.location.search).get("dqm")||t.initialOpen||!1,[r,o]=m.useState(n),a=m.useCallback(()=>o(!0),[o]),i=m.useCallback(()=>o(!1),[o]);/* @__PURE__ */
381
+ return ot(ti,{theme:e,children:[
382
+ /* @__PURE__ */rt(di,{}),
383
+ /* @__PURE__ */rt(kh,{children:/* @__PURE__ */rt(iS,{open:r,onOpen:a,onClose:i,config:t})})]})};function mS(e){const t=(t,n)=>{if(e.getElementById(t))return;const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.href=n,e.appendChild(r)};t("dqm-font-roboto","https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"),t("dqm-font-icons","https://fonts.googleapis.com/icon?family=Material+Icons")}function gS(e){if(e.getElementById("dqm-base-style"))return;const t=document.createElement("style");t.id="dqm-base-style",t.textContent=`\n /* Typography Isolation Layer - Force consistent font rendering across all shops */\n :host {\n /* Establish independent font context */\n all: initial;\n display: block;\n position: relative;\n z-index: 999999;\n /* Force base typography */\n font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;\n font-size: 18px !important;\n font-weight: 400 !important;\n line-height: 1.5 !important;\n letter-spacing: normal !important;\n text-transform: none !important;\n /* Ensure quality rendering */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n }\n\n /* Reset typography for ALL elements inside shadow DOM */\n *, *::before, *::after {\n /* Inherit from :host, not from document */\n font-family: inherit !important;\n font-size: inherit !important;\n font-weight: inherit !important;\n line-height: inherit !important;\n letter-spacing: inherit !important;\n text-transform: inherit !important;\n /* Basic box model for consistency */\n box-sizing: border-box;\n }\n\n /* Re-establish semantic typography hierarchy */\n #${cS}, #${dS} {\n font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;\n font-size: 18px !important;\n line-height: 1.5 !important;\n }\n\n /* Headings - explicit sizes to prevent shop theme interference */\n h1 { font-size: 32px !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 0; }\n h2 { font-size: 30px !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 0; }\n h3 { font-size: 28px !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 0; }\n h4 { font-size: 26px !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 0; }\n h5 { font-size: 24px !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 0; }\n h6 { font-size: 22px !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 0; }\n\n /* Body text */\n p, div, span {\n font-size: 18px !important;\n line-height: 1.5 !important;\n margin: 0;\n }\n\n /* Links - no color override, let MUI handle it */\n a {\n text-decoration: none;\n cursor: pointer;\n }\n\n /* Buttons */\n button {\n font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;\n cursor: pointer;\n }\n\n /* Lists */\n ul, ol {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n /* Force MUI components to use our typography */\n .MuiTypography-root {\n font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;\n }\n\n .MuiTypography-h1 { font-size: 32px !important; font-weight: 500 !important; line-height: 1.2 !important; }\n .MuiTypography-h2 { font-size: 30px !important; font-weight: 500 !important; line-height: 1.2 !important; }\n .MuiTypography-h3 { font-size: 28px !important; font-weight: 500 !important; line-height: 1.2 !important; }\n .MuiTypography-h4 { font-size: 26px !important; font-weight: 500 !important; line-height: 1.2 !important; }\n .MuiTypography-h5 { font-size: 24px !important; font-weight: 500 !important; line-height: 1.2 !important; }\n .MuiTypography-h6 { font-size: 22px !important; font-weight: 500 !important; line-height: 1.2 !important; }\n .MuiTypography-body1 { font-size: 18px !important; line-height: 1.5 !important; }\n .MuiTypography-body2 { font-size: 17px !important; line-height: 1.5 !important; }\n .MuiTypography-subtitle1 { font-size: 18px !important; line-height: 1.5 !important; }\n .MuiTypography-subtitle2 { font-size: 19px !important; line-height: 1.5 !important; }\n .MuiTypography-button { font-size: 17px !important; font-weight: 600 !important; }\n\n /* Force all MUI components */\n .MuiButton-root,\n .MuiChip-root,\n .MuiIconButton-root,\n .MuiTab-root,\n .MuiMenuItem-root,\n .MuiListItem-root,\n .MuiListItemText-root {\n font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;\n }\n\n /* Input fields */\n input, textarea, select {\n font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;\n font-size: 18px !important;\n }\n\n /* Prevent text-transform inheritance from shop */\n * {\n text-transform: none !important;\n letter-spacing: normal !important;\n }\n\n /* Allow specific MUI components to set their own text-transform */\n .MuiButton-root,\n .MuiTab-root,\n .MuiChip-label {\n text-transform: none !important;\n }\n\n /* Normalize text rendering across browsers */\n * {\n text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n -moz-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n }\n `,e.prepend(t)}const yS=(e,t)=>{if(window.__DQM_WIDGET_INITIALIZED)return void console.warn("[DQM] Widget already initialized – skipping duplicate call");let n,r;if(function(e){fS=e}({..."undefined"!=typeof window?window.DQM_CONFIG:{},...e}),t&&t.shadowRoot){const e=t.shadowRoot;let o=e.getElementById(uS);o||(o=document.createElement("div"),o.id=uS,e.appendChild(o));let a=e.getElementById(dS);a||(a=document.createElement("div"),a.id=dS,e.appendChild(a)),mS(e),gS(e),n=e.getElementById(cS)||document.createElement("div"),n.parentElement||e.appendChild(n),r=ve({key:"dqm",container:o,prepend:!0});const i=pS(a,18);vt.createRoot(n).render(
384
+ /* @__PURE__ */rt(Ge,{value:r,children:/* @__PURE__ */rt(hS,{theme:i})}))}else if(t){n=t,r=ve({key:"dqm",prepend:!0});const e=pS(n,18);vt.createRoot(n).render(
385
+ /* @__PURE__ */rt(Ge,{value:r,children:/* @__PURE__ */rt(hS,{theme:e})}))}else{const e=function(){let e=document.getElementById(sS);e||(e=document.createElement("div"),e.id=sS,e.style.position="relative",e.style.zIndex=String(lS),e.style.display="block",e.style.fontSize="18px",e.style.lineHeight="1.5",document.body.appendChild(e));let t=e.shadowRoot;t||(t=e.attachShadow({mode:"open"})),gS(t),mS(t);let n=t.getElementById(uS);n||(n=document.createElement("div"),n.id=uS,t.appendChild(n));let r=t.getElementById(dS);r||(r=document.createElement("div"),r.id=dS,t.appendChild(r));let o=t.getElementById(cS);o||(o=document.createElement("div"),o.id=cS,t.appendChild(o));let a=e.__dqmEmotionCache;return a||(a=ve({key:"dqm",container:n,prepend:!0}),e.__dqmEmotionCache=a),{shadowRoot:t,reactMount:o,cache:a,portalContainer:r}}();n=e.reactMount,r=e.cache;const t=pS(e.portalContainer,18);vt.createRoot(n).render(
386
+ /* @__PURE__ */rt(Ge,{value:r,children:/* @__PURE__ */rt(hS,{theme:t})}))}window.__DQM_WIDGET_INITIALIZED=!0};"undefined"!=typeof window&&(window.CrownpeakDQM={init:yS,version:"1.0.0"}),"undefined"==typeof window||window.DQM_MANUAL_INIT||("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>yS()):yS());export{hS as DQMWidget,yS as initDQMWidget};