mirador-dl-plugin 1.0.0-alpha.3 → 1.0.0-alpha.4
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.
- package/dist/mirador-dl-plugin.es.js +5610 -6391
- package/dist/mirador-dl-plugin.es.js.map +1 -1
- package/dist/mirador-dl-plugin.js +37 -51
- package/dist/mirador-dl-plugin.js.map +1 -1
- package/package.json +9 -6
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
(function(Ke,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("mirador"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","mirador","react-dom"],ae):(Ke=typeof globalThis<"u"?globalThis:Ke||self,ae(Ke.MiradorDlPlugin={},Ke.React,Ke.mirador,Ke.ReactDOM))})(this,function(Ke,ae,Xe,zt){"use strict";function Wa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=Wa(ae),Jd=Wa(zt);var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ot(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var mt={},pn={exports:{}},Ua;function hn(){return Ua||(Ua=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(pn)),pn.exports}var mn={exports:{}},Ga;function Zd(){return Ga||(Ga=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(mn)),mn.exports}var gn={exports:{}},Ya;function Qd(){return Ya||(Ya=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.includes(i))continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gn)),gn.exports}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(null,arguments)}function ef(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function tf(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var rf=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(tf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ef(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),qe="-ms-",_r="-moz-",se="-webkit-",Ha="comm",yn="rule",vn="decl",nf="@import",Ka="@keyframes",of="@layer",af=Math.abs,xr=String.fromCharCode,sf=Object.assign;function uf(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function Xa(e){return e.trim()}function cf(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,r){return e.replace(t,r)}function bn(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Vt(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function _n(e){return e.length}function Er(e,t){return t.push(e),e}function lf(e,t){return e.map(t).join("")}var Tr=1,xt=1,Ja=0,Fe=0,Ie=0,Et="";function Sr(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Tr,column:xt,length:a,return:""}}function Wt(e,t){return sf(Sr("",null,null,"",null,null,0),e,{length:-e.length},t)}function df(){return Ie}function ff(){return Ie=Fe>0?De(Et,--Fe):0,xt--,Ie===10&&(xt=1,Tr--),Ie}function ze(){return Ie=Fe<Ja?De(Et,Fe++):0,xt++,Ie===10&&(xt=1,Tr++),Ie}function Qe(){return De(Et,Fe)}function Rr(){return Fe}function Ut(e,t){return Vt(Et,e,t)}function Gt(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 Za(e){return Tr=xt=1,Ja=Ze(Et=e),Fe=0,[]}function Qa(e){return Et="",e}function Cr(e){return Xa(Ut(Fe-1,xn(e===91?e+2:e===40?e+1:e)))}function pf(e){for(;(Ie=Qe())&&Ie<33;)ze();return Gt(e)>2||Gt(Ie)>3?"":" "}function hf(e,t){for(;--t&&ze()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Ut(e,Rr()+(t<6&&Qe()==32&&ze()==32))}function xn(e){for(;ze();)switch(Ie){case e:return Fe;case 34:case 39:e!==34&&e!==39&&xn(Ie);break;case 40:e===41&&xn(e);break;case 92:ze();break}return Fe}function mf(e,t){for(;ze()&&e+Ie!==57;)if(e+Ie===84&&Qe()===47)break;return"/*"+Ut(t,Fe-1)+"*"+xr(e===47?e:ze())}function gf(e){for(;!Gt(Qe());)ze();return Ut(e,Fe)}function yf(e){return Qa(Or("",null,null,null,[""],e=Za(e),0,[0],e))}function Or(e,t,r,n,o,i,a,u,c){for(var d=0,f=0,p=a,m=0,b=0,v=0,l=1,_=1,E=1,C=0,T="",x=o,y=i,$=n,h=T;_;)switch(v=C,C=ze()){case 40:if(v!=108&&De(h,p-1)==58){bn(h+=ue(Cr(C),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:h+=Cr(C);break;case 9:case 10:case 13:case 32:h+=pf(v);break;case 92:h+=hf(Rr()-1,7);continue;case 47:switch(Qe()){case 42:case 47:Er(vf(mf(ze(),Rr()),t,r),c);break;default:h+="/"}break;case 123*l:u[d++]=Ze(h)*E;case 125*l:case 59:case 0:switch(C){case 0:case 125:_=0;case 59+f:E==-1&&(h=ue(h,/\f/g,"")),b>0&&Ze(h)-p&&Er(b>32?ts(h+";",n,r,p-1):ts(ue(h," ","")+";",n,r,p-2),c);break;case 59:h+=";";default:if(Er($=es(h,t,r,d,f,o,u,T,x=[],y=[],p),i),C===123)if(f===0)Or(h,t,$,$,x,i,p,u,y);else switch(m===99&&De(h,3)===110?100:m){case 100:case 108:case 109:case 115:Or(e,$,$,n&&Er(es(e,$,$,0,0,o,u,T,o,x=[],p),y),o,y,p,u,n?x:y);break;default:Or(h,$,$,$,[""],y,0,u,y)}}d=f=b=0,l=E=1,T=h="",p=a;break;case 58:p=1+Ze(h),b=v;default:if(l<1){if(C==123)--l;else if(C==125&&l++==0&&ff()==125)continue}switch(h+=xr(C),C*l){case 38:E=f>0?1:(h+="\f",-1);break;case 44:u[d++]=(Ze(h)-1)*E,E=1;break;case 64:Qe()===45&&(h+=Cr(ze())),m=Qe(),f=p=Ze(T=h+=gf(Rr())),C++;break;case 45:v===45&&Ze(h)==2&&(l=0)}}return i}function es(e,t,r,n,o,i,a,u,c,d,f){for(var p=o-1,m=o===0?i:[""],b=_n(m),v=0,l=0,_=0;v<n;++v)for(var E=0,C=Vt(e,p+1,p=af(l=a[v])),T=e;E<b;++E)(T=Xa(l>0?m[E]+" "+C:ue(C,/&\f/g,m[E])))&&(c[_++]=T);return Sr(e,t,r,o===0?yn:u,c,d,f)}function vf(e,t,r){return Sr(e,t,r,Ha,xr(df()),Vt(e,2,-2),0)}function ts(e,t,r,n){return Sr(e,t,r,vn,Vt(e,0,n),Vt(e,n+1,-1),n)}function Tt(e,t){for(var r="",n=_n(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function bf(e,t,r,n){switch(e.type){case of:if(e.children.length)break;case nf:case vn:return e.return=e.return||e.value;case Ha:return"";case Ka:return e.return=e.value+"{"+Tt(e.children,n)+"}";case yn:e.value=e.props.join(",")}return Ze(r=Tt(e.children,n))?e.return=e.value+"{"+r+"}":""}function _f(e){var t=_n(e);return function(r,n,o,i){for(var a="",u=0;u<t;u++)a+=e[u](r,n,o,i)||"";return a}}function xf(e){return function(t){t.root||(t=t.return)&&e(t)}}function rs(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ef=function(t,r,n){for(var o=0,i=0;o=i,i=Qe(),o===38&&i===12&&(r[n]=1),!Gt(i);)ze();return Ut(t,Fe)},Tf=function(t,r){var n=-1,o=44;do switch(Gt(o)){case 0:o===38&&Qe()===12&&(r[n]=1),t[n]+=Ef(Fe-1,r,n);break;case 2:t[n]+=Cr(o);break;case 4:if(o===44){t[++n]=Qe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=xr(o)}while(o=ze());return t},Sf=function(t,r){return Qa(Tf(Za(t),r))},ns=new WeakMap,Rf=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!ns.get(n))&&!o){ns.set(t,!0);for(var i=[],a=Sf(r,i),u=n.props,c=0,d=0;c<a.length;c++)for(var f=0;f<u.length;f++,d++)t.props[d]=i[c]?a[c].replace(/&\f/g,u[f]):u[f]+" "+a[c]}}},Cf=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function os(e,t){switch(uf(e,t)){case 5103:return se+"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 se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+_r+e+qe+e+e;case 6828:case 4268:return se+e+qe+e+e;case 6165:return se+e+qe+"flex-"+e+e;case 5187:return se+e+ue(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return se+e+qe+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return se+e+qe+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+qe+ue(e,"shrink","negative")+e;case 5292:return se+e+qe+ue(e,"basis","preferred-size")+e;case 6060:return se+"box-"+ue(e,"-grow","")+se+e+qe+ue(e,"grow","positive")+e;case 4554:return se+ue(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,se+"$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(Ze(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+_r+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bn(e,"stretch")?os(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Ze(e)-3-(~bn(e,"!important")&&10))){case 107:return ue(e,":",":"+se)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(De(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return se+e+qe+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+qe+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+qe+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+qe+e+e}return e}var Of=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case vn:t.return=os(t.value,t.length);break;case Ka:return Tt([Wt(t,{value:ue(t.value,"@","@"+se)})],o);case yn:if(t.length)return lf(t.props,function(i){switch(cf(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([Wt(t,{props:[ue(i,/:(read-\w+)/,":"+_r+"$1")]})],o);case"::placeholder":return Tt([Wt(t,{props:[ue(i,/:(plac\w+)/,":"+se+"input-$1")]}),Wt(t,{props:[ue(i,/:(plac\w+)/,":"+_r+"$1")]}),Wt(t,{props:[ue(i,/:(plac\w+)/,qe+"input-$1")]})],o)}return""})}},Pf=[Of],is=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(l){var _=l.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var o=t.stylisPlugins||Pf,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(l){for(var _=l.getAttribute("data-emotion").split(" "),E=1;E<_.length;E++)i[_[E]]=!0;u.push(l)});var c,d=[Rf,Cf];{var f,p=[bf,xf(function(l){f.insert(l)})],m=_f(d.concat(o,p)),b=function(_){return Tt(yf(_),m)};c=function(_,E,C,T){f=C,b(_?_+"{"+E.styles+"}":E.styles),T&&(v.inserted[E.name]=!0)}}var v={key:r,sheet:new rf({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return v.sheet.hydrate(u),v},Pr={exports:{}},ce={};/** @license React v16.13.1
|
|
1
|
+
(function(qe,de){typeof exports=="object"&&typeof module<"u"?de(exports,require("react"),require("mirador"),require("@emotion/styled"),require("@emotion/react"),require("@mui/system"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","mirador","@emotion/styled","@emotion/react","@mui/system","react-dom"],de):(qe=typeof globalThis<"u"?globalThis:qe||self,de(qe.MiradorDlPlugin={},qe.React,qe.mirador,qe.emStyled,qe.react,qe.system,qe.ReactDOM))})(this,function(qe,de,He,yd,Lt,yt,Ft){"use strict";function wa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const O=wa(de),bd=wa(Ft);var hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ft={},sn={exports:{}},Ia;function un(){return Ia||(Ia=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sn)),sn.exports}var cn={exports:{}},$a;function _d(){return $a||($a=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(cn)),cn.exports}var ln={exports:{}},Aa;function xd(){return Aa||(Aa=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.indexOf(i)!==-1)continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ln)),ln.exports}var mr={exports:{}},vr={exports:{}},se={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
8
|
+
*/var Na;function Ed(){if(Na)return se;Na=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var N=_.$$typeof;switch(N){case t:switch(_=_.type,_){case c:case d:case n:case i:case o:case g:return _;default:switch(_=_&&_.$$typeof,_){case u:case p:case v:case y:case s:return _;default:return N}}case r:return N}}}function P(_){return S(_)===d}return se.AsyncMode=c,se.ConcurrentMode=d,se.ContextConsumer=u,se.ContextProvider=s,se.Element=t,se.ForwardRef=p,se.Fragment=n,se.Lazy=v,se.Memo=y,se.Portal=r,se.Profiler=i,se.StrictMode=o,se.Suspense=g,se.isAsyncMode=function(_){return P(_)||S(_)===c},se.isConcurrentMode=P,se.isContextConsumer=function(_){return S(_)===u},se.isContextProvider=function(_){return S(_)===s},se.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},se.isForwardRef=function(_){return S(_)===p},se.isFragment=function(_){return S(_)===n},se.isLazy=function(_){return S(_)===v},se.isMemo=function(_){return S(_)===y},se.isPortal=function(_){return S(_)===r},se.isProfiler=function(_){return S(_)===i},se.isStrictMode=function(_){return S(_)===o},se.isSuspense=function(_){return S(_)===g},se.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===d||_===i||_===o||_===g||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===y||_.$$typeof===s||_.$$typeof===u||_.$$typeof===p||_.$$typeof===b||_.$$typeof===T||_.$$typeof===R||_.$$typeof===l)},se.typeOf=S,se}var ue={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var ss;function If(){return ss||(ss=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(P){return typeof P=="string"||typeof P=="function"||P===n||P===d||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===b||P.$$typeof===a||P.$$typeof===u||P.$$typeof===f||P.$$typeof===_||P.$$typeof===E||P.$$typeof===C||P.$$typeof===l)}function x(P){if(typeof P=="object"&&P!==null){var ge=P.$$typeof;switch(ge){case t:var ie=P.type;switch(ie){case c:case d:case n:case i:case o:case p:return ie;default:var Se=ie&&ie.$$typeof;switch(Se){case u:case f:case v:case b:case a:return Se;default:return ge}}case r:return ge}}}var y=c,$=d,h=u,O=a,R=t,I=f,M=n,F=v,D=b,L=r,B=i,q=o,G=p,Z=!1;function Pe(P){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(P)||x(P)===c}function A(P){return x(P)===d}function j(P){return x(P)===u}function Q(P){return x(P)===a}function X(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function V(P){return x(P)===f}function H(P){return x(P)===n}function Y(P){return x(P)===v}function K(P){return x(P)===b}function W(P){return x(P)===r}function U(P){return x(P)===i}function J(P){return x(P)===o}function be(P){return x(P)===p}le.AsyncMode=y,le.ConcurrentMode=$,le.ContextConsumer=h,le.ContextProvider=O,le.Element=R,le.ForwardRef=I,le.Fragment=M,le.Lazy=F,le.Memo=D,le.Portal=L,le.Profiler=B,le.StrictMode=q,le.Suspense=G,le.isAsyncMode=Pe,le.isConcurrentMode=A,le.isContextConsumer=j,le.isContextProvider=Q,le.isElement=X,le.isForwardRef=V,le.isFragment=H,le.isLazy=Y,le.isMemo=K,le.isPortal=W,le.isProfiler=U,le.isStrictMode=J,le.isSuspense=be,le.isValidElementType=T,le.typeOf=x}()),le}var us;function $f(){return us||(us=1,process.env.NODE_ENV==="production"?Pr.exports=wf():Pr.exports=If()),Pr.exports}var En,cs;function Af(){if(cs)return En;cs=1;var e=$f(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(v){return e.isMemo(v)?o:i[v.$$typeof]||t}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function b(v,l,_){if(typeof l!="string"){if(m){var E=p(l);E&&E!==m&&b(v,E,_)}var C=c(l);d&&(C=C.concat(d(l)));for(var T=a(v),x=a(l),y=0;y<C.length;++y){var $=C[y];if(!r[$]&&!(_&&_[$])&&!(x&&x[$])&&!(T&&T[$])){var h=f(l,$);try{u(v,$,h)}catch{}}}}return v}return En=b,En}Af();var Mf=!0;function ls(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Tn=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Mf===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Sn=function(t,r,n){Tn(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Nf(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kf={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},Df=/[A-Z]|^ms/g,jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ds=function(t){return t.charCodeAt(1)===45},fs=function(t){return t!=null&&typeof t!="boolean"},Rn=rs(function(e){return ds(e)?e:e.replace(Df,"-$&").toLowerCase()}),ps=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(jf,function(n,o,i){return et={name:o,styles:i,next:et},o})}return kf[t]!==1&&!ds(t)&&typeof r=="number"&&r!==0?r+"px":r};function Yt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return et={name:o.name,styles:o.styles,next:et},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)et={name:a.name,styles:a.styles,next:et},a=a.next;var u=i.styles+";";return u}return qf(e,t,r)}case"function":{if(e!==void 0){var c=et,d=r(e);return et=c,Yt(e,t,d)}break}}var f=r;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function qf(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Yt(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var u=a;t!=null&&t[u]!==void 0?n+=i+"{"+t[u]+"}":fs(u)&&(n+=Rn(i)+":"+ps(i,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)fs(a[c])&&(n+=Rn(i)+":"+ps(i,a[c])+";");else{var d=Yt(e,t,a);switch(i){case"animation":case"animationName":{n+=Rn(i)+":"+d+";";break}default:n+=i+"{"+d+"}"}}}return n}var hs=/label:\s*([^\s;{]+)\s*(;|$)/g,et;function wr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";et=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Yt(r,t,i);else{var a=i;o+=a[0]}for(var u=1;u<e.length;u++)if(o+=Yt(r,t,e[u]),n){var c=i;o+=c[u]}hs.lastIndex=0;for(var d="",f;(f=hs.exec(o))!==null;)d+="-"+f[1];var p=Nf(o)+d;return{name:p,styles:o,next:et}}var Lf=function(t){return t()},ms=S.useInsertionEffect?S.useInsertionEffect:!1,gs=ms||Lf,ys=ms||S.useLayoutEffect,vs=S.createContext(typeof HTMLElement<"u"?is({key:"css"}):null),Ff=vs.Provider,Cn=function(t){return ae.forwardRef(function(r,n){var o=ae.useContext(vs);return t(r,o,n)})},Ht=S.createContext({}),On={}.hasOwnProperty,Pn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bf=function(t,r){var n={};for(var o in r)On.call(r,o)&&(n[o]=r[o]);return n[Pn]=t,n},zf=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Tn(r,n,o),gs(function(){return Sn(r,n,o)}),null},Vf=Cn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Pn],i=[n],a="";typeof e.className=="string"?a=ls(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var u=wr(i,void 0,S.useContext(Ht));a+=t.key+"-"+u.name;var c={};for(var d in e)On.call(e,d)&&d!=="css"&&d!==Pn&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),S.createElement(S.Fragment,null,S.createElement(zf,{cache:t,serialized:u,isStringTag:typeof o=="string"}),S.createElement(o,c))}),Wf=Vf,bs=function(t,r){var n=arguments;if(r==null||!On.call(r,"css"))return S.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Wf,i[1]=Bf(t,r);for(var a=2;a<o;a++)i[a]=n[a];return S.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(bs||(bs={}));var Uf=Cn(function(e,t){var r=e.styles,n=wr([r],void 0,S.useContext(Ht)),o=S.useRef();return ys(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,u],function(){a.flush()}},[t]),ys(function(){var i=o.current,a=i[0],u=i[1];if(u){i[1]=!1;return}if(n.next!==void 0&&Sn(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function _s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wr(t)}function Ir(){var e=_s.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 Gf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Yf=rs(function(e){return Gf.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Hf=Yf,Kf=function(t){return t!=="theme"},xs=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Hf:Kf},Es=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Xf=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Tn(r,n,o),gs(function(){return Sn(r,n,o)}),null},Jf=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var u=Es(t,r,n),c=u||xs(o),d=!c("as");return function(){var f=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var m=f[0];p.push(m[0]);for(var b=f.length,v=1;v<b;v++)p.push(f[v],m[v])}var l=Cn(function(_,E,C){var T=d&&_.as||o,x="",y=[],$=_;if(_.theme==null){$={};for(var h in _)$[h]=_[h];$.theme=S.useContext(Ht)}typeof _.className=="string"?x=ls(E.registered,y,_.className):_.className!=null&&(x=_.className+" ");var O=wr(p.concat(y),E.registered,$);x+=E.key+"-"+O.name,a!==void 0&&(x+=" "+a);var R=d&&u===void 0?xs(T):c,I={};for(var M in _)d&&M==="as"||R(M)&&(I[M]=_[M]);return I.className=x,C&&(I.ref=C),S.createElement(S.Fragment,null,S.createElement(Xf,{cache:E,serialized:O,isStringTag:typeof T=="string"}),S.createElement(T,I))});return l.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",l.defaultProps=t.defaultProps,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_styles=p,l.__emotion_forwardProp=u,Object.defineProperty(l,"toString",{value:function(){return"."+a}}),l.withComponent=function(_,E){var C=e(_,w({},r,E,{shouldForwardProp:Es(l,E,!0)}));return C.apply(void 0,p)},l}},Zf=["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"],wn=Jf.bind(null);Zf.forEach(function(e){wn[e]=wn(e)});var $r={exports:{}},Ar={exports:{}},de={};/** @license React v16.13.1
|
|
16
|
-
* react-is.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var Ts;function Qf(){if(Ts)return de;Ts=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case d:case n:case i:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case u:case f:case v:case b:case a:return y;default:return $}}case r:return $}}}function x(y){return T(y)===d}return de.AsyncMode=c,de.ConcurrentMode=d,de.ContextConsumer=u,de.ContextProvider=a,de.Element=t,de.ForwardRef=f,de.Fragment=n,de.Lazy=v,de.Memo=b,de.Portal=r,de.Profiler=i,de.StrictMode=o,de.Suspense=p,de.isAsyncMode=function(y){return x(y)||T(y)===c},de.isConcurrentMode=x,de.isContextConsumer=function(y){return T(y)===u},de.isContextProvider=function(y){return T(y)===a},de.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},de.isForwardRef=function(y){return T(y)===f},de.isFragment=function(y){return T(y)===n},de.isLazy=function(y){return T(y)===v},de.isMemo=function(y){return T(y)===b},de.isPortal=function(y){return T(y)===r},de.isProfiler=function(y){return T(y)===i},de.isStrictMode=function(y){return T(y)===o},de.isSuspense=function(y){return T(y)===p},de.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===i||y===o||y===p||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===b||y.$$typeof===a||y.$$typeof===u||y.$$typeof===f||y.$$typeof===_||y.$$typeof===E||y.$$typeof===C||y.$$typeof===l)},de.typeOf=T,de}var fe={};/** @license React v16.13.1
|
|
23
|
-
* react-is.development.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var Ss;function ep(){return Ss||(Ss=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(P){return typeof P=="string"||typeof P=="function"||P===n||P===d||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===b||P.$$typeof===a||P.$$typeof===u||P.$$typeof===f||P.$$typeof===_||P.$$typeof===E||P.$$typeof===C||P.$$typeof===l)}function x(P){if(typeof P=="object"&&P!==null){var ge=P.$$typeof;switch(ge){case t:var ie=P.type;switch(ie){case c:case d:case n:case i:case o:case p:return ie;default:var Se=ie&&ie.$$typeof;switch(Se){case u:case f:case v:case b:case a:return Se;default:return ge}}case r:return ge}}}var y=c,$=d,h=u,O=a,R=t,I=f,M=n,F=v,D=b,L=r,B=i,q=o,G=p,Z=!1;function Pe(P){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(P)||x(P)===c}function A(P){return x(P)===d}function j(P){return x(P)===u}function Q(P){return x(P)===a}function X(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function V(P){return x(P)===f}function H(P){return x(P)===n}function Y(P){return x(P)===v}function K(P){return x(P)===b}function W(P){return x(P)===r}function U(P){return x(P)===i}function J(P){return x(P)===o}function be(P){return x(P)===p}fe.AsyncMode=y,fe.ConcurrentMode=$,fe.ContextConsumer=h,fe.ContextProvider=O,fe.Element=R,fe.ForwardRef=I,fe.Fragment=M,fe.Lazy=F,fe.Memo=D,fe.Portal=L,fe.Profiler=B,fe.StrictMode=q,fe.Suspense=G,fe.isAsyncMode=Pe,fe.isConcurrentMode=A,fe.isContextConsumer=j,fe.isContextProvider=Q,fe.isElement=X,fe.isForwardRef=V,fe.isFragment=H,fe.isLazy=Y,fe.isMemo=K,fe.isPortal=W,fe.isProfiler=U,fe.isStrictMode=J,fe.isSuspense=be,fe.isValidElementType=T,fe.typeOf=x}()),fe}var Rs;function Cs(){return Rs||(Rs=1,process.env.NODE_ENV==="production"?Ar.exports=Qf():Ar.exports=ep()),Ar.exports}/*
|
|
15
|
+
*/var Ma;function Td(){return Ma||(Ma=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(j){return typeof j=="string"||typeof j=="function"||j===n||j===d||j===i||j===o||j===g||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===v||j.$$typeof===y||j.$$typeof===s||j.$$typeof===u||j.$$typeof===p||j.$$typeof===b||j.$$typeof===T||j.$$typeof===R||j.$$typeof===l)}function P(j){if(typeof j=="object"&&j!==null){var be=j.$$typeof;switch(be){case t:var ge=j.type;switch(ge){case c:case d:case n:case i:case o:case g:return ge;default:var Pe=ge&&ge.$$typeof;switch(Pe){case u:case p:case v:case y:case s:return Pe;default:return be}}case r:return be}}}var _=c,N=d,f=u,E=s,x=t,w=p,$=n,F=v,k=y,L=r,V=i,q=o,G=g,ee=!1;function Ae(j){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(j)||P(j)===c}function I(j){return P(j)===d}function D(j){return P(j)===u}function Q(j){return P(j)===s}function X(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function z(j){return P(j)===p}function H(j){return P(j)===n}function K(j){return P(j)===v}function Y(j){return P(j)===y}function W(j){return P(j)===r}function U(j){return P(j)===i}function J(j){return P(j)===o}function ye(j){return P(j)===g}ue.AsyncMode=_,ue.ConcurrentMode=N,ue.ContextConsumer=f,ue.ContextProvider=E,ue.Element=x,ue.ForwardRef=w,ue.Fragment=$,ue.Lazy=F,ue.Memo=k,ue.Portal=L,ue.Profiler=V,ue.StrictMode=q,ue.Suspense=G,ue.isAsyncMode=Ae,ue.isConcurrentMode=I,ue.isContextConsumer=D,ue.isContextProvider=Q,ue.isElement=X,ue.isForwardRef=z,ue.isFragment=H,ue.isLazy=K,ue.isMemo=Y,ue.isPortal=W,ue.isProfiler=U,ue.isStrictMode=J,ue.isSuspense=ye,ue.isValidElementType=S,ue.typeOf=P}()),ue}var ka;function Da(){return ka||(ka=1,process.env.NODE_ENV==="production"?vr.exports=Ed():vr.exports=Td()),vr.exports}/*
|
|
30
16
|
object-assign
|
|
31
17
|
(c) Sindre Sorhus
|
|
32
18
|
@license MIT
|
|
33
|
-
*/var
|
|
34
|
-
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var P=be(K,J,V,H,Y+"."+J,r);if(P)return P}return null}return _(j)}function L(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(L);if(A===null||u(A))return!0;var j=p(A);if(j){var Q=j.call(A),X;if(j!==A.entries){for(;!(X=Q.next()).done;)if(!L(X.value))return!1}else for(;!(X=Q.next()).done;){var V=X.value;if(V&&!L(V[1]))return!1}}else return!1;return!0;default:return!1}}function B(A,j){return A==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function q(A){var j=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":B(j,A)?"symbol":j}function G(A){if(typeof A>"u"||A===null)return""+A;var j=q(A);if(j==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return j}function Z(A){var j=G(A);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Pe(A){return!A.constructor||!A.constructor.name?m:A.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},kn}var Dn,Ms;function op(){if(Ms)return Dn;Ms=1;var e=An();function t(){}function r(){}return r.resetWarningCache=t,Dn=function(){function n(a,u,c,d,f,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Dn}var Ns;function ip(){if(Ns)return $r.exports;if(Ns=1,process.env.NODE_ENV!=="production"){var e=Cs(),t=!0;$r.exports=np()(e.isElement,t)}else $r.exports=op()();return $r.exports}var ap=ip();const s=br(ap);var Mr={exports:{}},Kt={};/**
|
|
19
|
+
*/var dn,ja;function Rd(){if(ja)return dn;ja=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dn=o()?Object.assign:function(i,s){for(var u,c=n(i),d,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var g in u)t.call(u,g)&&(c[g]=u[g]);if(e){d=e(u);for(var h=0;h<d.length;h++)r.call(u,d[h])&&(c[d[h]]=u[d[h]])}}return c},dn}var fn,qa;function pn(){if(qa)return fn;qa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fn=e,fn}var hn,La;function Fa(){return La||(La=1,hn=Function.call.bind(Object.prototype.hasOwnProperty)),hn}var gn,Ba;function Cd(){if(Ba)return gn;Ba=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pn(),r={},n=Fa();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,u,c,d){if(process.env.NODE_ENV!=="production"){for(var p in i)if(n(i,p)){var g;try{if(typeof i[p]!="function"){var h=Error((c||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}g=i[p](s,p,c,u,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var y=d?d():"";e("Failed "+u+" type: "+g.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},gn=o,gn}var mn,Va;function Sd(){if(Va)return mn;Va=1;var e=Da(),t=Rd(),r=pn(),n=Fa(),o=Cd(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return mn=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(I){var D=I&&(d&&I[d]||I[p]);if(typeof D=="function")return D}var h="<<anonymous>>",y={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:R(),arrayOf:S,element:P(),elementType:_(),instanceOf:N,node:w(),objectOf:E,oneOf:f,oneOfType:x,shape:F,exact:k};function v(I,D){return I===D?I!==0||1/I===1/D:I!==I&&D!==D}function l(I,D){this.message=I,this.data=D&&typeof D=="object"?D:{},this.stack=""}l.prototype=Error.prototype;function b(I){if(process.env.NODE_ENV!=="production")var D={},Q=0;function X(H,K,Y,W,U,J,ye){if(W=W||h,J=J||Y,ye!==r){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var be=W+":"+Y;!D[be]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[be]=!0,Q++)}}return K[Y]==null?H?K[Y]===null?new l("The "+U+" `"+J+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new l("The "+U+" `"+J+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:I(K,Y,W,U,J)}var z=X.bind(null,!1);return z.isRequired=X.bind(null,!0),z}function T(I){function D(Q,X,z,H,K,Y){var W=Q[X],U=q(W);if(U!==I){var J=G(W);return new l("Invalid "+H+" `"+K+"` of type "+("`"+J+"` supplied to `"+z+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return b(D)}function R(){return b(s)}function S(I){function D(Q,X,z,H,K){if(typeof I!="function")return new l("Property `"+K+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var Y=Q[X];if(!Array.isArray(Y)){var W=q(Y);return new l("Invalid "+H+" `"+K+"` of type "+("`"+W+"` supplied to `"+z+"`, expected an array."))}for(var U=0;U<Y.length;U++){var J=I(Y,U,z,H,K+"["+U+"]",r);if(J instanceof Error)return J}return null}return b(D)}function P(){function I(D,Q,X,z,H){var K=D[Q];if(!u(K)){var Y=q(K);return new l("Invalid "+z+" `"+H+"` of type "+("`"+Y+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return b(I)}function _(){function I(D,Q,X,z,H){var K=D[Q];if(!e.isValidElementType(K)){var Y=q(K);return new l("Invalid "+z+" `"+H+"` of type "+("`"+Y+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return b(I)}function N(I){function D(Q,X,z,H,K){if(!(Q[X]instanceof I)){var Y=I.name||h,W=Ae(Q[X]);return new l("Invalid "+H+" `"+K+"` of type "+("`"+W+"` supplied to `"+z+"`, expected ")+("instance of `"+Y+"`."))}return null}return b(D)}function f(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function D(Q,X,z,H,K){for(var Y=Q[X],W=0;W<I.length;W++)if(v(Y,I[W]))return null;var U=JSON.stringify(I,function(ye,j){var be=G(j);return be==="symbol"?String(j):j});return new l("Invalid "+H+" `"+K+"` of value `"+String(Y)+"` "+("supplied to `"+z+"`, expected one of "+U+"."))}return b(D)}function E(I){function D(Q,X,z,H,K){if(typeof I!="function")return new l("Property `"+K+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var Y=Q[X],W=q(Y);if(W!=="object")return new l("Invalid "+H+" `"+K+"` of type "+("`"+W+"` supplied to `"+z+"`, expected an object."));for(var U in Y)if(n(Y,U)){var J=I(Y,U,z,H,K+"."+U,r);if(J instanceof Error)return J}return null}return b(D)}function x(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<I.length;D++){var Q=I[D];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(Q)+" at index "+D+"."),s}function X(z,H,K,Y,W){for(var U=[],J=0;J<I.length;J++){var ye=I[J],j=ye(z,H,K,Y,W,r);if(j==null)return null;j.data&&n(j.data,"expectedType")&&U.push(j.data.expectedType)}var be=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new l("Invalid "+Y+" `"+W+"` supplied to "+("`"+K+"`"+be+"."))}return b(X)}function w(){function I(D,Q,X,z,H){return L(D[Q])?null:new l("Invalid "+z+" `"+H+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return b(I)}function $(I,D,Q,X,z){return new l((I||"React class")+": "+D+" type `"+Q+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function F(I){function D(Q,X,z,H,K){var Y=Q[X],W=q(Y);if(W!=="object")return new l("Invalid "+H+" `"+K+"` of type `"+W+"` "+("supplied to `"+z+"`, expected `object`."));for(var U in I){var J=I[U];if(typeof J!="function")return $(z,H,K,U,G(J));var ye=J(Y,U,z,H,K+"."+U,r);if(ye)return ye}return null}return b(D)}function k(I){function D(Q,X,z,H,K){var Y=Q[X],W=q(Y);if(W!=="object")return new l("Invalid "+H+" `"+K+"` of type `"+W+"` "+("supplied to `"+z+"`, expected `object`."));var U=t({},Q[X],I);for(var J in U){var ye=I[J];if(n(I,J)&&typeof ye!="function")return $(z,H,K,J,G(ye));if(!ye)return new l("Invalid "+H+" `"+K+"` key `"+J+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(Q[X],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var j=ye(Y,J,z,H,K+"."+J,r);if(j)return j}return null}return b(D)}function L(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(L);if(I===null||u(I))return!0;var D=g(I);if(D){var Q=D.call(I),X;if(D!==I.entries){for(;!(X=Q.next()).done;)if(!L(X.value))return!1}else for(;!(X=Q.next()).done;){var z=X.value;if(z&&!L(z[1]))return!1}}else return!1;return!0;default:return!1}}function V(I,D){return I==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function q(I){var D=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":V(D,I)?"symbol":D}function G(I){if(typeof I>"u"||I===null)return""+I;var D=q(I);if(D==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return D}function ee(I){var D=G(I);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function Ae(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},mn}var vn,za;function Od(){if(za)return vn;za=1;var e=pn();function t(){}function r(){}return r.resetWarningCache=t,vn=function(){function n(s,u,c,d,p,g){if(g!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},vn}var Wa;function Pd(){if(Wa)return mr.exports;if(Wa=1,process.env.NODE_ENV!=="production"){var e=Da(),t=!0;mr.exports=Sd()(e.isElement,t)}else mr.exports=Od()();return mr.exports}var wd=Pd();const a=gr(wd);function Id(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function $d(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ad=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($d(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Id(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),De="-ms-",yr="-moz-",ie="-webkit-",Ua="comm",yn="rule",bn="decl",Nd="@import",Ga="@keyframes",Md="@layer",kd=Math.abs,br=String.fromCharCode,Dd=Object.assign;function jd(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function Ka(e){return e.trim()}function qd(e,t){return(e=t.exec(e))?e[0]:e}function ae(e,t,r){return e.replace(t,r)}function _n(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function Bt(e,t,r){return e.slice(t,r)}function Xe(e){return e.length}function xn(e){return e.length}function _r(e,t){return t.push(e),e}function Ld(e,t){return e.map(t).join("")}var xr=1,bt=1,Ha=0,Le=0,Se=0,_t="";function Er(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:xr,column:bt,length:s,return:""}}function Vt(e,t){return Dd(Er("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fd(){return Se}function Bd(){return Se=Le>0?Me(_t,--Le):0,bt--,Se===10&&(bt=1,xr--),Se}function Be(){return Se=Le<Ha?Me(_t,Le++):0,bt++,Se===10&&(bt=1,xr++),Se}function Je(){return Me(_t,Le)}function Tr(){return Le}function zt(e,t){return Bt(_t,e,t)}function Wt(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 Ya(e){return xr=bt=1,Ha=Xe(_t=e),Le=0,[]}function Xa(e){return _t="",e}function Rr(e){return Ka(zt(Le-1,En(e===91?e+2:e===40?e+1:e)))}function Vd(e){for(;(Se=Je())&&Se<33;)Be();return Wt(e)>2||Wt(Se)>3?"":" "}function zd(e,t){for(;--t&&Be()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return zt(e,Tr()+(t<6&&Je()==32&&Be()==32))}function En(e){for(;Be();)switch(Se){case e:return Le;case 34:case 39:e!==34&&e!==39&&En(Se);break;case 40:e===41&&En(e);break;case 92:Be();break}return Le}function Wd(e,t){for(;Be()&&e+Se!==57;)if(e+Se===84&&Je()===47)break;return"/*"+zt(t,Le-1)+"*"+br(e===47?e:Be())}function Ud(e){for(;!Wt(Je());)Be();return zt(e,Le)}function Gd(e){return Xa(Cr("",null,null,null,[""],e=Ya(e),0,[0],e))}function Cr(e,t,r,n,o,i,s,u,c){for(var d=0,p=0,g=s,h=0,y=0,v=0,l=1,b=1,T=1,R=0,S="",P=o,_=i,N=n,f=S;b;)switch(v=R,R=Be()){case 40:if(v!=108&&Me(f,g-1)==58){_n(f+=ae(Rr(R),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:f+=Rr(R);break;case 9:case 10:case 13:case 32:f+=Vd(v);break;case 92:f+=zd(Tr()-1,7);continue;case 47:switch(Je()){case 42:case 47:_r(Kd(Wd(Be(),Tr()),t,r),c);break;default:f+="/"}break;case 123*l:u[d++]=Xe(f)*T;case 125*l:case 59:case 0:switch(R){case 0:case 125:b=0;case 59+p:T==-1&&(f=ae(f,/\f/g,"")),y>0&&Xe(f)-g&&_r(y>32?Za(f+";",n,r,g-1):Za(ae(f," ","")+";",n,r,g-2),c);break;case 59:f+=";";default:if(_r(N=Ja(f,t,r,d,p,o,u,S,P=[],_=[],g),i),R===123)if(p===0)Cr(f,t,N,N,P,i,g,u,_);else switch(h===99&&Me(f,3)===110?100:h){case 100:case 108:case 109:case 115:Cr(e,N,N,n&&_r(Ja(e,N,N,0,0,o,u,S,o,P=[],g),_),o,_,g,u,n?P:_);break;default:Cr(f,N,N,N,[""],_,0,u,_)}}d=p=y=0,l=T=1,S=f="",g=s;break;case 58:g=1+Xe(f),y=v;default:if(l<1){if(R==123)--l;else if(R==125&&l++==0&&Bd()==125)continue}switch(f+=br(R),R*l){case 38:T=p>0?1:(f+="\f",-1);break;case 44:u[d++]=(Xe(f)-1)*T,T=1;break;case 64:Je()===45&&(f+=Rr(Be())),h=Je(),p=g=Xe(S=f+=Ud(Tr())),R++;break;case 45:v===45&&Xe(f)==2&&(l=0)}}return i}function Ja(e,t,r,n,o,i,s,u,c,d,p){for(var g=o-1,h=o===0?i:[""],y=xn(h),v=0,l=0,b=0;v<n;++v)for(var T=0,R=Bt(e,g+1,g=kd(l=s[v])),S=e;T<y;++T)(S=Ka(l>0?h[T]+" "+R:ae(R,/&\f/g,h[T])))&&(c[b++]=S);return Er(e,t,r,o===0?yn:u,c,d,p)}function Kd(e,t,r){return Er(e,t,r,Ua,br(Fd()),Bt(e,2,-2),0)}function Za(e,t,r,n){return Er(e,t,r,bn,Bt(e,0,n),Bt(e,n+1,-1),n)}function xt(e,t){for(var r="",n=xn(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Hd(e,t,r,n){switch(e.type){case Md:if(e.children.length)break;case Nd:case bn:return e.return=e.return||e.value;case Ua:return"";case Ga:return e.return=e.value+"{"+xt(e.children,n)+"}";case yn:e.value=e.props.join(",")}return Xe(r=xt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Yd(e){var t=xn(e);return function(r,n,o,i){for(var s="",u=0;u<t;u++)s+=e[u](r,n,o,i)||"";return s}}function Xd(e){return function(t){t.root||(t=t.return)&&e(t)}}var Jd=function(t,r,n){for(var o=0,i=0;o=i,i=Je(),o===38&&i===12&&(r[n]=1),!Wt(i);)Be();return zt(t,Le)},Zd=function(t,r){var n=-1,o=44;do switch(Wt(o)){case 0:o===38&&Je()===12&&(r[n]=1),t[n]+=Jd(Le-1,r,n);break;case 2:t[n]+=Rr(o);break;case 4:if(o===44){t[++n]=Je()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=br(o)}while(o=Be());return t},Qd=function(t,r){return Xa(Zd(Ya(t),r))},Qa=new WeakMap,ef=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qa.get(n))&&!o){Qa.set(t,!0);for(var i=[],s=Qd(r,i),u=n.props,c=0,d=0;c<s.length;c++)for(var p=0;p<u.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,u[p]):u[p]+" "+s[c]}}},tf=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function es(e,t){switch(jd(e,t)){case 5103:return ie+"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 ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+yr+e+De+e+e;case 6828:case 4268:return ie+e+De+e+e;case 6165:return ie+e+De+"flex-"+e+e;case 5187:return ie+e+ae(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+De+"flex-$1$2")+e;case 5443:return ie+e+De+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return ie+e+De+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+De+ae(e,"shrink","negative")+e;case 5292:return ie+e+De+ae(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+ae(e,"-grow","")+ie+e+De+ae(e,"grow","positive")+e;case 4554:return ie+ae(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+De+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,ie+"$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(Xe(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+yr+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_n(e,"stretch")?es(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Xe(e)-3-(~_n(e,"!important")&&10))){case 107:return ae(e,":",":"+ie)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Me(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return ie+e+De+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+De+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+De+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+De+e+e}return e}var rf=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bn:t.return=es(t.value,t.length);break;case Ga:return xt([Vt(t,{value:ae(t.value,"@","@"+ie)})],o);case yn:if(t.length)return Ld(t.props,function(i){switch(qd(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xt([Vt(t,{props:[ae(i,/:(read-\w+)/,":"+yr+"$1")]})],o);case"::placeholder":return xt([Vt(t,{props:[ae(i,/:(plac\w+)/,":"+ie+"input-$1")]}),Vt(t,{props:[ae(i,/:(plac\w+)/,":"+yr+"$1")]}),Vt(t,{props:[ae(i,/:(plac\w+)/,De+"input-$1")]})],o)}return""})}},nf=[rf],of=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(l){var b=l.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var o=t.stylisPlugins||nf,i={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(l){for(var b=l.getAttribute("data-emotion").split(" "),T=1;T<b.length;T++)i[b[T]]=!0;u.push(l)});var c,d=[ef,tf];{var p,g=[Hd,Xd(function(l){p.insert(l)})],h=Yd(d.concat(o,g)),y=function(b){return xt(Gd(b),h)};c=function(b,T,R,S){p=R,y(b?b+"{"+T.styles+"}":T.styles),S&&(v.inserted[T.name]=!0)}}var v={key:r,sheet:new Ad({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return v.sheet.hydrate(u),v},Sr={exports:{}},Ut={};/**
|
|
35
21
|
* @license React
|
|
36
22
|
* react-jsx-runtime.production.min.js
|
|
37
23
|
*
|
|
@@ -39,7 +25,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var P=be(K,J,V,H,Y+"."+J
|
|
|
39
25
|
*
|
|
40
26
|
* This source code is licensed under the MIT license found in the
|
|
41
27
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var
|
|
28
|
+
*/var ts;function af(){if(ts)return Ut;ts=1;var e=de,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(u,c,d){var p,g={},h=null,y=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(p in c)n.call(c,p)&&!i.hasOwnProperty(p)&&(g[p]=c[p]);if(u&&u.defaultProps)for(p in c=u.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:t,type:u,key:h,ref:y,props:g,_owner:o.current}}return Ut.Fragment=r,Ut.jsx=s,Ut.jsxs=s,Ut}var Gt={};/**
|
|
43
29
|
* @license React
|
|
44
30
|
* react-jsx-runtime.development.js
|
|
45
31
|
*
|
|
@@ -47,27 +33,27 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var P=be(K,J,V,H,Y+"."+J
|
|
|
47
33
|
*
|
|
48
34
|
* This source code is licensed under the MIT license found in the
|
|
49
35
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var
|
|
51
|
-
`+
|
|
52
|
-
`),
|
|
53
|
-
`),
|
|
54
|
-
`+re[
|
|
36
|
+
*/var rs;function sf(){return rs||(rs=1,process.env.NODE_ENV!=="production"&&function(){var e=de,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,l="@@iterator";function b(m){if(m===null||typeof m!="object")return null;var A=v&&m[v]||m[l];return typeof A=="function"?A:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(m){{for(var A=arguments.length,B=new Array(A>1?A-1:0),Z=1;Z<A;Z++)B[Z-1]=arguments[Z];S("error",m,B)}}function S(m,A,B){{var Z=T.ReactDebugCurrentFrame,le=Z.getStackAddendum();le!==""&&(A+="%s",B=B.concat([le]));var me=B.map(function(oe){return String(oe)});me.unshift("Warning: "+A),Function.prototype.apply.call(console[m],console,me)}}var P=!1,_=!1,N=!1,f=!1,E=!1,x;x=Symbol.for("react.module.reference");function w(m){return!!(typeof m=="string"||typeof m=="function"||m===n||m===i||E||m===o||m===d||m===p||f||m===y||P||_||N||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===g||m.$$typeof===s||m.$$typeof===u||m.$$typeof===c||m.$$typeof===x||m.getModuleId!==void 0))}function $(m,A,B){var Z=m.displayName;if(Z)return Z;var le=A.displayName||A.name||"";return le!==""?B+"("+le+")":B}function F(m){return m.displayName||"Context"}function k(m){if(m==null)return null;if(typeof m.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case u:var A=m;return F(A)+".Consumer";case s:var B=m;return F(B._context)+".Provider";case c:return $(m,m.render,"ForwardRef");case g:var Z=m.displayName||null;return Z!==null?Z:k(m.type)||"Memo";case h:{var le=m,me=le._payload,oe=le._init;try{return k(oe(me))}catch{return null}}}return null}var L=Object.assign,V=0,q,G,ee,Ae,I,D,Q;function X(){}X.__reactDisabledLog=!0;function z(){{if(V===0){q=console.log,G=console.info,ee=console.warn,Ae=console.error,I=console.group,D=console.groupCollapsed,Q=console.groupEnd;var m={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}V++}}function H(){{if(V--,V===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},m,{value:q}),info:L({},m,{value:G}),warn:L({},m,{value:ee}),error:L({},m,{value:Ae}),group:L({},m,{value:I}),groupCollapsed:L({},m,{value:D}),groupEnd:L({},m,{value:Q})})}V<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=T.ReactCurrentDispatcher,Y;function W(m,A,B){{if(Y===void 0)try{throw Error()}catch(le){var Z=le.stack.trim().match(/\n( *(at )?)/);Y=Z&&Z[1]||""}return`
|
|
37
|
+
`+Y+m}}var U=!1,J;{var ye=typeof WeakMap=="function"?WeakMap:Map;J=new ye}function j(m,A){if(!m||U)return"";{var B=J.get(m);if(B!==void 0)return B}var Z;U=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=K.current,K.current=null,z();try{if(A){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Fe){Z=Fe}Reflect.construct(m,[],oe)}else{try{oe.call()}catch(Fe){Z=Fe}m.call(oe.prototype)}}else{try{throw Error()}catch(Fe){Z=Fe}m()}}catch(Fe){if(Fe&&Z&&typeof Fe.stack=="string"){for(var re=Fe.stack.split(`
|
|
38
|
+
`),je=Z.stack.split(`
|
|
39
|
+
`),Ce=re.length-1,we=je.length-1;Ce>=1&&we>=0&&re[Ce]!==je[we];)we--;for(;Ce>=1&&we>=0;Ce--,we--)if(re[Ce]!==je[we]){if(Ce!==1||we!==1)do if(Ce--,we--,we<0||re[Ce]!==je[we]){var Ke=`
|
|
40
|
+
`+re[Ce].replace(" at new "," at ");return m.displayName&&Ke.includes("<anonymous>")&&(Ke=Ke.replace("<anonymous>",m.displayName)),typeof m=="function"&&J.set(m,Ke),Ke}while(Ce>=1&&we>=0);break}}}finally{U=!1,K.current=me,H(),Error.prepareStackTrace=le}var qt=m?m.displayName||m.name:"",vt=qt?W(qt):"";return typeof m=="function"&&J.set(m,vt),vt}function be(m,A,B){return j(m,!1)}function ge(m){var A=m.prototype;return!!(A&&A.isReactComponent)}function Pe(m,A,B){if(m==null)return"";if(typeof m=="function")return j(m,ge(m));if(typeof m=="string")return W(m);switch(m){case d:return W("Suspense");case p:return W("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case c:return be(m.render);case g:return Pe(m.type,A,B);case h:{var Z=m,le=Z._payload,me=Z._init;try{return Pe(me(le),A,B)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,at={},kt=T.ReactDebugCurrentFrame;function lt(m){if(m){var A=m._owner,B=Pe(m.type,m._source,A?A.type:null);kt.setExtraStackFrame(B)}else kt.setExtraStackFrame(null)}function cr(m,A,B,Z,le){{var me=Function.call.bind(ze);for(var oe in m)if(me(m,oe)){var re=void 0;try{if(typeof m[oe]!="function"){var je=Error((Z||"React class")+": "+B+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}re=m[oe](A,oe,Z,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ce){re=Ce}re&&!(re instanceof Error)&&(lt(le),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",B,oe,typeof re),lt(null)),re instanceof Error&&!(re.message in at)&&(at[re.message]=!0,lt(le),R("Failed %s type: %s",B,re.message),lt(null))}}}var lr=Array.isArray;function dr(m){return lr(m)}function Ea(m){{var A=typeof Symbol=="function"&&Symbol.toStringTag,B=A&&m[Symbol.toStringTag]||m.constructor.name||"Object";return B}}function Dt(m){try{return dt(m),!1}catch{return!0}}function dt(m){return""+m}function on(m){if(Dt(m))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ea(m)),dt(m)}var fr=T.ReactCurrentOwner,Ta={key:!0,ref:!0,__self:!0,__source:!0},te,pr;function Ra(m){if(ze.call(m,"ref")){var A=Object.getOwnPropertyDescriptor(m,"ref").get;if(A&&A.isReactWarning)return!1}return m.ref!==void 0}function an(m){if(ze.call(m,"key")){var A=Object.getOwnPropertyDescriptor(m,"key").get;if(A&&A.isReactWarning)return!1}return m.key!==void 0}function ld(m,A){typeof m.ref=="string"&&fr.current}function ky(m,A){{var B=function(){te||(te=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",A))};B.isReactWarning=!0,Object.defineProperty(m,"key",{get:B,configurable:!0})}}function Dy(m,A){{var B=function(){pr||(pr=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",A))};B.isReactWarning=!0,Object.defineProperty(m,"ref",{get:B,configurable:!0})}}var jy=function(m,A,B,Z,le,me,oe){var re={$$typeof:t,type:m,key:A,ref:B,props:oe,_owner:me};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function qy(m,A,B,Z,le){{var me,oe={},re=null,je=null;B!==void 0&&(on(B),re=""+B),an(A)&&(on(A.key),re=""+A.key),Ra(A)&&(je=A.ref,ld(A,le));for(me in A)ze.call(A,me)&&!Ta.hasOwnProperty(me)&&(oe[me]=A[me]);if(m&&m.defaultProps){var Ce=m.defaultProps;for(me in Ce)oe[me]===void 0&&(oe[me]=Ce[me])}if(re||je){var we=typeof m=="function"?m.displayName||m.name||"Unknown":m;re&&ky(oe,we),je&&Dy(oe,we)}return jy(m,re,je,le,Z,fr.current,oe)}}var Ca=T.ReactCurrentOwner,dd=T.ReactDebugCurrentFrame;function jt(m){if(m){var A=m._owner,B=Pe(m.type,m._source,A?A.type:null);dd.setExtraStackFrame(B)}else dd.setExtraStackFrame(null)}var Sa;Sa=!1;function Oa(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function fd(){{if(Ca.current){var m=k(Ca.current.type);if(m)return`
|
|
55
41
|
|
|
56
|
-
Check the render method of \``+
|
|
42
|
+
Check the render method of \``+m+"`."}return""}}function Ly(m){return""}var pd={};function Fy(m){{var A=fd();if(!A){var B=typeof m=="string"?m:m.displayName||m.name;B&&(A=`
|
|
57
43
|
|
|
58
|
-
Check the top-level render call using <`+
|
|
44
|
+
Check the top-level render call using <`+B+">.")}return A}}function hd(m,A){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var B=Fy(A);if(pd[B])return;pd[B]=!0;var Z="";m&&m._owner&&m._owner!==Ca.current&&(Z=" It was passed a child from "+k(m._owner.type)+"."),jt(m),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',B,Z),jt(null)}}function gd(m,A){{if(typeof m!="object")return;if(dr(m))for(var B=0;B<m.length;B++){var Z=m[B];Oa(Z)&&hd(Z,A)}else if(Oa(m))m._store&&(m._store.validated=!0);else if(m){var le=b(m);if(typeof le=="function"&&le!==m.entries)for(var me=le.call(m),oe;!(oe=me.next()).done;)Oa(oe.value)&&hd(oe.value,A)}}}function By(m){{var A=m.type;if(A==null||typeof A=="string")return;var B;if(typeof A=="function")B=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===c||A.$$typeof===g))B=A.propTypes;else return;if(B){var Z=k(A);cr(B,m.props,"prop",Z,m)}else if(A.PropTypes!==void 0&&!Sa){Sa=!0;var le=k(A);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vy(m){{for(var A=Object.keys(m.props),B=0;B<A.length;B++){var Z=A[B];if(Z!=="children"&&Z!=="key"){jt(m),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),jt(null);break}}m.ref!==null&&(jt(m),R("Invalid attribute `ref` supplied to `React.Fragment`."),jt(null))}}var md={};function vd(m,A,B,Z,le,me){{var oe=w(m);if(!oe){var re="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Ly();je?re+=je:re+=fd();var Ce;m===null?Ce="null":dr(m)?Ce="array":m!==void 0&&m.$$typeof===t?(Ce="<"+(k(m.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof m,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,re)}var we=qy(m,A,B,le,me);if(we==null)return we;if(oe){var Ke=A.children;if(Ke!==void 0)if(Z)if(dr(Ke)){for(var qt=0;qt<Ke.length;qt++)gd(Ke[qt],m);Object.freeze&&Object.freeze(Ke)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else gd(Ke,m)}if(ze.call(A,"key")){var vt=k(m),Fe=Object.keys(A).filter(function(Hy){return Hy!=="key"}),Pa=Fe.length>0?"{key: someKey, "+Fe.join(": ..., ")+": ...}":"{key: someKey}";if(!md[vt+Pa]){var Ky=Fe.length>0?"{"+Fe.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
59
45
|
let props = %s;
|
|
60
46
|
<%s {...props} />
|
|
61
47
|
React keys must be passed directly to JSX without using spread:
|
|
62
48
|
let props = %s;
|
|
63
|
-
<%s key={someKey} {...props} />`,
|
|
49
|
+
<%s key={someKey} {...props} />`,Pa,vt,Ky,vt),md[vt+Pa]=!0}}return m===n?Vy(we):By(we),we}}function zy(m,A,B){return vd(m,A,B,!0)}function Wy(m,A,B){return vd(m,A,B,!1)}var Uy=Wy,Gy=zy;Gt.Fragment=n,Gt.jsx=Uy,Gt.jsxs=Gy}()),Gt}var ns;function os(){return ns||(ns=1,process.env.NODE_ENV==="production"?Sr.exports=af():Sr.exports=sf()),Sr.exports}var M=os();let Tn;typeof document=="object"&&(Tn=of({key:"css",prepend:!0}));function is(e){const{injectFirst:t,children:r}=e;return t&&Tn?M.jsx(Lt.CacheProvider,{value:Tn,children:r}):r}process.env.NODE_ENV!=="production"&&(is.propTypes={children:a.node,injectFirst:a.bool});function uf(e){return e==null||Object.keys(e).length===0}function as(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(uf(o)?r:o):t;return M.jsx(Lt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(as.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.func])});/**
|
|
64
50
|
* @mui/styled-engine v5.16.14
|
|
65
51
|
*
|
|
66
52
|
* @license MIT
|
|
67
53
|
* This source code is licensed under the MIT license found in the
|
|
68
54
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function
|
|
70
|
-
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
55
|
+
*/function cf(e,t){const r=yd(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
56
|
+
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const lf=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},df=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:as,StyledEngineProvider:is,ThemeContext:Lt.ThemeContext,css:Lt.css,default:cf,internal_processStyles:lf,keyframes:Lt.keyframes},Symbol.toStringTag,{value:"Module"})),ff=tt(df);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}function st(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ss(e){if(O.isValidElement(e)||!st(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ss(e[r])}),t}function Ze(e,t,r={clone:!0}){const n=r.clone?C({},e):e;return st(e)&&st(t)&&Object.keys(t).forEach(o=>{O.isValidElement(t[o])?n[o]=t[o]:st(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&st(e[o])?n[o]=Ze(e[o],t[o],r):r.clone?n[o]=st(t[o])?ss(t[o]):t[o]:n[o]=t[o]}),n}const pf=tt(Object.freeze(Object.defineProperty({__proto__:null,default:Ze,isPlainObject:st},Symbol.toStringTag,{value:"Module"})));function Kt(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const hf=Object.freeze(Object.defineProperty({__proto__:null,default:Kt},Symbol.toStringTag,{value:"Module"}));function fe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const gf=tt(Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"})));var Or={exports:{}},pe={};/**
|
|
71
57
|
* @license React
|
|
72
58
|
* react-is.production.js
|
|
73
59
|
*
|
|
@@ -75,7 +61,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
75
61
|
*
|
|
76
62
|
* This source code is licensed under the MIT license found in the
|
|
77
63
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var
|
|
64
|
+
*/var us;function mf(){if(us)return pe;us=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");function v(l){if(typeof l=="object"&&l!==null){var b=l.$$typeof;switch(b){case e:switch(l=l.type,l){case r:case o:case n:case c:case d:return l;default:switch(l=l&&l.$$typeof,l){case s:case u:case g:case p:return l;case i:return l;default:return b}}case t:return b}}}return pe.ContextConsumer=i,pe.ContextProvider=s,pe.Element=e,pe.ForwardRef=u,pe.Fragment=r,pe.Lazy=g,pe.Memo=p,pe.Portal=t,pe.Profiler=o,pe.StrictMode=n,pe.Suspense=c,pe.SuspenseList=d,pe.isContextConsumer=function(l){return v(l)===i},pe.isContextProvider=function(l){return v(l)===s},pe.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},pe.isForwardRef=function(l){return v(l)===u},pe.isFragment=function(l){return v(l)===r},pe.isLazy=function(l){return v(l)===g},pe.isMemo=function(l){return v(l)===p},pe.isPortal=function(l){return v(l)===t},pe.isProfiler=function(l){return v(l)===o},pe.isStrictMode=function(l){return v(l)===n},pe.isSuspense=function(l){return v(l)===c},pe.isSuspenseList=function(l){return v(l)===d},pe.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===c||l===d||l===h||typeof l=="object"&&l!==null&&(l.$$typeof===g||l.$$typeof===p||l.$$typeof===s||l.$$typeof===i||l.$$typeof===u||l.$$typeof===y||l.getModuleId!==void 0)},pe.typeOf=v,pe}var he={};/**
|
|
79
65
|
* @license React
|
|
80
66
|
* react-is.development.js
|
|
81
67
|
*
|
|
@@ -83,14 +69,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
83
69
|
*
|
|
84
70
|
* This source code is licensed under the MIT license found in the
|
|
85
71
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
72
|
+
*/var cs;function vf(){return cs||(cs=1,process.env.NODE_ENV!=="production"&&function(){function e(l){if(typeof l=="object"&&l!==null){var b=l.$$typeof;switch(b){case t:switch(l=l.type,l){case n:case i:case o:case d:case p:return l;default:switch(l=l&&l.$$typeof,l){case u:case c:case h:case g:return l;case s:return l;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");he.ContextConsumer=s,he.ContextProvider=u,he.Element=t,he.ForwardRef=c,he.Fragment=n,he.Lazy=h,he.Memo=g,he.Portal=r,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.SuspenseList=p,he.isContextConsumer=function(l){return e(l)===s},he.isContextProvider=function(l){return e(l)===u},he.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},he.isForwardRef=function(l){return e(l)===c},he.isFragment=function(l){return e(l)===n},he.isLazy=function(l){return e(l)===h},he.isMemo=function(l){return e(l)===g},he.isPortal=function(l){return e(l)===r},he.isProfiler=function(l){return e(l)===i},he.isStrictMode=function(l){return e(l)===o},he.isSuspense=function(l){return e(l)===d},he.isSuspenseList=function(l){return e(l)===p},he.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===i||l===o||l===d||l===p||l===y||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===g||l.$$typeof===u||l.$$typeof===s||l.$$typeof===c||l.$$typeof===v||l.getModuleId!==void 0)},he.typeOf=e}()),he}var ls;function yf(){return ls||(ls=1,process.env.NODE_ENV==="production"?Or.exports=mf():Or.exports=vf()),Or.exports}var ds=yf();const bf=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fs(e){const t=`${e}`.match(bf);return t&&t[1]||""}function ps(e,t=""){return e.displayName||e.name||fs(e)||t}function hs(e,t,r){const n=ps(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function _f(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ps(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ds.ForwardRef:return hs(e,e.render,"ForwardRef");case ds.Memo:return hs(e,e.type,"memo");default:return}}}const xf=tt(Object.freeze(Object.defineProperty({__proto__:null,default:_f,getFunctionName:fs},Symbol.toStringTag,{value:"Module"})));function ce(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}const Ef=["values","unit","step"],Tf=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>C({},r,{[n.key]:n.val}),{})};function gs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ce(e,Ef),i=Tf(t),s=Object.keys(i);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function d(h,y){const v=s.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:y)-n/100}${r})`}function p(h){return s.indexOf(h)+1<s.length?d(h,s[s.indexOf(h)+1]):u(h)}function g(h){const y=s.indexOf(h);return y===0?u(s[1]):y===s.length-1?c(s[y]):d(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return C({keys:s,values:i,up:u,down:c,between:d,only:p,not:g,unit:r},o)}const Rf={borderRadius:4},ut=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function Ht(e,t){return t?Ze(e,t,{clone:!1}):e}const Rn={xs:0,sm:600,md:900,lg:1200,xl:1536},ms={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rn[e]}px)`};function rt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||ms;return t.reduce((s,u,c)=>(s[i.up(i.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const i=n.breakpoints||ms;return Object.keys(t).reduce((s,u)=>{if(Object.keys(i.values||Rn).indexOf(u)!==-1){const c=i.up(u);s[c]=r(t[u],u)}else{const c=u;s[c]=t[c]}return s},{})}return r(t)}function Cf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Sf(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Pr(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function wr(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Pr(e,r)||n,t&&(o=t(o,n,e)),o}function Re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const u=s[t],c=s.theme,d=Pr(c,n)||{};return rt(s,u,g=>{let h=wr(d,o,g);return g===h&&typeof g=="string"&&(h=wr(d,o,`${t}${g==="default"?"":fe(g)}`,g)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ut}:{},i.filterProps=[t],i}function Of(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Pf={m:"margin",p:"padding"},wf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},If=Of(e=>{if(e.length>2)if(vs[e])e=vs[e];else return[e];const[t,r]=e.split(""),n=Pf[t],o=wf[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ir=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$r=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$f=[...Ir,...$r];function Yt(e,t,r,n){var o;const i=(o=Pr(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
87
73
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
88
|
-
`))),i[
|
|
89
|
-
`)),()=>{})}function Zs(e){return Qt(e,"spacing",8,"spacing")}function er(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $p(e,t){return r=>e.reduce((n,o)=>(n[o]=er(t,r),n),{})}function Ap(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=wp(r),i=$p(o,n),a=e[r];return it(e,a,i)}function Qs(e,t){const r=Zs(e.theme);return Object.keys(e).map(n=>Ap(e,t,n,r)).reduce(Zt,{})}function Re(e){return Qs(e,Dr)}Re.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,t)=>(e[t]=dt,e),{}):{},Re.filterProps=Dr;function Ce(e){return Qs(e,jr)}Ce.propTypes=process.env.NODE_ENV!=="production"?jr.reduce((e,t)=>(e[t]=dt,e),{}):{},Ce.filterProps=jr,process.env.NODE_ENV!=="production"&&Ip.reduce((e,t)=>(e[t]=dt,e),{});function Mp(e=8){if(e.mui)return e;const t=Zs({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function qr(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Zt(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ue(e){return typeof e!="number"?e:`${e}px solid`}function Ge(e,t){return Oe({prop:e,themeKey:"borders",transform:t})}const Np=Ge("border",Ue),kp=Ge("borderTop",Ue),Dp=Ge("borderRight",Ue),jp=Ge("borderBottom",Ue),qp=Ge("borderLeft",Ue),Lp=Ge("borderColor"),Fp=Ge("borderTopColor"),Bp=Ge("borderRightColor"),zp=Ge("borderBottomColor"),Vp=Ge("borderLeftColor"),Wp=Ge("outline",Ue),Up=Ge("outlineColor"),Lr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:er(t,n)});return it(e,e.borderRadius,r)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:dt}:{},Lr.filterProps=["borderRadius"],qr(Np,kp,Dp,jp,qp,Lp,Fp,Bp,zp,Vp,Lr,Wp,Up);const Fr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qt(e.theme,"spacing",8,"gap"),r=n=>({gap:er(t,n)});return it(e,e.gap,r)}return null};Fr.propTypes=process.env.NODE_ENV!=="production"?{gap:dt}:{},Fr.filterProps=["gap"];const Br=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:er(t,n)});return it(e,e.columnGap,r)}return null};Br.propTypes=process.env.NODE_ENV!=="production"?{columnGap:dt}:{},Br.filterProps=["columnGap"];const zr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:er(t,n)});return it(e,e.rowGap,r)}return null};zr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:dt}:{},zr.filterProps=["rowGap"];const Gp=Oe({prop:"gridColumn"}),Yp=Oe({prop:"gridRow"}),Hp=Oe({prop:"gridAutoFlow"}),Kp=Oe({prop:"gridAutoColumns"}),Xp=Oe({prop:"gridAutoRows"}),Jp=Oe({prop:"gridTemplateColumns"}),Zp=Oe({prop:"gridTemplateRows"}),Qp=Oe({prop:"gridTemplateAreas"}),eh=Oe({prop:"gridArea"});qr(Fr,Br,zr,Gp,Yp,Hp,Kp,Xp,Jp,Zp,Qp,eh);function Rt(e,t){return t==="grey"?t:e}const th=Oe({prop:"color",themeKey:"palette",transform:Rt}),rh=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rt}),nh=Oe({prop:"backgroundColor",themeKey:"palette",transform:Rt});qr(th,rh,nh);function Ve(e){return e<=1&&e!==0?`${e*100}%`:e}const oh=Oe({prop:"width",transform:Ve}),Ln=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||qn[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ve(r)}};return it(e,e.maxWidth,t)}return null};Ln.filterProps=["maxWidth"];const ih=Oe({prop:"minWidth",transform:Ve}),ah=Oe({prop:"height",transform:Ve}),sh=Oe({prop:"maxHeight",transform:Ve}),uh=Oe({prop:"minHeight",transform:Ve});Oe({prop:"size",cssProperty:"width",transform:Ve}),Oe({prop:"size",cssProperty:"height",transform:Ve});const ch=Oe({prop:"boxSizing"});qr(oh,Ln,ih,ah,sh,uh,ch);const tr={border:{themeKey:"borders",transform:Ue},borderTop:{themeKey:"borders",transform:Ue},borderRight:{themeKey:"borders",transform:Ue},borderBottom:{themeKey:"borders",transform:Ue},borderLeft:{themeKey:"borders",transform:Ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lr},color:{themeKey:"palette",transform:Rt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rt},backgroundColor:{themeKey:"palette",transform:Rt},p:{style:Ce},pt:{style:Ce},pr:{style:Ce},pb:{style:Ce},pl:{style:Ce},px:{style:Ce},py:{style:Ce},padding:{style:Ce},paddingTop:{style:Ce},paddingRight:{style:Ce},paddingBottom:{style:Ce},paddingLeft:{style:Ce},paddingX:{style:Ce},paddingY:{style:Ce},paddingInline:{style:Ce},paddingInlineStart:{style:Ce},paddingInlineEnd:{style:Ce},paddingBlock:{style:Ce},paddingBlockStart:{style:Ce},paddingBlockEnd:{style:Ce},m:{style:Re},mt:{style:Re},mr:{style:Re},mb:{style:Re},ml:{style:Re},mx:{style:Re},my:{style:Re},margin:{style:Re},marginTop:{style:Re},marginRight:{style:Re},marginBottom:{style:Re},marginLeft:{style:Re},marginX:{style:Re},marginY:{style:Re},marginInline:{style:Re},marginInlineStart:{style:Re},marginInlineEnd:{style:Re},marginBlock:{style:Re},marginBlockStart:{style:Re},marginBlockEnd:{style:Re},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:Fr},rowGap:{style:zr},columnGap:{style:Br},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ve},maxWidth:{style:Ln},minWidth:{transform:Ve},height:{transform:Ve},maxHeight:{transform:Ve},minHeight:{transform:Ve},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lh(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function dh(e,t){return typeof e=="function"?e(t):e}function eu(){function e(r,n,o,i){const a={[r]:n,theme:o},u=i[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:d,transform:f,style:p}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const m=St(o,d)||{};return p?p(a):it(a,n,v=>{let l=kr(m,f,v);return v===l&&typeof v=="string"&&(l=kr(m,f,`${r}${v==="default"?"":me(v)}`,v)),c===!1?l:{[c]:l}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:tr;function u(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const f=Sp(i.breakpoints),p=Object.keys(f);let m=f;return Object.keys(d).forEach(b=>{const v=dh(d[b],i);if(v!=null)if(typeof v=="object")if(a[b])m=Zt(m,e(b,v,i,a));else{const l=it({theme:i},v,_=>({[b]:_}));lh(l,v)?m[b]=t({sx:v,theme:i}):m=Zt(m,l)}else m=Zt(m,e(b,v,i,a))}),Rp(p,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const Vr=eu();Vr.filterProps=["sx"];function tu(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const fh=["breakpoints","palette","spacing","shape"];function Fn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=pe(e,fh),u=Ks(r),c=Mp(o);let d=tt({breakpoints:u,direction:"ltr",components:{},palette:w({mode:"light"},n),spacing:c,shape:w({},Tp,i)},a);return d.applyStyles=tu,d=t.reduce((f,p)=>tt(f,p),d),d.unstable_sxConfig=w({},tr,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(p){return Vr({sx:p,theme:this})},d}const ph=ot(Object.freeze(Object.defineProperty({__proto__:null,default:Fn,private_createBreakpoints:Ks,unstable_applyStyles:tu},Symbol.toStringTag,{value:"Module"}))),hh=["sx"],mh=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:tr;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function ru(e){const{sx:t}=e,r=pe(e,hh),{systemProps:n,otherProps:o}=mh(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return lt(u)?w({},n,u):n}:i=w({},n,t),w({},o,{sx:i})}const gh=ot(Object.freeze(Object.defineProperty({__proto__:null,default:Vr,extendSxProp:ru,unstable_createStyleFunctionSx:eu,unstable_defaultSxConfig:tr},Symbol.toStringTag,{value:"Module"})));var nu;function yh(){if(nu)return mt;nu=1;var e=hn();Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=$,mt.shouldForwardProp=_,mt.systemDefaultTheme=void 0;var t=e(Zd()),r=e(Qd()),n=b(dp),o=fp,i=e(hp),a=e(_p),u=e(ph),c=e(gh);const d=["ownerState"],f=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(h){if(typeof WeakMap!="function")return null;var O=new WeakMap,R=new WeakMap;return(m=function(I){return I?R:O})(h)}function b(h,O){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var R=m(O);if(R&&R.has(h))return R.get(h);var I={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in h)if(F!=="default"&&Object.prototype.hasOwnProperty.call(h,F)){var D=M?Object.getOwnPropertyDescriptor(h,F):null;D&&(D.get||D.set)?Object.defineProperty(I,F,D):I[F]=h[F]}return I.default=h,R&&R.set(h,I),I}function v(h){return Object.keys(h).length===0}function l(h){return typeof h=="string"&&h.charCodeAt(0)>96}function _(h){return h!=="ownerState"&&h!=="theme"&&h!=="sx"&&h!=="as"}const E=mt.systemDefaultTheme=(0,u.default)(),C=h=>h&&h.charAt(0).toLowerCase()+h.slice(1);function T({defaultTheme:h,theme:O,themeId:R}){return v(O)?h:O[R]||O}function x(h){return h?(O,R)=>R[h]:null}function y(h,O){let{ownerState:R}=O,I=(0,r.default)(O,d);const M=typeof h=="function"?h((0,t.default)({ownerState:R},I)):h;if(Array.isArray(M))return M.flatMap(F=>y(F,(0,t.default)({ownerState:R},I)));if(M&&typeof M=="object"&&Array.isArray(M.variants)){const{variants:F=[]}=M;let L=(0,r.default)(M,f);return F.forEach(B=>{let q=!0;typeof B.props=="function"?q=B.props((0,t.default)({ownerState:R},I,R)):Object.keys(B.props).forEach(G=>{(R==null?void 0:R[G])!==B.props[G]&&I[G]!==B.props[G]&&(q=!1)}),q&&(Array.isArray(L)||(L=[L]),L.push(typeof B.style=="function"?B.style((0,t.default)({ownerState:R},I,R)):B.style))}),L}return M}function $(h={}){const{themeId:O,defaultTheme:R=E,rootShouldForwardProp:I=_,slotShouldForwardProp:M=_}=h,F=D=>(0,c.default)((0,t.default)({},D,{theme:T((0,t.default)({},D,{defaultTheme:R,themeId:O}))}));return F.__mui_systemSx=!0,(D,L={})=>{(0,n.internal_processStyles)(D,W=>W.filter(U=>!(U!=null&&U.__mui_systemSx)));const{name:B,slot:q,skipVariantsResolver:G,skipSx:Z,overridesResolver:Pe=x(C(q))}=L,A=(0,r.default)(L,p),j=G!==void 0?G:q&&q!=="Root"&&q!=="root"||!1,Q=Z||!1;let X;process.env.NODE_ENV!=="production"&&B&&(X=`${B}-${C(q||"Root")}`);let V=_;q==="Root"||q==="root"?V=I:q?V=M:l(D)&&(V=void 0);const H=(0,n.default)(D,(0,t.default)({shouldForwardProp:V,label:X},A)),Y=W=>typeof W=="function"&&W.__emotion_real!==W||(0,o.isPlainObject)(W)?U=>y(W,(0,t.default)({},U,{theme:T({theme:U.theme,defaultTheme:R,themeId:O})})):W,K=(W,...U)=>{let J=Y(W);const be=U?U.map(Y):[];B&&Pe&&be.push(ie=>{const Se=T((0,t.default)({},ie,{defaultTheme:R,themeId:O}));if(!Se.components||!Se.components[B]||!Se.components[B].styleOverrides)return null;const We=Se.components[B].styleOverrides,ct={};return Object.entries(We).forEach(([qt,pt])=>{ct[qt]=y(pt,(0,t.default)({},ie,{theme:Se}))}),Pe(ie,ct)}),B&&!j&&be.push(ie=>{var Se;const We=T((0,t.default)({},ie,{defaultTheme:R,themeId:O})),ct=We==null||(Se=We.components)==null||(Se=Se[B])==null?void 0:Se.variants;return y({variants:ct},(0,t.default)({},ie,{theme:We}))}),Q||be.push(F);const P=be.length-U.length;if(Array.isArray(W)&&P>0){const ie=new Array(P).fill("");J=[...W,...ie],J.raw=[...W.raw,...ie]}const ge=H(J,...be);if(process.env.NODE_ENV!=="production"){let ie;B&&(ie=`${B}${(0,i.default)(q||"")}`),ie===void 0&&(ie=`Styled(${(0,a.default)(D)})`),ge.displayName=ie}return D.muiName&&(ge.muiName=D.muiName),ge};return H.withConfig&&(K.withConfig=H.withConfig),K}}return mt}var vh=yh();const bh=br(vh),ou=e=>e,iu=(()=>{let e=ou;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ou}}})(),_h={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 Me(e,t,r="Mui"){const n=_h[t];return n?`${r}-${n}`:`${iu.generate(e)}-${t}`}function xh(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Te={};const Eh=ot(pp);function Th(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Sh=ot(Object.freeze(Object.defineProperty({__proto__:null,default:Th},Symbol.toStringTag,{value:"Module"})));var au;function Rh(){if(au)return Te;au=1;var e=hn();Object.defineProperty(Te,"__esModule",{value:!0}),Te.alpha=v,Te.blend=$,Te.colorChannel=void 0,Te.darken=_,Te.decomposeColor=a,Te.emphasize=x,Te.getContrastRatio=b,Te.getLuminance=m,Te.hexToRgb=o,Te.hslToRgb=p,Te.lighten=C,Te.private_safeAlpha=l,Te.private_safeColorChannel=void 0,Te.private_safeDarken=E,Te.private_safeEmphasize=y,Te.private_safeLighten=T,Te.recomposeColor=d,Te.rgbToHex=f;var t=e(Eh),r=e(Sh);function n(h,O=0,R=1){return process.env.NODE_ENV!=="production"&&(h<O||h>R)&&console.error(`MUI: The value provided ${h} is out of range [${O}, ${R}].`),(0,r.default)(h,O,R)}function o(h){h=h.slice(1);const O=new RegExp(`.{1,${h.length>=6?2:1}}`,"g");let R=h.match(O);return R&&R[0].length===1&&(R=R.map(I=>I+I)),R?`rgb${R.length===4?"a":""}(${R.map((I,M)=>M<3?parseInt(I,16):Math.round(parseInt(I,16)/255*1e3)/1e3).join(", ")})`:""}function i(h){const O=h.toString(16);return O.length===1?`0${O}`:O}function a(h){if(h.type)return h;if(h.charAt(0)==="#")return a(o(h));const O=h.indexOf("("),R=h.substring(0,O);if(["rgb","rgba","hsl","hsla","color"].indexOf(R)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${h}\` color.
|
|
90
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,
|
|
91
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10
|
|
92
|
-
`))}return
|
|
93
|
-
The color object needs to have a \`main\` property or a \`${
|
|
74
|
+
`))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
75
|
+
`)),()=>{})}function ys(e){return Yt(e,"spacing",8,"spacing")}function Xt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Af(e,t){return r=>e.reduce((n,o)=>(n[o]=Xt(t,r),n),{})}function Nf(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=If(r),i=Af(o,n),s=e[r];return rt(e,s,i)}function bs(e,t){const r=ys(e.theme);return Object.keys(e).map(n=>Nf(e,t,n,r)).reduce(Ht,{})}function Ee(e){return bs(e,Ir)}Ee.propTypes=process.env.NODE_ENV!=="production"?Ir.reduce((e,t)=>(e[t]=ut,e),{}):{},Ee.filterProps=Ir;function Te(e){return bs(e,$r)}Te.propTypes=process.env.NODE_ENV!=="production"?$r.reduce((e,t)=>(e[t]=ut,e),{}):{},Te.filterProps=$r,process.env.NODE_ENV!=="production"&&$f.reduce((e,t)=>(e[t]=ut,e),{});function Mf(e=8){if(e.mui)return e;const t=ys({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Ar(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Ht(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function We(e){return typeof e!="number"?e:`${e}px solid`}function Ue(e,t){return Re({prop:e,themeKey:"borders",transform:t})}const kf=Ue("border",We),Df=Ue("borderTop",We),jf=Ue("borderRight",We),qf=Ue("borderBottom",We),Lf=Ue("borderLeft",We),Ff=Ue("borderColor"),Bf=Ue("borderTopColor"),Vf=Ue("borderRightColor"),zf=Ue("borderBottomColor"),Wf=Ue("borderLeftColor"),Uf=Ue("outline",We),Gf=Ue("outlineColor"),Nr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Xt(t,n)});return rt(e,e.borderRadius,r)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ut}:{},Nr.filterProps=["borderRadius"],Ar(kf,Df,jf,qf,Lf,Ff,Bf,Vf,zf,Wf,Nr,Uf,Gf);const Mr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yt(e.theme,"spacing",8,"gap"),r=n=>({gap:Xt(t,n)});return rt(e,e.gap,r)}return null};Mr.propTypes=process.env.NODE_ENV!=="production"?{gap:ut}:{},Mr.filterProps=["gap"];const kr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Xt(t,n)});return rt(e,e.columnGap,r)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ut}:{},kr.filterProps=["columnGap"];const Dr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Xt(t,n)});return rt(e,e.rowGap,r)}return null};Dr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ut}:{},Dr.filterProps=["rowGap"];const Kf=Re({prop:"gridColumn"}),Hf=Re({prop:"gridRow"}),Yf=Re({prop:"gridAutoFlow"}),Xf=Re({prop:"gridAutoColumns"}),Jf=Re({prop:"gridAutoRows"}),Zf=Re({prop:"gridTemplateColumns"}),Qf=Re({prop:"gridTemplateRows"}),ep=Re({prop:"gridTemplateAreas"}),tp=Re({prop:"gridArea"});Ar(Mr,kr,Dr,Kf,Hf,Yf,Xf,Jf,Zf,Qf,ep,tp);function Et(e,t){return t==="grey"?t:e}const rp=Re({prop:"color",themeKey:"palette",transform:Et}),np=Re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Et}),op=Re({prop:"backgroundColor",themeKey:"palette",transform:Et});Ar(rp,np,op);function Ve(e){return e<=1&&e!==0?`${e*100}%`:e}const ip=Re({prop:"width",transform:Ve}),Cn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Rn[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ve(r)}};return rt(e,e.maxWidth,t)}return null};Cn.filterProps=["maxWidth"];const ap=Re({prop:"minWidth",transform:Ve}),sp=Re({prop:"height",transform:Ve}),up=Re({prop:"maxHeight",transform:Ve}),cp=Re({prop:"minHeight",transform:Ve});Re({prop:"size",cssProperty:"width",transform:Ve}),Re({prop:"size",cssProperty:"height",transform:Ve});const lp=Re({prop:"boxSizing"});Ar(ip,Cn,ap,sp,up,cp,lp);const Jt={border:{themeKey:"borders",transform:We},borderTop:{themeKey:"borders",transform:We},borderRight:{themeKey:"borders",transform:We},borderBottom:{themeKey:"borders",transform:We},borderLeft:{themeKey:"borders",transform:We},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:We},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nr},color:{themeKey:"palette",transform:Et},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Et},backgroundColor:{themeKey:"palette",transform:Et},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:Mr},rowGap:{style:Dr},columnGap:{style:kr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ve},maxWidth:{style:Cn},minWidth:{transform:Ve},height:{transform:Ve},maxHeight:{transform:Ve},minHeight:{transform:Ve},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dp(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function fp(e,t){return typeof e=="function"?e(t):e}function _s(){function e(r,n,o,i){const s={[r]:n,theme:o},u=i[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:d,transform:p,style:g}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const h=Pr(o,d)||{};return g?g(s):rt(s,n,v=>{let l=wr(h,p,v);return v===l&&typeof v=="string"&&(l=wr(h,p,`${r}${v==="default"?"":fe(v)}`,v)),c===!1?l:{[c]:l}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:Jt;function u(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=Cf(i.breakpoints),g=Object.keys(p);let h=p;return Object.keys(d).forEach(y=>{const v=fp(d[y],i);if(v!=null)if(typeof v=="object")if(s[y])h=Ht(h,e(y,v,i,s));else{const l=rt({theme:i},v,b=>({[y]:b}));dp(l,v)?h[y]=t({sx:v,theme:i}):h=Ht(h,l)}else h=Ht(h,e(y,v,i,s))}),Sf(g,h)}return Array.isArray(o)?o.map(u):u(o)}return t}const jr=_s();jr.filterProps=["sx"];function xs(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const pp=["breakpoints","palette","spacing","shape"];function Es(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=ce(e,pp),u=gs(r),c=Mf(o);let d=Ze({breakpoints:u,direction:"ltr",components:{},palette:C({mode:"light"},n),spacing:c,shape:C({},Rf,i)},s);return d.applyStyles=xs,d=t.reduce((p,g)=>Ze(p,g),d),d.unstable_sxConfig=C({},Jt,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(g){return jr({sx:g,theme:this})},d}const hp=tt(Object.freeze(Object.defineProperty({__proto__:null,default:Es,private_createBreakpoints:gs,unstable_applyStyles:xs},Symbol.toStringTag,{value:"Module"}))),gp=["sx"],mp=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Jt;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ts(e){const{sx:t}=e,r=ce(e,gp),{systemProps:n,otherProps:o}=mp(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const u=t(...s);return st(u)?C({},n,u):n}:i=C({},n,t),C({},o,{sx:i})}const vp=tt(Object.freeze(Object.defineProperty({__proto__:null,default:jr,extendSxProp:Ts,unstable_createStyleFunctionSx:_s,unstable_defaultSxConfig:Jt},Symbol.toStringTag,{value:"Module"})));var Rs;function yp(){if(Rs)return ft;Rs=1;var e=un();Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=N,ft.shouldForwardProp=b,ft.systemDefaultTheme=void 0;var t=e(_d()),r=e(xd()),n=y(ff),o=pf,i=e(gf),s=e(xf),u=e(hp),c=e(vp);const d=["ownerState"],p=["variants"],g=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(f){if(typeof WeakMap!="function")return null;var E=new WeakMap,x=new WeakMap;return(h=function(w){return w?x:E})(f)}function y(f,E){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var x=h(E);if(x&&x.has(f))return x.get(f);var w={__proto__:null},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in f)if(F!=="default"&&Object.prototype.hasOwnProperty.call(f,F)){var k=$?Object.getOwnPropertyDescriptor(f,F):null;k&&(k.get||k.set)?Object.defineProperty(w,F,k):w[F]=f[F]}return w.default=f,x&&x.set(f,w),w}function v(f){return Object.keys(f).length===0}function l(f){return typeof f=="string"&&f.charCodeAt(0)>96}function b(f){return f!=="ownerState"&&f!=="theme"&&f!=="sx"&&f!=="as"}const T=ft.systemDefaultTheme=(0,u.default)(),R=f=>f&&f.charAt(0).toLowerCase()+f.slice(1);function S({defaultTheme:f,theme:E,themeId:x}){return v(E)?f:E[x]||E}function P(f){return f?(E,x)=>x[f]:null}function _(f,E){let{ownerState:x}=E,w=(0,r.default)(E,d);const $=typeof f=="function"?f((0,t.default)({ownerState:x},w)):f;if(Array.isArray($))return $.flatMap(F=>_(F,(0,t.default)({ownerState:x},w)));if($&&typeof $=="object"&&Array.isArray($.variants)){const{variants:F=[]}=$;let L=(0,r.default)($,p);return F.forEach(V=>{let q=!0;typeof V.props=="function"?q=V.props((0,t.default)({ownerState:x},w,x)):Object.keys(V.props).forEach(G=>{(x==null?void 0:x[G])!==V.props[G]&&w[G]!==V.props[G]&&(q=!1)}),q&&(Array.isArray(L)||(L=[L]),L.push(typeof V.style=="function"?V.style((0,t.default)({ownerState:x},w,x)):V.style))}),L}return $}function N(f={}){const{themeId:E,defaultTheme:x=T,rootShouldForwardProp:w=b,slotShouldForwardProp:$=b}=f,F=k=>(0,c.default)((0,t.default)({},k,{theme:S((0,t.default)({},k,{defaultTheme:x,themeId:E}))}));return F.__mui_systemSx=!0,(k,L={})=>{(0,n.internal_processStyles)(k,W=>W.filter(U=>!(U!=null&&U.__mui_systemSx)));const{name:V,slot:q,skipVariantsResolver:G,skipSx:ee,overridesResolver:Ae=P(R(q))}=L,I=(0,r.default)(L,g),D=G!==void 0?G:q&&q!=="Root"&&q!=="root"||!1,Q=ee||!1;let X;process.env.NODE_ENV!=="production"&&V&&(X=`${V}-${R(q||"Root")}`);let z=b;q==="Root"||q==="root"?z=w:q?z=$:l(k)&&(z=void 0);const H=(0,n.default)(k,(0,t.default)({shouldForwardProp:z,label:X},I)),K=W=>typeof W=="function"&&W.__emotion_real!==W||(0,o.isPlainObject)(W)?U=>_(W,(0,t.default)({},U,{theme:S({theme:U.theme,defaultTheme:x,themeId:E})})):W,Y=(W,...U)=>{let J=K(W);const ye=U?U.map(K):[];V&&Ae&&ye.push(ge=>{const Pe=S((0,t.default)({},ge,{defaultTheme:x,themeId:E}));if(!Pe.components||!Pe.components[V]||!Pe.components[V].styleOverrides)return null;const ze=Pe.components[V].styleOverrides,at={};return Object.entries(ze).forEach(([kt,lt])=>{at[kt]=_(lt,(0,t.default)({},ge,{theme:Pe}))}),Ae(ge,at)}),V&&!D&&ye.push(ge=>{var Pe;const ze=S((0,t.default)({},ge,{defaultTheme:x,themeId:E})),at=ze==null||(Pe=ze.components)==null||(Pe=Pe[V])==null?void 0:Pe.variants;return _({variants:at},(0,t.default)({},ge,{theme:ze}))}),Q||ye.push(F);const j=ye.length-U.length;if(Array.isArray(W)&&j>0){const ge=new Array(j).fill("");J=[...W,...ge],J.raw=[...W.raw,...ge]}const be=H(J,...ye);if(process.env.NODE_ENV!=="production"){let ge;V&&(ge=`${V}${(0,i.default)(q||"")}`),ge===void 0&&(ge=`Styled(${(0,s.default)(k)})`),be.displayName=ge}return k.muiName&&(be.muiName=k.muiName),be};return H.withConfig&&(Y.withConfig=H.withConfig),Y}}return ft}var bp=yp();const _p=gr(bp),Cs=e=>e,Ss=(()=>{let e=Cs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cs}}})(),xp={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 Ie(e,t,r="Mui"){const n=xp[t];return n?`${r}-${n}`:`${Ss.generate(e)}-${t}`}function Ep(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xe={};const Tp=tt(hf);function Rp(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Cp=tt(Object.freeze(Object.defineProperty({__proto__:null,default:Rp},Symbol.toStringTag,{value:"Module"})));var Os;function Sp(){if(Os)return xe;Os=1;var e=un();Object.defineProperty(xe,"__esModule",{value:!0}),xe.alpha=v,xe.blend=N,xe.colorChannel=void 0,xe.darken=b,xe.decomposeColor=s,xe.emphasize=P,xe.getContrastRatio=y,xe.getLuminance=h,xe.hexToRgb=o,xe.hslToRgb=g,xe.lighten=R,xe.private_safeAlpha=l,xe.private_safeColorChannel=void 0,xe.private_safeDarken=T,xe.private_safeEmphasize=_,xe.private_safeLighten=S,xe.recomposeColor=d,xe.rgbToHex=p;var t=e(Tp),r=e(Cp);function n(f,E=0,x=1){return process.env.NODE_ENV!=="production"&&(f<E||f>x)&&console.error(`MUI: The value provided ${f} is out of range [${E}, ${x}].`),(0,r.default)(f,E,x)}function o(f){f=f.slice(1);const E=new RegExp(`.{1,${f.length>=6?2:1}}`,"g");let x=f.match(E);return x&&x[0].length===1&&(x=x.map(w=>w+w)),x?`rgb${x.length===4?"a":""}(${x.map((w,$)=>$<3?parseInt(w,16):Math.round(parseInt(w,16)/255*1e3)/1e3).join(", ")})`:""}function i(f){const E=f.toString(16);return E.length===1?`0${E}`:E}function s(f){if(f.type)return f;if(f.charAt(0)==="#")return s(o(f));const E=f.indexOf("("),x=f.substring(0,E);if(["rgb","rgba","hsl","hsla","color"].indexOf(x)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${f}\` color.
|
|
76
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,f));let w=f.substring(E+1,f.length-1),$;if(x==="color"){if(w=w.split(" "),$=w.shift(),w.length===4&&w[3].charAt(0)==="/"&&(w[3]=w[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf($)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${$}\` color space.
|
|
77
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,$))}else w=w.split(",");return w=w.map(F=>parseFloat(F)),{type:x,values:w,colorSpace:$}}const u=f=>{const E=s(f);return E.values.slice(0,3).map((x,w)=>E.type.indexOf("hsl")!==-1&&w!==0?`${x}%`:x).join(" ")};xe.colorChannel=u;const c=(f,E)=>{try{return u(f)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),f}};xe.private_safeColorChannel=c;function d(f){const{type:E,colorSpace:x}=f;let{values:w}=f;return E.indexOf("rgb")!==-1?w=w.map(($,F)=>F<3?parseInt($,10):$):E.indexOf("hsl")!==-1&&(w[1]=`${w[1]}%`,w[2]=`${w[2]}%`),E.indexOf("color")!==-1?w=`${x} ${w.join(" ")}`:w=`${w.join(", ")}`,`${E}(${w})`}function p(f){if(f.indexOf("#")===0)return f;const{values:E}=s(f);return`#${E.map((x,w)=>i(w===3?Math.round(255*x):x)).join("")}`}function g(f){f=s(f);const{values:E}=f,x=E[0],w=E[1]/100,$=E[2]/100,F=w*Math.min($,1-$),k=(q,G=(q+x/30)%12)=>$-F*Math.max(Math.min(G-3,9-G,1),-1);let L="rgb";const V=[Math.round(k(0)*255),Math.round(k(8)*255),Math.round(k(4)*255)];return f.type==="hsla"&&(L+="a",V.push(E[3])),d({type:L,values:V})}function h(f){f=s(f);let E=f.type==="hsl"||f.type==="hsla"?s(g(f)).values:f.values;return E=E.map(x=>(f.type!=="color"&&(x/=255),x<=.03928?x/12.92:((x+.055)/1.055)**2.4)),Number((.2126*E[0]+.7152*E[1]+.0722*E[2]).toFixed(3))}function y(f,E){const x=h(f),w=h(E);return(Math.max(x,w)+.05)/(Math.min(x,w)+.05)}function v(f,E){return f=s(f),E=n(E),(f.type==="rgb"||f.type==="hsl")&&(f.type+="a"),f.type==="color"?f.values[3]=`/${E}`:f.values[3]=E,d(f)}function l(f,E,x){try{return v(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function b(f,E){if(f=s(f),E=n(E),f.type.indexOf("hsl")!==-1)f.values[2]*=1-E;else if(f.type.indexOf("rgb")!==-1||f.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)f.values[x]*=1-E;return d(f)}function T(f,E,x){try{return b(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function R(f,E){if(f=s(f),E=n(E),f.type.indexOf("hsl")!==-1)f.values[2]+=(100-f.values[2])*E;else if(f.type.indexOf("rgb")!==-1)for(let x=0;x<3;x+=1)f.values[x]+=(255-f.values[x])*E;else if(f.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)f.values[x]+=(1-f.values[x])*E;return d(f)}function S(f,E,x){try{return R(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function P(f,E=.15){return h(f)>.5?b(f,E):R(f,E)}function _(f,E,x){try{return P(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function N(f,E,x,w=1){const $=(V,q)=>Math.round((V**(1/w)*(1-x)+q**(1/w)*x)**w),F=s(f),k=s(E),L=[$(F.values[0],k.values[0]),$(F.values[1],k.values[1]),$(F.values[2],k.values[2])];return d({type:"rgb",values:L})}return xe}var $e=Sp();const Zt={black:"#000",white:"#fff"},Op={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"},Tt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ct={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},St={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ot={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Pp=["mode","contrastThreshold","tonalOffset"],Ps={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:Zt.white,default:Zt.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}},Sn={text:{primary:Zt.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:Zt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ws(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=$e.lighten(e.main,o):t==="dark"&&(e.dark=$e.darken(e.main,i)))}function wp(e="light"){return e==="dark"?{main:Ct[200],light:Ct[50],dark:Ct[400]}:{main:Ct[700],light:Ct[400],dark:Ct[800]}}function Ip(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[500],light:Tt[300],dark:Tt[700]}}function $p(e="light"){return e==="dark"?{main:Rt[500],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function Ap(e="light"){return e==="dark"?{main:St[400],light:St[300],dark:St[700]}:{main:St[700],light:St[500],dark:St[900]}}function Np(e="light"){return e==="dark"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[800],light:Ot[500],dark:Ot[900]}}function Mp(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:"#ed6c02",light:Qt[500],dark:Qt[900]}}function kp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ce(e,Pp),i=e.primary||wp(t),s=e.secondary||Ip(t),u=e.error||$p(t),c=e.info||Ap(t),d=e.success||Np(t),p=e.warning||Mp(t);function g(l){const b=$e.getContrastRatio(l,Sn.text.primary)>=r?Sn.text.primary:Ps.text.primary;if(process.env.NODE_ENV!=="production"){const T=$e.getContrastRatio(l,b);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${b} on ${l}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
78
|
+
`))}return b}const h=({color:l,name:b,mainShade:T=500,lightShade:R=300,darkShade:S=700})=>{if(l=C({},l),!l.main&&l[T]&&(l.main=l[T]),!l.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
79
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:Kt(11,b?` (${b})`:"",T));if(typeof l.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
94
80
|
\`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
|
|
95
81
|
|
|
96
82
|
Did you intend to use one of the following approaches?
|
|
@@ -103,11 +89,9 @@ const theme1 = createTheme({ palette: {
|
|
|
103
89
|
|
|
104
90
|
const theme2 = createTheme({ palette: {
|
|
105
91
|
primary: { main: green[500] },
|
|
106
|
-
} });`:
|
|
107
|
-
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(
|
|
108
|
-
`))}m[v]={}}}};Object.keys(d.components).forEach(m=>{const b=d.components[m].styleOverrides;b&&m.indexOf("Mui")===0&&p(b,m)})}return d.unstable_sxConfig=w({},tr,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(p){return Vr({sx:p,theme:this})},d}const fu=Kh(),pu="$$material";function Xh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zn=e=>Xh(e)&&e!=="classes",xe=bh({themeId:pu,defaultTheme:fu,rootShouldForwardProp:zn});function hu(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=hu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=hu(e))&&(n&&(n+=" "),n+=t);return n}function je(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}function Wr(e,t){const r=w({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=w({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=w({},i),Object.keys(o).forEach(a=>{r[n][a]=Wr(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const Jh=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Zh(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Wr(o.defaultProps,n):!o.styleOverrides&&!o.variants?Wr(o,n):n}function Qh({props:e,name:t}){const r=S.useContext(Jh);return Zh({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function ke(e){return Qh(e)}const rt=S.createContext({});process.env.NODE_ENV!=="production"&&(rt.displayName="ListContext");const em=s.oneOfType([s.func,s.object]);function or(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function tm(e){const{prototype:t={}}=e;return!!t.isReactComponent}function rm(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let u;return typeof i=="function"&&!tm(i)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Vn=or(s.elementType,rm);function Ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Je(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ur(r,t)})},e)}const $t=typeof window<"u"?S.useLayoutEffect:S.useEffect;function gt(e){const t=S.useRef(e);return $t(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}const mu={};function nm(e,t){const r=S.useRef(mu);return r.current===mu&&(r.current=e(t)),r}const om=[];function im(e){S.useEffect(e,om)}class Gr{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Gr}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function am(){const e=nm(Gr.create).current;return im(e.disposeEffect),e}let Yr=!0,Wn=!1;const sm=new Gr,um={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function cm(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&um[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function lm(e){e.metaKey||e.altKey||e.ctrlKey||(Yr=!0)}function Un(){Yr=!1}function dm(){this.visibilityState==="hidden"&&Wn&&(Yr=!0)}function fm(e){e.addEventListener("keydown",lm,!0),e.addEventListener("mousedown",Un,!0),e.addEventListener("pointerdown",Un,!0),e.addEventListener("touchstart",Un,!0),e.addEventListener("visibilitychange",dm,!0)}function pm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Yr||cm(t)}function Gn(){const e=S.useCallback(o=>{o!=null&&fm(o.ownerDocument)},[]),t=S.useRef(!1);function r(){return t.current?(Wn=!0,sm.start(100,()=>{Wn=!1}),t.current=!1,!0):!1}function n(o){return pm(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Yn(e,t)}function gu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yn(e,t)}const yu={disabled:!1};var hm=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const Hr=ae.createContext(null);var mm=function(t){return t.scrollTop},ir="unmounted",yt="exited",vt="entering",At="entered",Hn="exiting",at=function(e){gu(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,u=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?u?(c=yt,i.appearStatus=vt):c=At:n.unmountOnExit||n.mountOnEnter?c=ir:c=yt,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ir?{status:yt}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==vt&&a!==At&&(i=vt):(a===vt||a===At)&&(i=Hn)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:zt.findDOMNode(this);a&&mm(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yt&&this.setState({status:ir})},r.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[zt.findDOMNode(this),u],d=c[0],f=c[1],p=this.getTimeouts(),m=u?p.appear:p.enter;if(!o&&!a||yu.disabled){this.safeSetState({status:At},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:vt},function(){i.props.onEntering(d,f),i.onTransitionEnd(m,function(){i.safeSetState({status:At},function(){i.props.onEntered(d,f)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:zt.findDOMNode(this);if(!i||yu.disabled){this.safeSetState({status:yt},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Hn},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:yt},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:zt.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===ir)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=pe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ae.createElement(Hr.Provider,{value:null},typeof a=="function"?a(o,u):ae.cloneElement(ae.Children.only(a),u))},t}(ae.Component);at.contextType=Hr,at.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,r,n,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var r=hm;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Mt(){}at.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mt,onEntering:Mt,onEntered:Mt,onExit:Mt,onExiting:Mt,onExited:Mt},at.UNMOUNTED=ir,at.EXITED=yt,at.ENTERING=vt,at.ENTERED=At,at.EXITING=Hn;function gm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){var r=function(i){return t&&ae.isValidElement(i)?t(i):i},n=Object.create(null);return e&&ae.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ym(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var d=n[c][a];u[n[c][a]]=r(d)}u[c]=r(c)}for(a=0;a<o.length;a++)u[o[a]]=r(o[a]);return u}function bt(e,t,r){return r[t]!=null?r[t]:e.props[t]}function vm(e,t){return Kn(e.children,function(r){return ae.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:bt(r,"appear",e),enter:bt(r,"enter",e),exit:bt(r,"exit",e)})})}function bm(e,t,r){var n=Kn(e.children),o=ym(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(ae.isValidElement(a)){var u=i in t,c=i in n,d=t[i],f=ae.isValidElement(d)&&!d.props.in;c&&(!u||f)?o[i]=ae.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}):!c&&u&&!f?o[i]=ae.cloneElement(a,{in:!1}):c&&u&&ae.isValidElement(d)&&(o[i]=ae.cloneElement(a,{onExited:r.bind(null,a),in:d.props.in,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}))}}),o}var _m=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xm={component:"div",childFactory:function(t){return t}},Xn=function(e){gu(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(gm(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,u=i.handleExited,c=i.firstRender;return{children:c?vm(o,u):bm(o,a,u),firstRender:!1}},r.handleExited=function(o,i){var a=Kn(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(u){var c=w({},u.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,u=pe(o,["component","childFactory"]),c=this.state.contextValue,d=_m(this.state.children).map(a);return delete u.appear,delete u.enter,delete u.exit,i===null?ae.createElement(Hr.Provider,{value:c},d):ae.createElement(Hr.Provider,{value:c},ae.createElement(i,u,d))},t}(ae.Component);Xn.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{},Xn.defaultProps=xm;function Em(e){return Object.keys(e).length===0}function Tm(e=null){const t=S.useContext(Ht);return!t||Em(t)?e:t}const Sm=Fn();function Rm(e=Sm){return Tm(e)}function $e(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Me(e,o,r)}),n}function Cm(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vu(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let u;const c=i.type;return typeof c=="function"&&!Cm(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Kr=or(s.element,vu);Kr.isRequired=or(s.element.isRequired,vu);const Om="exact-prop: ";function bu(e){return process.env.NODE_ENV==="production"?e:w({},e,{[Om]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function _u(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Jn(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Pm(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function wm(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,a)=>{const u=o||"<<anonymous>>",c=a||n;return typeof r[n]<"u"?new Error(`The ${i} \`${c}\` of \`${u}\` is deprecated. ${t}`):null}}function Zn(e,t){var r,n;return S.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function st(e){return e&&e.ownerDocument||document}function Xr(e){return st(e).defaultView||window}function Im(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?w({},t.propTypes):null;return o=>(i,a,u,c,d,...f)=>{const p=d||a,m=r==null?void 0:r[p];if(m){const b=m(i,a,u,c,d,...f);if(b)return b}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${p}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}let xu=0;function $m(e){const[t,r]=S.useState(e),n=e||t;return S.useEffect(()=>{t==null&&(xu+=1,r(`mui-${xu}`))},[t]),n}const Eu=S.useId;function Tu(e){if(Eu!==void 0){const t=Eu();return e??t}return $m(e)}function Am(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Mm({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=S.useRef(e!==void 0),[i,a]=S.useState(t),u=o?e:i;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
109
|
-
`))},[n,r,e]);const{current:d}=S.useRef(t);S.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
110
|
-
`))},[JSON.stringify(t)])}const c=S.useCallback(d=>{o||a(d)},[]);return[u,c]}function Nm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function km(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Dm(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const jm=Number.isInteger||Dm;function Su(e,t,r,n){const o=e[t];if(o==null||!jm(o)){const i=km(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Ru(e,t,...r){return e[t]===void 0?null:Su(e,t,...r)}function Qn(){return null}Ru.isRequired=Su,Qn.isRequired=Qn;const qm=process.env.NODE_ENV==="production"?Qn:Ru;function eo(e){return typeof e=="string"}function Lm(e,t,r){return e===void 0||eo(e)?t:w({},t,{ownerState:w({},t.ownerState,r)})}function Cu(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Ou(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Fm(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const b=ne(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),v=w({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),l=w({},r,o,n);return b.length>0&&(l.className=b),Object.keys(v).length>0&&(l.style=v),{props:l,internalRef:void 0}}const a=Cu(w({},o,n)),u=Ou(n),c=Ou(o),d=t(a),f=ne(d==null?void 0:d.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),p=w({},d==null?void 0:d.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=w({},d,r,c,u);return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:d.ref}}function Bm(e,t,r){return typeof e=="function"?e(t,r):e}const zm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pu(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=pe(e,zm),u=i?{}:Bm(n,o),{props:c,internalRef:d}=Fm(w({},a,{externalSlotProps:u})),f=Je(d,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return Lm(r,w({},c,{ref:f}),o)}function to(e){if(parseInt(S.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}function wu(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:d}=e,[f,p]=S.useState(!1),m=ne(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=ne(r.child,f&&r.childLeaving,n&&r.childPulsate);return!u&&!f&&p(!0),S.useEffect(()=>{if(!u&&c!=null){const l=setTimeout(c,d);return()=>{clearTimeout(l)}}},[c,u,d]),k.jsx("span",{className:m,style:b,children:k.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(wu.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const Ye=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vm=["center","classes","className"];let Jr=e=>e,Iu,$u,Au,Mu;const ro=550,Wm=80,Um=Ir(Iu||(Iu=Jr`
|
|
92
|
+
} });`:Kt(12,b?` (${b})`:"",JSON.stringify(l.main)));return ws(l,"light",R,n),ws(l,"dark",S,n),l.contrastText||(l.contrastText=g(l.main)),l},y={dark:Sn,light:Ps};return process.env.NODE_ENV!=="production"&&(y[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ze(C({common:C({},Zt),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:Op,contrastThreshold:r,getContrastText:g,augmentColor:h,tonalOffset:n},y[t]),o)}const Dp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jp(e){return Math.round(e*1e5)/1e5}const Is={textTransform:"uppercase"},$s='"Roboto", "Helvetica", "Arial", sans-serif';function qp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=$s,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:g}=r,h=ce(r,Dp);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,v=g||(T=>`${T/d*y}rem`),l=(T,R,S,P,_)=>C({fontFamily:n,fontWeight:T,fontSize:v(R),lineHeight:S},n===$s?{letterSpacing:`${jp(P/R)}em`}:{},_,p),b={h1:l(i,96,1.167,-1.5),h2:l(i,60,1.2,-.5),h3:l(s,48,1.167,0),h4:l(s,34,1.235,.25),h5:l(s,24,1.334,0),h6:l(u,20,1.6,.15),subtitle1:l(s,16,1.75,.15),subtitle2:l(u,14,1.57,.1),body1:l(s,16,1.5,.15),body2:l(s,14,1.43,.15),button:l(u,14,1.75,.4,Is),caption:l(s,12,1.66,.4),overline:l(s,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ze(C({htmlFontSize:d,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:c},b),h,{clone:!1})}const Lp=.2,Fp=.14,Bp=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bp})`].join(",")}const Vp=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],zp=["duration","easing","delay"],Wp={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)"},Up={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function As(e){return`${Math.round(e)}ms`}function Gp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Kp(e){const t=C({},Wp,e.easing),r=C({},Up,e.duration);return C({getAutoHeightDuration:Gp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:u=t.easeInOut,delay:c=0}=i,d=ce(i,zp);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",g=h=>!isNaN(parseFloat(h));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(s)&&!p(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!g(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
93
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof s=="string"?s:As(s)} ${u} ${typeof c=="string"?c:As(c)}`).join(",")}},e,{easing:t,duration:r})}const Hp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Xp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=ce(e,Yp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Kt(18));const u=kp(n),c=Es(e);let d=Ze(c,{mixins:Ep(c.breakpoints,r),palette:u,shadows:Vp.slice(),typography:qp(u,i),transitions:Kp(o),zIndex:C({},Hp)});if(d=Ze(d,s),d=t.reduce((p,g)=>Ze(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(h,y)=>{let v;for(v in h){const l=h[v];if(p.indexOf(v)!==-1&&Object.keys(l).length>0){if(process.env.NODE_ENV!=="production"){const b=Ie("",v);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:l}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
94
|
+
`))}h[v]={}}}};Object.keys(d.components).forEach(h=>{const y=d.components[h].styleOverrides;y&&h.indexOf("Mui")===0&&g(y,h)})}return d.unstable_sxConfig=C({},Jt,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(g){return jr({sx:g,theme:this})},d}const Ns=Xp(),Ms="$$material";function Jp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const On=e=>Jp(e)&&e!=="classes",ve=_p({themeId:Ms,defaultTheme:Ns,rootShouldForwardProp:On});function ks(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ks(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ks(e))&&(n&&(n+=" "),n+=t);return n}function ke(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const u=t(s);u!==""&&i.push(u),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function qr(e,t){const r=C({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=C({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=C({},i),Object.keys(o).forEach(s=>{r[n][s]=qr(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const Zp=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function Qp(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?qr(o.defaultProps,n):!o.styleOverrides&&!o.variants?qr(o,n):n}function eh({props:e,name:t}){const r=O.useContext(Zp);return Qp({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Ne(e){return eh(e)}const Qe=O.createContext({});process.env.NODE_ENV!=="production"&&(Qe.displayName="ListContext");const th=a.oneOfType([a.func,a.object]);function er(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function rh(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nh(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let u;return typeof i=="function"&&!rh(i)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pn=er(a.elementType,nh);function Lr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ye(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Lr(r,t)})},e)}const Pt=typeof window<"u"?O.useLayoutEffect:O.useEffect;function pt(e){const t=O.useRef(e);return Pt(()=>{t.current=e}),O.useRef((...r)=>(0,t.current)(...r)).current}const Ds={};function oh(e,t){const r=O.useRef(Ds);return r.current===Ds&&(r.current=e(t)),r}const ih=[];function ah(e){O.useEffect(e,ih)}class Fr{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Fr}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function sh(){const e=oh(Fr.create).current;return ah(e.disposeEffect),e}let Br=!0,wn=!1;const uh=new Fr,ch={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function lh(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&ch[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function dh(e){e.metaKey||e.altKey||e.ctrlKey||(Br=!0)}function In(){Br=!1}function fh(){this.visibilityState==="hidden"&&wn&&(Br=!0)}function ph(e){e.addEventListener("keydown",dh,!0),e.addEventListener("mousedown",In,!0),e.addEventListener("pointerdown",In,!0),e.addEventListener("touchstart",In,!0),e.addEventListener("visibilitychange",fh,!0)}function hh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Br||lh(t)}function $n(){const e=O.useCallback(o=>{o!=null&&ph(o.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(wn=!0,uh.start(100,()=>{wn=!1}),t.current=!1,!0):!1}function n(o){return hh(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function An(e,t){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},An(e,t)}function js(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,An(e,t)}const qs={disabled:!1};var gh=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.shape({enter:a.number,exit:a.number,appear:a.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&a.oneOfType([a.string,a.shape({enter:a.string,exit:a.string,active:a.string}),a.shape({enter:a.string,enterDone:a.string,enterActive:a.string,exit:a.string,exitDone:a.string,exitActive:a.string})]);const Vr=de.createContext(null);var mh=function(t){return t.scrollTop},tr="unmounted",ht="exited",gt="entering",wt="entered",Nn="exiting",nt=function(e){js(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,u=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?u?(c=ht,i.appearStatus=gt):c=wt:n.unmountOnExit||n.mountOnEnter?c=tr:c=ht,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===tr?{status:ht}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==gt&&s!==wt&&(i=gt):(s===gt||s===wt)&&(i=Nn)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,u;return i=s=u=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,u=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:u}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===gt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ft.findDOMNode(this);s&&mh(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ht&&this.setState({status:tr})},r.performEnter=function(o){var i=this,s=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[Ft.findDOMNode(this),u],d=c[0],p=c[1],g=this.getTimeouts(),h=u?g.appear:g.enter;if(!o&&!s||qs.disabled){this.safeSetState({status:wt},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:gt},function(){i.props.onEntering(d,p),i.onTransitionEnd(h,function(){i.safeSetState({status:wt},function(){i.props.onEntered(d,p)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:Ft.findDOMNode(this);if(!i||qs.disabled){this.safeSetState({status:ht},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Nn},function(){o.props.onExiting(u),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ht},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ft.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===tr)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=ce(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(Vr.Provider,{value:null},typeof s=="function"?s(o,u):de.cloneElement(de.Children.only(s),u))},t}(de.Component);nt.contextType=Vr,nt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:a.shape({current:typeof Element>"u"?a.any:function(e,t,r,n,o,i){var s=e[t];return a.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:a.oneOfType([a.func.isRequired,a.element.isRequired]).isRequired,in:a.bool,mountOnEnter:a.bool,unmountOnExit:a.bool,appear:a.bool,enter:a.bool,exit:a.bool,timeout:function(t){var r=gh;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:a.func,onEnter:a.func,onEntering:a.func,onEntered:a.func,onExit:a.func,onExiting:a.func,onExited:a.func}:{};function It(){}nt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:It,onEntering:It,onEntered:It,onExit:It,onExiting:It,onExited:It},nt.UNMOUNTED=tr,nt.EXITED=ht,nt.ENTERING=gt,nt.ENTERED=wt,nt.EXITING=Nn;function vh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mn(e,t){var r=function(i){return t&&de.isValidElement(i)?t(i):i},n=Object.create(null);return e&&de.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function yh(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,u={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var d=n[c][s];u[n[c][s]]=r(d)}u[c]=r(c)}for(s=0;s<o.length;s++)u[o[s]]=r(o[s]);return u}function mt(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bh(e,t){return Mn(e.children,function(r){return de.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:mt(r,"appear",e),enter:mt(r,"enter",e),exit:mt(r,"exit",e)})})}function _h(e,t,r){var n=Mn(e.children),o=yh(t,n);return Object.keys(o).forEach(function(i){var s=o[i];if(de.isValidElement(s)){var u=i in t,c=i in n,d=t[i],p=de.isValidElement(d)&&!d.props.in;c&&(!u||p)?o[i]=de.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:mt(s,"exit",e),enter:mt(s,"enter",e)}):!c&&u&&!p?o[i]=de.cloneElement(s,{in:!1}):c&&u&&de.isValidElement(d)&&(o[i]=de.cloneElement(s,{onExited:r.bind(null,s),in:d.props.in,exit:mt(s,"exit",e),enter:mt(s,"enter",e)}))}}),o}var xh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Eh={component:"div",childFactory:function(t){return t}},kn=function(e){js(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=i.handleExited.bind(vh(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,u=i.handleExited,c=i.firstRender;return{children:c?bh(o,u):_h(o,s,u),firstRender:!1}},r.handleExited=function(o,i){var s=Mn(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(u){var c=C({},u.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,s=o.childFactory,u=ce(o,["component","childFactory"]),c=this.state.contextValue,d=xh(this.state.children).map(s);return delete u.appear,delete u.enter,delete u.exit,i===null?de.createElement(Vr.Provider,{value:c},d):de.createElement(Vr.Provider,{value:c},de.createElement(i,u,d))},t}(de.Component);kn.propTypes=process.env.NODE_ENV!=="production"?{component:a.any,children:a.node,appear:a.bool,enter:a.bool,exit:a.bool,childFactory:a.func}:{},kn.defaultProps=Eh;function Ls(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:u,onExited:c,timeout:d}=e,[p,g]=O.useState(!1),h=ne(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},v=ne(r.child,p&&r.childLeaving,n&&r.childPulsate);return!u&&!p&&g(!0),O.useEffect(()=>{if(!u&&c!=null){const l=setTimeout(c,d);return()=>{clearTimeout(l)}}},[c,u,d]),M.jsx("span",{className:h,style:y,children:M.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(Ls.propTypes={classes:a.object.isRequired,className:a.string,in:a.bool,onExited:a.func,pulsate:a.bool,rippleSize:a.number,rippleX:a.number,rippleY:a.number,timeout:a.number.isRequired});function Oe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ie(e,o,r)}),n}const Ge=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Th=["center","classes","className"];let zr=e=>e,Fs,Bs,Vs,zs;const Dn=550,Rh=80,Ch=yt.keyframes(Fs||(Fs=zr`
|
|
111
95
|
0% {
|
|
112
96
|
transform: scale(0);
|
|
113
97
|
opacity: 0.1;
|
|
@@ -117,7 +101,7 @@ const theme2 = createTheme({ palette: {
|
|
|
117
101
|
transform: scale(1);
|
|
118
102
|
opacity: 0.3;
|
|
119
103
|
}
|
|
120
|
-
`)),
|
|
104
|
+
`)),Sh=yt.keyframes(Bs||(Bs=zr`
|
|
121
105
|
0% {
|
|
122
106
|
opacity: 1;
|
|
123
107
|
}
|
|
@@ -125,7 +109,7 @@ const theme2 = createTheme({ palette: {
|
|
|
125
109
|
100% {
|
|
126
110
|
opacity: 0;
|
|
127
111
|
}
|
|
128
|
-
`)),
|
|
112
|
+
`)),Oh=yt.keyframes(Vs||(Vs=zr`
|
|
129
113
|
0% {
|
|
130
114
|
transform: scale(1);
|
|
131
115
|
}
|
|
@@ -137,7 +121,7 @@ const theme2 = createTheme({ palette: {
|
|
|
137
121
|
100% {
|
|
138
122
|
transform: scale(1);
|
|
139
123
|
}
|
|
140
|
-
`)),
|
|
124
|
+
`)),Ph=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wh=ve(Ls,{name:"MuiTouchRipple",slot:"Ripple"})(zs||(zs=zr`
|
|
141
125
|
opacity: 0;
|
|
142
126
|
position: absolute;
|
|
143
127
|
|
|
@@ -180,9 +164,11 @@ const theme2 = createTheme({ palette: {
|
|
|
180
164
|
animation-iteration-count: infinite;
|
|
181
165
|
animation-delay: 200ms;
|
|
182
166
|
}
|
|
183
|
-
`),
|
|
184
|
-
`))},[W]);const gr=w({},n,{centerRipple:i,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:F,focusVisible:V}),qa=Qm(gr);return k.jsxs(eg,w({as:Lt,className:ne(qa.root,u),ownerState:gr,onBlur:qt,onClick:l,onContextMenu:be,onFocus:pt,onKeyDown:mr,onKeyUp:ja,onMouseDown:J,onMouseLeave:ie,onMouseUp:ge,onDragLeave:P,onTouchEnd:We,onTouchMove:ct,onTouchStart:Se,ref:dn,tabIndex:d?-1:F,type:B},ht,q,{children:[a,W?k.jsx(Nu,w({ref:Pe,center:i},D)):null]}))});process.env.NODE_ENV!=="production"&&(Zr.propTypes={action:em,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Vn,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});const ku=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function tg(e){return Me("MuiListItemIcon",e)}const Du=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),rg=["className"],ng=e=>{const{alignItems:t,classes:r}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tg,r)},og=xe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>w({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),ju=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItemIcon"}),{className:o}=n,i=pe(n,rg),a=S.useContext(rt),u=w({},n,{alignItems:a.alignItems}),c=ng(u);return k.jsx(og,w({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(ju.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ig(e){return Me("MuiTypography",e)}$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ag=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sg=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${me(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return je(u,ig,a)},ug=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>w({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),qu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lg=e=>cg[e]||e,nt=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiTypography"}),o=lg(n.color),i=ru(w({},n,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:m="body1",variantMapping:b=qu}=i,v=pe(i,ag),l=w({},i,{align:a,color:o,className:u,component:c,gutterBottom:d,noWrap:f,paragraph:p,variant:m,variantMapping:b}),_=c||(p?"p":b[m]||qu[m])||"span",E=sg(l);return k.jsx(ug,w({as:_,ref:r,ownerState:l,className:ne(E.root,u)},v))});process.env.NODE_ENV!=="production"&&(nt.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function dg(e){return Me("MuiListItemText",e)}const Qr=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),fg=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pg=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return je({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},dg,t)},hg=xe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qr.primary}`]:t.primary},{[`& .${Qr.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>w({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),no=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:p}=n,m=pe(n,fg),{dense:b}=S.useContext(rt);let v=c??o,l=f;const _=w({},n,{disableTypography:a,inset:u,primary:!!v,secondary:!!l,dense:b}),E=pg(_);return v!=null&&v.type!==nt&&!a&&(v=k.jsx(nt,w({variant:b?"body2":"body1",className:E.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:v}))),l!=null&&l.type!==nt&&!a&&(l=k.jsx(nt,w({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},p,{children:l}))),k.jsxs(hg,w({className:ne(E.root,i),ownerState:_,ref:r},m,{children:[v,l]}))});process.env.NODE_ENV!=="production"&&(no.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function mg(e){return Me("MuiMenuItem",e)}const ar=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yg=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},vg=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,c=je({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},mg,a);return w({},a,c)},bg=xe(Zr,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yg})(({theme:e,ownerState:t})=>w({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ar.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ar.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ar.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ar.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ku.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ku.inset}`]:{marginLeft:52},[`& .${Qr.root}`]:{marginTop:0,marginBottom:0},[`& .${Qr.inset}`]:{paddingLeft:36},[`& .${Du.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&w({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Du.root} svg`]:{fontSize:"1.25rem"}}))),Lu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:p,className:m}=n,b=pe(n,gg),v=S.useContext(rt),l=S.useMemo(()=>({dense:a||v.dense||!1,disableGutters:c}),[v.dense,a,c]),_=S.useRef(null);$t(()=>{o&&(_.current?_.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const E=w({},n,{dense:l.dense,divider:u,disableGutters:c}),C=vg(n),T=Je(_,r);let x;return n.disabled||(x=p!==void 0?p:-1),k.jsx(rt.Provider,{value:l,children:k.jsx(bg,w({ref:T,role:f,tabIndex:x,component:i,focusVisibleClassName:ne(C.focusVisible,d),className:ne(C.root,m)},b,{ownerState:E,classes:C}))})});process.env.NODE_ENV!=="production"&&(Lu.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});var sr={},oo={};function _g(e){return Me("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Eg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(r)}`]};return je(o,_g,n)},Tg=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${me(r.color)}`],t[`fontSize${me(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,u,c,d,f,p,m,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(p=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?p:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),en=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:u="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,b=pe(n,xg),v=S.isValidElement(o)&&o.type==="svg",l=w({},n,{color:a,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:v}),_={};f||(_.viewBox=m);const E=Eg(l);return k.jsxs(Tg,w({as:u,className:ne(E.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},_,b,v&&o.props,{ownerState:l,children:[v?o.props.children:o,p?k.jsx("title",{children:p}):null]}))});process.env.NODE_ENV!=="production"&&(en.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string}),en.muiName="SvgIcon";function Sg(e,t){function r(n,o){return k.jsx(en,w({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=en.muiName,S.memo(S.forwardRef(r))}const Rg=ot(Object.freeze(Object.defineProperty({__proto__:null,capitalize:me,createChainedFunction:Jn,createSvgIcon:Sg,debounce:Pm,deprecatedPropType:wm,isMuiElement:Zn,ownerDocument:st,ownerWindow:Xr,requirePropFactory:Im,setRef:Ur,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
185
|
-
`))
|
|
186
|
-
`)),v.current.setAttribute("tabIndex","-1")),b.current&&v.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[u]),S.useEffect(()=>{if(!u||!v.current)return;const T=st(v.current),x=h=>{_.current=h,!(n||!a()||h.key!=="Tab")&&T.activeElement===v.current&&h.shiftKey&&(c.current=!0,f.current&&f.current.focus())},y=()=>{const h=v.current;if(h===null)return;if(!T.hasFocus()||!a()||c.current){c.current=!1;return}if(h.contains(T.activeElement)||n&&T.activeElement!==d.current&&T.activeElement!==f.current)return;if(T.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!b.current)return;let O=[];if((T.activeElement===d.current||T.activeElement===f.current)&&(O=i(v.current)),O.length>0){var R,I;const M=!!((R=_.current)!=null&&R.shiftKey&&((I=_.current)==null?void 0:I.key)==="Tab"),F=O[0],D=O[O.length-1];typeof F!="string"&&typeof D!="string"&&(M?D.focus():F.focus())}else h.focus()};T.addEventListener("focusin",y),T.addEventListener("keydown",x,!0);const $=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&y()},50);return()=>{clearInterval($),T.removeEventListener("focusin",y),T.removeEventListener("keydown",x,!0)}},[r,n,o,a,u,i]);const E=T=>{p.current===null&&(p.current=T.relatedTarget),b.current=!0,m.current=T.target;const x=t.props.onFocus;x&&x(T)},C=T=>{p.current===null&&(p.current=T.relatedTarget),b.current=!0};return k.jsxs(S.Fragment,{children:[k.jsx("div",{tabIndex:u?0:-1,onFocus:C,ref:d,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:l,onFocus:E}),k.jsx("div",{tabIndex:u?0:-1,onFocus:C,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(tn.propTypes={children:Kr,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired}),process.env.NODE_ENV!=="production"&&(tn.propTypes=bu(tn.propTypes));function Vg(e){return typeof e=="function"?e():e}const rn=S.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,u]=S.useState(null),c=Je(S.isValidElement(n)?to(n):null,r);if($t(()=>{i||u(Vg(o)||document.body)},[o,i]),$t(()=>{if(a&&!i)return Ur(r,a),()=>{Ur(r,null)}},[r,a,i]),i){if(S.isValidElement(n)){const d={ref:c};return S.cloneElement(n,d)}return k.jsx(S.Fragment,{children:n})}return k.jsx(S.Fragment,{children:a&&Jd.createPortal(n,a)})});process.env.NODE_ENV!=="production"&&(rn.propTypes={children:s.node,container:s.oneOfType([_u,s.func]),disablePortal:s.bool}),process.env.NODE_ENV!=="production"&&(rn.propTypes=bu(rn.propTypes));function ao(){const e=Rm(fu);return process.env.NODE_ENV!=="production"&&S.useDebugValue(e),e[pu]||e}const Wg=e=>e.scrollTop;function Yu(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const Ug=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gg={entering:{opacity:1},entered:{opacity:1}},so=S.forwardRef(function(t,r){const n=ao(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:u,easing:c,in:d,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:l,style:_,timeout:E=o,TransitionComponent:C=at}=t,T=pe(t,Ug),x=S.useRef(null),y=Je(x,to(u),r),$=L=>B=>{if(L){const q=x.current;B===void 0?L(q):L(q,B)}},h=$(m),O=$((L,B)=>{Wg(L);const q=Yu({style:_,timeout:E,easing:c},{mode:"enter"});L.style.webkitTransition=n.transitions.create("opacity",q),L.style.transition=n.transitions.create("opacity",q),f&&f(L,B)}),R=$(p),I=$(l),M=$(L=>{const B=Yu({style:_,timeout:E,easing:c},{mode:"exit"});L.style.webkitTransition=n.transitions.create("opacity",B),L.style.transition=n.transitions.create("opacity",B),b&&b(L)}),F=$(v),D=L=>{i&&i(x.current,L)};return k.jsx(C,w({appear:a,in:d,nodeRef:x,onEnter:O,onEntered:R,onEntering:h,onExit:M,onExited:F,onExiting:I,addEndListener:D,timeout:E},T,{children:(L,B)=>S.cloneElement(u,w({style:w({opacity:0,visibility:L==="exited"&&!d?"hidden":void 0},Gg[L],_,u.props.style),ref:y},B))}))});process.env.NODE_ENV!=="production"&&(so.propTypes={addEndListener:s.func,appear:s.bool,children:Kr.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Yg(e){return Me("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const Hg=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Kg=e=>{const{classes:t,invisible:r}=e;return je({root:["root",r&&"invisible"]},Yg,t)},Xg=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>w({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"},e.invisible&&{backgroundColor:"transparent"})),uo=S.forwardRef(function(t,r){var n,o,i;const a=ke({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:d="div",components:f={},componentsProps:p={},invisible:m=!1,open:b,slotProps:v={},slots:l={},TransitionComponent:_=so,transitionDuration:E}=a,C=pe(a,Hg),T=w({},a,{component:d,invisible:m}),x=Kg(T),y=(n=v.root)!=null?n:p.root;return k.jsx(_,w({in:b,timeout:E},C,{children:k.jsx(Xg,w({"aria-hidden":!0},y,{as:(o=(i=l.root)!=null?i:f.Root)!=null?o:d,className:ne(x.root,c,y==null?void 0:y.className),ownerState:w({},T,y==null?void 0:y.ownerState),classes:x,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(uo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Jg(e){return typeof e=="function"?e():e}function Zg(e){return e?e.props.hasOwnProperty("in"):!1}const Qg=new Dg;function ey(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Qg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:u,children:c,onClose:d,open:f,rootRef:p}=e,m=S.useRef({}),b=S.useRef(null),v=S.useRef(null),l=Je(v,p),[_,E]=S.useState(!f),C=Zg(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const x=()=>st(b.current),y=()=>(m.current.modalRef=v.current,m.current.mount=b.current,m.current),$=()=>{o.mount(y(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},h=gt(()=>{const q=Jg(t)||x().body;o.add(y(),q),v.current&&$()}),O=S.useCallback(()=>o.isTopModal(y()),[o]),R=gt(q=>{b.current=q,q&&(f&&O()?$():v.current&&ur(v.current,T))}),I=S.useCallback(()=>{o.remove(y(),T)},[T,o]);S.useEffect(()=>()=>{I()},[I]),S.useEffect(()=>{f?h():(!C||!i)&&I()},[f,I,C,i,h]);const M=q=>G=>{var Z;(Z=q.onKeyDown)==null||Z.call(q,G),!(G.key!=="Escape"||G.which===229||!O())&&(r||(G.stopPropagation(),d&&d(G,"escapeKeyDown")))},F=q=>G=>{var Z;(Z=q.onClick)==null||Z.call(q,G),G.target===G.currentTarget&&d&&d(G,"backdropClick")};return{getRootProps:(q={})=>{const G=Cu(e);delete G.onTransitionEnter,delete G.onTransitionExited;const Z=w({},G,q);return w({role:"presentation"},Z,{onKeyDown:M(Z),ref:l})},getBackdropProps:(q={})=>{const G=q;return w({"aria-hidden":!0},G,{onClick:F(G),open:f})},getTransitionProps:()=>{const q=()=>{E(!1),a&&a()},G=()=>{E(!0),u&&u(),i&&I()};return{onEnter:Jn(q,c==null?void 0:c.props.onEnter),onExited:Jn(G,c==null?void 0:c.props.onExited)}},rootRef:l,portalRef:R,isTopModal:O,exited:_,hasTransition:C}}function ty(e){return Me("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const ry=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ny=e=>{const{open:t,exited:r,classes:n}=e;return je({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ty,n)},oy=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iy=xe(uo,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hu=S.forwardRef(function(t,r){var n,o,i,a,u,c;const d=ke({name:"MuiModal",props:t}),{BackdropComponent:f=iy,BackdropProps:p,className:m,closeAfterTransition:b=!1,children:v,container:l,component:_,components:E={},componentsProps:C={},disableAutoFocus:T=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:y=!1,disablePortal:$=!1,disableRestoreFocus:h=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:M,open:F,slotProps:D,slots:L}=d,B=pe(d,ry),q=w({},d,{closeAfterTransition:b,disableAutoFocus:T,disableEnforceFocus:x,disableEscapeKeyDown:y,disablePortal:$,disableRestoreFocus:h,disableScrollLock:O,hideBackdrop:R,keepMounted:I}),{getRootProps:G,getBackdropProps:Z,getTransitionProps:Pe,portalRef:A,isTopModal:j,exited:Q,hasTransition:X}=ey(w({},q,{rootRef:r})),V=w({},q,{exited:Q}),H=ny(V),Y={};if(v.props.tabIndex===void 0&&(Y.tabIndex="-1"),X){const{onEnter:ge,onExited:ie}=Pe();Y.onEnter=ge,Y.onExited=ie}const K=(n=(o=L==null?void 0:L.root)!=null?o:E.Root)!=null?n:oy,W=(i=(a=L==null?void 0:L.backdrop)!=null?a:E.Backdrop)!=null?i:f,U=(u=D==null?void 0:D.root)!=null?u:C.root,J=(c=D==null?void 0:D.backdrop)!=null?c:C.backdrop,be=Pu({elementType:K,externalSlotProps:U,externalForwardedProps:B,getSlotProps:G,additionalProps:{ref:r,as:_},ownerState:V,className:ne(m,U==null?void 0:U.className,H==null?void 0:H.root,!V.open&&V.exited&&(H==null?void 0:H.hidden))}),P=Pu({elementType:W,externalSlotProps:J,additionalProps:p,getSlotProps:ge=>Z(w({},ge,{onClick:ie=>{M&&M(ie),ge!=null&&ge.onClick&&ge.onClick(ie)}})),className:ne(J==null?void 0:J.className,p==null?void 0:p.className,H==null?void 0:H.backdrop),ownerState:V});return!I&&!F&&(!X||Q)?null:k.jsx(rn,{ref:A,container:l,disablePortal:$,children:k.jsxs(K,w({},be,{children:[!R&&f?k.jsx(W,w({},P)):null,k.jsx(tn,{disableEnforceFocus:x,disableAutoFocus:T,disableRestoreFocus:h,isEnabled:j,open:F,children:S.cloneElement(v,Y)})]}))})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Kr.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([_u,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ku=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ay(e){return Me("MuiPaper",e)}$e("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 sy=["className","component","elevation","square","variant"],uy=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return je(i,ay,o)},cy=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return w({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ne.alpha("#fff",Ku(t.elevation))}, ${Ne.alpha("#fff",Ku(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),co=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:u=!1,variant:c="elevation"}=n,d=pe(n,sy),f=w({},n,{component:i,elevation:a,square:u,variant:c}),p=uy(f);return process.env.NODE_ENV!=="production"&&ao().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
187
|
-
`)),k.jsx(cy,w({as:i,ownerState:f,className:ne(p.root,o),ref:r},d))});process.env.NODE_ENV!=="production"&&(co.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:or(qm,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function ly(e){return Me("MuiDialog",e)}const lo=$e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fo=S.createContext({});process.env.NODE_ENV!=="production"&&(fo.displayName="DialogContext");const dy=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],fy=xe(uo,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),py=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${me(r)}`],paper:["paper",`paperScroll${me(r)}`,`paperWidth${me(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return je(a,ly,t)},hy=xe(Hu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),my=xe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${me(r.scroll)}`]]}})(({ownerState:e})=>w({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),gy=xe(co,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${me(r.scroll)}`],t[`paperWidth${me(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>w({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${lo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${lo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${lo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Xu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiDialog"}),o=ao(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":u,BackdropComponent:c,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:m=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:l="sm",onBackdropClick:_,onClick:E,onClose:C,open:T,PaperComponent:x=co,PaperProps:y={},scroll:$="paper",TransitionComponent:h=so,transitionDuration:O=i,TransitionProps:R}=n,I=pe(n,dy),M=w({},n,{disableEscapeKeyDown:m,fullScreen:b,fullWidth:v,maxWidth:l,scroll:$}),F=py(M),D=S.useRef(),L=Z=>{D.current=Z.target===Z.currentTarget},B=Z=>{E&&E(Z),D.current&&(D.current=null,_&&_(Z),C&&C(Z,"backdropClick"))},q=Tu(u),G=S.useMemo(()=>({titleId:q}),[q]);return k.jsx(hy,w({className:ne(F.root,p),closeAfterTransition:!0,components:{Backdrop:fy},componentsProps:{backdrop:w({transitionDuration:O,as:c},d)},disableEscapeKeyDown:m,onClose:C,open:T,ref:r,onClick:B,ownerState:M},I,{children:k.jsx(h,w({appear:!0,in:T,timeout:O,role:"presentation"},R,{children:k.jsx(my,{className:ne(F.container),onMouseDown:L,ownerState:M,children:k.jsx(gy,w({as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":q},y,{className:ne(F.paper,y.className),ownerState:M,children:k.jsx(fo.Provider,{value:G,children:f})}))})}))}))});process.env.NODE_ENV!=="production"&&(Xu.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onBackdropClick:s.func,onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function yy(e){return Me("MuiDialogTitle",e)}$e("MuiDialogTitle",["root"]);const vy=["className","id"],by=e=>{const{classes:t}=e;return je({root:["root"]},yy,t)},_y=xe(nt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ju=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=n,a=pe(n,vy),u=n,c=by(u),{titleId:d=i}=S.useContext(fo);return k.jsx(_y,w({component:"h2",className:ne(c.root,o),ownerState:u,ref:r,variant:"h6",id:i??d},a))});process.env.NODE_ENV!=="production"&&(Ju.propTypes={children:s.node,classes:s.object,className:s.string,id:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function xy(e){return Me("MuiDialogActions",e)}$e("MuiDialogActions",["root","spacing"]);const Ey=["className","disableSpacing"],Ty=e=>{const{classes:t,disableSpacing:r}=e;return je({root:["root",!r&&"spacing"]},xy,t)},Sy=xe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>w({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Zu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=n,a=pe(n,Ey),u=w({},n,{disableSpacing:i}),c=Ty(u);return k.jsx(Sy,w({className:ne(c.root,o),ownerState:u,ref:r},a))});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ry(e){return Me("MuiButton",e)}const nn=$e("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"]),Qu=S.createContext({});process.env.NODE_ENV!=="production"&&(Qu.displayName="ButtonGroupContext");const ec=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(ec.displayName="ButtonGroupButtonContext");const Cy=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Oy=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${me(t)}`,`size${me(o)}`,`${i}Size${me(o)}`,`color${me(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${me(o)}`],endIcon:["icon","endIcon",`iconSize${me(o)}`]},c=je(u,Ry,a);return w({},a,c)},tc=e=>w({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Py=xe(Zr,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${me(r.color)}`],t[`size${me(r.size)}`],t[`${r.variant}Size${me(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return w({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":w({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":w({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nn.focusVisible}`]:w({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nn.disabled}`]:w({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ne.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nn.disabled}`]:{boxShadow:"none"}}),wy=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${me(r.size)}`]]}})(({ownerState:e})=>w({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},tc(e))),Iy=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${me(r.size)}`]]}})(({ownerState:e})=>w({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},tc(e))),rc=S.forwardRef(function(t,r){const n=S.useContext(Qu),o=S.useContext(ec),i=Wr(n,t),a=ke({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:d="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:l,fullWidth:_=!1,size:E="medium",startIcon:C,type:T,variant:x="text"}=a,y=pe(a,Cy),$=w({},a,{color:c,component:d,disabled:p,disableElevation:m,disableFocusRipple:b,fullWidth:_,size:E,type:T,variant:x}),h=Oy($),O=C&&k.jsx(wy,{className:h.startIcon,ownerState:$,children:C}),R=v&&k.jsx(Iy,{className:h.endIcon,ownerState:$,children:v}),I=o||"";return k.jsxs(Py,w({ownerState:$,className:ne(n.className,h.root,f,I),component:d,disabled:p,focusRipple:!b,focusVisibleClassName:ne(h.focusVisible,l),ref:r,type:T},y,{classes:h,children:[O,u,R]}))});process.env.NODE_ENV!=="production"&&(rc.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function $y(e){return Me("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ay=["children","className","component","dense","disablePadding","subheader"],My=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return je({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$y,t)},Ny=xe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),po=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:d}=n,f=pe(n,Ay),p=S.useMemo(()=>({dense:u}),[u]),m=w({},n,{component:a,dense:u,disablePadding:c}),b=My(m);return k.jsx(rt.Provider,{value:p,children:k.jsxs(Ny,w({as:a,className:ne(b.root,i),ref:r,ownerState:m},f,{children:[d,o]}))})});process.env.NODE_ENV!=="production"&&(po.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ky(e){return Me("MuiLink",e)}const Dy=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jy=e=>nc[e]||e,qy=({theme:e,ownerState:t})=>{const r=jy(t.color),n=St(e,`palette.${r}`,!1)||t.color,o=St(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ne.alpha(n,.4)},Ly=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fy=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return je(i,ky,t)},By=xe(nt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>w({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&w({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:qy({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Dy.focusVisible}`]:{outline:"auto"}})),Nt=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:d,underline:f="always",variant:p="inherit",sx:m}=n,b=pe(n,Ly),{isFocusVisibleRef:v,onBlur:l,onFocus:_,ref:E}=Gn(),[C,T]=S.useState(!1),x=Je(r,E),y=R=>{l(R),v.current===!1&&T(!1),u&&u(R)},$=R=>{_(R),v.current===!0&&T(!0),c&&c(R)},h=w({},n,{color:i,component:a,focusVisible:C,underline:f,variant:p}),O=Fy(h);return k.jsx(By,w({color:i,className:ne(O.root,o),classes:d,component:a,onBlur:y,onFocus:$,ref:x,ownerState:h,variant:p,sx:[...Object.keys(nc).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},b))});process.env.NODE_ENV!=="production"&&(Nt.propTypes={children:s.node,classes:s.object,className:s.string,color:s.any,component:Vn,onBlur:s.func,onFocus:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});function zy(e){return Me("MuiListItem",e)}const kt=$e("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Vy=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Wy(e){return Me("MuiListItemSecondaryAction",e)}$e("MuiListItemSecondaryAction",["root","disableGutters"]);const Uy=["className"],Gy=e=>{const{disableGutters:t,classes:r}=e;return je({root:["root",t&&"disableGutters"]},Wy,r)},Yy=xe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>w({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),ho=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,i=pe(n,Uy),a=S.useContext(rt),u=w({},n,{disableGutters:a.disableGutters}),c=Gy(u);return k.jsx(Yy,w({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(ho.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),ho.muiName="ListItemSecondaryAction";const Hy=["className"],Ky=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Xy=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Jy=e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:d,selected:f}=e;return je({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",f&&"selected"],container:["container"]},zy,n)},Zy=xe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Xy})(({theme:e,ownerState:t})=>w({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&w({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Vy.root}`]:{paddingRight:48}},{[`&.${kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kt.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kt.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Qy=xe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Dt=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:u,className:c,component:d,components:f={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:b}={},dense:v=!1,disabled:l=!1,disableGutters:_=!1,disablePadding:E=!1,divider:C=!1,focusVisibleClassName:T,secondaryAction:x,selected:y=!1,slotProps:$={},slots:h={}}=n,O=pe(n.ContainerProps,Hy),R=pe(n,Ky),I=S.useContext(rt),M=S.useMemo(()=>({dense:v||I.dense||!1,alignItems:o,disableGutters:_}),[o,I.dense,v,_]),F=S.useRef(null);$t(()=>{i&&(F.current?F.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))},[i]);const D=S.Children.toArray(u),L=D.length&&Zn(D[D.length-1],["ListItemSecondaryAction"]),B=w({},n,{alignItems:o,autoFocus:i,button:a,dense:M.dense,disabled:l,disableGutters:_,disablePadding:E,divider:C,hasSecondaryAction:L,selected:y}),q=Jy(B),G=Je(F,r),Z=h.root||f.Root||Zy,Pe=$.root||p.root||{},A=w({className:ne(q.root,Pe.className,c),disabled:l},R);let j=d||"li";return a&&(A.component=d||"div",A.focusVisibleClassName=ne(kt.focusVisible,T),j=Zr),L?(j=!A.component&&!d?"div":j,m==="li"&&(j==="li"?j="div":A.component==="li"&&(A.component="div")),k.jsx(rt.Provider,{value:M,children:k.jsxs(Qy,w({as:m,className:ne(q.container,b),ref:G,ownerState:B},O,{children:[k.jsx(Z,w({},Pe,!eo(Z)&&{as:j,ownerState:w({},B,Pe.ownerState)},A,{children:D})),D.pop()]}))})):k.jsx(rt.Provider,{value:M,children:k.jsxs(Z,w({},Pe,{as:j,ref:G},!eo(Z)&&{ownerState:w({},B,Pe.ownerState)},A,{children:[D,x&&k.jsx(ho,{children:x})]}))})});process.env.NODE_ENV!=="production"&&(Dt.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,button:s.bool,children:or(s.node,e=>{const t=S.Children.toArray(e.children);let r=-1;for(let n=t.length-1;n>=0;n-=1){const o=t[n];if(Zn(o,["ListItemSecondaryAction"])){r=n;break}}return r!==-1&&r!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:Vn,ContainerProps:s.object,dense:s.bool,disabled:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,focusVisibleClassName:s.string,secondaryAction:s.node,selected:s.bool,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});class mo extends ae.Component{render(){const{rendering:t}=this.props;return k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsxs(no,{primaryTypographyProps:{variant:"body1"},children:[k.jsx(Nt,{href:t.id,download:!0,rel:"noopener noreferrer",target:"_blank",variant:"body1",children:t.getLabel().getValue()}),t.getFormat()&&t.getFormat().value&&` (${t.getFormat().value})`]})},t.id)}}mo.propTypes={rendering:s.shape({id:s.string.isRequired,getLabel:s.func.isRequired,getFormat:s.func.isRequired}).isRequired};function oc({renderings:e}){const{t}=Xe.useTranslation();return k.jsxs(k.Fragment,{children:[k.jsx(nt,{variant:"h3",sx:{marginTop:"20px"},children:t("mirador-dl-plugin.other_download")}),k.jsx(po,{children:e.map(r=>k.jsx(mo,{rendering:r},r.id))})]})}oc.propTypes={renderings:s.array.isRequired};var go,ic;function ev(){if(ic)return go;ic=1;function e(){this.__data__=[],this.size=0}return go=e,go}var yo,ac;function sc(){if(ac)return yo;ac=1;function e(t,r){return t===r||t!==t&&r!==r}return yo=e,yo}var vo,uc;function on(){if(uc)return vo;uc=1;var e=sc();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return vo=t,vo}var bo,cc;function tv(){if(cc)return bo;cc=1;var e=on(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,a=e(i,o);if(a<0)return!1;var u=i.length-1;return a==u?i.pop():r.call(i,a,1),--this.size,!0}return bo=n,bo}var _o,lc;function rv(){if(lc)return _o;lc=1;var e=on();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return _o=t,_o}var xo,dc;function nv(){if(dc)return xo;dc=1;var e=on();function t(r){return e(this.__data__,r)>-1}return xo=t,xo}var Eo,fc;function ov(){if(fc)return Eo;fc=1;var e=on();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return Eo=t,Eo}var To,pc;function an(){if(pc)return To;pc=1;var e=ev(),t=tv(),r=rv(),n=nv(),o=ov();function i(a){var u=-1,c=a==null?0:a.length;for(this.clear();++u<c;){var d=a[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,To=i,To}var So,hc;function iv(){if(hc)return So;hc=1;var e=an();function t(){this.__data__=new e,this.size=0}return So=t,So}var Ro,mc;function av(){if(mc)return Ro;mc=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ro=e,Ro}var Co,gc;function sv(){if(gc)return Co;gc=1;function e(t){return this.__data__.get(t)}return Co=e,Co}var Oo,yc;function uv(){if(yc)return Oo;yc=1;function e(t){return this.__data__.has(t)}return Oo=e,Oo}var Po,vc;function bc(){if(vc)return Po;vc=1;var e=typeof vr=="object"&&vr&&vr.Object===Object&&vr;return Po=e,Po}var wo,_c;function ut(){if(_c)return wo;_c=1;var e=bc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return wo=r,wo}var Io,xc;function sn(){if(xc)return Io;xc=1;var e=ut(),t=e.Symbol;return Io=t,Io}var $o,Ec;function cv(){if(Ec)return $o;Ec=1;var e=sn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var u=r.call(a,o),c=a[o];try{a[o]=void 0;var d=!0}catch{}var f=n.call(a);return d&&(u?a[o]=c:delete a[o]),f}return $o=i,$o}var Ao,Tc;function lv(){if(Tc)return Ao;Tc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ao=r,Ao}var Mo,Sc;function cr(){if(Sc)return Mo;Sc=1;var e=sn(),t=cv(),r=lv(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?o:n:i&&i in Object(u)?t(u):r(u)}return Mo=a,Mo}var No,Rc;function ko(){if(Rc)return No;Rc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return No=e,No}var Do,Cc;function Oc(){if(Cc)return Do;Cc=1;var e=cr(),t=ko(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(u){if(!t(u))return!1;var c=e(u);return c==n||c==o||c==r||c==i}return Do=a,Do}var jo,Pc;function dv(){if(Pc)return jo;Pc=1;var e=ut(),t=e["__core-js_shared__"];return jo=t,jo}var qo,wc;function fv(){if(wc)return qo;wc=1;var e=dv(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return qo=r,qo}var Lo,Ic;function $c(){if(Ic)return Lo;Ic=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Lo=r,Lo}var Fo,Ac;function pv(){if(Ac)return Fo;Ac=1;var e=Oc(),t=fv(),r=ko(),n=$c(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,c=a.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(m){if(!r(m)||t(m))return!1;var b=e(m)?f:i;return b.test(n(m))}return Fo=p,Fo}var Bo,Mc;function hv(){if(Mc)return Bo;Mc=1;function e(t,r){return t==null?void 0:t[r]}return Bo=e,Bo}var zo,Nc;function jt(){if(Nc)return zo;Nc=1;var e=pv(),t=hv();function r(n,o){var i=t(n,o);return e(i)?i:void 0}return zo=r,zo}var Vo,kc;function Wo(){if(kc)return Vo;kc=1;var e=jt(),t=ut(),r=e(t,"Map");return Vo=r,Vo}var Uo,Dc;function un(){if(Dc)return Uo;Dc=1;var e=jt(),t=e(Object,"create");return Uo=t,Uo}var Go,jc;function mv(){if(jc)return Go;jc=1;var e=un();function t(){this.__data__=e?e(null):{},this.size=0}return Go=t,Go}var Yo,qc;function gv(){if(qc)return Yo;qc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Yo=e,Yo}var Ho,Lc;function yv(){if(Lc)return Ho;Lc=1;var e=un(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(i){var a=this.__data__;if(e){var u=a[i];return u===t?void 0:u}return n.call(a,i)?a[i]:void 0}return Ho=o,Ho}var Ko,Fc;function vv(){if(Fc)return Ko;Fc=1;var e=un(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var i=this.__data__;return e?i[o]!==void 0:r.call(i,o)}return Ko=n,Ko}var Xo,Bc;function bv(){if(Bc)return Xo;Bc=1;var e=un(),t="__lodash_hash_undefined__";function r(n,o){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&o===void 0?t:o,this}return Xo=r,Xo}var Jo,zc;function _v(){if(zc)return Jo;zc=1;var e=mv(),t=gv(),r=yv(),n=vv(),o=bv();function i(a){var u=-1,c=a==null?0:a.length;for(this.clear();++u<c;){var d=a[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Jo=i,Jo}var Zo,Vc;function xv(){if(Vc)return Zo;Vc=1;var e=_v(),t=an(),r=Wo();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Zo=n,Zo}var Qo,Wc;function Ev(){if(Wc)return Qo;Wc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Qo=e,Qo}var ei,Uc;function cn(){if(Uc)return ei;Uc=1;var e=Ev();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return ei=t,ei}var ti,Gc;function Tv(){if(Gc)return ti;Gc=1;var e=cn();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ti=t,ti}var ri,Yc;function Sv(){if(Yc)return ri;Yc=1;var e=cn();function t(r){return e(this,r).get(r)}return ri=t,ri}var ni,Hc;function Rv(){if(Hc)return ni;Hc=1;var e=cn();function t(r){return e(this,r).has(r)}return ni=t,ni}var oi,Kc;function Cv(){if(Kc)return oi;Kc=1;var e=cn();function t(r,n){var o=e(this,r),i=o.size;return o.set(r,n),this.size+=o.size==i?0:1,this}return oi=t,oi}var ii,Xc;function ai(){if(Xc)return ii;Xc=1;var e=xv(),t=Tv(),r=Sv(),n=Rv(),o=Cv();function i(a){var u=-1,c=a==null?0:a.length;for(this.clear();++u<c;){var d=a[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,ii=i,ii}var si,Jc;function Ov(){if(Jc)return si;Jc=1;var e=an(),t=Wo(),r=ai(),n=200;function o(i,a){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([i,a]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(i,a),this.size=u.size,this}return si=o,si}var ui,Zc;function Qc(){if(Zc)return ui;Zc=1;var e=an(),t=iv(),r=av(),n=sv(),o=uv(),i=Ov();function a(u){var c=this.__data__=new e(u);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,ui=a,ui}var ci,el;function Pv(){if(el)return ci;el=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ci=t,ci}var li,tl;function wv(){if(tl)return li;tl=1;function e(t){return this.__data__.has(t)}return li=e,li}var di,rl;function nl(){if(rl)return di;rl=1;var e=ai(),t=Pv(),r=wv();function n(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new e;++i<a;)this.add(o[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,di=n,di}var fi,ol;function Iv(){if(ol)return fi;ol=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return fi=e,fi}var pi,il;function al(){if(il)return pi;il=1;function e(t,r){return t.has(r)}return pi=e,pi}var hi,sl;function ul(){if(sl)return hi;sl=1;var e=nl(),t=Iv(),r=al(),n=1,o=2;function i(a,u,c,d,f,p){var m=c&n,b=a.length,v=u.length;if(b!=v&&!(m&&v>b))return!1;var l=p.get(a),_=p.get(u);if(l&&_)return l==u&&_==a;var E=-1,C=!0,T=c&o?new e:void 0;for(p.set(a,u),p.set(u,a);++E<b;){var x=a[E],y=u[E];if(d)var $=m?d(y,x,E,u,a,p):d(x,y,E,a,u,p);if($!==void 0){if($)continue;C=!1;break}if(T){if(!t(u,function(h,O){if(!r(T,O)&&(x===h||f(x,h,c,d,p)))return T.push(O)})){C=!1;break}}else if(!(x===y||f(x,y,c,d,p))){C=!1;break}}return p.delete(a),p.delete(u),C}return hi=i,hi}var mi,cl;function $v(){if(cl)return mi;cl=1;var e=ut(),t=e.Uint8Array;return mi=t,mi}var gi,ll;function Av(){if(ll)return gi;ll=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,i){n[++r]=[i,o]}),n}return gi=e,gi}var yi,dl;function vi(){if(dl)return yi;dl=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return yi=e,yi}var bi,fl;function Mv(){if(fl)return bi;fl=1;var e=sn(),t=$v(),r=sc(),n=ul(),o=Av(),i=vi(),a=1,u=2,c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Map]",m="[object Number]",b="[object RegExp]",v="[object Set]",l="[object String]",_="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",T=e?e.prototype:void 0,x=T?T.valueOf:void 0;function y($,h,O,R,I,M,F){switch(O){case C:if($.byteLength!=h.byteLength||$.byteOffset!=h.byteOffset)return!1;$=$.buffer,h=h.buffer;case E:return!($.byteLength!=h.byteLength||!M(new t($),new t(h)));case c:case d:case m:return r(+$,+h);case f:return $.name==h.name&&$.message==h.message;case b:case l:return $==h+"";case p:var D=o;case v:var L=R&a;if(D||(D=i),$.size!=h.size&&!L)return!1;var B=F.get($);if(B)return B==h;R|=u,F.set($,h);var q=n(D($),D(h),R,I,M,F);return F.delete($),q;case _:if(x)return x.call($)==x.call(h)}return!1}return bi=y,bi}var _i,pl;function Nv(){if(pl)return _i;pl=1;function e(t,r){for(var n=-1,o=r.length,i=t.length;++n<o;)t[i+n]=r[n];return t}return _i=e,_i}var xi,hl;function ft(){if(hl)return xi;hl=1;var e=Array.isArray;return xi=e,xi}var Ei,ml;function kv(){if(ml)return Ei;ml=1;var e=Nv(),t=ft();function r(n,o,i){var a=o(n);return t(n)?a:e(a,i(n))}return Ei=r,Ei}var Ti,gl;function Dv(){if(gl)return Ti;gl=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=0,a=[];++n<o;){var u=t[n];r(u,n,t)&&(a[i++]=u)}return a}return Ti=e,Ti}var Si,yl;function jv(){if(yl)return Si;yl=1;function e(){return[]}return Si=e,Si}var Ri,vl;function qv(){if(vl)return Ri;vl=1;var e=Dv(),t=jv(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(u){return n.call(a,u)}))}:t;return Ri=i,Ri}var Ci,bl;function Lv(){if(bl)return Ci;bl=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Ci=e,Ci}var Oi,_l;function lr(){if(_l)return Oi;_l=1;function e(t){return t!=null&&typeof t=="object"}return Oi=e,Oi}var Pi,xl;function Fv(){if(xl)return Pi;xl=1;var e=cr(),t=lr(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return Pi=n,Pi}var wi,El;function Tl(){if(El)return wi;El=1;var e=Fv(),t=lr(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(a){return t(a)&&n.call(a,"callee")&&!o.call(a,"callee")};return wi=i,wi}var dr={exports:{}},Ii,Sl;function Bv(){if(Sl)return Ii;Sl=1;function e(){return!1}return Ii=e,Ii}dr.exports;var Rl;function Cl(){return Rl||(Rl=1,function(e,t){var r=ut(),n=Bv(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,u=a?r.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||n;e.exports=d}(dr,dr.exports)),dr.exports}var $i,Ol;function Pl(){if(Ol)return $i;Ol=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var i=typeof n;return o=o??e,!!o&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return $i=r,$i}var Ai,wl;function Mi(){if(wl)return Ai;wl=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ai=t,Ai}var Ni,Il;function zv(){if(Il)return Ni;Il=1;var e=cr(),t=Mi(),r=lr(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",b="[object Set]",v="[object String]",l="[object WeakMap]",_="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",x="[object Int8Array]",y="[object Int16Array]",$="[object Int32Array]",h="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",I="[object Uint32Array]",M={};M[C]=M[T]=M[x]=M[y]=M[$]=M[h]=M[O]=M[R]=M[I]=!0,M[n]=M[o]=M[_]=M[i]=M[E]=M[a]=M[u]=M[c]=M[d]=M[f]=M[p]=M[m]=M[b]=M[v]=M[l]=!1;function F(D){return r(D)&&t(D.length)&&!!M[e(D)]}return Ni=F,Ni}var ki,$l;function Vv(){if($l)return ki;$l=1;function e(t){return function(r){return t(r)}}return ki=e,ki}var fr={exports:{}};fr.exports;var Al;function Wv(){return Al||(Al=1,function(e,t){var r=bc(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,u=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=u}(fr,fr.exports)),fr.exports}var Di,Ml;function Nl(){if(Ml)return Di;Ml=1;var e=zv(),t=Vv(),r=Wv(),n=r&&r.isTypedArray,o=n?t(n):e;return Di=o,Di}var ji,kl;function Uv(){if(kl)return ji;kl=1;var e=Lv(),t=Tl(),r=ft(),n=Cl(),o=Pl(),i=Nl(),a=Object.prototype,u=a.hasOwnProperty;function c(d,f){var p=r(d),m=!p&&t(d),b=!p&&!m&&n(d),v=!p&&!m&&!b&&i(d),l=p||m||b||v,_=l?e(d.length,String):[],E=_.length;for(var C in d)(f||u.call(d,C))&&!(l&&(C=="length"||b&&(C=="offset"||C=="parent")||v&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,E)))&&_.push(C);return _}return ji=c,ji}var qi,Dl;function Gv(){if(Dl)return qi;Dl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return qi=t,qi}var Li,jl;function Yv(){if(jl)return Li;jl=1;function e(t,r){return function(n){return t(r(n))}}return Li=e,Li}var Fi,ql;function Hv(){if(ql)return Fi;ql=1;var e=Yv(),t=e(Object.keys,Object);return Fi=t,Fi}var Bi,Ll;function Kv(){if(Ll)return Bi;Ll=1;var e=Gv(),t=Hv(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var a=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&a.push(u);return a}return Bi=o,Bi}var zi,Fl;function Xv(){if(Fl)return zi;Fl=1;var e=Oc(),t=Mi();function r(n){return n!=null&&t(n.length)&&!e(n)}return zi=r,zi}var Vi,Bl;function zl(){if(Bl)return Vi;Bl=1;var e=Uv(),t=Kv(),r=Xv();function n(o){return r(o)?e(o):t(o)}return Vi=n,Vi}var Wi,Vl;function Jv(){if(Vl)return Wi;Vl=1;var e=kv(),t=qv(),r=zl();function n(o){return e(o,r,t)}return Wi=n,Wi}var Ui,Wl;function Zv(){if(Wl)return Ui;Wl=1;var e=Jv(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(i,a,u,c,d,f){var p=u&t,m=e(i),b=m.length,v=e(a),l=v.length;if(b!=l&&!p)return!1;for(var _=b;_--;){var E=m[_];if(!(p?E in a:n.call(a,E)))return!1}var C=f.get(i),T=f.get(a);if(C&&T)return C==a&&T==i;var x=!0;f.set(i,a),f.set(a,i);for(var y=p;++_<b;){E=m[_];var $=i[E],h=a[E];if(c)var O=p?c(h,$,E,a,i,f):c($,h,E,i,a,f);if(!(O===void 0?$===h||d($,h,u,c,f):O)){x=!1;break}y||(y=E=="constructor")}if(x&&!y){var R=i.constructor,I=a.constructor;R!=I&&"constructor"in i&&"constructor"in a&&!(typeof R=="function"&&R instanceof R&&typeof I=="function"&&I instanceof I)&&(x=!1)}return f.delete(i),f.delete(a),x}return Ui=o,Ui}var Gi,Ul;function Qv(){if(Ul)return Gi;Ul=1;var e=jt(),t=ut(),r=e(t,"DataView");return Gi=r,Gi}var Yi,Gl;function eb(){if(Gl)return Yi;Gl=1;var e=jt(),t=ut(),r=e(t,"Promise");return Yi=r,Yi}var Hi,Yl;function Hl(){if(Yl)return Hi;Yl=1;var e=jt(),t=ut(),r=e(t,"Set");return Hi=r,Hi}var Ki,Kl;function tb(){if(Kl)return Ki;Kl=1;var e=jt(),t=ut(),r=e(t,"WeakMap");return Ki=r,Ki}var Xi,Xl;function rb(){if(Xl)return Xi;Xl=1;var e=Qv(),t=Wo(),r=eb(),n=Hl(),o=tb(),i=cr(),a=$c(),u="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",b=a(e),v=a(t),l=a(r),_=a(n),E=a(o),C=i;return(e&&C(new e(new ArrayBuffer(1)))!=m||t&&C(new t)!=u||r&&C(r.resolve())!=d||n&&C(new n)!=f||o&&C(new o)!=p)&&(C=function(T){var x=i(T),y=x==c?T.constructor:void 0,$=y?a(y):"";if($)switch($){case b:return m;case v:return u;case l:return d;case _:return f;case E:return p}return x}),Xi=C,Xi}var Ji,Jl;function nb(){if(Jl)return Ji;Jl=1;var e=Qc(),t=ul(),r=Mv(),n=Zv(),o=rb(),i=ft(),a=Cl(),u=Nl(),c=1,d="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function v(l,_,E,C,T,x){var y=i(l),$=i(_),h=y?f:o(l),O=$?f:o(_);h=h==d?p:h,O=O==d?p:O;var R=h==p,I=O==p,M=h==O;if(M&&a(l)){if(!a(_))return!1;y=!0,R=!1}if(M&&!R)return x||(x=new e),y||u(l)?t(l,_,E,C,T,x):r(l,_,h,E,C,T,x);if(!(E&c)){var F=R&&b.call(l,"__wrapped__"),D=I&&b.call(_,"__wrapped__");if(F||D){var L=F?l.value():l,B=D?_.value():_;return x||(x=new e),T(L,B,E,C,x)}}return M?(x||(x=new e),n(l,_,E,C,T,x)):!1}return Ji=v,Ji}var Zi,Zl;function Ql(){if(Zl)return Zi;Zl=1;var e=nb(),t=lr();function r(n,o,i,a,u){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,i,a,r,u)}return Zi=r,Zi}var Qi,ed;function ob(){if(ed)return Qi;ed=1;var e=Qc(),t=Ql(),r=1,n=2;function o(i,a,u,c){var d=u.length,f=d,p=!c;if(i==null)return!f;for(i=Object(i);d--;){var m=u[d];if(p&&m[2]?m[1]!==i[m[0]]:!(m[0]in i))return!1}for(;++d<f;){m=u[d];var b=m[0],v=i[b],l=m[1];if(p&&m[2]){if(v===void 0&&!(b in i))return!1}else{var _=new e;if(c)var E=c(v,l,b,i,a,_);if(!(E===void 0?t(l,v,r|n,c,_):E))return!1}}return!0}return Qi=o,Qi}var ea,td;function rd(){if(td)return ea;td=1;var e=ko();function t(r){return r===r&&!e(r)}return ea=t,ea}var ta,nd;function ib(){if(nd)return ta;nd=1;var e=rd(),t=zl();function r(n){for(var o=t(n),i=o.length;i--;){var a=o[i],u=n[a];o[i]=[a,u,e(u)]}return o}return ta=r,ta}var ra,od;function id(){if(od)return ra;od=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ra=e,ra}var na,ad;function ab(){if(ad)return na;ad=1;var e=ob(),t=ib(),r=id();function n(o){var i=t(o);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(a){return a===o||e(a,o,i)}}return na=n,na}var oa,sd;function ia(){if(sd)return oa;sd=1;var e=cr(),t=lr(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return oa=n,oa}var aa,ud;function sa(){if(ud)return aa;ud=1;var e=ft(),t=ia(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,a){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||a!=null&&i in Object(a)}return aa=o,aa}var ua,cd;function sb(){if(cd)return ua;cd=1;var e=ai(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var a=arguments,u=o?o.apply(this,a):a[0],c=i.cache;if(c.has(u))return c.get(u);var d=n.apply(this,a);return i.cache=c.set(u,d)||c,d};return i.cache=new(r.Cache||e),i}return r.Cache=e,ua=r,ua}var ca,ld;function ub(){if(ld)return ca;ld=1;var e=sb(),t=500;function r(n){var o=e(n,function(a){return i.size===t&&i.clear(),a}),i=o.cache;return o}return ca=r,ca}var la,dd;function cb(){if(dd)return la;dd=1;var e=ub(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(a,u,c,d){i.push(c?d.replace(r,"$1"):u||a)}),i});return la=n,la}var da,fd;function lb(){if(fd)return da;fd=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n<o;)i[n]=r(t[n],n,t);return i}return da=e,da}var fa,pd;function db(){if(pd)return fa;pd=1;var e=sn(),t=lb(),r=ft(),n=ia(),o=e?e.prototype:void 0,i=o?o.toString:void 0;function a(u){if(typeof u=="string")return u;if(r(u))return t(u,a)+"";if(n(u))return i?i.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return fa=a,fa}var pa,hd;function fb(){if(hd)return pa;hd=1;var e=db();function t(r){return r==null?"":e(r)}return pa=t,pa}var ha,md;function gd(){if(md)return ha;md=1;var e=ft(),t=sa(),r=cb(),n=fb();function o(i,a){return e(i)?i:t(i,a)?[i]:r(n(i))}return ha=o,ha}var ma,yd;function ln(){if(yd)return ma;yd=1;var e=ia();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ma=t,ma}var ga,vd;function bd(){if(vd)return ga;vd=1;var e=gd(),t=ln();function r(n,o){o=e(o,n);for(var i=0,a=o.length;n!=null&&i<a;)n=n[t(o[i++])];return i&&i==a?n:void 0}return ga=r,ga}var ya,_d;function pb(){if(_d)return ya;_d=1;var e=bd();function t(r,n,o){var i=r==null?void 0:e(r,n);return i===void 0?o:i}return ya=t,ya}var va,xd;function hb(){if(xd)return va;xd=1;function e(t,r){return t!=null&&r in Object(t)}return va=e,va}var ba,Ed;function mb(){if(Ed)return ba;Ed=1;var e=gd(),t=Tl(),r=ft(),n=Pl(),o=Mi(),i=ln();function a(u,c,d){c=e(c,u);for(var f=-1,p=c.length,m=!1;++f<p;){var b=i(c[f]);if(!(m=u!=null&&d(u,b)))break;u=u[b]}return m||++f!=p?m:(p=u==null?0:u.length,!!p&&o(p)&&n(b,p)&&(r(u)||t(u)))}return ba=a,ba}var _a,Td;function gb(){if(Td)return _a;Td=1;var e=hb(),t=mb();function r(n,o){return n!=null&&t(n,o,e)}return _a=r,_a}var xa,Sd;function yb(){if(Sd)return xa;Sd=1;var e=Ql(),t=pb(),r=gb(),n=sa(),o=rd(),i=id(),a=ln(),u=1,c=2;function d(f,p){return n(f)&&o(p)?i(a(f),p):function(m){var b=t(m,f);return b===void 0&&b===p?r(m,f):e(p,b,u|c)}}return xa=d,xa}var Ea,Rd;function vb(){if(Rd)return Ea;Rd=1;function e(t){return t}return Ea=e,Ea}var Ta,Cd;function bb(){if(Cd)return Ta;Cd=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Ta=e,Ta}var Sa,Od;function _b(){if(Od)return Sa;Od=1;var e=bd();function t(r){return function(n){return e(n,r)}}return Sa=t,Sa}var Ra,Pd;function xb(){if(Pd)return Ra;Pd=1;var e=bb(),t=_b(),r=sa(),n=ln();function o(i){return r(i)?e(n(i)):t(i)}return Ra=o,Ra}var Ca,wd;function Eb(){if(wd)return Ca;wd=1;var e=ab(),t=yb(),r=vb(),n=ft(),o=xb();function i(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):o(a)}return Ca=i,Ca}var Oa,Id;function Tb(){if(Id)return Oa;Id=1;function e(t,r,n,o){for(var i=t.length,a=n+(o?1:-1);o?a--:++a<i;)if(r(t[a],a,t))return a;return-1}return Oa=e,Oa}var Pa,$d;function Sb(){if($d)return Pa;$d=1;function e(t){return t!==t}return Pa=e,Pa}var wa,Ad;function Rb(){if(Ad)return wa;Ad=1;function e(t,r,n){for(var o=n-1,i=t.length;++o<i;)if(t[o]===r)return o;return-1}return wa=e,wa}var Ia,Md;function Cb(){if(Md)return Ia;Md=1;var e=Tb(),t=Sb(),r=Rb();function n(o,i,a){return i===i?r(o,i,a):e(o,t,a)}return Ia=n,Ia}var $a,Nd;function Ob(){if(Nd)return $a;Nd=1;var e=Cb();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return $a=t,$a}var Aa,kd;function Pb(){if(kd)return Aa;kd=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o<i;)if(n(r,t[o]))return!0;return!1}return Aa=e,Aa}var Ma,Dd;function wb(){if(Dd)return Ma;Dd=1;function e(){}return Ma=e,Ma}var Na,jd;function Ib(){if(jd)return Na;jd=1;var e=Hl(),t=wb(),r=vi(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return Na=o,Na}var ka,qd;function $b(){if(qd)return ka;qd=1;var e=nl(),t=Ob(),r=Pb(),n=al(),o=Ib(),i=vi(),a=200;function u(c,d,f){var p=-1,m=t,b=c.length,v=!0,l=[],_=l;if(f)v=!1,m=r;else if(b>=a){var E=d?null:o(c);if(E)return i(E);v=!1,m=n,_=new e}else _=d?[]:l;e:for(;++p<b;){var C=c[p],T=d?d(C):C;if(C=f||C!==0?C:0,v&&T===T){for(var x=_.length;x--;)if(_[x]===T)continue e;d&&_.push(T),l.push(C)}else m(_,T,f)||(_!==l&&_.push(T),l.push(C))}return l}return ka=u,ka}var Da,Ld;function Ab(){if(Ld)return Da;Ld=1;var e=Eb(),t=$b();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return Da=r,Da}var Mb=Ab();const Nb=br(Mb);class Fd extends ae.Component{zoomedImageLabel(){const{t}=this.props,r=this.currentBounds();return t("mirador-dl-plugin.zoomed_region",{width:Math.floor(r.width),height:Math.floor(r.height)})}fullImageLabel(){const{canvas:t,t:r}=this.props;return r("mirador-dl-plugin.whole_image",{width:t.getWidth(),height:t.getHeight()})}smallImageLabel(){const{canvas:t,t:r}=this.props,n=Math.floor(1e3*t.getHeight()/t.getWidth());return r("mirador-dl-plugin.whole_image",{width:1e3,height:n})}zoomedImageUrl(){const{canvas:t}=this.props,r=this.currentBounds();return`${t.getCanonicalImageUri().replace(/\/full\/.*\/0\//,`/${r.x},${r.y},${r.width},${r.height}/full/0/`)}?download=true`}imageUrlForSize(t){const{canvas:r}=this.props;return`${r.getCanonicalImageUri(t.width)}?download=true`}fullImageUrl(){const{canvas:t}=this.props;return`${t.getCanonicalImageUri().replace(/\/full\/.*\/0\//,"/full/full/0/")}?download=true`}thousandPixelWideImage(){const{canvas:t}=this.props;return`${t.getCanonicalImageUri("1000")}?download=true`}osdViewport(){const{windowId:t}=this.props;return Xe.OSDReferences.get(t).current.viewport}currentBounds(){const t=this.osdViewport().getBounds();return Object.keys(t).reduce((r,n)=>(r[n]=Math.ceil(t[n]),r),{})}definedSizesRestrictsDownload(){const{infoResponse:t}=this.props;if(!t.json)return!1;const{height:r,width:n}=t.json;return this.definedSizes().length!==1?!1:this.definedSizes()[0].width<=n&&this.definedSizes()[0].height<=r}displayCurrentZoomLink(){const{restrictDownloadOnSizeDefinition:t,infoResponse:r,viewType:n}=this.props;if(n!=="single"||t&&this.definedSizesRestrictsDownload()||!(r&&r.json))return!1;const o=this.currentBounds();return o.height<r.json.height&&o.width<r.json.width&&o.x>=0&&o.y>=0}definedSizes(){const{infoResponse:t}=this.props;return t&&t.json&&t.json.sizes?Nb(t.json.sizes,r=>`${r.width}${r.height}`):[]}fullImageLink(){return k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{href:this.fullImageUrl(),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.fullImageLabel()})},this.fullImageUrl())}thousandPixelWideLink(){const{canvas:t}=this.props;return t.getWidth()<1e3?"":k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{href:this.thousandPixelWideImage(),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.smallImageLabel()})},this.thousandPixelWideImage())}linksForDefinedSizes(){const{t}=this.props;return this.definedSizes().map(r=>k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{href:this.imageUrlForSize(r),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:t("mirador-dl-plugin.whole_image",{width:r.width,height:r.height})})},`${r.width}${r.height}`))}render(){const{canvas:t,canvasLabel:r}=this.props;return k.jsxs(k.Fragment,{children:[k.jsx(nt,{noWrap:!0,variant:"h3",sx:{marginTop:"20px"},children:r}),k.jsxs(po,{children:[this.displayCurrentZoomLink()&&k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{href:this.zoomedImageUrl(),download:!0,rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.zoomedImageLabel()})}),this.definedSizes().length===0&&[this.fullImageLink(),this.thousandPixelWideLink()],this.definedSizes().length>0&&this.linksForDefinedSizes(),t.getRenderings().map(n=>k.jsx(mo,{rendering:n},n.id))]})]})}}Fd.propTypes={canvas:s.shape({id:s.string.isRequired,getCanonicalImageUri:s.func.isRequired,getHeight:s.func.isRequired,getRenderings:s.func.isRequired,getWidth:s.func.isRequired}).isRequired,canvasLabel:s.string.isRequired,infoResponse:s.shape({json:s.shape({height:s.number,sizes:s.arrayOf(s.shape({height:s.number,width:s.number})),width:s.number})}).isRequired,restrictDownloadOnSizeDefinition:s.bool.isRequired,t:s.func.isRequired,viewType:s.string.isRequired,windowId:s.string.isRequired};const kb=(e,{windowId:t})=>({closeDialog:()=>e({type:"CLOSE_WINDOW_DIALOG",windowId:t})}),Db=(e,{windowId:t})=>({canvases:Xe.getVisibleCanvases(e,{windowId:t}),canvasLabel:r=>Xe.getCanvasLabel(e,{canvasId:r,windowId:t}),containerId:Xe.getContainerId(e),infoResponse:r=>Xe.selectInfoResponse(e,{windowId:t,canvasId:r})||{},manifest:Xe.getManifestoInstance(e,{windowId:t}),restrictDownloadOnSizeDefinition:e.config.miradorDownloadPlugin&&e.config.miradorDownloadPlugin.restrictDownloadOnSizeDefinition,open:e.windowDialogs[t]&&e.windowDialogs[t].openDialog==="download",viewType:Xe.getWindowViewType(e,{windowId:t})});function Bd({canvases:e=[],canvasLabel:t,closeDialog:r,containerId:n,infoResponse:o,manifest:i=void 0,open:a=!1,restrictDownloadOnSizeDefinition:u=!1,viewType:c,windowId:d}){const{t:f}=Xe.useTranslation(),p=ae.useMemo(()=>i&&i.getSequences()&&i.getSequences()[0]&&i.getSequences()[0].getRenderings()?i.getSequences()[0].getRenderings():[],[i]);return a?k.jsxs(Xu,{"data-testid":"dialog-content",container:document.querySelector(`#${n} .mirador-viewer`),disableEnforceFocus:!0,onClose:r,open:a,scroll:"paper",fullWidth:!0,maxWidth:"xs",children:[k.jsx(Ju,{sx:{paddingBottom:0},children:k.jsx(nt,{variant:"h2",component:"span",children:f("mirador-dl-plugin.download")})}),k.jsxs(Xe.ScrollIndicatedDialogContent,{children:[e.map(m=>k.jsx(Fd,{canvas:m,canvasLabel:t(m.id),infoResponse:o(m.id),restrictDownloadOnSizeDefinition:u,t:f,viewType:c,windowId:d},m.id)),p.length>0&&k.jsx(oc,{renderings:p,t:f})]}),k.jsx(Zu,{children:k.jsx(rc,{onClick:r,color:"primary",children:f("mirador-dl-plugin.close")})})]}):""}Bd.propTypes={canvasLabel:s.func.isRequired,canvases:s.arrayOf(s.shape({id:s.string,index:s.number})),closeDialog:s.func.isRequired,containerId:s.string.isRequired,infoResponse:s.func.isRequired,manifest:s.shape({getSequences:s.func}),open:s.bool,restrictDownloadOnSizeDefinition:s.bool,viewType:s.string.isRequired,windowId:s.string.isRequired};const zd={target:"Window",mode:"add",name:"MiradorDownloadDialog",component:Bd,config:{translations:zu},mapDispatchToProps:kb,mapStateToProps:Db},jb=[Wu,zd];Ke.MiradorDownloadDialogPlugin=zd,Ke.default=jb,Ke.miradorDownloadPlugin=Wu,Object.defineProperties(Ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
167
|
+
`),Ge.rippleVisible,Ch,Dn,({theme:e})=>e.transitions.easing.easeInOut,Ge.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ge.child,Ge.childLeaving,Sh,Dn,({theme:e})=>e.transitions.easing.easeInOut,Ge.childPulsate,Oh,({theme:e})=>e.transitions.easing.easeInOut),Ws=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=n,u=ce(n,Th),[c,d]=O.useState([]),p=O.useRef(0),g=O.useRef(null);O.useEffect(()=>{g.current&&(g.current(),g.current=null)},[c]);const h=O.useRef(!1),y=sh(),v=O.useRef(null),l=O.useRef(null),b=O.useCallback(P=>{const{pulsate:_,rippleX:N,rippleY:f,rippleSize:E,cb:x}=P;d(w=>[...w,M.jsx(wh,{classes:{ripple:ne(i.ripple,Ge.ripple),rippleVisible:ne(i.rippleVisible,Ge.rippleVisible),ripplePulsate:ne(i.ripplePulsate,Ge.ripplePulsate),child:ne(i.child,Ge.child),childLeaving:ne(i.childLeaving,Ge.childLeaving),childPulsate:ne(i.childPulsate,Ge.childPulsate)},timeout:Dn,pulsate:_,rippleX:N,rippleY:f,rippleSize:E},p.current)]),p.current+=1,g.current=x},[i]),T=O.useCallback((P={},_={},N=()=>{})=>{const{pulsate:f=!1,center:E=o||_.pulsate,fakeElement:x=!1}=_;if((P==null?void 0:P.type)==="mousedown"&&h.current){h.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(h.current=!0);const w=x?null:l.current,$=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,k,L;if(E||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)F=Math.round($.width/2),k=Math.round($.height/2);else{const{clientX:V,clientY:q}=P.touches&&P.touches.length>0?P.touches[0]:P;F=Math.round(V-$.left),k=Math.round(q-$.top)}if(E)L=Math.sqrt((2*$.width**2+$.height**2)/3),L%2===0&&(L+=1);else{const V=Math.max(Math.abs((w?w.clientWidth:0)-F),F)*2+2,q=Math.max(Math.abs((w?w.clientHeight:0)-k),k)*2+2;L=Math.sqrt(V**2+q**2)}P!=null&&P.touches?v.current===null&&(v.current=()=>{b({pulsate:f,rippleX:F,rippleY:k,rippleSize:L,cb:N})},y.start(Rh,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:f,rippleX:F,rippleY:k,rippleSize:L,cb:N})},[o,b,y]),R=O.useCallback(()=>{T({},{pulsate:!0})},[T]),S=O.useCallback((P,_)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{S(P,_)});return}v.current=null,d(N=>N.length>0?N.slice(1):N),g.current=_},[y]);return O.useImperativeHandle(r,()=>({pulsate:R,start:T,stop:S}),[R,T,S]),M.jsx(Ph,C({className:ne(Ge.root,i.root,s),ref:l},u,{children:M.jsx(kn,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Ws.propTypes={center:a.bool,classes:a.object,className:a.string});function Ih(e){return Ie("MuiButtonBase",e)}const $h=Oe("MuiButtonBase",["root","disabled","focusVisible"]),Ah=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Nh=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,s=ke({root:["root",t&&"disabled",r&&"focusVisible"]},Ih,o);return r&&n&&(s.root+=` ${n}`),s},Mh=ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$h.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wr=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:u,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:h=!1,LinkComponent:y="a",onBlur:v,onClick:l,onContextMenu:b,onDragLeave:T,onFocus:R,onFocusVisible:S,onKeyDown:P,onKeyUp:_,onMouseDown:N,onMouseLeave:f,onMouseUp:E,onTouchEnd:x,onTouchMove:w,onTouchStart:$,tabIndex:F=0,TouchRippleProps:k,touchRippleRef:L,type:V}=n,q=ce(n,Ah),G=O.useRef(null),ee=O.useRef(null),Ae=Ye(ee,L),{isFocusVisibleRef:I,onFocus:D,onBlur:Q,ref:X}=$n(),[z,H]=O.useState(!1);d&&z&&H(!1),O.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),G.current.focus()}}),[]);const[K,Y]=O.useState(!1);O.useEffect(()=>{Y(!0)},[]);const W=K&&!p&&!d;O.useEffect(()=>{z&&h&&!p&&K&&ee.current.pulsate()},[p,h,z,K]);function U(te,pr,Ra=g){return pt(an=>(pr&&pr(an),!Ra&&ee.current&&ee.current[te](an),!0))}const J=U("start",N),ye=U("stop",b),j=U("stop",T),be=U("stop",E),ge=U("stop",te=>{z&&te.preventDefault(),f&&f(te)}),Pe=U("start",$),ze=U("stop",x),at=U("stop",w),kt=U("stop",te=>{Q(te),I.current===!1&&H(!1),v&&v(te)},!1),lt=pt(te=>{G.current||(G.current=te.currentTarget),D(te),I.current===!0&&(H(!0),S&&S(te)),R&&R(te)}),cr=()=>{const te=G.current;return c&&c!=="button"&&!(te.tagName==="A"&&te.href)},lr=O.useRef(!1),dr=pt(te=>{h&&!lr.current&&z&&ee.current&&te.key===" "&&(lr.current=!0,ee.current.stop(te,()=>{ee.current.start(te)})),te.target===te.currentTarget&&cr()&&te.key===" "&&te.preventDefault(),P&&P(te),te.target===te.currentTarget&&cr()&&te.key==="Enter"&&!d&&(te.preventDefault(),l&&l(te))}),Ea=pt(te=>{h&&te.key===" "&&ee.current&&z&&!te.defaultPrevented&&(lr.current=!1,ee.current.stop(te,()=>{ee.current.pulsate(te)})),_&&_(te),l&&te.target===te.currentTarget&&cr()&&te.key===" "&&!te.defaultPrevented&&l(te)});let Dt=c;Dt==="button"&&(q.href||q.to)&&(Dt=y);const dt={};Dt==="button"?(dt.type=V===void 0?"button":V,dt.disabled=d):(!q.href&&!q.to&&(dt.role="button"),d&&(dt["aria-disabled"]=d));const on=Ye(r,X,G);process.env.NODE_ENV!=="production"&&O.useEffect(()=>{W&&!ee.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
168
|
+
`))},[W]);const fr=C({},n,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:g,focusRipple:h,tabIndex:F,focusVisible:z}),Ta=Nh(fr);return M.jsxs(Mh,C({as:Dt,className:ne(Ta.root,u),ownerState:fr,onBlur:kt,onClick:l,onContextMenu:ye,onFocus:lt,onKeyDown:dr,onKeyUp:Ea,onMouseDown:J,onMouseLeave:ge,onMouseUp:be,onDragLeave:j,onTouchEnd:ze,onTouchMove:at,onTouchStart:Pe,ref:on,tabIndex:d?-1:F,type:V},dt,q,{children:[s,W?M.jsx(Ws,C({ref:Ae,center:i},k)):null]}))});process.env.NODE_ENV!=="production"&&(Wr.propTypes={action:th,centerRipple:a.bool,children:a.node,classes:a.object,className:a.string,component:Pn,disabled:a.bool,disableRipple:a.bool,disableTouchRipple:a.bool,focusRipple:a.bool,focusVisibleClassName:a.string,href:a.any,LinkComponent:a.elementType,onBlur:a.func,onClick:a.func,onContextMenu:a.func,onDragLeave:a.func,onFocus:a.func,onFocusVisible:a.func,onKeyDown:a.func,onKeyUp:a.func,onMouseDown:a.func,onMouseLeave:a.func,onMouseUp:a.func,onTouchEnd:a.func,onTouchMove:a.func,onTouchStart:a.func,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,TouchRippleProps:a.object,touchRippleRef:a.oneOfType([a.func,a.shape({current:a.shape({pulsate:a.func.isRequired,start:a.func.isRequired,stop:a.func.isRequired})})]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string])});const Us=Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function kh(e){return Ie("MuiListItemIcon",e)}const Gs=Oe("MuiListItemIcon",["root","alignItemsFlexStart"]),Dh=["className"],jh=e=>{const{alignItems:t,classes:r}=e;return ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},kh,r)},qh=ve("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>C({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ks=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItemIcon"}),{className:o}=n,i=ce(n,Dh),s=O.useContext(Qe),u=C({},n,{alignItems:s.alignItems}),c=jh(u);return M.jsx(qh,C({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(Ks.propTypes={children:a.node,classes:a.object,className:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Lh(e){return Ie("MuiTypography",e)}Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Fh=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bh=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e,u={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ke(u,Lh,s)},Vh=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${fe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>C({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Hs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zh={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wh=e=>zh[e]||e,et=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiTypography"}),o=Wh(n.color),i=Ts(C({},n,{color:o})),{align:s="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:h="body1",variantMapping:y=Hs}=i,v=ce(i,Fh),l=C({},i,{align:s,color:o,className:u,component:c,gutterBottom:d,noWrap:p,paragraph:g,variant:h,variantMapping:y}),b=c||(g?"p":y[h]||Hs[h])||"span",T=Bh(l);return M.jsx(Vh,C({as:b,ref:r,ownerState:l,className:ne(T.root,u)},v))});process.env.NODE_ENV!=="production"&&(et.propTypes={align:a.oneOf(["center","inherit","justify","left","right"]),children:a.node,classes:a.object,className:a.string,component:a.elementType,gutterBottom:a.bool,noWrap:a.bool,paragraph:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string]),variantMapping:a.object});function Uh(e){return Ie("MuiListItemText",e)}const Ur=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Gh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Kh=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return ke({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Uh,t)},Hh=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ur.primary}`]:t.primary},{[`& .${Ur.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>C({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),jn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:u=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:g}=n,h=ce(n,Gh),{dense:y}=O.useContext(Qe);let v=c??o,l=p;const b=C({},n,{disableTypography:s,inset:u,primary:!!v,secondary:!!l,dense:y}),T=Kh(b);return v!=null&&v.type!==et&&!s&&(v=M.jsx(et,C({variant:y?"body2":"body1",className:T.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:v}))),l!=null&&l.type!==et&&!s&&(l=M.jsx(et,C({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},g,{children:l}))),M.jsxs(Hh,C({className:ne(T.root,i),ownerState:b,ref:r},h,{children:[v,l]}))});process.env.NODE_ENV!=="production"&&(jn.propTypes={children:a.node,classes:a.object,className:a.string,disableTypography:a.bool,inset:a.bool,primary:a.node,primaryTypographyProps:a.object,secondary:a.node,secondaryTypographyProps:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Yh(e){return Ie("MuiMenuItem",e)}const rr=Oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jh=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Zh=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e,c=ke({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Yh,s);return C({},s,c)},Qh=ve(Wr,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Jh})(({theme:e,ownerState:t})=>C({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Us.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Us.inset}`]:{marginLeft:52},[`& .${Ur.root}`]:{marginTop:0,marginBottom:0},[`& .${Ur.inset}`]:{paddingLeft:36},[`& .${Gs.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&C({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gs.root} svg`]:{fontSize:"1.25rem"}}))),Ys=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:g,className:h}=n,y=ce(n,Xh),v=O.useContext(Qe),l=O.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),b=O.useRef(null);Pt(()=>{o&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const T=C({},n,{dense:l.dense,divider:u,disableGutters:c}),R=Zh(n),S=Ye(b,r);let P;return n.disabled||(P=g!==void 0?g:-1),M.jsx(Qe.Provider,{value:l,children:M.jsx(Qh,C({ref:S,role:p,tabIndex:P,component:i,focusVisibleClassName:ne(R.focusVisible,d),className:ne(R.root,h)},y,{ownerState:T,classes:R}))})});process.env.NODE_ENV!=="production"&&(Ys.propTypes={autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disabled:a.bool,disableGutters:a.bool,divider:a.bool,focusVisibleClassName:a.string,role:a.string,selected:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number});var nr={},qn={};function eg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Xs(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let u;const c=i.type;return typeof c=="function"&&!eg(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Gr=er(a.element,Xs);Gr.isRequired=er(a.element.isRequired,Xs);const tg="exact-prop: ";function Js(e){return process.env.NODE_ENV==="production"?e:C({},e,{[tg]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Zs(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Ln(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function rg(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function ng(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,s)=>{const u=o||"<<anonymous>>",c=s||n;return typeof r[n]<"u"?new Error(`The ${i} \`${c}\` of \`${u}\` is deprecated. ${t}`):null}}function Fn(e,t){var r,n;return O.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function ot(e){return e&&e.ownerDocument||document}function Kr(e){return ot(e).defaultView||window}function og(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?C({},t.propTypes):null;return o=>(i,s,u,c,d,...p)=>{const g=d||s,h=r==null?void 0:r[g];if(h){const y=h(i,s,u,c,d,...p);if(y)return y}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}let Qs=0;function ig(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(Qs+=1,r(`mui-${Qs}`))},[t]),n}const eu=O.useId;function tu(e){if(eu!==void 0){const t=eu();return e??t}return ig(e)}function ag(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function sg({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=O.useRef(e!==void 0),[i,s]=O.useState(t),u=o?e:i;if(process.env.NODE_ENV!=="production"){O.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
169
|
+
`))},[n,r,e]);const{current:d}=O.useRef(t);O.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
170
|
+
`))},[JSON.stringify(t)])}const c=O.useCallback(d=>{o||s(d)},[]);return[u,c]}function ug(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function cg(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function lg(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const dg=Number.isInteger||lg;function ru(e,t,r,n){const o=e[t];if(o==null||!dg(o)){const i=cg(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function nu(e,t,...r){return e[t]===void 0?null:ru(e,t,...r)}function Bn(){return null}nu.isRequired=ru,Bn.isRequired=Bn;const fg=process.env.NODE_ENV==="production"?Bn:nu;function Vn(e){return typeof e=="string"}function pg(e,t,r){return e===void 0||Vn(e)?t:C({},t,{ownerState:C({},t.ownerState,r)})}function ou(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function iu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function hg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const y=ne(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),v=C({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),l=C({},r,o,n);return y.length>0&&(l.className=y),Object.keys(v).length>0&&(l.style=v),{props:l,internalRef:void 0}}const s=ou(C({},o,n)),u=iu(n),c=iu(o),d=t(s),p=ne(d==null?void 0:d.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),g=C({},d==null?void 0:d.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=C({},d,r,c,u);return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:d.ref}}function gg(e,t,r){return typeof e=="function"?e(t,r):e}const mg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function au(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=ce(e,mg),u=i?{}:gg(n,o),{props:c,internalRef:d}=hg(C({},s,{externalSlotProps:u})),p=Ye(d,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return pg(r,C({},c,{ref:p}),o)}function zn(e){if(parseInt(O.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}function vg(e){return Ie("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(r)}`]};return ke(o,vg,n)},_g=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${fe(r.color)}`],t[`fontSize${fe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,u,c,d,p,g,h,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?g:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Hr=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:u="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:h="0 0 24 24"}=n,y=ce(n,yg),v=O.isValidElement(o)&&o.type==="svg",l=C({},n,{color:s,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:v}),b={};p||(b.viewBox=h);const T=bg(l);return M.jsxs(_g,C({as:u,className:ne(T.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r},b,y,v&&o.props,{ownerState:l,children:[v?o.props.children:o,g?M.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(Hr.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),a.string]),component:a.elementType,fontSize:a.oneOfType([a.oneOf(["inherit","large","medium","small"]),a.string]),htmlColor:a.string,inheritViewBox:a.bool,shapeRendering:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),titleAccess:a.string,viewBox:a.string}),Hr.muiName="SvgIcon";function xg(e,t){function r(n,o){return M.jsx(Hr,C({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Hr.muiName,O.memo(O.forwardRef(r))}const Eg=tt(Object.freeze(Object.defineProperty({__proto__:null,capitalize:fe,createChainedFunction:Ln,createSvgIcon:xg,debounce:rg,deprecatedPropType:ng,isMuiElement:Fn,ownerDocument:ot,ownerWindow:Kr,requirePropFactory:og,setRef:Lr,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
171
|
+
`)),Ss.configure(e)}},unstable_useEnhancedEffect:Pt,unstable_useId:tu,unsupportedProp:ag,useControlled:sg,useEventCallback:pt,useForkRef:Ye,useIsFocusVisible:$n},Symbol.toStringTag,{value:"Module"})));var su;function Tg(){return su||(su=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Eg}(qn)),qn}var uu;function Rg(){if(uu)return nr;uu=1;var e=un();Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var t=e(Tg()),r=os();return nr.default=(0,t.default)((0,r.jsx)("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),nr}var Cg=Rg();const Sg=gr(Cg),cu={de:{"mirador-dl-plugin":{close:"Schließen",download:"Download",other_download:"Andere Download-Optionen",whole_image:"Gesamtes Bild ({{width}} x {{height}}px)",zoomed_region:"Aktueller Bildausschnitt ({{width}} x {{height}}px)"}},en:{"mirador-dl-plugin":{close:"Close",download:"Download",other_download:"Other download options",whole_image:"Whole image ({{width}} x {{height}}px)",zoomed_region:"Zoomed region ({{width}} x {{height}}px)"}},et:{"mirador-dl-plugin":{close:"Sulge",download:"Lae alla",other_download:"Teised allalaadimise valikud",whole_image:"Kogu pilt ({{width}} x {{height}}px)",zoomed_region:"Suurendatud piirkond ({{width}} x {{height}}px)"}},fr:{"mirador-dl-plugin":{close:"Fermer",download:"Télécharger",other_download:"Autres options de téléchargement",whole_image:"Image entière ({{width}} x {{height}}px)",zoomed_region:"Région zoomée ({{width}} x {{height}}px)"}}},Og=(e={},t)=>t.type==="OPEN_WINDOW_DIALOG"?{...e,[t.windowId]:{openDialog:t.dialogType}}:t.type==="CLOSE_WINDOW_DIALOG"?{...e,[t.windowId]:{openDialog:null}}:e,Pg=(e,{windowId:t})=>({openDownloadDialog:()=>e({type:"OPEN_WINDOW_DIALOG",windowId:t,dialogType:"download"})});function lu({handleClose:e=()=>{},openDownloadDialog:t=()=>{}}){const r=de.useCallback(()=>{t(),e()},[e,t]),{t:n}=He.useTranslation();return M.jsxs(Ys,{onClick:r,children:[M.jsx(Ks,{children:M.jsx(Sg,{})}),M.jsx(jn,{primaryTypographyProps:{variant:"body1"},children:n("mirador-dl-plugin.download")})]})}lu.propTypes={handleClose:a.func,openDownloadDialog:a.func};const du={target:"WindowTopBarPluginMenu",mode:"add",name:"MiradorDownloadPlugin",component:lu,config:{translations:cu},mapDispatchToProps:Pg,reducers:{windowDialogs:Og}};function wg(e){const t=ot(e);return t.body===e?Kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function or(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fu(e){return parseInt(Kr(e).getComputedStyle(e).paddingRight,10)||0}function Ig(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function pu(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,s=>{const u=i.indexOf(s)===-1,c=!Ig(s);u&&c&&or(s,o)})}function Wn(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function $g(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(wg(n)){const s=ug(ot(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${fu(n)+s}px`;const u=ot(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${fu(c)+s}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=ot(n).body;else{const s=n.parentElement,u=Kr(n);i=(s==null?void 0:s.nodeName)==="HTML"&&u.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:s,property:u})=>{i?s.style.setProperty(u,i):s.style.removeProperty(u)})}}function Ag(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ng{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&or(t.modalRef,!1);const o=Ag(r);pu(r,t.mount,t.modalRef,o,!0);const i=Wn(this.containers,s=>s.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Wn(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=$g(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Wn(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&or(t.modalRef,r),pu(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&or(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Mg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kg(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Dg(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function jg(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Dg(e))}function qg(e){const t=[],r=[];return Array.from(e.querySelectorAll(Mg)).forEach((n,o)=>{const i=kg(n);i===-1||!jg(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function Lg(){return!0}function Yr(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=qg,isEnabled:s=Lg,open:u}=e,c=O.useRef(!1),d=O.useRef(null),p=O.useRef(null),g=O.useRef(null),h=O.useRef(null),y=O.useRef(!1),v=O.useRef(null),l=Ye(zn(t),v),b=O.useRef(null);O.useEffect(()=>{!u||!v.current||(y.current=!r)},[r,u]),O.useEffect(()=>{if(!u||!v.current)return;const S=ot(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
172
|
+
`)),v.current.setAttribute("tabIndex","-1")),y.current&&v.current.focus()),()=>{o||(g.current&&g.current.focus&&(c.current=!0,g.current.focus()),g.current=null)}},[u]),O.useEffect(()=>{if(!u||!v.current)return;const S=ot(v.current),P=f=>{b.current=f,!(n||!s()||f.key!=="Tab")&&S.activeElement===v.current&&f.shiftKey&&(c.current=!0,p.current&&p.current.focus())},_=()=>{const f=v.current;if(f===null)return;if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(f.contains(S.activeElement)||n&&S.activeElement!==d.current&&S.activeElement!==p.current)return;if(S.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let E=[];if((S.activeElement===d.current||S.activeElement===p.current)&&(E=i(v.current)),E.length>0){var x,w;const $=!!((x=b.current)!=null&&x.shiftKey&&((w=b.current)==null?void 0:w.key)==="Tab"),F=E[0],k=E[E.length-1];typeof F!="string"&&typeof k!="string"&&($?k.focus():F.focus())}else f.focus()};S.addEventListener("focusin",_),S.addEventListener("keydown",P,!0);const N=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(N),S.removeEventListener("focusin",_),S.removeEventListener("keydown",P,!0)}},[r,n,o,s,u,i]);const T=S=>{g.current===null&&(g.current=S.relatedTarget),y.current=!0,h.current=S.target;const P=t.props.onFocus;P&&P(S)},R=S=>{g.current===null&&(g.current=S.relatedTarget),y.current=!0};return M.jsxs(O.Fragment,{children:[M.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:d,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:l,onFocus:T}),M.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Yr.propTypes={children:Gr,disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableRestoreFocus:a.bool,getTabbable:a.func,isEnabled:a.func,open:a.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Yr.propTypes=Js(Yr.propTypes));function Fg(e){return typeof e=="function"?e():e}const Xr=O.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[s,u]=O.useState(null),c=Ye(O.isValidElement(n)?zn(n):null,r);if(Pt(()=>{i||u(Fg(o)||document.body)},[o,i]),Pt(()=>{if(s&&!i)return Lr(r,s),()=>{Lr(r,null)}},[r,s,i]),i){if(O.isValidElement(n)){const d={ref:c};return O.cloneElement(n,d)}return M.jsx(O.Fragment,{children:n})}return M.jsx(O.Fragment,{children:s&&bd.createPortal(n,s)})});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:a.node,container:a.oneOfType([Zs,a.func]),disablePortal:a.bool}),process.env.NODE_ENV!=="production"&&(Xr.propTypes=Js(Xr.propTypes));function Un(){const e=yt.useTheme(Ns);return process.env.NODE_ENV!=="production"&&O.useDebugValue(e),e[Ms]||e}const Bg=e=>e.scrollTop;function hu(e,t){var r,n;const{timeout:o,easing:i,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const Vg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zg={entering:{opacity:1},entered:{opacity:1}},Gn=O.forwardRef(function(t,r){const n=Un(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,easing:c,in:d,onEnter:p,onEntered:g,onEntering:h,onExit:y,onExited:v,onExiting:l,style:b,timeout:T=o,TransitionComponent:R=nt}=t,S=ce(t,Vg),P=O.useRef(null),_=Ye(P,zn(u),r),N=L=>V=>{if(L){const q=P.current;V===void 0?L(q):L(q,V)}},f=N(h),E=N((L,V)=>{Bg(L);const q=hu({style:b,timeout:T,easing:c},{mode:"enter"});L.style.webkitTransition=n.transitions.create("opacity",q),L.style.transition=n.transitions.create("opacity",q),p&&p(L,V)}),x=N(g),w=N(l),$=N(L=>{const V=hu({style:b,timeout:T,easing:c},{mode:"exit"});L.style.webkitTransition=n.transitions.create("opacity",V),L.style.transition=n.transitions.create("opacity",V),y&&y(L)}),F=N(v),k=L=>{i&&i(P.current,L)};return M.jsx(R,C({appear:s,in:d,nodeRef:P,onEnter:E,onEntered:x,onEntering:f,onExit:$,onExited:F,onExiting:w,addEndListener:k,timeout:T},S,{children:(L,V)=>O.cloneElement(u,C({style:C({opacity:0,visibility:L==="exited"&&!d?"hidden":void 0},zg[L],b,u.props.style),ref:_},V))}))});process.env.NODE_ENV!=="production"&&(Gn.propTypes={addEndListener:a.func,appear:a.bool,children:Gr.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function Wg(e){return Ie("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const Ug=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gg=e=>{const{classes:t,invisible:r}=e;return ke({root:["root",r&&"invisible"]},Wg,t)},Kg=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>C({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"},e.invisible&&{backgroundColor:"transparent"})),Kn=O.forwardRef(function(t,r){var n,o,i;const s=Ne({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:d="div",components:p={},componentsProps:g={},invisible:h=!1,open:y,slotProps:v={},slots:l={},TransitionComponent:b=Gn,transitionDuration:T}=s,R=ce(s,Ug),S=C({},s,{component:d,invisible:h}),P=Gg(S),_=(n=v.root)!=null?n:g.root;return M.jsx(b,C({in:y,timeout:T},R,{children:M.jsx(Kg,C({"aria-hidden":!0},_,{as:(o=(i=l.root)!=null?i:p.Root)!=null?o:d,className:ne(P.root,c,_==null?void 0:_.className),ownerState:C({},S,_==null?void 0:_.ownerState),classes:P,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(Kn.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),invisible:a.bool,open:a.bool.isRequired,slotProps:a.shape({root:a.object}),slots:a.shape({root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function Hg(e){return typeof e=="function"?e():e}function Yg(e){return e?e.props.hasOwnProperty("in"):!1}const Xg=new Ng;function Jg(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Xg,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:u,children:c,onClose:d,open:p,rootRef:g}=e,h=O.useRef({}),y=O.useRef(null),v=O.useRef(null),l=Ye(v,g),[b,T]=O.useState(!p),R=Yg(c);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const P=()=>ot(y.current),_=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),N=()=>{o.mount(_(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},f=pt(()=>{const q=Hg(t)||P().body;o.add(_(),q),v.current&&N()}),E=O.useCallback(()=>o.isTopModal(_()),[o]),x=pt(q=>{y.current=q,q&&(p&&E()?N():v.current&&or(v.current,S))}),w=O.useCallback(()=>{o.remove(_(),S)},[S,o]);O.useEffect(()=>()=>{w()},[w]),O.useEffect(()=>{p?f():(!R||!i)&&w()},[p,w,R,i,f]);const $=q=>G=>{var ee;(ee=q.onKeyDown)==null||ee.call(q,G),!(G.key!=="Escape"||G.which===229||!E())&&(r||(G.stopPropagation(),d&&d(G,"escapeKeyDown")))},F=q=>G=>{var ee;(ee=q.onClick)==null||ee.call(q,G),G.target===G.currentTarget&&d&&d(G,"backdropClick")};return{getRootProps:(q={})=>{const G=ou(e);delete G.onTransitionEnter,delete G.onTransitionExited;const ee=C({},G,q);return C({role:"presentation"},ee,{onKeyDown:$(ee),ref:l})},getBackdropProps:(q={})=>{const G=q;return C({"aria-hidden":!0},G,{onClick:F(G),open:p})},getTransitionProps:()=>{const q=()=>{T(!1),s&&s()},G=()=>{T(!0),u&&u(),i&&w()};return{onEnter:Ln(q,c==null?void 0:c.props.onEnter),onExited:Ln(G,c==null?void 0:c.props.onExited)}},rootRef:l,portalRef:x,isTopModal:E,exited:b,hasTransition:R}}function Zg(e){return Ie("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const Qg=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],em=e=>{const{open:t,exited:r,classes:n}=e;return ke({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Zg,n)},tm=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),rm=ve(Kn,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gu=O.forwardRef(function(t,r){var n,o,i,s,u,c;const d=Ne({name:"MuiModal",props:t}),{BackdropComponent:p=rm,BackdropProps:g,className:h,closeAfterTransition:y=!1,children:v,container:l,component:b,components:T={},componentsProps:R={},disableAutoFocus:S=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:_=!1,disablePortal:N=!1,disableRestoreFocus:f=!1,disableScrollLock:E=!1,hideBackdrop:x=!1,keepMounted:w=!1,onBackdropClick:$,open:F,slotProps:k,slots:L}=d,V=ce(d,Qg),q=C({},d,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:P,disableEscapeKeyDown:_,disablePortal:N,disableRestoreFocus:f,disableScrollLock:E,hideBackdrop:x,keepMounted:w}),{getRootProps:G,getBackdropProps:ee,getTransitionProps:Ae,portalRef:I,isTopModal:D,exited:Q,hasTransition:X}=Jg(C({},q,{rootRef:r})),z=C({},q,{exited:Q}),H=em(z),K={};if(v.props.tabIndex===void 0&&(K.tabIndex="-1"),X){const{onEnter:be,onExited:ge}=Ae();K.onEnter=be,K.onExited=ge}const Y=(n=(o=L==null?void 0:L.root)!=null?o:T.Root)!=null?n:tm,W=(i=(s=L==null?void 0:L.backdrop)!=null?s:T.Backdrop)!=null?i:p,U=(u=k==null?void 0:k.root)!=null?u:R.root,J=(c=k==null?void 0:k.backdrop)!=null?c:R.backdrop,ye=au({elementType:Y,externalSlotProps:U,externalForwardedProps:V,getSlotProps:G,additionalProps:{ref:r,as:b},ownerState:z,className:ne(h,U==null?void 0:U.className,H==null?void 0:H.root,!z.open&&z.exited&&(H==null?void 0:H.hidden))}),j=au({elementType:W,externalSlotProps:J,additionalProps:g,getSlotProps:be=>ee(C({},be,{onClick:ge=>{$&&$(ge),be!=null&&be.onClick&&be.onClick(ge)}})),className:ne(J==null?void 0:J.className,g==null?void 0:g.className,H==null?void 0:H.backdrop),ownerState:z});return!w&&!F&&(!X||Q)?null:M.jsx(Xr,{ref:I,container:l,disablePortal:N,children:M.jsxs(Y,C({},ye,{children:[!x&&p?M.jsx(W,C({},j)):null,M.jsx(Yr,{disableEnforceFocus:P,disableAutoFocus:S,disableRestoreFocus:f,isEnabled:D,open:F,children:O.cloneElement(v,K)})]}))})});process.env.NODE_ENV!=="production"&&(gu.propTypes={BackdropComponent:a.elementType,BackdropProps:a.object,children:Gr.isRequired,classes:a.object,className:a.string,closeAfterTransition:a.bool,component:a.elementType,components:a.shape({Backdrop:a.elementType,Root:a.elementType}),componentsProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),container:a.oneOfType([Zs,a.func]),disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableEscapeKeyDown:a.bool,disablePortal:a.bool,disableRestoreFocus:a.bool,disableScrollLock:a.bool,hideBackdrop:a.bool,keepMounted:a.bool,onBackdropClick:a.func,onClose:a.func,onTransitionEnter:a.func,onTransitionExited:a.func,open:a.bool.isRequired,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const mu=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function nm(e){return Ie("MuiPaper",e)}Oe("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 om=["className","component","elevation","square","variant"],im=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ke(i,nm,o)},am=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return C({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&C({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${$e.alpha("#fff",mu(t.elevation))}, ${$e.alpha("#fff",mu(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Hn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:u=!1,variant:c="elevation"}=n,d=ce(n,om),p=C({},n,{component:i,elevation:s,square:u,variant:c}),g=im(p);return process.env.NODE_ENV!=="production"&&Un().shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
173
|
+
`)),M.jsx(am,C({as:i,ownerState:p,className:ne(g.root,o),ref:r},d))});process.env.NODE_ENV!=="production"&&(Hn.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,elevation:er(fg,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["elevation","outlined"]),a.string])});function sm(e){return Ie("MuiDialog",e)}const Yn=Oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Xn=O.createContext({});process.env.NODE_ENV!=="production"&&(Xn.displayName="DialogContext");const um=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],cm=ve(Kn,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),lm=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(r)}`],paper:["paper",`paperScroll${fe(r)}`,`paperWidth${fe(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ke(s,sm,t)},dm=ve(gu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),fm=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${fe(r.scroll)}`]]}})(({ownerState:e})=>C({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),pm=ve(Hn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${fe(r.scroll)}`],t[`paperWidth${fe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>C({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Yn.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Yn.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Yn.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),vu=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiDialog"}),o=Un(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":u,BackdropComponent:c,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:h=!1,fullScreen:y=!1,fullWidth:v=!1,maxWidth:l="sm",onBackdropClick:b,onClick:T,onClose:R,open:S,PaperComponent:P=Hn,PaperProps:_={},scroll:N="paper",TransitionComponent:f=Gn,transitionDuration:E=i,TransitionProps:x}=n,w=ce(n,um),$=C({},n,{disableEscapeKeyDown:h,fullScreen:y,fullWidth:v,maxWidth:l,scroll:N}),F=lm($),k=O.useRef(),L=ee=>{k.current=ee.target===ee.currentTarget},V=ee=>{T&&T(ee),k.current&&(k.current=null,b&&b(ee),R&&R(ee,"backdropClick"))},q=tu(u),G=O.useMemo(()=>({titleId:q}),[q]);return M.jsx(dm,C({className:ne(F.root,g),closeAfterTransition:!0,components:{Backdrop:cm},componentsProps:{backdrop:C({transitionDuration:E,as:c},d)},disableEscapeKeyDown:h,onClose:R,open:S,ref:r,onClick:V,ownerState:$},w,{children:M.jsx(f,C({appear:!0,in:S,timeout:E,role:"presentation"},x,{children:M.jsx(fm,{className:ne(F.container),onMouseDown:L,ownerState:$,children:M.jsx(pm,C({as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":q},_,{className:ne(F.paper,_.className),ownerState:$,children:M.jsx(Xn.Provider,{value:G,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(vu.propTypes={"aria-describedby":a.string,"aria-labelledby":a.string,BackdropComponent:a.elementType,BackdropProps:a.object,children:a.node,classes:a.object,className:a.string,disableEscapeKeyDown:a.bool,fullScreen:a.bool,fullWidth:a.bool,maxWidth:a.oneOfType([a.oneOf(["xs","sm","md","lg","xl",!1]),a.string]),onBackdropClick:a.func,onClick:a.func,onClose:a.func,open:a.bool.isRequired,PaperComponent:a.elementType,PaperProps:a.object,scroll:a.oneOf(["body","paper"]),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function hm(e){return Ie("MuiDialogTitle",e)}Oe("MuiDialogTitle",["root"]);const gm=["className","id"],mm=e=>{const{classes:t}=e;return ke({root:["root"]},hm,t)},vm=ve(et,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),yu=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=n,s=ce(n,gm),u=n,c=mm(u),{titleId:d=i}=O.useContext(Xn);return M.jsx(vm,C({component:"h2",className:ne(c.root,o),ownerState:u,ref:r,variant:"h6",id:i??d},s))});process.env.NODE_ENV!=="production"&&(yu.propTypes={children:a.node,classes:a.object,className:a.string,id:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function ym(e){return Ie("MuiDialogActions",e)}Oe("MuiDialogActions",["root","spacing"]);const bm=["className","disableSpacing"],_m=e=>{const{classes:t,disableSpacing:r}=e;return ke({root:["root",!r&&"spacing"]},ym,t)},xm=ve("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>C({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),bu=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=n,s=ce(n,bm),u=C({},n,{disableSpacing:i}),c=_m(u);return M.jsx(xm,C({className:ne(c.root,o),ownerState:u,ref:r},s))});process.env.NODE_ENV!=="production"&&(bu.propTypes={children:a.node,classes:a.object,className:a.string,disableSpacing:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Em(e){return Ie("MuiButton",e)}const Jr=Oe("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"]),_u=O.createContext({});process.env.NODE_ENV!=="production"&&(_u.displayName="ButtonGroupContext");const xu=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(xu.displayName="ButtonGroupButtonContext");const Tm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rm=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:s}=e,u={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,`color${fe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fe(o)}`],endIcon:["icon","endIcon",`iconSize${fe(o)}`]},c=ke(u,Em,s);return C({},s,c)},Eu=e=>C({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Cm=ve(Wr,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${fe(r.color)}`],t[`size${fe(r.size)}`],t[`${r.variant}Size${fe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return C({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:$e.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$e.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$e.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jr.focusVisible}`]:C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jr.disabled}`]:C({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${$e.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jr.disabled}`]:{boxShadow:"none"}}),Sm=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Eu(e))),Om=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Eu(e))),Tu=O.forwardRef(function(t,r){const n=O.useContext(_u),o=O.useContext(xu),i=qr(n,t),s=Ne({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:d="button",className:p,disabled:g=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:l,fullWidth:b=!1,size:T="medium",startIcon:R,type:S,variant:P="text"}=s,_=ce(s,Tm),N=C({},s,{color:c,component:d,disabled:g,disableElevation:h,disableFocusRipple:y,fullWidth:b,size:T,type:S,variant:P}),f=Rm(N),E=R&&M.jsx(Sm,{className:f.startIcon,ownerState:N,children:R}),x=v&&M.jsx(Om,{className:f.endIcon,ownerState:N,children:v}),w=o||"";return M.jsxs(Cm,C({ownerState:N,className:ne(n.className,f.root,p,w),component:d,disabled:g,focusRipple:!y,focusVisibleClassName:ne(f.focusVisible,l),ref:r,type:S},_,{classes:f,children:[E,u,x]}))});process.env.NODE_ENV!=="production"&&(Tu.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","primary","secondary","success","error","info","warning"]),a.string]),component:a.elementType,disabled:a.bool,disableElevation:a.bool,disableFocusRipple:a.bool,disableRipple:a.bool,endIcon:a.node,focusVisibleClassName:a.string,fullWidth:a.bool,href:a.string,size:a.oneOfType([a.oneOf(["small","medium","large"]),a.string]),startIcon:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string]),variant:a.oneOfType([a.oneOf(["contained","outlined","text"]),a.string])});function Pm(e){return Ie("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const wm=["children","className","component","dense","disablePadding","subheader"],Im=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ke({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Pm,t)},$m=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Jn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:u=!1,disablePadding:c=!1,subheader:d}=n,p=ce(n,wm),g=O.useMemo(()=>({dense:u}),[u]),h=C({},n,{component:s,dense:u,disablePadding:c}),y=Im(h);return M.jsx(Qe.Provider,{value:g,children:M.jsxs($m,C({as:s,className:ne(y.root,i),ref:r,ownerState:h},p,{children:[d,o]}))})});process.env.NODE_ENV!=="production"&&(Jn.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disablePadding:a.bool,subheader:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Am(e){return Ie("MuiLink",e)}const Nm=Oe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Ru={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mm=e=>Ru[e]||e,km=({theme:e,ownerState:t})=>{const r=Mm(t.color),n=yt.getPath(e,`palette.${r}`,!1)||t.color,o=yt.getPath(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:$e.alpha(n,.4)},Dm=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],jm=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root",`underline${fe(o)}`,r==="button"&&"button",n&&"focusVisible"]};return ke(i,Am,t)},qm=ve(et,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${fe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>C({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&C({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:km({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Nm.focusVisible}`]:{outline:"auto"}})),$t=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:u,onFocus:c,TypographyClasses:d,underline:p="always",variant:g="inherit",sx:h}=n,y=ce(n,Dm),{isFocusVisibleRef:v,onBlur:l,onFocus:b,ref:T}=$n(),[R,S]=O.useState(!1),P=Ye(r,T),_=x=>{l(x),v.current===!1&&S(!1),u&&u(x)},N=x=>{b(x),v.current===!0&&S(!0),c&&c(x)},f=C({},n,{color:i,component:s,focusVisible:R,underline:p,variant:g}),E=jm(f);return M.jsx(qm,C({color:i,className:ne(E.root,o),classes:d,component:s,onBlur:_,onFocus:N,ref:P,ownerState:f,variant:g,sx:[...Object.keys(Ru).includes(i)?[]:[{color:i}],...Array.isArray(h)?h:[h]]},y))});process.env.NODE_ENV!=="production"&&($t.propTypes={children:a.node,classes:a.object,className:a.string,color:a.any,component:Pn,onBlur:a.func,onFocus:a.func,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TypographyClasses:a.object,underline:a.oneOf(["always","hover","none"]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string])});function Lm(e){return Ie("MuiListItem",e)}const At=Oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Fm=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Bm(e){return Ie("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const Vm=["className"],zm=e=>{const{disableGutters:t,classes:r}=e;return ke({root:["root",t&&"disableGutters"]},Bm,r)},Wm=ve("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>C({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Zn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,i=ce(n,Vm),s=O.useContext(Qe),u=C({},n,{disableGutters:s.disableGutters}),c=zm(u);return M.jsx(Wm,C({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(Zn.propTypes={children:a.node,classes:a.object,className:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])}),Zn.muiName="ListItemSecondaryAction";const Um=["className"],Gm=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Km=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Hm=e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:s,disablePadding:u,divider:c,hasSecondaryAction:d,selected:p}=e;return ke({root:["root",o&&"dense",!s&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},Lm,n)},Ym=ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:Km})(({theme:e,ownerState:t})=>C({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&C({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Fm.root}`]:{paddingRight:48}},{[`&.${At.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${At.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${At.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${At.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${At.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Xm=ve("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nt=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:u,className:c,component:d,components:p={},componentsProps:g={},ContainerComponent:h="li",ContainerProps:{className:y}={},dense:v=!1,disabled:l=!1,disableGutters:b=!1,disablePadding:T=!1,divider:R=!1,focusVisibleClassName:S,secondaryAction:P,selected:_=!1,slotProps:N={},slots:f={}}=n,E=ce(n.ContainerProps,Um),x=ce(n,Gm),w=O.useContext(Qe),$=O.useMemo(()=>({dense:v||w.dense||!1,alignItems:o,disableGutters:b}),[o,w.dense,v,b]),F=O.useRef(null);Pt(()=>{i&&(F.current?F.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))},[i]);const k=O.Children.toArray(u),L=k.length&&Fn(k[k.length-1],["ListItemSecondaryAction"]),V=C({},n,{alignItems:o,autoFocus:i,button:s,dense:$.dense,disabled:l,disableGutters:b,disablePadding:T,divider:R,hasSecondaryAction:L,selected:_}),q=Hm(V),G=Ye(F,r),ee=f.root||p.Root||Ym,Ae=N.root||g.root||{},I=C({className:ne(q.root,Ae.className,c),disabled:l},x);let D=d||"li";return s&&(I.component=d||"div",I.focusVisibleClassName=ne(At.focusVisible,S),D=Wr),L?(D=!I.component&&!d?"div":D,h==="li"&&(D==="li"?D="div":I.component==="li"&&(I.component="div")),M.jsx(Qe.Provider,{value:$,children:M.jsxs(Xm,C({as:h,className:ne(q.container,y),ref:G,ownerState:V},E,{children:[M.jsx(ee,C({},Ae,!Vn(ee)&&{as:D,ownerState:C({},V,Ae.ownerState)},I,{children:k})),k.pop()]}))})):M.jsx(Qe.Provider,{value:$,children:M.jsxs(ee,C({},Ae,{as:D,ref:G},!Vn(ee)&&{ownerState:C({},V,Ae.ownerState)},I,{children:[k,P&&M.jsx(Zn,{children:P})]}))})});process.env.NODE_ENV!=="production"&&(Nt.propTypes={alignItems:a.oneOf(["center","flex-start"]),autoFocus:a.bool,button:a.bool,children:er(a.node,e=>{const t=O.Children.toArray(e.children);let r=-1;for(let n=t.length-1;n>=0;n-=1){const o=t[n];if(Fn(o,["ListItemSecondaryAction"])){r=n;break}}return r!==-1&&r!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),ContainerComponent:Pn,ContainerProps:a.object,dense:a.bool,disabled:a.bool,disableGutters:a.bool,disablePadding:a.bool,divider:a.bool,focusVisibleClassName:a.string,secondaryAction:a.node,selected:a.bool,slotProps:a.shape({root:a.object}),slots:a.shape({root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});class Qn extends de.Component{render(){const{rendering:t}=this.props;return M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsxs(jn,{primaryTypographyProps:{variant:"body1"},children:[M.jsx($t,{href:t.id,download:!0,rel:"noopener noreferrer",target:"_blank",variant:"body1",children:t.getLabel().getValue()}),t.getFormat()&&t.getFormat().value&&` (${t.getFormat().value})`]})},t.id)}}Qn.propTypes={rendering:a.shape({id:a.string.isRequired,getLabel:a.func.isRequired,getFormat:a.func.isRequired}).isRequired};function Cu({renderings:e}){const{t}=He.useTranslation();return M.jsxs(M.Fragment,{children:[M.jsx(et,{variant:"h3",sx:{marginTop:"20px"},children:t("mirador-dl-plugin.other_download")}),M.jsx(Jn,{children:e.map(r=>M.jsx(Qn,{rendering:r},r.id))})]})}Cu.propTypes={renderings:a.array.isRequired};var eo,Su;function Jm(){if(Su)return eo;Su=1;function e(){this.__data__=[],this.size=0}return eo=e,eo}var to,Ou;function Pu(){if(Ou)return to;Ou=1;function e(t,r){return t===r||t!==t&&r!==r}return to=e,to}var ro,wu;function Zr(){if(wu)return ro;wu=1;var e=Pu();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return ro=t,ro}var no,Iu;function Zm(){if(Iu)return no;Iu=1;var e=Zr(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var u=i.length-1;return s==u?i.pop():r.call(i,s,1),--this.size,!0}return no=n,no}var oo,$u;function Qm(){if($u)return oo;$u=1;var e=Zr();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return oo=t,oo}var io,Au;function ev(){if(Au)return io;Au=1;var e=Zr();function t(r){return e(this.__data__,r)>-1}return io=t,io}var ao,Nu;function tv(){if(Nu)return ao;Nu=1;var e=Zr();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return ao=t,ao}var so,Mu;function Qr(){if(Mu)return so;Mu=1;var e=Jm(),t=Zm(),r=Qm(),n=ev(),o=tv();function i(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var d=s[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,so=i,so}var uo,ku;function rv(){if(ku)return uo;ku=1;var e=Qr();function t(){this.__data__=new e,this.size=0}return uo=t,uo}var co,Du;function nv(){if(Du)return co;Du=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return co=e,co}var lo,ju;function ov(){if(ju)return lo;ju=1;function e(t){return this.__data__.get(t)}return lo=e,lo}var fo,qu;function iv(){if(qu)return fo;qu=1;function e(t){return this.__data__.has(t)}return fo=e,fo}var po,Lu;function Fu(){if(Lu)return po;Lu=1;var e=typeof hr=="object"&&hr&&hr.Object===Object&&hr;return po=e,po}var ho,Bu;function it(){if(Bu)return ho;Bu=1;var e=Fu(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ho=r,ho}var go,Vu;function en(){if(Vu)return go;Vu=1;var e=it(),t=e.Symbol;return go=t,go}var mo,zu;function av(){if(zu)return mo;zu=1;var e=en(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(s){var u=r.call(s,o),c=s[o];try{s[o]=void 0;var d=!0}catch{}var p=n.call(s);return d&&(u?s[o]=c:delete s[o]),p}return mo=i,mo}var vo,Wu;function sv(){if(Wu)return vo;Wu=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return vo=r,vo}var yo,Uu;function ir(){if(Uu)return yo;Uu=1;var e=en(),t=av(),r=sv(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?o:n:i&&i in Object(u)?t(u):r(u)}return yo=s,yo}var bo,Gu;function _o(){if(Gu)return bo;Gu=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return bo=e,bo}var xo,Ku;function Hu(){if(Ku)return xo;Ku=1;var e=ir(),t=_o(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function s(u){if(!t(u))return!1;var c=e(u);return c==n||c==o||c==r||c==i}return xo=s,xo}var Eo,Yu;function uv(){if(Yu)return Eo;Yu=1;var e=it(),t=e["__core-js_shared__"];return Eo=t,Eo}var To,Xu;function cv(){if(Xu)return To;Xu=1;var e=uv(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return To=r,To}var Ro,Ju;function Zu(){if(Ju)return Ro;Ju=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ro=r,Ro}var Co,Qu;function lv(){if(Qu)return Co;Qu=1;var e=Hu(),t=cv(),r=_o(),n=Zu(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(h){if(!r(h)||t(h))return!1;var y=e(h)?p:i;return y.test(n(h))}return Co=g,Co}var So,ec;function dv(){if(ec)return So;ec=1;function e(t,r){return t==null?void 0:t[r]}return So=e,So}var Oo,tc;function Mt(){if(tc)return Oo;tc=1;var e=lv(),t=dv();function r(n,o){var i=t(n,o);return e(i)?i:void 0}return Oo=r,Oo}var Po,rc;function wo(){if(rc)return Po;rc=1;var e=Mt(),t=it(),r=e(t,"Map");return Po=r,Po}var Io,nc;function tn(){if(nc)return Io;nc=1;var e=Mt(),t=e(Object,"create");return Io=t,Io}var $o,oc;function fv(){if(oc)return $o;oc=1;var e=tn();function t(){this.__data__=e?e(null):{},this.size=0}return $o=t,$o}var Ao,ic;function pv(){if(ic)return Ao;ic=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ao=e,Ao}var No,ac;function hv(){if(ac)return No;ac=1;var e=tn(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(i){var s=this.__data__;if(e){var u=s[i];return u===t?void 0:u}return n.call(s,i)?s[i]:void 0}return No=o,No}var Mo,sc;function gv(){if(sc)return Mo;sc=1;var e=tn(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var i=this.__data__;return e?i[o]!==void 0:r.call(i,o)}return Mo=n,Mo}var ko,uc;function mv(){if(uc)return ko;uc=1;var e=tn(),t="__lodash_hash_undefined__";function r(n,o){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&o===void 0?t:o,this}return ko=r,ko}var Do,cc;function vv(){if(cc)return Do;cc=1;var e=fv(),t=pv(),r=hv(),n=gv(),o=mv();function i(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var d=s[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Do=i,Do}var jo,lc;function yv(){if(lc)return jo;lc=1;var e=vv(),t=Qr(),r=wo();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return jo=n,jo}var qo,dc;function bv(){if(dc)return qo;dc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return qo=e,qo}var Lo,fc;function rn(){if(fc)return Lo;fc=1;var e=bv();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return Lo=t,Lo}var Fo,pc;function _v(){if(pc)return Fo;pc=1;var e=rn();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Fo=t,Fo}var Bo,hc;function xv(){if(hc)return Bo;hc=1;var e=rn();function t(r){return e(this,r).get(r)}return Bo=t,Bo}var Vo,gc;function Ev(){if(gc)return Vo;gc=1;var e=rn();function t(r){return e(this,r).has(r)}return Vo=t,Vo}var zo,mc;function Tv(){if(mc)return zo;mc=1;var e=rn();function t(r,n){var o=e(this,r),i=o.size;return o.set(r,n),this.size+=o.size==i?0:1,this}return zo=t,zo}var Wo,vc;function Uo(){if(vc)return Wo;vc=1;var e=yv(),t=_v(),r=xv(),n=Ev(),o=Tv();function i(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var d=s[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Wo=i,Wo}var Go,yc;function Rv(){if(yc)return Go;yc=1;var e=Qr(),t=wo(),r=Uo(),n=200;function o(i,s){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([i,s]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(i,s),this.size=u.size,this}return Go=o,Go}var Ko,bc;function _c(){if(bc)return Ko;bc=1;var e=Qr(),t=rv(),r=nv(),n=ov(),o=iv(),i=Rv();function s(u){var c=this.__data__=new e(u);this.size=c.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=o,s.prototype.set=i,Ko=s,Ko}var Ho,xc;function Cv(){if(xc)return Ho;xc=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ho=t,Ho}var Yo,Ec;function Sv(){if(Ec)return Yo;Ec=1;function e(t){return this.__data__.has(t)}return Yo=e,Yo}var Xo,Tc;function Rc(){if(Tc)return Xo;Tc=1;var e=Uo(),t=Cv(),r=Sv();function n(o){var i=-1,s=o==null?0:o.length;for(this.__data__=new e;++i<s;)this.add(o[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Xo=n,Xo}var Jo,Cc;function Ov(){if(Cc)return Jo;Cc=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return Jo=e,Jo}var Zo,Sc;function Oc(){if(Sc)return Zo;Sc=1;function e(t,r){return t.has(r)}return Zo=e,Zo}var Qo,Pc;function wc(){if(Pc)return Qo;Pc=1;var e=Rc(),t=Ov(),r=Oc(),n=1,o=2;function i(s,u,c,d,p,g){var h=c&n,y=s.length,v=u.length;if(y!=v&&!(h&&v>y))return!1;var l=g.get(s),b=g.get(u);if(l&&b)return l==u&&b==s;var T=-1,R=!0,S=c&o?new e:void 0;for(g.set(s,u),g.set(u,s);++T<y;){var P=s[T],_=u[T];if(d)var N=h?d(_,P,T,u,s,g):d(P,_,T,s,u,g);if(N!==void 0){if(N)continue;R=!1;break}if(S){if(!t(u,function(f,E){if(!r(S,E)&&(P===f||p(P,f,c,d,g)))return S.push(E)})){R=!1;break}}else if(!(P===_||p(P,_,c,d,g))){R=!1;break}}return g.delete(s),g.delete(u),R}return Qo=i,Qo}var ei,Ic;function Pv(){if(Ic)return ei;Ic=1;var e=it(),t=e.Uint8Array;return ei=t,ei}var ti,$c;function wv(){if($c)return ti;$c=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,i){n[++r]=[i,o]}),n}return ti=e,ti}var ri,Ac;function ni(){if(Ac)return ri;Ac=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return ri=e,ri}var oi,Nc;function Iv(){if(Nc)return oi;Nc=1;var e=en(),t=Pv(),r=Pu(),n=wc(),o=wv(),i=ni(),s=1,u=2,c="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Map]",h="[object Number]",y="[object RegExp]",v="[object Set]",l="[object String]",b="[object Symbol]",T="[object ArrayBuffer]",R="[object DataView]",S=e?e.prototype:void 0,P=S?S.valueOf:void 0;function _(N,f,E,x,w,$,F){switch(E){case R:if(N.byteLength!=f.byteLength||N.byteOffset!=f.byteOffset)return!1;N=N.buffer,f=f.buffer;case T:return!(N.byteLength!=f.byteLength||!$(new t(N),new t(f)));case c:case d:case h:return r(+N,+f);case p:return N.name==f.name&&N.message==f.message;case y:case l:return N==f+"";case g:var k=o;case v:var L=x&s;if(k||(k=i),N.size!=f.size&&!L)return!1;var V=F.get(N);if(V)return V==f;x|=u,F.set(N,f);var q=n(k(N),k(f),x,w,$,F);return F.delete(N),q;case b:if(P)return P.call(N)==P.call(f)}return!1}return oi=_,oi}var ii,Mc;function $v(){if(Mc)return ii;Mc=1;function e(t,r){for(var n=-1,o=r.length,i=t.length;++n<o;)t[i+n]=r[n];return t}return ii=e,ii}var ai,kc;function ct(){if(kc)return ai;kc=1;var e=Array.isArray;return ai=e,ai}var si,Dc;function Av(){if(Dc)return si;Dc=1;var e=$v(),t=ct();function r(n,o,i){var s=o(n);return t(n)?s:e(s,i(n))}return si=r,si}var ui,jc;function Nv(){if(jc)return ui;jc=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=0,s=[];++n<o;){var u=t[n];r(u,n,t)&&(s[i++]=u)}return s}return ui=e,ui}var ci,qc;function Mv(){if(qc)return ci;qc=1;function e(){return[]}return ci=e,ci}var li,Lc;function kv(){if(Lc)return li;Lc=1;var e=Nv(),t=Mv(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(s){return s==null?[]:(s=Object(s),e(o(s),function(u){return n.call(s,u)}))}:t;return li=i,li}var di,Fc;function Dv(){if(Fc)return di;Fc=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return di=e,di}var fi,Bc;function ar(){if(Bc)return fi;Bc=1;function e(t){return t!=null&&typeof t=="object"}return fi=e,fi}var pi,Vc;function jv(){if(Vc)return pi;Vc=1;var e=ir(),t=ar(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return pi=n,pi}var hi,zc;function Wc(){if(zc)return hi;zc=1;var e=jv(),t=ar(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(s){return t(s)&&n.call(s,"callee")&&!o.call(s,"callee")};return hi=i,hi}var sr={exports:{}},gi,Uc;function qv(){if(Uc)return gi;Uc=1;function e(){return!1}return gi=e,gi}sr.exports;var Gc;function Kc(){return Gc||(Gc=1,function(e,t){var r=it(),n=qv(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||n;e.exports=d}(sr,sr.exports)),sr.exports}var mi,Hc;function Yc(){if(Hc)return mi;Hc=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var i=typeof n;return o=o??e,!!o&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return mi=r,mi}var vi,Xc;function yi(){if(Xc)return vi;Xc=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return vi=t,vi}var bi,Jc;function Lv(){if(Jc)return bi;Jc=1;var e=ir(),t=yi(),r=ar(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",g="[object Object]",h="[object RegExp]",y="[object Set]",v="[object String]",l="[object WeakMap]",b="[object ArrayBuffer]",T="[object DataView]",R="[object Float32Array]",S="[object Float64Array]",P="[object Int8Array]",_="[object Int16Array]",N="[object Int32Array]",f="[object Uint8Array]",E="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",$={};$[R]=$[S]=$[P]=$[_]=$[N]=$[f]=$[E]=$[x]=$[w]=!0,$[n]=$[o]=$[b]=$[i]=$[T]=$[s]=$[u]=$[c]=$[d]=$[p]=$[g]=$[h]=$[y]=$[v]=$[l]=!1;function F(k){return r(k)&&t(k.length)&&!!$[e(k)]}return bi=F,bi}var _i,Zc;function Fv(){if(Zc)return _i;Zc=1;function e(t){return function(r){return t(r)}}return _i=e,_i}var ur={exports:{}};ur.exports;var Qc;function Bv(){return Qc||(Qc=1,function(e,t){var r=Fu(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i&&r.process,u=function(){try{var c=o&&o.require&&o.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(ur,ur.exports)),ur.exports}var xi,el;function tl(){if(el)return xi;el=1;var e=Lv(),t=Fv(),r=Bv(),n=r&&r.isTypedArray,o=n?t(n):e;return xi=o,xi}var Ei,rl;function Vv(){if(rl)return Ei;rl=1;var e=Dv(),t=Wc(),r=ct(),n=Kc(),o=Yc(),i=tl(),s=Object.prototype,u=s.hasOwnProperty;function c(d,p){var g=r(d),h=!g&&t(d),y=!g&&!h&&n(d),v=!g&&!h&&!y&&i(d),l=g||h||y||v,b=l?e(d.length,String):[],T=b.length;for(var R in d)(p||u.call(d,R))&&!(l&&(R=="length"||y&&(R=="offset"||R=="parent")||v&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||o(R,T)))&&b.push(R);return b}return Ei=c,Ei}var Ti,nl;function zv(){if(nl)return Ti;nl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return Ti=t,Ti}var Ri,ol;function Wv(){if(ol)return Ri;ol=1;function e(t,r){return function(n){return t(r(n))}}return Ri=e,Ri}var Ci,il;function Uv(){if(il)return Ci;il=1;var e=Wv(),t=e(Object.keys,Object);return Ci=t,Ci}var Si,al;function Gv(){if(al)return Si;al=1;var e=zv(),t=Uv(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var s=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&s.push(u);return s}return Si=o,Si}var Oi,sl;function Kv(){if(sl)return Oi;sl=1;var e=Hu(),t=yi();function r(n){return n!=null&&t(n.length)&&!e(n)}return Oi=r,Oi}var Pi,ul;function cl(){if(ul)return Pi;ul=1;var e=Vv(),t=Gv(),r=Kv();function n(o){return r(o)?e(o):t(o)}return Pi=n,Pi}var wi,ll;function Hv(){if(ll)return wi;ll=1;var e=Av(),t=kv(),r=cl();function n(o){return e(o,r,t)}return wi=n,wi}var Ii,dl;function Yv(){if(dl)return Ii;dl=1;var e=Hv(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(i,s,u,c,d,p){var g=u&t,h=e(i),y=h.length,v=e(s),l=v.length;if(y!=l&&!g)return!1;for(var b=y;b--;){var T=h[b];if(!(g?T in s:n.call(s,T)))return!1}var R=p.get(i),S=p.get(s);if(R&&S)return R==s&&S==i;var P=!0;p.set(i,s),p.set(s,i);for(var _=g;++b<y;){T=h[b];var N=i[T],f=s[T];if(c)var E=g?c(f,N,T,s,i,p):c(N,f,T,i,s,p);if(!(E===void 0?N===f||d(N,f,u,c,p):E)){P=!1;break}_||(_=T=="constructor")}if(P&&!_){var x=i.constructor,w=s.constructor;x!=w&&"constructor"in i&&"constructor"in s&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(P=!1)}return p.delete(i),p.delete(s),P}return Ii=o,Ii}var $i,fl;function Xv(){if(fl)return $i;fl=1;var e=Mt(),t=it(),r=e(t,"DataView");return $i=r,$i}var Ai,pl;function Jv(){if(pl)return Ai;pl=1;var e=Mt(),t=it(),r=e(t,"Promise");return Ai=r,Ai}var Ni,hl;function gl(){if(hl)return Ni;hl=1;var e=Mt(),t=it(),r=e(t,"Set");return Ni=r,Ni}var Mi,ml;function Zv(){if(ml)return Mi;ml=1;var e=Mt(),t=it(),r=e(t,"WeakMap");return Mi=r,Mi}var ki,vl;function Qv(){if(vl)return ki;vl=1;var e=Xv(),t=wo(),r=Jv(),n=gl(),o=Zv(),i=ir(),s=Zu(),u="[object Map]",c="[object Object]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",h="[object DataView]",y=s(e),v=s(t),l=s(r),b=s(n),T=s(o),R=i;return(e&&R(new e(new ArrayBuffer(1)))!=h||t&&R(new t)!=u||r&&R(r.resolve())!=d||n&&R(new n)!=p||o&&R(new o)!=g)&&(R=function(S){var P=i(S),_=P==c?S.constructor:void 0,N=_?s(_):"";if(N)switch(N){case y:return h;case v:return u;case l:return d;case b:return p;case T:return g}return P}),ki=R,ki}var Di,yl;function ey(){if(yl)return Di;yl=1;var e=_c(),t=wc(),r=Iv(),n=Yv(),o=Qv(),i=ct(),s=Kc(),u=tl(),c=1,d="[object Arguments]",p="[object Array]",g="[object Object]",h=Object.prototype,y=h.hasOwnProperty;function v(l,b,T,R,S,P){var _=i(l),N=i(b),f=_?p:o(l),E=N?p:o(b);f=f==d?g:f,E=E==d?g:E;var x=f==g,w=E==g,$=f==E;if($&&s(l)){if(!s(b))return!1;_=!0,x=!1}if($&&!x)return P||(P=new e),_||u(l)?t(l,b,T,R,S,P):r(l,b,f,T,R,S,P);if(!(T&c)){var F=x&&y.call(l,"__wrapped__"),k=w&&y.call(b,"__wrapped__");if(F||k){var L=F?l.value():l,V=k?b.value():b;return P||(P=new e),S(L,V,T,R,P)}}return $?(P||(P=new e),n(l,b,T,R,S,P)):!1}return Di=v,Di}var ji,bl;function _l(){if(bl)return ji;bl=1;var e=ey(),t=ar();function r(n,o,i,s,u){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,i,s,r,u)}return ji=r,ji}var qi,xl;function ty(){if(xl)return qi;xl=1;var e=_c(),t=_l(),r=1,n=2;function o(i,s,u,c){var d=u.length,p=d,g=!c;if(i==null)return!p;for(i=Object(i);d--;){var h=u[d];if(g&&h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++d<p;){h=u[d];var y=h[0],v=i[y],l=h[1];if(g&&h[2]){if(v===void 0&&!(y in i))return!1}else{var b=new e;if(c)var T=c(v,l,y,i,s,b);if(!(T===void 0?t(l,v,r|n,c,b):T))return!1}}return!0}return qi=o,qi}var Li,El;function Tl(){if(El)return Li;El=1;var e=_o();function t(r){return r===r&&!e(r)}return Li=t,Li}var Fi,Rl;function ry(){if(Rl)return Fi;Rl=1;var e=Tl(),t=cl();function r(n){for(var o=t(n),i=o.length;i--;){var s=o[i],u=n[s];o[i]=[s,u,e(u)]}return o}return Fi=r,Fi}var Bi,Cl;function Sl(){if(Cl)return Bi;Cl=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Bi=e,Bi}var Vi,Ol;function ny(){if(Ol)return Vi;Ol=1;var e=ty(),t=ry(),r=Sl();function n(o){var i=t(o);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(s){return s===o||e(s,o,i)}}return Vi=n,Vi}var zi,Pl;function Wi(){if(Pl)return zi;Pl=1;var e=ir(),t=ar(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return zi=n,zi}var Ui,wl;function Gi(){if(wl)return Ui;wl=1;var e=ct(),t=Wi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,s){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||s!=null&&i in Object(s)}return Ui=o,Ui}var Ki,Il;function oy(){if(Il)return Ki;Il=1;var e=Uo(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var s=arguments,u=o?o.apply(this,s):s[0],c=i.cache;if(c.has(u))return c.get(u);var d=n.apply(this,s);return i.cache=c.set(u,d)||c,d};return i.cache=new(r.Cache||e),i}return r.Cache=e,Ki=r,Ki}var Hi,$l;function iy(){if($l)return Hi;$l=1;var e=oy(),t=500;function r(n){var o=e(n,function(s){return i.size===t&&i.clear(),s}),i=o.cache;return o}return Hi=r,Hi}var Yi,Al;function ay(){if(Al)return Yi;Al=1;var e=iy(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(s,u,c,d){i.push(c?d.replace(r,"$1"):u||s)}),i});return Yi=n,Yi}var Xi,Nl;function sy(){if(Nl)return Xi;Nl=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n<o;)i[n]=r(t[n],n,t);return i}return Xi=e,Xi}var Ji,Ml;function uy(){if(Ml)return Ji;Ml=1;var e=en(),t=sy(),r=ct(),n=Wi(),o=e?e.prototype:void 0,i=o?o.toString:void 0;function s(u){if(typeof u=="string")return u;if(r(u))return t(u,s)+"";if(n(u))return i?i.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Ji=s,Ji}var Zi,kl;function cy(){if(kl)return Zi;kl=1;var e=uy();function t(r){return r==null?"":e(r)}return Zi=t,Zi}var Qi,Dl;function jl(){if(Dl)return Qi;Dl=1;var e=ct(),t=Gi(),r=ay(),n=cy();function o(i,s){return e(i)?i:t(i,s)?[i]:r(n(i))}return Qi=o,Qi}var ea,ql;function nn(){if(ql)return ea;ql=1;var e=Wi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ea=t,ea}var ta,Ll;function Fl(){if(Ll)return ta;Ll=1;var e=jl(),t=nn();function r(n,o){o=e(o,n);for(var i=0,s=o.length;n!=null&&i<s;)n=n[t(o[i++])];return i&&i==s?n:void 0}return ta=r,ta}var ra,Bl;function ly(){if(Bl)return ra;Bl=1;var e=Fl();function t(r,n,o){var i=r==null?void 0:e(r,n);return i===void 0?o:i}return ra=t,ra}var na,Vl;function dy(){if(Vl)return na;Vl=1;function e(t,r){return t!=null&&r in Object(t)}return na=e,na}var oa,zl;function fy(){if(zl)return oa;zl=1;var e=jl(),t=Wc(),r=ct(),n=Yc(),o=yi(),i=nn();function s(u,c,d){c=e(c,u);for(var p=-1,g=c.length,h=!1;++p<g;){var y=i(c[p]);if(!(h=u!=null&&d(u,y)))break;u=u[y]}return h||++p!=g?h:(g=u==null?0:u.length,!!g&&o(g)&&n(y,g)&&(r(u)||t(u)))}return oa=s,oa}var ia,Wl;function py(){if(Wl)return ia;Wl=1;var e=dy(),t=fy();function r(n,o){return n!=null&&t(n,o,e)}return ia=r,ia}var aa,Ul;function hy(){if(Ul)return aa;Ul=1;var e=_l(),t=ly(),r=py(),n=Gi(),o=Tl(),i=Sl(),s=nn(),u=1,c=2;function d(p,g){return n(p)&&o(g)?i(s(p),g):function(h){var y=t(h,p);return y===void 0&&y===g?r(h,p):e(g,y,u|c)}}return aa=d,aa}var sa,Gl;function gy(){if(Gl)return sa;Gl=1;function e(t){return t}return sa=e,sa}var ua,Kl;function my(){if(Kl)return ua;Kl=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ua=e,ua}var ca,Hl;function vy(){if(Hl)return ca;Hl=1;var e=Fl();function t(r){return function(n){return e(n,r)}}return ca=t,ca}var la,Yl;function yy(){if(Yl)return la;Yl=1;var e=my(),t=vy(),r=Gi(),n=nn();function o(i){return r(i)?e(n(i)):t(i)}return la=o,la}var da,Xl;function by(){if(Xl)return da;Xl=1;var e=ny(),t=hy(),r=gy(),n=ct(),o=yy();function i(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):o(s)}return da=i,da}var fa,Jl;function _y(){if(Jl)return fa;Jl=1;function e(t,r,n,o){for(var i=t.length,s=n+(o?1:-1);o?s--:++s<i;)if(r(t[s],s,t))return s;return-1}return fa=e,fa}var pa,Zl;function xy(){if(Zl)return pa;Zl=1;function e(t){return t!==t}return pa=e,pa}var ha,Ql;function Ey(){if(Ql)return ha;Ql=1;function e(t,r,n){for(var o=n-1,i=t.length;++o<i;)if(t[o]===r)return o;return-1}return ha=e,ha}var ga,ed;function Ty(){if(ed)return ga;ed=1;var e=_y(),t=xy(),r=Ey();function n(o,i,s){return i===i?r(o,i,s):e(o,t,s)}return ga=n,ga}var ma,td;function Ry(){if(td)return ma;td=1;var e=Ty();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return ma=t,ma}var va,rd;function Cy(){if(rd)return va;rd=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o<i;)if(n(r,t[o]))return!0;return!1}return va=e,va}var ya,nd;function Sy(){if(nd)return ya;nd=1;function e(){}return ya=e,ya}var ba,od;function Oy(){if(od)return ba;od=1;var e=gl(),t=Sy(),r=ni(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return ba=o,ba}var _a,id;function Py(){if(id)return _a;id=1;var e=Rc(),t=Ry(),r=Cy(),n=Oc(),o=Oy(),i=ni(),s=200;function u(c,d,p){var g=-1,h=t,y=c.length,v=!0,l=[],b=l;if(p)v=!1,h=r;else if(y>=s){var T=d?null:o(c);if(T)return i(T);v=!1,h=n,b=new e}else b=d?[]:l;e:for(;++g<y;){var R=c[g],S=d?d(R):R;if(R=p||R!==0?R:0,v&&S===S){for(var P=b.length;P--;)if(b[P]===S)continue e;d&&b.push(S),l.push(R)}else h(b,S,p)||(b!==l&&b.push(S),l.push(R))}return l}return _a=u,_a}var xa,ad;function wy(){if(ad)return xa;ad=1;var e=by(),t=Py();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return xa=r,xa}var Iy=wy();const $y=gr(Iy);class sd extends de.Component{zoomedImageLabel(){const{t}=this.props,r=this.currentBounds();return t("mirador-dl-plugin.zoomed_region",{width:Math.floor(r.width),height:Math.floor(r.height)})}fullImageLabel(){const{canvas:t,t:r}=this.props;return r("mirador-dl-plugin.whole_image",{width:t.getWidth(),height:t.getHeight()})}smallImageLabel(){const{canvas:t,t:r}=this.props,n=Math.floor(1e3*t.getHeight()/t.getWidth());return r("mirador-dl-plugin.whole_image",{width:1e3,height:n})}zoomedImageUrl(){const{canvas:t}=this.props,r=this.currentBounds();return`${t.getCanonicalImageUri().replace(/\/full\/.*\/0\//,`/${r.x},${r.y},${r.width},${r.height}/full/0/`)}?download=true`}imageUrlForSize(t){const{canvas:r}=this.props;return`${r.getCanonicalImageUri(t.width)}?download=true`}fullImageUrl(){const{canvas:t}=this.props;return`${t.getCanonicalImageUri().replace(/\/full\/.*\/0\//,"/full/full/0/")}?download=true`}thousandPixelWideImage(){const{canvas:t}=this.props;return`${t.getCanonicalImageUri("1000")}?download=true`}osdViewport(){const{windowId:t}=this.props;return He.OSDReferences.get(t).current.viewport}currentBounds(){const t=this.osdViewport().getBounds();return Object.keys(t).reduce((r,n)=>(r[n]=Math.ceil(t[n]),r),{})}definedSizesRestrictsDownload(){const{infoResponse:t}=this.props;if(!t.json)return!1;const{height:r,width:n}=t.json;return this.definedSizes().length!==1?!1:this.definedSizes()[0].width<=n&&this.definedSizes()[0].height<=r}displayCurrentZoomLink(){const{restrictDownloadOnSizeDefinition:t,infoResponse:r,viewType:n}=this.props;if(n!=="single"||t&&this.definedSizesRestrictsDownload()||!(r&&r.json))return!1;const o=this.currentBounds();return o.height<r.json.height&&o.width<r.json.width&&o.x>=0&&o.y>=0}definedSizes(){const{infoResponse:t}=this.props;return t&&t.json&&t.json.sizes?$y(t.json.sizes,r=>`${r.width}${r.height}`):[]}fullImageLink(){return M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.fullImageUrl(),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.fullImageLabel()})},this.fullImageUrl())}thousandPixelWideLink(){const{canvas:t}=this.props;return t.getWidth()<1e3?"":M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.thousandPixelWideImage(),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.smallImageLabel()})},this.thousandPixelWideImage())}linksForDefinedSizes(){const{t}=this.props;return this.definedSizes().map(r=>M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.imageUrlForSize(r),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:t("mirador-dl-plugin.whole_image",{width:r.width,height:r.height})})},`${r.width}${r.height}`))}render(){const{canvas:t,canvasLabel:r}=this.props;return M.jsxs(M.Fragment,{children:[M.jsx(et,{noWrap:!0,variant:"h3",sx:{marginTop:"20px"},children:r}),M.jsxs(Jn,{children:[this.displayCurrentZoomLink()&&M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.zoomedImageUrl(),download:!0,rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.zoomedImageLabel()})}),this.definedSizes().length===0&&[this.fullImageLink(),this.thousandPixelWideLink()],this.definedSizes().length>0&&this.linksForDefinedSizes(),t.getRenderings().map(n=>M.jsx(Qn,{rendering:n},n.id))]})]})}}sd.propTypes={canvas:a.shape({id:a.string.isRequired,getCanonicalImageUri:a.func.isRequired,getHeight:a.func.isRequired,getRenderings:a.func.isRequired,getWidth:a.func.isRequired}).isRequired,canvasLabel:a.string.isRequired,infoResponse:a.shape({json:a.shape({height:a.number,sizes:a.arrayOf(a.shape({height:a.number,width:a.number})),width:a.number})}).isRequired,restrictDownloadOnSizeDefinition:a.bool.isRequired,t:a.func.isRequired,viewType:a.string.isRequired,windowId:a.string.isRequired};const Ay=(e,{windowId:t})=>({closeDialog:()=>e({type:"CLOSE_WINDOW_DIALOG",windowId:t})}),Ny=(e,{windowId:t})=>({canvases:He.getVisibleCanvases(e,{windowId:t}),canvasLabel:r=>He.getCanvasLabel(e,{canvasId:r,windowId:t}),containerId:He.getContainerId(e),infoResponse:r=>He.selectInfoResponse(e,{windowId:t,canvasId:r})||{},manifest:He.getManifestoInstance(e,{windowId:t}),restrictDownloadOnSizeDefinition:e.config.miradorDownloadPlugin&&e.config.miradorDownloadPlugin.restrictDownloadOnSizeDefinition,open:e.windowDialogs[t]&&e.windowDialogs[t].openDialog==="download",viewType:He.getWindowViewType(e,{windowId:t})});function ud({canvases:e=[],canvasLabel:t,closeDialog:r,containerId:n,infoResponse:o,manifest:i=void 0,open:s=!1,restrictDownloadOnSizeDefinition:u=!1,viewType:c,windowId:d}){const{t:p}=He.useTranslation(),g=de.useMemo(()=>i&&i.getSequences()&&i.getSequences()[0]&&i.getSequences()[0].getRenderings()?i.getSequences()[0].getRenderings():[],[i]);return s?M.jsxs(vu,{"data-testid":"dialog-content",container:document.querySelector(`#${n} .mirador-viewer`),disableEnforceFocus:!0,onClose:r,open:s,scroll:"paper",fullWidth:!0,maxWidth:"xs",children:[M.jsx(yu,{sx:{paddingBottom:0},children:M.jsx(et,{variant:"h2",component:"span",children:p("mirador-dl-plugin.download")})}),M.jsxs(He.ScrollIndicatedDialogContent,{children:[e.map(h=>M.jsx(sd,{canvas:h,canvasLabel:t(h.id),infoResponse:o(h.id),restrictDownloadOnSizeDefinition:u,t:p,viewType:c,windowId:d},h.id)),g.length>0&&M.jsx(Cu,{renderings:g,t:p})]}),M.jsx(bu,{children:M.jsx(Tu,{onClick:r,color:"primary",children:p("mirador-dl-plugin.close")})})]}):""}ud.propTypes={canvasLabel:a.func.isRequired,canvases:a.arrayOf(a.shape({id:a.string,index:a.number})),closeDialog:a.func.isRequired,containerId:a.string.isRequired,infoResponse:a.func.isRequired,manifest:a.shape({getSequences:a.func}),open:a.bool,restrictDownloadOnSizeDefinition:a.bool,viewType:a.string.isRequired,windowId:a.string.isRequired};const cd={target:"Window",mode:"add",name:"MiradorDownloadDialog",component:ud,config:{translations:cu},mapDispatchToProps:Ay,mapStateToProps:Ny},My=[du,cd];qe.default=My,qe.miradorDownloadDialogPlugin=cd,qe.miradorDownloadPlugin=du,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
188
174
|
//# sourceMappingURL=mirador-dl-plugin.js.map
|