synapse-admin/static/js/main.2ae2ba9f.js

3 lines
1.1 MiB

/*! For license information please see main.2ae2ba9f.js.LICENSE.txt */
(()=>{var e={412:(e,t,r)=>{"use strict";r.d(t,{c:()=>oe});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function f(e){return e.length}function m(e,t){return t.push(e),e}var h=1,v=1,g=0,y=0,b=0,x="";function w(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:h,column:v,length:i,return:""}}function S(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function O(){return b=y>0?u(x,--y):0,v--,10===b&&(v=1,h--),b}function _(){return b=y<g?u(x,y++):0,v++,10===b&&(v=1,h++),b}function E(){return u(x,y)}function k(){return y}function j(e,t){return d(x,e,t)}function C(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 P(e){return h=v=1,g=p(x=e),y=0,[]}function R(e){return x="",e}function T(e){return s(j(y-1,M(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(b=E())&&b<33;)_();return C(e)>2||C(b)>3?"":" "}function I(e,t){for(;--t&&_()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return j(e,k()+(t<6&&32==E()&&32==_()))}function M(e){for(;_();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&M(b);break;case 40:41===e&&M(e);break;case 92:_()}return y}function N(e,t){for(;_()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+j(t,y-1)+"*"+a(47===e?e:_())}function L(e){for(;!C(E());)_();return j(e,y)}var F="-ms-",z="-moz-",D="-webkit-",B="comm",V="rule",W="decl",q="@keyframes";function U(e,t){for(var r="",n=f(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function H(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case W:return e.return=e.return||e.value;case B:return"";case q:return e.return=e.value+"{"+U(e.children,n)+"}";case V:e.value=e.props.join(",")}return p(r=U(e.children,n))?e.return=e.value+"{"+r+"}":""}function $(e){return R(Q("",null,null,null,[""],e=P(e),0,[0],e))}function Q(e,t,r,n,o,i,s,d,f){for(var h=0,v=0,g=s,y=0,b=0,x=0,w=1,S=1,j=1,C=0,P="",R=o,M=i,F=n,z=P;S;)switch(x=C,C=_()){case 40:if(108!=x&&58==u(z,g-1)){-1!=c(z+=l(T(C),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:z+=T(C);break;case 9:case 10:case 13:case 32:z+=A(x);break;case 92:z+=I(k()-1,7);continue;case 47:switch(E()){case 42:case 47:m(G(N(_(),k()),t,r),f);break;default:z+="/"}break;case 123*w:d[h++]=p(z)*j;case 125*w:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+v:-1==j&&(z=l(z,/\f/g,"")),b>0&&p(z)-g&&m(b>32?Y(z+";",n,r,g-1):Y(l(z," ","")+";",n,r,g-2),f);break;case 59:z+=";";default:if(m(F=K(z,t,r,h,v,o,d,P,R=[],M=[],g),i),123===C)if(0===v)Q(z,t,F,F,R,i,g,d,M);else switch(99===y&&110===u(z,3)?100:y){case 100:case 108:case 109:case 115:Q(e,F,F,n&&m(K(e,F,F,0,0,o,d,P,o,R=[],g),M),o,M,g,d,n?R:M);break;default:Q(z,F,F,F,[""],M,0,d,M)}}h=v=b=0,w=j=1,P=z="",g=s;break;case 58:g=1+p(z),b=x;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==O())continue;switch(z+=a(C),C*w){case 38:j=v>0?1:(z+="\f",-1);break;case 44:d[h++]=(p(z)-1)*j,j=1;break;case 64:45===E()&&(z+=T(_())),y=E(),v=g=p(P=z+=L(k())),C++;break;case 45:45===x&&2==p(z)&&(w=0)}}return i}function K(e,t,r,n,a,i,c,u,p,m,h){for(var v=a-1,g=0===a?i:[""],y=f(g),b=0,x=0,S=0;b<n;++b)for(var O=0,_=d(e,v+1,v=o(x=c[b])),E=e;O<y;++O)(E=s(x>0?g[O]+" "+_:l(_,/&\f/g,g[O])))&&(p[S++]=E);return w(e,t,r,0===a?V:u,p,m,h)}function G(e,t,r){return w(e,t,r,B,a(b),d(e,2,-2),0)}function Y(e,t,r,n){return w(e,t,r,W,d(e,0,n),d(e,n+1,-1),n)}var X=function(e,t,r){for(var n=0,o=0;n=o,o=E(),38===n&&12===o&&(t[r]=1),!C(o);)_();return j(e,y)},J=function(e,t){return R(function(e,t){var r=-1,n=44;do{switch(C(n)){case 0:38===n&&12===E()&&(t[r]=1),e[r]+=X(y-1,t,r);break;case 2:e[r]+=T(n);break;case 4:if(44===n){e[++r]=58===E()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(n)}}while(n=_());return e}(P(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(r))&&!n){Z.set(e,!0);for(var o=[],a=J(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return D+"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 D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+z+e+F+e+e;case 6828:case 4268:return D+e+F+e+e;case 6165:return D+e+F+"flex-"+e+e;case 5187:return D+e+l(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return D+e+F+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return D+e+F+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+F+l(e,"shrink","negative")+e;case 5292:return D+e+F+l(e,"basis","preferred-size")+e;case 6060:return D+"box-"+l(e,"-grow","")+D+e+F+l(e,"grow","positive")+e;case 4554:return D+l(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,D+"$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(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+D)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===u(e,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return D+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+F+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=re(e.value,e.length);break;case q:return U([S(e,{value:l(e.value,"@","@"+D)})],n);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return U([S(e,{props:[l(t,/:(plac\w+)/,":"+D+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var a,i,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=f(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([ee,te].concat(o,d));i=function(e,t,r,n){c=r,U($(e?e+"{"+t.styles+"}":t.styles),p),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new n({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return m.sheet.hydrate(l),m}},4648:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{c:()=>n})},4075:(e,t,r)=>{"use strict";r.d(t,{T:()=>l,i:()=>a,w:()=>s});var n=r(9060),o=r(412),a=(r(6124),r(8336),!0),i=n.createContext("undefined"!==typeof HTMLElement?(0,o.c)({key:"css"}):null);i.Provider;var s=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)}))};a||(s=function(e){return function(t){var r=(0,n.useContext)(i);return null===r?(r=(0,o.c)({key:"css"}),n.createElement(i.Provider,{value:r},e(t,r))):e(t,r)}});var l=n.createContext({})},6124:(e,t,r)=>{"use strict";r.d(t,{k:()=>m});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(4648),a=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.c)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(i,(function(e,t,r){return p={name:t,styles:r,next:p},t}))}return 1===n[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return p={name:r.name,styles:r.styles,next:p},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=d(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!==typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":l(i)&&(n+=c(a)+":"+u(a,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=d(e,t,i);switch(a){case"animation":case"animationName":n+=c(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var p=0;p<i.length;p++)l(i[p])&&(n+=c(a)+":"+u(a,i[p])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=p,a=r(e);return p=o,d(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var p,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";p=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=d(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=d(r,t,e[i]),n&&(o+=a[i]);f.lastIndex=0;for(var s,l="";null!==(s=f.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},8336:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>i,k:()=>s});var o=r(9060),a=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},5779:(e,t,r)=>{"use strict";r.d(t,{Up:()=>o,aE:()=>a,yI:()=>n});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},2976:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle")},8420:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},3556:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline")},4392:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 10V8h-2v4H8l4 4 4-4z"}),"ArrowCircleDown")},404:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0 2c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m-1-10v4h2v-4h3l-4-4-4 4z"}),"ArrowCircleUp")},4148:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd")},312:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew")},8184:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},9844:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4")},5392:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7")},3084:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},8155:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined")},6448:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},7132:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear")},7824:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},2060:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue")},9600:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber")},9592:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail")},9643:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create")},9648:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},1784:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},8404:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline")},9732:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep")},9364:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices")},8416:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done")},8176:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator")},4080:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer")},1100:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},1947:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},4472:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event")},5888:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},4136:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward")},8008:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},3012:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared")},1876:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp")},7596:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group")},8316:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},9928:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},1496:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)([(0,a.jsx)("circle",{cx:"7",cy:"6",r:"2"},"0"),(0,a.jsx)("path",{d:"M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8zM7 20H5v-6h2zm4 0H9v-6h2zm4 0h-2v-6h2zm4 0h-2v-6h2zm-.35-14.14-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71m-4 0-.07-.07c-.57-.62-.82-1.41-.67-2.2L14 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71"},"1")],"HotTub")},3472:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https")},508:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox")},1176:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},699:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen")},1464:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},2288:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message")},1584:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"}),"NoEncryption")},4232:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications")},3248:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview")},836:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia")},588:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin")},3768:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew")},8772:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},5864:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutline")},1660:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye")},1432:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"}),"Report")},852:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},4544:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},3864:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},8640:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent")},3616:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate")},6444:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList")},1744:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}),"ViewWeek")},2364:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},432:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},7144:(e,t,r)=>{"use strict";var n=r(2411);t.c=void 0;var o=n(r(864)),a=r(2496);t.c=(0,o.default)((0,a.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")},864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(8912)},784:(e,t,r)=>{"use strict";r.d(t,{c:()=>D});var n=r(5072),o=r(5656),a=r(4368),i=r(6088),s=r(4276),l=r(2280),c=r(6868);var u=r(9872);const d={black:"#000",white:"#fff"},p={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"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},h={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],x={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:d.white,default:d.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}},w={text:{primary:d.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:d.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 S(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.IV)(e.main,o):"dark"===t&&(e.dark=(0,u.sP)(e.main,a)))}function O(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,o.c)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(t),O=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),_=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(t),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(t),k=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),j=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[400],light:h[300],dark:h[700]}:{main:"#ed6c02",light:h[500],dark:h[900]}}(t);function C(e){return(0,u.OM)(e,w.text.primary)>=r?w.text.primary:x.text.primary}const P=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:l=700}=e;if(t=(0,n.c)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,a.c)(11,r?" (".concat(r,")"):"",o));if("string"!==typeof t.main)throw new Error((0,a.c)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return S(t,"light",i,s),S(t,"dark",l,s),t.contrastText||(t.contrastText=C(t.main)),t},R={dark:w,light:x};return(0,i.c)((0,n.c)({common:(0,n.c)({},d),mode:t,primary:P({color:c,name:"primary"}),secondary:P({color:O,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:_,name:"error"}),warning:P({color:j,name:"warning"}),info:P({color:E,name:"info"}),success:P({color:k,name:"success"}),grey:p,contrastThreshold:r,getContrastText:C,augmentColor:P,tonalOffset:s},R[t]),l)}const _=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){const r="function"===typeof t?t(e):t,{fontFamily:a=k,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:m}=r,h=(0,o.c)(r,_);const v=s/14,g=m||(e=>"".concat(e/p*v,"rem")),y=(e,t,r,o,i)=>{return(0,n.c)({fontFamily:a,fontWeight:e,fontSize:g(t),lineHeight:r},a===k?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},i,f);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,E),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.c)((0,n.c)({htmlFontSize:p,pxToRem:g,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),h,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],R=["duration","easing","delay"],T={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)"},A={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I(e){return"".concat(Math.round(e),"ms")}function M(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function N(e){const t=(0,n.c)({},T,e.easing),r=(0,n.c)({},A,e.duration);return(0,n.c)({getAutoHeightDuration:M,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=n;(0,o.c)(n,R);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:I(a)," ").concat(i," ").concat("string"===typeof s?s:I(s)))).join(",")}},e,{easing:t,duration:r})}const L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},F=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:u={},typography:d={}}=e,p=(0,o.c)(e,F);if(e.vars)throw new Error((0,a.c)(18));const f=O(r),m=(0,s.c)(e);let h=(0,i.c)(m,{mixins:(v=m.breakpoints,g=t,(0,n.c)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},g)),palette:f,shadows:P.slice(),typography:j(f,d),transitions:N(u),zIndex:(0,n.c)({},L)});var v,g;h=(0,i.c)(h,p);for(var y=arguments.length,b=new Array(y>1?y-1:0),x=1;x<y;x++)b[x-1]=arguments[x];return h=b.reduce(((e,t)=>(0,i.c)(e,t)),h),h.unstable_sxConfig=(0,n.c)({},l.c,null==p?void 0:p.unstable_sxConfig),h.unstable_sx=function(e){return(0,c.c)({sx:e,theme:this})},h}const D=z},6656:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=(0,r(784).c)()},3068:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n="$$material"},2556:(e,t,r)=>{"use strict";r.d(t,{CU:()=>i,Cq:()=>s,cp:()=>l});var n=r(5880),o=r(6656),a=r(3068);const i=e=>(0,n.YJ)(e)&&"classes"!==e,s=n.YJ,l=(0,n.cp)({themeId:a.c,defaultTheme:o.c,rootShouldForwardProp:i})},3456:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(3596),o=r(6656),a=r(3068);function i(e){let{props:t,name:r}=e;return(0,n.c)({props:t,name:r,defaultTheme:o.c,themeId:a.c})}},5832:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(5336).c},7664:(e,t,r)=>{"use strict";r.d(t,{c:()=>b});var n=r(5072),o=r(9060),a=r(5656),i=r(9736),s=r(1412),l=r(5832),c=r(3456),u=r(2556),d=r(99),p=r(3448);function f(e){return(0,p.cp)("MuiSvgIcon",e)}(0,d.c)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=r(2496);const h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],v=(0,u.cp)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.c)(r.color))],t["fontSize".concat((0,l.c)(r.fontSize))]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o,a,i,s,l,c,u,d,p,f,m,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(a=t.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[r.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(f=f[r.color])?void 0:f.main)?p:{action:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.active,disabled:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[r.color]}})),g=o.forwardRef((function(e,t){const r=(0,c.c)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:g="svg",fontSize:y="medium",htmlColor:b,inheritViewBox:x=!1,titleAccess:w,viewBox:S="0 0 24 24"}=r,O=(0,a.c)(r,h),_=o.isValidElement(u)&&"svg"===u.type,E=(0,n.c)({},r,{color:p,component:g,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:S,hasSvgAsChild:_}),k={};x||(k.viewBox=S);const j=(e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.c)(t)),"fontSize".concat((0,l.c)(r))]};return(0,s.c)(o,f,n)})(E);return(0,m.jsxs)(v,(0,n.c)({as:g,className:(0,i.c)(j.root,d),focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},k,O,_&&u.props,{ownerState:E,children:[_?u.props.children:u,w?(0,m.jsx)("title",{children:w}):null]}))}));g.muiName="SvgIcon";const y=g;function b(e,t){function r(r,o){return(0,m.jsx)(y,(0,n.c)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=y.muiName,o.memo(o.forwardRef(r))}},2144:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(6576).c},8912:(e,t,r)=>{"use strict";r.r(t),r.d(t,{capitalize:()=>o.c,createChainedFunction:()=>a,createSvgIcon:()=>i.c,debounce:()=>s.c,deprecatedPropType:()=>l,isMuiElement:()=>c.c,ownerDocument:()=>u.c,ownerWindow:()=>d.c,requirePropFactory:()=>p,setRef:()=>f,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>m.c,unstable_useId:()=>h.c,unsupportedProp:()=>v,useControlled:()=>g.c,useEventCallback:()=>y.c,useForkRef:()=>b.c,useIsFocusVisible:()=>x.c});var n=r(1152),o=r(5832);const a=r(1200).c;var i=r(7664),s=r(2144);const l=function(e,t){return()=>null};var c=r(8276),u=r(3976),d=r(1328);r(5072);const p=function(e,t){return()=>null};const f=r(472).c;var m=r(7188),h=r(8144);const v=function(e,t,r,n,o){return null};var g=r(1124),y=r(7908),b=r(6268),x=r(2864);const w={configure:e=>{n.c.configure(e)}}},8276:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(9060);const o=function(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},3976:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(6848).c},1328:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(7608).c},1124:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(8128).c},7188:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(2576).c},7908:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(2488).c},6268:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(1544).c},8144:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=r(5080).c},2864:(e,t,r)=>{"use strict";r.d(t,{c:()=>f});var n=r(9060),o=r(8428);let a=!0,i=!1;const s=new o.S,l={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 c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function d(){"hidden"===this.visibilityState&&i&&(a=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return a||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}const f=function(){const e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,s.start(100,(()=>{i=!1})),t.current=!1,!0)},ref:e}}},3280:(e,t,r)=>{"use strict";r.d(t,{cp:()=>y,ot:()=>b});var n=r(5072),o=r(9060),a=r(4648),i=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,s=(0,a.c)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(4075),c=r(5779),u=r(6124),d=r(8336),p=s,f=function(e){return"theme"!==e},m=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},v=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.Up)(t,r,n),(0,d.A)((function(){return(0,c.aE)(t,r,n)})),null},g=function e(t,r){var a,i,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(a=r.label,i=r.target);var p=h(t,r,s),f=p||m(d),g=!f("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var x=y.length,w=1;w<x;w++)b.push(y[w],y[0][w])}var S=(0,l.w)((function(e,t,r){var n=g&&e.as||d,a="",s=[],h=e;if(null==e.theme){for(var y in h={},e)h[y]=e[y];h.theme=o.useContext(l.T)}"string"===typeof e.className?a=(0,c.yI)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var x=(0,u.k)(b.concat(s),t.registered,h);a+=t.key+"-"+x.name,void 0!==i&&(a+=" "+i);var w=g&&void 0===p?m(n):f,S={};for(var O in e)g&&"as"===O||w(O)&&(S[O]=e[O]);return S.className=a,S.ref=r,o.createElement(o.Fragment,null,o.createElement(v,{cache:t,serialized:x,isStringTag:"string"===typeof n}),o.createElement(n,S))}));return S.displayName=void 0!==a?a:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=b,S.__emotion_forwardProp=p,Object.defineProperty(S,"toString",{value:function(){return"."+i}}),S.withComponent=function(t,o){return e(t,(0,n.c)({},r,o,{shouldForwardProp:h(S,o,!0)})).apply(void 0,b)},S}}.bind();function y(e,t){return g(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));const b=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},5908:(e,t,r)=>{"use strict";r.d(t,{Ws:()=>u,Yn:()=>l,cD:()=>c,gv:()=>s,ls:()=>i,my:()=>o});var n=r(6088);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function i(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||a;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"===typeof t){const e=n.breakpoints||a;return Object.keys(t).reduce(((n,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){n[e.up(a)]=r(t[a],a)}else{const e=a;n[e]=t[e]}return n}),{})}return r(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=[t,...o].reduce(((e,t)=>(0,n.c)(e,t)),{});return l(Object.keys(t),i)}function u(e){let{values:t,breakpoints:r,base:n}=e;const o=n||function(e,t){if("object"!==typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(t,r),a=Object.keys(o);if(0===a.length)return t;let i;return a.reduce(((e,r,n)=>(Array.isArray(t)?(e[r]=null!=t[n]?t[n]:t[i],i=n):"object"===typeof t?(e[r]=null!=t[r]?t[r]:t[i],i=r):e[r]=t,e)),{})}},9872:(e,t,r)=>{"use strict";r.d(t,{W4:()=>u,sP:()=>d,ct:()=>f,OM:()=>c,IV:()=>p});var n=r(4368);const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))};function a(e){return o(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.c)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===r){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.c)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:r,values:a,colorSpace:o}}function s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function l(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){const r=l(e),n=l(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):p(e,t)}},5880:(e,t,r)=>{"use strict";r.d(t,{cp:()=>E,YJ:()=>b});var n=r(5656),o=r(5072),a=r(3280),i=r(6088),s=r(4276),l=r(5336);const c=["variant"];function u(e){return 0===e.length}function d(e){const{variant:t}=e,r=(0,n.c)(e,c);let o=t||"";return Object.keys(r).sort().forEach((t=>{o+="color"===t?u(o)?e[t]:(0,l.c)(e[t]):"".concat(u(o)?t:(0,l.c)(t)).concat((0,l.c)(e[t].toString()))})),o}var p=r(6868);const f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const m=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=e=>{let t=0;const r={};return e&&e.forEach((e=>{let n="";"function"===typeof e.props?(n="callback".concat(t),t+=1):n=d(e.props),r[n]=e.style})),r},v=(e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),h(r)},g=(e,t,r)=>{const{ownerState:n={}}=e,a=[];let i=0;return r&&r.forEach((r=>{let s=!0;if("function"===typeof r.props){const t=(0,o.c)({},e,n);s=r.props(t)}else Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(s=!1)}));s&&("function"===typeof r.props?a.push(t["callback".concat(i)]):a.push(t[d(r.props)])),"function"===typeof r.props&&(i+=1)})),a},y=(e,t,r,n)=>{var o;const a=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return g(e,t,a)};function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const x=(0,s.c)(),w=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function S(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function O(e){return e?(t,r)=>r[e]:null}const _=e=>{let{styledArg:t,props:r,defaultTheme:n,themeId:a}=e;const i=t((0,o.c)({},r,{theme:S((0,o.c)({},r,{defaultTheme:n,themeId:a}))}));let s;if(i&&i.variants&&(s=i.variants,delete i.variants),s){return[i,...g(r,h(s),s)]}return i};function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=x,rootShouldForwardProp:s=b,slotShouldForwardProp:l=b}=e,c=e=>(0,p.c)((0,o.c)({},e,{theme:S((0,o.c)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,function(e){let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.ot)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:x,skipSx:E,overridesResolver:k=O(w(p))}=u,j=(0,n.c)(u,f),C=void 0!==x?x:p&&"Root"!==p&&"root"!==p||!1,P=E||!1;let R=b;"Root"===p||"root"===p?R=s:p?R=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(R=void 0);const T=(0,a.cp)(e,(0,o.c)({shouldForwardProp:R,label:undefined},j)),A=function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const u=s?s.map((e=>{if("function"===typeof e&&e.__emotion_real!==e)return n=>_({styledArg:e,props:n,defaultTheme:r,themeId:t});if((0,i.o)(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return g(r,h(t),t).forEach((e=>{n=(0,i.c)(n,e)})),n}),r}return e})):[];let p=n;if((0,i.o)(n)){let e;n&&n.variants&&(e=n.variants,delete p.variants,p=t=>{let r=n;return g(t,h(e),e).forEach((e=>{r=(0,i.c)(r,e)})),r})}else"function"===typeof n&&n.__emotion_real!==n&&(p=e=>_({styledArg:n,props:e,defaultTheme:r,themeId:t}));d&&k&&u.push((e=>{const n=S((0,o.c)({},e,{defaultTheme:r,themeId:t})),a=m(d,n);if(a){const t={};return Object.entries(a).forEach((r=>{let[a,i]=r;t[a]="function"===typeof i?i((0,o.c)({},e,{theme:n})):i})),k(e,t)}return null})),d&&!C&&u.push((e=>{const n=S((0,o.c)({},e,{defaultTheme:r,themeId:t}));return y(e,v(d,n),n,d)})),P||u.push(c);const f=u.length-s.length;if(Array.isArray(n)&&f>0){const e=new Array(f).fill("");p=[...n,...e],p.raw=[...n.raw,...e]}const b=T(p,...u);return e.muiName&&(b.muiName=e.muiName),b};return T.withConfig&&(A.withConfig=T.withConfig),A}}},4276:(e,t,r)=>{"use strict";r.d(t,{c:()=>m});var n=r(5072),o=r(5656),a=r(6088);const i=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.c)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var c=r(7812);var u=r(6868),d=r(2280);function p(e,t){const r=this;if(r.vars&&"function"===typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const f=["breakpoints","palette","spacing","shape"];const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:m,shape:h={}}=e,v=(0,o.c)(e,f),g=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5}=e,l=(0,o.c)(e,i),c=s(t),u=Object.keys(c);function d(e){const n="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(n).concat(r,")")}function p(e){const n="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(n-a/100).concat(r,")")}function f(e,n){const o=u.indexOf(n);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:n)-a/100).concat(r,")")}return(0,n.c)({keys:u,values:c,up:d,down:p,between:f,only:function(e){return u.indexOf(e)+1<u.length?f(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):f(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}(t),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.IV)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(m);let b=(0,a.c)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.c)({mode:"light"},r),spacing:y,shape:(0,n.c)({},l,h)},v);b.applyStyles=p;for(var x=arguments.length,w=new Array(x>1?x-1:0),S=1;S<x;S++)w[S-1]=arguments[S];return b=w.reduce(((e,t)=>(0,a.c)(e,t)),b),b.unstable_sxConfig=(0,n.c)({},d.c,null==v?void 0:v.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.c)({sx:e,theme:this})},b}},1188:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(6088);const o=function(e,t){return t?(0,n.c)(e,t,{clone:!1}):e}},7812:(e,t,r)=>{"use strict";r.d(t,{IV:()=>m,WC:()=>f,uc:()=>h,qq:()=>y,UD:()=>b});var n=r(5908),o=r(9052),a=r(1188);const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,r]=e.split(""),n=i[t],o=s[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,r,n){var a;const i=null!=(a=(0,o.O0)(e,t,!1))?a:r;return"number"===typeof i?e=>"string"===typeof e?e:i*e:Array.isArray(i)?e=>"string"===typeof e?e:i[e]:"function"===typeof i?i:()=>{}}function m(e){return f(e,"spacing",8)}function h(e,t){if("string"===typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function v(e,t,r,o){if(-1===t.indexOf(r))return null;const a=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=h(t,r),e)),{})}(c(r),o),i=e[r];return(0,n.ls)(e,i,a)}function g(e,t){const r=m(e.theme);return Object.keys(e).map((n=>v(e,t,n,r))).reduce(a.c,{})}function y(e){return g(e,u)}function b(e){return g(e,d)}function x(e){return g(e,p)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p},9052:(e,t,r)=>{"use strict";r.d(t,{O0:()=>a,cp:()=>s,wt:()=>i});var n=r(5336),o=r(5908);function a(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){const r="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function i(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||o:a(e,r)||o,t&&(n=t(n,o,e)),n}const s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=a(e.theme,s)||{};return(0,o.ls)(e,c,(e=>{let o=i(u,l,e);return e===o&&"string"===typeof e&&(o=i(u,l,"".concat(t).concat("default"===e?"":(0,n.c)(e)),e)),!1===r?o:{[r]:o}}))};return c.propTypes={},c.filterProps=[t],c}},2280:(e,t,r)=>{"use strict";r.d(t,{c:()=>M});var n=r(7812),o=r(9052),a=r(1188);const i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,a.c)(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=r(5908);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.cp)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),f=c("borderBottom",l),m=c("borderLeft",l),h=c("borderColor"),v=c("borderTopColor"),g=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.WC)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n.uc)(t,e)});return(0,s.ls)(e,e.borderRadius,r)}return null};S.propTypes={},S.filterProps=["borderRadius"];i(u,d,p,f,m,h,v,g,y,b,S,x,w);const O=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.WC)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n.uc)(t,e)});return(0,s.ls)(e,e.gap,r)}return null};O.propTypes={},O.filterProps=["gap"];const _=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.WC)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n.uc)(t,e)});return(0,s.ls)(e,e.columnGap,r)}return null};_.propTypes={},_.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.WC)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n.uc)(t,e)});return(0,s.ls)(e,e.rowGap,r)}return null};E.propTypes={},E.filterProps=["rowGap"];i(O,_,E,(0,o.cp)({prop:"gridColumn"}),(0,o.cp)({prop:"gridRow"}),(0,o.cp)({prop:"gridAutoFlow"}),(0,o.cp)({prop:"gridAutoColumns"}),(0,o.cp)({prop:"gridAutoRows"}),(0,o.cp)({prop:"gridTemplateColumns"}),(0,o.cp)({prop:"gridTemplateRows"}),(0,o.cp)({prop:"gridTemplateAreas"}),(0,o.cp)({prop:"gridArea"}));function k(e,t){return"grey"===t?t:e}i((0,o.cp)({prop:"color",themeKey:"palette",transform:k}),(0,o.cp)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,o.cp)({prop:"backgroundColor",themeKey:"palette",transform:k}));function j(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const C=(0,o.cp)({prop:"width",transform:j}),P=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.my[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:j(t)}};return(0,s.ls)(e,e.maxWidth,t)}return null};P.filterProps=["maxWidth"];const R=(0,o.cp)({prop:"minWidth",transform:j}),T=(0,o.cp)({prop:"height",transform:j}),A=(0,o.cp)({prop:"maxHeight",transform:j}),I=(0,o.cp)({prop:"minHeight",transform:j}),M=((0,o.cp)({prop:"size",cssProperty:"width",transform:j}),(0,o.cp)({prop:"size",cssProperty:"height",transform:j}),i(C,P,R,T,A,I,(0,o.cp)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:n.UD},pt:{style:n.UD},pr:{style:n.UD},pb:{style:n.UD},pl:{style:n.UD},px:{style:n.UD},py:{style:n.UD},padding:{style:n.UD},paddingTop:{style:n.UD},paddingRight:{style:n.UD},paddingBottom:{style:n.UD},paddingLeft:{style:n.UD},paddingX:{style:n.UD},paddingY:{style:n.UD},paddingInline:{style:n.UD},paddingInlineStart:{style:n.UD},paddingInlineEnd:{style:n.UD},paddingBlock:{style:n.UD},paddingBlockStart:{style:n.UD},paddingBlockEnd:{style:n.UD},m:{style:n.qq},mt:{style:n.qq},mr:{style:n.qq},mb:{style:n.qq},ml:{style:n.qq},mx:{style:n.qq},my:{style:n.qq},margin:{style:n.qq},marginTop:{style:n.qq},marginRight:{style:n.qq},marginBottom:{style:n.qq},marginLeft:{style:n.qq},marginX:{style:n.qq},marginY:{style:n.qq},marginInline:{style:n.qq},marginInlineStart:{style:n.qq},marginInlineEnd:{style:n.qq},marginBlock:{style:n.qq},marginBlockStart:{style:n.qq},marginBlockEnd:{style:n.qq},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:O},rowGap:{style:E},columnGap:{style:_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:P},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},6868:(e,t,r)=>{"use strict";r.d(t,{c:()=>c});var n=r(5336),o=r(1188),a=r(9052),i=r(5908),s=r(2280);const l=function(){function e(e,t,r,o){const s={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const f=(0,a.O0)(r,u)||{};if(p)return p(s);return(0,i.ls)(s,t,(t=>{let r=(0,a.wt)(f,d,t);return t===r&&"string"===typeof t&&(r=(0,a.wt)(f,d,"".concat(e).concat("default"===t?"":(0,n.c)(t)),t)),!1===c?r:{[c]:r}}))}return function t(r){var n;const{sx:a,theme:l={}}=r||{};if(!a)return null;const c=null!=(n=l.unstable_sxConfig)?n:s.c;function u(r){let n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;const a=(0,i.gv)(l.breakpoints),s=Object.keys(a);let u=a;return Object.keys(n).forEach((r=>{const a=(s=n[r],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==a&&void 0!==a)if("object"===typeof a)if(c[r])u=(0,o.c)(u,e(r,a,l,c));else{const e=(0,i.ls)({theme:l},a,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,a)?u=(0,o.c)(u,e):u[r]=t({sx:a,theme:l})}else u=(0,o.c)(u,e(r,a,l,c))})),(0,i.Yn)(s,u)}return Array.isArray(a)?a.map(u):u(a)}}();l.filterProps=["sx"];const c=l},5284:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(4276),o=r(4568);const a=(0,n.c)();const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,o.c)(e)}},4528:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(6644);function o(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.c)(t.components[r].defaultProps,o):o}},3596:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(4528),o=r(5284);function a(e){let{props:t,name:r,defaultTheme:a,themeId:i}=e,s=(0,o.c)(a);i&&(s=s[i]||s);return(0,n.c)({theme:s,name:r,props:t})}},4568:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(9060),o=r(4075);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=n.useContext(o.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},1152:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},5336:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(4368);function o(e){if("string"!==typeof e)throw new Error((0,n.c)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},1412:(e,t,r)=>{"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{c:()=>n})},1200:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}),(()=>{}))}r.d(t,{c:()=>n})},6576:(e,t,r)=>{"use strict";function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{c:()=>n})},6088:(e,t,r)=>{"use strict";r.d(t,{c:()=>i,o:()=>o});var n=r(5072);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=a(e[r])})),t}function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=r.clone?(0,n.c)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=i(e[n],t[n],r):r.clone?s[n]=o(t[n])?a(t[n]):t[n]:s[n]=t[n])})),s}},4368:(e,t,r)=>{"use strict";function n(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."}r.d(t,{c:()=>n})},3448:(e,t,r)=>{"use strict";r.d(t,{cp:()=>a,rJ:()=>o});var n=r(1152);const o={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 a(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a=o[t];return a?"".concat(r,"-").concat(a):"".concat(n.c.generate(e),"-").concat(t)}},99:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(3448);function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,n.cp)(e,t,r)})),o}},6848:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{c:()=>n})},7608:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(6848);function o(e){return(0,n.c)(e).defaultView||window}},6644:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(5072);function o(e,t){const r=(0,n.c)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))r[a]=(0,n.c)({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const i=e[a]||{},s=t[a];r[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(r[a]=(0,n.c)({},s),Object.keys(i).forEach((e=>{r[a][e]=o(i[e],s[e])}))):r[a]=s:r[a]=i}else void 0===r[a]&&(r[a]=e[a])})),r}},472:(e,t,r)=>{"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{c:()=>n})},8128:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(9060);function o(e){let{controlled:t,default:r,name:o,state:a="value"}=e;const{current:i}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[i?t:s,n.useCallback((e=>{i||l(e)}),[])]}},2576:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(9060);const o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect},2488:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(9060),o=r(2576);const a=function(e){const t=n.useRef(e);return(0,o.c)((()=>{t.current=e})),n.useRef((function(){return(0,t.current)(...arguments)})).current}},1544:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(9060),o=r(472);function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.c)(t,e)}))}),t)}},5080:(e,t,r)=>{"use strict";var n;r.d(t,{c:()=>s});var o=r(9060);let a=0;const i=(n||(n=r.t(o,2)))["useId".toString()];function s(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&(a+=1,r("mui-".concat(a)))}),[t]),n}(e)}},8428:(e,t,r)=>{"use strict";r.d(t,{S:()=>i,c:()=>s});var n=r(9060);const o={};const a=[];class i{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new i}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}function s(){const e=function(e,t){const r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}(i.create).current;var t;return t=e.disposeEffect,n.useEffect(t,a),e}},9380:(e,t,r)=>{"use strict";var n=r(4160),o=r(632),a=r(216),i=r(6240),s=r(3052),l=r(2320),c=r(7208),u=r(7928),d=r(928),p=r(7588),f=n("String.prototype.split"),m=Object("a"),h="a"!==m[0]||!(0 in m);e.exports=function(e){var t,r=u(this),n=h&&p(this)?f(this,""):r,m=c(n);if(!l(e))throw new o("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var v=0;v<m;){var g=d(v);if(s(n,g)){var y=i(n,g);a(e,t,[y,v,n])}v+=1}}},6524:(e,t,r)=>{"use strict";var n=r(2988),o=r(788),a=r(4160),i=r(4700),s=r(9380),l=r(3104),c=l(),u=r(8976),d=a("Array.prototype.slice"),p=o.apply(c),f=function(e,t){return i(e),p(e,d(arguments,1))};n(f,{getPolyfill:l,implementation:s,shim:u}),e.exports=f},3104:(e,t,r)=>{"use strict";var n=r(5344),o=r(9380);e.exports=function(){var e=Array.prototype.forEach;return n(e)?e:o}},8976:(e,t,r)=>{"use strict";var n=r(2988),o=r(3104);e.exports=function(){var e=o();return n(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},4160:(e,t,r)=>{"use strict";var n=r(8600),o=r(788),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&a(e,".prototype.")>-1?o(r):r}},788:(e,t,r)=>{"use strict";var n=r(2040),o=r(8600),a=r(6572),i=o("%TypeError%"),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(l,s),u=o("%Object.defineProperty%",!0),d=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(f){u=null}e.exports=function(e){if("function"!==typeof e)throw new i("a function is required");var t=c(n,l,arguments);return a(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(n,s,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},5600:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(a){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var r={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},o=n.exec(e);o;){try{r[o[0]]=decodeURIComponent(o[0])}catch(t){var i=a(o[0]);i!==o[0]&&(r[o[0]]=i)}o=n.exec(e)}r["%C2"]="\ufffd";for(var s=Object.keys(r),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),r[c])}return e}(e)}}},1488:(e,t,r)=>{"use strict";var n=r(9256)(),o=r(8600),a=n&&o("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(c){a=!1}var i=o("%SyntaxError%"),s=o("%TypeError%"),l=r(5884);e.exports=function(e,t,r){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(a)a(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===n&&d?d.enumerable:!n,value:r,writable:null===o&&d?d.writable:!o});else{if(!u&&(n||o||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},2988:(e,t,r)=>{"use strict";var n=r(4860),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=r(1488),l=r(9256)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!==typeof(o=n)||"[object Function]"!==a.call(o)||!n())return;var o;l?s(e,t,r,!0):s(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],r[a[s]])};u.supportsDescriptors=!!l,e.exports=u},5344:e=>{e.exports=function(e){var t=!0,r=!0,n=!1;if("function"===typeof e){try{e.call("f",(function(e,r,n){"object"!==typeof n&&(t=!1)})),e.call([null],(function(){"use strict";r="string"===typeof this}),"x")}catch(o){n=!0}return!n&&t&&r}return!1}},5200:e=>{"use strict";e.exports=RangeError},288:e=>{"use strict";e.exports=SyntaxError},632:e=>{"use strict";e.exports=TypeError},3676:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,o=r(3420),a=r(7444),i=r(7436),s=r(7776);e.exports=function(e){if(o(e))return e;var t,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=function(e,t){var r=e[t];if(null!==r&&"undefined"!==typeof r){if(!a(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var l=t.call(e,r);if(o(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(i(e)||s(e))&&(r="string"),function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,i,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<s.length;++i)if(r=e[s[i]],a(r)&&(n=r.call(e),o(n)))return n;throw new TypeError("No default value")}(e,"default"===r?"number":r)}},3420:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},2236:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,a||e,i),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,i=new Array(a);o<a;o++)i[o]=n[o].fn;return i},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,a,i){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,a),!0;case 6:return u.fn.call(u.context,t,n,o,a,i),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||i(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},8981:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(r[i]=s)}return r}},5448:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!==typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=r(0,o.length-i.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(a=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var t=o.apply(this,n(i,arguments));return Object(t)===t?t:this}return o.apply(e,n(i,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,a.prototype=new u,u.prototype=null}return a}},2040:(e,t,r)=>{"use strict";var n=r(5448);e.exports=Function.prototype.bind||n},8600:(e,t,r)=>{"use strict";var n,o=r(5200),a=r(288),i=r(632),s=Function,l=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(T){c=null}var u=function(){throw new i},d=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(t){return u}}}():u,p=r(8832)(),f=r(7656)(),m=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},v="undefined"!==typeof Uint8Array&&m?m(Uint8Array):n,g={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&p&&m?m((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&p&&m?m((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&m?m(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(T){var y=m(m(T));g["%Error.prototype%"]=y}var b=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&m&&(r=m(o.prototype))}return g[t]=r,r},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(2040),S=r(8956),O=w.call(Function.call,Array.prototype.concat),_=w.call(Function.apply,Array.prototype.splice),E=w.call(Function.call,String.prototype.replace),k=w.call(Function.call,String.prototype.slice),j=w.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,R=function(e,t){var r,n=e;if(S(x,n)&&(n="%"+(r=x[n])[0]+"%"),S(g,n)){var o=g[n];if(o===h&&(o=b(n)),"undefined"===typeof o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return E(e,C,(function(e,t,r,o){n[n.length]=r?E(o,P,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=R("%"+n+"%",t),s=o.name,l=o.value,u=!1,d=o.alias;d&&(n=d[0],_(r,O([0,1],d)));for(var p=1,f=!0;p<r.length;p+=1){var m=r[p],h=k(m,0,1),v=k(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new a("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),S(g,s="%"+(n+="."+m)+"%"))l=g[s];else if(null!=l){if(!(m in l)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var y=c(l,m);l=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[m]}else f=S(l,m),l=l[m];f&&!u&&(g[s]=l)}}return l}},5884:(e,t,r)=>{"use strict";var n=r(8600)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(o){n=null}e.exports=n},9256:(e,t,r)=>{"use strict";var n=r(8600)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},7656:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},8832:(e,t,r)=>{"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(8180);e.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},8180:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},2324:(e,t,r)=>{"use strict";var n=r(8180);e.exports=function(){return n()&&!!Symbol.toStringTag}},6756:e=>{"use strict";var t={}.hasOwnProperty,r=Function.prototype.call;e.exports=r.bind?r.bind(t):function(e,n){return r.call(t,e,n)}},8956:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=r(2040);e.exports=a.call(n,o)},3164:(e,t,r)=>{"use strict";var n=r(3904),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(m){var o=f(r);o&&o!==m&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),h=l(r),v=0;v<i.length;++v){var g=i[v];if(!a[g]&&(!n||!n[g])&&(!h||!h[g])&&(!s||!s[g])){var y=p(r,g);try{c(t,g,y)}catch(b){}}}}return t}},4744:(e,t)=>{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case h:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===i||e===f||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},3904:(e,t,r)=>{"use strict";e.exports=r(4744)},8648:function(e,t){var r,n,o;n=[],void 0===(o="function"===typeof(r=function(){var e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopi],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1i"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopi,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],o=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],a=new RegExp("(_ids|_id)$","g"),i=new RegExp("_","g"),s=new RegExp("[ _]","g"),l=new RegExp("([A-Z])","g"),c=new RegExp("^_"),u={_apply_rules:function(e,t,r,n){if(n)e=n;else if(!(u.indexOf(r,e.toLowerCase())>-1))for(var o=0,a=t.length;o<a;o++)if(e.match(t[o][0])){void 0!==t[o][1]&&(e=e.replace(t[o][0],t[o][1]));break}return e},indexOf:function(e,t,r,n){r||(r=-1);for(var o=-1,a=r,i=e.length;a<i;a++)if(e[a]===t||n&&n(e[a],t)){o=a;break}return o},pluralize:function(t,n){return u._apply_rules(t,r,e,n)},singularize:function(t,r){return u._apply_rules(t,n,e,r)},inflect:function(t,o,a,i){return o=parseInt(o,10),isNaN(o)?t:0===o||o>1?u._apply_rules(t,r,e,i):u._apply_rules(t,n,e,a)},camelize:function(e,t){for(var r,n,o,a,i=e.split("/"),s=0,l=i.length;s<l;s++){for(n=0,o=(r=i[s].split("_")).length;n<o;n++)0!==n&&(r[n]=r[n].toLowerCase()),a=r[n].charAt(0),a=t&&0===s&&0===n?a.toLowerCase():a.toUpperCase(),r[n]=a+r[n].substring(1);i[s]=r.join("")}return i.join("::")},underscore:function(e,t){if(t&&e===e.toUpperCase())return e;for(var r=e.split("::"),n=0,o=r.length;n<o;n++)r[n]=r[n].replace(l,"_$1"),r[n]=r[n].replace(c,"");return r.join("/").toLowerCase()},humanize:function(e,t){return e=(e=(e=e.toLowerCase()).replace(a,"")).replace(i," "),t||(e=u.capitalize(e)),e},capitalize:function(e){return(e=e.toLowerCase()).substring(0,1).toUpperCase()+e.substring(1)},dasherize:function(e){return e.replace(s,"-")},titleize:function(e){for(var t,r,n,a=(e=e.toLowerCase().replace(i," ")).split(" "),s=0,l=a.length;s<l;s++){for(r=0,n=(t=a[s].split("-")).length;r<n;r++)u.indexOf(o,t[r].toLowerCase())<0&&(t[r]=u.capitalize(t[r]));a[s]=t.join("-")}return e=(e=a.join(" ")).substring(0,1).toUpperCase()+e.substring(1)},demodulize:function(e){var t=e.split("::");return t[t.length-1]},tableize:function(e){return e=u.underscore(e),e=u.pluralize(e)},classify:function(e){return e=u.camelize(e),e=u.singularize(e)},foreign_key:function(e,t){return e=u.demodulize(e),e=u.underscore(e)+(t?"":"_")+"id"},ordinalize:function(e){for(var t=e.split(" "),r=0,n=t.length;r<n;r++){var o=parseInt(t[r],10);if(!isNaN(o)){var a=t[r].substring(t[r].length-2),i=t[r].substring(t[r].length-1),s="th";"11"!=a&&"12"!=a&&"13"!=a&&("1"===i?s="st":"2"===i?s="nd":"3"===i&&(s="rd")),t[r]+=s}}return t.join(" ")},transform:function(e,t){for(var r=0,n=t.length;r<n;r++){var o=t[r];u.hasOwnProperty(o)&&(e=u[o](e))}return e},version:"1.12.0"};return u})?r.apply(t,n):r)||(e.exports=o)},7444:e=>{"use strict";var t,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(f){f!==r&&(o=null)}else o=null;var a=/^\s*class\b/,i=function(e){try{var t=n.call(e);return a.test(t)}catch(r){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"===typeof document){var p=document.all;l.call(p)===l.call(document.all)&&(d=function(e){if((u||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=o?function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,t)}catch(n){if(n!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},7436:(e,t,r)=>{"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,a=r(2324)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object Date]"===o.call(e))}},7484:(e,t,r)=>{"use strict";var n,o,a,i,s=r(4160),l=r(2324)();if(l){n=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),a={};var c=function(){throw a};i={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=c)}var u=s("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&n(t,"value")))return!1;try{o(e,i)}catch(r){return r===a}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},7588:(e,t,r)=>{"use strict";var n=String.prototype.valueOf,o=Object.prototype.toString,a=r(2324)();e.exports=function(e){return"string"===typeof e||"object"===typeof e&&(a?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object String]"===o.call(e))}},7776:(e,t,r)=>{"use strict";var n=Object.prototype.toString;if(r(8832)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},4736:e=>{"use strict";e.exports="\n"},6520:e=>{"use strict";e.exports=function(e,t,r){if("string"!==typeof e)throw new TypeError('Invalid param "textDelimiter", must be a string.');if("string"!==typeof t)throw new TypeError('Invalid param "rowDelimiter", must be a string.');var n=new RegExp("\\"+e,"g"),o=e+e,a='"'===e?function(e){return e.indexOf(t)>=0||e.indexOf("\n")>=0||e.indexOf('"')>=0}:function(e){return e.indexOf(t)>=0||e.indexOf("\n")>=0};return function(t){return r&&(t=""+t),t.replace?(t=t.replace(n,o),(r||a(t))&&(t=e+t+e),t):t}}},8472:e=>{"use strict";e.exports.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},e.exports.isArray=function(e){return Array.isArray(e)},e.exports.isObject=function(e){return e instanceof Object},e.exports.isString=function(e){return"string"===typeof e},e.exports.isNumber=function(e){return"number"===typeof e},e.exports.isBoolean=function(e){return"boolean"===typeof e},e.exports.isDate=function(e){return e instanceof Date}},2604:(e,t,r)=>{"use strict";var n=r(4736),o=r(8472);e.exports=function(e,t){if(!e||!o.isArray(e))throw new TypeError('Invalid params "rows" for joinRows. Must be an array of string.');return e.join(t||n||"\n")}},5644:e=>{"use strict";e.exports=function(e){throw new Error("jsonexport called without third argument as a callback and is required")}},640:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(984),a=r(5644),i=(r(8472),r(4736));e.exports=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:i||"\n",mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,s=void 0;if(3===arguments.length){var l=Array.prototype.slice.call(arguments);t=l[0],r=l[1],s=l[2]}else if(2===arguments.length){var c,u=Array.prototype.slice.call(arguments);t=u[0],"function"===typeof(c=u[1])?s=c:"object"===("undefined"===typeof c?"undefined":n(c))&&(r=c)}else{if(1!==arguments.length)return new a(new o(e));var d=Array.prototype.slice.call(arguments)[0];if("object"===("undefined"===typeof d?"undefined":n(d))){var p=Object.keys(e),f=Object.keys(d),m=f.every((function(e){return p.includes(e)}));f.length>0&&m?r=d:t=d}else t=d}var h=Object.assign({},e,r),v=new o(h);return t?new Promise((function(e,r){v.parse(t,(function(t,n){return s?s(t,n):t?r(t):r?e(n):void 0}))})):new a(v)}},984:(e,t,r)=>{"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=r(2604),a=r(4764),i=r(8472),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t||{},this._handler=new a(this._options),this._headers=this._options.headers||[],this._escape=r(6520)(this._options.textDelimiter,this._options.rowDelimiter,this._options.forceTextDelimiter)}return n(e,[{key:"parse",value:function(e,t,r){return i.isArray(e)?t(null,this._parseArray(e,r)):i.isObject(e)?t(null,this._parseObject(e)):t(new Error("Unable to parse the JSON object, its not an Array or Object."))}},{key:"_checkRows",value:function(e){var t=null,r=[],n=function(e,r){return""===e||void 0===e?t[r]:e},o=!0,a=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=this._headers.length-c.length;u>0&&(c=c.concat(Array(u).join(".").split("."))),t&&this._options.fillGaps&&(c=c.map(n)),r.push(c.join(this._options.rowDelimiter)),t=c}}catch(d){a=!0,i=d}finally{try{!o&&l.return&&l.return()}finally{if(a)throw i}}return r}},{key:"_parseArray",value:function(e,t){var r=this;this._headers=this._headers||[];var n,a=[],i=function(e){var t=r._headers.indexOf(e);return-1===t&&(r._headers.push(e),t=r._headers.indexOf(e)),t};n=function(e){var t=[],n=function(e){return t.push(e.map((function(e){return null!=e?e:""})))},o=function(){return new Array(r._headers.length).fill(null)},s={},l=o(),c=!0,u=!1,d=void 0;try{for(var p,f=e[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var m=p.value,h=i(m.item);void 0!=l[h]&&(n(l),l=o()),s[h]=s[h]||0,r._options.fillTopRow&&s[h]<t.length?(t[s[h]][h]=r._escape(m.value),s[h]+=1):(l[h]=r._escape(m.value),s[h]+=1)}}catch(v){u=!0,d=v}finally{try{!c&&f.return&&f.return()}finally{if(u)throw d}}l.length>0&&n(l),a=a.concat(r._checkRows(t))};var s=!0,l=!1,c=void 0;try{for(var u,d=e[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var p=u.value;n(r._handler.check(p,r._options.mainPathItem,p,e))}}catch(f){l=!0,c=f}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}return!t&&r._options.includeHeaders&&a.unshift(this.headers),o(a,r._options.endOfLine)}},{key:"_parseObject",value:function(e){var t,r=this,n=[],a=[[],[]];for(var i in t=function(e){var t=e.value||0===e.value?e.value.toString():r._options.undefinedString;if(t=r._escape(t),r._options.verticalOutput){var o=[e.item,t];n.push(o.join(r._options.rowDelimiter))}else a[0].push(e.item),a[1].push(t)},e){var s="";this._options.mainPathItem&&(s=this._options.mainPathItem+this._options.headerPathString),this._handler.check(e[i],s+i,i,e).forEach(t)}return this._options.verticalOutput||(n.push(a[0].join(this._options.rowDelimiter)),n.push(a[1].join(this._options.rowDelimiter))),o(n,this._options.endOfLine)}},{key:"headers",get:function(){var e=this,t=this._headers;return this._options.rename&&this._options.rename.length>0&&(t=t.map((function(t){return e._options.rename[e._options.headers.indexOf(t)]||t}))),this._options.forceTextDelimiter&&(t=t.map((function(t){return""+e._options.textDelimiter+t+e._options.textDelimiter}))),this._options.mapHeaders&&(t=t.map(this._options.mapHeaders)),t.join(this._options.rowDelimiter)}}]),e}();e.exports=s},4764:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var a=r(8472),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t,this._options.typeHandlers=this._options.typeHandlers||{}}return o(e,[{key:"_setHeaders",value:function(e,t){var r=this;return t?e.map((function(e){return e.item=e.item?t+r._options.headerPathString+e.item:t,e})):e}},{key:"castValue",value:function(e,t,r,n){var o=this._options.typeHandlers;for(var a in o)if(l(e,a)){e=o[a].call(o,e,r,n);break}return e}},{key:"checkComplex",value:function(e,t){if(a.isDate(e))return[{item:t,value:(this._options.handleDate||this._handleDate)(e,t)}];if(a.isArray(e)){var r=this._handleArray(e,t);return this._setHeaders(r,t)}if(a.isObject(e)){var n=this._handleObject(e);return this._setHeaders(n,t)}return[{item:t,value:""}]}},{key:"check",value:function(e,t,r,o){switch("undefined"===typeof(e=this.castValue(e,t,r,o))?"undefined":n(e)){case"string":return[{item:t,value:this._handleString(e,t)}];case"number":return[{item:t,value:this._handleNumber(e,t)}];case"boolean":return[{item:t,value:this._handleBoolean.bind(this)(e,t)}]}return this.checkComplex(e,t)}},{key:"_handleObject",value:function(e){var t=[];for(var r in e){var n=e[r],o=this.check(n,r,r,e);t=t.concat(o)}return t}},{key:"_handleArray",value:function(e){for(var t,r=[],n=0;n<e.length;++n){var o=e[n],a=this.check(o,null,n,e);if(0!==a.length){var i=a[0];i.item||void 0===t?(a.length>0&&!i.item&&void 0===t&&(t=i),r=r.concat(a)):t.value+=this._options.arrayPathString+i.value}}return r}},{key:"_handleBoolean",value:function(e){return e?this._options.booleanTrueString||"true":this._options.booleanFalseString||"false"}},{key:"_handleString",value:function(e){return e}},{key:"_handleNumber",value:function(e){return e}},{key:"_handleDate",value:function(e){return e.toLocaleDateString()}}]),e}();e.exports=i;var s="undefined"===typeof window?r.g:window;function l(e,t){if(e instanceof s[t])return!0;switch("undefined"===typeof e?"undefined":n(e)){case"string":return"String"===t;case"boolean":return"Boolean"===t;case"number":return"Number"===t}return!1}},8812:(e,t,r)=>{var n=r(9976)(r(2352),"DataView");e.exports=n},44:(e,t,r)=>{var n=r(2992),o=r(9168),a=r(5500),i=r(2640),s=r(9008);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},1076:(e,t,r)=>{var n=r(5628),o=r(8984),a=r(712),i=r(8580),s=r(8288);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},6040:(e,t,r)=>{var n=r(9976)(r(2352),"Map");e.exports=n},448:(e,t,r)=>{var n=r(8512),o=r(184),a=r(4128),i=r(9955),s=r(8532);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},7192:(e,t,r)=>{var n=r(9976)(r(2352),"Promise");e.exports=n},9808:(e,t,r)=>{var n=r(9976)(r(2352),"Set");e.exports=n},7520:(e,t,r)=>{var n=r(448),o=r(2480),a=r(5496);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},3288:(e,t,r)=>{var n=r(1076),o=r(2176),a=r(7196),i=r(7276),s=r(8072),l=r(6872);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},1728:(e,t,r)=>{var n=r(2352).Symbol;e.exports=n},3764:(e,t,r)=>{var n=r(2352).Uint8Array;e.exports=n},3800:(e,t,r)=>{var n=r(9976)(r(2352),"WeakMap");e.exports=n},7416:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},328:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},7472:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}},7600:(e,t,r)=>{var n=r(9980);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},8664:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},8307:(e,t,r)=>{var n=r(5544),o=r(8820),a=r(2336),i=r(5933),s=r(7828),l=r(6660),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),u=!r&&o(e),d=!r&&!u&&i(e),p=!r&&!u&&!d&&l(e),f=r||u||d||p,m=f?n(e.length,String):[],h=m.length;for(var v in e)!t&&!c.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||m.push(v);return m}},9620:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},7456:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},6220:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7872:(e,t,r)=>{var n=r(4456),o=r(16);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},9208:(e,t,r)=>{var n=r(4456),o=r(16),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},9056:(e,t,r)=>{var n=r(16);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9416:(e,t,r)=>{var n=r(5632),o=r(7360);e.exports=function(e,t){return e&&n(t,o(t),e)}},5620:(e,t,r)=>{var n=r(5632),o=r(1156);e.exports=function(e,t){return e&&n(t,o(t),e)}},4456:(e,t,r)=>{var n=r(8736);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},6128:(e,t,r)=>{var n=r(3288),o=r(328),a=r(9208),i=r(9416),s=r(5620),l=r(9912),c=r(4320),u=r(3143),d=r(3568),p=r(772),f=r(9696),m=r(1284),h=r(8584),v=r(1320),g=r(5856),y=r(2336),b=r(5933),x=r(6964),w=r(1792),S=r(2692),O=r(7360),_=r(1156),E="[object Arguments]",k="[object Function]",j="[object Object]",C={};C[E]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[j]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[k]=C["[object WeakMap]"]=!1,e.exports=function e(t,r,P,R,T,A){var I,M=1&r,N=2&r,L=4&r;if(P&&(I=T?P(t,R,T,A):P(t)),void 0!==I)return I;if(!w(t))return t;var F=y(t);if(F){if(I=h(t),!M)return c(t,I)}else{var z=m(t),D=z==k||"[object GeneratorFunction]"==z;if(b(t))return l(t,M);if(z==j||z==E||D&&!T){if(I=N||D?{}:g(t),!M)return N?d(t,s(I,t)):u(t,i(I,t))}else{if(!C[z])return T?t:{};I=v(t,z,M)}}A||(A=new n);var B=A.get(t);if(B)return B;A.set(t,I),S(t)?t.forEach((function(n){I.add(e(n,r,P,n,t,A))})):x(t)&&t.forEach((function(n,o){I.set(o,e(n,r,P,o,t,A))}));var V=F?void 0:(L?N?f:p:N?_:O)(t);return o(V||t,(function(n,o){V&&(n=t[o=n]),a(I,o,e(n,r,P,o,t,A))})),I}},5280:(e,t,r)=>{var n=r(1792),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},8756:(e,t,r)=>{var n=r(7520),o=r(7600),a=r(8664),i=r(9620),s=r(372),l=r(6029);e.exports=function(e,t,r,c){var u=-1,d=o,p=!0,f=e.length,m=[],h=t.length;if(!f)return m;r&&(t=i(t,s(r))),c?(d=a,p=!1):t.length>=200&&(d=l,p=!1,t=new n(t));e:for(;++u<f;){var v=e[u],g=null==r?v:r(v);if(v=c||0!==v?v:0,p&&g===g){for(var y=h;y--;)if(t[y]===g)continue e;m.push(v)}else d(t,g,c)||m.push(v)}return m}},8624:e=>{e.exports=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},3460:(e,t,r)=>{var n=r(7456),o=r(6400);e.exports=function e(t,r,a,i,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l<c;){var u=t[l];r>0&&a(u)?r>1?e(u,r-1,a,i,s):n(s,u):i||(s[s.length]=u)}return s}},3948:(e,t,r)=>{var n=r(2608)();e.exports=n},6016:(e,t,r)=>{var n=r(6284),o=r(3088);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[o(t[r++])];return r&&r==a?e:void 0}},1044:(e,t,r)=>{var n=r(7456),o=r(2336);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},4192:(e,t,r)=>{var n=r(1728),o=r(4328),a=r(9192),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},7840:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9980:(e,t,r)=>{var n=r(8624),o=r(2939),a=r(9116);e.exports=function(e,t,r){return t===t?a(e,t,r):n(e,o,r)}},5464:(e,t,r)=>{var n=r(4192),o=r(6920);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},9852:(e,t,r)=>{var n=r(1788),o=r(6920);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!==t&&r!==r:n(t,r,a,i,e,s))}},1788:(e,t,r)=>{var n=r(3288),o=r(1304),a=r(7704),i=r(6664),s=r(1284),l=r(2336),c=r(5933),u=r(6660),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,v,g){var y=l(e),b=l(t),x=y?p:s(e),w=b?p:s(t),S=(x=x==d?f:x)==f,O=(w=w==d?f:w)==f,_=x==w;if(_&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(_&&!S)return g||(g=new n),y||u(e)?o(e,t,r,h,v,g):a(e,t,x,r,h,v,g);if(!(1&r)){var E=S&&m.call(e,"__wrapped__"),k=O&&m.call(t,"__wrapped__");if(E||k){var j=E?e.value():e,C=k?t.value():t;return g||(g=new n),v(j,C,r,h,g)}}return!!_&&(g||(g=new n),i(e,t,r,h,v,g))}},2227:(e,t,r)=>{var n=r(1284),o=r(6920);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},8304:(e,t,r)=>{var n=r(3288),o=r(9852);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new n;if(a)var m=a(d,p,u,e,t,f);if(!(void 0===m?o(p,d,3,a,f):m))return!1}}return!0}},2939:e=>{e.exports=function(e){return e!==e}},9704:(e,t,r)=>{var n=r(4600),o=r(2092),a=r(1792),i=r(172),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:s).test(i(e))}},3096:(e,t,r)=>{var n=r(1284),o=r(6920);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},3544:(e,t,r)=>{var n=r(4192),o=r(7184),a=r(6920),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},3527:(e,t,r)=>{var n=r(6208),o=r(8056),a=r(2208),i=r(2336),s=r(9072);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},1364:(e,t,r)=>{var n=r(7816),o=r(7452),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},4124:(e,t,r)=>{var n=r(1792),o=r(7816),a=r(2768),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&r.push(s);return r}},6208:(e,t,r)=>{var n=r(8304),o=r(6152),a=r(6600);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},8056:(e,t,r)=>{var n=r(9852),o=r(8564),a=r(7552),i=r(7424),s=r(668),l=r(6600),c=r(3088);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},3156:(e,t,r)=>{var n=r(3288),o=r(7872),a=r(3948),i=r(2416),s=r(1792),l=r(1156),c=r(3340);e.exports=function e(t,r,u,d,p){t!==r&&a(r,(function(a,l){if(p||(p=new n),s(a))i(t,r,l,u,e,d,p);else{var f=d?d(c(t,l),a,l+"",t,r,p):void 0;void 0===f&&(f=a),o(t,l,f)}}),l)}},2416:(e,t,r)=>{var n=r(7872),o=r(9912),a=r(672),i=r(4320),s=r(5856),l=r(8820),c=r(2336),u=r(5432),d=r(5933),p=r(4600),f=r(1792),m=r(908),h=r(6660),v=r(3340),g=r(20);e.exports=function(e,t,r,y,b,x,w){var S=v(e,r),O=v(t,r),_=w.get(O);if(_)n(e,r,_);else{var E=x?x(S,O,r+"",e,t,w):void 0,k=void 0===E;if(k){var j=c(O),C=!j&&d(O),P=!j&&!C&&h(O);E=O,j||C||P?c(S)?E=S:u(S)?E=i(S):C?(k=!1,E=o(O,!0)):P?(k=!1,E=a(O,!0)):E=[]:m(O)||l(O)?(E=S,l(S)?E=g(S):f(S)&&!p(S)||(E=s(O))):k=!1}k&&(w.set(O,E),b(E,O,y,x,w),w.delete(O)),n(e,r,E)}}},7344:(e,t,r)=>{var n=r(756),o=r(7552);e.exports=function(e,t){return n(e,t,(function(t,r){return o(e,r)}))}},756:(e,t,r)=>{var n=r(6016),o=r(6024),a=r(6284);e.exports=function(e,t,r){for(var i=-1,s=t.length,l={};++i<s;){var c=t[i],u=n(e,c);r(u,c)&&o(l,a(c,e),u)}return l}},40:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9480:(e,t,r)=>{var n=r(6016);e.exports=function(e){return function(t){return n(t,e)}}},4724:(e,t,r)=>{var n=r(2208),o=r(4664),a=r(7176);e.exports=function(e,t){return a(o(e,t,n),e+"")}},6024:(e,t,r)=>{var n=r(9208),o=r(6284),a=r(7828),i=r(1792),s=r(3088);e.exports=function(e,t,r,l){if(!i(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var f=s(t[c]),m=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var h=p[f];void 0===(m=l?l(h,f,p):void 0)&&(m=i(h)?h:a(t[c+1])?[]:{})}n(p,f,m),p=p[f]}return e}},8676:(e,t,r)=>{var n=r(3219),o=r(8736),a=r(2208),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},6056:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}},5544:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6816:(e,t,r)=>{var n=r(1728),o=r(9620),a=r(2336),i=r(4056),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},3032:(e,t,r)=>{var n=r(6091),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},372:e=>{e.exports=function(e){return function(t){return e(t)}}},2684:(e,t,r)=>{var n=r(7520),o=r(7600),a=r(8664),i=r(6029),s=r(2832),l=r(1860);e.exports=function(e,t,r){var c=-1,u=o,d=e.length,p=!0,f=[],m=f;if(r)p=!1,u=a;else if(d>=200){var h=t?null:s(e);if(h)return l(h);p=!1,u=i,m=new n}else m=t?[]:f;e:for(;++c<d;){var v=e[c],g=t?t(v):v;if(v=r||0!==v?v:0,p&&g===g){for(var y=m.length;y--;)if(m[y]===g)continue e;t&&m.push(g),f.push(v)}else u(m,g,r)||(m!==f&&m.push(g),f.push(v))}return f}},344:(e,t,r)=>{var n=r(6284),o=r(5548),a=r(1288),i=r(3088);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},6029:e=>{e.exports=function(e,t){return e.has(t)}},6284:(e,t,r)=>{var n=r(2336),o=r(7424),a=r(3347),i=r(1024);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},9304:(e,t,r)=>{var n=r(3764);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},9912:(e,t,r)=>{e=r.nmd(e);var n=r(2352),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},7784:(e,t,r)=>{var n=r(9304);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},7336:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},484:(e,t,r)=>{var n=r(1728),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},672:(e,t,r)=>{var n=r(9304);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},4320:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},5632:(e,t,r)=>{var n=r(9208),o=r(4456);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),i?o(r,c,u):n(r,c,u)}return r}},3143:(e,t,r)=>{var n=r(5632),o=r(6328);e.exports=function(e,t){return n(e,o(e),t)}},3568:(e,t,r)=>{var n=r(5632),o=r(6080);e.exports=function(e,t){return n(e,o(e),t)}},6136:(e,t,r)=>{var n=r(2352)["__core-js_shared__"];e.exports=n},3744:(e,t,r)=>{var n=r(4724),o=r(8060);e.exports=function(e){return n((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t}))}},2608:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},2832:(e,t,r)=>{var n=r(9808),o=r(9788),a=r(1860),i=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=i},8736:(e,t,r)=>{var n=r(9976),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},1304:(e,t,r)=>{var n=r(7520),o=r(6220),a=r(6029);e.exports=function(e,t,r,i,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var m=-1,h=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var g=e[m],y=t[m];if(i)var b=c?i(y,g,m,t,e,l):i(g,y,m,e,t,l);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(g===e||s(g,e,r,i,l)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!s(g,y,r,i,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},7704:(e,t,r)=>{var n=r(1728),o=r(3764),a=r(16),i=r(1304),s=r(3728),l=r(1860),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var m=1&n;if(f||(f=l),e.size!=t.size&&!m)return!1;var h=p.get(e);if(h)return h==t;n|=2,p.set(e,t);var v=i(f(e),f(t),n,c,d,p);return p.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6664:(e,t,r)=>{var n=r(772),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var h=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<u;){var g=e[p=c[d]],y=t[p];if(a)var b=l?a(y,g,p,t,e,s):a(g,y,p,e,t,s);if(!(void 0===b?g===y||i(g,y,r,a,s):b)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}},8528:(e,t,r)=>{var n=r(1028),o=r(4664),a=r(7176);e.exports=function(e){return a(o(e,void 0,n),e+"")}},3024:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},772:(e,t,r)=>{var n=r(1044),o=r(6328),a=r(7360);e.exports=function(e){return n(e,a,o)}},9696:(e,t,r)=>{var n=r(1044),o=r(6080),a=r(1156);e.exports=function(e){return n(e,a,o)}},2872:(e,t,r)=>{var n=r(9995);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},6152:(e,t,r)=>{var n=r(668),o=r(7360);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},9976:(e,t,r)=>{var n=r(9704),o=r(4032);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},2420:(e,t,r)=>{var n=r(7672)(Object.getPrototypeOf,Object);e.exports=n},4328:(e,t,r)=>{var n=r(1728),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},6328:(e,t,r)=>{var n=r(7472),o=r(8520),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},6080:(e,t,r)=>{var n=r(7456),o=r(2420),a=r(6328),i=r(8520),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:i;e.exports=s},1284:(e,t,r)=>{var n=r(8812),o=r(6040),a=r(7192),i=r(9808),s=r(3800),l=r(4192),c=r(172),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",h=c(n),v=c(o),g=c(a),y=c(i),b=c(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=m||o&&x(new o)!=u||a&&x(a.resolve())!=d||i&&x(new i)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case h:return m;case v:return u;case g:return d;case y:return p;case b:return f}return t}),e.exports=x},4032:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7712:(e,t,r)=>{var n=r(6284),o=r(8820),a=r(2336),i=r(7828),s=r(7184),l=r(3088);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&r(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(p,u)&&(a(e)||o(e))}},2992:(e,t,r)=>{var n=r(1295);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9168:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},5500:(e,t,r)=>{var n=r(1295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},2640:(e,t,r)=>{var n=r(1295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},9008:(e,t,r)=>{var n=r(1295);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},8584:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},1320:(e,t,r)=>{var n=r(9304),o=r(7784),a=r(7336),i=r(484),s=r(672);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},5856:(e,t,r)=>{var n=r(5280),o=r(2420),a=r(7816);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},6400:(e,t,r)=>{var n=r(1728),o=r(8820),a=r(2336),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},7828:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},8060:(e,t,r)=>{var n=r(16),o=r(1692),a=r(7828),i=r(1792);e.exports=function(e,t,r){if(!i(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&a(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},7424:(e,t,r)=>{var n=r(2336),o=r(4056),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},9995:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},2092:(e,t,r)=>{var n=r(6136),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},7816:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},668:(e,t,r)=>{var n=r(1792);e.exports=function(e){return e===e&&!n(e)}},5628:e=>{e.exports=function(){this.__data__=[],this.size=0}},8984:(e,t,r)=>{var n=r(9056),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},712:(e,t,r)=>{var n=r(9056);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8580:(e,t,r)=>{var n=r(9056);e.exports=function(e){return n(this.__data__,e)>-1}},8288:(e,t,r)=>{var n=r(9056);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},8512:(e,t,r)=>{var n=r(44),o=r(1076),a=r(6040);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},184:(e,t,r)=>{var n=r(2872);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},4128:(e,t,r)=>{var n=r(2872);e.exports=function(e){return n(this,e).get(e)}},9955:(e,t,r)=>{var n=r(2872);e.exports=function(e){return n(this,e).has(e)}},8532:(e,t,r)=>{var n=r(2872);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},3728:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6600:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},1600:(e,t,r)=>{var n=r(3416);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},1295:(e,t,r)=>{var n=r(9976)(Object,"create");e.exports=n},7452:(e,t,r)=>{var n=r(7672)(Object.keys,Object);e.exports=n},2768:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1472:(e,t,r)=>{e=r.nmd(e);var n=r(3024),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},9192:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7672:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},4664:(e,t,r)=>{var n=r(7416),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=r(l),n(e,this,c)}}},1288:(e,t,r)=>{var n=r(6016),o=r(6056);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},2352:(e,t,r)=>{var n=r(3024),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},3340:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},2480:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},5496:e=>{e.exports=function(e){return this.__data__.has(e)}},1860:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7176:(e,t,r)=>{var n=r(8676),o=r(2960)(n);e.exports=o},2960:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},2176:(e,t,r)=>{var n=r(1076);e.exports=function(){this.__data__=new n,this.size=0}},7196:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7276:e=>{e.exports=function(e){return this.__data__.get(e)}},8072:e=>{e.exports=function(e){return this.__data__.has(e)}},6872:(e,t,r)=>{var n=r(1076),o=r(6040),a=r(448);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},9116:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},3347:(e,t,r)=>{var n=r(1600),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},3088:(e,t,r)=>{var n=r(4056);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},172:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},6091:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},1804:(e,t,r)=>{var n=r(6128);e.exports=function(e){return n(e,5)}},3219:e=>{e.exports=function(e){return function(){return e}}},4888:(e,t,r)=>{var n=r(1792),o=r(6652),a=r(3016),i=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,p,f,m=0,h=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=c;return l=c=void 0,m=t,d=e.apply(n,r)}function b(e){var r=e-f;return void 0===f||r>=t||r<0||v&&e-m>=u}function x(){var e=o();if(b(e))return w(e);p=setTimeout(x,function(e){var r=t-(e-f);return v?s(r,u-(e-m)):r}(e))}function w(e){return p=void 0,g&&l?y(e):(l=c=void 0,d)}function S(){var e=o(),r=b(e);if(l=arguments,c=this,f=e,r){if(void 0===p)return function(e){return m=e,p=setTimeout(x,t),h?y(e):d}(f);if(v)return clearTimeout(p),p=setTimeout(x,t),y(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=a(t)||0,n(r)&&(h=!!r.leading,u=(v="maxWait"in r)?i(a(r.maxWait)||0,t):u,g="trailing"in r?!!r.trailing:g),S.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=f=c=p=void 0},S.flush=function(){return void 0===p?d:w(o())},S}},9968:(e,t,r)=>{var n=r(4724),o=r(16),a=r(8060),i=r(1156),s=Object.prototype,l=s.hasOwnProperty,c=n((function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(n=1);++r<n;)for(var u=t[r],d=i(u),p=-1,f=d.length;++p<f;){var m=d[p],h=e[m];(void 0===h||o(h,s[m])&&!l.call(e,m))&&(e[m]=u[m])}return e}));e.exports=c},4e3:(e,t,r)=>{var n=r(8756),o=r(3460),a=r(4724),i=r(5432),s=a((function(e,t){return i(e)?n(e,o(t,1,i,!0)):[]}));e.exports=s},16:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},1028:(e,t,r)=>{var n=r(3460);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},8564:(e,t,r)=>{var n=r(6016);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},7552:(e,t,r)=>{var n=r(7840),o=r(7712);e.exports=function(e,t){return null!=e&&o(e,t,n)}},2208:e=>{e.exports=function(e){return e}},8820:(e,t,r)=>{var n=r(5464),o=r(6920),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},2336:e=>{var t=Array.isArray;e.exports=t},1692:(e,t,r)=>{var n=r(4600),o=r(7184);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},5432:(e,t,r)=>{var n=r(1692),o=r(6920);e.exports=function(e){return o(e)&&n(e)}},5933:(e,t,r)=>{e=r.nmd(e);var n=r(2352),o=r(6824),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},436:(e,t,r)=>{var n=r(9852);e.exports=function(e,t){return n(e,t)}},4600:(e,t,r)=>{var n=r(4192),o=r(1792);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7184:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6964:(e,t,r)=>{var n=r(2227),o=r(372),a=r(1472),i=a&&a.isMap,s=i?o(i):n;e.exports=s},1792:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6920:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},908:(e,t,r)=>{var n=r(4192),o=r(2420),a=r(6920),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},2692:(e,t,r)=>{var n=r(3096),o=r(372),a=r(1472),i=a&&a.isSet,s=i?o(i):n;e.exports=s},4056:(e,t,r)=>{var n=r(4192),o=r(6920);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6660:(e,t,r)=>{var n=r(3544),o=r(372),a=r(1472),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},7360:(e,t,r)=>{var n=r(8307),o=r(1364),a=r(1692);e.exports=function(e){return a(e)?n(e):o(e)}},1156:(e,t,r)=>{var n=r(8307),o=r(4124),a=r(1692);e.exports=function(e){return a(e)?n(e,!0):o(e)}},5548:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},3416:(e,t,r)=>{var n=r(448);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},9940:(e,t,r)=>{var n=r(3156),o=r(3744)((function(e,t,r){n(e,t,r)}));e.exports=o},9788:e=>{e.exports=function(){}},6652:(e,t,r)=>{var n=r(2352);e.exports=function(){return n.Date.now()}},5940:(e,t,r)=>{var n=r(7344),o=r(8528)((function(e,t){return null==e?{}:n(e,t)}));e.exports=o},6696:(e,t,r)=>{var n=r(9620),o=r(3527),a=r(756),i=r(9696);e.exports=function(e,t){if(null==e)return{};var r=n(i(e),(function(e){return[e]}));return t=o(t),a(e,r,(function(e,r){return t(e,r[0])}))}},9072:(e,t,r)=>{var n=r(40),o=r(9480),a=r(7424),i=r(3088);e.exports=function(e){return a(e)?n(i(e)):o(e)}},9140:(e,t,r)=>{var n=r(6024);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},8520:e=>{e.exports=function(){return[]}},6824:e=>{e.exports=function(){return!1}},3016:(e,t,r)=>{var n=r(3032),o=r(1792),a=r(4056),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):i.test(e)?NaN:+e}},20:(e,t,r)=>{var n=r(5632),o=r(1156);e.exports=function(e){return n(e,o(e))}},1024:(e,t,r)=>{var n=r(6816);e.exports=function(e){return null==e?"":n(e)}},176:(e,t,r)=>{var n=r(3460),o=r(4724),a=r(2684),i=r(5432),s=o((function(e){return a(n(e,1,i,!0))}));e.exports=s},8968:(e,t,r)=>{var n=r(344);e.exports=function(e,t){return null==e||n(e,t)}},540:(e,t,r)=>{"use strict";var n=r(6524),o=r(1264),a=r(1568),i=r(6756),s=r(1060),l=function(e){a(!1,e)},c=String.prototype.replace,u=String.prototype.split,d="||||",p=function(e){var t=e%100,r=t%10;return 11!==t&&1===r?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},f={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:p,chinese:function(){return 0},croatian:p,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:p,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function m(e,t){var r=function(e){var t={};return n(o(e),(function(e){var r=e[0],o=e[1];n(o,(function(e){t[e]=r}))})),t}(e.pluralTypeToLanguages);return r[t]||r[u.call(t,/-/,1)[0]]||r.en}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var v=function(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=m(t,r))&&(e[r]=n),n}}(),g=/%\{(.*?)\}/g;function y(e,t,r,n,o,a){if("string"!==typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var l=e,p=n||g,m=a||c,h="number"===typeof t?{smart_count:t}:t;if(null!=h.smart_count&&e){var y=o||f,b=u.call(e,d),x=function(e,t,r){return e.pluralTypes[t](r)}(y,v(y,r||"en"),h.smart_count);l=s(b[x]||b[0])}return l=m.call(l,p,(function(e,t){return i(h,t)&&null!=h[t]?h[t]:e}))}function b(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?y:null;this.onMissingKey="function"===typeof t.onMissingKey?t.onMissingKey:r,this.warn=t.warn||l,this.replaceImplementation=t.replace||c,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===d||r===d)throw new RangeError('"'+d+'" token is reserved for pluralization');return new RegExp(h(t)+"(.*?)"+h(r),"g")}(t.interpolation),this.pluralRules=t.pluralRules||f}b.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},b.prototype.extend=function(e,t){n(o(e||{}),(function(e){var r=e[0],n=e[1],o=t?t+"."+r:r;"object"===typeof n?this.extend(n,o):this.phrases[o]=n}),this)},b.prototype.unset=function(e,t){"string"===typeof e?delete this.phrases[e]:n(o(e||{}),(function(e){var r=e[0],n=e[1],o=t?t+"."+r:r;"object"===typeof n?this.unset(n,o):delete this.phrases[o]}),this)},b.prototype.clear=function(){this.phrases={}},b.prototype.replace=function(e){this.clear(),this.extend(e)},b.prototype.t=function(e,t){var r,n,o=null==t?{}:t;if("string"===typeof this.phrases[e])r=this.phrases[e];else if("string"===typeof o._)r=o._;else if(this.onMissingKey){n=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return"string"===typeof r&&(n=y(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n},b.prototype.has=function(e){return i(this.phrases,e)},b.transformPhrase=function(e,t,r){return y(e,t,r)},e.exports=b},4976:(e,t,r)=>{var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&o&&"function"===typeof o.get?o.get:null,i=n&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,h=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,O=Array.prototype.concat,_=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,j="function"===typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,P="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"===typeof Symbol&&"object"===typeof Symbol.iterator,T="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,I=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-k(-e):k(e);if(n!==e){var o=String(n),a=y.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var N=r(6204),L=N.custom,F=W(L)?L:null;function z(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function D(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return"[object Array]"===H(e)&&(!T||!("object"===typeof e&&T in e))}function V(e){return"[object RegExp]"===H(e)&&(!T||!("object"===typeof e&&T in e))}function W(e){if(R)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!P)return!1;try{return P.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(U(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!U(l,"customInspect")||l.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Q(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return x?M(t,S):S}if("bigint"===typeof t){var k=String(t)+"n";return x?M(t,k):k}var C="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=C&&C>0&&"object"===typeof t)return B(t)?"[Array]":"[Object]";var L=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=_.call(Array(e.indent+1)," ")}return{base:r,prev:_.call(Array(t+1),r)}}(l,o);if("undefined"===typeof s)s=[];else if($(s,t)>=0)return"[Circular]";function q(t,r,n){if(r&&(s=E.call(s)).push(r),n){var a={depth:l.depth};return U(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!V(t)){var K=function(e){if(e.name)return e.name;var t=g.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,q);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(ee.length>0?" { "+_.call(ee,", ")+" }":"")}if(W(t)){var te=R?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!==typeof t||R?te:G(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+w.call(String(t.nodeName)),ne=t.attributes||[],oe=0;oe<ne.length;oe++)re+=" "+ne[oe].name+"="+z(D(ne[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ae=Z(t,q);return L&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+J(ae,L)+"]":"[ "+_.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&(!T||!("object"===typeof e&&T in e))}(t)){var ie=Z(t,q);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(ie,", ")+" }":"{ ["+String(t)+"] "+_.call(O.call("[cause]: "+q(t.cause),ie),", ")+" }"}if("object"===typeof t&&h){if(F&&"function"===typeof t[F]&&N)return N(t,{depth:C-o});if("symbol"!==h&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return i&&i.call(t,(function(e,r){se.push(q(r,t,!0)+" => "+q(e,t))})),X("Map",a.call(t),se,L)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push(q(e,t))})),X("Set",c.call(t),le,L)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Y("WeakMap");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!T||!("object"===typeof e&&T in e))}(t))return G(q(Number(t)));if(function(e){if(!e||"object"!==typeof e||!j)return!1;try{return j.call(e),!0}catch(t){}return!1}(t))return G(q(j.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!T||!("object"===typeof e&&T in e))}(t))return G(m.call(t));if(function(e){return"[object String]"===H(e)&&(!T||!("object"===typeof e&&T in e))}(t))return G(q(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===H(e)&&(!T||!("object"===typeof e&&T in e))}(t)&&!V(t)){var ce=Z(t,q),ue=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",pe=!ue&&T&&Object(t)===t&&T in t?y.call(H(t),8,-1):de?"Object":"",fe=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||de?"["+_.call(O.call([],pe||[],de||[]),": ")+"] ":"");return 0===ce.length?fe+"{}":L?fe+"{"+J(ce,L)+"}":fe+"{ "+_.call(ce,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return q.call(e,t)}function H(e){return h.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Q(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(y.call(e,0,t.maxStringLength),t)+n}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function G(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?J(r,n):_.call(r,", "))+"}"}function J(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+_.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=B(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=U(e,o)?t(e[o],e):""}var a,i="function"===typeof C?C(e):[];if(R){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)U(e,l)&&(r&&String(Number(l))===l&&l<e.length||R&&a["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"===typeof C)for(var c=0;c<i.length;c++)A.call(e,i[c])&&n.push("["+t(i[c])+"]: "+t(e[i[c]],e));return n}},1340:(e,t,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=r(4536),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===a.call(e),n=i(e),s=t&&"[object String]"===a.call(e),p=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var m=c&&r;if(s&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)p.push(String(h));if(n&&e.length>0)for(var v=0;v<e.length;++v)p.push(String(v));else for(var g in e)m&&"prototype"===g||!o.call(e,g)||p.push(String(g));if(l)for(var y=function(e){if("undefined"===typeof window||!f)return d(e);try{return d(e)}catch(t){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!o.call(e,u[b])||p.push(u[b]);return p}}e.exports=n},4860:(e,t,r)=>{"use strict";var n=Array.prototype.slice,o=r(4536),a=Object.keys,i=a?function(e){return a(e)}:r(1340),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},4536:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7592:(e,t,r)=>{"use strict";var n=r(4700),o=r(4160),a=o("Object.prototype.propertyIsEnumerable"),i=o("Array.prototype.push");e.exports=function(e){var t=n(e),r=[];for(var o in t)a(t,o)&&i(r,[o,t[o]]);return r}},1264:(e,t,r)=>{"use strict";var n=r(2988),o=r(788),a=r(7592),i=r(6532),s=r(2360),l=o(i(),Object);n(l,{getPolyfill:i,implementation:a,shim:s}),e.exports=l},6532:(e,t,r)=>{"use strict";var n=r(7592);e.exports=function(){return"function"===typeof Object.entries?Object.entries:n}},2360:(e,t,r)=>{"use strict";var n=r(6532),o=r(2988);e.exports=function(){var e=n();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},6683:function(e,t){var r,n,o;n=[],r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,o={},a=0,i={parse:function(r,n){var s=(n=n||{}).dynamicTyping||!1;if(w(s)&&(n.dynamicTypingFunction=s,s={}),n.dynamicTyping=s,n.transform=!!w(n.transform)&&n.transform,n.worker&&i.WORKERS_SUPPORTED){var l=function(){if(!i.WORKERS_SUPPORTED)return!1;var r,n,s=(r=t.URL||t.webkitURL||null,n=e.toString(),i.BLOB_URL||(i.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),l=new t.Worker(s);return l.onmessage=v,l.id=a++,o[l.id]=l}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=w(n.step),n.chunk=w(n.chunk),n.complete=w(n.complete),n.error=w(n.error),delete n.worker,void l.postMessage({input:r,config:n,workerId:l.id})}var f=null;return i.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),f=n.download?new c(n):new d(n)):!0===r.readable&&w(r.read)&&w(r.on)?f=new p(n):(t.File&&r instanceof File||r instanceof Object)&&(f=new u(n)),f.stream(r)},unparse:function(e,t){var r=!1,n=!0,o=",",a="\r\n",s='"',l=s+s,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||i.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var p=new RegExp(m(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(s&&n){for(var c=0;c<e.length;c++)0<c&&(i+=o),i+=h(e[c],c);0<t.length&&(i+=a)}for(var u=0;u<t.length;u++){var d=s?e.length:t[u].length,p=!1,f=s?0===Object.keys(t[u]).length:0===t[u].length;if(r&&!s&&(p="greedy"===r?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===r&&s){for(var m=[],v=0;v<d;v++){var g=l?e[v]:v;m.push(t[u][g])}p=""===m.join("").trim()}if(!p){for(var y=0;y<d;y++){0<y&&!f&&(i+=o);var b=s&&l?e[y]:y;i+=h(t[u][b],y)}u<t.length-1&&(!r||0<d&&!f)&&(i+=a)}}return i}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,n=!0);var a=e.toString().replace(p,l);return(n=n||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(a,i.BAD_DELIMITERS)||-1<a.indexOf(o)||" "===a.charAt(0)||" "===a.charAt(a.length-1))?s+a+s:a}}};if(i.RECORD_SEP=String.fromCharCode(30),i.UNIT_SEP=String.fromCharCode(31),i.BYTE_ORDER_MARK="\ufeff",i.BAD_DELIMITERS=["\r","\n",'"',i.BYTE_ORDER_MARK],i.WORKERS_SUPPORTED=!r&&!!t.Worker,i.NODE_STREAM_INPUT=1,i.LocalChunkSize=10485760,i.RemoteChunkSize=5242880,i.DefaultDelimiter=",",i.Parser=h,i.ParserHandle=f,i.NetworkStreamer=c,i.FileStreamer=u,i.StringStreamer=d,i.ReadableStreamStreamer=p,t.jQuery){var s=t.jQuery;s.fn.parse=function(e){var r=e.config||{},n=[];return this.each((function(e){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)n.push({file:this.files[o],inputElem:this,instanceConfig:s.extend({},r)})})),o(),this;function o(){if(0!==n.length){var t,r,o,l,c=n[0];if(w(e.before)){var u=e.before(c.file,c.inputElem);if("object"==typeof u){if("abort"===u.action)return t="AbortError",r=c.file,o=c.inputElem,l=u.reason,void(w(e.error)&&e.error({name:t},r,o,l));if("skip"===u.action)return void a();"object"==typeof u.config&&(c.instanceConfig=s.extend(c.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=c.instanceConfig.complete;c.instanceConfig.complete=function(e){w(d)&&d(e,c.file,c.inputElem),a()},i.parse(c.file,c.instanceConfig)}else w(e.complete)&&e.complete()}function a(){n.splice(0,1),o()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new f(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,r){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(e);void 0!==o&&(e=o)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var s=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=s.meta.cursor;this._finished||(this._partialLine=a.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)t.postMessage({results:s,workerId:i.WORKER_ID,finished:c});else if(w(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!c||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:i.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=i.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function u(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=i.LocalChunkSize),l.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);e=r.call(e,this._start,o)}var a=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,r,n,o=Math.pow(2,53),a=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,p=!1,f=!1,v=[],g={data:[],errors:[],meta:{}};if(w(e.step)){var y=e.step;e.step=function(t){if(g=t,O())S();else{if(S(),0===g.data.length)return;u+=t.data.length,e.preview&&u>e.preview?r.abort():(g.data=g.data[0],y(g,c))}}}function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function S(){return g&&n&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(g.data=g.data.filter((function(e){return!x(e)}))),O()&&function(){if(g)if(Array.isArray(g.data[0])){for(var t=0;O()&&t<g.data.length;t++)g.data[t].forEach(r);g.data.splice(0,1)}else g.data.forEach(r);function r(t,r){w(e.transformHeader)&&(t=e.transformHeader(t,r)),v.push(t)}}(),function(){if(!g||!e.header&&!e.dynamicTyping&&!e.transform)return g;function t(t,r){var n,o=e.header?{}:[];for(n=0;n<t.length;n++){var a=n,i=t[n];e.header&&(a=n>=v.length?"__parsed_extra":v[n]),e.transform&&(i=e.transform(i,a)),i=_(a,i),"__parsed_extra"===a?(o[a]=o[a]||[],o[a].push(i)):o[a]=i}return e.header&&(n>v.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+n,d+r):n<v.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+n,d+r)),o}var r=1;return!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(t),r=g.data.length):g.data=t(g.data,0),e.header&&g.meta&&(g.meta.fields=v),d+=r,g}()}function O(){return e.header&&0===v.length}function _(t,r){return n=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[n]&&(e.dynamicTyping[n]=e.dynamicTypingFunction(n)),!0===(e.dynamicTyping[n]||e.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(e){if(s.test(e)){var t=parseFloat(e);if(a<t&&t<o)return!0}return!1}(r)?parseFloat(r):l.test(r)?new Date(r):""===r?null:r):r;var n}function E(e,t,r,n){var o={type:e,code:t,message:r};void 0!==n&&(o.row=n),g.errors.push(o)}this.parse=function(o,a,s){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(m(t)+"([^]*?)"+m(t),"gm"),n=(e=e.replace(r,"")).split("\r"),o=e.split("\n"),a=1<o.length&&o[0].length<n[0].length;if(1===n.length||a)return"\n";for(var i=0,s=0;s<n.length;s++)"\n"===n[s][0]&&i++;return i>=n.length/2?"\r\n":"\r"}(o,l)),n=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(o),g.meta.delimiter=e.delimiter);else{var c=function(t,r,n,o,a){var s,l,c,u;a=a||[",","\t","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var d=0;d<a.length;d++){var p=a[d],f=0,m=0,v=0;c=void 0;for(var g=new h({comments:o,delimiter:p,newline:r,preview:10}).parse(t),y=0;y<g.data.length;y++)if(n&&x(g.data[y]))v++;else{var b=g.data[y].length;m+=b,void 0!==c?0<b&&(f+=Math.abs(b-c),c=b):c=b}0<g.data.length&&(m/=g.data.length-v),(void 0===l||f<=l)&&(void 0===u||u<m)&&1.99<m&&(l=f,s=p,u=m)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);c.successful?e.delimiter=c.bestDelimiter:(n=!0,e.delimiter=i.DefaultDelimiter),g.meta.delimiter=e.delimiter}var u=b(e);return e.preview&&e.header&&u.preview++,t=o,r=new h(u),g=r.parse(t,a,s),S(),p?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,r.abort(),t=w(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){c.streamer._halted?(p=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,r.abort(),g.meta.aborted=!0,w(e.complete)&&e.complete(g),t=""}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(e){var t,r=(e=e||{}).delimiter,n=e.newline,o=e.comments,a=e.step,s=e.preview,l=e.fastMode,c=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(c=e.escapeChar),("string"!=typeof r||-1<i.BAD_DELIMITERS.indexOf(r))&&(r=","),o===r)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<i.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var u=0,d=!1;this.parse=function(i,p,f){if("string"!=typeof i)throw new Error("Input must be a string");var h=i.length,v=r.length,g=n.length,y=o.length,b=w(a),x=[],S=[],O=[],_=u=0;if(!i)return $();if(e.header&&!p){var E=i.split(n)[0].split(r),k=[],j={},C=!1;for(var P in E){var R=E[P];w(e.transformHeader)&&(R=e.transformHeader(R,P));var T=R,A=j[R]||0;for(0<A&&(C=!0,T=R+"_"+A),j[R]=A+1;k.includes(T);)T=T+"_"+A;k.push(T)}if(C){var I=i.split(n);I[0]=k.join(r),i=I.join(n)}}if(l||!1!==l&&-1===i.indexOf(t)){for(var M=i.split(n),N=0;N<M.length;N++){if(O=M[N],u+=O.length,N!==M.length-1)u+=n.length;else if(f)return $();if(!o||O.substring(0,y)!==o){if(b){if(x=[],W(O.split(r)),Q(),d)return $()}else W(O.split(r));if(s&&s<=N)return x=x.slice(0,s),$(!0)}}return $()}for(var L=i.indexOf(r,u),F=i.indexOf(n,u),z=new RegExp(m(c)+m(t),"g"),D=i.indexOf(t,u);;)if(i[u]!==t)if(o&&0===O.length&&i.substring(u,u+y)===o){if(-1===F)return $();u=F+g,F=i.indexOf(n,u),L=i.indexOf(r,u)}else if(-1!==L&&(L<F||-1===F))O.push(i.substring(u,L)),u=L+v,L=i.indexOf(r,u);else{if(-1===F)break;if(O.push(i.substring(u,F)),H(F+g),b&&(Q(),d))return $();if(s&&x.length>=s)return $(!0)}else for(D=u,u++;;){if(-1===(D=i.indexOf(t,D+1)))return f||S.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:u}),U();if(D===h-1)return U(i.substring(u,D).replace(z,t));if(t!==c||i[D+1]!==c){if(t===c||0===D||i[D-1]!==c){-1!==L&&L<D+1&&(L=i.indexOf(r,D+1)),-1!==F&&F<D+1&&(F=i.indexOf(n,D+1));var B=q(-1===F?L:Math.min(L,F));if(i.substr(D+1+B,v)===r){O.push(i.substring(u,D).replace(z,t)),i[u=D+1+B+v]!==t&&(D=i.indexOf(t,u)),L=i.indexOf(r,u),F=i.indexOf(n,u);break}var V=q(F);if(i.substring(D+1+V,D+1+V+g)===n){if(O.push(i.substring(u,D).replace(z,t)),H(D+1+V+g),L=i.indexOf(r,u),D=i.indexOf(t,u),b&&(Q(),d))return $();if(s&&x.length>=s)return $(!0);break}S.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:u}),D++}}else D++}return U();function W(e){x.push(e),_=u}function q(e){var t=0;if(-1!==e){var r=i.substring(D+1,e);r&&""===r.trim()&&(t=r.length)}return t}function U(e){return f||(void 0===e&&(e=i.substring(u)),O.push(e),u=h,W(O),b&&Q()),$()}function H(e){u=e,W(O),O=[],F=i.indexOf(n,u)}function $(e){return{data:x,errors:S,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:_+(p||0)}}}function Q(){a($()),x=[],S=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function v(e){var t=e.data,r=o[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){n=!0,g(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(w(r.userStep)){for(var i=0;i<t.results.data.length&&(r.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},a),!n);i++);delete t.results}else w(r.userChunk)&&(r.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!n&&g(t.workerId,t.results)}function g(e,t){var r=o[e];w(r.userComplete)&&r.userComplete(t),r.terminate(),delete o[e]}function y(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=b(e[r]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return n&&(t.onmessage=function(e){var r=e.data;if(void 0===i.WORKER_ID&&r&&(i.WORKER_ID=r.workerId),"string"==typeof r.input)t.postMessage({workerId:i.WORKER_ID,results:i.parse(r.input,r.config),finished:!0});else if(t.File&&r.input instanceof File||r.input instanceof Object){var n=i.parse(r.input,r.config);n&&t.postMessage({workerId:i.WORKER_ID,results:n,finished:!0})}}),(c.prototype=Object.create(l.prototype)).constructor=c,(u.prototype=Object.create(l.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(p.prototype=Object.create(l.prototype)).constructor=p,i},void 0===(o="function"===typeof r?r.apply(t,n):r)||(e.exports=o)},1532:(e,t,r)=>{"use strict";var n=r(2552);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},9840:(e,t,r)=>{e.exports=r(1532)()},2552:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2184:(e,t,r)=>{"use strict";const n=r(548),o=r(5600),a=r(9064),i=r(8981),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),a="string"===typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=a?u(r,e):r;const i=o||a?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?u(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],a):n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:u(i,t),r(u(e,t),i,n)}for(const o of Object.keys(n)){const e=n[o];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=m(e[r],t);else n[o]=m(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>{return t.skipNull&&(null===(n=e[r])||void 0===n)||t.skipEmptyString&&""===e[r];var n},n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[",o,"]"].join("")]:[...r,[c(t,e),"[",c(o,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[c(r,e),t,c(o,e)].join("")]:[[n,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}(t),o={};for(const i of Object.keys(e))r(i)||(o[i]=e[i]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?c(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":o.reduce(n(r),[]).join("&"):c(r,t)+"="+c(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=p(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let l=t.stringify(i,r);l&&(l="?".concat(l));let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(r[s]?c(e.fragmentIdentifier,r):e.fragmentIdentifier)),"".concat(n).concat(l).concat(u)},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:a,fragmentIdentifier:l}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:i(a,r),fragmentIdentifier:l},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},3636:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,a=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116,m=60121,h=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),a=b("react.strict_mode"),i=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),f=b("react.lazy"),m=b("react.block"),h=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case a:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===i||e===g||e===a||e===u||e===d||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===h)}},3064:(e,t,r)=>{"use strict";e.exports=r(3636)},6275:e=>{e.exports={ra:{action:{add_filter:"\u589e\u52a0\u68c0\u7d22",add:"\u589e\u52a0",back:"\u56de\u9000",bulk_actions:"\u9009\u4e2d%{smart_count}\u9879",cancel:"\u53d6\u6d88",clear_input_value:"\u6e05\u7a7a\u8f93\u5165",clone:"\u514b\u9686",close:"\u5173\u95ed",close_menu:"\u5173\u95ed\u83dc\u5355",confirm:"\u786e\u8ba4",create:"\u65b0\u5efa",delete:"\u5220\u9664",edit:"\u7f16\u8f91",expand:"\u5c55\u5f00",export:"\u5bfc\u51fa",list:"\u5217\u8868",open_menu:"\u6253\u5f00\u83dc\u5355",refresh:"\u5237\u65b0",remove:"\u5220\u9664",remove_filter:"\u79fb\u9664\u68c0\u7d22",save:"\u4fdd\u5b58",search:"\u68c0\u7d22",show:"\u67e5\u770b",sort:"\u6392\u5e8f",undo:"\u64a4\u9500",unselect:"\u53cd\u9009"},boolean:{true:"\u662f",false:"\u5426",null:"\u2003"},page:{create:"\u65b0\u5efa %{name}",dashboard:"\u6982\u89c8",edit:"%{name} #%{id}",empty:"\u65e0 %{name} ",error:"\u51fa\u73b0\u9519\u8bef",invite:"\u8981\u589e\u52a0\u5417?",list:"%{name} \u5217\u8868",loading:"\u52a0\u8f7d\u4e2d",not_found:"\u672a\u53d1\u73b0",show:"%{name} #%{id}"},input:{file:{upload_several:"\u5c06\u6587\u4ef6\u96c6\u5408\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6\u96c6\u5408.",upload_single:"\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6."},image:{upload_several:"\u5c06\u56fe\u7247\u6587\u4ef6\u96c6\u5408\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u56fe\u7247\u6587\u4ef6\u96c6\u5408.",upload_single:"\u5c06\u56fe\u7247\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u56fe\u7247\u6587\u4ef6."},references:{all_missing:"\u672a\u627e\u5230\u53c2\u8003\u6570\u636e.",many_missing:"\u81f3\u5c11\u6709\u4e00\u6761\u53c2\u8003\u6570\u636e\u4e0d\u518d\u53ef\u7528.",single_missing:"\u5173\u8054\u7684\u53c2\u8003\u6570\u636e\u4e0d\u518d\u53ef\u7528."},password:{toggle_visible:"\u9690\u85cf\u5bc6\u7801",toggle_hidden:"\u663e\u793a\u5bc6\u7801"}},message:{about:"\u5173\u4e8e",are_you_sure:"\u60a8\u786e\u5b9a\u64cd\u4f5c?",bulk_delete_content:"\u60a8\u786e\u5b9a\u8981\u5220\u9664 %{name}? |||| \u60a8\u786e\u5b9a\u8981\u5220\u9664 %{smart_count} \u9879?",bulk_delete_title:"\u5220\u9664 %{name} |||| \u5220\u9664 %{smart_count}\u9879 %{name} ",delete_content:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u76ee?",delete_title:"\u5220\u9664 %{name} #%{id}",error:"\u5ba2\u6237\u7aef\u9519\u8bef\u5bfc\u81f4\u8bf7\u6c42\u672a\u5b8c\u6210.",invalid_form:"\u8868\u5355\u8f93\u5165\u65e0\u6548. \u8bf7\u68c0\u67e5\u9519\u8bef\u63d0\u793a",loading:"\u6b63\u5728\u52a0\u8f7d\u9875\u9762, \u8bf7\u7a0d\u5019",no:"\u5426",not_found:"\u60a8\u8f93\u5165\u4e86\u9519\u8bef\u7684URL\u6216\u8005\u9519\u8bef\u7684\u94fe\u63a5.",unsaved_changes:"\u4fee\u6539\u672a\u4fdd\u5b58. \u653e\u5f03\u4fee\u6539\u5417?",yes:"\u662f"},navigation:{no_results:"\u7ed3\u679c\u4e3a\u7a7a",no_more_results:"\u9875\u7801 %{page} \u8d85\u51fa\u8fb9\u754c. \u8bd5\u8bd5\u4e0a\u4e00\u9875.",page_out_of_boundaries:"\u9875\u7801 %{page} \u8d85\u51fa\u8fb9\u754c",page_out_from_end:"\u5df2\u5230\u6700\u672b\u9875",page_out_from_begin:"\u5df2\u5230\u6700\u524d\u9875",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"\u6bcf\u9875\u884c\u6570:",next:"\u5411\u540e",prev:"\u5411\u524d",skip_nav:"\u8df3\u5230\u5185\u5bb9"},sort:{sort_by:"\u6309 %{field} %{order}",ASC:"\u5347\u5e8f",DESC:"\u964d\u5e8f"},auth:{auth_check_error:"\u8bf7\u767b\u5f55\u4ee5\u7ee7\u7eed",user_menu:"\u8bbe\u7f6e",username:"\u7528\u6237\u540d",password:"\u5bc6\u7801",sign_in:"\u767b\u5f55",sign_in_error:"\u9a8c\u8bc1\u5931\u8d25, \u8bf7\u91cd\u8bd5",logout:"\u9000\u51fa"},notification:{updated:"\u6761\u76ee\u5df2\u66f4\u65b0 |||| %{smart_count} \u9879\u6761\u76ee\u5df2\u66f4\u65b0",created:"\u6761\u76ee\u5df2\u65b0\u5efa",deleted:"\u6761\u76ee\u5df2\u5220\u9664 |||| %{smart_count} \u9879\u6761\u76ee\u5df2\u5220\u9664",bad_item:"\u4e0d\u6b63\u786e\u7684\u6761\u76ee",item_doesnt_exist:"\u6761\u76ee\u4e0d\u5b58\u5728",http_error:"\u4e0e\u670d\u52a1\u901a\u4fe1\u51fa\u9519",canceled:"\u53d6\u6d88\u52a8\u4f5c",data_provider_error:"dataProvider\u9519\u8bef. \u8bf7\u68c0\u67e5console\u7684\u8be6\u7ec6\u4fe1\u606f.",i18n_error:"\u65e0\u6cd5\u52a0\u8f7d\u6307\u5b9a\u8bed\u8a00\u5305",canceled:"\u53d6\u6d88\u52a8\u4f5c",logged_out:"\u4f1a\u8bdd\u5931\u6548, \u8bf7\u91cd\u8fde."},validation:{required:"\u5fc5\u586b",minLength:"\u5fc5\u987b\u4e0d\u5c11\u4e8e %{min} \u4e2a\u5b57\u7b26",maxLength:"\u5fc5\u987b\u4e0d\u591a\u4e8e %{max} \u4e2a\u5b57\u7b26",minValue:"\u5fc5\u987b\u4e0d\u5c0f\u4e8e %{min}",maxValue:"\u5fc5\u987b\u4e0d\u5927\u4e8e %{max}",number:"\u5fc5\u987b\u4e3a\u6570\u5b57",email:"\u5fc5\u987b\u662f\u6709\u6548\u7684\u90ae\u7bb1",oneOf:"\u5fc5\u987b\u4e3a: %{options}\u5176\u4e2d\u4e00\u9879",regex:"\u5fc5\u987b\u7b26\u5408\u6307\u5b9a\u7684\u683c\u5f0f (regexp): %{pattern}"}}}},1448:e=>{e.exports={ra:{action:{add_filter:"Filter hinzuf\xfcgen",add:"Neu",back:"Zur\xfcck",bulk_actions:"Ein Element ausgew\xe4hlt |||| %{smart_count} Elemente ausgew\xe4hlt",cancel:"Abbrechen",clear_input_value:"Eingabe l\xf6schen",clone:"Klonen",confirm:"Best\xe4tigen",create:"Erstellen",delete:"L\xf6schen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Aktualisieren",remove_filter:"Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",show:"Anzeigen",sort:"Sortieren",undo:"Zur\xfccksetzen",unselect:"Abw\xe4hlen",expand:"Erweitern",close:"Schliessen",open_menu:"\xd6ffnen des Men\xfcs",close_menu:"Schliessen des Men\xfcs"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} #%{id}",error:"Etwas ist schief gelaufen",list:"%{name}",loading:"Die Seite wird geladen.",not_found:"Nicht gefunden",show:"%{name} #%{id}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Zum Hochladen Dateien hineinziehen oder hier klicken, um Dateien auszuw\xe4hlen.",upload_single:"Zum Hochladen Datei hineinziehen oder hier klicken, um eine Datei auszuw\xe4hlen."},image:{upload_several:"Zum Hochladen Bilder hineinziehen oder hier klicken, um Bilder auszuw\xe4hlen.",upload_single:"Zum Hochladen Bild hineinziehen oder hier klicken, um ein Bild auszuw\xe4hlen."},references:{all_missing:"Die zugeh\xf6rigen Referenzen konnten nicht gefunden werden.",many_missing:"Mindestens eine der zugeh\xf6rigen Referenzen scheint nicht mehr verf\xfcgbar zu sein.",single_missing:"Eine zugeh\xf6rige Referenz scheint nicht mehr verf\xfcgbar zu sein."},password:{toggle_visible:"Passwort ausblenden",toggle_hidden:"Passwort einblenden"}},message:{about:"\xdcber",are_you_sure:"Sind Sie sicher?",bulk_delete_content:'M\xf6chten Sie "%{name}" wirklich l\xf6schen? |||| M\xf6chten Sie diese %{smart_count} Elemente wirklich l\xf6schen?',bulk_delete_title:"L\xf6sche %{name} |||| L\xf6sche %{smart_count} %{name} Elemente",delete_content:"M\xf6chten Sie diesen Inhalt wirklich l\xf6schen?",delete_title:"L\xf6sche %{name} #%{id}",details:"Details",error:"Ein Fehler ist aufgetreten und Ihre Anfrage konnte nicht abgeschlossen werden.",invalid_form:"Das Formular ist ung\xfcltig. Bitte \xfcberpr\xfcfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, bitte haben Sie etwas Geduld.",no:"Nein",not_found:"Die Seite konnte nicht gefunden werden.",yes:"Ja",unsaved_changes:"Einige \xc4nderungen wurden nicht gespeichert. Sind Sie sicher, dass Sie diese Seite verlassen wollen?"},navigation:{no_results:"Keine Resultate gefunden",no_more_results:"Die Seite %{page} enth\xe4lt keine Inhalte.",page_out_of_boundaries:"Die Seite %{page} liegt ausserhalb des g\xfcltigen Bereichs",page_out_from_end:"Letzte Seite",page_out_from_begin:"Erste Seite",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",page_rows_per_page:"Zeilen pro Seite:",next:"Weiter",prev:"Zur\xfcck",skip_nav:"Zum Inhalt springen"},auth:{auth_check_error:"Bitte verbinden Sie sich um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Fehler bei der Anmeldung",logout:"Abmelden"},notification:{updated:"Element wurde aktualisiert |||| %{smart_count} Elemente wurden aktualisiert",created:"Element wurde erstellt",deleted:"Element wurde gel\xf6scht |||| %{smart_count} Elemente wurden gel\xf6scht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Das Element existiert nicht",http_error:"Fehler beim Kommunizieren mit dem Server",data_provider_error:"Fehler im dataProvider. Pr\xfcfe die Konsole f\xfcr Details.",i18n_error:"Die \xdcbersetzungen f\xfcr die angegebene Sprache k\xf6nnen nicht geladen werden.",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung wurde beendet, bitte verbinden Sie sich neu."},validation:{required:"Ben\xf6tigt",minLength:"Muss mindestens %{min} Zeichen lang sein",maxLength:"Darf maximal %{max} Zeichen lang sein",minValue:"Muss mindestens %{min} sein",maxValue:"Muss %{max} oder weniger sein",number:"Muss eine Nummer sein",email:"Muss eine g\xfcltige E-Mail sein",oneOf:"Es muss einer sein von: %{options}",regex:"Es muss folgendem regul\xe4ren Ausdruck entsprechen: %{pattern}"}}}},552:e=>{e.exports={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:"\u2003"},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra pi\xf9 disponibile.",single_missing:"Il riferimento associato non sembra pi\xf9 disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale \xe8 occorso e la tua richiesta non \xe8 stata completata.",invalid_form:"Il modulo non \xe8 valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} \xe8 fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} \xe8 fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"\xc8 necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione \xe8 stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}}},6144:(e,t,r)=>{"use strict";var n=r(9060),o=r(7724);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,r,n){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),j=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,F=Object.assign;function z(e){if(void 0===L)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var D=!1;function B(e,t){if(!e||D)return"";D=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function V(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case O:return"Fragment";case S:return"Portal";case E:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return W(e(t))}catch(r){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=H(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Y(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=U(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var r=U(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&K(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+U(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(te(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:U(r)}}function ae(e,t){var r=U(t.value),n=U(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=he(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ge=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Oe=null,_e=null;function Ee(e){if(e=xo(e)){if("function"!==typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function ke(e){Oe?_e?_e.push(e):_e=[e]:Oe=e}function je(){if(Oe){var e=Oe,t=_e;if(_e=Oe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ce(e,t){return e(t)}function Pe(){}var Re=!1;function Te(e,t,r){if(Re)return e(t,r);Re=!0;try{return Ce(e,t,r)}finally{Re=!1,(null!==Oe||null!==_e)&&(Pe(),je())}}function Ae(e,t){var r=e.stateNode;if(null===r)return null;var n=So(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(a(231,t,typeof r));return r}var Ie=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Ie=!1}function Ne(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Le=!1,Fe=null,ze=!1,De=null,Be={onError:function(e){Le=!0,Fe=e}};function Ve(e,t,r,n,o,a,i,s,l){Le=!1,Fe=null,Ne.apply(Be,arguments)}function We(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(We(e)!==e)throw Error(a(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Ue(o),e;if(i===n)return Ue(o),t;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=dt(s):0!==(a&=i)&&(n=dt(a))}else 0!==(i=r&~o)?n=dt(i):0!==a&&(n=dt(a));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-it(t)),n|=e[r],t&=~o;return n}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function gt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-it(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,Ot,_t,Et,kt=!1,jt=[],Ct=null,Pt=null,Rt=null,Tt=new Map,At=new Map,It=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Lt(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ft(e){var t=bo(e.target);if(null!==t){var r=We(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=qe(r)))return e.blockedOn=t,void Et(e.priority,(function(){Ot(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=xo(r))&&St(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);xe=n,r.target.dispatchEvent(n),xe=null,t.shift()}return!0}function Dt(e,t,r){zt(e)&&r.delete(t)}function Bt(){kt=!1,null!==Ct&&zt(Ct)&&(Ct=null),null!==Pt&&zt(Pt)&&(Pt=null),null!==Rt&&zt(Rt)&&(Rt=null),Tt.forEach(Dt),At.forEach(Dt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Vt(t,e)}if(0<jt.length){Vt(jt[0],e);for(var r=1;r<jt.length;r++){var n=jt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ct&&Vt(Ct,e),null!==Pt&&Vt(Pt,e),null!==Rt&&Vt(Rt,e),Tt.forEach(t),At.forEach(t),r=0;r<It.length;r++)(n=It[r]).blockedOn===e&&(n.blockedOn=null);for(;0<It.length&&null===(r=It[0]).blockedOn;)Ft(r),null===r.blockedOn&&It.shift()}var qt=x.ReactCurrentBatchConfig,Ut=!0;function Ht(e,t,r,n){var o=bt,a=qt.transition;qt.transition=null;try{bt=1,Qt(e,t,r,n)}finally{bt=o,qt.transition=a}}function $t(e,t,r,n){var o=bt,a=qt.transition;qt.transition=null;try{bt=4,Qt(e,t,r,n)}finally{bt=o,qt.transition=a}}function Qt(e,t,r,n){if(Ut){var o=Gt(e,t,r,n);if(null===o)Un(e,t,n,Kt,r),Nt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Ct=Lt(Ct,e,t,r,n,o),!0;case"dragenter":return Pt=Lt(Pt,e,t,r,n,o),!0;case"mouseover":return Rt=Lt(Rt,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return Tt.set(a,Lt(Tt.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,At.set(a,Lt(At.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Nt(e,n),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Gt(e,t,r,n))&&Un(e,t,n,Kt,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Un(e,t,n,null,r)}}var Kt=null;function Gt(e,t,r,n){if(Kt=null,null!==(e=bo(e=we(n))))if(null===(t=We(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function er(){if(Zt)return Zt;var e,t,r=Jt,n=r.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ar,ir,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),ur=F({},lr,{view:0,detail:0}),dr=or(ur),pr=F({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ar=e.screenX-sr.screenX,ir=e.screenY-sr.screenY):ir=ar=0,sr=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:ir}}),fr=or(pr),mr=or(F({},pr,{dataTransfer:0})),hr=or(F({},ur,{relatedTarget:0})),vr=or(F({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=F({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=or(gr),br=or(F({},lr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function _r(){return Or}var Er=F({},ur,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kr=or(Er),jr=or(F({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cr=or(F({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r})),Pr=or(F({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rr=F({},pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tr=or(Rr),Ar=[9,13,27,32],Ir=u&&"CompositionEvent"in window,Mr=null;u&&"documentMode"in document&&(Mr=document.documentMode);var Nr=u&&"TextEvent"in window&&!Mr,Lr=u&&(!Ir||Mr&&8<Mr&&11>=Mr),Fr=String.fromCharCode(32),zr=!1;function Dr(e,t){switch(e){case"keyup":return-1!==Ar.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vr=!1;var Wr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wr[e.type]:"textarea"===t}function Ur(e,t,r,n){ke(n),0<(t=$n(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Hr=null,$r=null;function Qr(e){zn(e,0)}function Kr(e){if(Q(wo(e)))return e}function Gr(e,t){if("change"===e)return t}var Yr=!1;if(u){var Xr;if(u){var Jr="oninput"in document;if(!Jr){var Zr=document.createElement("div");Zr.setAttribute("oninput","return;"),Jr="function"===typeof Zr.oninput}Xr=Jr}else Xr=!1;Yr=Xr&&(!document.documentMode||9<document.documentMode)}function en(){Hr&&(Hr.detachEvent("onpropertychange",tn),$r=Hr=null)}function tn(e){if("value"===e.propertyName&&Kr($r)){var t=[];Ur(t,$r,e,we(e)),Te(Qr,t)}}function rn(e,t,r){"focusin"===e?(en(),$r=r,(Hr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr($r)}function on(e,t){if("click"===e)return Kr(t)}function an(e,t){if("input"===e||"change"===e)return Kr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ln(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!d.call(t,o)||!sn(e[o],t[o]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pn(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=K((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mn(e){var t=pn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=un(r,a);var i=un(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hn=u&&"documentMode"in document&&11>=document.documentMode,vn=null,gn=null,yn=null,bn=!1;function xn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==vn||vn!==K(n)||("selectionStart"in(n=vn)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=$n(gn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=vn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},On={},_n={};function En(e){if(On[e])return On[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in _n)return On[e]=r[t];return e}u&&(_n=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var kn=En("animationend"),jn=En("animationiteration"),Cn=En("animationstart"),Pn=En("transitionend"),Rn=new Map,Tn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function An(e,t){Rn.set(e,t),l(t,[e])}for(var In=0;In<Tn.length;In++){var Mn=Tn[In];An(Mn.toLowerCase(),"on"+(Mn[0].toUpperCase()+Mn.slice(1)))}An(kn,"onAnimationEnd"),An(jn,"onAnimationIteration"),An(Cn,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Pn,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nn));function Fn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,i,s,l,c){if(Ve.apply(this,arguments),Le){if(!Le)throw Error(a(198));var u=Fe;Le=!1,Fe=null,ze||(ze=!0,De=u)}}(n,t,void 0,e),e.currentTarget=null}function zn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Fn(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Fn(o,s,c),a=l}}}if(ze)throw e=De,ze=!1,De=null,e}function Dn(e,t){var r=t[vo];void 0===r&&(r=t[vo]=new Set);var n=e+"__bubble";r.has(n)||(qn(t,e,2,!1),r.add(n))}function Bn(e,t,r){var n=0;t&&(n|=4),qn(r,e,n,t)}var Vn="_reactListening"+Math.random().toString(36).slice(2);function Wn(e){if(!e[Vn]){e[Vn]=!0,i.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||Bn(t,!1,e),Bn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vn]||(t[Vn]=!0,Bn("selectionchange",!1,t))}}function qn(e,t,r,n){switch(Yt(t)){case 1:var o=Ht;break;case 4:o=$t;break;default:o=Qt}r=o.bind(null,t,r,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Un(e,t,r,n,o){var a=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=bo(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}Te((function(){var n=a,o=we(r),i=[];e:{var s=Rn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=kr;break;case"focusin":c="focus",l=hr;break;case"focusout":c="blur",l=hr;break;case"beforeblur":case"afterblur":l=hr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Cr;break;case kn:case jn:case Cn:l=vr;break;case Pn:l=Pr;break;case"scroll":l=dr;break;case"wheel":l=Tr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=jr}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=n;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Ae(m,p))&&u.push(Hn(m,h,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===xe||!(c=r.relatedTarget||r.fromElement)||!bo(c)&&!c[ho])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?bo(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=fr,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=jr,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:wo(l),f=null==c?s:wo(c),(s=new u(h,m+"leave",l,r,o)).target=d,s.relatedTarget=f,h=null,bo(o)===n&&((u=new u(p,m+"enter",c,r,o)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Qn(f))m++;for(f=0,h=p;h;h=Qn(h))f++;for(;0<m-f;)u=Qn(u),m--;for(;0<f-m;)p=Qn(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Qn(u),p=Qn(p)}u=null}else u=null;null!==l&&Kn(i,s,l,u,!1),null!==c&&null!==d&&Kn(i,d,c,u,!0)}if("select"===(l=(s=n?wo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Gr;else if(qr(s))if(Yr)v=an;else{v=nn;var g=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=on);switch(v&&(v=v(e,n))?Ur(i,v,r,o):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=n?wo(n):window,e){case"focusin":(qr(g)||"true"===g.contentEditable)&&(vn=g,gn=n,yn=null);break;case"focusout":yn=gn=vn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,xn(i,r,o);break;case"selectionchange":if(hn)break;case"keydown":case"keyup":xn(i,r,o)}var y;if(Ir)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vr?Dr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Lr&&"ko"!==r.locale&&(Vr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vr&&(y=er()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Vr=!0)),0<(g=$n(n,b)).length&&(b=new br(b,e,null,r,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Br(r))&&(b.data=y))),(y=Nr?function(e,t){switch(e){case"compositionend":return Br(t);case"keypress":return 32!==t.which?null:(zr=!0,Fr);case"textInput":return(e=t.data)===Fr&&zr?null:e;default:return null}}(e,r):function(e,t){if(Vr)return"compositionend"===e||!Ir&&Dr(e,t)?(e=er(),Zt=Jt=Xt=null,Vr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=$n(n,"onBeforeInput")).length&&(o=new br("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}zn(i,t)}))}function Hn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function $n(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ae(e,r))&&n.unshift(Hn(e,a,o)),null!=(a=Ae(e,t))&&n.push(Hn(e,a,o))),e=e.return}return n}function Qn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Ae(r,a))&&i.unshift(Hn(r,l,s)):o||null!=(l=Ae(r,a))&&i.push(Hn(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Gn=/\r\n?/g,Yn=/\u0000|\uFFFD/g;function Xn(e){return("string"===typeof e?e:""+e).replace(Gn,"\n").replace(Yn,"")}function Jn(e,t,r){if(t=Xn(t),Xn(e)!==t&&r)throw Error(a(425))}function Zn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(so)}:no;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Wt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Wt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,ho="__reactContainer$"+po,vo="__reactEvents$"+po,go="__reactListeners$"+po,yo="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ho]||r[fo]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=uo(e);null!==e;){if(r=e[fo])return r;e=uo(e)}return t}r=(e=r).parentNode}return null}function xo(e){return!(e=e[fo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function So(e){return e[mo]||null}var Oo=[],_o=-1;function Eo(e){return{current:e}}function ko(e){0>_o||(e.current=Oo[_o],Oo[_o]=null,_o--)}function jo(e,t){_o++,Oo[_o]=e.current,e.current=t}var Co={},Po=Eo(Co),Ro=Eo(!1),To=Co;function Ao(e,t){var r=e.type.contextTypes;if(!r)return Co;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Io(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mo(){ko(Ro),ko(Po)}function No(e,t,r){if(Po.current!==Co)throw Error(a(168));jo(Po,t),jo(Ro,r)}function Lo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(a(108,q(e)||"Unknown",o));return F({},r,n)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Co,To=Po.current,jo(Po,e),jo(Ro,Ro.current),!0}function zo(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=Lo(e,t,To),n.__reactInternalMemoizedMergedChildContext=e,ko(Ro),ko(Po),jo(Po,e)):ko(Ro),jo(Ro,r)}var Do=null,Bo=!1,Vo=!1;function Wo(e){null===Do?Do=[e]:Do.push(e)}function qo(){if(!Vo&&null!==Do){Vo=!0;var e=0,t=bt;try{var r=Do;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Do=null,Bo=!1}catch(o){throw null!==Do&&(Do=Do.slice(e+1)),Qe(Ze,qo),o}finally{bt=t,Vo=!1}}return null}var Uo=[],Ho=0,$o=null,Qo=0,Ko=[],Go=0,Yo=null,Xo=1,Jo="";function Zo(e,t){Uo[Ho++]=Qo,Uo[Ho++]=$o,$o=e,Qo=t}function ea(e,t,r){Ko[Go++]=Xo,Ko[Go++]=Jo,Ko[Go++]=Yo,Yo=e;var n=Xo;e=Jo;var o=32-it(n)-1;n&=~(1<<o),r+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Xo=1<<32-it(t)+o|r<<o|n,Jo=a+e}else Xo=1<<a|r<<o|n,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function ra(e){for(;e===$o;)$o=Uo[--Ho],Uo[Ho]=null,Qo=Uo[--Ho],Uo[Ho]=null;for(;e===Yo;)Yo=Ko[--Go],Ko[Go]=null,Jo=Ko[--Go],Ko[Go]=null,Xo=Ko[--Go],Ko[Go]=null}var na=null,oa=null,aa=!1,ia=null;function sa(e,t){var r=Ac(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function la(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Ac(18,null,null,0)).stateNode=t,r.return=e,e.child=r,na=e,oa=null,!0);default:return!1}}function ca(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var r=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(r.nextSibling);var n=na;t&&la(e,t)?sa(n,r):(e.flags=-4097&e.flags|2,aa=!1,na=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,na=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function pa(e){if(e!==na)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=na?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=na=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var va=x.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var r in t=F({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ya=Eo(null),ba=null,xa=null,wa=null;function Sa(){wa=xa=ba=null}function Oa(e){var t=ya.current;ko(ya),e._currentValue=t}function _a(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ea(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function ka(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(a(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var ja=null;function Ca(e){null===ja?ja=[e]:ja.push(e)}function Pa(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ca(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ra(e,n)}function Ra(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Ta=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Pl)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ra(e,r)}return null===(o=n.interleaved)?(t.next=t,Ca(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ra(e,r)}function La(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Fa(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function za(e,t,r,n){var o=e.updateQueue;Ta=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((n&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(p=t,f=r,h.tag){case 1:if("function"===typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(p="function"===typeof(m=h.payload)?m.call(f,d,p):m)||void 0===p)break e;d=F({},d,p);break e;case 2:Ta=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Fl|=i,e.lanes=i,e.memoizedState=d}}function Da(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!==typeof o)throw Error(a(191,o));o.call(n)}}}var Ba=(new n.Component).refs;function Va(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:F({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Wa={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tc(),o=rc(e),a=Ma(n,o);a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=Na(e,a,o))&&(nc(t,e,o,n),La(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tc(),o=rc(e),a=Ma(n,o);a.tag=1,a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=Na(e,a,o))&&(nc(t,e,o,n),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tc(),n=rc(e),o=Ma(r,n);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Na(e,o,n))&&(nc(t,e,n,r),La(t,e,n))}};function qa(e,t,r,n,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(o,a))}function Ua(e,t,r){var n=!1,o=Co,a=t.contextType;return"object"===typeof a&&null!==a?a=ka(a):(o=Io(t)?To:Po.current,a=(n=null!==(n=t.contextTypes)&&void 0!==n)?Ao(e,o):Co),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Wa.enqueueReplaceState(t,t.state,null)}function $a(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Ba,Aa(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=ka(a):(a=Io(t)?To:Po.current,o.context=Ao(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Va(e,t,a,r),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Wa.enqueueReplaceState(o,o.state,null),za(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function Qa(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var o=n,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ga(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=zc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){var a=r.type;return a===O?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===A&&Ga(a)===t.type)?((n=o(t,r.props)).ref=Qa(e,t,r),n.return=e,n):((n=Nc(r.type,r.key,r.props,null,e.mode,n)).ref=Qa(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Dc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,a){return null===t||7!==t.tag?((t=Lc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function p(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=zc(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Nc(t.type,t.key,t.props,null,e.mode,r)).ref=Qa(e,null,t),r.return=e,r;case S:return(t=Dc(t,e.mode,r)).return=e,t;case A:return p(e,(0,t._init)(t._payload),r)}if(te(t)||N(t))return(t=Lc(t,e.mode,r,null)).return=e,t;Ka(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==o?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?c(e,t,r,n):null;case S:return r.key===o?u(e,t,r,n):null;case A:return f(e,t,(o=r._init)(r._payload),n)}if(te(r)||N(r))return null!==o?null:d(e,t,r,n,null);Ka(e,r)}return null}function m(e,t,r,n,o){if("string"===typeof n&&""!==n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case S:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case A:return m(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||N(n))return d(t,e=e.get(r)||null,n,o,null);Ka(t,n)}return null}function h(o,a,s,l){for(var c=null,u=null,d=a,h=a=0,v=null;null!==d&&h<s.length;h++){d.index>h?(v=d,d=null):v=d.sibling;var g=f(o,d,s[h],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,h),null===u?c=g:u.sibling=g,u=g,d=v}if(h===s.length)return r(o,d),aa&&Zo(o,h),c;if(null===d){for(;h<s.length;h++)null!==(d=p(o,s[h],l))&&(a=i(d,a,h),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,h),c}for(d=n(o,d);h<s.length;h++)null!==(v=m(d,o,h,s[h],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?h:v.key),a=i(v,a,h),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,h),c}function v(o,s,l,c){var u=N(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,h=s,v=s=0,g=null,y=l.next();null!==h&&!y.done;v++,y=l.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=f(o,h,y.value,c);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),s=i(b,s,v),null===d?u=b:d.sibling=b,d=b,h=g}if(y.done)return r(o,h),aa&&Zo(o,v),u;if(null===h){for(;!y.done;v++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return aa&&Zo(o,v),u}for(h=n(o,h);!y.done;v++,y=l.next())null!==(y=m(h,o,v,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return e&&h.forEach((function(e){return t(o,e)})),aa&&Zo(o,v),u}return function e(n,a,i,l){if("object"===typeof i&&null!==i&&i.type===O&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===O){if(7===u.tag){r(n,u.sibling),(a=o(u,i.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===A&&Ga(c)===u.type){r(n,u.sibling),(a=o(u,i.props)).ref=Qa(n,u,i),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}i.type===O?((a=Lc(i.props.children,n.mode,l,i.key)).return=n,n=a):((l=Nc(i.type,i.key,i.props,null,n.mode,l)).ref=Qa(n,a,i),l.return=n,n=l)}return s(n);case S:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Dc(i,n.mode,l)).return=n,n=a}return s(n);case A:return e(n,a,(u=i._init)(i._payload),l)}if(te(i))return h(n,a,i,l);if(N(i))return v(n,a,i,l);Ka(n,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=zc(i,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var Xa=Ya(!0),Ja=Ya(!1),Za={},ei=Eo(Za),ti=Eo(Za),ri=Eo(Za);function ni(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(jo(ri,t),jo(ti,e),jo(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(ei),jo(ei,t)}function ai(){ko(ei),ko(ti),ko(ri)}function ii(e){ni(ri.current);var t=ni(ei.current),r=le(t,e.type);t!==r&&(jo(ti,e),jo(ei,r))}function si(e){ti.current===e&&(ko(ei),ko(ti))}var li=Eo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=x.ReactCurrentDispatcher,fi=x.ReactCurrentBatchConfig,mi=0,hi=null,vi=null,gi=null,yi=!1,bi=!1,xi=0,wi=0;function Si(){throw Error(a(321))}function Oi(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function _i(e,t,r,n,o,i){if(mi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=r(n,o),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(a(301));i+=1,gi=vi=null,t.updateQueue=null,pi.current=cs,e=r(n,o)}while(bi)}if(pi.current=is,t=null!==vi&&null!==vi.next,mi=0,gi=vi=hi=null,yi=!1,t)throw Error(a(300));return e}function Ei(){var e=0!==xi;return xi=0,e}function ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?hi.memoizedState=gi=e:gi=gi.next=e,gi}function ji(){if(null===vi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===gi?hi.memoizedState:gi.next;if(null!==t)gi=t,vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===gi?hi.memoizedState=gi=e:gi=gi.next=e}return gi}function Ci(e,t){return"function"===typeof t?t(e):t}function Pi(e){var t=ji(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=vi,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,n=n.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=n):c=c.next=p,hi.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(xs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,hi.lanes|=i,Fl|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ri(e){var t=ji(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sn(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Ti(){}function Ai(e,t){var r=hi,n=ji(),o=t(),i=!sn(n.memoizedState,o);if(i&&(n.memoizedState=o,xs=!0),n=n.queue,Ui(Ni.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(r.flags|=2048,Di(9,Mi.bind(null,r,n,o,t),void 0,null),null===Rl)throw Error(a(349));0!==(30&mi)||Ii(r,t,o)}return o}function Ii(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Mi(e,t,r,n){t.value=r,t.getSnapshot=n,Li(t)&&Fi(e)}function Ni(e,t,r){return r((function(){Li(t)&&Fi(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function Fi(e){var t=Ra(e,1);null!==t&&nc(t,e,1,-1)}function zi(e){var t=ki();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,hi,e),[t.memoizedState,e]}function Di(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Bi(){return ji().memoizedState}function Vi(e,t,r,n){var o=ki();hi.flags|=e,o.memoizedState=Di(1|t,r,void 0,void 0===n?null:n)}function Wi(e,t,r,n){var o=ji();n=void 0===n?null:n;var a=void 0;if(null!==vi){var i=vi.memoizedState;if(a=i.destroy,null!==n&&Oi(n,i.deps))return void(o.memoizedState=Di(t,r,a,n))}hi.flags|=e,o.memoizedState=Di(1|t,r,a,n)}function qi(e,t){return Vi(8390656,8,e,t)}function Ui(e,t){return Wi(2048,8,e,t)}function Hi(e,t){return Wi(4,2,e,t)}function $i(e,t){return Wi(4,4,e,t)}function Qi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Wi(4,4,Qi.bind(null,t,e),r)}function Gi(){}function Yi(e,t){var r=ji();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Oi(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Xi(e,t){var r=ji();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Oi(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ji(e,t,r){return 0===(21&mi)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=r):(sn(r,t)||(r=ht(),hi.lanes|=r,Fl|=r,e.baseState=!0),t)}function Zi(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=fi.transition;fi.transition={};try{e(!1),t()}finally{bt=r,fi.transition=n}}function es(){return ji().memoizedState}function ts(e,t,r){var n=rc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))os(t,r);else if(null!==(r=Pa(e,t,r,n))){nc(r,e,n,tc()),as(r,t,n)}}function rs(e,t,r){var n=rc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,i)){var l=t.interleaved;return null===l?(o.next=o,Ca(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(r=Pa(e,t,o,n))&&(nc(r,e,n,o=tc()),as(r,t,n))}}function ns(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function os(e,t){bi=yi=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function as(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var is={readContext:ka,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},ss={readContext:ka,useCallback:function(e,t){return ki().memoizedState=[e,void 0===t?null:t],e},useContext:ka,useEffect:qi,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Vi(4194308,4,Qi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var r=ki();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ki();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,hi,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ki().memoizedState=e},useState:zi,useDebugValue:Gi,useDeferredValue:function(e){return ki().memoizedState=e},useTransition:function(){var e=zi(!1),t=e[0];return e=Zi.bind(null,e[1]),ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=hi,o=ki();if(aa){if(void 0===r)throw Error(a(407));r=r()}else{if(r=t(),null===Rl)throw Error(a(349));0!==(30&mi)||Ii(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,qi(Ni.bind(null,n,i,e),[e]),n.flags|=2048,Di(9,Mi.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ki(),t=Rl.identifierPrefix;if(aa){var r=Jo;t=":"+t+"R"+(r=(Xo&~(1<<32-it(Xo)-1)).toString(32)+r),0<(r=xi++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:ka,useCallback:Yi,useContext:ka,useEffect:Ui,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:$i,useMemo:Xi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ci)},useDebugValue:Gi,useDeferredValue:function(e){return Ji(ji(),vi.memoizedState,e)},useTransition:function(){return[Pi(Ci)[0],ji().memoizedState]},useMutableSource:Ti,useSyncExternalStore:Ai,useId:es,unstable_isNewReconciler:!1},cs={readContext:ka,useCallback:Yi,useContext:ka,useEffect:Ui,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:$i,useMemo:Xi,useReducer:Ri,useRef:Bi,useState:function(){return Ri(Ci)},useDebugValue:Gi,useDeferredValue:function(e){var t=ji();return null===vi?t.memoizedState=e:Ji(t,vi.memoizedState,e)},useTransition:function(){return[Ri(Ci)[0],ji().memoizedState]},useMutableSource:Ti,useSyncExternalStore:Ai,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var r="",n=t;do{r+=V(n),n=n.return}while(n);var o=r}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ms(e,t,r){(r=Ma(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Hl||(Hl=!0,$l=n),ps(0,t)},r}function hs(e,t,r){(r=Ma(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ps(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(r.callback=function(){ps(0,t),"function"!==typeof n&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function vs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new fs;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=kc.bind(null,e,t,r),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ma(-1,1)).tag=2,Na(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,r,n){t.child=null===e?Ja(t,null,r,n):Xa(t,e.child,r,n)}function Ss(e,t,r,n,o){r=r.render;var a=t.ref;return Ea(t,o),n=_i(e,t,r,n,a,o),r=Ei(),null===e||xs?(aa&&r&&ta(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Os(e,t,r,n,o){if(null===e){var a=r.type;return"function"!==typeof a||Ic(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Nc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_s(e,t,a,n,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(i,n)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(a,n)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(ln(a,n)&&e.ref===t.ref){if(xs=!1,t.pendingProps=n=a,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(xs=!0)}}return js(e,t,r,n,o)}function Es(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jo(Ml,Il),Il|=r;else{if(0===(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jo(Ml,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,jo(Ml,Il),Il|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,jo(Ml,Il),Il|=n;return ws(e,t,o,r),t.child}function ks(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function js(e,t,r,n,o){var a=Io(r)?To:Po.current;return a=Ao(t,a),Ea(t,o),r=_i(e,t,r,n,a,o),n=Ei(),null===e||xs?(aa&&n&&ta(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Cs(e,t,r,n,o){if(Io(r)){var a=!0;Fo(t)}else a=!1;if(Ea(t,o),null===t.stateNode)Us(e,t),Ua(t,r,n),$a(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"===typeof c&&null!==c?c=ka(c):c=Ao(t,c=Io(r)?To:Po.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==n||l!==c)&&Ha(t,i,n,c),Ta=!1;var p=t.memoizedState;i.state=p,za(t,n,i,o),l=t.memoizedState,s!==n||p!==l||Ro.current||Ta?("function"===typeof u&&(Va(t,r,u,n),l=t.memoizedState),(s=Ta||qa(t,r,s,n,p,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Ia(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ga(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"===typeof(l=r.contextType)&&null!==l?l=ka(l):l=Ao(t,l=Io(r)?To:Po.current);var f=r.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Ha(t,i,n,l),Ta=!1,p=t.memoizedState,i.state=p,za(t,n,i,o);var m=t.memoizedState;s!==d||p!==m||Ro.current||Ta?("function"===typeof f&&(Va(t,r,f,n),m=t.memoizedState),(c=Ta||qa(t,r,c,n,p,m,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Ps(e,t,r,n,a,o)}function Ps(e,t,r,n,o,a){ks(e,t);var i=0!==(128&t.flags);if(!n&&!i)return o&&zo(t,r,!1),Hs(e,t,a);n=t.stateNode,bs.current=t;var s=i&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,s,a)):ws(e,t,s,a),t.memoizedState=n.state,o&&zo(t,r,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),oi(e,t.containerInfo)}function Ts(e,t,r,n,o){return ma(),ha(o),t.flags|=256,ws(e,t,r,n),t.child}var As,Is,Ms,Ns,Ls={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var n,o=t.pendingProps,i=li.current,s=!1,l=0!==(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!==(2&i)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),jo(li,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fc(l,o,0,null),e=Lc(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(r),t.memoizedState=Ls,e):Ds(t,l));if(null!==(i=e.memoizedState)&&null!==(n=i.dehydrated))return function(e,t,r,n,o,i,s){if(r)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,n=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Fc({mode:"visible",children:n.children},o,0,null),(i=Lc(i,o,s,null)).flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,0!==(1&t.mode)&&Xa(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Ls,i);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Bs(e,t,s,n=ds(i=Error(a(419)),n,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(n=Rl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(n.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ra(e,o),nc(n,e,o,-1))}return vc(),Bs(e,t,s,n=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),na=t,aa=!0,ia=null,null!==e&&(Ko[Go++]=Xo,Ko[Go++]=Jo,Ko[Go++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),t=Ds(t,n.children),t.flags|=4096,t)}(e,t,l,o,n,i,r);if(s){s=o.fallback,l=t.mode,n=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==n?s=Mc(n,s):(s=Lc(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ls,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,r,n){return null!==n&&ha(n),Xa(t,e.child,null,r),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),_a(e.return,t,r)}function Ws(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function qs(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(ws(e,t,n.children,r),0!==(2&(n=li.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,r,t);else if(19===e.tag)Vs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(jo(li,n),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ci(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Ws(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Ws(t,!0,r,null,a);break;case"together":Ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Us(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ks(e,t,r){var n=t.pendingProps;switch(ra(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return Io(t.type)&&Mo(),Qs(t),null;case 3:return n=t.stateNode,ai(),ko(Ro),ko(Po),di(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(sc(ia),ia=null))),Is(e,t),Qs(t),null;case 5:si(t);var o=ni(ri.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(a(166));return Qs(t),null}if(e=ni(ei.current),pa(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[fo]=t,n[mo]=i,e=0!==(1&t.mode),r){case"dialog":Dn("cancel",n),Dn("close",n);break;case"iframe":case"object":case"embed":Dn("load",n);break;case"video":case"audio":for(o=0;o<Nn.length;o++)Dn(Nn[o],n);break;case"source":Dn("error",n);break;case"img":case"image":case"link":Dn("error",n),Dn("load",n);break;case"details":Dn("toggle",n);break;case"input":Y(n,i),Dn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Dn("invalid",n);break;case"textarea":oe(n,i),Dn("invalid",n)}for(var l in ye(r,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?n.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jn(n.textContent,c,e),o=["children",c]):"number"===typeof c&&n.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jn(n.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Dn("scroll",n)}switch(r){case"input":$(n),Z(n,i,!0);break;case"textarea":$(n),ie(n);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(n.onclick=Zn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[fo]=t,e[mo]=n,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,n),r){case"dialog":Dn("cancel",e),Dn("close",e),o=n;break;case"iframe":case"object":case"embed":Dn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Nn.length;o++)Dn(Nn[o],e);o=n;break;case"source":Dn("error",e),o=n;break;case"img":case"image":case"link":Dn("error",e),Dn("load",e),o=n;break;case"details":Dn("toggle",e),o=n;break;case"input":Y(e,n),o=G(e,n),Dn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=F({},n,{value:void 0}),Dn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Dn("invalid",e)}for(i in ye(r,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ve(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==r||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Dn("scroll",e):null!=u&&b(e,i,u,l))}switch(r){case"input":$(e),Z(e,n,!1);break;case"textarea":$(e),ie(e);break;case"option":null!=n.value&&e.setAttribute("value",""+U(n.value));break;case"select":e.multiple=!!n.multiple,null!=(i=n.value)?re(e,!!n.multiple,i,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Zn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(a(166));if(r=ni(ri.current),ni(ei.current),pa(t)){if(n=t.stateNode,r=t.memoizedProps,n[fo]=t,(i=n.nodeValue!==r)&&null!==(e=na))switch(e.tag){case 3:Jn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,0!==(1&e.mode))}i&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[fo]=t,t.stateNode=n}return Qs(t),null;case 13:if(ko(li),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),i=!1}else null!==ia&&(sc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&li.current)?0===Nl&&(Nl=3):vc())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return ai(),Is(e,t),null===e&&Wn(t.stateNode.containerInfo),Qs(t),null;case 10:return Oa(t.type._context),Qs(t),null;case 19:if(ko(li),null===(i=t.memoizedState))return Qs(t),null;if(n=0!==(128&t.flags),null===(l=i.rendering))if(n)$s(i,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,$s(i,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(i=r).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return jo(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>ql&&(t.flags|=128,n=!0,$s(i,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ci(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Qs(t),null}else 2*Xe()-i.renderingStartTime>ql&&1073741824!==r&&(t.flags|=128,n=!0,$s(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=i.last)?r.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,r=li.current,jo(li,n?1&r|2:1&r),t):(Qs(t),null);case 22:case 23:return pc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Il)&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(ra(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),ko(Ro),ko(Po),di(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(ko(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(li),null;case 4:return ai(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}As=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Is=function(){},Ms=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,ni(ei.current);var a,i=null;switch(r){case"input":o=G(e,o),n=G(e,n),i=[];break;case"select":o=F({},o,{value:void 0}),n=F({},n,{value:void 0}),i=[];break;case"textarea":o=ne(e,o),n=ne(e,n),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof n.onClick&&(e.onclick=Zn)}for(u in ye(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Dn("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ys=!1,Xs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){Ec(e,t,n)}else r.current=null}function tl(e,t,r){try{r()}catch(n){Ec(e,t,n)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,r,a)}o=o.next}while(o!==n)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function al(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[vo],delete t[go],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Zn));else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}var dl=null,pl=!1;function fl(e,t,r){for(r=r.child;null!==r;)ml(e,t,r),r=r.sibling}function ml(e,t,r){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,r)}catch(s){}switch(r.tag){case 5:Xs||el(r,t);case 6:var n=dl,o=pl;dl=null,fl(e,t,r),pl=o,null!==(dl=n)&&(pl?(e=dl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dl.removeChild(r.stateNode));break;case 18:null!==dl&&(pl?(e=dl,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),Wt(e)):lo(dl,r.stateNode));break;case 4:n=dl,o=pl,dl=r.stateNode.containerInfo,pl=!0,fl(e,t,r),dl=n,pl=o;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&tl(r,t,i),o=o.next}while(o!==n)}fl(e,t,r);break;case 1:if(!Xs&&(el(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ec(r,t,s)}fl(e,t,r);break;case 21:fl(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,fl(e,t,r),Xs=n):fl(e,t,r);break;default:fl(e,t,r)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Pc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function vl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));ml(i,s,o),dl=null,pl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Ec(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),yl(e),4&n){try{nl(3,e,e.return),ol(3,e)}catch(v){Ec(e,e.return,v)}try{nl(5,e,e.return)}catch(v){Ec(e,e.return,v)}}break;case 1:vl(t,e),yl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(vl(t,e),yl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(v){Ec(e,e.return,v)}}if(4&n&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&X(o,i),be(l,s);var u=be(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ve(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):b(o,d,p,u)}switch(l){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?re(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?re(o,!!i.multiple,i.defaultValue,!0):re(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(v){Ec(e,e.return,v)}}break;case 6:if(vl(t,e),yl(e),4&n){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Ec(e,e.return,v)}}break;case 3:if(vl(t,e),yl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(v){Ec(e,e.return,v)}break;case 4:default:vl(t,e),yl(e);break;case 13:vl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Wl=Xe())),4&n&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xs=(u=Xs)||d,vl(t,e),Xs=u):vl(t,e),yl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(m=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:el(f,f.return);var h=f.stateNode;if("function"===typeof h.componentWillUnmount){n=f,r=f.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){Ec(n,r,v)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){Sl(p);continue}}null!==m?(m.return=f,Zs=m):Sl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",s))}catch(v){Ec(e,e.return,v)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(v){Ec(e,e.return,v)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:vl(t,e),yl(e),4&n&&hl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var n=r;break e}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(pe(o,""),n.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var i=n.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(a(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Zs=e,xl(e,t,r)}function xl(e,t,r){for(var n=0!==(1&e.mode);null!==Zs;){var o=Zs,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Ys;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ys;var c=Xs;if(Ys=i,(Xs=l)&&!c)for(Zs=o;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?Ol(o):null!==l?(l.return=i,Zs=l):Ol(o);for(;null!==a;)Zs=a,xl(a,t,r),a=a.sibling;Zs=o,Ys=s,Xs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zs=a):wl(e)}}function wl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||ol(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Xs)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ga(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Da(t,i,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Da(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Wt(p)}}}break;default:throw Error(a(163))}Xs||512&t.flags&&al(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Zs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zs=r;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Zs=r;break}Zs=t.return}}function Ol(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ol(4,t)}catch(l){Ec(t,r,l)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(l){Ec(t,o,l)}}var a=t.return;try{al(t)}catch(l){Ec(t,a,l)}break;case 5:var i=t.return;try{al(t)}catch(l){Ec(t,i,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var _l,El=Math.ceil,kl=x.ReactCurrentDispatcher,jl=x.ReactCurrentOwner,Cl=x.ReactCurrentBatchConfig,Pl=0,Rl=null,Tl=null,Al=0,Il=0,Ml=Eo(0),Nl=0,Ll=null,Fl=0,zl=0,Dl=0,Bl=null,Vl=null,Wl=0,ql=1/0,Ul=null,Hl=!1,$l=null,Ql=null,Kl=!1,Gl=null,Yl=0,Xl=0,Jl=null,Zl=-1,ec=0;function tc(){return 0!==(6&Pl)?Xe():-1!==Zl?Zl:Zl=Xe()}function rc(e){return 0===(1&e.mode)?1:0!==(2&Pl)&&0!==Al?Al&-Al:null!==va.transition?(0===ec&&(ec=ht()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nc(e,t,r,n){if(50<Xl)throw Xl=0,Jl=null,Error(a(185));gt(e,r,n),0!==(2&Pl)&&e===Rl||(e===Rl&&(0===(2&Pl)&&(zl|=r),4===Nl&&lc(e,Al)),oc(e,n),1===r&&0===Pl&&0===(1&t.mode)&&(ql=Xe()+500,Bo&&qo()))}function oc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!==(s&r)&&0===(s&n)||(o[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=pt(e,e===Rl?Al:0);if(0===n)null!==r&&Ke(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ke(r),1===t)0===e.tag?function(e){Bo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),io((function(){0===(6&Pl)&&qo()})),r=null;else{switch(xt(n)){case 1:r=Ze;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Rc(r,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ac(e,t){if(Zl=-1,ec=0,0!==(6&Pl))throw Error(a(327));var r=e.callbackNode;if(Oc()&&e.callbackNode!==r)return null;var n=pt(e,e===Rl?Al:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=gc(e,n);else{t=n;var o=Pl;Pl|=2;var i=hc();for(Rl===e&&Al===t||(Ul=null,ql=Xe()+500,fc(e,t));;)try{bc();break}catch(l){mc(e,l)}Sa(),kl.current=i,Pl=o,null!==Tl?t=0:(Rl=null,Al=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(n=o,t=ic(e,o))),1===t)throw r=Ll,fc(e,0),lc(e,n),oc(e,Xe()),r;if(6===t)lc(e,n);else{if(o=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!sn(a(),o))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,n))&&(0!==(i=mt(e))&&(n=i,t=ic(e,i))),1===t))throw r=Ll,fc(e,0),lc(e,n),oc(e,Xe()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(a(345));case 2:case 5:Sc(e,Vl,Ul);break;case 3:if(lc(e,n),(130023424&n)===n&&10<(t=Wl+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(Sc.bind(null,e,Vl,Ul),t);break}Sc(e,Vl,Ul);break;case 4:if(lc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-it(n);i=1<<s,(s=t[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Xe()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=no(Sc.bind(null,e,Vl,Ul),n);break}Sc(e,Vl,Ul);break;default:throw Error(a(329))}}}return oc(e,Xe()),e.callbackNode===r?ac.bind(null,e):null}function ic(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Vl,Vl=r,null!==t&&sc(t)),e}function sc(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function lc(e,t){for(t&=~Dl,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-it(t),n=1<<r;e[r]=-1,t&=~n}}function cc(e){if(0!==(6&Pl))throw Error(a(327));Oc();var t=pt(e,0);if(0===(1&t))return oc(e,Xe()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var n=mt(e);0!==n&&(t=n,r=ic(e,n))}if(1===r)throw r=Ll,fc(e,0),lc(e,t),oc(e,Xe()),r;if(6===r)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Vl,Ul),oc(e,Xe()),null}function uc(e,t){var r=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=r)&&(ql=Xe()+500,Bo&&qo())}}function dc(e){null!==Gl&&0===Gl.tag&&0===(6&Pl)&&Oc();var t=Pl;Pl|=1;var r=Cl.transition,n=bt;try{if(Cl.transition=null,bt=1,e)return e()}finally{bt=n,Cl.transition=r,0===(6&(Pl=t))&&qo()}}function pc(){Il=Ml.current,ko(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==Tl)for(r=Tl.return;null!==r;){var n=r;switch(ra(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Mo();break;case 3:ai(),ko(Ro),ko(Po),di();break;case 5:si(n);break;case 4:ai();break;case 13:case 19:ko(li);break;case 10:Oa(n.type._context);break;case 22:case 23:pc()}r=r.return}if(Rl=e,Tl=e=Mc(e.current,null),Al=Il=t,Nl=0,Ll=null,Dl=zl=Fl=0,Vl=Bl=null,null!==ja){for(t=0;t<ja.length;t++)if(null!==(n=(r=ja[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}ja=null}return e}function mc(e,t){for(;;){var r=Tl;try{if(Sa(),pi.current=is,yi){for(var n=hi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}yi=!1}if(mi=0,gi=vi=hi=null,bi=!1,xi=0,jl.current=null,null===r||null===r.return){Nl=1,Ll=t,Tl=null;break}e:{var i=e,s=r.return,l=r,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=gs(s);if(null!==m){m.flags&=-257,ys(m,s,l,0,t),1&m.mode&&vs(i,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(c),t.updateQueue=v}else h.add(c);break e}if(0===(1&t)){vs(i,u,t),vc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var g=gs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),ha(us(c,l));break e}}i=c=us(c,l),4!==Nl&&(Nl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fa(i,ms(0,c,t));break e;case 1:l=c;var y=i.type,b=i.stateNode;if(0===(128&i.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ql||!Ql.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Fa(i,hs(i,l,t));break e}}i=i.return}while(null!==i)}wc(r)}catch(x){t=x,Tl===r&&null!==r&&(Tl=r=r.return);continue}break}}function hc(){var e=kl.current;return kl.current=is,null===e?is:e}function vc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||0===(268435455&Fl)&&0===(268435455&zl)||lc(Rl,Al)}function gc(e,t){var r=Pl;Pl|=2;var n=hc();for(Rl===e&&Al===t||(Ul=null,fc(e,t));;)try{yc();break}catch(o){mc(e,o)}if(Sa(),Pl=r,kl.current=n,null!==Tl)throw Error(a(261));return Rl=null,Al=0,Nl}function yc(){for(;null!==Tl;)xc(Tl)}function bc(){for(;null!==Tl&&!Ge();)xc(Tl)}function xc(e){var t=_l(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?wc(e):Tl=t,jl.current=null}function wc(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Ks(r,t,Il)))return void(Tl=r)}else{if(null!==(r=Gs(r,t)))return r.flags&=32767,void(Tl=r);if(null===e)return Nl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function Sc(e,t,r){var n=bt,o=Cl.transition;try{Cl.transition=null,bt=1,function(e,t,r,n){do{Oc()}while(null!==Gl);if(0!==(6&Pl))throw Error(a(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-it(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,i),e===Rl&&(Tl=Rl=null,Al=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Kl||(Kl=!0,Rc(tt,(function(){return Oc(),null}))),i=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||i){i=Cl.transition,Cl.transition=null;var s=bt;bt=1;var l=Pl;Pl|=4,jl.current=null,function(e,t){if(eo=Ut,fn(e=pn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(w){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==r||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==n&&3!==p.nodeType||(c=s+n),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===r&&++u===o&&(l=s),f===i&&++d===n&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var h=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ga(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(w){Ec(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}h=rl,rl=!1}(e,r),gl(r,e),mn(to),Ut=!!eo,to=eo=null,e.current=r,bl(r,e,o),Ye(),Pl=l,bt=s,Cl.transition=i}else e.current=r;if(Kl&&(Kl=!1,Gl=e,Yl=o),i=e.pendingLanes,0===i&&(Ql=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),oc(e,Xe()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=$l,$l=null,e;0!==(1&Yl)&&0!==e.tag&&Oc(),i=e.pendingLanes,0!==(1&i)?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,qo()}(e,t,r,n)}finally{Cl.transition=o,bt=n}return null}function Oc(){if(null!==Gl){var e=xt(Yl),t=Cl.transition,r=bt;try{if(Cl.transition=null,bt=16>e?16:e,null===Gl)var n=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Pl))throw Error(a(331));var o=Pl;for(Pl|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(0!==(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var f=(d=Zs).sibling,m=d.return;if(il(d),d===u){Zs=null;break}if(null!==f){f.return=m,Zs=f;break}Zs=m}}}var h=i.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zs=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zs=y;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var x=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Zs=x;else e:for(s=b;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(S){Ec(l,l.return,S)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Pl=o,qo(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(S){}n=!0}return n}finally{bt=r,Cl.transition=t}}return!1}function _c(e,t,r){e=Na(e,t=ms(0,t=us(r,t),1),1),t=tc(),null!==e&&(gt(e,1,t),oc(e,t))}function Ec(e,t,r){if(3===e.tag)_c(e,e,r);else for(;null!==t;){if(3===t.tag){_c(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Ql||!Ql.has(n))){t=Na(t,e=hs(t,e=us(r,e),1),1),e=tc(),null!==t&&(gt(t,1,e),oc(t,e));break}}t=t.return}}function kc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&r,Rl===e&&(Al&r)===r&&(4===Nl||3===Nl&&(130023424&Al)===Al&&500>Xe()-Wl?fc(e,0):Dl|=r),oc(e,t)}function jc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var r=tc();null!==(e=Ra(e,t))&&(gt(e,t,r),oc(e,r))}function Cc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),jc(e,r)}function Pc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(t),jc(e,r)}function Rc(e,t){return Qe(e,t)}function Tc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,r,n){return new Tc(e,t,r,n)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var r=e.alternate;return null===r?((r=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Nc(e,t,r,n,o,i){var s=2;if(n=e,"function"===typeof e)Ic(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case O:return Lc(r.children,o,i,t);case _:s=8,o|=8;break;case E:return(e=Ac(12,r,t,2|o)).elementType=E,e.lanes=i,e;case P:return(e=Ac(13,r,t,o)).elementType=P,e.lanes=i,e;case R:return(e=Ac(19,r,t,o)).elementType=R,e.lanes=i,e;case I:return Fc(r,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case j:s=9;break e;case C:s=11;break e;case T:s=14;break e;case A:s=16,n=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ac(s,r,t,o)).elementType=e,t.type=n,t.lanes=i,t}function Lc(e,t,r,n){return(e=Ac(7,e,n,t)).lanes=r,e}function Fc(e,t,r,n){return(e=Ac(22,e,n,t)).elementType=I,e.lanes=r,e.stateNode={isHidden:!1},e}function zc(e,t,r){return(e=Ac(6,e,null,t)).lanes=r,e}function Dc(e,t,r){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vc(e,t,r,n,o,a,i,s,l){return e=new Bc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ac(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aa(a),e}function Wc(e){if(!e)return Co;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var r=e.type;if(Io(r))return Lo(e,r,t)}return t}function qc(e,t,r,n,o,a,i,s,l){return(e=Vc(r,n,!0,e,0,a,0,s,l)).context=Wc(null),r=e.current,(a=Ma(n=tc(),o=rc(r))).callback=void 0!==t&&null!==t?t:null,Na(r,a,o),e.current.lanes=o,gt(e,o,n),oc(e,n),e}function Uc(e,t,r,n){var o=t.current,a=tc(),i=rc(o);return r=Wc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ma(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Na(o,t,i))&&(nc(e,o,i,a),La(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Qc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}_l=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)xs=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return xs=!1,function(e,t,r){switch(t.tag){case 3:Rs(t),ma();break;case 5:ii(t);break;case 1:Io(t.type)&&Fo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;jo(ya,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(jo(li,1&li.current),t.flags|=128,null):0!==(r&t.child.childLanes)?zs(e,t,r):(jo(li,1&li.current),null!==(e=Hs(e,t,r))?e.sibling:null);jo(li,1&li.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return qs(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),jo(li,li.current),n)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,r)}return Hs(e,t,r)}(e,t,r);xs=0!==(131072&e.flags)}else xs=!1,aa&&0!==(1048576&t.flags)&&ea(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Us(e,t),e=t.pendingProps;var o=Ao(t,Po.current);Ea(t,r),o=_i(null,t,n,e,o,r);var i=Ei();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(n)?(i=!0,Fo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Aa(t),o.updater=Wa,t.stateNode=o,o._reactInternals=t,$a(t,n,e,r),t=Ps(null,t,n,!0,i,r)):(t.tag=0,aa&&i&&ta(t),ws(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"===typeof e)return Ic(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===T)return 14}return 2}(n),e=ga(n,e),o){case 0:t=js(null,t,n,e,r);break e;case 1:t=Cs(null,t,n,e,r);break e;case 11:t=Ss(null,t,n,e,r);break e;case 14:t=Os(null,t,n,ga(n.type,e),r);break e}throw Error(a(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,js(e,t,n,o=t.elementType===n?o:ga(n,o),r);case 1:return n=t.type,o=t.pendingProps,Cs(e,t,n,o=t.elementType===n?o:ga(n,o),r);case 3:e:{if(Rs(t),null===e)throw Error(a(387));n=t.pendingProps,o=(i=t.memoizedState).element,Ia(e,t),za(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ts(e,t,n,r,o=us(Error(a(423)),t));break e}if(n!==o){t=Ts(e,t,n,r,o=us(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),na=t,aa=!0,ia=null,r=Ja(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ma(),n===o){t=Hs(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==i&&ro(n,i)&&(t.flags|=32),ks(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&ua(t),null;case 13:return zs(e,t,r);case 4:return oi(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Xa(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,Ss(e,t,n,o=t.elementType===n?o:ga(n,o),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,jo(ya,n._currentValue),n._currentValue=s,null!==i)if(sn(i.value,s)){if(i.children===o.children&&!Ro.current){t=Hs(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===i.tag){(c=Ma(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),_a(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),_a(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Ea(t,r),n=n(o=ka(o)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return o=ga(n=t.type,t.pendingProps),Os(e,t,n,o=ga(n.type,o),r);case 15:return _s(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ga(n,o),Us(e,t),t.tag=1,Io(n)?(e=!0,Fo(t)):e=!1,Ea(t,r),Ua(t,n,o),$a(t,n,o,r),Ps(null,t,n,!0,e,r);case 19:return qs(e,t,r);case 22:return Es(e,t,r)}throw Error(a(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"===typeof o){var s=o;o=function(){var e=Hc(i);s.call(e)}}Uc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"===typeof n){var a=n;n=function(){var e=Hc(i);a.call(e)}}var i=qc(t,n,e,0,null,!1,0,"",Zc);return e._reactRootContainer=i,e[ho]=i.current,Wn(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof n){var s=n;n=function(){var e=Hc(l);s.call(e)}}var l=Vc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[ho]=l.current,Wn(8===e.nodeType?e.parentNode:e),dc((function(){Uc(t,l,r,n)})),l}(r,t,e,o,n);return Hc(i)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Uc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Uc(null,e,null,null)})),t[ho]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var r=0;r<It.length&&0!==t&&t<It[r].priority;r++);It.splice(r,0,e),0===r&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),oc(t,Xe()),0===(6&Pl)&&(ql=Xe()+500,qo()))}break;case 13:dc((function(){var t=Ra(e,1);if(null!==t){var r=tc();nc(t,e,1,r)}})),Qc(e,1)}},St=function(e){if(13===e.tag){var t=Ra(e,134217728);if(null!==t)nc(t,e,134217728,tc());Qc(e,134217728)}},Ot=function(e){if(13===e.tag){var t=rc(e),r=Ra(e,t);if(null!==r)nc(r,e,t,tc());Qc(e,t)}},_t=function(){return bt},Et=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},Se=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=So(n);if(!o)throw Error(a(90));Q(n),J(n,o)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ce=uc,Pe=dc;var tu={usingClientEntryPoint:!1,Events:[xo,wo,So,ke,je,uc]},ru={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nu={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(nu),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var r=!1,n="",o=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vc(e,1,!1,null,0,r,0,n,o),e[ho]=t.current,Wn(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,r){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Xc(e))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,o=!1,i="",s=Kc;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=qc(t,null,e,1,null!=r?r:null,o,0,i,s),e[ho]=t.current,Wn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Yc(t)},t.render=function(e,t,r){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Jc(r))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},1180:(e,t,r)=>{"use strict";var n=r(1292);t.C=n.createRoot,n.hydrateRoot},1292:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(6144)},8483:function(e,t,r){!function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(t);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var i=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,r){return!Object.is(e,t[r])}))},s={error:null},l=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state=s,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}a(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var r=t.prototype;return r.reset=function(){this.setState(s)},r.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},r.componentDidUpdate=function(e,t){var r,n,o=this.state.error,a=this.props.resetKeys;null!==o&&null!==t.error&&i(e.resetKeys,a)&&(null==(r=(n=this.props).onResetKeysChange)||r.call(n,e.resetKeys,a),this.reset())},r.render=function(){var e=this.state.error,t=this.props,r=t.fallbackRender,o=t.FallbackComponent,a=t.fallback;if(null!==e){var i={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(a))return a;if("function"===typeof r)return r(i);if(o)return n.createElement(o,i);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(n.Component);function c(e,t){var r=function(r){return n.createElement(l,t,n.createElement(e,r))},o=e.displayName||e.name||"Unknown";return r.displayName="withErrorBoundary("+o+")",r}function u(e){var t=n.useState(null),r=t[0],o=t[1];if(null!=e)throw e;if(null!=r)throw r;return o}e.ErrorBoundary=l,e.useErrorHandler=u,e.withErrorBoundary=c,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(9060))},4040:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case h:case m:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}},3184:(e,t,r)=>{"use strict";e.exports=r(4040)},9768:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(568),o=r(8116),a=r(9448),i=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!a.oj&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.c)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setFocused(e):r.onFocus()}))},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach((function(e){e()}))},r.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.Q))},7312:(e,t,r)=>{"use strict";r.d(t,{QueryClient:()=>n.S,hashQueryKey:()=>a.aw,notifyManager:()=>o.y});var n=r(7648),o=r(104),a=r(9448),i=r(9848);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useMutation")&&r.d(t,{useMutation:function(){return i.useMutation}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}}),r.o(i,"useQueryClient")&&r.d(t,{useQueryClient:function(){return i.useQueryClient}})},4984:(e,t,r)=>{"use strict";r.d(t,{e:()=>o,k:()=>a});var n=console;function o(){return n}function a(e){n=e}},4956:(e,t,r)=>{"use strict";r.d(t,{e:()=>l,k:()=>c});var n=r(5072),o=r(4984),a=r(104),i=r(4840),s=r(9448),l=function(){function e(e){this.options=(0,n.c)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.Kw).catch(s.Kw)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),n.then((function(){return t.executeMutation()})).then((function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.e)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new i.et({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.c)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.c)({},e,{isPaused:!0});case"continue":return(0,n.c)({},e,{isPaused:!1});case"loading":return(0,n.c)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.c)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.c)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.c)({},e,t.state);default:return e}}(this.state,e),a.y.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},104:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(9448),o=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n._8)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.schedule((function(){e.apply(void 0,n)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,n._8)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},2232:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(568),o=r(8116),a=r(9448),i=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!a.oj&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.c)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setOnline(e):r.onOnline()}))},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach((function(e){e()}))},r.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(o.Q))},7648:(e,t,r)=>{"use strict";r.d(t,{S:()=>y});var n=r(5072),o=r(9448),a=r(568),i=r(104),s=r(4984),l=r(4840),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.c)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.AT)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,a=this.state.data,i=(0,o.iY)(e,a);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,a,i))?i=a:!1!==this.options.structuralSharing&&(i=(0,o.CO)(a,i)),this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),i},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(o.Kw).catch(o.Kw):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.ob)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,a,i=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,o.ye)(this.queryKey),p=(0,o._k)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return i.abortSignalConsumed=!0,p.signal}});var m,h,v={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(r=this.options.behavior)?void 0:r.onFetch)&&(null==(m=this.options.behavior)||m.onFetch(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(n=v.fetchOptions)?void 0:n.meta))||this.dispatch({type:"fetch",meta:null==(h=v.fetchOptions)?void 0:h.meta});return this.retryer=new l.et({fn:v.fetchFn,abort:null==p||null==(a=p.abort)?void 0:a.bind(p),onSuccess:function(e){i.setData(e),null==i.cache.config.onSuccess||i.cache.config.onSuccess(e,i),0===i.cacheTime&&i.optionalRemove()},onError:function(e){(0,l.qu)(e)&&e.silent||i.dispatch({type:"error",error:e}),(0,l.qu)(e)||(null==i.cache.config.onError||i.cache.config.onError(e,i),(0,s.e)().error(e)),0===i.cacheTime&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),i.y.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,r="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,o;switch(t.type){case"failed":return(0,n.c)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.c)({},e,{isPaused:!0});case"continue":return(0,n.c)({},e,{isPaused:!1});case"fetch":return(0,n.c)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.c)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var a=t.error;return(0,l.qu)(a)&&a.revert&&this.revertState?(0,n.c)({},this.revertState):(0,n.c)({},e,{error:a,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.c)({},e,{isInvalidated:!0});case"setState":return(0,n.c)({},e,t.state);default:return e}},e}(),u=r(8116),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,a.c)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,a=t.queryKey,i=null!=(n=t.queryHash)?n:(0,o.oX)(a,t),s=this.get(i);return s||(s=new c({cache:this,queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;i.y.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,o.A7)(e,t)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return(0,o._W)(r,e)}))},r.findAll=function(e,t){var r=(0,o.A7)(e,t)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return(0,o._W)(r,e)})):this.queries},r.notify=function(e){var t=this;i.y.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){var e=this;i.y.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},r.onOnline=function(){var e=this;i.y.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.Q),p=r(4956),f=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,a.c)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new p.e({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},r.clear=function(){var e=this;i.y.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},r.getAll=function(){return this.mutations},r.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,o.Yn)(e,t)}))},r.findAll=function(e){return this.mutations.filter((function(t){return(0,o.Yn)(e,t)}))},r.notify=function(e){var t=this;i.y.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.y.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(o.Kw)}))}),Promise.resolve())}))},t}(u.Q),m=r(9768),h=r(2232);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function g(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=m.m.subscribe((function(){m.m.isFocused()&&h.q.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=h.q.subscribe((function(){m.m.isFocused()&&h.q.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,o.A7)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.c)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,r){var n=(0,o.O2)(e),a=this.defaultQueryOptions(n);return this.queryCache.build(this,a).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return i.y.batch((function(){return n.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,n.setQueryData(o,t,r)]}))}))},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,o.A7)(e,t)[0],n=this.queryCache;i.y.batch((function(){n.findAll(r).forEach((function(e){n.remove(e)}))}))},t.resetQueries=function(e,t,r){var a=this,s=(0,o.A7)(e,t,r),l=s[0],c=s[1],u=this.queryCache,d=(0,n.c)({},l,{active:!0});return i.y.batch((function(){return u.findAll(l).forEach((function(e){e.reset()})),a.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,r){var n=this,a=(0,o.A7)(e,t,r),s=a[0],l=a[1],c=void 0===l?{}:l;"undefined"===typeof c.revert&&(c.revert=!0);var u=i.y.batch((function(){return n.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(u).then(o.Kw).catch(o.Kw)},t.invalidateQueries=function(e,t,r){var a,s,l,c=this,u=(0,o.A7)(e,t,r),d=u[0],p=u[1],f=(0,n.c)({},d,{active:null==(a=null!=(s=d.refetchActive)?s:d.active)||a,inactive:null!=(l=d.refetchInactive)&&l});return i.y.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,r){var a=this,s=(0,o.A7)(e,t,r),l=s[0],c=s[1],u=i.y.batch((function(){return a.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,n.c)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),d=Promise.all(u).then(o.Kw);return(null==c?void 0:c.throwOnError)||(d=d.catch(o.Kw)),d},t.fetchQuery=function(e,t,r){var n=(0,o.O2)(e,t,r),a=this.defaultQueryOptions(n);"undefined"===typeof a.retry&&(a.retry=!1);var i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(o.Kw).catch(o.Kw)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,o.O2)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,a,i,s,c,u=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(a=n.meta)?void 0:a.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),m="backward"===(null==d?void 0:d.direction),h=(null==(i=e.state.data)?void 0:i.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,o._k)(),x=null==b?void 0:b.signal,w=y,S=!1,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},_=function(e,t,r,n){return w=n?[t].concat(w):[].concat(w,[t]),n?[r].concat(e):[].concat(e,[r])},E=function(t,r,n,o){if(S)return Promise.reject("Cancelled");if("undefined"===typeof n&&!r&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:x,pageParam:n,meta:e.meta},i=O(a),s=Promise.resolve(i).then((function(e){return _(t,n,e,o)}));return(0,l.k7)(i)&&(s.cancel=i.cancel),s};if(h.length)if(f){var k="undefined"!==typeof p,j=k?p:v(e.options,h);c=E(h,k,j)}else if(m){var C="undefined"!==typeof p,P=C?p:g(e.options,h);c=E(h,C,P,!0)}else!function(){w=[];var t="undefined"===typeof e.options.getNextPageParam,r=!u||!h[0]||u(h[0],0,h);c=r?E([],t,y[0]):Promise.resolve(_([],y[0],h[0]));for(var n=function(r){c=c.then((function(n){if(!u||!h[r]||u(h[r],r,h)){var o=t?y[r]:v(e.options,n);return E(n,t,o)}return Promise.resolve(_(n,y[r],h[r]))}))},o=1;o<h.length;o++)n(o)}();else c=E([]);var R=c.then((function(e){return{pages:e,pageParams:w}}));return R.cancel=function(){S=!0,null==b||b.abort(),(0,l.k7)(c)&&c.cancel()},R}}},this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(o.Kw).catch(o.Kw)},t.cancelMutations=function(){var e=this,t=i.y.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(o.Kw).catch(o.Kw)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var r=this.queryDefaults.find((function(t){return(0,o.aw)(e)===(0,o.aw)(t.queryKey)}));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,o.GS)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var r=this.mutationDefaults.find((function(t){return(0,o.aw)(e)===(0,o.aw)(t.mutationKey)}));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,o.GS)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,n.c)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.oX)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,n.c)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},4840:(e,t,r)=>{"use strict";r.d(t,{et:()=>u,k7:()=>s,qu:()=>c});var n=r(9768),o=r(2232),a=r(9448);function i(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,r,c,u,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),c(t))},m=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),u(t))};!function c(){if(!d.isResolved){var u;try{u=e.fn()}catch(h){u=Promise.reject(h)}t=function(e){if(!d.isResolved&&(m(new l(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,l;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(l=e.retryDelay)?l:i,h="function"===typeof f?f(d.failureCount,t):f,v=!0===u||"number"===typeof u&&d.failureCount<u||"function"===typeof u&&u(d.failureCount,t);!p&&v?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,a.W_)(h).then((function(){if(!n.m.isFocused()||!o.q.isOnline())return new Promise((function(t){r=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){r=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?m(t):c()}))):m(t)}}))}}()}},8116:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==r})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},9848:()=>{},9448:(e,t,r)=>{"use strict";r.d(t,{A7:()=>p,AT:()=>s,CO:()=>b,GM:()=>d,GS:()=>g,Kw:()=>a,O2:()=>u,W_:()=>_,Yn:()=>m,_8:()=>E,_W:()=>f,_k:()=>k,aw:()=>v,iY:()=>i,oX:()=>h,ob:()=>c,oj:()=>o,wL:()=>x,ye:()=>l});var n=r(5072),o="undefined"===typeof window;function a(){}function i(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return O(e)?"function"===typeof t?(0,n.c)({},r,{queryKey:e,queryFn:t}):(0,n.c)({},t,{queryKey:e}):e}function d(e,t,r){return O(e)?"function"===typeof t?(0,n.c)({},r,{mutationKey:e,mutationFn:t}):(0,n.c)({},t,{mutationKey:e}):"function"===typeof e?(0,n.c)({},t,{mutationFn:e}):(0,n.c)({},e)}function p(e,t,r){return O(e)?[(0,n.c)({},t,{queryKey:e}),r]:[e||{},t]}function f(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,l=e.stale;if(O(s))if(n){if(t.queryHash!==h(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,a);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("boolean"!==typeof o||t.isFetching()===o)&&!(i&&!i(t)))}function m(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(O(a)){if(!t.options.mutationKey)return!1;if(r){if(v(t.options.mutationKey)!==v(a))return!1}else if(!g(t.options.mutationKey,a))return!1}return("boolean"!==typeof n||"loading"===t.state.status===n)&&!(o&&!o(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,r=l(e);return t=r,JSON.stringify(t,(function(e,t){return w(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function g(e,t){return y(l(e),l(t))}function y(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(r){return!y(e[r],t[r])})))}function b(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||w(e)&&w(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,l=0;l<a;l++){var c=r?l:o[l];i[c]=b(e[c],t[c]),i[c]===e[c]&&s++}return n===a&&s===n?e:i}return t}function x(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function w(e){if(!S(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var r=t.prototype;return!!S(r)&&!!r.hasOwnProperty("isPrototypeOf")}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e){return"string"===typeof e||Array.isArray(e)}function _(e){return new Promise((function(t){setTimeout(t,e)}))}function E(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function k(){if("function"===typeof AbortController)return new AbortController}},8807:(e,t,r)=>{"use strict";r.d(t,{QueryClient:()=>n.QueryClient,QueryClientProvider:()=>o.QueryClientProvider,hashQueryKey:()=>n.hashQueryKey,notifyManager:()=>n.notifyManager,useMutation:()=>o.useMutation,useQuery:()=>o.useQuery,useQueryClient:()=>o.useQueryClient});var n=r(7312);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var o=r(7228)},7228:(e,t,r)=>{"use strict";r.d(t,{QueryClientProvider:()=>p,useMutation:()=>x,useQuery:()=>T,useQueryClient:()=>d});var n=r(104),o=r(1292).unstable_batchedUpdates;n.y.setBatchNotifyFunction(o);var a=r(4984),i=console;(0,a.k)(i);var s=r(9060),l=s.createContext(void 0),c=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=s.useContext(u(s.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,o=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=u(n);return s.createElement(c.Provider,{value:n},s.createElement(a.Provider,{value:t},o))},f=r(5072),m=r(9448),h=r(568),v=r(4956),g=r(8116),y=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,h.c)(t,e);var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},r.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},r.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,f.c)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,v.k)(),t=(0,f.c)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},r.notify=function(e){var t=this;n.y.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(g.Q);function b(e,t,r){return"function"===typeof t?t.apply(void 0,r):"boolean"===typeof t?t:!!e}function x(e,t,r){var o=s.useRef(!1),a=s.useState(0)[1],i=(0,m.GM)(e,t,r),l=d(),c=s.useRef();c.current?c.current.setOptions(i):c.current=new y(l,i);var u=c.current.getCurrentResult();s.useEffect((function(){o.current=!0;var e=c.current.subscribe(n.y.batchCalls((function(){o.current&&a((function(e){return e+1}))})));return function(){o.current=!1,e()}}),[]);var p=s.useCallback((function(e,t){c.current.mutate(e,t).catch(m.Kw)}),[]);if(u.error&&b(void 0,c.current.options.useErrorBoundary,[u.error]))throw u.error;return(0,f.c)({},u,{mutate:p,mutateAsync:u.mutate})}var w=r(9768),S=r(4840),O=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,h.c)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),_(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return E(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return E(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var o=this.hasListeners();o&&k(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var a=this.computeRefetchInterval();!o||this.currentQuery===n&&this.options.enabled===r.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},o=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),n},r.getNextResult=function(e){var t=this;return new Promise((function(r,n){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))}))}))},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,f.c)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then((function(){return t.createResult(n,r)}))},r.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(m.Kw)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!m.oj&&!this.currentResult.isStale&&(0,m.AT)(this.options.staleTime)){var t=(0,m.ob)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},r.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!m.oj&&!1!==this.options.enabled&&(0,m.AT)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||w.m.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n=this.currentQuery,o=this.options,i=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==n,u=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,h=p.error,v=p.errorUpdatedAt,g=p.isFetching,y=p.status,b=!1,x=!1;if(t.optimisticResults){var w=this.hasListeners(),S=!w&&_(e,t),O=w&&k(e,n,t,o);(S||O)&&(g=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)r=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&"undefined"!==typeof p.data)if(i&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(p.data),!1!==t.structuralSharing&&(r=(0,m.CO)(null==i?void 0:i.data,r)),this.selectResult=r,this.selectError=null}catch(C){(0,a.e)().error(C),this.selectError=C}else r=p.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof r&&("loading"===y||"idle"===y)){var E;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))E=i.data;else if(E="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof E)try{E=t.select(E),!1!==t.structuralSharing&&(E=(0,m.CO)(null==i?void 0:i.data,E)),this.selectError=null}catch(C){(0,a.e)().error(C),this.selectError=C}"undefined"!==typeof E&&(y="success",r=E,x=!0)}return this.selectError&&(h=this.selectError,r=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:r,dataUpdatedAt:f,error:h,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:x,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:j(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,o=r.notifyOnChangePropsExclusions;if(!n&&!o)return!0;if("tracked"===n&&!this.trackedProps.length)return!0;var a="tracked"===n?this.trackedProps:n;return Object.keys(e).some((function(r){var n=r,i=e[n]!==t[n],s=null==a?void 0:a.some((function(e){return e===r})),l=null==o?void 0:o.some((function(e){return e===r}));return i&&!l&&(!a||s)}))},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,m.wL)(this.currentResult,t)){var r={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,f.c)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,S.qu)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;n.y.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(g.Q);function _(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&E(e,t,t.refetchOnMount)}function E(e,t,r){if(!1!==t.enabled){var n="function"===typeof r?r(e):r;return"always"===n||!1!==n&&j(e,t)}return!1}function k(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&j(e,r)}function j(e,t){return e.isStaleByTime(t.staleTime)}function C(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var P=s.createContext(C()),R=function(){return s.useContext(P)};function T(e,t,r){return function(e,t){var r=s.useRef(!1),o=s.useState(0)[1],a=d(),i=R(),l=a.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=n.y.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=n.y.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=n.y.batchCalls(l.onSettled)),l.suspense&&("number"!==typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(i.isReset()||(l.retryOnMount=!1));var c=s.useState((function(){return new t(a,l)}))[0],u=c.getOptimisticResult(l);if(s.useEffect((function(){r.current=!0,i.clearReset();var e=c.subscribe(n.y.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return c.updateResult(),function(){r.current=!1,e()}}),[i,c]),s.useEffect((function(){c.setOptions(l,{listeners:!1})}),[l,c]),l.suspense&&u.isLoading)throw c.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){i.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(u.isError&&!i.isReset()&&!u.isFetching&&b(l.suspense,l.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return"tracked"===l.notifyOnChangeProps&&(u=c.trackResult(u,l)),u}((0,m.O2)(e,t,r),O)}},36:(e,t,r)=>{"use strict";var n=r(9060),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4564:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var x=b.prototype=new y;x.constructor=b,h(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:r,type:e,key:i,ref:s,props:a,_owner:O.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var j=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return i=i(l=e),e=""===a?"."+C(l,0):a,w(i)?(o="",null!=e&&(o=e.replace(j,"$&/")+"/"),P(i,t,o,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(j,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+C(s=e[c],c);l+=P(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,o,u=a+C(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,r){if(null==e)return e;var n=[],o=0;return P(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},I={transition:null},M={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:I,ReactCurrentOwner:O};t.Children={map:R,forEach:function(e,t,r){R(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=i,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=O.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:r,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,r){return A.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,r){return A.current.useReducer(e,t,r)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return A.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},9060:(e,t,r)=>{"use strict";e.exports=r(4564)},2496:(e,t,r)=>{"use strict";e.exports=r(36)},7112:(e,t,r)=>{"use strict";var n=r(4160),o=r(8600),a=r(7484),i=n("RegExp.prototype.exec"),s=o("%TypeError%");e.exports=function(e){if(!a(e))throw new s("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},6692:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<a(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,i=o>>>1;n<i;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,r))c<o&&0>a(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<o&&0>a(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=n(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function w(e){if(v=!1,x(e),!h)if(null!==n(c))h=!0,I(S);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function S(e,r){h=!1,v&&(v=!1,y(k),k=-1),m=!0;var a=f;try{for(x(r),p=n(c);null!==p&&(!(p.expirationTime>r)||e&&!P());){var i=p.callback;if("function"===typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?p.callback=s:p===n(c)&&o(c),x(r)}else o(c);p=n(c)}if(null!==p)var l=!0;else{var d=n(u);null!==d&&M(w,d.startTime-r),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O,_=!1,E=null,k=-1,j=5,C=-1;function P(){return!(t.unstable_now()-C<j)}function R(){if(null!==E){var e=t.unstable_now();C=e;var r=!0;try{r=E(!0,e)}finally{r?O():(_=!1,E=null)}}else _=!1}if("function"===typeof b)O=function(){b(R)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,A=T.port2;T.port1.onmessage=R,O=function(){A.postMessage(null)}}else O=function(){g(R,0)};function I(e){E=e,_||(_=!0,O())}function M(e,r){k=g((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,I(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,r(u,e),null===n(c)&&e===n(u)&&(v?(y(k),k=-1):v=!0,M(w,a-i))):(e.sortIndex=s,r(c,e),h||m||(h=!0,I(S))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},7724:(e,t,r)=>{"use strict";e.exports=r(6692)},6572:(e,t,r)=>{"use strict";var n=r(8600),o=r(1488),a=r(9256)(),i=r(5884),s=n("%TypeError%"),l=n("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(a?o(e,"length",t,!0,!0):o(e,"length",t)),e}},9064:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},548:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},440:(e,t,r)=>{"use strict";var n=r(4700),o=r(928),a=r(4160)("String.prototype.replace"),i=/^\s$/.test("\u180e"),s=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(n(this));return a(a(e,s,""),l,"")}},1060:(e,t,r)=>{"use strict";var n=r(788),o=r(2988),a=r(4700),i=r(440),s=r(6052),l=r(2400),c=n(s()),u=function(e){return a(e),c(e)};o(u,{getPolyfill:s,implementation:i,shim:l}),e.exports=u},6052:(e,t,r)=>{"use strict";var n=r(440),o="\u180e";e.exports=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()&&o.trim()===o&&"_\u180e"==="_\u180e".trim()&&"\u180e_"==="\u180e_".trim()?String.prototype.trim:n}},2400:(e,t,r)=>{"use strict";var n=r(2988),o=r(6052);e.exports=function(){var e=o();return n(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},1568:e=>{"use strict";var t=function(){};e.exports=t},6204:()=>{},2411:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},216:(e,t,r)=>{"use strict";var n=r(8600),o=r(4160),a=n("%TypeError%"),i=r(7832),s=n("%Reflect.apply%",!0)||o("Function.prototype.apply");e.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!i(r))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,r)}},6240:(e,t,r)=>{"use strict";var n=r(8600)("%TypeError%"),o=r(4976),a=r(656),i=r(2004);e.exports=function(e,t){if("Object"!==i(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},3052:(e,t,r)=>{"use strict";var n=r(8600)("%TypeError%"),o=r(656),a=r(2004);e.exports=function(e,t){if("Object"!==a(e))throw new n("Assertion failed: `O` must be an Object");if(!o(t))throw new n("Assertion failed: `P` must be a Property Key");return t in e}},7832:(e,t,r)=>{"use strict";e.exports=r(1820)},2320:(e,t,r)=>{"use strict";e.exports=r(7444)},656:e=>{"use strict";e.exports=function(e){return"string"===typeof e||"symbol"===typeof e}},7208:(e,t,r)=>{"use strict";var n=r(8600)("%TypeError%"),o=r(6240),a=r(7821),i=r(2004);e.exports=function(e){if("Object"!==i(e))throw new n("Assertion failed: `obj` must be an Object");return a(o(e,"length"))}},4700:(e,t,r)=>{"use strict";e.exports=r(1080)},7992:(e,t,r)=>{"use strict";var n=r(8600),o=n("%Number%"),a=n("%RegExp%"),i=n("%TypeError%"),s=n("%parseInt%"),l=r(4160),c=r(7112),u=l("String.prototype.slice"),d=c(/^0b[01]+$/i),p=c(/^0o[0-7]+$/i),f=c(/^[-+]0x[0-9a-f]+$/i),m=c(new a("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),h=r(1060),v=r(2004);e.exports=function e(t){if("String"!==v(t))throw new i("Assertion failed: `argument` is not a String");if(d(t))return o(s(u(t,2),2));if(p(t))return o(s(u(t,2),8));if(m(t)||f(t))return NaN;var r=h(t);return r!==t?e(r):o(t)}},1516:(e,t,r)=>{"use strict";var n=r(9944),o=r(8732),a=r(3772),i=r(9376);e.exports=function(e){var t=n(e);return a(t)||0===t?0:i(t)?o(t):t}},7821:(e,t,r)=>{"use strict";var n=r(3056),o=r(1516);e.exports=function(e){var t=o(e);return t<=0?0:t>n?n:t}},9944:(e,t,r)=>{"use strict";var n=r(8600),o=n("%TypeError%"),a=n("%Number%"),i=r(5680),s=r(2972),l=r(7992);e.exports=function(e){var t=i(e)?e:s(e,a);if("symbol"===typeof t)throw new o("Cannot convert a Symbol value to a number");if("bigint"===typeof t)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");return"string"===typeof t?l(t):a(t)}},7928:(e,t,r)=>{"use strict";var n=r(8600)("%Object%"),o=r(4700);e.exports=function(e){return o(e),n(e)}},2972:(e,t,r)=>{"use strict";var n=r(3676);e.exports=function(e){return arguments.length>1?n(e,arguments[1]):n(e)}},928:(e,t,r)=>{"use strict";var n=r(8600),o=n("%String%"),a=n("%TypeError%");e.exports=function(e){if("symbol"===typeof e)throw new a("Cannot convert a Symbol value to a string");return o(e)}},2004:(e,t,r)=>{"use strict";var n=r(228);e.exports=function(e){return"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":n(e)}},1652:(e,t,r)=>{"use strict";var n=r(2004),o=Math.floor;e.exports=function(e){return"BigInt"===n(e)?e:o(e)}},8732:(e,t,r)=>{"use strict";var n=r(8600),o=r(1652),a=n("%TypeError%");e.exports=function(e){if("number"!==typeof e&&"bigint"!==typeof e)throw new a("argument must be a Number or a BigInt");var t=e<0?-o(-e):o(e);return 0===t?0:t}},1080:(e,t,r)=>{"use strict";var n=r(8600)("%TypeError%");e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},228:e=>{"use strict";e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},1820:(e,t,r)=>{"use strict";var n=r(8600)("%Array%"),o=!n.isArray&&r(4160)("Object.prototype.toString");e.exports=n.isArray||function(e){return"[object Array]"===o(e)}},9376:(e,t,r)=>{"use strict";var n=r(3772);e.exports=function(e){return("number"===typeof e||"bigint"===typeof e)&&!n(e)&&e!==1/0&&e!==-1/0}},3772:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},5680:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},3056:e=>{"use strict";e.exports=Number.MAX_SAFE_INTEGER||9007199254740991},5072:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{c:()=>n})},568:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{c:()=>o})},5656:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{c:()=>n})},9736:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{c:()=>o});const o=function(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e,t=r(9060),n=r.t(t,2),o=r(1180),a=r(9940),i=r.n(a),s=function(){if("undefined"===typeof window||void 0==window.localStorage)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch(e){return!1}}(),l=function(e){try{return JSON.parse(e)}catch(t){return e}},c=new(function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(e){return this.valuesMap.has(e)?String(this.valuesMap.get(e)):null},e.prototype.setItem=function(e,t){this.valuesMap.set(e,t)},e.prototype.removeItem=function(e){this.valuesMap.delete(e)},e.prototype.removeItems=function(e){var t=this;this.valuesMap.forEach((function(r,n){n.startsWith(e)&&t.valuesMap.delete(n)}))},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");return Array.from(this.valuesMap.keys())[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}()),u=function(){return s?window.localStorage:c},d=r(8807);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));function f(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function m(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function h(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function v(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,r){void 0===r&&(r="/");let n=A(("string"===typeof t?v(t):t).pathname||"/",r);if(null==n)return null;let o=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let i=0;null==a&&i<o.length;++i)a=P(o[i],T(n));return a}function b(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(f(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=F([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:C(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of x(e.path))o(e,t,n);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=x(n.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:[\w-]+$/,S=3,O=2,_=1,E=10,k=-2,j=e=>"*"===e;function C(e,t){let r=e.split("/"),n=r.length;return r.some(j)&&(n+=k),t&&(n+=O),r.filter((e=>!j(e))).reduce(((e,t)=>e+(w.test(t)?S:""===t?_:E)),n)}function P(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i<r.length;++i){let e=r[i],s=i===r.length-1,l="/"===o?t:t.slice(o.length)||"/",c=R({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!c)return null;Object.assign(n,c.params);let u=e.route;a.push({params:n,pathname:F([o,c.pathname]),pathnameBase:z(F([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=F([o,c.pathnameBase]))}return a}function R(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);m("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return m(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(l||"",n),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function T(e){try{return decodeURI(e)}catch(t){return m(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function I(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e,t){let r=M(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function L(e,t,r,n){let o;void 0===n&&(n=!1),"string"===typeof e?o=v(e):(o=p({},e),f(!o.pathname||!o.pathname.includes("?"),I("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),I("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),I("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"===typeof e?v(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:D(n),hash:B(o)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const F=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function V(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],q=(new Set(W),["get",...W]);new Set(q),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U.apply(this,arguments)}const H=t.createContext(null);const $=t.createContext(null);const Q=t.createContext(null);const K=t.createContext(null);const G=t.createContext({outlet:null,matches:[],isDataRoute:!1});const Y=t.createContext(null);function X(){return null!=t.useContext(K)}function J(){return X()||f(!1),t.useContext(K).location}function Z(e){t.useContext(Q).static||t.useLayoutEffect(e)}function ee(){let{isDataRoute:e}=t.useContext(G);return e?function(){let{router:e}=pe(ue.UseNavigateStable),r=me(de.UseNavigateStable),n=t.useRef(!1);return Z((()=>{n.current=!0})),t.useCallback((function(t,o){void 0===o&&(o={}),n.current&&("number"===typeof t?e.navigate(t):e.navigate(t,U({fromRouteId:r},o)))}),[e,r])}():function(){X()||f(!1);let e=t.useContext(H),{basename:r,future:n,navigator:o}=t.useContext(Q),{matches:a}=t.useContext(G),{pathname:i}=J(),s=JSON.stringify(N(a,n.v7_relativeSplatPath)),l=t.useRef(!1);return Z((()=>{l.current=!0})),t.useCallback((function(t,n){if(void 0===n&&(n={}),!l.current)return;if("number"===typeof t)return void o.go(t);let a=L(t,JSON.parse(s),i,"path"===n.relative);null==e&&"/"!==r&&(a.pathname="/"===a.pathname?r:F([r,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)}),[r,o,s,i,e])}()}const te=t.createContext(null);function re(){let{matches:e}=t.useContext(G),r=e[e.length-1];return r?r.params:{}}function ne(e,r){let{relative:n}=void 0===r?{}:r,{future:o}=t.useContext(Q),{matches:a}=t.useContext(G),{pathname:i}=J(),s=JSON.stringify(N(a,o.v7_relativeSplatPath));return t.useMemo((()=>L(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}function oe(r,n,o,a){X()||f(!1);let{navigator:i}=t.useContext(Q),{matches:s}=t.useContext(G),l=s[s.length-1],c=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,p=J();if(n){var m;let e="string"===typeof n?v(n):n;"/"===u||(null==(m=e.pathname)?void 0:m.startsWith(u))||f(!1),d=e}else d=p;let h=d.pathname||"/",g=y(r,{pathname:"/"===u?h:h.slice(u.length)||"/"});let b=ce(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:F([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:F([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,a);return n&&b?t.createElement(K.Provider,{value:{location:U({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:e.Pop}},b):b}function ae(){let e=function(){var e;let r=t.useContext(Y),n=fe(de.UseRouteError),o=me(de.UseRouteError);if(void 0!==r)return r;return null==(e=n.errors)?void 0:e[o]}(),r=V(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),n?t.createElement("pre",{style:a},n):null,null)}const ie=t.createElement(ae,null);class se extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(G.Provider,{value:this.props.routeContext},t.createElement(Y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:r,match:n,children:o}=e,a=t.useContext(H);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(G.Provider,{value:r},o)}function ce(e,r,n,o){var a;if(void 0===r&&(r=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let s=e,l=null==(a=n)?void 0:a.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||f(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,u=-1;if(n&&o&&o.v7_partialHydration)for(let t=0;t<s.length;t++){let e=s[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(u=t),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){c=!0,s=u>=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,o,a)=>{let i,d=!1,p=null,f=null;var m;n&&(i=l&&o.route.id?l[o.route.id]:void 0,p=o.route.errorElement||ie,c&&(u<0&&0===a?(m="route-fallback",!1||he[m]||(he[m]=!0),d=!0,f=null):u===a&&(d=!0,f=o.route.hydrateFallbackElement||null)));let h=r.concat(s.slice(0,a+1)),v=()=>{let r;return r=i?p:d?f:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(le,{match:o,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?t.createElement(se,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()}),null)}var ue=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ue||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function pe(e){let r=t.useContext(H);return r||f(!1),r}function fe(e){let r=t.useContext($);return r||f(!1),r}function me(e){let r=function(e){let r=t.useContext(G);return r||f(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||f(!1),n.route.id}const he={};n.startTransition;function ve(e){let{to:r,replace:n,state:o,relative:a}=e;X()||f(!1);let{future:i,static:s}=t.useContext(Q),{matches:l}=t.useContext(G),{pathname:c}=J(),u=ee(),d=L(r,N(l,i.v7_relativeSplatPath),c,"path"===a),p=JSON.stringify(d);return t.useEffect((()=>u(JSON.parse(p),{replace:n,state:o,relative:a})),[u,p,a,n,o]),null}function ge(e){return function(e){let r=t.useContext(G).outlet;return r?t.createElement(te.Provider,{value:e},r):r}(e.context)}function ye(e){f(!1)}function be(r){let{basename:n="/",children:o=null,location:a,navigationType:i=e.Pop,navigator:s,static:l=!1,future:c}=r;X()&&f(!1);let u=n.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:u,navigator:s,static:l,future:U({v7_relativeSplatPath:!1},c)})),[u,c,s,l]);"string"===typeof a&&(a=v(a));let{pathname:p="/",search:m="",hash:h="",state:g=null,key:y="default"}=a,b=t.useMemo((()=>{let e=A(p,u);return null==e?null:{location:{pathname:e,search:m,hash:h,state:g,key:y},navigationType:i}}),[u,p,m,h,g,y,i]);return null==b?null:t.createElement(Q.Provider,{value:d},t.createElement(K.Provider,{children:o,value:b}))}function xe(e){let{children:t,location:r}=e;return oe(we(t),r)}new Promise((()=>{}));t.Component;function we(e,r){void 0===r&&(r=[]);let n=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let a=[...r,o];if(e.type===t.Fragment)return void n.push.apply(n,we(e.props.children,a));e.type!==ye&&f(!1),e.props.index&&e.props.children&&f(!1);let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=we(e.props.children,a)),n.push(i)})),n}var Se,Oe=r(5072);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Se||(Se={}));var _e=function(e){return e};var Ee="beforeunload",ke="popstate";function je(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function o(){var e=Ae(r.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,a=e.search,i=void 0===a?"":a,s=e.hash,l=void 0===s?"":s,c=n.state||{};return[c.idx,_e({pathname:o,search:i,hash:l,state:c.usr||null,key:c.key||"default"})]}var a=null;function i(){if(a)p.call(a),a=null;else{var e=Se.Pop,t=o(),r=t[0],n=t[1];if(p.length){if(null!=r){var i=c-r;i&&(a={action:e,location:n,retry:function(){y(-1*i)}},y(i))}}else g(e)}}r.addEventListener(ke,i),r.addEventListener("hashchange",(function(){Te(o()[1])!==Te(u)&&i()}));var s=Se.Pop,l=o(),c=l[0],u=l[1],d=Pe(),p=Pe();function f(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var n=r.location.href,o=n.indexOf("#");t=-1===o?n:n.slice(0,o)}return t}()+"#"+("string"===typeof e?e:Te(e))}function m(e,t){return void 0===t&&(t=null),_e((0,Oe.c)({pathname:u.pathname,hash:"",search:""},"string"===typeof e?Ae(e):e,{state:t,key:Re()}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function v(e,t,r){return!p.length||(p.call({action:e,location:t,retry:r}),!1)}function g(e){s=e;var t=o();c=t[0],u=t[1],d.call({action:s,location:u})}function y(e){n.go(e)}null==c&&(c=0,n.replaceState((0,Oe.c)({},n.state,{idx:c}),""));var b={get action(){return s},get location(){return u},createHref:f,push:function e(t,o){var a=Se.Push,i=m(t,o);if(v(a,i,(function(){e(t,o)}))){var s=h(i,c+1),l=s[0],u=s[1];try{n.pushState(l,"",u)}catch(d){r.location.assign(u)}g(a)}},replace:function e(t,r){var o=Se.Replace,a=m(t,r);if(v(o,a,(function(){e(t,r)}))){var i=h(a,c),s=i[0],l=i[1];n.replaceState(s,"",l),g(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=p.push(e);return 1===p.length&&r.addEventListener(Ee,Ce),function(){t(),p.length||r.removeEventListener(Ee,Ce)}}};return b}function Ce(e){e.preventDefault(),e.returnValue=""}function Pe(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Re(){return Math.random().toString(36).substr(2,8)}function Te(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,a=e.hash,i=void 0===a?"":a;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function Ae(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Ie(e){var r=e.basename,n=e.children,o=e.history,a=(0,t.useState)({action:o.action,location:o.location}),i=a[0],s=a[1];return(0,t.useLayoutEffect)((function(){return o.listen(s)}),[o]),t.createElement(be,{basename:r,children:n,location:i.location,navigationType:i.action,navigator:o})}var Me=(0,t.createContext)(""),Ne=function(e){var r=e.children,n=e.basename;return t.createElement(Me.Provider,{value:n},r)},Le=function(e){var r=e.history,n=e.basename,o=void 0===n?"":n,a=e.children,i=X(),s=i?Fe:ze;return t.createElement(Ne,{basename:i?o:""},t.createElement(s,{basename:o,history:r},a))},Fe=function(e){var r=e.children;return t.createElement(t.Fragment,null,r)},ze=function(e){var r=e.children,n=e.history,o=(0,t.useMemo)((function(){return n||je()}),[n]);return t.createElement(Ie,{history:o},r)};var De={id:""},Be={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(De)}},Ve=(0,t.createContext)(Be);Ve.displayName="AuthContext";const We=Ve;var qe={create:function(){return Promise.resolve({data:null})},delete:function(){return Promise.resolve({data:null})},deleteMany:function(){return Promise.resolve({data:[]})},getList:function(){return Promise.resolve({data:[],total:0})},getMany:function(){return Promise.resolve({data:[]})},getManyReference:function(){return Promise.resolve({data:[],total:0})},getOne:function(){return Promise.resolve({data:null})},update:function(){return Promise.resolve({data:null})},updateMany:function(){return Promise.resolve({data:[]})}},Ue=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},He="GET_LIST",$e="GET_ONE",Qe="GET_MANY",Ke="GET_MANY_REFERENCE",Ge="CREATE",Ye="UPDATE",Xe="UPDATE_MANY",Je="DELETE",Ze="DELETE_MANY",et=Ue(Ue([],["getList","getMany","getManyReference"],!0),["updateMany","deleteMany"],!1),tt=(Ue(Ue([],["getOne","create","update"],!0),et,!0),function(){return Promise.resolve()});tt.create=function(){return Promise.resolve(null)},tt.delete=function(){return Promise.resolve(null)},tt.deleteMany=function(){return Promise.resolve(null)},tt.getList=function(){return Promise.resolve(null)},tt.getMany=function(){return Promise.resolve(null)},tt.getManyReference=function(){return Promise.resolve(null)},tt.getOne=function(){return Promise.resolve(null)},tt.update=function(){return Promise.resolve(null)},tt.updateMany=function(){return Promise.resolve(null)};var rt={create:Ge,delete:Je,deleteMany:Ze,getList:He,getMany:Qe,getManyReference:Ke,getOne:$e,update:Ye,updateMany:Xe};const nt=function(e){var t=new Proxy(tt,{get:function(t,r){return function(t,n){if(Object.keys(rt).includes(r.toString())){var o=rt[r.toString()];return e(o,t,n)}return e(r.toString(),t,n)}},apply:function(t,r,n){return e.apply(e,n)}});return t};var ot=(0,t.createContext)(null);ot.displayName="DataProviderContext";const at=ot;var it=r(9140),st=r.n(it),lt=r(8968),ct=r.n(lt),ut=r(8564),dt=r.n(ut),pt=function(e){void 0===e&&(e={});var t={},r=function(e,r){Object.keys(t).forEach((function(n){t[n]&&t[n].key===e&&t[n].callback(r)}))};return{setup:function(){},teardown:function(){Object.keys(e).forEach((function(t){return delete e[t]}))},getItem:function(t,r){return dt()(e,t,r)},setItem:function(t,n){st()(e,t,n),r(t,n)},removeItem:function(t){ct()(e,t),r(t,void 0)},removeItems:function(t){var n=ft(e);Object.keys(n).forEach((function(n){n.startsWith(t)&&(ct()(e,n),r(n,void 0))}))},reset:function(){var t=ft(e);Object.keys(t).forEach((function(t){ct()(e,t),r(t,void 0)}))},subscribe:function(e,r){var n=Math.random().toString();return t[n]={key:e,callback:r},function(){delete t[n]}}}},ft=function(e){var t={};return function e(r,n){if(Object(r)!==r)t[n]=r;else if(Array.isArray(r))t[n]=r;else{var o=!0;for(var a in r)o=!1,e(r[a],n?n+"."+a:a);o&&n&&(t[n]={})}}(e,""),t},mt=pt(),ht=(0,t.createContext)(mt),vt=function(e){var r=e.value,n=e.children;return(0,t.useEffect)((function(){return r.setup(),function(){r.teardown()}}),[r]),t.createElement(ht.Provider,{value:r},n)},gt=(0,t.createContext)(void 0),yt=function(e){var r=e.children,n=(0,t.useState)(!1),o=n[0],a=n[1],i=(0,t.useState)(null),s=i[0],l=i[1],c=(0,t.useState)(),u=c[0],d=c[1],p=(0,t.useState)(null),f=p[0],m=p[1],h=(0,t.useState)(null),v=h[0],g=h[1],y=(0,t.useState)(),b=y[0],x=y[1],w=(0,t.useCallback)((function(){return a(!0)}),[]),S=(0,t.useCallback)((function(){a(!1),l(null)}),[]),O=(0,t.useCallback)((function(e,t){g(e),x(t)}),[]),_=(0,t.useMemo)((function(){return{editor:s,setEditor:l,preferenceKey:u,setPreferenceKey:d,title:v,titleOptions:b,setTitle:O,isEnabled:o,disable:S,enable:w,path:f,setPath:m}}),[S,w,s,u,o,f,m,v,b,O]);return t.createElement(gt.Provider,{value:_},r)},bt=function(e,t){return e&&t?String.prototype.replace.call(e,xt,(function(e,r){return t.hasOwnProperty(r)&&null!=t[r]?t[r]:e})):e},xt=/%\{(.*?)\}/g,wt={translate:function(e,t){return(null===t||void 0===t?void 0:t._)?bt(t._,t):bt(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},St=(0,t.createContext)(wt);St.displayName="I18nContext";var Ot=r(436),_t=r.n(Ot),Et="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,kt=function(e){var r=t.useRef((function(){throw new Error("Cannot call an event handler while rendering.")}));return Et((function(){r.current=e})),(0,t.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.current.apply(r,e)}),[])},jt=function(){return(0,t.useContext)(ht)},Ct=function(e,r){var n=jt(),o=n.getItem,a=n.setItem,i=n.subscribe,s=(0,t.useState)((function(){return o(e,r)})),l=s[0],c=s[1];(0,t.useEffect)((function(){var t=o(e,r);_t()(l,t)||c(t);var n=i(e,(function(e){c("undefined"===typeof e?r:e)}));return function(){return n()}}),[e,i,r,o,l]);var u=kt((function(t,n){var o="function"===typeof t?t(l):t;a(e,"undefined"===typeof o?"undefined"===typeof n?r:n:o)}));return[l,u]},Pt=(0,t.createContext)((function(){})),Rt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Tt=function(){var e=(0,t.useContext)(Pt);return(0,t.useCallback)((function(t,r){void 0===r&&(r={});var n=r.type,o=void 0===n?"info":n,a=Rt(r,["type"]);e({message:t,type:o,notificationOptions:a})}),[e])},At=function(e){var r=e.value,n=void 0===r?It:r,o=e.children,a=Ct("locale")[0],i=Tt(),s=(0,t.useState)(0),l=s[0],c=s[1],u=(0,t.useState)(a===n.getLocale()),d=u[0],p=u[1];return(0,t.useEffect)((function(){a&&n.getLocale()!==a?new Promise((function(e){e(n.changeLocale(a))})).then((function(){c((function(e){return e+1})),p(!0)})).catch((function(e){p(!0),i("ra.notification.i18n_error",{type:"error"}),console.error(e)})):p(!0)}),[n,a,i]),d?t.createElement(St.Provider,{value:n,key:l},o):null},It={translate:function(e){return e},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},Mt=function(){return Mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mt.apply(this,arguments)},Nt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Lt=(0,t.createContext)({definitions:{},register:function(){},unregister:function(){}}),Ft=function(e){var r=e.definitions,n=void 0===r?{}:r,o=e.children,a=(0,t.useState)(n),i=a[0],s=a[1],l=(0,t.useCallback)((function(e){s((function(t){var r;return _t()(t[e.name],e)?t:Mt(Mt({},t),((r={})[e.name]=e,r))}))}),[]),c=(0,t.useCallback)((function(e){s((function(t){var r=t,n=e.name;r[n];return Nt(r,["symbol"===typeof n?n:n+""])}))}),[]),u=(0,t.useMemo)((function(){return{definitions:i,register:l,unregister:c}}),[i]);return t.createElement(Lt.Provider,{value:u},o)},zt=(0,t.createContext)({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),Dt=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Bt=function(e){var r=e.children,n=(0,t.useState)([]),o=n[0],a=n[1],i=(0,t.useCallback)((function(e){a((function(t){return Dt(Dt([],t,!0),[e],!1)}))}),[]),s=(0,t.useCallback)((function(){var e=o[0],t=o.slice(1);return a(t),e}),[o]),l=(0,t.useCallback)((function(){a([])}),[]),c=(0,t.useMemo)((function(){return{notifications:o,addNotification:i,takeNotification:s,resetNotifications:l,setNotifications:a}}),[o]);return t.createElement(zt.Provider,{value:c},t.createElement(Pt.Provider,{value:i},r))},Vt=pt(),Wt=function(e){var r=e.authProvider,n=e.basename,o=e.dataProvider,a=void 0===o?qe:o,i=e.i18nProvider,s=e.store,l=void 0===s?Vt:s,c=e.children,u=e.history,p=e.queryClient;if(!a)throw new Error("Missing dataProvider prop.\nReact-admin requires a valid dataProvider function to work.");var f=(0,t.useMemo)((function(){return p||new d.QueryClient}),[p]),m=(0,t.useMemo)((function(){return r instanceof Function?function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(null,t)};return t.login=function(t){return e("AUTH_LOGIN",t)},t.logout=function(t){return e("AUTH_LOGOUT",t)},t.checkAuth=function(t){return e("AUTH_CHECK",t)},t.checkError=function(t){return e("AUTH_ERROR",t)},t.getPermissions=function(t){return e("AUTH_GET_PERMISSIONS",t)},t}(r):r}),[r]),h=(0,t.useMemo)((function(){return a instanceof Function?nt(a):a}),[a]);return t.createElement(We.Provider,{value:m},t.createElement(at.Provider,{value:h},t.createElement(vt,{value:l},t.createElement(yt,null,t.createElement(d.QueryClientProvider,{client:f},t.createElement(Le,{history:u,basename:n},t.createElement(At,{value:i},t.createElement(Bt,null,t.createElement(Ft,null,c)))))))))},qt=function(){return qt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qt.apply(this,arguments)},Ut={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{variants:[{props:{},style:function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small"},variants:[{props:{},style:function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small"}}}},Ht=qt(qt({palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}}},Ut),{components:qt(qt({},Ut.components),{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}})}),$t=(qt({palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}},Ut),(0,t.createContext)({})),Qt=r(784),Kt=r(5656);const Gt=t.createContext(null);function Yt(){return t.useContext(Gt)}const Xt="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Jt=r(2496);const Zt=function(e){const{children:r,theme:n}=e,o=Yt(),a=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"===typeof t)return t(e);return(0,Oe.c)({},e,t)}(o,n);return null!=e&&(e[Xt]=null!==o),e}),[n,o]);return(0,Jt.jsx)(Gt.Provider,{value:a,children:r})};var er=r(4075),tr=r(4568);const rr={};function nr(e,r,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.useMemo((()=>{const t=e&&r[e]||r;if("function"===typeof n){const a=n(t),i=e?(0,Oe.c)({},r,{[e]:a}):a;return o?()=>i:i}return e?(0,Oe.c)({},r,{[e]:n}):(0,Oe.c)({},r,n)}),[e,r,n,o])}const or=function(e){const{children:t,theme:r,themeId:n}=e,o=(0,tr.c)(rr),a=Yt()||rr,i=nr(n,o,r),s=nr(n,a,r,!0);return(0,Jt.jsx)(Zt,{theme:s,children:(0,Jt.jsx)(er.T.Provider,{value:i,children:t})})};var ar=r(3068);const ir=["theme"];function sr(e){let{theme:t}=e,r=(0,Kt.c)(e,ir);const n=t[ar.c];return(0,Jt.jsx)(or,(0,Oe.c)({},r,{themeId:n?ar.c:void 0,theme:n||t}))}var lr=r(4528),cr=r(7188);function ur(e,r,n,o,a){const[i,s]=t.useState((()=>a&&n?n(e).matches:o?o(e).matches:r));return(0,cr.c)((()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&s(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n]),i}const dr=n.useSyncExternalStore;function pr(e,r,n,o,a){const i=t.useCallback((()=>r),[r]),s=t.useMemo((()=>{if(a&&n)return()=>n(e).matches;if(null!==o){const{matches:t}=o(e);return()=>t}return i}),[i,e,o,a,n]),[l,c]=t.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,n,e]);return dr(c,l,s)}function fr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,tr.c)(),n="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(n?window.matchMedia:null),ssrMatchMedia:i=null,noSsr:s=!1}=(0,lr.c)({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"===typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==dr?pr:ur)(l,o,a,i,s)}var mr=function(e){var r=e||{},n=r.lightTheme,o=r.darkTheme,a=r.defaultTheme,i=(0,t.useContext)($t);return{lightTheme:n||i.lightTheme,darkTheme:o||i.darkTheme,defaultTheme:null!==a&&void 0!==a?a:i.defaultTheme}},hr=function(e){var t=mr().darkTheme,r=fr("(prefers-color-scheme: dark)",{noSsr:!0}),n=Ct("theme",null!==e&&void 0!==e?e:r&&t?"dark":"light"),o=n[0];return[null!=t?o:"light",n[1]]},vr=function(e){var r=e.children,n=e.theme,o=mr(),a=o.lightTheme,i=o.darkTheme,s=o.defaultTheme,l=fr("(prefers-color-scheme: dark)",{noSsr:!0}),c=hr(s||(l&&i?"dark":"light"))[0],u=(0,t.useMemo)((function(){try{return(0,Qt.c)("object"===typeof c?c:"dark"===c?i:a||n)}catch(e){return console.warn("Failed to reuse custom theme from store",e),(0,Qt.c)()}}),[c,n,a,i]);return t.createElement(sr,{theme:u},r)},gr=function(){return gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gr.apply(this,arguments)},yr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},br=function(e){var r=e.theme,n=e.lightTheme,o=void 0===n?Ht:n,a=e.darkTheme,i=e.defaultTheme,s=e.children,l=yr(e,["theme","lightTheme","darkTheme","defaultTheme","children"]);return t.createElement(Wt,gr({},l),t.createElement($t.Provider,{value:{lightTheme:r||o,darkTheme:a,defaultTheme:i}},t.createElement(vr,null,s)))};br.displayName="AdminContext";var xr="/login",wr="/";const Sr=function(){return(0,t.useContext)(We)};var Or=function(){return(0,t.useContext)(Me)},_r=function(){var e=Or();return(0,t.useCallback)((function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return Er("".concat(e,"/").concat(r));case"create":return Er("".concat(e,"/").concat(r,"/create"));case"edit":return Er(null==n?"".concat(e,"/").concat(r):"".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return Er(null==n?"".concat(e,"/").concat(r):"".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}}),[e])},Er=function(e){return e.replace("//","/")};const kr=function(){var e=Sr(),r=(0,d.useQueryClient)(),n=jt().reset,o=ee(),a=(0,t.useRef)(o),i=J(),s=(0,t.useRef)(i),l=Or(),c=Er("".concat(l,"/").concat(xr));(0,t.useEffect)((function(){s.current=i,a.current=o}),[i,o]);var u=(0,t.useCallback)((function(t,o,i){return void 0===t&&(t={}),void 0===o&&(o=c),void 0===i&&(i=!0),e.logout(t).then((function(e){if(!1===e||!1===o)return n(),void r.clear();var t=e||o;if(null===t||void 0===t?void 0:t.startsWith("http"))return n(),r.clear(),window.location.href=t,t;var l=t.split("?"),c={pathname:l[0]},u={};return i&&s.current&&s.current.pathname&&(u={state:{nextPathname:s.current.pathname,nextSearch:s.current.search}}),l[1]&&(c.search=l[1]),a.current(c,u),n(),r.clear(),e}))}),[e,n,c,r]),p=(0,t.useCallback)((function(e){return o({pathname:c},{state:{nextPathname:i&&i.pathname}}),n(),r.clear(),Promise.resolve()}),[n,i,o,c,r]);return e?u:p};var jr=function(){var e=Sr(),r=Tt(),n=kr(),o=Or(),a=Er("".concat(o,"/").concat(xr)),i=(0,t.useCallback)((function(t,o,i,s){return void 0===t&&(t={}),void 0===o&&(o=!0),void 0===i&&(i=a),void 0===s&&(s=!1),e.checkAuth(t).catch((function(e){o&&(n({},e&&null!=e.redirectTo?e.redirectTo:i),!(s||e&&!1===e.message)&&r(Pr(e,"ra.auth.auth_check_error"),{type:"error"}));throw e}))}),[e,n,r,a]);return e?i:Cr},Cr=function(){return Promise.resolve()},Pr=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t};const Rr=function(e,t){0};var Tr=function(){return Tr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tr.apply(this,arguments)},Ar={};const Ir=function(e,r,n){void 0===e&&(e=Ar),void 0===r&&(r=!1);var o=Sr(),a=kr(),i=Or(),s=Tt(),l=(0,d.useQuery)(["auth","checkAuth",e],(function(){return null===o||void 0===o?void 0:o.checkAuth(e).then((function(){return!0}))}),Tr({onError:function(e){var t=Er("".concat(i,"/").concat(xr));r&&(a({},e&&null!=e.redirectTo?e.redirectTo:t),!(e&&!1===e.message)&&s(Nr(e,"ra.auth.auth_check_error"),{type:"error"}))},retry:!1},n));return(0,t.useMemo)((function(){var e;return{authenticated:!!(null!==(e=l.data)&&void 0!==e?e:l.isLoading)||null==o,isLoading:l.isLoading,error:l.error}}),[o,l])};var Mr,Nr=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},Lr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Fr=function(e){void 0===e&&(e={});var t=e.params,r=Lr(e,["params"]);Ir(null!==t&&void 0!==t?t:zr,!0,r)},zr={},Dr=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Br=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Vr=function(){return Promise.resolve(!1)},Wr=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t};const qr=function(){var e=Sr(),r=kr(),n=Tt(),o=ee(),a=(0,t.useCallback)((function(t,a){return e.checkError(t).then((function(){return!1})).catch((function(i){return Dr(void 0,void 0,void 0,(function(){var s,l,c;return Br(this,(function(u){return s=null===(c=null===i||void 0===i?void 0:i.logoutUser)||void 0===c||c,Mr||(Mr=setTimeout((function(){Mr=void 0}),0),l=i&&null!=i.redirectTo?i.redirectTo:t&&t.redirectTo?t.redirectTo:void 0,!(a||i&&!1===i.message||t&&!1===t.message||(null===l||void 0===l?void 0:l.startsWith("http")))&&e.checkAuth({}).then((function(){n(Wr(i,s?"ra.notification.logged_out":"ra.notification.not_authorized"),{type:"error"})})).catch((function(){})),s?r({},l):l.startsWith("http")?window.location.href=l:o(l)),[2,!0]}))}))}))}),[e,r,n,o]);return e?a:Vr};var Ur=function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ur.apply(this,arguments)},Hr=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},$r=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Qr={};const Kr=function(e,r){void 0===e&&(e=Qr),void 0===r&&(r={staleTime:3e5});var n=Sr(),o=qr(),a=(0,d.useQuery)(["auth","getPermissions",e],n?function(){return n.getPermissions(e)}:function(){return Hr(void 0,void 0,void 0,(function(){return $r(this,(function(e){return[2,[]]}))}))},Ur({onError:function(e){o(e)}},r));return(0,t.useMemo)((function(){return{permissions:a.data,isLoading:a.isLoading,error:a.error,refetch:a.refetch}}),[a])};var Gr=function(){return Gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gr.apply(this,arguments)},Yr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Xr=function(e){return 0===t.Children.count(e)};const Jr=function(e){var r=e.authParams,n=e.children,o=e.render,a=e.component,i=(e.staticContext,Yr(e,["authParams","children","render","component","staticContext"]));Rr(o&&n&&!Xr(n)||o&&a||a&&n&&Xr(n)),Fr(r);var s=Kr(r).permissions;return a?(0,t.createElement)(a,Gr({permissions:s},i)):o?o(Gr({permissions:s},i)):n?n(Gr({permissions:s},i)):void 0};function Zr(e){var r=(0,t.useState)(e),n=r[0],o=r[1],a=(0,t.useRef)(!1);return(0,t.useEffect)((function(){return a.current=!0,function(){a.current=!1}}),[]),[n,(0,t.useCallback)((function(e){if(a.current)return o(e)}),[a,o])]}function en(e,r){void 0===e&&(e=0),void 0===r&&(r="");var n=Zr(!1),o=n[0],a=n[1];return(0,t.useEffect)((function(){a(!1);var t=setTimeout((function(){a(!0)}),e);return function(){clearTimeout(t)}}),[r,e,a]),o}var tn=function(){return(0,t.useContext)(Lt)},rn=function(){return rn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rn.apply(this,arguments)},nn=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},on=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},an=function(e,r,n){var o=kr(),a=sn(dn(e)),i=a[0],s=a[1],l=a[2],c=Zr((function(){return cn(rn({children:e},i))})),u=c[0],d=c[1];return(0,t.useEffect)((function(){n||nn(void 0,void 0,void 0,(function(){var t,n;return on(this,(function(a){var i;return t=un(e),n=dn(e),s(n),d(t?"loading":n.resources.length>0||n.customRoutesWithLayout.length>0||n.customRoutesWithoutLayout.length>0?"ready":"empty"),t&&(i=t,nn(void 0,void 0,void 0,(function(){var e;return on(this,(function(t){try{(null===(e=i(r))||void 0===e?void 0:e.then)?e.then((function(e){l(dn(e)),d("ready")})):(l(dn(e)),d("ready"))}catch(n){console.error(n),o()}return[2]}))}))),[2]}))}))}),[e,o,n,l,r,s,d]),[i,u]},sn=function(e){var r=(0,t.useState)(e),n=r[0],o=r[1],a=(0,t.useCallback)((function(e){o((function(t){return{customRoutesWithLayout:t.customRoutesWithLayout.concat(e.customRoutesWithLayout),customRoutesWithoutLayout:t.customRoutesWithoutLayout.concat(e.customRoutesWithoutLayout),resources:t.resources.concat(e.resources)}}))}),[]);return[n,o,a]},ln=function(e,r){var n=tn(),o=n.register,a=n.unregister;(0,t.useEffect)((function(){return e.forEach((function(e){if("function"!==typeof e.type.registerResource)throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition");var t=e.type.registerResource(e.props,r);o(t)})),function(){e.forEach((function(e){if("function"!==typeof e.type.registerResource)throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition");var t=e.type.registerResource(e.props,r);a(t)}))}}),[r,o,e,a])},cn=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return un(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},un=function(e){var t=(Array.isArray(e)?e:[e]).filter((function(e){return"function"===typeof e}));if(t.length>1)throw new Error("You can only provide one function child to AdminRouter");return 0===t.length?null:t[0]},dn=function(e){var r=[],n=[],o=[];return t.Children.forEach(e,(function(e){if(t.isValidElement(e)){if(e.type===t.Fragment){var a=dn(e.props.children);r.push.apply(r,a.customRoutesWithLayout),n.push.apply(n,a.customRoutesWithoutLayout),o.push.apply(o,a.resources)}if("CustomRoutes"===e.type.raName){var i=e;i.props.noLayout?n.push(i.props.children):r.push(i.props.children)}else"Resource"===e.type.raName&&o.push(e)}})),{customRoutesWithLayout:r,customRoutesWithoutLayout:n,resources:o}},pn=function(e){!function(){var e=J();(0,t.useEffect)((function(){var t;(null===(t=e.state)||void 0===t?void 0:t._scrollToTop)&&"undefined"!=typeof window&&window.scrollTo(0,0)}),[e])}();var r=_r(),n=function(e){var t=Kr(),r=t.permissions,n=t.isLoading,o=an(e,r,n),a=o[0],i=o[1];return ln(a.resources,r),{customRoutesWithLayout:a.customRoutesWithLayout,customRoutesWithoutLayout:a.customRoutesWithoutLayout,status:i,resources:a.resources}}(e.children),o=n.customRoutesWithLayout,a=n.customRoutesWithoutLayout,i=n.status,s=n.resources,l=e.layout,c=e.catchAll,u=e.dashboard,d=e.loading,p=e.menu,f=e.requireAuth,m=e.ready,h=e.title,v=(0,t.useState)(!f),g=v[0],y=v[1],b=jr();return(0,t.useEffect)((function(){f&&b().then((function(){y(!0)})).catch((function(){}))}),[b,f]),"empty"===i?t.createElement(m,null):"loading"!==i&&g?t.createElement(xe,null,a,t.createElement(ye,{path:"/*",element:t.createElement("div",null,t.createElement(l,{dashboard:u,menu:p,title:h},t.createElement(xe,null,o,t.Children.map(s,(function(e){return t.createElement(ye,{key:e.props.name,path:"".concat(e.props.name,"/*"),element:e})})),t.createElement(ye,{path:"/",element:u?t.createElement(Jr,{authParams:fn,component:u}):s.length>0?t.createElement(ve,{to:r({resource:s[0].props.name,type:"list"})}):null}),t.createElement(ye,{path:"*",element:t.createElement(c,{title:h})}))))})):t.createElement(xe,null,a,t.createElement(ye,{path:"*",element:t.createElement("div",{style:{height:"100vh"}},t.createElement(d,null))}))},fn={params:{route:"dashboard"}};const mn=function(){return t.createElement("span",null)};var hn=function(e){var r=e.children;return t.createElement(t.Fragment,null,r)},vn=function(e){var r=e.catchAll,n=void 0===r?yn:r,o=e.children,a=e.dashboard,i=e.disableTelemetry,s=void 0!==i&&i,l=e.layout,c=void 0===l?hn:l,u=e.loading,d=void 0===u?yn:u,p=e.loginPage,f=void 0!==p&&p,m=e.authCallbackPage,h=void 0!==m&&m,v=e.menu,g=e.ready,y=void 0===g?mn:g,b=e.title,x=void 0===b?"React Admin":b,w=e.requireAuth,S=void 0!==w&&w;return(0,t.useEffect)((function(){s||"undefined"===typeof window||"undefined"===typeof window.location||"undefined"===typeof Image||((new Image).src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname))}),[s]),t.createElement(xe,null,!1!==f&&!0!==f?t.createElement(ye,{path:"/login",element:gn(f)}):null,!1!==h&&!0!==h?t.createElement(ye,{path:"/auth-callback",element:gn(h)}):null,t.createElement(ye,{path:"/*",element:t.createElement(pn,{catchAll:n,dashboard:a,layout:c,loading:d,menu:v,requireAuth:S,ready:y,title:x},o)}))},gn=function(e){return(0,t.isValidElement)(e)?e:(0,t.createElement)(e)},yn=function(){return null},bn=r(9736),xn=r(1412),wn=r(3456),Sn=r(2556);const On=(e,t)=>(0,Oe.c)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),_n=e=>(0,Oe.c)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});var En=r(99),kn=r(3448);function jn(e){return(0,kn.cp)("MuiScopedCssBaseline",e)}(0,En.c)("MuiScopedCssBaseline",["root"]);const Cn=["className","component","enableColorScheme"],Pn=(0,Sn.cp)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:r}=e;const n={};return r.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach((e=>{let[r,o]=e;var a;n["&".concat(t.getColorSchemeSelector(r).replace(/\s*&/,""))]={colorScheme:null==(a=o.palette)?void 0:a.mode}})),(0,Oe.c)({},On(t,r.enableColorScheme),_n(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)})),Rn=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiScopedCssBaseline"}),{className:n,component:o="div"}=r,a=(0,Kt.c)(r,Cn),i=(0,Oe.c)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},jn,t)})(i);return(0,Jt.jsx)(Pn,(0,Oe.c)({as:o,className:(0,bn.c)(s.root,n),ref:t,ownerState:i},a))})),Tn=Rn;var An=r(8483);function In(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=In(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const Mn=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=In(e))&&(n&&(n+=" "),n+=t);return n};var Nn=r(9840),Ln=r.n(Nn);function Fn(e){return(0,kn.cp)("MuiToolbar",e)}(0,En.c)("MuiToolbar",["root","gutters","regular","dense"]);const zn=["className","component","disableGutters","variant"],Dn=(0,Sn.cp)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar})),Bn=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:a=!1,variant:i="regular"}=r,s=(0,Kt.c)(r,zn),l=(0,Oe.c)({},r,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:r,variant:n}=e,o={root:["root",!r&&"gutters",n]};return(0,xn.c)(o,Fn,t)})(l);return(0,Jt.jsx)(Dn,(0,Oe.c)({as:o,className:(0,bn.c)(c.root,n),ref:t,ownerState:l},s))})),Vn=Bn;var Wn=r(5832),qn=r(9872);const Un=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Hn(e){return(0,kn.cp)("MuiPaper",e)}(0,En.c)("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 $n=["className","component","elevation","square","variant"],Qn=(0,Sn.cp)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((e=>{let{theme:t,ownerState:r}=e;var n;return(0,Oe.c)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!r.square&&{borderRadius:t.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===r.variant&&(0,Oe.c)({boxShadow:(t.vars||t).shadows[r.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,qn.W4)("#fff",Un(r.elevation)),", ").concat((0,qn.W4)("#fff",Un(r.elevation)),")")},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[r.elevation]}))})),Kn=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=(0,Kt.c)(r,$n),c=(0,Oe.c)({},r,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,xn.c)(a,Hn,o)})(c);return(0,Jt.jsx)(Qn,(0,Oe.c)({as:o,ownerState:c,className:(0,bn.c)(u.root,n),ref:t},l))})),Gn=Kn;function Yn(e){return(0,kn.cp)("MuiAppBar",e)}(0,En.c)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Xn=["className","color","enableColorOnDark","position"],Jn=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,Zn=(0,Sn.cp)(Gn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position".concat((0,Wn.c)(r.position))],t["color".concat((0,Wn.c)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,Oe.c)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,Oe.c)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,Oe.c)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,Oe.c)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:Jn(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:Jn(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:Jn(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:Jn(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),eo=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=r,s=(0,Kt.c)(r,Xn),l=(0,Oe.c)({},r,{color:o,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:r,classes:n}=e,o={root:["root","color".concat((0,Wn.c)(t)),"position".concat((0,Wn.c)(r))]};return(0,xn.c)(o,Yn,n)})(l);return(0,Jt.jsx)(Zn,(0,Oe.c)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,bn.c)(c.root,n,"fixed"===i&&"mui-fixed"),ref:t},s))})),to=eo;var ro=function(){return(0,t.useContext)(St)},no=function(e){var r,n=ro(),o=(0,t.useMemo)((function(){return(null===n||void 0===n?void 0:n.getLocales)?null===n||void 0===n?void 0:n.getLocales():[]}),[n]);return null!==(r=null===e||void 0===e?void 0:e.locales)&&void 0!==r?r:o},oo=r(3064);const ao=function(e,t,r){if(e[t]&&!(0,oo.isValidElementType)(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))};var io=r(8428);function so(e){return"string"===typeof e}function lo(e,t,r){return void 0===e||so(e)?t:(0,Oe.c)({},t,{ownerState:(0,Oe.c)({},t.ownerState,r)})}var co=r(5284),uo=r(6656);function po(){const e=(0,co.c)(uo.c);return e[ar.c]||e}var fo=r(568),mo=r(1292),ho=r.t(mo,2);const vo=!1,go=t.createContext(null);var yo="unmounted",bo="exited",xo="entering",wo="entered",So="exiting",Oo=function(e){function r(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=bo,n.appearStatus=xo):o=wo:o=t.unmountOnExit||t.mountOnEnter?yo:bo,n.state={status:o},n.nextCallback=null,n}(0,fo.c)(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yo?{status:bo}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==xo&&r!==wo&&(t=xo):r!==xo&&r!==wo||(t=So)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!==typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bo&&this.setState({status:yo})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[mo.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||vo?this.safeSetState({status:wo},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:xo},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:wo},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:mo.findDOMNode(this);t&&!vo?(this.props.onExit(n),this.safeSetState({status:So},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:bo},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:bo},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yo)return null;var r=this.props,n=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,Kt.c)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(go.Provider,{value:null},"function"===typeof n?n(e,o):t.cloneElement(t.Children.only(n),o))},r}(t.Component);function _o(){}Oo.contextType=go,Oo.propTypes={},Oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_o,onEntering:_o,onEntered:_o,onExit:_o,onExiting:_o,onExited:_o},Oo.UNMOUNTED=yo,Oo.EXITED=bo,Oo.ENTERING=xo,Oo.ENTERED=wo,Oo.EXITING=So;const Eo=Oo,ko=e=>e.scrollTop;function jo(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"===typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"===typeof a?a[t.mode]:a,delay:i.transitionDelay}}var Co=r(6268);const Po=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ro(e){return"scale(".concat(e,", ").concat(e**2,")")}const To={entering:{opacity:1,transform:Ro(1)},entered:{opacity:1,transform:"none"}},Ao="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Io=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:v=Eo}=e,g=(0,Kt.c)(e,Po),y=(0,io.c)(),b=t.useRef(),x=po(),w=t.useRef(null),S=(0,Co.c)(w,a.ref,r),O=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},_=O(u),E=O(((e,t)=>{ko(e);const{duration:r,delay:n,easing:o}=jo({style:m,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Ao?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),k=O(c),j=O(f),C=O((e=>{const{duration:t,delay:r,easing:n}=jo({style:m,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Ao?o:.666*o,delay:Ao?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Ro(.75),d&&d(e)})),P=O(p);return(0,Jt.jsx)(v,(0,Oe.c)({appear:o,in:s,nodeRef:w,onEnter:E,onEntered:k,onEntering:_,onExit:C,onExited:P,onExiting:j,addEndListener:e=>{"auto"===h&&y.start(b.current||0,e),n&&n(w.current,e)},timeout:"auto"===h?null:h},g,{children:(e,r)=>t.cloneElement(a,(0,Oe.c)({style:(0,Oe.c)({opacity:0,transform:Ro(.75),visibility:"exited"!==e||s?void 0:"hidden"},To[e],m,a.props.style),ref:S},r))}))}));Io.muiSupportAuto=!0;const Mo=Io;var No=r(1544),Lo=r(2576),Fo=r(6848);function zo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Do(e){return e instanceof zo(e).Element||e instanceof Element}function Bo(e){return e instanceof zo(e).HTMLElement||e instanceof HTMLElement}function Vo(e){return"undefined"!==typeof ShadowRoot&&(e instanceof zo(e).ShadowRoot||e instanceof ShadowRoot)}var Wo=Math.max,qo=Math.min,Uo=Math.round;function Ho(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function $o(){return!/^((?!chrome|android).)*safari/i.test(Ho())}function Qo(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Bo(e)&&(o=e.offsetWidth>0&&Uo(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Uo(n.height)/e.offsetHeight||1);var i=(Do(e)?zo(e):window).visualViewport,s=!$o()&&r,l=(n.left+(s&&i?i.offsetLeft:0))/o,c=(n.top+(s&&i?i.offsetTop:0))/a,u=n.width/o,d=n.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ko(e){var t=zo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Go(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){return((Do(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xo(e){return Qo(Yo(e)).left+Ko(e).scrollLeft}function Jo(e){return zo(e).getComputedStyle(e)}function Zo(e){var t=Jo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ea(e,t,r){void 0===r&&(r=!1);var n=Bo(t),o=Bo(t)&&function(e){var t=e.getBoundingClientRect(),r=Uo(t.width)/e.offsetWidth||1,n=Uo(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=Yo(t),i=Qo(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==Go(t)||Zo(a))&&(s=function(e){return e!==zo(e)&&Bo(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ko(e);var t}(t)),Bo(t)?((l=Qo(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Xo(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function ta(e){var t=Qo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ra(e){return"html"===Go(e)?e:e.assignedSlot||e.parentNode||(Vo(e)?e.host:null)||Yo(e)}function na(e){return["html","body","#document"].indexOf(Go(e))>=0?e.ownerDocument.body:Bo(e)&&Zo(e)?e:na(ra(e))}function oa(e,t){var r;void 0===t&&(t=[]);var n=na(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=zo(n),i=o?[a].concat(a.visualViewport||[],Zo(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(oa(ra(i)))}function aa(e){return["table","td","th"].indexOf(Go(e))>=0}function ia(e){return Bo(e)&&"fixed"!==Jo(e).position?e.offsetParent:null}function sa(e){for(var t=zo(e),r=ia(e);r&&aa(r)&&"static"===Jo(r).position;)r=ia(r);return r&&("html"===Go(r)||"body"===Go(r)&&"static"===Jo(r).position)?t:r||function(e){var t=/firefox/i.test(Ho());if(/Trident/i.test(Ho())&&Bo(e)&&"fixed"===Jo(e).position)return null;var r=ra(e);for(Vo(r)&&(r=r.host);Bo(r)&&["html","body"].indexOf(Go(r))<0;){var n=Jo(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var la="top",ca="bottom",ua="right",da="left",pa="auto",fa=[la,ca,ua,da],ma="start",ha="end",va="clippingParents",ga="viewport",ya="popper",ba="reference",xa=fa.reduce((function(e,t){return e.concat([t+"-"+ma,t+"-"+ha])}),[]),wa=[].concat(fa,[pa]).reduce((function(e,t){return e.concat([t,t+"-"+ma,t+"-"+ha])}),[]),Sa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Oa(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function _a(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Ea={placement:"bottom",modifiers:[],strategy:"absolute"};function ka(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function ja(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Ea:o;return function(e,t,r){void 0===r&&(r=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ea,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:o,setOptions:function(r){var s="function"===typeof r?r(o.options):r;c(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:Do(e)?oa(e):e.contextElement?oa(e.contextElement):[],popper:oa(t)};var u=function(e){var t=Oa(e);return Sa.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,a=e.effect;if("function"===typeof a){var s=a({state:o,name:t,instance:l,options:n}),c=function(){};i.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,r=e.popper;if(ka(t,r)){o.rects={reference:ea(t,sa(r),"fixed"===o.options.strategy),popper:ta(r)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var a=o.orderedModifiers[n],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"===typeof i&&(o=i({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,n=-1}}},update:_a((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!ka(e,t))return l;function c(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),l}}var Ca={passive:!0};function Pa(e){return e.split("-")[0]}function Ra(e){return e.split("-")[1]}function Ta(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Aa(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Pa(o):null,i=o?Ra(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case la:t={x:s,y:r.y-n.height};break;case ca:t={x:s,y:r.y+r.height};break;case ua:t={x:r.x+r.width,y:l};break;case da:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=a?Ta(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ma:t[c]=t[c]-(r[u]/2-n[u]/2);break;case ha:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Ia={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ma(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,v="function"===typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=da,x=la,w=window;if(c){var S=sa(r),O="clientHeight",_="clientWidth";if(S===zo(r)&&"static"!==Jo(S=Yo(r)).position&&"absolute"===s&&(O="scrollHeight",_="scrollWidth"),o===la||(o===da||o===ua)&&a===ha)x=ca,h-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[O])-n.height,h*=l?1:-1;if(o===da||(o===la||o===ca)&&a===ha)b=ua,f-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[_])-n.width,f*=l?1:-1}var E,k=Object.assign({position:s},c&&Ia),j=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Uo(r*o)/o||0,y:Uo(n*o)/o||0}}({x:f,y:h},zo(r)):{x:f,y:h};return f=j.x,h=j.y,l?Object.assign({},k,((E={})[x]=y?"0":"",E[b]=g?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",E)):Object.assign({},k,((t={})[x]=y?h+"px":"",t[b]=g?f+"px":"",t.transform="",t))}const Na={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Bo(o)&&Go(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Bo(n)&&Go(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const La={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=wa.reduce((function(e,r){return e[r]=function(e,t,r){var n=Pa(e),o=[da,la].indexOf(n)>=0?-1:1,a="function"===typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[da,ua].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}};var Fa={left:"right",right:"left",bottom:"top",top:"bottom"};function za(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fa[e]}))}var Da={start:"end",end:"start"};function Ba(e){return e.replace(/start|end/g,(function(e){return Da[e]}))}function Va(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Wa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qa(e,t,r){return t===ga?Wa(function(e,t){var r=zo(e),n=Yo(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=$o();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Xo(e),y:l}}(e,r)):Do(t)?function(e,t){var r=Qo(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Wa(function(e){var t,r=Yo(e),n=Ko(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Wo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Wo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Xo(e),l=-n.scrollTop;return"rtl"===Jo(o||r).direction&&(s+=Wo(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Yo(e)))}function Ua(e,t,r,n){var o="clippingParents"===t?function(e){var t=oa(ra(e)),r=["absolute","fixed"].indexOf(Jo(e).position)>=0&&Bo(e)?sa(e):e;return Do(r)?t.filter((function(e){return Do(e)&&Va(e,r)&&"body"!==Go(e)})):[]}(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce((function(t,r){var o=qa(e,r,n);return t.top=Wo(o.top,t.top),t.right=qo(o.right,t.right),t.bottom=qo(o.bottom,t.bottom),t.left=Wo(o.left,t.left),t}),qa(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ha(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $a(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Qa(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.strategy,i=void 0===a?e.strategy:a,s=r.boundary,l=void 0===s?va:s,c=r.rootBoundary,u=void 0===c?ga:c,d=r.elementContext,p=void 0===d?ya:d,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,v=void 0===h?0:h,g=Ha("number"!==typeof v?v:$a(v,fa)),y=p===ya?ba:ya,b=e.rects.popper,x=e.elements[m?y:p],w=Ua(Do(x)?x:x.contextElement||Yo(e.elements.popper),l,u,i),S=Qo(e.elements.reference),O=Aa({reference:S,element:b,strategy:"absolute",placement:o}),_=Wa(Object.assign({},b,O)),E=p===ya?_:S,k={top:w.top-E.top+g.top,bottom:E.bottom-w.bottom+g.bottom,left:w.left-E.left+g.left,right:E.right-w.right+g.right},j=e.modifiersData.offset;if(p===ya&&j){var C=j[o];Object.keys(k).forEach((function(e){var t=[ua,ca].indexOf(e)>=0?1:-1,r=[la,ca].indexOf(e)>=0?"y":"x";k[e]+=C[r]*t}))}return k}function Ka(e,t,r){return Wo(e,qo(t,r))}const Ga={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,v=Qa(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Pa(t.placement),y=Ra(t.placement),b=!y,x=Ta(g),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,O=t.rects.reference,_=t.rects.popper,E="function"===typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(S){if(a){var P,R="y"===x?la:da,T="y"===x?ca:ua,A="y"===x?"height":"width",I=S[x],M=I+v[R],N=I-v[T],L=f?-_[A]/2:0,F=y===ma?O[A]:_[A],z=y===ma?-_[A]:-O[A],D=t.elements.arrow,B=f&&D?ta(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[R],q=V[T],U=Ka(0,O[A],B[A]),H=b?O[A]/2-L-U-W-k.mainAxis:F-U-W-k.mainAxis,$=b?-O[A]/2+L+U+q+k.mainAxis:z+U+q+k.mainAxis,Q=t.elements.arrow&&sa(t.elements.arrow),K=Q?"y"===x?Q.clientTop||0:Q.clientLeft||0:0,G=null!=(P=null==j?void 0:j[x])?P:0,Y=I+$-G,X=Ka(f?qo(M,I+H-G-K):M,I,f?Wo(N,Y):N);S[x]=X,C[x]=X-I}if(s){var J,Z="x"===x?la:da,ee="x"===x?ca:ua,te=S[w],re="y"===w?"height":"width",ne=te+v[Z],oe=te-v[ee],ae=-1!==[la,da].indexOf(g),ie=null!=(J=null==j?void 0:j[w])?J:0,se=ae?ne:te-O[re]-_[re]-ie+k.altAxis,le=ae?te+O[re]+_[re]-ie-k.altAxis:oe,ce=f&&ae?function(e,t,r){var n=Ka(e,t,r);return n>r?r:n}(se,te,le):Ka(f?se:ne,te,f?le:oe);S[w]=ce,C[w]=ce-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]};const Ya={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Pa(r.placement),l=Ta(s),c=[da,ua].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Ha("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$a(e,fa))}(o.padding,r),d=ta(a),p="y"===l?la:da,f="y"===l?ca:ua,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],h=i[l]-r.rects.reference[l],v=sa(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=m/2-h/2,b=u[p],x=g-d[c]-u[f],w=g/2-d[c]/2+y,S=Ka(b,w,x),O=l;r.modifiersData[n]=((t={})[O]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&Va(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ja(e){return[la,ua,ca,da].some((function(t){return e[t]>=0}))}var Za=ja({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,l=zo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,Ca)})),s&&l.addEventListener("resize",r.update,Ca),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Ca)})),s&&l.removeEventListener("resize",r.update,Ca)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Aa({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,l=void 0===s||s,c={placement:Pa(t.placement),variation:Ra(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ma(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ma(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Na,La,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,v=t.options.placement,g=Pa(v),y=l||(g===v||!m?[za(v)]:function(e){if(Pa(e)===pa)return[];var t=za(e);return[Ba(e),t,Ba(t)]}(v)),b=[v].concat(y).reduce((function(e,r){return e.concat(Pa(r)===pa?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?wa:l,u=Ra(n),d=u?s?xa:xa.filter((function(e){return Ra(e)===u})):fa,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,r){return t[r]=Qa(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Pa(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,O=!0,_=b[0],E=0;E<b.length;E++){var k=b[E],j=Pa(k),C=Ra(k)===ma,P=[la,ca].indexOf(j)>=0,R=P?"width":"height",T=Qa(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),A=P?C?ua:da:C?ca:la;x[R]>w[R]&&(A=za(A));var I=za(A),M=[];if(a&&M.push(T[j]<=0),s&&M.push(T[A]<=0,T[I]<=0),M.every((function(e){return e}))){_=k,O=!1;break}S.set(k,M)}if(O)for(var N=function(e){var t=b.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},L=m?3:1;L>0;L--){if("break"===N(L))break}t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Ga,Ya,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Qa(t,{elementContext:"reference"}),s=Qa(t,{altBoundary:!0}),l=Xa(i,n),c=Xa(s,o,a),u=Ja(l),d=Ja(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ei=r(472);const ti=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:a=!1}=e,[i,s]=t.useState(null),l=(0,No.c)(t.isValidElement(n)?n.ref:null,r);if((0,Lo.c)((()=>{a||s(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,a]),(0,Lo.c)((()=>{if(i&&!a)return(0,ei.c)(r,i),()=>{(0,ei.c)(r,null)}}),[r,i,a]),a){if(t.isValidElement(n)){const e={ref:l};return t.cloneElement(n,e)}return(0,Jt.jsx)(t.Fragment,{children:n})}return(0,Jt.jsx)(t.Fragment,{children:i?mo.createPortal(n,i):i})}));const ri="base";function ni(e,t){const r=kn.rJ[t];return r?(n=r,"".concat(ri,"--").concat(n)):function(e,t){return"".concat(ri,"-").concat(e,"-").concat(t)}(e,t);var n}const oi="Popper";function ai(e){return ni(oi,e)}!function(e,t){const r={};t.forEach((t=>{r[t]=ni(e,t)}))}(oi,["root"]);function ii(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"===typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function si(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const li=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ci(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=(0,Kt.c)(e,li),s=a?{}:function(e,t,r){return"function"===typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,bn.c)(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,Oe.c)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=(0,Oe.c)({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=ii((0,Oe.c)({},o,n)),s=si(n),l=si(o),c=t(i),u=(0,bn.c)(null==c?void 0:c.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=(0,Oe.c)({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=(0,Oe.c)({},c,r,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}((0,Oe.c)({},i,{externalSlotProps:s})),u=(0,No.c)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return lo(r,(0,Oe.c)({},l,{ref:u}),o)}const ui={disableDefaultClasses:!1},di=t.createContext(ui);const pi=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],fi=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function mi(e){return"function"===typeof e?e():e}function hi(e){return void 0!==e.nodeType}const vi=()=>(0,xn.c)({root:["root"]},function(e){const{disableDefaultClasses:r}=t.useContext(di);return t=>r?"":e(t)}(ai)),gi={},yi=t.forwardRef((function(e,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:m={},TransitionProps:h}=e,v=(0,Kt.c)(e,pi),g=t.useRef(null),y=(0,No.c)(g,r),b=t.useRef(null),x=(0,No.c)(b,p),w=t.useRef(x);(0,Lo.c)((()=>{w.current=x}),[x]),t.useImperativeHandle(p,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[O,_]=t.useState(S),[E,k]=t.useState(mi(o));t.useEffect((()=>{b.current&&b.current.forceUpdate()})),t.useEffect((()=>{o&&k(mi(o))}),[o]),(0,Lo.c)((()=>{if(!E||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;_(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Za(E,g.current,(0,Oe.c)({placement:S},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[E,s,l,c,d,S]);const j={placement:O};null!==h&&(j.TransitionProps=h);const C=vi(),P=null!=(n=m.root)?n:"div",R=ci({elementType:P,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:C.root});return(0,Jt.jsx)(P,(0,Oe.c)({},R,{children:"function"===typeof a?a(j):a}))})),bi=t.forwardRef((function(e,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=gi,popperRef:f,style:m,transition:h=!1,slotProps:v={},slots:g={}}=e,y=(0,Kt.c)(e,fi),[b,x]=t.useState(!0);if(!l&&!u&&(!h||b))return null;let w;if(a)w=a;else if(n){const e=mi(n);w=e&&hi(e)?(0,Fo.c)(e).body:(0,Fo.c)(null).body}const S=u||!l||h&&!b?void 0:"none",O=h?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Jt.jsx)(ti,{disablePortal:s,container:w,children:(0,Jt.jsx)(yi,(0,Oe.c)({anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:r,open:h?!b:u,placement:d,popperOptions:p,popperRef:f,slotProps:v,slots:g},y,{style:(0,Oe.c)({position:"fixed",top:0,left:0,display:S},m),TransitionProps:O,children:o}))})})),xi=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wi=(0,Sn.cp)(bi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Si=t.forwardRef((function(e,t){var r;const n=(0,tr.c)(),o=(0,wn.c)({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:v,transition:g,slots:y,slotProps:b}=o,x=(0,Kt.c)(o,xi),w=null!=(r=null==y?void 0:y.root)?r:null==s?void 0:s.Root,S=(0,Oe.c)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:v,transition:g},x);return(0,Jt.jsx)(wi,(0,Oe.c)({as:i,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=b?b:l},S,{ref:t}))}));var Oi=r(7908),_i=r(8144),Ei=r(2864),ki=r(1124);function ji(e){return(0,kn.cp)("MuiTooltip",e)}const Ci=(0,En.c)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Pi=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Ri=(0,Sn.cp)(Si,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:r,open:n}=e;return(0,Oe.c)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(Ci.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(Ci.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(Ci.arrow)]:(0,Oe.c)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(Ci.arrow)]:(0,Oe.c)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),Ti=(0,Sn.cp)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,Wn.c)(r.placement.split("-")[0]))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,qn.W4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(Ci.popper,'[data-popper-placement*="left"] &')]:(0,Oe.c)({transformOrigin:"right center"},r.isRtl?(0,Oe.c)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,Oe.c)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[".".concat(Ci.popper,'[data-popper-placement*="right"] &')]:(0,Oe.c)({transformOrigin:"left center"},r.isRtl?(0,Oe.c)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,Oe.c)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[".".concat(Ci.popper,'[data-popper-placement*="top"] &')]:(0,Oe.c)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[".".concat(Ci.popper,'[data-popper-placement*="bottom"] &')]:(0,Oe.c)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})});var n})),Ai=(0,Sn.cp)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,qn.W4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let Ii=!1;const Mi=new io.S;let Ni={x:0,y:0};function Li(e,t){return r=>{t&&t(r),e(r)}}const Fi=t.forwardRef((function(e,r){var n,o,a,i,s,l,c,u,d,p,f,m,h,v,g,y,b,x,w;const S=(0,wn.c)({props:e,name:"MuiTooltip"}),{arrow:O=!1,children:_,components:E={},componentsProps:k={},describeChild:j=!1,disableFocusListener:C=!1,disableHoverListener:P=!1,disableInteractive:R=!1,disableTouchListener:T=!1,enterDelay:A=100,enterNextDelay:I=0,enterTouchDelay:M=700,followCursor:N=!1,id:L,leaveDelay:F=0,leaveTouchDelay:z=1500,onClose:D,onOpen:B,open:V,placement:W="bottom",PopperComponent:q,PopperProps:U={},slotProps:H={},slots:$={},title:Q,TransitionComponent:K=Mo,TransitionProps:G}=S,Y=(0,Kt.c)(S,Pi),X=t.isValidElement(_)?_:(0,Jt.jsx)("span",{children:_}),J=po(),Z="rtl"===J.direction,[ee,te]=t.useState(),[re,ne]=t.useState(null),oe=t.useRef(!1),ae=R||N,ie=(0,io.c)(),se=(0,io.c)(),le=(0,io.c)(),ce=(0,io.c)(),[ue,de]=(0,ki.c)({controlled:V,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=(0,_i.c)(L),me=t.useRef(),he=(0,Oi.c)((()=>{void 0!==me.current&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),ce.clear()}));t.useEffect((()=>he),[he]);const ve=e=>{Mi.clear(),Ii=!0,de(!0),B&&!pe&&B(e)},ge=(0,Oi.c)((e=>{Mi.start(800+F,(()=>{Ii=!1})),de(!1),D&&pe&&D(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),ye=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),A||Ii&&I?se.start(Ii?I:A,(()=>{ve(e)})):ve(e))},be=e=>{se.clear(),le.start(F,(()=>{ge(e)}))},{isFocusVisibleRef:xe,onBlur:we,onFocus:Se,ref:_e}=(0,Ei.c)(),[,Ee]=t.useState(!1),ke=e=>{we(e),!1===xe.current&&(Ee(!1),be(e))},je=e=>{ee||te(e.currentTarget),Se(e),!0===xe.current&&(Ee(!0),ye(e))},Ce=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Pe=ye,Re=be,Te=e=>{Ce(e),le.clear(),ie.clear(),he(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=me.current,ye(e)}))},Ae=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),he(),le.start(z,(()=>{ge(e)}))};t.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,pe]);const Ie=(0,Co.c)(X.ref,_e,te,r);Q||0===Q||(pe=!1);const Me=t.useRef(),Ne={},Le="string"===typeof Q;j?(Ne.title=pe||!Le||P?null:Q,Ne["aria-describedby"]=pe?fe:null):(Ne["aria-label"]=Le?Q:null,Ne["aria-labelledby"]=pe&&!Le?fe:null);const Fe=(0,Oe.c)({},Ne,Y,X.props,{className:(0,bn.c)(Y.className,X.props.className),onTouchStart:Ce,ref:Ie},N?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Ni={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{});const ze={};T||(Fe.onTouchStart=Te,Fe.onTouchEnd=Ae),P||(Fe.onMouseOver=Li(Pe,Fe.onMouseOver),Fe.onMouseLeave=Li(Re,Fe.onMouseLeave),ae||(ze.onMouseOver=Pe,ze.onMouseLeave=Re)),C||(Fe.onFocus=Li(je,Fe.onFocus),Fe.onBlur=Li(ke,Fe.onBlur),ae||(ze.onFocus=je,ze.onBlur=ke));const De=t.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(re),options:{element:re,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),(0,Oe.c)({},U.popperOptions,{modifiers:t})}),[re,U]),Be=(0,Oe.c)({},S,{isRtl:Z,arrow:O,disableInteractive:ae,placement:W,PopperComponentProp:q,touch:oe.current}),Ve=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,Wn.c)(a.split("-")[0]))],arrow:["arrow"]};return(0,xn.c)(i,ji,t)})(Be),We=null!=(n=null!=(o=$.popper)?o:E.Popper)?n:Ri,qe=null!=(a=null!=(i=null!=(s=$.transition)?s:E.Transition)?i:K)?a:Mo,Ue=null!=(l=null!=(c=$.tooltip)?c:E.Tooltip)?l:Ti,He=null!=(u=null!=(d=$.arrow)?d:E.Arrow)?u:Ai,$e=lo(We,(0,Oe.c)({},U,null!=(p=H.popper)?p:k.popper,{className:(0,bn.c)(Ve.popper,null==U?void 0:U.className,null==(f=null!=(m=H.popper)?m:k.popper)?void 0:f.className)}),Be),Qe=lo(qe,(0,Oe.c)({},G,null!=(h=H.transition)?h:k.transition),Be),Ke=lo(Ue,(0,Oe.c)({},null!=(v=H.tooltip)?v:k.tooltip,{className:(0,bn.c)(Ve.tooltip,null==(g=null!=(y=H.tooltip)?y:k.tooltip)?void 0:g.className)}),Be),Ge=lo(He,(0,Oe.c)({},null!=(b=H.arrow)?b:k.arrow,{className:(0,bn.c)(Ve.arrow,null==(x=null!=(w=H.arrow)?w:k.arrow)?void 0:x.className)}),Be);return(0,Jt.jsxs)(t.Fragment,{children:[t.cloneElement(X,Fe),(0,Jt.jsx)(We,(0,Oe.c)({as:null!=q?q:Si,placement:W,anchorEl:N?{getBoundingClientRect:()=>({top:Ni.y,left:Ni.x,right:Ni.x,bottom:Ni.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&pe,id:fe,transition:!0},ze,$e,{popperOptions:De,children:e=>{let{TransitionProps:t}=e;return(0,Jt.jsx)(qe,(0,Oe.c)({timeout:J.transitions.duration.shorter},t,Qe,{children:(0,Jt.jsxs)(Ue,(0,Oe.c)({},Ke,{children:[Q,O?(0,Jt.jsx)(He,(0,Oe.c)({},Ge,{ref:ne})):null]}))}))}}))]})})),zi=Fi;function Di(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Bi(e,r){var n=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return r&&(0,t.isValidElement)(e)?r(e):e}(e)})),n}function Vi(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Wi(e,r,n){var o=Bi(e.children),a=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(r,o);return Object.keys(a).forEach((function(i){var s=a[i];if((0,t.isValidElement)(s)){var l=i in r,c=i in o,u=r[i],d=(0,t.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,t.isValidElement)(u)&&(a[i]=(0,t.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Vi(s,"exit",e),enter:Vi(s,"enter",e)})):a[i]=(0,t.cloneElement)(s,{in:!1}):a[i]=(0,t.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Vi(s,"exit",e),enter:Vi(s,"enter",e)})}})),a}var qi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ui=function(e){function r(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,fo.c)(r,e);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,r){var n,o,a=r.children,i=r.handleExited;return{children:r.firstRender?(n=e,o=i,Bi(n.children,(function(e){return(0,t.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Vi(e,"appear",n),enter:Vi(e,"enter",n),exit:Vi(e,"exit",n)})}))):Wi(e,a,i),firstRender:!1}},n.handleExited=function(e,t){var r=Bi(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,Oe.c)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,n=e.childFactory,o=(0,Kt.c)(e,["component","childFactory"]),a=this.state.contextValue,i=qi(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?t.createElement(go.Provider,{value:a},i):t.createElement(go.Provider,{value:a},t.createElement(r,o,i))},r}(t.Component);Ui.propTypes={},Ui.defaultProps={component:"div",childFactory:function(e){return e}};const Hi=Ui;var $i=r(5779),Qi=r(8336),Ki=r(6124),Gi=(r(412),r(3164),(0,er.w)((function(e,r){var n=e.styles,o=(0,Ki.k)([n],void 0,t.useContext(er.T));if(!er.i){for(var a,i=o.name,s=o.styles,l=o.next;void 0!==l;)i+=" "+l.name,s+=l.styles,l=l.next;var c=!0===r.compat,u=r.insert("",{name:i,styles:s},r.sheet,c);return c?null:t.createElement("style",((a={})["data-emotion"]=r.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=r.sheet.nonce,a))}var d=t.useRef();return(0,Qi.k)((function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),d.current=[t,n],function(){t.flush()}}),[r]),(0,Qi.k)((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,$i.aE)(r,o.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",o,t,!1)}}),[r,o.name]),null})));function Yi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,Ki.k)(t)}var Xi=function(){var e=Yi.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_"}}};const Ji=function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=t.useState(!1),f=(0,bn.c)(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+i,left:-s/2+a},h=(0,bn.c)(n.child,d&&n.childLeaving,o&&n.childPulsate);return l||d||p(!0),t.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,Jt.jsx)("span",{className:f,style:m,children:(0,Jt.jsx)("span",{className:h})})};const Zi=(0,En.c)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var es,ts,rs,ns;const os=["center","classes","className"];let as,is,ss,ls;const cs=Xi(as||(as=es||(es=Di(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),us=Xi(is||(is=ts||(ts=Di(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),ds=Xi(ss||(ss=rs||(rs=Di(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),ps=(0,Sn.cp)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),fs=(0,Sn.cp)(Ji,{name:"MuiTouchRipple",slot:"Ripple"})(ls||(ls=ns||(ns=Di(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),Zi.rippleVisible,cs,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Zi.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Zi.child,Zi.childLeaving,us,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Zi.childPulsate,ds,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),ms=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=(0,Kt.c)(n,os),[l,c]=t.useState([]),u=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=t.useRef(!1),f=(0,io.c)(),m=t.useRef(null),h=t.useRef(null),v=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:i}=e;c((e=>[...e,(0,Jt.jsx)(fs,{classes:{ripple:(0,bn.c)(a.ripple,Zi.ripple),rippleVisible:(0,bn.c)(a.rippleVisible,Zi.rippleVisible),ripplePulsate:(0,bn.c)(a.ripplePulsate,Zi.ripplePulsate),child:(0,bn.c)(a.child,Zi.child),childLeaving:(0,bn.c)(a.childLeaving,Zi.childLeaving),childPulsate:(0,bn.c)(a.childPulsate,Zi.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},u.current)])),u.current+=1,d.current=i}),[a]),g=t.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:n=!1,center:a=o||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{v({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):v({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[o,v,f]),y=t.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=t.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{b(e,t)}));m.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return t.useImperativeHandle(r,(()=>({pulsate:y,start:g,stop:b})),[y,g,b]),(0,Jt.jsx)(ps,(0,Oe.c)({className:(0,bn.c)(Zi.root,a.root,i),ref:h},s,{children:(0,Jt.jsx)(Hi,{component:null,exit:!0,children:l})}))})),hs=ms;function vs(e){return(0,kn.cp)("MuiButtonBase",e)}const gs=(0,En.c)("MuiButtonBase",["root","disabled","focusVisible"]),ys=["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"],bs=(0,Sn.cp)("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"},["&.".concat(gs.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xs=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:v,onDragLeave:g,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:O,onMouseUp:_,onTouchEnd:E,onTouchMove:k,onTouchStart:j,tabIndex:C=0,TouchRippleProps:P,touchRippleRef:R,type:T}=n,A=(0,Kt.c)(n,ys),I=t.useRef(null),M=t.useRef(null),N=(0,Co.c)(M,R),{isFocusVisibleRef:L,onFocus:F,onBlur:z,ref:D}=(0,Ei.c)(),[B,V]=t.useState(!1);c&&B&&V(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{V(!0),I.current.focus()}})),[]);const[W,q]=t.useState(!1);t.useEffect((()=>{q(!0)}),[]);const U=W&&!u&&!c;function H(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,Oi.c)((n=>{t&&t(n);return!r&&M.current&&M.current[e](n),!0}))}t.useEffect((()=>{B&&p&&!u&&W&&M.current.pulsate()}),[u,p,B,W]);const $=H("start",S),Q=H("stop",v),K=H("stop",g),G=H("stop",_),Y=H("stop",(e=>{B&&e.preventDefault(),O&&O(e)})),X=H("start",j),J=H("stop",E),Z=H("stop",k),ee=H("stop",(e=>{z(e),!1===L.current&&V(!1),m&&m(e)}),!1),te=(0,Oi.c)((e=>{I.current||(I.current=e.currentTarget),F(e),!0===L.current&&(V(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=I.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=(0,Oi.c)((e=>{p&&!ne.current&&B&&M.current&&" "===e.key&&(ne.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!c&&(e.preventDefault(),h&&h(e))})),ae=(0,Oi.c)((e=>{p&&" "===e.key&&M.current&&B&&!e.defaultPrevented&&(ne.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),w&&w(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(A.href||A.to)&&(ie=f);const se={};"button"===ie?(se.type=void 0===T?"button":T,se.disabled=c):(A.href||A.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=(0,Co.c)(r,D,I);const ce=(0,Oe.c)({},n,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:C,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a={root:["root",t&&"disabled",r&&"focusVisible"]},i=(0,xn.c)(a,vs,o);return r&&n&&(i.root+=" ".concat(n)),i})(ce);return(0,Jt.jsxs)(bs,(0,Oe.c)({as:ie,className:(0,bn.c)(ue.root,s),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:Q,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:$,onMouseLeave:Y,onMouseUp:G,onDragLeave:K,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:le,tabIndex:c?-1:C,type:T},se,A,{children:[i,U?(0,Jt.jsx)(hs,(0,Oe.c)({ref:N,center:a},P)):null]}))})),ws=xs;function Ss(e){return(0,kn.cp)("MuiIconButton",e)}const Os=(0,En.c)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_s=["edge","children","className","color","disabled","disableFocusRipple","size"],Es=(0,Sn.cp)(ws,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,Wn.c)(r.color))],r.edge&&t["edge".concat((0,Wn.c)(r.edge))],t["size".concat((0,Wn.c)(r.size))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{let{theme:t,ownerState:r}=e;var n;const o=null==(n=(t.vars||t).palette)?void 0:n[r.color];return(0,Oe.c)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,Oe.c)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,Oe.c)({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(Os.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),ks=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=(0,Kt.c)(r,_s),d=(0,Oe.c)({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled","default"!==n&&"color".concat((0,Wn.c)(n)),o&&"edge".concat((0,Wn.c)(o)),"size".concat((0,Wn.c)(a))]};return(0,xn.c)(i,Ss,t)})(d);return(0,Jt.jsx)(Es,(0,Oe.c)({className:(0,bn.c)(p.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:o}))})),js=ks;var Cs=r(1464),Ps=function(){var e=ro(),r=(0,t.useCallback)((function(t,r){return e.translate(t,r)}),[e]);return e?r:Rs},Rs=function(e){return e},Ts=function(){var e=fr((function(e){return null===e||void 0===e?void 0:e.breakpoints.down("sm")}),{noSsr:!0});return Ct("sidebar.open",!e)},As=function(e){var r=Ps(),n=e.className,o=Ts(),a=o[0],i=o[1];return t.createElement(zi,{className:n,title:r(a?"ra.action.close_menu":"ra.action.open_menu",{_:"Open/Close menu"}),enterDelay:500},t.createElement(Ns,{color:"inherit",onClick:function(){return i(!a)}},t.createElement(Cs.c,{classes:{root:a?Ms.menuButtonIconOpen:Ms.menuButtonIconClosed}})))},Is="RaSidebarToggleButton",Ms={menuButtonIconClosed:"".concat(Is,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Is,"-menuButtonIconOpen")},Ns=(0,Sn.cp)(js,{name:Is,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(Ms.menuButtonIconClosed)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(0deg)"},t["& .".concat(Ms.menuButtonIconOpen)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(180deg)"},t}));function Ls(e){return(0,kn.cp)("MuiCircularProgress",e)}(0,En.c)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Fs,zs,Ds,Bs;const Vs=["className","color","disableShrink","size","style","thickness","value","variant"];let Ws,qs,Us,Hs;const $s=44,Qs=Xi(Ws||(Ws=Fs||(Fs=Di(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),Ks=Xi(qs||(qs=zs||(zs=Di(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),Gs=(0,Sn.cp)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,Wn.c)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&Yi(Us||(Us=Ds||(Ds=Di(["\n animation: "," 1.4s linear infinite;\n "]))),Qs)})),Ys=(0,Sn.cp)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Xs=(0,Sn.cp)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,Wn.c)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&Yi(Hs||(Hs=Bs||(Bs=Di(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),Ks)})),Js=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:a=!1,size:i=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=r,d=(0,Kt.c)(r,Vs),p=(0,Oe.c)({},r,{color:o,disableShrink:a,size:i,thickness:l,value:c,variant:u}),f=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,"color".concat((0,Wn.c)(n))],svg:["svg"],circle:["circle","circle".concat((0,Wn.c)(r)),o&&"circleDisableShrink"]};return(0,xn.c)(a,Ls,t)})(p),m={},h={},v={};if("determinate"===u){const e=2*Math.PI*(($s-l)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),m.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),h.transform="rotate(-90deg)"}return(0,Jt.jsx)(Gs,(0,Oe.c)({className:(0,bn.c)(f.root,n),style:(0,Oe.c)({width:i,height:i},h,s),ownerState:p,ref:t,role:"progressbar"},v,d,{children:(0,Jt.jsx)(Ys,{className:f.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat($s," ").concat($s),children:(0,Jt.jsx)(Xs,{className:f.circle,style:m,ownerState:p,cx:$s,cy:$s,r:($s-l)/2,fill:"none",strokeWidth:l})})}))})),Zs=Js;var el=r(8772),tl=function(){var e=(0,d.useQueryClient)();return(0,t.useCallback)((function(){e.invalidateQueries()}),[e])},rl=function(){return rl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rl.apply(this,arguments)},nl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ol=function(e){var r=e.label,n=void 0===r?"ra.action.refresh":r,o=e.icon,a=void 0===o?al:o,i=e.onClick,s=e.className,l=nl(e,["label","icon","onClick","className"]),c=tl(),u=Ps(),d=(0,t.useCallback)((function(e){e.preventDefault(),c(),"function"===typeof i&&i(e)}),[c,i]);return t.createElement(zi,{title:n&&u(n,{_:"Refresh"})},t.createElement(js,rl({"aria-label":n&&u(n,{_:"Refresh"}),className:s,color:"inherit",onClick:d},l),a))},al=t.createElement(el.c,null);ol.propTypes={className:Ln().string,label:Ln().string,icon:Ln().element};var il,sl,ll=function(){return ll=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ll.apply(this,arguments)},cl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ul=function(e){var r=e.className,n=e.onClick,o=e.sx,a=cl(e,["className","onClick","sx"]),i=function(){var e=(0,d.useQueryClient)(),r=t.useRef(!1),n=t.useRef(e.isFetching()>0),o=t.useRef(e.isMutating()>0),a=t.useState(n.current||o.current),i=a[0],s=a[1];return t.useEffect((function(){r.current=!0;var t=e.getQueryCache().subscribe(d.notifyManager.batchCalls((function(){r.current&&(n.current=e.isFetching()>0,s(n.current||o.current))}))),a=e.getMutationCache().subscribe(d.notifyManager.batchCalls((function(){r.current&&(o.current=e.isMutating()>0,s(n.current||o.current))})));return function(){r.current=!1,t(),a()}}),[e]),i}(),s=po();return t.createElement(fl,{className:r,sx:o},t.createElement(ol,{className:"".concat(pl.loadedIcon," ").concat(i&&pl.loadedLoading),onClick:n}),i&&t.createElement(Zs,ll({className:Mn("app-loader",pl.loader),color:"inherit",size:s.spacing(2),thickness:6},a)))};ul.propTypes={classes:Ln().object,className:Ln().string,width:Ln().string};var dl="RaLoadingIndicator",pl={loader:"".concat(dl,"-loader"),loadedLoading:"".concat(dl,"-loadedLoading"),loadedIcon:"".concat(dl,"-loadedIcon")},fl=(0,Sn.cp)("div",{name:dl,overridesResolver:function(e,t){return t.root}})(((il={position:"relative"})["& .".concat(pl.loadedIcon)]=((sl={})["&.".concat(pl.loadedLoading)]={opacity:0},sl),il["& .".concat(pl.loader)]={position:"absolute",top:"30%",left:"30%"},il)),ml=function(){return ml=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ml.apply(this,arguments)},hl=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},vl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},gl={id:"",fullName:null},yl={staleTime:3e5},bl=function(e){void 0===e&&(e=yl);var r=Sr(),n=(0,d.useQuery)(["auth","getIdentity"],r?function(){return r.getIdentity()}:function(){return hl(void 0,void 0,void 0,(function(){return vl(this,(function(e){return[2,gl]}))}))},ml({enabled:"function"===typeof(null===r||void 0===r?void 0:r.getIdentity)},e));return(0,t.useMemo)((function(){return n.isLoading?{isLoading:!0}:n.error?{error:n.error,isLoading:!1}:{data:n.data,identity:n.data,refetch:n.refetch,isLoading:!1}}),[n])};var xl=r(6644);function wl(e){return(0,kn.cp)("MuiButton",e)}const Sl=(0,En.c)("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const Ol=t.createContext({});const _l=t.createContext(void 0),El=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kl=e=>(0,Oe.c)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),jl=(0,Sn.cp)(ws,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,Wn.c)(r.color))],t["size".concat((0,Wn.c)(r.size))],t["".concat(r.variant,"Size").concat((0,Wn.c)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],i="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Oe.c)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Oe.c)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:"1px solid ".concat((t.vars||t).palette[r.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}),"&:active":(0,Oe.c)({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(Sl.focusVisible)]:(0,Oe.c)({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(Sl.disabled)]:(0,Oe.c)({color:(t.vars||t).palette.action.disabled},"outlined"===r.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===r.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):"1px solid ".concat((0,qn.W4)(t.palette[r.color].main,.5))},"contained"===r.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(Sl.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(Sl.disabled)]:{boxShadow:"none"}}})),Cl=(0,Sn.cp)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t["iconSize".concat((0,Wn.c)(r.size))]]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},kl(t))})),Pl=(0,Sn.cp)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t["iconSize".concat((0,Wn.c)(r.size))]]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},kl(t))})),Rl=t.forwardRef((function(e,r){const n=t.useContext(Ol),o=t.useContext(_l),a=(0,xl.c)(n,e),i=(0,wn.c)({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:m,focusVisibleClassName:h,fullWidth:v=!1,size:g="medium",startIcon:y,type:b,variant:x="text"}=i,w=(0,Kt.c)(i,El),S=(0,Oe.c)({},i,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:v,size:g,type:b,variant:x}),O=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,"".concat(a).concat((0,Wn.c)(t)),"size".concat((0,Wn.c)(o)),"".concat(a,"Size").concat((0,Wn.c)(o)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,Wn.c)(o))],endIcon:["endIcon","iconSize".concat((0,Wn.c)(o))]},l=(0,xn.c)(s,wl,i);return(0,Oe.c)({},i,l)})(S),_=y&&(0,Jt.jsx)(Cl,{className:O.startIcon,ownerState:S,children:y}),E=m&&(0,Jt.jsx)(Pl,{className:O.endIcon,ownerState:S,children:m}),k=o||"";return(0,Jt.jsxs)(jl,(0,Oe.c)({ownerState:S,className:(0,bn.c)(n.className,O.root,u,k),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:(0,bn.c)(O.focusVisible,h),ref:r,type:b},w,{classes:O,children:[_,s,E]}))})),Tl=Rl;var Al=r(7664);const Il=(0,Al.c)((0,Jt.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Ml(e){return(0,kn.cp)("MuiAvatar",e)}(0,En.c)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Nl=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Ll=(0,Sn.cp)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,Oe.c)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,Oe.c)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),Fl=(0,Sn.cp)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),zl=(0,Sn.cp)(Il,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const Dl=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:d,variant:p="circular"}=n,f=(0,Kt.c)(n,Nl);let m=null;const h=function(e){let{crossOrigin:r,referrerPolicy:n,src:o,srcSet:a}=e;const[i,s]=t.useState(!1);return t.useEffect((()=>{if(!o&&!a)return;s(!1);let e=!0;const t=new Image;return t.onload=()=>{e&&s("loaded")},t.onerror=()=>{e&&s("error")},t.crossOrigin=r,t.referrerPolicy=n,t.src=o,a&&(t.srcset=a),()=>{e=!1}}),[r,n,o,a]),i}((0,Oe.c)({},l,{src:u,srcSet:d})),v=u||d,g=v&&"error"!==h,y=(0,Oe.c)({},n,{colorDefault:!g,component:s,variant:p}),b=(e=>{const{classes:t,variant:r,colorDefault:n}=e,o={root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,xn.c)(o,Ml,t)})(y);return m=g?(0,Jt.jsx)(Fl,(0,Oe.c)({alt:o,srcSet:d,src:u,sizes:c,ownerState:y,className:b.img},l)):null!=a&&""!==a&&"boolean"!==typeof a?a:v&&o?o[0]:(0,Jt.jsx)(zl,{ownerState:y,className:b.fallback}),(0,Jt.jsx)(Ll,(0,Oe.c)({as:s,ownerState:y,className:(0,bn.c)(b.root,i),ref:r},f,{children:m}))})),Bl=Dl;var Vl=r(3184),Wl=r(3976);const ql=t.createContext({});function Ul(e){return(0,kn.cp)("MuiList",e)}(0,En.c)("MuiList",["root","padding","dense","subheader"]);const Hl=["children","className","component","dense","disablePadding","subheader"],$l=(0,Sn.cp)("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]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Ql=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=(0,Kt.c)(n,Hl),d=t.useMemo((()=>({dense:s})),[s]),p=(0,Oe.c)({},n,{component:i,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,a={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,xn.c)(a,Ul,t)})(p);return(0,Jt.jsx)(ql.Provider,{value:d,children:(0,Jt.jsxs)($l,(0,Oe.c)({as:i,className:(0,bn.c)(f.root,a),ref:r,ownerState:p},u,{children:[c,o]}))})})),Kl=Ql;function Gl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Yl=Gl,Xl=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jl(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Zl(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ec(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function tc(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ec(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const rc=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=(0,Kt.c)(e,Xl),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,cr.c)((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r="".concat(Yl((0,Wl.c)(e)),"px");f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width="calc(100% + ".concat(r,")")}return f.current}})),[]);const h=(0,Co.c)(f,r);let v=-1;t.Children.forEach(i,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===v)&&(v=r),v===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===r&&(v+=1,v>=i.length&&(v=-1))}));const g=t.Children.map(i,((e,r)=>{if(r===v){const r={};return a&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return(0,Jt.jsx)(Kl,(0,Oe.c)({role:"menu",ref:h,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=(0,Wl.c)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),tc(t,n,c,l,Jl);else if("ArrowUp"===r)e.preventDefault(),tc(t,n,c,l,Zl);else if("Home"===r)e.preventDefault(),tc(t,null,c,l,Jl);else if("End"===r)e.preventDefault(),tc(t,null,c,l,Zl);else if(1===r.length){const o=m.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=n&&!o.repeating&&ec(n,o);o.previousKeyMatched&&(s||tc(t,n,!1,l,Jl,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:o?0:-1},p,{children:g}))}));var nc=r(2144),oc=r(1328),ac=r(2488),ic=r(1200),sc=r(7608);function lc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cc(e){return parseInt((0,sc.c)(e).getComputedStyle(e).paddingRight,10)||0}function uc(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&lc(e,o)}))}function dc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function pc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Fo.c)(e);return t.body===e?(0,sc.c)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Gl((0,Fo.c)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(cc(n)+e,"px");const t=(0,Fo.c)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(cc(t)+e,"px")}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Fo.c)(n).body;else{const t=n.parentElement,r=(0,sc.c)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}const fc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&lc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);uc(t,e.mount,e.modalRef,n,!0);const o=dc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=dc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=pc(n,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.modals.indexOf(e);if(-1===r)return r;const n=dc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&lc(e.modalRef,t),uc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&lc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function mc(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:a=fc,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),v=(0,No.c)(h,p),[g,y]=t.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),S=()=>{a.mount(w(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},O=(0,ac.c)((()=>{const e=function(e){return"function"===typeof e?e():e}(r)||(0,Fo.c)(m.current).body;a.add(w(),e),h.current&&S()})),_=t.useCallback((()=>a.isTopModal(w())),[a]),E=(0,ac.c)((e=>{m.current=e,e&&(d&&_()?S():h.current&&lc(h.current,x))})),k=t.useCallback((()=>{a.remove(w(),x)}),[x,a]);t.useEffect((()=>()=>{k()}),[k]),t.useEffect((()=>{d?O():b&&i||k()}),[d,k,b,i,O]);const j=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&_()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ii(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,Oe.c)({},r,t);return(0,Oe.c)({role:"presentation"},n,{onKeyDown:j(n),ref:v})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Oe.c)({"aria-hidden":!0},e,{onClick:C(e),open:d})},getTransitionProps:()=>({onEnter:(0,ic.c)((()=>{y(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:(0,ic.c)((()=>{y(!0),l&&l(),i&&k()}),null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:E,isTopModal:_,exited:g,hasTransition:b}}const hc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vc(e){const t=[],r=[];return Array.from(e.querySelectorAll(hc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function gc(){return!0}function yc(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:i=vc,isEnabled:s=gc,open:l}=e,c=t.useRef(!1),u=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),v=(0,No.c)(r.ref,h),g=t.useRef(null);t.useEffect((()=>{l&&h.current&&(m.current=!n)}),[n,l]),t.useEffect((()=>{if(!l||!h.current)return;const e=(0,Fo.c)(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{a||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),t.useEffect((()=>{if(!l||!h.current)return;const e=(0,Fo.c)(h.current),t=t=>{g.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(r=i(h.current)),r.length>0){var n,a;const e=Boolean((null==(n=g.current)?void 0:n.shiftKey)&&"Tab"===(null==(a=g.current)?void 0:a.key)),t=r[0],o=r[r.length-1];"string"!==typeof t&&"string"!==typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,a,s,l,i]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:v,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),(0,Jt.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const bc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xc={entering:{opacity:1},entered:{opacity:1}},wc=t.forwardRef((function(e,r){const n=po(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:v,timeout:g=o,TransitionComponent:y=Eo}=e,b=(0,Kt.c)(e,bc),x=t.useRef(null),w=(0,Co.c)(x,s.ref,r),S=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},O=S(p),_=S(((e,t)=>{ko(e);const r=jo({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),E=S(d),k=S(h),j=S((e=>{const t=jo({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),C=S(m);return(0,Jt.jsx)(y,(0,Oe.c)({appear:i,in:c,nodeRef:x,onEnter:_,onEntered:E,onEntering:O,onExit:j,onExited:C,onExiting:k,addEndListener:e=>{a&&a(x.current,e)},timeout:g},b,{children:(e,r)=>t.cloneElement(s,(0,Oe.c)({style:(0,Oe.c)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},xc[e],v,s.props.style),ref:w},r))}))})),Sc=wc;function Oc(e){return(0,kn.cp)("MuiBackdrop",e)}(0,En.c)("MuiBackdrop",["root","invisible"]);const _c=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ec=(0,Sn.cp)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,Oe.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"},t.invisible&&{backgroundColor:"transparent"})})),kc=t.forwardRef((function(e,t){var r,n,o;const a=(0,wn.c)({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=Sc,transitionDuration:v}=a,g=(0,Kt.c)(a,_c),y=(0,Oe.c)({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,xn.c)(n,Oc,t)})(y),x=null!=(r=f.root)?r:u.root;return(0,Jt.jsx)(h,(0,Oe.c)({in:p,timeout:v},g,{children:(0,Jt.jsx)(Ec,(0,Oe.c)({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:c.Root)?n:l,className:(0,bn.c)(b.root,s,null==x?void 0:x.className),ownerState:(0,Oe.c)({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))})),jc=kc;function Cc(e){return(0,kn.cp)("MuiModal",e)}(0,En.c)("MuiModal",["root","hidden","backdrop"]);const Pc=["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"],Rc=(0,Sn.cp)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),Tc=(0,Sn.cp)(jc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ac=t.forwardRef((function(e,r){var n,o,a,i,s,l;const c=(0,wn.c)({name:"MuiModal",props:e}),{BackdropComponent:u=Tc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:v,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:O=!1,disableScrollLock:_=!1,hideBackdrop:E=!1,keepMounted:k=!1,onBackdropClick:j,open:C,slotProps:P,slots:R}=c,T=(0,Kt.c)(c,Pc),A=(0,Oe.c)({},c,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:O,disableScrollLock:_,hideBackdrop:E,keepMounted:k}),{getRootProps:I,getBackdropProps:M,getTransitionProps:N,portalRef:L,isTopModal:F,exited:z,hasTransition:D}=mc((0,Oe.c)({},A,{rootRef:r})),B=(0,Oe.c)({},A,{exited:z}),V=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,xn.c)(o,Cc,n)})(B),W={};if(void 0===m.props.tabIndex&&(W.tabIndex="-1"),D){const{onEnter:e,onExited:t}=N();W.onEnter=e,W.onExited=t}const q=null!=(n=null!=(o=null==R?void 0:R.root)?o:g.Root)?n:Rc,U=null!=(a=null!=(i=null==R?void 0:R.backdrop)?i:g.Backdrop)?a:u,H=null!=(s=null==P?void 0:P.root)?s:y.root,$=null!=(l=null==P?void 0:P.backdrop)?l:y.backdrop,Q=ci({elementType:q,externalSlotProps:H,externalForwardedProps:T,getSlotProps:I,additionalProps:{ref:r,as:v},ownerState:B,className:(0,bn.c)(p,null==H?void 0:H.className,null==V?void 0:V.root,!B.open&&B.exited&&(null==V?void 0:V.hidden))}),K=ci({elementType:U,externalSlotProps:$,additionalProps:d,getSlotProps:e=>M((0,Oe.c)({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,bn.c)(null==$?void 0:$.className,null==d?void 0:d.className,null==V?void 0:V.backdrop),ownerState:B});return k||C||D&&!z?(0,Jt.jsx)(ti,{ref:L,container:h,disablePortal:S,children:(0,Jt.jsxs)(q,(0,Oe.c)({},Q,{children:[!E&&u?(0,Jt.jsx)(U,(0,Oe.c)({},K)):null,(0,Jt.jsx)(yc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:O,isEnabled:F,open:C,children:t.cloneElement(m,W)})]}))}):null})),Ic=Ac;function Mc(e){return(0,kn.cp)("MuiPopover",e)}(0,En.c)("MuiPopover",["root","paper"]);const Nc=["onEntering"],Lc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Fc=["slotProps"];function zc(e,t){let r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Dc(e,t){let r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Bc(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function Vc(e){return"function"===typeof e?e():e}const Wc=(0,Sn.cp)(Ic,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qc=(0,Sn.cp)(Gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Uc=t.forwardRef((function(e,r){var n,o,a;const i=(0,wn.c)({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:v=16,open:g,PaperProps:y={},slots:b,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=Mo,transitionDuration:O="auto",TransitionProps:{onEntering:_}={},disableScrollLock:E=!1}=i,k=(0,Kt.c)(i.TransitionProps,Nc),j=(0,Kt.c)(i,Lc),C=null!=(n=null==x?void 0:x.paper)?n:y,P=t.useRef(),R=(0,Co.c)(P,C.ref),T=(0,Oe.c)({},i,{anchorOrigin:c,anchorReference:d,elevation:h,marginThreshold:v,externalPaperSlotProps:C,transformOrigin:w,TransitionComponent:S,transitionDuration:O,TransitionProps:k}),A=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"],paper:["paper"]},Mc,t)})(T),I=t.useCallback((()=>{if("anchorPosition"===d)return u;const e=Vc(l),t=(e&&1===e.nodeType?e:(0,Wl.c)(P.current).body).getBoundingClientRect();return{top:t.top+zc(t,c.vertical),left:t.left+Dc(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),M=t.useCallback((e=>({vertical:zc(e,w.vertical),horizontal:Dc(e,w.horizontal)})),[w.horizontal,w.vertical]),N=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=M(t);if("none"===d)return{top:null,left:null,transformOrigin:Bc(r)};const n=I();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,s=a+t.width,c=(0,oc.c)(Vc(l)),u=c.innerHeight-v,p=c.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,r.vertical+=e}else if(null!==v&&i>u){const e=i-u;o-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(s>p){const e=s-p;a-=e,r.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:Bc(r)}}),[l,d,I,M,v]),[L,F]=t.useState(g),z=t.useCallback((()=>{const e=P.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[N]);t.useEffect((()=>(E&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,E,z]);t.useEffect((()=>{g&&z()})),t.useImperativeHandle(s,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),t.useEffect((()=>{if(!g)return;const e=(0,nc.c)((()=>{z()})),t=(0,oc.c)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=O;"auto"!==O||S.muiSupportAuto||(D=void 0);const B=m||(l?(0,Wl.c)(Vc(l)).body:void 0),V=null!=(o=null==b?void 0:b.root)?o:Wc,W=null!=(a=null==b?void 0:b.paper)?a:qc,q=ci({elementType:W,externalSlotProps:(0,Oe.c)({},C,{style:L?C.style:(0,Oe.c)({},C.style,{opacity:0})}),additionalProps:{elevation:h,ref:R},ownerState:T,className:(0,bn.c)(A.paper,null==C?void 0:C.className)}),U=ci({elementType:V,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:j,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:T,className:(0,bn.c)(A.root,f)}),{slotProps:H}=U,$=(0,Kt.c)(U,Fc);return(0,Jt.jsx)(V,(0,Oe.c)({},$,!so(V)&&{slotProps:H,disableScrollLock:E},{children:(0,Jt.jsx)(S,(0,Oe.c)({appear:!0,in:g,onEntering:(e,t)=>{_&&_(e,t),z()},onExited:()=>{F(!1)},timeout:D},k,{children:(0,Jt.jsx)(W,(0,Oe.c)({},q,{children:p}))}))}))})),Hc=Uc;function $c(e){return(0,kn.cp)("MuiMenu",e)}(0,En.c)("MuiMenu",["root","paper","list"]);const Qc=["onEntering"],Kc=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Gc={vertical:"top",horizontal:"right"},Yc={vertical:"top",horizontal:"left"},Xc=(0,Sn.cp)(Hc,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jc=(0,Sn.cp)(qc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Zc=(0,Sn.cp)(rc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eu=t.forwardRef((function(e,r){var n,o;const a=(0,wn.c)({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu",slots:y={},slotProps:b={}}=a,x=(0,Kt.c)(a.TransitionProps,Qc),w=(0,Kt.c)(a,Kc),S=po(),O="rtl"===S.direction,_=(0,Oe.c)({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:v,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"],paper:["paper"],list:["list"]},$c,t)})(_),k=i&&!c&&p,j=t.useRef(null);let C=-1;t.Children.map(s,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=r))}));const P=null!=(n=y.paper)?n:Jc,R=null!=(o=b.paper)?o:f,T=ci({elementType:y.root,externalSlotProps:b.root,ownerState:_,className:[E.root,l]}),A=ci({elementType:P,externalSlotProps:R,ownerState:_,className:E.paper});return(0,Jt.jsx)(Xc,(0,Oe.c)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?Gc:Yc,slots:{paper:P,root:y.root},slotProps:{root:T,paper:A},open:p,ref:r,transitionDuration:h,TransitionProps:(0,Oe.c)({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,S),v&&v(e,t)}},x),ownerState:_},w,{classes:m,children:(0,Jt.jsx)(Zc,(0,Oe.c)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:j,autoFocus:i&&(-1===C||c),autoFocusItem:k,variant:g},u,{className:(0,bn.c)(E.list,u.className),children:s}))}))})),tu=eu;var ru=r(2976),nu=(0,t.createContext)(void 0),ou=function(e){var r=e.children,n=e.value;return t.createElement(nu.Provider,{value:n},r)};function au(e){return(0,kn.cp)("MuiListItemIcon",e)}const iu=(0,En.c)("MuiListItemIcon",["root","alignItemsFlexStart"]),su=["className"],lu=(0,Sn.cp)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),cu=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiListItemIcon"}),{className:o}=n,a=(0,Kt.c)(n,su),i=t.useContext(ql),s=(0,Oe.c)({},n,{alignItems:i.alignItems}),l=(e=>{const{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,xn.c)(n,au,r)})(s);return(0,Jt.jsx)(lu,(0,Oe.c)({className:(0,bn.c)(l.root,o),ownerState:s,ref:r},a))})),uu=cu;var du=r(6088),pu=r(2280);const fu=["sx"],mu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:pu.c;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function hu(e){const{sx:t}=e,r=(0,Kt.c)(e,fu),{systemProps:n,otherProps:o}=mu(r);let a;return a=Array.isArray(t)?[n,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,du.o)(e)?(0,Oe.c)({},n,e):n}:(0,Oe.c)({},n,t),(0,Oe.c)({},o,{sx:a})}function vu(e){return(0,kn.cp)("MuiTypography",e)}(0,En.c)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yu=(0,Sn.cp)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,Wn.c)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),bu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wu=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiTypography"}),n=(e=>xu[e]||e)(r.color),o=hu((0,Oe.c)({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bu}=o,f=(0,Kt.c)(o,gu),m=(0,Oe.c)({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||bu[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,Wn.c)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,xn.c)(s,vu,i)})(m);return(0,Jt.jsx)(yu,(0,Oe.c)({as:h,ref:t,ownerState:m,className:(0,bn.c)(v.root,i)},f))})),Su=wu;function Ou(e){return(0,kn.cp)("MuiListItemText",e)}const _u=(0,En.c)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Eu=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ku=(0,Sn.cp)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(_u.primary)]:t.primary},{["& .".concat(_u.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),ju=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,p=(0,Kt.c)(n,Eu),{dense:f}=t.useContext(ql);let m=null!=l?l:o,h=u;const v=(0,Oe.c)({},n,{disableTypography:i,inset:s,primary:!!m,secondary:!!h,dense:f}),g=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e,i={root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,xn.c)(i,Ou,t)})(v);return null==m||m.type===Su||i||(m=(0,Jt.jsx)(Su,(0,Oe.c)({variant:f?"body2":"body1",className:g.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:m}))),null==h||h.type===Su||i||(h=(0,Jt.jsx)(Su,(0,Oe.c)({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:h}))),(0,Jt.jsxs)(ku,(0,Oe.c)({className:(0,bn.c)(g.root,a),ownerState:v,ref:r},p,{children:[m,h]}))})),Cu=ju;function Pu(e){return(0,kn.cp)("MuiDivider",e)}const Ru=(0,En.c)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Tu(e){return(0,kn.cp)("MuiMenuItem",e)}const Au=(0,En.c)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Iu=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Mu=(0,Sn.cp)(ws,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Au.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,qn.W4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Au.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,qn.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Au.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,qn.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,qn.W4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(Au.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Au.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(Ru.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(Ru.inset)]:{marginLeft:52},["& .".concat(_u.root)]:{marginTop:0,marginBottom:0},["& .".concat(_u.inset)]:{paddingLeft:36},["& .".concat(iu.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,Oe.c)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(iu.root," svg")]:{fontSize:"1.25rem"}}))})),Nu=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,f=(0,Kt.c)(n,Iu),m=t.useContext(ql),h=t.useMemo((()=>({dense:i||m.dense||!1,disableGutters:l})),[m.dense,i,l]),v=t.useRef(null);(0,cr.c)((()=>{o&&v.current&&v.current.focus()}),[o]);const g=(0,Oe.c)({},n,{dense:h.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},l=(0,xn.c)(s,Tu,i);return(0,Oe.c)({},i,l)})(n),b=(0,Co.c)(v,r);let x;return n.disabled||(x=void 0!==d?d:-1),(0,Jt.jsx)(ql.Provider,{value:h,children:(0,Jt.jsx)(Mu,(0,Oe.c)({ref:b,role:u,tabIndex:x,component:a,focusVisibleClassName:(0,bn.c)(y.focusVisible,c),className:(0,bn.c)(y.root,p)},f,{ownerState:g,classes:y}))})})),Lu=Nu;var Fu,zu=r(3768),Du=function(){return Du=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Du.apply(this,arguments)},Bu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Vu=t.forwardRef((function(e,r){var n=e.className,o=e.redirectTo,a=e.icon,i=Bu(e,["className","redirectTo","icon"]),s=Ir().authenticated,l=fr((function(e){return e.breakpoints.down("sm")})),c=Ps(),u=kr(),d=(0,t.useCallback)((function(){return u(null,o,!1)}),[o,u]);return s?t.createElement(Uu,Du({className:Mn("logout",n),onClick:d,ref:r,component:l?"span":"li"},i),t.createElement(uu,{className:qu.icon},a||t.createElement(zu.c,{fontSize:"small"})),t.createElement(Cu,null,c("ra.auth.logout",{_:"Logout"}))):null}));Vu.propTypes={className:Ln().string,redirectTo:Ln().string,icon:Ln().element};var Wu="RaLogout",qu={icon:"".concat(Wu,"-icon")},Uu=(0,Sn.cp)(Lu,{name:Wu,overridesResolver:function(e,t){return t.root}})(((Fu={})["& .".concat(qu.icon)]={},Fu)),Hu=function(e){var r=(0,t.useState)(null),n=r[0],o=r[1],a=Ps(),i=bl(),s=i.isLoading,l=i.identity,c=Sr(),u=fr((function(e){return e.breakpoints.up("sm")})),d=e.children,p=void 0===d?c?t.createElement(Vu,null):null:d,f=e.className,m=e.label,h=void 0===m?"ra.auth.user_menu":m,v=e.icon,g=void 0===v?Gu:v,y=function(e){return o(e.currentTarget)},b=(0,t.useCallback)((function(){return o(null)}),[]),x=(0,t.useMemo)((function(){return{onClose:b}}),[b]);if(!p)return null;var w=Boolean(n);return t.createElement(Ku,{className:f},u&&!s&&(null===l||void 0===l?void 0:l.fullName)?t.createElement(Tl,{"aria-label":h&&a(h,{_:h}),className:Qu.userButton,color:"inherit",startIcon:l.avatar?t.createElement(Bl,{className:Qu.avatar,src:l.avatar,alt:l.fullName}):g,onClick:y,variant:"text"},l.fullName):t.createElement(zi,{title:h&&a(h,{_:"Profile"})},t.createElement(js,{"aria-label":h&&a(h,{_:"Profile"}),"aria-owns":w?"menu-appbar":null,"aria-haspopup":!0,color:"inherit",onClick:y},!s&&(null===l||void 0===l?void 0:l.avatar)?t.createElement(Bl,{className:Qu.avatar,src:l.avatar,alt:l.fullName}):g)),t.createElement(ou,{value:x},t.createElement(tu,{id:"menu-appbar",disableScrollLock:!0,anchorEl:n,anchorOrigin:Yu,transformOrigin:Xu,open:w,onClose:b},p)))};Hu.propTypes={children:Ln().node,classes:Ln().object,label:Ln().string,icon:Ln().node};var $u="RaUserMenu",Qu={userButton:"".concat($u,"-userButton"),avatar:"".concat($u,"-avatar")},Ku=(0,Sn.cp)("div",{name:$u,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(Qu.userButton)]={textTransform:"none",marginInlineStart:r.spacing(.5)},t["& .".concat(Qu.avatar)]={width:r.spacing(3),height:r.spacing(3)},t})),Gu=t.createElement(ru.c,null),Yu={vertical:"bottom",horizontal:"right"},Xu={vertical:"top",horizontal:"right"};const Ju=["getTrigger","target"];function Zu(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=void 0!==o.pageYOffset?o.pageYOffset:o.scrollTop),!(!r&&void 0!==a&&e.current<a)&&e.current>n}const ed="undefined"!==typeof window?window:null;function td(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getTrigger:r=Zu,target:n=ed}=e,o=(0,Kt.c)(e,Ju),a=t.useRef(),[i,s]=t.useState((()=>r(a,o)));return t.useEffect((()=>{const e=()=>{s(r(a,(0,Oe.c)({target:n},o)))};return e(),n.addEventListener("scroll",e,{passive:!0}),()=>{n.removeEventListener("scroll",e,{passive:!0})}}),[n,r,JSON.stringify(o)]),i}const rd=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nd(e,t,r){var n;const o=function(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=(0,oc.c)(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(i&&"none"!==i&&"string"===typeof i){const e=i.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?"translateX(".concat(o?o.right+s-n.left:a.innerWidth+s-n.left,"px)"):"right"===e?"translateX(-".concat(o?n.right-o.left-s:n.left+n.width-s,"px)"):"up"===e?"translateY(".concat(o?o.bottom+l-n.top:a.innerHeight+l-n.top,"px)"):"translateY(-".concat(o?n.top-o.top+n.height-l:n.top+n.height-l,"px)")}(e,t,"function"===typeof(n=r)?n():n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const od=t.forwardRef((function(e,r){const n=po(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:p,onEnter:f,onEntered:m,onEntering:h,onExit:v,onExited:g,onExiting:y,style:b,timeout:x=a,TransitionComponent:w=Eo}=e,S=(0,Kt.c)(e,rd),O=t.useRef(null),_=(0,Co.c)(l.ref,O,r),E=e=>t=>{e&&(void 0===t?e(O.current):e(O.current,t))},k=E(((e,t)=>{nd(u,e,c),ko(e),f&&f(e,t)})),j=E(((e,t)=>{const r=jo({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,Oe.c)({},r)),e.style.transition=n.transitions.create("transform",(0,Oe.c)({},r)),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)})),C=E(m),P=E(y),R=E((e=>{const t=jo({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),nd(u,e,c),v&&v(e)})),T=E((e=>{e.style.webkitTransition="",e.style.transition="",g&&g(e)})),A=t.useCallback((()=>{O.current&&nd(u,O.current,c)}),[u,c]);return t.useEffect((()=>{if(p||"down"===u||"right"===u)return;const e=(0,nc.c)((()=>{O.current&&nd(u,O.current,c)})),t=(0,oc.c)(O.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,p,c]),t.useEffect((()=>{p||A()}),[p,A]),(0,Jt.jsx)(w,(0,Oe.c)({nodeRef:O,onEnter:k,onEntered:C,onEntering:j,onExit:R,onExited:T,onExiting:P,addEndListener:e=>{i&&i(O.current,e)},appear:s,in:p,timeout:x},S,{children:(e,r)=>t.cloneElement(l,(0,Oe.c)({ref:_,style:(0,Oe.c)({visibility:"exited"!==e||p?void 0:"hidden"},b,l.props.style)},r))}))})),ad=od;var id=function(e){var r=e.children,n=e.className,o=td();return t.createElement(ad,{appear:!1,direction:"down",in:!o,className:n},r)};id.propTypes={children:Ln().node.isRequired,className:Ln().string};var sd=function(){return sd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sd.apply(this,arguments)},ld=function(e){return t.createElement(Su,sd({flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-title"},e))},cd=function(){var e=ro(),r=(0,t.useMemo)((function(){return e.getLocale()}),[e]);return Ct("locale",r)},ud=r(3280),dd=r(6868);const pd=["className","component"];var fd=r(1152);const md=(0,En.c)("MuiBox",["root"]),hd=(0,Qt.c)(),vd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=e,i=(0,ud.cp)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(dd.c);return t.forwardRef((function(e,t){const s=(0,co.c)(n),l=hu(e),{className:c,component:u="div"}=l,d=(0,Kt.c)(l,pd);return(0,Jt.jsx)(i,(0,Oe.c)({as:u,ref:t,className:(0,bn.c)(c,a?a(o):o),theme:r&&s[r]||s},d))}))}({themeId:ar.c,defaultTheme:hd,defaultClassName:md.root,generateClassName:fd.c.generate}),gd=vd;var yd=r(3616),bd=r(5888),xd=function(e){var r=e.icon,n=void 0===r?wd:r,o=e.languages,a=(0,t.useState)(null),i=a[0],s=a[1],l=no({locales:o}),c=cd(),u=c[0],d=c[1],p=function(e){return function(){d(e),s(null)}};return t.createElement(Sd,{component:"span"},t.createElement(Tl,{color:"inherit",variant:"text","aria-controls":"simple-menu","aria-label":"","aria-haspopup":"true",onClick:function(e){s(e.currentTarget)},startIcon:n,endIcon:t.createElement(bd.c,{fontSize:"small"})},function(e){var t=l.find((function(t){return t.locale===e}));return t?t.name:""}(u)),t.createElement(tu,{id:"simple-menu",anchorEl:i,keepMounted:!0,open:Boolean(i),onClose:function(){s(null)}},l.map((function(e){return t.createElement(Lu,{key:e.locale,onClick:p(e.locale),selected:e.locale===u},e.name)}))))},wd=t.createElement(yd.c,null),Sd=(0,Sn.cp)(gd,{name:"RaLocalesMenuButton",overridesResolver:function(e,t){return t.root}})({}),Od=r(9844),_d=r(5392),Ed=function(e){var r=Ps(),n=e.darkTheme,o=e.lightTheme,a=hr(),i=a[0],s=a[1],l="dark"===i||"dark"===(null===i||void 0===i?void 0:i.palette.mode),c=r("ra.action.toggle_theme",{_:"Toggle Theme"});return t.createElement(zi,{title:c,enterDelay:300},t.createElement(js,{color:"inherit",onClick:function(){s(l?o:n)},"aria-label":c},l?t.createElement(_d.c,null):t.createElement(Od.c,null)))},kd=function(e){var r=Ps(),n=mr(e),o=n.darkTheme,a=n.defaultTheme,i=fr("(prefers-color-scheme: dark)",{noSsr:!0}),s=hr(a||(i&&o?"dark":"light")),l=s[0],c=s[1];if(e.darkTheme)return t.createElement(Ed,{darkTheme:e.darkTheme,lightTheme:e.lightTheme});var u=r("ra.action.toggle_theme",{_:"Toggle Theme"});return t.createElement(zi,{title:u,enterDelay:300},t.createElement(js,{color:"inherit",onClick:function(){c("dark"===l?"light":"dark")},"aria-label":u},"dark"===l?t.createElement(_d.c,null):t.createElement(Od.c,null)))},jd=function(){return jd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jd.apply(this,arguments)},Cd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Pd=(0,t.memo)((function(e){var r=e.alwaysOn,n=e.children,o=e.className,a=e.color,i=void 0===a?"secondary":a,s=(e.open,e.title,e.toolbar),l=void 0===s?Rd:s,c=e.userMenu,u=void 0===c?Td:c,d=e.container,p=void 0===d?r?"div":id:d,f=Cd(e,["alwaysOn","children","className","color","open","title","toolbar","userMenu","container"]),m=fr((function(e){return e.breakpoints.down("sm")}));return t.createElement(p,{className:o},t.createElement(Md,jd({className:Id.appBar,color:i},f),t.createElement(Vn,{disableGutters:!0,variant:m?"regular":"dense",className:Id.toolbar},t.createElement(As,{className:Id.menuButton}),0===t.Children.count(n)?t.createElement(ld,{className:Id.title}):n,l,"boolean"===typeof u?!0===u?t.createElement(Hu,null):null:u)))})),Rd=t.createElement((function(){var e=no(),r=mr().darkTheme;return t.createElement(t.Fragment,null,e&&e.length>1?t.createElement(xd,null):null,r&&t.createElement(kd,null),t.createElement(ul,null))}),null);Pd.propTypes={alwaysOn:Ln().bool,children:Ln().node,className:Ln().string,color:Ln().oneOf(["default","inherit","primary","secondary","transparent"]),container:ao,open:Ln().bool,toolbar:Ln().element,userMenu:Ln().oneOfType([Ln().element,Ln().bool])};var Td=t.createElement(Hu,null),Ad="RaAppBar",Id={appBar:"".concat(Ad,"-appBar"),toolbar:"".concat(Ad,"-toolbar"),menuButton:"".concat(Ad,"-menuButton"),menuButtonIconClosed:"".concat(Ad,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Ad,"-menuButtonIconOpen"),title:"".concat(Ad,"-title")},Md=(0,Sn.cp)(to,{name:Ad,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(Id.toolbar)]=((r={padding:"0 ".concat(n.spacing(1))})[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Id.menuButton)]={marginRight:"0.2em"},t["& .".concat(Id.title)]={},t}));function Nd(e){return(0,kn.cp)("MuiDrawer",e)}(0,En.c)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ld=["BackdropProps"],Fd=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],zd=(e,t)=>{const{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},Dd=(0,Sn.cp)(Ic,{name:"MuiDrawer",slot:"Root",overridesResolver:zd})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),Bd=(0,Sn.cp)("div",{shouldForwardProp:Sn.CU,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:zd})({flex:"0 0 auto"}),Vd=(0,Sn.cp)(Gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,Wn.c)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,Wn.c)(r.anchor))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),Wd={left:"right",right:"left",top:"down",bottom:"up"};const qd=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiDrawer"}),o=po(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:s,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:f,open:m=!1,PaperProps:h={},SlideProps:v,TransitionComponent:g=ad,transitionDuration:y=a,variant:b="temporary"}=n,x=(0,Kt.c)(n.ModalProps,Ld),w=(0,Kt.c)(n,Fd),S=t.useRef(!1);t.useEffect((()=>{S.current=!0}),[]);const O=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Wd[t]:t}(o,i),_=i,E=(0,Oe.c)({},n,{anchor:_,elevation:u,open:m,variant:b},w),k=(e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,Wn.c)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,Wn.c)(r))]};return(0,xn.c)(o,Nd,t)})(E),j=(0,Jt.jsx)(Vd,(0,Oe.c)({elevation:"temporary"===b?u:0,square:!0},h,{className:(0,bn.c)(k.paper,h.className),ownerState:E,children:l}));if("permanent"===b)return(0,Jt.jsx)(Bd,(0,Oe.c)({className:(0,bn.c)(k.root,k.docked,c),ownerState:E,ref:r},w,{children:j}));const C=(0,Jt.jsx)(g,(0,Oe.c)({in:m,direction:Wd[O],timeout:y,appear:S.current},v,{children:j}));return"persistent"===b?(0,Jt.jsx)(Bd,(0,Oe.c)({className:(0,bn.c)(k.root,k.docked,c),ownerState:E,ref:r},w,{children:C})):(0,Jt.jsx)(Dd,(0,Oe.c)({BackdropProps:(0,Oe.c)({},s,p,{transitionDuration:y}),className:(0,bn.c)(k.root,k.modal,c),open:m,ownerState:E,onClose:f,hideBackdrop:d,ref:r},w,x,{children:C}))})),Ud=qd;var Hd=function(){return Hd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hd.apply(this,arguments)},$d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Qd=function(e){var r=e.appBarAlwaysOn,n=e.children,o=(e.closedSize,e.size,$d(e,["appBarAlwaysOn","children","closedSize","size"])),a=fr((function(e){return e.breakpoints.down("sm")})),i=Ts(),s=i[0],l=i[1];cd()[0];var c=td(),u=function(){return l(!s)};return a?t.createElement(Yd,Hd({variant:"temporary",open:s,onClose:u,classes:Gd},o),n):t.createElement(Yd,Hd({variant:"permanent",open:s,onClose:u,classes:Gd,className:c&&!r?Gd.appBarCollapsed:""},o),t.createElement("div",{className:Gd.fixed},n))};Qd.propTypes={children:Ln().node.isRequired};var Kd="RaSidebar",Gd={docked:"".concat(Kd,"-docked"),paper:"".concat(Kd,"-paper"),paperAnchorLeft:"".concat(Kd,"-paperAnchorLeft"),paperAnchorRight:"".concat(Kd,"-paperAnchorRight"),paperAnchorTop:"".concat(Kd,"-paperAnchorTop"),paperAnchorBottom:"".concat(Kd,"-paperAnchorBottom"),paperAnchorDockedLeft:"".concat(Kd,"-paperAnchorDockedLeft"),paperAnchorDockedTop:"".concat(Kd,"-paperAnchorDockedTop"),paperAnchorDockedRight:"".concat(Kd,"-paperAnchorDockedRight"),paperAnchorDockedBottom:"".concat(Kd,"-paperAnchorDockedBottom"),modal:"".concat(Kd,"-modal"),fixed:"".concat(Kd,"-fixed"),appBarCollapsed:"".concat(Kd,"-appBarCollapsed")},Yd=(0,Sn.cp)(Ud,{name:Kd,slot:"Root",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(){return!0}})((function(e){var t,r,n,o=e.open,a=e.theme;return(t={height:"calc(100vh - 3em)",marginTop:0,transition:a.transitions.create("margin",{easing:a.transitions.easing.easeOut,duration:a.transitions.duration.enteringScreen})})["&.".concat(Gd.appBarCollapsed)]=((r={marginTop:a.spacing(-6)})[a.breakpoints.down("sm")]={marginTop:a.spacing(-7)},r.transition=a.transitions.create("margin",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),r),t["& .".concat(Gd.docked)]={},t["& .".concat(Gd.paper)]={},t["& .".concat(Gd.paperAnchorLeft)]={},t["& .".concat(Gd.paperAnchorRight)]={},t["& .".concat(Gd.paperAnchorTop)]={},t["& .".concat(Gd.paperAnchorBottom)]={},t["& .".concat(Gd.paperAnchorDockedLeft)]={},t["& .".concat(Gd.paperAnchorDockedTop)]={},t["& .".concat(Gd.paperAnchorDockedRight)]={},t["& .".concat(Gd.paperAnchorDockedBottom)]={},t["& .".concat(Gd.modal)]={},t["& .".concat(Gd.fixed)]={position:"fixed",height:"calc(100vh - 3em)",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},t["& .MuiPaper-root"]=((n={position:"relative",width:o?dt()(a,"sidebar.width",Xd):dt()(a,"sidebar.closedWidth",Jd),transition:a.transitions.create("width",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),backgroundColor:"transparent",borderRight:"none"})[a.breakpoints.only("xs")]={marginTop:0,height:"100vh",position:"inherit",backgroundColor:a.palette.background.default},n[a.breakpoints.up("md")]={border:"none"},n.zIndex="inherit",n),t})),Xd=240,Jd=55,Zd=r(9648);function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ep.apply(this,arguments)}function tp(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const rp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(eB){}new Map;n.startTransition,ho.flushSync,n.useId;const np="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,op=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ap=t.forwardRef((function(e,r){let n,{onClick:o,relative:a,reloadDocument:i,replace:s,state:l,target:c,to:u,preventScrollReset:d,unstable_viewTransition:p}=e,m=tp(e,rp),{basename:v}=t.useContext(Q),g=!1;if("string"===typeof u&&op.test(u)&&(n=u,np))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=A(t.pathname,v);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:g=!0}catch(eB){}let y=function(e,r){let{relative:n}=void 0===r?{}:r;X()||f(!1);let{basename:o,navigator:a}=t.useContext(Q),{hash:i,pathname:s,search:l}=ne(e,{relative:n}),c=s;return"/"!==o&&(c="/"===s?o:F([o,s])),a.createHref({pathname:c,search:l,hash:i})}(u,{relative:a}),b=function(e,r){let{target:n,replace:o,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l}=void 0===r?{}:r,c=ee(),u=J(),d=ne(e,{relative:s});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let r=void 0!==o?o:h(u)===h(d);c(e,{replace:r,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l})}}),[u,c,d,o,a,n,e,i,s,l])}(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:p});return t.createElement("a",ep({},m,{href:n||y,onClick:g||i?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:r,target:c}))}));var ip,sp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ip||(ip={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(sp||(sp={}));var lp=function(){return lp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lp.apply(this,arguments)},cp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},up=(0,t.forwardRef)((function(e,r){var n=e.className,o=e.primaryText,a=e.leftIcon,i=e.onClick,s=(e.sidebarIsOpen,e.tooltipProps),l=e.children,c=cp(e,["className","primaryText","leftIcon","onClick","sidebarIsOpen","tooltipProps","children"]),u=fr((function(e){return e.breakpoints.down("md")})),d=Ps(),p=Or(),m=Ts(),h=m[0],v=m[1],g=(0,t.useCallback)((function(e){u&&v(!1),i&&i(e)}),[v,u,i]),y=("string"===typeof e.to?e.to:e.to.pathname)||"",b=function(e){X()||f(!1);let{pathname:r}=J();return t.useMemo((()=>R(e,r)),[r,e])}({path:y,end:y==="".concat(p,"/")}),x=function(){var e;return t.createElement(fp,lp({className:Mn(n,(e={},e[pp.active]=!!b,e)),component:mp,ref:r,tabIndex:0},c,{onClick:g}),a&&t.createElement(uu,{className:pp.icon},a),l||("string"===typeof o?d(o,{_:o}):o))};return h?x():t.createElement(zi,lp({title:"string"===typeof o?d(o,{_:o}):o,placement:"right"},s),x())}));up.propTypes={className:Ln().string,leftIcon:Ln().element,onClick:Ln().func,primaryText:Ln().node,to:Ln().oneOfType([Ln().string,Ln().object]).isRequired,sidebarIsOpen:Ln().bool};var dp="RaMenuItemLink",pp={active:"".concat(dp,"-active"),icon:"".concat(dp,"-icon")},fp=(0,Sn.cp)(Lu,{name:dp,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={color:r.palette.text.secondary})["&.".concat(pp.active)]={color:r.palette.text.primary},t["& .".concat(pp.icon)]={minWidth:r.spacing(5)},t})),mp=(0,t.forwardRef)((function(e,r){return t.createElement(ap,lp({ref:r},e))})),hp=function(){return hp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hp.apply(this,arguments)},vp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gp=function(e){var r=Or(),n=e.leftIcon,o=void 0===n?t.createElement(Zd.c,null):n,a=e.to,i=void 0===a?"".concat(r,"/"):a,s=e.primaryText,l=void 0===s?"ra.page.dashboard":s,c=vp(e,["leftIcon","to","primaryText"]);return t.createElement(up,hp({leftIcon:o,to:i,primaryText:l},c))};gp.propTypes={leftIcon:Ln().element,locale:Ln().string,onClick:Ln().func,dense:Ln().bool,sidebarIsOpen:Ln().bool};var yp=r(6444),bp=function(){return tn().definitions},xp=r(8648),wp=r.n(xp),Sp=function(){var e=Ps(),t=bp();return function(r,n){void 0===n&&(n=2);var o=t[r];return e("resources.".concat(r,".name"),{smart_count:n,_:o&&o.options&&o.options.label?e(o.options.label,{smart_count:n,_:o.options.label}):wp().humanize(n>1?wp().pluralize(r):wp().singularize(r))})}},Op=function(e){var r=e.name,n=bp(),o=Sp(),a=_r();return n&&n[r]?t.createElement(up,{to:a({resource:r,type:"list"}),state:{_scrollToTop:!0},primaryText:t.createElement(t.Fragment,null,o(r,2)),leftIcon:n[r].icon?(0,t.createElement)(n[r].icon):t.createElement(yp.c,null)}):null},_p=function(){var e=bp();return t.createElement(t.Fragment,null,Object.keys(e).filter((function(t){return e[t].hasList})).map((function(e){return t.createElement(Op,{key:e,name:e})})))},Ep=function(){return Ep=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ep.apply(this,arguments)},kp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jp=function(e){var r,n=e.hasDashboard,o=e.children,a=void 0===o?n?[t.createElement(gp,{key:"default-dashboard-menu-item"}),t.createElement(_p,{key:"default-resource-menu-items"})]:t.createElement(_p,null):o,i=e.className,s=kp(e,["hasDashboard","children","className"]),l=Ts()[0];return t.createElement(Rp,Ep({className:Mn((r={},r[Pp.open]=l,r[Pp.closed]=!l,r),i)},s),a)};jp.propTypes={className:Ln().string,dense:Ln().bool,hasDashboard:Ln().bool},jp.Item=up,jp.DashboardItem=gp,jp.ResourceItem=Op,jp.ResourceItems=_p;var Cp="RaMenu",Pp={open:"".concat(Cp,"-open"),closed:"".concat(Cp,"-closed")},Rp=(0,Sn.cp)(rc,{name:Cp,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"flex-start"})[r.breakpoints.only("xs")]={marginTop:0},t.transition=r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),t["&.".concat(Pp.open)]={width:dt()(r,"sidebar.width",Xd)},t["&.".concat(Pp.closed)]={width:dt()(r,"sidebar.closedWidth",Jd)},t})),Tp=r(1432),Ap=r(9928),Ip=(0,t.createContext)(""),Mp=function(e){var r=e.value,n=void 0===r?"":r,o=e.children;return t.createElement(Ip.Provider,{value:n},o)},Np=function(e,r){var n=(0,t.useContext)(Ip);if(!n)throw new Error("usePreference cannot be used outside of a Configurable component. Did you forget to wrap your component with <Configurable>? If you don't want to use Configurable, you can use the useStore hook instead.");return Ct(n&&e?"".concat(n,".").concat(e):null!==n&&void 0!==n?n:e,r)},Lp=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Fp=r(5080),zp=r(4368),Dp=r(6576);const Bp=["onChange","maxRows","minRows","style","value"];function Vp(e){return parseInt(e,10)||0}const Wp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function qp(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Up=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=e,l=(0,Kt.c)(e,Bp),{current:c}=t.useRef(null!=s),u=t.useRef(null),d=(0,No.c)(r,u),p=t.useRef(null),f=t.useRef(0),[m,h]=t.useState({outerHeightStyle:0}),v=t.useCallback((()=>{const t=u.current,r=(0,sc.c)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=r.boxSizing,s=Vp(r.paddingBottom)+Vp(r.paddingTop),l=Vp(r.borderBottomWidth)+Vp(r.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=c;a&&(f=Math.max(Number(a)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?s+l:0),overflow:Math.abs(f-c)<=1}}),[o,a,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},y=t.useCallback((()=>{const e=v();qp(e)||h((t=>g(t,e)))}),[v]);(0,Lo.c)((()=>{const e=()=>{f.current=0,(()=>{const e=v();qp(e)||mo.flushSync((()=>{h((t=>g(t,e)))}))})()};let t;const r=(0,Dp.c)(e),n=u.current,o=(0,sc.c)(n);let a;return o.addEventListener("resize",r),"undefined"!==typeof ResizeObserver&&(a=new ResizeObserver(e),a.observe(n)),()=>{r.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",r),a&&a.disconnect()}}),[v]),(0,Lo.c)((()=>{y()})),t.useEffect((()=>{f.current=0}),[s]);return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)("textarea",(0,Oe.c)({value:s,onChange:e=>{f.current=0,c||y(),n&&n(e)},ref:d,rows:a,style:(0,Oe.c)({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},i)},l)),(0,Jt.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,Oe.c)({},Wp,i,{paddingTop:0,paddingBottom:0})})]})}));function Hp(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e)),{})}const $p=t.createContext(void 0);function Qp(){return t.useContext($p)}function Kp(e){const{styles:t,defaultTheme:r={}}=e,n="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,Jt.jsx)(Gi,{styles:n})}const Gp=function(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=(0,co.c)(n),a="function"===typeof t?t(r&&o[r]||o):t;return(0,Jt.jsx)(Kp,{styles:a})};const Yp=function(e){return(0,Jt.jsx)(Gp,(0,Oe.c)({},e,{defaultTheme:uo.c,themeId:ar.c}))};function Xp(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Jp(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Xp(e.value)&&""!==e.value||t&&Xp(e.defaultValue)&&""!==e.defaultValue)}function Zp(e){return(0,kn.cp)("MuiInputBase",e)}const ef=(0,En.c)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),tf=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],rf=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,Wn.c)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},nf=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},of=(0,Sn.cp)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rf})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(ef.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,Oe.c)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),af=(0,Sn.cp)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nf})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode,o=(0,Oe.c)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,Oe.c)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(ef.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(ef.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),sf=(0,Jt.jsx)(Yp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lf=t.forwardRef((function(e,r){var n;const o=(0,wn.c)({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:v,inputComponent:g="input",inputProps:y={},inputRef:b,maxRows:x,minRows:w,multiline:S=!1,name:O,onBlur:_,onChange:E,onClick:k,onFocus:j,onKeyDown:C,onKeyUp:P,placeholder:R,readOnly:T,renderSuffix:A,rows:I,slotProps:M={},slots:N={},startAdornment:L,type:F="text",value:z}=o,D=(0,Kt.c)(o,tf),B=null!=y.value?y.value:z,{current:V}=t.useRef(null!=B),W=t.useRef(),q=t.useCallback((e=>{0}),[]),U=(0,Co.c)(W,b,y.ref,q),[H,$]=t.useState(!1),Q=Qp();const K=Hp({props:o,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=Q?Q.focused:H,t.useEffect((()=>{!Q&&p&&H&&($(!1),_&&_())}),[Q,p,H,_]);const G=Q&&Q.onFilled,Y=Q&&Q.onEmpty,X=t.useCallback((e=>{Jp(e)?G&&G():Y&&Y()}),[G,Y]);(0,cr.c)((()=>{V&&X({value:B})}),[B,X,V]);t.useEffect((()=>{X(W.current)}),[]);let J=g,Z=y;S&&"input"===J&&(Z=I?(0,Oe.c)({type:void 0,minRows:I,maxRows:I},Z):(0,Oe.c)({type:void 0,maxRows:x,minRows:w},Z),J=Up);t.useEffect((()=>{Q&&Q.setAdornedStart(Boolean(L))}),[Q,L]);const ee=(0,Oe.c)({},o,{color:K.color||"primary",disabled:K.disabled,endAdornment:m,error:K.error,focused:K.focused,formControl:Q,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:L,type:F}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e,h={root:["root","color".concat((0,Wn.c)(r)),n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&"medium"!==p&&"size".concat((0,Wn.c)(p)),u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,xn.c)(h,Zp,t)})(ee),re=N.root||c.Root||of,ne=M.root||u.root||{},oe=N.input||c.Input||af;return Z=(0,Oe.c)({},Z,null!=(n=M.input)?n:u.input),(0,Jt.jsxs)(t.Fragment,{children:[!f&&sf,(0,Jt.jsxs)(re,(0,Oe.c)({},ne,!so(re)&&{ownerState:(0,Oe.c)({},ee,ne.ownerState)},{ref:r,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),k&&k(e)}},D,{className:(0,bn.c)(te.root,ne.className,l,T&&"MuiInputBase-readOnly"),children:[L,(0,Jt.jsx)($p.Provider,{value:null,children:(0,Jt.jsx)(oe,(0,Oe.c)({ownerState:ee,"aria-invalid":K.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:d,disabled:K.disabled,id:v,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:O,placeholder:R,readOnly:T,required:K.required,rows:I,value:B,onKeyDown:C,onKeyUp:P,type:F},Z,!so(oe)&&{as:J,ownerState:(0,Oe.c)({},ee,Z.ownerState)},{ref:U,className:(0,bn.c)(te.input,Z.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{_&&_(e),y.onBlur&&y.onBlur(e),Q&&Q.onBlur?Q.onBlur(e):$(!1)},onChange:function(e){if(!V){const t=e.target||W.current;if(null==t)throw new Error((0,zp.c)(1));X({value:t.value})}for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];y.onChange&&y.onChange(e,...r),E&&E(e,...r)},onFocus:e=>{K.disabled?e.stopPropagation():(j&&j(e),y.onFocus&&y.onFocus(e),Q&&Q.onFocus?Q.onFocus(e):$(!0))}}))}),m,A?A((0,Oe.c)({},K,{startAdornment:L})):null]}))]})})),cf=lf;function uf(e){return(0,kn.cp)("MuiInput",e)}const df=(0,Oe.c)({},ef,(0,En.c)("MuiInput",["root","underline","input"])),pf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ff=(0,Sn.cp)(of,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...rf(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,Oe.c)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(df.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(df.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(df.disabled,", .").concat(df.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(df.disabled,":before")]:{borderBottomStyle:"dotted"}})})),mf=(0,Sn.cp)(af,{name:"MuiInput",slot:"Input",overridesResolver:nf})({}),hf=t.forwardRef((function(e,t){var r,n,o,a;const i=(0,wn.c)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=i,v=(0,Kt.c)(i,pf),g=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,xn.c)(n,uf,t);return(0,Oe.c)({},t,o)})(i),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:c)?(0,du.c)(null!=f?f:c,y):y,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:ff,w=null!=(o=null!=(a=m.input)?a:l.Input)?o:mf;return(0,Jt.jsx)(cf,(0,Oe.c)({slots:{root:x,input:w},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:h},v,{classes:g}))}));hf.muiName="Input";const vf=hf;function gf(e){return(0,kn.cp)("MuiFilledInput",e)}const yf=(0,Oe.c)({},ef,(0,En.c)("MuiFilledInput",["root","underline","input"])),bf=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],xf=(0,Sn.cp)(of,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...rf(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;var n;const o="light"===t.palette.mode,a=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Oe.c)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i}},["&.".concat(yf.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i},["&.".concat(yf.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(n=(t.vars||t).palette[r.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(yf.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(yf.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(yf.disabled,", .").concat(yf.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(yf.disabled,":before")]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&(0,Oe.c)({padding:"25px 12px 8px"},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9}))})),wf=(0,Sn.cp)(af,{name:"MuiFilledInput",slot:"Input",overridesResolver:nf})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Sf=t.forwardRef((function(e,t){var r,n,o,a;const i=(0,wn.c)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=i,h=(0,Kt.c)(i,bf),v=(0,Oe.c)({},i,{fullWidth:c,inputComponent:u,multiline:d,type:m}),g=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,xn.c)(n,gf,t);return(0,Oe.c)({},t,o)})(i),y={root:{ownerState:v},input:{ownerState:v}},b=(null!=p?p:l)?(0,du.c)(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:xf,w=null!=(o=null!=(a=f.input)?a:s.Input)?o:wf;return(0,Jt.jsx)(cf,(0,Oe.c)({slots:{root:x,input:w},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:m},h,{classes:g}))}));Sf.muiName="Input";const Of=Sf;var _f;const Ef=["children","classes","className","label","notched"],kf=(0,Sn.cp)("fieldset",{shouldForwardProp:Sn.CU})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),jf=(0,Sn.cp)("legend",{shouldForwardProp:Sn.CU})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,Oe.c)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));function Cf(e){return(0,kn.cp)("MuiOutlinedInput",e)}const Pf=(0,Oe.c)({},ef,(0,En.c)("MuiOutlinedInput",["root","notchedOutline","input"])),Rf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Tf=(0,Sn.cp)(of,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:rf})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Oe.c)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(Pf.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(Pf.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(Pf.focused," .").concat(Pf.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(Pf.error," .").concat(Pf.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(Pf.disabled," .").concat(Pf.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,Oe.c)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),Af=(0,Sn.cp)((function(e){const{className:t,label:r,notched:n}=e,o=(0,Kt.c)(e,Ef),a=null!=r&&""!==r,i=(0,Oe.c)({},e,{notched:n,withLabel:a});return(0,Jt.jsx)(kf,(0,Oe.c)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,Jt.jsx)(jf,{ownerState:i,children:a?(0,Jt.jsx)("span",{children:r}):_f||(_f=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),If=(0,Sn.cp)(af,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nf})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),Mf=t.forwardRef((function(e,r){var n,o,a,i,s;const l=(0,wn.c)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:v="text"}=l,g=(0,Kt.c)(l,Rf),y=(e=>{const{classes:t}=e,r=(0,xn.c)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Cf,t);return(0,Oe.c)({},t,r)})(l),b=Qp(),x=Hp({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,Oe.c)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:v}),S=null!=(n=null!=(o=h.root)?o:c.Root)?n:Tf,O=null!=(a=null!=(i=h.input)?i:c.Input)?a:If;return(0,Jt.jsx)(cf,(0,Oe.c)({slots:{root:S,input:O},renderSuffix:e=>(0,Jt.jsx)(Af,{ownerState:w,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=(0,Jt.jsxs)(t.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:f,ref:r,type:v},g,{classes:(0,Oe.c)({},y,{notchedOutline:null})}))}));Mf.muiName="Input";const Nf=Mf;function Lf(e){return(0,kn.cp)("MuiFormLabel",e)}const Ff=(0,En.c)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),zf=["children","className","color","component","disabled","error","filled","focused","required"],Df=(0,Sn.cp)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Oe.c)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(Ff.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(Ff.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(Ff.error)]:{color:(t.vars||t).palette.error.main}})})),Bf=(0,Sn.cp)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(Ff.error)]:{color:(t.vars||t).palette.error.main}}})),Vf=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=(0,Kt.c)(r,zf),s=Hp({props:r,muiFormControl:Qp(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Oe.c)({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,l={root:["root","color".concat((0,Wn.c)(r)),o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,xn.c)(l,Lf,t)})(l);return(0,Jt.jsxs)(Df,(0,Oe.c)({as:a,ownerState:l,className:(0,bn.c)(c.root,o),ref:t},i,{children:[n,s.required&&(0,Jt.jsxs)(Bf,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),Wf=Vf;function qf(e){return(0,kn.cp)("MuiInputLabel",e)}(0,En.c)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Uf=["disableAnimation","margin","shrink","variant","className"],Hf=(0,Sn.cp)(Wf,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(Ff.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,Oe.c)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,Oe.c)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,Oe.c)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),$f=t.forwardRef((function(e,t){const r=(0,wn.c)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=(0,Kt.c)(r,Uf),s=Qp();let l=o;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=Hp({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,Oe.c)({},r,{disableAnimation:n,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,Wn.c)(n)),i],asterisk:[s&&"asterisk"]},c=(0,xn.c)(l,qf,t);return(0,Oe.c)({},t,c)})(u);return(0,Jt.jsx)(Hf,(0,Oe.c)({"data-shrink":l,ownerState:u,ref:t,className:(0,bn.c)(d.root,a)},i,{classes:d}))})),Qf=$f;var Kf=r(8276);function Gf(e){return(0,kn.cp)("MuiFormControl",e)}(0,En.c)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Yf=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Xf=(0,Sn.cp)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Oe.c)({},t.root,t["margin".concat((0,Wn.c)(r.margin))],r.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Jf=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:m=!1,size:h="medium",variant:v="outlined"}=n,g=(0,Kt.c)(n,Yf),y=(0,Oe.c)({},n,{color:i,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:f,required:m,size:h,variant:v}),b=(e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin".concat((0,Wn.c)(r)),n&&"fullWidth"]};return(0,xn.c)(o,Gf,t)})(y),[x,w]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{if(!(0,Kf.c)(t,["Input","Select"]))return;const r=(0,Kf.c)(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[S,O]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{(0,Kf.c)(t,["Input","Select"])&&(Jp(t.props,!0)||Jp(t.props.inputProps,!0))&&(e=!0)})),e})),[_,E]=t.useState(!1);l&&_&&E(!1);const k=void 0===u||l?_:u;let j;const C=t.useMemo((()=>({adornedStart:x,setAdornedStart:w,color:i,disabled:l,error:c,filled:S,focused:k,fullWidth:d,hiddenLabel:p,size:h,onBlur:()=>{E(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{E(!0)},registerEffect:j,required:m,variant:v})),[x,i,l,c,S,k,d,p,j,m,h,v]);return(0,Jt.jsx)($p.Provider,{value:C,children:(0,Jt.jsx)(Xf,(0,Oe.c)({as:s,ownerState:y,className:(0,bn.c)(b.root,a),ref:r},g,{children:o}))})})),Zf=Jf;function em(e){return(0,kn.cp)("MuiFormHelperText",e)}const tm=(0,En.c)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rm;const nm=["children","className","component","disabled","error","filled","focused","margin","required","variant"],om=(0,Sn.cp)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,Wn.c)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(tm.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(tm.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),am=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=(0,Kt.c)(r,nm),s=Hp({props:r,muiFormControl:Qp(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Oe.c)({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",n&&"size".concat((0,Wn.c)(n)),r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,xn.c)(c,em,t)})(l);return(0,Jt.jsx)(om,(0,Oe.c)({as:a,ownerState:l,className:(0,bn.c)(c.root,o),ref:t},i,{children:" "===n?rm||(rm=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))})),im=am;function sm(e){return(0,kn.cp)("MuiNativeSelect",e)}const lm=(0,En.c)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cm=["className","disabled","error","IconComponent","inputRef","variant"],um=e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Oe.c)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(lm.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},dm=(0,Sn.cp)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sn.CU,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(lm.multiple)]:t.multiple}]}})(um),pm=e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(lm.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},fm=(0,Sn.cp)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,Wn.c)(r.variant))],r.open&&t.iconOpen]}})(pm),mm=t.forwardRef((function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=e,c=(0,Kt.c)(e,cm),u=(0,Oe.c)({},e,{disabled:o,variant:l,error:a}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,Wn.c)(r)),a&&"iconOpen",n&&"disabled"]};return(0,xn.c)(s,sm,t)})(u);return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)(dm,(0,Oe.c)({ownerState:u,className:(0,bn.c)(d.select,n),disabled:o,ref:s||r},c)),e.multiple?null:(0,Jt.jsx)(fm,{as:i,ownerState:u,className:d.icon})]})})),hm=mm;function vm(e){return(0,kn.cp)("MuiSelect",e)}const gm=(0,En.c)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ym;const bm=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xm=(0,Sn.cp)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["&.".concat(gm.select)]:t.select},{["&.".concat(gm.select)]:t[r.variant]},{["&.".concat(gm.error)]:t.error},{["&.".concat(gm.multiple)]:t.multiple}]}})(um,{["&.".concat(gm.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wm=(0,Sn.cp)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,Wn.c)(r.variant))],r.open&&t.iconOpen]}})(pm),Sm=(0,Sn.cp)("input",{shouldForwardProp:e=>(0,Sn.Cq)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Om(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function _m(e){return null==e||"string"===typeof e&&!e.trim()}const Em=t.forwardRef((function(e,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:v,labelId:g,MenuProps:y={},multiple:b,name:x,onBlur:w,onChange:S,onClose:O,onFocus:_,onOpen:E,open:k,readOnly:j,renderValue:C,SelectDisplayProps:P={},tabIndex:R,value:T,variant:A="standard"}=e,I=(0,Kt.c)(e,bm),[M,N]=(0,ki.c)({controlled:T,default:d,name:"Select"}),[L,F]=(0,ki.c)({controlled:k,default:u,name:"Select"}),z=t.useRef(null),D=t.useRef(null),[B,V]=t.useState(null),{current:W}=t.useRef(null!=k),[q,U]=t.useState(),H=(0,Co.c)(r,v),$=t.useCallback((e=>{D.current=e,e&&V(e)}),[]),Q=null==B?void 0:B.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{D.current.focus()},node:z.current,value:M})),[M]),t.useEffect((()=>{u&&L&&B&&!W&&(U(s?null:Q.clientWidth),D.current.focus())}),[B,s]),t.useEffect((()=>{i&&D.current.focus()}),[i]),t.useEffect((()=>{if(!g)return;const e=(0,Wl.c)(D.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const K=(e,t)=>{e?E&&E(t):O&&O(t),W||(U(s?null:Q.clientWidth),F(e))},G=t.Children.toArray(l),Y=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(M)?M.slice():[];const t=M.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),M!==r&&(N(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),S(o,e)}b||K(!1,t)}},X=null!==B&&L;let J,Z;delete I["aria-invalid"];const ee=[];let te=!1,re=!1;(Jp({value:M})||f)&&(C?J=C(M):te=!0);const ne=G.map((e=>{if(!t.isValidElement(e))return null;let r;if(b){if(!Array.isArray(M))throw new Error((0,zp.c)(2));r=M.some((t=>Om(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=Om(M,e.props.value),r&&te&&(Z=e.props.children);return r&&(re=!0),t.cloneElement(e,{"aria-selected":r?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:r,value:void 0,"data-value":e.props.value})}));te&&(J=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let oe,ae=q;!s&&W&&B&&(ae=Q.clientWidth),oe="undefined"!==typeof R?R:p?null:0;const ie=P.id||(x?"mui-component-select-".concat(x):void 0),se=(0,Oe.c)({},e,{variant:A,value:M,open:X,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,Wn.c)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,xn.c)(s,vm,t)})(se),ce=(0,Oe.c)({},y.PaperProps,null==(n=y.slotProps)?void 0:n.paper),ue=(0,Fp.c)();return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)(xm,(0,Oe.c)({ref:$,tabIndex:oe,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!j){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:p||j?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),K(!0,e))},onBlur:e=>{!X&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:x}}),w(e))},onFocus:_},P,{ownerState:se,className:(0,bn.c)(P.className,le.select,c),id:ie,children:_m(J)?ym||(ym=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"})):J})),(0,Jt.jsx)(Sm,(0,Oe.c)({"aria-invalid":m,value:Array.isArray(M)?M.join(","):M,name:x,ref:z,"aria-hidden":!0,onChange:e=>{const t=G.find((t=>t.props.value===e.target.value));void 0!==t&&(N(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:i,ownerState:se},I)),(0,Jt.jsx)(wm,{as:h,className:le.icon,ownerState:se}),(0,Jt.jsx)(tu,(0,Oe.c)({id:"menu-".concat(x||""),anchorEl:Q,open:X,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,Oe.c)({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:(0,Oe.c)({},y.slotProps,{paper:(0,Oe.c)({},ce,{style:(0,Oe.c)({minWidth:ae},null!=ce?ce.style:null)})}),children:ne}))]})})),km=Em,jm=(0,Al.c)((0,Jt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cm=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Pm=["root"],Rm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Sn.CU)(e)&&"variant"!==e,slot:"Root"},Tm=(0,Sn.cp)(vf,Rm)(""),Am=(0,Sn.cp)(Nf,Rm)(""),Im=(0,Sn.cp)(Of,Rm)(""),Mm=t.forwardRef((function(e,r){const n=(0,wn.c)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=jm,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:x,open:w,renderValue:S,SelectDisplayProps:O,variant:_="outlined"}=n,E=(0,Kt.c)(n,Cm),k=y?hm:km,j=Hp({props:n,muiFormControl:Qp(),states:["variant","error"]}),C=j.variant||_,P=(0,Oe.c)({},n,{variant:C,classes:i}),R=(e=>{const{classes:t}=e;return t})(P),T=(0,Kt.c)(R,Pm),A=p||{standard:(0,Jt.jsx)(Tm,{ownerState:P}),outlined:(0,Jt.jsx)(Am,{label:m,ownerState:P}),filled:(0,Jt.jsx)(Im,{ownerState:P})}[C],I=(0,Co.c)(r,A.ref);return(0,Jt.jsx)(t.Fragment,{children:t.cloneElement(A,(0,Oe.c)({inputComponent:k,inputProps:(0,Oe.c)({children:a,error:j.error,IconComponent:u,variant:C,type:void 0,multiple:g},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:v,onClose:b,onOpen:x,open:w,renderValue:S,SelectDisplayProps:(0,Oe.c)({id:d},O)},f,{classes:f?(0,du.c)(T,f.classes):T},p?p.props.inputProps:{})},(g&&y||c)&&"outlined"===C?{notched:!0}:{},{ref:I,className:(0,bn.c)(A.props.className,s,R.root)},!p&&{variant:C},E))})}));Mm.muiName="Select";const Nm=Mm;function Lm(e){return(0,kn.cp)("MuiTextField",e)}(0,En.c)("MuiTextField",["root"]);const Fm=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],zm={standard:vf,filled:Of,outlined:Nf},Dm=(0,Sn.cp)(Zf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bm=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:v,InputProps:g,inputRef:y,label:b,maxRows:x,minRows:w,multiline:S=!1,name:O,onBlur:_,onChange:E,onFocus:k,placeholder:j,required:C=!1,rows:P,select:R=!1,SelectProps:T,type:A,value:I,variant:M="outlined"}=r,N=(0,Kt.c)(r,Fm),L=(0,Oe.c)({},r,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:S,required:C,select:R,variant:M}),F=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},Lm,t)})(L);const z={};"outlined"===M&&(h&&"undefined"!==typeof h.shrink&&(z.notched=h.shrink),z.label=b),R&&(T&&T.native||(z.id=void 0),z["aria-describedby"]=void 0);const D=(0,Fp.c)(m),B=f&&D?"".concat(D,"-helper-text"):void 0,V=b&&D?"".concat(D,"-label"):void 0,W=zm[M],q=(0,Jt.jsx)(W,(0,Oe.c)({"aria-describedby":B,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:p,multiline:S,name:O,rows:P,maxRows:x,minRows:w,type:A,value:I,id:D,inputRef:y,onBlur:_,onChange:E,onFocus:k,placeholder:j,inputProps:v},z,g));return(0,Jt.jsxs)(Dm,(0,Oe.c)({className:(0,bn.c)(F.root,i),disabled:c,error:u,fullWidth:p,ref:t,required:C,color:s,variant:M,ownerState:L},N,{children:[null!=b&&""!==b&&(0,Jt.jsx)(Qf,(0,Oe.c)({htmlFor:D,id:V},h,{children:b})),R?(0,Jt.jsx)(Nm,(0,Oe.c)({"aria-describedby":B,id:D,labelId:V,value:I,input:q},T,{children:a})):q,f&&(0,Jt.jsx)(im,(0,Oe.c)({id:B},d,{children:f}))]}))})),Vm=Bm;var Wm=function(){return(0,t.useContext)(gt)},qm=r(3864),Um=function(e){var r=e.children,n=e.editor,o=e.preferenceKey,a=e.openButtonLabel,i=void 0===a?"ra.configurable.customize":a,s=e.sx,l="preferences.".concat(o),c=Wm(),u=!!c,d=Ps(),p=c||{},f=p.isEnabled,m=p.setEditor,h=p.preferenceKey,v=p.setPreferenceKey,g=l===h,y=(0,t.useRef)(g),b=(0,t.useRef)(null),x=(0,t.useState)(!1),w=x[0],S=x[1];if((0,t.useEffect)((function(){y.current=g}),[g]),(0,t.useEffect)((function(){return function(){y.current&&(v&&v(null),m&&m(null))}}),[m,v]),!u)return r;var O=function(){S(!0)},_=function(){S(!1)};return t.createElement(Mp,{value:l},t.createElement(Qm,{className:Mn($m.root,f&&$m.editMode,g&&$m.editorActive),sx:s,ref:b,onMouseEnter:f?O:void 0,onMouseLeave:f?_:void 0},r),t.createElement(Hc,{open:f&&(w||g),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:_,PaperProps:{elevation:1,onMouseEnter:O,onMouseLeave:_,title:d(i),onClick:function(){m((0,t.cloneElement)(n,{preferenceKey:l,key:l})),v(l)}},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},t.createElement(qm.c,{fontSize:"12px"})))},Hm="RaConfigurable",$m={root:"".concat(Hm,"-root"),editMode:"".concat(Hm,"-editMode"),editorActive:"".concat(Hm,"-editorActive")},Qm=(0,Sn.cp)("span",{name:Hm,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative",display:"inline-block"})["&.".concat($m.editMode)]={transition:r.transitions.create("outline"),outline:"".concat((0,qn.W4)(r.palette.warning.main,.3)," solid 2px")},t["&.".concat($m.editMode,":hover ")]={outline:"".concat((0,qn.W4)(r.palette.warning.main,.5)," solid 2px")},t["&.".concat($m.editMode,".").concat($m.editorActive," , &.").concat($m.editMode,".").concat($m.editorActive,":hover ")]={outline:"".concat(r.palette.warning.main," solid 2px")},t})),Km=(0,t.createContext)(void 0);Km.displayName="RecordContext";var Gm=function(e){var r=e.children,n=e.value;return t.createElement(Km.Provider,{value:n},r)},Ym=function(e){var r=(0,t.useContext)(Km);return e&&e.record||r},Xm=function(){return Xm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xm.apply(this,arguments)},Jm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Zm=function(e){var r=e.title,n=e.defaultTitle,o=e.className,a=Jm(e,["title","defaultTitle","className"]),i=Np()[0],s=Ps(),l=Ym();return i?t.createElement("span",Xm({className:o},a),s(i,Xm(Xm({},l),{_:i}))):t.createElement("span",{className:o},r?"string"===typeof r?t.createElement("span",Xm({},a),s(r,{_:r})):r:t.createElement("span",Xm({},a),n))},eh=function(){return eh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eh.apply(this,arguments)},th=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},rh=function(){var e=function(e,r){var n=Np(e,r),o=n[0],a=n[1],i=(0,t.useState)(o),s=i[0],l=i[1];return(0,t.useEffect)((function(){l(o||r)}),[o,r]),{value:s,onChange:function(e){l(""===e.target.value?r:e.target.value)},onBlur:function(){a(s)},onKeyDown:function(e){var t;if("Enter"===e.key){a(s);var r=e.target.form;if(r){var n=Lp([],r,!0).indexOf(e.target);null===(t=r.elements[n+1])||void 0===t||t.focus()}e.preventDefault()}}}}();return t.createElement("form",null,t.createElement(Vm,eh({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},nh=function(e){var r=e.preferenceKey,n=th(e,["preferenceKey"]),o=J().pathname;return t.createElement(Um,{editor:t.createElement(rh,null),preferenceKey:r||"".concat(o,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},t.createElement(Zm,eh({},n)))},oh=function(){return oh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oh.apply(this,arguments)},ah=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ih=function(e){var r=e.defaultTitle,n=e.title,o=e.preferenceKey,a=ah(e,["defaultTitle","title","preferenceKey"]),i=(0,t.useState)((function(){return"undefined"!==typeof document?document.getElementById("react-admin-title"):null})),s=i[0],l=i[1];return(0,t.useEffect)((function(){l((function(e){var t="undefined"!==typeof document&&document.body.contains(e);return e&&t?e:"undefined"!==typeof document?document.getElementById("react-admin-title"):null}))}),[]),s?(Rr(),(0,mo.createPortal)(t.createElement(nh,oh({title:n,defaultTitle:r,preferenceKey:o},a)),s)):null},sh=Ln().oneOfType([Ln().string,Ln().element]);ih.propTypes={defaultTitle:Ln().string,className:Ln().string,record:Ln().any,title:sh};var lh=function(){return lh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lh.apply(this,arguments)},ch=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uh=function(e){var r=e.error,n=e.errorComponent,o=e.errorInfo,a=e.resetErrorBoundary,i=e.className,s=e.title,l=ch(e,["error","errorComponent","errorInfo","resetErrorBoundary","className","title"]),c=Ps();return function(e){var r=J().pathname,n=(0,t.useRef)(r);(0,t.useEffect)((function(){r!==n.current&&e()}),[r,e])}(a),n?t.createElement(n,{error:r,errorInfo:o,title:s}):t.createElement(t.Fragment,null,s&&t.createElement(ih,{title:s}),t.createElement(fh,lh({className:i},l),t.createElement("h1",{className:ph.title,role:"alert"},t.createElement(Tp.c,{className:ph.icon}),c("ra.page.error")),t.createElement("div",null,c("ra.message.error")),!1,t.createElement("div",{className:ph.toolbar},t.createElement(Tl,{variant:"contained",startIcon:t.createElement(Ap.c,null),onClick:mh},c("ra.action.back")))))};uh.propTypes={className:Ln().string,error:Ln().object.isRequired,errorInfo:Ln().object,title:sh};var dh="RaError",ph={container:"".concat(dh,"-container"),title:"".concat(dh,"-title"),icon:"".concat(dh,"-icon"),panel:"".concat(dh,"-panel"),panelSumary:"".concat(dh,"-panelSumary"),panelDetails:"".concat(dh,"-panelDetails"),toolbar:"".concat(dh,"-toolbar"),advice:"".concat(dh,"-advice")},fh=(0,Sn.cp)("div",{name:dh,overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"})[e.theme.breakpoints.down("md")]={padding:"1em"},t.fontFamily="Roboto, sans-serif",t.opacity=.5,t["& .".concat(ph.title)]={display:"flex",alignItems:"center"},t["& .".concat(ph.icon)]={width:"2em",height:"2em",marginRight:"0.5em"},t["& .".concat(ph.panel)]={marginTop:"1em",maxWidth:"60em"},t["& .".concat(ph.panelSumary)]={userSelect:"all"},t["& .".concat(ph.panelDetails)]={whiteSpace:"pre-wrap"},t["& .".concat(ph.toolbar)]={marginTop:"2em"},t["& .".concat(ph.advice)]={marginTop:"2em"},t}));function mh(){window.history.go(-1)}var hh=function(){return hh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hh.apply(this,arguments)},vh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gh=function(e){var r=e.alignIcon,n=void 0===r?"left":r,o=e.children,a=e.className,i=e.disabled,s=e.label,l=e.color,c=void 0===l?"primary":l,u=e.size,d=void 0===u?"small":u,p=e.to,f=vh(e,["alignIcon","children","className","disabled","label","color","size","to"]),m=Ps(),h=s?m(s,{_:s}):void 0,v=bh(p);return fr((function(e){return e.breakpoints.down("sm")}))?s&&!i?t.createElement(zi,{title:h},t.createElement(js,hh({"aria-label":h,className:a,color:c,size:"large"},v,f),o)):t.createElement(js,hh({className:a,color:c,disabled:i,size:"large"},v,f),o):t.createElement(yh,hh({className:a,color:c,size:d,"aria-label":h,disabled:i,startIcon:"left"===n&&o?o:void 0,endIcon:"right"===n&&o?o:void 0},v,f),h)};gh.propTypes={alignIcon:Ln().oneOf(["left","right"]),children:Ln().element,className:Ln().string,color:Ln().oneOfType([Ln().oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),Ln().string]),disabled:Ln().bool,label:Ln().string,size:Ln().oneOf(["small","medium","large"])};var yh=(0,Sn.cp)(Tl,{name:"RaButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),bh=function(e){if(void 0!=e){if("string"===typeof e)return{to:e};var t=e.redirect,r=e.replace,n=e.state;return{to:vh(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},xh=function(){return t.createElement(wh,{onClick:Sh,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},wh=(0,Sn.cp)(gh,{name:"RaSkipNavigationButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}})),Sh=function(){if("undefined"!==typeof document){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Oh=r(8155),_h=r(8404),Eh=function(e,r){var n=Wm().setTitle;(0,t.useEffect)((function(){n(e,r)}),[e,JSON.stringify(r),n])},kh=function(){var e=Ps();return Eh("ra.configurable.inspector.title",{_:"Inspector"}),t.createElement(Su,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},jh=function(){var e=Wm(),r=e.isEnabled,n=e.disable,o=e.title,a=e.titleOptions,i=e.editor,s=e.preferenceKey,l=(0,t.useRef)(!1),c=function(e){var r=jt().removeItems;return(0,t.useCallback)((function(t){if("undefined"===typeof t&&"undefined"===typeof e)throw new Error("You must provide a key to remove an item from the store");return r(null!==t&&void 0!==t?t:e)}),[r,e])}(s),u=po(),d=Ps(),p=(0,t.useState)(0),f=p[0],m=p[1],h=Ct("ra.inspector.position",{x:(null===document||void 0===document?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8,y:8}),v=h[0],g=h[1],y=(0,t.useState)(),b=y[0],x=y[1];(0,t.useEffect)((function(){if(r){var e=function(e){e.dataTransfer.types.includes("inspector")&&e.preventDefault()};return null===document||void 0===document||document.addEventListener("dragover",e),function(){null===document||void 0===document||document.removeEventListener("dragover",e)}}}),[r]),(0,t.useEffect)((function(){if(r){var e=function(){null===window||void 0===window||window.requestAnimationFrame((function(){g((function(e){return{x:Math.min(e.x,(null===document||void 0===document?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8),y:Math.min(e.y,(null===window||void 0===window?void 0:window.innerHeight)-50)}}))}))};return e(),null===window||void 0===window||window.addEventListener("resize",e),function(){null===window||void 0===window||window.removeEventListener("resize",e)}}}),[r,g,u.breakpoints.values.sm]);return r?t.createElement(Rh,{className:Ph.modal,elevation:3,draggable:!0,onDragStart:function(e){"inspector-dialog-title"===(null===document||void 0===document?void 0:document.elementFromPoint(e.clientX,e.clientY)).id&&(l.current=!0,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("inspector",""),setTimeout((function(){e.target.classList.add("hide")}),0),x({x:e.clientX-v.x,y:e.clientY-v.y}))},onDragEnd:function(e){l.current&&(g({x:e.clientX-b.x,y:e.clientY-b.y}),e.target.classList.remove("hide"),l.current=!1)},sx:{left:v.x,top:v.y}},t.createElement("div",{className:Ph.title},t.createElement(Su,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},o&&d(o,a)),t.createElement("span",{id:"inspector-toolbar"}),s&&t.createElement(js,{"aria-label":d("ra.action.remove"),onClick:function(){c(),m((function(e){return e+1}))},size:"small"},t.createElement(_h.c,{fontSize:"inherit"})),t.createElement(js,{"aria-label":d("ra.action.close"),onClick:n,size:"small",sx:{mr:1}},t.createElement(Oh.c,{fontSize:"inherit"}))),t.createElement("div",{className:Ph.content,key:f},t.createElement(Mp,{value:s},i||t.createElement(kh,null)))):null},Ch="RaInspector",Ph={modal:"".concat(Ch,"-modal"),title:"".concat(Ch,"-title"),content:"".concat(Ch,"-content")},Rh=(0,Sn.cp)(Gn,{name:Ch,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}})["& .".concat(Ph.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Ph.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t}));jh.displayName="Inspector";var Th=function(){return Th=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Th.apply(this,arguments)},Ah=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Ih=function(e){var r=e.className,n=e.loadingPrimary,o=void 0===n?"ra.page.loading":n,a=e.loadingSecondary,i=void 0===a?"ra.message.loading":a,s=Ah(e,["className","loadingPrimary","loadingSecondary"]),l=en(1e3),c=Ps();return l?t.createElement(Lh,Th({className:r},s),t.createElement("div",{className:Nh.message},t.createElement(Zs,{className:Nh.icon}),t.createElement(Su,{variant:"h5",mt:3,color:"text.secondary"},c(o,{_:o})),t.createElement(Su,{variant:"body2"},c(i,{_:i})))):null};Ih.propTypes={className:Ln().string,loadingPrimary:Ln().string,loadingSecondary:Ln().string};var Mh="RaLoading",Nh={root:"".concat(Mh,"-root"),icon:"".concat(Mh,"-icon"),message:"".concat(Mh,"-message")},Lh=(0,Sn.cp)("div",{name:Mh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"})["& .".concat(Nh.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:r.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(Nh.icon)]={width:"9em",height:"9em"},t})),Fh=function(){return Fh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fh.apply(this,arguments)},zh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Dh=function(e){var r=e.appBar,n=void 0===r?Pd:r,o=e.appBarAlwaysOn,a=e.children,i=e.className,s=e.dashboard,l=e.error,c=e.menu,u=void 0===c?jp:c,d=e.sidebar,p=void 0===d?Qd:d,f=e.title,m=zh(e,["appBar","appBarAlwaysOn","children","className","dashboard","error","menu","sidebar","title"]),h=Ts()[0],v=(0,t.useState)(null),g=v[0],y=v[1];return t.createElement(Wh,Fh({className:Mn("layout",i)},m),t.createElement(xh,null),t.createElement("div",{className:Vh.appFrame},t.createElement(n,{open:h,title:f,alwaysOn:o}),t.createElement("main",{className:Vh.contentWithSidebar},t.createElement(p,{appBarAlwaysOn:o},t.createElement(u,{hasDashboard:!!s})),t.createElement("div",{id:"main-content",className:Vh.content},t.createElement(An.ErrorBoundary,{onError:function(e,t){y(t)},fallbackRender:function(e){var r=e.error,n=e.resetErrorBoundary;return t.createElement(uh,{error:r,errorComponent:l,errorInfo:g,resetErrorBoundary:n,title:f})}},t.createElement(t.Suspense,{fallback:t.createElement(Ih,null)},a)))),t.createElement(jh,null)))},Bh="RaLayout",Vh={appFrame:"".concat(Bh,"-appFrame"),contentWithSidebar:"".concat(Bh,"-contentWithSidebar"),content:"".concat(Bh,"-content")},Wh=(0,Sn.cp)("div",{name:Bh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n,o=e.theme;return(t={display:"flex",flexDirection:"column",zIndex:1,minHeight:"100vh",backgroundColor:o.palette.background.default,position:"relative",minWidth:"fit-content",width:"100%",color:o.palette.getContrastText(o.palette.background.default)})["& .".concat(Vh.appFrame)]=((r={display:"flex",flexDirection:"column",flexGrow:1,marginTop:o.spacing(6)})[o.breakpoints.down("sm")]={marginTop:o.spacing(7)},r),t["& .".concat(Vh.contentWithSidebar)]={display:"flex",flexGrow:1,transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen})},t["& .".concat(Vh.content)]=((n={backgroundColor:o.palette.background.default,zIndex:2,display:"flex",flexDirection:"column",flexGrow:1,flexBasis:0,padding:0})[o.breakpoints.up("xs")]={paddingRight:o.spacing(1),paddingLeft:o.spacing(1)},n),t})),qh=r(1496),Uh=function(){return Uh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Uh.apply(this,arguments)},Hh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$h=function(e){var r=e.className,n=e.title,o=Hh(e,["className","title"]),a=Ps();return Fr(),t.createElement(Yh,Uh({className:r},Qh(o)),t.createElement(ih,{defaultTitle:n}),t.createElement("div",{className:Gh.message},t.createElement(qh.c,{className:Gh.icon}),t.createElement("h1",null,a("ra.page.not_found")),t.createElement("div",null,a("ra.message.not_found"),".")),t.createElement("div",{className:Gh.toolbar},t.createElement(Tl,{variant:"contained",startIcon:t.createElement(Ap.c,null),onClick:Xh},a("ra.action.back"))))},Qh=function(e){e.staticContext,e.history,e.location,e.match;return Hh(e,["staticContext","history","location","match"])};$h.propTypes={className:Ln().string,title:Ln().string,location:Ln().object};var Kh="RaNotFound",Gh={icon:"".concat(Kh,"-icon"),message:"".concat(Kh,"-message"),toolbar:"".concat(Kh,"-toolbar")},Yh=(0,Sn.cp)("div",{name:Kh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center"})[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("md")]={height:"100vh",marginTop:"-3em"},t["& .".concat(Gh.icon)]={width:"9em",height:"9em"},t["& .".concat(Gh.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t["& .".concat(Gh.toolbar)]={textAlign:"center",marginTop:"2em"},t}));function Xh(){window.history.go(-1)}var Jh=function(){return Jh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jh.apply(this,arguments)},Zh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ev=function(e){var r=e.loadingPrimary,n=void 0===r?"ra.page.loading":r,o=e.loadingSecondary,a=void 0===o?"ra.message.loading":o,i=Zh(e,["loadingPrimary","loadingSecondary"]);return t.createElement(Ih,Jh({loadingPrimary:n,loadingSecondary:a},i))};function tv(e){return e.substring(2).toLowerCase()}function rv(e){const{children:r,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=t.useRef(!1),l=t.useRef(null),c=t.useRef(!1),u=t.useRef(!1);t.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,No.c)(r.ref,l),p=(0,ac.c)((e=>{const t=u.current;u.current=!1;const r=(0,Fo.c)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),o||!n&&t||a(e)})),f=e=>t=>{u.current=!0;const n=r.props[e];n&&n(t)},m={ref:d};return!1!==i&&(m[i]=f(i)),t.useEffect((()=>{if(!1!==i){const e=tv(i),t=(0,Fo.c)(l.current),r=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",r)}}}),[p,i]),!1!==o&&(m[o]=f(o)),t.useEffect((()=>{if(!1!==o){const e=tv(o),t=(0,Fo.c)(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,Jt.jsx)(t.Fragment,{children:t.cloneElement(r,m)})}function nv(e){return(0,kn.cp)("MuiSnackbarContent",e)}ev.propTypes={theme:Ln().object,className:Ln().string,loadingPrimary:Ln().string,loadingSecondary:Ln().string};(0,En.c)("MuiSnackbarContent",["root","message","action"]);const ov=["action","className","message","role"],av=(0,Sn.cp)(Gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?.8:.98,n=(0,qn.ct)(t.palette.background.default,r);return(0,Oe.c)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),iv=(0,Sn.cp)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),sv=(0,Sn.cp)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lv=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:a,role:i="alert"}=r,s=(0,Kt.c)(r,ov),l=r,c=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"],action:["action"],message:["message"]},nv,t)})(l);return(0,Jt.jsxs)(av,(0,Oe.c)({role:i,square:!0,elevation:6,className:(0,bn.c)(c.root,o),ownerState:l,ref:t},s,{children:[(0,Jt.jsx)(iv,{className:c.message,ownerState:l,children:a}),n?(0,Jt.jsx)(sv,{className:c.action,ownerState:l,children:n}):null]}))})),cv=lv;function uv(e){return(0,kn.cp)("MuiSnackbar",e)}(0,En.c)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const dv=["onEnter","onExited"],pv=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],fv=(0,Sn.cp)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,Wn.c)(r.anchorOrigin.vertical)).concat((0,Wn.c)(r.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,Oe.c)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),mv=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiSnackbar"}),o=po(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:m=!1,message:h,open:v,TransitionComponent:g=Mo,transitionDuration:y=a,TransitionProps:{onEnter:b,onExited:x}={}}=n,w=(0,Kt.c)(n.TransitionProps,dv),S=(0,Kt.c)(n,pv),O=(0,Oe.c)({},n,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:m,TransitionComponent:g,transitionDuration:y}),_=(e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,Wn.c)(r.vertical)).concat((0,Wn.c)(r.horizontal))]};return(0,xn.c)(n,uv,t)})(O),{getRootProps:E,onClickAway:k}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:r=null,disableWindowBlurListener:n=!1,onClose:o,open:a,resumeHideDuration:i}=e,s=(0,io.c)();t.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}}),[a,o]);const l=(0,ac.c)(((e,t)=>{null==o||o(e,t)})),c=(0,ac.c)((e=>{o&&null!=e&&s.start(e,(()=>{l(null,"timeout")}))}));t.useEffect((()=>(a&&c(r),s.clear)),[a,r,c,s]);const u=s.clear,d=t.useCallback((()=>{null!=r&&c(null!=i?i:.5*r)}),[r,i,c]),p=e=>t=>{const r=e.onFocus;null==r||r(t),u()},f=e=>t=>{const r=e.onMouseEnter;null==r||r(t),u()},m=e=>t=>{const r=e.onMouseLeave;null==r||r(t),d()};return t.useEffect((()=>{if(!n&&a)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[n,a,d,u]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,Oe.c)({},ii(e),ii(t));return(0,Oe.c)({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),d()}),onFocus:p(r),onMouseEnter:f(r),onMouseLeave:m(r)});var n},onClickAway:e=>{null==o||o(e,"clickaway")}}}((0,Oe.c)({},O)),[j,C]=t.useState(!0),P=ci({elementType:fv,getSlotProps:E,externalForwardedProps:S,ownerState:O,additionalProps:{ref:r},className:[_.root,d]});return!v&&j?null:(0,Jt.jsx)(rv,(0,Oe.c)({onClickAway:k},p,{children:(0,Jt.jsx)(fv,(0,Oe.c)({},P,{children:(0,Jt.jsx)(g,(0,Oe.c)({appear:!0,in:v,timeout:y,direction:"top"===s?"down":"up",onEnter:(e,t)=>{C(!1),b&&b(e,t)},onExited:e=>{C(!0),x&&x(e)}},w,{children:u||(0,Jt.jsx)(cv,(0,Oe.c)({message:h,action:i},f))}))}))}))})),hv=mv;var vv=function(){return(0,t.useContext)(zt)},gv=r(2236);const yv=new(r.n(gv)());var bv=function(){return bv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bv.apply(this,arguments)},xv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},wv={vertical:"bottom",horizontal:"center"},Sv=function(e){var r,n=e.className,o=e.type,a=void 0===o?"info":o,i=e.autoHideDuration,s=void 0===i?4e3:i,l=e.multiLine,c=void 0!==l&&l,u=e.anchorOrigin,d=void 0===u?wv:u,p=xv(e,["className","type","autoHideDuration","multiLine","anchorOrigin"]),f=vv(),m=f.notifications,h=f.takeNotification,v=(0,t.useState)(!1),g=v[0],y=v[1],b=t.useState(void 0),x=b[0],w=b[1],S=Ps();(0,t.useEffect)((function(){var e,t=function(e){e.preventDefault();return e.returnValue="",""};return(null===(e=null===x||void 0===x?void 0:x.notificationOptions)||void 0===e?void 0:e.undoable)&&window.addEventListener("beforeunload",t),m.length&&!x?(w(h()),y(!0)):m.length&&x&&g&&y(!1),function(){var e;(null===(e=null===x||void 0===x?void 0:x.notificationOptions)||void 0===e?void 0:e.undoable)&&window.removeEventListener("beforeunload",t)}}),[m,x,g,h]);var O=(0,t.useCallback)((function(){y(!1)}),[y]),_=(0,t.useCallback)((function(){x&&x.notificationOptions.undoable&&yv.emit("end",{isUndo:!1}),w(void 0)}),[x]),E=(0,t.useCallback)((function(){yv.emit("end",{isUndo:!0}),y(!1)}),[]);if(!x)return null;var k=x.message,j=x.type,C=x.notificationOptions,P=C.autoHideDuration,R=C.messageArgs,T=C.multiLine,A=C.undoable,I=xv(C,["autoHideDuration","messageArgs","multiLine","undoable"]);return t.createElement(Ev,bv({className:n,open:g,message:k&&"string"===typeof k&&S(k,R),autoHideDuration:void 0===P?s:P,disableWindowBlurListener:A,TransitionProps:{onExited:_},onClose:O,ContentProps:{className:Mn(_v[j||a],(r={},r[_v.multiLine]=T||c,r))},action:A?t.createElement(Tl,{color:"primary",className:_v.undo,size:"small",onClick:E},t.createElement(t.Fragment,null,S("ra.action.undo"))):null,anchorOrigin:d},p,I),k&&"string"!==typeof k?k:null)};Sv.propTypes={type:Ln().string,autoHideDuration:Ln().number,multiLine:Ln().bool};var Ov="RaNotification",_v={success:"".concat(Ov,"-success"),error:"".concat(Ov,"-error"),warning:"".concat(Ov,"-warning"),undo:"".concat(Ov,"-undo"),multiLine:"".concat(Ov,"-multiLine")},Ev=(0,Sn.cp)(hv,{name:Ov,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme,n=e.type;return(t={})["& .".concat(_v.success)]={backgroundColor:r.palette.success.main,color:r.palette.success.contrastText},t["& .".concat(_v.error)]={backgroundColor:r.palette.error.main,color:r.palette.error.contrastText},t["& .".concat(_v.warning)]={backgroundColor:r.palette.warning.main,color:r.palette.warning.contrastText},t["& .".concat(_v.undo)]={color:"success"===n?r.palette.success.contrastText:r.palette.primary.light},t["& .".concat(_v.multiLine)]={whiteSpace:"pre-wrap"},t}));function kv(e){return(0,kn.cp)("MuiCard",e)}(0,En.c)("MuiCard",["root"]);const jv=["className","raised"],Cv=(0,Sn.cp)(Gn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),Pv=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiCard"}),{className:n,raised:o=!1}=r,a=(0,Kt.c)(r,jv),i=(0,Oe.c)({},r,{raised:o}),s=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},kv,t)})(i);return(0,Jt.jsx)(Cv,(0,Oe.c)({className:(0,bn.c)(s.root,n),elevation:o?8:void 0,ref:t,ownerState:i},a))})),Rv=Pv;var Tv=r(1176);function Av(e){return(0,kn.cp)("MuiCardContent",e)}(0,En.c)("MuiCardContent",["root"]);const Iv=["className","component"],Mv=(0,Sn.cp)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),Nv=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiCardContent"}),{className:n,component:o="div"}=r,a=(0,Kt.c)(r,Iv),i=(0,Oe.c)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},Av,t)})(i);return(0,Jt.jsx)(Mv,(0,Oe.c)({as:o,className:(0,bn.c)(s.root,n),ownerState:i,ref:t},a))})),Lv=Nv;const Fv=function(){var e=Sr(),r=J().state,n=ee(),o=Or(),a=vv().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,l=Er("".concat(o,"/").concat(wr)),c=(0,t.useCallback)((function(t,r){return void 0===t&&(t={}),e.login(t).then((function(e){(a(),e&&e.hasOwnProperty("redirectTo"))?e&&n(e.redirectTo):n(r||(i+s||l));return e}))}),[e,n,i,s,a,l]),u=(0,t.useCallback)((function(e,t){return a(),n(l),Promise.resolve()}),[n,a,l]);return e?c:u};var zv=r(3416),Dv=r.n(zv),Bv=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Vv=function(e){return"undefined"===typeof e||null===e||""===e||Array.isArray(e)&&0===e.length};var Wv=function(e,t,r,n){return"function"===typeof e?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},qv=function(e){return Dv()(e,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}))},Uv=function(e){return"function"===typeof e},Hv=function(e,t){return function(r,n,o){var a,i=e(r,n,o);return i?"string"===typeof i||(a=i)&&a.hasOwnProperty("message")?i:i.then((function(e){return e||t(r,n,o)})):t(r,n,o)}},$v=qv((function(e){return void 0===e&&(e="ra.validation.required"),Object.assign((function(t,r){return Vv(t)?Wv(e,void 0,t,r):void 0}),{isRequired:!0})})),Qv=(qv((function(e,t){return void 0===t&&(t="ra.validation.minLength"),function(r,n){return!Vv(r)&&r.length<e?Wv(t,{min:e},r,n):void 0}})),qv((function(e,t){return void 0===t&&(t="ra.validation.maxLength"),function(r,n){return!Vv(r)&&r.length>e?Wv(t,{max:e},r,n):void 0}}))),Kv=(qv((function(e,t){return void 0===t&&(t="ra.validation.minValue"),function(r,n){return!Vv(r)&&r<e?Wv(t,{min:e},r,n):void 0}})),qv((function(e,t){return void 0===t&&(t="ra.validation.maxValue"),function(r,n){return!Vv(r)&&r>e?Wv(t,{max:e},r,n):void 0}}))),Gv=qv((function(e){return void 0===e&&(e="ra.validation.number"),function(t,r){return!Vv(t)&&isNaN(Number(t))?Wv(e,void 0,t,r):void 0}})),Yv=Dv()((function(e,t){return void 0===t&&(t="ra.validation.regex"),function(r,n){return Vv(r)||"string"!==typeof r||e.test(r)?void 0:Wv(t,{pattern:e},r,n)}}),(function(e,t){return e.toString()+t})),Xv=(qv((function(e){return void 0===e&&(e="ra.validation.email"),Yv(Bv,e)})),function(e){return{message:"ra.validation.oneOf",args:e.args}}),Jv=(qv((function(e,t){return void 0===t&&(t=Xv),function(r,n){return Vv(r)||-1!==e.indexOf(r)?void 0:Wv(t,{list:e},r,n)}})),function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&!!e.find((function(e){return e.isRequired}))}),Zv=e=>"checkbox"===e.type,eg=e=>e instanceof Date,tg=e=>null==e;const rg=e=>"object"===typeof e;var ng=e=>!tg(e)&&!Array.isArray(e)&&rg(e)&&!eg(e),og=e=>ng(e)&&e.target?Zv(e.target)?e.target.checked:e.target.value:e,ag=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),ig=e=>{const t=e.constructor&&e.constructor.prototype;return ng(t)&&t.hasOwnProperty("isPrototypeOf")},sg="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function lg(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(sg&&(e instanceof Blob||e instanceof FileList)||!r&&!ng(e))return e;if(t=r?[]:{},r||ig(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=lg(e[r]));else t=e}return t}var cg=e=>Array.isArray(e)?e.filter(Boolean):[],ug=e=>void 0===e,dg=(e,t,r)=>{if(!t||!ng(e))return r;const n=cg(t.split(/[,[\].]+?/)).reduce(((e,t)=>tg(e)?e:e[t]),e);return ug(n)||n===e?ug(e[t])?r:e[t]:n},pg=e=>"boolean"===typeof e;const fg={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},mg={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},hg="max",vg="min",gg="maxLength",yg="minLength",bg="pattern",xg="required",wg="validate",Sg=t.createContext(null),Og=()=>t.useContext(Sg),_g=e=>{const{children:r,...n}=e;return t.createElement(Sg.Provider,{value:n},r)};var Eg=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==mg.all&&(t._proxyFormState[o]=!n||mg.all),r&&(r[o]=!0),e[o]}});return o},kg=e=>ng(e)&&!Object.keys(e).length,jg=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return kg(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!n||mg.all)))},Cg=e=>Array.isArray(e)?e:[e],Pg=(e,t,r)=>!e||!t||e===t||Cg(e).some((e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))));function Rg(e){const r=t.useRef(e);r.current=e,t.useEffect((()=>{const t=!e.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}function Tg(e){const r=Og(),{control:n=r.control,disabled:o,name:a,exact:i}=e||{},[s,l]=t.useState(n._formState),c=t.useRef(!0),u=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(a);return d.current=a,Rg({disabled:o,next:e=>c.current&&Pg(d.current,e.name,i)&&jg(e,u.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),t.useEffect((()=>(c.current=!0,u.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),Eg(s,n,u.current,!1)}var Ag=e=>"string"===typeof e,Ig=(e,t,r,n,o)=>Ag(e)?(n&&t.watch.add(e),dg(r,e,o)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),dg(r,e)))):(n&&(t.watchAll=!0),r);function Mg(e){const r=Og(),{control:n=r.control,name:o,defaultValue:a,disabled:i,exact:s}=e||{},l=t.useRef(o);l.current=o,Rg({disabled:i,subject:n._subjects.values,next:e=>{Pg(l.current,e.name,s)&&u(lg(Ig(l.current,n._names,e.values||n._formValues,!1,a)))}});const[c,u]=t.useState(n._getWatch(o,a));return t.useEffect((()=>n._removeUnmounted())),c}var Ng=e=>/^\w*$/.test(e),Lg=e=>cg(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Fg=(e,t,r)=>{let n=-1;const o=Ng(t)?[t]:Lg(t),a=o.length,i=a-1;for(;++n<a;){const t=o[n];let a=r;if(n!==i){const r=e[t];a=ng(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}e[t]=a,e=e[t]}return e};function zg(e){const r=Og(),{name:n,disabled:o,control:a=r.control,shouldUnregister:i}=e,s=ag(a._names.array,n),l=Mg({control:a,name:n,defaultValue:dg(a._formValues,n,dg(a._defaultValues,n,e.defaultValue)),exact:!0}),c=Tg({control:a,name:n}),u=t.useRef(a.register(n,{...e.rules,value:l,...pg(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect((()=>{const e=a._options.shouldUnregister||i,t=(e,t)=>{const r=dg(a._fields,e);r&&(r._f.mount=t)};if(t(n,!0),e){const e=lg(dg(a._options.defaultValues,n));Fg(a._defaultValues,n,e),ug(dg(a._formValues,n))&&Fg(a._formValues,n,e)}return()=>{(s?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,s,i]),t.useEffect((()=>{dg(a._fields,n)&&a._updateDisabledField({disabled:o,fields:a._fields,name:n,value:dg(a._fields,n)._f.value})}),[o,n,a]),{field:{name:n,value:l,...pg(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:t.useCallback((e=>u.current.onChange({target:{value:og(e),name:n},type:fg.CHANGE})),[n]),onBlur:t.useCallback((()=>u.current.onBlur({target:{value:dg(a._formValues,n),name:n},type:fg.BLUR})),[n,a]),ref:e=>{const t=dg(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!dg(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!dg(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!dg(c.touchedFields,n)},error:{enumerable:!0,get:()=>dg(c.errors,n)}})}}var Dg=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Bg=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},Vg=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.shouldFocus||ug(r.shouldFocus)?r.focusName||"".concat(e,".").concat(ug(r.focusIndex)?t:r.focusIndex,"."):""},Wg=e=>({isOnSubmit:!e||e===mg.onSubmit,isOnBlur:e===mg.onBlur,isOnChange:e===mg.onChange,isOnAll:e===mg.all,isOnTouch:e===mg.onTouched}),qg=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Ug=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=dg(e,o);if(r){const{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;Ug(a,t)}else ng(a)&&Ug(a,t)}}};var Hg=(e,t,r)=>{const n=cg(dg(e,r));return Fg(n,"root",t[r]),Fg(e,r,n),e},$g=e=>"file"===e.type,Qg=e=>"function"===typeof e,Kg=e=>{if(!sg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Gg=e=>Ag(e),Yg=e=>"radio"===e.type,Xg=e=>e instanceof RegExp;const Jg={value:!1,isValid:!1},Zg={value:!0,isValid:!0};var ey=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ug(e[0].attributes.value)?ug(e[0].value)||""===e[0].value?Zg:{value:e[0].value,isValid:!0}:Zg:Jg}return Jg};const ty={isValid:!1,value:null};var ry=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ty):ty;function ny(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Gg(e)||Array.isArray(e)&&e.every(Gg)||pg(e)&&!e)return{type:r,message:Gg(e)?e:"",ref:t}}var oy=e=>ng(e)&&!Xg(e)?e:{value:e,message:""},ay=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:p,validate:f,name:m,valueAsNumber:h,mount:v,disabled:g}=e._f,y=dg(t,m);if(!v||g)return{};const b=i?i[0]:a,x=e=>{n&&b.reportValidity&&(b.setCustomValidity(pg(e)?"":e||""),b.reportValidity())},w={},S=Yg(a),O=Zv(a),_=S||O,E=(h||$g(a))&&ug(a.value)&&ug(y)||Kg(a)&&""===a.value||""===y||Array.isArray(y)&&!y.length,k=Dg.bind(null,m,r,w),j=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gg,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:yg;const i=e?t:r;w[m]={type:e?n:o,message:i,ref:a,...k(e?n:o,i)}};if(o?!Array.isArray(y)||!y.length:s&&(!_&&(E||tg(y))||pg(y)&&!y||O&&!ey(i).isValid||S&&!ry(i).isValid)){const{value:e,message:t}=Gg(s)?{value:!!s,message:s}:oy(s);if(e&&(w[m]={type:xg,message:t,ref:b,...k(xg,t)},!r))return x(t),w}if(!E&&(!tg(u)||!tg(d))){let e,t;const n=oy(d),o=oy(u);if(tg(y)||isNaN(y)){const r=a.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;Ag(n.value)&&y&&(e=s?i(y)>i(n.value):l?y>n.value:r>new Date(n.value)),Ag(o.value)&&y&&(t=s?i(y)<i(o.value):l?y<o.value:r<new Date(o.value))}else{const r=a.valueAsNumber||(y?+y:y);tg(n.value)||(e=r>n.value),tg(o.value)||(t=r<o.value)}if((e||t)&&(j(!!e,n.message,o.message,hg,vg),!r))return x(w[m].message),w}if((l||c)&&!E&&(Ag(y)||o&&Array.isArray(y))){const e=oy(l),t=oy(c),n=!tg(e.value)&&y.length>+e.value,o=!tg(t.value)&&y.length<+t.value;if((n||o)&&(j(n,e.message,t.message),!r))return x(w[m].message),w}if(p&&!E&&Ag(y)){const{value:e,message:t}=oy(p);if(Xg(e)&&!y.match(e)&&(w[m]={type:bg,message:t,ref:a,...k(bg,t)},!r))return x(t),w}if(f)if(Qg(f)){const e=ny(await f(y,t),b);if(e&&(w[m]={...e,...k(wg,e.message)},!r))return x(e.message),w}else if(ng(f)){let e={};for(const n in f){if(!kg(e)&&!r)break;const o=ny(await f[n](y,t),b,n);o&&(e={...o,...k(n,o.message)},x(o.message),r&&(w[m]=e))}if(!kg(e)&&(w[m]={ref:b,...e},!r))return w}return x(!0),w},iy=(e,t)=>[...e,...Cg(t)],sy=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ly(e,t,r){return[...e.slice(0,t),...Cg(r),...e.slice(t)]}var cy=(e,t,r)=>Array.isArray(e)?(ug(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],uy=(e,t)=>[...Cg(t),...Cg(e)];var dy=(e,t)=>ug(t)?[]:function(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return cg(n).length?n:[]}(e,Cg(t).sort(((e,t)=>e-t))),py=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function fy(e,t){const r=Array.isArray(t)?t:Ng(t)?[t]:Lg(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ug(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,a=r[o];return n&&delete n[a],0!==o&&(ng(n)&&kg(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!ug(e[t]))return!1;return!0}(n))&&fy(e,r.slice(0,-1)),e}var my=(e,t,r)=>(e[t]=r,e);var hy=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},vy=e=>tg(e)||!rg(e);function gy(e,t){if(vy(e)||vy(t))return e===t;if(eg(e)&&eg(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(eg(r)&&eg(e)||ng(r)&&ng(e)||Array.isArray(r)&&Array.isArray(e)?!gy(r,e):r!==e)return!1}}return!0}var yy=e=>"select-multiple"===e.type,by=e=>Yg(e)||Zv(e),xy=e=>Kg(e)&&e.isConnected,wy=e=>{for(const t in e)if(Qg(e[t]))return!0;return!1};function Sy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Array.isArray(e);if(ng(e)||r)for(const n in e)Array.isArray(e[n])||ng(e[n])&&!wy(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Sy(e[n],t[n])):tg(e[n])||(t[n]=!0);return t}function Oy(e,t,r){const n=Array.isArray(e);if(ng(e)||n)for(const o in e)Array.isArray(e[o])||ng(e[o])&&!wy(e[o])?ug(t)||vy(r[o])?r[o]=Array.isArray(e[o])?Sy(e[o],[]):{...Sy(e[o])}:Oy(e[o],tg(t)?{}:t[o],r[o]):r[o]=!gy(e[o],t[o]);return r}var _y=(e,t)=>Oy(e,t,Sy(t)),Ey=(e,t)=>{let{valueAsNumber:r,valueAsDate:n,setValueAs:o}=t;return ug(e)?e:r?""===e?NaN:e?+e:e:n&&Ag(e)?new Date(e):o?o(e):e};function ky(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return $g(t)?t.files:Yg(t)?ry(e.refs).value:yy(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):Zv(t)?ey(e.refs).value:Ey(ug(t.value)?e.ref.value:t.value,e)}var jy=(e,t,r,n)=>{const o={};for(const a of e){const e=dg(t,a);e&&Fg(o,a,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Cy=e=>ug(e)?e:Xg(e)?e.source:ng(e)?Xg(e.value)?e.value.source:e.value:e,Py=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ry(e,t,r){const n=dg(e,r);if(n||Ng(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),a=dg(t,n),i=dg(e,n);if(a&&!Array.isArray(a)&&r!==n)return{name:r};if(i&&i.type)return{name:n,error:i};o.pop()}return{name:r}}var Ty=(e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e),Ay=(e,t)=>!cg(dg(e,t)).length&&fy(e,t);const Iy={mode:mg.onSubmit,reValidateMode:mg.onChange,shouldFocusError:!0};function My(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n={...Iy,...t},o={submitCount:0,isDirty:!1,isLoading:Qg(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},i=(ng(n.values)||ng(n.defaultValues))&&lg(n.values||n.defaultValues)||{},s=n.shouldUnregister?{}:lg(i),l={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:hy(),array:hy(),state:hy()},f=Wg(n.mode),m=Wg(n.reValidateMode),h=n.criteriaMode===mg.all,v=async e=>{if(d.isValid||e){const e=n.resolver?kg((await w()).errors):await S(a,!0);e!==o.isValid&&p.state.next({isValid:e})}},g=e=>d.isValidating&&p.state.next({isValidating:e}),y=(e,t,r,n)=>{const o=dg(a,e);if(o){const a=dg(s,e,ug(r)?dg(i,e):r);ug(a)||n&&n.defaultChecked||t?Fg(s,e,t?a:ky(o._f)):E(e,a),l.mount&&v()}},b=(e,t,r,n,s)=>{let l=!1,c=!1;const u={name:e},f=!(!dg(a,e)||!dg(a,e)._f.disabled);if(!r||n){d.isDirty&&(c=o.isDirty,o.isDirty=u.isDirty=O(),l=c!==u.isDirty);const r=f||gy(dg(i,e),t);c=!(f||!dg(o.dirtyFields,e)),r||f?fy(o.dirtyFields,e):Fg(o.dirtyFields,e,!0),u.dirtyFields=o.dirtyFields,l=l||d.dirtyFields&&c!==!r}if(r){const t=dg(o.touchedFields,e);t||(Fg(o.touchedFields,e,r),u.touchedFields=o.touchedFields,l=l||d.touchedFields&&t!==r)}return l&&s&&p.state.next(u),l?u:{}},x=(r,n,a,i)=>{const s=dg(o.errors,r),l=d.isValid&&pg(n)&&o.isValid!==n;var c;if(t.delayError&&a?(c=()=>((e,t)=>{Fg(o.errors,e,t),p.state.next({errors:o.errors})})(r,a),e=e=>{clearTimeout(u),u=setTimeout(c,e)},e(t.delayError)):(clearTimeout(u),e=null,a?Fg(o.errors,r,a):fy(o.errors,r)),(a?!gy(s,a):s)||!kg(i)||l){const e={...i,...l&&pg(n)?{isValid:n}:{},errors:o.errors,name:r};o={...o,...e},p.state.next(e)}g(!1)},w=async e=>n.resolver(s,n.context,jy(e||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)),S=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const a in e){const i=e[a];if(i){const{_f:e,...a}=i;if(e){const a=c.array.has(e.name),l=await ay(i,s,h,n.shouldUseNativeValidation&&!t,a);if(l[e.name]&&(r.valid=!1,t))break;!t&&(dg(l,e.name)?a?Hg(o.errors,l,e.name):Fg(o.errors,e.name,l[e.name]):fy(o.errors,e.name))}a&&await S(a,t,r)}}return r.valid},O=(e,t)=>(e&&t&&Fg(s,e,t),!gy(T(),i)),_=(e,t,r)=>Ig(e,c,{...l.mount?s:ug(t)?i:Ag(e)?{[e]:t}:t},r,t),E=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=dg(a,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&Fg(s,e,Ey(t,r)),o=Kg(r.ref)&&tg(t)?"":t,yy(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?Zv(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach((e=>e.checked=e.value===o)):$g(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||p.values.next({name:e,values:{...s}})))}(r.shouldDirty||r.shouldTouch)&&b(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&R(e)},k=(e,t,r)=>{for(const n in t){const o=t[n],i="".concat(e,".").concat(n),s=dg(a,i);!c.array.has(e)&&vy(o)&&(!s||s._f)||eg(o)?E(i,o,r):k(i,o,r)}},j=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const u=dg(a,e),f=c.array.has(e),m=lg(t);Fg(s,e,m),f?(p.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&p.state.next({name:e,dirtyFields:_y(i,s),isDirty:O(e,m)})):!u||u._f||tg(m)?E(e,m,n):k(e,m,n),qg(e,c)&&p.state.next({...o}),p.values.next({name:e,values:{...s}}),!l.mount&&r()},C=async t=>{const r=t.target;let i=r.name,l=!0;const u=dg(a,i),y=e=>{l=Number.isNaN(e)||e===dg(s,i,e)};if(u){let O,_;const E=r.type?ky(u._f):og(t),k=t.type===fg.BLUR||t.type===fg.FOCUS_OUT,j=!Py(u._f)&&!n.resolver&&!dg(o.errors,i)&&!u._f.deps||Ty(k,dg(o.touchedFields,i),o.isSubmitted,m,f),C=qg(i,c,k);Fg(s,i,E),k?(u._f.onBlur&&u._f.onBlur(t),e&&e(0)):u._f.onChange&&u._f.onChange(t);const P=b(i,E,k,!1),T=!kg(P)||C;if(!k&&p.values.next({name:i,type:t.type,values:{...s}}),j)return d.isValid&&v(),T&&p.state.next({name:i,...C?{}:P});if(!k&&C&&p.state.next({...o}),g(!0),n.resolver){const{errors:e}=await w([i]);if(y(E),l){const t=Ry(o.errors,a,i),r=Ry(e,a,t.name||i);O=r.error,i=r.name,_=kg(e)}}else O=(await ay(u,s,h,n.shouldUseNativeValidation))[i],y(E),l&&(O?_=!1:d.isValid&&(_=await S(a,!0)));l&&(u._f.deps&&R(u._f.deps),x(i,_,O,P))}},P=(e,t)=>{if(dg(o.errors,t)&&e.focus)return e.focus(),1},R=async function(e){let t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=Cg(e);if(g(!0),n.resolver){const n=await(async e=>{const{errors:t}=await w(e);if(e)for(const r of e){const e=dg(t,r);e?Fg(o.errors,r,e):fy(o.errors,r)}else o.errors=t;return t})(ug(e)?e:s);t=kg(n),r=e?!s.some((e=>dg(n,e))):t}else e?(r=(await Promise.all(s.map((async e=>{const t=dg(a,e);return await S(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||o.isValid)&&v()):r=t=await S(a);return p.state.next({...!Ag(e)||d.isValid&&t!==o.isValid?{}:{name:e},...n.resolver||!e?{isValid:t}:{},errors:o.errors,isValidating:!1}),i.shouldFocus&&!r&&Ug(a,P,e?s:c.mount),r},T=e=>{const t={...i,...l.mount?s:{}};return ug(e)?t:Ag(e)?dg(t,e):e.map((e=>dg(t,e)))},A=(e,t)=>({invalid:!!dg((t||o).errors,e),isDirty:!!dg((t||o).dirtyFields,e),isTouched:!!dg((t||o).touchedFields,e),error:dg((t||o).errors,e)}),I=(e,t,r)=>{const n=(dg(a,e,{_f:{}})._f||{}).ref;Fg(o.errors,e,{...t,ref:n}),p.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const r of e?Cg(e):c.mount)c.mount.delete(r),c.array.delete(r),t.keepValue||(fy(a,r),fy(s,r)),!t.keepError&&fy(o.errors,r),!t.keepDirty&&fy(o.dirtyFields,r),!t.keepTouched&&fy(o.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&fy(i,r);p.values.next({values:{...s}}),p.state.next({...o,...t.keepDirty?{isDirty:O()}:{}}),!t.keepIsValid&&v()},N=e=>{let{disabled:t,name:r,field:n,fields:o,value:a}=e;if(pg(t)){const e=t?void 0:ug(a)?ky(n?n._f:dg(o,r)._f):a;Fg(s,r,e),b(r,e,!1,!1,!0)}},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=dg(a,e);const o=pg(t.disabled);return Fg(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),r?N({field:r,disabled:t.disabled,name:e,value:t.value}):y(e,!0,t.value),{...o?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:Cy(t.min),max:Cy(t.max),minLength:Cy(t.minLength),maxLength:Cy(t.maxLength),pattern:Cy(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:o=>{if(o){L(e,t),r=dg(a,e);const n=ug(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,s=by(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;Fg(a,e,{_f:{...r._f,...s?{refs:[...l.filter(xy),n,...Array.isArray(dg(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=dg(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!ag(c.array,e)||!l.action)&&c.unMount.add(e)}}},F=()=>n.shouldFocusError&&Ug(a,P,c.mount),z=(e,t)=>async r=>{let i;r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let l=lg(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await w();o.errors=e,l=t}else await S(a);if(fy(o.errors,"root"),kg(o.errors)){p.state.next({errors:{}});try{await e(l,r)}catch(c){i=c}}else t&&await t({...o.errors},r),F(),setTimeout(F);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:kg(o.errors)&&!i,submitCount:o.submitCount+1,errors:o.errors}),i)throw i},D=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=e?lg(e):i,f=lg(u),m=e&&!kg(e)?f:i;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues)for(const e of c.mount)dg(o.dirtyFields,e)?Fg(m,e,dg(s,e)):j(e,dg(m,e));else{if(sg&&ug(e))for(const e of c.mount){const t=dg(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Kg(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}s=t.shouldUnregister?n.keepDefaultValues?lg(i):{}:lg(m),p.array.next({values:{...m}}),p.values.next({values:{...m}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&r(),l.mount=!d.isValid||!!n.keepIsValid||!!n.keepDirtyValues,l.watch=!!t.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty?o.isDirty:!(!n.keepDefaultValues||gy(e,i)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirtyValues?n.keepDefaultValues&&s?_y(i,s):o.dirtyFields:n.keepDefaultValues&&e?_y(i,e):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>D(Qg(e)?e(s):e,t);return{control:{register:L,unregister:M,getFieldState:A,handleSubmit:z,setError:I,_executeSchema:w,_getWatch:_,_getDirty:O,_updateValid:v,_removeUnmounted:()=>{for(const e of c.unMount){const t=dg(a,e);t&&(t._f.refs?t._f.refs.every((e=>!xy(e))):!xy(t._f.ref))&&M(e)}c.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(n&&r){if(l.action=!0,u&&Array.isArray(dg(a,e))){const t=r(dg(a,e),n.argA,n.argB);c&&Fg(a,e,t)}if(u&&Array.isArray(dg(o.errors,e))){const t=r(dg(o.errors,e),n.argA,n.argB);c&&Fg(o.errors,e,t),Ay(o.errors,e)}if(d.touchedFields&&u&&Array.isArray(dg(o.touchedFields,e))){const t=r(dg(o.touchedFields,e),n.argA,n.argB);c&&Fg(o.touchedFields,e,t)}d.dirtyFields&&(o.dirtyFields=_y(i,s)),p.state.next({name:e,isDirty:O(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else Fg(s,e,t)},_updateDisabledField:N,_getFieldArray:e=>cg(dg(l.mount?s:i,e,t.shouldUnregister?dg(i,e,[]):[])),_reset:D,_resetDefaultValues:()=>Qg(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),p.state.next({isLoading:!1})})),_updateFormState:e=>{o={...o,...e}},_disableForm:e=>{pg(e)&&(p.state.next({disabled:e}),Ug(a,((t,r)=>{let n=e;const o=dg(a,r);o&&pg(o._f.disabled)&&(n||(n=o._f.disabled)),t.disabled=n}),0,!1))},_subjects:p,_proxyFormState:d,_setErrors:e=>{o.errors=e,p.state.next({errors:o.errors,isValid:!1})},get _fields(){return a},get _formValues(){return s},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return c},set _names(e){c=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:R,register:L,handleSubmit:z,watch:(e,t)=>Qg(e)?p.values.subscribe({next:r=>e(_(void 0,t),r)}):_(e,t,!0),setValue:j,getValues:T,reset:B,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dg(a,e)&&(ug(t.defaultValue)?j(e,lg(dg(i,e))):(j(e,t.defaultValue),Fg(i,e,lg(t.defaultValue))),t.keepTouched||fy(o.touchedFields,e),t.keepDirty||(fy(o.dirtyFields,e),o.isDirty=t.defaultValue?O(e,lg(dg(i,e))):O()),t.keepError||(fy(o.errors,e),d.isValid&&v()),p.state.next({...o}))},clearErrors:e=>{e&&Cg(e).forEach((e=>fy(o.errors,e))),p.state.next({errors:e?o.errors:{}})},unregister:M,setError:I,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=dg(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:A}}function Ny(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t.useRef(),n=t.useRef(),[o,a]=t.useState({isDirty:!1,isValidating:!1,isLoading:Qg(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Qg(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...My(e,(()=>a((e=>({...e}))))),formState:o});const i=r.current.control;return i._options=e,Rg({subject:i._subjects.state,next:e=>{jg(e,i._proxyFormState,i._updateFormState,!0)&&a({...i._formState})}}),t.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),t.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==o.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,o.isDirty]),t.useEffect((()=>{e.values&&!gy(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,a((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),t.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),t.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),t.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),r.current.formState=Eg(o,i),r.current}var Ly=(0,t.createContext)(void 0),Fy=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},zy=function(e){var r=e.children,n=(0,t.useRef)({}),o=(0,t.useRef)({}),a=(0,t.useMemo)((function(){return{subscribe:function(e,t){return o.current[e]||(o.current[e]=[]),o.current[e].push(t),function(){o.current[e]=o.current[e].filter((function(e){return e!==t}))}},getGroupFields:function(e){return n.current[e]||[]},registerGroup:function(e){n.current[e]=n.current[e]||[]},unregisterGroup:function(e){delete n[e]},registerField:function(e,t){null!=t&&((n.current[t]||[]).includes(e)||(n.current[t]=Fy(Fy([],n.current[t]||[],!0),[e],!1),o.current[t]&&o.current[t].forEach((function(e){return e()}))))},unregisterField:function(e,t){if(null!=t)if(n.current[t]){var r=new Set(n.current[t]);r.delete(e),n.current[t]=Array.from(r),o.current[t]&&o.current[t].forEach((function(e){return e()}))}else console.warn("Invalid form group ".concat(t))}}}),[]);return t.createElement(Ly.Provider,{value:a},r)},Dy=function(e){var r=e.value,n=e.children;return r?t.createElement(Gm,{value:r},n):n},By=(0,t.createContext)(void 0),Vy=function(e){var r=(0,t.useContext)(By);return e&&e.resource||r},Wy=(0,t.createContext)(""),qy=function(){return(0,t.useContext)(Wy)},Uy=function(e){var r=e.prefix,n=e.concatenate,o=void 0===n||n,a=e.children,i=qy(),s=i&&o?"".concat(i,".").concat(r):r;return t.createElement(Wy.Provider,{value:s},a)},Hy=(0,t.createContext)(void 0),$y=function(e){return(0,t.useContext)(Hy)};var Qy=function(){return Qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qy.apply(this,arguments)},Ky=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Gy=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Yy=function(e){return Object.keys(e).reduce((function(t,r){var n,o,a;if(Array.isArray(e[r])){var i=!1,s=e[r].map((function(e){return Zy(e)||(i=!0),Yy(e)}));return i?Qy(Qy({},t),((n={})[r]=s,n)):t}return Zy(e[r])?t:"object"!==typeof e[r]||Jy(e[r])?Qy(Qy({},t),((a={})[r]=Xy(e[r]),a)):Qy(Qy({},t),((o={})[r]=Yy(e[r]),o))}),{})},Xy=function(e){return{type:"manual",message:Jy(e)?e:{message:e}}},Jy=function(e){return Object.keys(e).includes("message")&&Object.keys(e).includes("args")},Zy=function(e){return 0===Object.getOwnPropertyNames(e).length},eb=function(e,t){var r=function(e,n){Object.entries(e).forEach((function(e){var o=e[0],a=e[1];"object"!==typeof a?t("".concat(n).concat(o),{type:"server",message:a.toString()}):r(a,"".concat(n).concat(o,"."))}))};r(e,"")},tb=function(){return tb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tb.apply(this,arguments)},rb=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},nb=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ob=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ab=function(e){var r=e.criteriaMode,n=void 0===r?"firstError":r,o=e.defaultValues,a=e.formRootPathname,s=e.resolver,l=e.reValidateMode,c=void 0===l?"onChange":l,u=e.onSubmit,d=e.sanitizeEmptyValues,p=e.warnWhenUnsavedChanges,f=e.validate,m=e.disableInvalidFormNotification,h=ob(e,["criteriaMode","defaultValues","formRootPathname","resolver","reValidateMode","onSubmit","sanitizeEmptyValues","warnWhenUnsavedChanges","validate","disableInvalidFormNotification"]),v=Ym(e),g=$y(),y=(0,t.useMemo)((function(){return function(e,t){var r=i()({},function(e,t){return"object"===typeof e?e:"function"===typeof e?e(t):{}}(e,t),t);return r}(o,v)}),[JSON.stringify({defaultValues:"function"===typeof o?"function":o,record:v})]),b=s||(f?function(e){return function(t){return Ky(void 0,void 0,void 0,(function(){var r,n;return Gy(this,(function(o){switch(o.label){case 0:return[4,e(t)];case 1:return!(r=o.sent())||Zy(r)||!(n=Yy(r))||Zy(n)?[2,{values:t,errors:{}}]:[2,{values:{},errors:n}]}}))}))}}(f):void 0),x=Ny(tb({criteriaMode:n,values:y,reValidateMode:c,resolver:b},h)),w=(0,t.useRef)(x);!function(e,r){void 0===r&&(r=!0);var n=Tg(e?{control:e}:void 0),o=n.submitCount,a=n.errors,i=(0,t.useRef)(o),s=Tt();(0,t.useEffect)((function(){o>i.current&&r&&(i.current=o,Object.keys(a).length>0&&s("ra.message.invalid_form",{type:"error"}))}),[a,o,s,r])}(x.control,!m),function(e,r,n){var o=(0,t.useContext)(Q).navigator,a=J(),i=Ps(),s=Tg(n?{control:n}:void 0),l=s.isSubmitSuccessful,c=s.isSubmitting,u=s.dirtyFields,d=Object.keys(u).length>0,p=(0,t.useRef)(r||a.pathname);(0,t.useEffect)((function(){if(e&&d&&o.block){var t=o.block((function(e){var r=e.location.pathname.startsWith(p.current),n=e.location.pathname.startsWith("".concat(p.current,"/show"));!c&&(r&&!n||l||window.confirm(i("ra.message.unsaved_changes")))?(t(),e.retry()):c&&setTimeout((function(){e.retry()}),100)}));return t}}),[e,a,o,d,c,l,i])}(Boolean(p),a,x.control);var S=(0,t.useCallback)((function(e,t){return rb(void 0,void 0,void 0,(function(){var r,n;return nb(this,(function(o){switch(o.label){case 0:return n=d?function(e,t){void 0===t&&(t={});var r={};return Object.keys(e).forEach((function(n){null==e[n]||""===e[n]?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]})),r}(e,v):e,u?[4,u(n,t)]:[3,2];case 1:r=o.sent(),o.label=2;case 2:return null==u&&(null===g||void 0===g?void 0:g.save)?[4,g.save(n,t)]:[3,4];case 3:r=o.sent(),o.label=4;case 4:return null!=r&&eb(r,w.current.setError),[2]}}))}))}),[u,g,d,v]),O=(0,t.useCallback)((function(e){e.defaultPrevented||(e.stopPropagation(),x.handleSubmit(S)(e))}),[x,S]);return{form:x,handleSubmit:S,formHandleSubmit:O}},ib=function(){return ib=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ib.apply(this,arguments)},sb=function(e){var r=e.children,n=e.id,o=e.className,a=e.noValidate,i=void 0!==a&&a,s=Ym(e),l=Vy(e),c=ab(e),u=c.form,d=c.formHandleSubmit;return t.createElement(Dy,{value:s},t.createElement(Uy,{prefix:"resources.".concat(l,".fields")},t.createElement(_g,ib({},u),t.createElement(zy,null,t.createElement("form",{onSubmit:d,noValidate:i,id:n,className:o},r)))))};const lb=function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&e.some((function(e){return e.isRequired}))};var cb=(0,t.createContext)(void 0),ub=function(){return(0,t.useContext)(cb)},db=function(){return(0,t.useContext)(Ly)},pb=function(e){var r=e.inputProps,n=e.isArrayInput,o=e.fieldArrayInputControl,a=r.defaultValue,i=r.source,s=Ym(r),l=Og(),c=l.getValues,u=l.resetField,d=l.getFieldState,p=l.formState,f=l.reset,m=dt()(s,i),h=dt()(c(),i),v=d(i,p).isDirty;(0,t.useEffect)((function(){if(null!=a&&null==h&&null==m&&!v){if(i.split(".").some((function(e){return fb.test(e)}))){var e=i.split(".").slice(0,-1).join(".");if(null==dt()(c(),e))return}if(n){if(!o)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");return o.replace(a),void f({},{keepValues:!0})}u(i,{defaultValue:a})}}))},fb=/^\d+$/,mb=function(){return mb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mb.apply(this,arguments)},hb=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},vb=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},gb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},yb=function(e){return null==e?"":e},bb=function(e){return""===e?null:e},xb=function(e){var r=e.defaultValue,n=e.format,o=void 0===n?yb:n,a=e.id,i=e.isRequired,s=e.name,l=e.onBlur,c=e.onChange,u=e.parse,d=void 0===u?bb:u,p=e.source,f=e.validate,m=gb(e,["defaultValue","format","id","isRequired","name","onBlur","onChange","parse","source","validate"]),h=s||p,v=ub(),g=db(),y=Ym();(0,t.useEffect)((function(){if(g&&null!=v)return g.registerField(p,v),function(){g.unregisterField(p,v)}}),[g,v,p]);var b=Array.isArray(f)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(Array.isArray(e[0])?e[0]:e).filter(Uv).reduce(Hv,(function(){return null}))}(f):f,x=zg(mb(mb({name:h,defaultValue:dt()(y,p,r),rules:{validate:function(t,r){return hb(void 0,void 0,void 0,(function(){var n;return vb(this,(function(o){switch(o.label){case 0:return b?[4,b(t,r,e)]:[2,!0];case 1:return(n=o.sent())?[2,"@@react-admin@@".concat(JSON.stringify(n))]:[2,!0]}}))}))}}},m),{disabled:m.disabled||void 0})),w=x.field,S=x.fieldState,O=x.formState;pb({inputProps:e});var _=kt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w.onBlur(),l&&l.apply(void 0,e)})),E=kt((function(){for(var t,r,n,o,a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var l="checkbox"===e.type&&"on"===(null===(r=null===(t=i[0])||void 0===t?void 0:t.target)||void 0===r?void 0:r.value)?i[0].target.checked:null!==(a=null===(o=null===(n=i[0])||void 0===n?void 0:n.target)||void 0===o?void 0:o.value)&&void 0!==a?a:i[0];w.onChange(d?d(l):l),c&&c.apply(void 0,i)})),k=mb(mb({},w),{value:o?o(w.value):w.value,onBlur:_,onChange:E});return{id:a||p,field:k,fieldState:S,formState:O,isRequired:i||lb(f)}};var wb=function(e){var t,r=e.replace(/\.\d+\./g,"."),n=e.split(".");return n.forEach((function(e,r){Sb(e)&&(t=r)})),{sourceWithoutDigits:r,sourceSuffix:null!=t?n.slice(t+1).join("."):e}},Sb=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},Ob=function(){var e=Ps(),r=qy(),n=Vy();return(0,t.useCallback)((function(t){var o=t.source,a=t.label,i=t.resource;return!1===a||""===a?null:a&&"string"!==typeof a?a:e.apply(void 0,function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if("undefined"!==typeof t)return[t,{_:t}];if("undefined"===typeof a)return[""];var i=wb(a),s=i.sourceWithoutDigits,l=i.sourceSuffix,c=wp().transform(l.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:c}]:r?["".concat(r,".").concat(s),{_:c}]:["resources.".concat(o,".fields.").concat(s),{_:c}]}({label:a,prefix:r,resource:i,resourceFromContext:n,source:o}))}),[r,n,e])},_b=function(e){var r=e.source,n=e.label,o=e.resource,a=e.isRequired,i=Ob();if(!0===n)throw new Error("Label parameter must be a string, a ReactElement or false");return!1===n||""===n?null:n&&"string"!==typeof n?n:t.createElement("span",null,i({label:n,resource:o,source:r}),a&&t.createElement("span",{"aria-hidden":"true"},"\u2009*"))};_b.displayName="FieldTitle";const Eb=(0,t.memo)(_b);function kb(e){return(0,kn.cp)("MuiInputAdornment",e)}const jb=(0,En.c)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Cb;const Pb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Rb=(0,Sn.cp)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position".concat((0,Wn.c)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(jb.positionStart,"&:not(.").concat(jb.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),Tb=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,d=(0,Kt.c)(n,Pb),p=Qp()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const m=(0,Oe.c)({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:f}),h=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,Wn.c)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,Wn.c)(a))]};return(0,xn.c)(s,kb,t)})(m);return(0,Jt.jsx)($p.Provider,{value:null,children:(0,Jt.jsx)(Rb,(0,Oe.c)({as:i,ownerState:m,className:(0,bn.c)(h.root,a),ref:r},d,{children:"string"!==typeof o||l?(0,Jt.jsxs)(t.Fragment,{children:["start"===c?Cb||(Cb=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"})):null,o]}):(0,Jt.jsx)(Su,{color:"text.secondary",children:o})}))})})),Ab=Tb;var Ib,Mb=r(7132),Nb=function(){return Nb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nb.apply(this,arguments)},Lb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Fb=(0,t.forwardRef)((function(e,r){var n=e.clearAlwaysVisible,o=e.InputProps,a=e.value,i=e.resettable,s=e.disabled,l=e.variant,c=e.margin,u=e.className,d=Lb(e,["clearAlwaysVisible","InputProps","value","resettable","disabled","variant","margin","className"]),p=Ps(),f=e.onChange,m=e.onFocus,h=e.onBlur,v=(0,t.useCallback)((function(e){e.preventDefault(),f("")}),[f]),g=(0,t.useCallback)((function(e){m&&m(e)}),[m]),y=(0,t.useCallback)((function(e){h&&h(e)}),[h]),b=Bb.clearButton,x=Bb.clearIcon,w=Bb.inputAdornedEnd,S=Bb.selectAdornment,O=Bb.visibleClearIcon,_=o||{},E=_.endAdornment,k=Lb(_,["endAdornment"]);if(n&&E)throw new Error("ResettableTextField cannot display both an endAdornment and a clear button always visible");return t.createElement(Wb,Nb({value:a,InputProps:Nb({classes:e.select&&"filled"===l?{adornedEnd:w}:{},endAdornment:function(){var r;return i?a?t.createElement(Ab,{position:"end",classes:{root:e.select?S:null}},t.createElement(js,{className:b,"aria-label":p("ra.action.clear_input_value"),title:p("ra.action.clear_input_value"),onClick:v,onMouseDown:zb,disabled:s,size:"large"},t.createElement(Mb.c,{className:Mn(x,(r={},r[O]=n||a,r))}))):n?t.createElement(Ab,{position:"end",classes:{root:e.select?S:null}},t.createElement(js,{className:b,"aria-label":p("ra.action.clear_input_value"),title:p("ra.action.clear_input_value"),disabled:!0,size:"large"},t.createElement(Mb.c,{className:Mn(x,O)}))):E||t.createElement(Ab,{position:"end",classes:{root:e.select?S:null}},t.createElement("span",{className:b},"\xa0")):E}()},k),disabled:s,variant:l,margin:c,className:u,size:"small"},d,{onFocus:g,onBlur:y,inputRef:r}))}));Fb.displayName="ResettableTextField";var zb=function(e){e.preventDefault()};Fb.propTypes={clearAlwaysVisible:Ln().bool,disabled:Ln().bool,InputProps:Ln().object,onBlur:Ln().func,onChange:Ln().func.isRequired,onFocus:Ln().func,resettable:Ln().bool,value:Ln().any};var Db="RaResettableTextField",Bb={clearIcon:"".concat(Db,"-clearIcon"),visibleClearIcon:"".concat(Db,"-visibleClearIcon"),clearButton:"".concat(Db,"-clearButton"),selectAdornment:"".concat(Db,"-selectAdornment"),inputAdornedEnd:"".concat(Db,"-inputAdornedEnd")},Vb=((Ib={})["& .".concat(Bb.clearIcon)]={height:16,width:0},Ib["& .".concat(Bb.visibleClearIcon)]={width:16},Ib["& .".concat(Bb.clearButton)]={height:24,width:24,padding:0},Ib["& .".concat(Bb.selectAdornment)]={position:"absolute",right:24},Ib["& .".concat(Bb.inputAdornedEnd)]={paddingRight:0},Ib),Wb=(0,Sn.cp)(Vm,{name:Db,overridesResolver:function(e,t){return t.root}})(Vb),qb=function(){return qb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qb.apply(this,arguments)},Ub="@@react-admin@@";const Hb=function(e){var r=e.error,n=r,o=Ps();if("string"===typeof r&&r.startsWith(Ub)&&(n=JSON.parse(r.substring(15))),n.message){var a=n,i=a.message,s=a.args;return t.createElement(t.Fragment,null,o(i,qb({_:i},s)))}return t.createElement(t.Fragment,null,o(n,{_:n}))};var $b=function(e){var r=e.helperText,n=e.touched,o=e.error,a=Ps();return n&&o?t.createElement(Hb,{error:o}):!1===r?null:(0,t.isValidElement)(r)?r:"string"===typeof r?t.createElement(t.Fragment,null,a(r,{_:r})):t.createElement("span",{dangerouslySetInnerHTML:Qb})},Qb={__html:"&#8203;"},Kb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Gb=function(e){e.afterSubmit,e.allowNull,e.alwaysOn,e.beforeSubmit,e.component,e.data,e.defaultValue,e.error,e.format,e.formatOnBlur,e.formClassName,e.initialValue,e.initializeForm,e.input,e.isEqual,e.isRequired,e.label,e.limitChoicesToValue,e.locale,e.meta,e.multiple,e.name,e.options,e.optionText,e.optionValue,e.parse,e.record,e.ref,e.refetch,e.render,e.resource,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.source,e.submitError,e.subscription,e.textAlign,e.translate,e.translateChoice,e.validate,e.validateFields,e.value;return Kb(e,["afterSubmit","allowNull","alwaysOn","beforeSubmit","component","data","defaultValue","error","format","formatOnBlur","formClassName","initialValue","initializeForm","input","isEqual","isRequired","label","limitChoicesToValue","locale","meta","multiple","name","options","optionText","optionValue","parse","record","ref","refetch","render","resource","setFilter","setPagination","setSort","shouldUnregister","source","submitError","subscription","textAlign","translate","translateChoice","validate","validateFields","value"])},Yb=function(){return Yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yb.apply(this,arguments)},Xb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Jb=function(e){var r=e.className,n=e.defaultValue,o=e.label,a=e.format,i=e.helperText,s=e.onBlur,l=e.onChange,c=e.parse,u=e.resource,d=e.source,p=e.validate,f=Xb(e,["className","defaultValue","label","format","helperText","onBlur","onChange","parse","resource","source","validate"]),m=xb(Yb({defaultValue:n,format:a,parse:c,resource:u,source:d,type:"text",validate:p,onBlur:s,onChange:l},f)),h=m.field,v=m.fieldState,g=v.error,y=v.invalid,b=v.isTouched,x=m.formState.isSubmitted,w=m.id,S=m.isRequired,O=!1!==i||(b||x)&&y;return t.createElement(Fb,Yb({id:w},h,{className:Mn("ra-input","ra-input-".concat(d),r),label:""!==o&&!1!==o?t.createElement(Eb,{label:o,source:d,resource:u,isRequired:S}):null,error:(b||x)&&y,helperText:O?t.createElement($b,{touched:b||x,error:null===g||void 0===g?void 0:g.message,helperText:i}):null},Gb(f)))};Jb.propTypes={className:Ln().string,label:Ln().oneOfType([Ln().string,Ln().bool,Ln().element]),resource:Ln().string,source:Ln().string};var Zb=function(e){var r=e.redirectTo,n=e.className,o=Zr(!1),a=o[0],i=o[1],s=Fv(),l=Ps(),c=Tt();return t.createElement(rx,{onSubmit:function(e){i(!0),s(e,r).then((function(){i(!1)})).catch((function(e){i(!1),c("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}))},mode:"onChange",noValidate:!0,className:n},t.createElement(Lv,{className:tx.content},t.createElement(Jb,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:$v(),fullWidth:!0}),t.createElement(Jb,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:$v(),fullWidth:!0}),t.createElement(Tl,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:tx.button},a?t.createElement(Zs,{className:tx.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},ex="RaLoginForm",tx={content:"".concat(ex,"-content"),button:"".concat(ex,"-button"),icon:"".concat(ex,"-icon")},rx=(0,Sn.cp)(sb,{name:ex,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(tx.content)]={width:300},t["& .".concat(tx.button)]={marginTop:r.spacing(2)},t["& .".concat(tx.icon)]={margin:r.spacing(.3)},t}));Zb.propTypes={redirectTo:Ln().string};var nx=function(){return nx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nx.apply(this,arguments)},ox=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ax=function(e){var r=e.children,n=void 0===r?ix:r,o=e.backgroundImage,a=ox(e,["children","backgroundImage"]),i=(0,t.useRef)(),s=!1,l=jr(),c=ee();(0,t.useEffect)((function(){l({},!1).then((function(){c("/")})).catch((function(){}))}),[l,c]);var u=function(){!s&&i.current&&(i.current.style.backgroundImage="url(".concat(o,")"),s=!0)};return(0,t.useEffect)((function(){s||function(){if(o){var e=new Image;e.onload=u,e.src=o}}()})),t.createElement(cx,nx({},a,{ref:i}),t.createElement(Rv,{className:lx.card},t.createElement("div",{className:lx.avatar},t.createElement(Bl,{className:lx.icon},t.createElement(Tv.c,null))),n))},ix=t.createElement(Zb,null),sx="RaLogin",lx={card:"".concat(sx,"-card"),avatar:"".concat(sx,"-avatar"),icon:"".concat(sx,"-icon")},cx=(0,Sn.cp)("div",{name:sx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)"})["& .".concat(lx.card)]={minWidth:300,marginTop:"6em"},t["& .".concat(lx.avatar)]={margin:"1em",display:"flex",justifyContent:"center"},t["& .".concat(lx.icon)]={backgroundColor:r.palette.secondary[500]},t}));ax.propTypes={backgroundImage:Ln().string,children:Ln().node,className:Ln().string};var ux=function(){return ux=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ux.apply(this,arguments)},dx=function(){var e=ee(),r=Or(),n=_r();return(0,t.useCallback)((function(t,o,a,i,s){if(void 0===o&&(o=""),void 0===s&&(s={}),t){if("function"===typeof t){var l=t(o,a,i),c="string"===typeof l?"".concat(r,"/").concat(l):ux({pathname:"".concat(r,"/").concat(l.pathname)},l);return void e("string"===typeof c?Ae(c):c,{state:ux({_scrollToTop:!0},s)})}return"string"===typeof t&&t.startsWith("http")&&window?void(window.location.href=t):void e(n({resource:o,id:a,type:t}),{state:ux({_scrollToTop:!0},s)})}}),[e,r,n])},px=function(){return px=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},px.apply(this,arguments)},fx="@react-admin/nextPathname",mx=function(){return mx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mx.apply(this,arguments)},hx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vx=function(e){var r=e.className,n=e.title,o=void 0===n?"ra.page.error":n,a=e.message,i=void 0===a?"ra.message.auth_error":a,s=hx(e,["className","title","message"]),l=Ps();return t.createElement(bx,mx({className:r},s),t.createElement("div",{className:yx.message},t.createElement("h1",null,l(o,{_:o})),t.createElement("div",null,l(i,{_:i})),t.createElement(gh,{component:ap,to:"/login",label:"ra.auth.sign_in"},t.createElement(Tv.c,null))))};vx.propTypes={className:Ln().string,title:Ln().string,message:Ln().string};var gx="RaAuthError",yx={root:"".concat(gx,"-root"),message:"".concat(gx,"-message")},bx=(0,Sn.cp)("div",{name:gx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center"})[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("xl")]={height:"100vh",marginTop:"-3em"},t["& .".concat(yx.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t})),xx=function(){var e=function(e){var t=Sr(),r=dx(),n=J().state,o=n&&n.nextPathname,a=n&&n.nextSearch,i=o?o+a:"/";return(0,d.useQuery)(["auth","handleCallback"],(function(){return t.handleCallback()}),px({retry:!1,onSuccess:function(e){var t,n=localStorage.getItem(fx),o=null!==(t=null===e||void 0===e?void 0:e.redirectTo)&&void 0!==t?t:n;!1!==o&&r(null!==o&&void 0!==o?o:i)}},e))}().error;return e?t.createElement(vx,{message:e?e.message:void 0}):t.createElement(Ih,null)},wx=function(){return wx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wx.apply(this,arguments)},Sx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Ox=function(e){var r=e.layout,n=void 0===r?Dh:r,o=e.catchAll,a=void 0===o?$h:o,i=e.loading,s=void 0===i?ev:i,l=e.loginPage,c=void 0===l?ax:l,u=e.authCallbackPage,d=void 0===u?xx:u,p=e.notification,f=void 0===p?Sv:p,m=Sx(e,["layout","catchAll","loading","loginPage","authCallbackPage","notification"]);return t.createElement(Tn,{enableColorScheme:!0},t.createElement(vn,wx({layout:n,catchAll:a,loading:s,loginPage:c,authCallbackPage:d},m)),(0,t.createElement)(f))};const _x={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:"\u2003"},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",are_you_sure:"Are you sure?",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update this %{name}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this item?",delete_title:"Delete %{name} #%{id}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",yes:"Yes",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?"},navigation:{no_results:"No results found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}};var Ex=r(540),kx=r.n(Ex),jx=function(){return jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jx.apply(this,arguments)};const Cx=function(e,t,r,n){void 0===t&&(t="en"),void 0===r&&(r=[{locale:"en",name:"English"}]),void 0===n&&(n={});var o,a,i=t,s=e(t);if(s instanceof Promise)throw new Error("The i18nProvider returned a Promise for the messages of the default locale (".concat(t,"). Please update your i18nProvider to return the messages of the default locale in a synchronous way."));Array.isArray(r)?(o=r,a=n):(o=[{locale:"en",name:"English"}],a=r);var l=new(kx())(jx({locale:i,phrases:jx({"":""},s)},a)),c=l.t.bind(l);return{translate:function(e,t){return void 0===t&&(t={}),c(e,t)},changeLocale:function(t){return Promise.resolve(e(t)).then((function(e){i=t;var r=new(kx())(jx({locale:t,phrases:jx({"":""},e)},n));c=r.t.bind(r)}))},getLocale:function(){return i},getLocales:function(){return o}}};var Px=Cx((function(){return _x}),"en",[{name:"en",value:"English"}],{allowMissing:!0}),Rx=function(e,t){void 0===e&&(e="1"),void 0===t&&(t="");var r="".concat("RaStore").concat(t),n=r.length,o={},a=function(e,t){Object.keys(o).forEach((function(r){o[r]&&o[r].key===e&&o[r].callback(t)}))},i=function(e){var t;if((null===(t=e.key)||void 0===t?void 0:t.substring(0,n))===r){var a=e.key.substring(n+1),i=e.newValue?l(e.newValue):void 0;Object.keys(o).forEach((function(e){o[e]&&o[e].key===a&&(null===i?o[e].callback(void 0):o[e].callback(null==i?void 0:i))}))}};return{setup:function(){if(s){var t=u().getItem("".concat(r,".version"));if(t&&t!==e){var n=u();Object.keys(n).forEach((function(e){e.startsWith(r)&&n.removeItem(e)}))}u().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){s&&window.removeEventListener("storage",i)},getItem:function(e,t){var n=u().getItem("".concat(r,".").concat(e));return null==n?t:l(n)},setItem:function(e,t){void 0===t?u().removeItem("".concat(r,".").concat(e)):u().setItem("".concat(r,".").concat(e),JSON.stringify(t)),a(e,t)},removeItem:function(e){u().removeItem("".concat(r,".").concat(e)),a(e,void 0)},removeItems:function(e){var t=u();Object.keys(t).forEach((function(o){if(o.startsWith("".concat(r,".").concat(e))){t.removeItem(o);var i=o.substring(n+1);a(i,void 0)}}))},reset:function(){var e=u();Object.keys(e).forEach((function(t){if(t.startsWith(r)){e.removeItem(t);var o=t.substring(n+1);a(o,void 0)}}))},subscribe:function(e,t){var r=Math.random().toString();return o[r]={key:e,callback:t},function(){delete o[r]}}}}(),Tx=function(e){var r=e.authProvider,n=e.basename,o=e.catchAll,a=e.children,i=e.dashboard,s=e.dataProvider,l=e.disableTelemetry,c=e.history,u=e.i18nProvider,d=void 0===u?Px:u,p=e.layout,f=e.loading,m=e.loginPage,h=e.authCallbackPage,v=e.menu,g=e.notification,y=e.queryClient,b=e.requireAuth,x=e.store,w=void 0===x?Rx:x,S=e.ready,O=e.theme,_=e.lightTheme,E=e.darkTheme,k=e.defaultTheme,j=e.title,C=void 0===j?"React Admin":j;return t.createElement(br,{authProvider:r,basename:n,dataProvider:s,i18nProvider:d,store:w,history:c,queryClient:y,theme:O,lightTheme:_,darkTheme:E,defaultTheme:k},t.createElement(Ox,{layout:p,dashboard:i,disableTelemetry:l,menu:v,catchAll:o,title:C,loading:f,loginPage:m,authCallbackPage:h,notification:g,requireAuth:b,ready:S},a))};var Ax=function(e){return null};Ax.raName="CustomRoutes";var Ix=function(e){var r=e.children,n=e.value;return n?t.createElement(By.Provider,{value:n},r):r},Mx=function(e){var r=e.create,n=e.edit,o=e.list,a=e.name,i=e.show;return t.createElement(Ix,{value:a},t.createElement(xe,null,r&&t.createElement(ye,{path:"create/*",element:Nx(r)}),i&&t.createElement(ye,{path:":id/show/*",element:Nx(i)}),n&&t.createElement(ye,{path:":id/*",element:Nx(n)}),o&&t.createElement(ye,{path:"/*",element:Nx(o)}),e.children))},Nx=function(e){return(0,t.isValidElement)(e)?e:(0,oo.isValidElementType)(e)?t.createElement(e,null):null};Mx.raName="Resource",Mx.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,l=e.recordRepresentation,c=e.hasCreate,u=e.hasEdit,d=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!c,hasEdit:!!r||!!u,hasShow:!!s||!!d,icon:n,recordRepresentation:l}};var Lx=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fx=function(e){function t(r,n,o){void 0===o&&(o=null);var a=e.call(this,r)||this;return a.message=r,a.status=n,a.body=o,Object.setPrototypeOf(a,t.prototype),a.name=a.constructor.name,"function"===typeof Error.captureStackTrace?Error.captureStackTrace(a,a.constructor):a.stack=new Error(r).stack,a.stack=(new Error).stack,a}return Lx(t,e),t}(Error);const zx=Fx;var Dx=r(2184),Bx=function(){return Bx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bx.apply(this,arguments)},Vx=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Wx=function(e,t){void 0===t&&(t={});var r=function(e){var t=e.headers||new Headers({Accept:"application/json"}),r=e&&e.body,n=t.has("Content-Type"),o=!(null===e||void 0===e?void 0:e.method)||"GET"===(null===e||void 0===e?void 0:e.method),a=(null===e||void 0===e?void 0:e.body)instanceof FormData;return r&&!n&&!o&&!a&&t.set("Content-Type","application/json"),e.user&&e.user.authenticated&&e.user.token&&t.set("Authorization",e.user.token),t}(t);return fetch(e,Bx(Bx({},t),{headers:r})).then((function(e){return e.text().then((function(t){return{status:e.status,statusText:e.statusText,headers:e.headers,body:t}}))})).then((function(e){var t,r=e.status,n=e.statusText,o=e.headers,a=e.body;try{t=JSON.parse(a)}catch(eB){}return r<200||r>=300?Promise.reject(new zx(t&&t.message||n,r,t)):Promise.resolve({status:r,headers:o,body:a,json:t})}))},qx=function(e,t){var r;return void 0===t&&(t=[]),function(e){if(!e)return!1;var t=Array.isArray(e),r="undefined"!==typeof Buffer&&Buffer.isBuffer(e),n="[object Object]"===Object.prototype.toString.call(e),o=!!Object.keys(e).length;return!t&&!r&&n&&o}(e)?Object.assign.apply(Object,Vx([{}],Object.keys(e).map((function(r){return qx(e[r],t.concat([r]))})),!1)):t.length?((r={})[t.join(".")]=e,r):e};const Ux={login:e=>{let{base_url:t,username:r,password:n,loginToken:o}=e;t={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:""}.REACT_APP_SERVER||t,console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},o?{type:"m.login.token",token:o}:{type:"m.login.password",user:r,password:n}))};t=t.replace(/\/+$/g,""),localStorage.setItem("base_url",t);const i=window.decodeURIComponent(t);return Wx(i+"/_matrix/client/r0/login",a).then((e=>{let{json:t}=e;localStorage.setItem("home_server",t.home_server),localStorage.setItem("user_id",t.user_id),localStorage.setItem("access_token",t.access_token),localStorage.setItem("device_id",t.device_id)}))},logout:()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:"Bearer ".concat(t)}};return"string"===typeof t&&Wx(e,r).then((e=>{let{json:t}=e;localStorage.removeItem("access_token")})),Promise.resolve()},checkError:e=>{let{status:t}=e;return console.log("checkError "+t),401===t||403===t?Promise.reject():Promise.resolve()},checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),"string"===typeof e?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Hx=Ux,$x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=localStorage.getItem("access_token");return console.log("httpClient "+e),null!=r&&(t.user={authenticated:!0,token:"Bearer ".concat(r)}),Wx(e,t)},Qx=e=>{const t=localStorage.getItem("base_url");var r=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+r),null==r)return null;const n=r[1],o=r[2];return"".concat(t,"/_matrix/media/r0/thumbnail/").concat(n,"/").concat(o,"?width=24&height=24&method=scale")},Kx={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:Qx(e.avatar_url),is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:1e3*e.creation_ts}),data:"users",total:e=>e.total,create:e=>({endpoint:"/_synapse/admin/v2/users/@".concat(encodeURIComponent(e.id),":").concat(localStorage.getItem("home_server")),body:e,method:"PUT"}),delete:e=>({endpoint:"/_synapse/admin/v1/deactivate/".concat(encodeURIComponent(e.id)),body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:"/_synapse/admin/v2/rooms/".concat(e.id),body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e,id:e.id}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:"/_synapse/admin/v2/users/".concat(encodeURIComponent(e),"/devices")}),delete:e=>({endpoint:"/_synapse/admin/v2/users/".concat(encodeURIComponent(e.previousData.user_id),"/devices/").concat(e.id)})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/members")}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/state")}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/pushers")}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/joined_rooms")}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/media")}),data:"media",total:e=>e.total,delete:e=>({endpoint:"/_synapse/admin/v1/media/".concat(localStorage.getItem("home_server"),"/").concat(e.id)})},delete_media:{delete:e=>({endpoint:"/_synapse/admin/v1/media/".concat(localStorage.getItem("home_server"),"/delete?before_ts=").concat(e.meta.before_ts,"&size_gt=").concat(e.meta.size_gt,"&keep_profiles=").concat(e.meta.keep_profiles),method:"POST"})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:"/_synapse/admin/v1/media/protect/".concat(e.media_id),method:"POST"}),delete:e=>({endpoint:"/_synapse/admin/v1/media/unprotect/".concat(e.id),method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:"/_synapse/admin/v1/media/quarantine/".concat(localStorage.getItem("home_server"),"/").concat(e.media_id),method:"POST"}),delete:e=>({endpoint:"/_synapse/admin/v1/media/unquarantine/".concat(localStorage.getItem("home_server"),"/").concat(e.id),method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/forward_extremities")}),data:"results",total:e=>e.count,delete:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e.id,"/forward_extremities")})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:Qx(e.avatar_url)}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:"/_matrix/client/r0/directory/list/room/".concat(e.id),body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:"/_matrix/client/r0/directory/list/room/".concat(e.id),body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:"/_synapse/admin/v1/federation/destinations/".concat(e.id,"/reset_connection"),method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:"/_synapse/admin/v1/federation/destinations/".concat(e,"/rooms")}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/".concat(e.id)})}};function Gx(e,t){if(null!==t||"user_type"===e)return t}function Yx(e){return"DESC"===e?"b":"f"}const Xx={getList:(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:l}=t.filter,{page:c,perPage:u}=t.pagination,{field:d,order:p}=t.sort,f=(c-1)*u,m={from:f,limit:u,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:l,order_by:d,dir:Yx(p)},h=localStorage.getItem("base_url");if(!h||!(e in Kx))return Promise.reject();const v=Kx[e],g=h+v.path,y="".concat(g,"?").concat((0,Dx.stringify)(m));return $x(y).then((e=>{let{json:t}=e;return{data:t[v.data].map(v.map),total:v.total(t,f,u)}}))},getOne:(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e],o=r+n.path;return $x("".concat(o,"/").concat(encodeURIComponent(t.id))).then((e=>{let{json:t}=e;return{data:n.map(t)}}))},getMany:(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e],o=r+n.path;return Promise.all(t.ids.map((e=>$x("".concat(o,"/").concat(encodeURIComponent(e)))))).then((e=>({data:e.map((e=>{let{json:t}=e;return n.map(t)})),total:e.length})))},getManyReference:(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:Yx(a)},l=localStorage.getItem("base_url");if(!l||!(e in Kx))return Promise.reject();const c=Kx[e],u=c.reference(t.id),d="".concat(l).concat(u.endpoint,"?").concat((0,Dx.stringify)(s));return $x(d).then((e=>{let{headers:t,json:r}=e;return{data:r[c.data].map(c.map),total:c.total(r,i,n)}}))},update:(e,t)=>{console.log("update "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e],o=r+n.path;return $x("".concat(o,"/").concat(encodeURIComponent(t.id)),{method:"PUT",body:JSON.stringify(t.data,Gx)}).then((e=>{let{json:t}=e;return{data:n.map(t)}}))},updateMany:(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=r+Kx[e].path;return Promise.all(t.ids.map((e=>$x("".concat(n,"/").concat(encodeURIComponent(e)))),{method:"PUT",body:JSON.stringify(t.data,Gx)})).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))})))},create:(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint;return $x(a,{method:o.method,body:JSON.stringify(o.body,Gx)}).then((e=>{let{json:t}=e;return{data:n.map(t)}}))},createMany:(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e];return"create"in n?Promise.all(t.ids.map((e=>{t.data.id=e;const o=n.create(t.data),a=r+o.endpoint;return $x(a,{method:o.method,body:JSON.stringify(o.body,Gx)})}))).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))}))):Promise.reject()},delete:(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e];if("delete"in n){const e=n.delete(t),o=r+e.endpoint;return $x(o,{method:"method"in e?e.method:"DELETE",body:"body"in e?JSON.stringify(e.body):null}).then((e=>{let{json:t}=e;return{data:t}}))}{const e=r+n.path;return $x("".concat(e,"/").concat(t.id),{method:"DELETE",body:JSON.stringify(t.previousData,Gx)}).then((e=>{let{json:t}=e;return{data:t}}))}},deleteMany:(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in Kx))return Promise.reject();const n=Kx[e];if("delete"in n)return Promise.all(t.ids.map((e=>{const o=n.delete({...t,id:e}),a=r+o.endpoint;return $x(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null})}))).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))})));{const e=r+n.path;return Promise.all(t.ids.map((r=>$x("".concat(e,"/").concat(r),{method:"DELETE",body:JSON.stringify(t.data,Gx)})))).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))})))}}},Jx=Xx;var Zx=r(4148),ew=r(9592),tw=r(9364),rw=r(1876),nw=r(4232),ow=r(836),aw=r(588),iw=r(8640),sw=r(7596),lw=function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lw.apply(this,arguments)},cw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uw=function(e){var r=fr((function(e){return e.breakpoints.down("sm")}));return t.createElement(pw,lw({disableGutters:!0,variant:r?"regular":"dense"},fw(e)))};uw.propTypes={children:Ln().node,className:Ln().string};const dw=uw;var pw=(0,Sn.cp)(Vn,{name:"RaTopToolbar",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:r.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",padding:r.spacing(.5),paddingBottom:r.spacing(1)})[r.breakpoints.down("md")]={flex:"0 1 100%"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,padding:0,paddingBottom:0},t})),fw=function(e){e.hasCreate;return cw(e,["hasCreate"])},mw=["getList","getMany","getManyReference"],hw=function(){var e=(0,t.useContext)(at)||qe,r=qr(),n=(0,t.useMemo)((function(){return new Proxy(e,{get:function(t,n){if("symbol"!==typeof n&&"then"!==n)return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var a=n.toString();if("function"!==typeof e[a])throw new Error("Unknown dataProvider function: ".concat(a));try{return e[a].apply(e,t).then((function(e){return e})).catch((function(e){return r(e).then((function(t){if(t)return{data:mw.includes(a)?[]:{}};throw e}))}))}catch(eB){throw new Error("The dataProvider threw an error. It should return a rejected Promise instead.")}}}})}),[e,r]);return n},vw=function(){return vw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vw.apply(this,arguments)};function gw(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}var yw=function(e,t){if(gw(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!gw(e[r[o]],t[r[o]]))return!1;return!0},bw=function(){return bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bw.apply(this,arguments)},xw=function(e){return Object.keys(e).reduce((function(t,r){var n,o,a=e[r];return(o=e[r])&&"[object Object]"===Object.prototype.toString.call(o)&&(a=xw(e[r])),function(e){return!(e instanceof Date)&&(""===e||null===e||void 0===e||yw(e,{}))}(a)?t:bw(bw({},t),((n={})[r]=a,n))}),{})};const ww=xw;var Sw=function(e,t){return Object.keys(e).reduce((function(r,n){var o;return n!==t?Object.assign({},r,((o={})[n]=e[n],o)):r}),{})},Ow=function(e,t){var r,n=t.split(".");if(1===n.length)return Sw(e,t);var o=n[0];if(void 0===e[o])return e;var a=Ow(e[o],n.slice(1).join("."));return 0===Object.keys(a).length?Sw(e,o):Object.assign({},e,((r={})[o]=a,r))};const _w=Ow;var Ew=function(){return Ew=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ew.apply(this,arguments)},kw="SET_SORT",jw="ASC",Cw="DESC",Pw="SET_PAGE",Rw="SET_PER_PAGE",Tw="SET_FILTER",Aw="SHOW_FILTER",Iw="HIDE_FILTER";const Mw=function(e,t){var r,n;switch(t.type){case kw:return t.payload.field===e.sort?Ew(Ew({},e),{order:(n=e.order,n===Cw?jw:Cw),page:1}):Ew(Ew({},e),{sort:t.payload.field,order:t.payload.order||jw,page:1});case Pw:return Ew(Ew({},e),{page:t.payload});case Rw:return Ew(Ew({},e),{page:1,perPage:t.payload});case Tw:return Ew(Ew({},e),{page:1,filter:t.payload.filter,displayedFilters:t.payload.displayedFilters?t.payload.displayedFilters:e.displayedFilters});case Aw:return e.displayedFilters&&e.displayedFilters[t.payload.filterName]?e:Ew(Ew({},e),{filter:"undefined"!==typeof t.payload.defaultValue?st()(e.filter,t.payload.filterName,t.payload.defaultValue):e.filter,displayedFilters:Ew(Ew({},e.displayedFilters),(r={},r[t.payload.filterName]=!0,r))});case Iw:return Ew(Ew({},e),{filter:ww(_w(e.filter,t.payload)),displayedFilters:e.displayedFilters?Object.keys(e.displayedFilters).reduce((function(e,r){var n;return r!==t.payload?Ew(Ew({},e),((n={})[r]=!0,n)):e}),{}):e.displayedFilters});default:return e}};var Nw=r(640),Lw=r.n(Nw);const Fw=function(e,t,r,n){return Lw()(e,(function(e,t){return function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())}(t,n)}))};var zw=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Dw=function(e){var r="".concat(e,".selectedIds"),n=Ct(r,Bw),o=n[0],a=n[1],i=function(e){var r=jt().removeItem;return(0,t.useCallback)((function(t){if("undefined"===typeof t&&"undefined"===typeof e)throw new Error("You must provide a key to remove an item from the store");return r(null!==t&&void 0!==t?t:e)}),[r,e])}(r),s=(0,t.useMemo)((function(){return{select:function(e){e&&a(zw([],e,!0))},unselect:function(e){e&&0!==e.length&&a((function(t){return Array.isArray(t)?t.filter((function(t){return!e.includes(t)})):[]}))},toggle:function(e){"undefined"!==typeof e&&a((function(t){if(!Array.isArray(t))return zw([],t,!0);var r=t.indexOf(e);return r>-1?zw(zw([],t.slice(0,r),!0),t.slice(r+1),!0):zw(zw([],t,!0),[e],!1)}))},clearSelection:function(){i()}}}),[a,i]);return[o,s]},Bw=[],Vw=r(4888),Ww=r.n(Vw),qw=r(6696),Uw=r.n(qw),Hw=function(){return Hw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hw.apply(this,arguments)},$w=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Qw=function(e){var r=e.debounce,n=void 0===r?500:r,o=e.disableSyncWithLocation,a=void 0!==o&&o,i=e.filterDefaultValues,s=e.perPage,l=void 0===s?10:s,c=e.resource,u=e.sort,d=void 0===u?eS:u,p=e.storeKey,f=void 0===p?"".concat(c,".listParams"):p,m=J(),h=ee(),v=(0,t.useState)(tS),g=v[0],y=v[1],b=Ct(f||"".concat(c,".listParams"),tS),x=b[0],w=b[1],S=(0,t.useRef)(),O=function(){var e=(0,t.useRef)(!0);return(0,t.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),_=!1===f,E=[m.search,c,f,JSON.stringify(a||_?g:x),JSON.stringify(i),JSON.stringify(d),l,a],k=a?{}:Yw(m),j=(0,t.useMemo)((function(){return Xw({queryFromLocation:k,params:a||_?g:x,filterDefaultValues:i,sort:d,perPage:l})}),E);(0,t.useEffect)((function(){Object.keys(k).length>0&&!_&&w(j)}),[m.search]);var C=(0,t.useCallback)((function(e){O.current&&(S.current?S.current=Mw(S.current,e):(S.current=Mw(j,e),setTimeout((function(){a?y(S.current):h({search:"?".concat((0,Dx.stringify)(Hw(Hw({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:e.type===Pw}}),S.current=void 0}),0)))}),$w($w([],E,!0),[h],!1)),P=(0,t.useCallback)((function(e){return C({type:kw,payload:e})}),[C]),R=(0,t.useCallback)((function(e){return C({type:Pw,payload:e})}),[C]),T=(0,t.useCallback)((function(e){return C({type:Rw,payload:e})}),[C]),A=j.filter||Zw,I=j.displayedFilters||Zw,M=Ww()((function(e,t){C({type:Tw,payload:{filter:ww(e),displayedFilters:t}})}),n),N=(0,t.useCallback)((function(e,t,r){return void 0===r&&(r=!0),r?M(e,t):C({type:Tw,payload:{filter:ww(e),displayedFilters:t}})}),[C]),L=(0,t.useCallback)((function(e){C({type:Iw,payload:e})}),[C]),F=(0,t.useCallback)((function(e,t){C({type:Aw,payload:{filterName:e,defaultValue:t}})}),[C]);return[Hw({displayedFilters:I,filterValues:A,requestSignature:E},j),{changeParams:C,setPage:R,setPerPage:T,setSort:P,setFilters:N,hideFilter:L,showFilter:F}]},Kw=["page","perPage","sort","order","filter","displayedFilters"],Gw=function(e,t){if(e[t]&&"string"===typeof e[t])try{e[t]=JSON.parse(e[t])}catch(r){delete e[t]}},Yw=function(e){var t=e.search,r=Uw()((0,Dx.parse)(t),(function(e,t){return-1!==Kw.indexOf(t)}));return Gw(r,"filter"),Gw(r,"displayedFilters"),r},Xw=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||null!=e.order||1!==e.page||null!=e.perPage||null!=e.sort)}(r)?Hw({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),null==i.perPage&&(i.perPage=a),null==i.page&&(i.page=1),Hw(Hw({},i),{page:Jw(i.page,1),perPage:Jw(i.perPage,10)})},Jw=function(e,t){var r="string"===typeof e?parseInt(e,10):e;return isNaN(r)?t:r},Zw={},eS={field:"id",order:jw},tS={},rS=function(){return rS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rS.apply(this,arguments)},nS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},oS=function(e){void 0===e&&(e={});var r=e.debounce,n=void 0===r?500:r,o=e.disableAuthentication,a=e.disableSyncWithLocation,i=e.exporter,s=void 0===i?Fw:i,l=e.filter,c=e.filterDefaultValues,u=e.perPage,p=void 0===u?10:u,f=e.queryOptions,m=void 0===f?{}:f,h=e.sort,v=void 0===h?aS:h,g=e.storeKey;Fr({enabled:!o});var y=Vy(e),b=m.meta,x=nS(m,["meta"]);if(!y)throw new Error("<List> was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(l&&(0,t.isValidElement)(l))throw new Error("<List> received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var w=Ps(),S=Tt(),O=Qw({debounce:n,disableSyncWithLocation:a,filterDefaultValues:c,perPage:p,resource:y,sort:v,storeKey:g}),_=O[0],E=O[1],k=Dw(y),j=k[0],C=k[1],P=function(e,r,n){void 0===r&&(r={});var o=r.pagination,a=void 0===o?{page:1,perPage:25}:o,i=r.sort,s=void 0===i?{field:"id",order:"DESC"}:i,l=r.filter,c=void 0===l?{}:l,u=r.meta,p=hw(),f=(0,d.useQueryClient)(),m=(0,d.useQuery)([e,"getList",{pagination:a,sort:s,filter:c,meta:u}],(function(){return p.getList(e,{pagination:a,sort:s,filter:c,meta:u}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}}))}),vw(vw({},n),{onSuccess:function(t){(null===t||void 0===t?void 0:t.data)&&t.data.length<=100&&t.data.forEach((function(t){f.setQueryData([e,"getOne",{id:String(t.id),meta:u}],(function(e){return null!==e&&void 0!==e?e:t}))})),(null===n||void 0===n?void 0:n.onSuccess)&&n.onSuccess(t)}}));return(0,t.useMemo)((function(){var e,t,r;return m.data?vw(vw({},m),{data:null===(e=m.data)||void 0===e?void 0:e.data,total:null===(t=m.data)||void 0===t?void 0:t.total,pageInfo:null===(r=m.data)||void 0===r?void 0:r.pageInfo}):m}),[m])}(y,{pagination:{page:_.page,perPage:_.perPage},sort:{field:_.sort,order:_.order},filter:rS(rS({},_.filter),l),meta:b},rS({keepPreviousData:!0,retry:!1,onError:function(e){return S((null===e||void 0===e?void 0:e.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:null===e||void 0===e?void 0:e.message}})}},x)),R=P.data,T=P.pageInfo,A=P.total,I=P.error,M=P.isLoading,N=P.isFetching,L=P.refetch;(0,t.useEffect)((function(){if(_.page<=0||!N&&_.page>1&&(null==R||0===(null===R||void 0===R?void 0:R.length)))E.setPage(1);else if(null!=A){var e=Math.ceil(A/_.perPage)||1;!N&&_.page>e&&E.setPage(e)}}),[N,_.page,_.perPage,R,E,A]);var F=(0,t.useMemo)((function(){return{field:_.sort,order:_.order}}),[_.sort,_.order]),z=w("ra.page.list",{name:Sp()(y,2)});return{sort:F,data:R,defaultTitle:z,displayedFilters:_.displayedFilters,error:I,exporter:s,filter:l,filterValues:_.filterValues,hideFilter:E.hideFilter,isFetching:N,isLoading:M,onSelect:C.select,onToggleItem:C.toggle,onUnselectItems:C.clearSelection,page:_.page,perPage:_.perPage,refetch:L,resource:y,selectedIds:j,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:A,hasNextPage:T?T.hasNextPage:null!=A?_.page*_.perPage<A:void 0,hasPreviousPage:T?T.hasPreviousPage:_.page>1}},aS={field:"id",order:jw},iS=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],sS=function(e){return Object.keys(e).filter((function(e){return!iS.includes(e)})).reduce((function(t,r){var n;return rS(rS({},t),((n={})[r]=e[r],n))}),{})},lS=r(8420);function cS(e){return(0,kn.cp)("MuiFab",e)}const uS=(0,En.c)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),dS=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],pS=(0,Sn.cp)(ws,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,Wn.c)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,Wn.c)(r.size)],t[r.color]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;return(0,Oe.c)({},t.typography.button,{minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},["&.".concat(uS.focusVisible)]:{boxShadow:(t.vars||t).shadows[6]}},"small"===r.size&&{width:40,height:40},"medium"===r.size&&{width:48,height:48},"extended"===r.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===r.variant&&"small"===r.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===r.variant&&"medium"===r.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===r.color&&{color:"inherit"})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},"inherit"!==r.color&&"default"!==r.color&&null!=(t.vars||t).palette[r.color]&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}})}),(e=>{let{theme:t}=e;return{["&.".concat(uS.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}})),fS=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiFab"}),{children:n,className:o,color:a="default",component:i="button",disabled:s=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:u="large",variant:d="circular"}=r,p=(0,Kt.c)(r,dS),f=(0,Oe.c)({},r,{color:a,component:i,disabled:s,disableFocusRipple:l,size:u,variant:d}),m=(e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,"size".concat((0,Wn.c)(o)),"inherit"===t?"colorInherit":t]},i=(0,xn.c)(a,cS,n);return(0,Oe.c)({},n,i)})(f);return(0,Jt.jsx)(pS,(0,Oe.c)({className:(0,bn.c)(m.root,o),component:i,disabled:s,focusRipple:!l,focusVisibleClassName:(0,bn.c)(m.focusVisible,c),ownerState:f,ref:t},p,{classes:m,children:n}))})),mS=fS;var hS=function(){return hS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hS.apply(this,arguments)},vS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gS=function(e){var r=e.className,n=e.icon,o=void 0===n?bS:n,a=e.label,s=void 0===a?"ra.action.create":a,l=(e.resource,e.scrollToTop),c=void 0===l||l,u=e.variant,d=e.to,p=e.state,f=void 0===p?{}:p,m=vS(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),h=Vy(e),v=_r(),g=Ps(),y=fr((function(e){return e.breakpoints.down("md")})),b=i()({},yS.get(String(c)),f),x=ES(d);return y?t.createElement(SS,hS({component:ap,to:v({resource:h,type:"create"}),state:b,color:"primary",className:Mn(wS.floating,r),"aria-label":s&&g(s)},m,x),o):t.createElement(OS,hS({component:ap,to:v({resource:h,type:"create"}),state:b,className:Mn(wS.root,r),label:s,variant:u},m,x),o)},yS=new Map([["true",{_scrollToTop:!0}],["false",{}]]),bS=t.createElement(lS.c,null);gS.propTypes={resource:Ln().string,className:Ln().string,icon:Ln().element,label:Ln().string};var xS="RaCreateButton",wS={root:"".concat(xS,"-root"),floating:"".concat(xS,"-floating")},SS=(0,Sn.cp)(mS,{name:xS,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["&.".concat(wS.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t})),OS=(0,Sn.cp)(gh,{name:xS,overridesResolver:function(e,t){return t.root}})({});const _S=t.memo(gS,(function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&_t()(e.to,t.to)&&_t()(e.state,t.state)}));var ES=function(e){if(void 0!=e){if("string"===typeof e)return{to:e};var t=e.redirect,r=e.replace,n=e.state;return{to:vS(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},kS=r(9968),jS=r.n(kS),CS=(0,t.createContext)({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});CS.displayName="ListContext";var PS=function(e){var r=(0,t.useContext)(CS);return(0,t.useMemo)((function(){return jS()({},null!=e?RS(e):{},r)}),[r,e])},RS=function(e){return{sort:e.sort,data:e.data,defaultTitle:e.defaultTitle,displayedFilters:e.displayedFilters,exporter:e.exporter,filterValues:e.filterValues,hasCreate:e.hasCreate,hideFilter:e.hideFilter,isFetching:e.isFetching,isLoading:e.isLoading,onSelect:e.onSelect,onToggleItem:e.onToggleItem,onUnselectItems:e.onUnselectItems,page:e.page,perPage:e.perPage,refetch:e.refetch,resource:e.resource,selectedIds:e.selectedIds,setFilters:e.setFilters,setPage:e.setPage,setPerPage:e.setPerPage,setSort:e.setSort,showFilter:e.showFilter,total:e.total}},TS=function(e,t){return Array.from(new Set(e.filter((function(e){return null!=e[t]})).map((function(e){return e[t]})).reduce((function(e,t){return e.concat(t)}),[])))};const AS=function(e){return function(t,r,n){return e.getMany(n,{ids:TS(t,r)}).then((function(e){return e.data.reduce((function(e,t){return e[t.id]=t,e}),{})}))}};var IS=function(){return IS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},IS.apply(this,arguments)},MS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},NS=function(e){var r=e.maxResults,n=void 0===r?1e3:r,o=e.onClick,a=e.label,i=void 0===a?"ra.action.export":a,s=e.icon,l=void 0===s?LS:s,c=e.exporter,u=e.meta,d=MS(e,["maxResults","onClick","label","icon","exporter","meta"]),p=PS(e),f=p.filter,m=p.filterValues,h=p.sort,v=p.exporter,g=p.total,y=Vy(e),b=c||v,x=hw(),w=Tt(),S=(0,t.useCallback)((function(e){x.getList(y,{sort:h,filter:f?IS(IS({},m),f):m,pagination:{page:1,perPage:n},meta:u}).then((function(e){var t=e.data;return b&&b(t,AS(x),x,y)})).catch((function(e){console.error(e),w("ra.notification.http_error",{type:"error"})})),"function"===typeof o&&o(e)}),[x,b,f,m,n,w,o,y,h,u]);return t.createElement(gh,IS({onClick:S,label:i,disabled:0===g},FS(d)),l)},LS=t.createElement(rw.c,null),FS=function(e){e.filterValues,e.resource;return MS(e,["filterValues","resource"])};NS.propTypes={exporter:Ln().func,filterValues:Ln().object,label:Ln().string,maxResults:Ln().number,resource:Ln().string,sort:Ln().exact({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),icon:Ln().element,meta:Ln().any};const zS=t.createContext();const DS=t.createContext();function BS(e){return(0,kn.cp)("MuiTableCell",e)}const VS=(0,En.c)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),WS=["align","className","component","padding","scope","size","sortDirection","variant"],qS=(0,Sn.cp)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,Wn.c)(r.size))],"normal"!==r.padding&&t["padding".concat((0,Wn.c)(r.padding))],"inherit"!==r.align&&t["align".concat((0,Wn.c)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,qn.IV)((0,qn.W4)(t.palette.divider,1),.88):(0,qn.sP)((0,qn.W4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(VS.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),US=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:d}=n,p=(0,Kt.c)(n,WS),f=t.useContext(zS),m=t.useContext(DS),h=m&&"head"===m.variant;let v;v=i||(h?"th":"td");let g=l;"td"===v?g=void 0:!g&&h&&(g="col");const y=d||m&&m.variant,b=(0,Oe.c)({},n,{align:o,component:v,padding:s||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&f&&f.stickyHeader,variant:y}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,Wn.c)(n)),"normal"!==o&&"padding".concat((0,Wn.c)(o)),"size".concat((0,Wn.c)(a))]};return(0,xn.c)(s,BS,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,Jt.jsx)(qS,(0,Oe.c)({as:v,ref:r,className:(0,bn.c)(x.root,a),"aria-sort":w,scope:g,ownerState:b},p))})),HS=US,$S=(0,Al.c)((0,Jt.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),QS=(0,Al.c)((0,Jt.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),KS=(0,Al.c)((0,Jt.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),GS=(0,Al.c)((0,Jt.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),YS=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],XS=t.forwardRef((function(e,t){var r,n,o,a,i,s,l,c;const{backIconButtonProps:u,count:d,disabled:p=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:h,page:v,rowsPerPage:g,showFirstButton:y,showLastButton:b,slots:x={},slotProps:w={}}=e,S=(0,Kt.c)(e,YS),O=po(),_=null!=(r=x.firstButton)?r:js,E=null!=(n=x.lastButton)?n:js,k=null!=(o=x.nextButton)?o:js,j=null!=(a=x.previousButton)?a:js,C=null!=(i=x.firstButtonIcon)?i:GS,P=null!=(s=x.lastButtonIcon)?s:KS,R=null!=(l=x.nextButtonIcon)?l:QS,T=null!=(c=x.previousButtonIcon)?c:$S,A="rtl"===O.direction?E:_,I="rtl"===O.direction?k:j,M="rtl"===O.direction?j:k,N="rtl"===O.direction?_:E,L="rtl"===O.direction?w.lastButton:w.firstButton,F="rtl"===O.direction?w.nextButton:w.previousButton,z="rtl"===O.direction?w.previousButton:w.nextButton,D="rtl"===O.direction?w.firstButton:w.lastButton;return(0,Jt.jsxs)("div",(0,Oe.c)({ref:t},S,{children:[y&&(0,Jt.jsx)(A,(0,Oe.c)({onClick:e=>{h(e,0)},disabled:p||0===v,"aria-label":f("first",v),title:f("first",v)},L,{children:"rtl"===O.direction?(0,Jt.jsx)(P,(0,Oe.c)({},w.lastButtonIcon)):(0,Jt.jsx)(C,(0,Oe.c)({},w.firstButtonIcon))})),(0,Jt.jsx)(I,(0,Oe.c)({onClick:e=>{h(e,v-1)},disabled:p||0===v,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},null!=F?F:u,{children:"rtl"===O.direction?(0,Jt.jsx)(R,(0,Oe.c)({},w.nextButtonIcon)):(0,Jt.jsx)(T,(0,Oe.c)({},w.previousButtonIcon))})),(0,Jt.jsx)(M,(0,Oe.c)({onClick:e=>{h(e,v+1)},disabled:p||-1!==d&&v>=Math.ceil(d/g)-1,color:"inherit","aria-label":f("next",v),title:f("next",v)},null!=z?z:m,{children:"rtl"===O.direction?(0,Jt.jsx)(T,(0,Oe.c)({},w.previousButtonIcon)):(0,Jt.jsx)(R,(0,Oe.c)({},w.nextButtonIcon))})),b&&(0,Jt.jsx)(N,(0,Oe.c)({onClick:e=>{h(e,Math.max(0,Math.ceil(d/g)-1))},disabled:p||v>=Math.ceil(d/g)-1,"aria-label":f("last",v),title:f("last",v)},D,{children:"rtl"===O.direction?(0,Jt.jsx)(C,(0,Oe.c)({},w.firstButtonIcon)):(0,Jt.jsx)(P,(0,Oe.c)({},w.lastButtonIcon))}))]}))}));function JS(e){return(0,kn.cp)("MuiTablePagination",e)}const ZS=(0,En.c)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var eO;const tO=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],rO=(0,Sn.cp)(HS,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),nO=(0,Sn.cp)(Vn,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,Oe.c)({["& .".concat(ZS.actions)]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(ZS.actions)]:{flexShrink:0,marginLeft:20}}})),oO=(0,Sn.cp)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),aO=(0,Sn.cp)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,Oe.c)({},t.typography.body2,{flexShrink:0})})),iO=(0,Sn.cp)(Nm,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,Oe.c)({["& .".concat(ZS.selectIcon)]:t.selectIcon,["& .".concat(ZS.select)]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(ZS.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),sO=(0,Sn.cp)(Lu,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),lO=(0,Sn.cp)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,Oe.c)({},t.typography.body2,{flexShrink:0})}));function cO(e){let{from:t,to:r,count:n}=e;return"".concat(t,"\u2013").concat(r," of ").concat(-1!==n?n:"more than ".concat(r))}function uO(e){return"Go to ".concat(e," page")}const dO=t.forwardRef((function(e,r){var n;const o=(0,wn.c)({props:e,name:"MuiTablePagination"}),{ActionsComponent:a=XS,backIconButtonProps:i,className:s,colSpan:l,component:c=HS,count:u,disabled:d=!1,getItemAriaLabel:p=uO,labelDisplayedRows:f=cO,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:h,onPageChange:v,onRowsPerPageChange:g,page:y,rowsPerPage:b,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:S=!1,showLastButton:O=!1,slotProps:_={},slots:E={}}=o,k=(0,Kt.c)(o,tO),j=o,C=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},JS,t)})(j),P=null!=(n=null==_?void 0:_.select)?n:w,R=P.native?"option":sO;let T;c!==HS&&"td"!==c||(T=l||1e3);const A=(0,_i.c)(P.id),I=(0,_i.c)(P.labelId);return(0,Jt.jsx)(rO,(0,Oe.c)({colSpan:T,ref:r,as:c,ownerState:j,className:(0,bn.c)(C.root,s)},k,{children:(0,Jt.jsxs)(nO,{className:C.toolbar,children:[(0,Jt.jsx)(oO,{className:C.spacer}),x.length>1&&(0,Jt.jsx)(aO,{className:C.selectLabel,id:I,children:m}),x.length>1&&(0,Jt.jsx)(iO,(0,Oe.c)({variant:"standard"},!P.variant&&{input:eO||(eO=(0,Jt.jsx)(cf,{}))},{value:b,onChange:g,id:A,labelId:I},P,{classes:(0,Oe.c)({},P.classes,{root:(0,bn.c)(C.input,C.selectRoot,(P.classes||{}).root),select:(0,bn.c)(C.select,(P.classes||{}).select),icon:(0,bn.c)(C.selectIcon,(P.classes||{}).icon)}),disabled:d,children:x.map((e=>(0,t.createElement)(R,(0,Oe.c)({},!so(R)&&{ownerState:j},{className:C.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,Jt.jsx)(lO,{className:C.displayedRows,children:f({from:0===u?0:y*b+1,to:-1===u?(y+1)*b:-1===b?u:Math.min(u,(y+1)*b),count:-1===u?-1:u,page:y})}),(0,Jt.jsx)(a,{className:C.actions,backIconButtonProps:i,count:u,nextIconButtonProps:h,onPageChange:v,page:y,rowsPerPage:b,showFirstButton:S,showLastButton:O,slotProps:_.actions,slots:E.actions,getItemAriaLabel:p,disabled:d})]})}))})),pO=dO;var fO=r(5940),mO=r.n(fO),hO=(0,t.createContext)({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});hO.displayName="ListPaginationContext";var vO=function(e){return(0,t.useMemo)((function(){return mO()(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])}),[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},gO=function(e){var r=(0,t.useContext)(hO);return(0,t.useMemo)((function(){return jS()({},null!=e?yO(e):{},r)}),[r,e])},yO=function(e){return{isLoading:e.isLoading,page:e.page,perPage:e.perPage,setPage:e.setPage,setPerPage:e.setPerPage,hasPreviousPage:e.hasPreviousPage,hasNextPage:e.hasNextPage,total:e.total,resource:e.resource}};function bO(e){return(0,kn.cp)("MuiPagination",e)}(0,En.c)("MuiPagination",["root","ul","outlined","text"]);var xO=r(8128);const wO=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function SO(e){return(0,kn.cp)("MuiPaginationItem",e)}const OO=(0,En.c)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),_O=(0,Al.c)((0,Jt.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),EO=(0,Al.c)((0,Jt.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),kO=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],jO=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,Wn.c)(r.size))],"text"===r.variant&&t["text".concat((0,Wn.c)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,Wn.c)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},CO=(0,Sn.cp)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:jO})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(OO.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),PO=(0,Sn.cp)(ws,{name:"MuiPaginationItem",slot:"Root",overridesResolver:jO})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(OO.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(OO.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(OO.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,qn.W4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(OO.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,qn.W4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(OO.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},"text"===r.variant&&{["&.".concat(OO.selected)]:(0,Oe.c)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(OO.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(OO.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(OO.selected)]:(0,Oe.c)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,qn.W4)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,qn.W4)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,qn.W4)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(OO.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,qn.W4)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(OO.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})})),RO=(0,Sn.cp)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})})),TO=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiPaginationItem"}),{className:n,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:c=!1,shape:u="circular",size:d="medium",slots:p={},type:f="page",variant:m="text"}=r,h=(0,Kt.c)(r,kO),v=(0,Oe.c)({},r,{color:o,disabled:s,selected:c,shape:u,size:d,type:f,variant:m}),g=po(),y=(e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:l}=e,c={root:["root","size".concat((0,Wn.c)(a)),l,i,"standard"!==r&&"color".concat((0,Wn.c)(r)),"standard"!==r&&"".concat(l).concat((0,Wn.c)(r)),n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return(0,xn.c)(c,SO,t)})(v),b=("rtl"===g.direction?{previous:p.next||i.next||EO,next:p.previous||i.previous||_O,last:p.first||i.first||GS,first:p.last||i.last||KS}:{previous:p.previous||i.previous||_O,next:p.next||i.next||EO,first:p.first||i.first||GS,last:p.last||i.last||KS})[f];return"start-ellipsis"===f||"end-ellipsis"===f?(0,Jt.jsx)(CO,{ref:t,ownerState:v,className:(0,bn.c)(y.root,n),children:"\u2026"}):(0,Jt.jsxs)(PO,(0,Oe.c)({ref:t,ownerState:v,component:a,disabled:s,className:(0,bn.c)(y.root,n)},h,{children:["page"===f&&l,b?(0,Jt.jsx)(RO,{as:b,ownerState:v,className:y.icon}):null]}))})),AO=TO,IO=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],MO=(0,Sn.cp)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),NO=(0,Sn.cp)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function LO(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}const FO=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiPagination"}),{boundaryCount:n=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:c=LO,hideNextButton:u=!1,hidePrevButton:d=!1,renderItem:p=(e=>(0,Jt.jsx)(AO,(0,Oe.c)({},e))),shape:f="circular",showFirstButton:m=!1,showLastButton:h=!1,siblingCount:v=1,size:g="medium",variant:y="text"}=r,b=(0,Kt.c)(r,IO),{items:x}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:p=1}=e,f=(0,Kt.c)(e,wO),[m,h]=(0,xO.c)({controlled:c,default:o,name:r,state:"page"}),v=(e,t)=>{c||h(t),l&&l(e,t)},g=(e,t)=>{const r=t-e+1;return Array.from({length:r},((t,r)=>e+r))},y=g(1,Math.min(t,n)),b=g(Math.max(n-t+1,t+1),n),x=Math.max(Math.min(m-p,n-t-2*p-1),t+2),w=Math.min(Math.max(m+p,t+2*p+2),b.length>0?b[0]-2:n-1),S=[...u?["first"]:[],...s?[]:["previous"],...y,...x>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...g(x,w),...w<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],O=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},_=S.map((e=>"number"===typeof e?{onClick:t=>{v(t,e)},type:"page",page:e,selected:e===m,disabled:a,"aria-current":e===m?"true":void 0}:{onClick:t=>{v(t,O(e))},type:e,page:O(e),selected:!1,disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?m>=n:m<=1)}));return(0,Oe.c)({items:_},f)}((0,Oe.c)({},r,{componentName:"Pagination"})),w=(0,Oe.c)({},r,{boundaryCount:n,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:c,hideNextButton:u,hidePrevButton:d,renderItem:p,shape:f,showFirstButton:m,showLastButton:h,siblingCount:v,size:g,variant:y}),S=(e=>{const{classes:t,variant:r}=e,n={root:["root",r],ul:["ul"]};return(0,xn.c)(n,bO,t)})(w);return(0,Jt.jsx)(MO,(0,Oe.c)({"aria-label":"pagination navigation",className:(0,bn.c)(S.root,o),ownerState:w,ref:t},b,{children:(0,Jt.jsx)(NO,{className:S.ul,ownerState:w,children:x.map(((e,t)=>(0,Jt.jsx)("li",{children:p((0,Oe.c)({},e,{color:a,"aria-label":c(e.type,e.page,e.selected),shape:f,size:g,variant:y}))},t)))})}))})),zO=FO;var DO=function(){return DO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},DO.apply(this,arguments)},BO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VO=(0,t.memo)((function(e){var r=e.page,n=e.rowsPerPage,o=e.count,a=e.onPageChange,i=e.size,s=void 0===i?"small":i,l=e.className,c=BO(e,["page","rowsPerPage","count","onPageChange","size","className"]),u=Ps(),d=Math.ceil(o/n)||1;if(1===d)return t.createElement(WO,{className:l});return t.createElement(WO,{className:l},t.createElement(zO,DO({size:s,count:d,page:r+1,onChange:function(e,t){return a(e,t-1)}},qO(c),{getItemAriaLabel:function(e,t,r){return"page"===e?r?u("ra.navigation.current_page",{page:t,_:"page ".concat(t)}):u("ra.navigation.page",{page:t,_:"Go to page ".concat(t)}):u("ra.navigation.".concat(e),{_:"Go to ".concat(e," page")})}})))}));VO.propTypes={count:Ln().number.isRequired,onPageChange:Ln().func.isRequired,page:Ln().number.isRequired,rowsPerPage:Ln().number.isRequired,color:Ln().oneOf(["primary","secondary","standard"]),size:Ln().oneOf(["small","medium","large"])};var WO=(0,Sn.cp)("div",{name:"RaPaginationActions",overridesResolver:function(e,t){return t.root}})((function(){return{flexShrink:0,ml:4}})),qO=function(e){e.nextIconButtonProps,e.backIconButtonProps,e.slotProps;return BO(e,["nextIconButtonProps","backIconButtonProps","slotProps"])},UO=function(){return UO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UO.apply(this,arguments)},HO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$O=(0,t.memo)((function(e){var r=e.rowsPerPageOptions,n=void 0===r?QO:r,o=e.actions,a=(e.limit,HO(e,["rowsPerPageOptions","actions","limit"])),i=gO(e),s=i.isLoading,l=i.hasNextPage,c=i.page,u=i.perPage,d=i.total,p=i.setPage,f=i.setPerPage,m=Ps(),h=fr((function(e){return e.breakpoints.down("md")})),v=(0,t.useMemo)((function(){return null!=d?Math.ceil(d/u):void 0}),[u,d]),g=(0,t.useCallback)((function(e,t){if(e&&e.stopPropagation(),t<0||t>v-1)throw new Error(m("ra.navigation.page_out_of_boundaries",{page:t+1}));p(t+1)}),[v,p,m]),y=(0,t.useCallback)((function(e){f(e.target.value)}),[f]),b=(0,t.useCallback)((function(e){var t=e.from,r=e.to,n=e.count;return-1===n&&l?m("ra.navigation.partial_page_range_info",{offsetBegin:t,offsetEnd:r,_:"%{from}-%{to} of more than %{to}"}):m("ra.navigation.page_range_info",{offsetBegin:t,offsetEnd:r,total:-1===n?r:n,_:"%{from}-%{to} of %{count === -1 ? to : count}"})}),[m,l]),x=(0,t.useCallback)((function(e){return m("ra.navigation.".concat(e),{_:"Go to ".concat(e," page")})}),[m]);if(s)return t.createElement(Vn,{variant:"dense"});if(0===d||c<1||null!=d&&c>v)return null;if(h)return t.createElement(pO,UO({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:g,rowsPerPageOptions:KO,component:"span",labelDisplayedRows:b},sS(a)));var w=o||(s||null==d?void 0:VO);return t.createElement(pO,UO({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:g,onRowsPerPageChange:y,ActionsComponent:w,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:m("ra.navigation.page_rows_per_page"),labelDisplayedRows:b,getItemAriaLabel:x,rowsPerPageOptions:n},sS(a)))}));$O.propTypes={actions:ao,limit:Ln().element,rowsPerPageOptions:Ln().arrayOf(Ln().oneOfType([Ln().number,Ln().exact({label:Ln().string.isRequired,value:Ln().number.isRequired})]))};var QO=[5,10,25,50],KO=[],GO=r(4544),YO=function(){return YO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YO.apply(this,arguments)},XO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},JO=function(e){var r=e.label,n=XO(e,["label"]),o=Ps();if(r)throw new Error("<SearchInput> isn't designed to be used with a label prop. Use <TextInput> if you need a label.");return t.createElement(ZO,YO({hiddenLabel:!0,label:"",resettable:!0,placeholder:o("ra.action.search"),InputProps:{endAdornment:t.createElement(Ab,{position:"end"},t.createElement(GO.c,{color:"disabled"}))},size:"small"},n))},ZO=(0,Sn.cp)(Jb,{name:"RaSearchInput",overridesResolver:function(e,t){return t.root}})({marginTop:0});const e_=(0,r(5880).cp)();var t_=r(3596),r_=r(4276),n_=r(5908),o_=r(7812);const a_=["component","direction","spacing","divider","children","className","useFlexGap"],i_=(0,r_.c)(),s_=e_("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function l_(e){return(0,t_.c)({props:e,name:"MuiStack",defaultTheme:i_})}function c_(e,r){const n=t.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,a)=>(e.push(o),a<n.length-1&&e.push(t.cloneElement(r,{key:"separator-".concat(a)})),e)),[])}const u_=e=>{let{ownerState:t,theme:r}=e,n=(0,Oe.c)({display:"flex",flexDirection:"column"},(0,n_.ls)({theme:r},(0,n_.Ws)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,o_.IV)(r),o=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),a=(0,n_.Ws)({values:t.direction,base:o}),i=(0,n_.Ws)({values:t.spacing,base:o});"object"===typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));const s=(r,n)=>{return t.useFlexGap?{gap:(0,o_.uc)(e,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((o=n?a[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]))]:(0,o_.uc)(e,r)}};var o};n=(0,du.c)(n,(0,n_.ls)({theme:r},i,s))}return n=(0,n_.cD)(r.breakpoints,n),n};const d_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:r=s_,useThemeProps:n=l_,componentName:o="MuiStack"}=e,a=r(u_),i=t.forwardRef((function(e,t){const r=hu(n(e)),{component:i="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:p=!1}=r,f=(0,Kt.c)(r,a_),m={direction:s,spacing:l,useFlexGap:p},h=(0,xn.c)({root:["root"]},(e=>(0,kn.cp)(o,e)),{});return(0,Jt.jsx)(a,(0,Oe.c)({as:i,ownerState:m,ref:t,className:(0,bn.c)(h.root,d)},f,{children:c?c_(u,c):u}))}));return i}({createStyledComponent:(0,Sn.cp)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,wn.c)({props:e,name:"MuiStack"})}),p_=d_;function f_(e){return(0,kn.cp)("MuiFormControlLabel",e)}const m_=(0,En.c)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),h_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],v_=(0,Sn.cp)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(m_.label)]:t.label},t.root,t["labelPlacement".concat((0,Wn.c)(r.labelPlacement))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(m_.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(m_.label)]:{["&.".concat(m_.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),g_=(0,Sn.cp)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(m_.error)]:{color:(t.vars||t).palette.error.main}}})),y_=t.forwardRef((function(e,r){var n,o;const a=(0,wn.c)({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:f,slotProps:m={}}=a,h=(0,Kt.c)(a,h_),v=Qp(),g=null!=(n=null!=c?c:l.props.disabled)?n:null==v?void 0:v.disabled,y=null!=f?f:l.props.required,b={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof a[e]&&(b[e]=a[e])}));const x=Hp({props:a,muiFormControl:v,states:["error"]}),w=(0,Oe.c)({},a,{disabled:g,labelPlacement:p,required:y,error:x.error}),S=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled","labelPlacement".concat((0,Wn.c)(n)),o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,xn.c)(i,f_,t)})(w),O=null!=(o=m.typography)?o:s.typography;let _=d;return null==_||_.type===Su||u||(_=(0,Jt.jsx)(Su,(0,Oe.c)({component:"span"},O,{className:(0,bn.c)(S.label,null==O?void 0:O.className),children:_}))),(0,Jt.jsxs)(v_,(0,Oe.c)({className:(0,bn.c)(S.root,i),ownerState:w,ref:r},h,{children:[t.cloneElement(l,b),y?(0,Jt.jsxs)(p_,{display:"block",children:[_,(0,Jt.jsxs)(g_,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:["\u2009","*"]})]}):_]}))})),b_=y_;function x_(e){return(0,kn.cp)("MuiFormGroup",e)}(0,En.c)("MuiFormGroup",["root","row","error"]);const w_=["className","row"],S_=(0,Sn.cp)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),O_=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=(0,Kt.c)(r,w_),i=Hp({props:r,muiFormControl:Qp(),states:["error"]}),s=(0,Oe.c)({},r,{row:o,error:i.error}),l=(e=>{const{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,xn.c)(o,x_,t)})(s);return(0,Jt.jsx)(S_,(0,Oe.c)({className:(0,bn.c)(l.root,n),ownerState:s,ref:t},a))})),__=O_;function E_(e){return(0,kn.cp)("PrivateSwitchBase",e)}(0,En.c)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const k_=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],j_=(0,Sn.cp)(ws)((e=>{let{ownerState:t}=e;return(0,Oe.c)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),C_=(0,Sn.cp)("input",{shouldForwardProp:Sn.CU})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),P_=t.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:m,onBlur:h,onChange:v,onFocus:g,readOnly:y,required:b=!1,tabIndex:x,type:w,value:S}=e,O=(0,Kt.c)(e,k_),[_,E]=(0,ki.c)({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),k=Qp();let j=s;k&&"undefined"===typeof j&&(j=k.disabled);const C="checkbox"===w||"radio"===w,P=(0,Oe.c)({},e,{checked:_,disabled:j,disableFocusRipple:l,edge:c}),R=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,Wn.c)(o))],input:["input"]};return(0,xn.c)(a,E_,t)})(P);return(0,Jt.jsxs)(j_,(0,Oe.c)({component:"span",className:(0,bn.c)(R.root,a),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{g&&g(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{h&&h(e),k&&k.onBlur&&k.onBlur(e)},ownerState:P,ref:t},O,{children:[(0,Jt.jsx)(C_,(0,Oe.c)({autoFocus:r,checked:n,defaultChecked:i,className:R.input,disabled:j,id:C?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),v&&v(e,t)},readOnly:y,ref:f,required:b,ownerState:P,tabIndex:x,type:w},"checkbox"===w&&void 0===S?{}:{value:S},p)),_?o:u]}))})),R_=P_;function T_(e){return(0,kn.cp)("MuiSwitch",e)}const A_=(0,En.c)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I_=["className","color","edge","size","sx"],M_=(0,Sn.cp)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,Wn.c)(r.edge))],t["size".concat((0,Wn.c)(r.size))]]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(A_.thumb)]:{width:16,height:16},["& .".concat(A_.switchBase)]:{padding:4,["&.".concat(A_.checked)]:{transform:"translateX(16px)"}}})})),N_=(0,Sn.cp)(R_,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{["& .".concat(A_.input)]:t.input},"default"!==r.color&&t["color".concat((0,Wn.c)(r.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(A_.checked)]:{transform:"translateX(20px)"},["&.".concat(A_.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(A_.checked," + .").concat(A_.track)]:{opacity:.5},["&.".concat(A_.disabled," + .").concat(A_.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(A_.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(A_.checked)]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(A_.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,qn.IV)(t.palette[r.color].main,.62):(0,qn.sP)(t.palette[r.color].main,.55))}},["&.".concat(A_.checked," + .").concat(A_.track)]:{backgroundColor:(t.vars||t).palette[r.color].main}})})),L_=(0,Sn.cp)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),F_=(0,Sn.cp)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),z_=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiSwitch"}),{className:n,color:o="primary",edge:a=!1,size:i="medium",sx:s}=r,l=(0,Kt.c)(r,I_),c=(0,Oe.c)({},r,{color:o,edge:a,size:i}),u=(e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&"edge".concat((0,Wn.c)(r)),"size".concat((0,Wn.c)(n))],switchBase:["switchBase","color".concat((0,Wn.c)(o)),a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,xn.c)(s,T_,t);return(0,Oe.c)({},t,l)})(c),d=(0,Jt.jsx)(F_,{className:u.thumb,ownerState:c});return(0,Jt.jsxs)(M_,{className:(0,bn.c)(u.root,n),sx:s,ownerState:c,children:[(0,Jt.jsx)(N_,(0,Oe.c)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:(0,Oe.c)({},u,{root:u.switchBase})})),(0,Jt.jsx)(L_,{className:u.track,ownerState:c})]})})),D_=z_;var B_={label:Ln().oneOfType([Ln().string,Ln().bool,Ln().element]),resource:Ln().string,source:Ln().string},V_=function(){return V_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V_.apply(this,arguments)},W_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},q_=function(e){var r=e.className,n=e.row,o=void 0!==n&&n,a=e.defaultValue,i=void 0!==a&&a,s=e.format,l=e.label,c=(e.fullWidth,e.helperText),u=e.onBlur,d=e.onChange,p=e.onFocus,f=e.disabled,m=e.parse,h=e.resource,v=e.source,g=e.validate,y=e.options,b=void 0===y?U_:y,x=e.sx,w=W_(e,["className","row","defaultValue","format","label","fullWidth","helperText","onBlur","onChange","onFocus","disabled","parse","resource","source","validate","options","sx"]),S=xb(V_({defaultValue:i,format:s,parse:m,resource:h,source:v,onBlur:u,onChange:d,type:"checkbox",validate:g},w)),O=S.id,_=S.field,E=S.isRequired,k=S.fieldState,j=k.error,C=k.invalid,P=k.isTouched,R=S.formState.isSubmitted,T=(0,t.useCallback)((function(e){_.onChange(e),_.onBlur()}),[_]),A=!1!==c||(P||R)&&C;return t.createElement(__,{className:Mn("ra-input","ra-input-".concat(v),r),row:o,sx:x},t.createElement(b_,{inputRef:_.ref,control:t.createElement(D_,V_({id:O,name:_.name,onChange:T,onFocus:p,checked:Boolean(_.value)},Gb(w),b,{disabled:f})),label:t.createElement(Eb,{label:l,source:v,resource:h,isRequired:E})}),A?t.createElement(im,{error:(P||R)&&C},t.createElement($b,{touched:P||R,error:null===j||void 0===j?void 0:j.message,helperText:c})):null)};q_.propTypes=V_(V_({},B_),{options:Ln().shape(D_.propTypes),disabled:Ln().bool});var U_={},H_=r(1784),$_=function(){return $_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$_.apply(this,arguments)},Q_=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},K_=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},G_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Y_=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},X_=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=hw(),a=(0,d.useQueryClient)(),i=r.ids,s=n.mutationMode,l=void 0===s?"pessimistic":s,c=G_(n,["mutationMode"]),u=(0,t.useRef)(l),p=(0,t.useRef)({}),f=(0,t.useRef)([]),m=function(e){var t=e.resource,r=e.ids,n=Date.now(),o="undoable"===u.current?n+5e3:n,i=function(e){if(e){var t=Y_([],e,!0);return r.forEach((function(e){var r=t.findIndex((function(t){return t.id==e}));-1!==r&&(t=Y_(Y_([],t.slice(0,r),!0),t.slice(r+1),!0))})),t}};a.setQueriesData([t,"getList"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total?e.total-(e.data.length-t.length):void 0,pageInfo:e.pageInfo}:e}),{updatedAt:o}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?$_($_({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?$_($_({},e),{data:t,total:e.total?e.total-(e.data.length-t.length):void 0,pageInfo:e.pageInfo}):e}))}):e}),{updatedAt:o}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?i(e):e}),{updatedAt:o}),a.setQueriesData([t,"getManyReference"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total-(e.data.length-t.length)}:e}),{updatedAt:o})},h=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,i=r.ids,s=void 0===i?p.current.ids:i,l=r.meta,c=void 0===l?p.current.meta:l;return o.deleteMany(a,{ids:s,meta:c}).then((function(e){return e.data}))}),$_($_({},c),{onMutate:function(e){return Q_(void 0,void 0,void 0,(function(){var t;return K_(this,(function(r){switch(r.label){case 0:return c.onMutate?[4,c.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,$_({snapshot:f.current},t)];case 2:return[2,{snapshot:f.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==u.current&&"undoable"!==u.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),c.onError)return c.onError(e,t,r)},onSuccess:function(t,r,n){if(void 0===r&&(r={}),"pessimistic"===u.current){var o=r.resource,a=void 0===o?e:o,s=r.ids;m({resource:a,ids:void 0===s?i:s}),c.onSuccess&&c.onSuccess(t,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==u.current&&"undoable"!==u.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),c.onSettled)return c.onSettled(e,t,r,n)}}));return[kt((function(t,n,o){return void 0===t&&(t=e),void 0===n&&(n={}),void 0===o&&(o={}),Q_(void 0,void 0,void 0,(function(){var e,s,l,d,v,g,y;return K_(this,(function(b){switch(b.label){case 0:return e=o.mutationMode,s=o.onSuccess,l=o.onSettled,d=o.onError,p.current=r,e&&(u.current=e),"pessimistic"===u.current?[2,h.mutate($_({resource:t},n),{onSuccess:s,onSettled:l,onError:d})]:(v=n.ids,g=void 0===v?i:v,y=[[t,"getList"],[t,"getInfiniteList"],[t,"getMany"],[t,"getManyReference"]],f.current=y.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(f.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return b.sent(),m({resource:t,ids:g}),s&&setTimeout((function(){return s(g,$_({resource:t},n),{snapshot:f.current})}),0),c.onSuccess&&setTimeout((function(){return c.onSuccess(g,$_({resource:t},n),{snapshot:f.current})}),0),"optimistic"===u.current?[2,h.mutate($_({resource:t},n),{onSettled:l,onError:d})]:(yv.once("end",(function(e){e.isUndo?f.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):h.mutate($_({resource:t},n),{onSettled:l,onError:d})})),[2])}}))}))})),h]};function J_(e){return(0,kn.cp)("MuiDialog",e)}const Z_=(0,En.c)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const eE=t.createContext({}),tE=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],rE=(0,Sn.cp)(jc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nE=(0,Sn.cp)(Ic,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oE=(0,Sn.cp)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,Wn.c)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),aE=(0,Sn.cp)(Gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,Wn.c)(r.scroll))],t["paperWidth".concat((0,Wn.c)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(Z_.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(Z_.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(Z_.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),iE=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiDialog"}),o=po(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:f=!1,fullWidth:m=!1,maxWidth:h="sm",onBackdropClick:v,onClose:g,open:y,PaperComponent:b=Gn,PaperProps:x={},scroll:w="paper",TransitionComponent:S=Sc,transitionDuration:O=a,TransitionProps:_}=n,E=(0,Kt.c)(n,tE),k=(0,Oe.c)({},n,{disableEscapeKeyDown:p,fullScreen:f,fullWidth:m,maxWidth:h,scroll:w}),j=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container","scroll".concat((0,Wn.c)(r))],paper:["paper","paperScroll".concat((0,Wn.c)(r)),"paperWidth".concat((0,Wn.c)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,xn.c)(i,J_,t)})(k),C=t.useRef(),P=(0,Fp.c)(s),R=t.useMemo((()=>({titleId:P})),[P]);return(0,Jt.jsx)(nE,(0,Oe.c)({className:(0,bn.c)(j.root,d),closeAfterTransition:!0,components:{Backdrop:rE},componentsProps:{backdrop:(0,Oe.c)({transitionDuration:O,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:r,onClick:e=>{C.current&&(C.current=null,v&&v(e),g&&g(e,"backdropClick"))},ownerState:k},E,{children:(0,Jt.jsx)(S,(0,Oe.c)({appear:!0,in:y,timeout:O,role:"presentation"},_,{children:(0,Jt.jsx)(oE,{className:(0,bn.c)(j.container),onMouseDown:e=>{C.current=e.target===e.currentTarget},ownerState:k,children:(0,Jt.jsx)(aE,(0,Oe.c)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":P},x,{className:(0,bn.c)(j.paper,x.className),ownerState:k,children:(0,Jt.jsx)(eE.Provider,{value:R,children:u})}))})}))}))})),sE=iE;function lE(e){return(0,kn.cp)("MuiDialogActions",e)}(0,En.c)("MuiDialogActions",["root","spacing"]);const cE=["className","disableSpacing"],uE=(0,Sn.cp)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),dE=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,a=(0,Kt.c)(r,cE),i=(0,Oe.c)({},r,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,xn.c)(n,lE,t)})(i);return(0,Jt.jsx)(uE,(0,Oe.c)({className:(0,bn.c)(s.root,n),ownerState:i,ref:t},a))})),pE=dE;function fE(e){return(0,kn.cp)("MuiDialogContent",e)}(0,En.c)("MuiDialogContent",["root","dividers"]);function mE(e){return(0,kn.cp)("MuiDialogTitle",e)}const hE=(0,En.c)("MuiDialogTitle",["root"]),vE=["className","dividers"],gE=(0,Sn.cp)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(hE.root," + &")]:{paddingTop:0}})})),yE=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,a=(0,Kt.c)(r,vE),i=(0,Oe.c)({},r,{dividers:o}),s=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,xn.c)(n,fE,t)})(i);return(0,Jt.jsx)(gE,(0,Oe.c)({className:(0,bn.c)(s.root,n),ownerState:i,ref:t},a))})),bE=yE;function xE(e){return(0,kn.cp)("MuiDialogContentText",e)}(0,En.c)("MuiDialogContentText",["root"]);const wE=["children","className"],SE=(0,Sn.cp)(Su,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OE=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiDialogContentText"}),{className:n}=r,o=(0,Kt.c)(r,wE),a=(e=>{const{classes:t}=e,r=(0,xn.c)({root:["root"]},xE,t);return(0,Oe.c)({},t,r)})(o);return(0,Jt.jsx)(SE,(0,Oe.c)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,bn.c)(a.root,n)},r,{classes:a}))})),_E=OE,EE=["className","id"],kE=(0,Sn.cp)(Su,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),jE=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=(0,Kt.c)(n,EE),s=n,l=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},mE,t)})(s),{titleId:c=a}=t.useContext(eE);return(0,Jt.jsx)(kE,(0,Oe.c)({component:"h2",className:(0,bn.c)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:c},i))})),CE=jE;var PE=r(6448),RE=r(1947),TE=function(){return TE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TE.apply(this,arguments)},AE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},IE=function(e){var r,n=e.className,o=e.isOpen,a=void 0!==o&&o,i=e.loading,s=e.title,l=e.content,c=e.cancel,u=void 0===c?"ra.action.cancel":c,d=e.confirm,p=void 0===d?"ra.action.confirm":d,f=e.confirmColor,m=void 0===f?"primary":f,h=e.ConfirmIcon,v=void 0===h?PE.c:h,g=e.CancelIcon,y=void 0===g?RE.c:g,b=e.onClose,x=e.onConfirm,w=e.translateOptions,S=void 0===w?{}:w,O=AE(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),_=Ps(),E=(0,t.useCallback)((function(e){e.stopPropagation(),x(e)}),[x]),k=(0,t.useCallback)((function(e){e.stopPropagation()}),[]);return t.createElement(LE,TE({className:n,open:a,onClose:b,onClick:k,"aria-labelledby":"alert-dialog-title"},O),t.createElement(CE,{id:"alert-dialog-title"},"string"===typeof s?_(s,TE({_:s},S)):s),t.createElement(bE,null,"string"===typeof l?t.createElement(_E,null,_(l,TE({_:l},S))):l),t.createElement(pE,null,t.createElement(Tl,{disabled:i,onClick:b,startIcon:t.createElement(y,null)},_(u,{_:u})),t.createElement(Tl,{disabled:i,onClick:E,className:Mn("ra-confirm",(r={},r[NE.confirmWarning]="warning"===m,r[NE.confirmPrimary]="primary"===m,r)),autoFocus:!0,startIcon:t.createElement(v,null)},_(p,{_:p}))))};IE.propTypes={cancel:Ln().string,className:Ln().string,confirm:Ln().string,confirmColor:Ln().string,ConfirmIcon:Ln().elementType,CancelIcon:Ln().elementType,content:Ln().node.isRequired,isOpen:Ln().bool,loading:Ln().bool,onClose:Ln().func.isRequired,onConfirm:Ln().func.isRequired,title:Ln().node.isRequired,sx:Ln().any};var ME="RaConfirm",NE={confirmPrimary:"".concat(ME,"-confirmPrimary"),confirmWarning:"".concat(ME,"-confirmWarning")},LE=(0,Sn.cp)(sE,{name:ME,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(NE.confirmPrimary)]={color:r.palette.primary.main},t["& .".concat(NE.confirmWarning)]={color:r.palette.error.main,"&:hover":{backgroundColor:(0,qn.W4)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t})),FE=function(){return FE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FE.apply(this,arguments)},zE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DE=function(e){var r=e.confirmTitle,n=void 0===r?"ra.message.bulk_delete_title":r,o=e.confirmContent,a=void 0===o?"ra.message.bulk_delete_content":o,i=e.confirmColor,s=void 0===i?"primary":i,l=e.icon,c=void 0===l?WE:l,u=e.label,d=void 0===u?"ra.action.delete":u,p=e.mutationMode,f=void 0===p?"pessimistic":p,m=e.mutationOptions,h=void 0===m?{}:m,v=e.onClick,g=zE(e,["confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","mutationOptions","onClick"]),y=h.meta,b=zE(h,["meta"]),x=PS(e),w=x.selectedIds,S=x.onUnselectItems,O=Zr(!1),_=O[0],E=O[1],k=Tt(),j=Vy(e),C=tl(),P=Ps(),R=X_(j,{ids:w,meta:y},FE({onSuccess:function(){C(),k("ra.notification.deleted",{type:"info",messageArgs:{smart_count:w.length},undoable:"undoable"===f}),S(),E(!1)},onError:function(e){k("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}}),E(!1)},mutationMode:f},b)),T=R[0],A=R[1].isLoading;return t.createElement(t.Fragment,null,t.createElement(VE,FE({onClick:function(e){E(!0),e.stopPropagation()},label:d},BE(g)),c),t.createElement(IE,{isOpen:_,loading:A,title:n,content:a,confirmColor:s,translateOptions:{smart_count:w.length,name:P("resources.".concat(j,".forcedCaseName"),{smart_count:w.length,_:wp().humanize(P("resources.".concat(j,".name"),{smart_count:w.length,_:wp().inflect(j,w.length)}),!0)})},onConfirm:function(e){T(),"function"===typeof v&&v(e)},onClose:function(){E(!1)}}))},BE=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return zE(e,["classes","filterValues","label","selectedIds"])},VE=(0,Sn.cp)(gh,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:(0,qn.W4)(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}})),WE=t.createElement(H_.c,null);DE.propTypes={confirmTitle:Ln().node,confirmContent:Ln().node,confirmColor:Ln().string,icon:Ln().element,label:Ln().string,mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),resource:Ln().string,selectedIds:Ln().arrayOf(Ln().any)};var qE=function(){return qE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qE.apply(this,arguments)},UE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},HE=function(e){var r=e.label,n=void 0===r?"ra.action.delete":r,o=e.icon,a=void 0===o?$E:o,i=e.onClick,s=e.mutationOptions,l=void 0===s?{}:s,c=UE(e,["label","icon","onClick","mutationOptions"]),u=l.meta,d=UE(l,["meta"]),p=PS(e),f=p.selectedIds,m=p.onUnselectItems,h=Tt(),v=Vy(e),g=tl(),y=X_(),b=y[0],x=y[1].isLoading;return t.createElement(KE,qE({onClick:function(e){b(v,{ids:f,meta:u},qE({onSuccess:function(){h("ra.notification.deleted",{type:"info",messageArgs:{smart_count:f.length},undoable:!0}),m()},onError:function(e){h("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}}),g()},mutationMode:"undoable"},d)),"function"===typeof i&&i(e)},label:n,disabled:x},QE(c)),a)},$E=t.createElement(H_.c,null),QE=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return UE(e,["classes","filterValues","label","selectedIds"])},KE=(0,Sn.cp)(gh,{name:"RaBulkDeleteWithUndoButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:(0,qn.W4)(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}}));HE.propTypes={label:Ln().string,resource:Ln().string,selectedIds:Ln().arrayOf(Ln().any),icon:Ln().element};var GE=function(){return GE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},GE.apply(this,arguments)},YE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},XE=function(e){var r=e.mutationMode,n=void 0===r?"undoable":r,o=YE(e,["mutationMode"]);return"undoable"===n?t.createElement(HE,GE({},o)):t.createElement(DE,GE({mutationMode:n},o))};XE.propTypes={label:Ln().string,resource:Ln().string,selectedIds:Ln().arrayOf(Ln().any),mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),icon:Ln().element};var JE=(0,t.createContext)({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null});JE.displayName="ListFilterContext";var ZE=(0,t.createContext)({sort:null,setSort:null,resource:null}),ek=function(e){return(0,t.useMemo)((function(){return mO()(e,["sort","setSort","resource"])}),[e.sort,e.setSort])};ZE.displayName="ListSortContext";var tk=function(e){var r,n=e.value,o=e.children;return t.createElement(CS.Provider,{value:n},t.createElement(JE.Provider,{value:(r=n,(0,t.useMemo)((function(){return mO()(r,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])}),[r.displayedFilters,r.filterValues,r.hideFilter,r.setFilters,r.showFilter]))},t.createElement(ZE.Provider,{value:ek(n)},t.createElement(hO.Provider,{value:vO(n)},o))))},rk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nk=function(e){var r=e.children,n=rk(e,["children"]);return t.createElement(Ix,{value:n.resource},t.createElement(tk,{value:oS(n)},r))},ok=r(1804),ak=r.n(ok),ik=r(5864),sk=function(e){var r,n=e.filterElement,o=e.handleHide,a=e.className,i=Vy(e),s=Ps();return t.createElement(uk,{"data-source":n.props.source,className:Mn("filter-field",a)},t.cloneElement(n,{resource:i,record:dk,size:null!==(r=n.props.size)&&void 0!==r?r:"small",helperText:!1,defaultValue:void 0}),!n.props.alwaysOn&&t.createElement(js,{className:Mn("hide-filter",ck.hideButton),onClick:o,"data-key":n.props.source,title:s("ra.action.remove_filter"),size:"small"},t.createElement(ik.c,null)),t.createElement("div",{className:ck.spacer},"\xa0"))};sk.propTypes={filterElement:Ln().node,handleHide:Ln().func,resource:Ln().string,className:Ln().string};var lk="RaFilterFormInput",ck={spacer:"".concat(lk,"-spacer"),hideButton:"".concat(lk,"-hideButton")},uk=(0,Sn.cp)("div",{name:lk,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"})[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(ck.spacer)]={width:r.spacing(2)},t["& .".concat(ck.hideButton)]={marginBottom:r.spacing(1)},t})),dk={},pk=t.createContext(void 0),fk=function(){return fk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fk.apply(this,arguments)},mk=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},hk=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},vk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gk=function(e){var r=e.defaultValues,n=e.filters,o=vk(e,["defaultValues","filters"]),a=PS(e),i=a.setFilters,s=a.displayedFilters,l=a.filterValues,c=(0,t.useContext)(pk)||n,u=Ny({defaultValues:wk(r||l,c)}),d=u.getValues,p=u.reset,f=u.trigger,m=u.watch;return(0,t.useEffect)((function(){var e=kk(d(),l),t=d();_t()(e,t)||p(e)}),[JSON.stringify(l),l,d,p]),(0,t.useEffect)((function(){var e=m((function(e,t){var r=t.name;return mk(void 0,void 0,void 0,(function(){var t,n;return hk(this,(function(o){switch(o.label){case 0:return[4,f()];case 1:return t=o.sent(),r&&t&&(""===dt()(e,r)?(n=ak()(e),ct()(n,r),i(n,s)):i(e,s)),[2]}}))}))}));return function(){return e.unsubscribe()}}),[s,i,f,m]),t.createElement(_g,fk({},u),t.createElement(zy,null,t.createElement(yk,fk({onSubmit:Sk,filters:c},o))))},yk=function(e){var r=e.className,n=e.filters,o=vk(e,["className","filters"]),a=Vy(e),i=Og(),s=PS(e),l=s.displayedFilters,c=void 0===l?{}:l,u=s.hideFilter;(0,t.useEffect)((function(){n.forEach((function(e){if(e.props.alwaysOn&&e.props.defaultValue)throw new Error("Cannot use alwaysOn and defaultValue on a filter input. Please set the filterDefaultValues props on the <List> element instead.")}))}),[n]);var d=(0,t.useCallback)((function(e){return u(e.currentTarget.dataset.key)}),[u]);return t.createElement(Uy,{prefix:"resources.".concat(a,".fields")},t.createElement(Ek,fk({className:r},xk(o),{onSubmit:bk}),function(){var e=i.getValues();return n.filter((function(t){var r=dt()(e,t.props.source);return t.props.alwaysOn||c[t.props.source]||""!==r&&"undefined"!==typeof r}))}().map((function(e){return t.createElement(sk,{key:e.props.source,filterElement:e,handleHide:d,resource:a,className:_k.filterFormInput})})),t.createElement("div",{className:_k.clearFix})))},bk=function(e){return e.preventDefault(),!1};yk.propTypes={resource:Ln().string,filters:Ln().arrayOf(Ln().node).isRequired,displayedFilters:Ln().object,hideFilter:Ln().func,initialValues:Ln().object,className:Ln().string};var xk=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;return vk(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"])},wk=function(e,t){return fk(fk({},t.filter((function(e){return e.props.alwaysOn&&e.props.defaultValue})).reduce((function(e,t){return st()(fk({},e),t.props.source,t.props.defaultValue)}),{})),e)},Sk=function(e){return e.preventDefault(),e.stopPropagation(),!1},Ok="RaFilterForm",_k={clearFix:"".concat(Ok,"-clearFix"),filterFormInput:"".concat(Ok,"-filterFormInput")},Ek=(0,Sn.cp)("form",{name:Ok,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flex:"0 1 auto"})[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(_k.clearFix)]={clear:"right"},t["& .".concat(_k.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t})),kk=function(e,t){var r;return Object.keys(e).reduce((function(r,n){return r[n]=jk(e,n,t),r}),null!==(r=ak()(t))&&void 0!==r?r:{})},jk=function(e,t,r){if(void 0===e[t]||null===e[t])return"";if(Array.isArray(e[t]))return dt()(r,t,"");if(e[t]instanceof Date)return dt()(r,t,"");if("object"===typeof e[t]){var n=Object.keys(e[t]).reduce((function(n,o){var a,i=jk(e[t],o,null!==(a=(r||{})[t])&&void 0!==a?a:{});return n[o]=i,n}),{});return Object.keys(n).length?n:""}return dt()(r,t,"")},Ck=function(){return Ck=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ck.apply(this,arguments)},Pk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rk=(0,t.memo)((function(e){var r=e.filters,n=e.actions,o=e.className,a=Pk(e,["filters","actions","className"]);return Array.isArray(r)?t.createElement(pk.Provider,{value:r},t.createElement(Tk,{className:o},t.createElement(gk,null),t.createElement("span",null),n&&t.cloneElement(n,Ck(Ck({},a),n.props)))):t.createElement(Tk,{className:o},r&&t.cloneElement(r,Ck(Ck({},a),{context:"form"})),t.createElement("span",null),n&&t.cloneElement(n,Ck(Ck(Ck({},a),{filters:r}),n.props)))}));Rk.propTypes={filters:Ln().oneOfType([Ln().element,Ln().arrayOf(Ln().element)]),actions:Ln().oneOfType([Ln().bool,Ln().element]),exporter:Ln().oneOfType([Ln().func,Ln().bool])};var Tk=(0,Sn.cp)("div",{name:"RaListToolbar",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%"})[r.breakpoints.down("md")]={flexWrap:"wrap"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"},t})),Ak=function(e){var r=Vy(e),n=bp(),o=e||{},a=o.hasCreate,i=o.hasEdit,s=o.hasList,l=o.hasShow,c=o.recordRepresentation;return(0,t.useMemo)((function(){return jS()({},{hasCreate:a,hasEdit:i,hasList:s,hasShow:l,recordRepresentation:c},n[r])}),[r,n,a,i,s,l,c])},Ik=r(8008),Mk=(0,t.forwardRef)((function(e,r){var n=e.filter,o=e.onShow,a=e.autoFocus,i=Vy(e),s=(0,t.useCallback)((function(){o({source:n.props.source,defaultValue:n.props.defaultValue})}),[n.props.defaultValue,n.props.source,o]);return t.createElement(Lu,{className:"new-filter-item","data-key":n.props.source,"data-default-value":n.props.defaultValue,key:n.props.source,onClick:s,autoFocus:a,ref:r,disabled:n.props.disabled},t.createElement(Eb,{label:n.props.label,source:n.props.source,resource:i}))}));Mk.propTypes={filter:Ln().element.isRequired,onShow:Ln().func.isRequired,resource:Ln().string,autoFocus:Ln().bool};var Nk=function(e){return Ct("".concat(e,".savedQueries"),[])},Lk=function(e){return Array.isArray(e)?e.filter((function(e){return Fk(e)})):[]},Fk=function(e){var t,r;return!!(e.label&&"string"===typeof e.label&&e.value&&(Array.isArray(e.value.displayedFilters),1)&&"number"===typeof e.value.perPage&&"string"===typeof(null===(t=e.value.sort)||void 0===t?void 0:t.field)&&"string"===typeof(null===(r=e.value.sort)||void 0===r?void 0:r.order)&&"object"===typeof e.value.filter)},zk=function(e){var r=e.open,n=e.onClose,o=Ps(),a=PS(),i=a.resource,s=a.filterValues,l=a.displayedFilters,c=a.sort,u=a.perPage,d=Nk(i),p=d[0],f=d[1],m=(0,t.useState)(""),h=m[0],v=m[1],g=function(){var e={label:h,value:{filter:s,sort:c,perPage:u,displayedFilters:l}},t=Lk(p);f(t.concat(e)),v(""),n()};return t.createElement(sE,{open:r,onClose:n,"aria-labelledby":"form-dialog-title"},t.createElement(CE,{id:"form-dialog-title"},o("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),t.createElement(bE,null,t.createElement("form",{onSubmit:function(e){e.preventDefault(),g()}},t.createElement(Vm,{autoFocus:!0,margin:"dense",id:"name",label:o("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:h,onChange:function(e){v(e.target.value)}}))),t.createElement(pE,null,t.createElement(Tl,{onClick:n},o("ra.action.cancel")),t.createElement(Tl,{onClick:g,color:"primary"},o("ra.action.save"))))},Dk=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Bk=function(e){var r=e.open,n=e.onClose,o=Ps(),a=PS(),i=a.resource,s=a.filterValues,l=a.sort,c=a.perPage,u=a.displayedFilters,d=Nk(i),p=d[0],f=d[1];return t.createElement(sE,{open:r,onClose:n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},t.createElement(CE,{id:"alert-dialog-title"},o("ra.saved_queries.remove_dialog_title",{_:"Remove saved query?"})),t.createElement(bE,null,t.createElement(_E,null,o("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"}))),t.createElement(pE,null,t.createElement(Tl,{onClick:n},o("ra.action.cancel")),t.createElement(Tl,{onClick:function(){var e={filter:s,sort:l,perPage:c,displayedFilters:u},t=Lk(p),r=t.findIndex((function(t){return _t()(t.value,e)}));f(Dk(Dk([],t.slice(0,r),!0),t.slice(r+1),!0)),n()},color:"primary",autoFocus:!0},o("ra.action.confirm"))))},Vk=function(){return Vk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vk.apply(this,arguments)},Wk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},qk=function(e){var r=e.filters,n=e.className,o=e.disableSaveQuery,a=Wk(e,["filters","className","disableSaveQuery"]),i=(0,t.useContext)(pk)||r,s=Vy(e),l=Ps(),c=Nk(s)[0],u=ee(),d=PS(e),p=d.displayedFilters,f=void 0===p?{}:p,m=d.filterValues,h=d.perPage,v=d.setFilters,g=d.showFilter,y=d.sort,b=!_t()(m,{}),x=Lk(c),w=x.some((function(e){return _t()(e.value,{filter:m,sort:y,perPage:h,displayedFilters:f})})),S=(0,t.useState)(!1),O=S[0],_=S[1],E=(0,t.useRef)();if(void 0===i)throw new Error("The <FilterButton> component requires the <List filters> prop to be set");var k=i.filter((function(e){return!e.props.alwaysOn&&!f[e.props.source]&&"undefined"===typeof dt()(m,e.props.source)})),j=(0,t.useCallback)((function(e){e.preventDefault(),_(!0),E.current=e.currentTarget}),[E,_]),C=(0,t.useCallback)((function(){_(!1)}),[_]),P=(0,t.useCallback)((function(e){var t=e.source,r=e.defaultValue;g(t,""===r?void 0:r),setTimeout((function(){var e=document.querySelector("input[name='".concat(t,"']"));e&&e.focus()}),50),_(!1)}),[g,_]),R=(0,t.useState)(!1),T=R[0],A=R[1],I=(0,t.useState)(!1),M=I[0],N=I[1],L=function(){_(!1),N(!0)};return 0!==k.length||0!==x.length||b?t.createElement(Hk,Vk({className:n},Uk(a)),t.createElement(gh,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:j},t.createElement(Ik.c,null)),t.createElement(tu,{open:O,anchorEl:E.current,onClose:C},k.map((function(e,r){return t.createElement(Mk,{key:e.props.source,filter:e,resource:s,onShow:P,autoFocus:0===r})})),x.map((function(e,r){return _t()(e.value,{filter:m,sort:y,perPage:h,displayedFilters:f})?t.createElement(Lu,{onClick:L,key:r},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:e.label})):t.createElement(Lu,{onClick:function(){u({search:(0,Dx.stringify)({filter:JSON.stringify(e.value.filter),sort:e.value.sort.field,order:e.value.sort.order,page:1,perPage:e.value.perPage,displayedFilters:JSON.stringify(e.value.displayedFilters)})}),_(!1)},key:r},e.label)})),b&&!w&&!o&&t.createElement(Lu,{onClick:function(){_(!1),A(!0)}},l("ra.saved_queries.new_label",{_:"Save current query..."})),b&&t.createElement(Lu,{onClick:function(){v({},{},!1),_(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!o&&t.createElement(t.Fragment,null,t.createElement(zk,{open:T,onClose:function(){A(!1)}}),t.createElement(Bk,{open:M,onClose:function(){N(!1)}}))):null},Uk=function(e){e.displayedFilters,e.filterValues,e.showFilter;return Wk(e,["displayedFilters","filterValues","showFilter"])};qk.propTypes={resource:Ln().string,filters:Ln().arrayOf(Ln().node),displayedFilters:Ln().object,filterValues:Ln().object,showFilter:Ln().func,className:Ln().string};var Hk=(0,Sn.cp)("div",{name:"RaFilterButton",overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),$k=function(){return $k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$k.apply(this,arguments)},Qk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Kk=function(e){var r=e.className,n=e.filters,o=(e.hasCreate,e.selectedIds),a=void 0===o?Gk:o,i=e.onUnselectItems,s=void 0===i?Yk:i,l=Qk(e,["className","filters","hasCreate","selectedIds","onUnselectItems"]),c=PS($k($k({},e),{selectedIds:a,onUnselectItems:s})),u=c.sort,d=c.displayedFilters,p=c.filterValues,f=c.exporter,m=c.showFilter,h=c.total,v=Vy(e),g=Ak(e).hasCreate,y=(0,t.useContext)(pk)||n;return(0,t.useMemo)((function(){return t.createElement(dw,$k({className:r},sS(l)),n?(0,t.cloneElement)(n,{resource:v,showFilter:m,displayedFilters:d,filterValues:p,context:"button"}):y&&t.createElement(qk,null),g&&t.createElement(_S,null),!1!==f&&t.createElement(NS,{disabled:0===h,resource:v,sort:u,filterValues:p}))}),[v,d,p,n,m,y,h,r,u,f,g])};Kk.propTypes={className:Ln().string,sort:Ln().shape({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),displayedFilters:Ln().object,exporter:Ln().oneOfType([Ln().func,Ln().bool]),filters:Ln().element,filterValues:Ln().object,hasCreate:Ln().bool,resource:Ln().string,onUnselectItems:Ln().func,selectedIds:Ln().arrayOf(Ln().any),showFilter:Ln().func,total:Ln().number};var Gk=[],Yk=function(){return null},Xk=r(508),Jk="RaEmpty",Zk={message:"".concat(Jk,"-message"),icon:"".concat(Jk,"-icon"),toolbar:"".concat(Jk,"-toolbar")},ej=(0,Sn.cp)("span",{name:Jk,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(Zk.message)]={textAlign:"center",opacity:"light"===r.palette.mode?.5:.8,margin:"0 1em",color:"light"===r.palette.mode?"inherit":r.palette.text.primary},t["& .".concat(Zk.icon)]={width:"9em",height:"9em"},t["& .".concat(Zk.toolbar)]={textAlign:"center",marginTop:"2em"},t})),tj=function(){return tj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tj.apply(this,arguments)},rj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nj=t.createElement(Kk,null),oj=t.createElement($O,null),aj=t.createElement((function(e){var r=e.className,n=Ak(e).hasCreate,o=Vy(e),a=Ps(),i=Sp(),s=a("resources.".concat(o,".forcedCaseName"),{smart_count:0,_:i(o,0)}),l=a("ra.page.empty",{name:s}),c=a("ra.page.invite");return t.createElement(ej,{className:r},t.createElement("div",{className:Zk.message},t.createElement(Xk.c,{className:Zk.icon}),t.createElement(Su,{variant:"h4",paragraph:!0},a("resources.".concat(o,".empty"),{_:l})),n&&t.createElement(Su,{variant:"body1"},a("resources.".concat(o,".invite"),{_:c}))),n&&t.createElement("div",{className:Zk.toolbar},t.createElement(_S,{variant:"contained"})))}),null),ij=Rv,sj=function(e){var r=e.actions,n=void 0===r?nj:r,o=e.aside,a=e.filters,i=e.bulkActionButtons,s=e.emptyWhileLoading,l=e.hasCreate,c=e.pagination,u=void 0===c?oj:c,d=e.children,p=e.className,f=e.component,m=void 0===f?ij:f,h=e.title,v=e.empty,g=void 0===v?aj:v,y=rj(e,["actions","aside","filters","bulkActionButtons","emptyWhileLoading","hasCreate","pagination","children","className","component","title","empty"]),b=PS(e),x=b.defaultTitle,w=b.data,S=b.error,O=b.isLoading,_=b.filterValues,E=b.resource;if(!d||!w&&O&&s)return null;var k=!O&&0===(null===w||void 0===w?void 0:w.length)&&!Object.keys(_).length&&!1!==g;return t.createElement(uj,tj({className:Mn("list-page",p)},y),t.createElement(ih,{title:h,defaultTitle:x,preferenceKey:"".concat(E,".list.title")}),k?!1!==g&&(0,t.cloneElement)(g,{className:cj.noResults,hasCreate:l}):t.createElement("div",{className:cj.main},(a||n)&&t.createElement(Rk,{className:cj.actions,filters:a,actions:n,hasCreate:l}),t.createElement(m,{className:cj.content},i&&d&&t.isValidElement(d)?(0,t.cloneElement)(d,{bulkActionButtons:i}):d),S?t.createElement(uh,{error:S,resetErrorBoundary:null}):!1!==u&&u),o)};sj.propTypes={actions:Ln().oneOfType([Ln().bool,Ln().element]),aside:Ln().element,children:Ln().node,className:Ln().string,component:ao,emptyWhileLoading:Ln().bool,filters:Ln().oneOfType([Ln().element,Ln().arrayOf(Ln().element)]),hasCreate:Ln().bool,pagination:Ln().oneOfType([Ln().element,Ln().bool]),title:sh};var lj="RaList",cj={main:"".concat(lj,"-main"),content:"".concat(lj,"-content"),actions:"".concat(lj,"-actions"),noResults:"".concat(lj,"-noResults")},uj=(0,Sn.cp)("div",{name:lj,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={display:"flex"})["& .".concat(cj.main)]={flex:"1 1 auto",display:"flex",flexDirection:"column"},t["& .".concat(cj.content)]=((r={position:"relative"})[n.breakpoints.down("sm")]={boxShadow:"none"},r.overflow="inherit",r),t["& .".concat(cj.actions)]={},t["& .".concat(cj.noResults)]={},t})),dj=function(){return dj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dj.apply(this,arguments)},pj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fj=function(e){var r=e.debounce,n=e.disableAuthentication,o=e.disableSyncWithLocation,a=e.exporter,i=e.filter,s=void 0===i?mj:i,l=e.filterDefaultValues,c=e.perPage,u=void 0===c?10:c,d=e.queryOptions,p=e.resource,f=e.sort,m=e.storeKey,h=pj(e,["debounce","disableAuthentication","disableSyncWithLocation","exporter","filter","filterDefaultValues","perPage","queryOptions","resource","sort","storeKey"]);return t.createElement(nk,{debounce:r,disableAuthentication:n,disableSyncWithLocation:o,exporter:a,filter:s,filterDefaultValues:l,perPage:u,queryOptions:d,resource:p,sort:f,storeKey:m},t.createElement(sj,dj({},h)))};fj.propTypes={actions:Ln().oneOfType([Ln().bool,Ln().element]),aside:Ln().element,children:Ln().node.isRequired,className:Ln().string,emptyWhileLoading:Ln().bool,filter:Ln().object,filterDefaultValues:Ln().object,filters:Ln().oneOfType([Ln().element,Ln().arrayOf(Ln().element)]),pagination:Ln().oneOfType([Ln().element,Ln().bool]),perPage:Ln().number,sort:Ln().shape({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),sx:Ln().any,title:sh,disableSyncWithLocation:Ln().bool,hasCreate:Ln().bool,resource:Ln().string};var mj={};function hj(e){return(0,kn.cp)("MuiTable",e)}(0,En.c)("MuiTable",["root","stickyHeader"]);const vj=["className","component","padding","size","stickyHeader"],gj=(0,Sn.cp)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Oe.c)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),yj="table",bj=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiTable"}),{className:o,component:a=yj,padding:i="normal",size:s="medium",stickyHeader:l=!1}=n,c=(0,Kt.c)(n,vj),u=(0,Oe.c)({},n,{component:a,padding:i,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,xn.c)(n,hj,t)})(u),p=t.useMemo((()=>({padding:i,size:s,stickyHeader:l})),[i,s,l]);return(0,Jt.jsx)(zS.Provider,{value:p,children:(0,Jt.jsx)(gj,(0,Oe.c)({as:a,role:a===yj?null:"table",ref:r,className:(0,bn.c)(d.root,o),ownerState:u},c))})})),xj=bj;var wj=r(176),Sj=r.n(wj),Oj=r(4e3),_j=r.n(Oj);function Ej(e){return(0,kn.cp)("MuiTableHead",e)}(0,En.c)("MuiTableHead",["root"]);const kj=["className","component"],jj=(0,Sn.cp)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Cj={variant:"head"},Pj="thead",Rj=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiTableHead"}),{className:n,component:o=Pj}=r,a=(0,Kt.c)(r,kj),i=(0,Oe.c)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},Ej,t)})(i);return(0,Jt.jsx)(DS.Provider,{value:Cj,children:(0,Jt.jsx)(jj,(0,Oe.c)({as:o,className:(0,bn.c)(s.root,n),ref:t,role:o===Pj?null:"rowgroup",ownerState:i},a))})})),Tj=Rj;function Aj(e){return(0,kn.cp)("MuiTableRow",e)}const Ij=(0,En.c)("MuiTableRow",["root","selected","hover","head","footer"]),Mj=["className","component","hover","selected"],Nj=(0,Sn.cp)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(Ij.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(Ij.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,qn.W4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,qn.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),Lj="tr",Fj=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiTableRow"}),{className:o,component:a=Lj,hover:i=!1,selected:s=!1}=n,l=(0,Kt.c)(n,Mj),c=t.useContext(DS),u=(0,Oe.c)({},n,{component:a,hover:i,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e,i={root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]};return(0,xn.c)(i,Aj,t)})(u);return(0,Jt.jsx)(Nj,(0,Oe.c)({as:a,ref:r,className:(0,bn.c)(d.root,o),role:a===Lj?null:"row",ownerState:u},l))})),zj=Fj,Dj=(0,Al.c)((0,Jt.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Bj=(0,Al.c)((0,Jt.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Vj=(0,Al.c)((0,Jt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Wj(e){return(0,kn.cp)("MuiCheckbox",e)}const qj=(0,En.c)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Uj=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Hj=(0,Sn.cp)(R_,{shouldForwardProp:e=>(0,Sn.CU)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,Wn.c)(r.size))],"default"!==r.color&&t["color".concat((0,Wn.c)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,qn.W4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(qj.checked,", &.").concat(qj.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(qj.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),$j=(0,Jt.jsx)(Bj,{}),Qj=(0,Jt.jsx)(Dj,{}),Kj=(0,Jt.jsx)(Vj,{}),Gj=t.forwardRef((function(e,r){var n,o;const a=(0,wn.c)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=$j,color:s="primary",icon:l=Qj,indeterminate:c=!1,indeterminateIcon:u=Kj,inputProps:d,size:p="medium",className:f}=a,m=(0,Kt.c)(a,Uj),h=c?u:l,v=c?u:i,g=(0,Oe.c)({},a,{color:s,indeterminate:c,size:p}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate","color".concat((0,Wn.c)(n)),"size".concat((0,Wn.c)(o))]},i=(0,xn.c)(a,Wj,t);return(0,Oe.c)({},t,i)})(g);return(0,Jt.jsx)(Hj,(0,Oe.c)({type:"checkbox",inputProps:(0,Oe.c)({"data-indeterminate":c},d),icon:t.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:p}),checkedIcon:t.cloneElement(v,{fontSize:null!=(o=v.props.fontSize)?o:p}),ownerState:g,ref:r,className:(0,bn.c)(y.root,f)},m,{classes:y}))})),Yj=Gj,Xj=(0,Al.c)((0,Jt.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Jj(e){return(0,kn.cp)("MuiTableSortLabel",e)}const Zj=(0,En.c)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),eC=["active","children","className","direction","hideSortIcon","IconComponent"],tC=(0,Sn.cp)(ws,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(Zj.icon)]:{opacity:.5}},["&.".concat(Zj.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(Zj.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),rC=(0,Sn.cp)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t["iconDirection".concat((0,Wn.c)(r.direction))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})})),nC=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiTableSortLabel"}),{active:n=!1,children:o,className:a,direction:i="asc",hideSortIcon:s=!1,IconComponent:l=Xj}=r,c=(0,Kt.c)(r,eC),u=(0,Oe.c)({},r,{active:n,direction:i,hideSortIcon:s,IconComponent:l}),d=(e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon","iconDirection".concat((0,Wn.c)(r))]};return(0,xn.c)(o,Jj,t)})(u);return(0,Jt.jsxs)(tC,(0,Oe.c)({className:(0,bn.c)(d.root,a),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[o,s&&!n?null:(0,Jt.jsx)(rC,{as:l,className:(0,bn.c)(d.icon),ownerState:u})]}))})),oC=nC;var aC,iC=function(){return iC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iC.apply(this,arguments)},sC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},lC=function(e){var r=e.className,n=e.field,o=e.sort,a=e.updateSort,i=(e.isSorting,sC(e,["className","field","sort","updateSort","isSorting"])),s=Vy(e),l=Ps(),c=l("ra.sort.sort_by",{field:Ob()({label:n.props.label,resource:s,source:n.props.source}),order:l("ra.sort.".concat("ASC"===o.order?"DESC":"ASC")),_:l("ra.action.sort")});return t.createElement(pC,iC({className:Mn(r,n.props.headerClassName),align:n.props.textAlign,variant:"head"},i),a&&!1!==n.props.sortable&&(n.props.sortBy||n.props.source)?t.createElement(zi,{title:c,placement:"right"===n.props.textAlign?"bottom-end":"bottom-start",enterDelay:300},t.createElement(oC,{active:o.field===(n.props.sortBy||n.props.source),direction:"ASC"===o.order?"asc":"desc","data-field":n.props.sortBy||n.props.source,"data-order":n.props.sortByOrder||"ASC",onClick:a,classes:dC},t.createElement(Eb,{label:n.props.label,source:n.props.source,resource:s}))):t.createElement(Eb,{label:n.props.label,source:n.props.source,resource:s}))};lC.propTypes={className:Ln().string,field:Ln().element,sort:Ln().shape({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}).isRequired,isSorting:Ln().bool,resource:Ln().string,updateSort:Ln().func};const cC=(0,t.memo)(lC,(function(e,t){return e.updateSort===t.updateSort&&e.sort.field===t.sort.field&&e.sort.order===t.sort.order&&e.isSorting===t.isSorting&&e.resource===t.resource}));var uC="RaDatagridHeaderCell",dC={icon:"".concat(uC,"-icon")},pC=(0,Sn.cp)(HS,{name:uC,overridesResolver:function(e,t){return t.root}})(((aC={})["& .MuiTableSortLabel-icon"]={display:"none"},aC["& .Mui-active .MuiTableSortLabel-icon"]={display:"inline"},aC)),fC="RaDatagrid",mC={root:"".concat(fC,"-root"),table:"".concat(fC,"-table"),tableWrapper:"".concat(fC,"-tableWrapper"),thead:"".concat(fC,"-thead"),tbody:"".concat(fC,"-tbody"),headerRow:"".concat(fC,"-headerRow"),headerCell:"".concat(fC,"-headerCell"),checkbox:"".concat(fC,"-checkbox"),row:"".concat(fC,"-row"),clickableRow:"".concat(fC,"-clickableRow"),rowEven:"".concat(fC,"-rowEven"),rowOdd:"".concat(fC,"-rowOdd"),rowCell:"".concat(fC,"-rowCell"),selectable:"".concat(fC,"-selectable"),expandHeader:"".concat(fC,"-expandHeader"),expandIconCell:"".concat(fC,"-expandIconCell"),expandIcon:"".concat(fC,"-expandIcon"),expandable:"".concat(fC,"-expandable"),expanded:"".concat(fC,"-expanded"),expandedPanel:"".concat(fC,"-expandedPanel")},hC=(0,Sn.cp)("div",{name:fC,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(mC.table)]={tableLayout:"auto"},t["& .".concat(mC.tableWrapper)]={},t["& .".concat(mC.thead)]={},t["& .".concat(mC.tbody)]={},t["& .".concat(mC.headerRow)]={},t["& .".concat(mC.headerCell)]={position:"sticky",top:0,zIndex:2,backgroundColor:r.palette.background.paper,"&:first-of-type":{borderTopLeftRadius:r.shape.borderRadius},"&:last-child":{borderTopRightRadius:r.shape.borderRadius}},t["& .".concat(mC.checkbox)]={},t["& .".concat(mC.row)]={},t["& .".concat(mC.clickableRow)]={cursor:"pointer"},t["& .".concat(mC.rowEven)]={},t["& .".concat(mC.rowOdd)]={},t["& .".concat(mC.rowCell)]={},t["& .".concat(mC.expandHeader)]={padding:0,width:r.spacing(6)},t["& .".concat(mC.expandIconCell)]={width:r.spacing(6)},t["& .".concat(mC.expandIcon)]={padding:r.spacing(1),transform:"rotate(-90deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest})},t["& .".concat(mC.expandIcon,".").concat(mC.expanded)]={transform:"rotate(0deg)"},t["& .".concat(mC.expandedPanel)]={},t})),vC=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};const gC=(0,t.memo)((function(e){var r,n=e.resource,o=e.ids,a=Ps(),i=function(e,r){var n=Ct("".concat(e,".datagrid.expanded"),[]),o=n[0],a=n[1],i=!!Array.isArray(o)&&o.some((function(e){return r.some((function(t){return t==e}))})),s=(0,t.useCallback)((function(){var e=o.filter((function(e){return!r.some((function(t){return t==e}))}));a(i?e:e.concat(r))}),[o,a,i,r]);return[i,s]}(n,o),s=i[0],l=i[1];return t.createElement(js,{className:Mn(mC.expandIcon,(r={},r[mC.expanded]=s,r)),"aria-label":a(s?"ra.action.close":"ra.action.expand"),"aria-expanded":s,tabIndex:-1,"aria-hidden":"true",onClick:l,size:"small"},t.createElement(bd.c,{fontSize:"inherit"}))}));var yC=(0,t.createContext)({});yC.displayName="DatagridContext";const bC=yC;var xC=function(e){var r=(0,t.useContext)(bC);return(0,t.useMemo)((function(){return jS()({},null!=e?{isRowExpandable:e.isRowExpandable}:{},r)}),[r,e])},wC=function(e){var r=e.children,n=e.className,o=e.hasExpand,a=void 0!==o&&o,i=e.hasBulkActions,s=void 0!==i&&i,l=e.isRowSelectable,c=Vy(e),u=Ps(),d=PS(e),p=d.sort,f=d.data,m=d.onSelect,h=d.selectedIds,v=d.setSort,g=xC().expandSingle,y=(0,t.useCallback)((function(e){e.stopPropagation();var t=e.currentTarget.dataset.field,r=p.field===t?"ASC"===p.order?"DESC":"ASC":e.currentTarget.dataset.order;v({field:t,order:r})}),[p.field,p.order,v]),b=v?y:null,x=(0,t.useCallback)((function(e){return m(e.target.checked?h.concat(f.filter((function(e){return!h.includes(e.id)})).filter((function(e){return!l||l(e)})).map((function(e){return e.id}))):[])}),[f,m,l,h]),w=Array.isArray(f)?l?f.filter((function(e){return l(e)})).map((function(e){return e.id})):f.map((function(e){return e.id})):[];return t.createElement(Tj,{className:Mn(n,mC.thead)},t.createElement(zj,{className:Mn(mC.row,mC.headerRow)},a&&t.createElement(HS,{padding:"none",className:Mn(mC.headerCell,mC.expandHeader)},g?null:t.createElement(gC,{resource:c,ids:f.map((function(e){return e.id}))})),s&&h&&t.createElement(HS,{padding:"checkbox",className:mC.headerCell},t.createElement(Yj,{"aria-label":u("ra.action.select_all",{_:"Select all"}),className:"select-all",color:"primary",checked:h.length>0&&w.length>0&&w.every((function(e){return h.includes(e)})),onChange:x,onClick:function(e){return e.stopPropagation()}})),t.Children.map(r,(function(e,r){return(0,t.isValidElement)(e)?t.createElement(cC,{className:Mn(mC.headerCell,"column-".concat(e.props.source)),sort:p,field:e,isSorting:p.field===(e.props.sortBy||e.props.source),key:e.props.source||r,resource:c,updateSort:b}):null}))))};function SC(e){return(0,kn.cp)("MuiTableBody",e)}wC.propTypes={children:Ln().node,className:Ln().string,sort:Ln().exact({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),data:Ln().arrayOf(Ln().any),hasExpand:Ln().bool,hasBulkActions:Ln().bool,isRowSelectable:Ln().func,isRowExpandable:Ln().func,onSelect:Ln().func,onToggleItem:Ln().func,resource:Ln().string,selectedIds:Ln().arrayOf(Ln().any),setSort:Ln().func},wC.displayName="DatagridHeader";(0,En.c)("MuiTableBody",["root"]);const OC=["className","component"],_C=(0,Sn.cp)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),EC={variant:"body"},kC="tbody",jC=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiTableBody"}),{className:n,component:o=kC}=r,a=(0,Kt.c)(r,OC),i=(0,Oe.c)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},SC,t)})(i);return(0,Jt.jsx)(DS.Provider,{value:EC,children:(0,Jt.jsx)(_C,(0,Oe.c)({className:(0,bn.c)(s.root,n),as:o,ref:t,role:o===kC?null:"rowgroup",ownerState:i},a))})})),CC=jC;var PC=function(e){return t.createElement(RC,{className:e.className},"\xa0")},RC=(0,Sn.cp)("span",{name:"RaPlaceholder",overridesResolver:function(e,t){return t.root}})((function(e){return{backgroundColor:e.theme.palette.grey[300],display:"flex"}})),TC=function(e,t){return Array.from({length:e},(function(e,r){return t(r)}))},AC=function(e){var r=e.className,n=e.expand,o=e.hasBulkActions,a=e.nbChildren,i=e.nbFakeLines,s=void 0===i?5:i,l=e.size;return en(1e3)?t.createElement("div",{className:mC.root},t.createElement(xj,{className:Mn(mC.table,r),size:l},t.createElement(Tj,null,t.createElement(zj,{className:mC.row},n&&t.createElement(HS,{padding:"none",className:mC.expandHeader}),o&&t.createElement(HS,{padding:"checkbox",className:mC.expandIconCell},t.createElement(Yj,{className:"select-all",color:"primary",checked:!1})),TC(a,(function(e){return t.createElement(HS,{variant:"head",className:mC.headerCell,key:e},t.createElement(PC,null))})))),t.createElement(CC,null,TC(s,(function(e){return t.createElement(zj,{key:e,style:{opacity:1/(e+1)}},n&&t.createElement(HS,{padding:"none",className:mC.expandIconCell},t.createElement(js,{className:mC.expandIcon,component:"div","aria-hidden":"true",size:"large"},t.createElement(bd.c,null))),o&&t.createElement(HS,{padding:"checkbox",className:mC.expandIconCell},t.createElement(Yj,{className:"select-all",color:"primary",checked:!1})),TC(a,(function(e){return t.createElement(HS,{className:mC.rowCell,key:e},t.createElement(PC,null))})))}))))):null};AC.propTypes={className:Ln().string,expand:Ln().oneOfType([Ln().element,Ln().elementType]),hasBulkActions:Ln().bool,nbChildren:Ln().number,nbFakeLines:Ln().number,size:Ln().oneOf(["small","medium"])};const IC=(0,t.memo)(AC);var MC=function(){return MC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MC.apply(this,arguments)},NC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},LC=t.forwardRef((function(e,r){var n=e.className,o=e.field,a=(e.record,e.resource,NC(e,["className","field","record","resource"]));return t.createElement(HS,MC({className:Mn(n,o.props.cellClassName),align:o.props.textAlign,ref:r},a),o)}));LC.propTypes={className:Ln().string,field:Ln().element,record:Ln().object,resource:Ln().string},LC.displayName="DatagridCell";const FC=LC;var zC=function(){return zC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zC.apply(this,arguments)},DC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const BC=(0,t.memo)((function(e){var r=e.expanded,n=e.expandContentId,o=DC(e,["expanded","expandContentId"]),a=Ps();return t.createElement(js,zC({"aria-label":a(r?"ra.action.close":"ra.action.expand"),"aria-expanded":r,"aria-controls":n,tabIndex:-1,"aria-hidden":"true",component:"div"},o,{size:"small"}),t.createElement(bd.c,{fontSize:"inherit"}))}));var VC=function(){return VC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VC.apply(this,arguments)},WC=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},qC=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},UC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},HC=function(e,r,n){return e?1+(n?1:0)+t.Children.toArray(r).filter((function(e){return!!e})).length:0},$C=t.forwardRef((function(e,r){var n,o,a=e.children,i=e.className,s=e.expand,l=e.hasBulkActions,c=void 0!==l&&l,u=e.hover,d=void 0===u||u,p=e.id,f=e.onToggleItem,m=(e.record,e.rowClick),h=e.selected,v=void 0!==h&&h,g=e.style,y=e.selectable,b=void 0===y||y,x=UC(e,["children","className","expand","hasBulkActions","hover","id","onToggleItem","record","rowClick","selected","style","selectable"]),w=xC(),S=Ps(),O=Ym(e),_=(!w||!w.isRowExpandable||w.isRowExpandable(O))&&s,E=Vy(e),k=_r(),j=function(e,r,n){void 0===n&&(n=!1);var o=Ct("".concat(e,".datagrid.expanded"),[]),a=o[0],i=o[1];return[!!Array.isArray(a)&&-1!==a.map((function(e){return e==r})).indexOf(!0),(0,t.useCallback)((function(){i((function(e){if(!Array.isArray(e))return[r];var t=e.findIndex((function(e){return e==r}));return t>-1?n?[]:vC(vC([],e.slice(0,t),!0),e.slice(t+1),!0):n?[r]:vC(vC([],e,!0),[r],!1)}))}),[i,r,n])]}(E,p,w&&w.expandSingle),C=j[0],P=j[1],R=(0,t.useState)((function(){return HC(_,a,c)})),T=R[0],A=R[1];(0,t.useEffect)((function(){var e=HC(_,a,c);e!==T&&A(e)}),[_,T,a,c]);var I=ee(),M=(0,t.useCallback)((function(e){P(),e.stopPropagation()}),[P]),N=(0,t.useCallback)((function(e){b&&(f(p,e),e.stopPropagation())}),[p,f,b]),L=(0,t.useCallback)((function(e){return WC(void 0,void 0,void 0,(function(){var t,r;return qC(this,(function(n){switch(n.label){case 0:return e.persist(),"function"!==typeof m?[3,2]:[4,m(p,E,O)];case 1:return r=n.sent(),[3,3];case 2:r=m,n.label=3;case 3:return!1===(t=r)||null==t?[2]:["edit","show"].includes(t)?(I(k({resource:E,id:p,type:t}),{state:{_scrollToTop:!0}}),[2]):"expand"===t?(M(e),[2]):"toggleSelection"===t?(N(e),[2]):(I(t),[2])}}))}))}),[m,p,E,O,I,k,M,N]);return t.createElement(Gm,{value:O},t.createElement(zj,VC({ref:r,className:Mn(i,(n={},n[mC.expandable]=_,n[mC.selectable]=b,n[mC.clickableRow]="function"===typeof m||m,n)),key:p,style:g,hover:d,onClick:L},x),s&&t.createElement(HS,{padding:"none",className:mC.expandIconCell},_&&t.createElement(BC,{className:Mn(mC.expandIcon,(o={},o[mC.expanded]=C,o)),expanded:C,onClick:M,expandContentId:"".concat(p,"-expand")})),c&&t.createElement(HS,{padding:"checkbox"},t.createElement(Yj,{"aria-label":S("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(mC.checkbox),checked:b&&v,onClick:N,disabled:!b})),t.Children.map(a,(function(e,r){return(0,t.isValidElement)(e)?t.createElement(FC,{key:"".concat(p,"-").concat(e.props.source||r),className:Mn("column-".concat(e.props.source),mC.rowCell),record:O,field:e,resource:E}):null}))),_&&C&&t.createElement(zj,{key:"".concat(p,"-expand"),id:"".concat(p,"-expand"),className:mC.expandedPanel},t.createElement(HS,{colSpan:T},(0,Vl.isElement)(s)?(0,t.cloneElement)(s,{record:O,resource:E,id:String(p)}):(0,t.createElement)(s,{record:O,resource:E,id:String(p)}))))}));$C.propTypes={children:Ln().node,className:Ln().string,expand:Ln().oneOfType([Ln().element,Ln().elementType]),hasBulkActions:Ln().bool,hover:Ln().bool,id:Ln().any,onToggleItem:Ln().func,record:Ln().object,resource:Ln().string,rowClick:Ln().oneOfType([Ln().string,Ln().func,Ln().bool]),selected:Ln().bool,style:Ln().object,selectable:Ln().bool};var QC=(0,t.memo)($C,(function(e,t){e.children,e.expand;var r=UC(e,["children","expand"]),n=(t.children,t.expand,UC(t,["children","expand"]));return yw(r,n)}));QC.displayName="PureDatagridRow";const KC=$C;var GC=function(){return GC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},GC.apply(this,arguments)},YC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},XC=t.forwardRef((function(e,r){var n=e.children,o=e.className,a=e.data,i=void 0===a?ZC:a,s=e.expand,l=e.hasBulkActions,c=void 0!==l&&l,u=e.hover,d=e.onToggleItem,p=e.resource,f=e.row,m=void 0===f?JC:f,h=e.rowClick,v=e.rowSx,g=e.rowStyle,y=e.selectedIds,b=e.isRowSelectable,x=YC(e,["children","className","data","expand","hasBulkActions","hover","onToggleItem","resource","row","rowClick","rowSx","rowStyle","selectedIds","isRowSelectable"]);return t.createElement(CC,GC({ref:r,className:Mn("datagrid-body",o,mC.tbody)},x),i.map((function(e,r){var o,a,i;return(0,t.cloneElement)(m,{className:Mn(mC.row,(o={},o[mC.rowEven]=r%2===0,o[mC.rowOdd]=r%2!==0,o)),expand:s,hasBulkActions:c&&!!y,hover:u,id:null!==(a=e.id)&&void 0!==a?a:"row".concat(r),key:null!==(i=e.id)&&void 0!==i?i:"row".concat(r),onToggleItem:d,record:e,resource:p,rowClick:h,selectable:!b||b(e),selected:null===y||void 0===y?void 0:y.includes(e.id),sx:null===v||void 0===v?void 0:v(e,r),style:null===g||void 0===g?void 0:g(e,r)},n)})))})),JC=t.createElement(KC,null);XC.propTypes={className:Ln().string,children:Ln().node,data:Ln().arrayOf(Ln().object),expand:Ln().oneOfType([Ln().element,Ln().elementType]),hasBulkActions:Ln().bool,hover:Ln().bool,onToggleItem:Ln().func,resource:Ln().string,row:Ln().element,rowClick:Ln().oneOfType([Ln().string,Ln().func,Ln().bool]),rowSx:Ln().func,rowStyle:Ln().func,selectedIds:Ln().arrayOf(Ln().any),styles:Ln().object,isRowSelectable:Ln().func};var ZC=[];XC.muiName="TableBody";var eP=(0,t.memo)((function(e){return t.createElement(XC,GC({row:t.createElement(QC,null)},e))}));eP.muiName="TableBody";const tP=XC;const rP=function(e){var r=e.children,n=e.value;return t.createElement(bC.Provider,{value:n},r)};var nP=r(7824),oP=function(){return oP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oP.apply(this,arguments)},aP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iP=function(e){var r,n=e.label,o=void 0===n?"ra.action.bulk_actions":n,a=e.children,i=e.className,s=aP(e,["label","children","className"]),l=PS(e),c=l.filterValues,u=l.resource,d=l.selectedIds,p=void 0===d?[]:d,f=l.onUnselectItems,m=Ps(),h=(0,t.useCallback)((function(){f()}),[f]);return t.createElement(cP,{className:i},t.createElement(Vn,oP({"data-test":"bulk-actions-toolbar",className:Mn(lP.toolbar,(r={},r[lP.collapsed]=0===p.length,r))},sS(s)),t.createElement("div",{className:lP.title},t.createElement(js,{className:lP.icon,"aria-label":m("ra.action.unselect"),title:m("ra.action.unselect"),onClick:h,size:"small"},t.createElement(nP.c,{fontSize:"small"})),t.createElement(Su,{color:"inherit",variant:"subtitle1"},m(o,{_:o,smart_count:p.length}))),t.createElement(dw,{className:lP.topToolbar},t.Children.map(a,(function(e){return(0,t.isValidElement)(e)?(0,t.cloneElement)(e,{filterValues:c,resource:u,selectedIds:p}):null})))))};iP.propTypes={children:Ln().node,label:Ln().string};var sP="RaBulkActionsToolbar",lP={toolbar:"".concat(sP,"-toolbar"),topToolbar:"".concat(sP,"-topToolbar"),buttons:"".concat(sP,"-buttons"),collapsed:"".concat(sP,"-collapsed"),title:"".concat(sP,"-title"),icon:"".concat(sP,"-icon")},cP=(0,Sn.cp)("div",{name:sP,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={position:"relative"})["& .".concat(lP.toolbar)]={position:"absolute",left:0,right:0,zIndex:3,color:"light"===n.palette.mode?n.palette.primary.main:n.palette.text.primary,justifyContent:"space-between",backgroundColor:"light"===n.palette.mode?(0,qn.IV)(n.palette.primary.light,.8):n.palette.primary.dark,minHeight:n.spacing(6),height:n.spacing(6),transform:"translateY(-".concat(n.spacing(6),")"),transition:"".concat(n.transitions.create("height"),", ").concat(n.transitions.create("min-height"),", ").concat(n.transitions.create("transform")),borderTopLeftRadius:n.shape.borderRadius,borderTopRightRadius:n.shape.borderRadius},t["& .".concat(lP.topToolbar)]=((r={paddingBottom:n.spacing(1),minHeight:"auto"})[n.breakpoints.down("sm")]={backgroundColor:"transparent"},r),t["& .".concat(lP.buttons)]={},t["& .".concat(lP.collapsed)]={minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},t["& .".concat(lP.title)]={display:"flex",flex:"0 0 auto"},t["& .".concat(lP.icon)]={marginLeft:"-0.5em",marginRight:"0.5em"},t})),uP=(0,t.memo)((function(){var e=Ps(),r=Vy();return t.createElement(Lv,null,t.createElement(Su,{variant:"body2"},e("ra.navigation.no_results",{resource:r})))})),dP=function(){return dP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dP.apply(this,arguments)},pP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fP=t.createElement(XE,null),mP=t.forwardRef((function(e,r){var n=e.optimized,o=void 0!==n&&n,a=e.body,i=void 0===a?o?eP:tP:a,s=e.header,l=void 0===s?wC:s,c=e.children,u=e.className,d=e.empty,p=void 0===d?yP:d,f=e.expand,m=e.bulkActionButtons,h=void 0===m?fP:m,v=e.hover,g=e.isRowSelectable,y=e.isRowExpandable,b=e.resource,x=e.rowClick,w=e.rowSx,S=e.rowStyle,O=e.size,_=void 0===O?"small":O,E=e.sx,k=e.expandSingle,j=void 0!==k&&k,C=pP(e,["optimized","body","header","children","className","empty","expand","bulkActionButtons","hover","isRowSelectable","isRowExpandable","resource","rowClick","rowSx","rowStyle","size","sx","expandSingle"]),P=PS(e),R=P.sort,T=P.data,A=P.isLoading,I=P.onSelect,M=P.onToggleItem,N=P.selectedIds,L=P.setSort,F=P.total,z=!1!==!!h,D=(0,t.useMemo)((function(){return{isRowExpandable:y,expandSingle:j}}),[y,j]),B=(0,t.useRef)(null);(0,t.useEffect)((function(){N&&0!==N.length||(B.current=null)}),[JSON.stringify(N)]);var V=(0,t.useCallback)((function(e,t){var r=T.map((function(e){return e.id})),n=r.indexOf(B.current);if(B.current=t.target.checked?e:null,t.shiftKey&&-1!==n){var o=r.indexOf(e),a=r.slice(Math.min(n,o),Math.max(n,o)+1),i=t.target.checked?Sj()(N,a):_j()(N,a);I(g?i.filter((function(e){return g(T.find((function(t){return t.id===e})))})):i)}else M(e)}),[T,g,I,M,N]);return!0===A?t.createElement(IC,{className:u,expand:f,hasBulkActions:z,nbChildren:t.Children.count(c),size:_}):null==T||0===T.length||0===F?p||null:t.createElement(rP,{value:D},t.createElement(hC,{sx:E,className:Mn(mC.root,u)},!1!==h?t.createElement(iP,{selectedIds:N},(0,t.isValidElement)(h)?h:fP):null,t.createElement("div",{className:mC.tableWrapper},t.createElement(xj,dP({ref:r,className:mC.table,size:_},gP(C)),hP(l,{children:c,sort:R,data:T,hasExpand:!!f,hasBulkActions:z,isRowSelectable:g,onSelect:I,resource:b,selectedIds:N,setSort:L},c),hP(i,{expand:f,rowClick:x,data:T,hasBulkActions:z,hover:v,onToggleItem:V,resource:b,rowSx:w,rowStyle:S,selectedIds:N,isRowSelectable:g},c)))))})),hP=function(e,r,n){return(0,t.isValidElement)(e)?(0,t.cloneElement)(e,r,n):(0,t.createElement)(e,r,n)};mP.propTypes={body:Ln().oneOfType([Ln().element,Ln().elementType]),bulkActionButtons:Ln().oneOfType([Ln().bool,Ln().element]),children:Ln().node.isRequired,className:Ln().string,sort:Ln().exact({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),data:Ln().arrayOf(Ln().any),empty:Ln().element,expand:Ln().oneOfType([Ln().element,Ln().elementType]),header:Ln().oneOfType([Ln().element,Ln().elementType]),hover:Ln().bool,isLoading:Ln().bool,onSelect:Ln().func,onToggleItem:Ln().func,resource:Ln().string,rowClick:Ln().oneOfType([Ln().string,Ln().func,Ln().bool]),rowSx:Ln().func,rowStyle:Ln().func,selectedIds:Ln().arrayOf(Ln().any),setSort:Ln().func,total:Ln().number,isRowSelectable:Ln().func,isRowExpandable:Ln().func,expandSingle:Ln().bool};var vP=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],gP=function(e){return Object.keys(sS(e)).filter((function(e){return!vP.includes(e)})).reduce((function(t,r){var n;return dP(dP({},t),((n={})[r]=e[r],n))}),{})};mP.displayName="Datagrid";var yP=t.createElement(uP,null),bP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},xP=function(e){e.cellClassName,e.className,e.emptyText,e.formClassName,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;return bP(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"])},wP={sortBy:Ln().string,sortByOrder:Ln().oneOf(["ASC","DESC"]),source:Ln().string,label:Ln().oneOfType([Ln().string,Ln().element,Ln().bool]),sortable:Ln().bool,className:Ln().string,cellClassName:Ln().string,headerClassName:Ln().string,textAlign:Ln().oneOf(["inherit","left","center","right","justify"]),emptyText:Ln().string},SP=function(e){var r,n=(0,t.memo)(e);return n.propTypes=e.propTypes,n.defaultProps=e.defaultProps,n.displayName=null===(r=e.displayName)||void 0===r?void 0:r.replace("Impl",""),n},OP=function(){return OP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OP.apply(this,arguments)},_P=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},EP=function(e){var r,n=e.className,o=e.source,a=e.emptyText,i=_P(e,["className","source","emptyText"]),s=Ym(e),l=null===(r=dt()(s,o))||void 0===r?void 0:r.toString(),c=Ps();return t.createElement(Su,OP({component:"span",variant:"body2",className:n},xP(i)),null!=l&&"string"!==typeof l?JSON.stringify(l):l||(a?c(a,{_:a}):null))};EP.propTypes=OP(OP({},Su.propTypes),wP),EP.displayName="TextFieldImpl";var kP,jP=SP(EP),CP=r(8416),PP=function(){return PP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PP.apply(this,arguments)},RP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},TP=function(e){var r=e.className,n=e.emptyText,o=e.source,a=e.valueLabelTrue,i=e.valueLabelFalse,s=e.TrueIcon,l=void 0===s?CP.c:s,c=e.FalseIcon,u=void 0===c?Mb.c:c,d=e.looseValue,p=void 0!==d&&d,f=RP(e,["className","emptyText","source","valueLabelTrue","valueLabelFalse","TrueIcon","FalseIcon","looseValue"]),m=Ym(e),h=Ps(),v=dt()(m,o),g=!0===v||p&&v,y=v?a:i;return y||(y=g?"ra.boolean.true":"ra.boolean.false"),p||!1===v||!0===v?t.createElement(NP,PP({component:"span",variant:"body2",className:r},xP(f)),t.createElement(zi,{title:h(y,{_:y})},g?l?t.createElement(l,{"data-testid":"true",fontSize:"small",className:MP.trueIcon}):t.createElement(t.Fragment,null):u?t.createElement(u,{"data-testid":"false",fontSize:"small",className:MP.falseIcon}):t.createElement(t.Fragment,null))):t.createElement(Su,PP({component:"span",variant:"body2",className:r},xP(f)),n&&h(n,{_:n}))};TP.propTypes=PP(PP(PP({},Su.propTypes),wP),{valueLabelFalse:Ln().string,valueLabelTrue:Ln().string,TrueIcon:Ln().elementType,FalseIcon:Ln().elementType,looseValue:Ln().bool}),TP.displayName="BooleanFieldImpl";var AP=SP(TP),IP="RaBooleanField",MP={trueIcon:"".concat(IP,"-trueIcon"),falseIcon:"".concat(IP,"-falseIcon")},NP=(0,Sn.cp)(Su,{name:IP,overridesResolver:function(e,t){return t.root}})(((kP={display:"inline-flex",verticalAlign:"middle",lineHeight:0})["& .".concat(MP.trueIcon)]={},kP["& .".concat(MP.falseIcon)]={},kP)),LP=function(){return LP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LP.apply(this,arguments)},FP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},zP=function(e){var r=e.className,n=e.emptyText,o=e.locales,a=e.options,i=e.showTime,s=void 0!==i&&i,l=e.showDate,c=void 0===l||l,u=e.source,d=e.transform,p=void 0===d?BP:d,f=FP(e,["className","emptyText","locales","options","showTime","showDate","source","transform"]),m=Ps();if(!s&&!c)throw new Error("<DateField> cannot have showTime and showDate false at the same time");var h=Ym(e);if(!h)return null;var v=dt()(h,u);if(null==v||""===v)return n?t.createElement(Su,LP({component:"span",variant:"body2",className:r},xP(f)),n&&m(n,{_:n})):null;var g=p(v),y="";if(s&&c)y=VP?g.toLocaleString(o,a):g.toLocaleString();else if(c){var b=null!==a&&void 0!==a?a:"string"===typeof v&&v.length<=10?{timeZone:"UTC"}:void 0;y=VP?g.toLocaleDateString(o,b):g.toLocaleDateString()}else s&&(y=VP?g.toLocaleTimeString(o,a):g.toLocaleTimeString());return t.createElement(Su,LP({component:"span",variant:"body2",className:r},xP(f)),y)};zP.propTypes=LP(LP(LP({},Su.propTypes),wP),{locales:Ln().oneOfType([Ln().string,Ln().arrayOf(Ln().string)]),options:Ln().object,showTime:Ln().bool,showDate:Ln().bool}),zP.displayName="DateFieldImpl";var DP=SP(zP),BP=function(e){return e instanceof Date?e:"string"===typeof e||"number"===typeof e?new Date(e):void 0},VP=function(){try{(new Date).toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),WP=r(852),qP=function(){return qP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qP.apply(this,arguments)},UP=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},HP=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},$P=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},QP=function(e){var r=e.color,n=void 0===r?"primary":r,o=e.icon,a=void 0===o?GP:o,i=(e.invalid,e.label),s=void 0===i?"ra.action.save":i,l=e.onClick,c=e.mutationOptions,u=e.disabled,d=e.type,p=void 0===d?"submit":d,f=e.transform,m=e.variant,h=void 0===m?"contained":m,v=e.alwaysEnable,g=void 0!==v&&v,y=$P(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),b=Ps(),x=Og(),w=$y(),S=Tg(),O=S.dirtyFields,_=S.isValidating,E=S.isSubmitting,k=Object.keys(O).length>0,j=XP(!1===g||void 0===g?void 0:!g,u||!k||_||E);Rr("submit"===p&&(c&&(c.onSuccess||c.onError)));var C=(0,t.useCallback)((function(e){return UP(void 0,void 0,void 0,(function(){var t;return HP(this,(function(r){switch(r.label){case 0:return(null===w||void 0===w?void 0:w.save)?[4,w.save(e,qP(qP({},c),{transform:f}))]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return null!=t&&eb(t,x.setError),[2]}}))}))}),[x.setError,w,c,f]),P=(0,t.useCallback)((function(e){return UP(void 0,void 0,void 0,(function(){return HP(this,(function(t){switch(t.label){case 0:return l&&l(e),e.defaultPrevented?[2]:"button"!==p?[3,2]:(e.stopPropagation(),[4,x.handleSubmit(C)(e)]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),[l,p,x,C]),R=s&&b(s,{_:s});return t.createElement(YP,qP({variant:h,type:p,color:n,"aria-label":R,disabled:j,onClick:P},y),E?t.createElement(Zs,{sx:KP,size:14,thickness:3,color:"inherit"}):a,R)},KP={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},GP=t.createElement(WP.c,null);QP.propTypes={className:Ln().string,invalid:Ln().bool,label:Ln().string,variant:Ln().oneOf(["text","outlined","contained"]),icon:Ln().element,alwaysEnable:Ln().bool};var YP=(0,Sn.cp)(Tl,{name:"RaSaveButton",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative"})["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t})),XP=function(e,t){return"undefined"===typeof e?t:e},JP=function(){return JP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JP.apply(this,arguments)},ZP=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},eR=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},tR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},rR=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},nR=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=hw(),a=(0,d.useQueryClient)(),i=r.id,s=r.previousData,l=n.mutationMode,c=void 0===l?"pessimistic":l,u=tR(n,["mutationMode"]),p=(0,t.useRef)(c),f=(0,t.useRef)(r),m=(0,t.useRef)([]),h=function(e){var t=e.resource,r=e.id,n=Date.now(),o="undoable"===p.current?n+5e3:n,i=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:rR(rR([],e.slice(0,t),!0),e.slice(t+1),!0)}};a.setQueriesData([t,"getList"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total?e.total-1:void 0,pageInfo:e.pageInfo}:e}),{updatedAt:o}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?JP(JP({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?JP(JP({},e),{data:t,total:e.total?e.total-1:void 0,pageInfo:e.pageInfo}):e}))}):e}),{updatedAt:o}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?i(e):e}),{updatedAt:o}),a.setQueriesData([t,"getManyReference"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total-1}:e}),{updatedAt:o})},v=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,i=r.id,s=void 0===i?f.current.id:i,l=r.previousData,c=void 0===l?f.current.previousData:l,u=r.meta,d=void 0===u?f.current.meta:u;return o.delete(a,{id:s,previousData:c,meta:d}).then((function(e){return e.data}))}),JP(JP({},u),{onMutate:function(e){return ZP(void 0,void 0,void 0,(function(){var t;return eR(this,(function(r){switch(r.label){case 0:return u.onMutate?[4,u.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,JP({snapshot:m.current},t)];case 2:return[2,{snapshot:m.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==p.current&&"undoable"!==p.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),u.onError)return u.onError(e,t,r)},onSuccess:function(t,r,n){if(void 0===r&&(r={}),"pessimistic"===p.current){var o=r.resource,a=void 0===o?e:o,s=r.id;h({resource:a,id:void 0===s?i:s}),u.onSuccess&&u.onSuccess(t,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==p.current&&"undoable"!==p.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),u.onSettled)return u.onSettled(e,t,r,n)}}));return[kt((function(t,n,o){return void 0===t&&(t=e),void 0===n&&(n={}),void 0===o&&(o={}),ZP(void 0,void 0,void 0,(function(){var e,l,c,d,g,y,b,x,w;return eR(this,(function(S){switch(S.label){case 0:return e=o.mutationMode,l=o.onSuccess,c=o.onSettled,d=o.onError,f.current=r,e&&(p.current=e),"pessimistic"===p.current?[2,v.mutate(JP({resource:t},n),{onSuccess:l,onSettled:c,onError:d})]:(g=n.id,y=void 0===g?i:g,b=n.previousData,x=void 0===b?s:b,w=[[t,"getList"],[t,"getInfiniteList"],[t,"getMany"],[t,"getManyReference"]],m.current=w.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(m.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return S.sent(),h({resource:t,id:y}),l&&setTimeout((function(){return l(x,JP({resource:t},n),{snapshot:m.current})}),0),u.onSuccess&&setTimeout((function(){return u.onSuccess(x,JP({resource:t},n),{snapshot:m.current})}),0),"optimistic"===p.current?[2,v.mutate(JP({resource:t},n),{onSettled:c,onError:d})]:(yv.once("end",(function(e){e.isUndo?m.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):v.mutate(JP({resource:t},n),{onSettled:c,onError:d})})),[2])}}))}))})),v]},oR=function(e){var r=Dw(e)[1].unselect;return(0,t.useCallback)((function(e){r(e)}),[r])},aR=function(){return aR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aR.apply(this,arguments)},iR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const sR=function(e){var r=e.record,n=e.redirect,o=void 0===n?"list":n,a=e.onClick,i=e.mutationOptions,s=void 0===i?{}:i,l=s.meta,c=iR(s,["meta"]),u=Vy(e),d=Tt(),p=oR(u),f=dx(),m=nR(),h=m[0];return{isLoading:m[1].isLoading,handleDelete:(0,t.useCallback)((function(e){e.stopPropagation(),h(u,{id:r.id,previousData:r,meta:l},aR({onSuccess:function(){d("ra.notification.deleted",{type:"info",messageArgs:{smart_count:1},undoable:!0}),p([r.id]),f(o,u)},onError:function(e){d("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})},mutationMode:"undoable"},c)),"function"===typeof a&&a(e)}),[h,l,c,d,a,r,f,o,u,p])}};var lR=function(){return lR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lR.apply(this,arguments)},cR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uR=function(e){var r=e.label,n=void 0===r?"ra.action.delete":r,o=e.className,a=e.icon,i=void 0===a?dR:a,s=e.onClick,l=e.redirect,c=void 0===l?"list":l,u=e.mutationOptions,d=e.color,p=void 0===d?"error":d,f=cR(e,["label","className","icon","onClick","redirect","mutationOptions","color"]),m=Ym(e),h=Vy(e),v=sR({record:m,resource:h,redirect:c,onClick:s,mutationOptions:u}),g=v.isLoading,y=v.handleDelete;return t.createElement(gh,lR({onClick:y,disabled:g,label:n,className:Mn("ra-delete-button",o),key:"button",color:p},f),i)},dR=t.createElement(H_.c,null);uR.propTypes={className:Ln().string,label:Ln().string,record:Ln().any,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,icon:Ln().element};var pR=function(){return pR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pR.apply(this,arguments)},fR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const mR=function(e){var r=e.record,n=e.redirect,o=e.mutationMode,a=e.onClick,i=e.mutationOptions,s=void 0===i?{}:i,l=s.meta,c=fR(s,["meta"]),u=Vy(e),d=(0,t.useState)(!1),p=d[0],f=d[1],m=Tt(),h=oR(u),v=dx(),g=nR(),y=g[0];return{open:p,isLoading:g[1].isLoading,handleDialogOpen:function(e){f(!0),e.stopPropagation()},handleDialogClose:function(e){f(!1),e.stopPropagation()},handleDelete:(0,t.useCallback)((function(e){e.stopPropagation(),y(u,{id:r.id,previousData:r,meta:l},pR({onSuccess:function(){f(!1),m("ra.notification.deleted",{type:"info",messageArgs:{smart_count:1},undoable:"undoable"===o}),h([r.id]),v(n,u)},onError:function(e){f(!1),m("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})},mutationMode:o},c)),"function"===typeof a&&a(e)}),[y,l,o,c,m,a,r,v,n,u,h])}};var hR=function(){return hR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hR.apply(this,arguments)},vR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gR=function(e){var r=e.className,n=e.confirmTitle,o=void 0===n?"ra.message.delete_title":n,a=e.confirmContent,i=void 0===a?"ra.message.delete_content":a,s=e.confirmColor,l=void 0===s?"primary":s,c=e.icon,u=void 0===c?yR:c,d=e.label,p=void 0===d?"ra.action.delete":d,f=e.mutationMode,m=void 0===f?"pessimistic":f,h=e.onClick,v=e.redirect,g=void 0===v?"list":v,y=e.translateOptions,b=void 0===y?{}:y,x=e.mutationOptions,w=e.color,S=void 0===w?"error":w,O=vR(e,["className","confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","onClick","redirect","translateOptions","mutationOptions","color"]),_=Ps(),E=Ym(e),k=Vy(e),j=mR({record:E,redirect:g,mutationMode:m,onClick:h,mutationOptions:x,resource:k}),C=j.open,P=j.isLoading,R=j.handleDialogOpen,T=j.handleDialogClose,A=j.handleDelete;return t.createElement(t.Fragment,null,t.createElement(gh,hR({onClick:R,label:p,className:Mn("ra-delete-button",r),key:"button",color:S},O),u),t.createElement(IE,{isOpen:C,loading:P,title:o,content:i,confirmColor:l,translateOptions:hR({name:_("resources.".concat(k,".forcedCaseName"),{smart_count:1,_:wp().humanize(_("resources.".concat(k,".name"),{smart_count:1,_:wp().singularize(k)}),!0)}),id:E.id},b),onConfirm:A,onClose:T}))},yR=t.createElement(H_.c,null);gR.propTypes={className:Ln().string,confirmTitle:Ln().node,confirmContent:Ln().node,confirmColor:Ln().string,label:Ln().string,mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),record:Ln().any,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,icon:Ln().element,translateOptions:Ln().object};var bR=function(){return bR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bR.apply(this,arguments)},xR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},wR=function(e){var r=e.mutationMode,n=xR(e,["mutationMode"]),o=Ym(e),a=$y();if(!o||null==o.id)return null;var i=r||((null===a||void 0===a?void 0:a.mutationMode)?a.mutationMode:"undoable");return"undoable"===i?t.createElement(uR,bR({record:o},n)):t.createElement(gR,bR({mutationMode:i,record:o},n))};wR.propTypes={label:Ln().string,mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),record:Ln().any,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,icon:Ln().element};var SR=function(){return SR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SR.apply(this,arguments)},OR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_R=function(e){var r,n=e.children,o=e.className,a=e.resource,i=OR(e,["children","className","resource"]),s=fr((function(e){return e.breakpoints.down("sm")}));return t.createElement(jR,SR({className:Mn((r={},r[kR.mobileToolbar]=s,r[kR.desktopToolbar]=!s,r),o),role:"toolbar"},i),0===t.Children.count(n)?t.createElement("div",{className:kR.defaultToolbar},t.createElement(QP,null),t.createElement(wR,{resource:a})):n)};_R.propTypes={children:Ln().node,className:Ln().string,resource:Ln().string};var ER="RaToolbar",kR={desktopToolbar:"".concat(ER,"-desktopToolbar"),mobileToolbar:"".concat(ER,"-mobileToolbar"),defaultToolbar:"".concat(ER,"-defaultToolbar")},jR=(0,Sn.cp)(Vn,{name:ER,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={backgroundColor:"light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[900]})["&.".concat(kR.desktopToolbar)]={},t["&.".concat(kR.mobileToolbar)]={position:"fixed",bottom:0,left:0,right:0,padding:"16px",width:"100%",boxSizing:"border-box",flexShrink:0,zIndex:2},t["& .".concat(kR.defaultToolbar)]={flex:1,display:"flex",justifyContent:"space-between"},t}));var CR=function(e,t,r){var n=Object.keys(r),o=t.filter((function(e){return!n.includes(e)}));if(o.length>0)throw new Error("<".concat(e,"> component is not properly configured, some essential props are missing.\nBe sure to pass the props from the parent. Example:\n\nconst My").concat(e," = props => (\n <").concat(e," {...props}></").concat(e,">\n);\n\nThe missing props are: ").concat(o.join(", ")))},PR=(0,t.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,redirect:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});PR.displayName="CreateContext";var RR=function(e){return{record:e.record,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,redirect:e.redirect,resource:e.resource,save:e.save,saving:e.saving}},TR=function(){return TR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TR.apply(this,arguments)},AR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},IR=function(e){var r,n=e.actions,o=e.aside,a=e.children,i=e.className,s=e.component,l=void 0===s?Rv:s,c=e.title,u=AR(e,["actions","aside","children","className","component","title"]),d=function(e){var r=(0,t.useContext)(PR);return(0,t.useMemo)((function(){return jS()({},null!=e?RR(e):{},r)}),[r,e])}(e),p=d.resource,f=d.defaultTitle;return t.createElement(FR,TR({className:Mn("create-page",i)},MR(u)),t.createElement(ih,{title:c,defaultTitle:f,preferenceKey:"".concat(p,".create.title")}),n,t.createElement("div",{className:Mn(LR.main,(r={},r[LR.noActions]=!n,r))},t.createElement(l,{className:LR.card},a),o))};IR.propTypes={actions:Ln().oneOfType([Ln().element,Ln().bool]),aside:Ln().element,children:Ln().node,className:Ln().string,defaultTitle:Ln().any,hasList:Ln().bool,hasShow:Ln().bool,mutationOptions:Ln().object,record:Ln().object,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,save:Ln().func,title:Ln().node};var MR=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.isFetching,e.isLoading,e.location,e.match,e.mutationOptions,e.options,e.permissions,e.save,e.saving,e.transform,e.removeMiddleware;return AR(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","isFetching","isLoading","location","match","mutationOptions","options","permissions","save","saving","transform","removeMiddleware"])},NR="RaCreate",LR={main:"".concat(NR,"-main"),noActions:"".concat(NR,"-noActions"),card:"".concat(NR,"-card")},FR=(0,Sn.cp)("div",{name:NR,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(LR.main)]={display:"flex"},t["& .".concat(LR.noActions)]=((r={})[n.breakpoints.up("sm")]={marginTop:"1em"},r),t["& .".concat(LR.card)]={flex:"1 1 auto"},t})),zR=function(){return zR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zR.apply(this,arguments)},DR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},BR=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=hw(),a=(0,d.useQueryClient)(),i=(0,t.useRef)(r),s=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,s=r.data,l=void 0===s?i.current.data:s,c=r.meta,u=void 0===c?i.current.meta:c;return o.create(a,{data:l,meta:u}).then((function(e){return e.data}))}),zR(zR({},n),{onSuccess:function(t,r,o){void 0===r&&(r={});var i=r.resource,s=void 0===i?e:i;a.setQueryData([s,"getOne",{id:String(t.id)}],t),a.invalidateQueries([s,"getList"]),a.invalidateQueries([s,"getInfiniteList"]),a.invalidateQueries([s,"getMany"]),a.invalidateQueries([s,"getManyReference"]),n.onSuccess&&n.onSuccess(t,r,o)}}));return[kt((function(t,r,o){void 0===t&&(t=e),void 0===r&&(r={}),void 0===o&&(o={});var a=o.returnPromise,i=void 0===a?n.returnPromise:a,l=DR(o,["returnPromise"]);if(i)return s.mutateAsync(zR({resource:t},r),o);s.mutate(zR({resource:t},r),l)})),s]},VR=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},WR=function(){var e=(0,t.useRef)([]),r=(0,t.useCallback)((function(t){e.current.push(t)}),[]),n=(0,t.useCallback)((function(t){e.current=e.current.filter((function(e){return e!==t}))}),[]),o=(0,t.useCallback)((function(t){return function(){for(var r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.current.length-1,i=function(){for(var r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return--a>=0?(r=e.current)[a].apply(r,VR(VR([],n,!1),[i],!1)):t.apply(void 0,n)};return e.current.length>0?(r=e.current)[a].apply(r,VR(VR([],n,!1),[i],!1)):t.apply(void 0,n)}}),[]);return(0,t.useMemo)((function(){return{registerMutationMiddleware:r,getMutateWithMiddlewares:o,unregisterMutationMiddleware:n}}),[r,o,n])},qR=function(){return qR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qR.apply(this,arguments)},UR=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},HR=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},$R=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},QR=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=(0,Dx.parse)(r);if(n.source)return Array.isArray(n.source)?void console.error("Failed to parse location search parameter '".concat(r,'\'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. \'?source={"title":"foo"}\')')):JSON.parse(n.source)}catch(eB){console.error("Failed to parse location search parameter '".concat(r,'\'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. \'?source={"title":"foo"}\')'))}return null},KR=function(e,t){return t?"edit":e?"show":"list"},GR=function(e){var r=e.children,n=e.value;return t.createElement(Hy.Provider,{value:n},r)},YR=function(e){return(0,t.useMemo)((function(){return mO()(e,["save","saving","mutationMode","registerMutationMiddleware","unregisterMutationMiddleware"])}),[e.save,e.saving,e.mutationMode,e.registerMutationMiddleware,e.unregisterMutationMiddleware])},XR=function(){return XR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XR.apply(this,arguments)},JR=function(e){var r=e.children,n=e.value;return t.createElement(PR.Provider,{value:n},t.createElement(GR,{value:XR(XR({},YR(n)),{mutationMode:"pessimistic"})},t.createElement(Gm,{value:n&&n.record},r)))},ZR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},eT=function(e){var r=e.children,n=ZR(e,["children"]),o=function(e){var r;void 0===e&&(e={});var n=e.disableAuthentication,o=e.record,a=e.redirect,i=e.transform,s=e.mutationOptions,l=void 0===s?{}:s;Fr({enabled:!n});var c=Vy(e),u=Ak(e),d=u.hasEdit,p=u.hasShow,f=null!==a&&void 0!==a?a:KR(p,d),m=J(),h=Ps(),v=Tt(),g=dx(),y=null!==(r=null!==o&&void 0!==o?o:QR(m))&&void 0!==r?r:void 0,b=l.onSuccess,x=l.onError,w=l.meta,S=$R(l,["onSuccess","onError","meta"]),O=WR(),_=O.registerMutationMiddleware,E=O.getMutateWithMiddlewares,k=O.unregisterMutationMiddleware,j=BR(c,void 0,qR(qR({},S),{returnPromise:!0})),C=j[0],P=j[1].isLoading,R=(0,t.useCallback)((function(e,t){var r=void 0===t?{}:t,n=r.onSuccess,o=r.onError,a=r.transform,s=r.meta;return Promise.resolve(a?a(e):i?i(e):e).then((function(e){return UR(void 0,void 0,void 0,(function(){var t,r,a;return HR(this,(function(i){switch(i.label){case 0:t=E(C),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t(c,{data:e,meta:null!==s&&void 0!==s?s:w},{onSuccess:function(e,t,r){return UR(void 0,void 0,void 0,(function(){return HR(this,(function(o){return n?[2,n(e,t,r)]:b?[2,b(e,t,r)]:(v("ra.notification.created",{type:"info",messageArgs:{smart_count:1}}),g(f,c,e.id,e),[2])}))}))},onError:o||x||function(e){v("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}})];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),null!=(null===(a=r.body)||void 0===a?void 0:a.errors)?[2,r.body.errors]:[3,4];case 4:return[2]}}))}))}))}),[C,f,E,w,v,x,b,g,c,i]);return{isFetching:!1,isLoading:!1,saving:P,defaultTitle:h("ra.page.create",{name:Sp()(c,1)}),save:R,resource:c,record:y,redirect:f,registerMutationMiddleware:_,unregisterMutationMiddleware:k}}(n),a=t.createElement(JR,{value:o},r);return n.resource?t.createElement(Ix,{value:n.resource},a):a},tT=function(){return tT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tT.apply(this,arguments)},rT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nT=function(e){CR("Create",["children"],e);var r=e.resource,n=e.record,o=e.redirect,a=e.transform,i=e.mutationOptions,s=e.disableAuthentication,l=e.hasEdit,c=e.hasShow,u=rT(e,["resource","record","redirect","transform","mutationOptions","disableAuthentication","hasEdit","hasShow"]);return t.createElement(eT,{resource:r,record:n,redirect:o,transform:a,mutationOptions:i,disableAuthentication:s,hasEdit:l,hasShow:c},t.createElement(IR,tT({},u)))};nT.propTypes={actions:Ln().oneOfType([Ln().element,Ln().bool]),aside:Ln().element,children:Ln().node,className:Ln().string,disableAuthentication:Ln().bool,hasEdit:Ln().bool,hasShow:Ln().bool,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,title:Ln().node,record:Ln().object,mutationOptions:Ln().object,transform:Ln().func,sx:Ln().any};var oT=function(){return oT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oT.apply(this,arguments)},aT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iT=function(e){var r=e.children,n=e.className,o=e.component,a=void 0===o?sT:o,i=e.sx,s=e.toolbar,l=void 0===s?lT:s,c=aT(e,["children","className","component","sx","toolbar"]);return t.createElement(sb,oT({},c),t.createElement(a,{className:n,sx:i},t.createElement(p_,oT({alignItems:"flex-start"},cT(e)),r)),!1!==l?l:null)};iT.propTypes={children:Ln().node,defaultValues:Ln().oneOfType([Ln().object,Ln().func]),record:Ln().object,toolbar:Ln().oneOfType([Ln().element,Ln().oneOf([!1])]),validate:Ln().func};var sT=(0,Sn.cp)(Lv,{name:"RaSimpleForm",overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={paddingBottom:"5em"},t})),lT=t.createElement(_R,null),cT=function(e){e.children,e.className,e.component,e.criteriaMode,e.defaultValues,e.delayError,e.onSubmit,e.record,e.resource,e.reValidateMode,e.sx,e.toolbar,e.validate,e.resetOptions,e.resolver,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.warnWhenUnsavedChanges;return aT(e,["children","className","component","criteriaMode","defaultValues","delayError","onSubmit","record","resource","reValidateMode","sx","toolbar","validate","resetOptions","resolver","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","warnWhenUnsavedChanges"])},uT=r(2364),dT=r(432),pT=function(){return pT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pT.apply(this,arguments)},fT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},mT=function(e){var r=e.initiallyVisible,n=void 0!==r&&r,o=fT(e,["initiallyVisible"]),a=(0,t.useState)(n),i=a[0],s=a[1],l=Ps();return t.createElement(Jb,pT({type:i?"text":"password",size:"small",InputProps:{endAdornment:t.createElement(Ab,{position:"end"},t.createElement(js,{"aria-label":l(i?"ra.input.password.toggle_visible":"ra.input.password.toggle_hidden"),onClick:function(){s(!i)},size:"large"},i?t.createElement(uT.c,null):t.createElement(dT.c,null)))}},o))},hT=function(){return hT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hT.apply(this,arguments)},vT=function(e,t){return hT(hT({},e),t)},gT={page:1,perPage:25};const yT=function(e){void 0===e&&(e={});var r=(0,t.useReducer)(vT,hT(hT({},gT),e)),n=r[0],o=r[1],a=(0,t.useRef)(!0),i=(0,t.useCallback)((function(e){return o({perPage:e,page:1})}),[]),s=(0,t.useCallback)((function(e){return o({page:e})}),[]);return(0,t.useEffect)((function(){a.current?a.current=!1:i(e.perPage||25)}),[e.perPage,i]),{page:n.page,perPage:n.perPage,pagination:n,setPage:s,setPerPage:i,setPagination:o}};var bT=function(e,t){switch(t.type){case"SET_SORT":return t.payload;case"SET_SORT_FIELD":var r=t.payload;return{field:r,order:n=e.field===r&&e.order===jw?Cw:jw};case"SET_SORT_ORDER":var n=t.payload;if(!e.field)throw new Error("cannot change the order on an undefined sort field");return{field:e.field,order:n};default:return e}},xT={field:"",order:"ASC"};const wT=function(e){void 0===e&&(e=xT);var r=(0,t.useReducer)(bT,e),n=r[0],o=r[1],a=(0,t.useRef)(!0);return(0,t.useEffect)((function(){a.current?a.current=!1:o({type:"SET_SORT",payload:e})}),[e.field,e.order]),{setSort:(0,t.useCallback)((function(e){return o({type:"SET_SORT",payload:e})}),[o]),setSortField:(0,t.useCallback)((function(e){return o({type:"SET_SORT_FIELD",payload:e})}),[o]),setSortOrder:(0,t.useCallback)((function(e){return o({type:"SET_SORT_ORDER",payload:e})}),[o]),sort:n}};var ST=function(){return ST=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ST.apply(this,arguments)},OT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_T=function(){throw new Error("refetch is not available for a ListContext built from useList based on local data")},ET=function(e){var r=e.data,n=e.error,o=e.filter,a=void 0===o?kT:o,i=e.isFetching,s=void 0!==i&&i,l=e.isLoading,c=void 0!==l&&l,u=e.page,d=void 0===u?1:u,p=e.perPage,f=void 0===p?1e3:p,m=e.sort,h=e.filterCallback,v=void 0===h?function(e){return Boolean(e)}:h,g=Vy(e),y=Zr(s),b=y[0],x=y[1],w=Zr(c),S=w[0],O=w[1],_=Zr((function(){return{data:r,total:r?r.length:void 0}})),E=_[0],k=_[1],j=yT({page:d,perPage:f}),C=j.page,P=j.setPage,R=j.perPage,T=j.setPerPage,A=wT(m),I=A.sort,M=A.setSort,N=(0,t.useCallback)((function(e){M(e),P(1)}),[P,M]),L=Dw(g),F=L[0],z=L[1],D=(0,t.useRef)(a),B=Zr({}),V=B[0],W=B[1],q=Zr(a),U=q[0],H=q[1],$=(0,t.useCallback)((function(e){W((function(t){var r=t,n=e;r[n];return OT(r,["symbol"===typeof n?n:n+""])})),H((function(t){var r=t,n=e;r[n];return OT(r,["symbol"===typeof n?n:n+""])}))}),[W,H]),Q=(0,t.useCallback)((function(e,t){W((function(t){var r;return ST(ST({},t),((r={})[e]=!0,r))})),H((function(r){var n;return ww(ST(ST({},r),((n={})[e]=t,n)))}))}),[W,H]),K=(0,t.useCallback)((function(e,t){H(ww(e)),t&&W(t),P(1)}),[W,H,P]);return(0,t.useEffect)((function(){_t()(a,D.current)||(D.current=a,H(a))})),(0,t.useEffect)((function(){if(!c&&r){var e=r;if(U){var t=qx(U);e=r.filter((function(e){return Object.entries(t).every((function(t){var r=t[0],n=t[1],o=dt()(e,r);return Array.isArray(o)?Array.isArray(n)?o.some((function(e){return n.includes(e)})):o.includes(n):Array.isArray(n)?n.includes(o):"q"===r?Object.keys(e).some((function(t){return"string"===typeof e[t]&&e[t].toLowerCase().includes(n.toLowerCase())})):n==o}))})).filter(v)}var n=e.length;I.field&&(e=e.sort((function(e,t){return dt()(e,I.field)>dt()(t,I.field)?"ASC"===I.order?1:-1:dt()(e,I.field)<dt()(t,I.field)?"ASC"===I.order?-1:1:0}))),e=e.slice((C-1)*R,C*R),k({data:e,total:n})}}),[JSON.stringify(r),U,c,C,R,k,I.field,I.order]),(0,t.useEffect)((function(){s!==b&&x(s)}),[s,b,x]),(0,t.useEffect)((function(){c!==S&&O(c)}),[c,S,O]),{sort:I,data:null===E||void 0===E?void 0:E.data,defaultTitle:"",error:n,displayedFilters:V,filterValues:U,hasNextPage:null!=(null===E||void 0===E?void 0:E.total)&&C*R<E.total,hasPreviousPage:C>1,hideFilter:$,isFetching:b,isLoading:S,onSelect:z.select,onToggleItem:z.toggle,onUnselectItems:z.clearSelection,page:C,perPage:R,resource:void 0,refetch:_T,selectedIds:F,setFilters:K,setPage:P,setPerPage:T,setSort:N,showFilter:Q,total:null===E||void 0===E?void 0:E.total}},kT={},jT=(0,t.createContext)(void 0),CT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},PT=function(e){var r=Ak({resource:e}).recordRepresentation;return(0,t.useCallback)((function(e){return e?"function"===typeof r?r(e):"string"===typeof r?dt()(e,r):t.isValidElement(r)?r:"#".concat(e.id):""}),[r])},RT=function(e){var r=e.optionText,n=void 0===r?"name":r,o=e.optionValue,a=void 0===o?"id":o,i=e.disableValue,s=void 0===i?"disabled":i,l=e.translateChoice,c=void 0===l||l,u=Ps();return{getChoiceText:(0,t.useCallback)((function(e){if((0,t.isValidElement)(n))return t.createElement(Gm,{value:e},n);var r="function"===typeof n?n(e):dt()(e,n);return(0,t.isValidElement)(r)?r:c?u(String(r),{_:r}):String(r)}),[n,u,c]),getChoiceValue:(0,t.useCallback)((function(e){return dt()(e,a)}),[a]),getDisableValue:(0,t.useCallback)((function(e){return dt()(e,s)}),[s])}},TT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},AT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},IT=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},MT=(0,t.createContext)(void 0),NT=function(e){var r=e.fullWidth,n=e.label,o=e.helperText,a=e.margin,i=e.size,s=e.sx,l=e.timeout,c=void 0===l?1e3:l,u=e.variant,d=en(c);return t.createElement(LT,{sx:s,label:n,helperText:o,fullWidth:r,variant:u,margin:a,size:i,disabled:!0,onChange:function(){},InputProps:{endAdornment:t.createElement(Ab,{position:"end"},d?t.createElement(Zs,{color:"inherit",size:20}):t.createElement("span",{style:{width:20}},"\xa0"))}})},LT=(0,Sn.cp)(Fb,{name:"RaLoadingInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{"& .MuiInputLabel-root.Mui-disabled":{color:t.palette.text.secondary},"& .MuiFilledInput-root.Mui-disabled":{background:"light"===t.palette.mode?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.09)"},"& .MuiFilledInput-root.Mui-disabled:before":{borderBottomStyle:"solid"}}})),FT=function(){return FT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FT.apply(this,arguments)},zT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},DT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},BT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VT=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},WT=function(e){var r=e.choices,n=e.className,o=e.create,a=e.createLabel,i=e.createValue,s=e.defaultValue,l=e.disableValue,c=void 0===l?"disabled":l,u=e.emptyText,d=void 0===u?"":u,p=e.emptyValue,f=void 0===p?"":p,m=e.format,h=(e.filter,e.helperText),v=e.isFetching,g=e.isLoading,y=e.label,b=e.margin,x=void 0===b?"dense":b,w=e.onBlur,S=e.onChange,O=e.onCreate,_=e.optionText,E=e.optionValue,k=e.parse,j=e.resource,C=e.source,P=e.translateChoice,R=e.validate,T=BT(e,["choices","className","create","createLabel","createValue","defaultValue","disableValue","emptyText","emptyValue","format","filter","helperText","isFetching","isLoading","label","margin","onBlur","onChange","onCreate","optionText","optionValue","parse","resource","source","translateChoice","validate"]),A=Ps();(0,t.useEffect)((function(){if(null==f)throw new Error("emptyValue being set to null or undefined is not supported. Use parse to turn the empty string into null.")}),[f]);var I=function(e){void 0===e&&(e={});var r=(0,t.useContext)(jT),n=ET({data:e.choices,isLoading:e.isLoading,perPage:1/0}),o=n.data,a=CT(n,["data"]),i=(0,t.useMemo)((function(){var t,n,i,s,l,c,u,d,p,f,m,h,v,g,y,b,x,w,S;return e.choices||!r?{allChoices:o,availableChoices:null!==(t=e.availableChoices)&&void 0!==t?t:o,selectedChoices:null!==(n=e.selectedChoices)&&void 0!==n?n:o,displayedFilters:null!==(i=e.selectedChoices)&&void 0!==i?i:a.displayedFilters,error:e.error,filter:null!==(s=e.filter)&&void 0!==s?s:a.filter,filterValues:null!==(l=e.filterValues)&&void 0!==l?l:a.filterValues,hasNextPage:null!==(c=e.hasNextPage)&&void 0!==c?c:a.hasNextPage,hasPreviousPage:null!==(u=e.hasPreviousPage)&&void 0!==u?u:a.hasPreviousPage,hideFilter:null!==(d=e.hideFilter)&&void 0!==d?d:a.hideFilter,isLoading:a.isLoading,isFetching:a.isFetching,page:null!==(p=e.page)&&void 0!==p?p:a.page,perPage:null!==(f=e.perPage)&&void 0!==f?f:a.perPage,refetch:null!==(m=e.refetch)&&void 0!==m?m:a.refetch,resource:null!==(h=e.resource)&&void 0!==h?h:a.resource,setFilters:null!==(v=e.setFilters)&&void 0!==v?v:a.setFilters,setPage:null!==(g=e.setPage)&&void 0!==g?g:a.setPage,setPerPage:null!==(y=e.setPerPage)&&void 0!==y?y:a.setPerPage,setSort:null!==(b=e.setSort)&&void 0!==b?b:a.setSort,showFilter:null!==(x=e.showFilter)&&void 0!==x?x:a.showFilter,sort:null!==(w=e.sort)&&void 0!==w?w:a.sort,source:e.source,total:null!==(S=e.total)&&void 0!==S?S:a.total,isFromReference:!1}:r}),[r,o,a,e]);return i}({choices:r,isLoading:g,isFetching:v,resource:j,source:C}),M=I.allChoices,N=I.isLoading,L=I.error,F=I.source,z=I.resource,D=I.isFromReference;if(void 0===F)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the source prop");if(!N&&!L&&void 0===M)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the choices prop");var B=PT(z),V=RT({optionText:null!==_&&void 0!==_?_:D?B:void 0,optionValue:E,disableValue:c,translateChoice:null!==P&&void 0!==P?P:!D}),W=V.getChoiceText,q=V.getChoiceValue,U=V.getDisableValue,H=xb(FT({defaultValue:s,parse:k,format:m,onBlur:w,onChange:S,resource:z,source:F,validate:R},T)),$=H.field,Q=H.fieldState,K=H.id,G=H.isRequired,Y=H.formState.isSubmitted,X=Q.error,J=Q.invalid,Z=Q.isTouched,ee=(0,t.useCallback)((function(){return(0,Vl.isElement)(d)?d:""===d?"\u2003":A(d,{_:d})}),[d,A]),te=(0,t.useCallback)((function(e){return W(e)}),[W]),re=function(e){var r=e.create,n=e.createLabel,o=void 0===n?"ra.action.create":n,a=e.createItemLabel,i=void 0===a?"ra.action.create_item":a,s=e.createValue,l=void 0===s?"@@ra-create":s,c=e.optionText,u=void 0===c?"name":c,d=e.filter,p=e.handleChange,f=e.onCreate,m=Ps(),h=(0,t.useState)(!1),v=h[0],g=h[1],y=(0,t.useRef)(d);(0,t.useEffect)((function(){y.current!==d&&""!==d&&(y.current=d)}),[d]);var b=(0,t.useMemo)((function(){return{filter:y.current,onCancel:function(){return g(!1)},onCreate:function(e){g(!1),p(e)}}}),[p]);return{createId:l,getCreateItem:function(){return"string"!==typeof u?{id:l,name:d&&i?m(i,{item:d,_:i}):m(o,{_:o})}:st()({id:l},u,d&&i?m(i,{item:d,_:i}):m(o,{_:o}))},handleChange:function(e){return TT(void 0,void 0,void 0,(function(){var n,o,a,i;return AT(this,(function(s){switch(s.label){case 0:return n=(null===(i=null===e||void 0===e?void 0:e.target)||void 0===i?void 0:i.value)||e,(null===(o=Array.isArray(n)?IT([],n,!0).pop():n)||void 0===o?void 0:o.id)!==l&&o!==l?[3,3]:(0,t.isValidElement)(r)?[3,2]:[4,f(d)];case 1:return(a=s.sent())?(p(a),[2]):[3,3];case 2:return g(!0),[2];case 3:return p(e),[2]}}))}))},createElement:v&&(0,t.isValidElement)(r)?t.createElement(MT.Provider,{value:b},r):null}}({create:o,createLabel:a,createValue:i,handleChange:(0,t.useCallback)((function(e){return zT(void 0,void 0,void 0,(function(){return DT(this,(function(t){return(null===e||void 0===e?void 0:e.target)?$.onChange(e):$.onChange(q(e)),[2]}))}))}),[$,q]),onCreate:O,optionText:_}),ne=re.getCreateItem,oe=re.handleChange,ae=re.createElement,ie=o||O?ne():null,se=M;(o||O)&&(se=VT(VT([],se,!0),[ie],!1));var le=(0,t.useCallback)((function(e){return e?t.createElement(Lu,{key:q(e),value:q(e),disabled:U(e)},te(ie&&(null===e||void 0===e?void 0:e.id)===ie.id?ie:e)):null}),[q,U,te,ie]);if(N)return t.createElement(NT,{label:""!==y&&!1!==y&&t.createElement(Eb,{label:y,source:F,resource:j,isRequired:G}),sx:e.sx,helperText:t.createElement($b,{touched:Z||Y,error:null===X||void 0===X?void 0:X.message,helperText:h}),variant:e.variant,size:e.size,margin:e.margin,fullWidth:e.fullWidth});var ce=!!L||!1!==h||(Z||Y)&&J;return t.createElement(t.Fragment,null,t.createElement(UT,FT({id:K},$,{className:Mn("ra-input","ra-input-".concat(F),n),onChange:oe,select:!0,label:""!==y&&!1!==y&&t.createElement(Eb,{label:y,source:F,resource:j,isRequired:G}),clearAlwaysVisible:!0,error:!!L||(Z||Y)&&J,helperText:ce?t.createElement($b,{touched:Z||Y||L,error:(null===X||void 0===X?void 0:X.message)||(null===L||void 0===L?void 0:L.message),helperText:h}):null,margin:x},qT(T)),!G&&t.createElement(Lu,{value:f,key:"null","aria-label":A("ra.action.clear_input_value"),title:A("ra.action.clear_input_value")},ee()),se.map(le)),ae)};WT.propTypes={emptyText:Ln().oneOfType([Ln().string,Ln().element]),emptyValue:Ln().any,choices:Ln().arrayOf(Ln().object),className:Ln().string,label:Ln().oneOfType([Ln().string,Ln().bool,Ln().element]),optionText:Ln().oneOfType([Ln().string,Ln().func,Ln().element]),optionValue:Ln().string,disableValue:Ln().string,resettable:Ln().bool,resource:Ln().string,source:Ln().string,translateChoice:Ln().bool};var qT=function(e){e.afterSubmit,e.allowNull,e.beforeSubmit,e.choices,e.className,e.crudGetMatching,e.crudGetOne,e.data,e.field,e.fieldState,e.formState,e.filter,e.filterToQuery,e.formatOnBlur,e.isEqual,e.limitChoicesToValue,e.multiple,e.name,e.pagination,e.perPage,e.ref,e.reference,e.refetch,e.render,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.sort,e.subscription,e.type,e.validateFields,e.validation,e.value;var t=BT(e,["afterSubmit","allowNull","beforeSubmit","choices","className","crudGetMatching","crudGetOne","data","field","fieldState","formState","filter","filterToQuery","formatOnBlur","isEqual","limitChoicesToValue","multiple","name","pagination","perPage","ref","reference","refetch","render","setFilter","setPagination","setSort","shouldUnregister","sort","subscription","type","validateFields","validation","value"]);return Gb(t)},UT=(0,Sn.cp)(Fb,{name:"RaSelectInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return FT(FT({},Vb),{minWidth:t.spacing(20),"& .MuiFilledInput-root":{paddingRight:0}})})),HT=function(){return HT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HT.apply(this,arguments)};function $T(e){return(0,kn.cp)("MuiLinearProgress",e)}(0,En.c)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var QT,KT,GT,YT,XT,JT;const ZT=["className","color","value","valueBuffer","variant"];let eA,tA,rA,nA,oA,aA;const iA=Xi(eA||(eA=QT||(QT=Di(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),sA=Xi(tA||(tA=KT||(KT=Di(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),lA=Xi(rA||(rA=GT||(GT=Di(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),cA=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,qn.IV)(e.palette[t].main,.62):(0,qn.sP)(e.palette[t].main,.5),uA=(0,Sn.cp)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["color".concat((0,Wn.c)(r.color))],t[r.variant]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:cA(r,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),dA=(0,Sn.cp)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t["dashedColor".concat((0,Wn.c)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;const n=cA(r,t.color);return(0,Oe.c)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),Yi(nA||(nA=YT||(YT=Di(["\n animation: "," 3s infinite linear;\n "]))),lA)),pA=(0,Sn.cp)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t["barColor".concat((0,Wn.c)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&Yi(oA||(oA=XT||(XT=Di(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),iA)})),fA=(0,Sn.cp)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t["barColor".concat((0,Wn.c)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:cA(r,t.color),transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&Yi(aA||(aA=JT||(JT=Di(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),sA)})),mA=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:a,valueBuffer:i,variant:s="indeterminate"}=r,l=(0,Kt.c)(r,ZT),c=(0,Oe.c)({},r,{color:o,variant:s}),u=(e=>{const{classes:t,variant:r,color:n}=e,o={root:["root","color".concat((0,Wn.c)(n)),r],dashed:["dashed","dashedColor".concat((0,Wn.c)(n))],bar1:["bar","barColor".concat((0,Wn.c)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,Wn.c)(n)),"buffer"===r&&"color".concat((0,Wn.c)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,xn.c)(o,$T,t)})(c),d=po(),p={},f={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;"rtl"===d.direction&&(e=-e),f.bar1.transform="translateX(".concat(e,"%)")}else 0;if("buffer"===s)if(void 0!==i){let e=(i||0)-100;"rtl"===d.direction&&(e=-e),f.bar2.transform="translateX(".concat(e,"%)")}else 0;return(0,Jt.jsxs)(uA,(0,Oe.c)({className:(0,bn.c)(u.root,n),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===s?(0,Jt.jsx)(dA,{className:u.dashed,ownerState:c}):null,(0,Jt.jsx)(pA,{className:u.bar1,ownerState:c,style:f.bar1}),"determinate"===s?null:(0,Jt.jsx)(fA,{className:u.bar2,ownerState:c,style:f.bar2})]}))})),hA=mA;var vA=function(){return vA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vA.apply(this,arguments)},gA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},yA=function(e){var r=e.timeout,n=void 0===r?1e3:r,o=gA(e,["timeout"]),a=o.className,i=gA(o,["className"]);return en(n)?t.createElement(xA,vA({className:a},i)):t.createElement(gd,{my:1,height:4})};yA.propTypes={className:Ln().string,timeout:Ln().number},yA.displayName="LinearProgress";var bA,xA=(0,Sn.cp)(hA,{name:"RaLinearProgress",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{margin:"".concat(t.spacing(1)," 0"),width:t.spacing(20)}})),wA=function(){return wA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wA.apply(this,arguments)},SA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},OA=function(e){var r,n,o,a=e.children,i=e.className,s=void 0===i?"":i,l=e.color,c=void 0===l?"text.secondary":l,u=e.component,d=void 0===u?"span":u,p=e.fullWidth,f=e.isRequired,m=e.label,h=e.resource,v=e.source,g=SA(e,["children","className","color","component","fullWidth","isRequired","label","resource","source"]);return t.createElement(kA,wA({component:d,className:Mn(s,(r={},r[EA.fullWidth]=p,r))},g),!1!==m&&!1!==a.props.label&&"string"!==typeof a.type&&"Labeled"!==(null===(n=a.type)||void 0===n?void 0:n.displayName)&&"Labeled"!==(null===(o=a.type)||void 0===o?void 0:o.displayName)?t.createElement(Su,{color:c,className:EA.label},t.createElement(Eb,{label:m||a.props.label,source:v||a.props.source,resource:h,isRequired:f})):null,a)};OA.displayName="Labeled";var _A="RaLabeled",EA={label:"".concat(_A,"-label"),fullWidth:"".concat(_A,"-fullWidth")},kA=(0,Sn.cp)(p_,{name:_A,overridesResolver:function(e,t){return t.root}})(((bA={display:"inline-flex",marginBottom:"0.2em"})["&.".concat(EA.fullWidth)]={width:"100%"},bA["& .".concat(EA.label)]={fontSize:"0.75em",marginBottom:"0.2em"},bA)),jA=(0,t.createContext)(void 0),CA=function(){return CA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},CA.apply(this,arguments)},PA=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},RA=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},TA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},AA=function(e){var r,n,o=e.className,a=(e.defaultValue,e.label),i=(e.isFetching,e.isLoading),s=e.children,l=e.helperText,c=e.record,u=e.resource,d=e.source,p=e.validate,f=e.variant,m=e.disabled,h=e.margin,v=void 0===h?"dense":h,g=TA(e,["className","defaultValue","label","isFetching","isLoading","children","helperText","record","resource","source","validate","variant","disabled","margin"]),y=ub(),b=db(),x=Array.isArray(p)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,r,n){for(var o=0,a=(Array.isArray(e[0])?e[0]:e).filter(Uv);o<a.length;o++){var i=(0,a[o])(t,r,n);if(i)return i}}}(p):p,w=function(){var e=Ps();return function(t){if(null!=t.message){var r=t,n=r.message,o=r.args;return e(n,HT({_:n},o))}return e(t,{_:t})}}(),S=Og(),O=S.getFieldState,_=S.formState,E=S.getValues,k=S.register,j=S.unregister,C=function(e){const r=Og(),{control:n=r.control,name:o,keyName:a="id",shouldUnregister:i}=e,[s,l]=t.useState(n._getFieldArray(o)),c=t.useRef(n._getFieldArray(o).map(Bg)),u=t.useRef(s),d=t.useRef(o),p=t.useRef(!1);d.current=o,u.current=s,n._names.array.add(o),e.rules&&n.register(o,e.rules),Rg({next:e=>{let{values:t,name:r}=e;if(r===d.current||!r){const e=dg(t,d.current);Array.isArray(e)&&(l(e),c.current=e.map(Bg))}},subject:n._subjects.array});const f=t.useCallback((e=>{p.current=!0,n._updateFieldArray(o,e)}),[n,o]);return t.useEffect((()=>{if(n._state.action=!1,qg(o,n._names)&&n._subjects.state.next({...n._formState}),p.current&&(!Wg(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([o]).then((e=>{const t=dg(e.errors,o),r=dg(n._formState.errors,o);(r?!t&&r.type||t&&(r.type!==t.type||r.message!==t.message):t&&t.type)&&(t?Fg(n._formState.errors,o,t):fy(n._formState.errors,o),n._subjects.state.next({errors:n._formState.errors}))}));else{const e=dg(n._fields,o);!e||!e._f||Wg(n._options.reValidateMode).isOnSubmit&&Wg(n._options.mode).isOnSubmit||ay(e,n._formValues,n._options.criteriaMode===mg.all,n._options.shouldUseNativeValidation,!0).then((e=>!kg(e)&&n._subjects.state.next({errors:Hg(n._formState.errors,e,o)})))}n._subjects.values.next({name:o,values:{...n._formValues}}),n._names.focus&&Ug(n._fields,((e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1})),n._names.focus="",n._updateValid(),p.current=!1}),[s,o,n]),t.useEffect((()=>(!dg(n._formValues,o)&&n._updateFieldArray(o),()=>{(n._options.shouldUnregister||i)&&n.unregister(o)})),[o,n,a,i]),{swap:t.useCallback(((e,t)=>{const r=n._getFieldArray(o);py(r,e,t),py(c.current,e,t),f(r),l(r),n._updateFieldArray(o,r,py,{argA:e,argB:t},!1)}),[f,o,n]),move:t.useCallback(((e,t)=>{const r=n._getFieldArray(o);cy(r,e,t),cy(c.current,e,t),f(r),l(r),n._updateFieldArray(o,r,cy,{argA:e,argB:t},!1)}),[f,o,n]),prepend:t.useCallback(((e,t)=>{const r=Cg(lg(e)),a=uy(n._getFieldArray(o),r);n._names.focus=Vg(o,0,t),c.current=uy(c.current,r.map(Bg)),f(a),l(a),n._updateFieldArray(o,a,uy,{argA:sy(e)})}),[f,o,n]),append:t.useCallback(((e,t)=>{const r=Cg(lg(e)),a=iy(n._getFieldArray(o),r);n._names.focus=Vg(o,a.length-1,t),c.current=iy(c.current,r.map(Bg)),f(a),l(a),n._updateFieldArray(o,a,iy,{argA:sy(e)})}),[f,o,n]),remove:t.useCallback((e=>{const t=dy(n._getFieldArray(o),e);c.current=dy(c.current,e),f(t),l(t),n._updateFieldArray(o,t,dy,{argA:e})}),[f,o,n]),insert:t.useCallback(((e,t,r)=>{const a=Cg(lg(t)),i=ly(n._getFieldArray(o),e,a);n._names.focus=Vg(o,e,r),c.current=ly(c.current,e,a.map(Bg)),f(i),l(i),n._updateFieldArray(o,i,ly,{argA:e,argB:sy(t)})}),[f,o,n]),update:t.useCallback(((e,t)=>{const r=lg(t),a=my(n._getFieldArray(o),e,r);c.current=[...a].map(((t,r)=>t&&r!==e?c.current[r]:Bg())),f(a),l([...a]),n._updateFieldArray(o,a,my,{argA:e,argB:r},!0,!1)}),[f,o,n]),replace:t.useCallback((e=>{const t=Cg(lg(e));c.current=t.map(Bg),f([...t]),l([...t]),n._updateFieldArray(o,[...t],(e=>e),{},!0,!1)}),[f,o,n]),fields:t.useMemo((()=>s.map(((e,t)=>({...e,[a]:c.current[t]||Bg()})))),[s,a])}}({name:d,rules:{validate:function(t){return PA(void 0,void 0,void 0,(function(){var r;return RA(this,(function(n){switch(n.label){case 0:return x?[4,x(t,E(),e)]:[2,!0];case 1:return(r=n.sent())?[2,w(r)]:[2,!0]}}))}))}}}),P=_.isSubmitted;(0,t.useEffect)((function(){return k(d),b.registerField(d,y),function(){j(d,{keepValue:!0}),b.unregisterField(d,y)}}),[k,j,d,b,y]),pb({inputProps:e,isArrayInput:!0,fieldArrayInputControl:C});var R=O(d,_),T=R.isDirty,A=R.error;if(i)return t.createElement(OA,{label:a,className:o},t.createElement(yA,null));var I=!1!==l||(T||P)&&!!A;return t.createElement(NA,CA({fullWidth:!0,margin:v,className:Mn("ra-input","ra-input-".concat(d),MA.root,o),error:(T||P)&&!!A},Gb(g)),t.createElement(Qf,{htmlFor:d,className:MA.label,shrink:!0,error:(T||P)&&!!A},t.createElement(Eb,{label:a,source:d,resource:u,isRequired:Jv(p)})),t.createElement(jA.Provider,{value:C},(0,t.cloneElement)(t.Children.only(s),CA(CA({},C),{record:c,resource:u,source:d,variant:f,margin:v,disabled:m}))),I?t.createElement(im,{error:(T||P)&&!!A},t.createElement($b,{touched:T||P,error:null!==(n=null===(r=null===A||void 0===A?void 0:A.root)||void 0===r?void 0:r.message)&&void 0!==n?n:null===A||void 0===A?void 0:A.message,helperText:l})):null)},IA="RaArrayInput",MA={root:"".concat(IA,"-root"),label:"".concat(IA,"-label")},NA=(0,Sn.cp)(Zf,{name:IA,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={marginTop:0})["& .".concat(MA.label)]={position:"relative",top:r.spacing(.5),left:r.spacing(-1.5)},t["& .".concat(MA.root)]={paddingLeft:r.spacing(2)},t})),LA=function(){return LA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LA.apply(this,arguments)},FA=function(){return FA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FA.apply(this,arguments)},zA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DA=function(e){var t,r=e.children,n=(e.form,e.formData),o=e.source,a=e.index,i=zA(e,["children","form","formData","source","index"]);if("undefined"!==typeof a&&o){var s=dt()(n,o);t=r(FA({formData:n,scopedFormData:s,getSource:function(e){return"".concat(o,".").concat(e)}},i))}else t=r(FA({formData:n,getSource:function(e){return e}},i));return void 0===t?null:t};const BA=function(e){Og().formState.isDirty;var r=function(){var e=Og().getValues;return LA(LA({},Mg()),e())}();return t.createElement(DA,FA({formData:r},e))};var VA="RaSimpleFormIterator",WA={action:"".concat(VA,"-action"),add:"".concat(VA,"-add"),clear:"".concat(VA,"-clear"),form:"".concat(VA,"-form"),index:"".concat(VA,"-index"),inline:"".concat(VA,"-inline"),line:"".concat(VA,"-line"),list:"".concat(VA,"-list"),buttons:"".concat(VA,"-buttons")},qA=(0,t.createContext)(void 0),UA=function(){return(0,t.useContext)(qA)},HA=(0,t.createContext)(void 0),$A=function(){return $A=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$A.apply(this,arguments)},QA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},KA=t.forwardRef((function(e,r){var n=e.children,o=e.disabled,a=e.disableReordering,i=e.disableRemove,s=e.getItemLabel,l=e.index,c=e.inline,u=void 0!==c&&c,d=e.member,p=e.record,f=e.removeButton,m=e.reOrderButtons,h=e.resource,v=e.source,g=UA(),y=g.total,b=g.reOrder,x=g.remove,w=(0,t.useMemo)((function(){return{index:l,total:y,reOrder:function(e){return b(l,e)},remove:function(){return x(l)}}}),[l,y,b,x]),S="function"===typeof s?s(l):s;return t.createElement(HA.Provider,{value:w},t.createElement("li",{className:WA.line,ref:r},S&&t.createElement(Su,{variant:"body2",className:WA.index},S),t.createElement("section",{className:Mn(WA.form,u&&WA.inline)},t.Children.map(n,(function(e,r){if(!(0,t.isValidElement)(e))return null;var n=e.props,a=n.source,i=QA(n,["source"]);return(0,t.cloneElement)(e,$A({source:a?"".concat(d,".").concat(a):d,index:a?void 0:r,resource:h,disabled:o},i))}))),!o&&t.createElement("span",{className:WA.action},!a&&(0,t.cloneElement)(m,{index:l,max:y,reOrder:b,className:Mn("button-reorder","button-reorder-".concat(v,"-").concat(l))}),!function(e){return"boolean"===typeof i?i:i&&i(e)}(p)&&(0,t.cloneElement)(f,{onClick:function(e,t){return function(r){x(t),e&&e(r)}}(f.props.onClick,l),className:Mn("button-remove","button-remove-".concat(v,"-").concat(l))}))))})),GA=r(3556),YA=function(){return YA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YA.apply(this,arguments)},XA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},JA=function(e){var r=e.label,n=e.onClick,o=XA(e,["label","onClick"]),a=Ps(),i=t.useState(!1),s=i[0],l=i[1],c=function(){l(!1)},u=a(r,{_:r});return t.createElement(zi,{title:u,open:s,onOpen:function(){l(!0)},onClose:c},t.createElement(js,YA({"aria-label":u,onClick:function(e){c(),n(e)}},o)))},ZA=function(){return ZA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZA.apply(this,arguments)},eI=function(e){var r=UA().add;return t.createElement(JA,ZA({label:"ra.action.add",size:"small",onClick:function(){return r()},color:"primary"},e),t.createElement(GA.c,{fontSize:"small"}))},tI=function(){return(0,t.useContext)(HA)},rI=function(){return rI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rI.apply(this,arguments)},nI=function(e){var r=tI().remove;return t.createElement(JA,rI({label:"ra.action.remove",size:"small",onClick:function(){return r()},color:"warning"},e),t.createElement(ik.c,{fontSize:"small"}))},oI=r(404),aI=r(4392),iI=function(e){var r=e.className,n=tI(),o=n.index,a=n.total,i=n.reOrder;return t.createElement("span",{className:r},t.createElement(JA,{label:"ra.action.move_up",size:"small",onClick:function(){return i(o-1)},disabled:o<=0,color:"primary"},t.createElement(oI.c,{fontSize:"small"})),t.createElement(JA,{label:"ra.action.move_down",size:"small",onClick:function(){return i(o+1)},disabled:null==a||o>=a-1,color:"primary"},t.createElement(aI.c,{fontSize:"small"})))},sI=r(8316),lI=function(){return lI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lI.apply(this,arguments)},cI=function(e){return t.createElement(JA,lI({label:"ra.action.clear_array_input",size:"small",color:"warning"},e),t.createElement(sI.c,{fontSize:"small"}))};var uI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},dI=function(e){var r=e.addButton,n=void 0===r?t.createElement(eI,null):r,o=e.removeButton,a=void 0===o?t.createElement(nI,null):o,i=e.reOrderButtons,s=void 0===i?t.createElement(iI,null):i,l=e.children,c=e.className,u=e.resource,d=e.source,p=e.disabled,f=e.disableAdd,m=void 0!==f&&f,h=e.disableClear,v=e.disableRemove,g=void 0!==v&&v,y=e.disableReordering,b=e.inline,x=e.getItemLabel,w=void 0!==x&&x,S=e.fullWidth,O=e.sx,_=(0,t.useState)(!1),E=_[0],k=_[1],j=function(e){var r=(0,t.useContext)(jA),n=(0,t.useMemo)((function(){return{append:null===e||void 0===e?void 0:e.append,fields:null===e||void 0===e?void 0:e.fields,insert:null===e||void 0===e?void 0:e.insert,move:null===e||void 0===e?void 0:e.move,prepend:null===e||void 0===e?void 0:e.prepend,remove:null===e||void 0===e?void 0:e.remove,replace:null===e||void 0===e?void 0:e.replace,swap:null===e||void 0===e?void 0:e.swap,update:null===e||void 0===e?void 0:e.update}}),[e]);return(null===e||void 0===e?void 0:e.fields)?n:r}(e),C=j.append,P=j.fields,R=j.move,T=j.remove,A=j.replace,I=Og().resetField,M=Ps(),N=Ym(e),L=(0,t.useRef)({}),F=(0,t.useCallback)((function(e){T(e)}),[T]);if(P.length>0){var z=P[0],D=(z.id,uI(z,["id"]));for(var B in L.current=D,L.current)L.current[B]=null}var V,W=(0,t.useCallback)((function(e){void 0===e&&(e=void 0);var r=e;null==e&&(r=L.current,1===t.Children.count(l)&&t.isValidElement(t.Children.only(l))&&!t.Children.only(l).props.source&&t.Children.map(l,(function(e){return t.isValidElement(e)&&e.type!==BA})).some(Boolean)?r="":(r=r||{},t.Children.forEach(l,(function(e){var n;t.isValidElement(e)&&e.type!==BA&&e.props.source&&(r[e.props.source]=null!==(n=e.props.defaultValue)&&void 0!==n?n:null)})))),C(r),I("".concat(d,".").concat(P.length),{defaultValue:r})}),[C,l,I,d,P.length]),q=(0,t.useCallback)((function(e,t){R(e,t)}),[R]),U=(0,t.useCallback)((function(){A([]),k(!1)}),[A]),H=dt()(N,d),$=(0,t.useMemo)((function(){return{total:P.length,add:W,remove:F,reOrder:q,source:d}}),[W,P.length,q,F,d]);return P?t.createElement(qA.Provider,{value:$},t.createElement(pI,{className:Mn(c,S&&"fullwidth",p&&"disabled"),sx:O},t.createElement("ul",{className:WA.list},P.map((function(e,r){return t.createElement(KA,{key:e.id,disabled:p,disableRemove:g,disableReordering:y,fields:P,getItemLabel:w,index:r,member:"".concat(d,".").concat(r),onRemoveField:F,onReorder:q,record:H&&H[r]||{},removeButton:a,reOrderButtons:s,resource:u,source:d,inline:b},l)}))),!p&&!(m&&(h||g))&&t.createElement("div",{className:WA.buttons},!m&&t.createElement("div",{className:WA.add},(0,t.cloneElement)(n,{className:Mn("button-add","button-add-".concat(d)),onClick:(V=n.props.onClick,function(e){W(),V&&V(e)})})),P.length>0&&!h&&!g&&t.createElement("div",{className:WA.clear},t.createElement(IE,{isOpen:E,title:M("ra.action.clear_array_input"),content:M("ra.message.clear_array_input"),onConfirm:U,onClose:function(){return k(!1)}}),t.createElement(cI,{onClick:function(){return k(!0)}}))))):null};dI.propTypes={addButton:Ln().element,removeButton:Ln().element,children:Ln().node,className:Ln().string,field:Ln().object,fields:Ln().array,fieldState:Ln().object,formState:Ln().object,fullWidth:Ln().bool,inline:Ln().bool,record:Ln().object,source:Ln().string,resource:Ln().string,translate:Ln().func,disableAdd:Ln().bool,disableRemove:Ln().oneOfType([Ln().func,Ln().bool]),TransitionProps:Ln().shape({})};var pI=(0,Sn.cp)("div",{name:VA,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n,o=e.theme;return(t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}})["& .".concat(WA.line)]=((r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)})[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(WA.index)]=((n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)})[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(WA.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(WA.form)]={flex:2},t["& .".concat(WA.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(WA.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(WA.buttons)]={display:"flex"},t["& .".concat(WA.add)]={borderBottom:"none"},t["& .".concat(WA.clear)]={borderBottom:"none"},t["& .".concat(WA.line,":hover > .").concat(WA.action)]={visibility:"visible"},t})),fI=(0,t.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,mutationMode:null,redirect:null,refetch:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});fI.displayName="EditContext";var mI=function(e){var r=(0,t.useContext)(fI);return(0,t.useMemo)((function(){return jS()({},null!=e?hI(e):{},r)}),[r,e])},hI=function(e){var t=e.data,r=e.record;return{data:r||t,record:r||t,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,mutationMode:e.mutationMode,redirect:e.redirect,resource:e.resource,save:e.save,saving:e.saving}},vI=r(1660),gI=function(){return gI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gI.apply(this,arguments)},yI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},bI=function(e){var r=e.icon,n=void 0===r?wI:r,o=e.label,a=void 0===o?"ra.action.show":o,i=(e.record,e.resource,e.scrollToTop),s=void 0===i||i,l=yI(e,["icon","label","record","resource","scrollToTop"]),c=Vy(e),u=Ym(e),d=_r();return u?t.createElement(gh,gI({component:ap,to:d({type:"show",resource:c,id:u.id}),state:xI[String(s)],label:a,onClick:SI},l),n):null},xI={true:{_scrollToTop:!0},false:{}},wI=t.createElement(vI.c,null),SI=function(e){return e.stopPropagation()};bI.propTypes={icon:Ln().element,label:Ln().string,record:Ln().any,scrollToTop:Ln().bool};const OI=(0,t.memo)(bI,(function(e,t){return e.resource===t.resource&&(e.record&&t.record?e.record.id===t.record.id:e.record==t.record)&&e.label===t.label&&e.disabled===t.disabled}));var _I=function(){return _I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_I.apply(this,arguments)},EI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kI=function(e){var r=e.className,n=EI(e,["className"]),o=mI(n).record,a=Ak(n).hasShow;return t.createElement(dw,_I({className:r},jI(n)),a&&t.createElement(OI,{record:o}))},jI=function(e){e.hasCreate,e.hasEdit,e.hasShow,e.hasList;return EI(e,["hasCreate","hasEdit","hasShow","hasList"])};kI.propTypes={className:Ln().string,data:Ln().object,hasCreate:Ln().bool,hasEdit:Ln().bool,hasShow:Ln().bool,hasList:Ln().bool,resource:Ln().string};var CI,PI=function(){return PI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PI.apply(this,arguments)},RI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},TI=function(e){var r,n=e.actions,o=e.aside,a=e.children,i=e.className,s=e.component,l=void 0===s?Rv:s,c=e.title,u=(e.mutationMode,RI(e,["actions","aside","children","className","component","title","mutationMode"])),d=Ak().hasShow,p=mI(e),f=p.resource,m=p.defaultTitle,h=p.record,v="undefined"===typeof n&&d?t.createElement(kI,null):n;return a?t.createElement(NI,PI({className:Mn("edit-page",i)},AI(u)),t.createElement(ih,{title:c,defaultTitle:m,preferenceKey:"".concat(f,".edit.title")}),v,t.createElement("div",{className:Mn(MI.main,(r={},r[MI.noActions]=!v,r))},t.createElement(l,{className:MI.card},h?a:t.createElement(Lv,null,"\xa0")),o)):null};TI.propTypes={actions:Ln().oneOfType([Ln().element,Ln().bool]),aside:Ln().element,className:Ln().string,component:ao,defaultTitle:Ln().any,hasList:Ln().bool,hasShow:Ln().bool,mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:Ln().object,record:Ln().object,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,save:Ln().func,title:Ln().node};var AI=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;return RI(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"])},II="RaEdit",MI={main:"".concat(II,"-main"),noActions:"".concat(II,"-noActions"),card:"".concat(II,"-card")},NI=(0,Sn.cp)("div",{name:II,overridesResolver:function(e,t){return t.root}})(((CI={})["& .".concat(MI.main)]={display:"flex",alignItems:"flex-start"},CI["& .".concat(MI.noActions)]={marginTop:"1em"},CI["& .".concat(MI.card)]={flex:"1 1 auto"},CI)),LI=function(e,t,r){var n=t.id,o=t.meta,a=hw();return(0,d.useQuery)([e,"getOne",{id:String(n),meta:o}],(function(){return a.getOne(e,{id:n,meta:o}).then((function(e){return e.data}))}),r)},FI=function(){return FI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FI.apply(this,arguments)},zI=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},DI=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},BI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VI=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},WI=function(){return WI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},WI.apply(this,arguments)},qI=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(eB){a(eB)}}function s(e){try{l(n.throw(e))}catch(eB){a(eB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},UI=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(eB){s=[6,eB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},HI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$I=function(e){void 0===e&&(e={});var r=e.disableAuthentication,n=e.id,o=e.mutationMode,a=void 0===o?"undoable":o,i=e.mutationOptions,s=void 0===i?{}:i,l=e.queryOptions,c=void 0===l?{}:l,u=e.redirect,p=void 0===u?QI:u,f=e.transform;Fr({enabled:!r});var m=Vy(e),h=PT(m),v=Ps(),g=Tt(),y=dx(),b=tl(),x=re().id,w=null!=n?n:decodeURIComponent(x),S=c.meta,O=HI(c,["meta"]),_=s.onSuccess,E=s.onError,k=s.meta,j=HI(s,["onSuccess","onError","meta"]),C=WR(),P=C.registerMutationMiddleware,R=C.getMutateWithMiddlewares,T=C.unregisterMutationMiddleware,A=LI(m,{id:w,meta:S},WI({onError:function(){g("ra.notification.item_doesnt_exist",{type:"error"}),y("list",m),b()},refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1},O)),I=A.data,M=A.error,N=A.isLoading,L=A.isFetching,F=A.refetch;if(I&&I.id&&I.id!=w)throw new Error("useEditController: Fetched record's id attribute (".concat(I.id,") must match the requested 'id' (").concat(w,")"));var z=Sp(),D=h(I),B=v("ra.page.edit",{name:z(m,1),id:w,record:I,recordRepresentation:"string"===typeof D?D:""}),V={id:w,previousData:I},W=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=hw(),a=(0,d.useQueryClient)(),i=r.id,s=r.data,l=r.meta,c=n.mutationMode,u=void 0===c?"pessimistic":c,p=BI(n,["mutationMode"]),f=(0,t.useRef)(u),m=(0,t.useRef)(r),h=(0,t.useRef)([]),v=function(e){var t=e.resource,r=e.id,n=e.data,o=Date.now(),i="undoable"===f.current?o+5e3:o,s=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:VI(VI(VI([],e.slice(0,t),!0),[FI(FI({},e[t]),n)],!1),e.slice(t+1),!0)}};a.setQueryData([t,"getOne",{id:String(r),meta:l}],(function(e){return FI(FI({},e),n)}),{updatedAt:i}),a.setQueriesData([t,"getList"],(function(e){return e&&e.data?FI(FI({},e),{data:s(e.data)}):e}),{updatedAt:i}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?FI(FI({},e),{pages:e.pages.map((function(e){return FI(FI({},e),{data:s(e.data)})}))}):e}),{updatedAt:i}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?s(e):e}),{updatedAt:i}),a.setQueriesData([t,"getManyReference"],(function(e){return e&&e.data?{data:s(e.data),total:e.total}:e}),{updatedAt:i})},g=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,i=r.id,s=void 0===i?m.current.id:i,l=r.data,c=void 0===l?m.current.data:l,u=r.meta,d=void 0===u?m.current.meta:u,p=r.previousData,f=void 0===p?m.current.previousData:p;return o.update(a,{id:s,data:c,previousData:f,meta:d}).then((function(e){return e.data}))}),FI(FI({},p),{onMutate:function(e){return zI(void 0,void 0,void 0,(function(){var t;return DI(this,(function(r){switch(r.label){case 0:return p.onMutate?[4,p.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,FI({snapshot:h.current},t)];case 2:return[2,{snapshot:h.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==f.current&&"undoable"!==f.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),p.onError)return p.onError(e,t,r)},onSuccess:function(t,r,n){if(void 0===r&&(r={}),"pessimistic"===f.current){var o=r.resource,a=void 0===o?e:o,s=r.id;v({resource:a,id:void 0===s?i:s,data:t}),p.onSuccess&&p.onSuccess(t,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==f.current&&"undoable"!==f.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),p.onSettled)return p.onSettled(e,t,r,n)}}));return[kt((function(t,n,o){return void 0===t&&(t=e),void 0===n&&(n={}),void 0===o&&(o={}),zI(void 0,void 0,void 0,(function(){var e,c,u,d,y,b,x,w,S,O,_,E,k,j;return DI(this,(function(C){switch(C.label){case 0:return e=o.mutationMode,c=o.returnPromise,u=void 0===c?p.returnPromise:c,d=o.onSuccess,y=o.onSettled,b=o.onError,m.current=r,e&&(f.current=e),u&&"pessimistic"!==f.current&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),"pessimistic"===f.current?u?[2,g.mutateAsync(FI({resource:t},n),{onSuccess:d,onSettled:y,onError:b})]:[2,g.mutate(FI({resource:t},n),{onSuccess:d,onSettled:y,onError:b})]:(x=n.id,w=void 0===x?i:x,S=n.data,O=void 0===S?s:S,_=n.meta,E=void 0===_?l:_,k=a.getQueryData([t,"getOne",{id:String(w),meta:E}]),j=[[t,"getOne",{id:String(w),meta:E}],[t,"getList"],[t,"getInfiniteList"],[t,"getMany"],[t,"getManyReference"]],h.current=j.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(h.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return C.sent(),v({resource:t,id:w,data:O}),d&&setTimeout((function(){return d(FI(FI({},k),O),FI({resource:t},n),{snapshot:h.current})}),0),p.onSuccess&&setTimeout((function(){return p.onSuccess(FI(FI({},k),O),FI({resource:t},n),{snapshot:h.current})}),0),"optimistic"===f.current?[2,g.mutate(FI({resource:t},n),{onSettled:y,onError:b})]:(yv.once("end",(function(e){e.isUndo?h.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):g.mutate(FI({resource:t},n),{onSettled:y,onError:b})})),[2])}}))}))})),g]}(m,V,WI(WI({},j),{mutationMode:a,returnPromise:"pessimistic"===a})),q=W[0],U=W[1].isLoading,H=(0,t.useCallback)((function(e,t){var r=void 0===t?{}:t,n=r.onSuccess,o=r.onError,i=r.transform,s=r.meta;return Promise.resolve(i?i(e,{previousData:V.previousData}):f?f(e,{previousData:V.previousData}):e).then((function(e){return qI(void 0,void 0,void 0,(function(){var t,r,i;return UI(this,(function(l){switch(l.label){case 0:t=R(q),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t(m,{id:w,data:e,meta:null!==s&&void 0!==s?s:k},{onSuccess:function(e,t,r){return qI(void 0,void 0,void 0,(function(){return UI(this,(function(o){return n?[2,n(e,t,r)]:_?[2,_(e,t,r)]:(g("ra.notification.updated",{type:"info",messageArgs:{smart_count:1},undoable:"undoable"===a}),y(p,m,e.id,e),[2])}))}))},onError:o||(E||function(e){g("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})})})];case 2:return l.sent(),[3,4];case 3:return r=l.sent(),null!=(null===(i=r.body)||void 0===i?void 0:i.errors)?[2,r.body.errors]:[3,4];case 4:return[2]}}))}))}))}),[w,R,k,a,g,E,_,y,p,m,f,q,V.previousData]);return{defaultTitle:B,error:M,isFetching:L,isLoading:N,mutationMode:a,record:I,redirect:p,refetch:F,registerMutationMiddleware:P,resource:m,save:H,saving:U,unregisterMutationMiddleware:T}},QI="list",KI=function(e){var r=e.children,n=e.value;return t.createElement(fI.Provider,{value:n},t.createElement(GR,{value:YR(n)},t.createElement(Gm,{value:n&&n.record},r)))},GI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},YI=function(e){var r=e.children,n=GI(e,["children"]),o=$I(n),a=t.createElement(KI,{value:o},r);return n.resource?t.createElement(Ix,{value:n.resource},a):a},XI=function(){return XI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XI.apply(this,arguments)},JI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ZI=function(e){CR("Edit",["children"],e);var r=e.resource,n=e.id,o=e.mutationMode,a=e.mutationOptions,i=e.queryOptions,s=e.redirect,l=e.transform,c=e.disableAuthentication,u=JI(e,["resource","id","mutationMode","mutationOptions","queryOptions","redirect","transform","disableAuthentication"]);return t.createElement(YI,{resource:r,id:n,mutationMode:o,mutationOptions:a,queryOptions:i,redirect:s,transform:l,disableAuthentication:c},t.createElement(TI,XI({},u)))};ZI.propTypes={actions:Ln().oneOfType([Ln().element,Ln().bool]),aside:Ln().element,children:Ln().node,className:Ln().string,disableAuthentication:Ln().bool,hasCreate:Ln().bool,hasEdit:Ln().bool,hasShow:Ln().bool,hasList:Ln().bool,id:Ln().any,mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:Ln().object,queryOptions:Ln().object,redirect:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]),resource:Ln().string,title:Ln().node,transform:Ln().func,sx:Ln().any};const eM=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],tM=(0,Sn.cp)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,qn.W4)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,Oe.c)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{ownerState:t}=e;return(0,Oe.c)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),rM=(0,Sn.cp)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),nM=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=(0,Kt.c)(r,eM),m=(0,Oe.c)({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,xn.c)(c,Pu,n)})(m);return(0,Jt.jsx)(tM,(0,Oe.c)({as:i,className:(0,bn.c)(h.root,a),role:u,ref:t,ownerState:m},f,{children:o?(0,Jt.jsx)(rM,{className:h.wrapper,ownerState:m,children:o}):null}))}));nM.muiSkipListHighlight=!0;const oM=nM;let aM;function iM(){if(aM)return aM;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),aM="reverse",e.scrollLeft>0?aM="default":(e.scrollLeft=1,0===e.scrollLeft&&(aM="negative")),document.body.removeChild(e),aM}function sM(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(iM()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function lM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const cM=["onChange"],uM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function dM(e){return(0,kn.cp)("MuiTabScrollButton",e)}const pM=(0,En.c)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fM=["className","slots","slotProps","direction","orientation","disabled"],mM=(0,Sn.cp)(ws,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({width:40,flexShrink:0,opacity:.8,["&.".concat(pM.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),hM=t.forwardRef((function(e,t){var r,n;const o=(0,wn.c)({props:e,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:s={},direction:l}=o,c=(0,Kt.c)(o,fM),u="rtl"===po().direction,d=(0,Oe.c)({isRtl:u},o),p=(e=>{const{classes:t,orientation:r,disabled:n}=e,o={root:["root",r,n&&"disabled"]};return(0,xn.c)(o,dM,t)})(d),f=null!=(r=i.StartScrollButtonIcon)?r:$S,m=null!=(n=i.EndScrollButtonIcon)?n:QS,h=ci({elementType:f,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),v=ci({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,Jt.jsx)(mM,(0,Oe.c)({component:"div",className:(0,bn.c)(p.root,a),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?(0,Jt.jsx)(f,(0,Oe.c)({},h)):(0,Jt.jsx)(m,(0,Oe.c)({},v))}))})),vM=hM;function gM(e){return(0,kn.cp)("MuiTabs",e)}const yM=(0,En.c)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bM=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],xM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,wM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,SM=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=r(e,o)}},OM=(0,Sn.cp)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(yM.scrollButtons)]:t.scrollButtons},{["& .".concat(yM.scrollButtons)]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(yM.scrollButtons)]:{[r.breakpoints.down("sm")]:{display:"none"}}})})),_M=(0,Sn.cp)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),EM=(0,Sn.cp)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),kM=(0,Sn.cp)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:r}=e;return(0,Oe.c)({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),jM=(0,Sn.cp)((function(e){const{onChange:r}=e,n=(0,Kt.c)(e,cM),o=t.useRef(),a=t.useRef(null),i=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return(0,cr.c)((()=>{const e=(0,nc.c)((()=>{const e=o.current;i(),e!==o.current&&r(o.current)})),t=(0,oc.c)(a.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r]),t.useEffect((()=>{i(),r(o.current)}),[r]),(0,Jt.jsx)("div",(0,Oe.c)({style:uM,ref:a},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),CM={};const PM=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiTabs"}),o=po(),a="rtl"===o.direction,{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:h,orientation:v="horizontal",ScrollButtonComponent:g=vM,scrollButtons:y="auto",selectionFollowsFocus:b,slots:x={},slotProps:w={},TabIndicatorProps:S={},TabScrollButtonProps:O={},textColor:_="primary",value:E,variant:k="standard",visibleScrollbar:j=!1}=n,C=(0,Kt.c)(n,bM),P="scrollable"===k,R="vertical"===v,T=R?"scrollTop":"scrollLeft",A=R?"top":"left",I=R?"bottom":"right",M=R?"clientHeight":"clientWidth",N=R?"height":"width",L=(0,Oe.c)({},n,{component:p,allowScrollButtonsMobile:f,indicatorColor:m,orientation:v,vertical:R,scrollButtons:y,textColor:_,variant:k,visibleScrollbar:j,fixed:!P,hideScrollbar:P&&!j,scrollableX:P&&!R,scrollableY:P&&R,centered:c&&!P,scrollButtonsHideMobile:!f}),F=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]};return(0,xn.c)(c,gM,l)})(L),z=ci({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:L}),D=ci({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:L});const[B,V]=t.useState(!1),[W,q]=t.useState(CM),[U,H]=t.useState(!1),[$,Q]=t.useState(!1),[K,G]=t.useState(!1),[Y,X]=t.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,Z=t.useRef(null),ee=t.useRef(null),te=()=>{const e=Z.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:sM(e,o.direction),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==E){const e=ee.current.children;if(e.length>0){const t=e[J.get(E)];0,r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},re=(0,Oi.c)((()=>{const{tabsMeta:e,tabMeta:t}=te();let r,n=0;if(R)r="top",t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=a?"right":"left",t&&e){const o=a?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(a?-1:1)*(t[r]-e[r]+o)}const o={[r]:n,[N]:t?t[N]:0};if(isNaN(W[r])||isNaN(W[N]))q(o);else{const e=Math.abs(W[r]-o[r]),t=Math.abs(W[N]-o[N]);(e>=1||t>=1)&&q(o)}})),ne=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:a=lM,duration:i=300}=n;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=n=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=n);const u=Math.min(1,(n-s)/i);t[e]=a(u)*(r-l)+l,u>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(d)};l===r?o(new Error("Element already at target position")):requestAnimationFrame(d)}(T,Z.current,e,{duration:o.transitions.duration.standard}):Z.current[T]=e},oe=e=>{let t=Z.current[T];R?t+=e:(t+=e*(a?-1:1),t*=a&&"reverse"===iM()?-1:1),ne(t)},ae=()=>{const e=Z.current[M];let t=0;const r=Array.from(ee.current.children);for(let n=0;n<r.length;n+=1){const o=r[n];if(t+o[M]>e){0===n&&(t=e);break}t+=o[M]}return t},ie=()=>{oe(-1*ae())},se=()=>{oe(ae())},le=t.useCallback((e=>{X({overflow:null,scrollbarWidth:e})}),[]),ce=(0,Oi.c)((e=>{const{tabsMeta:t,tabMeta:r}=te();if(r&&t)if(r[A]<t[A]){const n=t[T]+(r[A]-t[A]);ne(n,{animation:e})}else if(r[I]>t[I]){const n=t[T]+(r[I]-t[I]);ne(n,{animation:e})}})),ue=(0,Oi.c)((()=>{P&&!1!==y&&G(!K)}));t.useEffect((()=>{const e=(0,nc.c)((()=>{Z.current&&re()}));let t;const r=r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),ue()},n=(0,oc.c)(Z.current);let o;return n.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(o=new MutationObserver(r),o.observe(ee.current,{childList:!0})),()=>{var r,a;e.clear(),n.removeEventListener("resize",e),null==(r=o)||r.disconnect(),null==(a=t)||a.disconnect()}}),[re,ue]),t.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&P&&!1!==y){const r=e[0],n=e[t-1],o={root:Z.current,threshold:.99},a=new IntersectionObserver((e=>{H(!e[0].isIntersecting)}),o);a.observe(r);const i=new IntersectionObserver((e=>{Q(!e[0].isIntersecting)}),o);return i.observe(n),()=>{a.disconnect(),i.disconnect()}}}),[P,y,K,null==u?void 0:u.length]),t.useEffect((()=>{V(!0)}),[]),t.useEffect((()=>{re()})),t.useEffect((()=>{ce(CM!==W)}),[ce,W]),t.useImperativeHandle(l,(()=>({updateIndicator:re,updateScrollButtons:ue})),[re,ue]);const de=(0,Jt.jsx)(kM,(0,Oe.c)({},S,{className:(0,bn.c)(F.indicator,S.className),ownerState:L,style:(0,Oe.c)({},W,S.style)}));let pe=0;const fe=t.Children.map(u,(e=>{if(!t.isValidElement(e))return null;const r=void 0===e.props.value?pe:e.props.value;J.set(r,pe);const n=r===E;return pe+=1,t.cloneElement(e,(0,Oe.c)({fullWidth:"fullWidth"===k,indicator:n&&!B&&de,selected:n,selectionFollowsFocus:b,onChange:h,textColor:_,value:r},1!==pe||!1!==E||e.props.tabIndex?{}:{tabIndex:0}))})),me=(()=>{const e={};e.scrollbarSizeListener=P?(0,Jt.jsx)(jM,{onChange:le,className:(0,bn.c)(F.scrollableX,F.hideScrollbar)}):null;const t=P&&("auto"===y&&(U||$)||!0===y);return e.scrollButtonStart=t?(0,Jt.jsx)(g,(0,Oe.c)({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:v,direction:a?"right":"left",onClick:ie,disabled:!U},O,{className:(0,bn.c)(F.scrollButtons,O.className)})):null,e.scrollButtonEnd=t?(0,Jt.jsx)(g,(0,Oe.c)({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:v,direction:a?"left":"right",onClick:se,disabled:!$},O,{className:(0,bn.c)(F.scrollButtons,O.className)})):null,e})();return(0,Jt.jsxs)(OM,(0,Oe.c)({className:(0,bn.c)(F.root,d),ownerState:L,ref:r,as:p},C,{children:[me.scrollButtonStart,me.scrollbarSizeListener,(0,Jt.jsxs)(_M,{className:F.scroller,ownerState:L,style:{overflow:Y.overflow,[R?"margin".concat(a?"Left":"Right"):"marginBottom"]:j?void 0:-Y.scrollbarWidth},ref:Z,children:[(0,Jt.jsx)(EM,{"aria-label":i,"aria-labelledby":s,"aria-orientation":"vertical"===v?"vertical":null,className:F.flexContainer,ownerState:L,onKeyDown:e=>{const t=ee.current,r=(0,Wl.c)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===v?"ArrowLeft":"ArrowUp",o="horizontal"===v?"ArrowRight":"ArrowDown";switch("horizontal"===v&&a&&(n="ArrowRight",o="ArrowLeft"),e.key){case n:e.preventDefault(),SM(t,r,wM);break;case o:e.preventDefault(),SM(t,r,xM);break;case"Home":e.preventDefault(),SM(t,null,xM);break;case"End":e.preventDefault(),SM(t,null,wM)}},ref:ee,role:"tablist",children:fe}),B&&de]}),me.scrollButtonEnd]}))})),RM=PM;var TM=function(){return TM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TM.apply(this,arguments)},AM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},IM=function(e){var r=e.children,n=(e.url,e.syncWithLocation),o=e.value,a=AM(e,["children","url","syncWithLocation","value"]),i=re()["*"];return t.createElement(RM,TM({value:n?i:o,indicatorColor:"primary"},a),t.Children.map(r,(function(e,r){if(!(0,t.isValidElement)(e))return null;var o=MM(e,r);return(0,t.cloneElement)(e,{intent:"header",value:n?o:r,syncWithLocation:n})})))};IM.propTypes={children:Ln().node,url:Ln().string,tabsWithErrors:Ln().arrayOf(Ln().string)};var MM=function(e,t){return null!=e.props.path?e.props.path:t>0?t.toString():""},NM=function(){return NM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NM.apply(this,arguments)},LM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},FM=function(e){var r=e.children,n=e.className,o=e.component,a=void 0===o?DM:o,i=e.formRootPathname,s=e.syncWithLocation,l=void 0===s||s,c=e.tabs,u=void 0===c?zM:c,d=e.toolbar,p=void 0===d?BM:d,f=LM(e,["children","className","component","formRootPathname","syncWithLocation","tabs","toolbar"]),m=J(),h=ne(""),v=Vy(e),g=(0,t.useState)(0),y=g[0],b=g[1],x=function(e,t){l||b(t)},w=function(){return(0,t.cloneElement)(u,{onChange:x,syncWithLocation:l,url:i,value:y},r)};return t.createElement(qM,NM({className:Mn("tabbed-form",n)},UM(f)),l?t.createElement(xe,null,t.createElement(ye,{path:"/*",element:w()})):w(),t.createElement(oM,null),t.createElement(a,null,t.Children.map(r,(function(e,r){if(!e)return null;var n=MM(e,r),o=l?!R("".concat(h.pathname,"/").concat(n),m.pathname):y!==r;return(0,t.isValidElement)(e)?t.cloneElement(e,{intent:"content",resource:v,hidden:o,value:l?n:r}):null}))),!1!==p?p:null)};FM.propTypes={children:Ln().node,className:Ln().string,location:Ln().object,match:Ln().object,resource:Ln().string,tabs:Ln().element,toolbar:Ln().oneOfType([Ln().element,Ln().oneOf([!1])]),validate:Ln().func,value:Ln().number};var zM=t.createElement(IM,null),DM=function(e){var r=e.children;return t.createElement(Lv,null,r)},BM=t.createElement(_R,null),VM="RaTabbedForm",WM={errorTabButton:"".concat(VM,"-errorTabButton")},qM=(0,Sn.cp)("div",{name:VM,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .MuiTab-root.".concat(WM.errorTabButton)]={color:r.palette.error.main},t})),UM=function(e){e.record,e.resource;return LM(e,["record","resource"])},HM=function(e){var r=e.children,n=e.name,o=db();return(0,t.useEffect)((function(){if(o&&o.registerGroup&&o.unregisterGroup)return o.registerGroup(n),function(){o.unregisterGroup(n)};console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components")}),[o,n]),t.createElement(cb.Provider,{value:n},r)};function $M(e){return(0,kn.cp)("MuiTab",e)}const QM=(0,En.c)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),KM=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],GM=(0,Sn.cp)(ws,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t["textColor".concat((0,Wn.c)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:"top"===r.iconPosition||"bottom"===r.iconPosition?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(QM.iconWrapper)]:(0,Oe.c)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:t.spacing(1)},"end"===r.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===r.textColor&&{color:"inherit",opacity:.6,["&.".concat(QM.selected)]:{opacity:1},["&.".concat(QM.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(QM.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(QM.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(QM.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(QM.disabled)]:{color:(t.vars||t).palette.text.disabled}},r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:t.typography.pxToRem(12)})})),YM=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:f,onFocus:m,selected:h,selectionFollowsFocus:v,textColor:g="inherit",value:y,wrapped:b=!1}=n,x=(0,Kt.c)(n,KM),w=(0,Oe.c)({},n,{disabled:a,disableFocusRipple:i,selected:h,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:g,wrapped:b}),S=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon","textColor".concat((0,Wn.c)(r)),n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,xn.c)(c,$M,t)})(w),O=l&&d&&t.isValidElement(l)?t.cloneElement(l,{className:(0,bn.c)(S.iconWrapper,l.props.className)}):l;return(0,Jt.jsxs)(GM,(0,Oe.c)({focusRipple:!i,className:(0,bn.c)(S.root,o),ref:r,role:"tab","aria-selected":h,disabled:a,onClick:e=>{!h&&p&&p(e,y),f&&f(e)},onFocus:e=>{v&&!h&&p&&p(e,y),m&&m(e)},ownerState:w,tabIndex:h?0:-1},x,{children:["top"===c||"start"===c?(0,Jt.jsxs)(t.Fragment,{children:[O,d]}):(0,Jt.jsxs)(t.Fragment,{children:[d,O]}),u]}))})),XM=YM;var JM=function(e){return e.reduce((function(e,t){var r=e.errors||{};return t.error&&(r[t.name]=t.error),{isDirty:e.isDirty||t.isDirty,errors:r,isTouched:e.isTouched||t.isTouched,isValid:e.isValid&&t.isValid}}),{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},ZM=function(){return ZM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZM.apply(this,arguments)},eN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tN=function(e){var r,n=e.count,o=e.label,a=e.value,i=e.icon,s=e.className,l=e.onChange,c=e.syncWithLocation,u=eN(e,["count","label","value","icon","className","onChange","syncWithLocation"]),d=Ps(),p=J(),f=Tg().isSubmitted,m=function(e){var r=Tg(),n=r.dirtyFields,o=r.touchedFields,a=r.errors,i=db(),s=(0,t.useState)({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),l=s[0],c=s[1],u=(0,t.useCallback)((function(){var t=i.getGroupFields(e).map((function(e){return{name:e,error:dt()(a,e,void 0),isDirty:!1!==dt()(n,e,!1),isValid:void 0==dt()(a,e,void 0),isTouched:!1!==dt()(o,e,!1)}})).filter((function(e){return void 0!=e})),r=JM(t);c((function(e){return _t()(e,r)?e:r}))}),[n,a,o,i,e]);return(0,t.useEffect)((function(){u()}),[JSON.stringify({dirtyFields:n,errors:a,touchedFields:o}),u]),(0,t.useEffect)((function(){return i.subscribe(e,(function(){u()}))}),[i,e,u]),l}(a.toString()),h={component:ap,to:ZM(ZM({},p),{pathname:a})},v=(0,Vl.isElement)(o)?o:d(o,{_:o});return void 0!==n&&(v=t.createElement("span",null,v," (",n,")")),t.createElement(XM,ZM({label:v,value:a,icon:i,className:Mn("form-tab",s,(r={},r[WM.errorTabButton]=!m.isValid&&(m.isTouched||f),r.error=!m.isValid&&(m.isTouched||f),r))},c?h:{},{id:"tabheader-".concat(a),"aria-controls":"tabpanel-".concat(a),onChange:l},u))};tN.propTypes={className:Ln().string,contentClassName:Ln().string,count:Ln().node,children:Ln().node,intent:Ln().oneOf(["header","content"]),hidden:Ln().bool,icon:Ln().element,label:Ln().oneOfType([Ln().string,Ln().element]).isRequired,margin:Ln().oneOf(["none","dense","normal"]),path:Ln().string,record:Ln().object,resource:Ln().string,value:Ln().oneOfType([Ln().string,Ln().number]),variant:Ln().oneOf(["standard","outlined","filled"])};var rN=function(){return rN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rN.apply(this,arguments)},nN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},oN=function(e){var r=e.children,n=e.className,o=e.contentClassName,a=e.count,i=e.hidden,s=e.icon,l=e.intent,c=e.label,u=e.onChange,d=(e.path,e.resource,e.syncWithLocation),p=e.value,f=nN(e,["children","className","contentClassName","count","hidden","icon","intent","label","onChange","path","resource","syncWithLocation","value"]);return"header"===l?t.createElement(tN,rN({label:c,count:a,value:p,icon:s,className:n,syncWithLocation:d,onChange:u},iN(f))):t.createElement(HM,{name:p.toString()},t.createElement(p_,rN({alignItems:"flex-start",style:i?aN:null,className:o,id:"tabpanel-".concat(p),"aria-labelledby":"tabheader-".concat(p),"aria-hidden":i||void 0},f),r))};oN.propTypes={className:Ln().string,contentClassName:Ln().string,children:Ln().node,count:Ln().node,intent:Ln().oneOf(["header","content"]),hidden:Ln().bool,icon:Ln().element,label:Ln().oneOfType([Ln().string,Ln().element]).isRequired,path:Ln().string,resource:Ln().string,value:Ln().oneOfType([Ln().string,Ln().number])},oN.displayName="FormTab";var aN={display:"none"},iN=function(e){e.classes,e.ref,e.margin;return nN(e,["classes","ref","margin"])},sN=function(){return sN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sN.apply(this,arguments)},lN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cN=function(e){var r=function(){var e=J(),t=R(":resource/create/*",e.pathname),r=R(":resource/:id/*",e.pathname);return t?t.pathnameBase:r?r.pathnameBase:""}();return t.createElement(sb,sN({formRootPathname:r},e),t.createElement(FM,sN({formRootPathname:r},uN(e))))};cN.Tab=oN;var uN=function(e){e.criteriaMode,e.defaultValues,e.delayError,e.formRootPathname,e.mode,e.noValidate,e.onSubmit,e.record,e.resetOptions,e.resolver,e.reValidateMode,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.validate,e.warnWhenUnsavedChanges;return lN(e,["criteriaMode","defaultValues","delayError","formRootPathname","mode","noValidate","onSubmit","record","resetOptions","resolver","reValidateMode","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","validate","warnWhenUnsavedChanges"])};cN.propTypes={children:Ln().node,defaultValues:Ln().oneOfType([Ln().object,Ln().func]),formRootPathname:Ln().string,mutationMode:Ln().oneOf(["pessimistic","optimistic","undoable"]),record:Ln().object,saving:Ln().bool,validate:Ln().func};var dN=function(){return dN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dN.apply(this,arguments)},pN=function(){return pN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pN.apply(this,arguments)},fN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},mN={},hN=function(e){var r=e.debounce,n=void 0===r?500:r,o=e.reference,a=e.record,i=e.target,s=e.filter,l=void 0===s?mN:s,c=e.source,u=e.page,p=e.perPage,f=e.sort,m=void 0===f?{field:"id",order:"DESC"}:f,h=Tt(),v=Vy(e),g=yT({page:u,perPage:p}),y=g.page,b=g.setPage,x=g.perPage,w=g.setPerPage,S=wT(m),O=S.sort,_=S.setSort,E=(0,t.useCallback)((function(e){_(e),b(1)}),[b,_]),k=Dw("".concat(v,".").concat(null===a||void 0===a?void 0:a.id,".").concat(o)),j=k[0],C=k[1],P=(0,t.useRef)(l),R=Zr({}),T=R[0],A=R[1],I=Zr(l),M=I[0],N=I[1],L=(0,t.useCallback)((function(e){A((function(t){var r=t,n=e;r[n];return fN(r,["symbol"===typeof n?n:n+""])})),N((function(t){var r=t,n=e;r[n];return fN(r,["symbol"===typeof n?n:n+""])}))}),[A,N]),F=(0,t.useCallback)((function(e,t){A((function(t){var r;return pN(pN({},t),((r={})[e]=!0,r))})),N((function(r){var n;return pN(pN({},r),((n={})[e]=t,n))}))}),[A,N]),z=(0,t.useCallback)(Ww()((function(e,t){N(ww(e)),A(t),b(1)}),n),[A,N,b]),D=(0,t.useCallback)((function(e,t,r){void 0===r&&(r=!0),r?z(e,t):(N(ww(e)),A(t),b(1))}),[A,N,b,z]);(0,t.useEffect)((function(){_t()(l,P.current)||(P.current=l,N(l))}));var B=function(e,r,n){void 0===r&&(r={});var o=r.target,a=r.id,i=r.pagination,s=void 0===i?{page:1,perPage:25}:i,l=r.sort,c=void 0===l?{field:"id",order:"DESC"}:l,u=r.filter,p=void 0===u?{}:u,f=r.meta,m=hw(),h=(0,d.useQueryClient)(),v=(0,d.useQuery)([e,"getManyReference",{target:o,id:a,pagination:s,sort:c,filter:p,meta:f}],(function(){return o&&null!=a?m.getManyReference(e,{target:o,id:a,pagination:s,sort:c,filter:p,meta:f}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}})):Promise.reject(new Error("target and id are required"))}),dN({onSuccess:function(t){var r;null===(r=null===t||void 0===t?void 0:t.data)||void 0===r||r.forEach((function(t){h.setQueryData([e,"getOne",{id:String(t.id),meta:f}],(function(e){return null!==e&&void 0!==e?e:t}))}))}},n));return(0,t.useMemo)((function(){var e,t,r;return v.data?dN(dN({},v),{data:null===(e=v.data)||void 0===e?void 0:e.data,total:null===(t=v.data)||void 0===t?void 0:t.total,pageInfo:null===(r=v.data)||void 0===r?void 0:r.pageInfo}):v}),[v])}(o,{target:i,id:dt()(a,c),pagination:{page:y,perPage:x},sort:O,filter:M},{enabled:null!=dt()(a,c),keepPreviousData:!0,onError:function(e){return h("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}}),V=B.data,W=B.total,q=B.pageInfo,U=B.error,H=B.isFetching,$=B.isLoading,Q=B.refetch;return{sort:O,data:V,defaultTitle:null,displayedFilters:T,error:U,filterValues:M,hideFilter:L,isFetching:H,isLoading:$,onSelect:C.select,onToggleItem:C.toggle,onUnselectItems:C.clearSelection,page:y,perPage:x,refetch:Q,resource:o,selectedIds:j,setFilters:D,setPage:b,setPerPage:w,hasNextPage:q?q.hasNextPage:null!=W?y*x<W:void 0,hasPreviousPage:q?q.hasPreviousPage:y>1,setSort:E,showFilter:F,total:W}},vN=function(e){var r=e.children,n=e.debounce,o=e.filter,a=void 0===o?gN:o,i=e.page,s=void 0===i?1:i,l=e.pagination,c=void 0===l?null:l,u=e.perPage,d=void 0===u?25:u,p=e.reference,f=e.resource,m=e.sort,h=void 0===m?yN:m,v=e.source,g=void 0===v?"id":v,y=e.target,b=Ym(e),x=hN({debounce:n,filter:a,page:s,perPage:d,record:b,reference:p,resource:f,sort:h,source:g,target:y});return t.createElement(Ix,{value:p},t.createElement(tk,{value:x},r,c))};vN.propTypes={children:Ln().node.isRequired,className:Ln().string,filter:Ln().object,label:wP.label,perPage:Ln().number,record:Ln().any,reference:Ln().string.isRequired,resource:Ln().string,sortBy:Ln().string,sortByOrder:wP.sortByOrder,source:Ln().string,sort:Ln().exact({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),target:Ln().string.isRequired};Ln().element,Ln().string,Ln().exact({field:Ln().string,order:Ln().oneOf(["ASC","DESC"])}),Ln().any,Ln().bool,Ln().element,Ln().string,Ln().func;var gN={},yN={field:"id",order:"DESC"},bN=r(1100),xN=function(){return xN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xN.apply(this,arguments)},wN=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},SN=function(e){var t=[],r=null;return function(n){t.push(n),r&&clearTimeout(r),r=setTimeout((function(){r=null,e(wN([],t,!0)),t=[]}),0)}}((function(e){var t=e[0].dataProvider,r=e[0].queryClient,n=e.reduce((function(e,t){return e[t.resource]||(e[t.resource]=[]),e[t.resource].push(t),e}),{});Object.keys(n).forEach((function(e){var o=n[e],a=o.reduce((function(e,t){var r=t.ids;return Sj()(e,r)}),[]).filter((function(e){return null!=e&&""!==e})),i=o.reduce((function(e,t){return t.meta||e}),void 0);if(0!==a.length){var s=o.find((function(e){var t=e.ids;return JSON.stringify(t)===JSON.stringify(a)}));if(s){var l=s.dataProvider,c=s.resource,u=s.ids,d=s.meta;l.getMany(c,{ids:u,meta:d}).then((function(e){return e.data})).then((function(e){o.forEach((function(t){var r=t.ids;(0,t.resolve)(e.filter((function(e){return r.map((function(e){return String(e)})).includes(String(e.id))})))}))}),(function(e){o.forEach((function(t){(0,t.reject)(e)}))}))}else r.fetchQuery([e,"getMany",{ids:a.map((function(e){return String(e)})),meta:i}],(function(){return t.getMany(e,{ids:a,meta:i}).then((function(e){return e.data}))})).then((function(e){o.forEach((function(t){var r=t.ids;(0,t.resolve)(e.filter((function(e){return r.map((function(e){return String(e)})).includes(String(e.id))})))}))})).catch((function(e){return o.forEach((function(t){return(0,t.reject)(e)}))}))}else o.forEach((function(e){(0,e.resolve)([])}))}))})),ON=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_N=function(e){var r=e.reference,n=e.id,o=e.options,a=void 0===o?{}:o,i=function(e,r,n){void 0===n&&(n={});var o=hw(),a=(0,d.useQueryClient)(),i=a.getQueryCache(),s=r.ids,l=r.meta,c=(0,t.useMemo)((function(){var t=(Array.isArray(s)?s:[s]).map((function(t){var r,n,o=(0,d.hashQueryKey)([e,"getOne",{id:String(t),meta:l}]);return null===(n=null===(r=i.get(o))||void 0===r?void 0:r.state)||void 0===n?void 0:n.data}));return t.some((function(e){return void 0===e}))?void 0:t}),[s,i,e,l]);return(0,d.useQuery)([e,"getMany",{ids:(Array.isArray(s)?s:[s]).map((function(e){return String(e)})),meta:l}],(function(){return new Promise((function(t,r){return s&&0!==s.length?SN({resource:e,ids:s,meta:l,resolve:t,reject:r,dataProvider:o,queryClient:a}):t([])}))}),xN({placeholderData:c,onSuccess:function(t){(null!==t&&void 0!==t?t:[]).forEach((function(t){a.setQueryData([e,"getOne",{id:String(t.id),meta:l}],(function(e){return null!==e&&void 0!==e?e:t}))}))},retry:!1},n))}(r,{ids:[n],meta:a.meta},ON(a,["meta"])),s=i.data,l=i.error,c=i.isLoading,u=i.isFetching,p=i.refetch;return{referenceRecord:l?void 0:s?s[0]:void 0,refetch:p,error:l,isLoading:c,isFetching:u}};function EN(e){return(0,kn.cp)("MuiLink",e)}const kN=(0,En.c)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var jN=r(9052);const CN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},PN=e=>{let{theme:t,ownerState:r}=e;const n=(e=>CN[e]||e)(r.color),o=(0,jN.O0)(t,"palette.".concat(n),!1)||r.color,a=(0,jN.O0)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,qn.W4)(o,.4)},RN=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],TN=(0,Sn.cp)(Su,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["underline".concat((0,Wn.c)(r.underline))],"button"===r.component&&t.button]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,Oe.c)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:PN({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{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"},["&.".concat(kN.focusVisible)]:{outline:"auto"}})})),AN=t.forwardRef((function(e,r){const n=(0,wn.c)({props:e,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=n,f=(0,Kt.c)(n,RN),{isFocusVisibleRef:m,onBlur:h,onFocus:v,ref:g}=(0,Ei.c)(),[y,b]=t.useState(!1),x=(0,Co.c)(r,g),w=(0,Oe.c)({},n,{color:a,component:i,focusVisible:y,underline:u,variant:d}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root","underline".concat((0,Wn.c)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,xn.c)(a,EN,t)})(w);return(0,Jt.jsx)(TN,(0,Oe.c)({color:a,className:(0,bn.c)(S.root,o),classes:c,component:i,onBlur:e=>{h(e),!1===m.current&&b(!1),s&&s(e)},onFocus:e=>{v(e),!0===m.current&&b(!0),l&&l(e)},ref:x,ownerState:w,variant:d,sx:[...Object.keys(CN).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},f))})),IN=AN;var MN=function(){return MN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MN.apply(this,arguments)},NN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},LN=function(e){var r=e.to,n=e.children,o=e.className,a=NN(e,["to","children","className"]);return t.createElement(zN,MN({component:ap,to:r,className:Mn(FN.link,o),underline:"none"},a),n)},FN={link:"".concat("RaLink","-link")},zN=(0,Sn.cp)(IN)({});LN.propTypes={className:Ln().string,children:Ln().node,to:Ln().oneOfType([Ln().string,Ln().object])};var DN=function(){return DN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},DN.apply(this,arguments)},BN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VN=function(e){var r=e.source,n=e.emptyText,o=e.link,a=void 0===o?"edit":o,i=BN(e,["source","emptyText","link"]),s=Ym(e),l=dt()(s,r),c=Ps();return null==l?n?t.createElement(Su,{component:"span",variant:"body2"},n&&c(n,{_:n})):null:t.createElement(WN,DN({},i,{link:a,emptyText:n,record:s,id:l}))};VN.propTypes={children:Ln().node,className:Ln().string,cellClassName:Ln().string,headerClassName:Ln().string,label:wP.label,record:Ln().any,reference:Ln().string.isRequired,resource:Ln().string,sortBy:Ln().string,sortByOrder:wP.sortByOrder,source:Ln().string.isRequired,translateChoice:Ln().oneOfType([Ln().func,Ln().bool]),link:Ln().oneOfType([Ln().string,Ln().bool,Ln().func])};var WN=function(e){var r=e.children,n=e.id,o=e.reference,a=e.queryOptions,i=e.link,s=BN(e,["children","id","reference","queryOptions","link"]);return t.createElement(Ix,{value:o},t.createElement(HN,DN({reference:o},s,_N({reference:o,id:n,options:a}),{resourceLinkPath:i}),r))},qN=function(e){return e.stopPropagation()},UN=function(e){var r=e.children,n=e.className,o=e.emptyText,a=e.error,i=e.isLoading,s=e.reference,l=e.referenceRecord,c=e.resourceLinkPath,u=e.sx,d=PT(s),p=Ps(),f=_r(),m=Ak({resource:s});if(a)return t.createElement(bN.c,{"aria-errormessage":a.message?a.message:a,role:"presentation",color:"error",fontSize:"small"});if(i)return t.createElement(yA,null);if(!l)return o?t.createElement(t.Fragment,null,o&&p(o,{_:o})):null;var h=!(!1===c||"edit"===c&&!m.hasEdit||"show"===c&&!m.hasShow)&&f({resource:s,id:l.id,type:"function"===typeof c?c(l,s):c}),v=r||t.createElement(Su,{component:"span",variant:"body2"},d(l));return h?t.createElement(KN,{className:n,sx:u},t.createElement(Gm,{value:l},t.createElement(LN,{to:h,className:QN.link,onClick:qN,state:{_scrollToTop:!0}},v))):t.createElement(KN,{className:n,sx:u},t.createElement(Gm,{value:l},v))};UN.propTypes={children:Ln().element,className:Ln().string,isLoading:Ln().bool,record:Ln().any,reference:Ln().string,referenceRecord:Ln().any,resource:Ln().string,resourceLinkPath:Ln().oneOfType([Ln().string,Ln().bool,Ln().func]).isRequired,source:Ln().string,translateChoice:Ln().oneOfType([Ln().func,Ln().bool])};var HN=SP(UN),$N="RaReferenceField",QN={link:"".concat($N,"-link")},KN=(0,Sn.cp)("span",{name:$N,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={lineHeight:"initial"})["& .".concat(QN.link)]={"& > *":{color:r.palette.primary.main}},t})),GN=function(){return GN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},GN.apply(this,arguments)},YN=function(e){var r=e.children,n=e.resource,o=e.source,a=e.perPage,i=e.sort,s=e.filter,l=Ym(e),c=dt()(l,o,JN)||JN,u=ET({data:c,resource:n,perPage:a,sort:i,filter:s});return t.createElement(tk,{value:u},r)};YN.propTypes=GN({},wP),YN.displayName="ArrayFieldImpl";var XN=SP(YN),JN=[],ZN=function(){return ZN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZN.apply(this,arguments)},eL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tL=function(e){var r=e.className,n=e.emptyText,o=e.source,a=e.locales,i=e.options,s=(e.textAlign,e.transform),l=void 0===s?rL:s,c=eL(e,["className","emptyText","source","locales","options","textAlign","transform"]),u=Ym(e),d=Ps();if(!u)return null;var p=dt()(u,o);return null==p?n?t.createElement(Su,ZN({component:"span",variant:"body2",className:r},xP(c)),n&&d(n,{_:n})):null:(l&&(p=l(p)),t.createElement(Su,ZN({variant:"body2",component:"span",className:r},xP(c)),oL&&"number"===typeof p?p.toLocaleString(a,i):p))},rL=function(e){return e&&"string"===typeof e&&!isNaN(e)?+e:e};tL.propTypes=ZN(ZN(ZN({},Su.propTypes),wP),{locales:Ln().oneOfType([Ln().string,Ln().arrayOf(Ln().string)]),options:Ln().object}),tL.displayName="NumberFieldImpl",tL.defaultProps={textAlign:"right"};var nL=SP(tL),oL=!("object"!==typeof Intl||!Intl||"function"!==typeof Intl.NumberFormat);const aL=e=>{var t;let{source:r,...n}=e;const o=Ym(n),a=null===(t=dt()(o,r))||void 0===t?void 0:t.toString(),{alt:i,classes:s,sizes:l,sx:c,variant:u}=n;return(0,Jt.jsx)(Bl,{alt:i,classes:s,sizes:l,src:a,sx:c,variant:u})};var iL=function(e){var r=Dw(e)[1].clearSelection;return(0,t.useCallback)((function(){r()}),[r])},sL=r(2288),lL=r(3084);const cL=e=>{let{open:t,loading:r,onClose:n,onSubmit:o}=e;const a=Ps(),i=e=>(0,Jt.jsxs)(_R,{...e,children:[(0,Jt.jsx)(QP,{label:"resources.servernotices.action.send",disabled:e.pristine}),(0,Jt.jsx)(gh,{label:"ra.action.cancel",onClick:n,children:(0,Jt.jsx)(lL.c,{})})]});return(0,Jt.jsxs)(sE,{open:t,onClose:n,loading:r,children:[(0,Jt.jsx)(CE,{children:a("resources.servernotices.action.send")}),(0,Jt.jsxs)(bE,{children:[(0,Jt.jsx)(_E,{children:a("resources.servernotices.helper.send")}),(0,Jt.jsx)(iT,{toolbar:(0,Jt.jsx)(i,{}),onSubmit:o,children:(0,Jt.jsx)(Jb,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:$v()})})]})]})},uL=()=>{const e=Ym(),[r,n]=(0,t.useState)(!1),o=Tt(),[a,{isloading:i}]=BR(),s=()=>n(!1);return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(gh,{label:"resources.servernotices.send",onClick:()=>n(!0),disabled:i,children:(0,Jt.jsx)(sL.c,{})}),(0,Jt.jsx)(cL,{open:r,onClose:s,onSubmit:t=>{a("servernotices",{data:{id:e.id,...t}},{onSuccess:()=>{o("resources.servernotices.action.send_success"),s()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})})}})]})},dL=()=>{const{selectedIds:e}=PS(),[r,n]=(0,t.useState)(!1),o=()=>n(!1),a=Tt(),i=iL("users"),s=hw(),{mutate:l,isLoading:c}=(0,d.useMutation)((t=>s.createMany("servernotices",{ids:e,data:t})),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(gh,{label:"resources.servernotices.send",onClick:()=>n(!0),disabled:c,children:(0,Jt.jsx)(sL.c,{})}),(0,Jt.jsx)(cL,{open:r,onClose:o,onSubmit:l})]})},pL=e=>{const t=Ym(),r=tl(),n=Tt(),[o]=nR();if(!t)return null;return(0,Jt.jsx)(wR,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",onConfirm:()=>{o("devices",{id:t.id,previousData:t},{onSuccess:()=>{n("resources.devices.action.erase.success"),r()},onError:()=>{n("resources.devices.action.erase.failure",{type:"error"})}})},mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}})};var fL=function(){return fL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fL.apply(this,arguments)},mL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},hL=function(e){return e?new Date(e):""===e?null:e},vL=function(e){var r=e.className,n=e.defaultValue,o=e.format,a=void 0===o?OL:o,i=e.label,s=e.helperText,l=e.margin,c=e.onBlur,u=e.onChange,d=e.source,p=e.resource,f=e.parse,m=void 0===f?hL:f,h=e.validate,v=e.variant,g=mL(e,["className","defaultValue","format","label","helperText","margin","onBlur","onChange","source","resource","parse","validate","variant"]),y=xb(fL({defaultValue:n,format:a,parse:m,onBlur:c,onChange:u,resource:p,source:d,validate:h},g)),b=y.field,x=y.fieldState,w=y.formState,S=y.id,O=y.isRequired,_=x.error,E=x.invalid,k=x.isTouched,j=w.isSubmitted,C=!1!==s||(k||j)&&E;return t.createElement(Vm,fL({id:S},b,{className:Mn("ra-input","ra-input-".concat(d),r),type:"datetime-local",size:"small",variant:v,margin:l,error:(k||j)&&E,helperText:C?t.createElement($b,{touched:k||j,error:null===_||void 0===_?void 0:_.message,helperText:s}):null,label:t.createElement(Eb,{label:i,source:d,resource:p,isRequired:O}),InputLabelProps:SL},Gb(g)))};vL.propTypes={label:Ln().oneOfType([Ln().string,Ln().bool,Ln().element]),resource:Ln().string,source:Ln().string};var gL=function(e){return void 0===e&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},yL=gL(4),bL=gL(2),xL=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=yL(e.getFullYear()),r=bL(e.getMonth()+1),n=bL(e.getDate()),o=bL(e.getHours()),a=bL(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(o,":").concat(a)},wL=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,SL={shrink:!0},OL=function(e){return null==e||""===e?"":e instanceof Date?xL(e):wL.test(e)?e:xL(new Date(e))},_L=function(){return _L=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_L.apply(this,arguments)},EL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kL=function(e){var r=e.className,n=e.defaultValue,o=void 0===n?null:n,a=e.format,i=void 0===a?CL:a,s=e.helperText,l=e.label,c=e.margin,u=e.onChange,d=e.onBlur,p=e.onFocus,f=e.parse,m=e.resource,h=e.source,v=e.step,g=void 0===v?"any":v,y=e.min,b=e.max,x=e.validate,w=e.variant,S=e.inputProps,O=EL(e,["className","defaultValue","format","helperText","label","margin","onChange","onBlur","onFocus","parse","resource","source","step","min","max","validate","variant","inputProps"]),_=xb(_L({defaultValue:o,onBlur:d,resource:m,source:h,validate:x},O)),E=_.field,k=_.fieldState,j=k.error,C=k.invalid,P=k.isTouched,R=_.formState.isSubmitted,T=_.id,A=_.isRequired,I=E.onBlur,M=_L(_L({},S),{step:g,min:y,max:b}),N=t.useState(i(E.value)),L=N[0],F=N[1],z=t.useRef(!1);t.useEffect((function(){if(!z.current){var e=i(E.value);F((function(t){return t!==e?e:t}))}}),[E.value,i]);var D=!1!==s||(P||R)&&C,B=E.ref,V=EL(E,["ref"]);return t.createElement(Vm,_L({id:T},V,{inputRef:B,value:L,onChange:function(e){if(u&&u(e),"undefined"!==typeof e.target&&"undefined"!==typeof e.target.value){var t=e.target;F(t.value);var r=void 0===t.valueAsNumber||null===t.valueAsNumber||isNaN(t.valueAsNumber)?f?f(t.value):jL(t.value):f?f(t.valueAsNumber):t.valueAsNumber;E.onChange(r)}},onFocus:function(e){p&&p(e),z.current=!0},onBlur:function(){I&&I(),z.current=!1;var e=i(E.value);F((function(t){return t!==e?e:t}))},className:Mn("ra-input","ra-input-".concat(h),r),type:"number",size:"small",variant:w,error:(P||R)&&C,helperText:D?t.createElement($b,{touched:P||R,error:null===j||void 0===j?void 0:j.message,helperText:s}):null,label:t.createElement(Eb,{label:l,source:h,resource:m,isRequired:A}),margin:c,inputProps:M},Gb(O)))};kL.propTypes={label:Ln().oneOfType([Ln().string,Ln().bool,Ln().element]),resource:Ln().string,source:Ln().string,step:Ln().oneOfType([Ln().string,Ln().number])};var jL=function(e){if(null==e||""===e)return null;var t=parseFloat(e);return isNaN(t)?0:t},CL=function(e){return null==e||isNaN(e)?"":e.toString()},PL=r(8184),RL=r(9732),TL=r(699);const AL=e=>{let{open:t,loading:r,onClose:n,onSubmit:o}=e;const a=Ps(),i=e=>(0,Jt.jsxs)(_R,{...e,children:[(0,Jt.jsx)(QP,{label:"resources.delete_media.action.send",icon:(0,Jt.jsx)(RL.c,{})}),(0,Jt.jsx)(gh,{label:"ra.action.cancel",onClick:n,children:(0,Jt.jsx)(lL.c,{})})]});return(0,Jt.jsxs)(sE,{open:t,onClose:n,loading:r,children:[(0,Jt.jsx)(CE,{children:a("resources.delete_media.action.send")}),(0,Jt.jsxs)(bE,{children:[(0,Jt.jsx)(_E,{children:a("resources.delete_media.helper.send")}),(0,Jt.jsxs)(iT,{toolbar:(0,Jt.jsx)(i,{}),onSubmit:o,children:[(0,Jt.jsx)(vL,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:e=>{const t=new Date(e);return isNaN(t)?0:t.getTime()}}),(0,Jt.jsx)(kL,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),(0,Jt.jsx)(q_,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},IL=e=>{const r=po(),[n,o]=(0,t.useState)(!1),a=Tt(),[i,{isLoading:s}]=nR(),l=()=>o(!1);return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(gh,{...e,label:"resources.delete_media.action.send",onClick:()=>o(!0),disabled:s,sx:{color:r.palette.error.main,"&:hover":{backgroundColor:(0,qn.W4)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:(0,Jt.jsx)(RL.c,{})}),(0,Jt.jsx)(AL,{open:n,onClose:l,onSubmit:e=>{i("delete_media",{meta:e},{onSuccess:()=>{a("resources.delete_media.action.send_success"),l()},onError:()=>a("resources.delete_media.action.send_failure",{type:"error"})})}})]})},ML=()=>{const e=Ym(),t=Ps(),r=tl(),n=Tt(),[o,{isLoading:a}]=BR(),[i]=nR();if(!e)return null;return(0,Jt.jsxs)(Jt.Fragment,{children:[e.quarantined_by&&(0,Jt.jsx)(zi,{title:t("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(gh,{disabled:!0,children:(0,Jt.jsx)(Mb.c,{})})})}),e.safe_from_quarantine&&(0,Jt.jsx)(zi,{title:t("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(gh,{onClick:()=>{i("protect_media",{id:e.id},{onSuccess:()=>{n("resources.protect_media.action.send_success"),r()},onError:()=>n("resources.protect_media.action.send_failure",{type:"error"})})},disabled:a,children:(0,Jt.jsx)(Tv.c,{})})})}),!e.safe_from_quarantine&&!e.quarantined_by&&(0,Jt.jsx)(zi,{title:t("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(gh,{onClick:()=>{o("protect_media",{data:e},{onSuccess:()=>{n("resources.protect_media.action.send_success"),r()},onError:()=>n("resources.protect_media.action.send_failure",{type:"error"})})},disabled:a,children:(0,Jt.jsx)(TL.c,{})})})})]})},NL=e=>{const t=Ym(),r=Ps(),n=tl(),o=Tt(),[a,{isLoading:i}]=BR(),[s]=nR();if(!t)return null;return(0,Jt.jsxs)(Jt.Fragment,{children:[t.safe_from_quarantine&&(0,Jt.jsx)(zi,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(gh,{...e,disabled:!0,children:(0,Jt.jsx)(Mb.c,{})})})}),t.quarantined_by&&(0,Jt.jsx)(zi,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(gh,{...e,onClick:()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},disabled:i,children:(0,Jt.jsx)(PL.c,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&(0,Jt.jsx)(zi,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(gh,{onClick:()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},disabled:i,children:(0,Jt.jsx)(PL.c,{})})})})]})},LL=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],FL=[{id:"bot",name:"bot"},{id:"support",name:"support"}],zL={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},DL=e=>{let{sort:r,className:n,resource:o,filters:a,displayedFilters:i,exporter:s,filterValues:l,permanentFilter:c,hasCreate:u,selectedIds:d,onUnselectItems:p,showFilter:f,maxResults:m,total:h,...v}=e;return(0,Jt.jsxs)(uw,{className:n,...sS(v),children:[a&&(0,t.cloneElement)(a,{resource:o,showFilter:f,displayedFilters:i,filterValues:l,context:"button"}),(0,Jt.jsx)(_S,{}),(0,Jt.jsx)(NS,{disabled:0===h,resource:o,sort:r,filter:{...l,...c},exporter:s,maxResults:m}),(0,Jt.jsx)(gh,{component:ap,to:"/import_users",label:"CSV Import",children:(0,Jt.jsx)(rw.c,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};DL.defaultProps={selectedIds:[],onUnselectItems:()=>null};const BL=()=>(0,Jt.jsx)($O,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),VL=[(0,Jt.jsx)(JO,{source:"name",alwaysOn:!0}),(0,Jt.jsx)(q_,{source:"guests",alwaysOn:!0}),(0,Jt.jsx)(q_,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],WL=()=>(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(dL,{}),(0,Jt.jsx)(XE,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),qL=[$v(),Qv(253),Yv(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],UL=[$v(),Qv(255)];function HL(){const e=localStorage.getItem("home_server");return{id:"@"+Array(8).fill("0123456789abcdefghijklmnopqrstuvwxyz").map((e=>e[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*e.length)])).join("")+":"+e,password:Array(20).fill("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$").map((e=>e[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*e.length)])).join("")}}const $L=e=>(0,Jt.jsx)(_R,{...e,children:(0,Jt.jsx)(QP,{disabled:e.pristine})}),QL=e=>{let{data:t}=e;const r=Ps();var n="";return t&&(n=t.deactivated),(0,Jt.jsxs)(uw,{children:[!n&&(0,Jt.jsx)(uL,{record:t}),(0,Jt.jsx)(wR,{record:t,label:"resources.users.action.erase",confirmTitle:r("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},KL=()=>{const e=Ym(),t=Ps();return(0,Jt.jsxs)("span",{children:[t("resources.users.name",{smart_count:1})," ",e?'"'.concat(e.displayname,'"'):""]})},GL={name:"users",icon:sw.c,list:e=>(0,Jt.jsx)(fj,{...e,filters:VL,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:(0,Jt.jsx)(DL,{maxResults:1e4}),pagination:(0,Jt.jsx)(BL,{}),children:(0,Jt.jsxs)(mP,{rowClick:"edit",bulkActionButtons:(0,Jt.jsx)(WL,{}),children:[(0,Jt.jsx)(aL,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),(0,Jt.jsx)(jP,{source:"id",sortBy:"name"}),(0,Jt.jsx)(jP,{source:"displayname"}),(0,Jt.jsx)(AP,{source:"is_guest"}),(0,Jt.jsx)(AP,{source:"admin"}),(0,Jt.jsx)(AP,{source:"deactivated"}),(0,Jt.jsx)(DP,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:zL})]})}),edit:e=>{const t=Ps();return(0,Jt.jsx)(ZI,{...e,title:(0,Jt.jsx)(KL,{}),actions:(0,Jt.jsx)(QL,{}),children:(0,Jt.jsxs)(cN,{toolbar:(0,Jt.jsx)($L,{}),children:[(0,Jt.jsxs)(oN,{label:t("resources.users.name",{smart_count:1}),icon:(0,Jt.jsx)(aw.c,{}),children:[(0,Jt.jsx)(aL,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),(0,Jt.jsx)(Jb,{source:"id",disabled:!0}),(0,Jt.jsx)(Jb,{source:"displayname"}),(0,Jt.jsx)(mT,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),(0,Jt.jsx)(WT,{source:"user_type",choices:FL,translateChoice:!1,resettable:!0}),(0,Jt.jsx)(q_,{source:"admin"}),(0,Jt.jsx)(q_,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),(0,Jt.jsx)(DP,{source:"creation_ts_ms",showTime:!0,options:zL}),(0,Jt.jsx)(jP,{source:"consent_version"})]}),(0,Jt.jsx)(oN,{label:"resources.users.threepid",icon:(0,Jt.jsx)(ew.c,{}),path:"threepid",children:(0,Jt.jsx)(AA,{source:"threepids",children:(0,Jt.jsxs)(dI,{disableReordering:!0,children:[(0,Jt.jsx)(WT,{source:"medium",choices:LL}),(0,Jt.jsx)(Jb,{source:"address"})]})})}),(0,Jt.jsx)(oN,{label:"synapseadmin.users.tabs.sso",icon:(0,Jt.jsx)(Zx.c,{}),path:"sso",children:(0,Jt.jsx)(AA,{source:"external_ids",label:!1,children:(0,Jt.jsxs)(dI,{disableReordering:!0,children:[(0,Jt.jsx)(Jb,{source:"auth_provider",validate:$v()}),(0,Jt.jsx)(Jb,{source:"external_id",label:"resources.users.fields.id",validate:$v()})]})})}),(0,Jt.jsx)(oN,{label:t("resources.devices.name",{smart_count:2}),icon:(0,Jt.jsx)(tw.c,{}),path:"devices",children:(0,Jt.jsx)(vN,{reference:"devices",target:"user_id",addLabel:!1,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},children:[(0,Jt.jsx)(jP,{source:"device_id",sortable:!1}),(0,Jt.jsx)(jP,{source:"display_name",sortable:!1}),(0,Jt.jsx)(jP,{source:"last_seen_ip",sortable:!1}),(0,Jt.jsx)(DP,{source:"last_seen_ts",showTime:!0,options:zL,sortable:!1}),(0,Jt.jsx)(pL,{})]})})}),(0,Jt.jsx)(oN,{label:"resources.connections.name",icon:(0,Jt.jsx)(iw.c,{}),path:"connections",children:(0,Jt.jsx)(VN,{reference:"connections",source:"id",addLabel:!1,link:!1,children:(0,Jt.jsx)(XN,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:(0,Jt.jsxs)(mP,{style:{width:"100%"},children:[(0,Jt.jsx)(jP,{source:"ip",sortable:!1}),(0,Jt.jsx)(DP,{source:"last_seen",showTime:!0,options:zL,sortable:!1}),(0,Jt.jsx)(jP,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),(0,Jt.jsx)(oN,{label:t("resources.users_media.name",{smart_count:2}),icon:(0,Jt.jsx)(ow.c,{}),path:"media",children:(0,Jt.jsx)(vN,{reference:"users_media",target:"user_id",addLabel:!1,pagination:(0,Jt.jsx)(BL,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:(0,Jt.jsxs)(mP,{style:{width:"100%"},children:[(0,Jt.jsx)(DP,{source:"created_ts",showTime:!0,options:zL}),(0,Jt.jsx)(DP,{source:"last_access_ts",showTime:!0,options:zL}),(0,Jt.jsx)(jP,{source:"media_id"}),(0,Jt.jsx)(nL,{source:"media_length"}),(0,Jt.jsx)(jP,{source:"media_type"}),(0,Jt.jsx)(jP,{source:"upload_name"}),(0,Jt.jsx)(jP,{source:"quarantined_by"}),(0,Jt.jsx)(NL,{label:"resources.quarantine_media.action.name"}),(0,Jt.jsx)(ML,{label:"resources.users_media.fields.safe_from_quarantine"}),(0,Jt.jsx)(wR,{mutationMode:"pessimistic",redirect:!1})]})})}),(0,Jt.jsx)(oN,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,Jt.jsx)(yp.c,{}),path:"rooms",children:(0,Jt.jsx)(vN,{reference:"joined_rooms",target:"user_id",addLabel:!1,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},rowClick:(e,t,r)=>"/rooms/"+e+"/show",children:[(0,Jt.jsx)(jP,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,Jt.jsx)(VN,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,Jt.jsx)(jP,{source:"name",sortable:!1})})]})})}),(0,Jt.jsx)(oN,{label:t("resources.pushers.name",{smart_count:2}),icon:(0,Jt.jsx)(nw.c,{}),path:"pushers",children:(0,Jt.jsx)(vN,{reference:"pushers",target:"user_id",addLabel:!1,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},children:[(0,Jt.jsx)(jP,{source:"kind",sortable:!1}),(0,Jt.jsx)(jP,{source:"app_display_name",sortable:!1}),(0,Jt.jsx)(jP,{source:"app_id",sortable:!1}),(0,Jt.jsx)(jP,{source:"data.url",sortable:!1}),(0,Jt.jsx)(jP,{source:"device_display_name",sortable:!1}),(0,Jt.jsx)(jP,{source:"lang",sortable:!1}),(0,Jt.jsx)(jP,{source:"profile_tag",sortable:!1}),(0,Jt.jsx)(jP,{source:"pushkey",sortable:!1})]})})})]})})},create:e=>(0,Jt.jsx)(nT,{...e,children:(0,Jt.jsxs)(iT,{children:[(0,Jt.jsx)(Jb,{source:"id",autoComplete:"off",validate:qL}),(0,Jt.jsx)(Jb,{source:"displayname",validate:Qv(256)}),(0,Jt.jsx)(mT,{source:"password",autoComplete:"new-password",validate:Qv(512)}),(0,Jt.jsx)(WT,{source:"user_type",choices:FL,translateChoice:!1,resettable:!0}),(0,Jt.jsx)(q_,{source:"admin"}),(0,Jt.jsx)(AA,{source:"threepids",children:(0,Jt.jsxs)(dI,{disableReordering:!0,children:[(0,Jt.jsx)(WT,{source:"medium",choices:LL,validate:$v()}),(0,Jt.jsx)(Jb,{source:"address",validate:UL})]})}),(0,Jt.jsx)(AA,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:(0,Jt.jsxs)(dI,{disableReordering:!0,children:[(0,Jt.jsx)(Jb,{source:"auth_provider",validate:$v()}),(0,Jt.jsx)(Jb,{source:"external_id",label:"resources.users.fields.id",validate:$v()})]})})]})})};var YL=function(){return YL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YL.apply(this,arguments)},XL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},JL=(0,t.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,refetch:null,resource:null});JL.displayName="ShowContext";var ZL=function(e){var r=e.children,n=e.value;return t.createElement(JL.Provider,{value:n},t.createElement(Gm,{value:n&&n.record},r))},eF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tF=function(e){var r=e.children,n=eF(e,["children"]),o=function(e){void 0===e&&(e={});var t=e.disableAuthentication,r=e.id,n=e.queryOptions,o=void 0===n?{}:n;Fr({enabled:!t});var a=Vy(e),i=PT(a),s=Ps(),l=Tt(),c=dx(),u=tl(),d=re().id,p=null!=r?r:decodeURIComponent(d),f=o.meta,m=XL(o,["meta"]),h=LI(a,{id:p,meta:f},YL({onError:function(){l("ra.notification.item_doesnt_exist",{type:"error"}),c("list",a),u()},retry:!1},m)),v=h.data,g=h.error,y=h.isLoading,b=h.isFetching,x=h.refetch;if(v&&v.id&&v.id!=p)throw new Error("useShowController: Fetched record's id attribute (".concat(v.id,") must match the requested 'id' (").concat(p,")"));var w=Sp(),S=i(v);return{defaultTitle:s("ra.page.show",{name:w(a,1),id:p,record:v,recordRepresentation:"string"===typeof S?S:""}),error:g,isLoading:y,isFetching:b,record:v,refetch:x,resource:a}}(n),a=t.createElement(ZL,{value:o},r);return n.resource?t.createElement(Ix,{value:n.resource},a):a},rF=function(e){var t=e.record,r=e.data;return{record:t||r,data:t||r,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,resource:e.resource}},nF=r(9643),oF=function(){return oF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oF.apply(this,arguments)},aF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iF=function(e){var r=e.icon,n=void 0===r?lF:r,o=e.label,a=void 0===o?"ra.action.edit":o,i=e.scrollToTop,s=void 0===i||i,l=e.className,c=aF(e,["icon","label","scrollToTop","className"]),u=Vy(e),d=Ym(e),p=_r();return d?t.createElement(pF,oF({component:ap,to:p({type:"edit",resource:u,id:d.id}),state:sF[String(s)],label:a,onClick:cF,className:Mn(dF.root,l)},c),n):null},sF={true:{_scrollToTop:!0},false:{}},lF=t.createElement(nF.c,null),cF=function(e){return e.stopPropagation()};iF.propTypes={icon:Ln().element,label:Ln().string,record:Ln().any,scrollToTop:Ln().bool};var uF="RaEditButton",dF={root:"".concat(uF,"-root")},pF=(0,Sn.cp)(gh,{name:uF,overridesResolver:function(e,t){return t.root}})({}),fF=function(e){var r=Ym(e);return Ak().hasEdit?t.createElement(dw,{className:e.className},t.createElement(iF,{record:r})):null};fF.propTypes={className:Ln().string,record:Ln().any};var mF,hF=function(){return hF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hF.apply(this,arguments)},vF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gF=t.createElement(fF,null),yF=function(e){var r,n=e.actions,o=e.aside,a=e.children,i=e.className,s=e.component,l=void 0===s?Rv:s,c=e.emptyWhileLoading,u=void 0!==c&&c,d=e.title,p=vF(e,["actions","aside","children","className","component","emptyWhileLoading","title"]),f=function(e){var r=(0,t.useContext)(JL);return(0,t.useMemo)((function(){return jS()({},null!=e?rF(e):{},r)}),[r,e])}(e),m=f.resource,h=f.defaultTitle,v=f.record,g=Ak(e).hasEdit,y="undefined"===typeof n&&g?gF:n;return!a||!v&&u?null:t.createElement(SF,hF({className:Mn("show-page",i)},bF(p)),t.createElement(ih,{title:d,defaultTitle:h,preferenceKey:"".concat(m,".show.title")}),!1!==y&&y,t.createElement("div",{className:Mn(wF.main,(r={},r[wF.noActions]=!y,r))},t.createElement(l,{className:wF.card},a),o))};yF.propTypes={actions:Ln().oneOfType([Ln().element,Ln().bool]),children:Ln().node,className:Ln().string,emptyWhileLoading:Ln().bool,title:Ln().any};var bF=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;return vF(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"])},xF="RaShow",wF={main:"".concat(xF,"-main"),noActions:"".concat(xF,"-noActions"),card:"".concat(xF,"-card")},SF=(0,Sn.cp)("div",{name:xF,overridesResolver:function(e,t){return t.root}})(((mF={})["& .".concat(wF.main)]={display:"flex"},mF["& .".concat(wF.noActions)]={marginTop:"1em"},mF["& .".concat(wF.card)]={flex:"1 1 auto"},mF)),OF=function(){return OF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OF.apply(this,arguments)},_F=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},EF=function(e){var r=e.id,n=e.resource,o=e.queryOptions,a=e.disableAuthentication,i=_F(e,["id","resource","queryOptions","disableAuthentication"]);return t.createElement(tF,{id:r,disableAuthentication:a,queryOptions:o,resource:n},t.createElement(yF,OF({},i)))};EF.propTypes={actions:Ln().oneOfType([Ln().element,Ln().bool]),children:Ln().node.isRequired,className:Ln().string,disableAuthentication:Ln().bool,emptyWhileLoading:Ln().bool,component:Ln().elementType,resource:Ln().string,title:Ln().node,sx:Ln().any};var kF=function(){return kF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kF.apply(this,arguments)},jF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},CF=function(e){var r=e.children,n=e.syncWithLocation,o=e.value,a=jF(e,["children","syncWithLocation","value"]),i=re()["*"];return t.createElement(RM,kF({indicatorColor:"primary",value:n?i:o},a),t.Children.map(r,(function(e,r){if(!e||!(0,t.isValidElement)(e))return null;var o=PF(e,r);return(0,t.cloneElement)(e,{context:"header",value:n?o:r,syncWithLocation:n})})))},PF=function(e,t){return"".concat(e.props.path?"".concat(e.props.path):t>0?t:"")};CF.propTypes={children:Ln().node};var RF=function(){return RF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RF.apply(this,arguments)},TF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},AF=function(e){var r=e.children,n=e.contentClassName,o=e.context,a=e.count,i=e.className,s=e.divider,l=e.icon,c=e.label,u=(e.record,e.spacing),d=void 0===u?1:u,p=e.syncWithLocation,f=void 0===p||p,m=e.value,h=TF(e,["children","contentClassName","context","count","className","divider","icon","label","record","spacing","syncWithLocation","value"]),v=Ps(),g=J(),y={component:ap,to:RF(RF({},g),{pathname:m})};return"header"===o?function(){var e="string"===typeof c?v(c,{_:c}):c;return void 0!==a&&(e=t.createElement("span",null,e," (",a,")")),t.createElement(XM,RF({key:"tab-header-".concat(m),label:e,value:m,icon:l,className:Mn("show-tab",i)},f?y:{},h))}():t.createElement(NF,{className:n,spacing:d,divider:s},t.Children.map(r,(function(e){return e&&(0,t.isValidElement)(e)?t.createElement(OA,{key:e.props.source,className:Mn("ra-field",e.props.source&&"ra-field-".concat(e.props.source),MF.row,e.props.className)},e):null})))},IF="RaTab",MF={row:"".concat(IF,"-row")},NF=(0,Sn.cp)(p_,{name:IF,overridesResolver:function(e,t){return t.root}})((function(){var e;return(e={})["& .".concat(MF.row)]={display:"inline"},e}));AF.propTypes={children:Ln().node,className:Ln().string,contentClassName:Ln().string,context:Ln().oneOf(["header","content"]),count:Ln().node,icon:Ln().element,label:Ln().oneOfType([Ln().string,Ln().element]).isRequired,path:Ln().string,spacing:Ln().any,value:Ln().oneOfType([Ln().string,Ln().number])};var LF=function(){return LF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LF.apply(this,arguments)},FF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},zF=function(e){var r=e.children,n=e.className,o=e.spacing,a=e.divider,i=e.syncWithLocation,s=void 0===i||i,l=e.tabs,c=void 0===l?DF:l,u=(e.value,FF(e,["children","className","spacing","divider","syncWithLocation","tabs","value"])),d=Ym(e),p=t.Children.toArray(r).filter((function(e){return null!==e})),f=(0,t.useState)(0),m=f[0],h=f[1],v=function(e,t){s||h(t)};if(!d)return null;var g=function(){return(0,t.cloneElement)(c,{onChange:v,syncWithLocation:s,value:m},p)};return t.createElement(Dy,{value:e.record},t.createElement(WF,LF({className:n},qF(u)),s?t.createElement(xe,null,t.createElement(ye,{path:"/*",element:t.createElement(t.Fragment,null,g(),t.createElement(oM,null),t.createElement("div",{className:VF.content},t.createElement(ge,null)))},t.Children.map(p,(function(e,r){return(0,t.isValidElement)(e)?t.createElement(ye,{path:PF(e,r),element:(0,t.cloneElement)(e,{context:"content",spacing:o,divider:a})}):null})))):t.createElement(t.Fragment,null,g(),t.createElement(oM,null),t.createElement("div",{className:VF.content},t.Children.map(p,(function(e,r){return(0,t.isValidElement)(e)&&m===r?(0,t.cloneElement)(e,{context:"content",spacing:o,divider:a}):null}))))))};zF.Tab=AF,zF.propTypes={children:Ln().node,className:Ln().string,record:Ln().object,spacing:Ln().any,sx:Ln().any,syncWithLocation:Ln().bool,tabs:Ln().element,value:Ln().number};var DF=t.createElement(CF,null),BF="RaTabbedShowLayout",VF={content:"".concat(BF,"-content")},WF=(0,Sn.cp)("div",{name:BF,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(VF.content)]={padding:"".concat(r.spacing(1)," ").concat(r.spacing(2))},t})),qF=function(e){e.record,e.resource,e.initialValues,e.staticContext,e.translate,e.tabs;return FF(e,["record","resource","initialValues","staticContext","translate","tabs"])},UF=function(){return UF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UF.apply(this,arguments)},HF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$F=function(e){var r=e.className,n=e.emptyText,o=e.source,a=e.choices,i=e.optionValue,s=void 0===i?"id":i,l=e.optionText,c=void 0===l?"name":l,u=e.translateChoice,d=void 0===u||u,p=HF(e,["className","emptyText","source","choices","optionValue","optionText","translateChoice"]),f=Ym(e),m=dt()(f,o),h=RT({optionText:c,optionValue:s,translateChoice:d}),v=h.getChoiceText,g=h.getChoiceValue,y=Ps(),b=a.find((function(e){return g(e)===m}));if(!b)return n?t.createElement(Su,UF({component:"span",variant:"body2",className:r},xP(p)),n&&y(n,{_:n})):null;var x=v(b);return t.createElement(Su,UF({component:"span",variant:"body2",className:r},xP(p)),x)};$F.propTypes=UF(UF(UF({},Su.propTypes),wP),{choices:Ln().arrayOf(Ln().object).isRequired,optionText:Ln().oneOfType([Ln().string,Ln().func,Ln().element]),optionValue:Ln().string,translateChoice:Ln().bool}),$F.displayName="SelectFieldImpl";var QF=SP($F),KF=r(1744),GF=r(8176),YF=function(e){var r=e.selected,n=e.label,o=e.onToggle,a=e.onMove,i=e.source,s=e.index,l=Vy(),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null),p=t.useCallback((function(e){u.current=e.clientX,d.current=e.clientY}),[]);return t.createElement(XF,{key:i,draggable:a?"true":void 0,onDrag:a?function(e){var t=e.target;t.classList.add("drag-active");var r=t.closest("ul"),n=null===document.elementFromPoint(u.current,d.current)?t:document.elementFromPoint(u.current,d.current).closest("li");n&&(n.classList.contains("dragIcon")&&(n=n.parentNode),n!==t&&r===n.parentNode.closest("ul")&&(c.current=n.dataset.index,n===t.nextSibling&&(n=n.nextSibling),r.insertBefore(t,n)))}:void 0,onDragStart:a?function(){document.addEventListener("dragover",p)}:void 0,onDragEnd:a?function(e){var t=e.target,r=t.closest("ul"),n=null===document.elementFromPoint(u.current,d.current)?t:document.elementFromPoint(u.current,d.current).closest("li");n||(n=d.current>t.closest("ul").getBoundingClientRect().bottom?r.lastChild:r.firstChild),n&&r===n.closest("ul")?a(t.dataset.index,c.current):(e.preventDefault(),e.stopPropagation()),t.classList.remove("drag-active"),document.removeEventListener("dragover",p)}:void 0,onDragOver:a?function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}:void 0,"data-index":s},t.createElement("label",{htmlFor:"switch_".concat(s)},t.createElement(D_,{checked:r,onChange:o,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),t.createElement(Su,{variant:"body2",component:"span"},t.createElement(Eb,{label:n,source:i,resource:l}))),a&&t.createElement(GF.c,{className:"dragIcon",color:"disabled",fontSize:"small"}))},XF=(0,Sn.cp)("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}})),JF=function(){return JF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JF.apply(this,arguments)},ZF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ez=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},tz=function(e){var r=e.preferenceKey,n=Vy(e),o=r||"".concat(n,".datagrid"),a=t.useState(null),i=a[0],s=a[1],l=Ct("preferences.".concat(o,".availableColumns"),[]),c=l[0],u=l[1],d=Ct("preferences.".concat(o,".omit"),[])[0],p=Ct("preferences.".concat(o,".columns"),c.filter((function(e){return!(null===d||void 0===d?void 0:d.includes(e.source))})).map((function(e){return e.index}))),f=p[0],m=p[1],h=Ps(),v=fr((function(e){return e.breakpoints.down("sm")})),g=h("ra.action.select_columns",{_:"Columns"}),y=function(e){s(e.currentTarget)},b=function(e){e.target.checked?m(c.filter((function(t){return t.index===e.target.name||f.includes(t.index)})).map((function(e){return e.index}))):m(f.filter((function(t){return t!==e.target.name})))},x=function(e,t){var r,n=c.findIndex((function(t){return t.index==e})),o=c.findIndex((function(e){return e.index==t}));-1!==n&&-1!==o&&(r=n>o?ez(ez(ez(ez([],c.slice(0,o),!0),[c[n]],!1),c.slice(o,n),!0),c.slice(n+1),!0):ez(ez(ez(ez([],c.slice(0,n),!0),c.slice(n+1,o+1),!0),[c[n]],!1),c.slice(o+1),!0),u(r),m((function(e){return r.filter((function(t){return e.includes(t.index)})).map((function(e){return e.index}))})))};return t.createElement(t.Fragment,null,v?t.createElement(zi,{title:g},t.createElement(js,JF({"aria-label":g,color:"primary",onClick:y,size:"large"},nz(e)),t.createElement(KF.c,null))):t.createElement(rz,JF({size:"small",onClick:y,startIcon:t.createElement(KF.c,null)},nz(e)),g),t.createElement(Hc,{open:Boolean(i),anchorEl:i,onClose:function(){s(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},t.createElement(gd,{component:"ul",p:1,my:0},c.map((function(e){return t.createElement(YF,{key:e.index,source:e.source,label:e.label,index:e.index,selected:f.includes(e.index),onToggle:b,onMove:x})})))))},rz=(0,Sn.cp)(Tl,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),nz=function(e){e.resource,e.preferenceKey;return ZF(e,["resource","preferenceKey"])},oz=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},az=function(e){var r=e.name,n=void 0===r?"columns":r,o=e.availableName,a=void 0===o?"availableColumns":o,i=Ps(),s=Np(a,[]),l=s[0],c=s[1],u=Np("omit",[])[0],d=Np(n,l.filter((function(e){return!(null===u||void 0===u?void 0:u.includes(e.source))})).map((function(e){return e.index}))),p=d[0],f=d[1],m=function(e){e.target.checked?f(l.filter((function(t){return t.index===e.target.name||p.includes(t.index)})).map((function(e){return e.index}))):f(p.filter((function(t){return t!==e.target.name})))},h=function(e,t){var r,n=l.findIndex((function(t){return t.index==e})),o=l.findIndex((function(e){return e.index==t}));-1!==n&&-1!==o&&(r=n>o?oz(oz(oz(oz([],l.slice(0,o),!0),[l[n]],!1),l.slice(o,n),!0),l.slice(n+1),!0):oz(oz(oz(oz([],l.slice(0,n),!0),l.slice(n+1,o+1),!0),[l[n]],!1),l.slice(o+1),!0),c(r),f((function(e){return r.filter((function(t){return e.includes(t.index)})).map((function(e){return e.index}))})))};return t.createElement(gd,{pt:.5},t.createElement(gd,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map((function(e){return t.createElement(YF,{key:e.index,source:e.source,label:e.label,index:e.index,selected:p.includes(e.index),onToggle:m,onMove:h})}))),t.createElement(gd,{onDrop:function(e){return e.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},t.createElement(Tl,{size:"small",onClick:function(){f([])}},i("ra.inspector.hideAll",{_:"Hide All"})),t.createElement(Tl,{size:"small",onClick:function(){f(l.map((function(e){return e.index})))}},i("ra.inspector.showAll",{_:"Show All"}))))},iz=function(){return Eh("ra.inspector.Datagrid.title",{_:"Datagrid"}),t.createElement(az,{name:"columns",availableName:"availableColumns"})},sz=function(){return sz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sz.apply(this,arguments)},lz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cz=function(e){var r=e.preferenceKey,n=e.omit,o=lz(e,["preferenceKey","omit"]);if(o.optimized)throw new Error("DatagridConfigurable does not support the optimized prop");var a=Ps(),i=Vy(o),s=r||"".concat(i,".datagrid"),l=Ct("preferences.".concat(s,".availableColumns"),[]),c=l[0],u=l[1],d=Ct("preferences.".concat(s,".omit"),n),p=(d[0],d[1]);return t.useEffect((function(){var e=t.Children.toArray(o.children).filter((function(e){return t.isValidElement(e)})).map((function(e,t){return{index:String(t),source:e.props.source,label:e.props.label&&"string"===typeof e.props.label?e.props.label:e.props.source?void 0:a("ra.configurable.Datagrid.unlabeled",{column:t,_:"Unlabeled column #%{column}"})}}));e.length!==c.length&&(u(e),p(n))}),[c]),t.createElement(Um,{editor:t.createElement(iz,null),preferenceKey:s,sx:{display:"block",minHeight:2}},t.createElement(uz,sz({},o)))};cz.propTypes=mP.propTypes;var uz=function(e){var r=e.children,n=lz(e,["children"]),o=Np("availableColumns",[])[0],a=Np("omit",[])[0],i=Np("columns",o.filter((function(e){return!(null===a||void 0===a?void 0:a.includes(e.source))})).map((function(e){return e.index})))[0],s=t.Children.toArray(r);return t.createElement(mP,sz({},n),void 0===i?r:i.map((function(e){return s[e]})))},dz=function(){return dz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dz.apply(this,arguments)},pz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fz=function(e){var r=e.className,n=e.source,o=void 0===n?"":n,a=e.render,i=pz(e,["className","source","render"]),s=Ym(e);return(0,t.useMemo)((function(){return s?t.createElement(Su,dz({component:"span",variant:"body2",className:r},xP(i)),a(s,o)):null}),[r,s,o,a,i])};fz.propTypes=dz(dz(dz({},Su.propTypes),wP),{render:Ln().func.isRequired});var mz=r(4136),hz=r(3472),vz=r(1584),gz=r(3248),yz=r(4472),bz=r(3012);const xz=()=>(0,Jt.jsx)($O,{rowsPerPageOptions:[100,500,1e3,2e3]}),wz=e=>{const t=Ps();return(0,Jt.jsx)(wR,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:(0,Jt.jsx)(bz.c,{})})},Sz=e=>(0,Jt.jsx)(XE,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:(0,Jt.jsx)(bz.c,{})}),Oz=e=>{const{selectedIds:t}=PS(),r=Tt(),n=tl(),o=iL("rooms"),a=hw(),{mutate:i,isLoading:s}=(0,d.useMutation)((()=>a.createMany("room_directory",{ids:t,data:{}})),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return(0,Jt.jsx)(gh,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:(0,Jt.jsx)(bz.c,{})})},_z=e=>{const t=Ym(),r=Tt(),n=tl(),[o,{isLoading:a}]=BR();return(0,Jt.jsx)(gh,{...e,label:"resources.room_directory.action.create",onClick:()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})},disabled:a,children:(0,Jt.jsx)(bz.c,{})})},Ez=()=>(0,Jt.jsxs)(uw,{children:[(0,Jt.jsx)(tz,{}),(0,Jt.jsx)(NS,{})]}),kz={name:"room_directory",icon:bz.c,list:()=>(0,Jt.jsx)(fj,{pagination:(0,Jt.jsx)(xz,{}),perPage:100,actions:(0,Jt.jsx)(Ez,{}),children:(0,Jt.jsxs)(cz,{rowClick:(e,t,r)=>"/rooms/"+e+"/show",bulkActionButtons:(0,Jt.jsx)(Sz,{}),omit:["room_id","canonical_alias","topic"],children:[(0,Jt.jsx)(aL,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),(0,Jt.jsx)(jP,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),(0,Jt.jsx)(jP,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,Jt.jsx)(jP,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),(0,Jt.jsx)(jP,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),(0,Jt.jsx)(nL,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),(0,Jt.jsx)(AP,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),(0,Jt.jsx)(AP,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})})},jz={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},Cz=()=>(0,Jt.jsx)($O,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Pz=()=>{const e=Ym(),t=Ps();var r="";return e&&(r=""!==e.name?e.name:e.id),(0,Jt.jsxs)("span",{children:[t("resources.rooms.name",1)," ",r]})},Rz=()=>{const e=Ym();var t="";return e&&(t=e.public),(0,Jt.jsxs)(uw,{children:[!1===t&&(0,Jt.jsx)(_z,{}),!0===t&&(0,Jt.jsx)(wz,{}),(0,Jt.jsx)(wR,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},Tz=()=>(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(Oz,{}),(0,Jt.jsx)(Sz,{}),(0,Jt.jsx)(XE,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),Az=[(0,Jt.jsx)(JO,{source:"search_term",alwaysOn:!0})],Iz=()=>(0,Jt.jsxs)(uw,{children:[(0,Jt.jsx)(tz,{}),(0,Jt.jsx)(NS,{})]}),Mz={name:"rooms",icon:yp.c,list:e=>{const t=po();return(0,Jt.jsx)(fj,{...e,pagination:(0,Jt.jsx)(Cz,{}),sort:{field:"name",order:"ASC"},filters:Az,actions:(0,Jt.jsx)(Iz,{}),children:(0,Jt.jsxs)(cz,{rowClick:"show",bulkActionButtons:(0,Jt.jsx)(Tz,{}),omit:["joined_local_members","state_events","version","federatable"],children:[(0,Jt.jsx)(AP,{source:"is_encrypted",sortBy:"encryption",TrueIcon:hz.c,FalseIcon:vz.c,label:(0,Jt.jsx)(hz.c,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),(0,Jt.jsx)(fz,{source:"name",render:e=>e.name||e.canonical_alias||e.id}),(0,Jt.jsx)(jP,{source:"joined_members"}),(0,Jt.jsx)(jP,{source:"joined_local_members"}),(0,Jt.jsx)(jP,{source:"state_events"}),(0,Jt.jsx)(jP,{source:"version"}),(0,Jt.jsx)(AP,{source:"federatable"}),(0,Jt.jsx)(AP,{source:"public"})]})})},show:e=>{const t=Ps();return(0,Jt.jsx)(EF,{...e,actions:(0,Jt.jsx)(Rz,{}),title:(0,Jt.jsx)(Pz,{}),children:(0,Jt.jsxs)(zF,{children:[(0,Jt.jsxs)(AF,{label:"synapseadmin.rooms.tabs.basic",icon:(0,Jt.jsx)(yp.c,{}),children:[(0,Jt.jsx)(jP,{source:"room_id"}),(0,Jt.jsx)(jP,{source:"name"}),(0,Jt.jsx)(jP,{source:"topic"}),(0,Jt.jsx)(jP,{source:"canonical_alias"}),(0,Jt.jsx)(VN,{source:"creator",reference:"users",children:(0,Jt.jsx)(jP,{source:"id"})})]}),(0,Jt.jsxs)(AF,{label:"synapseadmin.rooms.tabs.detail",icon:(0,Jt.jsx)(gz.c,{}),path:"detail",children:[(0,Jt.jsx)(jP,{source:"joined_members"}),(0,Jt.jsx)(jP,{source:"joined_local_members"}),(0,Jt.jsx)(jP,{source:"joined_local_devices"}),(0,Jt.jsx)(jP,{source:"state_events"}),(0,Jt.jsx)(jP,{source:"version"}),(0,Jt.jsx)(jP,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),(0,Jt.jsx)(AF,{label:"synapseadmin.rooms.tabs.members",icon:(0,Jt.jsx)(sw.c,{}),path:"members",children:(0,Jt.jsx)(vN,{reference:"room_members",target:"room_id",addLabel:!1,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},rowClick:(e,t,r)=>"/users/"+e,children:[(0,Jt.jsx)(jP,{source:"id",sortable:!1,label:"resources.users.fields.id"}),(0,Jt.jsx)(VN,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:(0,Jt.jsx)(jP,{source:"displayname",sortable:!1})})]})})}),(0,Jt.jsxs)(AF,{label:"synapseadmin.rooms.tabs.permission",icon:(0,Jt.jsx)(uT.c,{}),path:"permission",children:[(0,Jt.jsx)(AP,{source:"federatable"}),(0,Jt.jsx)(AP,{source:"public"}),(0,Jt.jsx)(QF,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),(0,Jt.jsx)(QF,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),(0,Jt.jsx)(QF,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),(0,Jt.jsx)(AF,{label:t("resources.room_state.name",{smart_count:2}),icon:(0,Jt.jsx)(yz.c,{}),path:"state",children:(0,Jt.jsx)(vN,{reference:"room_state",target:"room_id",addLabel:!1,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},children:[(0,Jt.jsx)(jP,{source:"type",sortable:!1}),(0,Jt.jsx)(DP,{source:"origin_server_ts",showTime:!0,options:jz,sortable:!1}),(0,Jt.jsx)(jP,{source:"content",sortable:!1}),(0,Jt.jsx)(VN,{source:"sender",reference:"users",sortable:!1,children:(0,Jt.jsx)(jP,{source:"id"})})]})})}),(0,Jt.jsxs)(AF,{label:"resources.forward_extremities.name",icon:(0,Jt.jsx)(mz.c,{}),path:"forward_extremities",children:[(0,Jt.jsx)(gd,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),(0,Jt.jsx)(vN,{reference:"forward_extremities",target:"room_id",addLabel:!1,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},children:[(0,Jt.jsx)(jP,{source:"id",sortable:!1}),(0,Jt.jsx)(DP,{source:"received_ts",showTime:!0,options:jz,sortable:!1}),(0,Jt.jsx)(nL,{source:"depth",sortable:!1}),(0,Jt.jsx)(jP,{source:"state_group",sortable:!1})]})})]})]})})}};var Nz=r(4080);const Lz=e=>{const{className:r,exporter:n,filters:o,maxResults:a,...i}=e,{sort:s,resource:l,displayedFilters:c,filterValues:u,showFilter:d,total:p}=PS();return(0,Jt.jsxs)(uw,{className:r,...sS(i),children:[o&&(0,t.cloneElement)(o,{resource:l,showFilter:d,displayedFilters:c,filterValues:u,context:"button"}),(0,Jt.jsx)(IL,{}),(0,Jt.jsx)(NS,{disabled:0===p,resource:l,sort:s,filterValues:u,maxResults:a})]})},Fz=()=>(0,Jt.jsx)($O,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),zz=[(0,Jt.jsx)(JO,{source:"search_term",alwaysOn:!0})],Dz={name:"user_media_statistics",icon:Nz.c,list:e=>(0,Jt.jsx)(fj,{...e,actions:(0,Jt.jsx)(Lz,{}),filters:zz,pagination:(0,Jt.jsx)(Fz,{}),sort:{field:"media_length",order:"DESC"},children:(0,Jt.jsxs)(mP,{rowClick:(e,t,r)=>"/users/"+e+"/media",bulkActionButtons:!1,children:[(0,Jt.jsx)(jP,{source:"user_id",label:"resources.users.fields.id"}),(0,Jt.jsx)(jP,{source:"displayname",label:"resources.users.fields.displayname"}),(0,Jt.jsx)(nL,{source:"media_count"}),(0,Jt.jsx)(nL,{source:"media_length"})]})})};var Bz=r(7144);const Vz={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},Wz=()=>(0,Jt.jsx)($O,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),qz=()=>{const e=Ym();return(0,Jt.jsx)(uw,{children:(0,Jt.jsx)(wR,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},Uz={name:"reports",icon:Bz.c,list:e=>(0,Jt.jsx)(fj,{...e,pagination:(0,Jt.jsx)(Wz,{}),sort:{field:"received_ts",order:"DESC"},children:(0,Jt.jsxs)(mP,{rowClick:"show",bulkActionButtons:!1,children:[(0,Jt.jsx)(jP,{source:"id",sortable:!1}),(0,Jt.jsx)(DP,{source:"received_ts",showTime:!0,options:Vz,sortable:!0}),(0,Jt.jsx)(jP,{sortable:!1,source:"user_id"}),(0,Jt.jsx)(jP,{sortable:!1,source:"name"}),(0,Jt.jsx)(jP,{sortable:!1,source:"score"})]})}),show:e=>{const t=Ps();return(0,Jt.jsx)(EF,{...e,actions:(0,Jt.jsx)(qz,{}),children:(0,Jt.jsxs)(zF,{children:[(0,Jt.jsxs)(AF,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:(0,Jt.jsx)(yp.c,{}),children:[(0,Jt.jsx)(DP,{source:"received_ts",showTime:!0,options:Vz,sortable:!0}),(0,Jt.jsx)(VN,{source:"user_id",reference:"users",children:(0,Jt.jsx)(jP,{source:"id"})}),(0,Jt.jsx)(nL,{source:"score"}),(0,Jt.jsx)(jP,{source:"reason"}),(0,Jt.jsx)(jP,{source:"name"}),(0,Jt.jsx)(jP,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),(0,Jt.jsx)(VN,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:(0,Jt.jsx)(jP,{source:"id"})})]}),(0,Jt.jsxs)(AF,{label:"synapseadmin.reports.tabs.detail",icon:(0,Jt.jsx)(gz.c,{}),path:"detail",children:[(0,Jt.jsx)(DP,{source:"event_json.origin_server_ts",showTime:!0,options:Vz,sortable:!0}),(0,Jt.jsx)(VN,{source:"sender",reference:"users",children:(0,Jt.jsx)(jP,{source:"id"})}),(0,Jt.jsx)(jP,{source:"sender",label:"Sender (raw user ID)"}),(0,Jt.jsx)(jP,{source:"event_id"}),(0,Jt.jsx)(jP,{source:"event_json.origin"}),(0,Jt.jsx)(jP,{source:"event_json.type"}),(0,Jt.jsx)(jP,{source:"event_json.content.msgtype"}),(0,Jt.jsx)(jP,{source:"event_json.content.body"}),(0,Jt.jsx)(jP,{source:"event_json.content.format"}),(0,Jt.jsx)(jP,{source:"event_json.content.formatted_body"}),(0,Jt.jsx)(jP,{source:"event_json.content.algorithm"}),(0,Jt.jsx)(jP,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})}};var Hz=r(312),$z=r(2060);const Qz=()=>(0,Jt.jsx)($O,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Kz={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},Gz=(e,t)=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),Yz=[(0,Jt.jsx)(JO,{source:"destination",alwaysOn:!0})],Xz=()=>{const e=Ym(),t=tl(),r=Tt(),[n,{isLoading:o}]=nR();if(!e||!e.failure_ts)return null;return(0,Jt.jsx)(gh,{label:"resources.destinations.action.reconnect",onClick:o=>{o.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})},disabled:o,children:(0,Jt.jsx)(Hz.c,{})})},Jz=()=>(0,Jt.jsx)(uw,{children:(0,Jt.jsx)(Xz,{})}),Zz=()=>{const e=Ym(),t=Ps();return(0,Jt.jsxs)("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},eD={name:"destinations",icon:$z.c,list:e=>(0,Jt.jsx)(fj,{...e,filters:Yz,pagination:(0,Jt.jsx)(Qz,{}),sort:{field:"destination",order:"ASC"},children:(0,Jt.jsxs)(mP,{rowSx:Gz,rowClick:(e,t,r)=>"".concat(e,"/show/rooms"),bulkActionButtons:!1,children:[(0,Jt.jsx)(jP,{source:"destination"}),(0,Jt.jsx)(DP,{source:"failure_ts",showTime:!0,options:Kz}),(0,Jt.jsx)(DP,{source:"retry_last_ts",showTime:!0,options:Kz}),(0,Jt.jsx)(jP,{source:"retry_interval"}),(0,Jt.jsx)(jP,{source:"last_successful_stream_ordering"}),(0,Jt.jsx)(Xz,{})]})}),show:e=>{const t=Ps();return(0,Jt.jsx)(EF,{actions:(0,Jt.jsx)(Jz,{}),title:(0,Jt.jsx)(Zz,{}),...e,children:(0,Jt.jsxs)(zF,{children:[(0,Jt.jsxs)(AF,{label:"status",icon:(0,Jt.jsx)(yp.c,{}),children:[(0,Jt.jsx)(jP,{source:"destination"}),(0,Jt.jsx)(DP,{source:"failure_ts",showTime:!0,options:Kz}),(0,Jt.jsx)(DP,{source:"retry_last_ts",showTime:!0,options:Kz}),(0,Jt.jsx)(jP,{source:"retry_interval"}),(0,Jt.jsx)(jP,{source:"last_successful_stream_ordering"})]}),(0,Jt.jsx)(AF,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,Jt.jsx)(bz.c,{}),path:"rooms",children:(0,Jt.jsx)(vN,{reference:"destination_rooms",target:"destination",addLabel:!1,pagination:(0,Jt.jsx)(Qz,{}),perPage:50,children:(0,Jt.jsxs)(mP,{style:{width:"100%"},rowClick:(e,t,r)=>"/rooms/".concat(e,"/show"),children:[(0,Jt.jsx)(jP,{source:"room_id",label:"resources.rooms.fields.room_id"}),(0,Jt.jsx)(jP,{source:"stream_ordering",sortable:!1}),(0,Jt.jsx)(VN,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,Jt.jsx)(jP,{source:"name",sortable:!1})})]})})})]})})}};var tD=r(9600);const rD={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},nD=[Yv(/^[A-Za-z0-9._~-]{0,64}$/)],oD=[Gv()],aD=[Gv(),Kv(64)],iD=e=>{const t=new Date(e);return isNaN(t)?0:t.getTime()},sD=e=>{if(void 0===e||null===e)return;const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return"".concat(n,"-").concat(o,"-").concat(a,"T").concat(i,":").concat(s)},lD=[(0,Jt.jsx)(q_,{source:"valid",alwaysOn:!0})],cD={name:"users",icon:tD.c,list:e=>(0,Jt.jsx)(fj,{...e,filters:lD,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:(0,Jt.jsxs)(mP,{rowClick:"edit",children:[(0,Jt.jsx)(jP,{source:"token",sortable:!1}),(0,Jt.jsx)(nL,{source:"uses_allowed",sortable:!1}),(0,Jt.jsx)(nL,{source:"pending",sortable:!1}),(0,Jt.jsx)(nL,{source:"completed",sortable:!1}),(0,Jt.jsx)(DP,{source:"expiry_time",showTime:!0,options:rD,sortable:!1})]})}),edit:e=>(0,Jt.jsx)(ZI,{...e,children:(0,Jt.jsxs)(iT,{children:[(0,Jt.jsx)(Jb,{source:"token",disabled:!0}),(0,Jt.jsx)(kL,{source:"pending",disabled:!0}),(0,Jt.jsx)(kL,{source:"completed",disabled:!0}),(0,Jt.jsx)(kL,{source:"uses_allowed",validate:oD,step:1}),(0,Jt.jsx)(vL,{source:"expiry_time",parse:iD,format:sD})]})}),create:e=>(0,Jt.jsx)(nT,{...e,redirect:"list",children:(0,Jt.jsxs)(iT,{toolbar:(0,Jt.jsx)(_R,{children:(0,Jt.jsx)(QP,{alwaysEnable:!0})}),children:[(0,Jt.jsx)(Jb,{source:"token",autoComplete:"off",validate:nD,resettable:!0}),(0,Jt.jsx)(kL,{source:"length",validate:aD,helperText:"resources.registration_tokens.helper.length",step:1}),(0,Jt.jsx)(kL,{source:"uses_allowed",validate:oD,step:1}),(0,Jt.jsx)(vL,{source:"expiry_time",parse:iD})]})})};function uD(e){return(0,kn.cp)("MuiCardActions",e)}(0,En.c)("MuiCardActions",["root","spacing"]);const dD=["disableSpacing","className"],pD=(0,Sn.cp)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Oe.c)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),fD=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiCardActions"}),{disableSpacing:n=!1,className:o}=r,a=(0,Kt.c)(r,dD),i=(0,Oe.c)({},r,{disableSpacing:n}),s=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,xn.c)(n,uD,t)})(i);return(0,Jt.jsx)(pD,(0,Oe.c)({className:(0,bn.c)(s.root,o),ownerState:i,ref:t},a))})),mD=fD,hD=(0,Sn.cp)(gd)((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1em)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{minWidth:"30em",marginTop:"6em",marginBottom:"6em"},"& .avatar":{margin:"1em",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:t.palette.grey[500]},"& .hint":{marginTop:"1em",display:"flex",justifyContent:"center",color:t.palette.grey[600]},"& .form":{padding:"0 1em 1em 1em"},"& .input":{marginTop:"1em"},"& .actions":{padding:"0 1em 1em 1em"},"& .serverVersion":{color:t.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginBottom:"1em",marginLeft:"0.5em"}}})),vD=()=>{const e=Fv(),r=Tt(),[n,o]=(0,t.useState)(!1),[a,i]=(0,t.useState)(!0),[s,l]=cd(),c=Ps(),u=localStorage.getItem("base_url"),d={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:""}.REACT_APP_SERVER,[p,f]=(0,t.useState)(""),m=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(m){const t=m[1];console.log("SSO token is",t),window.history.replaceState({},"",window.location.href.replace(m[0],"#").split("#")[0]);const r=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),r){const n={base_url:r,username:null,password:null,loginToken:t};console.log("Base URL is:",r),console.log("SSO Token is:",t),console.log("Let's try token login..."),e(n).catch((e=>{alert("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error"),console.error(e)}))}}const h=e=>{let{meta:{touched:t,error:r}={},input:{...n},...o}=e;return(0,Jt.jsx)(Vm,{error:!(!t||!r),helperText:t&&r,...n,...o,fullWidth:!0})},v=e=>e.match(/^(http|https):\/\//)?e.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:c("synapseadmin.auth.url_error"):c("synapseadmin.auth.protocol_error"),g=e=>{let{formData:r}=e;const o=Og(),[s,l]=(0,t.useState)("");return(0,t.useEffect)((()=>{var e;(e=r.base_url,/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e))&&((async e=>{const t="".concat(e,"/_synapse/admin/v1/server_version");return(await Wx(t,{method:"GET"})).json.server_version})(r.base_url).then((e=>l("".concat(c("synapseadmin.auth.server_version")," ").concat(e)))).catch((()=>l(""))),(async e=>{const t="".concat(e,"/_matrix/client/r0/login");return(await Wx(t,{method:"GET"})).json.flows})(r.base_url).then((e=>{const t=void 0!==e.find((e=>"m.login.password"===e.type)),n=void 0!==e.find((e=>"m.login.sso"===e.type));i(t),f(n?r.base_url:"")})).catch((()=>f(""))))}),[r.base_url]),(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(gd,{children:(0,Jt.jsx)(Jb,{autoFocus:!0,name:"username",component:h,label:"ra.auth.username",disabled:n||!a,onBlur:e=>{var t;if(r.base_url||d)return;const n=null===(t=(e=>{var t;return null===(t=/^@(?<name>[a-zA-Z0-9._=\-/]+):(?<domain>[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))||void 0===t?void 0:t.groups})(r.username))||void 0===t?void 0:t.domain;n&&(async e=>{const t="https://".concat(e,"/.well-known/matrix/client");try{return(await Wx(t,{method:"GET"}))["m.homeserver"].base_url}catch{return"https://".concat(e)}})(n).then((e=>o.setValue("base_url",e)))},resettable:!0,fullWidth:!0,className:"input",validate:$v()})}),(0,Jt.jsx)(gd,{children:(0,Jt.jsx)(mT,{name:"password",component:h,label:"ra.auth.password",type:"password",disabled:n||!a,resettable:!0,fullWidth:!0,className:"input",validate:$v()})}),(0,Jt.jsx)(gd,{children:(0,Jt.jsx)(Jb,{name:"base_url",component:h,label:"synapseadmin.auth.base_url",disabled:d||n,resettable:!0,fullWidth:!0,className:"input",validate:[$v(),v]})}),(0,Jt.jsx)(Su,{className:"serverVersion",children:s})]})};return(0,Jt.jsxs)(sb,{defaultValues:{base_url:d||u},onSubmit:t=>{o(!0),e(t).catch((e=>{o(!1),r("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error",{type:"warning"})}))},mode:"onTouched",children:[(0,Jt.jsx)(hD,{children:(0,Jt.jsxs)(Rv,{className:"card",children:[(0,Jt.jsx)(gd,{className:"avatar",children:n?(0,Jt.jsx)(Zs,{size:25,thickness:2}):(0,Jt.jsx)(Bl,{className:"icon",children:(0,Jt.jsx)(Tv.c,{})})}),(0,Jt.jsx)(gd,{className:"hint",children:c("synapseadmin.auth.welcome")}),(0,Jt.jsxs)(gd,{className:"form",children:[(0,Jt.jsxs)(Nm,{value:s,onChange:e=>{l(e.target.value)},fullWidth:!0,disabled:n,className:"input",children:[(0,Jt.jsx)(Lu,{value:"de",children:"Deutsch"}),(0,Jt.jsx)(Lu,{value:"en",children:"English"}),(0,Jt.jsx)(Lu,{value:"fr",children:"Fran\xe7ais"}),(0,Jt.jsx)(Lu,{value:"it",children:"Italiano"}),(0,Jt.jsx)(Lu,{value:"zh",children:"\u7b80\u4f53\u4e2d\u6587"})]}),(0,Jt.jsx)(BA,{children:e=>(0,Jt.jsx)(g,{...e})}),(0,Jt.jsxs)(mD,{className:"actions",children:[(0,Jt.jsx)(Tl,{variant:"contained",type:"submit",color:"primary",disabled:n||!a,fullWidth:!0,children:c("ra.auth.sign_in")}),(0,Jt.jsx)(Tl,{variant:"contained",color:"secondary",onClick:()=>{localStorage.setItem("sso_base_url",p);const e="".concat(p,"/_matrix/client/r0/login/sso/redirect?redirectUrl=").concat(encodeURIComponent(window.location.href));window.location.href=e},disabled:n||""===p,fullWidth:!0,children:c("synapseadmin.auth.sso_sign_in")})]})]})]})}),(0,Jt.jsx)(Sv,{})]})};var gD=r(6683),yD=r(5336);const bD=["className","component","disableGutters","fixed","maxWidth","classes"],xD=(0,r_.c)(),wD=e_("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,yD.c)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),SD=e=>(0,t_.c)({props:e,name:"MuiContainer",defaultTheme:xD});const OD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:r=wD,useThemeProps:n=SD,componentName:o="MuiContainer"}=e,a=r((e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:r}=e;return r.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{const n=r,o=t.breakpoints.values[n];return 0!==o&&(e[t.breakpoints.up(n)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Oe.c)({},"xs"===r.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[t.breakpoints.up(r.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}})})),i=t.forwardRef((function(e,t){const r=n(e),{className:i,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=r,d=(0,Kt.c)(r,bD),p=(0,Oe.c)({},r,{component:s,disableGutters:l,fixed:c,maxWidth:u}),f=((e,t)=>{const{classes:r,fixed:n,disableGutters:o,maxWidth:a}=e,i={root:["root",a&&"maxWidth".concat((0,yD.c)(String(a))),n&&"fixed",o&&"disableGutters"]};return(0,xn.c)(i,(e=>(0,kn.cp)(t,e)),r)})(p,o);return(0,Jt.jsx)(a,(0,Oe.c)({as:s,ownerState:p,className:(0,bn.c)(f.root,i),ref:t},d))}));return i}({createStyledComponent:(0,Sn.cp)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,Wn.c)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,wn.c)({props:e,name:"MuiContainer"})}),_D=OD;function ED(e){return(0,kn.cp)("MuiCardHeader",e)}const kD=(0,En.c)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),jD=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],CD=(0,Sn.cp)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,Oe.c)({["& .".concat(kD.title)]:t.title,["& .".concat(kD.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),PD=(0,Sn.cp)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),RD=(0,Sn.cp)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),TD=(0,Sn.cp)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),AD=t.forwardRef((function(e,t){const r=(0,wn.c)({props:e,name:"MuiCardHeader"}),{action:n,avatar:o,className:a,component:i="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:d}=r,p=(0,Kt.c)(r,jD),f=(0,Oe.c)({},r,{component:i,disableTypography:s}),m=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},ED,t)})(f);let h=u;null==h||h.type===Su||s||(h=(0,Jt.jsx)(Su,(0,Oe.c)({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},d,{children:h})));let v=l;return null==v||v.type===Su||s||(v=(0,Jt.jsx)(Su,(0,Oe.c)({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:v}))),(0,Jt.jsxs)(CD,(0,Oe.c)({className:(0,bn.c)(m.root,a),as:i,ref:t,ownerState:f},p,{children:[o&&(0,Jt.jsx)(PD,{className:m.avatar,ownerState:f,children:o}),(0,Jt.jsxs)(TD,{className:m.content,ownerState:f,children:[h,v]}),n&&(0,Jt.jsx)(RD,{className:m.action,ownerState:f,children:n})]}))})),ID=AD,MD=["className","children","classes","IconComponent","input","inputProps","variant"],ND=["root"],LD=(0,Jt.jsx)(vf,{}),FD=t.forwardRef((function(e,r){const n=(0,wn.c)({name:"MuiNativeSelect",props:e}),{className:o,children:a,classes:i={},IconComponent:s=jm,input:l=LD,inputProps:c}=n,u=(0,Kt.c)(n,MD),d=Hp({props:n,muiFormControl:Qp(),states:["variant"]}),p=(e=>{const{classes:t}=e;return(0,xn.c)({root:["root"]},sm,t)})((0,Oe.c)({},n,{classes:i})),f=(0,Kt.c)(i,ND);return(0,Jt.jsx)(t.Fragment,{children:t.cloneElement(l,(0,Oe.c)({inputComponent:hm,inputProps:(0,Oe.c)({children:a,classes:f,IconComponent:s,variant:d.variant,type:void 0},c,l?l.props.inputProps:{}),ref:r},u,{className:(0,bn.c)(p.root,l.props.className,o)}))})}));FD.muiName="Select";const zD=FD,DD=["id","displayname"].sort(),BD=["user_type","guest","admin","deactivated","avatar_url","password"].sort();function VD(e){let{value:t,text:r}=e;const n=Ps();return(0,Jt.jsx)("option",{value:t,children:n(r)})}const WD=()=>{const[e,r]=(0,t.useState)(null),[n,o]=(0,t.useState)(null),[a,i]=(0,t.useState)(null),[s,l]=(0,t.useState)(!0),[c,u]=(0,t.useState)(null),[d,p]=(0,t.useState)(null),[f,m]=(0,t.useState)(null),[h,v]=(0,t.useState)("stop"),[g,y]=(0,t.useState)(!0),[b,x]=(0,t.useState)("ignore"),w=Ps(),S=Tt(),O=hw(),_=(e,t)=>{let{data:r,meta:n,errors:o}=e,{setValues:a,setStats:i,setError:s}=t,l=Array.from(DD),c=Array.from(BD);if(n.fields.forEach((e=>{l.includes(e)&&(l=l.filter((t=>t!==e))),c.includes(e)&&(c=c.filter((t=>t!==e)))})),0!==l.length)return s(w("import_users.error.required_field",{field:l[0]})),!1;let u={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:r.length};return r.forEach(((e,t)=>{void 0===e.user_type||""===e.user_type?u.user_types.default++:u.user_types[e.user_type]+=1,n.fields.includes("name")&&delete e.name,n.fields.includes("user_type")&&delete e.user_type,n.fields.includes("is_admin")&&(e.admin=e.is_admin,delete e.is_admin),["is_guest","admin","deactivated"].forEach((r=>{"true"===e[r]?(u[r]++,e[r]=!0):("false"!==e[r]&&""!==e[r]&&o.push(w("import_users.error.invalid_value",{field:r,row:t})),e[r]=!1)})),void 0!==e.password&&""!==e.password&&u.password++,void 0!==e.avatar_url&&""!==e.avatar_url&&u.avatar_url++,void 0!==e.id&&""!==e.id&&u.id++})),o.length>0&&s(o),i(u),a(r),!0},E=async(e,t,r,n,o,a,i,s)=>{let l=[],c=[],u=0,d=t.length;try{i({done:u,limit:d});for(const s of t){let d={},p={};"ignore"!==o&&void 0!==s.id&&void 0!==s.password&&!1!==n||(p=HL(),"ignore"!==o&&void 0!==s.id&&delete p.id,!1!==n&&void 0!==s.password&&""!==s.password&&delete p.password),Object.assign(d,s),Object.assign(d,p),console.log("will check for existence of record "+JSON.stringify(d));let f=0;const m=t=>e.getOne("users",{id:t.id}).then((async e=>{if(console.log("already existed"),"update"===o||"skip"===r)l.push(t);else{if("stop"===r)throw new Error(w("import_users.error.id_exits",{id:t.id}));{const e=HL(),r=Object.assign({},t,{id:e.id});f++,f>512?(console.warn("retry loop got stuck? pathological situation?"),l.push(t)):await m(r)}}}),(async r=>{console.log("OK to create record "+t.id+" ("+t.displayname+")."),a||await e.create("users",{data:t}),c.push(t)}));await m(d),u++,i({done:u,limit:t.length})}i(null)}catch(eB){s(w("import_users.error.at_entry",{entry:u+1,message:eB.message})),i(null)}return{skippedRecords:l,erroredRecords:[],succeededRecords:c,totalRecordCount:d,changeStats:{toAdmin:0,toGuest:0,toRegular:0,replacedPassword:0},wasDryRun:a}},k=a&&!d&&[(0,Jt.jsxs)(_D,{children:[(0,Jt.jsx)(ID,{title:w("import_users.cards.importstats.header")}),(0,Jt.jsxs)(Lv,{children:[(0,Jt.jsx)("div",{children:w("import_users.cards.importstats.users_total",a.total)}),(0,Jt.jsx)("div",{children:w("import_users.cards.importstats.guest_count",a.is_guest)}),(0,Jt.jsx)("div",{children:w("import_users.cards.importstats.admin_count",a.admin)})]})]}),(0,Jt.jsxs)(_D,{children:[(0,Jt.jsx)(ID,{title:w("import_users.cards.ids.header")}),(0,Jt.jsxs)(Lv,{children:[(0,Jt.jsx)("div",{children:a.id===a.total?w("import_users.cards.ids.all_ids_present"):w("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?(0,Jt.jsx)("div",{children:(0,Jt.jsxs)(zD,{onChange:async e=>{if(null!==c)return;const t=e.target.value;x(t)},value:b,enabled:(null!==c).toString(),children:[(0,Jt.jsx)(VD,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),(0,Jt.jsx)(VD,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),(0,Jt.jsxs)(_D,{children:[(0,Jt.jsx)(ID,{title:w("import_users.cards.passwords.header")}),(0,Jt.jsxs)(Lv,{children:[(0,Jt.jsx)("div",{children:a.password===a.total?w("import_users.cards.passwords.all_passwords_present"):w("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?(0,Jt.jsx)("div",{children:(0,Jt.jsx)(b_,{control:(0,Jt.jsx)(Yj,{checked:g,enabled:(null!==c).toString(),onChange:e=>{null===c&&y(e.target.checked)}}),label:w("import_users.cards.passwords.use_passwords")})}):""]})]})];let j=a&&!d&&(0,Jt.jsxs)(_D,{children:[(0,Jt.jsx)(ID,{title:w("import_users.cards.conflicts.header")}),(0,Jt.jsx)(Lv,{children:(0,Jt.jsx)("div",{children:(0,Jt.jsxs)(zD,{onChange:async e=>{if(null!==c)return;const t=e.target.value;v(t)},value:h,enabled:(null!==c).toString(),children:[(0,Jt.jsx)(VD,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),(0,Jt.jsx)(VD,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),C=n&&(0,Jt.jsxs)(_D,{children:[(0,Jt.jsx)(ID,{title:w("import_users.error.error")}),(0,Jt.jsx)(Lv,{children:(Array.isArray(n)?n:[n]).map((e=>(0,Jt.jsx)("div",{children:e})))})]}),P=!d&&(0,Jt.jsxs)(_D,{children:[(0,Jt.jsx)(ID,{title:w("import_users.cards.upload.header")}),(0,Jt.jsxs)(Lv,{children:[w("import_users.cards.upload.explanation"),(0,Jt.jsx)("a",{href:"./data/example.csv",children:"example.csv"}),(0,Jt.jsx)("br",{}),(0,Jt.jsx)("br",{}),(0,Jt.jsx)("input",{type:"file",onChange:async e=>{if(null!==c)return;r(null),o(null),i(null),p(null);const t=e.target.files?e.target.files[0]:null;if(t.size>1e8){const e=w("import_users.errors.unreasonably_big",{size:(t.size/1048576).toFixed(2)});return S(e),void o(e)}try{(0,gD.parse)(t,{header:!0,skipEmptyLines:!0,complete:e=>{e.error&&o(e.error),_(e,{setValues:r,setStats:i,setError:o})}})}catch{return o(!0),null}},enabled:(null!==c).toString()})]})]}),R=d&&(0,Jt.jsxs)(Lv,{children:[(0,Jt.jsx)(ID,{title:w("import_users.cards.results.header")}),(0,Jt.jsxs)("div",{children:[w("import_users.cards.results.total",d.totalRecordCount),(0,Jt.jsx)("br",{}),w("import_users.cards.results.successful",d.succeededRecords.length),(0,Jt.jsx)("br",{}),d.skippedRecords.length?[w("import_users.cards.results.skipped",d.skippedRecords.length),(0,Jt.jsx)("div",{children:(0,Jt.jsx)("button",{onClick:()=>{const e=document.createElement("a");console.log(f);const t=new Blob([f],{type:"text/comma-separated-values"});e.href=URL.createObjectURL(t),e.download="skippedRecords.csv",document.body.appendChild(e),e.click()},children:w("import_users.cards.results.download_skipped")})}),(0,Jt.jsx)("br",{})]:"",d.erroredRecords.length?[w("import_users.cards.results.skipped",d.erroredRecords.length),(0,Jt.jsx)("br",{})]:"",(0,Jt.jsx)("br",{}),d.wasDryRun&&[w("import_users.cards.results.simulated_only"),(0,Jt.jsx)("br",{})]]})]}),T=!e||0===e.length||d?void 0:(0,Jt.jsxs)(mD,{children:[(0,Jt.jsx)(b_,{control:(0,Jt.jsx)(Yj,{checked:s,onChange:e=>{null===c&&l(e.target.checked)},enabled:(null!==c).toString()}),label:w("import_users.cards.startImport.simulate_only")}),(0,Jt.jsx)(Tl,{size:"large",onClick:async t=>{if(null!==c)return void S("import_users.errors.already_in_progress");const r=await E(O,e,h,g,b,s,u,o);p(r),m((0,gD.unparse)(r.skippedRecords)),console.log("Skipped records:"),console.log(f)},enabled:(null!==c).toString(),children:w("import_users.cards.startImport.run_import")}),null!==c?(0,Jt.jsxs)("div",{children:[c.done," of ",c.limit," done"]}):null]}),A=[];P&&A.push(P),C&&A.push(C),j&&A.push(j),k&&A.push(...k),T&&A.push(T),R&&A.push(R);let I=(0,Jt.jsx)(Rv,{children:A});return[(0,Jt.jsx)(ih,{defaultTitle:w("import_users.title")}),I]};var qD=r(1448),UD=r.n(qD);const HD={...UD(),synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",username_error:"Bitte vollst\xe4ndigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine g\xfcltige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ung\xfcltiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu gro\xdf f\xfcr den Import (%{size} Megabytes)",already_in_progress:"Es l\xe4uft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} G\xe4ste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und \xfcberspringe fehlerhafte Eintr\xe4ge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Eintr\xe4ge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passw\xf6rter",all_passwords_present:"Passw\xf6rter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Eintr\xe4ge mit Passw\xf6rtern",use_passwords:"Verwende Passw\xf6rter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier k\xf6nnen Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu \xe4ndern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier k\xf6nnen Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Eintr\xe4ge insgesamt",successful:"%{smart_count} Eintr\xe4ge erfolgreich importiert",skipped:"%{smart_count} Eintr\xe4ge \xfcbersprungen",download_skipped:"\xdcbersprungene Eintr\xe4ge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Eintr\xe4ge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige G\xe4ste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Gesch\xe4ftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die \xc4nderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie m\xfcssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes L\xf6schen der Benutzerdaten"},action:{erase:"L\xf6sche Benutzerdaten"}},rooms:{name:"Raum |||| R\xe4ume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endger\xe4te",state_events:"Zustandsereignisse / Komplexit\xe4t",version:"Version",is_encrypted:"Verschl\xfcsselt",encryption:"Verschl\xfcsselungs-Algorithmus",federatable:"F\xf6\xadde\xadrierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"\xd6ffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"G\xe4ste k\xf6nnen beitreten",forbidden:"G\xe4ste k\xf6nnen nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschl\xfcsselt"},action:{erase:{title:"Raum l\xf6schen",content:"Sind Sie sicher dass Sie den Raum l\xf6schen m\xf6chten? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gel\xf6scht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschl\xfcsselungsalgorithmus"}}},action:{erase:{title:"Gemeldetes Event l\xf6schen",content:"Sind Sie sicher dass Sie das gemeldete Event l\xf6schen m\xf6chten? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Ger\xe4t |||| Ger\xe4te",fields:{device_id:"Ger\xe4te-ID",display_name:"Ger\xe4tename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'M\xf6chten Sie das Ger\xe4t "%{name}" wirklich entfernen?',success:"Ger\xe4t erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Gr\xf6\xdfe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarant\xe4ne hinzugef\xfcgt",safe_from_quarantine:"Schutz vor Quarant\xe4ne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Gr\xf6\xdfer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien l\xf6schen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API l\xf6scht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungesch\xfctzt, Schutz erstellen",delete:"Gesch\xfctzt, Schutz aufheben",none:"In Quarant\xe4ne",send_success:"Erfolgreich den Schutz-Status ge\xe4ndert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarant\xe4ne",create:"Zur Quarant\xe4ne hinzuf\xfcgen",delete:"In Quarant\xe4ne, Quarant\xe4ne aufheben",none:"Gesch\xfctzt vor Quarant\xe4ne",send_success:"Erfolgreich den Quarant\xe4ne-Status ge\xe4ndert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Ger\xe4te-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgew\xe4hlten Nutzer. Hierf\xfcr muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Gr\xf6\xdfe der Dateien"}},forward_extremities:{name:"Vorderextremit\xe4ten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer d\xfcrfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer d\xfcrfen beitreten"},action:{title:"Raum aus Verzeichnis l\xf6schen |||| %{smart_count} R\xe4ume aus Verzeichnis l\xf6schen",content:"M\xf6chten Sie den Raum wirklich aus dem Raumverzeichnis l\xf6schen? |||| M\xf6chten Sie die %{smart_count} R\xe4ume wirklich aus dem Raumverzeichnis l\xf6schen?",erase:"L\xf6sche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"F\xf6deration",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"G\xfcltige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"L\xe4nge"},helper:{length:"L\xe4nge des Tokens, wenn kein Token vorgegeben wird."}}},ra:{...UD().ra,action:{...UD().ra.action,unselect:"Abw\xe4hlen"},auth:{...UD().ra.auth,auth_check_error:"Anmeldung fehlgeschlagen"},input:{...UD().ra.input,password:{...UD().ra.input.password,toggle_hidden:"Anzeigen",toggle_visible:"Verstecken"}},notification:{...UD().ra.notification,logged_out:"Abgemeldet"},page:{...UD().ra.page,empty:"Keine Eintr\xe4ge vorhanden",invite:""},navigation:{...UD().ra.navigation,skip_nav:"Zum Inhalt springen"}}},$D={..._x,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm"}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}};const QD={...{ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} s\xe9lectionn\xe9 |||| %{smart_count} s\xe9lectionn\xe9s",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Cr\xe9er",create_item:"Cr\xe9er %{item}",delete:"Supprimer",edit:"\xc9diter",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout s\xe9lectionner",select_row:"S\xe9lectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"D\xe9s\xe9lectionner",expand:"\xc9tendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"D\xe9placer vers le haut",move_down:"D\xe9placer vers le bas",open:"Ouvrir",toggle_theme:"Th\xe8me clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:"\u2003"},page:{create:"Cr\xe9er %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un probl\xe8me est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en cr\xe9er un ?"},input:{file:{upload_several:"D\xe9posez les fichiers \xe0 uploader, ou cliquez pour en s\xe9lectionner.",upload_single:"D\xe9posez le fichier \xe0 uploader, ou cliquez pour le s\xe9lectionner."},image:{upload_several:"D\xe9posez les images \xe0 uploader, ou cliquez pour en s\xe9lectionner.",upload_single:"D\xe9posez l'image \xe0 uploader, ou cliquez pour la s\xe9lectionner."},references:{all_missing:"Impossible de trouver des donn\xe9es de r\xe9f\xe9rences.",many_missing:"Au moins une des r\xe9f\xe9rences associ\xe9es semble ne plus \xeatre disponible.",single_missing:"La r\xe9f\xe9rence associ\xe9e ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"\xcates-vous s\xfbr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"\xcates-vous s\xfbr(e) de vouloir supprimer cet \xe9l\xe9ment ? |||| \xcates-vous s\xfbr(e) de vouloir supprimer ces %{smart_count} \xe9l\xe9ments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"\xcates-vous s\xfbr(e) de vouloir modifier cet \xe9l\xe9ment ? |||| \xcates-vous s\xfbr(e) de vouloir modifier ces %{smart_count} \xe9l\xe9ments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"\xcates-vous s\xfbr(e) de vouloir supprimer tous les \xe9l\xe9ments de la liste ?",delete_content:"\xcates-vous s\xfbr(e) de vouloir supprimer cet \xe9l\xe9ment ?",delete_title:"Supprimer %{name} #%{id}",details:"D\xe9tails",error:"En raison d'une erreur c\xf4t\xe9 navigateur, votre requ\xeate n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas \xe9t\xe9 enregistr\xe9s. \xcates-vous s\xfbr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun r\xe9sultat",no_more_results:"La page num\xe9ro %{page} est en dehors des limites. Essayez la page pr\xe9c\xe9dente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit \xeatre sup\xe9rieure \xe0 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller \xe0 la page %{page}",first:"Aller \xe0 la premi\xe8re page",last:"Aller \xe0 la derni\xe8re page",next:"Aller \xe0 la prochaine page",previous:"Aller \xe0 la page pr\xe9c\xe9dente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"d\xe9croissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"\xc9chec de l'authentification, merci de r\xe9essayer",logout:"D\xe9connexion"},notification:{updated:"\xc9l\xe9ment mis \xe0 jour |||| %{smart_count} \xe9l\xe9ments mis \xe0 jour",created:"\xc9l\xe9ment cr\xe9\xe9",deleted:"\xc9l\xe9ment supprim\xe9 |||| %{smart_count} \xe9l\xe9ments supprim\xe9s",bad_item:"\xc9l\xe9ment inconnu",item_doesnt_exist:"L'\xe9l\xe9ment n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de d\xe9tails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue s\xe9lectionn\xe9e",canceled:"Action annul\xe9e",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'\xeates pas autoris\xe9(e) \xe0 acc\xe9der \xe0 cette ressource.",application_update_available:"Une mise \xe0 jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caract\xe8res",maxLength:"Maximum %{max} caract\xe8res",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit \xeatre un nombre",email:"Doit \xeatre un email",oneOf:"Doit \xeatre au choix: %{options}",regex:"Doit respecter un format sp\xe9cifique (regexp): %{pattern}",unique:"Doit \xeatre unique"},saved_queries:{label:"Mes requ\xeates",query_name:"Nom de la requ\xeate",new_label:"Ajouter \xe0 mes requ\xeates...",new_dialog_title:"Ajouter la requ\xeate en cours \xe0 mes requ\xeates",remove_label:"Retirer de mes requ\xeates",remove_label_with_name:'Retirer "%{name}" des mes requ\xeates',remove_dialog_title:"Effacer de mes requ\xeates ?",remove_message:"Etes-vous s\xfbr(e) de vouloir supprimer cette requ\xeate de votre liste de requ\xeates ?",help:"Filtrez la liste et ajoutez cette requ\xeate \xe0 votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"S\xe9lectionner un composant pour le configurer",reset:"R\xe9initialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}},synapseadmin:{auth:{base_url:"URL du serveur d\u2019accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet\xa0: \xab\xa0@utilisateur:domaine\xa0\xbb",protocol_error:"L'URL doit commencer par \xab\xa0http://\xa0\xbb ou \xab\xa0https://\xa0\xbb",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l\u2019authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d\u2019accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"D\xe9tails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"D\xe9tails"}}},import_users:{error:{at_entry:"Pour l'entr\xe9e %{entry}\xa0: %{message}",error:"Erreur",required_field:"Le champ requis \xab\xa0%{field}\xa0\xbb est manquant",invalid_value:"Valeur non valide \xe0 la ligne %{row}. Le champ \xab\xa0%{field}\xa0\xbb ne peut \xeatre que \xab\xa0true\xa0\xbb ou \xab\xa0false\xa0\xbb",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} m\xe9gaoctets",already_in_progress:"Un import est d\xe9j\xe0 en cours",id_exits:"L'identifiant %{id} d\xe9j\xe0 pr\xe9sent"},title:"Importer des utilisateurs \xe0 partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Strat\xe9gie de r\xe9solution des conflits",mode:{stop:"S'arr\xeater en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants pr\xe9sents pour chaque entr\xe9e",count_ids_present:"%{smart_count} entr\xe9e avec identifiant |||| %{smart_count} entr\xe9es avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en cr\xe9er de nouveaux",update:"Mettre \xe0 jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe pr\xe9sents pour chaque entr\xe9e",count_passwords_present:"%{smart_count} entr\xe9e avec mot de passe |||| %{smart_count} entr\xe9es avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entr\xe9e",explanation:"Vous pouvez t\xe9l\xe9charger ici un fichier contenant des valeurs s\xe9par\xe9es par des virgules qui sera trait\xe9 pour cr\xe9er ou mettre \xe0 jour des utilisateurs. Le fichier doit inclure les champs \xab\xa0id\xa0\xbb et \xab\xa0displayname\xa0\xbb. Vous pouvez t\xe9l\xe9charger et adapter un fichier d'exemple ici\xa0: "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"R\xe9sultats de l'import",total:"%{smart_count} entr\xe9e au total |||| %{smart_count} entr\xe9es au total",successful:"%{smart_count} entr\xe9es import\xe9es avec succ\xe8s",skipped:"%{smart_count} entr\xe9es ignor\xe9es",download_skipped:"T\xe9l\xe9charger les entr\xe9es ignor\xe9es",with_error:"%{smart_count} entr\xe9e avec des erreurs ||| %{smart_count} entr\xe9es avec des erreurs",simulated_only:"L'import \xe9tait simul\xe9"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse \xe9lectronique",msisdn:"Num\xe9ro de t\xe9l\xe9phone",threepid:"Adresse \xe9lectronique\xa0/ Num\xe9ro de t\xe9l\xe9phone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"D\xe9sactiv\xe9",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs d\xe9sactiv\xe9s",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de cr\xe9ation",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identit\xe9"},helper:{deactivate:"Vous devrez fournir un mot de passe pour r\xe9activer le compte.",erase:"Marquer l'utilisateur comme effac\xe9 conform\xe9ment au RGPD"},action:{erase:"Effacer les donn\xe9es de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"\xc9v\xe9nements d'\xc9tat\xa0/ Complexit\xe9",version:"Version",is_encrypted:"Chiffr\xe9",encryption:"Chiffrement",federatable:"F\xe9d\xe9rable",public:"Visible dans le r\xe9pertoire des salons",creator:"Cr\xe9ateur",join_rules:"R\xe8gles d'adh\xe9sion",guest_access:"Acc\xe8s des visiteurs",history_visibility:"Visibilit\xe9 de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extr\xe9mit\xe9s avant sont les \xe9v\xe9nements feuilles \xe0 la fin d'un graphe orient\xe9 acyclique (DAG) dans un salon, c'est-\xe0-dire les \xe9v\xe9nements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la r\xe9solution d'\xe9tat que Synapse doit effectuer est importante (indice\xa0: c'est une op\xe9ration co\xfbteuse). Bien que Synapse dispose d'un algorithme pour \xe9viter qu'un trop grand nombre de ces \xe9v\xe9nements n'existent en m\xeame temps dans un salon, des bogues peuvent parfois les faire r\xe9appara\xeetre. Si un salon pr\xe9sente plus de 10 extr\xe9mit\xe9s avant, cela vaut la peine d'y pr\xeater attention et \xe9ventuellement de les supprimer en utilisant les requ\xeates SQL mentionn\xe9es dans la discussion traitant du probl\xe8me https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Priv\xe9"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adh\xe9sion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffr\xe9"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon\xa0? Cette op\xe9ration ne peut \xeatre annul\xe9e. Tous les messages et m\xe9dias partag\xe9s du salon seront supprim\xe9s du serveur\xa0!"}}},reports:{name:"\xc9v\xe9nement signal\xe9 |||| \xc9v\xe9nements signal\xe9s",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'\xe9v\xe9nement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'\xe9v\xe9nement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil \xab\xa0%{name}\xa0\xbb\xa0?",success:"Appareil supprim\xe9 avec succ\xe8s",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du m\xe9dia",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de cr\xe9ation",last_access_ts:"Dernier acc\xe8s"}},delete_media:{name:"Media",fields:{before_ts:"Dernier acc\xe8s avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le m\xe9dia",send_success:"Requ\xeate envoy\xe9e avec succ\xe8s",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les m\xe9dias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des m\xe9dias t\xe9l\xe9charg\xe9s. Cette API n'affectera pas les m\xe9dias qui ont \xe9t\xe9 t\xe9l\xe9vers\xe9s dans des d\xe9p\xf4ts de m\xe9dias externes."}},protect_media:{action:{create:"Prot\xe9ger",delete:"R\xe9voquer la protection",none:"En quarantaine",send_success:"Le statut de protection a \xe9t\xe9 modifi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"R\xe9voquer la mise en quarantaine",none:"Prot\xe9g\xe9 contre la mise en quarantaine",send_success:"Le statut de la quarantaine a \xe9t\xe9 modifi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}},pushers:{name:"\xc9metteur de notifications |||| \xc9metteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'\xe9metteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des \xab\xa0Annonces du serveur\xa0\xbb",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoy\xe9e avec succ\xe8s",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs s\xe9lectionn\xe9s. La fonction \xab\xa0Annonces du serveur\xa0\xbb doit \xeatre activ\xe9e sur le serveur."}},user_media_statistics:{name:"M\xe9dias des utilisateurs",fields:{media_count:"Nombre de m\xe9dias",media_length:"Taille des m\xe9dias"}},forward_extremities:{name:"Extr\xe9mit\xe9s avant",fields:{id:"Identifiant de l'\xe9v\xe9nement",received_ts:"Date de r\xe9ception",depth:"Profondeur",state_group:"Groupe d'\xe9tat"}},room_state:{name:"\xc9v\xe9nements d'\xe9tat",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Exp\xe9diteur"}},room_directory:{name:"R\xe9pertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aper\xe7u du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du r\xe9pertoire |||| Supprimer %{smart_count} salons du r\xe9pertoire",content:"Voulez-vous vraiment supprimer ce salon du r\xe9pertoire\xa0? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du r\xe9pertoire\xa0?",erase:"Supprimer du r\xe9pertoire des salons",create:"Publier dans le r\xe9pertoire des salons",send_success:"Salon publi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autoris\xe9es",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton g\xe9n\xe9r\xe9 al\xe9atoirement si aucun jeton n'est pas sp\xe9cifi\xe9"}}};var KD=r(6275);const GD={...r.n(KD)(),synapseadmin:{auth:{base_url:"\u670d\u52a1\u5668 URL",welcome:"\u6b22\u8fce\u6765\u5230 Synapse-admin",server_version:"Synapse \u7248\u672c",username_error:"\u8bf7\u8f93\u5165\u5b8c\u6574\u6709\u6548\u7684\u7528\u6237 ID: '@user:domain'",protocol_error:"URL \u9700\u8981\u4ee5'http://'\u6216'https://'\u4f5c\u4e3a\u8d77\u59cb",url_error:"\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684 Matrix \u670d\u52a1\u5668\u5730\u5740",sso_sign_in:"\u4f7f\u7528 SSO \u767b\u5f55"},users:{invalid_user_id:"\u5fc5\u987b\u8981\u662f\u4e00\u4e2a\u6709\u6548\u7684 Matrix \u7528\u6237 ID \uff0c\u4f8b\u5982 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"\u57fa\u672c",members:"\u6210\u5458",detail:"\u7ec6\u8282",permission:"\u6743\u9650"},delete:{title:"\u5220\u9664\u623f\u95f4",message:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u623f\u95f4\u5417\uff1f\u8be5\u64cd\u4f5c\u65e0\u6cd5\u88ab\u64a4\u9500\u3002\u8fd9\u4e2a\u623f\u95f4\u91cc\u6240\u6709\u7684\u6d88\u606f\u548c\u5206\u4eab\u7684\u5a92\u4f53\u90fd\u5c06\u88ab\u4ece\u670d\u52a1\u5668\u4e0a\u5220\u9664\uff01"}},reports:{tabs:{basic:"\u57fa\u672c",detail:"\u7ec6\u8282"}}},import_users:{error:{at_entry:"\u5728\u6761\u76ee %{entry}: %{message}",error:"\u9519\u8bef",required_field:"\u9700\u8981\u7684\u503c '%{field}' \u672a\u88ab\u8bbe\u7f6e\u3002",invalid_value:"\u7b2c %{row} \u884c\u51fa\u73b0\u65e0\u6548\u503c\u3002 '%{field}' \u53ea\u53ef\u4ee5\u662f 'true' \u6216 'false'\u3002",unreasonably_big:"\u62d2\u7edd\u52a0\u8f7d\u8fc7\u5927\u7684\u6587\u4ef6\uff1a %{size} MB",already_in_progress:"\u4e00\u4e2a\u5bfc\u5165\u8fdb\u7a0b\u5df2\u7ecf\u5728\u8fd0\u884c\u4e2d",id_exits:"ID %{id} \u5df2\u7ecf\u5b58\u5728"},title:"\u901a\u8fc7 CSV \u5bfc\u5165\u7528\u6237",goToPdf:"\u8f6c\u5230 PDF",cards:{importstats:{header:"\u5bfc\u5165\u7528\u6237",users_total:"%{smart_count} \u7528\u6237\u5728 CSV \u6587\u4ef6\u4e2d |||| %{smart_count} \u7528\u6237\u5728 CSV \u6587\u4ef6\u4e2d",guest_count:"%{smart_count} \u8bbf\u5ba2 |||| %{smart_count} \u8bbf\u5ba2",admin_count:"%{smart_count} \u7ba1\u7406\u5458 |||| %{smart_count} \u7ba1\u7406\u5458"},conflicts:{header:"\u51b2\u7a81\u5904\u7406\u7b56\u7565",mode:{stop:"\u5728\u51b2\u7a81\u5904\u505c\u6b62",skip:"\u663e\u793a\u9519\u8bef\u5e76\u8df3\u8fc7\u51b2\u7a81"}},ids:{header:"IDs",all_ids_present:"\u6bcf\u6761\u8bb0\u5f55\u7684 ID",count_ids_present:"%{smart_count} \u4e2a\u542b ID \u7684\u8bb0\u5f55 |||| %{smart_count} \u4e2a\u542b ID \u7684\u8bb0\u5f55",mode:{ignore:"\u5ffd\u7565 CSV \u4e2d\u7684 ID \u5e76\u521b\u5efa\u65b0\u7684",update:"\u66f4\u65b0\u5df2\u7ecf\u5b58\u5728\u7684\u8bb0\u5f55"}},passwords:{header:"\u5bc6\u7801",all_passwords_present:"\u6bcf\u6761\u8bb0\u5f55\u7684\u5bc6\u7801",count_passwords_present:"%{smart_count} \u4e2a\u542b\u5bc6\u7801\u7684\u8bb0\u5f55 |||| %{smart_count} \u4e2a\u542b\u5bc6\u7801\u7684\u8bb0\u5f55",use_passwords:"\u4f7f\u7528 CSV \u4e2d\u6807\u8bb0\u7684\u5bc6\u7801"},upload:{header:"\u5bfc\u5165 CSV \u6587\u4ef6",explanation:"\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u4e0a\u4f20\u4e00\u4e2a\u7528\u9017\u53f7\u5206\u9694\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u521b\u5efa\u6216\u66f4\u65b0\u7528\u6237\u3002\u8be5\u6587\u4ef6\u5fc5\u987b\u5305\u62ec 'id' \u548c 'displayname' \u5b57\u6bb5\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u4e0b\u8f7d\u5e76\u4fee\u6539\u4e00\u4e2a\u793a\u4f8b\u6587\u4ef6\uff1a"},startImport:{simulate_only:"\u6a21\u62df\u6a21\u5f0f",run_import:"\u5bfc\u5165"},results:{header:"\u5bfc\u5165\u7ed3\u679c",total:"\u5171\u8ba1 %{smart_count} \u6761\u8bb0\u5f55 |||| \u5171\u8ba1 %{smart_count} \u6761\u8bb0\u5f55",successful:"%{smart_count} \u6761\u8bb0\u5f55\u5bfc\u5165\u6210\u529f",skipped:"\u8df3\u8fc7 %{smart_count} \u6761\u8bb0\u5f55",download_skipped:"\u4e0b\u8f7d\u8df3\u8fc7\u7684\u8bb0\u5f55",with_error:"%{smart_count} \u6761\u8bb0\u5f55\u51fa\u73b0\u9519\u8bef ||| %{smart_count} \u6761\u8bb0\u5f55\u51fa\u73b0\u9519\u8bef",simulated_only:"\u53ea\u662f\u4e00\u6b21\u6a21\u62df\u8fd0\u884c"}}},resources:{users:{name:"\u7528\u6237",email:"\u90ae\u7bb1",msisdn:"\u7535\u8bdd",threepid:"\u90ae\u7bb1 / \u7535\u8bdd",fields:{avatar:"\u90ae\u7bb1",id:"\u7528\u6237 ID",name:"\u7528\u6237\u540d",is_guest:"\u8bbf\u5ba2",admin:"\u670d\u52a1\u5668\u7ba1\u7406\u5458",deactivated:"\u88ab\u7981\u7528",guests:"\u663e\u793a\u8bbf\u5ba2",show_deactivated:"\u663e\u793a\u88ab\u7981\u7528\u7684\u8d26\u6237",user_id:"\u641c\u7d22\u7528\u6237",displayname:"\u663e\u793a\u540d\u5b57",password:"\u5bc6\u7801",avatar_url:"\u5934\u50cf URL",avatar_src:"\u5934\u50cf",medium:"Medium",threepids:"3PIDs",address:"\u5730\u5740",creation_ts_ms:"\u521b\u5efa\u65f6\u95f4\u6233",consent_version:"\u534f\u8bae\u7248\u672c"},helper:{deactivate:"\u60a8\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e32\u5bc6\u7801\u6765\u6fc0\u6d3b\u8d26\u6237\u3002",erase:"\u5c06\u7528\u6237\u6807\u8bb0\u4e3a\u6839\u636e GDPR \u7684\u8981\u6c42\u62b9\u9664\u4e86"},action:{erase:"\u62b9\u9664\u7528\u6237\u4fe1\u606f"}},rooms:{name:"\u623f\u95f4",fields:{room_id:"\u623f\u95f4 ID",name:"\u623f\u95f4\u540d",canonical_alias:"\u522b\u540d",joined_members:"\u6210\u5458",joined_local_members:"\u672c\u5730\u6210\u5458",state_events:"\u72b6\u6001\u4e8b\u4ef6",version:"\u7248\u672c",is_encrypted:"\u5df2\u7ecf\u52a0\u5bc6",encryption:"\u52a0\u5bc6",federatable:"\u53ef\u8054\u5408\u7684",public:"\u516c\u5f00",creator:"\u521b\u5efa\u8005",join_rules:"\u52a0\u5165\u89c4\u5219",guest_access:"\u8bbf\u5ba2\u8bbf\u95ee",history_visibility:"\u5386\u53f2\u53ef\u89c1\u6027"},enums:{join_rules:{public:"\u516c\u5f00",knock:"\u7533\u8bf7",invite:"\u9080\u8bf7",private:"\u79c1\u6709"},guest_access:{can_join:"\u8bbf\u5ba2\u53ef\u4ee5\u52a0\u5165",forbidden:"\u8bbf\u5ba2\u4e0d\u53ef\u52a0\u5165"},history_visibility:{invited:"\u81ea\u4ece\u88ab\u9080\u8bf7",joined:"\u81ea\u4ece\u52a0\u5165",shared:"\u81ea\u4ece\u5206\u4eab",world_readable:"\u4efb\u4f55\u4eba"},unencrypted:"\u672a\u52a0\u5bc6"}},reports:{name:"\u62a5\u544a\u4e8b\u4ef6",fields:{id:"ID",received_ts:"\u62a5\u544a\u65f6\u95f4",user_id:"\u62a5\u544a\u8005",name:"\u623f\u95f4\u540d",score:"\u5206\u6570",reason:"\u539f\u56e0",event_id:"\u4e8b\u4ef6 ID",event_json:{origin:"\u539f\u59cb\u670d\u52a1\u5668",origin_server_ts:"\u53d1\u9001\u65f6\u95f4",type:"\u4e8b\u4ef6\u7c7b\u578b",content:{msgtype:"\u5185\u5bb9\u7c7b\u578b",body:"\u5185\u5bb9",format:"\u683c\u5f0f",formatted_body:"\u683c\u5f0f\u5316\u7684\u6570\u636e",algorithm:"\u7b97\u6cd5"}}}},connections:{name:"\u8fde\u63a5",fields:{last_seen:"\u65e5\u671f",ip:"IP \u5730\u5740",user_agent:"\u7528\u6237\u4ee3\u7406 (UA)"}},devices:{name:"\u8bbe\u5907",fields:{device_id:"\u8bbe\u5907 ID",display_name:"\u8bbe\u5907\u540d",last_seen_ts:"\u65f6\u95f4\u6233",last_seen_ip:"IP \u5730\u5740"},action:{erase:{title:"\u79fb\u9664 %{id}",content:'\u60a8\u786e\u5b9a\u8981\u79fb\u9664\u8bbe\u5907 "%{name}"?',success:"\u8bbe\u5907\u79fb\u9664\u6210\u529f\u3002",failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"}}},users_media:{name:"\u5a92\u4f53\u6587\u4ef6",fields:{media_id:"\u5a92\u4f53\u6587\u4ef6 ID",media_length:"\u957f\u5ea6",media_type:"\u7c7b\u578b",upload_name:"\u6587\u4ef6\u540d",quarantined_by:"\u88ab\u9694\u79bb",safe_from_quarantine:"\u53d6\u6d88\u9694\u79bb",created_ts:"\u521b\u5efa",last_access_ts:"\u4e0a\u4e00\u6b21\u8bbf\u95ee"}},delete_media:{name:"\u5a92\u4f53\u6587\u4ef6",fields:{before_ts:"\u6700\u540e\u8bbf\u95ee\u65f6\u95f4",size_gt:"\u5927\u4e8e (\u5b57\u8282)",keep_profiles:"\u4fdd\u7559\u5934\u50cf"},action:{send:"\u5220\u9664\u5a92\u4f53",send_success:"\u8bf7\u6c42\u53d1\u9001\u6210\u529f\u3002",send_failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"},helper:{send:"\u8fd9\u4e2aAPI\u4f1a\u5220\u9664\u60a8\u786c\u76d8\u4e0a\u7684\u672c\u5730\u5a92\u4f53\u3002\u5305\u542b\u4e86\u4efb\u4f55\u7684\u672c\u5730\u7f13\u5b58\u548c\u4e0b\u8f7d\u7684\u5a92\u4f53\u5907\u4efd\u3002\u8fd9\u4e2aAPI\u4e0d\u4f1a\u5f71\u54cd\u4e0a\u4f20\u5230\u5916\u90e8\u5a92\u4f53\u5b58\u50a8\u5e93\u4e0a\u7684\u5a92\u4f53\u6587\u4ef6\u3002"}},pushers:{name:"\u53d1\u5e03\u8005",fields:{app:"App",app_display_name:"App \u540d\u79f0",app_id:"App ID",device_display_name:"\u8bbe\u5907\u663e\u793a\u540d",kind:"\u7c7b\u578b",lang:"\u8bed\u8a00",profile_tag:"\u6570\u636e\u6807\u7b7e",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"\u670d\u52a1\u5668\u63d0\u793a",send:"\u53d1\u9001\u670d\u52a1\u5668\u63d0\u793a",fields:{body:"\u4fe1\u606f"},action:{send:"\u53d1\u9001\u63d0\u793a",send_success:"\u670d\u52a1\u5668\u63d0\u793a\u53d1\u9001\u6210\u529f\u3002",send_failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"},helper:{send:'\u5411\u9009\u4e2d\u7684\u7528\u6237\u53d1\u9001\u670d\u52a1\u5668\u63d0\u793a\u3002\u670d\u52a1\u5668\u914d\u7f6e\u4e2d\u7684 "\u670d\u52a1\u5668\u63d0\u793a(Server Notices)" \u9009\u9879\u9700\u8981\u88ab\u8bbe\u7f6e\u4e3a\u542f\u7528\u3002'}},user_media_statistics:{name:"\u7528\u6237\u7684\u5a92\u4f53\u6587\u4ef6",fields:{media_count:"\u5a92\u4f53\u6587\u4ef6\u7edf\u8ba1",media_length:"\u5a92\u4f53\u6587\u4ef6\u957f\u5ea6"}}}};var YD=r(552);const XD={de:HD,en:$D,fr:QD,it:{...r.n(YD)(),synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non \xe8 presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo pu\xf2 essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file cos\xec grosso (%{size} megabyte)",already_in_progress:"Un import \xe8 attualmente gi\xe0 in caricamento",id_exits:"L'ID %{id} \xe8 gi\xe0 presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verr\xe0 poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verr\xe0 disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessit\xe0",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilit\xe0 temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione \xe8 definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'\xe8 stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Pi\xf9 grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'\xe8 stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non incider\xe0 sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'\xe8 stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'\xe8 stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'\xe8 stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" \xe8 stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremit\xe0",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondit\xe0",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'\xe8 stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}},zh:GD},JD=Cx((e=>XD[e]?XD[e]:XD.en),function(e,t){var r=window.navigator,n=r.language,o=r.browserLanguage,a=r.userLanguage,i=n||o||a||e||"en";return(null===t||void 0===t?void 0:t.fullLocale)?i:i.split("-")[0]}()),ZD=()=>(0,Jt.jsxs)(Tx,{disableTelemetry:!0,requireAuth:!0,loginPage:vD,authProvider:Hx,dataProvider:Jx,i18nProvider:JD,children:[(0,Jt.jsx)(Ax,{children:(0,Jt.jsx)(ye,{path:"/import_users",element:(0,Jt.jsx)(WD,{})})}),(0,Jt.jsx)(Mx,{...GL}),(0,Jt.jsx)(Mx,{...Mz}),(0,Jt.jsx)(Mx,{...Dz}),(0,Jt.jsx)(Mx,{...Uz}),(0,Jt.jsx)(Mx,{...kz}),(0,Jt.jsx)(Mx,{...eD}),(0,Jt.jsx)(Mx,{...cD}),(0,Jt.jsx)(Mx,{name:"connections"}),(0,Jt.jsx)(Mx,{name:"devices"}),(0,Jt.jsx)(Mx,{name:"room_members"}),(0,Jt.jsx)(Mx,{name:"users_media"}),(0,Jt.jsx)(Mx,{name:"joined_rooms"}),(0,Jt.jsx)(Mx,{name:"pushers"}),(0,Jt.jsx)(Mx,{name:"servernotices"}),(0,Jt.jsx)(Mx,{name:"forward_extremities"}),(0,Jt.jsx)(Mx,{name:"room_state"}),(0,Jt.jsx)(Mx,{name:"destination_rooms"})]});(0,o.C)(document.getElementById("root")).render((0,Jt.jsx)(t.StrictMode,{children:(0,Jt.jsx)(ZD,{})}))})()})();
//# sourceMappingURL=main.2ae2ba9f.js.map